/* ==========================================================================
   SLIDECUBE · 推拉方块游戏
   Luminous Iridescent Prism Design System
   Inspired by the SlideCube ribbon cube & floating pixel-bits mark
   ========================================================================== */

:root {
  /* Core Neutral Surfaces — Pure Snow & Pearl Slate */
  --bg: #fafbfd;
  --bg-elev: #ffffff;
  --bg-soft: #f3f6fb;
  --bg-muted: #ecf1f8;

  /* Typography Inks — Sampled directly from SlideCube Logo */
  --ink: #2b3137;
  --ink-deep: #1e2328;
  --ink-2: #5a6370;
  --ink-3: #87909b;
  --line: rgba(43, 49, 55, 0.08);
  --line-strong: rgba(43, 49, 55, 0.14);

  /* Signature Logo Iridescent Spectrum */
  --mint: #66e2b3;
  --sky: #62c4f6;
  --lavender: #a696f6;
  --coral: #f6999e;
  --amber: #fbc676;
  --amber-brand: #f6b554;
  --amber-deep: #d98c2b;
  --indigo-accent: #7a6bf0;

  /* Prism Gradients */
  --prism: linear-gradient(135deg, #66e2b3 0%, #62c4f6 28%, #a696f6 56%, #f6999e 80%, #fbc676 100%);
  --prism-h: linear-gradient(90deg, #66e2b3 0%, #62c4f6 26%, #a696f6 54%, #f6999e 78%, #fbc676 100%);
  --prism-text: linear-gradient(112deg, #2cc39b 0%, #3aa3e8 30%, #8674ef 60%, #e77f88 82%, #e8a03f 100%);
  --prism-soft: linear-gradient(
    135deg,
    rgba(102, 226, 179, 0.14) 0%,
    rgba(98, 196, 246, 0.14) 30%,
    rgba(166, 150, 246, 0.14) 60%,
    rgba(251, 198, 118, 0.18) 100%
  );

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Typography — Clean Rounded-Geometric Sans matching SlideCube wordmark */
  --font-display: 'Outfit', 'Plus Jakarta Sans', 'PingFang SC', 'Noto Sans SC', sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'PingFang SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Airy Ceramic Elevation Shadows */
  --shadow-xs: 0 4px 12px -4px rgba(43, 49, 55, 0.06);
  --shadow-soft: 0 18px 44px -24px rgba(43, 49, 55, 0.12), 0 4px 14px -6px rgba(43, 49, 55, 0.05);
  --shadow-card: 0 24px 60px -28px rgba(43, 49, 55, 0.13), 0 6px 20px -10px rgba(43, 49, 55, 0.05);
  --shadow-prism: 0 26px 64px -24px rgba(122, 107, 240, 0.2), 0 10px 28px -14px rgba(98, 196, 246, 0.16);

  --ease-spring: cubic-bezier(0.22, 1.24, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(43, 49, 55, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Soft Ethereal Ambient Prism Glow on Pure White Canvas */
body::before {
  content: '';
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 120vw);
  height: 620px;
  background:
    radial-gradient(420px 300px at 18% 28%, rgba(102, 226, 179, 0.14), transparent 72%),
    radial-gradient(460px 320px at 50% 18%, rgba(98, 196, 246, 0.11), transparent 72%),
    radial-gradient(460px 320px at 78% 30%, rgba(166, 150, 246, 0.13), transparent 72%),
    radial-gradient(380px 280px at 88% 62%, rgba(251, 198, 118, 0.15), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* Scroll Progress Hairline — Full Logo Prism Spectrum */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--prism-h);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
}

/* Signature Floating 3-Pixel-Bits Micro Motif (from Logo Top-Right) */
.pixel-bits {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 14px;
  flex-shrink: 0;
}

.pixel-bits i {
  position: absolute;
  display: block;
  border-radius: 2px;
}

.pixel-bits i:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 0;
  top: 4px;
  background: linear-gradient(135deg, var(--sky), var(--lavender));
}

.pixel-bits i:nth-child(2) {
  width: 5.5px;
  height: 5.5px;
  left: 6px;
  top: 8px;
  background: linear-gradient(135deg, var(--coral), var(--amber));
}

.pixel-bits i:nth-child(3) {
  width: 4.5px;
  height: 4.5px;
  right: 0;
  top: 0;
  background: linear-gradient(135deg, var(--mint), var(--amber));
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 18px 0;
  transition: background-color 0.3s ease, padding 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(43, 49, 55, 0.14);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 4px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark:hover .brand-logo-wrap {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 22px -10px rgba(122, 107, 240, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-word-slide {
  color: var(--ink);
}

.brand-word-cube {
  color: var(--amber-brand);
}

.brand-text > span {
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sound-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 107, 240, 0.35);
  color: var(--ink);
}

.sound-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(102, 226, 179, 0.25);
}

.sound-btn.is-muted .sound-dot {
  background: var(--ink-3);
  box-shadow: none;
}

.lang-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-muted);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  width: 84px;
}

.lang-toggle span {
  position: relative;
  z-index: 2;
  text-align: center;
  transition: color 0.25s ease;
}

.lang-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 4px 10px -2px rgba(43, 49, 55, 0.28);
  transition: transform 0.3s var(--ease-spring);
  z-index: 1;
}

.lang-toggle[data-lang='zh'] span:first-child,
.lang-toggle[data-lang='en'] span:last-child {
  color: #ffffff;
}

.lang-toggle[data-lang='en']::after {
  transform: translateX(100%);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 17px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Hero Section + Luminous 3D SlideCube Toyboard
   ========================================================================== */
.hero {
  padding: 44px 0 92px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.2vw, 3.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

html[lang='zh-CN'] .hero-title {
  font-size: clamp(2.3rem, 3.7vw, 3.5rem);
  line-height: 1.18;
}

.hero-title .accent-stroke {
  display: inline-block;
  position: relative;
  background: var(--prism-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-motto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.hero-motto::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--prism-h);
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 530px;
  line-height: 1.78;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  position: relative;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow:
    0 14px 28px -12px rgba(43, 49, 55, 0.36),
    0 6px 20px -10px rgba(166, 150, 246, 0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--ink-deep);
  box-shadow:
    0 18px 34px -12px rgba(43, 49, 55, 0.42),
    0 10px 26px -10px rgba(98, 196, 246, 0.42);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(166, 150, 246, 0.45);
  box-shadow: 0 14px 28px -16px rgba(122, 107, 240, 0.25);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--ink);
}

.stat-item:nth-child(2) strong {
  background: linear-gradient(120deg, #32b89a, #54a8ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item:nth-child(3) strong {
  background: linear-gradient(120deg, #8b7bf0, #ec9a45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* Luminous Ceramic 3D SlideCube Toyboard */
.cube-stage {
  perspective: 1100px;
  position: relative;
}

.cube-stage::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 44px;
  background: var(--prism-soft);
  filter: blur(28px);
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}

.cube-shell {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid rgba(43, 49, 55, 0.08);
  box-shadow:
    var(--shadow-prism),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.cube-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--prism-h);
  opacity: 0.9;
}

.cube-shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 2px 4px 0;
}

.cube-shell-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.led-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--prism);
  box-shadow: 0 0 10px rgba(102, 226, 179, 0.55);
}

.cube-moves-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  letter-spacing: 0.05em;
}

.cube-moves-pill #puzzle-moves {
  color: var(--amber-deep);
}

.cube-board {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --pad: 10px;
  --gap: 10px;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: linear-gradient(145deg, #eef2f8 0%, #e7edf6 100%);
  padding: var(--pad);
  box-shadow:
    inset 0 4px 14px rgba(43, 49, 55, 0.08),
    inset 0 0 0 1px rgba(43, 49, 55, 0.06);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  user-select: none;
  touch-action: none;
}

.cube-board.is-solved {
  animation: boardSolvedPulse 0.7s var(--ease-spring);
}

@keyframes boardSolvedPulse {
  0% {
    box-shadow: inset 0 4px 14px rgba(43, 49, 55, 0.08), 0 0 0 0 rgba(102, 226, 179, 0.55);
  }
  50% {
    box-shadow: inset 0 4px 14px rgba(43, 49, 55, 0.08), 0 0 0 14px rgba(166, 150, 246, 0);
  }
  100% {
    box-shadow: inset 0 4px 14px rgba(43, 49, 55, 0.08), 0 0 0 0 rgba(251, 198, 118, 0);
  }
}

.cube-bed {
  position: absolute;
  inset: var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: var(--gap);
  pointer-events: none;
}

.cube-recess {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px dashed rgba(43, 49, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(43, 49, 55, 0.24);
}

.cube-tile {
  --col: 0;
  --row: 0;
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  width: calc((100% - var(--pad) * 2 - var(--gap) * 2) / 3);
  height: calc((100% - var(--pad) * 2 - var(--gap) * 2) / 3);
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate3d(
    calc(var(--col) * (100% + var(--gap))),
    calc(var(--row) * (100% + var(--gap))),
    0
  );
  transition: transform 0.26s var(--ease-spring);
  z-index: 2;
}

.cube-tile.is-nudged .cube-tile-face {
  animation: tileNudge 0.24s ease;
}

@keyframes tileNudge {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(0.95); }
}

.cube-tile-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 8px 18px -8px rgba(43, 49, 55, 0.28),
    0 2px 4px rgba(43, 49, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cube-tile.is-movable .cube-tile-face {
  box-shadow:
    0 10px 22px -8px rgba(43, 49, 55, 0.3),
    0 0 0 1.5px rgba(255, 255, 255, 0.9);
}

.cube-tile.is-movable:hover .cube-tile-face {
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px -10px rgba(43, 49, 55, 0.34),
    0 0 0 2px var(--tile-accent, var(--lavender));
}

.cube-tile:active .cube-tile-face {
  transform: translateY(1px);
}

.cube-tile-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cube-tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 28, 34, 0.14) 0%, rgba(24, 28, 34, 0) 44%, rgba(24, 28, 34, 0.78) 100%);
  pointer-events: none;
}

.cube-tile-idx {
  position: absolute;
  top: 7px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(30, 35, 42, 0.56);
  backdrop-filter: blur(8px);
  padding: 2px 6px;
  border-radius: 6px;
}

.cube-tile-inspect {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-spring), background-color 0.2s ease, color 0.2s ease;
}

.cube-tile:hover .cube-tile-inspect {
  opacity: 1;
  transform: scale(1);
}

.cube-tile-inspect:hover {
  background: var(--ink);
  color: #ffffff;
}

.cube-tile-name {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Logo-inspired Brand Tiles on Toyboard */
.cube-tile-face--brand {
  background: var(--brand-bg);
  color: var(--brand-fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.cube-tile-face--cube .brand-word,
.cube-tile-face--cube .brand-sub {
  text-shadow: 0 2px 10px rgba(43, 49, 55, 0.18);
}

.brand-bits {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 14px;
}

.brand-bits i {
  position: absolute;
  border-radius: 2px;
}

.cube-tile-face--slide .brand-bits i:nth-child(1) {
  width: 5px;
  height: 5px;
  left: 0;
  top: 4px;
  background: var(--mint);
}

.cube-tile-face--slide .brand-bits i:nth-child(2) {
  width: 5px;
  height: 5px;
  left: 6px;
  top: 8px;
  background: var(--sky);
}

.cube-tile-face--slide .brand-bits i:nth-child(3) {
  width: 4px;
  height: 4px;
  right: 0;
  top: 0;
  background: var(--amber);
}

.cube-tile-face--cube .brand-bits i:nth-child(1) {
  width: 5px;
  height: 5px;
  left: 0;
  top: 4px;
  background: rgba(255, 255, 255, 0.85);
}

.cube-tile-face--cube .brand-bits i:nth-child(2) {
  width: 5px;
  height: 5px;
  left: 6px;
  top: 8px;
  background: rgba(255, 255, 255, 0.65);
}

.cube-tile-face--cube .brand-bits i:nth-child(3) {
  width: 4px;
  height: 4px;
  right: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
}

.brand-word {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.74rem;
  opacity: 0.82;
  letter-spacing: 0.16em;
}

.cube-shell-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cube-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-3);
  flex: 1 1 220px;
}

.cube-controls {
  display: flex;
  gap: 8px;
}

.toy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.toy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 107, 240, 0.35);
  box-shadow: 0 8px 18px -10px rgba(43, 49, 55, 0.22);
}

.toy-btn:active {
  transform: translateY(1px);
}

.toy-btn--accent {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.toy-btn--accent:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}

/* ==========================================================================
   Marquee Ticker Ribbon — Pastel Pixel Accents
   ========================================================================== */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 15px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: tickerScroll 30s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  white-space: nowrap;
}

.ticker-item b {
  color: var(--ink);
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--mint);
}

.ticker-item:nth-child(5n + 2) .ticker-dot { background: var(--sky); }
.ticker-item:nth-child(5n + 3) .ticker-dot { background: var(--lavender); }
.ticker-item:nth-child(5n + 4) .ticker-dot { background: var(--coral); }
.ticker-item:nth-child(5n + 5) .ticker-dot { background: var(--amber); }

/* ==========================================================================
   Section Framing
   ========================================================================== */
.section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.section-head-copy {
  max-width: 650px;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.72;
}

/* ==========================================================================
   Games Portfolio Showcase
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: var(--bg-muted);
  border: 1px solid var(--line);
}

.filter-pill {
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-pill:hover {
  color: var(--ink);
}

.filter-pill.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(43, 49, 55, 0.16);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.game-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.28s var(--ease-out), border-color 0.28s ease, box-shadow 0.28s ease;
  box-shadow: var(--shadow-soft);
}

.game-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 45%, transparent);
  box-shadow: 0 28px 56px -24px color-mix(in srgb, var(--card-accent) 28%, rgba(43, 49, 55, 0.16));
}

.game-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--card-soft);
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.game-card:hover .game-card-media img {
  transform: scale(1.05);
}

.game-card-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.32), transparent 52%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.game-card:hover .game-card-shine {
  opacity: 1;
}

.game-card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.game-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(30, 35, 42, 0.72);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.game-tag {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(43, 49, 55, 0.1);
}

.game-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.game-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.game-subtitle {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ink-3);
  font-weight: 500;
}

.game-palette {
  display: flex;
  gap: 4px;
  padding-top: 5px;
}

.game-palette span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(43, 49, 55, 0.12);
}

.game-tagline {
  margin: 0 0 18px;
  font-size: 0.91rem;
  color: var(--ink-2);
  line-height: 1.68;
  flex: 1;
}

.game-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.game-platforms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-platforms span {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.game-inspect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  border: 0;
  background: var(--card-soft);
  color: var(--card-accent);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.game-card:hover .game-inspect-btn {
  background: var(--card-accent);
  color: #ffffff;
}

/* ==========================================================================
   About Studio & Brand Lockup Section
   ========================================================================== */
.studio-section {
  padding-top: 24px;
}

.studio-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  padding: clamp(28px, 4.5vw, 54px);
  border-radius: var(--radius-xl);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.studio-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--prism-h);
}

.studio-panel::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 150, 246, 0.1), rgba(251, 198, 118, 0.08) 45%, transparent 72%);
  pointer-events: none;
}

.studio-copy {
  position: relative;
  z-index: 1;
}

.studio-en-sub {
  margin: -4px 0 22px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--amber-deep);
  font-weight: 600;
}

.studio-copy p {
  margin: 0 0 16px;
  color: var(--ink-2);
  line-height: 1.82;
}

.studio-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--prism-soft);
  border: 1px solid rgba(166, 150, 246, 0.16);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.studio-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.studio-logo-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #ffffff;
}

.studio-logo-showcase img {
  height: 126px;
  width: auto;
  object-fit: contain;
}

.studio-facts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 24px;
}

.fact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fact-value {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.email-card {
  position: relative;
  margin-top: 28px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #2b3137 0%, #21262c 100%);
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 24px 50px -22px rgba(43, 49, 55, 0.42);
}

.email-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--prism-h);
}

.email-card::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 226, 179, 0.18), rgba(166, 150, 246, 0.12) 48%, transparent 72%);
  pointer-events: none;
}

.email-card-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}

.email-address {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.2vw, 1.56rem);
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
}

.email-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.email-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, transform 0.18s ease;
}

.email-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.email-btn--solid {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-deep);
}

.email-btn--solid:hover {
  background: #ffd18a;
  border-color: #ffd18a;
}

.contact-form {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lavender);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(166, 150, 246, 0.16);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.form-feedback {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: #168057;
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-rights {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.footer-links a:hover {
  color: var(--indigo-accent);
}

/* ==========================================================================
   Modals (Game Showcase & Legal Policy)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 35, 42, 0.56);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 32px;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.32s var(--ease-spring);
  box-shadow: 0 36px 90px -20px rgba(30, 35, 42, 0.35);
}

.modal-backdrop.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-panel--legal {
  width: min(740px, 100%);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--ink);
  color: #ffffff;
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
}

.modal-stage-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 4.35;
}

.modal-stage-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-soft);
}

.modal-media-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(43, 49, 55, 0.16);
}

.modal-stage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(43, 49, 55, 0.22);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.modal-stage-arrow--prev {
  left: 12px;
}

.modal-stage-arrow--next {
  right: 12px;
}

.modal-stage-arrow:hover {
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.modal-caption {
  margin: 12px 0 14px;
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 500;
  text-align: center;
}

.modal-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 74px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.68;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-thumb-frame {
  width: 74px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--bg-soft);
  display: block;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumb-label {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}

.modal-thumb.is-active,
.modal-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.modal-thumb.is-active .modal-thumb-frame,
.modal-thumb:hover .modal-thumb-frame {
  border-color: var(--modal-accent, var(--lavender));
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--modal-accent, var(--lavender)) 55%, transparent);
}

.modal-thumb.is-active .modal-thumb-label {
  color: var(--ink);
}

.modal-gameplay-box {
  position: relative;
  margin-bottom: 20px;
  padding: 16px 18px 16px 20px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.modal-gameplay-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--modal-accent, var(--lavender));
}

.modal-gameplay-box h4 {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--modal-accent, var(--indigo-accent));
}

.modal-gameplay-box p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--ink);
  line-height: 1.75;
}

.modal-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
}

.modal-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--modal-accent, var(--lavender)) 14%, transparent);
  color: var(--modal-accent, var(--indigo-accent));
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.modal-subtitle {
  margin: 4px 0 16px;
  font-size: 0.94rem;
  color: var(--ink-3);
  font-weight: 600;
}

.modal-desc {
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.78;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section h4 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.modal-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.modal-highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--ink);
}

.modal-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--modal-accent, var(--lavender));
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.modal-specs span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-3);
}

.modal-specs strong {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--ink);
}

.modal-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.swatch-chip:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.swatch-chip i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(43, 49, 55, 0.12);
}

.modal-nav-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.modal-nav-btn {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.modal-nav-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* Legal Modal Typography */
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
  margin: 4px 0 20px;
}

.legal-body {
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.82;
}

.legal-body h4 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.legal-body a {
  color: var(--indigo-accent);
  text-decoration: underline;
}

/* Floating Studio Toast */
.studio-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 18px 36px -8px rgba(43, 49, 55, 0.36);
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-spring);
}

.studio-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid,
  .studio-panel,
  .contact-grid,
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cube-stage {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 48px rgba(43, 49, 55, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px 16px;
    text-align: center;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .sound-btn .sound-label {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .games-grid,
  .form-row,
  .modal-specs {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px 0 64px;
  }

  .section {
    padding: 68px 0;
  }

  .modal-panel {
    padding: 22px;
  }
}
