:root { --cream: #f5ede2; --ink: #293829; --muted: #645e55; --border-peach: #e8d2c7; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); }
body { background: #eff0eb; }
button, input { font: inherit; }
.game-topbar { position: fixed; z-index: 5; top: 0; left: 0; padding: 18px clamp(16px, 4vw, 48px); }
.back-link { display: inline-flex; align-items: center; padding: 10px 15px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: rgba(245,237,226,.94); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.08); }
.game-screen { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; background: #e8ece4; }
.screen-visual { position: absolute; z-index: -1; inset: 0; display: block; }
.screen-image { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-screen--horse::after { position: absolute; z-index: 0; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, transparent 45%, rgba(17,24,18,.12)); }
.game-hero-title { position: absolute; z-index: 1; top: clamp(68px, 10vh, 96px); left: 50%; max-width: min(700px, 80%); transform: translateX(-50%); color: var(--ink); font: 400 clamp(34px, 4vw, 58px)/1.02 "DM Serif Display", Georgia, serif; text-align: center; text-shadow: 0 2px 14px rgba(245,237,226,.8); }
.game-screen--map { background: #eff0eb; }
.screen-image--map { inset: 50% auto auto 50%; width: min(82vw, 84svh); height: min(82vw, 84svh); transform: translate(-50%, -50%); border-radius: 24px; object-fit: contain; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.screen-box { position: relative; z-index: 1; width: min(360px, calc(100% - 32px)); padding: 22px; border: 3px solid transparent; border-radius: 18px; background: linear-gradient(var(--cream), var(--cream)) padding-box, linear-gradient(180deg, #fff 0%, var(--border-peach) 100%) border-box; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.08); }
.screen-box--entry { margin: 0 clamp(16px, 6vw, 80px) 0 auto; }
.screen-box--map { position: absolute; right: clamp(16px, 5vw, 64px); bottom: 28px; width: min(340px, calc(100% - 32px)); }
.screen-kicker { display: block; margin-bottom: 8px; color: #536f47; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; color: var(--ink); font: 400 36px/1.05 "DM Serif Display", Georgia, serif; }
.screen-box--map h2 { font-size: 32px; }
.screen-box--map p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.game-action-button, .waitlist-form button { display: inline-flex; align-items: center; justify-content: center; gap: 2px; height: 52px; padding: 0 4px 0 14px; border: 3px solid transparent; border-radius: 18px; background: linear-gradient(var(--cream), var(--cream)) padding-box, linear-gradient(180deg, #fff 0%, var(--border-peach) 100%) border-box; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.08); color: #17130f; font: 400 17px Georgia, "Times New Roman", serif; white-space: nowrap; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.game-action-button { position: absolute; z-index: 2; right: clamp(16px, 4vw, 54px); bottom: 28px; min-width: 270px; height: 68px; padding-left: 18px; font-size: 20px; animation: cta-warmth 3s ease-in-out infinite; }
.game-action-button::before { position: absolute; z-index: 0; inset: 3px; border-radius: 15px; background: #e6bd91; content: ""; opacity: 0; pointer-events: none; animation: cta-tint 3s ease-in-out infinite; }
.game-action-button > span, .game-action-button > img { position: relative; z-index: 1; }
.game-action-button img, .waitlist-form button img { display: block; width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; transition: transform .18s ease; }
.game-action-button img { width: 58px; height: 58px; }
.game-action-button:hover, .waitlist-form button:hover { box-shadow: 0 2px 4px rgba(0,0,0,.07), 0 10px 24px rgba(0,0,0,.12); }
.waitlist-form button:hover img { transform: translateX(2px) scale(1.05); }
.game-action-button:focus-visible, .waitlist-form button:focus-visible, .dialog-close:focus-visible, .back-link:focus-visible { outline: 3px solid #536f47; outline-offset: 3px; }
.waitlist-dialog { position: fixed; width: min(520px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); overflow: auto; padding: 28px; border: 3px solid transparent; border-radius: 18px; background: linear-gradient(var(--cream), var(--cream)) padding-box, linear-gradient(180deg, #fff 0%, var(--border-peach) 100%) border-box; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 28px rgba(0,0,0,.16); color: var(--ink); }
.waitlist-dialog::backdrop { background: rgba(27,37,28,.58); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 10px; right: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #e4d5c8; border-radius: 12px; background: #fffaf1; color: #46382c; font-size: 23px; line-height: 1; cursor: pointer; }
.waitlist-card { padding-right: 28px; }
.coming-soon { color: #a65335; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.waitlist-card h2 { margin-top: 6px; padding-right: 22px; font-size: 32px; }
.waitlist-card > p { margin: 10px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.waitlist-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.waitlist-form > input[type=email] { min-width: 0; height: 52px; padding: 0 14px; border: 1px solid #d9cbbb; border-radius: 10px; background: #fff; color: #36281c; font-size: 13px; }
.waitlist-form button { min-width: 160px; padding: 0 16px; font-size: 15px; }
.waitlist-form button:disabled { opacity: .65; cursor: wait; }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; margin-top: 2px; color: #6b6258; font-size: 10px; line-height: 1.45; }
.consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #536f47; }
.consent a { color: #754a2d; text-decoration: underline; }
.honeypot, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-message { min-height: 0; margin-top: 0; color: #365b32; font-size: 12px; font-weight: 700; }
.form-message:not(:empty) { margin-top: 10px; }
.form-message.error { color: #9c392e; }
.age-note { margin: 9px 0 0; color: #756a5d; font-size: 10px; }
@keyframes cta-tint { 0%, 100% { opacity: 0; } 50% { opacity: .24; } }
@keyframes cta-warmth { 0%, 100% { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.08); } 50% { box-shadow: 0 2px 5px rgba(135,88,51,.12), 0 7px 18px rgba(135,88,51,.13); } }
@media (max-width: 700px) {
  .game-topbar { z-index: 8; padding: 14px; }
  .back-link { padding: 8px 11px; font-size: 11px; }
  .game-screen { display: block; min-height: 100vh; min-height: 100svh; padding: 0; }
  .game-screens { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .game-screen--horse { z-index: 6; height: auto; min-height: 0; aspect-ratio: 857 / 1674; }
  .game-hero-title { top: 68px; left: 16px; max-width: 58%; transform: none; font-size: clamp(19px, 5.8vw, 23px); line-height: 1.06; text-shadow: 0 1px 10px rgba(245,237,226,.76); }
  .screen-visual { z-index: 0; }
  .screen-image, .screen-image--map { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; max-width: none; transform: none; border-radius: 0; object-fit: contain; box-shadow: none; }
  .game-screen--horse .screen-image { object-position: top center; }
  .game-screen--horse::after { display: block; background: linear-gradient(0deg, rgba(18,26,17,.34), rgba(18,26,17,.04) 62%, transparent); }
  .game-action-button { position: fixed; z-index: 7; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 14px; width: auto; min-width: 0; height: 60px; font-size: 18px; transform: none; }
  .game-action-button img { width: 52px; height: 52px; }
  .game-screen--map { display: flex; min-height: 0; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; padding: 20px 14px 20px; overflow: visible; }
  .screen-image--map { position: relative; inset: auto; width: min(100%, 560px); height: auto; aspect-ratio: 1; transform: none; border-radius: 18px; background: #eff0eb; object-fit: contain; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
  .screen-box, .screen-box--entry, .screen-box--map { position: absolute; z-index: 2; width: min(310px, calc(100% - 28px)); margin: 0; padding: 16px; transform: none; }
  .screen-box--entry { right: 14px; bottom: 18px; }
  .screen-box--map { position: relative; inset: auto; align-self: center; width: min(100%, 560px); margin: 0; }
  h1, h2 { font-size: 29px; }
  .screen-box--map h2 { font-size: 25px; }
  .screen-box--map p { margin-top: 7px; font-size: 12px; }
  .waitlist-dialog { padding: 24px 18px; }
  .waitlist-card { padding-right: 16px; }
  .waitlist-card h2 { font-size: 28px; }
  .waitlist-form { grid-template-columns: 1fr; }
  .waitlist-form button { justify-self: start; min-width: 160px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } .game-action-button, .game-action-button::before { animation: none; } }
