:root {
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

[data-theme="dark"] {
  --bg: #171b26;
  --surface: #202636;
  --surface-elevated: #283044;
  --surface-glass: rgba(30, 36, 52, 0.88);
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.28);
  --text: #f4f6fb;
  --text-muted: #a4aec4;
  --accent-bg: #f4f6fb;
  --accent-text: #141824;
  --shadow-lg: 0 24px 60px rgba(7, 9, 16, 0.5);
}

[data-theme="dark"] body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 90% 55% at 50% -12%, rgba(124, 138, 188, 0.14), transparent 72%);
  background-attachment: fixed;
}

[data-theme="light"] {
  --bg: #f3f4f7;
  --surface: #ffffff;
  --surface-elevated: #e9ebf0;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --border: rgba(12, 14, 18, 0.11);
  --border-strong: rgba(12, 14, 18, 0.3);
  --text: #0c0e12;
  --text-muted: #5d6370;
  --accent-bg: #0c0e12;
  --accent-text: #ffffff;
  --shadow-lg: 0 24px 60px rgba(12, 14, 18, 0.12);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

/* Keyboard Skip Link */
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #facc15;
  color: #090a0d;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 10px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stage-container:focus {
  outline: none;
}

.muted {
  color: var(--text-muted);
}

/* NASDAQ-Style Live Feed Above Header (Left -> Right) */
.nasdaq-ticker {
  position: relative;
  z-index: 32;
  height: 36px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow: hidden;
  user-select: none;
}

.ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 14px;
  border-right: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  z-index: 2;
}

.ticker-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.85);
}

.nasdaq-ticker.paused .ticker-pulse {
  opacity: 0.35;
  box-shadow: none;
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: tickerLeftToRight 85s linear infinite;
}

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

@keyframes tickerLeftToRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0%, 0, 0);
  }
}

.ticker-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 36px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
}

.ticker-quote:hover {
  background: var(--surface-elevated);
}

.tq-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  flex-shrink: 0;
}

.tq-user {
  font-weight: 700;
  color: var(--text);
}

.tq-sep {
  color: var(--text-muted);
}

.tq-top {
  color: var(--text);
  font-weight: 500;
}

.tq-thumbs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tq-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.tq-time {
  color: var(--text-muted);
  font-size: 10.5px;
}

.ticker-stop-btn {
  width: 38px;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 2;
}

.ticker-stop-btn:hover {
  background: var(--accent-bg);
  color: var(--accent-text);
}

/* Top Navigation Bar */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-triangle {
  width: 20px;
  height: 18px;
  color: var(--accent-bg);
  display: block;
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-tld {
  color: var(--text-muted);
  font-weight: 500;
}

.category-dock {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  scrollbar-width: none;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
}

.category-dock.is-scrollable:not(.at-end) {
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 84%, transparent 100%);
}

.category-dock::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.cat-btn:hover:not(:disabled):not(.active) {
  color: var(--text);
}

.cat-btn.active {
  background: transparent;
  color: var(--accent-text);
}

.cat-btn.is-soon,
.cat-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.soon-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

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

.span-pill {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
}

.span-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.span-btn.active {
  background: transparent;
  color: var(--accent-text);
}

/* Sliding Active Pill Indicator */
.switch-slider {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: var(--radius-pill);
  background: var(--accent-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    width 240ms cubic-bezier(0.22, 1, 0.36, 1),
    height 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease;
}

.switch-slider.ready {
  opacity: 1;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.x-follow-pill {
  color: var(--text-muted);
}

.x-follow-pill:hover {
  color: var(--text);
}

.icon-pill:hover {
  border-color: var(--border-strong);
}

/* Main Stage Container */
.stage-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px 32px 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Minimal Site Footer — always pinned to the very bottom of the viewport */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
  background: var(--bg);
  flex-shrink: 0;
}

.site-footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 32px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  justify-self: start;
  transition: color 140ms ease;
}

.footer-brand:hover {
  color: var(--text);
}

.footer-center {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  justify-self: center;
}

.footer-text-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-text-link:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.footer-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-btn:hover {
  color: var(--text);
}

/* Info Modal (About / Terms / Privacy / Copyright) */
.modal-info {
  width: min(560px, 100%);
}

.modal-head-tabs {
  align-items: center;
  margin-bottom: 18px;
}

.info-tabs {
  display: inline-flex;
  align-items: center;
  height: 36px;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 0;
  max-width: calc(100% - 48px);
  overflow-x: auto;
  scrollbar-width: none;
}

.info-tabs::-webkit-scrollbar {
  display: none;
}

.info-tab {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.info-tab:hover:not(.active) {
  color: var(--text);
}

.info-tab.active {
  background: var(--accent-bg);
  color: var(--accent-text);
}

.info-panels-stack {
  display: grid;
}

.info-panel {
  grid-area: 1 / 1;
  font-size: 14px;
  line-height: 1.55;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.info-panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.info-panel p {
  margin: 0 0 12px;
}

.info-panel a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-subhead {
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--text);
  margin-top: 16px !important;
  margin-bottom: 6px !important;
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
}

.legal-list strong {
  color: var(--text);
}

/* Shared Banner */
.shared-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.shared-bar > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.shared-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Centered Step 1 Masthead */
.masthead {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.masthead-row {
  display: grid;
  grid-template-columns: auto minmax(0, 760px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.masthead h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

/* Unified Tactile 3D Button Pattern (No Darkening on Hover) */
.btn-solid,
.btn-outline,
.icon-pill,
.btn-share-step3,
.btn-yellow,
.icon-close,
.ticker-stop-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -2px 0 rgba(0, 0, 0, 0.24),
    0 4px 12px rgba(0, 0, 0, 0.22);
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms ease;
}

.btn-solid:hover,
.btn-outline:hover,
.icon-pill:hover,
.btn-share-step3:hover,
.btn-yellow:hover,
.icon-close:hover,
.ticker-stop-btn:hover {
  transform: translateY(-1.5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.24),
    0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-solid:active,
.btn-outline:active,
.icon-pill:active,
.btn-share-step3:active,
.btn-yellow:active,
.icon-close:active,
.ticker-stop-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.28),
    0 1px 4px rgba(0, 0, 0, 0.18);
}

/* Unified Switch System (Categories, Time Span, Layouts, # / Aa) */
.cat-btn,
.span-btn,
.dock-btn,
.dock-chip {
  transition:
    background-color 170ms cubic-bezier(0.22, 1, 0.36, 1),
    color 170ms ease,
    border-color 170ms ease,
    transform 150ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 170ms ease;
}

.cat-btn:hover:not(:disabled):not(.active),
.span-btn:hover:not(.active),
.dock-btn:hover:not(.active),
.dock-chip:hover:not(.active) {
  color: var(--text);
  background: rgba(128, 128, 128, 0.12);
}

.cat-btn:active:not(:disabled),
.span-btn:active,
.dock-btn:active,
.dock-chip:active {
  transform: scale(0.96);
}

.cat-btn.active,
.span-btn.active,
.dock-btn.active {
  box-shadow: none;
}

.dock-chip.active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #facc15;
  color: #090a0d;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: none;
}

.dock-step-pill {
  height: 36px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
}

.fill-step-pill {
  height: 46px;
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: default;
  user-select: none;
}

.omni-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.omni-profile-wrap {
  flex: 0.92 1 215px;
  min-width: 0;
}

.omni-search-col {
  position: relative;
  flex: 1.15 1 250px;
  min-width: 0;
}

.omni-input-wrap {
  position: relative;
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 0 6px 0 4px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.omni-input-wrap:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--border);
}

.omni-inline-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.omni-inline-btn:hover:not(:disabled) {
  background: var(--accent-bg);
  color: var(--accent-text);
  border-color: var(--accent-bg);
}

.omni-inline-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.omni-inline-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.omni-inline-btn.is-loading svg {
  animation: spinIcon 0.85s linear infinite;
}

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

.user-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-bg);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  flex-shrink: 0;
  max-width: 150px;
}

.user-pill > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-pill-close {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.user-pill-close:hover {
  background: var(--accent-bg);
  color: var(--accent-text);
}

.omni-input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  min-width: 0;
  text-overflow: ellipsis;
}

.omni-input-wrap input::placeholder {
  color: var(--text-muted);
  text-overflow: ellipsis;
  opacity: 0.85;
}

.omni-clear {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0 6px;
  flex-shrink: 0;
}

.omni-profile-wrap input[readonly] {
  cursor: pointer;
}

.csv-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  margin-left: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.csv-pill:hover {
  background: var(--accent-bg);
  color: var(--accent-text);
  border-color: var(--accent-bg);
}

/* Smooth Non-Flicker Stage Switch Animation */
@keyframes stageCardIn {
  from {
    opacity: 0.88;
    transform: translate3d(0, 4px, 0) scale(0.996);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.stage-grid.is-switching .stage-card {
  animation: stageCardIn 170ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .stage-grid.is-switching .stage-card {
    animation: none;
  }
}

/* THE EXHIBITION STAGE: Fixed-Height Horizontal Showcase Strip (Zero Layout Jump) */
.exhibition-stage {
  height: clamp(460px, 58vh, 540px);
  min-height: 460px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.stage-grid {
  list-style: none;
  margin: 0;
  padding: 18px 8px 18px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.stage-grid:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: -2px;
  border-radius: 12px;
}

.stage-grid.hide-numbers .card-rank {
  display: none;
}

.stage-grid.hide-titles .card-caption {
  display: none;
}

.stage-grid.is-swiping {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.stage-grid.is-swiping .stage-card {
  cursor: grabbing;
}

[data-theme="light"] .stage-grid {
  scrollbar-color: rgba(12, 14, 18, 0.16) transparent;
}

/* Subtle Translucent Minimal Scrollbar */
.stage-grid::-webkit-scrollbar {
  height: 5px;
}

.stage-grid::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.stage-grid::-webkit-scrollbar-track {
  background: transparent;
}

.stage-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.stage-grid:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
}

[data-theme="light"] .stage-grid::-webkit-scrollbar-thumb {
  background: rgba(12, 14, 18, 0.14);
}

[data-theme="light"] .stage-grid:hover::-webkit-scrollbar-thumb {
  background: rgba(12, 14, 18, 0.28);
}

.stage-grid > :first-child {
  margin-left: auto;
}

.stage-grid > :last-child {
  margin-right: auto;
}

.stage-card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
  min-width: 0;
}

.stage-card.dragging {
  opacity: 0.35;
  transform: scale(0.96);
}

.stage-card.drop-target .media-object,
.stage-grid.layout-spines .stage-card.drop-target,
.stage-grid.layout-vhs .stage-card.drop-target {
  box-shadow: 0 0 0 2px #facc15, 0 14px 36px rgba(250, 204, 21, 0.28) !important;
  transform: translateY(-6px) scale(1.02);
}

/* Core Physical Media Building Blocks */
.media-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.media-object {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease;
}

.media-cover-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #101218;
}

.stage-grid[data-aspect="square"] .media-cover-wrap {
  aspect-ratio: 1 / 1;
}

.stage-grid[data-aspect="portrait"] .media-cover-wrap {
  aspect-ratio: 2 / 3;
}

.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.media-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.media-spine,
.media-pages,
.media-disc {
  display: none;
  pointer-events: none;
}

/* Card Reorder & Remove Controls */
.card-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  gap: 5px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.stage-card:hover .card-controls,
.stage-card:focus-within .card-controls {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  .card-controls {
    opacity: 1;
    transform: none;
  }
}

.ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(7, 8, 10, 0.84);
  color: #f5f6f8;
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.ctrl-btn:hover:not(:disabled) {
  background: #f5f6f8;
  color: #07080a;
}

.ctrl-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Shared External Meta — Large Legible Typography & Clean Open-Zero Rank Digits */
.media-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  min-width: 0;
  min-height: 60px;
}

.card-rank {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 0, "tnum" 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 2px 10px;
  border-radius: 9px;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  line-height: 1.35;
}

.card-caption {
  flex: 1;
  min-width: 0;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-creator {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================================
   HORIZONTAL CARD WIDTHS PER PHYSICAL MEDIUM (Generous Showcase Scale)
   ========================================================================= */
.stage-grid.layout-vinyl .stage-card {
  width: 368px;
}

.stage-grid.layout-cd .stage-card {
  width: 332px;
}

.stage-grid.layout-covers .stage-card {
  width: 298px;
}

.stage-grid.layout-posters .stage-card,
.stage-grid.layout-book-covers .stage-card,
.stage-grid.layout-game-covers .stage-card {
  width: 230px;
}

.stage-grid.layout-dvd .stage-card,
.stage-grid.layout-discs .stage-card {
  width: 286px;
}

.stage-grid.layout-cartridges .stage-card {
  width: 278px;
}

/* 1. VINYL (Songs & Albums) */
.stage-grid.layout-vinyl .media-stage {
  padding-right: 22%;
}

.stage-grid.layout-vinyl .media-object {
  border-radius: 4px;
  box-shadow:
    -2px 0 0 rgba(255, 255, 255, 0.14),
    0 18px 34px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .stage-grid.layout-vinyl .media-object {
  box-shadow:
    -2px 0 0 rgba(0, 0, 0, 0.08),
    0 16px 28px rgba(15, 18, 28, 0.18),
    0 4px 8px rgba(15, 18, 28, 0.1);
}

.stage-grid.layout-vinyl .media-sheen {
  background:
    /* Subtle authentic LP cardboard ring-wear impression */
    radial-gradient(circle at 50% 50%, transparent 61%, rgba(248, 241, 228, 0.04) 66%, rgba(248, 241, 228, 0.11) 69%, rgba(248, 241, 228, 0.04) 72.5%, transparent 76%),
    /* Soft cardboard corner scuffing */
    radial-gradient(circle at 0% 0%, rgba(248, 241, 228, 0.19) 0%, transparent 13%),
    radial-gradient(circle at 100% 0%, rgba(248, 241, 228, 0.15) 0%, transparent 11%),
    radial-gradient(circle at 0% 100%, rgba(248, 241, 228, 0.17) 0%, transparent 13%),
    radial-gradient(circle at 100% 100%, rgba(248, 241, 228, 0.13) 0%, transparent 11%),
    /* Worn spine crease & opening edge rubbing */
    linear-gradient(90deg, rgba(248, 241, 228, 0.22) 0%, rgba(255, 255, 255, 0.05) 3.2%, rgba(0, 0, 0, 0.22) 5.8%, transparent 10%, transparent 95%, rgba(248, 241, 228, 0.14) 98.2%, rgba(248, 241, 228, 0.24) 100%),
    linear-gradient(180deg, rgba(248, 241, 228, 0.16) 0%, transparent 3.8%, transparent 96%, rgba(248, 241, 228, 0.18) 100%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, transparent 38%, rgba(0, 0, 0, 0.15) 100%);
  box-shadow: inset 0 0 0 1px rgba(248, 241, 228, 0.15);
}

/* Authentic matte vinyl sleeve micro-scratches, soft uneven ring-wear & cardboard grain */
.stage-grid.layout-vinyl .media-cover-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.34;
  mix-blend-mode: screen;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.22'/%3E%3Ccircle cx='150' cy='150' r='134' fill='none' stroke='%23f6efe2' stroke-width='2.2' stroke-dasharray='32 26 18 38 42 30 20 34' opacity='0.22'/%3E%3Cg stroke='%23f7f0e4' stroke-linecap='round' opacity='0.24'%3E%3Cpath d='M8 42 L22 39 M5 124 L18 126 M7 234 L21 229' stroke-width='1.1'/%3E%3Cpath d='M280 66 L296 69 M284 186 L297 183 M276 262 L295 266' stroke-width='1'/%3E%3Cpath d='M62 7 L94 9 M196 6 L228 8 M84 293 L128 291' stroke-width='1.1'/%3E%3Cpath d='M52 90 L86 102 M198 214 L236 202' stroke-width='0.7' opacity='0.45'/%3E%3C/g%3E%3C/svg%3E");
}

.stage-grid.layout-vinyl .stage-card:nth-child(even) .media-cover-wrap::after {
  transform: scaleX(-1) rotate(90deg);
}

.stage-grid.layout-vinyl .stage-card:nth-child(3n) .media-cover-wrap::after {
  transform: scaleY(-1);
}

.stage-grid.layout-vinyl .media-disc {
  display: block;
  position: absolute;
  z-index: 1;
  right: 2%;
  top: 50%;
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(circle at center, #08090c 0 4%, #facc15 4.2% 17%, #eab308 17.2% 18.5%, #111318 18.8% 21%, transparent 21.2%),
    conic-gradient(from 25deg, rgba(255, 255, 255, 0.14) 0deg, transparent 38deg, transparent 150deg, rgba(255, 255, 255, 0.18) 195deg, transparent 235deg, rgba(255, 255, 255, 0.12) 340deg, rgba(255, 255, 255, 0.14) 360deg),
    repeating-radial-gradient(circle at center, #14161c 0px, #14161c 2px, #0b0c10 2.5px, #0b0c10 4.5px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 12px 24px rgba(0, 0, 0, 0.48);
}

.stage-grid.layout-vinyl .stage-card:hover .media-disc {
  transform: translateY(-50%) translateX(10%) rotate(28deg);
}

.stage-grid.layout-vinyl .stage-card:hover .media-object {
  transform: translateY(-4px);
}

.stage-grid.layout-vinyl .card-controls {
  right: 25%;
}

/* 2. CD JEWEL CASE (Songs & Albums) */
.stage-grid.layout-cd .media-object {
  border-radius: 7px;
  padding: 4px 5px 4px 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .stage-grid.layout-cd .media-object {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(226, 230, 238, 0.85));
  border: 1px solid rgba(15, 18, 28, 0.18);
  box-shadow:
    0 16px 28px rgba(15, 18, 28, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stage-grid.layout-cd .media-spine {
  display: block;
  width: 11.5%;
  flex-shrink: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(0, 0, 0, 0.35) 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.16) 0px,
      rgba(255, 255, 255, 0.16) 2px,
      rgba(0, 0, 0, 0.38) 2px,
      rgba(0, 0, 0, 0.38) 5px
    );
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .stage-grid.layout-cd .media-spine {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(15, 18, 28, 0.06) 45%, rgba(15, 18, 28, 0.18) 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(15, 18, 28, 0.08) 0px,
      rgba(15, 18, 28, 0.08) 2px,
      rgba(255, 255, 255, 0.65) 2px,
      rgba(255, 255, 255, 0.65) 5px
    );
  border-right: 1px solid rgba(15, 18, 28, 0.16);
}

.stage-grid.layout-cd .media-sheen {
  z-index: 4;
  background:
    /* Crisp diagonal polycarbonate jewel-case glare */
    linear-gradient(126deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.18) 14%, rgba(255, 255, 255, 0.05) 25%, transparent 26.5%),
    /* Classic secondary jewel-case light ribbon */
    linear-gradient(126deg, transparent 32%, rgba(255, 255, 255, 0.24) 36.5%, rgba(255, 255, 255, 0.07) 42%, transparent 44.5%),
    /* Fine specular glint & lower-right bounce */
    linear-gradient(126deg, transparent 50%, rgba(255, 255, 255, 0.1) 52.5%, transparent 55%, transparent 80%, rgba(255, 255, 255, 0.14) 93%, rgba(255, 255, 255, 0.24) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 14%, transparent 86%, rgba(0, 0, 0, 0.24) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 1px 0 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26);
}

.stage-grid.layout-cd .stage-card:hover .media-object {
  transform: translateY(-6px);
}

/* 3. CLEAN COVERS / POSTERS / GAME COVERS */
.stage-grid.layout-covers .media-object,
.stage-grid.layout-posters .media-object,
.stage-grid.layout-game-covers .media-object {
  border-radius: 10px;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.42),
    0 3px 10px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .stage-grid.layout-covers .media-object,
[data-theme="light"] .stage-grid.layout-posters .media-object,
[data-theme="light"] .stage-grid.layout-game-covers .media-object {
  box-shadow:
    0 14px 26px rgba(15, 18, 28, 0.16),
    0 3px 8px rgba(15, 18, 28, 0.08);
}

.stage-grid.layout-covers .media-sheen,
.stage-grid.layout-posters .media-sheen,
.stage-grid.layout-game-covers .media-sheen {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 36%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.stage-grid.layout-covers .stage-card:hover .media-object,
.stage-grid.layout-posters .stage-card:hover .media-object,
.stage-grid.layout-game-covers .stage-card:hover .media-object {
  transform: translateY(-6px) scale(1.015);
}

/* 4. VHS & 7. BOOK SPINES — Seamless Vertical Spines + Fixed Below-Spine Rank Slot (Zero Shift) */
.stage-grid.layout-vhs,
.stage-grid.layout-spines {
  align-items: flex-end;
  gap: 8px;
  padding: 18px 8px 18px;
  border-bottom: 0;
  background: transparent;
}

.stage-grid.layout-vhs .stage-card,
.stage-grid.layout-spines .stage-card {
  width: 92px;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.stage-grid.layout-vhs .stage-card {
  width: 94px;
}

/* Authentic retro VHS cardboard slipcase wear: frayed top/bottom lips, rubbed fold creases & shelf scuffs */
.stage-grid.layout-vhs .spine-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    /* Frayed top & bottom cardboard slipcase edges */
    linear-gradient(180deg, rgba(252, 245, 232, 0.42) 0%, rgba(252, 245, 232, 0.16) 2.2%, transparent 5.6%, transparent 94%, rgba(252, 245, 232, 0.18) 97.6%, rgba(252, 245, 232, 0.44) 100%),
    /* Rubbed vertical fold creases along left & right edges */
    linear-gradient(90deg, rgba(252, 245, 232, 0.32) 0%, rgba(252, 245, 232, 0.12) 4.8%, transparent 11%, transparent 89%, rgba(252, 245, 232, 0.14) 95.2%, rgba(252, 245, 232, 0.34) 100%),
    /* Worn slipcase corners */
    radial-gradient(circle at 0% 0%, rgba(252, 245, 232, 0.36) 0%, transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(252, 245, 232, 0.32) 0%, transparent 20%),
    radial-gradient(circle at 0% 100%, rgba(252, 245, 232, 0.36) 0%, transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(252, 245, 232, 0.32) 0%, transparent 20%),
    /* Fine shelf-wear horizontal scratches & analog cardboard grain */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 380'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100' height='380' filter='url(%23v)' opacity='0.14'/%3E%3Cg stroke='%23fbf3e4' stroke-linecap='round' opacity='0.18'%3E%3Cpath d='M3 24 L22 23 M76 54 L97 56 M4 114 L28 112 M68 166 L96 168 M6 226 L24 228 M64 292 L95 290 M4 342 L26 344' stroke-width='1'/%3E%3Cpath d='M5 42 L5 96 M5 190 L5 268 M95 72 L95 154 M95 246 L95 332' stroke-width='1.4' stroke-dasharray='14 9 22 12' opacity='0.7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  mix-blend-mode: screen;
  opacity: 0.66;
}

.stage-grid.layout-vhs .stage-card:nth-child(even) .spine-shell::after {
  transform: scaleX(-1);
}

.stage-grid.layout-vhs .stage-card:nth-child(3n) .spine-shell::after {
  transform: scaleY(-1);
}

.stage-grid.layout-spines .stage-card:nth-child(odd) {
  width: 86px;
}

.stage-grid.layout-spines .stage-card:nth-child(3n) {
  width: 98px;
}

.spine-shell {
  width: 100%;
  height: 368px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--spine-bg, #1a1e28);
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 8px 16px;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
  box-shadow:
    inset 8px 0 14px rgba(0, 0, 0, 0.44),
    inset -7px 0 12px rgba(0, 0, 0, 0.48),
    inset 16px 0 10px rgba(255, 255, 255, 0.16),
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    0 16px 28px rgba(0, 0, 0, 0.42);
}

[data-theme="light"] .spine-shell {
  box-shadow:
    inset 8px 0 14px rgba(0, 0, 0, 0.36),
    inset -7px 0 12px rgba(0, 0, 0, 0.4),
    inset 16px 0 10px rgba(255, 255, 255, 0.2),
    0 14px 26px rgba(15, 18, 28, 0.22);
}

.stage-grid.layout-spines .stage-card:nth-child(odd) .spine-shell {
  height: 378px;
}

.stage-grid.layout-spines .stage-card:nth-child(3n) .spine-shell {
  height: 358px;
}

.stage-grid.layout-vhs .stage-card:hover .spine-shell,
.stage-grid.layout-spines .stage-card:hover .spine-shell {
  transform: translateY(-10px);
}

.stage-grid.layout-vhs .stage-card.drop-target .spine-shell,
.stage-grid.layout-spines .stage-card.drop-target .spine-shell {
  box-shadow: 0 0 0 2px #facc15, 0 14px 36px rgba(250, 204, 21, 0.28) !important;
  transform: translateY(-6px) scale(1.02);
}

/* Fixed-height rank slot strictly BELOW the spine — never collapses when # is toggled off */
.spine-rank-slot {
  height: 34px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
}

/* Deep cover-derived ambient texture across full spine */
.spine-bg-img {
  position: absolute;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  object-fit: cover;
  filter: blur(12px) saturate(1.2) brightness(0.42);
  z-index: 0;
  pointer-events: none;
}

/* Seamless full-bleed top cover art fading organically into the spine body */
.spine-art-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 39%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 46%, rgba(0, 0, 0, 0.5) 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 46%, rgba(0, 0, 0, 0.5) 74%, transparent 100%);
}

.spine-shell .card-controls {
  top: 6px;
  left: 4px;
  right: 4px;
  justify-content: center;
  gap: 3px;
}

.spine-shell .ctrl-btn {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.spine-shell .card-caption {
  position: relative;
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: end;
  max-height: 58%;
  overflow: hidden;
  gap: 4px;
}

.spine-shell .card-title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
  font-size: 18px;
  line-height: 1.1;
  -webkit-line-clamp: unset;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 100%;
  text-align: end;
}

.spine-shell .card-creator {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.72);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 100%;
  text-align: end;
}

/* 5. DVD & GAME DISCS — Glossy Keep Case + Peeking Iridescent Optical Disc */
.stage-grid.layout-dvd .media-stage,
.stage-grid.layout-discs .media-stage {
  padding-right: 19%;
}

.stage-grid.layout-dvd .media-object,
.stage-grid.layout-discs .media-object {
  border-radius: 4px 10px 10px 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
}

.stage-grid.layout-dvd .media-spine,
.stage-grid.layout-discs .media-spine {
  display: block;
  width: 8%;
  flex-shrink: 0;
  background: linear-gradient(90deg, #161922 0%, #343b4b 38%, #0b0d12 78%, rgba(255, 255, 255, 0.22) 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.55);
}

.stage-grid.layout-dvd .media-cover-wrap::before,
.stage-grid.layout-discs .media-cover-wrap::before {
  content: 'DVD';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 18px;
  display: grid;
  place-items: center;
  background: rgba(12, 15, 22, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.stage-grid.layout-discs .media-cover-wrap::before {
  content: 'DVD-ROM';
  background: rgba(12, 15, 22, 0.9);
  color: rgba(255, 255, 255, 0.84);
}

.stage-grid.layout-dvd .media-sheen,
.stage-grid.layout-discs .media-sheen {
  z-index: 4;
  background:
    /* Glossy keep-case clear plastic sleeve reflection */
    linear-gradient(124deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.16) 15%, rgba(255, 255, 255, 0.04) 26%, transparent 27.5%),
    /* Secondary diagonal plastic wrap glare band */
    linear-gradient(124deg, transparent 33%, rgba(255, 255, 255, 0.22) 37.5%, rgba(255, 255, 255, 0.06) 43%, transparent 45.5%),
    /* Fine glint & bottom-right edge bounce */
    linear-gradient(124deg, transparent 52%, rgba(255, 255, 255, 0.09) 54.5%, transparent 57%, transparent 80%, rgba(255, 255, 255, 0.13) 93%, rgba(255, 255, 255, 0.22) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 15%, transparent 87%, rgba(0, 0, 0, 0.22) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.stage-grid.layout-dvd .media-disc,
.stage-grid.layout-discs .media-disc {
  display: block;
  position: absolute;
  z-index: 1;
  right: 1%;
  top: 50%;
  width: 66%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(circle at center, #080a0f 0 11%, rgba(255, 255, 255, 0.45) 11.5% 24%, transparent 25%),
    conic-gradient(from 30deg, #475569, #cbd5e1, #93c5fd 90deg, #facc15 145deg, #f0abfc 205deg, #e2e8f0 270deg, #475569);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 12px 24px rgba(0, 0, 0, 0.48);
}

.stage-grid.layout-dvd .stage-card:hover .media-disc,
.stage-grid.layout-discs .stage-card:hover .media-disc {
  transform: translateY(-50%) translateX(12%) rotate(30deg);
}

.stage-grid.layout-dvd .stage-card:hover .media-object,
.stage-grid.layout-discs .stage-card:hover .media-object {
  transform: translateY(-4px);
}

.stage-grid.layout-dvd .card-controls,
.stage-grid.layout-discs .card-controls {
  right: 22%;
}

/* 6. BOOK COVERS (Hardcover with Embossed Spine + Cream Paper Pages) */
.stage-grid.layout-book-covers .media-object {
  border-radius: 3px 8px 8px 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.46);
}

.stage-grid.layout-book-covers .media-spine {
  display: block;
  width: 6.5%;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.44) 0%, rgba(255, 255, 255, 0.2) 38%, rgba(0, 0, 0, 0.45) 75%, rgba(255, 255, 255, 0.1) 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.45);
}

.stage-grid.layout-book-covers .media-pages {
  display: block;
  width: 8px;
  flex-shrink: 0;
  background: repeating-linear-gradient(90deg, #f2efe7 0px, #f2efe7 1px, #cfc9bc 1px, #cfc9bc 2px);
  box-shadow: inset 2px 0 3px rgba(0, 0, 0, 0.28);
}

.stage-grid.layout-book-covers .media-sheen {
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.16) 0%, transparent 32%);
}

.stage-grid.layout-book-covers .stage-card:hover .media-object {
  transform: translateY(-6px);
}

/* 8. GAME CARTRIDGES (Molded Plastic Cartridge Shell + Recessed Sticker Art) */
.stage-grid.layout-cartridges .media-object {
  flex-direction: column;
  padding: 28px 14px 24px;
  border-radius: 10px 26px 8px 8px;
  background: linear-gradient(155deg, #353e52 0%, #232939 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -4px 0 rgba(0, 0, 0, 0.42),
    0 18px 34px rgba(6, 8, 16, 0.48);
}

[data-theme="light"] .stage-grid.layout-cartridges .media-object {
  background: linear-gradient(155deg, #dfe3eb 0%, #c6ccd8 100%);
  border: 1px solid rgba(15, 18, 28, 0.18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -4px 0 rgba(15, 18, 28, 0.14),
    0 14px 26px rgba(15, 18, 28, 0.16);
}

/* Top cartridge grip grooves */
.stage-grid.layout-cartridges .media-object::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 14px;
  right: 26px;
  height: 12px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42) 0px,
    rgba(0, 0, 0, 0.42) 2px,
    transparent 2px,
    transparent 5px
  );
  border-radius: 2px;
}

[data-theme="light"] .stage-grid.layout-cartridges .media-object::before {
  background: repeating-linear-gradient(
    to bottom,
    rgba(15, 18, 28, 0.18) 0px,
    rgba(15, 18, 28, 0.18) 2px,
    transparent 2px,
    transparent 5px
  );
}

/* Bottom insertion arrow */
.stage-grid.layout-cartridges .media-object::after {
  content: '▼';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(0, 0, 0, 0.48);
}

[data-theme="light"] .stage-grid.layout-cartridges .media-object::after {
  color: rgba(15, 18, 28, 0.25);
}

.stage-grid.layout-cartridges .media-cover-wrap {
  aspect-ratio: 4 / 5 !important;
  border-radius: 7px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.32);
}

.stage-grid.layout-cartridges .media-sheen {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.2) 0%, transparent 38%);
}

.stage-grid.layout-cartridges .stage-card:hover .media-object {
  transform: translateY(-6px);
}

/* Bottom Docks: Vertically centered between the stage scrollbar and footer divider */
.floating-docks-wrap {
  position: sticky;
  bottom: 14px;
  z-index: 35;
  margin: auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}

@media (max-width: 960px), (max-height: 820px) {
  .floating-docks-wrap {
    position: static;
  }
}

.order-chip {
  width: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.dock-capsule {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 24px);
}

.dock-capsule .span-pill {
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.dock-capsule .span-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
}

.dock-group {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
}

.dock-divider {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.dock-btn,
.dock-chip {
  position: relative;
  z-index: 1;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.dock-chip {
  font-family: var(--font-mono);
  border-color: var(--border);
  padding: 0 12px;
}

.dock-btn:hover,
.dock-chip:hover {
  color: var(--text);
}

.dock-btn.active {
  background: transparent;
  color: var(--accent-text);
}

.dock-chip.active {
  background: var(--accent-bg);
  color: var(--accent-text);
}

.btn-share-step3 {
  height: 56px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  color: #090a0d;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  color: #090a0d;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Buttons & Tags */
.mono-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.btn-solid,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-solid {
  border: 1px solid var(--accent-bg);
  background: var(--accent-bg);
  color: var(--accent-text);
}

.btn-solid:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
}

.modal-card {
  width: min(580px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-wide {
  width: min(940px, 100%);
}

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

.modal-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
}

.icon-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.modal-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 16px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.share-back-btn:hover {
  border-color: var(--text);
}

.share-modal-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.share-preview-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg);
  padding: 0;
  min-width: 0;
}

.share-card-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 630;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.share-card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.share-card-preview-wrap .export-strip-loading {
  position: absolute;
  inset: 0;
  height: 100%;
}

.feed-optin-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  margin-top: 2px;
}

.feed-optin-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #facc15;
  cursor: pointer;
  flex-shrink: 0;
}

.share-cta-right {
  justify-content: flex-end;
  margin-top: 4px;
}

.share-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 8px;
}

.share-link-head .share-sub-heading {
  margin: 0;
}

.share-delete-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.share-delete-btn:hover:not(:disabled) {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.08);
}

.share-delete-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.share-sub-heading {
  margin: 2px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.link-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-bottom-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
}

.share-create-btn {
  min-width: 102px;
  flex-shrink: 0;
}

.open-page-slot {
  width: 136px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

.open-page-btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 180ms ease, transform 180ms ease;
}

.open-page-btn.is-empty {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
}

.export-strip-loading {
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 12px 0 6px;
}

.share-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-author-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.share-text-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
}

.share-text-input:focus {
  border-color: var(--text);
}

/* Dedicated Short Link Page (/l/<id>) */
.shared-top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 9px 18px;
  font-size: 13.5px;
}

.shared-page-main {
  padding-top: 32px;
  padding-bottom: 48px;
}

.shared-page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 28px;
}

.shared-page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.shared-byline {
  font-size: 13.5px;
}

.shared-author-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shared-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.shared-readonly-card {
  cursor: grab;
}

.shared-page-main .exhibition-stage {
  height: clamp(490px, 60vh, 560px);
  min-height: 490px;
}

.card-stream-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.stream-link {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-muted);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.stream-link:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: var(--text);
}

.stream-spotify:hover {
  color: #1ed760;
  border-color: rgba(30, 215, 96, 0.55);
  background: rgba(30, 215, 96, 0.1);
}

.stream-apple:hover {
  color: #fa2d48;
  border-color: rgba(250, 45, 72, 0.55);
  background: rgba(250, 45, 72, 0.1);
}

.stream-youtube:hover {
  color: #ff0033;
  border-color: rgba(255, 0, 51, 0.55);
  background: rgba(255, 0, 51, 0.1);
}

.shared-page-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.shared-page-actions a.btn-outline {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.shared-not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

@media (max-width: 560px) {
  .modal-backdrop {
    padding: 8px;
  }

  .modal-card {
    padding: 14px;
  }

  .share-author-row {
    grid-template-columns: 1fr;
  }

  .link-bottom-row {
    flex-wrap: wrap;
  }

  .open-page-slot {
    width: auto;
    flex: 1;
  }
}

/* Toast */
.toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #facc15;
  color: #090a0d;
  border: 1px solid rgba(0, 0, 0, 0.22);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  max-width: calc(100vw - 24px);
}

.toast-undo-btn {
  border: 1px solid rgba(9, 10, 13, 0.35);
  background: rgba(9, 10, 13, 0.12);
  color: #090a0d;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.toast-undo-btn:hover {
  background: #090a0d;
  color: #facc15;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .masthead-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 960px) {
  .nav-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .category-dock {
    order: 3;
    width: 100%;
  }
}

@media (pointer: coarse), (max-width: 720px) {
  .footer-btn {
    padding: 8px 6px;
  }

  .ctrl-btn {
    width: 32px;
    height: 32px;
  }

  .spine-shell .ctrl-btn {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .category-dock {
    order: 3;
    width: 100%;
  }

  .stage-container {
    padding: 22px 16px 0;
  }

  .site-footer-inner {
    padding: 18px 16px 26px;
    grid-template-columns: 1fr auto;
    row-gap: 12px;
  }

  .footer-brand {
    justify-self: start;
  }

  .footer-center {
    grid-column: auto;
    order: 2;
    justify-self: end;
  }

  .footer-links {
    grid-column: 1 / -1;
    order: 3;
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .omni-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .fill-step-pill {
    height: 42px;
    padding: 0 14px;
    font-size: 13.5px;
  }

  .omni-profile-wrap {
    flex: 1 1 180px;
    height: 42px;
  }

  .omni-search-col {
    flex: 1 1 100%;
  }

  .omni-item-wrap {
    height: 42px;
  }

  .omni-input-wrap {
    width: 100%;
  }

  /* Fixed-Height Horizontal Showcase on Mobile */
  .exhibition-stage {
    height: 365px;
    min-height: 365px;
  }

  .shared-page-main .exhibition-stage {
    height: 398px;
    min-height: 398px;
  }

  .stage-grid {
    gap: 16px;
    padding: 12px 4px 10px;
  }

  .stage-grid.layout-vinyl .stage-card {
    width: 266px;
  }

  .stage-grid.layout-cd .stage-card {
    width: 244px;
  }

  .stage-grid.layout-covers .stage-card {
    width: 224px;
  }

  .stage-grid.layout-posters .stage-card,
  .stage-grid.layout-book-covers .stage-card,
  .stage-grid.layout-game-covers .stage-card {
    width: 170px;
  }

  .stage-grid.layout-dvd .stage-card,
  .stage-grid.layout-discs .stage-card {
    width: 212px;
  }

  .stage-grid.layout-cartridges .stage-card {
    width: 206px;
  }

  .stage-grid.layout-vhs,
  .stage-grid.layout-spines {
    gap: 6px;
    padding: 10px 10px 14px;
  }

  .stage-grid.layout-vhs .stage-card,
  .stage-grid.layout-spines .stage-card {
    width: 72px;
  }

  .stage-grid.layout-spines .stage-card:nth-child(odd) {
    width: 68px;
  }

  .stage-grid.layout-spines .stage-card:nth-child(3n) {
    width: 76px;
  }

  .spine-shell {
    height: 274px;
  }

  .stage-grid.layout-spines .stage-card:nth-child(odd) .spine-shell {
    height: 282px;
  }

  .stage-grid.layout-spines .stage-card:nth-child(3n) .spine-shell {
    height: 266px;
  }

  .spine-rank-slot {
    height: 30px;
    margin-top: 8px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-creator {
    font-size: 13px;
  }

  .card-rank {
    font-size: 14.5px;
  }

  .dock-divider {
    display: none;
  }

  .floating-docks-wrap {
    position: static;
    margin: auto;
    padding: 18px 0;
  }

  .dock-capsule {
    padding: 8px 10px;
    gap: 6px;
    border-radius: 22px;
  }

  .btn-share-step3 {
    width: 100%;
    height: 46px;
    font-size: 14px;
  }

  .card-controls {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 440px) {
  .x-handle {
    display: none;
  }

  .nav-inner {
    padding: 10px 12px;
    row-gap: 8px;
  }

  .stage-container {
    padding: 14px 12px 0;
  }

  .masthead {
    margin-bottom: 10px;
  }

  .masthead-row {
    gap: 10px;
  }

  .exhibition-stage {
    margin-top: 8px;
    height: 310px;
    min-height: 310px;
  }

  .shared-page-main .exhibition-stage {
    height: 344px;
    min-height: 344px;
  }

  .stage-grid.layout-vinyl .stage-card {
    width: 232px;
  }

  .stage-grid.layout-cd .stage-card {
    width: 214px;
  }

  .stage-grid.layout-covers .stage-card {
    width: 196px;
  }

  .floating-docks-wrap {
    padding: 10px 0 14px;
    gap: 8px;
  }

  .dock-capsule {
    padding: 6px 8px;
    gap: 5px;
    max-width: 100%;
  }

  .dock-capsule .span-btn,
  .dock-btn {
    padding: 0 9px;
    font-size: 12.5px;
    height: 32px;
  }

  .dock-chip {
    height: 32px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .dock-step-pill {
    height: 30px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .btn-share-step3 {
    height: 44px;
  }
}
