:root { color-scheme: dark; font-family: "IBM Plex Sans", system-ui, sans-serif; background: #101a3c; color: #f6f2e7; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 50% -20%, #344b78, #101a3c 58%); }
button { font: inherit; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.game-shell { margin: 0 auto; max-width: 1080px; padding: 28px 20px 44px; }
.game-header { align-items: end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 18px; }
.eyebrow { color: #d3ece9; font-size: .72rem; font-weight: 700; letter-spacing: .14em; margin: 0 0 8px; text-transform: uppercase; }
h1, h2 { font-family: Georgia, serif; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.04em; line-height: .95; }
.tagline { color: #ffb45d; font-size: .98rem; margin: 10px 0 0; }
.scoreboard { display: flex; gap: 14px; text-align: right; }
.scoreboard div { min-width: 70px; }
.scoreboard span { color: #aabbd2; display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.scoreboard strong { color: #fff1bd; display: block; font-size: 1.3rem; margin-top: 3px; }
.play-wrap { background: #101a3c; border: 2px solid #d3ece9; border-radius: 18px; box-shadow: 8px 8px 0 #0b1027; overflow: hidden; position: relative; }
.stage-frame { aspect-ratio: 960 / 620; position: relative; }
canvas { display: block; height: 100%; image-rendering: auto; touch-action: none; width: 100%; }
.start-card, .status-card { background: rgba(16, 26, 60, .94); border: 2px solid #fff1bd; border-radius: 14px; left: 50%; max-width: 430px; padding: 28px; position: absolute; text-align: center; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); }
.start-card h2, .status-card h2 { color: #fff1bd; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.start-card p:not(.eyebrow), .status-card p:not(.eyebrow) { color: #d3ece9; line-height: 1.55; margin: 0 0 22px; }
[hidden] { display: none !important; }
.primary-button, .restart-control { background: #fff1bd; border: 2px solid #fff1bd; border-radius: 999px; color: #101a3c; cursor: pointer; font-weight: 700; padding: 12px 20px; }
.primary-button:hover, .restart-control:hover, .action-button:hover { background: #d3ece9; border-color: #d3ece9; }
.primary-button:focus-visible, .restart-control:focus-visible, .action-button:focus-visible { outline: 3px solid #ffb45d; outline-offset: 3px; }
.orchard-controls { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin: 24px 0 34px; }
.phase-hint { color: #aabbd2; flex: 1 1 100%; margin: 0; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.action-button { align-items: center; border: 2px solid #d3ece9; border-radius: 12px; color: #101a3c; cursor: pointer; display: flex; font-weight: 700; gap: 10px; min-height: 56px; padding: 10px 18px; }
.action-button:disabled { cursor: not-allowed; opacity: .38; }
.action-button--water { background: #d3ece9; }
.action-button--harvest { background: #ffb45d; border-color: #ffb45d; }
.action-button span { font-size: 1.3rem; }
.action-button small { font-size: .72rem; font-weight: 600; opacity: .72; }
.instructions { border-top: 1px solid #426184; display: grid; gap: 20px; grid-template-columns: 1fr 1fr; padding-top: 24px; }
.instructions h2 { color: #fff1bd; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.control-list { display: grid; gap: 9px 18px; grid-template-columns: 1fr 1fr; margin: 0; }
.control-list div { align-items: center; display: flex; gap: 9px; justify-content: space-between; }
.control-list dt { white-space: nowrap; }
.control-list dd { color: #aabbd2; margin: 0; text-align: right; }
kbd { background: #263c65; border: 1px solid #d3ece9; border-radius: 4px; color: #fff1bd; display: inline-block; font-size: .8rem; min-width: 1.55em; padding: .18em .35em; text-align: center; }
.instruction-note { color: #aabbd2; grid-column: 1 / -1; line-height: 1.5; margin: 0; }
.footer-note { color: #7184a5; font-size: .85rem; margin: 30px 0 0; }
@media (max-width: 600px) { .game-shell { padding: 20px 14px 30px; } .game-header { align-items: start; flex-direction: column; } .scoreboard { text-align: left; } .orchard-controls { align-items: stretch; } .action-row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .action-button { justify-content: center; min-width: 0; padding-inline: 8px; } .restart-control { align-self: flex-start; } .instructions { grid-template-columns: 1fr; } .control-list { grid-template-columns: 1fr 1fr; } }
