html,
body {
	height: 100%;
	margin: 0;
	background: #111;
	color: #eee;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    touch-action: none;
    -ms-touch-action: none;
    font-family: 'Press Start 2P', monospace;
}
    *, *::before, *::after { touch-action: none; }

.wrap {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.toolbar {
	display: flex;
	align-items: center;
	flex-direction: row;
	gap: .75rem;
	padding: .5rem .75rem;
	background: #1b1b1b;
	border-bottom: 1px solid #2a2a2a;
	flex-wrap: wrap;
	justify-content: space-between;
}

.toolbar label {
	font-size: 14px;
	opacity: .9;
}
.color-cont{
	display: flex;
	flex-direction: row;
	align-items: center;
}
.canvas-ct {
	position: relative;
	flex: 1;
	display: grid;
	place-items: center;
}

canvas {
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	border-radius: 12px;
	touch-action: none;
	cursor: crosshair;
	image-rendering: pixelated;
	overflow-y: hidden;
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      user-select: none;
}

.hint {
	position: fixed;
	right: 12px;
	bottom: 12px;
	font-size: 12px;
	opacity: .6;
}

.badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: #2a2a2a;
	font-size: 12px;
}

.desc-ca{
    margin: 0; 
    color: white;
    font-size: 1rem;
    cursor: pointer;
}
.desc-ca:hover{
    color: #cccccc;
}

.links{
	display: flex;
	flex-direction: row;
	gap: 10px;
}
.link-b{
	width: 50px;
	height: auto;
}









.burger {
  justify-self: end;
  display: none;               
  width: 36px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 9999;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  will-change: transform, opacity;
}

.burger.active span:nth-child(1) {
  transform: translateY(12.5px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-12.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;

  display: flex;            
  align-items: center;
  justify-content: center;
  flex-direction: column;

  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px;
  border-radius: 16px;

  transform: translateY(10px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  will-change: transform, opacity;
}

.mobile-menu.active .mobile-list {
  transform: translateY(0);
  opacity: 1;
}

.mobile-list a {
  color: #fff;
  text-decoration: none;
  font-size: 30px;
  text-align: center;
  font-weight: 600;
}
.mobile-list a:hover { text-decoration: underline; }

@media (max-width: 1200px) {
  .links, .ca-text { display: none; }            
  .burger { 
    display: flex;
    flex-direction: column;
    justify-content: space-between;}               
}

@media (prefers-reduced-motion: reduce) {
  .burger span,
  .mobile-menu,
  .mobile-list,
  .nav-links a { transition: none !important; }
}

.mobile-ca{
	font-size: 8vw;
	text-align: center;
}
.links-m{
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10vw;
}
.link-b-m{
	width: 25vw;
	height: auto;
}