:root {
  color-scheme: light;
  font: 16px/1.55 "Instrument Sans", "Segoe UI", sans-serif;
  color: #152b2a;
  background: #f5f6f0;
  --green: #14433d;
  --line: #c7d1c8;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #906000; outline-offset: 4px; }
.site-header { display: flex; max-width: 1160px; margin: auto; padding: 22px 28px; align-items: center; justify-content: space-between; gap: 20px; }
.site-header nav, .links { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.site-header nav a { text-underline-offset: 4px; }
.brand { text-decoration: none; font-size: 1.7rem; font-weight: 800; letter-spacing: -.08em; }
.brand span { color: #47685b; }
main { max-width: 1160px; margin: auto; padding: 24px 28px 64px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; min-height: 490px; gap: clamp(24px, 7vw, 96px); }
.eyebrow { text-transform: uppercase; font-size: .78rem; font-weight: 750; letter-spacing: .12em; }
h1,h2,h3,p { margin: 0 0 14px; }
h1 { font-size: clamp(2.2rem, 5.7vw, 4.5rem); line-height: 1.03; letter-spacing: -.055em; }
h2 { font-size: 1.55rem; line-height: 1.18; }
.lead { font-size: 1.16rem; max-width: 44ch; }
.hero-card { background: #103d36; color: #f7fbeb; border-radius: 20px; padding: clamp(23px, 4vw, 48px); box-shadow: 0 20px 55px #10251c23; }
.hero-card .eyebrow { color: #c8e4c8; }
.amount { font-size: clamp(3.2rem, 6vw, 5rem); font-weight: 750; line-height: 1.05; letter-spacing: -.06em; }
.timeline { border-top: 1px solid #ffffff50; margin-top: 30px; padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #eee4b7; }
.links { margin-top: 25px; gap: 10px; }
.primary, .secondary, .choice { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid var(--green); border-radius: 8px; padding: 9px 15px; text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; background: white; color: var(--green); }
.primary { background: var(--green); color: white; }
.secondary { background: transparent; }
.choice { justify-content: flex-start; text-align: left; }
.choice:hover,.secondary:hover { background: #e3eee4; }
.format { margin-top: 35px; border-top: 1px solid var(--line); padding-top: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid article, .panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 24px; }
footer { max-width: 1160px; margin: auto; padding: 0 28px 28px; color: #476155; }
.game { max-width: 780px; }
.game h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.stack { display: grid; gap: 11px; align-items: start; }
.stack p,.stack h2 { margin-bottom: 0; }
.outcome { border-left: 4px solid #52735a; padding: 12px; background: #e9f2e9; }
.field { display: grid; gap: 4px; font-weight: 600; }
input:not([type=checkbox]), select, textarea { font: inherit; color: inherit; width: 100%; padding: 7px 9px; border: 1px solid #637b71; border-radius: 5px; background: white; }
.check { display: flex; gap: 10px; align-items: center; }
details { padding: 4px 0; }
details form { margin-top: 10px; }
summary { cursor: pointer; }
fieldset { min-width: 0; border: 1px solid var(--line); }
.timer { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.timer output { font-variant-numeric: tabular-nums; font-weight: 700; }
.panel > button { margin: 4px 8px 4px 0; }
.report { overflow-wrap: anywhere; }
@media (max-width: 710px) {
  .hero,.grid { grid-template-columns: 1fr; }
  .site-header, main { padding-inline: 17px; }
  .site-header { align-items: flex-start; }
  .site-header nav { gap: 4px 12px; }
}
@page { size: A4; margin: 16mm; }
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .game > p, .controls { display: none !important; }
  main, .panel { padding: 0; border: 0; }
  .panel h1 { font-size: 21pt; }
  .report p { margin-bottom: 6pt; }
}
