@font-face { font-family: 'Plex'; src: url('fonts/IBMPlexSans-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('fonts/IBMPlexSans-SemiBold.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex'; src: url('fonts/IBMPlexSans-Bold.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('fonts/IBMPlexMono-Medium.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
:root { color-scheme: light; font: 17px/1.55 'Plex', 'Segoe UI', sans-serif; color: #211e1b; background: #f4f1ea; --accent: #bb2027; --line: #cec9bf; --paper: #fffcf7; --ink: #211e1b; --muted: #696157; --mono: 'Plex Mono', Consolas, monospace; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1457bc; outline-offset: 4px; }
.site-header { display: flex; max-width: 1320px; margin: auto; padding: 24px 38px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.site-header nav, .links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.site-header nav a { font-size: .85rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.85rem; font-weight: 700; letter-spacing: -.07em; line-height: 1; }
.brand::before { content: ''; width: 12px; height: 27px; background: var(--accent); display: block; }
.brand span { color: var(--accent); margin-left: -9px; }
main { max-width: 1240px; margin: auto; padding: 34px 38px 72px; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; font-size: .69rem; font-weight: 500; letter-spacing: .055em; color: var(--accent); }
h1,h2,h3,p { margin: 0 0 16px; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; font-weight: 600; letter-spacing: -.055em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.15; font-weight: 600; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.lead { font-size: 1.16rem; max-width: 47ch; line-height: 1.5; }
.links { margin-top: 26px; gap: 12px; }
.primary, .secondary, .choice { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 1px solid var(--accent); border-radius: 2px; padding: 11px 18px; text-decoration: none; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; background: var(--paper); color: var(--accent); overflow-wrap: anywhere; transition: background .15s, color .15s; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #90171d; border-color: #90171d; }
.secondary { background: transparent; border-color: #a59a8d; color: var(--ink); }
.choice { justify-content: flex-start; text-align: left; }
.choice:hover,.secondary:hover { background: #e9e3d8; }
.panel { border: 1px solid var(--line); border-radius: 2px; background: var(--paper); padding: 30px; }
footer { max-width: 1320px; margin: auto; padding: 25px 38px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.game { max-width: 880px; }
.game > .eyebrow { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.game h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.stack { display: grid; gap: 14px; align-items: start; }
.stack p,.stack h2 { margin-bottom: 0; }
.outcome { border-left: 4px solid var(--accent); padding: 14px 16px; background: #f7e6de; }
.field { display: grid; gap: 6px; font-weight: 600; }
input:not([type=checkbox]), select, textarea { color: inherit; width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #8c8275; border-radius: 2px; background: #fff; }
.check { display: flex; gap: 10px; align-items: center; }
details { padding: 7px 0; }
details form { margin-top: 10px; }
summary { cursor: pointer; min-height: 44px; padding-block: 8px; }
.help-note { padding: 0; margin: 8px 0 0; color: #34433a; font-size: .88rem; }
.help-note > summary { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 600; color: #275846; }
.help-note > summary::-webkit-details-marker { display: none; }
.help-icon { flex: 0 0 23px; width: 23px; height: 23px; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; line-height: 1; }
.help-note[open] .help-icon { color: white; background: #275846; border-color: #275846; }
.help-note > p { margin: 0 0 10px; padding: 8px 12px; border-left: 2px solid #4a725f; background: #eef2e9; }
fieldset { min-width: 0; border: 1px solid var(--line); }
.timer { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.timer output { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--accent); background: #f7e6de; padding: 7px 11px; }
.panel > button { margin: 4px 8px 4px 0; }
.report { overflow-wrap: anywhere; }
@media (max-width: 710px) { .site-header, main { padding-inline: 20px; } .site-header { align-items: center; gap: 12px; } .site-header nav { gap: 4px 12px; } .site-header nav a { font-size: .78rem; } .brand { font-size: 1.65rem; } .panel { min-width: 0; padding: 22px; } footer { padding-inline: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@page { size: A4; margin: 16mm; }
@media print { body { background: white; color: black; font-size: 11pt; } .site-header, .game > p, .controls, .help-note { display: none !important; } main, .panel { padding: 0; border: 0; } .panel h1 { font-size: 21pt; } .report p { margin-bottom: 6pt; } }
