/* ============================================================================
   NITOEUS LAB — DESIGN SYSTEM v2
   Clean neutral dark. Hairline borders, one accent at a time, no glow.
   Class names match the markup generated by assets/js/app.js, visuals.js
   and games.js.
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap");

/* ----------------------------------------------------------------------------
   1. TOKENS
   ---------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #09090b;
  --bg-elevated: #0f0f12;
  --bg-card: #111114;
  --bg-card-solid: #111114;
  --bg-hover: #17171b;
  --bg-input: #0c0c0f;
  --bg-glass: rgba(9, 9, 11, 0.78);

  /* Lines */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --border-focus: rgba(255, 255, 255, 0.28);

  /* Text */
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  /* Accent (overridden per app by app.js) */
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-glow: rgba(34, 211, 238, 0.24);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 40%, transparent);

  /* Status */
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;

  /* Type */
  --font-display: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", Consolas, monospace;

  /* Shape */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 24px 64px -16px rgba(0, 0, 0, 0.8);

  /* Layout */
  --container: 1160px;
  --nav-h: 64px;
  --section-y: clamp(4rem, 8vw, 6.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ----------------------------------------------------------------------------
   2. BASE
   ---------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* One quiet glow at the top of every page, tinted by the current accent */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 520px;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.ui-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------------------
   3. HEADER / NAV
   ---------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Programs dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 300px;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s, transform 0.16s var(--ease), visibility 0.16s;
}

/* Hover bridge so the menu does not close while crossing the gap */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  inset: -10px 0 auto;
  height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-drop-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-drop-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.nav-drop-icon svg {
  width: 20px;
  height: 20px;
}

.nav-drop-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.nav-drop-meta strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-drop-meta span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
}

.lang-btn {
  height: 26px;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 0.15s, background 0.15s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 34px;
  padding: 0 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #09090b;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.15s;
}

.nav-cta:hover {
  opacity: 0.88;
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
}

.mobile-menu-btn .ui-icon {
  width: 18px;
  height: 18px;
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-drawer-links a {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-drawer-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* ----------------------------------------------------------------------------
   4. BUTTONS, CHIPS, PILLS
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Primary: white on neutral pages, the app accent on product pages */
.btn-primary {
  background: var(--text);
  color: #09090b;
}

.btn-primary:hover {
  opacity: 0.88;
}

body[data-page="product"] .btn-primary {
  background: var(--accent);
  color: #09090b;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
  height: 34px;
  padding: 0 0.8rem;
  font-size: 0.82rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: middle;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

/* ----------------------------------------------------------------------------
   5. SECTIONS
   ---------------------------------------------------------------------------- */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}

main > .section:first-child {
  border-top: 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Scroll reveal (toggled by app.js) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Shared card base */
.app-card,
.pillar-card,
.feature-card,
.step-card,
.pkg-card,
.hub-card,
.specs-card,
.changelog-card,
.smartscreen-box,
.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ----------------------------------------------------------------------------
   6. HERO (home)
   ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3.5rem, 6vw, 5rem);
  overflow: hidden;
}

/* Fine grid behind the hero, faded at the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 30px;
  padding: 0 0.8rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.hero-title {
  margin: 0 0 1.2rem;
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero-highlight {
  display: block;
  color: var(--text-dim);
}

.hero-desc {
  max-width: 520px;
  margin: 0 0 2rem;
  font-size: 1.06rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  margin-top: 2.6rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.5rem 0 0;
}

.hero-stat + .hero-stat {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-stat span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Live preview dock */
.studio-dock {
  padding: 1.1rem;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-pop);
}

.dock-header {
  padding: 0.2rem 0.2rem 0.9rem;
}

.dock-header h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.dock-header p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.dock-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  margin-bottom: 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.dock-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.dock-tab:hover {
  color: var(--text);
}

.dock-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.dock-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tab-accent, var(--accent));
}

.dock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 0.2rem 0.1rem;
}

.dock-app-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.dock-app-meta strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------------------
   7. INTERACTIVE MOCKUPS (visuals.js)
   ---------------------------------------------------------------------------- */
.mockup-frame {
  border-radius: var(--radius-md);
  background: #0b0b0e;
  border: 1px solid var(--border);
  overflow: hidden;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mockup-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--success);
}

.mockup-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  50% {
    opacity: 0.3;
  }
}

/* Shared control look inside mockups */
.sw-pill,
.st-preset-btn,
.snw-fmt-btn,
.sw-step-btn,
.snw-play-btn {
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.sw-pill:hover,
.st-preset-btn:hover,
.snw-fmt-btn:hover,
.sw-step-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* SoundWheel */
.sw-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.1rem;
  align-items: center;
}

.sw-wheel-wrap {
  position: relative;
  width: 165px;
  height: 165px;
  margin-inline: auto;
}

.sw-wheel-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.sw-ring-bg {
  fill: rgba(255, 255, 255, 0.015);
  stroke: var(--border);
  stroke-width: 1;
}

.sw-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 9;
}

.sw-ring-progress {
  fill: none;
  stroke: #22d3ee;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.16s ease;
}

.sw-center-readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sw-channel-name {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.sw-percent {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sw-db {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #22d3ee;
}

.sw-controls-panel {
  min-width: 0;
}

.sw-channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.sw-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.55rem;
  font-size: 0.74rem;
}

.sw-pill strong {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.sw-pill.is-active {
  color: #cffafe;
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
}

.sw-slider-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.sw-step-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text);
}

.sw-range {
  flex: 1;
  min-width: 0;
  width: 100%;
  accent-color: #22d3ee;
  cursor: pointer;
}

.sw-hint {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* SoundTone */
.st-body {
  padding: 1rem;
}

.st-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.st-preset-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 500;
}

.st-preset-btn.is-active {
  color: #fef3c7;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.1);
}

.st-curve-box {
  height: 110px;
  margin-bottom: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 50% / 100% 50%,
    rgba(255, 255, 255, 0.01);
  overflow: hidden;
}

.st-curve-svg {
  width: 100%;
  height: 100%;
}

.st-sliders {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.st-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.st-db {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #fbbf24;
}

.st-band-range {
  width: 100%;
  accent-color: #f59e0b;
  cursor: pointer;
}

.st-freq {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* SnipWave */
.snw-body {
  padding: 1rem;
}

.snw-wave-stage {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 0.75rem;
  margin-bottom: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.snw-bar {
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  transition: background 0.12s, transform 0.12s;
}

.snw-bar.is-selected {
  background: #a855f7;
}

.snw-bar.is-playhead {
  background: #f472b6;
  transform: scaleY(1.1);
}

.snw-trim-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.snw-trim-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.snw-trim-label strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #e9d5ff;
}

.snw-trim-label input {
  width: 100%;
  accent-color: #a855f7;
  cursor: pointer;
}

.snw-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.snw-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f3e8ff;
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.12);
}

.snw-formats {
  display: inline-flex;
  gap: 0.3rem;
}

.snw-fmt-btn {
  padding: 0.32rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.snw-fmt-btn.is-active {
  color: #fbcfe8;
  border-color: rgba(236, 72, 153, 0.45);
  background: rgba(236, 72, 153, 0.1);
}

/* ----------------------------------------------------------------------------
   8. HOME — APP CARDS, PILLARS, RELEASE TABLE, FAQ
   ---------------------------------------------------------------------------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.other-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}

/* Thin accent line on top, per app */
.app-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--accent)), transparent);
  opacity: 0.7;
}

.app-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.app-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.app-card-icon svg {
  width: 26px;
  height: 26px;
}

.app-card-cat {
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-accent, var(--accent));
}

.app-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.app-card-desc {
  flex: 1;
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.app-card .badge-row {
  margin-bottom: 1.4rem;
}

.app-card-actions {
  display: flex;
  gap: 0.5rem;
}

.app-card-actions .btn-secondary {
  flex: 1;
}

.app-card > .btn {
  align-self: flex-start;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pillar-card {
  padding: 1.6rem 1.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pillar-card + .pillar-card {
  border-left: 1px solid var(--border);
}

.pillar-icon,
.feature-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
}

.pillar-icon .ui-icon,
.feature-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.pillar-card h3,
.feature-card h3,
.step-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.pillar-card p,
.feature-card p,
.step-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Release table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.release-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.release-table th {
  padding: 0.8rem 1.2rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.release-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.release-table tbody tr:last-child td {
  border-bottom: 0;
}

.release-table tbody tr {
  transition: background 0.15s;
}

.release-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-app-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-app-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.table-app-icon svg {
  width: 20px;
  height: 20px;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.faq-trigger:hover {
  color: var(--text);
}

.faq-trigger .ui-icon {
  color: var(--text-dim);
  transition: transform 0.2s var(--ease);
}

.faq-item.is-open .faq-trigger .ui-icon {
  transform: rotate(180deg);
}

.faq-panel {
  display: none;
  padding: 0 2.5rem 1.3rem 0;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* ----------------------------------------------------------------------------
   9. PRODUCT PAGE
   ---------------------------------------------------------------------------- */
.product-hero {
  position: relative;
  padding: 2.2rem 0 clamp(3.5rem, 6vw, 5rem);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb strong {
  font-weight: 500;
  color: var(--text-muted);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.product-title-row .eyebrow {
  margin-bottom: 0.25rem;
}

.product-hero-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}

.product-hero-icon svg {
  width: 34px;
  height: 34px;
}

.product-title {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.product-tagline {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

.product-long-desc {
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.product-hero .badge-row {
  margin-bottom: 1.4rem;
}

.product-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 1.6rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-meta-strip > span {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.2rem 0.75rem 0;
  margin-right: 1.2rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.product-meta-strip > span + span {
  padding-left: 1.2rem;
  border-left: 1px solid var(--border);
}

.product-meta-strip strong {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
}

.visual-showcase-card {
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-pop);
}

.visual-showcase-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.1rem 0.2rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.product-screenshot {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 1.5rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
}

/* Packages */
.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.pkg-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem;
}

.pkg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pkg-title {
  margin: 0;
  font-size: 1rem;
}

.pkg-badge {
  flex-shrink: 0;
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
}

.pkg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.hash-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.45rem 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
}

.hash-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.pkg-card > .btn-primary {
  margin-top: auto;
}

/* Specs + changelog */
.specs-changelog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.specs-card,
.changelog-card {
  padding: 1.6rem;
}

.specs-list {
  margin-top: 1rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row span {
  color: var(--text-dim);
}

.spec-row strong {
  font-weight: 500;
  text-align: right;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

.changelog-entry {
  position: relative;
  padding-left: 1.1rem;
  border-left: 1px solid var(--border-strong);
}

.changelog-entry::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.changelog-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}

.changelog-head strong {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
}

.changelog-head span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.changelog-entry ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.changelog-entry li + li {
  margin-top: 0.25rem;
}

/* ----------------------------------------------------------------------------
   10. DOWNLOADS HUB
   ---------------------------------------------------------------------------- */
.downloads-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 380px;
  min-width: 240px;
}

.search-box .ui-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 0.9rem 0 2.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-input:focus {
  border-color: var(--border-focus);
}

.filter-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
}

.filter-pill {
  height: 32px;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
}

.filter-pill:hover {
  color: var(--text);
}

.filter-pill.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hub-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hub-card {
  padding: 1.5rem;
}

.hub-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.3rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--border);
}

.hub-app-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hub-app-info h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
}

.hub-app-info p {
  margin: 0;
  font-size: 0.88rem;
}

.hub-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-card .pkg-card {
  background: var(--bg-elevated);
}

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 0.4rem;
}

.smartscreen-box {
  margin-top: 1.4rem;
  padding: 1.4rem;
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.03);
}

.smartscreen-box h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.smartscreen-box h3 .ui-icon {
  color: var(--warning);
}

.smartscreen-box p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.ps-cmd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.45rem 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
}

.ps-cmd-bar code {
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------------------
   11. MODAL & TOAST
   ---------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: min(540px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-pop);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s var(--ease);
}

.modal-backdrop.is-open .modal-dialog {
  transform: none;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.modal-kv {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
}

.modal-kv-row + .modal-kv-row {
  border-top: 1px solid var(--border);
}

.modal-kv-row span {
  color: var(--text-dim);
}

.modal-kv-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.dev-hint {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  font-size: 0.82rem;
}

.dev-hint summary {
  cursor: pointer;
  color: var(--text-muted);
}

.dev-hint p {
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: calc(100vw - 2.5rem);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-pop);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.toast .ui-icon {
  color: var(--success);
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------------------- */
.site-footer {
  margin-top: 0;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-desc {
  max-width: 340px;
  margin: 1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ----------------------------------------------------------------------------
   13. MINIGAMES (games.html)
   ---------------------------------------------------------------------------- */
.mg-section {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.mg-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mg-input {
  width: 100%;
  height: 42px;
  padding: 0 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.mg-input::placeholder {
  color: var(--text-dim);
}

.mg-input:focus {
  border-color: var(--border-focus);
}

.mg-input:disabled {
  opacity: 0.5;
}

.mg-entry {
  max-width: 620px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.mg-entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.mg-or {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.mg-join {
  display: flex;
  flex: 1;
  gap: 0.5rem;
  min-width: 220px;
}

.mg-code-input {
  max-width: 120px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-align: center;
  text-transform: uppercase;
}

.mg-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mg-error {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--danger);
}

.mg-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.mg-game-card {
  --game-accent: var(--accent);
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.mg-game-card:hover {
  border-color: var(--border-strong);
}

.mg-game-draw {
  --game-accent: #c084fc;
}

.mg-game-impostor {
  --game-accent: #f87171;
}

.mg-game-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--game-accent) 35%, transparent);
  background: color-mix(in srgb, var(--game-accent) 10%, transparent);
  color: var(--game-accent);
}

.mg-game-icon svg {
  width: 20px;
  height: 20px;
}

.mg-game-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.05rem;
}

.mg-game-card p {
  flex: 1;
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
}

.mg-game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.mg-min {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.mg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 1rem;
  align-items: start;
}

.mg-stage {
  min-height: 460px;
  padding: 1.4rem;
}

.mg-side {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  padding: 1.2rem;
}

.mg-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.mg-code-row strong {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.mg-side-title {
  margin: 1.3rem 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mg-score-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-score-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
}

.mg-score-list li.is-you {
  border-color: var(--border-focus);
}

.mg-pname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-pscore {
  font-family: var(--font-mono);
  font-weight: 600;
}

.mg-tag {
  margin-left: 0.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.12);
  font-size: 0.66rem;
  font-style: normal;
  color: var(--warning);
}

.mg-tag-you {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.mg-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.mg-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.mg-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mg-timer {
  font-family: var(--font-mono);
  color: var(--warning);
}

.mg-stage-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.mg-banner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem;
}

.mg-banner span {
  color: var(--text-muted);
}

.mg-banner.is-good {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.05);
}

.mg-banner.is-bad {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.05);
}

.mg-waiting {
  color: var(--text-muted);
}

/* Reflex */
.mg-reflex-pad {
  width: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-lg);
  color: #fff;
  user-select: none;
  touch-action: manipulation;
  transition: background 0.06s;
}

.mg-reflex-pad.is-wait {
  background: #991b1b;
}

.mg-reflex-pad.is-go {
  background: #15803d;
}

.mg-reflex-pad.is-early {
  background: #7c2d12;
}

.mg-reflex-pad.is-clicked,
.mg-reflex-pad.is-done {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  cursor: default;
}

.mg-reflex-big {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
}

.mg-reflex-sub {
  padding: 0 1rem;
  text-align: center;
  opacity: 0.8;
}

/* Draw & Guess */
.mg-choose {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.mg-draw-word {
  margin-bottom: 0.9rem;
  color: var(--text-muted);
}

.mg-mask {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.mg-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.mg-draw-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 1rem;
}

.mg-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 560;
  border-radius: var(--radius-md);
  background: #fff;
  touch-action: none;
}

.mg-canvas.is-drawer {
  cursor: crosshair;
}

.mg-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.mg-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.mg-swatch.is-eraser {
  border-color: var(--border-strong);
}

.mg-swatch.is-active {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.mg-tool-sep {
  width: 1px;
  height: 22px;
  margin: 0 0.3rem;
  background: var(--border-strong);
}

.mg-size {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
}

.mg-size i {
  display: block;
  border-radius: 50%;
  background: var(--text);
}

.mg-size.is-active {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.05);
}

.mg-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 440px;
}

.mg-chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 240px;
  margin: 0 0 0.6rem;
  padding: 0.7rem;
  overflow-y: auto;
  list-style: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-size: 0.86rem;
}

.mg-chat-log .is-correct {
  font-weight: 600;
  color: var(--success);
}

.mg-chat-log .is-sys {
  font-style: italic;
  color: var(--text-dim);
}

/* Impostor */
.mg-word-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}

.mg-word-card span {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mg-word-card small {
  color: var(--text-dim);
}

.mg-word-card.is-impostor {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.05);
}

.mg-word-card.is-impostor span {
  color: var(--danger);
}

.mg-inline-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.mg-inline-row {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
}

.mg-vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}

.mg-vote-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.mg-vote-results li {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.86rem;
}

.mg-clues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.mg-clue-round ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-clue-round li {
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.mg-clue-round li b {
  margin-right: 0.35rem;
  font-weight: 600;
  color: var(--text);
}

/* Game accents */
.mg-game-typing {
  --game-accent: #60a5fa;
}

.mg-game-estimate {
  --game-accent: #4ade80;
}

.mg-game-whosaid {
  --game-accent: #f472b6;
}

.mg-game-chain {
  --game-accent: #fbbf24;
}

/* Shared question + result table */
.mg-question {
  margin-bottom: 1.3rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.mg-answer-reveal {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--success);
}

.mg-good {
  color: var(--success);
  font-weight: 600;
}

.mg-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.mg-table th {
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.mg-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.mg-table tr:last-child td {
  border-bottom: 0;
}

.mg-table td:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
}

.mg-table tr.is-you td {
  background: rgba(255, 255, 255, 0.03);
}

/* Speed typing */
.mg-typing-text {
  margin-bottom: 1rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-dim);
  user-select: none;
  -webkit-user-select: none;
}

.mg-typing-text .is-ok {
  color: var(--text);
}

.mg-typing-text .is-bad {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.12);
  border-radius: 3px;
}

.mg-typing-text .is-next {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.mg-typing-text.is-done {
  color: var(--text-muted);
}

.mg-typing-input {
  height: 48px;
  font-family: var(--font-mono);
  font-size: 1rem;
}

/* Word chain */
.mg-chain-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.mg-chain-letter {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.06);
}

.mg-chain-letter small {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mg-chain-letter span {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--warning);
}

.mg-chain-turn strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.mg-chain-players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-chain-players li {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mg-chain-players li.is-turn {
  border-color: rgba(251, 191, 36, 0.6);
  color: var(--warning);
}

.mg-chain-players li.is-out {
  color: var(--text-dim);
  text-decoration: line-through;
}

.mg-chain-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.mg-chain-words li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.mg-chain-words li:first-child {
  border-color: var(--border-focus);
}

.mg-chain-words b {
  font-weight: 600;
}

.mg-chain-words span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Who said it */
.mg-ws-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.mg-ws-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mg-ws-card p {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.mg-ws-card.is-mine {
  border-style: dashed;
}

.mg-ws-card.is-mine .mg-tag {
  align-self: flex-start;
  margin: 0;
}

.mg-ws-card.is-revealed strong {
  font-size: 0.9rem;
  color: #f472b6;
}

.mg-ws-card.is-revealed small {
  color: var(--text-dim);
}

.mg-select {
  height: 38px;
  padding: 0 0.7rem;
  cursor: pointer;
}

.mg-game-trivia {
  --game-accent: #38bdf8;
}

.mg-game-funny {
  --game-accent: #fb923c;
}

.mg-game-telephone {
  --game-accent: #a78bfa;
}

/* Trivia */
.mg-trivia-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.mg-trivia-opt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.mg-trivia-opt:not(:disabled):hover {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.05);
}

.mg-trivia-opt:disabled {
  cursor: default;
}

.mg-trivia-letter {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mg-trivia-text {
  flex: 1;
  font-size: 0.98rem;
  font-weight: 500;
}

.mg-trivia-who {
  width: 100%;
  padding-left: calc(28px + 0.75rem);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.mg-trivia-opt.is-picked {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.mg-trivia-opt.is-correct {
  border-color: rgba(74, 222, 128, 0.6);
  background: rgba(74, 222, 128, 0.08);
}

.mg-trivia-opt.is-correct .mg-trivia-letter {
  border-color: var(--success);
  color: var(--success);
}

.mg-trivia-opt.is-wrong {
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(248, 113, 113, 0.06);
}

/* Funny answers */
.mg-blank {
  display: inline-block;
  min-width: 4ch;
  color: #fb923c;
  letter-spacing: 0.05em;
}

.mg-funny-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
}

.mg-funny-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 96px;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.mg-funny-card span {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
}

.mg-funny-card small {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.mg-funny-card strong {
  font-size: 0.82rem;
  color: #fb923c;
}

button.mg-funny-card:not(:disabled):hover {
  border-color: #fb923c;
  transform: translateY(-1px);
}

button.mg-funny-card:disabled {
  cursor: default;
}

.mg-funny-card.is-mine {
  border-style: dashed;
  opacity: 0.7;
}

.mg-funny-card.is-voted {
  border-color: #fb923c;
  background: rgba(251, 146, 60, 0.08);
}

.mg-funny-card.is-winner {
  border-color: rgba(251, 146, 60, 0.7);
  background: rgba(251, 146, 60, 0.07);
}

/* Telephone */
.mg-tel-prompt {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.9rem;
}

.mg-tel-prompt small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mg-tel-prompt strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mg-tel-send {
  margin-left: auto;
}

.mg-tel-prev {
  max-width: 560px;
  margin-bottom: 1rem;
}

.mg-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 560;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}

.mg-albums {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.mg-album {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.mg-album h4 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.mg-album ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-album li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mg-album li.is-text p {
  flex: 1;
  margin: 0;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 500;
  color: var(--text);
}

.mg-album-by {
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* ----------------------------------------------------------------------------
   14. RESPONSIVE
   ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid,
  .product-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-dock,
  .visual-showcase-card {
    max-width: 620px;
  }

  .apps-grid,
  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card + .pillar-card {
    border-left: 0;
  }

  .pillar-card:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .pillar-card:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .mg-layout,
  .mg-draw-area {
    grid-template-columns: minmax(0, 1fr);
  }

  .mg-side {
    position: static;
  }

  .mg-chat-log {
    min-height: 160px;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .specs-changelog-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14.5px;
  }

  .apps-grid,
  .features-grid,
  .steps-grid,
  .pillars-grid,
  .mg-game-grid,
  .mg-trivia-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card:nth-child(even) {
    border-left: 0;
  }

  .pillar-card + .pillar-card {
    border-top: 1px solid var(--border);
  }

  .sw-body {
    grid-template-columns: 1fr;
  }

  .hero-stat strong {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-sub {
    display: none;
  }

  .search-box {
    max-width: none;
  }

  .hash-box,
  .ps-cmd-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .product-meta-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-meta-strip > span,
  .product-meta-strip > span + span {
    margin: 0;
    padding: 0.7rem 0;
    border-left: 0;
  }

  .hub-card,
  .app-card,
  .feature-card,
  .step-card,
  .specs-card,
  .changelog-card {
    padding: 1.15rem;
  }

  .hub-card .pkg-card {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
