/* fun.konbit.ca — stand-alone games styling. Local assets only; no third-party hosts.
   Spill patch 2026-11-10: overflow-x guard (clip), foundry link added. Header already wraps.
   Pinch-zoom lock 2026-11-11: viewport + touch-action guards (see rule below).
   Double-tap fix 2026-11-11: iOS Safari has ignored user-scalable=no since
   iOS 10, so the viewport lock alone never stopped zoom on iPhones — the
   touch-action guards are the real lock. The first lock guarded buttons
   (manipulation) and boards (none) but not the panel chrome around them
   (word display, score bar, messages), so a double-tap there still zoomed
   the page to the panel's width and re-armed pinch zoom. .panel now carries
   manipulation: scrolling still works, double-tap zoom does not.
   Vertical fill 2026-11-15-blockfall6: paper background + constellation pattern also on html;
   body min-height 100dvh (100vh fallback) — short pages no longer show the browser's dark canvas below the content. */
:root{
  --paper:#fffdf6; --ink:#22303a; --muted:#6b7a85;
  --coral:#ff6b4a; --teal:#0e7c7b; --sun:#ffc53d; --card:#ffffff;
  --line:#eadfc8; --good:#2e9e5b; --bad:#d64545;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
/* Pinch-zoom lock 2026-11-11: iOS Safari lets a pinch (or an accidental
   two-finger touch on a game board) zoom the page and blow the fixed-size
   boards up — Letter Hive screenshot 2026-11-11. Kill the whole class:
   viewport maximum-scale=1 + user-scalable=no (all 7 pages), no horizontal
   pan gestures at the document level, no double-tap zoom on buttons, and
   no browser gesture handling on the game boards themselves. Trade-off:
   this also removes pinch-zoom for anyone who zooms to read; the boards
   are the game, and zoom breaks play. */
html,body{overflow-x:clip;overscroll-behavior:none}
/* Vertical fill (patch 2026-11-15-blockfall6): the paper background +
   constellation pattern lived only on body and html had no background,
   so on pages shorter than the viewport the area below the content
   showed the browser's canvas (dark in Ricky's dark-rendering Chrome;
   Word Wheel and Blockfall fill the screen, the other six games don't).
   html now carries the same background as body, so the canvas is paper
   at any content height. The two declarations are intentionally
   identical — the harness asserts the html pattern equals the body
   pattern so they cannot drift apart silently. */
html{background-color:var(--paper);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg stroke='%230e7c7b' stroke-width='1.5' opacity='0.08'%3E%3Cline x1='30' y1='40' x2='110' y2='100'/%3E%3Cline x1='150' y1='30' x2='110' y2='100'/%3E%3Cline x1='170' y1='140' x2='110' y2='100'/%3E%3Cline x1='60' y1='160' x2='110' y2='100'/%3E%3Cline x1='30' y1='40' x2='60' y2='160'/%3E%3C/g%3E%3Cg fill='%230e7c7b' opacity='0.10'%3E%3Ccircle cx='30' cy='40' r='6'/%3E%3Ccircle cx='150' cy='30' r='5'/%3E%3Ccircle cx='170' cy='140' r='7'/%3E%3Ccircle cx='60' cy='160' r='5'/%3E%3Ccircle cx='110' cy='100' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size:200px 200px}
body{touch-action:pan-y}
button,.btn{touch-action:manipulation}
.hive,.wheel,.maze-grid,.morpion-grid,.ws-grid,.xw-grid,.ana-tiles,.bf-well,.ck-board,.sn-board,.gb-board{touch-action:none}
.panel{touch-action:manipulation}
body{margin:0;min-height:100vh;min-height:100dvh;background-color:var(--paper);color:var(--ink);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg stroke='%230e7c7b' stroke-width='1.5' opacity='0.08'%3E%3Cline x1='30' y1='40' x2='110' y2='100'/%3E%3Cline x1='150' y1='30' x2='110' y2='100'/%3E%3Cline x1='170' y1='140' x2='110' y2='100'/%3E%3Cline x1='60' y1='160' x2='110' y2='100'/%3E%3Cline x1='30' y1='40' x2='60' y2='160'/%3E%3C/g%3E%3Cg fill='%230e7c7b' opacity='0.10'%3E%3Ccircle cx='30' cy='40' r='6'/%3E%3Ccircle cx='150' cy='30' r='5'/%3E%3Ccircle cx='170' cy='140' r='7'/%3E%3Ccircle cx='60' cy='160' r='5'/%3E%3Ccircle cx='110' cy='100' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size:200px 200px;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.45}
a{color:var(--teal)}
header.site{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  padding:.9rem 1rem;max-width:960px;margin:0 auto}
.wordmark{font-weight:800;font-size:1.35rem;letter-spacing:-.02em;color:var(--ink);text-decoration:none}
.wordmark .dot{color:var(--coral)}
.tagline{color:var(--muted);margin:.2rem 0 0;font-size:.98rem}
.langsel{display:flex;align-items:center;gap:.4rem}
.langsel select{font:inherit;padding:.35rem .5rem;border:2px solid var(--line);border-radius:.6rem;background:var(--card)}
main{max-width:960px;margin:0 auto;padding:0 1rem 3rem}
h1{font-size:1.7rem;margin:.4rem 0}
.date{color:var(--muted);font-weight:600}
.cards{display:grid;gap:1rem;margin-top:1.2rem}
@media(min-width:640px){.cards{grid-template-columns:repeat(3,1fr)}}
.card{background:var(--card);border:2px solid var(--line);border-radius:1rem;padding:1.1rem;
  text-decoration:none;color:var(--ink);display:block}
.card:hover{border-color:var(--sun)}
.card .emoji{font-size:2rem}
.card h2{margin:.4rem 0 .3rem;font-size:1.2rem}
.card p{color:var(--muted);margin:0 0 .8rem}
.play{display:inline-block;background:var(--coral);color:#fff;font-weight:700;
  padding:.4rem .9rem;border-radius:999px}
.panel{background:var(--card);border:2px solid var(--line);border-radius:1rem;padding:1rem;margin-top:1rem}
button{font:inherit;cursor:pointer}
.btn{border:2px solid var(--line);background:var(--card);border-radius:.7rem;padding:.5rem 1rem;font-weight:700}
.btn.primary{background:var(--teal);border-color:var(--teal);color:#fff}
.btn:active{transform:scale(.97)}
.msg{min-height:1.5em;font-weight:700;margin:.6rem 0}
.msg.good{color:var(--good)} .msg.bad{color:var(--bad)}
.scorebar{display:flex;gap:1.2rem;flex-wrap:wrap;font-weight:700}
.scorebar span b{color:var(--teal)}
.current{font-size:1.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  min-height:2.4rem;text-align:center}
.current .c{color:var(--coral)}
.hive{position:relative;width:min(300px,100%);aspect-ratio:300/310;margin:1rem auto}
.tile{position:absolute;transform:translate(-50%,-50%);z-index:1;width:64px;height:64px;border-radius:50%;border:none;background:var(--sun);
  font-size:1.5rem;font-weight:800;text-transform:uppercase;color:var(--ink)}
.tile.center{background:var(--coral);color:#fff}
.tile.letter{background:#ffe9b8}
.tile.in-guess{outline:3px solid var(--teal);outline-offset:2px}
#again{margin:1rem 0}
#backToday{margin:.5rem 0}
.ana-tiles{display:flex;gap:.45rem;justify-content:center;flex-wrap:wrap;margin:1rem 0}
.ana-tile{width:52px;height:52px;border-radius:.8rem;border:none;background:var(--sun);
  font-size:1.35rem;font-weight:800;text-transform:uppercase}
.ana-tile.used{opacity:.25}
.controls{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;margin:.8rem 0}
.foundlist{list-style:none;padding:0;margin:.5rem 0;columns:2;column-gap:2rem}
@media(min-width:640px){.foundlist{columns:3}}
.foundlist li{text-transform:capitalize;padding:.12rem 0}
.foundlist li.pan{font-weight:800;color:var(--coral)}
.notice{background:#fff3cd;border:2px solid var(--sun);border-radius:1rem;padding:1rem;font-weight:600}
.ws-wrap{display:flex;gap:1.2rem;flex-wrap:wrap;justify-content:center;min-width:0}
.ws-wrap>div{min-width:0}
.ws-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;width:100%;max-width:440px;min-width:0;
  margin-inline:auto;user-select:none;-webkit-user-select:none}
.ws-cell{aspect-ratio:1;min-width:0;border:2px solid var(--line);background:var(--card);border-radius:.35rem;
  font-weight:800;text-transform:uppercase;font-size:clamp(.8rem,3.4vw,1.15rem);padding:0}
.ws-cell.sel{background:var(--sun)}
.ws-cell.hit{background:var(--teal);color:#fff;border-color:var(--teal)}
.ws-words{list-style:none;padding:0;margin:0;min-width:0}
.ws-words li{text-transform:uppercase;font-weight:700;padding:.2rem 0;letter-spacing:.08em}
.ws-words li.done{text-decoration:line-through;color:var(--good)}
footer{max-width:960px;margin:0 auto;padding:0 1rem 2rem;color:var(--muted);font-size:.9rem}
:focus-visible{outline:3px solid var(--teal);outline-offset:2px}

.brandrow{display:flex;align-items:center;gap:.6rem}
.brandmark{height:2.6rem;width:auto;border-radius:50%;border:4px solid var(--ink);object-fit:cover;background:#fff}
.reaction{text-align:center;margin:.8rem 0 0}
.reaction img{width:120px;height:120px;border-radius:50%;border:4px solid var(--ink);object-fit:cover;background:#fff}
@media (prefers-reduced-motion: no-preference){
  .reaction img.pop{animation:motley-pop .45s ease}
  @keyframes motley-pop{0%{transform:scaleY(1)}30%{transform:scaleY(1.18)}60%{transform:scaleY(.82)}100%{transform:scaleY(1)}}
}

/* Maze of the Day (MØTLEY) — 15x15 grid; theme colours only. */
.maze-grid{display:grid;gap:0;width:100%;max-width:440px;margin:1rem auto;
  border:3px solid var(--ink);border-radius:.6rem;overflow:hidden;background:var(--card)}
.maze-cell{aspect-ratio:1;min-width:0;padding:0;border:2px solid transparent;
  border-radius:0;background:var(--card);color:var(--ink);
  font-size:clamp(.5rem,2.5vw,.8rem);font-weight:800;line-height:1}
.maze-cell.wall-top{border-top-color:var(--ink);border-top-width:3px}
.maze-cell.wall-right{border-right-color:var(--ink);border-right-width:3px}
.maze-cell.wall-bottom{border-bottom-color:var(--ink);border-bottom-width:3px}
.maze-cell.wall-left{border-left-color:var(--ink);border-left-width:3px}
.maze-cell.start{color:var(--coral)}
.maze-cell.finish{background:var(--teal)}
.maze-cell.trail{background:var(--line)}
.maze-cell.player{background:var(--sun);color:var(--ink)}
.maze-pad{align-items:center}
.maze-pad .btn{min-width:2.6rem}

/* Word Wheel (MØTLEY) — crossword grid + letter wheel; theme colours only. */
.xw-grid{display:grid;gap:3px;width:100%;max-width:440px;min-width:0;
  margin:1rem auto;user-select:none;-webkit-user-select:none}
.xw-cell{aspect-ratio:1;min-width:0;border:2px solid var(--line);background:var(--card);border-radius:.35rem;
  font-weight:800;text-transform:uppercase;font-size:clamp(.9rem,4.5vw,1.3rem);padding:0;color:var(--ink);
  display:flex;align-items:center;justify-content:center}
.xw-cell.filled{background:var(--teal);color:#fff;border-color:var(--teal)}
.xw-blank{background:transparent}
.wheel{position:relative;width:min(300px,100%);aspect-ratio:1;margin:1rem auto}
.wheel-letter{position:absolute;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:50%;border:none;
  background:var(--sun);font-size:1.4rem;font-weight:800;text-transform:uppercase;color:var(--ink)}
.wheel-letter.used{opacity:.25}

/* Morpion 5 (MØTLEY) — 13x13 intersections; theme colours only. */
.morpion-wrap{width:100%;max-width:520px;margin:1rem auto;padding:14px}
.morpion-grid{position:relative;width:100%;aspect-ratio:1;background-color:var(--card);
  background-image:linear-gradient(to right,var(--muted) 1px,transparent 1px),
    linear-gradient(to bottom,var(--muted) 1px,transparent 1px);
  background-size:calc(100%/12) calc(100%/12);
  border:2px solid var(--ink);border-radius:.6rem}
.morpion-cell{position:absolute;width:calc(100%/12);height:calc(100%/12);
  transform:translate(-50%,-50%);border:none;background:transparent;padding:0;
  display:flex;align-items:center;justify-content:center}
.morpion-cell::after{content:"";display:block;width:80%;height:80%;border-radius:50%}
.morpion-cell.p1::after{background:var(--ink)}
.morpion-cell.p2::after{background:#fff;border:2px solid var(--ink)}
.morpion-cell:not(.p1):not(.p2):not(:disabled):hover::after{background:var(--sun);opacity:.55}
.morpion-cell.last::after{outline:3px solid var(--teal);outline-offset:1px}
.morpion-cell.win::after{outline:3px solid var(--coral);outline-offset:2px}
.morpion-grid.over .morpion-cell{cursor:default}

/* Foundry link (spill patch 2026-11-10). */
.foundry-link{color:var(--teal);font-weight:700;text-decoration:none}
.foundry-link:hover{text-decoration:underline}

/* Blockfall (MØTLEY) — falling-blocks well, next-shape preview, touch pad.
   Theme colours only; the well is a board, so it carries touch-action:none
   (pinch-zoom lock 2026-11-11) like the other boards. */
.bf-wrap{display:flex;gap:1.2rem;flex-wrap:wrap;justify-content:center;min-width:0}
.bf-wrap>div{min-width:0}
.bf-well{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:repeat(20,minmax(0,1fr));
  aspect-ratio:10/20;gap:2px;width:100%;max-width:300px;min-width:0;
  margin:0;padding:4px;border:3px solid var(--ink);border-radius:.6rem;background:var(--ink);
  user-select:none;-webkit-user-select:none}
.bf-cell{aspect-ratio:1;min-width:0;background:var(--card);border-radius:2px}
.bf-side{min-width:110px;text-align:center}
.bf-side-label{font-weight:700;margin:.2rem 0 .4rem}
.bf-next{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;width:96px;margin:0 auto}
.bf-next .bf-cell{background:transparent}
.bf-keys{color:var(--muted);font-size:.85rem;max-width:170px;margin:.8rem auto 0}
.bf-pad .btn{min-width:3.2rem;min-height:3.2rem;font-size:1.4rem;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

/* Pad selection lock (patch 2026-11-15-blockfall5): the pad buttons were
   the only surface in the stylesheet without user-select, so on iOS a
   held down-button started a text selection (Ricky's screenshot, taken
   post-glitch on round 4) and the selection swallowed the pointer events
   the hold-repeat depends on. Lock selection and the long-press callout
   on the pad and its buttons. touch-action stays manipulation on the
   buttons and none on the well. */
.bf-pad{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

/* Controls centering (patch 2026-11-14-blockfall3): the pad and Pause/Start
   rows used to span the full panel width, so they centred on the well +
   side group, not on the well (Ricky's screenshot: controls sat right of
   the well's centreline). They now live inside .bf-main, which is exactly
   as wide as the well (300px), so their centreline is the well's
   centreline at every viewport width. The .reaction face stays a direct
   child of .panel and keeps text-align:center on the panel. */
.bf-main{flex:0 0 auto;width:300px;min-width:0}

/* Blockfall mobile (patch 2026-11-14): rearrange, don't scale down.
   The well keeps its 10x20 proportions structurally (aspect-ratio on
   .bf-well above); the Next preview moves BESIDE the well as a narrow
   arcade column instead of below it; the keyboard hints and the intro
   lines collapse; the pad becomes one even row of 5 and Pause joins Start.
   At 390px the panel runs roughly: scorebar ~28 + well ~480 + pad ~56 +
   start row ~48 + margins — well, score and controls fit in one viewport
   once you are at the panel.
   Centering fix (patch 2026-11-14-blockfall2): the well used to carry
   `margin:0 auto`, and auto margins on a flex item override
   justify-content — the well sat left-of-centre and the Next panel was
   pinned to the right edge (wide screens showed it worst). With `margin:0`
   on the well, `.bf-wrap{justify-content:center}` centres the well + side
   group as one unit on desktop. The ≤640px block below is unchanged. */
@media (max-width:640px){
  .bf-wrap{flex-wrap:nowrap;gap:.7rem;align-items:flex-start}
  .bf-main{flex:1 1 0;min-width:0}
  .bf-well{max-width:none;margin:0}
  .bf-side{flex:0 0 60px;width:60px;min-width:0}
  .bf-next{width:60px}
  .bf-keys{display:none}
  .bf-collapse{display:none}
  .bf-pad{flex-wrap:nowrap}
  .bf-pad .btn{flex:1 1 0;min-width:0}
  .bf-startrow .btn{flex:1 1 0}
}

/* Checkers (MØTLEY) — 8th game, patch 2026-11-14. American/English rules.
   Theme colours only; the board carries touch-action:none like the others. */
.ck-wrap{width:100%;max-width:440px;margin:1rem auto}
.ck-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0;width:100%;aspect-ratio:1;
  border:3px solid var(--ink);border-radius:.6rem;overflow:hidden;background:var(--ink);
  user-select:none;-webkit-user-select:none}
.ck-cell{aspect-ratio:1;min-width:0;border:none;padding:0;display:flex;align-items:center;justify-content:center;
  background:var(--card);cursor:default}
.ck-cell.dark{background:#e3d3ae}
.ck-cell.sel{box-shadow:inset 0 0 0 3px var(--teal)}
.ck-cell.target{cursor:pointer}
.ck-cell.target::after{content:"";width:34%;height:34%;border-radius:50%;background:var(--teal);opacity:.65}
.ck-piece{width:76%;height:76%;border-radius:50%;border:3px solid var(--ink);display:flex;
  align-items:center;justify-content:center;font-size:1.15rem;font-weight:800;color:var(--ink)}
.ck-piece.coral{background:var(--coral)}
.ck-piece.white{background:#fff}
.ck-modes{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;margin:.8rem 0}
.ck-modes .btn[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}


/* Mahjong Solitaire (MØTLEY) — 9th game, patch 2026-11-14. Classic Turtle.
   Theme colours only. The board is DOM tiles on a scrollable wrapper:
   tiles never shrink below the 24px tap floor (tileSizeFor in
   mahjong-logic.js), so on a narrow phone the wrapper scrolls sideways
   instead of the tiles going untappable. Tiles carry
   touch-action:manipulation (taps work, no double-tap zoom) and the
   wrapper carries pan-x pan-y so the board scrolls — the board is NOT
   in the touch-action:none list, unlike the fixed-size boards. */
.mj-wrap{width:100%;max-width:700px;margin:1rem auto;overflow-x:auto;overflow-y:hidden;
  touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}
.mj-board{position:relative;margin:0 auto;user-select:none;-webkit-user-select:none}
.mj-tile{position:absolute;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:#fdf8ec;border:2px solid #c9b98a;border-radius:4px;cursor:pointer;overflow:hidden;
  box-shadow:1px 2px 0 rgba(34,48,58,.35);touch-action:manipulation;color:var(--ink)}
.mj-tile.sel{outline:3px solid var(--teal);outline-offset:1px}
.mj-tile.hint{outline:3px solid var(--sun);outline-offset:1px;background:#fff3cd}
.mj-main{max-width:100%;text-align:center;font-size:calc(var(--mj-w)*0.5);line-height:1.05;font-weight:800}
.mj-main.pips{font-size:calc(var(--mj-w)*0.17 + 1px);line-height:1.15;word-break:break-all}
.mj-sub{font-size:calc(var(--mj-w)*0.22 + 2px);line-height:1.1;font-weight:700;color:var(--muted)}
.mj-main.char{color:var(--ink)}
.mj-main.char + .mj-sub{color:var(--bad)}
.mj-main.circ{color:var(--bad)}
.mj-main.bamb{color:var(--good)}
.mj-main.wind{color:var(--ink)}
.mj-main.dragon-red{color:var(--bad)}
.mj-main.dragon-green{color:var(--good)}
.mj-main.dragon-white{color:var(--ink)}
.mj-main.flower{color:var(--teal)}
.mj-main.season{color:var(--coral)}
.mj-blank{display:inline-block;width:calc(var(--mj-w)*0.42);height:calc(var(--mj-h)*0.42);
  border:2px solid var(--ink);border-radius:2px}

/* Snake (MØTLEY) — 17x17 board; theme colours only. The board carries
   touch-action:none like the other boards (pinch-zoom lock 2026-11-11),
   so swipes steer the snake instead of scrolling or zooming the page. */
.sn-board{display:grid;grid-template-columns:repeat(17,minmax(0,1fr));gap:1px;
  width:100%;max-width:340px;aspect-ratio:1;margin:1rem auto;
  border:3px solid var(--ink);border-radius:.6rem;overflow:hidden;background:var(--card);
  touch-action:none;user-select:none;-webkit-user-select:none}
.sn-cell{aspect-ratio:1;min-width:0;background:var(--card);border-radius:2px;
  display:flex;align-items:center;justify-content:center;
  font-size:clamp(.6rem,3.4vw,1rem);line-height:1}
.sn-cell.body{background:var(--teal);border-radius:4px}
.sn-cell.head{background:var(--coral);border-radius:5px}
.sn-cell.food{background:var(--sun)}
.sn-pad{align-items:center;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.sn-pad .btn{min-width:2.6rem;min-height:2.6rem;font-size:1.3rem;
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.sn-startrow .btn{min-height:2.6rem}

/* Gobble Maze (MØTLEY) — 19x21 maze-chase; theme colours only, plus
   three ghost colours. The board is a board, so it carries
   touch-action:none (pinch-zoom lock 2026-11-11) like the other boards. */
:root{--gb-purple:#7b5ea7;--gb-pink:#ff7bac;--gb-fright:#a8c0e8}
.gb-board{display:grid;grid-template-columns:repeat(19,minmax(0,1fr));gap:0;width:100%;max-width:340px;
  margin:1rem auto;border:3px solid var(--ink);border-radius:.6rem;overflow:hidden;background:var(--ink);
  user-select:none;-webkit-user-select:none;touch-action:none}
.gb-cell{aspect-ratio:1;min-width:0;padding:0;background:var(--card);position:relative}
.gb-cell.gb-wall{background:var(--ink)}
.gb-cell.gb-dot::after{content:"";position:absolute;left:50%;top:50%;width:28%;height:28%;
  transform:translate(-50%,-50%);border-radius:50%;background:var(--sun)}
.gb-cell.gb-pellet::after{content:"";position:absolute;left:50%;top:50%;width:62%;height:62%;
  transform:translate(-50%,-50%);border-radius:50%;background:var(--sun);box-shadow:0 0 0 2px #fff}
.gb-cell.gb-player::before{content:"";position:absolute;inset:6%;border-radius:50%;background:var(--coral);
  background-image:radial-gradient(circle 3px at 35% 38%,#fff 3px,transparent 4px),
    radial-gradient(circle 3px at 65% 38%,#fff 3px,transparent 4px)}
.gb-cell.gb-ghost::before{content:"";position:absolute;inset:8% 10% 12%;border-radius:50% 50% 42% 42%;
  background-image:radial-gradient(circle 3px at 35% 42%,#fff 3px,transparent 4px),
    radial-gradient(circle 3px at 65% 42%,#fff 3px,transparent 4px)}
.gb-cell.gb-ghost-chaser::before{background-color:var(--teal)}
.gb-cell.gb-ghost-ambusher::before{background-color:var(--gb-purple)}
.gb-cell.gb-ghost-wanderer::before{background-color:var(--gb-pink)}
.gb-cell.gb-fright::before{background-color:var(--gb-fright)}
.gb-cell.gb-eaten::before{background-color:transparent;outline:2px dashed var(--gb-fright);outline-offset:-2px}
.scorebar #gb-lives{color:var(--coral)}
.gb-pad{display:grid;grid-template-columns:repeat(3,auto);justify-content:center;gap:.5rem;
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.gb-pad .btn{min-width:3rem;min-height:3rem;font-size:1.4rem}
#gb-up{grid-column:2;grid-row:1}
#gb-left{grid-column:1;grid-row:2}
#gb-right{grid-column:3;grid-row:2}
#gb-down{grid-column:2;grid-row:3}
