@font-face{font-family:'Fraunces';font-style:italic;font-weight:500 600;font-display:swap;src:url('../assets/fonts/fraunces-italic-500.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600 700;font-display:swap;src:url('../assets/fonts/fraunces-normal-600.woff2') format('woff2');}
@font-face{font-family:'Outfit';font-style:normal;font-weight:400 700;font-display:swap;src:url('../assets/fonts/outfit-normal-400.woff2') format('woff2');}

/* ============================================================
   FUSEBOX GAMES — Contemporary Narrative Game Studio
   ============================================================ */
:root {
  --bg: #170823;
  --bg-soft: #1f0c31;
  --panel: #251139;
  --panel-2: #2c1543;
  --ink: #221035;
  --line: rgba(255, 214, 235, 0.14);
  --line-strong: rgba(255, 214, 235, 0.26);
  --cream: #f8e9db;
  --cream-soft: #efd9c7;
  --coral: #ff6f61;
  --pink: #ff8fb8;
  --plum: #9a4c86;
  --plum-deep: #5e2a63;
  --text: #f4e7ee;
  --muted: #c3aacd;
  --mint: #7fd8a6;
  --grad-hot: linear-gradient(135deg, #ff6f61, #ff8fb8);
  --grad-panel: linear-gradient(165deg, #2c1543, #1d0a2e);
  --shadow-hot: 0 18px 50px rgba(255, 111, 97, 0.28);
  --shadow-soft: 0 24px 60px rgba(10, 2, 20, 0.55);
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* soft glow field + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(255, 111, 97, 0.14), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(154, 76, 134, 0.18), transparent 60%),
    radial-gradient(700px 500px at 55% 110%, rgba(255, 143, 184, 0.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--coral); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.skip:focus { left: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream);
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(120deg, var(--coral), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-hot);
  border-radius: 2px;
}

.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }
.section-head { margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  background: var(--grad-hot);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-hot);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-ghost {
  background: transparent;
  box-shadow: none;
  border: 1.5px solid var(--line-strong);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); filter: none; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  font-weight: 600;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.text-link:hover svg { transform: translateX(4px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 111, 97, 0.16);
  color: var(--coral);
  border: 1px solid rgba(255, 111, 97, 0.3);
}
.chip-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
}
.chip-pink { background: rgba(255, 143, 184, 0.14); color: var(--pink); border-color: rgba(255, 143, 184, 0.3); }
.chip-mint { background: rgba(127, 216, 166, 0.13); color: var(--mint); border-color: rgba(127, 216, 166, 0.3); }

.status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.s-released { background: rgba(127, 216, 166, 0.9); color: #12331f; }
.s-development { background: rgba(255, 111, 97, 0.92); color: #33110c; }
.s-soon { background: rgba(255, 143, 184, 0.92); color: #370d22; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 8, 35, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}
.brand-name b { color: var(--coral); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px;
  background: var(--grad-hot);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--cream); }
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 11px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pink);
}
.hero-stat .lbl { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }

.hero-visual { position: relative; }
.float-chip {
  position: absolute;
  z-index: 3;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip.fc1 { top: -14px; left: -10px; background: #ffb1cd; color: #4d0f2c; }
.float-chip.fc2 { bottom: 18px; right: -8px; background: #ff9d84; color: #43110a; animation-delay: 1.4s; }
.hero-spark { position: absolute; z-index: 1; opacity: 0.85; animation: floaty 6s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* dialogue demo panel */
.dlg-panel {
  position: relative;
  z-index: 2;
  transform: rotate(1.6deg);
  background: var(--grad-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 22px 22px 18px;
  max-width: 460px;
  margin-left: auto;
}
.dlg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dlg-title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dlg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.dlg-meters { display: flex; gap: 14px; margin-bottom: 14px; }
.meter { flex: 1; }
.meter .meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.meter-bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 30%;
  border-radius: 6px;
  background: var(--grad-hot);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.meter-fill.mf-trust { background: linear-gradient(135deg, #9a4c86, #ff8fb8); }
.meter.pulse .meter-fill { animation: meterpulse 0.6s ease; }
@keyframes meterpulse { 40% { filter: brightness(1.7); } }

.dlg-stage { display: flex; gap: 14px; align-items: flex-start; min-height: 150px; }
.dlg-avatar {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}
.dlg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dlg-bubble {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px;
  padding: 14px 16px;
  min-height: 96px;
}
.dlg-bubble.typing { cursor: pointer; }
.dlg-name {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 6px;
}
.dlg-text { font-size: 0.97rem; color: var(--cream); }
.dlg-text.typing::after {
  content: "▍";
  margin-left: 2px;
  color: var(--pink);
  animation: caret 0.7s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.dlg-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.dlg-choice {
  text-align: left;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  opacity: 0;
  transform: translateY(8px);
  animation: choicein 0.35s ease forwards;
}
.dlg-choice:nth-child(2) { animation-delay: 0.07s; }
.dlg-choice:nth-child(3) { animation-delay: 0.14s; }
@keyframes choicein { to { opacity: 1; transform: translateY(0); } }
.dlg-choice:hover { border-color: var(--coral); background: rgba(255, 111, 97, 0.12); transform: translateX(4px); }
.dlg-choice .idx {
  display: inline-block;
  width: 20px; height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 6px;
  background: rgba(255, 143, 184, 0.18);
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 10px;
}

.dlg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; min-height: 38px; }
.dlg-ending {
  display: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mint);
}
.dlg-ending.show { display: block; animation: choicein 0.4s ease; }
.dlg-ending b { color: var(--cream); }
.dlg-replay {
  display: none;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
}
.dlg-replay.show { display: inline-flex; align-items: center; gap: 8px; }
.dlg-replay:hover { border-color: var(--pink); color: var(--pink); }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(31, 12, 49, 0.6);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span i {
  font-style: normal;
  color: var(--coral);
  margin-right: 26px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.game-card {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 143, 184, 0.45);
  box-shadow: var(--shadow-soft);
}
.game-media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; }
.game-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.game-card:hover .game-media img { transform: scale(1.06); }
.game-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.game-body h3 a:hover { color: var(--pink); }
.game-body p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.game-body .text-link { font-size: 0.9rem; }

.feature-card, .value-card, .service-card, .model-card {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover, .value-card:hover, .service-card:hover, .model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 143, 184, 0.4);
}
.feature-card .icon, .service-card .icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 111, 97, 0.14);
  color: var(--coral);
  margin-bottom: 18px;
}
.feature-card .icon svg, .service-card .icon svg { width: 22px; height: 22px; }
.feature-card h3, .service-card h3, .value-card h3, .model-card h3 { margin-bottom: 10px; }
.feature-card p, .service-card p, .value-card p, .model-card p { font-size: 0.94rem; color: var(--muted); }
.service-card .svc-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--pink);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}
.value-card .icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 143, 184, 0.14);
  color: var(--pink);
  margin-bottom: 18px;
}
.value-card .icon svg { width: 22px; height: 22px; }

/* ---------- sub-page heroes ---------- */
.page-hero {
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { max-width: 20ch; margin-bottom: 18px; }
.page-hero .lede { max-width: 60ch; }

/* games filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 40px; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--cream); border-color: var(--pink); }
.filter-btn.active {
  background: var(--grad-hot);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-hot);
}
.game-card.hide { display: none; }
.games-empty { display: none; color: var(--muted); padding: 30px 0; }
.games-empty.show { display: block; }

/* ---------- game detail ---------- */
.game-hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 78% 20%, color-mix(in srgb, var(--gh1, #ff6f61) 26%, transparent), transparent 65%),
    radial-gradient(600px 380px at 15% 90%, color-mix(in srgb, var(--gh2, #ff8fb8) 18%, transparent), transparent 65%);
  pointer-events: none;
}
.game-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb .sep { opacity: 0.5; }
.game-hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.game-hero h1 { margin-bottom: 14px; }
.game-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--pink);
  margin-bottom: 28px;
  max-width: 44ch;
}
.game-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px 28px;
  margin-bottom: 34px;
}
.game-meta .m-row { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted); }
.game-meta .m-row svg { width: 17px; height: 17px; color: var(--coral); flex-shrink: 0; }
.game-meta .m-row b { color: var(--cream); font-weight: 600; }
.game-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.game-cover-wrap { position: relative; }
.game-cover {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
  aspect-ratio: 3 / 4;
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-cover-wrap:hover .game-cover { transform: rotate(0.4deg) scale(1.015); }
.game-cover-wrap .float-chip.fc1 { top: 18px; left: -18px; }
.game-cover-wrap .float-chip.fc2 { bottom: 26px; right: -14px; }

.synopsis p { color: var(--muted); max-width: 72ch; margin-bottom: 16px; font-size: 1.03rem; }

.char-card {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.char-card:hover { transform: translateY(-5px); border-color: rgba(255, 143, 184, 0.45); }
.char-photo { aspect-ratio: 220 / 260; overflow: hidden; }
.char-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.char-card:hover .char-photo img { transform: scale(1.05); }
.char-body { padding: 18px 20px 22px; }
.char-role {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 4px;
}
.char-body h3 { margin-bottom: 8px; }
.char-body p { font-size: 0.9rem; color: var(--muted); }
.char-quote {
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--cream-soft);
  border-left: 2px solid var(--coral);
  padding-left: 12px;
}

/* demo section */
.demo-wrap { max-width: 620px; margin: 0 auto; }
.demo-wrap .dlg-panel { transform: none; margin: 0 auto; max-width: none; }
.demo-note { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 18px; }

/* ---------- quotes ---------- */
.quote-card {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-card .q-mark { color: var(--coral); width: 30px; height: 30px; }
.quote-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--cream);
  line-height: 1.5;
  flex: 1;
}
.quote-card cite { font-style: normal; font-size: 0.84rem; color: var(--muted); }

/* ---------- branch diagram section ---------- */
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.branch-list { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.branch-item { display: flex; gap: 16px; align-items: flex-start; }
.branch-item .b-ico {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 111, 97, 0.14);
  color: var(--coral);
}
.branch-item .b-ico svg { width: 20px; height: 20px; }
.branch-item h3 { margin-bottom: 4px; }
.branch-item p { font-size: 0.93rem; color: var(--muted); }
.branch-fig {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 26px;
}
.branch-fig svg { width: 100%; height: auto; }
.branch-fig figcaption { text-align: center; margin-top: 14px; font-size: 0.84rem; color: var(--muted); }

/* ---------- stat band ---------- */
.stat-band {
  border-block: 1px solid var(--line);
  background: rgba(31, 12, 49, 0.55);
}
.stat-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px 0; }
.stat-band .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.3rem;
  background: linear-gradient(120deg, var(--coral), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-band .lbl { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 72px 56px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255, 143, 184, 0.25), transparent 60%),
    radial-gradient(500px 300px at 5% 100%, rgba(255, 111, 97, 0.3), transparent 60%),
    linear-gradient(150deg, #3a1758, #220e38);
  border: 1px solid var(--line-strong);
  text-align: center;
}
.cta-banner h2 { max-width: 24ch; margin: 0 auto 16px; }
.cta-banner p { color: var(--muted); max-width: 54ch; margin: 0 auto 32px; }
.cta-banner .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- process / timeline ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step-card {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(255, 143, 184, 0.4); }
.step-card .st-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: transparent;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 10px;
  display: block;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.92rem; color: var(--muted); }

.timeline { list-style: none; position: relative; max-width: 780px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--coral), var(--plum), transparent);
}
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 20px 0;
  padding-left: 40px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 32px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 111, 97, 0.18);
}
.tl-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--pink);
  text-align: left;
  padding-right: 0;
}
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 0.97rem; max-width: 60ch; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.team-card:hover { transform: translateY(-5px); border-color: rgba(255, 143, 184, 0.45); }
.team-card .char-photo { aspect-ratio: 220 / 250; }
.team-body { padding: 16px 18px 20px; }
.team-body h3 { font-size: 1.08rem; margin-bottom: 3px; }
.team-role { font-size: 0.78rem; color: var(--pink); font-weight: 600; letter-spacing: 0.04em; }
.team-body p { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }

/* tech chips row */
.tech-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-row .chip-ghost { font-size: 0.85rem; padding: 8px 18px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.info-card {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.info-card + .info-card { margin-top: 18px; }
.info-card .icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 111, 97, 0.14);
  color: var(--coral);
}
.info-card .icon svg { width: 20px; height: 20px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.info-card p, .info-card a { font-size: 0.93rem; color: var(--muted); }
.info-card a:hover { color: var(--pink); }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.93rem;
  padding: 5px 0;
  color: var(--muted);
}
.hours-row b { color: var(--cream); font-weight: 600; }
.hours-row.closed b { color: var(--coral); }
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.open-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.open-badge.is-open { background: rgba(127, 216, 166, 0.14); color: var(--mint); border: 1px solid rgba(127, 216, 166, 0.35); }
.open-badge.is-open .dot { background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: blink 2s infinite; }
.open-badge.is-closed { background: rgba(255, 111, 97, 0.13); color: var(--coral); border: 1px solid rgba(255, 111, 97, 0.35); }
.open-badge.is-closed .dot { background: var(--coral); }
@keyframes blink { 50% { opacity: 0.45; } }

.form-panel {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color 0.2s, background 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pink) 50%), linear-gradient(135deg, var(--pink) 50%, transparent 50%); background-position: calc(100% - 21px) 55%, calc(100% - 16px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--panel); color: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(255, 111, 97, 0.06);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .err { display: none; font-size: 0.8rem; color: var(--coral); margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: var(--coral); }
.field.invalid .err { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-success { text-align: center; padding: 40px 10px; }
.form-success .icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(127, 216, 166, 0.14); color: var(--mint); }
.form-success .icon svg { width: 30px; height: 30px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 40ch; margin: 0 auto; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open { border-color: rgba(255, 143, 184, 0.4); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 20px 24px;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--pink); transition: transform 0.3s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: 0.95rem; max-width: 68ch; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(20, 6, 31, 0.7);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 64px 0 48px;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 34ch; }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.93rem; color: var(--muted); }
.footer-col a:hover { color: var(--pink); }
.footer-col .f-line { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .f-line svg { width: 16px; height: 16px; color: var(--coral); flex-shrink: 0; margin-top: 4px; }
.footer-hours { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }
.footer-hours b { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* 404 */
.nf-wrap { text-align: center; padding: 110px 0 90px; }
.nf-wrap h1 { margin-bottom: 16px; }
.nf-wrap p { color: var(--muted); margin-bottom: 34px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .branch-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .dlg-panel { margin: 0 auto; }
  .game-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .game-cover-wrap { max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(23, 8, 35, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 18px 5% 26px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 99;
  }
  .site-header.nav-open .site-nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 14px 12px; font-size: 1.05rem; }
  .nav-cta { margin: 12px 4px 0; justify-content: center; }
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .team-grid, .process-grid { grid-template-columns: 1fr 1fr; }
  .stat-band-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero { padding: 56px 0 72px; }
  .cta-banner { padding: 56px 26px; }
  .game-meta { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 56px 1fr; gap: 16px; padding-left: 32px; }
  .timeline::before { left: 10px; }
  .timeline li::before { left: 4px; }
  .tl-year { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 520px) {
  .grid-4, .team-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .dlg-panel { padding: 18px 16px 16px; }
  .float-chip.fc1 { left: 0; }
  .float-chip.fc2 { right: 0; }
  .form-panel { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}
