/* ==========================================================================
   SINOVAR — shared styles
   Palette
     --bg:        #120f14   near-black plum
     --surface:   #1c1620   card surface
     --surface-2: #241d29   raised surface
     --gold:      #c9a24b   rope / hero accent
     --crimson:   #8f2438   villain accent
     --parchment: #f2ece2   primary text
     --muted:     #9c8f8a   secondary text
   Type
     display: 'Oswald'        (condensed, dossier/poster headline)
     body:    'Source Serif 4' (narrative long-form)
     mono:    'JetBrains Mono' (eyebrows, tags, case-file labels)
   ========================================================================== */

:root {
  --bg: #120f14;
  --surface: #1c1620;
  --surface-2: #241d29;
  --gold: #c9a24b;
  --gold-dim: #8a7038;
  --crimson: #8f2438;
  --parchment: #f2ece2;
  --muted: #9c8f8a;
  --line: rgba(201, 162, 75, 0.22);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(143, 36, 56, 0.18), transparent 60%),
    radial-gradient(ellipse 800px 500px at 90% 10%, rgba(201, 162, 75, 0.10), transparent 55%);
  color: var(--parchment);
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

h1, h2, h3, .display {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--parchment);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* -------------------------------------------------------------- header -- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 10px;
}

.site-header .brand {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.14em;
  font-size: 1rem;
  text-decoration: none;
  color: var(--parchment);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .brand .knot {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.back-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.back-link:hover { border-color: var(--gold); color: var(--gold); }

/* --------------------------------------------------------- rope divider - */

.rope-divider {
  width: 100%;
  height: 22px;
  margin: 6px 0;
  opacity: 0.55;
}

/* ---------------------------------------------------------- footer ----- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  margin-top: 60px;
}

.social-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-row a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-row a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.social-row svg { width: 16px; height: 16px; }

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 28px;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------- age gate ------ */

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 7, 0.96);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate[hidden] { display: none; }

.age-gate-card {
  max-width: 440px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 44px 36px;
  box-shadow: var(--shadow);
}

.age-gate-card h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.age-gate-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 26px;
}

.age-gate-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: transform 0.15s, filter 0.15s, background 0.15s;
}

.btn-gold {
  background: var(--gold);
  color: #1b1408;
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--parchment); border-color: var(--parchment); }

/* ----------------------------------------------------------- hero (home) */

.home-hero {
  padding: 40px 0 20px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
}

.home-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 1rem;
}

/* -------------------------------------------------------- poster grid -- */

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 40px 0 10px;
}

@media (max-width: 860px) {
  .poster-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4.4;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%);
  border: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 22px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.poster:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.35s;
}
.poster:hover .poster-img { transform: scale(1.045); }

.poster-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18,15,20,0.05) 25%, rgba(18,15,20,0.94) 88%);
}

.poster::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 2;
}

/* rope tie corner accents */
.poster::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.7;
  z-index: 2;
}

.poster .poster-tag {
  position: relative;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.poster h3 {
  position: relative;
  z-index: 2;
  font-size: 1.5rem;
  line-height: 1.15;
}

.poster .poster-sub {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
  font-family: 'Source Serif 4', serif;
}

.poster.is-placeholder {
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--muted);
  cursor: default;
}
.poster.is-placeholder:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.poster.is-placeholder::after { display: none; }
.poster.is-placeholder .poster-tag { color: var(--muted); }

/* ------------------------------------------------------- game: hero ---- */

.game-hero {
  padding: 30px 0 10px;
  text-align: center;
}

.game-hero .eyebrow { display: block; margin-bottom: 14px; }

.game-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
}

.tagline {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--parchment);
  font-size: 1.08rem;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 14px;
  border: 1px solid var(--crimson);
  color: var(--crimson);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------- game: description - */

.section {
  padding: 46px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 1.6rem;
  margin-top: 8px;
}

.prose {
  max-width: 760px;
  color: var(--parchment);
  font-size: 1.02rem;
}

.prose p { margin: 0 0 1.1em; }

/* ------------------------------------------------------- feature grid -- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature {
  background: var(--surface);
  padding: 28px 26px;
}

.feature .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.feature h3 {
  font-size: 1.1rem;
  margin: 10px 0 10px;
  text-transform: none;
  letter-spacing: 0;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ------------------------------------------------------------ carousel  */

.carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.carousel-track-wrap {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.65,.05,.36,1);
}

.slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(201,162,75,0.06) 0 2px, transparent 2px 14px),
    var(--surface-2);
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}

.slide span.kind {
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  margin-bottom: 8px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.slide-video {
  padding: 0;
}

.slide-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(18, 15, 20, 0.7);
  color: var(--parchment);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: border-color 0.2s, color 0.2s;
}
.carousel-btn:hover { border-color: var(--gold); color: var(--gold); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-top: 1px solid var(--line);
}

.carousel-thumb {
  flex: 0 0 auto;
  width: 118px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid transparent;
  background: var(--surface-2);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-thumb-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--gold);
  font-size: 0.9rem;
}

.carousel-thumb:hover { opacity: 0.85; }

.carousel-thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--gold);
}

/* ---------------------------------------------------------------- CTA -- */

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0 20px;
}

.btn-lg {
  padding: 22px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: 320px;
  justify-content: center;
}

.btn-steam {
  background: var(--gold);
  color: #1b1408;
}
.btn-steam:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-browser {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-browser:hover { background: rgba(201,162,75,0.1); transform: translateY(-1px); }

.wishlist-label {
  display: block;
  margin-top: 18px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.7rem;
  color: var(--crimson);
}

/* ------------------------------------------------------- game: media row */

.media-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.media-row > * {
  min-width: 0;
}

@media (max-width: 780px) {
  .media-row { grid-template-columns: 1fr; }
}

.media-row .carousel {
  max-width: none;
  margin: 0;
  min-width: 0;
}

.carousel-track-wrap {
  min-width: 0;
}

.cover {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cover::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 2;
}

.cover-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  background: var(--surface-2);
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cover-text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 26px 28px;
}

.cover-text p {
  margin: 0;
  color: var(--parchment);
  font-family: 'Source Serif 4', serif;
  font-size: 0.94rem;
  line-height: 1.6;
  text-align: justify;
}

/* ---------------------------------------------------- three-image strip */

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.strip-grid.strip-grid-2,
.strip-grid.strip-grid-stack {
  grid-template-columns: 1fr;
}

@media (max-width: 720px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-slot:has(img) { height: 260px; }
}

.strip-slot {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(201,162,75,0.06) 0 2px, transparent 2px 14px),
    var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}

.strip-slot:has(img) {
  aspect-ratio: auto;
  height: 420px;
  padding: 0;
  background: var(--surface-2);
}

.strip-slot.strip-slot--wide:has(img) {
  height: auto;
  aspect-ratio: 12 / 5;
}

.strip-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
