/* ==========================================================================
   Glade Atlas — 《Enchanted UbiArt Storybook · 浮空童话水彩画卷》
   Palette: Sky Azure (#38BDF8) -> Morning Gold (#FDE68A) -> Warm Cloud (#FAF6EE)
            Royal Fairy Violet (#7C3AED) · Vibrant Amber (#F59E0B) · Deep Indigo Ink (#1E1B4B)
   ZERO 1px/2px dark boxy rectangles · ZERO gray-green mud · ZERO dark SaaS walls!
   ========================================================================== */

:root {
  --cloud-bg: #FAF6EE;
  --sky-mist: #EEF7FD;
  --sky-azure: #38BDF8;
  --sky-deep: #0284C7;
  --sun-gold: #FDE68A;
  --amber: #F59E0B;
  --amber-deep: #D97706;
  --violet: #7C3AED;
  --violet-soft: #EDE9FE;
  --emerald: #16A34A;
  --indigo-ink: #1E1B4B;
  --slate-body: #3B3960;
  --slate-muted: #64618A;
  --glass-white: rgba(255, 253, 248, 0.84);
  --glass-strong: rgba(255, 253, 248, 0.94);
  --shadow-float: 0 20px 48px rgba(30, 27, 75, 0.11), 0 4px 14px rgba(56, 189, 248, 0.08);
  --shadow-soft: 0 10px 28px rgba(30, 27, 75, 0.07);
  --font-display: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--cloud-bg);
  color: var(--indigo-ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cloud-bg);
  color: var(--indigo-ink);
  font-family: var(--font-ui);
  font-size: 15.5px;
  line-height: 1.66;
  overflow-x: clip;
  position: relative;
}

/* Golden Lums Firefly Ambient Canvas */
#glade-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 45;
  opacity: 0.72;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo-ink);
  color: var(--sun-gold);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 999px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--amber-deep); text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 0;
  color: var(--indigo-ink);
}
h1 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); font-weight: 700; margin-bottom: 0.45rem; }
h2 { font-size: clamp(1.42rem, 2.3vw, 1.95rem); font-weight: 700; margin-bottom: 0.55rem; }
h3 { font-size: clamp(1.06rem, 1.45vw, 1.28rem); font-weight: 600; margin-bottom: 0.4rem; }
p { margin-top: 0; margin-bottom: 0.85rem; color: var(--slate-body); }

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(124, 58, 237, 0.09);
  color: var(--violet);
  padding: 2px 7px;
  border-radius: 8px;
}

.wrap { width: min(1320px, calc(100% - 36px)); margin-inline: auto; }
.narrow-wrap { max-width: 860px; }

/* ==========================================================================
   FLOATING FROSTED MORNING-SKY MASTHEAD (Zero Dark Borders!)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(30, 27, 75, 0.06);
}
.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--indigo-ink);
  flex-shrink: 0;
}
.brand-link:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--indigo-ink);
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--violet);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.primary-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.primary-nav a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--indigo-ink);
  padding: 7px 14px;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.16s ease;
}
.primary-nav a:hover {
  background: rgba(56, 189, 248, 0.16);
  color: var(--sky-deep);
  text-decoration: none;
}
.primary-nav a.is-current {
  background: linear-gradient(135deg, var(--violet) 0%, #9333EA 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}

.masthead-tools { display: flex; align-items: center; gap: 8px; }
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--indigo-ink);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 27, 75, 0.08);
}
.search-trigger:hover { background: #FFFFFF; box-shadow: 0 6px 18px rgba(124, 58, 237, 0.16); }
.kbd-hint { font-size: 0.68rem; padding: 2px 6px; border-radius: 6px; background: var(--violet-soft); color: var(--violet); font-weight: 800; }

.global-progress-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  color: var(--indigo-ink);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.34);
  white-space: nowrap;
}
.global-progress-pill:hover { color: var(--indigo-ink); text-decoration: none; transform: translateY(-1px); }

/* ==========================================================================
   FULL-BLEED 100vw x 100svh FLOATING GALLERY TREE STAGE (HOMEPAGE CENTERPIECE!)
   ========================================================================== */
.floating-tree-stage {
  position: relative;
  min-height: 92svh;
  padding: 28px 0 48px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tree-panorama-layer, .banner-panorama-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.tree-panorama-layer picture, .tree-panorama-layer img,
.banner-panorama-bg picture, .banner-panorama-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Soft Animated Tyndall Morning Sunbeams */
.tyndall-beams {
  position: absolute;
  inset: -10% -5% 0;
  background:
    conic-gradient(from 195deg at 50% 42%,
      rgba(253, 230, 138, 0.0) 0deg,
      rgba(253, 230, 138, 0.28) 14deg,
      rgba(255, 255, 255, 0.0) 28deg,
      rgba(253, 230, 138, 0.22) 44deg,
      rgba(255, 255, 255, 0.0) 60deg,
      rgba(254, 249, 195, 0.26) 80deg,
      rgba(255, 255, 255, 0.0) 110deg);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: sunbeamSway 14s ease-in-out infinite alternate;
}
@keyframes sunbeamSway {
  from { transform: rotate(-2.5deg) scale(1.02); opacity: 0.62; }
  to { transform: rotate(2.5deg) scale(1.06); opacity: 0.85; }
}

/* Feathered Bottom Cloud Horizon Transition (Zero Hard Line!) */
.stage-horizon-feather {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 45% at 50% 18%, rgba(255, 253, 245, 0.78) 0%, rgba(255, 253, 245, 0.22) 55%, rgba(255, 253, 245, 0) 100%),
    linear-gradient(180deg, rgba(250, 246, 238, 0.35) 0%, rgba(250, 246, 238, 0.05) 35%, rgba(238, 247, 253, 0.28) 76%, var(--sky-mist) 100%);
}

.stardust-arcs-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.tree-stage-content { position: relative; z-index: 3; }

.tree-crown-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
}
.luminous-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(10px);
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.14);
  margin-bottom: 10px;
}
.tree-crown-header h1 {
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.92), 0 1px 4px rgba(255, 255, 255, 0.8);
}
.crown-sub {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--indigo-ink);
  max-width: 680px;
  margin: 0 auto 16px;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.95);
}

/* Frosted Morning-Sky Filter Ribbon */
.sky-filter-ribbon {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(30, 27, 75, 0.10);
}
.sky-pill {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--indigo-ink);
  cursor: pointer;
  transition: all 0.18s ease;
}
.sky-pill:hover { background: rgba(56, 189, 248, 0.18); }
.sky-pill.is-active {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.38);
}

/* 6 BORDERLESS FLOATING ENCHANTED OIL-PAINTING PORTALS STAGGERED AMONG THE BRANCHES */
.floating-paintings-field {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  padding: 12px 0 26px;
}

.floating-painting {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
/* Organic Branch Stagger (Not a Rigid Flat Grid!) */
.float-pos-1 { margin-top: 22px; }
.float-pos-2 { margin-top: 0px; }
.float-pos-3 { margin-top: 34px; }
.float-pos-4 { margin-top: 10px; }
.float-pos-5 { margin-top: 30px; }
.float-pos-6 { margin-top: 2px; }

@keyframes breezeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating-painting:hover {
  transform: translateY(-8px) scale(1.04);
  z-index: 6;
}
.floating-painting:hover .fp-art-frame {
  animation-play-state: paused;
}
.floating-painting.is-selected .fp-art-frame {
  box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 8px var(--portal-glow), 0 26px 46px -8px rgba(30, 27, 75, 0.35);
}
.floating-painting.is-dimmed { opacity: 0.42; transform: scale(0.95); }

.fp-glow-halo {
  position: absolute;
  inset: 6% 8% 24%;
  border-radius: 26px;
  background: var(--portal-glow);
  filter: blur(22px);
  opacity: 0.42;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.floating-painting:hover .fp-glow-halo,
.floating-painting.is-selected .fp-glow-halo {
  opacity: 0.72;
  transform: scale(1.08);
}

.fp-art-frame {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(30, 27, 75, 0.24), 0 0 0 3px rgba(255, 255, 255, 0.85);
  animation: breezeFloat 5.6s ease-in-out var(--float-delay, 0s) infinite;
  transition: box-shadow 0.24s ease;
}
.fp-art-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.floating-painting:hover .fp-art-frame img { transform: scale(1.08); }

.fp-num {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(30, 27, 75, 0.82);
  backdrop-filter: blur(6px);
  color: var(--sun-gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.fp-meta-chip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--indigo-ink);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(30, 27, 75, 0.18);
}

.fp-label {
  display: block;
  margin-top: 10px;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(30, 27, 75, 0.10);
  width: 96%;
}
.fp-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: var(--indigo-ink);
  line-height: 1.15;
}
.fp-label small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--slate-muted);
  margin-top: 2px;
}

/* Smooth Feathered Watercolor Spotlight Spread (Expands Selected Painting!) */
.floating-spotlight-wrap { margin-top: 8px; }
.spotlight-spread {
  display: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(30, 27, 75, 0.14);
}
.spotlight-spread.is-active { display: grid; animation: fadeBloom 0.28s ease; }
@keyframes fadeBloom {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sp-art { position: relative; }
.sp-art .lightbox-trigger {
  display: block;
  padding: 0;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 16px 36px rgba(30, 27, 75, 0.2);
  width: 100%;
  background: transparent;
}
.sp-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sp-credit {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(30, 27, 75, 0.78);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.sp-kicker-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sp-realm-pill {
  display: inline-block;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
}
.sp-old-name { font-size: 0.78rem; font-weight: 700; color: var(--slate-muted); }
.sp-summary { font-size: 0.94rem; margin-bottom: 12px; }
.sp-telemetry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}
.sp-telemetry-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.11);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--indigo-ink);
}
.sp-actions, .quick-links-inline { display: flex; flex-wrap: wrap; gap: 10px; }

.magic-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.magic-btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-amber {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  color: var(--indigo-ink);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.34);
}
.btn-amber:hover { color: var(--indigo-ink); }
.btn-sky {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
}
.btn-sky:hover { color: #FFFFFF; }

/* ==========================================================================
   SUBPAGE PANORAMIC WATERCOLOR BANNER (Full-Bleed Backdrop + Feathered Fade)
   ========================================================================== */
.storybook-banner {
  position: relative;
  padding: 26px 0 32px;
  overflow: hidden;
}
.banner-cloud-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.90) 0%, rgba(255, 253, 248, 0.72) 55%, rgba(238, 247, 253, 0.56) 100%),
    linear-gradient(180deg, rgba(250, 246, 238, 0.25) 0%, var(--sky-mist) 100%);
}
.banner-foreground { position: relative; z-index: 2; }
.banner-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.breadcrumb { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--slate-muted); }
.breadcrumb a { color: var(--violet); }
.frosted-action-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--indigo-ink);
  box-shadow: 0 6px 18px rgba(30, 27, 75, 0.10);
  cursor: pointer;
}
.frosted-action-btn.is-active { background: var(--violet); color: #FFFFFF; }

.banner-main-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.banner-copy { flex: 1; min-width: 300px; }
.banner-sub { font-size: 0.96rem; color: var(--slate-body); max-width: 720px; margin: 0; }

.floating-stat-orbs { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-orb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(30, 27, 75, 0.09);
}
.stat-orb-ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.orb-amber .stat-orb-ic { background: linear-gradient(135deg, #FBBF24, #EA580C); }
.orb-emerald .stat-orb-ic { background: linear-gradient(135deg, #22C55E, #15803D); }
.orb-violet .stat-orb-ic { background: linear-gradient(135deg, #A855F7, #6D28D9); }
.orb-sky .stat-orb-ic { background: linear-gradient(135deg, #38BDF8, #0284C7); }
.stat-orb strong { display: block; font-family: var(--font-display); font-size: 0.98rem; line-height: 1.05; color: var(--indigo-ink); }
.stat-orb small { display: block; font-size: 0.68rem; font-weight: 700; color: var(--slate-muted); }

/* ==========================================================================
   STORYBOOK BANDS, PILLAR WASHES & HORIZONTAL CINEMATIC STORYBOARD STRIPS
   ========================================================================== */
.storybook-band {
  padding: 40px 0;
  background: var(--cloud-bg);
}
.storybook-band.band-sky-mist {
  background: linear-gradient(180deg, var(--sky-mist) 0%, var(--cloud-bg) 100%);
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 5px;
}
.section-sub { font-size: 0.94rem; color: var(--slate-body); }
.band-head-center { text-align: center; margin-bottom: 24px; }

.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.strip-head h2 { margin: 0; }
.strip-nav-btns { display: inline-flex; gap: 8px; }
.strip-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  color: var(--indigo-ink);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.strip-arrow:hover { background: var(--amber); color: #FFFFFF; }

/* 4 Borderless Watercolor Pillar Washes */
.pillar-ribbon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pillar-wash {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-float);
  color: var(--indigo-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar-wash:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(30, 27, 75, 0.15); text-decoration: none; color: var(--indigo-ink); }
.pw-orb {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px rgba(30, 27, 75, 0.15);
}
.pillar-wash p { font-size: 0.86rem; color: var(--slate-muted); flex: 1; margin-bottom: 12px; }
.pw-cta { font-size: 0.8rem; font-weight: 800; color: var(--violet); }

/* Horizontal Cinematic Storyboard Strip */
.storyboard-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.35) transparent;
}
.storyboard-strip.film-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow-x: visible;
  padding-bottom: 6px;
}

.story-frame {
  margin: 0;
  flex: 0 0 360px;
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
}
.storyboard-strip.film-3col .story-frame { flex: auto; }
.story-frame .lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #0F172A;
  cursor: zoom-in;
  overflow: hidden;
}
.story-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s ease; }
.story-frame:hover img { transform: scale(1.04); }
.sf-realm {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(30, 27, 75, 0.84);
  backdrop-filter: blur(6px);
  color: var(--sun-gold);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
}
.story-frame figcaption, .sf-body {
  padding: 14px 16px;
  font-size: 0.83rem;
  color: var(--slate-body);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.attr-tag { font-size: 0.7rem; color: var(--slate-muted); font-weight: 700; }

/* Horizontal Timeline Stage Cards (Walkthrough Stages Tab) */
.timeline-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  border-radius: 22px;
  padding: 16px 18px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl-idx { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--violet); }
.tl-goal, .tl-reward { font-size: 0.8rem; color: var(--slate-body); margin: 0; line-height: 1.45; }
.tl-reward { color: var(--slate-muted); }

/* ==========================================================================
   INTERACTIVE BEFORE / AFTER VISUAL COMPARISON SLIDER (2013 vs 2026!)
   ========================================================================== */
.ba-storybook-wrap {
  background: rgba(255, 253, 248, 0.92);
  border-radius: 30px;
  padding: 24px 26px;
  box-shadow: var(--shadow-float);
}
.ba-head { text-align: center; margin-bottom: 16px; }
.ba-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  max-height: 460px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(30, 27, 75, 0.18);
  user-select: none;
  background: #0F172A;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }

.ba-pill {
  position: absolute;
  top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.ba-pill-left { left: 14px; background: rgba(30, 27, 75, 0.86); color: var(--sun-gold); }
.ba-pill-right { right: 14px; background: rgba(245, 158, 11, 0.94); color: var(--indigo-ink); }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: linear-gradient(180deg, #FDE68A, #F59E0B, #7C3AED);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.85);
  pointer-events: none;
  z-index: 4;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #F59E0B 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 10px 26px rgba(30, 27, 75, 0.35);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}

.ba-compare-captions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.ba-col {
  padding: 16px 18px;
  border-radius: 20px;
}
.ba-col-2013 { background: rgba(124, 58, 237, 0.06); }
.ba-col-2026 { background: rgba(245, 158, 11, 0.11); }
.ba-col-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.tag-2013 { background: var(--violet); color: #FFFFFF; }
.tag-2026 { background: var(--amber); color: var(--indigo-ink); }

/* ==========================================================================
   BORDERLESS WATERCOLOR CONSTELLATION MAP (Floating Frosted Top Ribbon!)
   ========================================================================== */
.constellation-map {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cmap-glass-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}
.cmap-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cmap-all-btn, .cmap-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: none;
  background: rgba(56, 189, 248, 0.10);
  color: var(--indigo-ink);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.cmap-cat-pill:not(.is-on) { opacity: 0.38; }
.cmap-cat-pill:hover, .cmap-all-btn:hover { background: rgba(245, 158, 11, 0.22); }
.cmap-dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }

.cmap-tools-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmap-search, .frosted-search {
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: #FFFFFF;
  color: var(--indigo-ink);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  box-shadow: inset 0 1px 4px rgba(30, 27, 75, 0.10), 0 4px 12px rgba(30, 27, 75, 0.05);
  min-width: 200px;
}
.cmap-mini-ring { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 800; color: var(--indigo-ink); }

.cmap-viewport {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  min-height: 520px;
  background: #E0F2FE;
  cursor: grab;
  user-select: none;
}
.cmap-viewport.is-dragging { cursor: grabbing; }
.cmap-zoom-float { position: absolute; right: 14px; top: 14px; z-index: 12; display: flex; gap: 6px; }
.cmap-zbtn {
  border: none;
  background: rgba(255, 253, 248, 0.92);
  color: var(--indigo-ink);
  border-radius: 999px;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(30, 27, 75, 0.14);
}
.cmap-zbtn:hover { background: var(--amber); color: #FFFFFF; }
.cmap-zreset { font-size: 0.76rem; }

.atlas-pan-layer { width: 100%; height: 100%; transform-origin: center center; transition: transform 0.08s ease-out; }
.atlas-svg { width: 100%; height: auto; display: block; }
.map-pin { cursor: pointer; }
.map-pin.is-hidden-pin { display: none; }
.map-pin.is-found .pin-check-mark { opacity: 1; }

.atlas-popover {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(350px, calc(100% - 32px));
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(16px);
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(30, 27, 75, 0.28);
  overflow: hidden;
  z-index: 20;
  display: none;
}
.atlas-popover.is-open { display: block; }
.atlas-popover-x {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 27, 75, 0.8);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.atlas-popover-art { position: relative; }
.atlas-popover-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.atlas-popover-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--amber);
  color: var(--indigo-ink);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.atlas-popover-body { padding: 14px 16px 16px; }
.atlas-pop-realm { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--violet); margin-bottom: 2px; }
.atlas-pop-title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--indigo-ink); margin-bottom: 5px; }
.atlas-pop-desc { font-size: 0.82rem; color: var(--slate-body); margin-bottom: 11px; line-height: 1.48; }
.atlas-pop-actions { display: flex; gap: 8px; }
.atlas-mark-btn {
  flex: 1;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.atlas-mark-btn.is-found { background: var(--amber); color: var(--indigo-ink); }
.atlas-go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 800;
}

/* ==========================================================================
   WALKTHROUGH REALM SELECTOR, FROSTED TABS, BOSS HUD & CANVAS BEAT HIGHWAY
   ========================================================================== */
.realm-selector-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.realm-portal-pill {
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.92);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.realm-portal-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.realm-portal-pill.is-active {
  box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--amber), var(--shadow-float);
  transform: translateY(-3px);
}
.realm-portal-pill img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rpp-cap {
  display: block;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--indigo-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.realm-portal-pill.is-active .rpp-cap { background: var(--violet); color: #FFFFFF; }
.rpp-cap b { color: var(--amber-deep); margin-right: 3px; }
.realm-portal-pill.is-active .rpp-cap b { color: var(--sun-gold); }

.realm-panels-host { display: flex; flex-direction: column; gap: 22px; }
.watercolor-realm-panel {
  display: none;
  background: rgba(255, 253, 248, 0.92);
  border-radius: 28px;
  padding: 22px 24px;
  box-shadow: var(--shadow-float);
}
.watercolor-realm-panel.is-active,
.realm-panels-host.is-expanded-all .watercolor-realm-panel { display: block; }
.wrp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.realm-subpane { display: none; }
.realm-subpane.is-active { display: block; }

.frosted-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(30, 27, 75, 0.07);
}
.ftab-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--indigo-ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ftab-btn:hover { background: rgba(56, 189, 248, 0.15); }
.ftab-btn.is-active { background: var(--violet); color: #FFFFFF; box-shadow: 0 6px 16px rgba(124, 58, 237, 0.26); }
.ftab-btn.ftab-rare.is-active { background: var(--amber); color: var(--indigo-ink); }

.view-pane { display: none; }
.view-pane.is-active { display: block; }

.chest-whisper-strip {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(253, 230, 138, 0.48), rgba(255, 253, 248, 0.9));
}
.chest-whisper-strip p { margin: 0; font-size: 0.86rem; color: var(--indigo-ink); }
.cw-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FBBF24, #EA580C);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Boss HUD & Guardian Circuit */
.boss-hud-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 18px; align-items: start; }
.guardian-img-wrap { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-float); }
.guardian-img-wrap .lightbox-trigger { display: block; padding: 0; border: none; width: 100%; cursor: zoom-in; background: transparent; }
.guardian-img-wrap img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guardian-orb-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
  pointer-events: none;
}
.boss-tactic-hud { display: flex; flex-direction: column; gap: 10px; }
.boss-hud-row {
  background: rgba(56, 189, 248, 0.09);
  border-radius: 16px;
  padding: 12px 16px;
}
.bh-label { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; color: var(--violet); margin-bottom: 3px; }
.boss-hud-row strong { font-size: 0.88rem; color: var(--indigo-ink); }

.guardian-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.guardian-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui);
}
.guardian-tab.is-active { background: var(--violet); color: #FFFFFF; }
.g-orb-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: #FFFFFF; flex-shrink: 0; }
.guardian-tab strong { display: block; font-size: 0.82rem; line-height: 1.15; }
.guardian-tab small { display: block; font-size: 0.68rem; opacity: 0.8; }
.guardian-panel { display: none; }
.guardian-panel.is-active { display: block; }
.orb-conduit-svg { width: 100%; height: auto; display: block; margin-top: 14px; }

/* Luminous Full-Width Canvas Beat-Sync Highway */
.beat-highway-studio {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  border-radius: 26px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(30, 27, 75, 0.25);
}
.beat-controls-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.beat-track-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.beat-tab-btn {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
  cursor: pointer;
}
.beat-tab-btn span { opacity: 0.82; margin-left: 4px; font-size: 0.7rem; }
.beat-tab-btn.is-active { background: var(--amber); color: var(--indigo-ink); }
.beat-play-btn {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 999px;
  border: none;
  background: #38BDF8;
  color: var(--indigo-ink);
  cursor: pointer;
}
.beat-canvas-wrap { border-radius: 16px; overflow: hidden; background: #0F172A; }
.beat-highway-canvas { display: block; width: 100%; height: auto; }
.beat-coach-bar { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); color: #F8FAFC; font-size: 0.84rem; }
.beat-coach-bar strong { color: var(--sun-gold); margin-right: 6px; }

/* ==========================================================================
   FEATHERED LIST STREAMS (Collectibles · Trophies · Boutique · Diff)
   ========================================================================== */
.frosted-tracker-bar, .frosted-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 253, 248, 0.92);
  border-radius: 22px;
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}
.tracker-summary { display: flex; flex-direction: column; font-size: 0.76rem; }
.tracker-summary strong { color: var(--violet); letter-spacing: 0.05em; }
.tracker-meter { flex: 1; min-width: 150px; height: 10px; border-radius: 999px; background: rgba(124, 58, 237, 0.12); overflow: hidden; }
.tracker-meter-fill { height: 100%; background: linear-gradient(90deg, #22C55E, #F59E0B); transition: width 0.2s ease; }
.tracker-actions { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; }
.toggle-chip { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 700; }
.frosted-mini-btn {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 999px;
  border: none;
  background: var(--amber);
  color: var(--indigo-ink);
  cursor: pointer;
}
.frosted-select {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: #FFFFFF;
  color: var(--indigo-ink);
  box-shadow: 0 4px 12px rgba(30, 27, 75, 0.08);
  cursor: pointer;
}
.toolbar-right { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; justify-content: flex-end; }
.filter-status { font-size: 0.78rem; font-weight: 800; color: var(--slate-muted); }

.feathered-list-stream, .trophy-stream-list { display: flex; flex-direction: column; gap: 10px; }
.stream-row, .boutique-row, .trophy-stream-row {
  background: rgba(255, 253, 248, 0.94);
  border-radius: 20px;
  padding: 13px 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.stream-row:hover, .boutique-row:hover, .trophy-stream-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}
.stream-row { display: flex; align-items: center; gap: 14px; }
.stream-row.is-done-row { background: #ECFDF5; }
.is-hidden-row { display: none !important; }
.row-checkbox { width: 18px; height: 18px; accent-color: var(--emerald); cursor: pointer; flex-shrink: 0; }
.sc-check-wrap { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.sr-main { flex: 1; min-width: 0; }
.sr-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; font-size: 0.92rem; }
.sr-realm-tag { font-size: 0.72rem; font-weight: 800; color: var(--violet); }
.sr-note { font-size: 0.8rem; color: var(--slate-muted); margin: 0; }
.sr-slots { flex-shrink: 0; }

.slot-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  font-size: 0.72rem;
  font-weight: 800;
}
.slot-group, .slot-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--indigo-ink); }

/* Trophy Stream & Roadmap */
.trophy-hall-widgets { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 18px; }
.glass-panel {
  background: rgba(255, 253, 248, 0.94);
  border-radius: 26px;
  padding: 20px 22px;
  box-shadow: var(--shadow-float);
}
.widget-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; color: var(--violet); margin-bottom: 12px; }
.roadmap-kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.roadmap-kv-grid > div { background: rgba(56, 189, 248, 0.09); border-radius: 14px; padding: 10px 13px; }
.roadmap-kv-grid dt { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; color: var(--slate-muted); }
.roadmap-kv-grid dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--indigo-ink); }
.tier-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rarity-svg { width: 100%; height: auto; display: block; }

.trophy-stream-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 142px; gap: 16px; align-items: center; }
.psn-emblem {
  width: 66px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}
.psn-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.psn-title-row h3 { margin: 0; font-size: 1.1rem; }
.psn-cat-label { font-size: 0.7rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); }
.psn-official-desc { font-size: 0.85rem; font-weight: 600; color: var(--indigo-ink); margin: 0 0 4px; }
.psn-guide-tip { font-size: 0.82rem; color: var(--slate-body); margin: 0; background: rgba(245, 158, 11, 0.10); padding: 6px 12px; border-radius: 12px; }
.psn-rarity { text-align: right; }
.psn-pct { display: block; font-family: var(--font-display); font-size: 1.28rem; color: var(--indigo-ink); }
.psn-rarity-word { display: block; font-size: 0.68rem; font-weight: 800; color: var(--slate-muted); text-transform: uppercase; margin-bottom: 5px; }
.pct-bar-track { width: 100%; height: 7px; border-radius: 999px; background: rgba(124, 58, 237, 0.12); overflow: hidden; }
.pct-bar-fill { display: block; height: 100%; border-radius: 999px; }

/* Boutique Magique Hero Medallions & Lookbook Rows */
.hero-medallion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hero-medallion-card {
  background: rgba(255, 253, 248, 0.94);
  border-radius: 22px;
  padding: 15px 16px;
  border: none;
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.hero-medallion-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.hero-medallion-card.is-selected { box-shadow: 0 0 0 3px var(--amber), var(--shadow-float); background: #FFFBEB; }
.medallion-top { display: flex; align-items: center; gap: 10px; }
.medallion-top strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--indigo-ink); }
.medallion-count { display: inline-block; font-size: 0.68rem; font-weight: 800; color: #FFFFFF; padding: 2px 8px; border-radius: 999px; }
.medallion-role { font-size: 0.76rem; font-weight: 700; color: var(--slate-muted); margin: 0; }
.medallion-chest { display: flex; align-items: center; gap: 5px; font-size: 0.74rem; margin: 0; background: rgba(245, 158, 11, 0.12); padding: 5px 9px; border-radius: 999px; color: var(--indigo-ink); }

.boutique-row { display: grid; grid-template-columns: 126px minmax(0, 1fr) 150px; gap: 14px; align-items: center; }
.br-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.br-title-line h3 { margin: 0; font-size: 1.06rem; }
.br-desc { font-size: 0.82rem; color: var(--indigo-ink); margin: 0; }
.br-muted { color: var(--slate-muted); }
.br-price { text-align: right; }

/* Categorized Diff Washes */
.diff-groups-stack { display: flex; flex-direction: column; gap: 22px; }
.diff-group-title { margin-bottom: 12px; color: var(--violet); }
.diff-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.diff-wash-card {
  background: rgba(255, 253, 248, 0.94);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.diff-area-tag { display: inline-block; font-size: 0.72rem; font-weight: 800; background: var(--violet); color: #FFFFFF; padding: 3px 11px; border-radius: 999px; margin-bottom: 9px; }
.diff-vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.diff-new-box, .diff-old-box { font-size: 0.78rem; padding: 9px 11px; border-radius: 14px; margin: 0; line-height: 1.44; }
.diff-new-box { background: rgba(22, 163, 74, 0.11); color: #14532D; }
.diff-old-box { background: rgba(124, 58, 237, 0.07); color: var(--slate-muted); }
.diff-impact { font-size: 0.8rem; color: var(--indigo-ink); margin: 0; }

/* Soft Badges */
.type-tag { display: inline-block; font-size: 0.7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(56, 189, 248, 0.14); color: var(--sky-deep); white-space: nowrap; }
.type-boss { background: #FFE4E6; color: #BE123C; }
.type-hub-chest { background: #FEF3C7; color: #B45309; }
.type-musical, .type-musical-new-2026 { background: #EDE9FE; color: #6D28D9; }
.type-invaded { background: #FFEDD5; color: #C2410C; }
.type-dragon-ride, .type-dragon-ride-new-2026 { background: #E0F2FE; color: #0369A1; }
.type-standard { background: #DCFCE7; color: #15803D; }

.tier-badge { display: inline-block; font-size: 0.7rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.tier-platinum { background: #EDE9FE; color: #5B21B6; }
.tier-gold { background: #FEF3C7; color: #B45309; }
.tier-silver { background: #E2E8F0; color: #334155; }
.tier-bronze { background: #FFEDD5; color: #C2410C; }
.hidden-tag { display: inline-block; font-size: 0.68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #E0F2FE; color: #0369A1; }

.hero-tag { display: inline-block; font-size: 0.74rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.hero-rayman { background: #FEF3C7; color: #B45309; }
.hero-barbara { background: #FFE4E6; color: #BE123C; }
.hero-globox { background: #E0F2FE; color: #0369A1; }
.hero-grand-minimus { background: #DCFCE7; color: #15803D; }

.lum-coin-pill { display: inline-block; font-size: 0.76rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.pill-paid { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #92400E; }
.pill-free { background: #DCFCE7; color: #15803D; }
.pill-chest { background: #EDE9FE; color: #6D28D9; }

/* Feathered Prose, Dual Media, FAQ & Footer */
.watercolor-two-col, .dual-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feathered-prose-block {
  background: rgba(255, 253, 248, 0.94);
  border-radius: 26px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.tactic-bullets { margin: 0; padding-left: 18px; font-size: 0.88rem; line-height: 1.58; color: var(--slate-body); }
.tactic-bullets li { margin-bottom: 7px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: rgba(255, 253, 248, 0.94);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
}
.faq-item summary { font-weight: 800; color: var(--indigo-ink); cursor: pointer; font-size: 0.94rem; }
.faq-item p { margin: 9px 0 0; font-size: 0.88rem; color: var(--slate-body); }

.site-footer {
  background: linear-gradient(180deg, #1E1B4B 0%, #17153B 100%);
  color: #E2E8F0;
  padding: 38px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; margin-bottom: 22px; }
.footer-heading { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: var(--sun-gold); margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; }
.footer-links a { color: #E2E8F0; }
.footer-links a:hover { color: var(--sun-gold); }
.footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 14px; font-size: 0.76rem; color: #CBD5E1; line-height: 1.55; }

/* Modals (Lightbox & Ctrl+K Search) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(30, 27, 75, 0.80);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.is-open { display: flex; }
.lightbox-dialog {
  max-width: min(1100px, 95vw);
  max-height: 92vh;
  background: #1E1B4B;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.lightbox-dialog img { max-height: 78vh; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; color: #F8FAFC; font-size: 0.84rem; }
.mini-btn { border: none; background: var(--amber); color: var(--indigo-ink); font-weight: 800; padding: 6px 14px; border-radius: 999px; cursor: pointer; }

.search-dialog {
  width: min(680px, 96vw);
  max-height: 82vh;
  background: #FFFDF8;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(30, 27, 75, 0.35);
}
.search-dialog-head { display: flex; gap: 10px; padding: 14px; background: var(--indigo-ink); }
.search-dialog-head input { flex: 1; padding: 10px 15px; border-radius: 999px; border: none; font-family: var(--font-ui); font-size: 0.92rem; }
.search-results { overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.search-hit { display: block; padding: 10px 14px; border-radius: 14px; background: rgba(56, 189, 248, 0.08); color: var(--indigo-ink); }
.search-hit:hover { background: rgba(245, 158, 11, 0.18); text-decoration: none; }
.search-hit strong { display: block; font-size: 0.9rem; }
.search-hit small { display: block; font-size: 0.74rem; color: var(--slate-muted); }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (1100px / 820px / 480px / 320px — Zero Overflow!)
   ========================================================================== */
@media (max-width: 1120px) {
  .floating-paintings-field { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillar-ribbon-grid, .hero-medallion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .realm-selector-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spotlight-spread { grid-template-columns: 1fr; }
  .trophy-hall-widgets { grid-template-columns: 1fr; }
  .guardian-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .wrap { width: min(1320px, calc(100% - 24px)); }
  .floating-paintings-field { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .float-pos-1, .float-pos-2, .float-pos-3, .float-pos-4, .float-pos-5, .float-pos-6 { margin-top: 0; }
  .pillar-ribbon-grid, .watercolor-two-col, .dual-media-grid, .boss-hud-split,
  .ba-compare-captions, .diff-card-grid, .diff-vs-row, .footer-grid,
  .storyboard-strip.film-3col, .hero-medallion-grid {
    grid-template-columns: 1fr;
  }
  .trophy-stream-row, .boutique-row { grid-template-columns: 1fr; gap: 8px; }
  .psn-emblem { width: auto; height: auto; flex-direction: row; padding: 6px 12px; }
  .psn-rarity, .br-price { text-align: left; }
  .stream-row { flex-direction: column; align-items: flex-start; }
  .cmap-viewport { min-height: 360px; }
  .story-frame { flex: 0 0 84vw; }
  .timeline-card { flex: 0 0 80vw; }
  #glade-canvas { opacity: 0.35; }
}

@media (max-width: 480px) {
  .primary-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { white-space: nowrap; font-size: 0.78rem; padding: 6px 10px; }
  .realm-selector-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guardian-tabs, .roadmap-kv-grid { grid-template-columns: 1fr; }
  .ba-pill { font-size: 0.64rem; padding: 4px 8px; }
  .kbd-hint { display: none; }
}
