/* Solstice Galaktikos website. Colours follow art/logo/README.md; headings use the game's own Rajdhani. */
@font-face { font-family: "Rajdhani"; src: url("/fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/fonts/Rajdhani-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0d151c;          /* page, darker than midnight so footage glows */
  --midnight: #172631;
  --panel: #13202a;
  --porphyry: #4b1f2b;
  --ivory: #e8e3d7;
  --ivory-soft: #b9b4a8;
  --ivory-faint: #7d7a72;
  --gold: #b9a16a;
  --gold-light: #d2bb84;
  --line: rgba(232, 227, 215, 0.12);
  --heading: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: var(--gold-light); }
h1, h2, h3 { margin: 0; font-family: var(--heading); font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: 0.01em; }
h3 { font-size: clamp(26px, 2.8vw, 34px); }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--ivory); color: var(--ink); padding: 8px 14px; }

.kicker {
  font-family: var(--heading); font-weight: 700; font-size: 14px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  font: 700 17px/1 var(--heading); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 2px; white-space: nowrap; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.button svg { width: 18px; height: 18px; fill: currentColor; }
.button.gold { background: var(--gold); color: #15110a; }
.button.gold:hover { background: var(--gold-light); }
.button.ghost { background: rgba(13, 21, 28, 0.35); color: var(--ivory); border-color: rgba(232, 227, 215, 0.45); backdrop-filter: blur(6px); }
.button.ghost:hover { border-color: var(--ivory); background: rgba(232, 227, 215, 0.08); }
.button.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.button.large { min-height: 62px; padding: 0 44px; font-size: 20px; }
.button:focus-visible, .gallery img:focus-visible, .trailer:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.button.soon { cursor: default; }
.price { padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(21, 17, 10, 0.35); letter-spacing: 0.06em; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 68px; display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent;
}
.bar.solid { background: rgba(13, 21, 28, 0.92); backdrop-filter: blur(10px); border-color: var(--line); }
.bar-logo img { height: 22px; width: auto; opacity: 0; transition: opacity 0.3s; }
.bar.solid .bar-logo img { opacity: 1; }
.bar-links { display: flex; gap: 28px; margin-left: auto; }
.bar-links a { color: var(--ivory-soft); text-decoration: none; font: 600 15px var(--heading); letter-spacing: 0.18em; text-transform: uppercase; }
.bar-links a:hover { color: var(--ivory); }

/* Language menus, in the bar and the footer */
.language {
  appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--ivory-soft); font: 600 14px var(--heading); letter-spacing: 0.08em;
  background: rgba(13, 21, 28, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b9b4a8'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid rgba(232, 227, 215, 0.25); border-radius: 2px; padding: 7px 28px 7px 10px;
}
.language:hover { color: var(--ivory); border-color: rgba(232, 227, 215, 0.5); }
.language:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
.language option { background: var(--midnight); color: var(--ivory); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 21, 28, 0.9) 0%, rgba(13, 21, 28, 0.72) 42%, rgba(13, 21, 28, 0) 78%),
    linear-gradient(0deg, var(--ink) 0%, rgba(13, 21, 28, 0) 38%),
    linear-gradient(180deg, rgba(13, 21, 28, 0.6) 0%, rgba(13, 21, 28, 0) 18%);
}
.hero-text { position: relative; width: 100%; max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 13vh, 140px); }
.hero-logo { width: min(520px, 82vw); height: auto; margin-bottom: 26px; }
.hero .kicker { color: var(--ivory); letter-spacing: 0.42em; margin-bottom: 18px; }
.hero-pitch { max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ivory-soft); margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.platforms { margin-top: 18px; font: 600 14px var(--heading); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-faint); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px; border: 1px solid rgba(232, 227, 215, 0.4); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; background: var(--ivory); border-radius: 1px; animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Sections */
main { max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.intro { max-width: 760px; margin: clamp(80px, 12vw, 150px) auto; text-align: center; }
.intro h2 { margin-bottom: 26px; }
.intro p:last-child { font-size: clamp(18px, 1.7vw, 21px); color: var(--ivory-soft); }

.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(72px, 10vw, 128px); }
.feature.flip { grid-template-columns: 1fr 1.35fr; }
.feature.flip figure { order: 2; }
.feature figure { margin: 0; position: relative; }
.feature figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: zoom-in; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.feature h3 { margin-bottom: 16px; }
.feature p { color: var(--ivory-soft); }
.moments { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 22px 0 0; font-size: 16px; }
.moments dt { font: 700 15px/1.6 var(--heading); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory); white-space: nowrap; }
.moments dd { margin: 0; color: var(--ivory-soft); }

.section-head { text-align: center; margin-bottom: 40px; }
.features-head { margin-bottom: clamp(40px, 6vw, 64px); }
.features-head .kicker { display: flex; align-items: center; gap: 22px; margin: 0; }
.features-head .kicker::before, .features-head .kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: clamp(96px, 12vw, 150px); }
.pillars img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; margin-bottom: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.pillars h3 { font-size: 24px; margin-bottom: 10px; }
.pillars p { color: var(--ivory-soft); font-size: 16px; }
.media { padding-top: clamp(40px, 6vw, 72px); margin-bottom: clamp(96px, 12vw, 150px); }
.trailer { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; margin-bottom: 14px; }
.trailer img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.78; transition: opacity 0.3s; }
.trailer:hover img { opacity: 1; }
.play {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; display: grid; place-items: center;
  border: 1px solid rgba(232, 227, 215, 0.7); border-radius: 50%; background: rgba(13, 21, 28, 0.45); backdrop-filter: blur(4px);
  transition: transform 0.3s, background 0.3s;
}
.play svg { width: 34px; height: 34px; fill: var(--ivory); margin-left: 5px; }
.trailer:hover .play { transform: scale(1.06); background: rgba(185, 161, 106, 0.85); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: zoom-in; opacity: 0.85; transition: opacity 0.2s; }
.gallery img:hover { opacity: 1; }

.news-section { margin-bottom: clamp(96px, 12vw, 150px); }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color 0.2s; }
a.post:hover { border-color: rgba(185, 161, 106, 0.6); }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post div { padding: 22px 24px 26px; }
.post time { font: 600 13px var(--heading); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-faint); }
.post h3 { font-size: 24px; margin: 8px 0 10px; }
.post p { color: var(--ivory-soft); font-size: 16px; }

/* Buy band */
.buy-band {
  position: relative; padding: clamp(90px, 12vw, 150px) var(--gutter); text-align: center;
  background: linear-gradient(180deg, var(--ink), rgba(13, 21, 28, 0.7) 30%, rgba(13, 21, 28, 0.7) 70%, var(--ink)),
    radial-gradient(ellipse at 50% 60%, rgba(75, 31, 43, 0.55), transparent 65%),
    url("/media/site/shots/formations.jpg") center / cover;
}
.buy-inner { max-width: 640px; margin: 0 auto; }
.buy-logo { width: min(380px, 72vw); margin: 0 auto 40px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 48px auto 0; text-align: left; display: grid; gap: 14px; max-width: 520px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0 52px; color: var(--ivory-soft); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font: 700 16px var(--heading);
}
.steps strong { color: var(--ivory); font-weight: 600; }

.foot { border-top: 1px solid var(--line); padding: 40px var(--gutter) 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ivory-faint); font-size: 14px; }
.studio { height: 20px; width: auto; opacity: 0.8; }

/* Picture and trailer viewer */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 9, 12, 0.94); color: var(--ivory); }
.viewer::backdrop { background: rgba(5, 9, 12, 0.6); }
.viewer[open] { display: grid; place-items: center; }
.viewer-body { width: min(92vw, 160vh); }
.viewer-body img, .viewer-body video { width: 100%; max-height: 86vh; object-fit: contain; background: #000; }
.viewer-close, .viewer-step { position: fixed; border: 0; background: none; color: var(--ivory); cursor: pointer; font: 300 44px/1 var(--body); padding: 12px 18px; opacity: 0.75; }
.viewer-close:hover, .viewer-step:hover, .viewer-close:focus-visible, .viewer-step:focus-visible { opacity: 1; outline: none; }
.viewer-close { top: 10px; right: 14px; }
.viewer-step { top: 50%; transform: translateY(-50%); font-size: 64px; }
.viewer-step.prev { left: 6px; }
.viewer-step.next { right: 6px; }
.viewer.video .viewer-step { display: none; }

/* Press and creators page */
.page .bar-logo img { opacity: 1; }
.press { max-width: 720px; padding-top: 128px; padding-bottom: 96px; }
.press-head { margin-bottom: 40px; }
.press h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 18px; }
.press h2 { font-size: 26px; margin-bottom: 14px; }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--ivory-soft); }
.hint { color: var(--ivory-faint); font-size: 15px; }
.request { display: grid; gap: 22px; }
.kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kinds legend { font: 700 14px var(--heading); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.kind { display: flex; gap: 12px; padding: 18px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.kind:has(input:checked) { border-color: var(--gold); }
.kind input { accent-color: var(--gold); margin-top: 6px; }
.kind strong { display: block; color: var(--ivory); }
.kind small { display: block; color: var(--ivory-soft); font-size: 15px; line-height: 1.5; margin-top: 4px; }
.box { background: var(--panel); border: 1px solid var(--line); padding: 24px; display: grid; gap: 16px; }
.box[hidden], .request[hidden], .request [hidden], .status[hidden] { display: none; }
.box label { display: grid; gap: 6px; }
.box label > span { font: 600 15px var(--heading); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory-soft); }
.box input, .box textarea {
  width: 100%; font: 400 16px/1.5 var(--body); color: var(--ivory); background: var(--ink); border: 1px solid rgba(232, 227, 215, 0.22);
  border-radius: 2px; padding: 10px 12px;
}
.box input:focus-visible, .box textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.box textarea { resize: vertical; }
.error { color: #e7a19a; border-left: 3px solid #b5544b; padding: 8px 14px; background: rgba(181, 84, 75, 0.12); }
.request .button { justify-self: start; }
.button:disabled { opacity: 0.55; cursor: progress; }
.status { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); padding: 28px; }
.status .kicker { margin: 0; }
.note { color: var(--ivory); border-left: 3px solid var(--gold); padding: 6px 14px; }
.key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.key { font: 600 clamp(18px, 3.4vw, 26px)/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.06em; color: var(--gold-light);
  background: var(--ink); border: 1px dashed rgba(185, 161, 106, 0.6); padding: 10px 16px; overflow-wrap: anywhere; }
.reason { color: var(--ivory-soft); white-space: pre-line; }
.keep { border-top: 1px solid var(--line); padding-top: 14px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--ivory-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ivory); }
@media (max-width: 600px) {
  .kinds { grid-template-columns: 1fr; }
  .press { padding-top: 104px; }
  .box, .status { padding: 18px; }
}

/* Chinese, Japanese and Korean: no wide letter-spacing. The English tagline is marked lang="en" and keeps its own. */
.kicker:lang(zh-Hans), .kicker:lang(ja), .kicker:lang(ko),
.bar-links a:lang(zh-Hans), .bar-links a:lang(ja), .bar-links a:lang(ko),
.box label > span:lang(zh-Hans), .box label > span:lang(ja), .box label > span:lang(ko),
.kinds legend:lang(zh-Hans), .kinds legend:lang(ja), .kinds legend:lang(ko),
.button:lang(zh-Hans), .button:lang(ja), .button:lang(ko),
.platforms:lang(zh-Hans), .platforms:lang(ja), .platforms:lang(ko),
.moments dt:lang(zh-Hans), .moments dt:lang(ja), .moments dt:lang(ko) { letter-spacing: 0.06em; }
body:lang(ko) { word-break: keep-all; }

/* Narrow screens */
@media (max-width: 900px) {
  .bar-links { display: none; }
  .bar-language { margin-left: auto; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip figure { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 6%, rgba(13, 21, 28, 0.82) 45%, rgba(13, 21, 28, 0.5) 100%); }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .moments { grid-template-columns: 1fr; gap: 2px; }
  .moments dd { margin-bottom: 10px; }
  .actions .button { width: 100%; }
  .foot { flex-direction: column; text-align: center; }
  .bar-language { display: none; }
  .bar .buy { margin-left: auto; }
  .viewer-step { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
}
