@font-face {
  font-family: "Galmuri11";
  src: url("./assets/fonts/galmuri11-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Galmuri11";
  src: url("./assets/fonts/galmuri11-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f3f7fc;
  --paper: #ffffff;
  --ink: #12213f;
  --ink-soft: #4b5a78;
  --ink-faint: #8794ad;
  --line: #dde5f0;
  --sky: #63b6ff;
  --sky-deep: #2775dc;
  --sky-pale: #e4f1ff;
  --cream: #fff4d8;
  --navy: #111e3e;
  --navy-2: #1a2b55;
  --steam: #1b2838;
  --roblox: #e2231a;
  --radius: 26px;
  --shadow: 0 1px 2px rgba(18, 33, 63, .06), 0 12px 32px -12px rgba(18, 33, 63, .18);
  --shadow-lift: 0 2px 4px rgba(18, 33, 63, .08), 0 24px 48px -16px rgba(18, 33, 63, .32);
  --pixel: "Galmuri11", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.pixel { font-family: var(--pixel); letter-spacing: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.accent { color: var(--sky-deep); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { height: 50px; width: auto; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--sky-pale); color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.lang-switch button {
  border: 0; background: transparent; font-family: var(--pixel); font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; color: var(--ink-faint);
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.pixel-button {
  --bg-btn: var(--ink); --fg-btn: #fff; --edge: #000;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 0;
  background: var(--bg-btn); color: var(--fg-btn);
  font-family: var(--pixel); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 15px 22px; border-radius: 6px;
  box-shadow: 0 4px 0 var(--edge);
  transition: transform .12s, box-shadow .12s, filter .12s;
  white-space: nowrap;
}
.pixel-button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge); filter: brightness(1.08); }
.pixel-button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.pixel-button.small { font-size: 13px; padding: 11px 15px; box-shadow: 0 3px 0 #000; }
.pixel-button.sky { --bg-btn: var(--sky); --fg-btn: var(--navy); --edge: #1d5fb8; }
.pixel-button.steam { --bg-btn: #66c0f4; --fg-btn: #0b1a2a; --edge: #2a6b96; }
.pixel-button.roblox { --bg-btn: #fff; --fg-btn: var(--ink); --edge: #9aa7bd; }
.pixel-button.stove { --bg-btn: #ff5a00; --fg-btn: #fff; --edge: #a33a00; }
.pixel-button.stove .stove-mark { background: #fff; color: #ff5a00; }
.pixel-button.ghost { --bg-btn: rgba(255, 255, 255, .14); --fg-btn: #fff; --edge: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.pixel-button svg { width: 18px; height: 18px; fill: currentColor; }
.pixel-button .stove-mark, .play-link .stove-mark { width: 18px; height: 18px; font-size: 11px; border-radius: 4px; }

/* Pixel rain */
.rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.rain i {
  position: absolute; top: -40px; width: 4px; height: 16px;
  background: linear-gradient(#fff0, rgba(214, 236, 255, .85));
  box-shadow: 0 16px 0 -0px rgba(214, 236, 255, .0);
  animation: fall linear infinite;
  opacity: .7;
}
@keyframes fall { to { transform: translate3d(-40px, 760px, 0); } }

/* Showcase */
.showcase { position: relative; margin-top: 14px; }
.slides {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  height: clamp(460px, 44vw, 620px); background: var(--navy); box-shadow: var(--shadow);
  isolation: isolate;
}
.slide-loading { display: grid; place-items: center; height: 100%; color: #cfe2ff; font-family: var(--pixel); }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.slide.active { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.slide-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.active .slide-art { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 14, 32, .86) 0%, rgba(8, 14, 32, .55) 34%, rgba(8, 14, 32, 0) 64%),
    linear-gradient(0deg, rgba(8, 14, 32, .7) 0%, rgba(8, 14, 32, 0) 42%);
}
.slide-content {
  position: absolute; z-index: 3; left: clamp(24px, 5vw, 72px); bottom: clamp(28px, 5vw, 64px);
  width: min(560px, calc(100% - 48px)); color: #fff;
}
.slide-content > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.slide.active .slide-content > * { opacity: 1; transform: none; }
.slide.active .slide-content > :nth-child(2) { transition-delay: .08s; }
.slide.active .slide-content > :nth-child(3) { transition-delay: .16s; }
.slide.active .slide-content > :nth-child(4) { transition-delay: .24s; }
.slide-title { margin: 12px 0 10px; font-family: var(--pixel); font-weight: 700; font-size: clamp(28px, 4.2vw, 54px); line-height: 1.12; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); letter-spacing: -.01em; }
.slide-title .sub { display: block; font-size: .42em; letter-spacing: .04em; opacity: .8; margin-top: 8px; }
.slide-logo { width: min(440px, 88%); height: auto; margin: 6px 0 8px -6px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.slide-tagline { margin: 0 0 22px; font-size: clamp(16px, 1.5vw, 19px); color: #e5edfb; max-width: 30em; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--pixel); font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 6px; line-height: 1; letter-spacing: .04em;
  background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px);
}
.badge svg { width: 13px; height: 13px; fill: currentColor; }
.badge--steam { background: #171a21; color: #c7d5e0; }
.badge--roblox { background: #fff; color: #111; }
.badge--stove { background: #ff5a00; color: #fff; }
.badge--web { background: #2f8f83; color: #fff; }
.badge--soon { background: var(--cream); color: #6b4a00; }
.badge--live { background: #2fd27a; color: #05331b; }
.badge--live::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 1px; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.showcase-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.slide-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.slide-tabs::-webkit-scrollbar { display: none; }
.slide-tab {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 5px 14px 5px 5px; font-size: 13px; font-weight: 600; color: var(--ink-soft); overflow: hidden;
}
.slide-tab img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.slide-tab[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.slide-tab .progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--sky-deep); }
.slide-tab[aria-selected="true"] .progress { animation: progress var(--slide-time, 7s) linear forwards; }
.showcase.paused .slide-tab .progress { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.slide-controls { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.slide-count { font-family: var(--pixel); font-size: 14px; color: var(--ink-faint); margin: 0 6px; }
.slide-count b { color: var(--ink); }
.round-button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; font-size: 16px; transition: background .15s, border-color .15s;
}
.round-button:hover { border-color: var(--ink); }

.platform-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding: 20px 28px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.platform-logos { display: flex; gap: 26px; }
.platform-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.platform-logo svg { width: 22px; height: 22px; fill: currentColor; }
.stove-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #ff5a00; color: #fff; font-family: var(--pixel); font-size: 13px; font-weight: 700; }

/* Games */
.games-section { padding: 96px 0 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--sky-deep); }
.label-line { width: 48px; height: 2px; background: currentColor; }
.dot { width: 8px; height: 8px; background: currentColor; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter, .chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--ink-soft); transition: all .15s;
}
.filter .count { font-family: var(--pixel); font-size: 12px; margin-left: 4px; color: var(--ink-faint); }
.filter:hover, .chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter.active .count { color: var(--sky); }
.genre-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chip { padding: 7px 13px; font-size: 13px; }
.chip.active { background: var(--sky-pale); border-color: var(--sky-deep); color: var(--sky-deep); }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
  animation: card-in .5s ease both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card-hit { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; border-radius: inherit; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky-pale); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .4s ease; }
.card-media .alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img { transform: scale(1.05); }
.card:hover .card-media .alt { opacity: 1; }
.card-media .badge-row { position: absolute; left: 12px; top: 12px; z-index: 1; }
.card-body { display: flex; gap: 14px; padding: 18px 18px 6px; align-items: flex-start; }
.card-icon { width: 58px; height: 58px; border-radius: 14px; flex: 0 0 auto; margin-top: -38px; position: relative; z-index: 1; border: 3px solid var(--paper); box-shadow: 0 4px 12px rgba(18, 33, 63, .2); background: var(--paper); }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.card .en-sub { display: block; font-family: var(--pixel); font-size: 11px; color: var(--ink-faint); font-weight: 400; margin-top: 3px; letter-spacing: .03em; }
.card-tagline { margin: 4px 18px 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 16px 18px 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--bg); border-radius: 6px; padding: 4px 8px; }
.play-link {
  position: relative; z-index: 3; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--pixel); font-size: 12px; font-weight: 700; text-decoration: none;
  padding: 9px 12px; border-radius: 6px; background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000;
  transition: transform .12s, box-shadow .12s;
}
.play-link:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #000; }
.play-link svg { width: 14px; height: 14px; fill: currentColor; }

/* The Steam game gets a wide hero card */
.card--feature { grid-column: span 2; flex-direction: row; background: var(--steam); color: #fff; }
.card--feature .card-media { flex: 1; aspect-ratio: auto; min-height: 320px; background: #000; }
.card--feature .card-media picture { display: block; width: 100%; height: 100%; }
.card--feature .card-media img { object-position: 50% 0; }
@media (min-width: 681px) { .card--feature .card-media .badge-row { top: auto; bottom: 14px; } }
.card--feature .card-side { flex: 1; display: flex; flex-direction: column; padding: 30px 28px 26px; gap: 14px; }
.card--feature h3 { font-family: var(--pixel); font-size: 26px; line-height: 1.2; }
.card--feature .card-tagline { margin: 0; color: #b9c8dc; font-size: 15.5px; }
.card--feature .tag { background: rgba(255, 255, 255, .1); color: #d6e2f2; }
.card--feature .feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: #c9d6e6; }
.card--feature .feature-list li { display: flex; gap: 10px; }
.card--feature .feature-list li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 8px; background: #66c0f4; }
.card--feature .card-foot { padding: 0; margin-top: auto; }
.card--feature .play-link { background: #66c0f4; color: #0b1a2a; box-shadow: 0 3px 0 #2a6b96; }

.empty-state, .content-error { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.content-error button { margin-left: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 14px; }

/* Studio */
.studio-section { position: relative; margin-top: 80px; padding: 110px 0 0; background: var(--navy); color: #fff; overflow: hidden; }
.studio-section::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(120, 170, 255, .22) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.rain--studio i { background: linear-gradient(#fff0, rgba(120, 180, 255, .55)); }
.studio-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.studio-section .eyebrow { color: var(--sky); }
.studio-section h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.2; }
.studio-section .accent { color: var(--sky); }
.studio-copy { position: relative; color: #c8d5ee; font-size: 17px; }
.studio-copy p { margin: 0 0 16px; }
.studio-cloud { width: 120px; height: auto; margin-top: 40px; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 0; }
.stats div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 16px 18px; }
.stats dt { font-size: 13px; color: #95a7c9; }
.stats dd { margin: 4px 0 0; font-size: 34px; font-weight: 700; color: #fff; line-height: 1.1; }
.studio-wordmark {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  margin-top: 90px; text-decoration: none; color: var(--cream);
  font-size: clamp(56px, 13vw, 200px); font-weight: 700; line-height: .9; letter-spacing: -.02em;
  white-space: nowrap; transform: translateY(.06em);
}
.studio-wordmark span { color: var(--sky); transition: transform .3s; }
.studio-wordmark:hover span { transform: translate(10px, -10px); }

/* Contact */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.contact-section { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 110px 0 90px; }
.contact-copy p { color: var(--ink-soft); margin: 14px 0 0; max-width: 30em; }
.contact-email {
  display: block; width: fit-content; margin: 28px 0 18px; font-family: var(--pixel); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px); color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--sky), var(--sky)) 0 100% / 100% 3px no-repeat; padding-bottom: 4px;
}
.contact-email:hover { color: var(--sky-deep); }
.contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-card {
  --brand: var(--ink);
  position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 20px 46px 20px 20px; border-radius: 20px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--brand); }
.contact-icon { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; fill: #fff; background: var(--brand); }
.contact-card strong { font-size: 16px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.contact-kicker { font-size: 11px; font-weight: 700; color: var(--ink-faint); letter-spacing: .06em; }
.contact-card--discord { --brand: #5865f2; }
.contact-card--x { --brand: #000; }
.contact-card--threads { --brand: #101010; }
.contact-card--instagram { --brand: #d62976; }
.contact-card--instagram .contact-icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.contact-card--steam { --brand: #1b2838; }
.contact-card--roblox { --brand: #111; }
.contact-card .arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--ink-faint); transition: transform .2s, color .2s; }
.contact-card:hover .arrow { transform: translate(4px, calc(-50% - 4px)); color: var(--brand); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--ink-faint); font-size: 14px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.site-footer .brand img { height: 36px; }
.back-top { margin-left: auto; text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.footer-social { display: flex; gap: 6px; }
.footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink-soft); transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--sky-pale); color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social a[aria-label="Email"] svg { fill: none; }

/* Dialog */
.game-dialog {
  width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0;
  border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px rgba(5, 10, 25, .5);
  overflow: hidden;
}
.game-dialog::backdrop { background: rgba(9, 16, 36, .66); backdrop-filter: blur(6px); }
.game-dialog[open] { animation: pop .28s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog-shell { display: grid; grid-template-columns: 1.25fr 1fr; max-height: calc(100dvh - 48px); }
.dialog-close {
  position: absolute; right: 16px; top: 16px; z-index: 5; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(18, 33, 63, .78); color: #fff; font-size: 16px;
}
.dialog-media { background: #0c1428; padding: 18px; display: flex; flex-direction: column; justify-content: safe center; gap: 12px; min-height: 0; overflow-y: auto; }
.dialog-stage { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.dialog-stage img, .dialog-stage video { width: 100%; height: 100%; object-fit: cover; }
.dialog-stage.contain { background: #1c1712; aspect-ratio: 1 / 1; }
.dialog-stage.contain img { object-fit: contain; }
.dialog-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.dialog-thumbs button { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; opacity: .65; transition: opacity .15s, border-color .15s; }
.dialog-thumbs button[aria-current="true"] { border-color: var(--sky); opacity: 1; }
.dialog-thumbs button:hover { opacity: 1; }
.dialog-thumbs img, .dialog-thumbs video { width: 100%; height: 100%; object-fit: cover; }
.dialog-thumbs .is-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; text-shadow: 0 1px 4px #000; }
.dialog-info { padding: 34px 32px 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.dialog-head { display: flex; gap: 16px; align-items: center; padding-right: 40px; }
.dialog-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.dialog-info h2 { font-size: 26px; line-height: 1.25; margin-top: 8px; }
.dialog-info h2 .en-sub { display: block; font-family: var(--pixel); font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; margin-top: 4px; font-weight: 400; }
.dialog-tagline { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink-soft); }
.dialog-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-facts li { font-size: 13px; background: var(--bg); border-radius: 8px; padding: 6px 10px; color: var(--ink-soft); font-weight: 600; }
.dialog-highlights { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.dialog-highlights li { display: flex; gap: 10px; }
.dialog-highlights li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 8px; background: var(--sky-deep); }
.dialog-desc { white-space: pre-line; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 16px; }
.dialog-access { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--cream); color: #5a4300; font-size: 14.5px; font-weight: 600; line-height: 1.55; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 6px; }
.badge-row .badge { backdrop-filter: none; }
.dialog-info .badge { background: var(--bg); color: var(--ink-soft); }
.dialog-info .badge--steam { background: #171a21; color: #c7d5e0; }
.dialog-info .badge--roblox { background: var(--ink); color: #fff; }
.dialog-info .badge--stove { background: #ff5a00; color: #fff; }
.dialog-info .badge--web { background: #2f8f83; color: #fff; }
.badge--web { background: #2f8f83; color: #fff; }
.dialog-info .badge--soon { background: var(--cream); color: #6b4a00; }
.dialog-info .badge--live { background: #d9f7e7; color: #0b5a31; }

/* Responsive */
@media (max-width: 1080px) {
  .card--feature { grid-column: 1 / -1; }
  .studio-inner, .contact-section { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-tools { margin-left: auto; }
  .dialog-shell { grid-template-columns: 1fr; overflow-y: auto; }
  .dialog-media, .dialog-info { overflow: visible; }
  .game-dialog { border-radius: 22px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 64px; gap: 12px; }
  .brand img { height: 36px; }
  .header-tools .pixel-button { display: none; }
  .slides { height: 560px; border-radius: 22px; }
  .slide::after { background: linear-gradient(0deg, rgba(8, 14, 32, .94) 0%, rgba(8, 14, 32, .72) 42%, rgba(8, 14, 32, 0) 70%); }
  .slide-content { left: 20px; right: 20px; bottom: 24px; width: auto; }
  .slide-actions .pixel-button { flex: 1 1 auto; justify-content: center; }
  .showcase-bar { flex-direction: column-reverse; align-items: stretch; }
  .slide-controls { justify-content: space-between; }
  .platform-strip { padding: 16px 20px; }
  .games-section { padding-top: 72px; }
  .card--feature { flex-direction: column; }
  .card--feature .card-media { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
  .card--feature .card-side { padding: 22px 20px 20px; }
  .studio-section { padding-top: 84px; }
  .studio-cloud { width: 88px; margin-top: 24px; }
  .slide-title { font-size: 26px; }
  .slide-tagline { margin-bottom: 16px; }
  .stats dd { font-size: 26px; }
  .contact-section { padding: 80px 0 64px; }
  .contact-links { grid-template-columns: 1fr; }
  .back-top { margin-left: 0; }
  .game-dialog { width: 100%; max-height: 100dvh; height: 100dvh; max-width: 100%; border-radius: 0; margin: 0; }
  .dialog-shell { max-height: 100dvh; }
  .dialog-media { padding: 12px; }
  .dialog-info { padding: 22px 20px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rain { display: none; }
}

/* Rain over the showcase stays inside the banner frame */
.showcase > .rain { inset: 0 0 auto 0; height: clamp(460px, 44vw, 620px); border-radius: calc(var(--radius) + 6px); z-index: 4; }
@media (max-width: 680px) { .showcase > .rain { height: 560px; border-radius: 22px; } }
