/* ==========================================================================
   FullPixel Alcheverse — Light Swiss Neo-Pixel Flat Design System
   Directly derived from the official FullPixel Alcheverse pixel logo:
   Warm Lab Paper (#F5F5F0) · Pure Pixel Ink (#111111) · Alchemy Red (#E63B2E)
   ========================================================================== */

@font-face {
  font-family: 'FusionPixel10';
  src: url('./assets/fonts/fusion-pixel-10px-proportional-zh_hans.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light Logo-Native Palette */
  --bg-paper: #f5f5f0;
  --bg-paper-alt: #ecebe2;
  --bg-dot: #dddcce;
  --bg-surface: #ffffff;
  --ink: #111111;
  --ink-soft: #32322d;
  --ink-muted: #5c5b53;
  --border-soft: #c9c8bc;

  /* Signature Brand Accents */
  --brand-red: #d43226; /* WCAG AA >= 4.7:1 with #FFFFFF */
  --brand-red-vivid: #e63b2e;
  --brand-yellow: #f5c842;
  --brand-teal: #179b82;
  --brand-blue: #1a7ec2;

  /* Flat Color-Block Frame Accents (for Lululand & Pillars) */
  --block-coral: #e35d73;
  --block-emerald: #18a185;
  --block-azure: #1d84c9;
  --block-plum: #6d5285;
  --block-gold: #e5be57;
  --block-slate: #62708f;

  /* Typography */
  --font-pixel: 'Silkscreen', 'JetBrains Mono', monospace;
  --font-pixel-cjk: 'FusionPixel10', 'Silkscreen', monospace;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1120px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-paper);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg-paper);
  background-image: radial-gradient(var(--bg-dot) 1.25px, transparent 1.25px);
  background-size: 20px 20px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.pixelated {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

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

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--brand-red-vivid);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Official Signature Red + Black Dual Pixel Rule */
.brand-ribbon {
  height: 6px;
  background: linear-gradient(
    to bottom,
    var(--brand-red-vivid) 0,
    var(--brand-red-vivid) 4px,
    var(--ink) 4px,
    var(--ink) 6px
  );
}

.brand-ribbon-bottom {
  height: 6px;
  background: linear-gradient(
    to bottom,
    var(--ink) 0,
    var(--ink) 2px,
    var(--brand-red-vivid) 2px,
    var(--brand-red-vivid) 6px
  );
}

/* ==========================================================================
   Flat Pixel Buttons
   ========================================================================== */

.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border: 2px solid var(--ink);
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 70ms steps(2), box-shadow 70ms steps(2), background-color 70ms linear;
  white-space: nowrap;
}

.px-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.px-btn:active,
.px-btn.is-pressed {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.px-btn-red {
  background: var(--brand-red);
  color: #ffffff;
}

.px-btn-red:hover {
  background: #ba251a;
}

.px-btn-yellow {
  background: var(--brand-yellow);
  color: var(--ink);
}

.px-btn-yellow:hover {
  background: #ffd65c;
}

.px-btn-white {
  background: var(--bg-surface);
  color: var(--ink);
}

.px-btn-white:hover {
  background: #ecebe2;
}

.px-btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.px-btn-dark:hover {
  background: var(--brand-red);
}

.px-btn-sm {
  min-height: 36px;
  padding: 6px 13px;
  font-size: 11px;
}

/* ==========================================================================
   Minimal Light Top Bar
   ========================================================================== */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 240, 0.94);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(4px);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.page-switcher {
  display: inline-flex;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
}

.page-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  transition: background-color 80ms linear, color 80ms linear;
}

.page-tab + .page-tab {
  border-left: 2px solid var(--ink);
}

.page-tab:hover {
  background: var(--bg-paper-alt);
  color: var(--ink);
}

.page-tab.is-active {
  background: var(--ink);
  color: #ffffff;
}

.top-right-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-pill {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  color: var(--ink);
  transition: background-color 80ms linear, color 80ms linear;
}

.icon-pill:hover {
  background: var(--brand-red);
  color: #ffffff;
}

.icon-pill.is-muted {
  color: var(--ink-muted);
  border-color: var(--border-soft);
}

.icon-pill.is-muted .sfx-wave {
  opacity: 0.16;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
}

.lang-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.lang-btn + .lang-btn {
  border-left: 2px solid var(--ink);
}

.lang-btn.is-active {
  background: var(--brand-red);
  color: #ffffff;
}

/* ==========================================================================
   SCREEN 1: Poster-Scale High-Res Pixel Logo Hero
   ========================================================================== */

.hero-poster-screen {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 40px 0 28px;
}

.hero-poster-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  position: relative;
}

.hero-logo-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.hero-logo-giant {
  width: min(984px, 92vw);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero-slogan-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.slogan-main {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(20px, 2.8vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.slogan-sub {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(13px, 1.5vw, 18px);
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: var(--brand-red);
}

.slogan-note {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.scroll-arrow-minimal {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--ink);
  transition: transform 80ms steps(2), color 80ms linear;
}

.scroll-arrow-minimal:hover {
  transform: translateY(3px);
  color: var(--brand-red);
}

/* ==========================================================================
   SCREEN 2: Open Seamless Walking Stage + Single-Row Pixel Control Dock
   - Full-bleed open composition directly over site dot-paper background.
   - NO frame box, NO borders, NO sky box, seamless top & bottom transitions.
   ========================================================================== */

.walk-stage-screen {
  width: 100%;
  padding: 20px 0 56px;
  background: transparent;
}

.open-stage-canvas {
  width: 100%;
  height: clamp(340px, 50vh, 460px);
  display: block;
  cursor: crosshair;
  user-select: none;
  touch-action: pan-y;
}

/* Single-Row Ultra-Minimal Pixel Dock */
.stage-single-bar {
  margin-top: 10px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-pixel);
}

.role-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.role-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 60ms steps(2), box-shadow 60ms steps(2), background-color 60ms linear;
}

.role-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: #fff7dc;
}

.role-btn.is-active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 2px 2px 0 var(--brand-red-vivid);
}

.dock-divider {
  width: 2px;
  height: 20px;
  background: var(--border-soft);
  flex-shrink: 0;
}

.key-hints-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hint-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 8px;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--ink-soft);
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background-color 60ms linear, border-color 60ms linear;
}

.hint-action-btn:hover {
  background: var(--bg-surface);
  border-color: var(--ink);
  color: var(--ink);
}

.hint-action-btn:active {
  background: var(--brand-yellow);
  border-color: var(--ink);
  color: var(--ink);
}

.px-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 6px;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
}

.hint-action-btn-red .px-kbd {
  background: var(--brand-red);
  color: #ffffff;
}

/* ==========================================================================
   SCREEN 3 & 4: 1:1 Game Transmutation Wheel HUD + Multi-Hero Running Parade
   ========================================================================== */

.open-preview-section {
  padding: 52px 0 44px;
}

.open-preview-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.preview-micro-label {
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.preview-micro-hint {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ---- 1:1 Replica of TransmutationWheelHud.vue (Integer-Scaled 4x Desktop / 3x Mobile) ---- */
.transmutation-wheel-hud {
  --sync-pulse: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 10px;
  user-select: none;
  touch-action: pan-y;
  outline: none;
}

.transmutation-wheel-hud:focus-visible {
  outline: 2px dashed var(--brand-red);
  outline-offset: 6px;
}

.twh-banner-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.twh-charge-pips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 20px;
}

.twh-charge-pip-svg {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.twh-charge-pip-svg.is-lit {
  filter: brightness(calc(1 + var(--sync-pulse, 0) * 0.22));
}

.twh-scroll-banner {
  position: relative;
  width: 368px;
  height: 88px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.twh-scroll-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  transition: filter 140ms ease-out;
}

.twh-scroll-banner.is-ready .twh-scroll-bg {
  filter: brightness(1.04) contrast(1.04);
}

.twh-scroll-banner.is-cd .twh-scroll-bg {
  filter: brightness(0.68) saturate(0.5);
}

.twh-scroll-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-pixel-cjk);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #23170e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-font-smoothing: none;
  transition: opacity 140ms ease-out;
}

.twh-scroll-banner.is-cd .twh-scroll-name {
  opacity: 0.72;
}

/* Odd-grid integer-scaled wheel stage (420x420 @4x desktop, 315x315 @3x mobile) */
.twh-stage {
  position: relative;
  display: block;
  width: 420px;
  height: 420px;
  margin-top: 38px;
  cursor: ns-resize;
}

.transmutation-wheel-hud.is-igniting .twh-stage {
  animation: twh-ignition-flash 220ms ease-out;
}

@keyframes twh-ignition-flash {
  0% {
    filter: brightness(1.24);
  }
  100% {
    filter: brightness(1);
  }
}

.twh-array-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.twh-outer-layer,
.twh-inner-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Outer Ring Skill Medallions (17x17 pixel circles: 4x orbit / 6x selected hero) */
.twh-skill-node {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
  transition: opacity 160ms ease-out, transform 120ms ease-out;
}

.twh-skill-node.is-selected {
  z-index: 6;
  animation: twh-selected-pop 170ms cubic-bezier(0.22, 1.18, 0.36, 1);
}

@keyframes twh-selected-pop {
  0% {
    transform: scale(0.82);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.twh-crown-reticle-svg {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(10, 12, 18, 0.92));
}

.twh-node-svg {
  display: block;
  flex-shrink: 0;
}

.twh-skill-node.is-armed:not(.is-selected) {
  opacity: 0.92;
  filter:
    drop-shadow(
      0 0 calc(2px + var(--sync-pulse, 0) * 3px)
      rgba(255, 224, 122, calc(0.26 + var(--sync-pulse, 0) * 0.42))
    )
    brightness(calc(0.98 + var(--sync-pulse, 0) * 0.12));
}

.twh-skill-node.is-selected-ready {
  opacity: 1;
  z-index: 7;
  filter:
    drop-shadow(
      0 0 calc(4px + var(--sync-pulse, 0) * 3px)
      rgba(255, 246, 192, calc(0.82 + var(--sync-pulse, 0) * 0.18))
    )
    drop-shadow(
      0 0 calc(8px + var(--sync-pulse, 0) * 6px)
      rgba(255, 204, 72, calc(0.48 + var(--sync-pulse, 0) * 0.38))
    )
    brightness(calc(1.08 + var(--sync-pulse, 0) * 0.14));
}

.twh-skill-node:hover {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 240, 168, 0.95)) brightness(1.16);
}

.twh-skill-node:active {
  transform: scale(0.95);
}

.twh-skill-node.is-cooling:not(:hover) {
  opacity: 0.78;
  filter: saturate(0.6);
}

.twh-skill-node.is-cooling.is-selected:not(:hover) {
  opacity: 0.96;
  filter: drop-shadow(0 0 6px rgba(78, 224, 255, 0.65)) saturate(0.86);
}

/* Inner Ring Element Vessels (21x21 odd-grid pixel circles) */
.twh-el-vessel {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 140ms ease-out;
}

.twh-el-frame-svg {
  position: absolute;
  inset: 0;
  display: block;
}

.twh-el-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.twh-el-icon {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.twh-el-name {
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: #f6eedc;
  text-shadow: 0 1px 0 #090b12;
  white-space: nowrap;
}

/* Center Core Cast Button (21x21 odd-grid pixel circle aligned on canvas center (52, 52)) */
.twh-core-node {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 160ms ease-out, transform 120ms ease-out;
}

.twh-core-node.is-cd {
  cursor: not-allowed;
}

.twh-core-frame-svg {
  position: absolute;
  inset: 0;
  display: block;
}

.twh-core-node.is-ready {
  opacity: 1;
  filter:
    drop-shadow(
      0 0 calc(2px + var(--sync-pulse, 0) * 4px)
      rgba(255, 236, 158, calc(0.5 + var(--sync-pulse, 0) * 0.42))
    )
    brightness(calc(1.03 + var(--sync-pulse, 0) * 0.14));
}

.twh-core-node.is-ready:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 6px rgba(255, 244, 186, 0.92)) brightness(1.16);
}

.twh-core-node.is-ready:active {
  transform: scale(0.95);
}

.twh-core-node.is-deny {
  animation: twh-deny-shake 180ms ease-in-out;
}

@keyframes twh-deny-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

.twh-core-cd-timer {
  position: relative;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #a9f2ff;
  text-shadow: 0 2px 0 #08121a;
}

.open-parade-section {
  padding: 56px 0 96px;
}

.parade-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.parade-open-canvas {
  width: 100%;
  height: 176px;
  display: block;
  cursor: pointer;
  user-select: none;
}

/* ==========================================================================
   SCREEN 5: Oversized Editorial Gameplay & PXS Protocol Showcase
   (01 BREAK EVERY PIXEL · 02 118 PERIODIC TABLE + GEMINI · 03 PXS PROTOCOL)
   ========================================================================== */

.gameplay-editorial-wrap {
  padding: 64px 0 132px;
  display: flex;
  flex-direction: column;
  gap: 164px;
}

.gameplay-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 52px;
  align-items: center;
}

.gameplay-band-full {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gameplay-copy-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gameplay-kicker {
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.mega-en-title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.mega-en-title-wide {
  font-size: clamp(36px, 4.8vw, 66px);
}

.mega-hl-red {
  color: var(--brand-red);
}

.gameplay-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 54ch;
}

.gameplay-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.gameplay-px-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}

/* ---- 01 Open Pixel Diorama (Frameless Native PXS Buildings & Destructibles) ---- */
.px-diorama-open {
  position: relative;
  width: 100%;
  padding: 12px 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.diorama-back-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  width: 100%;
  z-index: 1;
}

.diorama-bldg {
  display: block;
  height: auto;
  flex-shrink: 1;
  min-width: 0;
}

.diorama-windmill {
  width: min(208px, 37%);
}

.diorama-shop {
  width: min(192px, 34%);
}

.diorama-tree {
  width: min(168px, 29%);
}

.diorama-front-row {
  position: relative;
  z-index: 2;
  margin-top: -58px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  padding: 0 8px 2px;
}

.diorama-prop {
  display: block;
  height: 64px;
  width: auto;
  filter: drop-shadow(0 3px 0 rgba(17, 17, 17, 0.24));
  transition: transform 80ms steps(2);
}

.diorama-prop:hover {
  transform: translateY(-4px);
}

.diorama-prop-lg {
  height: 82px;
}

.diorama-prop-wide {
  height: 76px;
}

.diorama-ground-line {
  width: 100%;
  height: 3px;
  background: var(--ink);
}

/* ---- 02 Periodic Table (118 Elements) + Built with Gemini ---- */
.periodic-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.periodic-title-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gemini-align-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.gemini-badge-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.gemini-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gemini-logo-img {
  display: block;
  height: 36px;
  width: auto;
  image-rendering: auto;
}

.gemini-badge-main {
  font-family: var(--font-pixel);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  line-height: 1;
}

.gemini-badge-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a73e8;
  line-height: 1.15;
}

.pt-mobile-inspector {
  display: none;
}

.pt-scroll-shell {
  width: 100%;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

.periodic-table-grid {
  display: grid;
  grid-template-columns: repeat(18, minmax(52px, 1fr));
  grid-template-rows: repeat(7, 50px) 12px repeat(2, 50px);
  gap: 3px;
  min-width: 980px;
  position: relative;
}

.pt-cell {
  position: relative;
  padding: 3px 4px;
  border: 1.5px solid var(--ink);
  background: var(--pt-bg, #ffffff);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: transform 60ms steps(2), box-shadow 60ms steps(2), background-color 60ms linear;
}

.pt-cell:hover,
.pt-cell:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 4;
  outline: none;
}

.pt-cell.is-game-el {
  border-width: 2px;
}

.pt-cell.is-game-el::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  background: var(--brand-red);
}

.pt-cell.is-active {
  background: var(--ink);
  color: var(--brand-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--brand-red-vivid);
  z-index: 5;
}

.pt-cell.is-active .pt-num {
  color: #d8dee9;
}

.pt-num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-soft);
}

.pt-sym {
  width: 100%;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2px;
}

.pt-series-marker {
  border: 1.5px dashed var(--border-soft);
  background: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-muted);
  user-select: none;
}

/* Museum Pocket Inspector nested inside cols 3..12, rows 1..3 */
.pt-pocket-inspector {
  grid-column: 3 / 13;
  grid-row: 1 / 4;
  margin: 0 8px 6px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.pt-ins-tile {
  width: 92px;
  height: 92px;
  padding: 8px;
  border: 2px solid var(--ink);
  background: var(--pt-bg, #ffdf78);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pt-ins-z {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.pt-ins-sym {
  font-family: var(--font-pixel);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  text-align: center;
}

.pt-ins-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pt-ins-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pt-ins-icon {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.pt-ins-name {
  font-family: var(--font-pixel-cjk);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  -webkit-font-smoothing: none;
}

.pt-ins-cat {
  padding: 2px 8px;
  background: var(--ink);
  color: var(--brand-yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pt-ins-role {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pt-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pt-mobile-swipe-hint {
  display: none;
}

/* ---- 03 PXS Protocol Concise Open Spec Band ---- */
.pxs-brief-band {
  gap: 36px;
}

.pxs-brief-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: end;
}

.pxs-brief-lead {
  max-width: 58ch;
}

.pxs-pillars-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pxs-pillar-card {
  padding: 24px 22px;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pxs-pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  background: var(--brand-red);
  border: 2px solid var(--ink);
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.pxs-pillar-num-gold {
  background: var(--brand-yellow);
  color: var(--ink);
}

.pxs-pillar-num-ink {
  background: var(--ink);
  color: var(--brand-yellow);
}

.pxs-spec-title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.pxs-spec-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.minimal-teaser-strip {
  padding: 44px 0 56px;
  border-top: 2px solid var(--ink);
}

.minimal-teaser-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Unified Portfolio Page Extras */
.portfolio-top-sub {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.portfolio-firsts-spacer {
  margin-top: 24px;
}

.portfolio-grid-spacer {
  margin-top: 36px;
}

.portfolio-team-head {
  margin-top: 56px;
}

.other-works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.other-work-card {
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  border-top: 5px solid var(--work-accent, var(--brand-red));
  box-shadow: 4px 4px 0 var(--ink);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.other-work-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.other-work-year {
  color: var(--work-accent, var(--brand-red));
}

.other-work-badge {
  padding: 2px 7px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 10px;
}

.other-work-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.other-work-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  flex: 1;
}

.other-work-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}

.other-work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-tag {
  padding: 2px 7px;
  background: var(--bg-paper);
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   SCREEN 3+: Clean Light Story, Core Rules & Lululand Archive Teaser
   ========================================================================== */

.section-band {
  padding: 68px 0;
  border-bottom: 2px solid var(--ink);
}

.section-band-alt {
  background-color: var(--bg-paper-alt);
  background-image: radial-gradient(#d3d2c5 1.25px, transparent 1.25px);
  background-size: 20px 20px;
}

.section-header-center {
  text-align: center;
  margin-bottom: 36px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.section-heading {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.25;
}

html[lang='en'] .section-heading {
  font-family: var(--font-pixel);
  font-size: clamp(20px, 2.4vw, 28px);
}

.section-desc {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: 14.5px;
}

.story-copy-block {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
  display: grid;
  gap: 12px;
}

.pixel-lead {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--ink);
}

.pixel-lead-muted {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* 4 Clean Flat Light Rule Cards */
.pillars-flat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pillar-flat-card {
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  border-top: 6px solid var(--pillar-accent, var(--brand-red));
  box-shadow: 4px 4px 0 var(--ink);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-flat-num {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--pillar-accent, var(--brand-red));
}

.pillar-flat-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

.pillar-flat-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* Lululand Teaser Banner */
.lululand-banner {
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  border-left: 8px solid var(--brand-red-vivid);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lululand-banner-copy {
  max-width: 640px;
}

.lululand-banner-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.lululand-banner-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.lululand-banner-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ==========================================================================
   LULULAND ARCHIVE PAGE — LIGHT PIXEL THEME
   ========================================================================== */

.lulu-top-hero {
  position: relative;
  padding: 46px 0 42px;
  text-align: center;
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(
    to bottom,
    #e4eaf4 0%,
    #e4eaf4 46%,
    #eef1f5 46%,
    #eef1f5 78%,
    #f5f5f0 78%,
    #f5f5f0 100%
  );
  overflow: hidden;
}

.lulu-mountain-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.lulu-mountain-bg svg {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: max(100%, 1440px);
  height: 100%;
}

.lulu-hero-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lulu-wordmark {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  color: var(--ink);
}

.lulu-wordmark span {
  color: var(--brand-red-vivid);
}

.lulu-years {
  display: inline-block;
  padding: 4px 12px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
}

.lulu-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 28px;
}

.lulu-story-text {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.lulu-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lulu-metric-box {
  background: var(--bg-paper);
  border: 2px solid var(--ink);
  padding: 12px;
}

.lulu-metric-num {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--brand-red);
}

.lulu-metric-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 3px;
}

.lulu-hero-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lulu-img-frame {
  position: relative;
  background: #111111;
  border: 2px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

.lulu-img-caption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  background: rgba(17, 17, 17, 0.88);
  border: 1px solid #ffffff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brand-yellow);
}

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

.first-card {
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  border-top: 5px solid var(--brand-red-vivid);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 18px;
}

.first-badge {
  font-family: var(--font-pixel);
  font-size: 10.5px;
  color: var(--brand-red);
  margin-bottom: 8px;
}

.first-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.lulu-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.lulu-project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.lulu-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--card-bg, var(--block-coral));
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 8px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}

.lulu-project-card:hover .lulu-thumb-wrap {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.lulu-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.lulu-tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 2px 7px;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-yellow);
}

.lulu-gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 2px 6px;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
}

.card-pixel-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--ink);
}

html[lang='en'] .card-pixel-title {
  font-family: var(--font-pixel);
  font-size: 13.5px;
}

.card-action-btn {
  margin-bottom: 10px;
}

.card-pixel-bio {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.partner-tile {
  padding: 12px 10px;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.partner-tile:hover {
  background: var(--brand-yellow);
}

.team-grid {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 22px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.team-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: var(--bg-paper);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 4px;
}

.team-name {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
}

.team-bio {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ==========================================================================
   Gallery Modal Lightbox
   ========================================================================== */

.px-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.px-modal-backdrop[hidden] {
  display: none;
}

.px-modal {
  width: min(860px, 100%);
  max-height: 90vh;
  background: var(--bg-surface);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--brand-red-vivid);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.px-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: #ffffff;
}

.px-modal-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--brand-yellow);
}

.px-modal-close {
  width: 34px;
  height: 34px;
  background: var(--brand-red);
  color: #ffffff;
  border: 2px solid #ffffff;
  font-weight: 700;
}

.px-modal-body {
  padding: 18px;
  overflow-y: auto;
  display: grid;
  gap: 14px;
}

.modal-gallery-stage {
  aspect-ratio: 16 / 9;
  background: #111111;
  border: 2px solid var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.modal-thumb-btn {
  width: 72px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--border-soft);
  background: #111111;
  overflow: hidden;
}

.modal-thumb-btn.is-active {
  border-color: var(--brand-red-vivid);
  box-shadow: 2px 2px 0 var(--ink);
}

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

.modal-gallery-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Minimal Light Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-surface);
  padding: 28px 0 32px;
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.footer-links a:hover {
  color: var(--brand-red);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
  .stage-single-bar {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .dock-divider {
    display: none;
  }

  .pillars-flat-grid,
  .firsts-grid,
  .lulu-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lulu-hero-panel,
  .team-grid,
  .gameplay-band,
  .periodic-head-grid,
  .pxs-brief-head,
  .pxs-pillars-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .gameplay-editorial-wrap {
    padding: 48px 0 96px;
    gap: 108px;
  }

  .pt-mobile-inspector {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
  }

  .pt-mobile-inspector .pt-ins-tile {
    width: 76px;
    height: 76px;
  }

  .pt-mobile-inspector .pt-ins-sym {
    font-size: 24px;
  }

  .pt-pocket-inspector {
    display: none;
  }

  .pt-mobile-swipe-hint {
    display: inline;
  }

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

  .scatter-motif {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 12px;
  }

  .top-bar-inner {
    gap: 8px;
    min-height: 54px;
  }

  .page-tab {
    padding: 5px 8px;
    font-size: 10px;
    min-height: 32px;
  }

  .top-right-controls {
    gap: 6px;
  }

  .icon-pill {
    width: 32px;
    height: 32px;
  }

  .lang-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    font-size: 11px;
  }

  .hero-poster-screen {
    min-height: auto;
    padding: 36px 0 32px;
  }

  .walk-stage-screen {
    padding: 12px 0 36px;
  }

  .open-stage-canvas {
    height: 290px;
  }

  .role-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .key-hints-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pillars-flat-grid,
  .firsts-grid,
  .lulu-projects-grid,
  .lulu-metrics-row,
  .other-works-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .twh-charge-pips {
    gap: 6px;
    height: 15px;
  }

  .twh-charge-pip-svg {
    width: 15px;
    height: 15px;
  }

  .twh-scroll-banner {
    width: 276px;
    height: 66px;
    padding: 0 28px;
  }

  .twh-scroll-name {
    font-size: 20px;
  }

  .twh-stage {
    width: 315px;
    height: 315px;
    margin-top: 28px;
  }

  .twh-el-name {
    font-size: 10px;
  }

  .twh-core-cd-timer {
    font-size: 13px;
  }

  .parade-open-canvas {
    height: 148px;
  }

  .diorama-front-row {
    margin-top: -36px;
    gap: 8px;
  }

  .diorama-prop {
    height: 44px;
  }

  .diorama-prop-lg {
    height: 54px;
  }

  .diorama-prop-wide {
    height: 50px;
  }

  .gemini-logo-img {
    height: 28px;
  }

  .gemini-badge-main {
    font-size: 11px;
  }

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

  .team-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .lululand-banner {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
