/* home puzzle — scoped to #game so nothing leaks into the site
   Trimmed to the dark theme and the chosen options: grey wedge above the
   board and the alignment cross while peeking. The broadcast bars and the
   boot screen are out. The other six looks from the original file are not
   here either; ask and they come back.

   FONT: this wants "Press Start 2P", self-hosted. Until the file is in
   assets/fonts/ it falls back to the system monospace and reads as mono,
   not pixel. Add the @font-face below when the file is there. */

/*
@font-face{
  font-family:"Press Start 2P";
  src:url("fonts/PressStart2P-Regular.woff2") format("woff2");
  font-display:swap;
}
*/

#game{
  --ff:"Press Start 2P","Courier New",Courier,monospace;
  --ls:0px; --s1:8px; --s2:7px; --ui:7px; --mt:8px;
  --glow:#cfe9ff;
  font-family:var(--ff); font-size:11px; letter-spacing:var(--ls);
  color:#6b6b6b;
  display:flex; flex-direction:column; align-items:center;
  padding:30px 0 10px;
  -webkit-tap-highlight-color:transparent;
}
#game *{box-sizing:border-box}

#game .win{width:max-content;max-width:100%}
#game .pad{display:flex;flex-direction:column;padding:0}

#game .stage{position:relative;line-height:0;outline:1px solid #262626}
#game #board{position:relative;overflow:hidden;touch-action:manipulation;background:#141414}

#game .t{position:absolute;top:0;left:0;background-image:var(--img);background-repeat:no-repeat;
  cursor:pointer;transition:transform .11s steps(3,end);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
#game .t::before{content:'';position:absolute;inset:0;pointer-events:none}
#game .t::after{content:'';position:absolute;inset:0;pointer-events:none;opacity:0;
  transition:opacity .5s ease-out;
  box-shadow:inset 0 0 0 1px var(--glow), inset 0 0 16px -3px var(--glow)}
#game.glow .t.ok::after{opacity:.8}
#game.glow .t.flash::after{animation:pz-fl .6s ease-out}
@keyframes pz-fl{
  0%{opacity:1;box-shadow:inset 0 0 0 2px #fff, inset 0 0 26px 2px var(--glow)}
  100%{opacity:.8}}

#game #peek{position:absolute;inset:0;background-image:var(--img);background-size:100% 100%;
  display:none;pointer-events:none;z-index:3}
#game #peek.show{display:block}

#game #cross{position:absolute;inset:0;display:none;pointer-events:none;z-index:4}
#game.cross.peeking #cross{display:block}
#game #cross::before{content:'';position:absolute;left:50%;top:0;bottom:0;width:1px;
  background:rgba(255,255,255,.6);transform:translateX(-.5px)}
#game #cross::after{content:'';position:absolute;top:50%;left:0;right:0;height:1px;
  background:rgba(255,255,255,.6);transform:translateY(-.5px)}
#game #cross i{position:absolute;left:50%;top:50%;width:72px;height:72px;margin:-36px 0 0 -36px;
  border:1px solid rgba(255,255,255,.6);border-radius:50%;
  box-shadow:0 0 0 36px rgba(255,255,255,.07) inset}


#game .wedge{display:none;height:7px;margin-bottom:5px;
  background:linear-gradient(90deg,#000 0 9.09%,#1a1a1a 9.09% 18.18%,#333 18.18% 27.27%,
    #4d4d4d 27.27% 36.36%,#666 36.36% 45.45%,#808080 45.45% 54.54%,#999 54.54% 63.63%,
    #b3b3b3 63.63% 72.72%,#ccc 72.72% 81.81%,#e6e6e6 81.81% 90.9%,#fff 90.9% 100%)}
#game.wedge .wedge{display:block}

#game .ctr{display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin-top:11px;flex-wrap:wrap}
#game .btns{display:flex;gap:15px;align-items:center}
#game .btns{gap:22px}
#game button.dot{padding:0;border:0;cursor:pointer;background:transparent;
  font-family:inherit;letter-spacing:calc(var(--ls) + 1px);font-size:var(--ui);
  color:#6b6b6b;transition:color .16s;line-height:1}
#game button.dot:hover{color:#e6e6e6}
#game button.dot.on{color:#e6e6e6}
#game button.dot.on::after{content:'';display:block;height:1px;margin-top:4px;background:#e6e6e6}
#game button[disabled]{opacity:.28;cursor:default}
#game button[disabled]:hover{color:#6b6b6b}

#game .pics{display:flex;gap:10px;font-size:var(--ui);letter-spacing:calc(var(--ls) + 1px)}
#game .pics button{padding:0;border:0;background:none;cursor:pointer;font-family:inherit;
  font-size:inherit;letter-spacing:inherit;color:#4a4a4a;transition:color .16s;line-height:1}
#game .pics button:hover{color:#9a9a9a}
#game .pics button.on{color:#e6e6e6}
#game .pics.one{display:none}

#game .meta{font-size:var(--mt);white-space:nowrap}
#game .meta b{font-weight:normal;color:#e0e0e0}
#game .meta .rec{opacity:.6;margin-left:10px}

#game .wipline{margin-top:10px;font-size:10px;line-height:1.7}
#game .l1{display:block;font-size:var(--s1);letter-spacing:calc(var(--ls) + 1px);color:#e6e6e6}
#game .l2{display:block;font-size:var(--s2);letter-spacing:var(--ls);opacity:.6;text-transform:none}

#game .wedge{order:0} #game .stage{order:1} #game .ctr{order:2} #game .wipline{order:3}

@media (max-width:600px){ #game .ctr{justify-content:center} }
