/* CHROMA REBORN web beta — shared styles for the landing, play and admin pages. */
:root {
  --bg: #0f1116;
  --panel: #181b23;
  --panel-2: #20242f;
  --text: #f1eee7;
  --muted: #a7a9b4;
  --gold: #f4c95d;
  --red: #ff6b5e;
  --green: #6bd38a;
  --blue: #5ea8ff;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.6;
}
a { color: var(--gold); }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

.topbar { position: sticky; top: 0; z-index: 10; background: rgba(15, 17, 22, 0.85); backdrop-filter: blur(8px); border-bottom: 1px solid #262a35; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { font-weight: 800; letter-spacing: 0.08em; color: var(--text); text-decoration: none; }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 16px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

.btn { display: inline-block; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--gold); color: #1b1606; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid #3a3f4d; }
.btn-ghost:hover { border-color: var(--gold); }

.banner { background: #2a2310; color: var(--gold); text-align: center; padding: 8px 16px; font-size: 0.95rem; display: none; }
.banner.show { display: block; }

.hero { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background: url(img/hero_grey.jpg) center/cover; }
.hero .bg.colour { background-image: url(img/hero.jpg); clip-path: circle(0% at 50% 60%); animation: restore 3.2s 0.6s ease-out forwards; }
@keyframes restore { to { clip-path: circle(150% at 50% 60%); } }
@media (prefers-reduced-motion: reduce) { .hero .bg.colour { animation: none; clip-path: none; } }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 17, 22, 0.35), rgba(15, 17, 22, 0.15) 40%, var(--bg)); }
.hero .content { position: relative; padding: 48px 16px; }
.hero .emblem { width: auto; max-width: min(360px, 70vw); max-height: 30vh; margin: 0 auto 8px; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5)); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin: 0; letter-spacing: 0.06em; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); margin: 8px auto 24px; max-width: 640px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
/* PC: the lead sentence on one line (owner request 11/2). Short-script languages never wrap on a
   desktop; longer languages get the wider box and wrap only if they truly must. */
@media (min-width: 1000px) {
  .hero p.lead { max-width: min(1100px, 94vw); font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
  html:lang(ko) .hero p.lead, html:lang(ja) .hero p.lead, html:lang(zh-Hans) .hero p.lead, html:lang(zh-Hant) .hero p.lead { white-space: nowrap; }
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tag { display: inline-block; background: rgba(244, 201, 93, 0.16); color: var(--gold); border: 1px solid rgba(244, 201, 93, 0.4); border-radius: 999px; padding: 2px 12px; font-size: 0.85rem; margin-bottom: 12px; }

section { padding: 64px 0; }
section h2 { font-size: 1.8rem; margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 28px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid #262a35; border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.shots img { border-radius: 10px; border: 1px solid #262a35; }

.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stage { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #262a35; aspect-ratio: 16 / 10; }
.stage img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) brightness(0.8); transition: filter 0.5s; }
.stage:hover img { filter: none; }
.stage .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); font-weight: 700; font-size: 0.95rem; }
.stage .label small { display: block; color: var(--gold); font-weight: 600; }

.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; }
kbd { background: var(--panel-2); border: 1px solid #3a3f4d; border-bottom-width: 3px; border-radius: 6px; padding: 1px 8px; font-family: inherit; font-size: 0.9rem; }

footer { border-top: 1px solid #262a35; color: var(--muted); padding: 28px 0 40px; font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* forms (feedback, admin) */
label { display: block; font-size: 0.9rem; color: var(--muted); margin: 12px 0 4px; }
input, textarea, select { width: 100%; background: var(--panel-2); border: 1px solid #3a3f4d; color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
.stars { display: flex; gap: 6px; }
.stars button { background: var(--panel-2); border: 1px solid #3a3f4d; color: var(--muted); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 1.1rem; }
.stars button.on { color: var(--gold); border-color: var(--gold); }
.note { color: var(--muted); font-size: 0.85rem; }
.ok { color: var(--green); }
.err { color: var(--red); }

dialog { background: var(--panel); color: var(--text); border: 1px solid #3a3f4d; border-radius: var(--radius); width: min(520px, 100% - 32px); padding: 24px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }

.hero .stats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 4px; }
.hero .stats span { background: rgba(15, 17, 22, 0.6); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 999px; padding: 2px 12px; font-size: 0.85rem; }

/* language picker (i18n.js) */
.langpick { width: auto; max-width: 11rem; padding: 4px 8px; font-size: 0.85rem; border-radius: 8px; cursor: pointer; }
.langpick-fixed { position: fixed; top: 10px; right: 10px; z-index: 60; }
.nav { align-items: center; }
.i18n-note[hidden] { display: none; }
@media (max-width: 560px) { .nav { gap: 10px; font-size: 0.85rem; } .langpick { max-width: 7.5rem; } }

/* trailer (landing + press kit) */
.trailer-sec { padding-top: 0; }
video.trailer { display: block; width: 100%; max-width: 960px; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; border: 1px solid #262a35; }

/* press kit */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #262a35; vertical-align: top; }
.facts th { color: var(--muted); font-weight: 600; width: 32%; white-space: nowrap; }
.press-list { margin: 0; padding-left: 1.2em; }
.press-list li { margin: 4px 0; }
.shots a { display: block; }
.press-logo { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.press-logo img { width: 140px; height: auto; background: var(--panel-2); border-radius: 12px; padding: 12px; }
@media (max-width: 560px) { .facts th { white-space: normal; width: 40%; } }
