:root {
  color-scheme: dark;
  --background: #171816;
  --text: #e7e5dc;
  --muted: #a3a398;
  --accent: #d9a66c;
  --line: #353630;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
::selection { background: var(--accent); color: var(--background); }
.page { width: min(1100px, calc(100% - 96px)); margin-inline: auto; }
.header { min-height: 127px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 16px; }
.brand-mark { font: 700 31px/1 var(--mono); letter-spacing: -4px; padding-right: 4px; }
.brand-mark > span { color: var(--accent); }
.brand-name { font: 700 12px/1.6 var(--mono); letter-spacing: 1.8px; }
.brand-name > span { display: block; font-size: 9px; color: var(--muted); font-weight: 400; letter-spacing: 1.35px; }
nav { display: flex; gap: 34px; font: 12px var(--mono); }
nav a { padding-block: 10px; }
nav a > [aria-hidden] { color: var(--muted); margin-left: 5px; }
nav a:hover, .text-link:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 30px; }
.language-switch { display: flex; align-items: center; gap: 5px; border-left: 1px solid var(--line); padding-left: 25px; font: 10px var(--mono); color: var(--muted); }
.language-switch[hidden] { display: none; }
.language-switch button { border: 0; background: none; color: var(--muted); cursor: pointer; min-height: 36px; padding: 8px 5px; font: inherit; }
.language-switch button:hover, .language-switch button[aria-pressed="true"] { color: var(--accent); }
.intro { padding-top: 63px; }
.eyebrow, .small-label { font: 10px/1.6 var(--mono); letter-spacing: 1.8px; color: var(--muted); }
.eyebrow { display: flex; gap: 10px; align-items: center; margin: 0 0 25px; }
.status-dot { height: 6px; width: 6px; background: var(--accent); border-radius: 50%; }
.intro-grid { display: grid; grid-template-columns: 1fr 290px; gap: 40px; align-items: end; }
h1 { font-size: clamp(56px, 6.8vw, 88px); line-height: 1.06; letter-spacing: -4.8px; font-weight: 400; margin: 0; }
h1 > .accent { color: var(--accent); }
.intro-copy { padding-bottom: 4px; }
.intro-copy > p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 13px 0 21px; }
.intro-copy .small-label { color: var(--text); letter-spacing: 1.3px; }
.text-link { display: inline-flex; gap: 25px; align-items: center; font: 11px var(--mono); }
.text-link > [aria-hidden] { color: var(--accent); }
.landscape { margin-top: 22px; }
.scene-hud { display: flex; align-items: center; gap: 24px; min-height: 46px; flex-wrap: wrap; }
.scene-hud[hidden] { display: none; }
.coin-wallet { margin: 0; color: var(--accent); font: 18px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
#pumpkin-button { min-height: 44px; padding: 8px 0; background: none; border: 0; color: var(--accent); cursor: pointer; font: 10px/1.6 var(--mono); }
#pumpkin-button:disabled { color: var(--muted); opacity: .5; cursor: default; }
#pumpkin-button[aria-pressed="true"] { color: #eead68; }
.scene { position: relative; --scene-cursor: default; }
.scene.over-grass { --scene-cursor: url("rake-1d83d8288e04a91d041c.svg") 13 24, grab; }
.scene.placing-pumpkin { --scene-cursor: crosshair; }
#autumn { width: 100%; height: 288px; display: block; touch-action: pan-y; cursor: var(--scene-cursor); }
.house-target, .tree-target, .pumpkin-target { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 3px; }
.pumpkin-target { cursor: grab; }
.house-target[hidden], .tree-target[hidden], .pumpkin-target[hidden] { display: none; }
.house-target:focus-visible, .tree-target:focus-visible, .pumpkin-target:focus-visible { outline: 1px dashed var(--accent); outline-offset: 2px; }
.coin { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; padding: 0; border: none; background: none; color: #e5bd65; cursor: pointer; font: 16px/1 var(--mono); }
.coin:hover { color: #ffe1a0; text-shadow: 0 0 10px #e5bd6540; }
.coin[hidden] { display: none; }
.scene-controls { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.fallback-scene { color: var(--accent); text-align: center; font: 14px/1.8 var(--mono); }
.scene-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0 25px; }
.scene-footer p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font: 10px/1.6 var(--mono); }
.leaf-symbol { font-size: 17px; color: var(--accent); }
.touch-hint { display: none; }
.motion-toggle { background: none; border: none; color: var(--muted); cursor: pointer; padding: 9px 0 9px 12px; font: 10px var(--mono); }
.motion-toggle:hover { color: var(--text); }
.motion-toggle[hidden] { display: none; }
.motion-icon { display: inline-block; width: 16px; color: var(--accent); }
.section { border-top: 1px solid var(--line); padding-block: 32px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h2 { font-size: 19px; font-weight: 400; letter-spacing: -.3px; margin: 0; }
.game-list { margin-top: 23px; }
.empty-state { margin: 0; color: var(--muted); font: 12px/1.8 var(--mono); padding: 20px 0; }
.game { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 25px 0; border-top: 1px solid var(--line); transition: color .2s; }
.game-with-image { grid-template-columns: 40px minmax(0, 280px) minmax(0, 1fr); grid-template-areas: "index image details" ". . cta"; }
.game-with-image .game-index { grid-area: index; align-self: start; }
.game-with-image > div { grid-area: details; align-self: start; min-width: 0; }
.game-with-image .game-cta { grid-area: cta; justify-self: end; }
.game-screenshot { grid-area: image; align-self: start; display: block; width: 100%; height: auto; border-radius: 4px; }
.game:hover { color: var(--accent); }
.game-index { color: var(--muted); font: 11px var(--mono); }
.game h3 { font-size: 23px; font-weight: 400; letter-spacing: -.6px; margin: 0; }
.game p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 7px 0 0; }
.game-with-image .game-description { max-width: 65ch; }
.game-cta { display: flex; align-items: center; gap: 18px; font: 10px var(--mono); }
.game-arrow { font: 23px Arial, sans-serif; color: var(--accent); }
.contact { padding-block: 37px 43px; }
.contact-body { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 23px; }
.social-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; font: 11px/1.6 var(--mono); }
.social-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.social-links a > span { color: var(--accent); }
.social-links a:hover { color: var(--accent); }
.contact-email { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; font: 15px/1.6 var(--mono); color: var(--accent); overflow-wrap: anywhere; }
.contact-email[hidden] { display: none; }
.contact-fallback { font: 11px/1.8 var(--mono); color: var(--muted); }
.mail-icon { flex-shrink: 0; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer { border-top: 1px solid var(--line); padding-block: 23px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer p { margin: 0; color: var(--muted); font: 10px/1.8 var(--mono); }
.footer-star { color: var(--accent); margin-left: 10px; font-size: 15px; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 12px; background: var(--text); color: var(--background); z-index: 2; }
.skip-link:focus { top: 20px; }

@media (max-width: 900px) {
  .page { width: calc(100% - 64px); }
  .intro-grid { grid-template-columns: 1fr 240px; gap: 24px; }
  h1 { font-size: 62px; letter-spacing: -3.5px; }
  html[lang="en"] h1 { font-size: clamp(44px, 6.4vw, 60px); }
  .intro-copy > p { font-size: 13px; }
}

@media (max-width: 680px) {
  .page { width: calc(100% - 40px); }
  .header { min-height: 94px; padding-block: 20px 12px; flex-wrap: wrap; row-gap: 14px; }
  .header-actions { width: 100%; justify-content: space-between; gap: 16px; }
  .language-switch { padding-left: 18px; }
  .language-switch button { min-height: 44px; min-width: 32px; }
  .brand { gap: 12px; }
  .brand-mark { font-size: 27px; }
  .brand-name { font-size: 10px; letter-spacing: 1.4px; }
  .brand-name > span { font-size: 8px; letter-spacing: .8px; }
  nav { gap: 20px; font-size: 11px; }
  nav a > [aria-hidden] { display: none; }
  .intro { padding-top: 40px; }
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  h1 { font-size: clamp(45px, 10vw, 65px); letter-spacing: -2.7px; }
  html[lang="en"] h1 { font-size: clamp(36px, 8.8vw, 60px); }
  .intro-copy { max-width: 360px; }
  .intro-copy > p { margin-block: 10px 16px; }
  .landscape { margin-top: 10px; }
  #autumn { height: 235px; }
  .scene-footer { align-items: flex-start; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
  .scene-controls { margin-left: auto; gap: 12px; }
  .scene-footer p { max-width: 210px; font-size: 9px; }
  .motion-toggle { font-size: 9px; padding-top: 3px; max-width: 115px; line-height: 1.6; }
  .small-label { font-size: 9px; letter-spacing: 1px; }
  h2 { font-size: 18px; }
  .game { grid-template-columns: 23px 1fr auto; gap: 10px; }
  .game-with-image { grid-template-areas: "index image image" ". details details" ". . cta"; }
  .game-screenshot { margin-bottom: 6px; }
  .game h3 { font-size: 20px; }
  .game-cta .steam-label { display: none; }
  .contact-body { align-items: flex-start; flex-direction: column; gap: 12px; }
  .contact-email { font-size: 14px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 9px; }
}

@media (pointer: coarse) {
  .mouse-hint { display: none; }
  .touch-hint { display: inline; }
  .motion-toggle { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
