:root {
  --green-950: #062c20;
  --green-900: #073f2c;
  --green-850: #0a4832;
  --green-800: #11543a;
  --green-700: #236845;
  --green-500: #5c963d;
  --leaf-300: #a8ca66;
  --gold-700: #a96912;
  --gold-600: #bf7b16;
  --gold-500: #d69a2c;
  --gold-300: #efc45d;
  --cream-50: #fffdf6;
  --cream-100: #fbf5e5;
  --cream-150: #f8efd8;
  --cream-200: #f0dfb4;
  --ink: #0c3528;
  --muted: #5f6e67;
  --shadow: 0 18px 46px rgba(6, 44, 32, .18);
  --shadow-soft: 0 10px 30px rgba(6, 44, 32, .11);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --max-width: 1200px;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream-100);
  font-family: var(--font-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { font: inherit; }

.skip-link { position: fixed; top: -70px; left: 16px; z-index: 9999; background: var(--cream-50); color: var(--green-950); border: 2px solid var(--gold-500); border-radius: 10px; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 47, 34, .98);
  border-top: 3px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
  backdrop-filter: blur(12px);
}
.site-header::before,
.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 38px;
  pointer-events: none;
  opacity: .34;
  background: radial-gradient(ellipse at top left, #7aaa54 0 18%, transparent 20%), radial-gradient(ellipse at 45% 5%, #5f8f45 0 15%, transparent 17%);
}
.site-header::before { left: 0; }
.site-header::after { right: 0; transform: scaleX(-1); }
.nav-shell {
  max-width: var(--max-width);
  min-height: 94px;
  margin: 0 auto;
  padding: 10px 28px;
  display: grid;
  grid-template-columns: minmax(250px, 335px) 1fr;
  align-items: center;
  gap: 46px;
}
.brand-link { width: min(100%, 330px); justify-self: start; }
.brand-link img { width: 100%; height: auto; }
.primary-nav { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nav-link, .nav-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff8e7;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 760;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, filter .15s ease;
}
.nav-link:hover, .nav-link:focus-visible, .nav-button:hover, .nav-button:focus-visible { background: rgba(255,255,255,.08); color: var(--gold-300); outline: none; }
.nav-link[aria-current='page'], .nav-button.is-active { color: var(--gold-300); box-shadow: inset 0 -2px 0 var(--gold-300); }
.nav-dropdown { position: relative; }
.nav-button { display: inline-flex; align-items: center; gap: 8px; }
.chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 255px;
  transform: translate(-50%, -8px);
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(191,123,22,.35);
  border-radius: 16px;
  background: rgba(255,253,246,.99);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.nav-dropdown.is-open .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.dropdown-menu a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; color: var(--green-950); text-decoration: none; border-radius: 11px; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: #f4e7bf; outline: none; }
.dropdown-menu strong, .dropdown-menu small { display: block; }
.dropdown-menu strong { font-size: .95rem; }
.dropdown-menu small { margin-top: 1px; color: var(--muted); font-size: .76rem; }
.menu-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 3px rgba(214,154,44,.15); }
.menu-dot.potion { background: #4aaed1; }.menu-dot.match { background: #9a63d9; }.menu-dot.monster { background: #efaa45; }
.mobile-menu-button { display: none; }

.hero { position: relative; overflow: hidden; min-height: 600px; border-bottom: 2px solid var(--gold-500); background: #9fb67b; }
.hero-scene { position: absolute; inset: 0; background: url('../images/hero-landscape.svg') center / cover no-repeat; transform: scale(1.01); }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,39,27,.94) 0%, rgba(4,49,34,.8) 31%, rgba(8,58,39,.24) 55%, rgba(255,255,255,.03) 78%), linear-gradient(180deg, rgba(5,38,27,.06), rgba(5,38,27,.2)); }
.hero-inner { position: relative; z-index: 2; max-width: var(--max-width); min-height: 600px; margin: 0 auto; padding: 62px 28px 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr); gap: 32px; align-items: center; }
.hero-copy { max-width: 650px; color: #fff9e8; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #e6e8b2; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 850; }
.eyebrow::before { content: '◆'; color: var(--gold-300); font-size: .62rem; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.03; }
.hero h1 { margin-top: 16px; max-width: 620px; font-size: clamp(3.2rem, 5.7vw, 5.3rem); letter-spacing: -.04em; color: #fff8df; text-shadow: 0 3px 0 rgba(91,60,18,.26), 0 12px 30px rgba(0,0,0,.23); }
.hero-lede { margin: 20px 0 0; max-width: 560px; color: #fffaf0; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
.hero-body { margin: 15px 0 0; max-width: 570px; color: rgba(255,255,255,.88); font-size: 1.02rem; }
.hero-note { margin: 10px 0 0; max-width: 560px; color: rgba(255,255,255,.72); font-size: .95rem; }
.primary-cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 27px; min-height: 52px; padding: 12px 22px; border: 2px solid var(--gold-300); border-radius: 999px; background: linear-gradient(180deg, #2b784c, #0e5437); color: #fff9e8; text-decoration: none; font-weight: 850; box-shadow: 0 9px 24px rgba(2,30,20,.28); transition: filter .15s ease, background-color .15s ease; }
.primary-cta:hover, .primary-cta:focus-visible { filter: brightness(.92); outline: 3px solid rgba(239,196,93,.3); }
.hero-art { position: relative; min-height: 455px; align-self: end; display: flex; justify-content: center; align-items: flex-end; }
.hero-art img { position: relative; z-index: 3; width: min(480px, 95%); filter: drop-shadow(0 24px 22px rgba(8,38,24,.29)); }
.hero-rock { position: absolute; z-index: 1; bottom: 0; width: 89%; height: 105px; border-radius: 52% 48% 35% 42% / 40% 45% 28% 30%; background: radial-gradient(circle at 30% 12%, #7f9f4e 0 8%, transparent 9%), radial-gradient(circle at 61% 5%, #9bb85d 0 7%, transparent 8%), linear-gradient(180deg, #607846, #294534 70%, #17382b); box-shadow: 0 24px 34px rgba(4,32,22,.35); }
.hero-flowers { position: absolute; z-index: 4; bottom: 44px; left: 8%; right: 8%; display: flex; justify-content: space-between; color: #fff3c9; font-size: 26px; text-shadow: 0 1px 0 #80632b; }

.games-section { position: relative; background: linear-gradient(180deg, var(--cream-50), var(--cream-100)); padding: 70px 26px 80px; overflow: hidden; }
.games-section::before, .games-section::after { content: ''; position: absolute; width: 190px; height: 190px; opacity: .16; pointer-events: none; background: radial-gradient(ellipse at center, #477c44 0 16%, transparent 18%), radial-gradient(ellipse at 65% 45%, #6f9952 0 14%, transparent 16%); }
.games-section::before { left: -58px; top: -60px; transform: rotate(-25deg); }.games-section::after { right: -60px; bottom: -70px; transform: rotate(155deg); }
.section-inner { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto; }
.section-kicker { color: var(--gold-700); text-transform: uppercase; letter-spacing: .17em; font-size: .76rem; font-weight: 850; }
.section-heading h2 { margin-top: 7px; font-size: clamp(2.7rem, 4.6vw, 4.2rem); color: var(--green-950); letter-spacing: -.025em; }
.section-heading p { margin: 10px auto 0; color: var(--muted); font-family: var(--font-display); font-size: 1.18rem; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 38px; }
.game-card { overflow: hidden; border: 1px solid rgba(191,123,22,.4); border-radius: 22px; background: rgba(255,255,255,.77); box-shadow: var(--shadow-soft); scroll-margin-top: 120px; }
.game-art-wrap { aspect-ratio: 16 / 9; overflow: hidden; background: #dcd1aa; border-bottom: 1px solid rgba(191,123,22,.35); }
.game-art-wrap img { width: 100%; height: 100%; object-fit: cover; }
.game-card-body { padding: 20px 20px 18px; }
.game-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.game-card h3 { color: var(--green-950); font-size: clamp(1.55rem, 2.3vw, 2rem); letter-spacing: -.02em; }
.game-card p { min-height: 48px; margin: 8px 0 0; color: var(--muted); }
.status-pill { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; background: #f3e2a8; color: #67460b; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.game-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.game-tags span { padding: 6px 10px; border-radius: 999px; background: #e5ecd9; color: #36553d; font-size: .78rem; font-weight: 750; }
.coming-soon-label { margin-top: 17px; padding: 10px 12px; text-align: center; border: 1px solid #ead9ae; border-radius: 12px; background: #faf1db; color: #755124; font-size: .86rem; font-weight: 760; }
.working-title { color: #9b6620; }
.games-disclaimer { max-width: 760px; margin: 24px auto 0; text-align: center; color: #788079; font-size: .82rem; }
.inner-games-section { padding-top: 62px; }

.site-footer { border-top: 2px solid var(--gold-500); background: var(--green-950); color: rgba(255,255,255,.86); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 28px; display: grid; grid-template-columns: 250px 1fr auto; gap: 34px; align-items: center; }
.footer-logo { width: 235px; }
.footer-tagline { margin: 0; max-width: 400px; color: rgba(255,255,255,.72); }
.footer-copyright { margin: 0; text-align: right; color: rgba(255,255,255,.7); font-size: .88rem; }

.page-hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--gold-500); background: linear-gradient(110deg, var(--green-950), var(--green-800)); color: #fffaf0; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 82% 18%, rgba(168,202,102,.25), transparent 31%); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; max-width: var(--max-width); min-height: 430px; margin: 0 auto; padding: 54px 28px 28px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: center; gap: 34px; }
.page-hero h1 { margin-top: 12px; max-width: 700px; font-size: clamp(3rem, 5.4vw, 4.8rem); color: #fff8df; letter-spacing: -.035em; }
.page-hero p { max-width: 720px; margin: 18px 0 0; color: rgba(255,255,255,.81); font-size: 1.05rem; }
.page-hero img { width: 320px; justify-self: end; filter: drop-shadow(0 18px 20px rgba(0,0,0,.22)); }
.compact-page-hero .page-hero-inner { min-height: 380px; }
.about-content { background: var(--cream-100); padding: 70px 26px 90px; }
.about-panel { max-width: 830px; margin: 0 auto; padding: 38px 42px; border: 1px solid rgba(191,123,22,.36); border-radius: 24px; background: rgba(255,255,255,.7); box-shadow: var(--shadow-soft); }
.about-panel h2 { margin-top: 8px; color: var(--green-950); font-size: clamp(2.2rem,4vw,3.6rem); }
.about-panel p { margin: 18px 0 0; color: var(--muted); font-size: 1.03rem; }

@media (max-width: 900px) {
  .nav-shell { grid-template-columns: minmax(220px, 290px) auto; gap: 20px; min-height: 86px; }
  .mobile-menu-button { justify-self: end; width: 44px; height: 44px; border: 1px solid rgba(239,196,93,.55); border-radius: 12px; background: rgba(255,255,255,.06); display: grid; align-content: center; gap: 5px; padding: 10px; cursor: pointer; }
  .mobile-menu-button span { height: 2px; background: #fff8e7; border-radius: 2px; }
  .primary-nav { display: none; position: absolute; top: calc(100% + 2px); left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: #073f2c; border: 1px solid rgba(239,196,93,.45); border-radius: 16px; box-shadow: var(--shadow); }
  .site-header.mobile-open .primary-nav { display: flex; }
  .nav-link, .nav-button { width: 100%; justify-content: flex-start; text-align: left; }
  .dropdown-menu { position: static; width: 100%; transform: none !important; margin-top: 4px; box-shadow: none; background: #fffaf0; display: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-dropdown.is-open .dropdown-menu { display: block; }
  .hero-inner { grid-template-columns: 1fr 330px; }
  .hero h1 { font-size: clamp(3rem, 7vw, 4.5rem); }
  .game-grid { grid-template-columns: 1fr; max-width: 660px; margin-left: auto; margin-right: auto; }
  .game-card p { min-height: 0; }
  .footer-inner { grid-template-columns: 190px 1fr; }
  .footer-logo { width: 185px; }.footer-copyright { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 680px) {
  .nav-shell { min-height: 76px; padding: 8px 18px; grid-template-columns: minmax(170px, 245px) auto; }
  .brand-link { width: min(100%, 240px); }
  .hero { min-height: auto; }
  .hero-vignette { background: linear-gradient(180deg, rgba(4,44,31,.94) 0%, rgba(4,44,31,.75) 58%, rgba(4,44,31,.3) 100%); }
  .hero-inner { min-height: auto; padding: 44px 22px 0; grid-template-columns: 1fr; text-align: left; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero-body { font-size: .98rem; }
  .hero-art { min-height: 330px; margin-top: -5px; }
  .hero-art img { width: min(380px, 92%); }
  .hero-rock { height: 80px; bottom: 4px; }
  .hero-flowers { bottom: 32px; }
  .games-section { padding: 58px 18px 66px; }
  .section-heading h2 { font-size: clamp(2.4rem, 11vw, 3.35rem); }
  .game-title-row { display: block; }.status-pill { margin-top: 8px; }
  .page-hero-inner { min-height: auto; padding: 48px 22px 22px; grid-template-columns: 1fr; text-align: left; }
  .page-hero img { width: 260px; justify-self: center; }
  .about-content { padding: 54px 18px 70px; }.about-panel { padding: 28px 24px; }
  .footer-inner { grid-template-columns: 1fr; padding: 28px 22px; gap: 18px; }.footer-logo { width: 215px; }.footer-copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
