/* ============ STARFALL HIGH NOON ============ */
:root {
  --ink: #0f0d1a;
  --bg: #14111f;
  --bg-alt: #181426;
  --sand: #e8d5b7;
  --sand-dim: rgba(232, 213, 183, 0.62);
  --line: rgba(232, 213, 183, 0.14);
  --orange: #e86a33;
  --orange-bright: #ff8c42;
  --teal: #3de8d8;
  --font-display: "Ewert", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--sand);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--ink); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1rem 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(15, 13, 26, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.6rem 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sand);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
}
.brand-star { width: 22px; height: 22px; fill: var(--orange); flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--sand-dim);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange-bright); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 24px rgba(232, 106, 51, 0.35);
}
.btn-primary:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 140, 66, 0.45);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--sand);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 15%, rgba(61, 232, 216, 0.07), transparent 60%),
    radial-gradient(ellipse 90% 70% at 25% 85%, rgba(232, 106, 51, 0.16), transparent 60%),
    linear-gradient(180deg, #0d0b18 0%, #191227 55%, #2b1a30 100%);
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 24, 0.55) 0%, rgba(13, 11, 24, 0.3) 55%, rgba(13, 11, 24, 0.85) 100%);
}
.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 24%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 34% 12%, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 58% 8%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 78% 20%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 90% 34%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 22% 40%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 45% 28%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 68% 32%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 85% 10%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 5% 15%, rgba(255,255,255,.55), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.75; } to { opacity: 1; } }
.hero-dunes {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34vh;
  background:
    radial-gradient(120% 100% at 15% 100%, #241531 0%, transparent 55%),
    radial-gradient(120% 120% at 80% 100%, #33203c 0%, transparent 60%),
    linear-gradient(180deg, transparent, rgba(20, 12, 30, 0.9));
}
.hero-dunes::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 12vh;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.hero-kicker .cos-kicker-icon {
  width: 2.8em; height: 2.8em;
  margin-right: 0.7em;
  vertical-align: -0.7em;
  object-fit: contain;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: 0.04em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero-title .title-line { display: block; }
.title-accent {
  color: var(--orange-bright);
  text-shadow: 0 0 50px rgba(255, 140, 66, 0.45), 0 4px 40px rgba(0,0,0,0.6);
}
.hero-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 1.2rem 0 0.8rem;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--sand-dim);
  font-size: 1.02rem;
}
.hero-sub strong { color: var(--sand); }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  max-width: 760px;
  margin: 0 auto;
}
.meta-item { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.92rem; }
.meta-label { font-size: 0.66rem; letter-spacing: 0.2em; color: var(--sand-dim); }
.meta-item span:last-child { display: flex; align-items: center; gap: 0.4rem; }
.meta-item svg { fill: var(--sand-dim); }
.rating-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  background: rgba(255,255,255,0.03);
}
.rating-letter {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--teal);
  border-right: 1px solid var(--line);
  padding-right: 0.6rem;
  line-height: 1;
}
.rating-text { font-size: 0.62rem; letter-spacing: 0.1em; line-height: 1.3; text-align: left; color: var(--sand-dim); }
.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  width: 22px; height: 34px;
  border: 2px solid var(--sand-dim);
  border-radius: 12px;
  z-index: 2;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--orange-bright);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.3; transform: translateY(10px); } }

/* ============ SECTIONS ============ */
.section { padding: 6rem 1.5rem; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3.2rem; }
.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.section-head h2, .story-text h2, .newsletter h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
}
.section-sub { color: var(--sand-dim); margin-top: 0.6rem; }

/* ============ GAMEPLAY CAPTURE ============ */
.capture-frame {
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(61,232,216,0.06);
}
.capture-screen { position: relative; aspect-ratio: 16 / 9; background: #0a0812; }
.capture-screen { overflow: hidden; }
.capture-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  }
/* ============ STORY ============ */
.story-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.story-text .section-kicker { margin-bottom: 0.7rem; }
.story-text p { margin-bottom: 1.1rem; color: var(--sand-dim); }
.story-text p strong { color: var(--sand); }
.story-credit { border-left: 2px solid var(--teal); padding-left: 1rem; font-size: 0.92rem; }
.story-poster {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* ============ FEATURES ============ */
.feature-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.feature-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.025), transparent);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 106, 51, 0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.feature-icon { margin-bottom: 0.9rem; }
.feature-icon img {
  width: 64px; height: 64px;
  object-fit: contain;
  display: block;
}
.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.88rem; color: var(--sand-dim); }

/* ============ REQUIREMENTS ============ */
.req-grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.req-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
}
.req-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--orange-bright);
  margin-bottom: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.req-card table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.req-card td { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.req-card tr:last-child td { border-bottom: none; }
.req-card td:first-child { color: var(--sand-dim); width: 38%; }
.req-note { text-align: center; margin-top: 1.6rem; font-size: 0.78rem; color: var(--sand-dim); }

/* ============ NEWSLETTER ============ */
.newsletter {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.newsletter p { color: var(--sand-dim); margin: 0.8rem 0 1.6rem; }
.newsletter-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 240px;
  max-width: 340px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--teal); }
.newsletter-success { color: var(--teal) !important; font-weight: 600; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 3rem 1.5rem 2rem; background: #0c0a15; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.footer-brand .brand-star { width: 26px; height: 26px; fill: var(--orange); flex-shrink: 0; }
.footer-brand strong { display: block; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em; }
.footer-brand small { color: var(--sand-dim); font-size: 0.75rem; }
.footer-links { display: flex; gap: 1.4rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: var(--sand-dim); font-size: 0.8rem; text-decoration: none; letter-spacing: 0.06em; }
.footer-links a:hover { color: var(--orange-bright); }
.footer-fine { font-size: 0.7rem; color: rgba(232,213,183,0.35); line-height: 1.7; max-width: 800px; }
.footer-brand small .cos-footer-icon,
.footer-fine .cos-fine-icon {
  width: 28px; height: 28px;
  vertical-align: -5px;
  margin-right: 0.4em;
  object-fit: contain;
}

/* ============ COOKIE BANNER ============ */
.cookie {
  position: fixed;
  bottom: 1.2rem; left: 50%;
  transform: translate(-50%, 0);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(560px, calc(100vw - 2rem));
  background: rgba(20, 17, 31, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-size: 0.82rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.cookie.hidden { display: none; }
.cookie a { color: var(--teal); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .feature-grid, .req-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.2rem; }
  .hero-meta { gap: 1.2rem; }
}

/* ============ MEDIA GALLERY ============ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1080px;
  margin: 0 auto;
}
.media-card {
  background: #0d0a16;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.media-art { aspect-ratio: 16 / 9; }
.media-art svg { width: 100%; height: 100%; display: block; }
.media-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.media-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
}
.media-card figcaption strong { font-weight: 700; font-size: 0.95rem; }
.media-card figcaption span {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--sand-dim);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .media-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ============ CAST ============ */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 1080px;
  margin: 0 auto;
}
.cast-card {
  background: #0d0a16;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.cast-art { aspect-ratio: 3 / 4; }
.cast-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cast-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cast-card figcaption strong { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.05em; }
.cast-card figcaption span {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--sand-dim);
}
@media (max-width: 860px) {
  .cast-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
}



/* ============ COMING SOON GATE ============ */
html.gate-open, html.gate-open body { overflow: hidden; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(12, 10, 21, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(0.85);
  backdrop-filter: blur(14px) saturate(0.85);
  transition: opacity 0.6s ease;
}
.gate.dismissed { opacity: 0; pointer-events: none; }
.gate-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  text-align: center;
  background: rgba(13, 10, 22, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.4rem 2rem 1.8rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.gate-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--sand-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.gate-close:hover { color: var(--orange-bright); background: rgba(232, 213, 183, 0.08); }
.gate-close:disabled { opacity: 0.4; cursor: not-allowed; }
.gate-icon { width: 64px; height: 64px; margin-bottom: 1rem; }
.gate-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.35em;
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.gate-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: 0.05em;
  line-height: 1;
}
.gate-coming {
  margin: 0.7rem 0 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--orange-bright);
}
.gate-text {
  color: var(--sand-dim);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.gate-form input {
  width: 100%;
  background: #0d0a16;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
}
.gate-form input::placeholder { color: rgba(232, 213, 183, 0.35); }
.gate-form input:focus { outline: none; border-color: var(--teal); }
.gate-success {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.gate-enter { width: 100%; }
.gate-enter:disabled { opacity: 0.45; cursor: not-allowed; }
.gate-hint {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-dim);
}
