/* Wonder Road Games — studio site. Dark only, matching the studio CI (navy night road, cyan and magenta neon). */
:root {
  color-scheme: dark;
  --bg: #0B0C24;
  --bg-2: #11133A;
  --surface: #161946;
  --line: #2A2E66;
  --text: #ECEEFF;
  --muted: #A3A8D6;
  --cyan: #4CE3FF;
  --magenta: #FF4FB3;
  --accent: var(--cyan);
  --f-body: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR",
            "Hiragino Sans", "Yu Gothic UI", "Meiryo", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "D2Coding", monospace;
  --r: 14px;
  --wrap: 1120px;
}
html[data-lang="zh-hant"] { --f-body: system-ui, -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
html[data-lang="ja"] { --f-body: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--f-body); word-break: keep-all; overflow-wrap: anywhere; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #9BF0FF; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #000; padding: 8px 12px; z-index: 20; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
small { font-size: .8em; opacity: .8; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 12, 36, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 15px/1 var(--f-mono); letter-spacing: .08em; white-space: nowrap; }
.brand img { border-radius: 50%; }
.brand b, .foot-brand b { color: var(--magenta); font-weight: 600; }
.top nav { display: flex; gap: 18px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.top nav a:hover { color: var(--text); }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary, .lang summary:hover { color: var(--text); border-color: var(--muted); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 150px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.lang li a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--bg-2); }
.lang li a[aria-current] { color: var(--cyan); }
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; }
  .brand span { font-size: 13px; }
  .lang { margin-left: auto; }
  .top nav { order: 3; width: 100%; margin: 0; gap: 16px; overflow-x: auto; }
}

/* buttons, chips */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #060716; }
.btn-primary:hover { color: #060716; filter: brightness(1.1); }
.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-steam { background: #1B2838; color: #fff; border-color: #2A475E; }
.btn-steam:hover { color: #fff; background: #2A475E; }
.btn-big { padding: 14px 22px; font-size: 16px; }
.btn-off { opacity: .75; cursor: default; }
.btn-off:hover { transform: none; background: #1B2838; }
.chip { display: inline-block; align-self: flex-start; font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.chip-out { background: rgba(76, 227, 255, .14); color: var(--cyan); border: 1px solid rgba(76, 227, 255, .4); }
.chip-soon { background: rgba(255, 79, 179, .12); color: #FF8CCB; border: 1px solid rgba(255, 79, 179, .4); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* home hero: a neon road vanishing to the horizon, after the studio logo */
.hero-home { position: relative; overflow: hidden; text-align: center; padding: 88px 0 120px; background: radial-gradient(ellipse 60% 50% at 50% 38%, #26206A 0%, var(--bg) 70%); }
.road { position: absolute; inset: auto 0 0 0; height: 46%; background:
  linear-gradient(to top, rgba(255, 79, 179, .55), transparent 70%) 50% 100% / 3px 100% no-repeat,
  repeating-linear-gradient(to right, transparent 0 calc(10% - 1px), rgba(76, 227, 255, .22) calc(10% - 1px) 10%);
  transform: perspective(300px) rotateX(58deg); transform-origin: 50% 100%; mask-image: linear-gradient(to top, #000 10%, transparent 95%); }
.hero-home-in { position: relative; }
.hero-symbol { margin: 0 auto 22px; width: 112px; border-radius: 50%; box-shadow: 0 0 60px rgba(76, 227, 255, .35); }
.kicker { font: 600 13px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--magenta); margin: 0 0 18px; }
.hero-home h1 { font-size: clamp(32px, 6vw, 60px); letter-spacing: -.01em; text-shadow: 0 0 28px rgba(76, 227, 255, .45); margin-bottom: 18px; }
.hero-home .sub { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.hero-home .actions { justify-content: center; }

/* sections */
.section { padding-top: 56px; padding-bottom: 8px; }
.sec-h { font: 600 14px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.sec-h::before { content: "▸ "; color: var(--accent); }

.game-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .game-cards { grid-template-columns: 1fr; } }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.game-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 40px rgba(0, 0, 0, .35); }
.game-card-img img { width: 100%; aspect-ratio: 920 / 430; object-fit: cover; }
.game-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.game-card h3 { font-size: 26px; margin: 14px 0 10px; }
.game-card h3 a { color: var(--text); text-decoration: none; }
.game-card p { color: var(--muted); margin: 0; }
.game-card .actions { margin-top: auto; padding-top: 22px; }

.studio { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-bottom: 72px; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; gap: 16px; } }
.studio p { color: var(--muted); max-width: 60ch; }
.contact dl { margin: 0; display: grid; gap: 4px 0; }
.contact dt { color: var(--muted); font-size: 14px; margin-top: 10px; }
.contact dd { margin: 0; font-size: 17px; }

/* game page */
.hero-game { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-game::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(11, 12, 36, .72) 45%, rgba(11, 12, 36, .15)); }
.hero-game-in { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 44px; width: 100%; }
.game-title { font-size: clamp(40px, 8vw, 76px); margin: 16px 0 6px; text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent); }
.game-logo { margin: 12px 0 4px; }
.game-logo img { width: min(460px, 80vw); filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6)); }
.tagline { font-size: clamp(18px, 2.4vw, 24px); margin: 0; color: var(--text); }
.game-body .lead { font-size: 19px; max-width: 70ch; margin: 36px 0 0; color: var(--text); }
.game-body .sec-h::before { color: var(--accent); }
.trailer { width: 100%; border-radius: var(--r); background: #000; border: 1px solid var(--line); }
.yt { position: relative; display: block; max-width: 720px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.yt img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; background: rgba(6, 7, 22, .82); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .25); }
.yt:hover .yt-play { background: #c4302b; }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .clips { grid-template-columns: 1fr 1fr; } .clips figure:last-child { display: none; } }
.clips figure { margin: 0; }
.clip { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.clips figcaption { font: 13px/1 var(--f-mono); color: var(--muted); margin-top: 8px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; border-top: 3px solid var(--accent); }
.features h3 { font-size: 17px; margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.shots a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
.shots a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .shots img { transition: none; } .shots a:hover img { transform: none; } }
.facts-press { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 72px; }
@media (max-width: 860px) { .facts-press { grid-template-columns: 1fr; gap: 8px; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.facts dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.facts dd { margin: 0; }

/* viewer */
.viewer { padding: 0; border: 0; background: transparent; max-width: min(1280px, 94vw); }
.viewer::backdrop { background: rgba(3, 4, 14, .9); }
.viewer img { border-radius: 8px; }
.viewer-x { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* documents (privacy, 404) */
.doc { max-width: 820px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); }
.doc h2 { font-size: 21px; margin-top: 40px; padding-top: 8px; scroll-margin-top: 80px; }
.doc .lead { font-size: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--cyan); padding: 16px 20px; border-radius: 10px; }
.doc .note { color: var(--muted); font-size: 14px; }
.doc li { margin-bottom: 8px; }
.doc ul { padding-left: 22px; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.doc table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); color: var(--muted); font-weight: 600; }

/* footer */
.foot { border-top: 1px solid var(--line); background: #08091C; padding: 36px 0 44px; }
.foot-in { display: grid; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 600 14px/1 var(--f-mono); letter-spacing: .08em; }
.foot-brand img { border-radius: 50%; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.fine { margin: 0; color: #6D72A8; font-size: 13px; }

/* per-game accent (classes, not inline styles: the CSP has no 'unsafe-inline') */
[data-g="iron-bird"] { --accent: #4CE3FF; }
[data-g="jamo-baduk"] { --accent: #E8B86A; }
