:root{
  --bg:#070814;
  --panel:#0c1020;
  --ink:#e8f7ff;
  --muted:#7bdcff;
  --neon:#00f0ff;
  --neon2:#ff2bd6;
  --warn:#ff3b3b;
  --grid:rgba(0,240,255,.10);
  --shadow:rgba(0,0,0,.55);
  --pixel: 2px;
}

/* Content wrapper - limits max width to 1024px */
.content-wrapper{
  max-width:1024px;
  margin:0 auto;
  width:100%;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 50% 20%, rgba(255,43,214,.10), transparent 60%),
    radial-gradient(900px 500px at 40% 70%, rgba(0,240,255,.12), transparent 60%),
    linear-gradient(180deg, #050612, #070814);
  font-family: "Press Start 2P", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing:.3px;
  overflow:hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Subtle pixel grid */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity:.8;
  pointer-events:none;
  mix-blend-mode:screen;
}

.screen{
  position:relative;
  min-height:100vh;
  display:grid;
  grid-template-rows: auto 1fr;
  place-items:center;
  padding:
    calc(36px + env(safe-area-inset-top))
    calc(16px + env(safe-area-inset-right))
    calc(18px + env(safe-area-inset-bottom))
    calc(16px + env(safe-area-inset-left));
}

.panel{
  width:min(520px, 94vw);
  background:linear-gradient(180deg, rgba(12,16,32,.92), rgba(8,10,20,.92));
  border: 4px solid rgba(0,240,255,.45);
  box-shadow:
    0 24px 60px var(--shadow),
    0 0 0 2px rgba(255,43,214,.20) inset,
    0 0 22px rgba(0,240,255,.18);
  padding: 22px 18px 18px;
  position:relative;
  image-rendering:pixelated;
}
.panel::after{
  content:"";
  position:absolute;
  inset:-6px;
  border:2px dashed rgba(255,43,214,.25);
  pointer-events:none;
}

.brand__row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
}
.brand__title{
  font-size:34px;
  line-height:1;
  color:var(--ink);
  text-shadow:
    0 0 8px rgba(0,240,255,.55),
    0 0 18px rgba(0,240,255,.18);
}
.brand__badge{
  font-size:10px;
  color: rgba(255,255,255,.88);
  padding: 8px 10px;
  border: 2px solid rgba(255,43,214,.55);
  background: rgba(255,43,214,.10);
  box-shadow: 0 0 18px rgba(255,43,214,.18);
}
.brand__sub{
  margin: 14px 0 0;
  font-size:10px;
  color: rgba(123,220,255,.92);
  line-height:1.6;
}

.divider{
  margin: 16px 0 14px;
  height: 3px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0,240,255,.75) 0 10px,
      rgba(0,240,255,.15) 10px 18px
    );
  box-shadow: 0 0 16px rgba(0,240,255,.22);
}

.toast{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 12px 12px;
  border: 2px solid rgba(0,240,255,.35);
  background: rgba(0,240,255,.06);
  margin: 0 0 12px;
}
.toast--error{
  border-color: rgba(255,59,59,.70);
  background: rgba(255,59,59,.10);
}
.toast--success{
  border-color: rgba(77,208,225,.70);
  background: rgba(77,208,225,.10);
}
.toast__icon{
  width: 18px;
  height: 18px;
  display:grid;
  place-items:center;
  border:2px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.25);
}
.toast__text{
  font-size:10px;
  line-height:1.7;
  color: rgba(255,255,255,.92);
}

.form{ margin-top: 6px; }

.field{
  display:block;
  margin: 0 0 14px;
}
.field__label{
  display:block;
  font-size:10px;
  color: rgba(123,220,255,.92);
  margin-bottom: 8px;
}
.field__wrap{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}
.field__input{
  width:100%;
  font-family: inherit;
  font-size: 11px;
  color: var(--ink);
  padding: 14px 12px;
  background: rgba(0,0,0,.28);
  border: 3px solid rgba(0,240,255,.35);
  outline:none;
  box-shadow: 0 0 0 2px rgba(0,0,0,.30) inset;
}
.field__input::placeholder{ color: rgba(232,247,255,.35); }
.field__input:focus{
  border-color: rgba(255,43,214,.65);
  box-shadow:
    0 0 0 2px rgba(0,0,0,.30) inset,
    0 0 22px rgba(255,43,214,.18);
}
.field__hint{
  position:absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size:9px;
  color: rgba(123,220,255,.55);
  pointer-events:none;
  user-select:none;
}

.peek{
  width: 40px;
  height: 44px;
  flex: 0 0 40px;
  border: 3px solid rgba(0,240,255,.35);
  background: rgba(0,0,0,.28);
  cursor:pointer;
}
.peek:focus-visible{
  outline: 3px solid rgba(255,43,214,.65);
  outline-offset: 3px;
}
.peek__eye{
  display:block;
  width: 18px;
  height: 10px;
  margin: 0 auto;
  border: 2px solid rgba(232,247,255,.78);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom:0;
  position:relative;
}
.peek__eye::after{
  content:"";
  position:absolute;
  left:50%;
  top: 2px;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  background: rgba(0,240,255,.85);
  box-shadow: 0 0 10px rgba(0,240,255,.35);
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  margin: 4px 0 16px;
}

.check{
  display:flex;
  gap: 10px;
  align-items:center;
  cursor:pointer;
  user-select:none;
}
.check__input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.check__box{
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0,240,255,.35);
  background: rgba(0,0,0,.28);
  box-shadow: 0 0 0 2px rgba(0,0,0,.30) inset;
  position:relative;
}
.check__input:checked + .check__box::after{
  content:"";
  position:absolute;
  inset: 3px;
  background: rgba(255,43,214,.85);
  box-shadow: 0 0 12px rgba(255,43,214,.25);
}
.check__label{
  font-size:10px;
  color: rgba(232,247,255,.90);
}

.link{
  font-size:10px;
  color: rgba(0,240,255,.88);
  text-decoration:none;
  border-bottom: 2px dotted rgba(0,240,255,.35);
  padding-bottom: 4px;
}
.link:hover{ color: rgba(255,43,214,.95); border-bottom-color: rgba(255,43,214,.55); }

.cf-turnstile{
  margin: 14px 0;
}

.btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  padding: 16px 14px;
  border: 4px solid rgba(255,43,214,.75);
  background: linear-gradient(180deg, rgba(255,43,214,.22), rgba(255,43,214,.10));
  cursor:pointer;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
  box-shadow:
    0 16px 30px rgba(0,0,0,.45),
    0 0 24px rgba(255,43,214,.20);
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(0,0,0,.50),
    0 0 30px rgba(255,43,214,.24);
}
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{
  outline: 3px solid rgba(0,240,255,.65);
  outline-offset: 4px;
}
.btn__cap{
  width: 16px;
  height: 16px;
  background: rgba(0,240,255,.85);
  box-shadow: 0 0 14px rgba(0,240,255,.28);
}
.btn__text{
  font-size: 12px;
}

.fineprint{
  margin: 14px 0 0;
  font-size: 9px;
  color: rgba(123,220,255,.70);
  line-height:1.7;
  text-align:center;
}

.marquee{
  width:min(860px, 96vw);
  margin-top: 18px;
  border: 3px solid rgba(0,240,255,.28);
  background: rgba(0,0,0,.22);
  padding: 10px 12px;
  overflow:hidden;
  box-shadow: 0 0 20px rgba(0,240,255,.10);
}
.marquee__inner{
  display:flex;
  gap: 32px;
  white-space:nowrap;
  will-change: transform;
  animation: ticker 16s linear infinite;
  font-size: 10px;
  color: rgba(232,247,255,.86);
}
@keyframes ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.ghost-row{
  position:fixed;
  left:50%;
  bottom: 106px;
  transform: translateX(-50%);
  display:flex;
  gap:14px;
  pointer-events:none;
  opacity:.96;
}
.ghost{
  width: 18px;
  height: 20px;
  border-radius: 10px 10px 4px 4px;
  position:relative;
  overflow:hidden;
  animation: ghost-bob 1.6s ease-in-out infinite alternate;
}
.ghost::before,
.ghost::after{
  content:"";
  position:absolute;
  top: 7px;
  width: 5px;
  height: 5px;
  background:#fff;
  border-radius:50%;
}
.ghost::before{ left: 3px; }
.ghost::after{ right: 3px; }
.ghost--red{ background:#ff4b4b; box-shadow:0 0 10px rgba(255,75,75,.65); }
.ghost--pink{ background:#ff7ad9; box-shadow:0 0 10px rgba(255,122,217,.65); animation-delay:.08s; }
.ghost--cyan{ background:#00f0ff; box-shadow:0 0 10px rgba(0,240,255,.65); animation-delay:.16s; }
.ghost--orange{ background:#ffb347; box-shadow:0 0 10px rgba(255,179,71,.65); animation-delay:.24s; }

@keyframes ghost-bob{
  from{ transform: translateY(0); }
  to{ transform: translateY(-4px); }
}

/* Pacman mini scene */
.pac{
  position:fixed;
  left: 0;
  right: 0;
  bottom: 62px;
  height: 28px;
  pointer-events:none;
  opacity:.9;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.55));
}
.pac__pacman{
  position:absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: #ffd400;
  border-radius: 50%;
  animation: pac-move 10s linear infinite;
}
.pac__pacman::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:
    conic-gradient(from 20deg, transparent 0 70deg, #ffd400 70deg 360deg);
  animation: pac-chomp .22s steps(2, end) infinite;
}
.pac__dots{
  position:absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle, rgba(232,247,255,.95) 0 2px, transparent 3px) 0 50%/ 34px 6px repeat-x;
  opacity:.65;
}
@keyframes pac-move{
  0%{ transform: translate(-40px, -50%); }
  100%{ transform: translate(calc(100vw + 40px), -50%); }
}
@keyframes pac-chomp{
  0%{ clip-path: polygon(50% 50%, 100% 20%, 100% 80%); }
  100%{ clip-path: polygon(50% 50%, 100% 48%, 100% 52%); }
}

/* CRT overlays */
.crt, .scanlines{
  position:fixed;
  inset:0;
  pointer-events:none;
}
.scanlines{
  background: repeating-linear-gradient(
    180deg,
    rgba(0,0,0,.00) 0 2px,
    rgba(0,0,0,.10) 2px 3px
  );
  opacity:.45;
  mix-blend-mode: multiply;
}
.crt{
  background:
    radial-gradient(1200px 700px at 50% 50%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(90deg, rgba(255,0,0,.04), rgba(0,255,255,.04));
  opacity:.55;
  mix-blend-mode: screen;
  animation: crt-flicker 3.5s infinite;
}
@keyframes crt-flicker{
  0%, 100%{ opacity:.55; }
  10%{ opacity:.50; }
  12%{ opacity:.62; }
  20%{ opacity:.52; }
  72%{ opacity:.60; }
  80%{ opacity:.52; }
}

@media (prefers-reduced-motion: reduce){
  .marquee__inner{ animation:none; }
  .crt{ animation:none; }
  .pac__pacman{ animation:none; left: 24px; }
  .pac__pacman::before{ animation:none; }
}

@media (max-width: 420px){
  .brand__title{ font-size: 30px; }
  .brand__badge{ display:none; }
  .field__hint{ display:none; }
}

