:root {
  --bg: #FFF8EF;
  --surface: #FFFFFF;
  --farm-green: #3F7D3F;
  --leaf-green: #6AA84F;
  --harvest-gold: #D9A441;
  --oak-brown: #8B5A2B;
  --cream: #F8E7C9;
  --text: #2F2A24;
  --muted: #6B6258;
  --stone: #F4EFE6;
  --border: rgba(63, 125, 63, 0.22);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  padding-top: 68px;
  background:
    linear-gradient(90deg, rgba(217, 164, 65, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #FFF8EF 0%, #FFF8EF 100%);
  background-size: 42px 42px, auto;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 46px);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: 'Arial Rounded MT Bold', 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-text {
  font-size: 1.35rem;
  color: #14532D;
  line-height: 1;
}

.tld {
  font-size: 0.95rem;
  color: #92400E;
  font-weight: 700;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg {
  width: 44px;
  height: 44px;
  display: block;
}

.wheat-emblem {
  flex: 0 0 auto;
  padding: 8px;
  border: 2px solid rgba(217, 164, 65, 0.4);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.1);
}

.wheat-emblem svg {
  width: 64px;
  height: 64px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.main-nav a,
.footer-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--farm-green);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.header-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--farm-green), var(--leaf-green));
  color: #fff;
}

.btn-secondary {
  background: #FFFDF8;
  color: var(--farm-green);
  border-color: var(--farm-green);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.welcome-strip,
.game-barn,
.notice-orchard,
.harvest-path,
.support-desk,
.legal-page {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.welcome-strip {
  min-height: 164px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border: 1px solid rgba(217, 164, 65, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(45deg, rgba(217, 164, 65, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(217, 164, 65, 0.08) 25%, transparent 25%),
    #FFF4E2;
  background-size: 26px 26px;
}

.welcome-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.welcome-copy p {
  max-width: 620px;
  margin-top: 6px;
}

.game-barn {
  margin-top: 26px;
  text-align: center;
}

.section-kicker {
  margin-bottom: 6px;
  color: var(--farm-green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1000px);
  align-items: center;
  gap: 18px;
}

.courtyard-image,
.orchard-image,
.garden-image {
  margin: 0;
}

.courtyard-image img,
.orchard-image img,
.garden-image img {
  width: min(100%, 600px);
  max-height: 360px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(139, 90, 43, 0.2);
}

.game-frame {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  padding: 14px 14px 20px;
  border: 9px solid var(--oak-brown);
  border-bottom: 16px solid var(--stone);
  border-radius: 20px;
  outline: 4px solid var(--farm-green);
  outline-offset: -13px;
  background: var(--stone);
}

.game-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.game-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.how-to-play {
  max-width: 820px;
  margin: 12px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(63, 125, 63, 0.2);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.notice-orchard {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 0.78fr 1fr 0.88fr;
  gap: 18px;
  align-items: stretch;
}

.notice-board,
.orchard-notes,
.support-column,
.contact-form {
  border: 1px solid rgba(139, 90, 43, 0.22);
  border-radius: 18px;
  background: var(--surface);
}

.notice-board {
  padding: 18px;
  background: linear-gradient(180deg, #FFFFFF, #FFF9F0);
}

.wood-signs {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.wood-signs li {
  padding: 12px 14px;
  border-left: 7px solid var(--harvest-gold);
  border-radius: 10px;
  background: linear-gradient(135deg, #9B6532, var(--oak-brown));
  color: #fff;
  font-weight: 800;
}

.orchard-notes {
  padding: 18px;
  background: #FFFCF7;
}

.orchard-notes dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.orchard-notes div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(63, 125, 63, 0.14);
}

.orchard-notes dt {
  color: var(--muted);
  font-weight: 700;
}

.orchard-notes dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.harvest-path {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #FFFFFF;
}

.path-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.path-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.path-line::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, var(--leaf-green), var(--harvest-gold));
}

.path-stop {
  position: relative;
  z-index: 1;
  padding: 8px;
  background: #fff;
  transition: transform 0.2s ease;
}

.path-stop:hover {
  transform: translateY(-3px);
}

.path-stop span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  margin-bottom: 12px;
  border: 1px solid rgba(63, 125, 63, 0.2);
  border-radius: 9px;
  background: var(--cream);
  color: var(--farm-green);
  font-weight: 900;
}

.path-stop p {
  margin-top: 6px;
  font-size: 0.94rem;
}

.support-desk {
  margin-top: 34px;
}

.garden-image img {
  margin-inline: auto;
}

.support-grid {
  display: grid;
  grid-template-columns: 0.85fr 0.85fr 1.25fr;
  gap: 18px;
  margin-top: 18px;
}

.support-column,
.contact-form {
  padding: 18px;
}

.support-column p + p {
  margin-top: 10px;
}

.question-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.question-list li + li {
  margin-top: 8px;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-form label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(63, 125, 63, 0.26);
  border-radius: 10px;
  padding: 10px 12px;
  background: #FFFCF7;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(63, 125, 63, 0.28);
  border-color: var(--farm-green);
}

.form-status {
  min-height: 20px;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.success {
  color: var(--farm-green);
}

.form-status.error {
  color: #9B3A2F;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 0;
  padding: 20px 0 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  justify-content: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer p {
  font-size: 0.9rem;
}

.site-footer p + p {
  margin-top: 4px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  width: min(620px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(63, 125, 63, 0.24);
  border-radius: 16px;
  background: #FFFFFF;
  transform: translateX(-50%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.legal-page {
  padding-top: 26px;
}

.return-button {
  margin-bottom: 18px;
}

.legal-article {
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.legal-article h1 {
  margin-bottom: 10px;
}

.legal-article h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.legal-article p + p {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .site-header {
    gap: 10px;
  }

  .main-nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .game-layout,
  .notice-orchard,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .courtyard-image img,
  .orchard-image img,
  .garden-image img {
    margin-inline: auto;
  }

  .path-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .path-line::before {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 68px;
  }

  .site-header {
    padding-inline: 12px;
  }

  .brand .brand-text {
    display: none;
  }

  .main-nav {
    overflow-x: auto;
    white-space: nowrap;
    max-width: 62vw;
    padding-bottom: 2px;
  }

  .header-cta {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .welcome-strip {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 18px;
  }

  .welcome-copy {
    align-items: flex-start;
  }

  .game-frame {
    padding: 10px 10px 14px;
    border-width: 7px;
    border-bottom-width: 12px;
    outline-width: 3px;
    outline-offset: -10px;
  }

  .game-frame iframe {
    min-height: 245px;
  }

  .harvest-path {
    padding: 18px;
  }

  .path-line {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}