:root {
  color-scheme: light;
  --bg-0: #f4f1ea;
  --bg-1: #ebe5da;
  --bg-2: #ded6c8;
  --text: #171717;
  --muted: #77716a;
  --soft: rgba(0, 0, 0, .62);
  --line: rgba(20, 20, 20, .14);
  --panel: rgba(255, 252, 245, .68);
  --panel-solid: rgba(255, 252, 245, .92);
  --accent: #8b1e1e;
  --danger: #9d2d2d;
  --shadow: rgba(0, 0, 0, .08);
  --grain-opacity: .045;
  --vignette: rgba(80, 64, 42, .14);
  --reading-width: 760px;
  --ui-radius: 26px;
  --font-song: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body {
  background:
    radial-gradient(circle at 20% 8%, rgba(255,255,255,.9), transparent 28%),
    radial-gradient(circle at 74% 20%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 30%),
    linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 100%);
  color: var(--text);
  font-family: var(--font-sans);
}
body[data-color-mode="light"] {
  color-scheme: light;
  --bg-0: #f4f1ea;
  --bg-1: #ebe5da;
  --bg-2: #ded6c8;
  --text: #171717;
  --muted: #77716a;
  --soft: rgba(0, 0, 0, .62);
  --line: rgba(20, 20, 20, .14);
  --panel: rgba(255, 252, 245, .68);
  --panel-solid: rgba(255, 252, 245, .92);
  --accent: #8b1e1e;
  --danger: #9d2d2d;
  --shadow: rgba(0, 0, 0, .08);
  --vignette: rgba(80, 64, 42, .14);
}
body[data-color-mode="dark"] {
  color-scheme: dark;
  --bg-0: #0f0f0f;
  --bg-1: #161616;
  --bg-2: #22201d;
  --text: #eeeeea;
  --muted: rgba(255,255,255,.48);
  --soft: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.14);
  --panel: rgba(255,255,255,.045);
  --panel-solid: rgba(17,17,17,.82);
  --accent: #d8cab2;
  --shadow: rgba(0,0,0,.46);
  --vignette: rgba(0,0,0,.5);
}
.backdrop {
  opacity: .26;
  background:
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,0,0,.026) 1px, transparent 1px);
  background-size: 64px 64px;
}
body[data-color-mode="dark"] .backdrop {
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.025) 1px, transparent 1px);
}
.grain {
  mix-blend-mode: multiply;
}
body[data-color-mode="dark"] .grain {
  mix-blend-mode: overlay;
}
.launcher,
.overlay-screen,
.menu-panel {
  background:
    radial-gradient(circle at 20% 8%, rgba(255,255,255,.9), transparent 28%),
    linear-gradient(135deg, #f7f4ee 0%, #ebe5da 100%);
  padding: 0;
  overflow: auto;
  place-items: start center;
}
body[data-color-mode="dark"] .launcher,
body[data-color-mode="dark"] .overlay-screen,
body[data-color-mode="dark"] .menu-panel {
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,.07), transparent 26%),
    linear-gradient(135deg, #111 0%, #171717 100%);
}
.launcher-inner {
  width: min(1500px, 94vw);
  min-height: 100svh;
  padding: 48px clamp(16px, 2.4vw, 40px) 80px;
}
.library-view,
.story-view {
  min-height: calc(100svh - 120px);
}
.library-view {
  grid-template-columns: minmax(0, 1.06fr) minmax(240px, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 24px clamp(28px, 4vw, 56px);
  align-items: start;
  padding-top: clamp(12px, 2vh, 32px);
}
.library-view .tape-deck {
  grid-row: 2;
  grid-column: 1 / -1;
}
.library-view .brand {
  grid-column: 1;
  align-self: end;
  margin: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.library-view .launcher-actions {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  display: flex;
  flex-direction: column;
  width: min(220px, 100%);
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.library-view .tape-library {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  align-items: start;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.tape-library-title {
  grid-column: 1;
  color: var(--muted);
  letter-spacing: .28em;
}
#cacheList {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.brand h1 {
  font-family: var(--font-song);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 350;
  letter-spacing: -.04em;
  max-width: 760px;
}
.brand p {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0;
}
.text-btn,
.mini-btn,
.select-field {
  border-radius: 12px;
  border-color: rgba(240,237,230,.10);
  background: rgba(240,237,230,.035);
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: .04em;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}
.text-btn:hover,
.mini-btn:hover {
  background: rgba(240,237,230,.07);
  border-color: rgba(240,237,230,.18);
}
body[data-color-mode="dark"] .text-btn,
body[data-color-mode="dark"] .mini-btn,
body[data-color-mode="dark"] .select-field {
  background: rgba(240,237,230,.03);
  color: var(--soft);
}
body[data-color-mode="dark"] .text-btn:hover,
body[data-color-mode="dark"] .mini-btn:hover {
  background: rgba(240,237,230,.06);
}
.primary,
.primary:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg-0);
}
.tape-deck {
  min-height: clamp(310px, 42vw, 500px);
  border-radius: 24px;
  border: 1px solid rgba(240,237,230,.08);
  background:
    linear-gradient(180deg, rgba(240,237,230,.04), rgba(240,237,230,.01)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(0,0,0,.06) 24px 25px),
    linear-gradient(150deg, #0D0C0A, #141311 46%, #1A1815);
  box-shadow: 0 24px 72px var(--shadow), 0 0 0 1px rgba(240,237,230,.04) inset;
}
body[data-color-mode="dark"] .tape-deck {
  background:
    linear-gradient(180deg, rgba(240,237,230,.04), rgba(240,237,230,.01)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(0,0,0,.06) 24px 25px),
    linear-gradient(150deg, #0D0C0A, #141311 46%, #1A1815);
}
.tape-deck::before {
  left: 10%;
  right: 10%;
  top: 18%;
  bottom: 18%;
  border-radius: 16px;
  background:
    linear-gradient(90deg,
      rgba(163,160,160,.48) 0 10%,
      transparent 10% 13%,
      rgba(0,0,0,.14) 13% 24%,
      transparent 24% 29%,
      rgba(163,160,160,.30) 29% 42%,
      transparent 42% 48%,
      rgba(0,0,0,.18) 48% 61%,
      transparent 61% 67%,
      rgba(163,160,160,.40) 67% 78%,
      transparent 78% 84%,
      rgba(0,0,0,.12) 84% 100%);
  box-shadow:
    0 72px 0 rgba(0,0,0,.04),
    0 144px 0 rgba(0,0,0,.025);
}
body[data-color-mode="dark"] .tape-deck::before {
  background:
    linear-gradient(90deg,
      rgba(163,160,160,.32) 0 10%,
      transparent 10% 13%,
      rgba(240,237,230,.08) 13% 24%,
      transparent 24% 29%,
      rgba(163,160,160,.20) 29% 42%,
      transparent 42% 48%,
      rgba(240,237,230,.10) 48% 61%,
      transparent 61% 67%,
      rgba(163,160,160,.26) 67% 78%,
      transparent 78% 84%,
      rgba(240,237,230,.07) 84% 100%);
  box-shadow:
    0 72px 0 rgba(240,237,230,.025),
    0 144px 0 rgba(240,237,230,.015);
}
.deck-label,
.tape-deck::after {
  color: var(--muted);
  letter-spacing: .28em;
}
.deck-light,
.tape-slot {
  display: none;
}
.cached-tape {
  aspect-ratio: 3 / 4.3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(240,237,230,.08);
  border-left: 2px solid rgba(240,237,230,.08);
  background:
    linear-gradient(180deg, rgba(240,237,230,.03), rgba(240,237,230,.01)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(0,0,0,.04) 24px 25px);
  color: rgba(240,237,230,.48);
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}
.cached-tape:hover {
  border-color: rgba(240,237,230,.18);
  transform: translateY(-2px);
}
body[data-color-mode="light"] .cached-tape {
  background:
    linear-gradient(180deg, rgba(255,253,248,.42), rgba(255,253,248,.12)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(0,0,0,.025) 24px 25px);
  border-color: rgba(26,24,22,.10);
}
.cached-tape .mini-btn:first-child {
  min-height: 0;
  padding: 0;
}
.cached-tape strong {
  display: block;
  max-height: 8.4em;
  color: var(--text);
  font-family: var(--font-song);
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: .14em;
  writing-mode: vertical-rl;
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
}
.cached-tape span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.cached-tape .mini-btn {
  align-self: flex-start;
  min-width: 0;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(255,255,255,.28);
}
.story-view {
  grid-template-columns: 1.1fr .9fr;
  gap: 38px;
  align-items: center;
}
.tv-frame {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.tv-frame::before,
.tv-knobs {
  display: none;
}
.tv-content {
  min-height: 0;
  padding: 0;
  align-content: center;
}
.home-cover {
  gap: 22px;
}
.cover-label,
.loaded-card,
.story-kicker,
.status-label,
.tiny,
.chapter-name,
.continue-hint {
  font-family: var(--font-sans);
  letter-spacing: .15em;
  font-weight: 500;
}
.cover-title {
  font-family: var(--font-song);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -.08em;
}
.cover-tagline {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.loaded-card {
  margin-bottom: 26px;
  border-bottom-color: var(--line);
  color: var(--muted);
}
.loaded-card strong {
  font-family: var(--font-song);
  font-weight: 400;
  letter-spacing: -.04em;
}
.home-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  margin: 0 0 24px;
}
.home-actions .text-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-song);
  font-size: 22px;
  font-weight: 350;
  letter-spacing: -.04em;
  text-align: left;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.home-actions .text-btn:hover {
  opacity: .7;
  transform: translateX(4px);
}
.home-actions .text-btn::after {
  content: "→";
  color: rgba(240,237,230,.26);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .14em;
  transition: transform 300ms var(--ease);
}
.home-actions .text-btn:hover::after {
  transform: translateX(4px);
}
body[data-color-mode="light"] .home-actions .text-btn::after {
  color: rgba(26,24,22,.24);
}
.home-actions .text-btn.primary {
  color: var(--text);
}
.record-panel {
  max-width: none;
  margin-top: 28px;
  padding-top: 28px;
  border-top-color: var(--line);
}
.record-panel h2,
.modal-inner h2,
.record-title {
  font-family: var(--font-song);
  font-weight: 400;
  letter-spacing: -.06em;
}
.record-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-height: 42vh;
}
.record-item,
.setting-card,
.ending-item {
  border-radius: 16px;
  border-color: rgba(240,237,230,.08);
  background: rgba(240,237,230,.025);
  padding: 20px;
  min-height: 126px;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}
body[data-color-mode="dark"] .record-item,
body[data-color-mode="dark"] .setting-card,
body[data-color-mode="dark"] .ending-item {
  background: rgba(240,237,230,.025);
}
.record-item:hover,
.setting-card:hover,
.ending-item:hover {
  background: rgba(240,237,230,.05);
}
body[data-color-mode="light"] .record-item,
body[data-color-mode="light"] .setting-card,
body[data-color-mode="light"] .ending-item {
  background: rgba(255,253,248,.38);
}
.record-item strong,
.ending-item strong {
  font-family: var(--font-song);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.04em;
}
.unknown-mark {
  border-radius: 999px;
  min-width: 48px;
}
.app-shell {
  background:
    radial-gradient(circle at 92% 18%, rgba(160,160,154,.06), transparent 28%),
    radial-gradient(circle at 18% 86%, rgba(200,196,186,.04), transparent 32%),
    linear-gradient(150deg, #0A0A08, #121110 44%, #1C1A17);
  color: #F0EDE6;
}
body[data-color-mode="light"] .app-shell {
  background:
    radial-gradient(circle at 16% 6%, rgba(255,255,255,.78), transparent 32%),
    radial-gradient(circle at 80% 14%, rgba(200,196,184,.18), transparent 36%),
    linear-gradient(145deg, #F7F4EE 0%, #F0ECE3 100%);
  color: #1A1816;
}
.topbar,
.bottombar {
  width: min(100%, 1120px);
  border-color: rgba(240,237,230,.10);
  color: rgba(240,237,230,.36);
}
body[data-color-mode="light"] .topbar,
body[data-color-mode="light"] .bottombar {
  border-color: rgba(26,24,22,.10);
  color: rgba(26,24,22,.46);
}
.topbar {
  border-bottom: 1px solid rgba(240,237,230,.10);
}
.bottombar {
  border-top: 1px solid rgba(240,237,230,.10);
}
.reader {
  width: min(100%, 1120px);
  padding: clamp(28px, 5vw, 72px);
}
.page {
  max-width: var(--reading-width);
  gap: 22px;
}
.text-card {
  min-height: 280px;
}
.speaker {
  color: rgba(240,237,230,.58);
  font-family: var(--font-sans);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .26em;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}
body[data-color-mode="light"] .speaker {
  color: rgba(26,24,22,.54);
}
.story-text {
  font-family: var(--font-song);
  font-size: calc(clamp(20px, 2.6vw, 28px) * var(--story-font-scale));
  line-height: 2.05;
  letter-spacing: .03em;
  font-weight: 400;
}
.story-text.system {
  color: rgba(240,237,230,.58);
  font-style: normal;
}
body[data-color-mode="light"] .story-text.system {
  color: rgba(26,24,22,.56);
}
.choices {
  gap: 12px;
}
.choice-btn {
  min-height: 60px;
  padding: 16px 20px 16px 24px;
  border-radius: 14px;
  border: 1px solid rgba(240,237,230,.12);
  background: rgba(240,237,230,.025);
  color: rgba(240,237,230,.78);
  font-family: var(--font-song);
  font-size: 18px;
  line-height: 1.65;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.choice-btn:hover {
  background: rgba(240,237,230,.06);
  border-color: rgba(240,237,230,.22);
  transform: translateX(4px);
}
body[data-color-mode="light"] .choice-btn {
  border-color: rgba(26,24,22,.12);
  background: rgba(255,252,248,.32);
  color: var(--text);
}
body[data-color-mode="light"] .choice-btn:hover {
  background: rgba(255,252,248,.52);
  border-color: rgba(26,24,22,.22);
}
.choice-btn::before {
  width: auto;
  height: auto;
  margin-right: 16px;
  background: none;
  content: "→";
  font-family: var(--font-sans);
  color: rgba(240,237,230,.32);
  font-size: 14px;
  transition: transform 300ms var(--ease);
}
.choice-btn:hover::before {
  transform: translateX(4px);
}
body[data-color-mode="light"] .choice-btn::before {
  color: rgba(26,24,22,.30);
}
.scene-card {
  width: min(520px, 78vw);
  padding: clamp(32px, 5vw, 48px);
  border-radius: 24px;
  border: 1px solid rgba(240,237,230,.06);
  background: rgba(10,10,8,.62);
  color: #F0EDE6;
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  text-align: center;
  box-shadow: 0 24px 72px rgba(0,0,0,.28), 0 0 0 1px rgba(240,237,230,.04) inset;
}
body[data-color-mode="light"] .scene-card {
  border-color: rgba(26,24,22,.10);
  background: rgba(255,253,248,.82);
  color: var(--text);
  box-shadow: 0 24px 72px rgba(26,24,22,.08), 0 0 0 1px rgba(255,255,255,.32) inset;
}
.scene-card-title {
  font-family: var(--font-song);
  font-size: clamp(32px, 4.6vw, 44px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.06em;
}
.scene-card-copy {
  color: rgba(240,237,230,.58);
  text-align: center;
  font-size: 14px;
  line-height: 2;
}
body[data-color-mode="light"] .scene-card-copy {
  color: rgba(26,24,22,.52);
}
body.scene-transitioning .app-shell,
body.scene-transitioning .backdrop,
body.scene-transitioning .ambient-layer,
body.scene-transitioning .launcher {
  filter: blur(3px);
}
.overlay-screen {
  text-align: center;
}
.overlay-title {
  font-family: var(--font-song);
  font-weight: 400;
  letter-spacing: -.06em;
}
.overlay-sub {
  color: var(--muted);
}
.menu-panel {
  place-items: center;
  padding: clamp(18px, 5vw, 60px);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(32px) saturate(1.12);
  -webkit-backdrop-filter: blur(32px) saturate(1.12);
}
.modal-inner {
  width: min(980px, 96vw);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel-solid) 90%, transparent);
  border-color: var(--line);
  box-shadow: 0 24px 72px var(--shadow), 0 0 0 1px rgba(240,237,230,.035) inset;
}
.menu-actions {
  gap: 10px;
}
.mode-switch {
  border-radius: 12px;
  background: rgba(240,237,230,.06);
  padding: 2px;
}
body[data-color-mode="dark"] .mode-switch {
  background: rgba(240,237,230,.04);
}
.setting-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.toast {
  border-radius: 14px;
  background: var(--panel-solid);
  color: var(--soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px var(--shadow);
}
.icon-btn {
  border-radius: 12px;
  background: rgba(240,237,230,.04);
  transition: background 300ms var(--ease), transform 300ms var(--ease);
  min-width: 38px;
  min-height: 38px;
}
.icon-btn:hover {
  background: rgba(240,237,230,.10);
  transform: scale(1.05);
}
body[data-color-mode="light"] .icon-btn {
  background: rgba(26,24,22,.04);
}
body[data-color-mode="light"] .icon-btn:hover {
  background: rgba(26,24,22,.10);
}
@media (max-width: 980px) {
  .launcher-inner {
    width: min(100% - 24px, 760px);
    padding: 32px 12px 64px;
  }
  .library-view,
  .story-view {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 20px;
  }
  .library-view .brand,
  .library-view .launcher-actions,
  .library-view .tape-library {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }
  .library-view .launcher-actions {
    width: 100%;
  }
  .tape-deck {
    min-height: 260px;
  }
  #cacheList {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .cached-tape {
    aspect-ratio: auto;
    min-height: 180px;
  }
  .story-view {
    gap: 28px;
  }
  .home-actions .text-btn {
    min-height: 52px;
    font-size: 19px;
  }
  .reader {
    padding: 18px;
  }
  .story-text {
    font-size: calc(22px * var(--story-font-scale));
  }
  .scene-card {
    width: min(520px, calc(100vw - 36px));
    padding: 30px 24px;
    left: 50vw !important;
    top: 50svh !important;
    transform: translate3d(-50%, -50%, 0) !important;
  }
}

/* Mobile devices (480px and below) — launcher specific */
@media (max-width: 480px) {
  .launcher-inner {
    width: 100%;
    padding: 16px 14px 32px;
  }
  .library-view,
  .story-view {
    gap: 12px;
  }
  .library-view .brand {
    padding: 0;
    border: 0;
  }
  .brand h1 {
    font-size: clamp(22px, 9vw, 34px);
    letter-spacing: -.04em;
  }
  .brand p {
    font-size: 13px;
    margin-top: 10px;
    line-height: 1.7;
  }
  .library-view .launcher-actions {
    padding: 0;
    border: 0;
  }
  .tape-deck {
    min-height: 160px;
  }
  .launcher-actions .text-btn {
    min-height: 36px;
    font-size: 12px;
  }
  #cacheList {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cached-tape {
    min-height: 44px;
    padding: 8px 0;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .cached-tape strong {
    font-size: 13px;
    white-space: normal;
  }
  .cached-tape span {
    font-size: 10px;
  }
  .cached-tape .mini-btn:first-child {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .cached-tape .mini-btn {
    min-height: 26px;
    padding: 0 6px;
    font-size: 10px;
  }
  .record-panel {
    width: calc(100vw - 16px);
    padding: 12px;
  }
  .record-panel h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .record-list .record-item {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .record-item .mini-btn {
    min-height: 28px;
    padding: 0 8px;
    font-size: 10px;
  }
  .story-home {
    padding: 0;
  }
  .home-actions {
    gap: 6px;
  }
  .home-actions .text-btn {
    min-height: 38px;
    font-size: 14px;
    padding: 0 8px;
  }
  .loaded-card {
    padding: 10px 12px;
  }
  .loaded-card strong {
    font-size: 13px;
  }
  .loaded-card span {
    font-size: 10px;
  }
  .scene-card {
    width: calc(100vw - 24px);
    padding: 18px 14px;
    left: 50vw !important;
    top: 50dvh !important;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .launcher-inner {
    padding: 12px 10px 24px;
  }
  .brand h1 {
    font-size: 20px;
  }
  .brand p {
    font-size: 11px;
    margin-top: 6px;
  }
  .home-actions {
    grid-template-columns: 1fr;
  }
  .tape-deck {
    min-height: 120px;
  }
}
/* Minimal launcher corrections and centered title overlays */
