/* HAMON WORKS — Cinema Obsidian × Warm Ivory × Subtle Gold Storefront */
:root {
  --bg: #09090b;
  --surface: #121215;
  --surface-2: #18181c;
  --surface-hover: #1f1f24;
  --glass: rgba(9, 9, 11, 0.86);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ink: #f4f2ed;
  --ink-soft: #a8a6a0;
  --ink-muted: #706f6a;

  --accent: #d4a359;
  --accent-soft: rgba(212, 163, 89, 0.14);
  --accent-line: rgba(212, 163, 89, 0.36);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --nav-h: 56px;
  --tabbar-h: 60px;
  --max-w: 1360px;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

.hidden {
  display: none !important;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

.muted-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Reading Progress Bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: var(--accent);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ==========================================================================
   TOP BAR & SWIPEABLE CATEGORY STRIP
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand-lockup { gap: 7px; }
.brand-lockup svg { display:block; flex:none; }
.brand-sep { height:18px; width:1px; background:#506A85; }
.brand-mei { display:flex; flex-direction:column; font:10px/1 serif; color:#a9c4df; }
.brand-sub { font-size:.66rem; font-weight:650; letter-spacing:.13em; color:#d0e1f2; }
@media(max-width:440px){.brand-lockup{gap:4px}.brand-lockup svg:nth-child(2){width:62px}.topbar-inner{gap:6px}}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.primary-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.primary-nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.primary-nav a.nav-accent {
  color: var(--accent);
}

.primary-nav a.nav-accent.active {
  color: var(--ink);
  background: var(--accent-soft);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.icon-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.crate-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.crate-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
}

.crate-link.has-items {
  color: var(--accent);
  background: var(--accent-soft);
}

.crate-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
}

.notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #09090b;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-slot {
  display: flex;
  align-items: center;
}

.user-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s ease;
}

.user-link:hover {
  background: rgba(255, 255, 255, 0.11);
}

/* Swipeable Category Strip (Mobile + Tablet) */
.category-strip {
  display: none;
  border-top: 1px solid var(--line);
}

.category-strip-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
  height: 38px;
}

.category-strip-inner::-webkit-scrollbar {
  display: none;
}

.category-strip a {
  flex-shrink: 0;
  padding: 6px 11px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  white-space: nowrap;
}

.category-strip a.active {
  color: var(--ink);
  font-weight: 600;
}

.category-strip a.active::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ==========================================================================
   BUTTONS (Restrained Warm Ivory Primary + Quiet Subtle Secondary)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-sm {
  height: 32px;
  padding: 0 13px;
  font-size: 0.8rem;
  border-radius: 7px;
}

.btn-primary {
  background: var(--ink);
  color: #09090b;
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-color: var(--line);
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--line-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.btn-accent-outline {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}

.btn-accent-outline:hover {
  background: rgba(212, 163, 89, 0.22);
}

.btn-following {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}

/* Avatars */
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.avatar-md {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.4rem;
}

/* ==========================================================================
   COMPACT CINEMA HERO (<= 58vh Desktop, <= 46vh Mobile)
   ========================================================================== */
.hero-stage {
  position: relative;
  height: clamp(380px, 49vh, 450px);
  max-height: 58vh;
  overflow: hidden;
  background: #060608;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-backdrop video,
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cinema-debar {
  transform: scale(1.28);
  transform-origin: center center;
}

.hero-backdrop img.hero-fit-contain {
  object-fit: contain;
  object-position: right center;
  background: #09090b;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.62) 46%, rgba(9, 9, 11, 0.18) 100%),
    linear-gradient(0deg, #09090b 0%, rgba(9, 9, 11, 0.52) 42%, rgba(9, 9, 11, 0.1) 100%);
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 26px;
  padding-top: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: end;
}

.hero-meta-line {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.hero-meta-line .accent-text {
  color: var(--accent);
}

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch;
}

.hero-desc {
  margin: 0 0 16px;
  max-width: 52ch;
  font-size: 0.94rem;
  line-height: 1.48;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Desktop Hero Switcher (2:1 uncropped thumbnails) */
.hero-switcher {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-switch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(9, 9, 11, 0.56);
  backdrop-filter: blur(10px);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-switch-item:hover {
  background: rgba(24, 24, 28, 0.8);
}

.hero-switch-item.active {
  background: rgba(24, 24, 28, 0.92);
  border-color: var(--accent-line);
}

.hero-switch-thumb {
  width: 72px;
  aspect-ratio: 2 / 1;
  border-radius: 4px;
  object-fit: cover;
  background: #09090b;
  flex-shrink: 0;
}

.hero-switch-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-switch-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-switch-type {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.hero-dots {
  display: none;
}

/* ==========================================================================
   COMPACT DEAL STRIP (Directly Below Hero — Visible on Screen 1)
   ========================================================================== */
.deal-strip {
  padding: 16px 0 6px;
}

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

.deal-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.deal-tile:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.deal-tile-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.deal-tile-thumb {
  width: 112px;
  aspect-ratio: 2 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #09090b;
  flex-shrink: 0;
}

.deal-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-tile-copy {
  min-width: 0;
}

.deal-kicker {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
}

.deal-tile h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-sub {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-price-strike {
  text-decoration: line-through;
  color: var(--ink-muted);
  margin-right: 6px;
}

.deal-tile-cta {
  flex-shrink: 0;
}

/* ==========================================================================
   SECTIONS & HORIZONTAL SWIPEABLE BROWSE RAILS
   ========================================================================== */
.rail-section {
  padding: 22px 0 8px;
}

.section {
  padding: 28px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-sub {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.section-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.section-link:hover {
  color: var(--ink);
}

/* Horizontal Swipeable Browse Rail */
.browse-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.browse-rail::-webkit-scrollbar {
  display: none;
}

.browse-rail > .work-card {
  flex: 0 0 328px;
  scroll-snap-align: start;
}

/* Responsive Grid for Category / Universe / Shelf Views */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Work Card — Uncropped Cover + 1 Quiet Metadata Line */
.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.work-cover-link {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0d;
  border: 1px solid var(--line);
  transition: border-color 0.16s ease, transform 0.18s ease;
}

.work-cover-link.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.work-cover-link:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.work-cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.work-cover-link img.fit-contain {
  object-fit: contain;
  background: #07090b;
}

.work-card-info {
  padding: 9px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.work-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.work-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-title a:hover {
  color: #ffffff;
}

.work-meta-line {
  margin: 0;
  font-size: 0.79rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-meta-line .meta-accent {
  color: var(--accent);
}

.work-quick-action {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.work-quick-action:hover,
.work-quick-action.active {
  color: var(--accent);
}

/* ==========================================================================
   UNIVERSES (2-Up Clean Framed Cards — Zero Overlapping Text)
   ========================================================================== */
.universe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.universe-card {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease;
}

.universe-card:hover {
  border-color: var(--line-strong);
}

.universe-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #0a0a0d;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.universe-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.universe-body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.universe-body p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.48;
}

.universe-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

/* ==========================================================================
   LITERARY SPOTLIGHT (Chronicle)
   ========================================================================== */
.chronicle-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.chronicle-title {
  margin: 4px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.chronicle-quote {
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.chronicle-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.chapter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.chapter-links a:hover {
  color: var(--ink);
}

/* ==========================================================================
   COMMUNITY PULSE (Requests + Creators)
   ========================================================================== */
.pulse-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.surface-panel {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
}

.creator-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.creator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.creator-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.creator-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.creator-row-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  display: block;
}

.creator-row-handle {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   SEGMENTED VIEW TABS (/watch|/read, /play|/tools)
   ========================================================================== */
.view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.view-tabs a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.view-tabs a.active {
  background: var(--ink);
  color: #09090b;
  font-weight: 600;
}

/* ==========================================================================
   UNIVERSE HUB HERO
   ========================================================================== */
.universe-hero {
  position: relative;
  min-height: 290px;
  max-height: 44vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 28px 0;
  background: #060608;
}

.universe-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

/* ==========================================================================
   WORK DETAIL & FULL-STAGE EXPERIENCE (/w/:slug)
   ========================================================================== */
.work-stage-banner {
  background: #060608;
  border-bottom: 1px solid var(--line);
  padding: 18px 0 24px;
}

.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.studio-frame-shell {
  position: relative;
  width: 100%;
  height: min(76vh, 720px);
  min-height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #09090b;
}

.studio-frame-shell.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 250;
  height: 100vh;
  border-radius: 0;
  border: none;
}

.studio-frame-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #09090b;
}

.cinema-player-shell {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  margin: 0 auto;
}

.cinema-player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.act-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.act-btn {
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.8rem;
  cursor: pointer;
}

.act-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

/* Audio Stage */
.audio-stage {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: center;
}

.audio-cover {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}

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

.audio-wave-canvas {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  margin: 12px 0;
}

.audio-native {
  width: 100%;
  margin: 6px 0 14px;
  accent-color: var(--accent);
  color-scheme: dark;
}

.movement-list {
  display: grid;
  gap: 6px;
}

.movement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
}

.movement-row:hover,
.movement-row.active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

/* Gallery Stage */
.gallery-stage {
  display: grid;
  grid-template-columns: 1.55fr 0.65fr;
  gap: 14px;
  align-items: start;
}

.gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a0a0d;
  aspect-ratio: 2 / 1;
}

.gallery-main img,
.gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a0d;
}

.gallery-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-thumb {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0d;
  aspect-ratio: 2 / 1;
  cursor: pointer;
  opacity: 0.75;
}

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

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

/* Work Detail Body */
.work-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  padding: 28px 0 40px;
  align-items: start;
}

.work-header-title {
  margin: 4px 0 8px;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.work-lead {
  margin: 12px 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

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

.spec-card {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-card-key {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.spec-card-val {
  font-size: 0.86rem;
  color: var(--ink);
}

.sidebar-card {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.price-main.accent {
  color: var(--accent);
}

.follow-split-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tag-line {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.comments-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.comment-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.comment-textarea {
  width: 100%;
  min-height: 82px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
  font-size: 0.9rem;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--accent-line);
}

.comments-tree {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-node {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.comment-body {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rx-btn {
  background: transparent;
  border: none;
  padding: 2px 4px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  cursor: pointer;
}

.rx-btn:hover,
.rx-btn.active {
  color: var(--accent);
}

.comment-replies {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   LITERARY READER (/reader/:slug)
   ========================================================================== */
.reader-shell {
  min-height: calc(100vh - var(--nav-h));
  padding: 26px 0 60px;
  --r-bg: #09090b;
  --r-panel: #121215;
  --r-ink: #f4f2ed;
  --r-soft: #9e9c96;
  --r-line: rgba(255, 255, 255, 0.08);
  background: var(--r-bg);
  color: var(--r-ink);
}

.reader-shell.theme-sepia {
  --r-bg: #f3ecde;
  --r-panel: #ebe1ce;
  --r-ink: #27211a;
  --r-soft: #665847;
  --r-line: rgba(39, 33, 26, 0.12);
}

.reader-shell.theme-ivory {
  --r-bg: #fbfaf7;
  --r-panel: #f2efe8;
  --r-ink: #18181b;
  --r-soft: #62605b;
  --r-line: rgba(24, 24, 27, 0.1);
}

.reader-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 700px);
  gap: 40px;
  justify-content: center;
  align-items: start;
}

.reader-toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reader-toc-item {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.84rem;
  color: var(--r-soft);
  border: 1px solid transparent;
}

.reader-toc-item:hover {
  color: var(--r-ink);
  background: var(--r-panel);
}

.reader-toc-item.active {
  color: var(--r-ink);
  background: var(--r-panel);
  border-color: var(--r-line);
  font-weight: 600;
}

.reader-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--r-line);
}

.reader-btn-group {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--r-panel);
  border: 1px solid var(--r-line);
}

.reader-ctl {
  padding: 4px 10px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--r-soft);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}

.reader-ctl.active {
  background: var(--r-ink);
  color: var(--r-bg);
}

.reader-prose {
  font-family: var(--font-serif);
  font-size: var(--reader-size, 19px);
  line-height: 1.78;
  color: var(--r-ink);
}

.reader-prose.font-sans {
  font-family: var(--font-sans);
  line-height: 1.68;
}

.reader-prose p {
  margin: 0 0 1.25em;
}

.reader-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--r-line);
}

/* ==========================================================================
   5-FOR-$12 CRATE BUILDER & COLLECTIONS (/bundles)
   ========================================================================== */
.crate-hero {
  padding: 28px 0 20px;
}

.crate-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.crate-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.crate-pick-card {
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.crate-pick-card:hover {
  border-color: var(--line-strong);
}

.crate-pick-card.selected {
  border-color: var(--accent);
}

.crate-pick-media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #0a0a0d;
  overflow: hidden;
}

.crate-pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crate-pick-media img.fit-contain {
  object-fit: contain;
  background: #07090b;
}

.crate-pick-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.85);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crate-pick-card.selected .crate-pick-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #09090b;
}

.crate-pick-info {
  padding: 10px 12px 12px;
}

.crate-pick-info h4 {
  margin: 0 0 3px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.crate-tray {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crate-slots-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.crate-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.crate-slot-row.filled {
  border-style: solid;
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

.crate-slot-thumb {
  width: 48px;
  aspect-ratio: 2 / 1;
  border-radius: 4px;
  object-fit: cover;
  background: #09090b;
  flex-shrink: 0;
}

.crate-math-box {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crate-math-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.crate-math-total {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.preview-receipt {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: 0.84rem;
}

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

.bundle-tier-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bundle-tier-card.featured-pass {
  border-color: var(--accent-line);
}

.perk-list {
  margin: 4px 0 8px;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ==========================================================================
   REQUEST BOARD (/requests)
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-tab {
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

.request-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  align-items: start;
}

.upvote-box {
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.upvote-box:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.upvote-box.upvoted {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.upvote-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-muted);
  margin-right: 6px;
  vertical-align: middle;
}

.status-dot.shipped {
  background: var(--ink);
}

.status-dot.building {
  background: var(--accent);
}

/* ==========================================================================
   PROFILE (/@handle)
   ========================================================================== */
.profile-header-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-id-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.profile-stats-row strong {
  color: var(--ink);
}

/* ==========================================================================
   MODALS, FORMS, TOASTS & MINI-PLAYER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 22px;
}

.modal-card.wide {
  max-width: 580px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
}

.tab-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.tab-btn {
  padding: 7px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--surface-2);
  color: var(--ink);
}

.field-group {
  margin-bottom: 13px;
}

.field-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.field-input,
.field-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9rem;
}

.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: var(--accent);
}

.glyph-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.glyph-opt {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}

.glyph-opt.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 260;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.84rem;
  max-width: 320px;
}

.toast.success {
  border-color: var(--accent-line);
}

.mini-player {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 150;
  width: min(640px, calc(100% - 28px));
  border-radius: 10px;
  background: rgba(18, 18, 21, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  padding: 8px 12px;
}

.mini-player-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-art {
  width: 48px;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  object-fit: cover;
}

.mini-info {
  min-width: 0;
  flex: 1;
}

.mini-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-sub {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-play-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: #09090b;
  font-size: 0.72rem;
  cursor: pointer;
}

.mini-seek {
  width: 110px;
  accent-color: var(--accent);
}

/* ==========================================================================
   FOOTER & STICKY MOBILE BOTTOM TAB BAR
   ========================================================================== */
.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  background: #070709;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.footer-copy {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

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

.footer-cols h4 {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.footer-cols a {
  display: block;
  padding: 3px 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.footer-cols a:hover {
  color: var(--ink);
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Sticky Mobile Bottom Tab Bar (hidden on desktop) */
.mobile-tabbar {
  display: none;
}

.boot-loader {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.boot-spinner {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--ink);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE — MOBILE-FIRST DENSITY (390x844 iPhone Target)
   ========================================================================== */
@media (max-width: 1024px) {
  .works-grid,
  .bundle-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-detail-grid,
  .crate-workbench,
  .pulse-grid,
  .chronicle-card,
  .audio-stage,
  .gallery-stage,
  .reader-layout {
    grid-template-columns: 1fr;
  }

  .reader-toc {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .reader-toc-item {
    flex-shrink: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 50px;
  }

  .container,
  .topbar-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .primary-nav,
  .crate-link {
    display: none;
  }

  .category-strip {
    display: block;
  }

  /* Compact Mobile Hero: strictly <= 46vh (target ~40vh = 338px on 844px iPhone) */
  .hero-stage {
    height: 40vh;
    min-height: 295px;
    max-height: 46vh;
  }

  .hero-content-wrap {
    padding-bottom: 16px;
    padding-top: 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-switcher {
    display: none;
  }

  .hero-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 3;
  }

  .hero-dot {
    width: 18px;
    height: 3px;
    border-radius: 3px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
  }

  .hero-dot.active {
    width: 26px;
    background: var(--ink);
  }

  .hero-meta-line {
    font-size: 0.74rem;
    margin-bottom: 4px;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .hero-desc {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    height: 36px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  /* Compact 2-Up Deal Strip on Mobile (~88px total height!) */
  .deal-strip {
    padding: 10px 0 4px;
  }

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

  .deal-tile {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 11px;
  }

  .deal-tile-thumb {
    display: none;
  }

  .deal-kicker {
    font-size: 0.68rem;
  }

  .deal-tile h2 {
    font-size: 0.85rem;
  }

  .deal-sub {
    display: none;
  }

  .deal-tile-cta {
    width: 100%;
  }

  .deal-tile-cta .btn {
    width: 100%;
    height: 28px;
    font-size: 0.74rem;
    padding: 0 10px;
  }

  /* First Browse Rail visible right on Screen 1! */
  .rail-section {
    padding: 14px 0 6px;
  }

  .section-header {
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 1.04rem;
  }

  .browse-rail {
    gap: 12px;
    margin-right: -16px;
    padding-right: 16px;
  }

  .browse-rail > .work-card {
    flex: 0 0 278px;
  }

  .works-grid,
  .universe-grid,
  .crate-pick-grid,
  .bundle-cards-grid,
  .specs-table {
    grid-template-columns: 1fr;
  }

  .chronicle-card {
    padding: 16px;
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .site-footer {
    padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom, 0px));
  }

  .mini-player {
    bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom, 0px));
  }

  .toast-stack {
    bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
  }

  /* Sticky Native-Feeling Mobile Bottom Tab Bar */
  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 160;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(9, 9, 11, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }

  .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--ink-muted);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    padding: 4px 2px;
  }

  .tab-item.active {
    color: var(--ink);
  }

  .tab-item.active svg {
    stroke: var(--accent);
  }

  .tab-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .tab-dot {
    position: absolute;
    top: -4px;
    right: -7px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--accent);
    color: #09090b;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .studio-frame-shell {
    height: 62vh;
    min-height: 380px;
  }
}
/* The interactive work is the stage, not a card inside the catalog column. */
.work-stage-banner:has(.studio-frame-shell){padding:0}.work-stage-banner:has(.studio-frame-shell)>.container{max-width:none;padding:0}.work-stage-banner:has(.studio-frame-shell) .stage-toolbar{max-width:var(--max-w);margin:0 auto;padding:8px 16px}.studio-frame-shell{border:0;border-radius:0;height:calc(100svh - var(--nav-h) - 115px);min-height:400px}.studio-frame-shell.is-fullscreen{height:100dvh;min-height:0}.studio-frame-shell iframe{display:block}.stage-exit{position:absolute;top:8px;right:12px;display:none}.is-fullscreen .stage-exit{display:block}@media(max-width:600px){.work-stage-banner:has(.studio-frame-shell) .stage-toolbar{gap:5px;padding:6px 12px}.studio-frame-shell{height:calc(100svh - 225px);min-height:370px}}
@media(max-width:600px){.work-stage-banner:has(.studio-frame-shell) .stage-toolbar .breadcrumb{overflow-wrap:anywhere}.work-stage-banner:has(.studio-frame-shell) .stage-toolbar .btn{white-space:nowrap}}
/* Click-to-play game stage (games are cross-origin, loaded only on demand) */
.game-launch{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;margin:0;background:#09090b;cursor:pointer;display:block;overflow:hidden}
.game-launch img{width:100%;height:100%;object-fit:cover;filter:brightness(.6) saturate(1.05);transition:filter .2s ease,transform .5s ease}
.game-launch:hover img,.game-launch:focus-visible img{filter:brightness(.74) saturate(1.1);transform:scale(1.012)}
.game-launch-cta{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:12px;padding:14px 28px;border-radius:999px;background:#f2f2f0;color:#0b0b0d;font-weight:600;font-size:1.05rem;letter-spacing:.01em;box-shadow:0 12px 40px rgba(0,0,0,.5)}
.game-launch-icon{font-size:.85rem}
.game-launch:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
.game-frame-shell iframe{position:relative;z-index:1}
@media (min-width:1024px){.universe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Multi-render galleries (Blender extensions): big 16:9 stage + thumbnail strip */
.gallery-stage.gallery-stage-multi{grid-template-columns:1fr;max-width:1040px;margin:0 auto}
.gallery-stage-multi .gallery-main{aspect-ratio:16/9}
.gallery-stage-multi .gallery-main img{object-fit:cover}
.gallery-stage-multi .gallery-side{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.gallery-stage-multi .gallery-thumb{aspect-ratio:16/9}
@media(max-width:600px){.gallery-stage-multi .gallery-side{gap:6px}}
