/* ============================================================
   LOVEME ARCADE — Editorial Dark Luxury Playroom Stylesheet
   ============================================================ */
:root {
  --bg: #08090c;
  --surface: #0e1015;
  --surface-2: #14171f;
  --ink: #f3f1ec;
  --ink-dim: #9e9b93;
  --ink-faint: #5e5d59;
  --line: rgba(243, 241, 236, 0.1);
  --line-strong: rgba(243, 241, 236, 0.22);
  --accent: #e52521;
  --champagne: #e8cf9b;
  --emerald: #34d399;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle film grain texture for tactile depth */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ============================================================
   MINIMAL FLOATING HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-main {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.wordmark-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(229, 37, 33, 0.85);
  display: inline-block;
  transform: translateY(-2px);
}

.wordmark-domain {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  font-weight: 600;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-expo), background 0.2s, color 0.2s;
}

.header-cta:hover {
  background: var(--champagne);
  transform: translateY(-1px);
}

/* ============================================================
   FULL-BLEED CINEMATIC HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* Full-bleed live animated scenic backdrop */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#hero-ambient-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

/* Multi-stop editorial vignette so typography floats cleanly */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.72) 44%, rgba(8, 9, 12, 0.22) 78%, rgba(8, 9, 12, 0.45) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.65) 0%, rgba(8, 9, 12, 0.08) 38%, rgba(8, 9, 12, 0.45) 75%, #08090c 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 48px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--champagne);
  opacity: 0.7;
}

.hero-headline {
  font-size: clamp(46px, 6.4vw, 88px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-headline span.accent-line {
  display: block;
  font-weight: 300;
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: 0.04em;
  color: var(--champagne);
  margin-top: 14px;
}

.hero-lead {
  max-width: 500px;
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(243, 241, 236, 0.74);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-play-now {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s var(--ease-expo), background 0.2s, box-shadow 0.3s;
}

.btn-play-now .play-tri {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  padding-left: 2px;
  transition: transform 0.3s var(--ease-expo);
}

.btn-play-now:hover {
  background: var(--champagne);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(232, 207, 155, 0.22);
}

.btn-play-now:hover .play-tri {
  transform: scale(1.1);
}

.btn-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 9, 12, 0.45);
  backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-ghost-link:hover {
  border-color: var(--ink);
  background: rgba(243, 241, 236, 0.08);
  transform: translateY(-1px);
}

/* Right side hero editorial metadata column */
.hero-meta-col {
  justify-self: end;
  width: 100%;
  max-width: 360px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(243, 241, 236, 0.08);
  padding-bottom: 12px;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.spec-val {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.spec-val.live-indicator {
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.spec-val.live-indicator::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

/* ============================================================
   CURATED COLLECTION — GALLERY POSTER SECTION
   ============================================================ */
.collection-section {
  padding: 96px 0 112px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-dim);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab.active {
  color: var(--bg);
  background: var(--ink);
}

/* Asymmetric Magazine Poster Grid */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.poster-card {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease-expo), border-color 0.3s, box-shadow 0.45s var(--ease-expo);
  cursor: pointer;
}

/* Featured first card spans wider for magazine visual hierarchy */
.poster-card.is-featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 410px;
}

.poster-card.is-upcoming {
  cursor: default;
}

.poster-card:not(.is-upcoming):hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.65);
}

.poster-visual {
  position: relative;
  overflow: hidden;
  background: #0b0d13;
  min-height: 230px;
}

.poster-card.is-featured .poster-visual {
  min-height: 100%;
}

.poster-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s var(--ease-expo);
}

.poster-card:not(.is-upcoming):hover .poster-canvas {
  transform: scale(1.04);
}

.poster-overlay-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.08) 0%, rgba(8, 9, 12, 0.55) 100%);
  pointer-events: none;
}

.poster-index {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(243, 241, 236, 0.85);
  background: rgba(8, 9, 12, 0.58);
  backdrop-filter: blur(10px);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.poster-status {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.poster-status.live {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.poster-status.upcoming {
  background: rgba(8, 9, 12, 0.62);
  color: var(--ink-dim);
  border: 1px solid var(--line);
}

.poster-info {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.poster-card.is-featured .poster-info {
  padding: 40px 42px;
}

.poster-genre {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 700;
  margin-bottom: 10px;
}

.poster-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.poster-card.is-featured .poster-title {
  font-size: clamp(28px, 2.8vw, 38px);
}

.poster-subtitle {
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 16px;
}

.poster-summary {
  font-size: 14px;
  line-height: 1.72;
  color: rgba(243, 241, 236, 0.68);
  margin-bottom: 24px;
}

.poster-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.poster-feature-tags span {
  font-size: 12px;
  color: var(--ink-dim);
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(243, 241, 236, 0.045);
  border: 1px solid var(--line);
}

.poster-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.poster-engine {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
}

.poster-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  transition: color 0.2s, transform 0.25s var(--ease-expo);
}

.poster-card:not(.is-upcoming):hover .poster-launch {
  color: var(--champagne);
  transform: translateX(4px);
}

.poster-launch.muted {
  color: var(--ink-faint);
  font-weight: 500;
}

/* ============================================================
   MANIFESTO / PHILOSOPHY FOOTER BAND
   ============================================================ */
.manifesto-band {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.manifesto-left h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-num {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  color: var(--champagne);
  margin-bottom: 10px;
}

.pillar h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pillar p {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.68;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 42px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   FULLSCREEN IMMERSIVE PLAY STAGE MODAL (ON-DEMAND)
   ============================================================ */
.stage-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 6, 9, 0.96);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-expo);
}

.stage-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.stage-bar {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.9);
  flex-shrink: 0;
}

.stage-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 241, 236, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-back:hover {
  background: rgba(243, 241, 236, 0.16);
}

.stage-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stage-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.stage-sub {
  font-size: 12.5px;
  color: var(--ink-dim);
}

.stage-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-tool {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.stage-tool:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.stage-tool.active {
  color: var(--bg);
  background: var(--champagne);
  border-color: var(--champagne);
}

.stage-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #06080f;
}

#stage-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #06080f;
}

/* Slide-over Controls Drawer (Hidden by default so play area stays 100% pure) */
.controls-drawer {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 310px;
  border-radius: 16px;
  background: rgba(14, 16, 21, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.35s var(--ease-expo);
  z-index: 10;
  overflow-y: auto;
}

.controls-drawer.open {
  transform: translateX(0);
}

.drawer-section-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 700;
  margin-bottom: 12px;
}

.drawer-keys {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-keys li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-dim);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.drawer-keys kbd {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 6px;
}

.drawer-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-dim);
}

.drawer-features li {
  padding-left: 14px;
  position: relative;
}

.drawer-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--champagne);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-meta-col {
    justify-self: start;
    max-width: 100%;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
  }
  .poster-card.is-featured {
    grid-template-columns: 1fr;
  }
  .poster-card {
    grid-column: span 6;
  }
  .manifesto-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-nav, .wordmark-domain, .stage-sub {
    display: none;
  }
  .poster-card, .poster-card.is-featured {
    grid-column: span 12;
  }
  .manifesto-pillars {
    grid-template-columns: 1fr;
  }
  .hero-meta-col {
    grid-template-columns: 1fr;
  }
  .stage-viewport {
    padding: 6px;
  }
}
