@font-face {
  font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-italic.ttf') format('truetype'); font-style: italic; font-weight: 400; font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #101211; --surface: #171b18; --surface-raised: #202520;
  --ink: #f1f0e8; --muted: #9da69c; --line: #30372f;
  --green: #d5ec9b; --green-dark: #d5ec9b; --pink: #f49aab; --gold: #e6c888;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .38; }
button, a, input { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
svg { display: inline-block; vertical-align: middle; }
::selection { color: var(--paper); background: var(--green); }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-shell { max-width: 1536px; margin: auto; padding: 0 54px; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.brand svg { width: 29px; height: 29px; color: var(--green); transform: rotate(-15deg); }
.brand > span { font: 43px/1 var(--serif); letter-spacing: -1.3px; }
.brand-dot { color: var(--green); }
nav { display: flex; align-items: center; gap: 38px; }
nav button { height: 88px; position: relative; padding: 0 2px; font-size: 12px; color: var(--muted); transition: color .2s; }
nav button.nav-active { color: var(--ink); }
nav button.nav-active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--green); }
.tiny-flower { color: var(--pink); font-size: 15px; margin-left: 4px; }
.header-tools { display: flex; gap: 8px; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; position: relative; color: #bec5b8; transition: border-color .2s, color .2s, background .2s; }
.icon-button svg { width: 18px; height: 18px; }
.mute-slash { position: absolute; width: 21px; height: 1.5px; background: currentColor; transform: rotate(-48deg); box-shadow: 0 0 0 2px var(--paper); }
.sound-toggle[aria-pressed=true] .mute-slash { display: none; }
.intro { display: flex; align-items: center; justify-content: space-between; padding: 29px 0 31px; }
.eyebrow { font-size: 9px; letter-spacing: 1.8px; font-weight: 500; line-height: 1.5; text-transform: uppercase; color: var(--muted); }
.intro .eyebrow { font-size: 9px; letter-spacing: 2.4px; display: flex; align-items: center; gap: 10px; }
.little-line { height: 5px; width: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px #d5ec9b33; }
.intro h1 { font: 400 clamp(48px, 4.8vw, 76px)/.96 var(--serif); letter-spacing: -2px; margin: 14px 0 15px; }
.intro h1 em { color: var(--green); font-weight: 400; }
.hero-period { color: var(--pink); }
.intro-copy { color: var(--muted); font-size: 12px; letter-spacing: .1px; line-height: 1.8; }
.intro-note { display: flex; align-items: center; gap: 25px; margin-right: 4px; }
.edition-mark { font: italic 70px/1 var(--serif); color: var(--pink); letter-spacing: -3px; }
.intro-note p { font-size: 9px; color: var(--muted); letter-spacing: 1.4px; line-height: 2.1; }
.intro-note em { font: italic 20px/1.5 var(--serif); color: #c4c8ba; letter-spacing: 0; }
.play-layout { display: grid; grid-template-columns: 188px minmax(0, 1fr) 192px; gap: 30px; align-items: start; }
.rail-heading { font-size: 8px; letter-spacing: 1.5px; color: var(--muted); margin: 7px 0 18px; }
.mode-list { display: grid; gap: 4px; }
.mode-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 79px; padding: 12px 10px; border: 1px solid transparent; border-radius: 10px; text-align: left; position: relative; transition: background .2s, border-color .2s; }
.mode-button.selected { background: #d5ec9b0b; border-color: #d5ec9b33; }
.mode-icon { display: grid; place-items: center; width: 30px; height: 36px; flex-shrink: 0; color: var(--green); }
.mode-icon svg { width: 23px; height: 23px; }
.mode-button[data-mode=endless] .mode-icon { color: #b9a2eb; }
.mode-button[data-mode=daily] .mode-icon { color: var(--gold); }
.mode-button strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; }
.mode-button small { display: block; font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 5px; }
.mode-arrow { position: absolute; right: 10px; top: 15px; font-size: 13px; color: var(--green); }
.new-dot { width: 4px; height: 4px; position: absolute; right: 12px; top: 17px; background: #b9a2eb; border-radius: 50%; }
.journey-card { border-top: 1px solid var(--line); margin: 28px 6px 0; padding-top: 23px; }
.journey-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #c3c9bc; }
.journey-top strong { font-weight: 400; font-size: 14px; }
.journey-top strong span { color: var(--gold); margin-left: 3px; }
.journey-card progress { height: 3px; margin: 17px 0 10px; }
.journey-card p { font-size: 10px; color: var(--muted); }
.text-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 17px; min-height: 44px; padding: 0; font-size: 11px; color: var(--green); }
.text-button span { font-size: 17px; }
.journey-card .text-button { margin-top: 8px; width: 100%; }
.botanical-note { margin: 26px 0 0; padding: 0 7px; color: var(--muted); }
.botanical { display: none; }
.botanical-note::before { content: '∞'; display: block; font: italic 96px/.9 var(--serif); color: #373f33; margin-bottom: 12px; }
.botanical-note p { font: 20px/1.2 var(--serif); }
.botanical-note em { color: #c4c9ba; }
.game-panel { background: #151915; border: 1px solid #343c31; border-radius: 20px; padding: 20px 20px 0; overflow: hidden; box-shadow: 0 18px 70px #00000020; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin-bottom: 18px; }
.game-heading .eyebrow { font-size: 8px; letter-spacing: 1.5px; color: var(--green); margin-bottom: 6px; }
.game-heading h2 { font: 28px/1 var(--serif); letter-spacing: -.3px; }
.game-controls { display: flex; gap: 5px; }
.game-controls .icon-button { width: 34px; height: 38px; border: 0; border-radius: 8px; color: var(--muted); }
.game-controls .icon-button svg { width: 17px; height: 17px; }
.garden-field { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 24/14; background: #101511; border: 1px solid #30392c; border-radius: 12px; }
canvas { display: block; width: 100%; height: 100%; border-radius: inherit; touch-action: none; cursor: crosshair; outline-offset: -4px !important; }
canvas:focus-visible { outline: 2px solid var(--green); }
.field-tag { position: absolute; bottom: 14px; left: 10px; right: 10px; color: #a4b198; font-size: 7px; text-align: center; letter-spacing: 1.8px; pointer-events: none; opacity: .7; }
.field-tag span { display: inline-block; width: 3px; height: 3px; background: currentColor; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.field-overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 28px; background: #101511e8; backdrop-filter: blur(8px); }
.field-overlay:empty { display: none; }
.overlay-motif { width: 53px; height: 53px; color: var(--green); transform: rotate(-12deg); margin-bottom: 18px; }
.overlay-eyebrow { text-transform: uppercase; font-size: 8px; letter-spacing: 2.4px; color: var(--green); margin-bottom: 12px; }
.field-overlay h2 { font: 40px/1.04 var(--serif); font-weight: 400; letter-spacing: -1px; margin-bottom: 14px; max-width: 460px; }
.field-overlay h2 em { color: var(--green); font-weight: 400; }
.field-overlay .overlay-copy { max-width: 330px; color: #adb7a7; font-size: 12px; line-height: 1.8; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 12px 21px; background: var(--green); color: #1a2315; border: 1px solid var(--green); border-radius: 50px; font-size: 12px; font-weight: 600; transition: background .2s, transform .2s, box-shadow .2s; }
.primary-button > span:last-child { display: grid; place-items: center; font-size: 19px; line-height: 1; }
.primary-button svg { width: 16px; height: 16px; }
.field-overlay .primary-button, .field-overlay .secondary-button { margin-top: 24px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 21px; font-size: 12px; border: 1px solid #57624d; border-radius: 50px; color: #e0e6d8; background: #171d16; transition: border-color .2s; }
.overlay-small { margin-top: 15px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.field-overlay[data-screen=intro] { align-items: flex-start; text-align: left; padding: 34px; background: #101211; backdrop-filter: none; }
.field-overlay[data-screen=intro] > :not(.intro-art) { position: relative; z-index: 1; }
.field-overlay[data-screen=intro] h2 { font-size: clamp(38px, 3.7vw, 58px); line-height: .98; max-width: 68%; letter-spacing: -1.2px; }
.field-overlay[data-screen=intro] .overlay-copy { max-width: 60%; font-size: 11px; }
.field-overlay[data-screen=intro] .overlay-small { max-width: 70%; font-size: 8px; }
.intro-art { position: absolute; top: -5%; right: -6%; width: 75%; height: 110%; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 45%); }
.intro-art img { width: 100%; height: 100%; object-fit: cover; opacity: .85; mix-blend-mode: lighten; }
.art-caption { position: absolute; right: 28px; bottom: 27px; font-size: 7px; letter-spacing: 2px; color: #c2b2bc; writing-mode: vertical-rl; }
.overlay-stars { color: var(--gold); font-size: 31px; letter-spacing: 9px; margin-bottom: 16px; }
.overlay-stars .empty { color: #4e5844; }
.result-stats { display: flex; gap: 29px; justify-content: center; margin-top: 23px; }
.result-stats > div { color: var(--muted); font-size: 10px; line-height: 1.8; }
.result-stats strong { display: block; font: 32px/1.2 var(--serif); color: var(--ink); margin-bottom: 5px; }
.overlay-actions { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.chain-label { position: absolute; top: 16px; right: 16px; padding: 11px 15px; border: 1px solid #d5ec9b40; border-radius: 11px; background: #121b12dd; backdrop-filter: blur(8px); color: var(--green); text-align: center; pointer-events: none; }
.chain-label strong { display: block; font: 35px/1 var(--serif); }
.chain-label span { font-size: 8px; letter-spacing: .4px; }
progress { appearance: none; border: 0; border-radius: 4px; width: 100%; height: 3px; display: block; overflow: hidden; background: #333b2e; }
progress::-webkit-progress-bar { background: #333b2e; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 4px; transition: width .35s; }
progress::-moz-progress-bar { background: var(--green); border-radius: 4px; }
.game-bottom { display: flex; align-items: center; gap: 23px; margin: 21px 1px 19px; }
.flower-progress { flex: 1; min-width: 0; }
.flower-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10px; color: var(--muted); margin-bottom: 12px; }
.flower-progress strong { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.count-separator { color: #707c65; }
.seed-stock, .score-box { border-left: 1px solid var(--line); padding-left: 22px; }
.seed-stock > span, .score-box > span { display: block; color: var(--muted); font-size: 9px; margin-bottom: 9px; white-space: nowrap; }
.seed-stock > div { display: flex; gap: 6px; }
.seed-dot { color: var(--green); font-size: 22px; line-height: 18px; }
.seed-dot.used { color: #444e3d; }
.score-box { min-width: 78px; text-align: right; }
.score-box strong { font: 26px/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.score-box small { font: 8px var(--sans); color: var(--muted); }
.game-instructions { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding: 8px 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.mouse-mark { font-size: 17px; color: var(--green); margin-right: 3px; }
.game-instructions button { margin-left: auto; padding: 0 0 0 6px; min-height: 35px; white-space: nowrap; font-size: 9px; }
.game-instructions button span { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid #68755d; border-radius: 50%; margin-left: 4px; font-size: 9px; }
.right-rail { padding-top: 7px; }
.objectives-card { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.objectives-card > .eyebrow { color: var(--pink); font-size: 8px; letter-spacing: 1.7px; }
.objectives-card h3 { font: 28px/1.05 var(--serif); margin: 12px 0 15px; letter-spacing: -.4px; }
.objective-copy { color: var(--muted); font-size: 11px; line-height: 1.9; }
.star-targets { display: grid; gap: 16px; margin-top: 25px; }
.star-target { display: flex; align-items: center; gap: 12px; font-size: 11px; }
.star-target .star-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #4b4837; border-radius: 50%; color: var(--gold); font-size: 14px; background: #24251d; }
.star-target.achieved .star-icon { color: #1b2115; background: var(--green); border-color: var(--green); }
.star-target strong { font-size: 11px; font-weight: 500; color: #e1e4d8; }
.star-target small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.field-guide { margin-top: 26px; }
.guide-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.guide-heading .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
.guide-heading > button { width: 36px; height: 36px; font-size: 18px; color: var(--muted); }
.legend-item { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.legend-flower { width: 30px; height: 30px; flex-shrink: 0; }
.legend-item strong { display: block; font-size: 11px; font-weight: 500; }
.legend-item small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.tip-note { display: flex; gap: 10px; margin-top: 27px; border-top: 1px solid var(--line); padding-top: 18px; }
.tip-note > span { font: 23px/1 var(--serif); color: var(--pink); }
.tip-note p { font: italic 17px/1.3 var(--serif); color: #bec5b5; }
.level-strip { margin: 30px 222px 0 218px; padding-top: 21px; border-top: 1px solid var(--line); }
.strip-header { display: flex; align-items: center; justify-content: space-between; }
.strip-header .eyebrow { font-size: 8px; letter-spacing: 1.7px; }
.strip-header h3 { font: 25px/1.1 var(--serif); margin-top: 6px; }
.strip-header .text-button { font-size: 10px; }
.level-path { position: relative; display: flex; justify-content: space-between; margin: 26px 0 8px; gap: 8px; }
.level-path::before { content: ''; position: absolute; top: 21px; left: 20px; right: 20px; border-top: 1px solid var(--line); z-index: -1; }
.level-node { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; min-width: 36px; }
.level-node .node-circle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--paper); font-size: 12px; }
.level-node.current .node-circle { background: var(--green); border-color: var(--green); color: #1a2413; box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px #536443; }
.level-node.done .node-circle { background: #2b3524; border-color: #4a5b39; color: var(--green); }
.node-stars { height: 14px; color: var(--gold); font-size: 8px; letter-spacing: 1px; }
.level-node:disabled { opacity: .55; }
.lock-icon { position: relative; display: block; width: 10px; height: 9px; margin-top: 4px; border: 1px solid #7e8973; border-radius: 2px; }
.lock-icon::before { content: ''; position: absolute; width: 6px; height: 6px; left: 1px; top: -6px; border: 1px solid #7e8973; border-bottom: 0; border-radius: 4px 4px 0 0; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); margin-top: 35px; padding: 22px 0; font-size: 9px; color: var(--muted); }
footer button { color: #c5cfba; font-size: 10px; padding: 8px; }
.save-state { font-size: 9px; }
.save-state.error { color: #ffa6a0; }
.skip-link { position: absolute; top: -60px; left: 20px; z-index: 100; padding: 12px; color: #152012; background: var(--green); border-radius: 6px; }
.skip-link:focus { top: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
dialog { width: min(800px, calc(100% - 40px)); max-height: 88dvh; padding: 29px 34px 36px; color: var(--ink); background: #191e19; border: 1px solid #46513c; border-radius: 23px; box-shadow: 0 30px 100px #0009; overflow: auto; }
dialog::backdrop { background: #080d09b8; backdrop-filter: blur(9px); }
.modal-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.modal-heading .eyebrow { color: var(--green); }
.close-button { width: 44px; height: 44px; border: 1px solid #46513c; border-radius: 50%; color: #c8d1bf; font: 29px/1 var(--serif); }
.modal-heading + h2 { font: 46px/1.05 var(--serif); letter-spacing: -1px; margin: 4px 0 27px; }
.modal-copy { color: #aab5a1; font-size: 13px; line-height: 1.9; margin-bottom: 21px; }
.garden-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 24px; }
.garden-tab { min-height: 82px; padding: 12px 10px; text-align: left; border: 1px solid #3c4735; border-radius: 9px; color: #c6cebe; font-size: 11px; line-height: 1.5; }
.garden-tab span { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.garden-tab.active { color: var(--green); border-color: #9eaf7d; background: #d5ec9b0b; }
.map-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.map-level { min-height: 116px; padding: 18px; border: 1px solid #3b4633; border-radius: 11px; text-align: left; background: #20271d; }
.map-level strong { display: block; font: 34px var(--serif); margin-bottom: 7px; color: #dde6d1; }
.map-level span { display: block; font-size: 11px; line-height: 1.6; }
.map-level small { display: block; color: var(--gold); margin-top: 10px; font-size: 11px; letter-spacing: 2px; }
.map-level.selected { border-color: var(--green); background: #2c3523; }
.section-tabs { display: flex; gap: 26px; margin-bottom: 23px; border-bottom: 1px solid #3d4735; }
.section-tabs button { color: var(--muted); font-size: 12px; min-height: 44px; padding: 0 0 13px; }
.section-tabs .active { color: var(--green); border-bottom: 2px solid var(--green); }
.achievement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.achievement { display: flex; gap: 14px; padding: 19px; border: 1px solid #3b4534; border-radius: 12px; background: #1c231a; }
.achievement.earned { background: #2b3221; border-color: #5b6845; }
.achievement-icon { flex-shrink: 0; width: 32px; color: #8b987e; text-align: center; font: 29px var(--serif); }
.achievement.earned .achievement-icon { color: var(--gold); }
.achievement h3 { font-size: 12px; font-weight: 500; line-height: 1.6; }
.achievement p { color: #a4b099; font-size: 11px; line-height: 1.7; margin-top: 5px; }
.achievement progress { height: 3px; margin-top: 11px; }
.achievement small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.herbarium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flower-card { position: relative; padding: 24px; border: 1px solid #414b37; border-radius: 13px; background: radial-gradient(ellipse at 20% 0, #3b3d2c44, transparent 75%), #20261d; }
.flower-card svg { width: 64px; height: 64px; margin-bottom: 20px; filter: drop-shadow(0 0 16px #eaa4b518); }
.flower-card h3 { font: 29px var(--serif); margin-bottom: 9px; }
.flower-card p { color: #b0bba4; font-size: 12px; line-height: 1.8; }
.flower-card.unseen { opacity: .58; }
.profile-summary { display: flex; align-items: center; gap: 20px; padding: 24px; border: 1px solid #4a553c; border-radius: 14px; background: #262e20; margin-bottom: 22px; }
.profile-summary > .rank-icon { font: 47px var(--serif); color: var(--green); }
.profile-summary h3 { font: 30px var(--serif); margin-bottom: 7px; }
.profile-summary p { color: #aeba9f; font-size: 11px; line-height: 1.8; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 24px; }
.profile-stats div { padding: 16px 5px; border: 1px solid #3e4936; border-radius: 10px; color: var(--muted); text-align: center; font-size: 10px; }
.profile-stats strong { display: block; font: 33px var(--serif); color: var(--green); margin-bottom: 6px; }
.skin-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.skin-button { padding: 20px 10px; min-height: 123px; border: 1px solid #3f4a35; border-radius: 12px; text-align: center; }
.skin-button.selected { border-color: var(--green); background: #d5ec9b0b; }
.skin-button svg { display: block; width: 43px; height: 43px; margin: 0 auto 13px; }
.skin-button strong { display: block; font-size: 11px; font-weight: 500; }
.skin-button small { display: block; color: var(--muted); font-size: 9px; margin-top: 7px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid #3a4532; }
.settings-row strong { display: block; font-size: 14px; font-weight: 500; }
.settings-row small { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 6px; }
.toggle { appearance: none; position: relative; width: 46px; height: 27px; flex-shrink: 0; border-radius: 30px; background: #414d36; cursor: pointer; transition: background .2s; }
.toggle::before { content: ''; position: absolute; left: 4px; top: 4px; width: 19px; height: 19px; background: #cdd7bd; border-radius: 50%; transition: transform .2s; }
.toggle:checked { background: var(--green); }
.toggle:checked::before { transform: translateX(19px); background: #26311b; }
.backup-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 25px; }
.backup-actions button { font-size: 12px; }
.storage-note { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 19px; }
.help-steps { display: grid; gap: 16px; margin-bottom: 24px; }
.help-step { display: flex; align-items: flex-start; gap: 20px; padding: 14px 0; }
.help-step > span { font: italic 37px var(--serif); color: var(--green); width: 34px; flex-shrink: 0; }
.help-step h3 { font: 29px var(--serif); margin-bottom: 8px; }
.help-step p { color: #acb79f; font-size: 13px; line-height: 1.9; }
.keyboard-note { border: 1px solid #3f4a35; background: #242c1e; padding: 17px 21px; border-radius: 10px; color: #b8c3ab; font-size: 12px; line-height: 2; }
kbd { display: inline-block; border: 1px solid #5b674e; border-radius: 4px; padding: 1px 5px; background: #303b25; color: var(--green); font: 11px/1.7 var(--sans); }
.boon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.boon-card { display: flex; flex-direction: column; min-height: 240px; padding: 24px 20px; text-align: left; border: 1px solid #4b543e; border-radius: 15px; background: linear-gradient(145deg, #33332b, #20251e 80%); transition: border-color .2s, transform .2s; }
.boon-card > .boon-icon { display: block; font: 37px var(--serif); color: #c3a9ef; margin-bottom: 20px; }
.boon-card h3 { font: 28px/1.1 var(--serif); margin-bottom: 13px; }
.boon-card p { color: #b0b8a4; font-size: 12px; line-height: 1.9; }
.boon-card small { margin-top: auto; padding-top: 24px; color: var(--green); font-size: 11px; }
.endless-hearts { color: var(--pink); font-size: 23px; letter-spacing: 6px; margin-bottom: 13px; }
.endless-boons { color: var(--muted); font-size: 10px; line-height: 2; margin-top: 18px; }
.endless-stat { color: var(--muted); font-size: 11px; line-height: 2; margin-top: 13px; }
.endless-stat strong { color: var(--green); }
.new-run-button { margin-top: 18px; width: 100%; }
.mode-status { display: flex; align-items: center; gap: 12px; padding: 0 2px 14px; min-height: 30px; color: #b0baa6; font-size: 10px; }
.mode-health { font-size: 20px; color: var(--pink); letter-spacing: 3px; }
.mode-status > span:last-child { margin-left: auto; font-size: 8px; }
.harvest-button { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; min-height: 46px; padding: 12px 21px; border: 1px solid var(--green); border-radius: 50px; background: #d5ec9bef; backdrop-filter: blur(8px); color: #1c2715; font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 5px 35px #0004; }
.toast-region { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 20; display: grid; gap: 9px; width: min(420px, calc(100% - 30px)); pointer-events: none; }
.toast { padding: 15px 20px; border: 1px solid #72845b; border-radius: 14px; background: #242d20f5; box-shadow: 0 10px 40px #0005; color: #d6dfcd; font-size: 12px; line-height: 1.8; animation: toast-in .3s ease-out; }
.toast strong { font-weight: 500; color: var(--green); }
.noscript { background: #252c1f; border: 1px solid var(--green); padding: 25px; position: fixed; inset: auto 20px 20px; z-index: 50; }
.game-panel:fullscreen { background: var(--paper); padding: 20px; width: 100vw; height: 100dvh; max-width: none; display: flex; flex-direction: column; align-items: center; border-radius: 0; overflow: auto; }
.game-panel:fullscreen .game-heading, .game-panel:fullscreen .game-bottom, .game-panel:fullscreen .game-instructions { width: min(100%, 1100px); flex-shrink: 0; }
.game-panel:fullscreen .garden-field { flex: 1; min-height: 200px; max-width: min(100%, 1100px); max-height: calc(100dvh - 190px); width: auto; height: 100%; }
.game-panel.expanded { position: fixed; inset: 12px; z-index: 10; max-width: 1100px; margin: auto; background: var(--paper); overflow: auto; box-shadow: 0 0 0 200vmax #080d09bb; }
.game-panel.expanded .garden-field { max-height: calc(100dvh - 220px); width: 100%; }
body:has(.expanded) { overflow: hidden; }
[hidden] { display: none !important; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes petal-arrival { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.intro-art img { animation: petal-arrival .9s cubic-bezier(.2,.7,.3,1) both; }
@media (hover: hover) {
  nav button:hover { color: var(--green); }
  .icon-button:not(:disabled):hover { color: var(--green); border-color: #6e7d5d; background: #d5ec9b08; }
  .mode-button:hover { background: #d5ec9b0a; }
  .primary-button:hover { background: #e5f5bd; box-shadow: 0 0 30px #d5ec9b15; transform: translateY(-1px); }
  .secondary-button:hover, .garden-tab:hover, .skin-button:not(:disabled):hover { border-color: var(--green); }
  .boon-card:hover { border-color: var(--green); transform: translateY(-3px); }
}
@media (max-width: 1250px) {
  .site-shell { padding: 0 30px; }
  .play-layout { grid-template-columns: 160px minmax(0, 1fr) 170px; gap: 23px; }
  .level-strip { margin-left: 183px; margin-right: 193px; }
  .mode-button { gap: 7px; padding: 10px 5px; }
  .mode-icon { width: 25px; }
  .mode-button strong { font-size: 11px; }
  .mode-button small { font-size: 9px; }
  .game-panel { padding: 16px 15px 0; }
  .game-heading h2 { font-size: 26px; }
  .game-heading .eyebrow { font-size: 7px; }
  .game-controls { gap: 1px; }
  .game-controls .icon-button { width: 28px; }
  .game-bottom { gap: 13px; }
  .seed-stock, .score-box { padding-left: 13px; }
  .game-instructions { flex-wrap: wrap; }
  .mode-status > span:last-child { display: none; }
  .intro-note { gap: 17px; }
  .edition-mark { font-size: 60px; }
  .intro-note em { font-size: 18px; }
  .field-overlay[data-screen=intro] { padding: 25px; }
  .field-overlay[data-screen=intro] h2 { max-width: 70%; }
}
@media (max-width: 1050px) {
  .play-layout { grid-template-columns: 165px minmax(0, 1fr); gap: 25px; }
  .right-rail { display: none; }
  .level-strip { margin-left: 190px; margin-right: 0; }
  .intro-note { display: none; }
  .intro h1 { font-size: 62px; }
  .field-overlay[data-screen=intro] h2 { font-size: 48px; }
}
@media (max-width: 700px) {
  .map-levels { grid-template-columns: 1fr 1fr; gap: 9px; }
  .achievement-grid { grid-template-columns: 1fr; }
  .herbarium-grid { gap: 10px; }
  .flower-card { padding: 19px 15px; }
  .flower-card h3 { font-size: 27px; }
  .skin-list { grid-template-columns: 1fr 1fr; }
  .boon-grid { grid-template-columns: 1fr; gap: 10px; }
  .boon-card { display: grid; grid-template-columns: 35px 1fr; gap: 0 13px; min-height: 0; padding: 18px; }
  .boon-card > .boon-icon { grid-row: 1/4; margin: 0; font-size: 31px; }
  .boon-card h3 { font-size: 26px; margin-bottom: 7px; }
  .boon-card small { padding-top: 9px; }
  .profile-summary { gap: 14px; padding: 18px; }
  .profile-summary h3 { font-size: 27px; }
  .profile-stats strong { font-size: 28px; }
  .profile-stats div { padding: 13px 4px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after { animation: none !important; transition: none !important; }
