/* =========================================================
   ΔΑΙΔΑΛΟΣ — playful & modern board-game studio
   Palette from the logo: honey yellow, wax cream, burnt orange, chocolate brown
   ========================================================= */
:root {
  --brown: #402312;
  --brown-deep: #2A160B;
  --brown-soft: #5B3621;
  --yellow: #F6C814;
  --yellow-soft: #FFE27A;
  --orange: #C4692A;
  --orange-deep: #A3521A;
  --tan: #C9A15E;
  --cream: #F9F6EE;
  --sand: #F1E8D8;
  --paper: #FFFDF8;
  --blue: #1F5FA8;
  --ink: var(--brown);
  --muted: #7A5A45;
  --line: #E6DAC5;

  --f-display: "M PLUS Rounded 1c", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --shadow: 5px 5px 0 var(--brown);
  --shadow-sm: 3px 3px 0 var(--brown);
  --shadow-soft: 0 20px 40px -20px rgba(64, 35, 18, .45);
  --ease: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 74px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 500 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--brown); --bd: var(--brown); --sh: var(--brown);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px; border: 2.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 3px 4px 0 var(--sh);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 var(--sh); }
.btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--sh); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-lg { font-size: 1.08rem; padding: .95em 1.6em; }
.btn-block { width: 100%; }
.btn-yellow { --bg: var(--yellow); }
.btn-brown { --bg: var(--brown); --fg: var(--cream); --bd: var(--brown); --sh: var(--orange); }
.btn-cream { --bg: var(--cream); --fg: var(--brown); }
.btn-outline { --bg: transparent; --fg: var(--brown); }
.btn-outline:hover { --bg: var(--yellow); }
.btn-outline-brown { --bg: transparent; --fg: var(--brown); --sh: transparent; box-shadow: none; }
.btn-outline-brown:hover { --bg: rgba(255,255,255,.35); box-shadow: none; }
.btn-ghost-light { --bg: transparent; --fg: var(--cream); --bd: var(--cream); --sh: transparent; box-shadow: none; }
.btn-ghost-light:hover { --bg: rgba(249,246,238,.1); box-shadow: none; }
.btn-disabled { --bg: var(--sand); --fg: var(--muted); --bd: var(--line); --sh: transparent; box-shadow: none; cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grow { flex: 1; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; text-decoration: none; border-bottom: 2.5px solid var(--yellow); padding-bottom: 2px; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-btn { background: none; border: 0; padding: 0; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: 1em;
  font: 800 .8rem/1 var(--f-body); letter-spacing: .14em; color: var(--yellow);
}
.eyebrow .dot { width: .6em; height: .6em; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(246,200,20,.25); animation: pulse 2s infinite; }
.eyebrow-orange { color: var(--orange); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(246,200,20,0); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--brown); color: var(--cream);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { display: flex; align-items: center; gap: .45em; padding: .55em 1em; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.main-nav ul a:hover { background: rgba(249,246,238,.1); }
.main-nav ul a[aria-current="page"] { background: var(--yellow); color: var(--brown); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.h-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 2px solid rgba(249,246,238,.35);
  background: transparent; color: var(--cream); font-weight: 700; text-decoration: none; cursor: pointer; transition: all .2s;
}
.h-btn:hover, .h-btn.is-active { border-color: var(--yellow); color: var(--yellow); }
.nav-toggle { display: none; padding: 0; width: 44px; }
.burger { position: relative; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 6px; } .burger span:nth-child(3) { top: 12px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0;
    background: var(--brown); padding: 24px var(--gutter) 40px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 28px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s ease;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav ul a { font: 800 1.7rem/1.2 var(--f-display); padding: .45em .6em; border-radius: var(--r-sm); }
  .nav-mobile-extra { display: grid; gap: 20px; margin-top: auto; }
  .nav-social { display: flex; gap: 10px; }
  .nav-social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(249,246,238,.3); }
  body.nav-open { overflow: hidden; }
}

/* ---------- flash ---------- */
.flash-stack { position: fixed; z-index: 60; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: grid; gap: 10px; }
.flash { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); border: 2.5px solid var(--brown); background: var(--paper); box-shadow: var(--shadow); font-weight: 700; animation: pop .45s var(--ease); }
.flash > .icon { color: #fff; background: #3D9A5B; border-radius: 50%; padding: 3px; width: 26px; height: 26px; }
.flash-error > .icon { background: #C2412D; }
.flash-info > .icon { background: var(--orange); }
.flash span { flex: 1; }
.flash button { background: none; border: 0; cursor: pointer; padding: 4px; color: var(--muted); }
.flash.is-hiding { opacity: 0; transform: translateY(-10px); transition: all .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* ---------- drip divider ---------- */
.drip { position: absolute; left: 0; right: 0; top: -1px; height: clamp(36px, 6vw, 84px); color: var(--brown); pointer-events: none; z-index: 2; }
.drip svg { width: 100%; height: 100%; }
.drip-lore { color: var(--brown-soft); }
.drip-cream { color: var(--cream); }
.drip-white { color: var(--paper); }
.drip-orange { color: var(--orange); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0 clamp(64px, 9vw, 110px); }
.section.pt-0 { padding-top: 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.h-sub { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 1.6em 0 .8em; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(246,200,20,.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(196,105,42,.22), transparent 70%),
    var(--brown);
  padding: clamp(40px, 7vw, 90px) 0 clamp(110px, 14vw, 170px);
}
.hero::before { /* meander texture */
  content: ""; position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%23F9F6EE' stroke-width='3'%3E%3Cpath d='M0 44h40V8H12v24h16V20h-4'/%3E%3C/svg%3E");
  background-size: 64px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.4rem); color: var(--yellow); text-shadow: 4px 5px 0 var(--orange-deep); margin-bottom: .3em; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; opacity: .92; max-width: 34em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 32px; }
.hero-meta li { display: inline-flex; align-items: center; gap: .45em; padding: .45em .9em; border-radius: 999px; background: rgba(249,246,238,.09); border: 1.5px solid rgba(249,246,238,.18); font-weight: 700; font-size: .95rem; }
.hero-meta .icon { color: var(--yellow); }
.hero-art { position: relative; display: block; text-decoration: none; perspective: 1400px; justify-self: center; width: min(440px, 100%); }

.hero-deco .deco { position: absolute; color: var(--yellow); opacity: .9; animation: float 7s ease-in-out infinite; }
.deco-die { left: 3%; top: 14%; width: 54px; transform: rotate(-14deg); }
.deco-die .icon { width: 54px; height: 54px; stroke-width: 1.6; }
.deco-meeple { right: 4%; bottom: 18%; width: 44px; color: var(--orange); animation-delay: -2s; }
.deco-card { left: 44%; top: 8%; width: 34px; height: 46px; border-radius: 6px; border: 3px solid var(--cream); opacity: .35 !important; animation-delay: -4s; transform: rotate(18deg); }
.deco-hex { left: 8%; bottom: 20%; width: 40px; height: 46px; background: var(--tan); opacity: .45 !important; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); animation-delay: -1s; }
@keyframes float { 50% { translate: 0 -14px; rotate: 8deg; } }

/* ---------- 3D game box ---------- */
.box3d {
  position: relative; aspect-ratio: var(--ar, 1); transform-style: preserve-3d;
  /* real box shape: tall boxes get narrower, wide ones shorter; always fits the same square area */
  width: min(100%, 100% * var(--ar, 1)); margin-inline: auto;
  transform: rotateY(-22deg) rotateX(8deg); transition: transform .6s var(--ease);
  border-radius: 10px; box-shadow: var(--shadow-soft);
}
.box3d::before { /* glossy highlight */
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 10px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 70%, rgba(255,255,255,.08));
}
.hero-art:hover .box3d, .box3d.is-flat { transform: rotateY(-8deg) rotateX(3deg) translateY(-6px); }
.box3d > * { border-radius: 10px; }
.box3d .cover-img { width: 100%; height: 100%; object-fit: cover; }

/* generated cover (used when no image is provided) */
.cover-gen {
  --c: var(--yellow); --ink: var(--brown); --ink2: var(--orange-deep);
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%;
  padding: 12% 10% 20%; text-align: center; color: var(--ink);
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 62%, color-mix(in srgb, var(--c) 82%, #000) 100%);
}
.cover-gen.ink-light { --ink: var(--cream); --ink2: var(--yellow); }
.cover-gen::before { content: ""; position: absolute; inset: 5%; border: 2px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 8px; z-index: -1; }
.cover-rays {
  position: absolute; inset: -30%; z-index: -2; opacity: .12;
  background: repeating-conic-gradient(from 0deg at 50% 50%, var(--ink) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 62%); mask: radial-gradient(circle, #000 20%, transparent 62%);
}
.cover-brand { position: absolute; top: 8%; left: 50%; translate: -50% 0; width: 18%; }
.cover-brand img { width: 100%; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.cover-icon { width: 40%; height: auto; stroke-width: 1.5; color: var(--ink); filter: drop-shadow(3px 4px 0 color-mix(in srgb, var(--ink2) 70%, transparent)); margin-top: 6%; }
.cover-title { font: 800 clamp(1.1rem, 2.6vw, 1.9rem)/1.05 var(--f-display); color: var(--ink); text-shadow: 2px 3px 0 color-mix(in srgb, var(--ink2) 65%, transparent); text-wrap: balance; }
.cover-info { font: 800 clamp(.6rem, 1vw, .8rem)/1 var(--f-body); letter-spacing: .08em; color: var(--ink); opacity: .75; }
.cover-meander {
  position: absolute; left: 0; right: 0; bottom: 4%; height: 8%; z-index: -1; background: var(--ink); opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M0 18.5H40M30 18.5V2H10v11h10V8'/%3E%3C/svg%3E") repeat-x left center / auto 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M0 18.5H40M30 18.5V2H10v11h10V8'/%3E%3C/svg%3E") repeat-x left center / auto 100%;
}

/* ---------- lore ---------- */
.lore { position: relative; background: var(--brown-soft); color: var(--cream); padding: clamp(100px, 12vw, 150px) 0 clamp(90px, 11vw, 140px); }
.lore-inner { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1060px; }
.lore-icon { width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); animation: float 8s ease-in-out infinite; }
.lore blockquote { position: relative; margin: 0 0 24px; font: 500 clamp(1.1rem, 2vw, 1.4rem)/1.65 var(--f-body); }
.lore blockquote::before { content: "“"; position: absolute; left: -.55em; top: -.45em; font: 800 4.5rem/1 var(--f-display); color: var(--orange); }

/* ---------- game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.game-card { --tilt: 0deg; }
.game-card:nth-child(3n+1) { --tilt: -1.2deg; } .game-card:nth-child(3n+2) { --tilt: .9deg; } .game-card:nth-child(3n) { --tilt: -.6deg; }
.game-card-link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; overflow: hidden;
  background: var(--paper); border: 2.5px solid var(--brown); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.game-card-link:hover { transform: translate(-3px, -5px) rotate(var(--tilt)); box-shadow: 8px 10px 0 var(--brown); }
.game-card-cover { position: relative; aspect-ratio: 4 / 3; border-bottom: 2.5px solid var(--brown); overflow: hidden; }
.game-card-cover > .cover-gen, .game-card-cover > .cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.game-card-link:hover .game-card-cover > :first-child { transform: scale(1.06) rotate(-1deg); }
.game-card-cover .cover-gen { padding: 8% 10% 12%; }
/* uploaded box photos: show the whole box in its real shape instead of cropping it */
.game-card-cover { background: radial-gradient(circle at 50% 45%, #fff 0%, var(--sand) 75%); }
.game-card-cover > .cover-img { object-fit: contain; padding: 7% 9%; filter: drop-shadow(4px 6px 6px rgba(64,35,18,.22)); }
.game-card-cover .cover-icon { width: 28%; margin-top: 4%; }
.game-card-cover .cover-brand { display: none; }
.game-card-cover .cover-title { font-size: 1.35rem; }
.game-card-cover .cover-info { display: none; }
.game-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 18px; }
.game-card-body h3 { margin-bottom: .3em; font-size: 1.3rem; }
.game-card-body p { color: var(--muted); font-size: .97rem; line-height: 1.5; }
.game-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; padding: 0; margin: 0 0 16px; font-weight: 800; font-size: .9rem; }
.game-meta li { display: inline-flex; align-items: center; gap: .35em; }
.game-meta .icon { color: var(--orange); width: 1.1em; height: 1.1em; }
.game-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 2px dashed var(--line); }
.price { font: 800 1.25rem var(--f-display); }
.go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--brown); transition: transform .3s var(--ease); }
.game-card-link:hover .go { transform: rotate(-35deg) scale(1.08); }


/* ---------- process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: s; }
.process li { position: relative; padding: 28px 24px 22px; border-radius: var(--r); background: var(--cream); border: 2.5px solid var(--brown); text-align: left; }
.section-cream .process li { background: var(--paper); }
.process-num { position: absolute; right: 18px; top: 12px; font: 800 2.6rem/1 var(--f-display); color: var(--sand); }
.process-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--yellow); border: 2.5px solid var(--brown); margin-bottom: 16px; box-shadow: var(--shadow-sm); transform: rotate(-6deg); }
.process li:nth-child(even) .process-icon { background: var(--orange); color: var(--cream); transform: rotate(5deg); }
.process-icon .icon { width: 28px; height: 28px; }
.process p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- get in touch ---------- */
.touch-grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; gap: clamp(16px, 2.4vw, 24px); }
.touch-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r); background: var(--paper); border: 2.5px solid var(--brown); box-shadow: var(--shadow); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.touch-link:hover { transform: translate(-3px, -4px); box-shadow: 8px 9px 0 var(--brown); }
.touch-card p { color: var(--muted); }
.touch-card .link-arrow, .touch-card .social, .touch-card form { margin-top: auto; }
.touch-card .link-arrow { align-self: flex-start; }
.touch-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--brown); margin-bottom: 16px; }

.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(249,246,238,.35); color: var(--cream); transition: all .25s var(--ease); }
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--brown); transform: translateY(-3px) rotate(-8deg); }
.social-dark a { border-color: var(--brown); color: var(--brown); }

.inline-form { display: flex; gap: 8px; width: 100%; }
.inline-form input { flex: 1; min-width: 0; padding: .8em 1.1em; border-radius: 999px; border: 2.5px solid var(--brown); background: var(--paper); }
.inline-form .btn { box-shadow: none; }
.inline-form .btn:hover { transform: none; }

/* ---------- page hero ---------- */
.page-hero { position: relative; background: var(--brown); color: var(--cream); padding: clamp(56px, 9vw, 110px) 0 clamp(90px, 12vw, 140px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%23F9F6EE' stroke-width='3'%3E%3Cpath d='M0 44h40V8H12v24h16V20h-4'/%3E%3C/svg%3E"); background-size: 48px; }
.page-hero > * { position: relative; }
.page-hero h1 { color: var(--yellow); text-shadow: 3px 4px 0 var(--orange-deep); }
.page-hero .lead { margin-inline: auto; }

/* ---------- about ---------- */
.about-inner { display: flow-root; max-width: 1080px; }
/* text starts to the right of the logo, then wraps underneath it across the full width */
.about-logo { float: left; width: 40%; max-width: 420px; margin: 0 clamp(28px, 5vw, 64px) 20px 0; shape-outside: margin-box; animation: float 8s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(64,35,18,.25)); }
.about-text p { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.75; margin: 0; }
.about-text p + p { margin-top: 1em; }
.about-text p:first-child::first-letter { float: left; font: 800 4.6em/.8 var(--f-display); color: var(--orange); margin: .06em .1em 0 0; text-shadow: 3px 3px 0 var(--yellow); }

/* ---------- product page ---------- */
.product-hero { position: relative; background: linear-gradient(180deg, var(--sand), var(--cream)); padding: 24px 0 clamp(40px, 6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: clamp(20px, 3vw, 36px); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--brown); text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.product-media { position: sticky; top: calc(var(--header-h) + 24px); }
@media (min-width: 861px) { .product-grid.is-media-right .product-media { order: 2; } }
.stage { position: relative; perspective: 1500px; padding: 6% 10% 12%; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 40%, #fff 0%, var(--sand) 70%); border: 2.5px solid var(--brown); box-shadow: var(--shadow); overflow: hidden; }
.stage::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 8%; border-radius: 50%; background: var(--yellow); opacity: .35; filter: blur(40px); }
.stage-shadow { position: absolute; left: 18%; right: 18%; bottom: 6%; height: 18px; border-radius: 50%; background: rgba(64,35,18,.28); filter: blur(10px); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; }
.thumb { flex: none; width: 76px; height: 76px; padding: 0; border-radius: var(--r-sm); overflow: hidden; border: 2.5px solid var(--line); background: none; cursor: pointer; }
.thumb.is-active { border-color: var(--brown); box-shadow: var(--shadow-sm); }
.thumb > * { width: 100%; height: 100%; object-fit: cover; }
.thumb .cover-title, .thumb .cover-info, .thumb .cover-brand, .thumb .cover-meander { display: none; }
.thumb .cover-gen { padding: 10%; }
.thumb .cover-icon { width: 62%; margin: 0; }
.stage img.stage-photo { position: relative; width: 100%; border-radius: var(--r); }

.product-info h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .25em; }
.product-info .lead { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: .4em; padding: .38em .8em; border-radius: 999px;
  font: 800 .76rem/1 var(--f-body); letter-spacing: .02em; border: 2px solid var(--brown); background: var(--paper); color: var(--brown);
}
.facts dd .tags { gap: 6px; }
.facts div:has(.tags) { align-items: center; }
.note { display: flex; gap: .5em; align-items: center; padding: 12px 16px; border-radius: var(--r-sm); background: var(--yellow-soft); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; border: 2.5px solid var(--brown); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; text-align: center; }
.stat + .stat { border-left: 2px dashed var(--line); }
.stat .icon { color: var(--orange); width: 26px; height: 26px; }
.stat span { font: 800 .72rem var(--f-body); letter-spacing: .1em; color: var(--muted); }
.stat strong { font: 800 1.25rem var(--f-display); }
.pips { display: flex; gap: 4px; padding-top: 6px; }
.pips i { width: 10px; height: 10px; border-radius: 3px; background: var(--line); transform: rotate(45deg); }
.pips i.on { background: var(--orange); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 24px; }
.facts div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: var(--muted); }

.tabs { position: sticky; top: var(--header-h); z-index: 30; background: rgba(249,246,238,.92); backdrop-filter: blur(10px); border-block: 2px solid var(--line); }
.tabs ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a { display: block; padding: .5em 1em; border-radius: 999px; font-weight: 800; text-decoration: none; white-space: nowrap; color: var(--muted); transition: all .2s; }
.tabs a:hover { color: var(--brown); }
.tabs a.is-active { background: var(--brown); color: var(--cream); }

.product-body { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 100px); }
.p-section { padding: clamp(32px, 5vw, 56px) 0; border-bottom: 2px dashed var(--line); }
.p-section:last-child { border-bottom: 0; }
.p-section h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .8em; }
.num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--yellow); border: 2.5px solid var(--brown); font-size: 1rem; box-shadow: var(--shadow-sm); transform: rotate(-5deg); }
.prose { max-width: 46em; font-size: 1.1rem; }

.contents-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contents-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contents-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.swatch { width: 18px; height: 24px; border-radius: 4px; background: var(--c); border: 2px solid var(--brown); flex: none; }
.swatch-plain { background: var(--paper); border-style: dashed; }
.contents-visual { display: grid; gap: 22px; padding: 24px; border-radius: var(--r); background: var(--paper); border: 2.5px solid var(--brown); box-shadow: var(--shadow); }
.cv-group h3 { font-size: .95rem; margin-bottom: 10px; }
.cv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 18px 8px; }
.cv-card { margin: 0; display: grid; justify-items: center; gap: 6px; }
.cv-stack { position: relative; width: 40px; height: 54px; }
.cv-stack i { position: absolute; inset: 0; border-radius: 6px; background: var(--c); border: 2px solid var(--brown); transition: transform .35s var(--ease); }
.cv-stack i:nth-last-child(3) { transform: rotate(-8deg) translate(-3px, 2px); opacity: .55; }
.cv-stack i:nth-last-child(2) { transform: rotate(4deg) translate(2px, 1px); opacity: .8; }
.cv-card:hover i:nth-last-child(3) { transform: rotate(-18deg) translate(-8px, 2px); }
.cv-card:hover i:nth-last-child(2) { transform: rotate(12deg) translate(6px, 0); }
.cv-card figcaption { font-weight: 800; font-size: .82rem; text-align: center; }
/* shapes: tiles are square, boards are cards turned 90°, the rest are drawn as SVG (piece_svg()) */
.cv-tile .cv-stack { width: 46px; height: 46px; }
.cv-board .cv-stack { width: 56px; height: 40px; }
.cv-map .cv-stack { width: 56px; height: 44px; }
.cv-die .cv-stack, .cv-coin .cv-stack { width: 44px; height: 44px; }
.cv-stack i:has(svg) { border: 0; border-radius: 0; background: none; }
.cv-stack svg, .swatch svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pc-fill { fill: var(--c); stroke: var(--brown); stroke-width: 2.5; stroke-linejoin: round; }
.pc-ink { fill: var(--brown); }
.pc-line { fill: none; stroke: var(--brown); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.pc-shade { fill: rgba(0,0,0,.14); }
.pc-route { fill: none; stroke: var(--brown); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 4; opacity: .7; }
.swatch-tile { width: 22px; height: 22px; }
.swatch-board { width: 26px; height: 18px; }
.swatch-svg { border: 0; border-radius: 0; background: none; height: 24px; }
.swatch-pawn { width: 18px; }
.swatch-die, .swatch-coin { width: 22px; height: 22px; }
.swatch-map { width: 28px; height: 22px; }
.cv-card em { display: block; font-style: normal; font-weight: 600; color: var(--muted); font-size: .75rem; }

.htp-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 2.5px solid var(--brown); box-shadow: var(--shadow); background: var(--brown); }
.video iframe { width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; width: 100%; border: 0; cursor: pointer; color: var(--cream); font-weight: 800; background: radial-gradient(circle at 50% 45%, var(--brown-soft), var(--brown)); }
.video-poster.is-empty { cursor: default; opacity: .9; }
.play-btn { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--yellow); color: var(--brown); border: 3px solid var(--cream); transition: transform .3s var(--ease); }
.play-btn .icon { width: 30px; height: 30px; margin-left: 4px; }
.video-poster:not(.is-empty):hover .play-btn { transform: scale(1.1); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 16px; }
.steps li { position: relative; padding-left: 52px; counter-increment: st; min-height: 38px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--cream); font: 800 1rem var(--f-display); border: 2px solid var(--brown); }

.rulebook { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px; border-radius: var(--r); background: var(--paper); border: 2.5px solid var(--brown); }
.rulebook > div { flex: 1; min-width: 200px; }
.rulebook h3 { margin-bottom: .2em; }
.rulebook p { margin: 0; color: var(--muted); }
.rulebook-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--yellow); border: 2.5px solid var(--brown); transform: rotate(-6deg); }
.rulebook-icon .icon { width: 32px; height: 32px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 22px; overflow-x: auto; padding: 6px 10px 22px 4px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }


.buybar { display: none; }

/* ---------- forms ---------- */
.card { background: var(--paper); border: 2.5px solid var(--brown); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 40px); }
.form h2 { margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field[hidden] { display: none; }
.field label, .field legend { font-weight: 800; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em; border-radius: var(--r-sm); border: 2px solid var(--line); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23402312' stroke-width='2.5'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 4px rgba(246,200,20,.35); background: #fff; }
.has-error input, .has-error textarea { border-color: #C2412D; }
.err, .form-error { color: #B23A27; font-weight: 700; font-size: .88rem; }
.form-error { margin: 0; padding: 12px 14px; background: #FBE3DE; border-radius: var(--r-sm); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--brown); flex: none; margin-top: 1px; }
.check.has-error span { color: #B23A27; }
/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--paper); border: 2.5px solid var(--brown); text-decoration: none; font-weight: 700; word-break: break-word; transition: transform .25s var(--ease); }
a.info-card:hover { transform: translateX(4px); }
.info-card > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--brown); }
.info-card small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .08em; }

/* ---------- 404 ---------- */
.not-found .nf-icon { width: 110px; height: 110px; margin: 0 auto 20px; color: var(--yellow); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--brown); color: var(--cream); padding-top: clamp(90px, 11vw, 130px); }
.drip-footer { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 36px clamp(56px, 7vw, 110px); padding-bottom: 40px; }
.footer-brand img { width: 130px; margin-bottom: 14px; }
.footer-brand p { opacity: .8; max-width: 22em; }
.site-footer h3 { font-size: 1.05rem; color: var(--yellow); margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; opacity: .85; transition: opacity .2s, color .2s; }
.site-footer ul a:hover { opacity: 1; color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 28px; border-top: 1.5px solid rgba(249,246,238,.15); font-size: .9rem; opacity: .75; }
.footer-bottom p { margin: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .product-grid, .contents-grid, .htp-grid, .contact-grid, .about-inner { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .hero-art { width: min(300px, 74%); order: -1; margin-top: 8px; }
  .hero { padding-top: 28px; }
  .lore-inner { grid-template-columns: 1fr; text-align: left; }
  .touch-grid { grid-template-columns: 1fr; }
  .lore-icon { width: 150px; }
  .lore blockquote::before { position: static; display: block; height: .45em; }
  .product-media { position: static; max-width: 520px; width: 100%; margin-inline: auto; }
  .about-logo { float: none; display: block; width: 100%; max-width: 260px; margin: 0 auto 28px; }
  .has-buybar .buybar {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px;
    border-radius: 999px; background: var(--yellow); border: 2.5px solid var(--brown); box-shadow: var(--shadow);
    transform: translateY(150%); transition: transform .4s var(--ease);
  }
  .has-buybar .buybar.is-visible { transform: none; }
  .buybar-info { display: grid; line-height: 1.2; min-width: 0; }
  .buybar-info strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar-info span { font: 800 1.05rem var(--f-display); }
  .buybar .btn { padding: .7em 1.1em; font-size: .92rem; }
  .has-buybar .site-footer { padding-bottom: 80px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 2px dashed var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-head .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .facts { gap: 18px; margin: 28px 0 32px; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div:has(.tags) { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .facts dd .tags { margin-top: 4px; }
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; }
  .rail { grid-auto-columns: 82%; }
  .deco-card, .deco-hex { display: none; }
  .deco-die, .deco-meeple { display: none; }
  .games-grid--rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scroll-padding-inline: var(--gutter); }
  .games-grid--rail > * { scroll-snap-align: start; }
  .rulebook { flex-direction: column; align-items: flex-start; }
  .rulebook .btn { width: 100%; }
  .lore-icon { width: 120px; }
}

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

/* lore label: larger, heading-like */
.lore .eyebrow { font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--f-display); letter-spacing: .01em; margin-bottom: .6em; }
.lore blockquote::before { content: none; }
.lore blockquote p::before, .lore blockquote p::after { display: inline-block; font: 800 2.6em/0 var(--f-display); color: var(--orange); vertical-align: -.42em; }
.lore blockquote p::before { content: "“"; margin-right: .08em; }
.lore blockquote p::after { content: "”"; margin-left: .08em; }
.section.pt-sm { padding-top: clamp(24px, 4vw, 48px); }

/* ---------- newsletter (above the footer, every page) ---------- */
.newsletter { position: relative; background: var(--cream); padding: clamp(72px, 9vw, 110px) 0 clamp(64px, 8vw, 100px); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--yellow); border: 2.5px solid var(--brown); box-shadow: var(--shadow); }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; }
.cta-band-form { flex: 1 1 360px; max-width: 460px; }
.cta-band .inline-form input { padding: .85em 1.2em; }
.cta-band .newsletter-legal { font-size: .8rem; font-weight: 600; line-height: 1.45; opacity: .8; }
@media (max-width: 600px) { .cta-band-form { flex-basis: 100%; max-width: none; } }

/* big page titles (games, about) */
.page-title {
  font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.1; letter-spacing: -.01em; color: var(--brown);
  text-shadow: 3px 3px 0 var(--yellow); margin: 0 0 clamp(22px, 3vw, 40px);
}

/* ---------- ESPA banner: fixed at the bottom of the screen ---------- */
/* The image gets a fixed height (whatever its aspect ratio), so --espa-h is always the real bar height
   and the accessibility button can sit just above it. */
:root { --espa-img-h: 44px; --espa-h: calc(var(--espa-img-h) + 12px); }
@media (max-width: 560px) { :root { --espa-img-h: 34px; } }
.espa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; justify-content: center;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px -12px rgba(64,35,18,.35);
}
.espa-bar a, .espa-bar img { display: block; }
.espa-bar a { max-width: 100%; }
.espa-bar img { height: var(--espa-img-h); width: auto; max-width: 100%; object-fit: contain; }
.has-espa { padding-bottom: calc(var(--espa-h) + env(safe-area-inset-bottom)); }
.has-espa.has-buybar .buybar { bottom: calc(var(--espa-h) + 12px + env(safe-area-inset-bottom)); }
@media (max-width: 860px) { .has-espa.has-buybar .site-footer { padding-bottom: 80px; } }

/* ---------- interest modal ---------- */
.modal { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 2.5px solid var(--brown); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
.modal[open] { animation: pop .4s var(--ease); }
.modal::backdrop { background: rgba(42,22,11,.6); backdrop-filter: blur(3px); }
.modal:target:not([open]) { display: block; position: fixed; inset: 12px; margin: auto; z-index: 70; height: fit-content; } /* no-JS fallback */
.modal-box { position: relative; }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--brown); background: var(--paper); cursor: pointer; }
.modal-close:hover { background: var(--yellow); }
.modal-head { display: flex; align-items: center; gap: 16px; padding: 24px 64px 18px 24px; background: var(--yellow); border-bottom: 2.5px solid var(--brown); }
.modal-head h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0; }
.modal-head .eyebrow { margin-bottom: .4em; color: var(--orange-deep); }
.modal-cover { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; border: 2px solid var(--brown); transform: rotate(-4deg); }
.modal-cover > * { width: 100%; height: 100%; object-fit: cover; }
.modal-cover .cover-title, .modal-cover .cover-info, .modal-cover .cover-brand, .modal-cover .cover-meander { display: none; }
.modal-cover .cover-gen { padding: 12%; }
.modal-cover .cover-icon { width: 66%; margin: 0; }
.interest-form { padding: 22px 24px 26px; gap: 14px; border: 0; }
.interest-form[hidden] { display: none; }
.interest-form .field.has-error input { border-color: #C2412D; }
.interest-form .field label .muted { font-weight: 600; }
.interest-form .form-error[hidden], .interest-form .err[hidden] { display: none; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.modal-success { padding: 36px 28px 32px; text-align: center; }
.modal-success[hidden] { display: none; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: #3D9A5B; color: #fff; border: 2.5px solid var(--brown); box-shadow: var(--shadow-sm); }
.success-icon .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.modal-success p { color: var(--muted); }
body:has(.modal[open]) { overflow: hidden; }
@media (max-width: 600px) { .modal-head { padding: 20px 60px 16px 18px; } .interest-form { padding: 18px; } }

/* ---------- privacy policy ---------- */
.legal .container.narrow { max-width: 860px; }
.legal-updated { font-weight: 700; color: var(--muted); margin-top: -1.2em; }
.legal-intro { font-size: 1.15rem; line-height: 1.7; }
.legal-toc { margin: 28px 0 8px; padding: 20px 24px; border-radius: var(--r); background: var(--paper); border: 2.5px solid var(--brown); box-shadow: var(--shadow-sm); }
.legal-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.legal-toc li { margin: 4px 0; break-inside: avoid; font-weight: 700; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { color: var(--orange-deep); text-decoration: underline; }
.legal-section { padding-top: 28px; }
.legal-section h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.legal-section .num { width: 38px; height: 38px; font-size: .9rem; flex: none; }
.legal-section ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-section li { margin: 6px 0; }
.legal a, .newsletter-legal a, .check a { color: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.newsletter-legal { margin: 2px 4px 0; font-size: .82rem; font-weight: 600; line-height: 1.45; opacity: .85; }
.footer-bottom { align-items: center; }
.footer-links { margin: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--yellow); text-decoration: underline; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

.interest-cta { margin: 4px 0 0; }
.interest-cta .btn { font-size: 1.12rem; padding: 1em 1.6em; }
.newsletter-flush { padding-top: clamp(8px, 2vw, 24px); }

/* =========================================================
   Accessibility: contrast fixes (WCAG 2.1 AA)
   ========================================================= */
.eyebrow-orange { color: var(--orange-deep); }                 /* 5.1:1 on cream */
.lore .eyebrow { color: var(--yellow); }                         /* 6.6:1 on brown */
.modal-head .eyebrow, .newsletter .eyebrow { color: var(--brown); } /* on yellow */
.steps li::before { background: var(--orange-deep); }
::placeholder { color: #806451; opacity: 1; }                    /* 4.6:1 */
.newsletter-legal { opacity: 1; }

/* =========================================================
   Accessibility menu (button + modal)
   ========================================================= */
.a11y-fab {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 44;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--brown); color: var(--yellow); border: 2.5px solid var(--yellow); cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(42,22,11,.55); transition: transform .2s var(--ease), bottom .4s var(--ease);
}
.a11y-fab svg { width: 30px; height: 30px; }
.a11y-fab:hover { transform: scale(1.08); }
.a11y-fab:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 3px; }
.a11y-fab.is-active::after { content: ""; position: absolute; right: 1px; top: 1px; width: 13px; height: 13px; border-radius: 50%; background: #3D9A5B; border: 2px solid var(--paper); }
.has-espa .a11y-fab { bottom: calc(var(--espa-h) + 14px + env(safe-area-inset-bottom)); }
@media (max-width: 860px) {
  /* Only lift the button above the sticky buy bar while that bar is actually shown. */
  .has-buybar:has(.buybar.is-visible) .a11y-fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .has-espa.has-buybar:has(.buybar.is-visible) .a11y-fab { bottom: calc(var(--espa-h) + 96px + env(safe-area-inset-bottom)); }
  .a11y-fab { width: 46px; height: 46px; left: 12px; }
  .a11y-fab svg { width: 26px; height: 26px; }
}

.a11y-modal { width: min(620px, calc(100% - 24px)); }
.a11y-head-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brown); color: var(--yellow); transform: rotate(-4deg); }
.a11y-head-icon svg { width: 32px; height: 32px; }
.a11y-body { padding: 20px 24px 24px; display: grid; gap: 18px; }
.a11y-label { margin: 0 0 8px; font-weight: 800; }
.a11y-size { display: flex; align-items: center; gap: 10px; }
.a11y-step { min-width: 56px; height: 46px; border-radius: 12px; border: 2.5px solid var(--brown); background: var(--paper); font: 800 1.1rem var(--f-display); cursor: pointer; }
.a11y-step:hover:not(:disabled) { background: var(--yellow); }
.a11y-step:disabled { opacity: .4; cursor: not-allowed; }
.a11y-size-value { min-width: 70px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a11y-toggle {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.a11y-toggle:hover { border-color: var(--brown); }
.a11y-toggle > .icon { width: 26px; height: 26px; color: var(--orange-deep); }
.a11y-toggle-text { display: grid; gap: 2px; }
.a11y-toggle-text strong { font-size: .95rem; line-height: 1.25; }
.a11y-toggle-text small { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.a11y-switch { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #C9BBA8; transition: background-color .2s; }
.a11y-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.a11y-toggle[aria-pressed="true"] { border-color: var(--brown); background: var(--yellow-soft); }
.a11y-toggle[aria-pressed="true"] .a11y-switch { background: var(--brown); }
.a11y-toggle[aria-pressed="true"] .a11y-switch::after { transform: translateX(16px); }
.a11y-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 2px dashed var(--line); padding-top: 16px; }
.a11y-statement { font-weight: 800; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
@media (max-width: 560px) { .a11y-grid { grid-template-columns: 1fr; } .a11y-body { padding: 16px 18px 20px; } }

/* =========================================================
   Accessibility options (classes on <html>)
   ========================================================= */
/* High contrast */
html.a11y-contrast {
  --brown: #000; --brown-deep: #000; --brown-soft: #000; --ink: #000; --muted: #1a1a1a;
  --cream: #fff; --sand: #fff; --paper: #fff; --line: #000;
  --yellow: #FFD60A; --yellow-soft: #FFF3A6; --orange: #000; --orange-deep: #000; --tan: #000;
}
html.a11y-contrast body { color: #000; background: #fff; }
html.a11y-contrast .hero, html.a11y-contrast .lore, html.a11y-contrast .page-hero, html.a11y-contrast .site-header, html.a11y-contrast .site-footer, html.a11y-contrast .main-nav { background: #000 !important; color: #fff; }
html.a11y-contrast .hero::before, html.a11y-contrast .page-hero::before, html.a11y-contrast .cover-rays, html.a11y-contrast .hero-deco { display: none; }
html.a11y-contrast .hero h1, html.a11y-contrast .page-hero h1, html.a11y-contrast .page-title { text-shadow: none; }
html.a11y-contrast .lead, html.a11y-contrast .site-footer *, html.a11y-contrast .footer-bottom { opacity: 1 !important; }
html.a11y-contrast .lore blockquote, html.a11y-contrast .site-footer a, html.a11y-contrast .site-footer p { color: #fff; }
html.a11y-contrast .eyebrow, html.a11y-contrast .site-footer h3 { color: #FFD60A; }
html.a11y-contrast .section .eyebrow, html.a11y-contrast .modal .eyebrow, html.a11y-contrast .newsletter .eyebrow { color: #000; }
html.a11y-contrast a:not(.btn):not(.game-card-link):not(.brand):not(.h-btn) { text-decoration: underline; }
html.a11y-contrast .drip { color: #000; }
html.a11y-contrast .drip-cream, html.a11y-contrast .drip-white, html.a11y-contrast .drip-footer { color: #fff; }
html.a11y-contrast .site-footer .drip-footer { color: #fff; }

/* Grayscale */
html.a11y-grayscale body > *:not(dialog):not(.a11y-fab) { filter: grayscale(1); }

/* Highlight links */
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; background: #FFF3A6; color: #000 !important; border-radius: 3px; }
html.a11y-links .btn, html.a11y-links button { outline: 2px dashed currentColor; outline-offset: 2px; }

/* Readable font */
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable h4,
html.a11y-readable .btn, html.a11y-readable input, html.a11y-readable select, html.a11y-readable textarea, html.a11y-readable button,
html.a11y-readable .eyebrow, html.a11y-readable .cover-title, html.a11y-readable .stat strong, html.a11y-readable .main-nav ul a {
  font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; letter-spacing: normal;
}
html.a11y-readable .about-text p:first-child::first-letter { float: none; font: inherit; color: inherit; text-shadow: none; margin: 0; }

/* Text spacing (WCAG 1.4.12) */
html.a11y-spacing body, html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing a, html.a11y-spacing span, html.a11y-spacing label, html.a11y-spacing input, html.a11y-spacing textarea {
  letter-spacing: .12em !important; word-spacing: .16em !important;
}
html.a11y-spacing p, html.a11y-spacing li { line-height: 1.9 !important; margin-bottom: 1.2em; }

/* Stop animations */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-motion .box3d { transform: rotateY(-14deg) rotateX(5deg) !important; }

/* Big cursor */
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.6L9.6 19z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
html.a11y-cursor a, html.a11y-cursor button, html.a11y-cursor a *, html.a11y-cursor button *, html.a11y-cursor label, html.a11y-cursor [role=button] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M9 11V4.5a1.5 1.5 0 0 1 3 0V10l5.6 1.2c1 .2 1.6 1.1 1.4 2.1L18 19H10l-4.2-5.2a1.5 1.5 0 0 1 2.2-2z' fill='%23FFD60A' stroke='%23000' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 14 3, pointer !important;
}

/* Strong focus */
html.a11y-focus :focus, html.a11y-focus :focus-visible { outline: 4px solid #000 !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px #FFD60A !important; border-radius: 6px; }
kbd { display: inline-block; padding: 1px 7px; border: 2px solid var(--brown); border-bottom-width: 3px; border-radius: 6px; background: var(--paper); font: 700 .85em var(--f-body); }

.newsletter-msg { display: flex; align-items: center; gap: 8px; margin: 10px 4px 0; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 2px solid var(--brown); font-weight: 700; }
.newsletter-msg[hidden] { display: none; }
.newsletter-msg::before { content: "✓"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #2F7D48; color: #fff; font-size: .8rem; }
.newsletter-msg.is-error::before { content: "!"; background: #B23A27; }
.espa-page-img { width: 100%; max-width: 1100px; height: auto; margin: 0 auto; background: #fff; border-radius: var(--r); border: 2.5px solid var(--brown); padding: clamp(10px, 2vw, 24px); }

/* =========================================================
   Cookie consent banner
   ========================================================= */
.cookie-banner {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 46;
  width: min(440px, calc(100% - 32px)); display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; background: var(--paper); color: var(--ink);
  border: 2.5px solid var(--brown); border-radius: var(--r); box-shadow: var(--shadow);
  animation: cookie-in .5s var(--ease);
}
.cookie-banner[hidden] { display: none; }
.has-espa .cookie-banner { bottom: calc(var(--espa-h) + 16px + env(safe-area-inset-bottom)); }
.cookie-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brown); color: var(--tan); transform: rotate(-6deg); }
.cookie-icon svg { width: 34px; height: 34px; }
.cookie-title { font-size: 1.2rem; margin: 2px 0 .3em; }
.cookie-content p { font-size: .95rem; line-height: 1.55; margin: 0 0 14px; }
.cookie-content p a { font-weight: 700; color: var(--orange-deep); white-space: nowrap; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 120px; padding: .7em 1.1em; cursor: pointer; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-decoration: none; }
.link-btn:hover { color: var(--yellow); text-decoration: underline; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(24px) rotate(-1deg); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: 16px; gap: 12px; }
  .has-espa .cookie-banner { bottom: calc(var(--espa-h) + 12px + env(safe-area-inset-bottom)); }
  .cookie-icon { width: 42px; height: 42px; border-radius: 12px; }
  .cookie-icon svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
