:root {
  --accent: #d4af37;
  --accent-soft: #e8c547;
  --accent-glow: rgba(212, 175, 55, 0.45);
  --gold: #d4af37;
  --silver: #c0c5ce;
  --silver-bright: #e8eaed;
  --text: #ffffff;
  --muted: #c0c5ce;
  --radius: 14px;
  --duotone-h: 32px;
  --chrome-row-h: 48px;
  --edge-pad: 2.5mm;
  --pad-mm: 3.6mm;
  --gap-art-below-logo: 5.2mm;
  --gap-art-to-info: 6.1mm;
  --gap-dock: 3.6mm;
  --info-pad-v: 6px;
  --info-pad-h: 8px;
  --dock-actions-h: 40px;
  --dock-thumbs-h: 46px;
  --dock-cats-h: calc(33px * 1.15);
  --cat-bar-pad-bottom: 8px;
  /* Wall try-room: full bleed behind info + dock (UI floats above at z-index 46+) */
  --wall-bleed-top: calc(var(--duotone-h) + 32px + var(--chrome-row-h) + var(--gap-art-below-logo));
  --wall-bleed-bottom: calc(
    var(--dock-cats-h) + var(--cat-bar-pad-bottom) + 12px + max(2px, env(safe-area-inset-bottom, 2px))
  );
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  width: 100%;
  background: #0a0a0c;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  overflow: hidden;
  position: fixed;
  inset: 0;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #e8eaed 0%, #c0c5ce 45%, #b0b5be 100%);
}

.splash-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.splash-logo {
  max-width: min(220px, 70vw);
  max-height: 88px;
  object-fit: contain;
  display: none;
}

.splash-logo.loaded {
  display: block;
}

.splash-logo.loaded + .splash-fallback {
  display: none;
}

.splash-fallback {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: none;
}

.splash.splash-paint {
  animation: splashPaintOut 0.55s ease forwards;
  pointer-events: none;
}

@keyframes splashPaintOut {
  0% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    filter: blur(6px);
  }
}

body.app-ready .app {
  animation: appPaintIn 0.65s ease forwards;
}

@keyframes appPaintIn {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.app {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
  overflow: hidden;
  opacity: 0;
}

.top-strip {
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  width: 100%;
  isolation: isolate;
}

.top-duotone {
  display: block;
  position: relative;
  z-index: 2;
  height: var(--duotone-h);
  min-height: var(--duotone-h);
  width: 100%;
  background: linear-gradient(
    90deg,
    #b8860b 0%,
    #d4af37 32%,
    #e8c547 48%,
    #c0c5ce 72%,
    #a8adb8 100%
  );
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

/* Blur bridge: own row below bar, above logo/Explore — does not overlap icons */
.top-duotone-blur {
  flex-shrink: 0;
  width: 100%;
  height: 32px;
  pointer-events: none;
  z-index: 2;
  position: relative;
  overflow: hidden;
}

.top-duotone-blur::before {
  content: "";
  position: absolute;
  inset: -8px 0 0;
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  background: linear-gradient(
    to bottom,
    rgba(212, 175, 55, 0.55) 0%,
    rgba(212, 175, 55, 0.28) 35%,
    rgba(192, 197, 206, 0.18) 65%,
    rgba(192, 197, 206, 0) 100%
  );
  mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
}

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4af37, #e8c547, #c0c5ce);
  transition: width 0.25s ease;
}

.top-chrome {
  position: relative;
  z-index: 48;
  flex-shrink: 0;
  width: 100%;
  height: var(--chrome-row-h);
  min-height: var(--chrome-row-h);
  max-height: var(--chrome-row-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 16px;
  background: transparent;
}

.top-chrome .logo-unit,
.top-chrome .icon-btn-compass {
  transform: none;
}

.logo-unit {
  flex: 0 0 auto;
  width: auto;
  max-width: 100px;
  min-width: 0;
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  flex-shrink: 0;
  box-shadow: none;
  cursor: pointer;
  color: var(--silver-bright);
  font: inherit;
}

.logo-img {
  max-height: 36px;
  max-width: 150px;
  object-fit: contain;
  display: none;
}

.logo-img.loaded {
  display: block;
}

.logo-img.loaded + .logo-fallback {
  display: none;
}

.logo-unit:not(:has(.logo-img.loaded)) .logo-fallback {
  display: block;
}

.logo-fallback {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--silver-bright);
  text-transform: none;
}

.icon-btn {
  border: 1px solid var(--gold);
  background: rgba(12, 12, 14, 0.55);
  color: var(--silver-bright);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.icon-btn-compass {
  flex: 0 0 35px;
  margin-left: 0;
}

.compass-icon {
  width: 19px;
  height: 19px;
  display: block;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  isolation: isolate;
  overscroll-behavior: none;
}

.viewport > .blur-backdrop {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) scale(1.12);
  width: min(580px, 100vw);
  top: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(50px) saturate(1.2) brightness(0.88);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease, background-image 0.3s ease;
  pointer-events: none;
}

.blur-backdrop {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.viewport > .blur-backdrop.visible {
  opacity: 1;
}

/* Stage — only the hero flexes; chrome + dock stay fixed */
.stage-wrap {
  flex: 1 1 0;
  position: relative;
  min-height: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  touch-action: none;
}

.hero-area {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--gap-art-below-logo) var(--edge-pad) var(--gap-art-to-info);
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-frame {
  position: relative;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: transparent;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  background: rgba(0, 0, 0, 0.2);
}

.hero-frame.is-expanded {
  aspect-ratio: auto;
  height: 100%;
  max-height: 100%;
  width: 100%;
  border-radius: 4px;
}

.hero-frame.is-expanded .hero-img {
  height: 100%;
  width: auto;
  max-width: none;
  min-width: 0;
  object-fit: contain;
  object-position: center center;
}

.hero-frame.is-expanded,
.hero-frame.is-panning {
  cursor: grab;
}

.hero-frame.is-panning {
  cursor: grabbing;
}

.hero-img.hidden {
  display: none;
}

.hero-wall-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.hero-wall-preview.hidden {
  display: none;
}

.wall-room,
.try-room {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.35);
}

.wall-art-slot,
.try-art-slot {
  position: absolute;
  touch-action: none;
  box-sizing: border-box;
  border: 2px solid #d4af37;
  box-shadow:
    1mm 0 1.2mm rgba(0, 0, 0, 0.38),
    -1mm 0 1.2mm rgba(0, 0, 0, 0.38),
    0 0 0 1px #8b6914,
    0 8px 22px rgba(0, 0, 0, 0.32);
  background: rgba(12, 10, 8, 0.85);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wall-art-img,
.try-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.hero-frame.is-wall-view .wall-art-slot {
  border-width: 2px;
  box-shadow: 0 0 0 1px #8b6914, 0 6px 18px rgba(0, 0, 0, 0.3);
}

.hero-frame.is-wall-view {
  border-radius: 6px;
  overflow: hidden;
}

.hero-frame.is-wall-view .hero-wall-preview {
  display: block;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hero-frame.is-wall-view .wall-room {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.hero-wall-preview.wall-soft-in .wall-room {
  animation: wallRoomFadeIn 0.55s ease both;
}

.hero-wall-preview.wall-soft-in .wall-art-slot {
  opacity: 0;
  animation: wallArtSlotIn 0.4s ease 0.48s forwards;
}

@keyframes wallRoomFadeIn {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}

@keyframes wallArtSlotIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Wall transition + settled wall: same full-bleed rect (room runs behind info card) */
.wall-transition {
  position: fixed;
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
  width: min(580px, 100vw);
  top: var(--wall-bleed-top);
  bottom: var(--wall-bleed-bottom);
  pointer-events: none;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.wall-transition.hidden {
  display: none !important;
}

.wall-transition-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity 0.55s ease;
  background: rgba(0, 0, 0, 0.35);
}

.wall-transition.room-visible .wall-transition-room {
  opacity: 1;
}

.wall-transition-art {
  position: fixed;
  z-index: 6;
  object-fit: contain;
  object-position: center;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  display: block;
}

.wall-transition-art.is-wall-framed {
  border: 2px solid var(--gold);
  box-shadow:
    1mm 0 1.2mm rgba(0, 0, 0, 0.4),
    -1mm 0 1.2mm rgba(0, 0, 0, 0.4),
    0 8px 22px rgba(0, 0, 0, 0.35);
}

.viewport.is-wall-stage .stage-wrap {
  flex: 1 1 0;
  min-height: 0;
}

.viewport.is-wall-stage .hero-area {
  flex: 1 1 0;
  min-height: 0;
  padding: 0;
  pointer-events: none;
}

.viewport.is-wall-stage .hero-frame.is-wall-view {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(580px, 100vw);
  top: var(--wall-bleed-top);
  bottom: var(--wall-bleed-bottom);
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  flex: none;
  margin: 0;
  z-index: 5;
  box-shadow: none;
  border-radius: 0;
}

.wall-transition.is-fading {
  transition: opacity 0.32s ease;
  opacity: 0;
}

.ar-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  left: 0;
  right: 0;
  background: #000;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.ar-screen.hidden {
  display: none !important;
}

.ar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.ar-art-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 72px;
}

.ar-art-frame {
  transform-origin: center center;
  will-change: transform;
  max-width: min(92vw, 520px);
  max-height: min(58vh, 420px);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(139, 105, 20, 0.85), 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 3px;
  background: rgba(8, 8, 10, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ar-art-img {
  display: block;
  max-width: 100%;
  max-height: min(56vh, 400px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.ar-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.ar-action-btn {
  min-width: 120px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 12, 14, 0.82);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.ar-action-photo {
  border-color: var(--gold);
  color: var(--gold);
}

/* Glass bottom sheets */
.glass-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 102;
  width: min(520px, 100vw);
  max-height: 70dvh;
  overflow-y: auto;
  padding: 12px 20px max(24px, env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: rgba(40, 40, 48, 0.55);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
}

.glass-sheet-thin {
  max-height: none;
  padding: 16px 18px max(20px, env(safe-area-inset-bottom));
}

.sheet-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.sheet-title-thin {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.trending-label {
  margin: 14px 0 8px;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.trending-tags button {
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
}

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

.pw-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.pw-tick {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, var(--accent), var(--accent-soft));
  color: #1a1a1a;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.hero-frame.is-zoomed {
  overflow: hidden;
  cursor: grab;
}

.hero-frame.is-zoomed.is-panning {
  cursor: grabbing;
}

.hero-img.is-zoomed {
  cursor: grab;
}

.nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  z-index: 8;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-prev {
  left: 0;
}

.nav-next {
  right: 0;
}

.bottom-anchor {
  flex: 0 0 auto;
  margin-top: 0;
  width: 100%;
  z-index: 46;
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-dock);
  background: transparent;
}

.bottom-ui {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-dock);
  background: transparent;
  width: 100%;
  padding: 0 var(--edge-pad);
  margin: 0;
  box-sizing: border-box;
}

.info-card-slot {
  position: relative;
  flex-shrink: 0;
  height: auto;
  margin: 0;
  z-index: 1;
}

.info-card {
  position: relative;
  height: auto;
  padding: var(--info-pad-v) var(--info-pad-h);
  margin-bottom: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
  transition: opacity 0.2s ease;
}

.info-card.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.action-row {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0;
  padding: 0 2mm 0 0;
  width: 100%;
  max-width: 100%;
  height: var(--dock-actions-h);
  min-height: var(--dock-actions-h);
  align-items: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.action-row-secondary {
  min-height: 40px;
  height: 40px;
}

.action-icon-only {
  min-width: 40px;
  padding: 0;
}

.action-icon {
  width: 20px;
  height: 20px;
  display: block;
  color: var(--silver-bright);
}

.action-icon-mic {
  color: #ffffff;
  stroke: #ffffff;
}

.btn-voice .action-icon-mic {
  width: 22px;
  height: 22px;
}

@keyframes info-shake-hint {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
  }
}

#btnInfo.info-shake-hint {
  animation: info-shake-hint 0.5s ease;
  border-color: var(--gold);
  color: var(--gold);
}

.action-icon path[stroke] {
  stroke: currentColor;
}

.action-btn {
  min-width: 43px;
  height: 40px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 24, 0.28);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
}

.action-accent {
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.action-buy {
  font-weight: 800;
  font-size: 0.65rem;
}

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

.action-btn#btnInfo {
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  font-family: Georgia, "Times New Roman", serif;
}

.action-btn#btnInfo.active {
  border-color: var(--gold);
  color: var(--gold);
}

.action-btn.is-selected,
.action-btn:active:not(:disabled) {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: rgba(212, 175, 55, 0.2) !important;
}

.action-btn.is-selected .action-icon,
.action-btn.is-selected .action-icon path {
  color: var(--gold);
  stroke: var(--gold);
  fill: var(--gold);
}

.info-copy {
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  line-height: 1.35;
  font-size: 0.8rem;
  color: #ffffff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.info-title {
  display: inline;
  margin: 0;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
}

.info-title::after {
  content: " ";
}

.info-meta {
  display: inline;
  margin: 0;
  font-size: 0.8rem;
  color: #ffffff;
}

.tag-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 22px;
  padding-top: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tag-row::-webkit-scrollbar {
  display: none;
}

.tag {
  border: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12.6px;
  white-space: nowrap;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
}

.tag:hover,
.tag.active {
  background: var(--accent-glow);
  outline: 1px solid var(--accent-soft);
}

.tag.active {
  font-weight: 600;
}

/* Thumbnails */
.thumb-strip-wrap {
  flex-shrink: 0;
  height: var(--dock-thumbs-h);
  min-height: var(--dock-thumbs-h);
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
}

.thumb-strip-3d {
  position: relative;
}

.thumb-strip-3d::before,
.thumb-strip-3d::after {
  display: none;
}

.thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 0 4px;
  -webkit-overflow-scrolling: touch;
}

.thumb-strip::-webkit-scrollbar {
  height: 4px;
}

.thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
  transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
}

.thumb.active {
  transform: none;
  z-index: 1;
}

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

.thumb.active {
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--accent-glow);
}

.bottom-nav-shell {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 8px var(--edge-pad) max(10px, env(safe-area-inset-bottom, 10px));
  overscroll-behavior: contain;
  border-radius: 14px 14px 0 0;
  border: none;
  border-top: 1px solid rgba(192, 197, 206, 0.38);
  background: rgba(18, 18, 22, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

@supports (backdrop-filter: blur(12px)) {
  .bottom-nav-shell {
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    background: rgba(18, 18, 22, 0.32);
  }
}

/* Category tabs */
.cat-bar {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  height: var(--dock-cats-h);
  min-height: var(--dock-cats-h);
  align-items: center;
  padding: 2px 0 4px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
}

.cat-tab {
  position: relative;
  flex: 0 0 auto;
  border: 2px solid transparent;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  background: transparent;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.cat-tab.active {
  color: var(--silver-bright);
  border-color: var(--gold);
}

.glass-sheet-comments {
  max-height: 60dvh;
  height: 60dvh;
  display: flex;
  flex-direction: column;
}

.glass-sheet-buy {
  max-height: 55dvh;
}

.comment-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.comment-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-list .comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.comment-list .comment-author {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.comment-list .comment-date {
  font-size: 0.72rem;
  color: var(--silver);
  flex-shrink: 0;
}

.comment-list .comment-body {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text);
}

.comment-compose {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-compose input,
.comment-compose textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(192, 197, 206, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.comment-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.buy-option-list,
.buy-size-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buy-option-btn,
.buy-size-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(192, 197, 206, 0.28);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.buy-size-btn .size-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--silver);
  margin-top: 4px;
}

.sheet-back-link {
  border: none;
  background: transparent;
  color: var(--gold);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 8px;
  padding: 0;
}

.hero-overlay {
  position: fixed;
  z-index: 85;
  left: 50%;
  transform: translateX(-50%);
  width: min(580px, 100vw);
  top: 0;
  bottom: 0;
  max-height: 100dvh;
}

.hero-overlay.hidden {
  display: none !important;
}

.hero-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.82);
  z-index: 0;
}

body.hero-overlay-open .bottom-anchor,
body.hero-overlay-open .stage-wrap {
  pointer-events: none;
}

body.hero-overlay-open .hero-overlay {
  pointer-events: auto;
}

.hero-overlay-close {
  position: absolute;
  top: calc(var(--duotone-h) + var(--chrome-row-h) + 8px);
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(12, 12, 14, 0.75);
  color: var(--silver-bright);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.hero-overlay-stage {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--duotone-h) + 32px + var(--chrome-row-h));
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0 0 max(8px, env(safe-area-inset-bottom));
  z-index: 1;
  touch-action: none;
  overflow: visible;
}

.hero-overlay-zoom-wrap {
  flex: 0 0 auto;
  min-height: 0;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform-origin: center center;
  z-index: 2;
  touch-action: none;
  will-change: transform;
}

.hero-overlay-reset {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 25;
  flex-shrink: 0;
  margin-top: 0;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(12, 12, 14, 0.92);
  color: var(--silver-bright);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.45;
}

.hero-overlay-reset.is-active {
  opacity: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.hero-overlay-reset:disabled {
  cursor: default;
}

.hero-overlay-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-overlay-wall {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay-wall .wall-room {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-overlay-wall .wall-art-slot {
  position: absolute;
}

.cat-tab.bounce-from-right::after,
.cat-tab.bounce-from-left::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid var(--accent-soft);
  pointer-events: none;
}

.cat-tab.bounce-from-right::after {
  animation: tabRingShakeRight 1.6s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.cat-tab.bounce-from-left::after {
  animation: tabRingShakeLeft 1.6s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes tabRingShakeRight {
  0% { transform: translateX(36px) scale(0.92); opacity: 0.4; }
  25% { transform: translateX(-6px) scale(1.06); opacity: 1; }
  45% { transform: translateX(5px) scale(0.98); }
  65% { transform: translateX(-3px) scale(1.02); }
  100% { transform: translateX(0) scale(1); opacity: 0; }
}

@keyframes tabRingShakeLeft {
  0% { transform: translateX(-36px) scale(0.92); opacity: 0.4; }
  25% { transform: translateX(6px) scale(1.06); opacity: 1; }
  45% { transform: translateX(-5px) scale(0.98); }
  65% { transform: translateX(3px) scale(1.02); }
  100% { transform: translateX(0) scale(1); opacity: 0; }
}

/* Modals */
.modal {
  border: none;
  padding: 0;
  max-width: min(520px, 94vw);
  width: 100%;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal-inner {
  background: #18181b;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0a0a0c;
  color: var(--text);
  font-size: 1rem;
}

.btn-voice {
  width: 44px;
  border-radius: 10px;
  border: 1px solid var(--accent-soft);
  background: rgba(232, 93, 4, 0.2);
  cursor: pointer;
}

.voice-status {
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 8px 0;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 50vh;
  overflow-y: auto;
}

.search-results li {
  margin: 0;
}

.search-results button {
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.search-results button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-results .sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.modal-close-only {
  float: right;
  margin-bottom: 8px;
}

.filter-banner {
  position: absolute;
  top: calc(var(--duotone-h) + 12px);
  left: 12px;
  right: 12px;
  z-index: 25;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(232, 93, 4, 0.2);
  border: 1px solid var(--accent-soft);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-banner button {
  border: none;
  background: transparent;
  color: var(--accent-soft);
  cursor: pointer;
  font-weight: 600;
}

.country-single {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hidden {
  display: none !important;
}

/* Settings menu — glass sheet (reference) */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.settings-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 101;
  width: min(520px, 100vw);
  max-height: 88dvh;
  overflow-y: auto;
  padding: 12px 20px max(24px, env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: rgba(40, 40, 48, 0.55);
  backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 16px;
}

.settings-logo-slot {
  width: 56px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.settings-title {
  text-align: center;
  margin: 0 0 20px;
  font-size: 1.35rem;
}

.settings-label {
  display: block;
  margin: 12px 0 8px;
  font-size: 0.95rem;
}

.font-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.font-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent-soft);
}

.country-list {
  max-height: 120px;
  overflow-y: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.country-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.country-item.active {
  background: rgba(232, 93, 4, 0.25);
}

.sheet-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin: 8px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.sheet-btn-primary {
  border: 1px solid transparent;
  background: linear-gradient(90deg, rgba(120, 80, 200, 0.5), rgba(80, 180, 200, 0.4));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.sheet-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 0.85rem;
}

.settings-foot a {
  color: var(--muted);
}

.settings-copy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 8px 0 0;
}


/* Admin */
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #0f0f12;
  overflow-y: auto;
  padding: 12px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.admin-form label {
  display: block;
  margin: 10px 0 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #18181b;
  color: var(--text);
}

.admin-form textarea {
  min-height: 60px;
}

.modal-ar {
  max-width: min(560px, 96vw);
}

.ar-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.ar-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ar-stage img {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 55%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.ar-hint {
  font-size: 0.8rem;
  color: var(--muted);
}
