@font-face{font-family:Display;src:local('Impact');font-display:swap}
:root{color-scheme:dark;--ink:#161615;--paper:#f5f0e6;--muted:#b7b3aa;--red:#e24437;--line:#484740;font-family:Arial,Helvetica,sans-serif;color:var(--paper);background:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:280px;min-height:100dvh;background:radial-gradient(ellipse at 65% 30%,#24231f50,transparent 65%),var(--ink)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid var(--red);outline-offset:5px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}a{color:inherit}img{display:block;max-width:100%;user-select:none;-webkit-user-drag:none}button{border:0}button:active{transform:translateY(1px)}[hidden]{display:none!important}
.decoration{position:absolute;inset:0;overflow:hidden;pointer-events:none;height:100%;min-height:1200px;z-index:0}.decoration i{position:absolute;border:1px solid #f5f0e677;border-radius:50%;width:340px;height:340px}.decoration i:nth-child(1){left:-260px;top:190px}.decoration i:nth-child(2){right:-240px;top:460px;width:370px;height:370px}.decoration i:nth-child(3){left:-40px;top:440px;width:92px;height:92px;background:#a49b8d;border:0}.decoration i:nth-child(4){right:-100px;top:1030px;width:240px;height:240px;background:#8e857a;border:0}
.site-header{position:relative;z-index:1;max-width:1180px;margin:0 auto;padding:35px 40px;display:flex;align-items:center;justify-content:space-between;gap:20px}.wordmark{font-family:Display,Impact,'Arial Narrow',sans-serif;font-size:35px;letter-spacing:-1.3px;line-height:1;font-weight:900;text-decoration:none}.wordmark span{color:var(--red)}.round-label{font-size:10px;letter-spacing:2.4px;color:var(--muted);text-align:right}.site-footer{max-width:1100px;margin:64px auto 0;padding:22px 0 30px;position:relative;z-index:1;border-top:1px solid #ffffff19;display:flex;justify-content:space-between;font-size:9px;letter-spacing:2.2px;color:#9b978f;gap:20px}
#app{position:relative;z-index:1;max-width:1100px;margin:auto;outline:none;min-height:70dvh}.eyebrow{font-size:10px;line-height:1.6;letter-spacing:3px;text-transform:uppercase;color:var(--muted);margin:0 0 20px}.red-dot{display:inline-block;background:var(--red);width:7px;height:7px;border-radius:50%;margin-right:8px;vertical-align:1px}.home{display:grid;grid-template-columns:.95fr 1.05fr;gap:64px;align-items:center;padding:48px 0 36px}.home h1{font-family:Display,Impact,'Arial Narrow',sans-serif;font-weight:900;font-size:clamp(28px,4.5vw,62px);line-height:1.08;letter-spacing:-2px;white-space:nowrap;margin:22px 0 27px}.home h1 span{color:var(--red)}.intro-copy{font-size:17px;line-height:1.8;color:#cdc8be;max-width:380px;margin:0 0 30px}.intro-copy strong{color:var(--paper);font-weight:400}.button{display:inline-flex;align-items:center;justify-content:center;gap:28px;border-radius:50px;min-height:58px;padding:16px 30px;background:var(--paper);color:var(--ink);text-transform:uppercase;letter-spacing:2px;font-size:12px;font-weight:500;text-decoration:none;transition:background .15s,transform .15s}.button:hover{background:#fffaf1}.arrow{font-family:Arial,sans-serif;font-size:28px;line-height:18px;font-weight:400}.button.secondary{background:transparent;color:var(--paper);border:1px solid #69665e}.button.secondary:hover{background:#ffffff0a}.subtle-link{background:none;color:var(--muted);font-size:12px;padding:12px 4px;text-decoration:underline;text-underline-offset:5px}.home-note{font-size:11px;color:#9d998f;margin:17px 0 0}.hero-art{position:relative;background:var(--paper);border-radius:50% 50% 45% 45%;aspect-ratio:.91;isolation:isolate}.hero-art:before{content:'?';position:absolute;left:39%;top:29%;font-family:Display,Impact,sans-serif;font-size:190px;color:#d9d3c5;z-index:0;transform:rotate(8deg)}.hero-art img{position:absolute;object-fit:contain;z-index:1}.hero-art img:nth-child(1){height:63%;width:39%;left:4%;top:15%;transform:rotate(-5deg)}.hero-art img:nth-child(2){height:63%;width:33%;right:5%;top:9%;transform:rotate(5deg)}.hero-art img:nth-child(3){height:56%;width:34%;left:36%;bottom:4%}.hero-caption{position:absolute;bottom:5%;left:7%;z-index:2;writing-mode:vertical-rl;font-size:9px;letter-spacing:2px;color:#6e685e}.how-to{border-top:1px solid #ffffff25;padding-top:25px;margin-top:34px;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.how-to p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.how-to strong{display:block;color:var(--paper);font-size:12px;font-weight:500;margin-bottom:5px}.step-num{font-size:10px;color:var(--red);letter-spacing:2px;display:block;margin-bottom:10px}.rules-detail{margin-top:20px;border-left:1px solid #6b665d;padding-left:18px;font-size:13px;line-height:1.7;color:var(--muted)}
.game-shell{max-width:800px;margin:18px auto 0}.game-heading{text-align:center;margin:0 0 28px}.game-heading .eyebrow{margin-bottom:12px}.game-heading h1{font-weight:400;font-size:clamp(28px,4vw,46px);line-height:1.15;letter-spacing:5px;margin:0;text-transform:uppercase}.divider{height:1px;width:42px;background:var(--paper);margin:22px auto}.game-heading p:not(.eyebrow){color:#ccc6bb;line-height:1.65;font-size:13px;letter-spacing:1px;max-width:540px;margin:0 auto}.board-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 2px 12px;font-size:10px;letter-spacing:1.8px;color:#bdb8ad;text-transform:uppercase}.clock-wrap{display:flex;align-items:center;gap:8px;color:var(--paper)}.clock-icon{width:13px;height:13px;border:1px solid currentColor;border-radius:50%;position:relative}.clock-icon:after{content:'';position:absolute;top:2px;left:5px;width:3px;height:4px;border-left:1px solid currentColor;border-bottom:1px solid currentColor}.time{min-width:40px;font-variant-numeric:tabular-nums;font-size:13px;letter-spacing:1px}.board{border-radius:16px;background:var(--paper);color:var(--ink);position:relative}.memory-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:18px}.figure{margin:0;background:transparent;border-radius:9px;padding:7px;display:flex;align-items:center;justify-content:center;aspect-ratio:.65;min-width:0;position:relative}.figure img{width:100%;height:100%;object-fit:contain}.figure.pick{border:1px solid transparent;transition:background .15s,border-color .15s}.figure.pick:hover{background:#ded7c6;border-color:#c6bcaa}.figure.pick:focus-visible{outline:3px solid var(--red);outline-offset:0;background:#e8dfcf}.figure.pick:active{background:#d3c7b2}.memory-progress{height:3px;background:#6b665d;margin-top:10px;border-radius:3px;overflow:hidden}.memory-progress div{height:100%;width:100%;background:var(--paper);transform-origin:left}.actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin:26px 0 0}.actions .button{min-width:240px}.board-note{text-align:center;font-size:11px;line-height:1.6;color:#a6a093;margin:13px 0 0}.crowd{aspect-ratio:.73;isolation:isolate;overflow:hidden}.crowd img{position:absolute;max-width:none;pointer-events:none}.selection-label{background:#ded6c5;color:#625a4d;font-size:9px;position:absolute;right:5px;bottom:5px;min-width:16px;border-radius:10px;padding:2px 4px;opacity:0}.figure.pick:focus-visible .selection-label{opacity:1}.loading{text-align:center;padding:100px 20px}.loading h1{font-size:28px;font-weight:400;letter-spacing:3px}.loading p{font-size:13px;color:var(--muted);line-height:1.7}.spinner{width:38px;height:38px;border:1px solid #5b574e;border-top-color:var(--paper);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 28px}@keyframes spin{to{transform:rotate(360deg)}}
.result-shell{max-width:720px;text-align:center;margin:24px auto 0}.result-shell .game-heading{margin-bottom:26px}.result-shell h1{font-size:clamp(45px,8vw,72px);font-weight:700;letter-spacing:8px}.result-portrait{width:min(390px,75vw);aspect-ratio:1;display:flex;justify-content:center;align-items:center;background:var(--paper);border-radius:50%;margin:0 auto 28px;padding:28px}.result-portrait img{height:100%;width:100%;object-fit:contain}.result-time{font-size:clamp(30px,6vw,45px);font-weight:400;letter-spacing:1px;margin:0 0 8px;font-variant-numeric:tabular-nums}.result-time span{font-size:12px;letter-spacing:2px;color:var(--muted);margin-left:8px}.result-description{font-size:14px;line-height:1.7;color:#c8c1b6;margin:10px 0}.result-shell .actions{margin-top:25px}.result-meta{margin-top:24px;font-size:10px;text-transform:uppercase;letter-spacing:2px;color:var(--muted)}.book-promo{border-top:1px solid #ffffff25;padding:28px 0 0;margin:35px auto 0;display:flex;align-items:center;justify-content:center;gap:25px}.book-promo p{text-align:left;color:var(--muted);font-size:12px;line-height:1.8;letter-spacing:1px}.share-fallback{margin:20px auto 0;max-width:560px}.share-fallback textarea{width:100%;background:#292823;color:var(--paper);border:1px solid #655f54;border-radius:8px;padding:14px;font:14px/1.5 Arial;min-height:100px}.share-fallback label{display:block;font-size:12px;margin-bottom:8px}.toast{position:fixed;z-index:10;bottom:25px;left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;padding:14px 24px;border-radius:28px;background:var(--paper);color:var(--ink);box-shadow:0 8px 25px #0006;font-size:13px;text-align:center}.noscript{text-align:center;padding:20px}
.figure img{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px)}
@media(min-width:760px) and (orientation:landscape){.memory-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.figure{aspect-ratio:.73}.crowd{aspect-ratio:1.12}.game-shell{max-width:760px}}
@media(max-width:1190px){#app{margin-left:40px;margin-right:40px}.site-footer{margin-left:40px;margin-right:40px}.home{gap:40px}}
@media(max-width:760px){.site-header{padding:25px 22px}.wordmark{font-size:29px}.round-label{font-size:8px;letter-spacing:1.6px}#app{margin-left:22px;margin-right:22px}.site-footer{margin-left:22px;margin-right:22px;margin-top:40px;font-size:8px;letter-spacing:1.2px}.home{grid-template-columns:1fr;gap:35px;padding:22px 0 0;text-align:center}.home-copy{display:contents}.home .eyebrow{grid-row:1;margin:0}.home h1{grid-row:2;font-size:clamp(28px,8.8vw,60px);margin:-14px 0 -18px}.intro-copy{grid-row:3;font-size:14px;max-width:330px;margin:0 auto;line-height:1.7}.hero-art{grid-row:4;width:min(330px,90%);margin:-10px auto -8px;aspect-ratio:1.13}.hero-art:before{font-size:130px;top:24%}.hero-art img:nth-child(1){height:76%;top:9%}.hero-art img:nth-child(2){height:76%;top:7%}.hero-art img:nth-child(3){height:67%;bottom:2%}.home-start{grid-row:5;margin-top:-8px}.how-to{margin-top:30px;gap:14px;text-align:left}.how-to p{font-size:11px}.home-note{font-size:10px}.game-shell{margin-top:22px}.game-heading{margin-bottom:23px}.game-heading h1{font-size:29px;letter-spacing:3px}.game-heading p:not(.eyebrow){font-size:12px;letter-spacing:.5px}.divider{margin:18px auto}.game-heading .eyebrow{font-size:9px;letter-spacing:2px}.memory-grid{padding:12px 8px;gap:5px 2px}.figure{padding:4px;aspect-ratio:.56}.board{border-radius:12px}.board-toolbar{font-size:8px;letter-spacing:1.3px}.button{min-height:56px;font-size:11px;padding:16px 24px;letter-spacing:1.6px}.actions .button{min-width:0;width:100%;max-width:350px}.actions{gap:10px;margin-top:22px}.result-shell{margin-top:28px}.result-shell h1{font-size:47px;letter-spacing:5px}.result-portrait{padding:25px;width:min(340px,80vw)}.result-description{font-size:13px}.result-meta{font-size:9px}.book-promo{flex-direction:column;gap:8px}.book-promo p{text-align:center}.decoration i:nth-child(1){left:-300px;top:160px}.decoration i:nth-child(3){width:50px;height:50px;left:-28px;top:330px}}
@media(max-width:350px){.wordmark{font-size:25px}.round-label{font-size:7px}#app{margin-left:14px;margin-right:14px}.site-header{padding:24px 14px}.memory-grid{padding:10px 5px}.figure{padding:3px}.game-heading h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:760px){.figure img{inset:4px;width:calc(100% - 8px);height:calc(100% - 8px)}}

.home-copy{min-width:0}.wordmark{white-space:nowrap}
.book-promo{max-width:680px;margin:64px auto 0;padding:42px 10px 0;display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:48px;text-align:left;align-items:center}
.book-cover{transform:rotate(-4deg);box-shadow:8px 13px 28px #0007;border:1px solid #45413a;border-radius:2px;overflow:hidden}
.book-cover img{width:100%;height:auto;display:block}
.book-copy .eyebrow{font-size:10px;letter-spacing:2.6px;color:var(--muted);margin:0 0 14px}
.book-copy h2{font-size:30px;font-weight:500;letter-spacing:1px;margin:0 0 15px}
.book-copy p{font-size:13px;line-height:1.9;letter-spacing:.5px;margin:0 0 18px}
.book-copy .book-availability{color:var(--paper);font-size:12px;letter-spacing:.7px;margin-bottom:0}
.result-shell .book-promo{max-width:570px;grid-template-columns:minmax(0,190px) minmax(0,1fr);margin-top:44px;gap:40px}
@media(max-width:760px){.book-promo,.result-shell .book-promo{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:24px;margin-top:42px;padding:30px 5px 0}.book-copy h2{font-size:21px;letter-spacing:0}.book-copy p{text-align:left;font-size:11px;line-height:1.7}.book-copy .eyebrow{font-size:8px;margin-bottom:10px}.book-copy .book-availability{font-size:11px}.book-copy p{margin-bottom:12px}}
@media(max-width:350px){.book-promo,.result-shell .book-promo{gap:18px}.book-copy h2{font-size:18px}.round-label{max-width:75px;line-height:1.5}}

/* The viewport, rather than a fixed board width, sets the playing area. */
:root{--header-height:64px;--footer-height:32px;--gutter:clamp(14px,3vw,40px)}
body{overflow-x:hidden}
.decoration{position:fixed;min-height:0;height:100dvh}
.site-header{width:100%;max-width:1560px;height:var(--header-height);padding:0 var(--gutter)}
#app{max-width:1480px;min-height:0;margin:0 var(--gutter)}
.site-footer{max-width:1480px;margin:30px var(--gutter) 0;padding:16px 0 20px}
body.is-playing .site-footer{display:none}
body.is-playing #app{height:calc(100dvh - var(--header-height) - 18px - env(safe-area-inset-bottom));margin-bottom:18px}
.game-shell{height:100%;max-width:none;min-height:0;margin:0;display:flex;flex-direction:column;gap:10px}
.play-copy{display:contents}
.game-shell .game-heading{order:0;margin:0;text-align:center}
.game-shell .game-heading .eyebrow{font-size:9px;letter-spacing:2px;margin:0 0 5px}
.game-shell .game-heading h1{font-size:clamp(25px,4vw,38px);letter-spacing:3px}
.game-shell .divider{display:none}
.game-shell .game-heading p:not(.eyebrow){font-size:12px;line-height:1.4;letter-spacing:.2px;margin:7px auto 0;max-width:440px}
.play-stage{order:1;flex:1;min-width:0;min-height:300px;display:flex;flex-direction:column;gap:8px}
.board-toolbar{margin:0;min-height:18px;font-size:9px;letter-spacing:1px}
#board-mount{flex:1;min-height:0;position:relative}
#board-mount>.board{width:100%;height:100%;min-height:0}
.memory-grid{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));padding:clamp(7px,1.3vw,18px);gap:clamp(2px,.6vw,8px)}
.figure{aspect-ratio:auto;min-height:0;padding:0}
.figure img{inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);object-fit:contain}
.crowd{aspect-ratio:auto;background:radial-gradient(ellipse at 50% 48%,#fffaf0 0%,var(--paper) 72%)}
.memory-progress{flex-shrink:0;margin:0;height:3px}
.game-shell .actions{order:2;flex-shrink:0;margin:0;gap:8px}
.game-shell .actions:empty{display:none}
.game-shell .actions .button{width:100%;max-width:360px;min-width:0;min-height:48px;padding:12px 22px;font-size:11px}
.game-shell .board-note{order:3;margin:0;font-size:10px;line-height:1.4;text-align:center;color:var(--muted)}
@media(max-height:680px) and (orientation:portrait){
  :root{--header-height:52px}
  .game-shell{gap:7px}
  .game-shell .game-heading h1{font-size:23px}
  .game-shell .game-heading p:not(.eyebrow){font-size:10px;margin-top:4px}
  .game-shell .game-heading .eyebrow{font-size:8px;margin-bottom:3px}
  .game-shell .board-note{font-size:9px}
  .game-shell .actions .button{min-height:44px;padding:10px 16px}
  .play-stage{gap:5px}
}
@media(min-width:640px) and (orientation:landscape){
  :root{--header-height:72px}
  body.is-playing #app{height:calc(100dvh - var(--header-height) - 24px - env(safe-area-inset-bottom));margin-bottom:24px}
  .game-shell{display:grid;grid-template-columns:clamp(205px,23vw,300px) minmax(0,1fr);gap:clamp(20px,3.5vw,58px);align-items:stretch}
  .play-copy{display:flex;flex-direction:column;justify-content:center;align-items:stretch;min-width:0;gap:22px}
  .game-shell .game-heading{text-align:left}
  .game-shell .game-heading .eyebrow{font-size:10px;letter-spacing:2.5px;margin-bottom:16px}
  .game-shell .game-heading h1{font-size:clamp(27px,3vw,44px);letter-spacing:2px;line-height:1.2}
  .game-shell .divider{display:block;margin:22px 0}
  .game-shell .game-heading p:not(.eyebrow){font-size:14px;line-height:1.7;margin:0;letter-spacing:.4px}
  .game-shell .actions{justify-content:flex-start;order:1}
  .game-shell .actions .button{font-size:11px;letter-spacing:1.3px;min-height:54px;gap:12px;padding:16px 20px;max-width:none}
  .game-shell .board-note{font-size:11px;text-align:left;line-height:1.6;order:2;max-width:250px}
  .play-stage{min-height:0;min-width:0;height:100%;gap:10px}
  .board-toolbar{min-height:22px;font-size:10px;letter-spacing:1.4px}
  .memory-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr))}
}
@media(min-width:640px) and (max-height:560px) and (orientation:landscape){
  :root{--header-height:44px;--gutter:18px}
  .wordmark{font-size:26px}
  body.is-playing #app{height:calc(100dvh - var(--header-height) - 10px);margin-bottom:10px}
  .game-shell{grid-template-columns:180px minmax(0,1fr);gap:18px}
  .play-copy{gap:12px}
  .game-shell .game-heading .eyebrow{font-size:8px;margin-bottom:9px}
  .game-shell .game-heading h1{font-size:25px;letter-spacing:1px}
  .game-shell .divider{margin:12px 0}
  .game-shell .game-heading p:not(.eyebrow){font-size:11px;line-height:1.5}
  .game-shell .actions .button{min-height:44px;padding:10px 14px;font-size:9px;letter-spacing:.5px;gap:8px}
  .game-shell .board-note{font-size:9px;line-height:1.5}
  .board-toolbar{font-size:8px;min-height:16px}
  .play-stage{gap:6px}
  .memory-grid{padding:6px;gap:3px}
}
/* Keep all primary content on a typical desktop screen, including the book. */
@media(min-width:900px) and (min-height:600px) and (orientation:landscape){
  :root{--header-height:72px}
  #app{width:calc(100% - var(--gutter)*2);margin:0 auto 20px}
  #app[data-phase=home],#app[data-phase=result]{height:calc(100dvh - var(--header-height) - var(--footer-height) - 20px);min-height:0}
  body:not(.is-playing) .site-footer{width:calc(100% - var(--gutter)*2);height:var(--footer-height);padding:8px 0;margin:0 auto}
  #app[data-phase=home]{display:grid;grid-template-columns:1.15fr 1fr;grid-template-rows:minmax(0,1fr) 170px;gap:20px 44px}
  .home{grid-column:1 / -1;min-height:0;padding:10px 0 16px;gap:36px;grid-template-columns:1.15fr 1fr}
  .home-copy{padding-left:clamp(0px,2vw,24px)}
  .home .eyebrow{margin-bottom:16px}
  .home h1{font-size:clamp(38px,4.5vw,68px);margin:16px 0 20px}
  .intro-copy{font-size:16px;line-height:1.7;margin:0 0 24px;max-width:none}
  .hero-art{height:100%;width:auto;max-height:min(44dvh,410px);max-width:100%;aspect-ratio:1.1;justify-self:center}
  .hero-art:before{font-size:clamp(110px,16dvh,180px)}
  .home-note{margin-top:12px}
  .how-to{margin:0;padding-top:22px;gap:22px;align-self:stretch}
  .book-promo{max-width:none;width:100%;margin:0;padding:14px 0 0;grid-template-columns:130px minmax(0,1fr);gap:28px;align-self:stretch}
  .book-copy .eyebrow{font-size:9px;margin-bottom:7px}
  .book-copy h2{font-size:25px;margin-bottom:9px}
  .book-copy p{font-size:12px;margin-bottom:10px;line-height:1.7}
  .book-copy .book-availability{font-size:11px}
  .result-shell{max-width:1150px;margin:0 auto;height:100%;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:minmax(0,1fr) 160px;gap:18px 50px;align-items:center}
  .result-portrait{grid-column:1;grid-row:1 / 3;width:min(100%,48dvh);margin:0 auto;padding:32px}
  .result-details{grid-column:2;grid-row:1;min-width:0}
  .result-shell .game-heading{margin-bottom:14px}
  .result-shell h1{font-size:clamp(38px,6dvh,68px)}
  .result-shell .game-heading .eyebrow{margin-bottom:10px}
  .result-shell .divider{margin:14px auto}
  .result-time{font-size:34px;margin-bottom:7px}
  .result-description{font-size:12px;margin:8px 0}
  .result-shell .actions{margin-top:15px;gap:12px}
  .result-shell .button{min-height:48px;padding:12px 25px}
  .result-meta{margin:12px 0 0;font-size:9px}
  .result-shell #book-area{grid-column:2;grid-row:2;align-self:stretch}
  .result-shell .book-promo{max-width:none;height:100%;margin:0;padding:12px 15px 0;grid-template-columns:125px minmax(0,1fr);gap:25px}
  .share-fallback{margin-top:8px}
}
@media(min-width:900px) and (min-height:600px) and (max-height:740px) and (orientation:landscape){
  #app[data-phase=home]{grid-template-rows:minmax(0,1fr) 135px;gap:15px 35px}
  .home{padding:5px 0 8px}
  .home .eyebrow{font-size:9px;margin-bottom:9px}
  .home h1{font-size:44px;margin:10px 0 14px}
  .intro-copy{font-size:13px;margin-bottom:16px}
  .home .button{min-height:46px;padding:12px 24px}
  .home-note{font-size:10px;margin-top:8px}
  .how-to{padding-top:15px}.how-to p{font-size:11px}.step-num{margin-bottom:6px}
  .book-promo{grid-template-columns:100px minmax(0,1fr);padding-top:8px;gap:20px}
  .book-copy h2{font-size:21px;margin-bottom:5px}.book-copy p{font-size:11px;margin-bottom:7px}.book-copy .book-availability{font-size:10px}
  .result-shell{grid-template-rows:minmax(0,1fr) 125px;gap:10px 35px}
  .result-shell .book-promo{grid-template-columns:95px minmax(0,1fr);gap:20px}
  .result-shell h1{font-size:35px}.result-shell .game-heading .eyebrow{font-size:8px;margin-bottom:6px}
  .result-shell .divider{margin:9px auto}.result-shell .game-heading p:not(.eyebrow){font-size:11px}.result-shell .game-heading{margin-bottom:9px}
  .result-time{font-size:28px}.result-description{font-size:11px}
  .result-shell .actions{margin-top:9px}.result-shell .button{min-height:44px;padding:10px 22px}.result-meta{margin-top:7px}
  .result-shell .subtle-link{padding:7px 3px;font-size:11px}
}
@media(min-width:1560px){#app{margin-left:auto;margin-right:auto}.site-footer{margin-left:auto;margin-right:auto}}

.progress-spacer{height:3px;flex-shrink:0}

/* One instruction at a time; the original wordmark carries the branding. */
:root{--ink:#1a1919;--footer-height:0px}
.site-header{background:var(--ink)}
.wordmark{display:block;width:clamp(154px,18vw,240px);line-height:0;flex-shrink:0}
.wordmark img{display:block;width:100%;height:auto}
.home .home-invitation{font-family:Arial,Helvetica,sans-serif;font-weight:400;font-size:clamp(30px,3.6vw,56px);line-height:1.18;letter-spacing:-1.3px;white-space:normal;max-width:540px;margin:0 0 30px}
.game-shell .game-heading h1{text-transform:none;letter-spacing:-.6px}
.board-toolbar{justify-content:flex-end}
.result-time .time-label{display:block;font-size:11px;line-height:1.5;letter-spacing:1.3px;margin:0 0 8px;color:var(--muted)}
.result-shell .game-heading p:not(.eyebrow){margin-top:12px}
@media(max-width:760px){
  .home{gap:28px}
  .home .home-invitation{grid-row:1;font-size:clamp(28px,8vw,42px);max-width:390px;margin:6px auto 0;letter-spacing:-.8px}
  .home .hero-art{grid-row:2;margin:0 auto}
  .home .home-start{grid-row:3;margin:0}
}
@media(min-width:900px) and (min-height:600px) and (orientation:landscape){
  #app[data-phase=home]{grid-template-rows:minmax(0,1fr) 150px}
  .home + .book-promo{grid-column:1 / -1;justify-self:center;max-width:490px;grid-template-columns:120px minmax(0,1fr);padding-top:12px}
  .home .hero-art{max-height:min(48dvh,450px)}
  .result-shell{grid-template-rows:minmax(0,1fr) 150px}
  .result-shell .game-heading{margin-bottom:24px}
}
@media(min-width:900px) and (min-height:600px) and (max-height:740px) and (orientation:landscape){
  #app[data-phase=home]{grid-template-rows:minmax(0,1fr) 125px}
  .home + .book-promo{grid-template-columns:98px minmax(0,1fr);max-width:430px;padding-top:8px}
  .home .home-invitation{font-size:40px;margin-bottom:24px}
  .result-shell{grid-template-rows:minmax(0,1fr) 125px}
}
@media(min-width:640px) and (max-height:560px) and (orientation:landscape){.wordmark{width:148px}}

/* Book information sits beside the bookshop note, without another sales button. */
.book-stock{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.book-info-link{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;border:1px solid #8b857a;border-radius:50%;text-decoration:none;font:italic 20px Georgia,serif;color:var(--paper);transition:background .15s}
.book-info-link:hover{background:#ffffff16}
.book-promo .book-availability{margin:0}
.books-page{max-width:1320px;margin:10px auto 50px}
.books-back{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:8px 0;background:none;color:var(--muted);font-size:13px}
.books-back:hover{color:var(--paper)}
.books-back span{font-size:24px}
.books-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:clamp(35px,5vw,80px);padding:32px 16px 36px}
.books-art{display:flex;gap:24px;align-items:center;min-width:0;padding:28px 5px 70px}
.books-art figure{flex:1;min-width:0;margin:0;transform:rotate(-6deg)}
.books-art figure+figure{transform:translateY(54px) rotate(5deg)}
.books-art img{width:100%;height:auto;border-radius:2px;box-shadow:12px 22px 30px #0008;border:1px solid #48433b}
.books-art figcaption{font-size:13px;color:var(--muted);text-align:center;margin-top:20px}
.books-story h1{font-size:clamp(32px,3.3vw,48px);font-weight:400;letter-spacing:-1.5px;line-height:1.1;margin:0 0 24px}
.books-story p{font-size:15px;line-height:1.75;color:#ccc7bd;margin:0 0 20px}
.books-story .books-lead{font-size:clamp(19px,1.65vw,23px);line-height:1.5;color:var(--paper);letter-spacing:-.3px}
.books-story .books-stock{font-size:12px;letter-spacing:.6px;color:var(--paper);border-top:1px solid var(--line);padding-top:20px;margin-bottom:0}
.header-tools{display:flex;align-items:center;gap:20px}
.statistics-link{font-size:11px;color:var(--muted);padding:10px 0;min-height:44px;background:none;text-decoration:underline;text-underline-offset:4px}
.consent-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:30px;border:1px solid #6a645a;border-radius:18px;background:var(--ink);color:var(--paper);box-shadow:0 24px 100px #000a}
.consent-dialog::backdrop{background:#0009}
.consent-dialog h2{font-size:24px;font-weight:400;letter-spacing:-.4px;margin:0 0 18px}
.consent-dialog p{font-size:14px;line-height:1.65;margin:0 0 16px}
.consent-dialog .consent-detail{font-size:12px;color:var(--muted)}
.privacy-link{font-size:12px;text-underline-offset:3px;line-height:1.6}
.consent-dialog .consent-current{font-size:12px;color:var(--muted);margin-top:18px}
.consent-actions{display:flex;gap:12px;margin-top:24px}
.consent-actions button{flex:1;background:var(--paper);color:var(--ink);min-height:46px;border-radius:30px;padding:12px 14px;font-size:12px}
.consent-actions button:hover{background:#fff}
@media(max-width:900px){
  .books-layout{grid-template-columns:1fr;gap:34px;padding:10px 0 20px;max-width:650px;margin:auto}
  .books-art{max-width:570px;width:100%;margin:auto;padding:24px 18px 62px;gap:28px}
  .books-art figure+figure{transform:translateY(30px) rotate(5deg)}
  .books-story h1{margin-bottom:20px}
  .books-story p{font-size:15px}
  .books-story .books-lead{font-size:21px}
}
@media(max-width:480px){
  .header-tools{gap:10px}.statistics-link{font-size:10px}
  .site-header{gap:10px}.round-label{font-size:8px;letter-spacing:.8px}
  .book-stock{gap:5px}.book-info-link{width:34px;height:34px}
  .books-page{margin-top:0}.books-layout{gap:16px}
  .books-art{padding-left:10px;padding-right:10px;gap:18px}
  .books-art figcaption{font-size:11px;margin-top:14px}
  .books-story p{font-size:14px}.books-story .books-lead{font-size:19px}
  .consent-dialog{padding:24px}.consent-actions{gap:8px}
}
@media(max-width:350px){.header-tools{gap:6px}.statistics-link{font-size:9px}.site-header .wordmark{width:140px}.round-label{font-size:7px}}

/* Three distinct silhouettes, with the warm colour at the centre. */
.home .hero-art{aspect-ratio:1;border-radius:50%}
.home .hero-art:before{content:none}
.home .hero-art img:nth-child(1){left:-2%;right:auto;top:9%;bottom:auto;width:42%;height:82%;transform:scale(1.1);transform-origin:center;z-index:1}
.home .hero-art img:nth-child(2){left:39%;right:auto;top:9%;bottom:auto;width:32%;height:82%;transform:scale(1.1);transform-origin:center;z-index:3}
.home .hero-art img:nth-child(3){left:auto;right:-2%;top:9%;bottom:auto;width:28%;height:82%;transform:scale(1.1);transform-origin:center;z-index:2}
.book-stock{align-items:flex-start;flex-direction:column;gap:14px}
.book-info-link{width:auto;height:auto;min-height:48px;gap:16px;justify-content:space-between;padding:12px 20px;border-radius:30px;background:var(--paper);border:1px solid var(--paper);color:var(--ink);font:500 14px/1.2 Arial,Helvetica,sans-serif;white-space:nowrap}
.book-info-link span{font-size:21px;font-weight:400}
.book-info-link:hover{background:#fff}
.book-copy .book-availability{font-size:12px;letter-spacing:.2px;line-height:1.5}
@media(max-width:480px){
  .book-stock{gap:10px}.book-info-link{font-size:12px;padding:11px 15px;gap:10px;min-height:46px}
  .book-copy .book-availability{font-size:11px}
}
@media(max-width:350px){.book-info-link{font-size:11px;padding:10px 12px;gap:8px}.book-info-link span{font-size:18px}}
/* Keep the book invitation within reach on shorter phones too. */
@media(max-width:760px){
  .home .hero-art{width:min(330px,90%,max(180px,calc(100svh - 455px)));height:auto}
  .book-promo,.result-shell .book-promo{grid-template-columns:94px minmax(0,1fr);max-width:420px;gap:22px;margin-top:28px;padding:20px 0 0}
  .book-copy .book-availability{font-size:12px}
  .book-info-link{font-size:13px;min-height:48px;padding:11px 16px}
}
@media(max-width:350px){
  .book-promo,.result-shell .book-promo{grid-template-columns:80px minmax(0,1fr);gap:16px}
  .book-info-link{font-size:12px;padding:10px 13px}
  .book-copy .book-availability{font-size:11px}
}
@media(max-width:760px){
  .result-shell{margin-top:12px}
  .result-portrait{width:clamp(140px,calc(100svh - 490px),240px);padding:20px;margin:0 auto 16px}
  .result-shell h1{font-size:38px;letter-spacing:3px}
  .result-shell .game-heading{margin-bottom:14px}
  .result-shell .game-heading p:not(.eyebrow){margin-top:8px}
  .result-shell .actions{margin-top:14px}
  .result-shell .actions + .actions{margin-top:4px}
  .result-shell .button{min-height:48px;padding:12px 22px}
  .result-shell .book-promo{margin-top:16px}
}
.subtle-link:focus-visible{outline:1px solid var(--muted);outline-offset:3px;border-radius:4px}
