/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --phone-h: 118vh;
  --phone-w: 38vw;
  --phone-radius: 44px;
  --scene-bg: #0C0A08;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--scene-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  cursor: default;
  user-select: none;
}

/* ============================================================
   SCENE CONTAINER
============================================================ */
.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   ROOM SVG — full viewport background
============================================================ */
.room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   PHONE STAGE — anchored to bottom, 3/4 of phone visible
============================================================ */
.phone-stage {
  position: absolute;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: var(--phone-w);
  height: var(--phone-h);
  z-index: 2;
}

/* ============================================================
   PHONE BODY
============================================================ */
.phone {
  position: relative;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 40px 80px rgba(0,0,0,0.55))
    drop-shadow(0 10px 24px rgba(0,0,0,0.30));
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  /* Titanium-style frame */
  background: linear-gradient(
    160deg,
    #3a3a3a 0%,
    #1c1c1c 30%,
    #161616 60%,
    #222 100%
  );
  border-radius: var(--phone-radius);
  border: 3px solid #505050;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    inset 2px 0  0 rgba(255,255,255,0.05),
    inset -2px 0 0 rgba(255,255,255,0.05);
}

/* Frame edge glint */
.phone-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--phone-radius);
  z-index: 20;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.12) 0%,
    transparent 45%
  );
  pointer-events: none;
  z-index: 10;
}

/* ── SIDE BUTTONS ──────────────────────────────────────────── */
.btn-power {
  position: absolute;
  right: -3px;
  top: 22%;
  width: 4px;
  height: 9%;
  background: linear-gradient(to right, #1a1a1a, #404040);
  border-radius: 0 3px 3px 0;
}
.btn-vol-up {
  position: absolute;
  left: -3px;
  top: 18%;
  width: 4px;
  height: 6%;
  background: linear-gradient(to left, #1a1a1a, #404040);
  border-radius: 3px 0 0 3px;
}
.btn-vol-down {
  position: absolute;
  left: -3px;
  top: 26%;
  width: 4px;
  height: 6%;
  background: linear-gradient(to left, #1a1a1a, #404040);
  border-radius: 3px 0 0 3px;
}

/* ── SCREEN ────────────────────────────────────────────────── */
.phone-screen {
  position: absolute;
  top: 2%;
  left: 3%;
  right: 3%;
  bottom: 2%;
  background: #080810;
  border-radius: calc(var(--phone-radius) - 8px);
  overflow: hidden;
}

/* Subtle inner glow top */
.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.03) 0%,
    transparent 25%
  );
  border-radius: inherit;
  pointer-events: none;
}

/* ── DYNAMIC ISLAND ────────────────────────────────────────── */
.dynamic-island {
  position: absolute;
  top: 1.8%;
  left: 50%;
  transform: translateX(-50%);
  width: 27%;
  height: 3.4%;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── HOME INDICATOR ────────────────────────────────────────── */
.home-indicator {
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 5px;
  background: rgba(255,255,255,0.28);
  border-radius: 4px;
  z-index: 10;
}

/* ============================================================
   STATUS BAR
============================================================ */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8%;
  border-bottom: 1px solid rgba(30,24,16,0.10);
  display: grid;
  grid-template-columns: 1fr 27% 1fr;
  align-items: center;
  padding: 0 4%;
  z-index: 8;
  color: rgba(30,24,16,0.85);
}

.status-time {
  text-align: center;
}

.status-time {
  font-size: clamp(13px, 1.9vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.status-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 3;
}

.status-icon {
  width: clamp(16px, 1.9vw, 24px);
  height: auto;
  color: rgba(30,24,16,0.85);
}

.status-battery {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-battery svg {
  width: clamp(26px, 2.8vw, 36px);
  height: auto;
  color: rgba(30,24,16,0.85);
}

.status-battery-pct {
  font-size: clamp(11px, 1.3vw, 16px);
  font-weight: 500;
  color: rgba(30,24,16,0.85);
}

/* ============================================================
   SPLASH SCREEN
============================================================ */
.splash {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  animation: splashFadeIn 1s ease forwards;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.splash-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(220,210,195,0.55) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 85%, rgba(200,190,175,0.30) 0%, transparent 55%),
    linear-gradient(160deg, #F5F0E8 0%, #F2EDE6 60%, #EDE8E0 100%);
}

.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16% 6% 0;
}

.splash-top {
  display: flex;
  justify-content: center;
  margin-bottom: 2%;
}

.splash-label {
  font-size: clamp(8px, 1.1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(60,50,40,0.40);
  font-weight: 500;
}

.splash-main {
  display: flex;
  flex-direction: column;
  gap: 1%;
  margin-bottom: 6%;
}

.splash-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 1%;
}

.splash-avatar {
  width: 100%;
  height: clamp(200px, 32vw, 380px);
  border-radius: 20px;
  object-fit: cover;
  object-position: center 35%;
  margin-bottom: 3%;
}

.splash-name {
  font-size: clamp(18px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #1A1610;
}

.splash-role {
  font-size: clamp(8px, 1vw, 13px);
  color: rgba(60,50,40,0.45);
  letter-spacing: 0.06em;
  font-weight: 400;
}

.splash-arrow {
  width: clamp(16px, 1.8vw, 22px);
  height: clamp(16px, 1.8vw, 22px);
  color: rgba(242,237,230,0.5);
  flex-shrink: 0;
  margin-left: auto;
}

.splash-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.splash-cta {
  width: 100%;
  padding: 4% 5%;
  background: #1A1610;
  border: none;
  border-radius: 16px;
  color: #F2EDE6;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease;
  text-align: left;
}

.splash-cta:hover { opacity: 0.82; }

.splash-play-icon {
  width: clamp(20px, 2.4vw, 32px);
  height: clamp(20px, 2.4vw, 32px);
  flex-shrink: 0;
  color: #F2EDE6;
}

.splash-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.splash-now-playing {
  font-size: clamp(7px, 0.8vw, 10px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.45);
}

.splash-cta-track {
  font-size: clamp(10px, 1.2vw, 15px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #F2EDE6;
}

.splash-skip {
  font-size: clamp(7px, 0.9vw, 11px);
  color: rgba(60,50,40,0.35);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.splash-skip:hover {
  color: rgba(60,50,40,0.60);
}

.splash-mobile-hint {
  display: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(60,50,40,0.55);
  text-align: center;
}

/* ============================================================
   PLAYER VIEW
============================================================ */
.player {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #F5F0E8 0%, #F2EDE6 60%, #EDE8E0 100%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.player.active {
  opacity: 1;
  pointer-events: all;
}

.player-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16% 5% 1%;
  flex-shrink: 0;
}

.player-header > div:last-child {
  display: flex;
  justify-content: flex-end;
}

.player-back {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(30,24,16,0.7);
  display: flex;
  align-items: center;
  padding: 4px;
}

.player-back svg {
  width: clamp(20px, 2.4vw, 30px);
  height: clamp(20px, 2.4vw, 30px);
}

.player-title {
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: 700;
  color: #1A1610;
  letter-spacing: -0.01em;
}

.player-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  padding: 1% 4% 6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4% 3%;
  align-content: start;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(30,24,16,0.18) transparent;
}

.player-list::-webkit-scrollbar { width: 3px; }
.player-list::-webkit-scrollbar-track { background: transparent; }
.player-list::-webkit-scrollbar-thumb { background: rgba(30,24,16,0.18); border-radius: 99px; }

.playlist-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.playlist-item:hover { opacity: 0.75; }

.playlist-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-cover svg {
  width: 40%;
  height: 40%;
}

.playlist-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playlist-name {
  font-size: clamp(9px, 1.1vw, 13px);
  font-weight: 600;
  color: #1A1610;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-count {
  font-size: clamp(7px, 0.85vw, 10px);
  color: rgba(30,24,16,0.4);
}

.playlist-arrow { display: none; }

/* ============================================================
   PLAYLIST VIEW
============================================================ */
.playlist-view {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #F5F0E8 0%, #F2EDE6 60%, #EDE8E0 100%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.playlist-view.active {
  opacity: 1;
  pointer-events: all;
}

.pv-topbar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16% 5% 2%;
}

.pv-topbar-title {
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: 700;
  color: #1A1610;
  letter-spacing: -0.01em;
  text-align: center;
}

.pv-back-btn {
  color: rgba(30,24,16,0.70);
}

.pv-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(30,24,16,0.7);
  display: flex;
  align-items: center;
  padding: 4px;
}

.pv-back-btn svg {
  width: clamp(20px, 2.4vw, 30px);
  height: clamp(20px, 2.4vw, 30px);
}

.pv-fixed {
  flex-shrink: 0;
  padding: 1% 5% 0%;
}

.pv-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 0% 5% 35%;
  scrollbar-width: thin;
  scrollbar-color: rgba(30,24,16,0.18) transparent;
}

.pv-scroll::-webkit-scrollbar { width: 3px; }
.pv-scroll::-webkit-scrollbar-track { background: transparent; }
.pv-scroll::-webkit-scrollbar-thumb { background: rgba(30,24,16,0.18); border-radius: 99px; }

.pv-cover {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
}

.pv-cover svg {
  width: 38%;
  height: 38%;
}

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

.pv-cover .pv-track-monogram {
  font-size: clamp(64px, 12vw, 112px);
}

.pv-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5%;
}

.pv-info {
  display: flex;
  flex-direction: column;
}

.pv-title {
  font-size: clamp(18px, 2.8vw, 36px);
  font-weight: 800;
  color: #1A1610;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.pv-subtitle {
  font-size: clamp(9px, 1.1vw, 13px);
  color: rgba(30,24,16,0.45);
  margin-top: 3px;
}

.pv-controls {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pv-play-btn {
  width: clamp(42px, 5.5vw, 64px);
  height: clamp(42px, 5.5vw, 64px);
  border-radius: 50%;
  background: #1A1610;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pv-play-btn:hover { transform: scale(1.06); }

.pv-play-btn svg {
  width: 42%;
  height: 42%;
  fill: #F2EDE6;
}

.pv-tracks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pv-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3.5% 0;
  border-bottom: 1px solid rgba(30,24,16,0.06);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.pv-track:last-child { border-bottom: none; }
.pv-track:hover { opacity: 0.65; }

.pv-track-img {
  width: clamp(36px, 4.5vw, 52px);
  height: clamp(36px, 4.5vw, 52px);
  border-radius: 6px;
  background: rgba(30,24,16,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(30,24,16,0.30);
  overflow: hidden;
}

.pv-track-img svg {
  width: 50%;
  height: 50%;
}

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

.pv-track-monogram {
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 800;
  line-height: 1;
}

.pv-track-num {
  font-size: clamp(10px, 1.2vw, 14px);
  color: rgba(30,24,16,0.30);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  margin-left: auto;
}

.pv-track-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.pv-track-name {
  font-size: clamp(10px, 1.2vw, 14px);
  font-weight: 600;
  color: #1A1610;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-track-sub {
  font-size: clamp(8px, 0.9vw, 11px);
  color: rgba(30,24,16,0.40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   TRACK DETAIL VIEW (education entry detail)
============================================================ */
.track-detail-view {
  z-index: 7;
}

.td-desc {
  font-size: clamp(10px, 1.2vw, 14px);
  line-height: 1.7;
  color: rgba(30,24,16,0.65);
}

.td-desc + .td-desc {
  margin-top: 16px;
}

.td-degree {
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 700;
  color: #1A1610;
  line-height: 1.4;
}

.td-section {
  margin-top: 24px;
}

.td-label {
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(30,24,16,0.40);
  margin-bottom: 10px;
}

.td-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.td-list li {
  font-size: clamp(10px, 1.2vw, 14px);
  line-height: 1.5;
  color: rgba(30,24,16,0.65);
  position: relative;
  padding-left: 14px;
}

.td-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(30,24,16,0.35);
}

.td-link {
  color: #1A1610;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(30,24,16,0.30);
  transition: opacity 0.15s ease;
}

.td-link:hover {
  opacity: 0.65;
}

.td-link-pending {
  color: rgba(30,24,16,0.35);
  font-style: italic;
}

/* ── TRACK DETAIL PLAYER (hero + sticky controls) ────────────── */
.td-content {
  transition: opacity 0.22s ease;
}

.td-content.td-transitioning {
  opacity: 0;
}

.td-hero {
  padding: 1% 5% 0;
}

.td-player {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F5F0E8;
  padding: 2% 5% 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#trackDetailBody {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#trackDetailBody.td-visible {
  opacity: 1;
}

.td-waveform {
  margin-top: 6%;
}

.td-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  margin-top: 4%;
}

.td-ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(30,24,16,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: opacity 0.15s ease;
}

.td-ctrl-btn:hover { opacity: 0.65; }

.td-ctrl-btn svg {
  width: clamp(22px, 2.6vw, 30px);
  height: clamp(22px, 2.6vw, 30px);
}

/* ── WAVEFORM ───────────────────────────────────────────────── */
.splash-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: clamp(20px, 2.4vw, 32px);
  width: 60%;
  margin: 2% auto;
}

.splash-waveform span {
  display: block;
  width: clamp(2px, 0.3vw, 4px);
  border-radius: 99px;
  background: rgba(30,24,16,0.25);
  animation: wave 1.2s ease-in-out infinite;
}

.splash-waveform span:nth-child(1)  { height: 30%; animation-delay: 0.0s; }
.splash-waveform span:nth-child(2)  { height: 60%; animation-delay: 0.1s; }
.splash-waveform span:nth-child(3)  { height: 90%; animation-delay: 0.2s; }
.splash-waveform span:nth-child(4)  { height: 55%; animation-delay: 0.3s; }
.splash-waveform span:nth-child(5)  { height: 80%; animation-delay: 0.15s; }
.splash-waveform span:nth-child(6)  { height: 40%; animation-delay: 0.4s; }
.splash-waveform span:nth-child(7)  { height: 100%; animation-delay: 0.05s; }
.splash-waveform span:nth-child(8)  { height: 65%; animation-delay: 0.25s; }
.splash-waveform span:nth-child(9)  { height: 45%; animation-delay: 0.35s; }
.splash-waveform span:nth-child(10) { height: 85%; animation-delay: 0.1s; }
.splash-waveform span:nth-child(11) { height: 55%; animation-delay: 0.45s; }
.splash-waveform span:nth-child(12) { height: 75%; animation-delay: 0.2s; }
.splash-waveform span:nth-child(13) { height: 35%; animation-delay: 0.3s; }
.splash-waveform span:nth-child(14) { height: 95%; animation-delay: 0.0s; }
.splash-waveform span:nth-child(15) { height: 50%; animation-delay: 0.4s; }
.splash-waveform span:nth-child(16) { height: 70%; animation-delay: 0.15s; }
.splash-waveform span:nth-child(17) { height: 40%; animation-delay: 0.25s; }
.splash-waveform span:nth-child(18) { height: 88%; animation-delay: 0.05s; }
.splash-waveform span:nth-child(19) { height: 60%; animation-delay: 0.35s; }
.splash-waveform span:nth-child(20) { height: 30%; animation-delay: 0.45s; }
.splash-waveform span:nth-child(21) { height: 75%; animation-delay: 0.1s; }
.splash-waveform span:nth-child(22) { height: 50%; animation-delay: 0.2s; }
.splash-waveform span:nth-child(23) { height: 90%; animation-delay: 0.3s; }
.splash-waveform span:nth-child(24) { height: 45%; animation-delay: 0.0s; }
.splash-waveform span:nth-child(25) { height: 65%; animation-delay: 0.4s; }
.splash-waveform span:nth-child(26) { height: 35%; animation-delay: 0.15s; }
.splash-waveform span:nth-child(27) { height: 80%; animation-delay: 0.25s; }
.splash-waveform span:nth-child(28) { height: 55%; animation-delay: 0.05s; }
.splash-waveform span:nth-child(29) { height: 70%; animation-delay: 0.35s; }
.splash-waveform span:nth-child(30) { height: 40%; animation-delay: 0.45s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1);   }
  50%       { transform: scaleY(0.2); }
}


.splash-socials {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.splash-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(30,24,16,0.45);
  transition: color 0.2s ease;
}

.splash-social-link:hover {
  color: rgba(30,24,16,0.85);
}

.splash-social-link svg {
  width: clamp(18px, 2vw, 26px);
  height: clamp(18px, 2vw, 26px);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  :root {
    --phone-w: 72vw;
  }
}
@media (max-width: 600px) {
  :root {
    --phone-w: 92vw;
  }

  /* Full-bleed app mode: hide the room scene and phone bezel,
     let the app screen fill the entire mobile viewport. */
  .room {
    display: none;
  }

  .phone-stage {
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 2;
  }

  .phone {
    filter: none;
  }

  .btn-power,
  .btn-vol-up,
  .btn-vol-down {
    display: none;
  }

  .phone-frame {
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .phone-frame::before {
    display: none;
  }

  .phone-screen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }

  .splash-mobile-hint {
    display: block;
  }
}
