:root{--ink:#20382e;--accent:#d8b64c;--muted:#617069;--line:#dfe5df;--paper:#f6f7f2;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper)}button,a,input{font:inherit}a{color:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b18a24;outline-offset:4px}.front{max-width:1160px;margin:auto;padding:26px 32px 50px}.front-header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:25px;border-bottom:1px solid var(--line)}.front-brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:20px;font-weight:700;letter-spacing:-.5px}.front-mark{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;background:var(--ink);color:#f5d771;font-size:26px}.front-nav{display:flex;gap:22px;align-items:center;font-size:16px}.front-nav a{text-decoration:none}.front-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:65px;align-items:center;padding:62px 0 40px}.front-kicker{font-size:14px;font-weight:650;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}.front h1{font-size:clamp(42px,5.8vw,74px);line-height:1.04;letter-spacing:-3px;margin:20px 0 24px;font-weight:650}.front-lead{font-size:21px;line-height:1.6;color:var(--muted);max-width:510px}.front-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.play-primary,.play-secondary{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:56px;padding:15px 24px;border-radius:14px;text-decoration:none;font-weight:600;font-size:18px;border:1px solid transparent;cursor:pointer}.play-primary{background:var(--ink);color:#fff}.play-secondary{border-color:#cdd7cd;background:transparent;color:var(--ink)}.front-meta{font-size:16px;line-height:1.6;color:var(--muted);margin-top:18px}.front-card{border-radius:28px;border:1px solid #dce3d8;background:#fff;padding:28px;box-shadow:0 28px 75px #263e2910;transform:rotate(2deg)}.front-card .case-number{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted)}.front-card h2{font-size:28px;letter-spacing:-.7px;line-height:1.2;margin:20px 0}.front-card p{font-size:18px;line-height:1.5;color:var(--muted)}.front-objects{display:flex;gap:14px;align-items:center;justify-content:center;background:#f4f5ed;border-radius:20px;min-height:180px;margin:24px 0}.front-object{width:110px;min-height:120px;border:1px solid #e1e5d9;border-radius:18px;display:grid;place-items:center;background:white;padding:13px}.front-object svg{width:64px;height:64px}.front-object span{font-size:15px}.front-plus{font-size:28px;color:#a5ad9d}.front-foot{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:24px;padding-top:24px;font-size:16px;color:var(--muted);line-height:1.6}.front-foot a{text-underline-offset:4px}.login-panel{max-width:530px;background:#fff;padding:25px;border:1px solid var(--line);border-radius:20px;margin:25px 0}.login-panel h2{font-size:25px;margin:0 0 10px}.account-providers{display:grid;gap:10px;margin:18px 0}.account-providers button,.account-providers a{display:flex;align-items:center;gap:14px;width:100%;min-height:53px;border:1px solid #dce3d8;border-radius:12px;padding:13px 16px;text-decoration:none;background:white;color:var(--ink);font-size:17px;font-weight:500;cursor:pointer}.account-status{font-size:16px;line-height:1.5;color:var(--muted);margin:14px 0 0}.provider-mark{width:25px;text-align:center;font-weight:700}.login-close{float:right;background:none;border:none;font-size:22px;cursor:pointer}.front [hidden],.account-providers [hidden]{display:none!important}
/* The active puzzle is the focus; readable controls and restrained journal accents. */
body:has(.app){background:#f6f7f2}.app{background:#fff}.app header{margin-bottom:16px}.app .primary{background:#254638;color:#fff;border-radius:13px}.app .rank{background:#f3f5ed}.app .stage{background:#f4f5ed;border:1px solid #e2e6d9;box-shadow:inset 0 0 80px #dbe1cf25}.app .target{background:#e7eddc;border:1px dashed #a6b49b}.app .item{border:1px solid #e5e7df;box-shadow:0 8px 20px #2338210d;border-radius:16px}.app .item.selected{border-color:#8eaa82;background:#f2f6e9}.app .journal-details{margin-top:18px}.app .game-brief .journal-details,.app .release-note,.app .discussion-link{display:none}.app .reader-site-link{font-size:16px;padding-bottom:12px}.app .feedback{font-size:18px;min-height:58px}.app .controls button{font-size:17px;border:1px solid #e5e8df;min-height:48px}.app .race-panel{font-size:17px;background:#fafbf7;border-color:#e0e6d9;margin:22px 0;padding:18px}.app .race-panel p,.app .race-panel a{font-size:16px;line-height:1.6}.app .game-brief h2{font-size:clamp(28px,3vw,41px);letter-spacing:-1px;margin:18px 0}.app .game-brief>p{font-size:20px;line-height:1.6}.app .desktop-instructions{margin-top:18px;padding-top:16px}.app .desktop-instructions p{font-size:17px;line-height:1.5}.app .item span{font-size:16px}.app .account-entry{font-size:16px;padding:10px 13px;background:#fff;border:1px solid #dce3d8;border-radius:11px;text-decoration:none}.app .nav{margin-top:18px}.app .nav button{font-size:16px}.app .field-label{font-size:16px}.app .stage{height:clamp(380px,calc(100svh - 290px),650px)}.app .game-brief .decision{font-size:17px;padding:13px}.app .language-switch{box-shadow:none}.account-notice:empty{display:none}
@media(min-width:900px){.app{max-width:1440px;padding:22px 38px;margin:18px auto;border:1px solid #e5e9de;border-radius:24px;min-height:calc(100svh - 36px)}.desktop-game{grid-template-columns:290px minmax(0,1fr);gap:35px}.app .race-panel{grid-column:1/-1;max-width:none}.app .brand{font-size:22px}}
@media(max-width:760px){.front{padding:20px 22px 35px}.front-brand{font-size:18px}.front-nav{gap:14px}.front-nav .history-nav{display:none}.front-hero{grid-template-columns:1fr;gap:28px;padding:34px 0}.front h1{letter-spacing:-1.8px;font-size:45px;margin-top:16px}.front-lead{font-size:19px}.front-card{transform:none;padding:23px}.front-card h2{font-size:25px}.front-objects{min-height:145px;margin:20px 0}.front-foot{flex-direction:column;gap:10px}.front-actions a,.front-actions button{flex:1}.app{padding:18px 18px 80px;min-width:0;max-width:100%;border-radius:0}.app header{gap:9px;flex-wrap:wrap;padding-bottom:14px}.app .brand{font-size:20px}.app .brand small{font-size:10px}.app .rank{font-size:15px;padding:9px}.app .score{font-size:22px}.app .account-entry{margin-left:auto}.app .stage{height:auto;aspect-ratio:360/420;border-radius:20px}.app .item{width:82px;min-height:92px;padding:6px}.app .item svg{width:47px;height:47px}.app .item span{font-size:14px}.app .field-label{font-size:14px}.app .target{font-size:15px}.app .feedback{font-size:17px}.app .controls{gap:6px}.app .controls button{padding:11px 6px;font-size:15px}.app .g-top .eyebrow{font-size:14px}.app .game-brief h2{margin:12px 0}.app .game-brief>p{font-size:19px;margin:10px 0 16px}.app .decision{font-size:16px}.app .race-panel p{font-size:16px}.front-nav a{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(max-width:760px){.app .item{min-height:84px}.app .stage-many{aspect-ratio:360/590;min-height:590px}.app .reader-site-link{font-size:15px;max-width:100%;margin:0 16px 0 0}.app .game-brief .decision{font-size:16px}.app .target{max-height:35%}}
.app h1,.app h2{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:650}.app .brand{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:650}
@media(max-width:760px){.app .reader-site-link,.app .desktop-instructions,.app .decision{display:none}.app .game-brief .g-top{margin-top:6px}.app .game-brief h2{font-size:29px}.app header{margin-bottom:10px}.app .account-entry{padding:8px 12px}.app .brand{font-size:18px}.app .brand small{font-size:9px}.app .rank{font-size:14px}}
.discovery{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;margin:40px 0 25px;padding:24px 5px}.discovery-sheet{background:#f7f3e8;color:#343a2d;border:1px solid #ddd7c6;padding:28px;transform:rotate(-12deg);box-shadow:4px 16px 40px #26301b19;font-family:Georgia,serif;transition:transform .25s}.discovery-sheet.is-straight{transform:none}.discovery-sheet h2{font:600 28px/1.15 Georgia,serif;letter-spacing:-.5px;margin:20px 0}.discovery-sheet p,.discovery-sheet blockquote{font:19px/1.55 Georgia,serif;color:#3e4338;margin:14px 0}.paper-kicker{font:13px/1.4 Georgia,serif;letter-spacing:1px;border-bottom:3px double #acaa97;padding-bottom:12px}.paper-art img{width:100%;height:auto;max-height:260px;object-fit:contain;margin:18px 0}.discovery-sheet small{font:14px/1.6 Georgia,serif}.discovery-reading p{font-size:18px;line-height:1.7;color:#4d6255}.discovery-reading h3{font-size:20px}.discovery-reading .paper-caption{font-size:14px;color:#75816e}.discovery-reading a{font-size:16px}.screen-success>.primary{margin-bottom:35px}
@media(max-width:760px){.discovery{grid-template-columns:1fr;gap:25px;padding:0 10px;margin-top:28px}.discovery-sheet{transform:rotate(-3deg);padding:24px}.discovery-reading p{font-size:18px}.discovery-sheet h2{font:600 28px/1.15 Georgia,serif!important}.discovery-sheet blockquote{font-size:19px}.screen-success h1{font-size:42px}}

/* The revised multi-object pack needs readable labels and enough space between its two rows. */
.app .game-workspace .stage-revised{min-height:660px}
.app .game-workspace .stage-revised .item{width:28%;max-width:126px;padding:10px 5px}
.app .game-workspace .stage-revised .item span{overflow-wrap:normal;word-break:normal;hyphens:auto;font-size:16px;line-height:1.25}
@media(max-width:600px){.app .game-workspace .stage-revised .item{max-width:102px;min-height:102px;padding:8px 4px}.app .game-workspace .stage-revised .item span{font-size:14px;line-height:1.25}}
@media(max-width:760px){.app .game-workspace .stage-revised{min-height:600px}}

/* Informational, organizer-verified 140-puzzle challenge. */
.king-challenge{display:grid;grid-template-columns:100px minmax(0,1fr);gap:28px;margin:32px 0 44px;padding:34px;border:1px solid #d9dfc8;border-radius:26px;background:#eef1df}.king-symbol{font-size:90px;line-height:1.2;color:#71834c;text-align:center}.king-copy{min-width:0}.king-copy h2{font-size:clamp(28px,3.6vw,42px);line-height:1.12;letter-spacing:-1.3px;margin:12px 0 18px}.king-copy>p{font-size:19px;line-height:1.65;max-width:800px;margin:12px 0;color:#405444}.king-copy .king-terms{font-size:15px;color:#5c6c55}.king-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:24px}.king-actions>span{font-size:14px;line-height:1.6;color:#5c6c55;overflow-wrap:anywhere}.king-actions>span a{text-underline-offset:3px}.king-actions .play-primary{font-size:16px;min-height:50px}@media(max-width:600px){.king-challenge{grid-template-columns:1fr;gap:12px;padding:24px 20px;margin-top:20px}.king-symbol{font-size:56px;text-align:left;line-height:1}.king-copy h2{font-size:31px}.king-copy>p{font-size:17px}.king-actions{align-items:flex-start;flex-direction:column}.king-actions .play-primary{width:100%}}
/* Mobile inventory: readable labels within the existing three-column spacing. */
@media (max-width: 760px) {
  .app .game-workspace .stage .item {
    width: min(96px, calc(31% - 6px));
    max-width: none;
    padding: 7px 3px;
  }
  .app .game-workspace .stage .item span {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}
