@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');

:root {
  --ink: #101811;
  --forest-950: #04130e;
  --forest-900: #071a13;
  --forest-800: #0b2b20;
  --forest-700: #12432f;
  --gold: #dcae42;
  --gold-light: #f2d681;
  --red: #bd2525;
  --ivory: #f4f0e6;
  --paper: #ebe5d8;
  --muted: #6c746b;
  --line: rgba(16, 24, 17, .14);
  --container: 1180px;
  --radius: 4px;
  --shadow: 0 28px 70px rgba(3, 15, 10, .18);
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 10px 16px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 50; top: 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.12); color: white; transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(4,19,14,.94); box-shadow: 0 10px 35px rgba(0,0,0,.2); backdrop-filter: blur(14px); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { width: 176px; height: 70px; overflow: hidden; transition: transform .25s ease, filter .25s ease; }
.brand:hover, .brand:focus-visible { transform: translateY(-1px) scale(1.025); filter: brightness(1.1); }
.brand img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.main-nav > a:not(.button) { position: relative; padding: 34px 0; }
.main-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 24px; height: 1px; background: var(--gold); transition: right .25s; }
.main-nav > a:hover::after, .main-nav > a.is-active::after { right: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(242,214,129,.48); border-radius: 12px; color: var(--gold-light); background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.035)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px rgba(0,0,0,.18); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.nav-toggle:hover { border-color: var(--gold-light); background: linear-gradient(145deg, rgba(242,214,129,.2), rgba(255,255,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 14px 28px rgba(0,0,0,.24), 0 0 0 1px rgba(220,174,66,.08); transform: translateY(-2px); }
.nav-toggle:active { transform: translateY(0) scale(.96); }
.nav-toggle span { display: block; height: 1px; margin: 5px 0; background: currentColor; transition: .25s; }

.hero { position: relative; min-height: 760px; height: 100svh; display: grid; align-items: center; overflow: hidden; color: white; background: var(--forest-950); }
.hero-media { position: absolute; inset: 0; background: url('../heroes/home-hero.png') center/cover no-repeat; transform: scale(1.02); animation: hero-in 1.4s ease both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,13,9,.96) 0%, rgba(3,19,13,.86) 36%, rgba(3,15,10,.32) 68%, rgba(3,15,10,.2)), linear-gradient(0deg, rgba(2,12,8,.72), transparent 42%); }
.hero-content { position: relative; z-index: 1; padding-top: 92px; }
.eyebrow { margin: 0 0 22px; color: var(--forest-700); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 36px; height: 1px; margin: 0 10px 3px 0; background: var(--gold); }
.hero .eyebrow, .eyebrow--light { color: var(--gold-light); }
.hero h1, .manifesto h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: .96; }
.hero h1 { max-width: 790px; font-size: clamp(3.35rem, 6vw, 5.8rem); }
.hero h1 > span { display: block; }
.hero h1 > span + span { margin-top: .08em; }
em { color: var(--gold); font-weight: inherit; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { position: relative; isolation: isolate; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; padding: 0 24px; border: 1px solid rgba(242,214,129,.46); border-radius: 12px; cursor: pointer; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 24px rgba(3,15,10,.18); transition: transform .2s ease, background .25s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease; }
.button::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.34) 46%, transparent 72%); transform: translateX(-135%); transition: transform .55s ease; pointer-events: none; }
.button:hover { border-color: var(--gold-light); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 16px 32px rgba(3,15,10,.25), 0 0 0 1px rgba(220,174,66,.1); transform: translateY(-3px); }
.button:hover::before, .button:focus-visible::before { transform: translateX(135%); }
.button:active { box-shadow: inset 0 2px 6px rgba(3,15,10,.22), 0 6px 14px rgba(3,15,10,.18); transform: translateY(0) scale(.975); }
.button--primary { color: #152013; border-color: #f0cf72; background: linear-gradient(135deg, #f4dd94 0%, var(--gold) 48%, #b98219 100%); text-shadow: 0 1px 0 rgba(255,255,255,.32); }
.button--primary:hover { background: linear-gradient(135deg, #fff0b6 0%, var(--gold-light) 46%, #d39c2d 100%); }
.button--ghost { color: white; background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.045)); backdrop-filter: blur(10px); }
.button--outline { color: white; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.015)); backdrop-filter: blur(8px); }
.button--small { min-height: 40px; padding-inline: 17px; }
.play { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: .55rem; }
.hero-stats { display: flex; gap: 0; margin: 48px 0 0; }
.hero-stats div { min-width: 155px; padding-right: 34px; margin-right: 34px; border-right: 1px solid rgba(255,255,255,.18); }
.hero-stats div:last-child { border: 0; }
.hero-stats dt { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--gold-light); }
.hero-stats dd { margin: 7px 0 0; color: rgba(255,255,255,.58); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue { position: absolute; z-index: 2; right: 3vw; bottom: 42px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.55); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; transform: rotate(90deg); transform-origin: right center; }
.scroll-cue span { width: 54px; height: 1px; background: var(--gold); }

.section { padding: 120px 0; }
.manifesto h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.text-link { display: inline-flex; gap: 13px; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid rgba(242,214,129,.42); border-radius: 10px; color: var(--gold-light); background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 20px rgba(0,0,0,.14); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.text-link:hover { border-color: var(--gold-light); background: rgba(220,174,66,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 24px rgba(0,0,0,.2); transform: translateY(-2px); }
.text-link:active { transform: translateY(0) scale(.98); }

.manifesto { position: relative; overflow: hidden; color: white; background: var(--forest-800); }
.manifesto-mark { position: absolute; right: -2vw; top: -130px; color: rgba(255,255,255,.025); font-family: var(--serif); font-size: 44rem; line-height: 1; }
.manifesto-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.manifesto-copy > p:not(.eyebrow) { max-width: 540px; margin: 28px 0; color: rgba(255,255,255,.64); }
.text-link--light { color: var(--gold-light); }
.values article { display: grid; grid-template-columns: 58px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.12); transition: transform .25s ease, border-color .25s ease; }
.values article:hover { transform: translateX(5px); border-color: rgba(242,214,129,.34); }
.values article:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.value-marker { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--gold); }
.value-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(242,214,129,.34); border-radius: 50%; font-size: 1rem; line-height: 1; transition: transform .3s ease, background .3s ease; }
.values article:hover .value-icon { transform: rotate(8deg) scale(1.06); background: rgba(220,174,66,.1); }
.value-index { font-family: var(--serif); font-size: .75rem; }
.values h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
.values p { margin: 0; color: rgba(255,255,255,.57); font-size: .86rem; }

/* Sprint 2: component lab */
.component-lab { background: var(--ivory); }
.component-heading { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; margin-bottom: 72px; }
.component-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.035em; line-height: .96; }
.component-heading > p { max-width: 520px; margin: 0 0 6px; color: var(--muted); }
.component-block + .component-block { margin-top: 96px; }
.component-block__header { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.component-block__header h3 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.component-block__header > p { max-width: 460px; margin: 0; color: var(--muted); font-size: .84rem; }
.component-kicker { margin: 0 0 4px; color: var(--forest-700); font-size: .67rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.component-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.badge-showcase { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { min-height: 30px; display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.76); box-shadow: inset 0 0 0 1px rgba(255,255,255,.34); font-size: .63rem; font-weight: 700; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
.badge--available { color: #164a32; background: #e3f3e9; border-color: #a8d0b7; }
.badge--testing { color: #6f5206; background: #fbf1cf; border-color: #dec36c; }
.badge--soon { color: #4b4f55; background: #edf0f1; border-color: #c7cccf; }
.badge--development { color: #733333; background: #f7e5e2; border-color: #dba9a2; }
.badge--criollos { color: #6c2b1d; background: #f7e5db; border-color: #dcb49f; }
.badge--clasicos { color: #61480c; background: #f8edc9; border-color: #d9bd61; }
.badge--puzzle { color: #174b54; background: #dff1f2; border-color: #9ccbd0; }
.badge--dikelar { color: #283d70; background: #e3e9f7; border-color: #aab9dc; }

.game-grid { align-items: stretch; }
.game-card { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(7,26,19,.12); border-radius: var(--radius); background: #fffdf8; box-shadow: 0 10px 30px rgba(4,19,14,.08); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.game-card:hover, .game-card:focus-within { transform: translateY(-5px); border-color: rgba(220,174,66,.7); box-shadow: 0 22px 48px rgba(4,19,14,.15); }
.game-card:active { transform: translateY(-1px) scale(.995); }
.game-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--forest-900); }
.game-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game-card:hover .game-card__media > img, .game-card:focus-within .game-card__media > img { transform: scale(1.035); }
.game-card__format { position: absolute; top: 12px; right: 12px; padding: 5px 9px; color: white; background: rgba(4,19,14,.84); border: 1px solid rgba(255,255,255,.25); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.game-card__body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.game-card__badges { min-height: 64px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.game-card__identity { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 15px; }
.game-card__icon { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: 0 7px 18px rgba(4,19,14,.2); }
.game-card__overline { margin: 0 0 2px; color: var(--muted); font-size: .6rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.game-card h4 { margin: 0; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1.05; }
.game-card__description { min-height: 78px; margin: 20px 0 16px; color: var(--muted); font-size: .86rem; }
.game-card__features { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 0; margin: 0 0 18px; border-block: 1px solid var(--line); list-style: none; color: var(--forest-700); font-size: .7rem; font-weight: 600; }
.game-card__features li::before { content: "✓"; margin-right: 6px; color: #8b6713; font-weight: 800; }
.game-card__link { position: static; min-height: 46px; display: inline-flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: auto; padding: 0 15px; border: 1px solid rgba(139,103,19,.32); border-radius: 10px; color: var(--forest-800); background: linear-gradient(135deg, rgba(242,214,129,.34), rgba(220,174,66,.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 7px 16px rgba(4,19,14,.08); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.game-card:hover .game-card__link, .game-card:focus-within .game-card__link { color: #fff; border-color: var(--forest-700); background: linear-gradient(135deg, var(--forest-700), var(--forest-900)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 20px rgba(4,19,14,.18); }
.game-card__link::after { content: ""; position: absolute; inset: 0; }
.game-card__link:focus-visible { outline-offset: -5px; }
.game-card__link--disabled { color: #777; border-color: rgba(16,24,17,.12); background: rgba(16,24,17,.045); box-shadow: none; cursor: not-allowed; }
.game-card__link--disabled::after { display: none; }
.game-card--featured { grid-column: span 2; display: grid; grid-template-columns: 1.08fr .92fr; }
.game-card--featured .game-card__media { min-height: 100%; aspect-ratio: auto; }
.game-card--featured .game-card__body { padding: 34px; }
.game-card--featured .game-card__badges { min-height: auto; }
.game-card--featured h4 { font-size: 2.35rem; }
.game-card--featured .game-card__description { min-height: auto; font-size: .95rem; }
.game-card--compact .game-card__media { aspect-ratio: 2 / 1; }
.game-card--compact .game-card__body { padding: 20px; }
.game-card--compact .game-card__badges { min-height: 54px; margin-bottom: 12px; }
.game-card--compact .game-card__identity { grid-template-columns: 56px minmax(0, 1fr); }
.game-card--compact .game-card__icon { width: 56px; height: 56px; border-radius: 14px; }
.game-card--compact .game-card__description { min-height: 52px; margin-block: 15px 10px; }
.game-card--disabled { filter: saturate(.55); background: #f0eee8; box-shadow: none; }
.game-card--disabled:hover, .game-card--disabled:focus-within, .game-card--disabled:active { transform: none; border-color: rgba(7,26,19,.12); box-shadow: none; }
.game-card--disabled .game-card__media > img { opacity: .72; }

.collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.collection-card { position: relative; min-height: 390px; overflow: hidden; border-radius: var(--radius); color: white; background: var(--forest-900); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.collection-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.collection-card__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,16,11,.95) 0%, rgba(3,16,11,.35) 66%, rgba(3,16,11,.08)); }
.collection-card__content { position: absolute; inset: auto 30px 28px; z-index: 1; }
.collection-card h4 { margin: 16px 0 8px; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; line-height: 1; }
.collection-card p { max-width: 420px; margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: .82rem; }
.collection-card a { position: static; min-height: 44px; display: inline-flex; align-items: center; gap: 14px; padding: 0 15px; color: #172015; border: 1px solid #f0cf72; border-radius: 10px; background: linear-gradient(135deg, #f4dd94, var(--gold) 54%, #b98219); box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 9px 22px rgba(0,0,0,.22); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: filter .2s ease, box-shadow .2s ease; }
.collection-card:hover a, .collection-card:focus-within a { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 13px 26px rgba(0,0,0,.3); }
.collection-card a::after { content: ""; position: absolute; inset: 0; }
.collection-card a:focus-visible { outline-offset: -5px; }
.collection-card:hover, .collection-card:focus-within { transform: translateY(-4px); box-shadow: 0 30px 58px rgba(4,19,14,.22); }
.collection-card:active { transform: translateY(-1px) scale(.997); }
.collection-card:hover > img, .collection-card:focus-within > img { transform: scale(1.035); }

/* Sprint 5: Game Page Engine */
.button--disabled { color: rgba(255,255,255,.48); background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); border-color: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); cursor: not-allowed; }
.button--disabled::before { display: none; }
.button--disabled:hover, .button--disabled:active { transform: none; }
.button--outline-dark { color: var(--forest-800); border-color: rgba(139,103,19,.42); background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(220,174,66,.1)); }
.button--outline-dark:hover { color: white; border-color: var(--forest-700); background: linear-gradient(135deg, var(--forest-700), var(--forest-950)); }
.game-page { overflow: hidden; }
.game-page-hero { position: relative; min-height: 720px; display: grid; align-items: end; overflow: hidden; color: white; background: var(--forest-950); }
.game-page-hero__media, .game-page-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-page-hero__media { object-fit: cover; }
.game-page-hero__shade { background: linear-gradient(90deg, rgba(2,13,9,.96) 0%, rgba(3,19,13,.8) 45%, rgba(3,15,10,.22)), linear-gradient(0deg, rgba(2,12,8,.9), transparent 60%); }
.game-page-hero__content { position: relative; z-index: 1; padding-top: 170px; padding-bottom: 86px; }
.game-page-identity { display: flex; align-items: center; gap: 26px; }
.game-page-identity > img { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 24px; object-fit: cover; box-shadow: 0 18px 48px rgba(0,0,0,.34); }
.game-page-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.game-page-identity .eyebrow { margin-bottom: 10px; }
.game-page-identity h1 { max-width: 900px; margin: 0; font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 6.8rem); font-weight: 400; letter-spacing: -.045em; line-height: .92; }
.game-page-hero__description { max-width: 680px; margin: 30px 0 0; color: rgba(255,255,255,.75); font-size: 1.05rem; }
.game-page-section h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.035em; line-height: .96; }
.game-page-section--soft { background: var(--paper); }
.game-page-section--dark { color: white; background: var(--forest-800); }
.game-page-two-column { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.game-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.game-feature-list li { min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border: 1px solid var(--line); background: #fffdf8; }
.game-feature-list span { color: var(--gold); font-family: var(--serif); font-size: 1.2rem; }
.game-feature-list strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1.1; }
.game-page-section__heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.game-page-section__heading > p { max-width: 430px; margin: 0 0 6px; color: var(--muted); }
.game-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.game-gallery__media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: var(--forest-950); box-shadow: 0 12px 32px rgba(4,19,14,.1); }
.game-empty-state { min-height: 180px; display: grid; place-items: center; padding: 30px; border: 1px dashed rgba(7,26,19,.25); color: var(--muted); text-align: center; }
.game-empty-state p { margin: 0; }
.game-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 32px; margin: 0; }
.game-details div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.game-details dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.game-details dd { margin: 0; font-weight: 600; text-align: right; }
.game-support { max-width: 520px; }
.game-support > p { margin: 0 0 24px; color: rgba(255,255,255,.67); font-size: 1.05rem; }
.game-page-error { min-height: 75vh; display: grid; align-items: center; padding: 180px 0 100px; color: white; background: var(--forest-800); }
.game-page-error h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 400; line-height: .96; }
.game-page-error p:not(.eyebrow) { max-width: 560px; margin: 26px 0; color: rgba(255,255,255,.68); }

.site-footer { color: rgba(255,255,255,.68); background: var(--forest-950); }
.footer-main { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding-top: 80px; padding-bottom: 70px; }
.footer-brand img { width: 180px; height: 94px; object-fit: contain; object-position: left; }
.footer-brand p { margin: 20px 0 0; font-size: .82rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h2 { margin: 0 0 12px; color: var(--gold-light); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-nav a, .footer-nav span { font-size: .8rem; }
.footer-nav a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .68rem; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: .4; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }

@media (max-width: 850px) {
  .header-inner { height: 72px; }
  .brand { width: 148px; height: 60px; }
  .nav-toggle { display: block; z-index: 3; }
  .main-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 0; padding: 90px 30px 40px; background: var(--forest-950); transform: translateX(100%); transition: transform .3s; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > a:not(.button) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--serif); font-size: 1.7rem; font-weight: 400; text-transform: none; }
  .main-nav > a:not(.button)::after { display: none; }
  .main-nav .button { margin-top: 24px; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .manifesto-grid, .footer-main { grid-template-columns: 1fr; gap: 42px; }
  .component-heading { grid-template-columns: 1fr; gap: 30px; }
  .component-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card--featured { grid-column: span 2; }
  .footer-main { gap: 55px; }
  .game-page-two-column { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero { min-height: 720px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.25rem); }
  .hero-media { background-position: 63% center; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .hero-stats { gap: 18px; margin-top: 38px; }
  .hero-stats div { min-width: 0; flex: 1; padding: 0; margin: 0; border: 0; }
  .hero-stats dt { font-size: 1.7rem; }
  .hero-stats dd { font-size: .55rem; }
  .scroll-cue { display: none; }
  .section { padding: 82px 0; }
  .manifesto-grid { gap: 70px; }
  .component-block + .component-block { margin-top: 72px; }
  .component-block__header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .component-grid { grid-template-columns: minmax(0, 1fr); }
  .game-card--featured { grid-column: auto; display: flex; }
  .game-card--featured .game-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .game-card--featured .game-card__body { padding: 24px; }
  .game-card--featured h4 { font-size: 1.9rem; }
  .game-card__badges { min-height: auto; }
  .game-card__description { min-height: auto; }
  .collection-card { min-height: 360px; }
  .collection-card__content { inset: auto 22px 22px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); row-gap: 35px; }
  .footer-bottom { flex-direction: column; }
  .game-page-hero { min-height: 680px; }
  .game-page-hero__content { padding-top: 130px; padding-bottom: 58px; }
  .game-page-identity { align-items: flex-start; flex-direction: column; gap: 20px; }
  .game-page-identity > img { width: 84px; height: 84px; border-radius: 20px; }
  .game-page-identity h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .game-page-hero__description { font-size: .95rem; }
  .game-feature-list, .game-gallery, .game-details { grid-template-columns: 1fr; }
  .game-page-section__heading { align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* Institutional legal pages */
.legal-page { min-height: 100vh; color: var(--ink); background: linear-gradient(180deg, var(--forest-950) 0 320px, var(--ivory) 320px); }
.legal-header { padding: 34px 0; color: white; }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-header .brand { display: block; }
.legal-main { padding: 76px 0 110px; }
.legal-hero { max-width: 850px; margin-bottom: 48px; color: white; }
.legal-hero .eyebrow { color: var(--gold-light); }
.legal-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 400; letter-spacing: -.04em; line-height: .95; }
.legal-hero p { max-width: 680px; margin: 22px 0 0; color: rgba(255,255,255,.7); }
.legal-document { max-width: 900px; padding: clamp(28px, 5vw, 64px); border: 1px solid rgba(7,26,19,.12); border-radius: 18px; background: #fffdf8; box-shadow: var(--shadow); }
.legal-document h2 { margin: 38px 0 12px; color: var(--forest-800); font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.1; }
.legal-document h2:first-of-type { margin-top: 0; }
.legal-document p, .legal-document li { color: #4f574f; }
.legal-document a { color: var(--forest-700); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.legal-document ul { padding-left: 22px; }
.legal-meta { margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 620px) { .legal-header__inner { align-items: flex-start; flex-direction: column; } .legal-main { padding-top: 46px; } .legal-actions .button { width: 100%; } }
