/* GSD Interactive - pixel-arcade theme (navy/blue checker, pink accents, Titan One) */

@font-face {
  font-family: "TitanOneSelf";
  src: url("../assets/fonts/TitanOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- CJK fonts (ja / zh-Hans / ko) ----------
   Titan One has no CJK glyphs. For these languages the stacks below keep Titan One first
   (Latin, brand look) and fall back to a self-hosted Noto Sans subset (SIL OFL 1.1,
   made with tools/make_cjk_fonts.py), then to the system CJK fonts, so nothing shows as
   tofu even when new text is not in the subset yet.
   "...Display" is a static weight-900 instance declared as weight 400, so headings match
   Titan One without faux bold. "...Name" only holds the language name for the switcher. */
@font-face { font-family: "GsdNotoJP"; src: url("../assets/fonts/noto/noto-jp-text.woff2?v=20260930") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "GsdNotoJPDisplay"; src: url("../assets/fonts/noto/noto-jp-display.woff2?v=20260930") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GsdNotoJPName"; src: url("../assets/fonts/noto/noto-jp-name.woff2?v=20260930") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GsdNotoSC"; src: url("../assets/fonts/noto/noto-sc-text.woff2?v=20260930") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "GsdNotoSCDisplay"; src: url("../assets/fonts/noto/noto-sc-display.woff2?v=20260930") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GsdNotoSCName"; src: url("../assets/fonts/noto/noto-sc-name.woff2?v=20260930") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GsdNotoKR"; src: url("../assets/fonts/noto/noto-kr-text.woff2?v=20260930") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "GsdNotoKRDisplay"; src: url("../assets/fonts/noto/noto-kr-display.woff2?v=20260930") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GsdNotoKRName"; src: url("../assets/fonts/noto/noto-kr-name.woff2?v=20260930") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --navy-950: #070e22;
  --navy-900: #0a1430;
  --navy-800: #0e1f4d;
  --blue-700: #14408f;
  --blue-500: #2270d6;
  --sky: #39b8ff;
  --pink: #ff4fb8;
  --pink-dark: #d42f93;
  --yellow: #ffcd40;
  --green: #5fd35a;
  --ink: #0c163a;
  --text: #eef3ff;
  --muted: #a9b8e0;
  --panel: rgba(10, 20, 48, 0.86);
  --panel-border: #2a5fc0;
  --radius: 18px;
  --display: "TitanOneSelf", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-950);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- background: tilted navy/blue checker like the promo shots (seamless SVG tile) ---------- */
body {
  background:
    linear-gradient(rgba(7, 14, 34, .62), rgba(7, 14, 34, .62)),
    url("../assets/img/checker.svg") 0 0 / 580px 580px repeat,
    var(--navy-950);
}

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.center .btn { margin-top: .5em; }
.muted { color: var(--muted); }

/* ---------- type ---------- */
.display, .display-sm, .kicker, .btn, .badge, .wordmark, .site-nav a, .game-card h3, .news-card h3, .subhead, .factbox dt, .more {
  font-family: var(--display); font-weight: 400; letter-spacing: .01em;
}
.display {
  font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff;
  text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 0 6px 0 var(--ink);
}
.display-sm { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: #fff; text-shadow: 2px 2px 0 var(--ink), 0 4px 0 var(--ink); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.subhead { font-size: 1.25rem; color: var(--yellow); margin-top: 1.6em; }
.kicker { text-transform: uppercase; color: var(--sky); font-size: .95rem; letter-spacing: .12em; margin: 0 0 .4em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 14, 34, .92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 3px 0 rgba(34, 112, 214, .5);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.wordmark {
  text-decoration: none; font-size: 1.6rem; line-height: 1; white-space: nowrap;
  text-shadow: 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 0 4px 0 var(--ink);
}
.wordmark .wm-a { color: var(--pink); }
.wordmark .wm-b { color: #fff; }
.wordmark:hover .wm-b { color: var(--yellow); }
.wordmark-lg { font-size: 2.2rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: #fff; text-decoration: none; font-size: 1.05rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.site-nav a:hover { color: var(--yellow); background: rgba(255, 255, 255, .06); }
.site-nav a.is-active { color: var(--pink); }
.site-nav .nav-press { border: 2px solid var(--yellow); color: var(--yellow); margin-left: 6px; }
.site-nav .nav-press.is-active { background: var(--yellow); color: var(--ink); }
.site-nav .nav-itch {
  background: var(--pink); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); margin-left: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.site-nav .nav-itch:hover { background: var(--pink-dark); color: #fff; }
.nav-toggle {
  display: none; margin-left: auto; background: var(--pink); color: #fff; border: 2px solid var(--ink);
  border-radius: 10px; padding: 8px; box-shadow: 0 3px 0 var(--ink); cursor: pointer;
}
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; vertical-align: -.15em; }
.nav-toggle .icon { width: 26px; height: 26px; display: block; }

/* ---------- per-language font stacks ---------- */
:lang(ja) {
  --cjk-sys: "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --body: "GsdNotoJP", var(--cjk-sys);
  --display: "TitanOneSelf", "GsdNotoJPDisplay", var(--cjk-sys);
  line-break: strict;
}
:lang(zh-Hans) {
  --cjk-sys: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --body: "GsdNotoSC", var(--cjk-sys);
  --display: "TitanOneSelf", "GsdNotoSCDisplay", var(--cjk-sys);
}
:lang(ko) {
  --cjk-sys: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Nanum Gothic", sans-serif;
  --body: "GsdNotoKR", var(--cjk-sys);
  --display: "TitanOneSelf", "GsdNotoKRDisplay", var(--cjk-sys);
  word-break: keep-all;
}
/* the switcher shows 日本語 / 简体中文 / 한국어 on every page: use the tiny name-only subsets */
.lang-menu a:lang(ja) { --display: "TitanOneSelf", "GsdNotoJPName", var(--cjk-sys); }
.lang-menu a:lang(zh-Hans) { --display: "TitanOneSelf", "GsdNotoSCName", var(--cjk-sys); }
.lang-menu a:lang(ko) { --display: "TitanOneSelf", "GsdNotoKRName", var(--cjk-sys); }
:lang(ja) .display, :lang(zh-Hans) .display, :lang(ko) .display { letter-spacing: .02em; }

/* ---------- language switcher (last item of the top menu) ---------- */
.lang-switch { position: relative; margin-left: 6px; }
.lang-switch summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 400; font-size: 1.05rem; color: #fff;
  padding: 7px 10px; border: 2px solid var(--panel-border); border-radius: 10px;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--yellow); border-color: var(--yellow); background: rgba(255, 255, 255, .06); }
.lang-switch .caret { width: .85em; height: .85em; transition: transform .15s; }
.lang-switch[open] .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  margin: 0; padding: 8px; list-style: none; min-width: 230px;
  background: var(--navy-900); border: 3px solid var(--panel-border); border-radius: 14px;
  box-shadow: 0 6px 0 var(--ink), 0 18px 40px rgba(0, 0, 0, .45);
}
.site-nav .lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; font-size: 1rem; white-space: nowrap; }
.site-nav .lang-menu a[aria-current] { color: var(--pink); background: rgba(255, 79, 184, .1); }
.lang-menu .icon { width: 1em; height: 1em; }

/* ---------- buttons, badges, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; border: 3px solid var(--ink);
  font-size: 1.1rem; text-decoration: none; color: #fff; cursor: pointer; line-height: 1.1;
  box-shadow: 0 5px 0 var(--ink); transition: transform .08s, box-shadow .08s, background .15s;
  text-align: center;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-pink { background: linear-gradient(180deg, #ff6cc7, var(--pink) 55%, var(--pink-dark)); }
.btn-ghost { background: rgba(14, 31, 77, .9); border-color: var(--sky); box-shadow: 0 5px 0 #0a2a66; }
.btn-ghost:hover { box-shadow: 0 7px 0 #0a2a66; }
.btn-lg { font-size: 1.3rem; padding: 16px 28px; }
.btn-block { display: flex; width: 100%; margin-top: 12px; font-size: 1rem; padding: 12px 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 10px; font-size: .95rem; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  transform: rotate(-3deg);
}
.badge-big { font-size: 1.25rem; padding: 6px 16px; margin-bottom: 14px; }
.status-released { background: var(--green); }
.status-in-development { background: var(--sky); }

.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600;
  background: rgba(57, 184, 255, .14); border: 1px solid rgba(57, 184, 255, .45); color: #d9f0ff;
  padding: 3px 10px; border-radius: 999px;
}

.todo {
  display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; font-weight: 700;
  background: repeating-linear-gradient(45deg, #ffe066, #ffe066 8px, #ffd23a 8px, #ffd23a 16px);
  color: #3a2a00; border: 2px dashed #7a5a00; padding: 2px 8px; border-radius: 6px;
}
.todo-block { border: 2px dashed rgba(255, 205, 64, .6); border-radius: 12px; padding: 12px 14px; color: var(--muted); }

/* ---------- panels, frames ---------- */
.panel {
  background: var(--panel); border: 3px solid var(--panel-border); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--navy-950), 0 18px 40px rgba(0, 0, 0, .35);
}
.block { padding: clamp(18px, 3vw, 32px); margin-bottom: 28px; }
.game-main .block { padding: 0; margin-bottom: 44px; }
.frame {
  background: #fff; padding: 8px; border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5), 0 0 0 3px var(--ink);
}
.frame video, .frame img { border-radius: 4px; width: 100%; background: #000; aspect-ratio: 16 / 9; }
.frame-tilt { transform: rotate(2.2deg); }
.frame-small { max-width: 720px; }
.media-caption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section-tight { padding-top: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.page-header { padding: clamp(36px, 6vw, 64px) 0 26px; }

/* ---------- homepage hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
  isolation: isolate;
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 var(--pink);
}
.hero::before {
  content: ""; position: absolute; inset: -12px; z-index: -1;
  background: var(--hero-bg) center / cover no-repeat; filter: blur(5px) saturate(1.1);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 14, 34, .96) 0%, rgba(7, 14, 34, .88) 45%, rgba(7, 14, 34, .6) 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-logo { margin: 0 0 8px; }
.hero-logo img { width: min(520px, 100%); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.hero-tagline { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: #fff; margin: 4px 0 8px; text-shadow: 2px 2px 0 var(--ink); }
.hero-summary { color: #d5def7; max-width: 46ch; }
.hero-bubbles { position: absolute; inset: 0; pointer-events: none; }
.hero-bubbles img { position: absolute; image-rendering: pixelated; }
.bb { width: 64px; animation: bounce 3.2s ease-in-out infinite; opacity: .9; }
.bb1 { left: 1.5%; top: 62%; width: 72px; }
.bb2 { right: 5%; top: 8%; width: 56px; animation-delay: -1.2s; }
.bb3 { left: 44%; bottom: 6%; width: 44px; animation-delay: -2.1s; }
.bb4 { right: 12%; bottom: 10%; width: 40px; animation-delay: -.6s; }
.ufo { width: 96px; top: 5%; left: 44%; animation: hover 5s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
@keyframes hover { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 8px); } }

/* ---------- welcome speech bubble (Tribute-style mascot intro) ---------- */
.welcome-grid { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; max-width: 900px; }
.mascot img { width: 160px; image-rendering: pixelated; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .35)); animation: bounce 2.6s ease-in-out infinite; }
.speech {
  position: relative; background: #fff; color: #1c2550; border: 4px solid var(--ink); border-radius: 24px;
  padding: 24px 28px 10px; box-shadow: 0 8px 0 var(--ink);
}
.speech::before {
  content: ""; position: absolute; left: -26px; top: 50%; width: 30px; height: 30px; background: #fff;
  border-left: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: translateY(-50%) rotate(45deg);
}
.speech .display-sm { color: var(--pink); text-shadow: none; }
.speech a { color: #1d63d6; }
.speech a:hover { color: var(--pink-dark); }

/* ---------- game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.game-card { background: var(--panel); border: 3px solid var(--panel-border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 0 var(--navy-950); transition: transform .15s, border-color .15s; }
.game-card:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--pink); }
.game-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.game-card-link:hover { color: inherit; }
.game-card-media { position: relative; }
.game-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--ink); }
.game-card-media .badge { position: absolute; left: 14px; top: 14px; }
.game-card-body { padding: 18px 20px 22px; }
.game-card h3 { font-size: 1.6rem; color: #fff; text-shadow: 2px 2px 0 var(--ink); margin-bottom: .2em; }
.game-card-tagline { color: var(--yellow); font-weight: 600; margin-bottom: .6em; }
.game-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--pink); }
.game-card-wide { grid-column: 1 / -1; }
.game-card-wide .game-card-link { display: grid; grid-template-columns: 1.3fr 1fr; }
.game-card-wide .game-card-media img { height: 100%; border-bottom: 0; border-right: 3px solid var(--ink); }
.game-card-wide .game-card-body { padding: 28px 30px; align-self: center; }
.game-card-wide h3 { font-size: 2.2rem; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.news-card { background: var(--panel); border: 3px solid var(--panel-border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 0 var(--navy-950); }
.news-card a { display: block; color: inherit; text-decoration: none; height: 100%; }
.news-card img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 3px solid var(--ink); }
.news-card-body { padding: 16px 20px 20px; }
.news-card h3 { font-size: 1.3rem; color: #fff; margin: .2em 0 .4em; }
.news-card:hover { border-color: var(--pink); }
time { color: var(--sky); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.post-image { border-radius: 10px; border: 3px solid var(--ink); margin: 6px 0 18px; width: 100%; }

/* ---------- follow + socials ---------- */
.follow-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(20px, 3vw, 32px); }
.follow .follow-box { background: linear-gradient(135deg, rgba(255, 79, 184, .25), rgba(34, 112, 214, .25)), var(--panel); border: 3px solid var(--pink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--navy-950); }
.follow-box p { margin: 0; color: #d5def7; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  font-weight: 700; text-decoration: none; color: #fff; background: var(--blue-700);
  border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.social .icon { width: 22px; height: 22px; }
a.social:hover { color: #fff; background: var(--pink); transform: translateY(-2px); }
.social-itch { background: #fa5c5c; }
.social-todo { opacity: .75; background: rgba(20, 64, 143, .5); border-style: dashed; cursor: help; }
.social-todo em { font-style: normal; font-family: ui-monospace, Consolas, monospace; font-size: .75rem; background: var(--yellow); color: var(--ink); padding: 1px 6px; border-radius: 5px; }

/* ---------- game page ---------- */
.game-hero { border-bottom: 4px solid var(--ink); background: #1b77d8; }
.game-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.game-intro { margin-top: -54px; position: relative; z-index: 2; }
.game-intro-row { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(20px, 3vw, 34px); flex-wrap: wrap; }
.game-intro .lead { margin-bottom: 0; }
.cta-box { max-width: 360px; text-align: center; }
.cta-note { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding: 48px 0 70px; align-items: start; }
.game-side { position: sticky; top: 96px; }
.factbox { padding: 22px; }
.factbox dl { margin: 0 0 8px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.factbox dt { color: var(--sky); }
.factbox dd { margin: 0; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li { position: relative; padding: 10px 14px 10px 50px; background: rgba(14, 31, 77, .75); border: 2px solid rgba(57, 184, 255, .3); border-radius: 12px; }
.features li::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, #ff8fd5 13% 40%, var(--pink) 41% 75%, var(--pink-dark) 76%);
  box-shadow: 0 0 0 2px var(--ink);
}
.features li:nth-child(4n+2)::before { background: radial-gradient(circle at 35% 30%, #fff 0 12%, #8fd8ff 13% 40%, var(--sky) 41% 75%, #1d6fc4 76%); }
.features li:nth-child(4n+3)::before { background: radial-gradient(circle at 35% 30%, #fff 0 12%, #b5f5a8 13% 40%, var(--green) 41% 75%, #2f9a2a 76%); }
.features li:nth-child(4n)::before { background: radial-gradient(circle at 35% 30%, #fff 0 12%, #ffe9a0 13% 40%, var(--yellow) 41% 75%, #d49a00 76%); }
.credits { list-style: none; padding: 0; margin: 0; }
.credits li { padding: 10px 0; border-bottom: 1px dashed rgba(169, 184, 224, .35); }
.credits li:first-child { font-family: var(--display); font-size: 1.2rem; color: var(--yellow); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery-promo .shot:first-child { grid-column: 1 / -1; }
.gallery-small { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shot { display: block; position: relative; border-radius: 10px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--navy-950); transition: transform .15s; background: #000; }
.shot:hover { transform: translateY(-3px) rotate(-.6deg); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
img.pixel-sprite { image-rendering: pixelated; }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 5px; font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(4, 8, 20, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1280px, 92vw); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border: 4px solid #fff; border-radius: 8px; }
.lightbox img.pixel { image-rendering: pixelated; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 10px; font-weight: 700; }
.lightbox button { position: absolute; background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.lightbox button .icon { width: 26px; height: 26px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }

/* ---------- press kit ---------- */
.press-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 60px; }
.press-side { position: sticky; top: 96px; }
.press-nav { padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.press-nav a { text-decoration: none; font-weight: 700; padding: 5px 0; }
.press-nav a.sub { font-weight: 500; padding-left: 14px; font-size: .95rem; color: var(--muted); }
.press-nav a.sub:hover { color: var(--yellow); }
.factsheet { display: grid; grid-template-columns: 170px 1fr; gap: 0; margin: 0 0 10px; border-top: 1px solid rgba(169, 184, 224, .25); }
.factsheet dt, .factsheet dd { padding: 9px 0; border-bottom: 1px solid rgba(169, 184, 224, .25); margin: 0; }
.factsheet dt { color: var(--sky); font-weight: 700; }
.press-game-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.press-game-head img { width: 280px; }
.press-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.press-shot { display: block; text-decoration: none; color: #fff; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--navy-800); }
.press-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.press-shot span { display: block; padding: 8px 10px; font-size: .85rem; font-weight: 700; }
.press-shot small, .press-logo small { display: block; color: var(--muted); font-weight: 500; }
.press-shot:hover { border-color: var(--pink); color: #fff; }
.press-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.press-logo { display: block; text-decoration: none; color: #fff; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#1a2a5a 0 25%, #22356e 0 50%) 0 0 / 20px 20px; }
.press-logo img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; padding: 10px; }
.press-logo span { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 8px 10px; font-size: .85rem; font-weight: 700; background: var(--navy-800); }
.press-logo span small { flex-basis: 100%; }
.press-logo:hover { border-color: var(--pink); color: #fff; }
.link-download { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; margin-top: 14px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 26px; }
.contact-card { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-card p { color: #d5def7; }
.contact-card .btn { margin-top: auto; max-width: 100%; overflow-wrap: anywhere; }
.contact-card .btn + p { margin: 14px 0 0; }
.contact-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--pink); border: 3px solid var(--ink); margin-bottom: 14px; box-shadow: 0 4px 0 var(--ink); }
.contact-icon .icon { width: 28px; height: 28px; }

/* ---------- footer ---------- */
.site-footer { background: rgba(7, 14, 34, .96); border-top: 4px solid var(--ink); box-shadow: 0 -4px 0 var(--blue-500); padding: 40px 0 28px; margin-top: 20px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 26px 0 16px; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--yellow); }
.small-print { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- other stores (Google Play / App Store): neutral buttons, NOT the official badges ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-store {
  gap: 10px; padding: 8px 16px 8px 12px; font-size: 1rem; line-height: 1.1; text-align: left;
  background: rgba(14, 31, 77, .9); border-color: var(--panel-border); box-shadow: 0 4px 0 #0a2a66;
}
.btn-store .icon { width: 1.5em; height: 1.5em; }
.store-text { display: flex; flex-direction: column; }
.store-sub { font-family: var(--body); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.btn-store.is-disabled {
  cursor: not-allowed; pointer-events: none; user-select: none;
  background: #2b3350; border-color: #4a5372; color: #9aa3bd; box-shadow: 0 4px 0 #1b2138;
  filter: grayscale(1);
}
.btn-store.is-disabled:hover { transform: none; }
.btn-store.is-disabled .store-sub { color: #c4cad9; }
.cta-box .store-row { justify-content: center; }
.factbox-stores .store-row { margin-top: 10px; gap: 8px; }
.factbox-stores .btn-store { flex: 1 1 100%; min-width: 0; justify-content: flex-start; padding: 8px 12px; font-size: .95rem; }
.dd-note { display: block; color: var(--muted); font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; }
  .game-layout { grid-template-columns: 1fr; }
  .game-side { position: static; }
  .press-layout { grid-template-columns: 1fr; }
  .gallery-small { grid-template-columns: repeat(3, 1fr); }
  .press-side { position: static; }
  .game-card-wide .game-card-link { grid-template-columns: 1fr; }
  .game-card-wide .game-card-media img { border-right: 0; border-bottom: 3px solid var(--ink); }
}
/* compact top menu for mid-size screens (longer labels in de/es/pl/ja...) */
@media (min-width: 1101px) and (max-width: 1279px) {
  .header-row { gap: 14px; }
  .header-row > .wordmark { font-size: 1.35rem; }
  .site-nav { gap: 2px; }
  .site-nav a { font-size: .95rem; padding: 8px 8px; }
  .site-nav .nav-press, .site-nav .nav-itch { margin-left: 4px; }
  .lang-switch { margin-left: 4px; }
  .lang-switch summary { font-size: .95rem; padding: 6px 8px; }
}
/* mobile / tablet: menu behind the toggle button (the language switcher expands inline) */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 20px 16px;
    background: rgba(7, 14, 34, .98); border-bottom: 3px solid var(--ink);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 9px 14px; font-size: 1.15rem; }
  .site-nav .nav-press, .site-nav .nav-itch { margin: 6px 0 0; justify-content: center; text-align: center; }
  .site-nav { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; }
  .lang-switch { margin: 6px 0 0; }
  .lang-switch summary { display: flex; justify-content: center; padding: 10px 14px; font-size: 1.2rem; }
  .lang-menu { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; min-width: 0; margin-top: 8px; box-shadow: none; }
  .site-nav .lang-menu a { font-size: 1rem; padding: 7px 12px; white-space: normal; }
}
@media (min-width: 700px) and (max-width: 1100px) {
  .site-nav { left: auto; width: 420px; border-left: 3px solid var(--ink); border-bottom-left-radius: var(--radius); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wordmark { font-size: 1.3rem; }
  .wordmark-lg { font-size: 1.7rem; }
  .header-row { min-height: 62px; }
  .hero::after { background: linear-gradient(180deg, rgba(7, 14, 34, .9), rgba(7, 14, 34, .82)); }
  .hero-bubbles .bb2, .hero-bubbles .bb4 { display: none; }
  .ufo { width: 64px; left: 62%; }
  .btn-row .btn { width: 100%; }
  .welcome-grid { grid-template-columns: 1fr; justify-items: center; gap: 30px; }
  .mascot img { width: 110px; }
  .speech::before { left: 50%; top: -26px; transform: translateX(-50%) rotate(135deg); }
  .game-intro { margin-top: 14px; }
  .cta-box { max-width: none; width: 100%; }
  .cta-box .btn { width: 100%; }
  .store-row .btn-store, .cta-box .store-row .btn-store { flex: 1 1 0; width: auto; min-width: 0; justify-content: center; padding: 8px 10px; }
  .factsheet { grid-template-columns: 1fr; }
  .factsheet dt { border-bottom: 0; padding-bottom: 0; }
  .gallery { gap: 10px; }
  .press-logos { grid-template-columns: 1fr 1fr; }
  .gallery-small { grid-template-columns: 1fr 1fr; }
  .press-shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .press-game-head img { width: 220px; }
  .press-game-head .btn { width: 100%; }
  .lb-prev, .lb-next { top: auto !important; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
