:root{--bg:#172024;--surface:#e8dfca;--text:#27383a;--muted:#6d786c;--primary:#405c4c;--accent:#d9b97a;--radius:12px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--font-body:system-ui,'Microsoft YaHei',sans-serif;--font-size:16px}body{font-family:var(--font-body);line-height:1.6}.engine-guide,.engine-comments{max-width:800px;margin-left:auto;margin-right:auto}.engine-launch{max-width:1120px;margin-left:auto;margin-right:auto}.engine-guide p{max-width:70ch}.engine-actions button{min-height:44px;transition:background-color 150ms}.engine-actions button:hover{background:var(--surface)}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}@media(max-width:640px){.engine-launch{padding-left:0;padding-right:0}.engine-actions{display:flex;flex-wrap:wrap}.engine-actions button{min-height:44px}.engine-guide{padding:0 16px}.engine-home .engine-cover img{object-fit:cover;object-position:65% center}}
.engine-home .home-hero{margin-top:0}.engine-home .hero-game-name{display:block;font:700 14px/1.5 DM,Arial,sans-serif;letter-spacing:3px;margin-bottom:16px;color:#d9b97a}.engine-home .hero-actions{gap:16px}.engine-home .hero-select{border:1px solid #d9b97a;color:#f5eede;background:transparent;box-shadow:none}.engine-home .hero-select:hover{background:#d9b97a22}.engine-home .engine-social{margin-top:0;padding-top:24px;padding-bottom:24px}.engine-home .hero-copy h1{font-size:48px;line-height:1.2}.engine-home .hero-copy h1>span:not(.hero-game-name){color:inherit}@media(max-width:640px){.engine-home .hero-copy h1{font-size:36px}.engine-home .hero-actions .button{flex:1;min-width:130px}.engine-home .hero-actions .quiet-link{flex-basis:100%}.engine-home .engine-social{padding:16px 0}}
.engine-home main .home-hero{margin-top:0}.engine-home .hero-copy h1{font-weight:400}



/* Keep the complete hero and five utility cards in the opening desktop viewport. */
.engine-home .case-tools{position:relative;margin-top:0;margin-bottom:24px;padding-top:12px;padding-bottom:12px}
.engine-home .case-tools .tool-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.engine-home .case-tools .tool-links>a,.engine-home .case-tools .tool-links>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:104px;margin:0;padding:12px 8px;border:1px solid #b9aa87;border-radius:4px;background:#faf5e7;color:#27383a;font:inherit;text-align:center;cursor:pointer;transition:background-color 150ms,border-color 150ms}
.engine-home .case-tools .tool-links>a:hover,.engine-home .case-tools .tool-links>button:hover{background:#eee3c9;border-color:#9e793e;text-decoration:none}
.engine-home .case-tools .tool-links>button[data-gf-liked]{background:#e8ddbf;border-color:#9e793e}
.engine-home .case-tools .tool-links .tool-icon{width:30px;height:30px;color:#a47c37}
.engine-home .case-tools .tool-links .tool-icon svg{width:26px;height:26px}
.engine-home .case-tools .tool-links b{font-size:16px;line-height:1.4;font-weight:500}
.engine-home .case-tools .tool-links small{font-size:12px;line-height:1.4;color:#7b785f}
.engine-home .home-share-msg{position:absolute;right:0;bottom:-12px;font-size:12px;margin:0;color:#405c4c}
.engine-home .home-share-msg:empty{display:none}
@media(min-width:901px){
 .engine-home .site-header{min-height:64px}
 .engine-home main .home-hero{height:calc(100svh - 204px);min-height:0;box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);padding-top:12px;padding-bottom:12px;align-items:center}
 .engine-home .home-hero .hero-copy{min-width:0}
 .engine-home .home-hero .hero-copy>.eyebrow{font-size:12px;line-height:1.5;margin:0 0 8px}
 .engine-home .home-hero .hero-copy h1{font-size:clamp(30px,4.8svh,44px);line-height:1.14;margin:0 0 12px}
 .engine-home .home-hero .hero-game-name{font-size:12px;line-height:1.4;margin-bottom:8px}
 .engine-home .home-hero .hero-description{font-size:14px;line-height:1.7;margin:0 0 14px}
 .engine-home .home-hero .hero-actions{gap:12px}
 .engine-home .home-hero .hero-actions .button{min-height:44px;padding:10px 16px;font-size:13px;gap:16px}
 .engine-home .home-hero .hero-actions .quiet-link{font-size:12px}
 .engine-home .home-hero .hero-note{font-size:12px;line-height:1.6;margin:10px 0 0}
 .engine-home .home-hero .save-explainer{font-size:12px;line-height:1.6;margin-top:8px}
 .engine-home .home-hero .local-progress{font-size:12px;line-height:1.6;margin-top:8px}
 .engine-home .home-hero .scene-preview{width:100%;max-width:calc(100svh - 260px);padding:14px 16px 12px;transform:none;justify-self:end}
 .engine-home .home-hero .scene-top{font-size:12px;line-height:1.4;padding-bottom:6px;margin-bottom:8px}
 .engine-home .home-hero .preview-map{width:min(100%,calc(clamp(150px,100svh - 462px,400px) + 24px));margin:0 auto;padding:18px 0 0 24px}
 .engine-home .home-hero .preview-columns{left:24px;font-size:12px}
 .engine-home .home-hero .preview-rows{font-size:12px}
 .engine-home .home-hero .preview-clue-note{gap:8px;margin-top:8px;padding:6px 8px}
 .engine-home .home-hero .preview-clue-note p,.engine-home .home-hero .preview-clue-note>span{font-size:12px;line-height:1.5}
 .engine-home .home-hero .preview-bottom{margin-top:8px}
 .engine-home .home-hero .preview-help{font-size:12px;line-height:1.5;min-height:0;margin:6px 0 0}
 .engine-home .home-hero .preview-footnote{font-size:12px;line-height:1.4;margin:4px 0 0}
}
@media(min-width:901px) and (max-height:700px){.engine-home .home-hero .hero-copy>.eyebrow{display:none}.engine-home .home-hero .hero-description{font-size:13px}.engine-home .home-hero .hero-note{font-size:12px}.engine-home .case-tools .tool-links>a,.engine-home .case-tools .tool-links>button{min-height:96px;padding:8px}.engine-home .case-tools .tool-links b{font-size:15px}}
@media(max-width:900px){.engine-home main .home-hero{grid-template-columns:1fr;gap:24px;padding-top:24px;padding-bottom:24px}.engine-home .home-hero .scene-preview{width:min(100%,360px);transform:none}.engine-home .case-tools .tool-links{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.engine-home .case-tools .tool-links>a,.engine-home .case-tools .tool-links>button{min-height:88px;padding:8px 2px}.engine-home .case-tools .tool-links b{font-size:12px}.engine-home .case-tools .tool-links small{display:none}.engine-home .case-tools .tool-links .tool-icon{width:26px;height:26px}.engine-home .case-tools .tool-links .tool-icon svg{width:24px;height:24px}}


/* Brass marks and paper dossier tabs, matching the game's archive materials. */
.engine-home .case-tools .tool-links{gap:10px;counter-reset:archive-action}
.engine-home .case-tools .tool-links>a,.engine-home .case-tools .tool-links>button{counter-increment:archive-action;position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:1fr 1fr;column-gap:12px;row-gap:2px;align-content:center;justify-content:initial;align-items:end;min-height:104px;padding:20px 14px 18px;border:1px solid var(--primary);border-radius:2px;background:linear-gradient(105deg,var(--surface),#faf5e7 42%,var(--surface));color:var(--text);text-align:left;box-shadow:inset 0 0 0 3px var(--surface),inset 0 0 0 4px rgba(158,121,62,.18),0 2px 0 rgba(0,0,0,.06);overflow:hidden}
.engine-home .case-tools .tool-links>a:before,.engine-home .case-tools .tool-links>button:before{content:counter(archive-action,decimal-leading-zero);position:absolute;right:8px;top:5px;color:var(--muted);font:12px/1 Georgia,serif;letter-spacing:1px;opacity:.65}
.engine-home .case-tools .tool-links>a:after,.engine-home .case-tools .tool-links>button:after{content:'';position:absolute;left:9px;top:14px;bottom:14px;width:1px;background:rgba(158,121,62,.25)}
.engine-home .case-tools .tool-links .tool-icon{grid-row:1/3;align-self:center;display:grid;place-items:center;width:44px;height:48px;margin:0;color:var(--accent);background:var(--bg);border:1px solid var(--primary);border-radius:2px;box-shadow:inset 0 0 0 3px var(--bg),inset 0 0 0 4px rgba(217,185,122,.28)}
.engine-home .case-tools .tool-links .tool-icon svg{width:32px;height:32px}
.engine-home .case-tools .tool-links b{align-self:end;font-family:'Songti SC','SimSun',Georgia,serif;font-size:17px;font-weight:500;line-height:1.4;letter-spacing:.5px;white-space:nowrap}
.engine-home .case-tools .tool-links small{align-self:start;display:block;font-size:12px;line-height:1.5;color:var(--muted);white-space:nowrap;letter-spacing:0}
.engine-home .case-tools .tool-links>a:hover,.engine-home .case-tools .tool-links>button:hover{background:linear-gradient(105deg,var(--surface),#eee3c9 48%,var(--surface));border-color:var(--primary);text-decoration:none}
.engine-home .case-tools .tool-links>a:hover .tool-icon,.engine-home .case-tools .tool-links>button:hover .tool-icon{color:var(--accent);background:var(--bg)}
.engine-home .case-tools .tool-links>button[data-gf-liked]{background:#e8ddbf;border-color:var(--primary)}
.engine-home .case-tools .tool-links>button[data-gf-liked] .tool-icon{color:var(--accent);background:var(--bg);border-color:var(--primary)}
@media(min-width:901px) and (max-height:700px){.engine-home .case-tools .tool-links>a,.engine-home .case-tools .tool-links>button{min-height:96px;padding:16px 12px 14px}.engine-home .case-tools .tool-links b{font-size:16px}}
@media(min-width:901px) and (max-width:1150px){.engine-home .case-tools .tool-links>a,.engine-home .case-tools .tool-links>button{grid-template-columns:36px minmax(0,1fr);column-gap:8px;padding-left:12px;padding-right:8px}.engine-home .case-tools .tool-links .tool-icon{width:36px;height:44px}.engine-home .case-tools .tool-links .tool-icon svg{width:28px;height:28px}.engine-home .case-tools .tool-links b{font-size:15px}.engine-home .case-tools .tool-links small{white-space:normal;font-size:12px}}
@media(max-width:900px){.engine-home .case-tools .tool-links{gap:6px}.engine-home .case-tools .tool-links>a,.engine-home .case-tools .tool-links>button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:88px;padding:10px 2px 8px;text-align:center}.engine-home .case-tools .tool-links .tool-icon{width:32px;height:36px;align-self:center}.engine-home .case-tools .tool-links .tool-icon svg{width:25px;height:25px}.engine-home .case-tools .tool-links b{align-self:auto;font-size:12px;letter-spacing:0}.engine-home .case-tools .tool-links small{display:none}.engine-home .case-tools .tool-links>a:before,.engine-home .case-tools .tool-links>button:before{display:none}.engine-home .case-tools .tool-links>a:after,.engine-home .case-tools .tool-links>button:after{left:4px;top:8px;bottom:8px}}