:root{color-scheme:light;--ink:#000;--text:#1a1a1a;--muted:#5f5f5f;--line:#e4e4e4;--fill:#f3f3f3;
  --round:ui-rounded,"SF Pro Rounded","Hiragino Maru Gothic ProN","Arial Rounded MT Bold",system-ui,sans-serif;
  --c1:#6a3fd9;--c2:#5753d6;--c3:#4369cf;--c4:#2d80c4;--c5:#1b93b6;--c6:#0f9f9f}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--text);font:17px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif}
a{color:inherit;text-underline-offset:3px;text-decoration-thickness:1px}
img{max-width:100%;height:auto;display:block}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.top,main,.foot{width:100%;max-width:608px;margin:0 auto;padding-left:16px;padding-right:16px}
.top{display:flex;align-items:baseline;justify-content:space-between;padding-top:14px}
.top nav{display:flex;gap:18px;font-size:15px}
.top nav a{text-decoration:none;color:var(--muted)}
.top nav a:hover{color:var(--ink)}

/* the wordmark: six letters, six steps of one gradient */
h1{margin:0;font-family:var(--round);font-weight:800;line-height:1;letter-spacing:-.03em;color:var(--ink)}
.word{font-family:var(--round);font-weight:800;font-size:38px;line-height:1;letter-spacing:-.03em;text-decoration:none;margin:0}
.word span:nth-child(1){color:var(--c1)}.word span:nth-child(2){color:var(--c2)}.word span:nth-child(3){color:var(--c3)}
.word span:nth-child(4){color:var(--c4)}.word span:nth-child(5){color:var(--c5)}.word span:nth-child(6){color:var(--c6)}
.lede{margin:4px 0 12px;color:var(--muted);font-size:16px}

.play{container-type:inline-size}
.stage{--w:min(100cqw,max(300px,calc(100svh - 300px)));position:relative;width:var(--w);height:var(--gh,calc(var(--w) + 112px));overflow:hidden;background:#fff}
/* before the game starts the stage is just the board picture: no empty band above or below it */
.stage:not([data-gf-state]){height:var(--w)}
.stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.stage:fullscreen{width:100vw;height:100vh;background:#fff}
.stage:-webkit-full-screen{width:100vw;height:100vh;background:#fff}
.stage:fullscreen .cover img{object-fit:contain;object-position:center}
.cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.cover[hidden],[data-gf-state] .cover{display:none}
.cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:top left}
.start{position:relative;z-index:1;border:0;border-radius:6px;background:var(--ink);color:#fff;font-family:var(--round);font-weight:700;font-size:21px;padding:15px 30px;cursor:pointer;box-shadow:0 0 0 6px #fff}
.start:hover{background:#2b2b2b}
.start.small{font-size:16px;padding:9px 18px;box-shadow:none}
.loader{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#fff;color:var(--muted)}
.loader[hidden]{display:none}
.loader p{margin:0;font-size:15px}
.loader-grid{display:grid;grid-template-columns:repeat(3,28px);grid-auto-rows:28px}
.loader-grid i{animation:mixin 1.2s ease-in-out infinite}
.loader-grid i:nth-child(1){background:#d8c6fa}.loader-grid i:nth-child(2){background:#a9cdf5;animation-delay:.1s}.loader-grid i:nth-child(3){background:#7fd6e6;animation-delay:.2s}
.loader-grid i:nth-child(4){background:#9a86dc;animation-delay:.1s}.loader-grid i:nth-child(5){background:#6e9fcf;animation-delay:.2s}.loader-grid i:nth-child(6){background:#45a9b6;animation-delay:.3s}
.loader-grid i:nth-child(7){background:#5a4fa8;animation-delay:.2s}.loader-grid i:nth-child(8){background:#3d6aa0;animation-delay:.3s}.loader-grid i:nth-child(9){background:#197d86;animation-delay:.4s}
@keyframes mixin{0%,100%{transform:scale(1)}50%{transform:scale(.7)}}
@media (prefers-reduced-motion:reduce){.loader-grid i{animation:none}}

.actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:10px}
/* action buttons are tiles: a square of colour with a glyph, the label beside it */
.tilebtn{display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:4px 0;font:inherit;font-size:15px;font-weight:600;color:var(--ink);cursor:pointer}
.tilebtn i{display:grid;place-items:center;width:34px;height:34px;transition:transform .15s ease,border-radius .15s ease}
.tilebtn svg{width:19px;height:19px;fill:none;stroke:#000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tilebtn i{background:var(--fill)}
.tilebtn:hover i{background:#e6e6e6}
.tilebtn:hover i{transform:scale(.86);border-radius:7px}
.tilebtn b{font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
/* liked: the heart fills red, the way it does everywhere else */
.tilebtn[aria-pressed="true"] svg{fill:#e0245e;stroke:#e0245e}
@media (prefers-reduced-motion:reduce){.tilebtn i{transition:none}}
.act{border:0;background:var(--fill);color:var(--ink);border-radius:6px;padding:8px 13px;font:inherit;font-size:15px;cursor:pointer}
.act:hover{background:#e9e9e9}
.act.tiny{padding:2px 9px;font-size:13px}
.act[aria-pressed="true"] .heart{color:#d2456a}
.heart{color:#9a9a9a}
.act-msg{font-size:14px;color:var(--muted)}

.prose{padding-top:20px}
.prose>h2:first-child{margin-top:8px}
.prose h2,.faq h2{font-family:var(--round);font-weight:800;font-size:28px;line-height:1.12;letter-spacing:-.02em;color:var(--ink);margin:44px 0 10px}
.prose h3{font-size:18px;margin:22px 0 4px}
.prose p,.prose ul,.prose ol{margin:0 0 14px}
.prose ul,.prose ol{padding-left:22px}
.prose li{margin-bottom:6px}
.prose strong{color:var(--ink)}
.page h1{font-size:44px;margin:26px 0 18px}
h1.sub{font-size:34px;margin:22px 0 6px}
.faq details{border-top:1px solid var(--line);padding:13px 0}
.faq details:last-of-type{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;font-weight:600;color:var(--ink);list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--muted);font-weight:400}
.faq details[open] summary::after{content:"–"}
.faq p{margin:8px 0 0}

.foot{margin-top:64px;padding-top:18px;padding-bottom:36px;border-top:1px solid var(--line);font-size:15px;display:flex;flex-wrap:wrap;gap:8px 20px;align-items:baseline}
.foot-brand{font-family:var(--round);font-weight:800;color:var(--ink);margin:0}
.foot nav{display:flex;flex-wrap:wrap;gap:16px}
.foot nav a{color:var(--muted)}
.fine{color:var(--muted);font-size:13px;margin:0;flex-basis:100%}

.cover{cursor:pointer}
