/* Narrow-foldable tweaks */
@media (max-width: 380px) {
  h1 small { font-size: 12px; }
  .tab { padding: 6px 9px; font-size: 12px; }
  .station-caption { min-width: calc(100% - 32px); max-width: none !important; margin-left:auto;margin-right:auto;}
  .story-reader { padding: 16px 14px; }
  .story-title { font-size: 16px; }
}

/* ───────── MIXER VIEW / PANEL ───────────── */
.view#view-mixer { padding-top: calc(var(--nav-h) + 14px); overflow-y: auto; min-height: 0; }
.mixer-welcome { text-align: center; padding: 16px; color: var(--sub); }
.mixer-group { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.mixer-group h3 { margin: 0; padding: 10px 14px; font-family: var(--font-display); font-size: 14px; color: var(--text); border-bottom: 1px solid rgba(22,50,74,.08); display: flex; align-items: center; gap: 8px; }
.mixer-group h3 small { font-family: var(--font-body); font-size: 12px; color: var(--sub); font-weight: normal; margin-left: auto; }
.mixer-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(50vw - 14px), 1fr)); gap: 8px; padding: 10px 12px; }
.mood-btn {
  position: relative; appearance: none; border: 2px solid transparent; border-radius: 18px; cursor: pointer;
  padding: 10px 6px; transition: transform .18s ease, background .2s ease; text-align: center; user-select: none;
  box-shadow: var(--shadow-sm); display: inline-flex; width: 100%; max-width: calc(50vw - 8px); gap: 4px; flex-direction: column; justify-content: center;
}
.mood-btn:active { transform: scale(.96); }
.mood-emoji { font-size: clamp(24px, 7vw, 28px); line-height: 1; display: block; pointer-events: none; }
.mood-label { font-family: var(--font-display); font-size: clamp(12px, 4.3vw, 13px); color: var(--text); margin-top: 2px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;}
.mood-vol { width: 100%; margin-top: 4px; pointer-events: auto; accent-color: #d96c0e; height: 14px; appearance: none; background: linear-gradient(#ffd54f, #ffab00) no-repeat left bottom / 0% 100%; border: none; border-radius: 7px; transition: background-position 0.05s ease-out; outline: none; }
.mood-btn.on .mood-btn { border-color: #d96c0e; box-shadow: 0 0 0 3px rgba(217,108,14,.2), var(--shadow-md); }
.mood-btn .on-indicator { position: absolute; top: -6px; right: -6px; background: #ffab00; color: white; font-size: 12px; padding: 2px 6px; border-radius: 10px; font-weight: bold; z-index: 2; opacity: 0; transform: scale(0.8); transition: all .25s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 1px 3px rgba(0,0,0,.25); pointer-events: none;}
.mood-btn.on .on-indicator { opacity: 1; transform: scale(1); }

/* per-season tint accents */
.mood-btn[data-season="spring"]   { background: linear-gradient(135deg,#fff5dd,#ffe8cc); }
.mood-btn[data-season="summer"]   { background: linear-gradient(135deg,#fffde8,#fff3cd); }
.mood-btn[data-season="autumn"]   { background: linear-gradient(135deg,#fff2ec,#ffe3d7); }
.mood-btn[data-season="winter"]   { background: linear-gradient(135deg,#eaf6fc,#dcf0fa); }

/* master volume slider row */
.mixer-master { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid rgba(22,50,74,.08); }
.vol-label { font-family: var(--font-display); font-size: 12.5px; color: var(--text); white-space: nowrap; margin-right: auto;}
.master-vol { flex-grow: 1; height: 14px; appearance: none; accent-color: #d96c0e; background: linear-gradient(#ffd54f, #ffab00) no-repeat left bottom / 0% 100%; border: none; border-radius: 7px; transition: background-position .05s ease-out; outline: none; min-width: calc(50vw - 60px);}
/* ---------------- generic platform scaffolding ---------------- */
:root { --nav-h: 38px; --size: 40px; --radius-md: 12px; --radius-sm: 8px; --shadow-sm: 0 2px 8px rgba(32,44,48,.08); --shadow-md: 0 4px 14px rgba(32,44,48,.12); --accent-yellow: #ffc107; --text-body: 15px; --font-display: system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; --font-body: "Noto Sans","Segoe UI",sans-serif; color-scheme: light only}
h1 small { font-family: var(--font-display); color:var(--sub);letter-spacing:.08em;text-transform:uppercase;font-size:12px}
/* hide mixer tab from circle/story views, keep active one visible */
#app section.view:not(#view-mixer) .mixer-badge { display:none !important }
.top-bar { position: sticky; top: 0; z-index: 60; background: linear-gradient(180deg,#fffcf6,#fbf5e8); padding-bottom:2px;}
.home-btn {
  position: fixed; top: 6px; left: 8px; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; font-size: 18px; border-radius: 50%;
  background: rgba(217,108,14,.12); text-decoration: none; transition: transform .15s;
}
.home-btn:hover { transform: scale(1.1) rotate(-8deg); }
.nav-tabs { display: flex; gap: 12px; justify-content: center; margin-top: -2px; }
.tab { cursor: pointer; border-radius: 22px; padding: 8px 16px 6px; transition: all .2s ease; user-select:none; appearance:none; background: transparent; border:none; }
.tab[aria-selected="true"], .tab.active { background:#d96c0e; color:#fff; box-shadow: 0 3px 10px rgba(217,108,14,.28);}
.tab:not([aria-selected="true"]) { color:var(--sub); }
.view { min-height: calc(100vh - 100px); overflow-x:hidden; display:block; }
/* .view's own display:block has equal specificity to the browser's default [hidden]
   rule, and author styles win ties over UA defaults -- so plain [hidden] never actually
   hid anything here. This rule wins on specificity and restores real hide/show behavior. */
.view[hidden] { display: none; }

/* ---------- season circle & stations ---------- */
#seasons-circle .station { display:inline-flex;flex-direction:column;align-items:center;gap:8px;padding:14px 18px;border-radius:20px;background:#fff;box-shadow:var(--shadow-md);border:none;cursor:pointer;transition:transform .15s ease,background .2s ease;max-width:calc(48vw - 20px)}
#seasons-circle .station:active { transform:scale(.94); }
#seasons-circle .station.picked { background:#ffe2a6; box-shadow:0 0 0 3px rgba(217,108,14,.35), var(--shadow-lg); }
.station-art { font-size:clamp(34px,8vw,56px); line-height:1; transition:transform .25s cubic-bezier(.34,1.56,.64,1); pointer-events:none}
#seasons-circle .station.picked .station-art { transform:translateY(-6px) scale(1.15);}
.station-name { font-family:var(--font-display);font-weight:700;font-size:18px;color:var(--text);pointer-events:none;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.station-fact { display:none; }
.stealth-tab-label{display:inline-block}
.tab-text{display:inline-flex;align-items:center}

/* ---------- caption under circle ---------- */
.station-caption { text-align:center;margin-top:-10px;padding:0 16px;}
.row-actions {margin-left:auto;margin-right:auto;text-align:right;}
.action-btn { border:none;cursor:pointer;padding:10px 16px;border-radius:18px;font-family:var(--font-display);background:#d96c0e;color:#fff;font-weight:700;font-size:15px}
.action-btn.small { font-size:13.5px; padding:7px 13px;background:#f3eee2;color:#bf6900}
.action-secondary {background:#fff;color:#6a4b1a}

/* ---------- season sound toggle (gentle ambient loop under the picked station) ---------- */
.sound-toggle.on { background:#d96c0e;color:#fff;animation:sound-toggle-pulse 1.4s ease-in-out infinite; }
@keyframes sound-toggle-pulse {
  0%, 100% { box-shadow: var(--shadow-sm), 0 0 0 0 rgba(217,108,14,.45); }
  50% { box-shadow: var(--shadow-sm), 0 0 0 7px rgba(217,108,14,0); }
}
@media (prefers-reduced-motion: reduce) {
  .sound-toggle.on { animation:none !important; }
}

/* ---------- story view ---------- */
.story-title { margin:10px auto;}
.scene-art-wrap { background:#f7f3eb;}
/* bumpOut keyframe (fade+scale burst) */
@keyframes bumpOut { 0%{transform:translate(-50%,-50%) scale(.35);opacity:.05} 40%{transform:translate(-50%,-50%) scale(1.1);} 100%{transform:translate(-50%,-50%) scale(1);opacity:0;} }