/* ArcHour Studios — site styles. Night navy, warm amber, off-white. No external resources. */

:root {
  --navy-0: #06081a;
  --navy-1: #090c20;
  --navy-2: #0e1230;
  --navy-3: #131840;
  --navy-4: #1b2156;
  --navy-5: #262d70;
  --line: rgba(170, 178, 255, 0.14);
  --line-strong: rgba(170, 178, 255, 0.26);
  --text: #f3efe6;
  --muted: #b9bcd9;
  --dim: #8f93bb;
  --amber: #ffb347;
  --orange: #ff8433;
  --glow: rgba(255, 179, 71, 0.35);
  --radius: 28px;
  --radius-sm: 16px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --font: "Avenir Next", Avenir, "Century Gothic", "Segoe UI", "Helvetica Neue", Roboto, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-2) linear-gradient(180deg, var(--navy-3) 0, var(--navy-2) 38rem, var(--navy-1) 100%) no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Night sky: three sparse star layers, fixed behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 23px 41px, rgba(243, 239, 230, 0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 151px 97px, rgba(243, 239, 230, 0.5) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 89px 173px, rgba(255, 214, 153, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 211px 29px, rgba(243, 239, 230, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 47px 233px, rgba(190, 198, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 307px 211px, rgba(243, 239, 230, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 263px 331px, rgba(243, 239, 230, 0.4) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 131px 389px, rgba(190, 198, 255, 0.5) 50%, transparent 51%);
  background-size: 263px 263px, 331px 331px, 397px 397px, 233px 233px, 449px 449px, 521px 521px, 367px 367px, 479px 479px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.25) 100%);
  mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.25) 100%);
}

img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #ffc978; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 179, 71, 0.32); color: #fff; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--amber); color: var(--navy-2); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--navy-2); }

.eyebrow { display: inline-flex; align-items: center; gap: 0.6em; margin: 0 0 14px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.lede { font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem); color: var(--muted); max-width: 46ch; }

main { overflow-x: clip; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s; }
.site-header.is-stuck, .no-js .site-header { background: rgba(11, 14, 38, 0.78); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 10px; }
.brand img { display: block; height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(2px, 1.4vw, 14px); margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(170, 178, 255, 0.1); }
.nav a[aria-current="page"] { color: var(--amber); }
@media (max-width: 520px) {
  .brand img { height: 32px; }
  .nav a { padding: 8px 9px; font-size: 0.9rem; }
  .nav .nav-optional { display: none; }
}

/* ------------------------------------------------------------ buttons / pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 0.98rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.25s, border-color 0.25s, color 0.25s; }
.btn-primary { color: #1a1206; background: linear-gradient(135deg, var(--amber), var(--orange)); box-shadow: 0 8px 28px -10px rgba(255, 132, 51, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { color: #1a1206; transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255, 132, 51, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(170, 178, 255, 0.06); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 179, 71, 0.6); background: rgba(255, 179, 71, 0.08); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* "Coming soon to iPhone" — our own pill, not Apple's badge artwork. */
.soon-pill { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 22px 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 179, 71, 0.45); background: linear-gradient(180deg, rgba(255, 179, 71, 0.12), rgba(255, 132, 51, 0.05)); color: var(--text); text-decoration: none; box-shadow: 0 0 34px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.soon-pill .soon-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 179, 71, 0.16); color: var(--amber); }
.soon-pill .soon-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.soon-pill small { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.soon-pill strong { font-size: 1.02rem; font-weight: 600; }
a.soon-pill:hover { color: var(--text); border-color: var(--amber); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ------------------------------------------------------------ hero (home) */
.hero { position: relative; padding: clamp(28px, 6vh, 72px) 0 clamp(56px, 9vh, 110px); text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -120px; width: min(1100px, 150vw); aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(58, 66, 160, 0.5), rgba(38, 45, 112, 0.22) 45%, transparent 70%); pointer-events: none; }
.hero-rings { position: absolute; z-index: -1; left: 50%; top: clamp(-150px, -9vw, -60px); width: min(980px, 170vw); aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; opacity: 0.9; }
.hero-rings circle { fill: none; stroke: rgba(170, 178, 255, 0.11); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-rings .ring-amber { stroke: rgba(255, 179, 71, 0.28); stroke-dasharray: 2 14; stroke-linecap: round; stroke-width: 1.6; }
.hero-rings g { transform-origin: 500px 500px; }
.hero-logo { display: block; width: min(430px, 76vw); height: auto; margin: 0 auto clamp(26px, 4vh, 44px); overflow: visible; }
.hero h1 { font-size: clamp(2rem, 4.6vw + 0.6rem, 4.1rem); font-weight: 600; letter-spacing: -0.03em; max-width: 16ch; margin-inline: auto; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--amber) 10%, var(--orange) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin: 22px auto 34px; max-width: 52ch; }
.hero .cta-row { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 44px 0 0; padding: 0; list-style: none; color: var(--dim); font-size: 0.86rem; letter-spacing: 0.04em; }
.hero-meta li { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* Night Orbit intro — final state is the default; motion is opt-in below. */
.hero-logo .lg-glow { transform-origin: 75.46px 24.54px; }
.hero-logo .lg-spark-ride { transform-origin: 50px 50px; }
.hero-logo .lg-spark { transform-origin: 75.46px 24.54px; }
.hero-logo .lg-dot { transform-origin: 50px 50px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-logo .lg-sweep { animation: lg-sweep 1.05s cubic-bezier(0.45, 0, 0.15, 1) 0.25s both; }
  .hero-logo .lg-spark-ride { animation: lg-ride 1.05s cubic-bezier(0.45, 0, 0.15, 1) 0.25s both; }
  .hero-logo .lg-spark { animation: lg-spark 1.75s linear 0.25s both; }
  .hero-logo .lg-glow { animation: lg-bloom 1.1s ease-out 1.2s both, lg-breathe 5s ease-in-out 2.4s infinite; }
  .hero-logo .lg-dot { animation: lg-pop 0.5s cubic-bezier(0.3, 1.7, 0.5, 1) 1.38s both; }
  .hero-logo .lg-word { animation: lg-rise 0.6s var(--ease) 1.5s both; }
  .hero-logo .lg-studios { animation: lg-fade 0.6s ease-out 1.85s both; }
  .hero-copy > * { animation: lg-rise-html 0.8s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: 1.9s; }
  .hero-copy > :nth-child(2) { animation-delay: 2.02s; }
  .hero-copy > :nth-child(3) { animation-delay: 2.14s; }
  .hero-copy > :nth-child(4) { animation-delay: 2.3s; }
  .hero-rings g { animation: spin 240s linear infinite; }
  .hero-rings g + g { animation-duration: 380s; animation-direction: reverse; }
}
@keyframes lg-sweep { from { stroke-dashoffset: 336; } to { stroke-dashoffset: 0; } }
@keyframes lg-ride { from { transform: rotate(-327deg); } to { transform: rotate(0deg); } }
@keyframes lg-spark {
  0% { transform: scale(0.2); opacity: 0; }
  8% { transform: scale(0.36); opacity: 0.9; }
  52% { transform: scale(0.62); opacity: 0.95; }
  60% { transform: scale(0.7) rotate(0deg); opacity: 1; }
  70% { transform: scale(1.32) rotate(45deg); }
  100% { transform: scale(1) rotate(90deg); opacity: 1; }
}
@keyframes lg-bloom { 0% { opacity: 0; transform: scale(0.4); } 35% { opacity: 1; transform: scale(1.9); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lg-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.18); } }
@keyframes lg-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes lg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lg-rise-html { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(56px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.8rem, 2.6vw + 1rem, 3rem); margin-bottom: 16px; }

.orbit-divider { display: block; width: min(420px, 70vw); height: auto; margin: 0 auto; opacity: 0.95; }

/* Scroll reveal (only when JS is running and motion is welcome). */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ phone frame (pure CSS) */
.phone { --w: 230px; position: relative; flex: none; width: var(--w); padding: calc(var(--w) * 0.035); border-radius: calc(var(--w) * 0.155); background: linear-gradient(160deg, #1a1e45, #05060f 40%, #05060f); box-shadow: inset 0 0 0 1.5px rgba(150, 160, 255, 0.34), inset 0 0 0 calc(var(--w) * 0.014) #05060f, 0 calc(var(--w) * 0.14) calc(var(--w) * 0.3) calc(var(--w) * -0.1) rgba(0, 0, 0, 0.75), 0 0 calc(var(--w) * 0.4) calc(var(--w) * -0.14) var(--game-glow, rgba(120, 130, 255, 0.5)); }
.phone img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: calc(var(--w) * 0.12); background: var(--navy-1); }
.phone::after { content: ""; position: absolute; left: 50%; top: calc(var(--w) * 0.065); width: 26%; height: calc(var(--w) * 0.05); transform: translateX(-50%); border-radius: 999px; background: #05060f; opacity: 0.92; }

.phone-fan { position: relative; display: flex; justify-content: center; align-items: center; padding: 12px 0 24px; }
.phone-fan .phone { transition: transform 0.6s var(--ease); }
.phone-fan .phone:nth-child(1) { z-index: 2; }
.phone-fan .phone:nth-child(2) { --w: 200px; z-index: 1; margin-left: calc(var(--w) * -0.3); transform: translateY(6%) rotate(7deg); }
.phone-fan .phone:nth-child(3) { --w: 200px; z-index: 0; order: -1; margin-right: calc(var(--w) * -0.3); transform: translateY(6%) rotate(-7deg); }
@media (hover: hover) {
  .phone-fan:hover .phone:nth-child(2) { transform: translate(7%, 4%) rotate(10deg); }
  .phone-fan:hover .phone:nth-child(3) { transform: translate(-7%, 4%) rotate(-10deg); }
}
@media (max-width: 560px) {
  .phone-fan .phone:nth-child(1) { --w: 42vw; }
  .phone-fan .phone:nth-child(2), .phone-fan .phone:nth-child(3) { --w: 34vw; }
}
@media (min-width: 561px) and (max-width: 1080px) {
  .phone-fan .phone:nth-child(1) { --w: 250px; }
  .phone-fan .phone:nth-child(2), .phone-fan .phone:nth-child(3) { --w: 215px; }
}

/* ------------------------------------------------------------ game showcase (home) */
.games-list { display: grid; gap: clamp(28px, 4vw, 48px); }
.game-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(24px, 4.4vw, 60px); border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0, var(--game-tint, rgba(120, 130, 255, 0.16)), transparent 55%), linear-gradient(160deg, rgba(27, 33, 86, 0.75), rgba(14, 18, 48, 0.85)); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05); overflow: hidden; isolation: isolate; }
.game-card::before { content: ""; position: absolute; z-index: -1; right: -18%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 179, 71, 0.2); pointer-events: none; }
.game-card:nth-child(even) .game-copy { order: 2; }
.game-card:nth-child(even) { background: radial-gradient(120% 140% at 0 0, var(--game-tint, rgba(120, 130, 255, 0.16)), transparent 55%), linear-gradient(200deg, rgba(27, 33, 86, 0.75), rgba(14, 18, 48, 0.85)); }
.game-card:nth-child(even)::before { right: auto; left: -18%; }
.game-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.app-icon { flex: none; width: 76px; height: 76px; border-radius: 22.5%; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.game-id .genre { margin: 0; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--game-accent, var(--amber)); }
.game-id h3 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); margin-top: 4px; }
.game-tagline { font-size: clamp(1.15rem, 1vw + 0.95rem, 1.5rem); font-weight: 500; line-height: 1.3; color: var(--text); margin-bottom: 14px; }
.game-copy > p { color: var(--muted); max-width: 48ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.chips li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(170, 178, 255, 0.06); font-size: 0.84rem; color: var(--text); }
@media (max-width: 860px) {
  .game-card { grid-template-columns: minmax(0, 1fr); }
  .game-card:nth-child(even) .game-copy { order: 0; }
}

.teaser-card { display: grid; place-items: center; gap: 14px; padding: clamp(36px, 6vw, 64px) 24px; border-radius: var(--radius); border: 1.5px dashed var(--line-strong); text-align: center; color: var(--muted); background: rgba(14, 18, 48, 0.4); }
.teaser-card img { width: 54px; height: 54px; opacity: 0.9; }
.teaser-card h3 { font-size: 1.4rem; color: var(--text); }
.teaser-card p { max-width: 44ch; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .teaser-card img { animation: spin 26s linear infinite; } }

/* ------------------------------------------------------------ studio / values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.value, .feature { position: relative; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(27, 33, 86, 0.55), rgba(14, 18, 48, 0.55)); transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s; }
@media (hover: hover) { .value:hover, .feature:hover { transform: translateY(-4px); border-color: rgba(255, 179, 71, 0.4); box-shadow: 0 24px 50px -30px rgba(255, 132, 51, 0.5); } }
.value h3, .feature h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.value p, .feature p { color: var(--muted); font-size: 0.98rem; }
.glyph { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 179, 71, 0.12); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.25); }
.glyph svg { width: 24px; height: 24px; }
@media (max-width: 860px) { .values { grid-template-columns: minmax(0, 1fr); } }

.contact-panel { display: grid; justify-items: center; gap: 18px; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 60px); border-radius: var(--radius); border: 1px solid var(--line); text-align: center; background: radial-gradient(80% 120% at 50% 0, rgba(255, 179, 71, 0.13), transparent 60%), linear-gradient(180deg, rgba(27, 33, 86, 0.7), rgba(14, 18, 48, 0.7)); }
.contact-panel h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.6rem); }
.contact-panel p { color: var(--muted); max-width: 50ch; margin: 0; }
.email-link { font-size: clamp(1.1rem, 2.6vw + 0.5rem, 1.7rem); font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ game pages */
.game-hero { position: relative; padding: clamp(24px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); isolation: isolate; }
.game-hero::before { content: ""; position: absolute; z-index: -1; inset: -90px 0 auto; height: 780px; background: radial-gradient(60% 60% at 75% 30%, var(--game-tint), transparent 70%), radial-gradient(50% 50% at 10% 10%, rgba(58, 66, 160, 0.4), transparent 70%); pointer-events: none; }
.game-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.crumbs { margin: 0 0 26px; font-size: 0.88rem; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.game-hero .app-icon { width: 96px; height: 96px; margin-bottom: 22px; }
.game-hero h1 { margin: 0 0 6px; }
.game-hero h1 img { display: block; width: auto; max-width: min(100%, 440px); max-height: 190px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5)); }
.game-hero .genre { margin: 0 0 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--game-accent); }
.game-hero .game-tagline { font-size: clamp(1.4rem, 1.8vw + 1rem, 2.1rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.game-hero .lede { margin-bottom: 28px; }
.fine { font-size: 0.86rem; color: var(--dim); margin-top: 16px; }
@media (max-width: 860px) { .game-hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: feat; }
.feature { counter-increment: feat; }
.feature::before { content: "0" counter(feat); display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; color: var(--game-accent, var(--amber)); }
.feature h3 { margin-top: 12px; }
@media (max-width: 1040px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

.gallery { display: flex; gap: clamp(18px, 3vw, 36px); justify-content: center; margin: 0; padding: 10px var(--gutter) 34px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--navy-5) transparent; }
.gallery li { flex: none; scroll-snap-align: center; text-align: center; }
.gallery .phone { --w: clamp(190px, 19vw, 240px); margin-inline: auto; }
.gallery figcaption, .gallery .cap { margin-top: 16px; font-size: 0.9rem; color: var(--muted); max-width: 24ch; margin-inline: auto; }
@media (max-width: 900px) { .gallery { justify-content: flex-start; } .gallery .phone { --w: 210px; } }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding: clamp(24px, 4.4vw, 56px); border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(90% 120% at 0 50%, var(--game-tint), transparent 60%), linear-gradient(180deg, rgba(27, 33, 86, 0.6), rgba(14, 18, 48, 0.6)); }
.split .mascot { display: block; width: min(300px, 70%); margin-inline: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45)); }
.split h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); margin-bottom: 14px; }
.split p { color: var(--muted); }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 12px; background: var(--amber); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.ticks strong { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } .split .mascot { width: min(220px, 60%); } }
@media (prefers-reduced-motion: no-preference) { .mascot { animation: bob 5s ease-in-out infinite; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.next-game { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px clamp(20px, 4vw, 40px); border-radius: 22px; border: 1px solid var(--line); background: rgba(27, 33, 86, 0.4); text-decoration: none; color: var(--text); transition: border-color 0.3s, transform 0.4s var(--ease); }
.next-game:hover { color: var(--text); border-color: rgba(255, 179, 71, 0.5); transform: translateY(-3px); }
.next-game .who { display: flex; align-items: center; gap: 16px; }
.next-game .app-icon { width: 60px; height: 60px; }
.next-game small { display: block; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.next-game strong { font-size: 1.3rem; font-weight: 600; }

/* Game accents (tint only — the frame stays night navy). */
.theme-sandflip { --game-accent: #ffb86b; --game-tint: rgba(214, 92, 150, 0.26); --game-glow: rgba(255, 140, 120, 0.55); }
.theme-ferry-rush { --game-accent: #6fd3f2; --game-tint: rgba(46, 150, 220, 0.26); --game-glow: rgba(80, 180, 255, 0.55); }

/* ------------------------------------------------------------ prose pages (legal, support) */
.page-head { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.page-head h1 { font-size: clamp(2.1rem, 3.4vw + 1rem, 3.6rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.page-head .lede { max-width: 60ch; }
.page-head .meta { margin-top: 18px; font-size: 0.9rem; color: var(--dim); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 110px); }
.toc { position: sticky; top: 92px; padding: 20px 6px 20px 20px; border-left: 1px solid var(--line); font-size: 0.9rem; max-height: calc(100vh - 120px); overflow: auto; }
.toc h2 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--amber); }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; max-height: none; border-left: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(27, 33, 86, 0.35); } .toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 20px; } }

.prose { max-width: 74ch; min-width: 0; }
.prose h2 { font-size: clamp(1.4rem, 1.2vw + 1.1rem, 1.85rem); margin: 2.4em 0 0.7em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.14rem; margin: 1.8em 0 0.5em; color: var(--text); }
.prose p, .prose li { color: #d3d5ea; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--amber); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; padding: 0.1em 0.4em; border-radius: 6px; background: rgba(170, 178, 255, 0.12); }
.callout { margin: 0 0 2em; padding: 22px 24px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 179, 71, 0.35); background: linear-gradient(180deg, rgba(255, 179, 71, 0.1), rgba(255, 132, 51, 0.03)); }
.callout h2 { margin: 0 0 0.5em; font-size: 1.1rem; letter-spacing: 0; color: var(--amber); }
.callout ul { margin-bottom: 0; }
.placeholder { padding: 0.08em 0.4em; border-radius: 6px; border: 1px dashed rgba(255, 179, 71, 0.7); background: rgba(255, 179, 71, 0.1); color: #ffd9a3; font-style: normal; }

.table-scroll { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #d3d5ea; }
.prose thead th { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); background: rgba(27, 33, 86, 0.5); font-weight: 600; }
.prose tbody th { color: var(--text); font-weight: 600; width: 22%; }
.prose tr:last-child > * { border-bottom: 0; }

/* FAQ */
.faq-group { margin-bottom: 2.6em; }
.faq-group > h2 { font-size: 1.3rem; margin-bottom: 0.8em; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(27, 33, 86, 0.38); margin-bottom: 10px; transition: border-color 0.3s, background-color 0.3s; }
.faq details[open] { border-color: rgba(255, 179, 71, 0.4); background: rgba(27, 33, 86, 0.6); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--radius-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: translateY(-3px) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq .answer { padding: 0 20px 20px; }
.faq .answer p, .faq .answer li { color: #d3d5ea; }

/* 404 */
.lost { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 68vh; padding: 48px 0 80px; text-align: center; }
.lost img { width: min(200px, 44vw); }
.lost h1 { font-size: clamp(2.2rem, 5vw + 1rem, 4.4rem); letter-spacing: -0.03em; }
.lost p { color: var(--muted); max-width: 44ch; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .lost img { animation: drift 9s ease-in-out infinite; } }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-14px) rotate(8deg); } }

/* ------------------------------------------------------------ footer */
.site-footer { position: relative; margin-top: clamp(24px, 4vw, 48px); padding: 56px 0 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(6, 8, 26, 0.7)); font-size: 0.93rem; color: var(--muted); }
.footer-grid > * { min-width: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { display: block; height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; color: var(--dim); }
.site-footer h2 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; font-weight: 600; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; overflow-wrap: anywhere; padding: 4px 0; color: var(--muted); text-decoration: none; }
.site-footer li a:hover { color: var(--amber); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.84rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); } .footer-brand { grid-column: 1 / -1; } }

@media print {
  body { background: #fff; color: #111; }
  body::before, .site-header, .site-footer, .toc, .hero-rings { display: none; }
  .prose p, .prose li, .prose td, .prose th { color: #111; }
  a { color: #111; }
}

/* Very narrow phones (360 px): keep the header on one line. */
@media (max-width: 400px) {
  .site-header .wrap { gap: 8px; }
  .brand img { height: 28px; }
  .nav a { padding: 8px 7px; font-size: 0.86rem; }
}
