/* The app around the stage: map, sheets, player bar, phrasebook, passport. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--cream); font-family: var(--ui); overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
small { font-family: var(--jp); }
/* --vvh is the height you can actually see (set in app.js); iPad browsers can make the window taller than that */
#app { position: fixed; left: 0; top: 0; width: 100%; height: var(--vvh, 100%); overflow: hidden; }
.ic { width: 22px; height: 22px; flex: none; }

/* ---------- header ---------- */
#top { position: absolute; left: 0; right: 0; top: 0; z-index: 6; height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7,11,16,.86), rgba(7,11,16,.5) 60%, transparent); }
.logo { display: flex; align-items: center; gap: 11px; }
.logo b { display: block; font-size: 15px; letter-spacing: .24em; font-weight: 800; color: #fff; }
.logo span { display: block; font-family: var(--jp); font-size: 11px; letter-spacing: .12em; opacity: .7; margin-top: 1px; }
.chips { display: flex; gap: 8px; }
.chip-stat { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 10px; border-radius: 100px; font-weight: 800; font-size: 14px;
  background: rgba(16,24,32,.8); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); color: var(--amber); }
.chip-stat .ic { width: 17px; height: 17px; }
#c-streak { color: var(--coral); }
#c-streak.off { color: rgba(255,255,255,.4); }

/* ---------- views ---------- */
.view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.view.on { opacity: 1; visibility: visible; }
#v-phrases, #v-passport, #v-browse { overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: radial-gradient(900px 500px at 85% -5%, rgba(255,200,107,.10), transparent 70%), radial-gradient(800px 600px at 0% 100%, rgba(127,220,185,.07), transparent 70%), var(--ink); }
.page { max-width: 760px; margin: 0 auto; padding: calc(84px + env(safe-area-inset-top)) 18px calc(120px + env(safe-area-inset-bottom)); }
.page h1 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(38px, 8vw, 56px); margin: 0 0 18px; letter-spacing: -.02em; color: #fff; }
.page h1 span { font-family: var(--jp); font-style: normal; font-size: 15px; letter-spacing: .14em; color: var(--amber); margin-left: 12px; font-weight: 700; }

/* ---------- bottom navigation ---------- */
#nav { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 7; display: flex; gap: 4px; padding: 6px;
  border-radius: 100px; background: rgba(14,21,29,.86); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
#nav button { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 100px; color: rgba(255,255,255,.62); transition: background .2s, color .2s; }
#nav button b { font-size: 14px; letter-spacing: .04em; }
#nav button span { display: none; }
#nav button.on { background: var(--amber); color: var(--ink); }
#nav button[data-badge]:not([data-badge=""])::after { content: attr(data-badge); position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--coral); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
body:has(.player.on) #nav, body:has(.player.on) #top { display: none; }

/* ---------- the town map ---------- */
.townmap { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.townmap:active { cursor: grabbing; }
.townmap[data-mood="day"] { background: #a9d79b; }
.townmap[data-mood="dusk"] { background: #56707a; }
.townmap[data-mood="night"] { background: #1e3742; }
.townmap .world { position: absolute; left: 0; top: 0; width: 1600px; height: 1100px; transform-origin: 0 0; will-change: transform; }
.townmap svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.townmap .wave { animation: wave 6s ease-in-out infinite; }
.townmap .boat { animation: bob 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.townmap .cloud { animation: drift 180s linear infinite; }
.townmap .beam { animation: beam 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes wave { 0%, 100% { opacity: 0; transform: translateX(-8px); } 50% { opacity: 1; transform: translateX(8px); } }
@keyframes bob { 0%, 100% { rotate: -4deg; } 50% { rotate: 5deg; } }
@keyframes drift { from { transform: translateX(-300px); } to { transform: translateX(1900px); } }
@keyframes beam { 0%, 100% { scale: .6; opacity: .12; } 50% { scale: 1.3; opacity: .34; } }

.loc { position: absolute; transform: translate(-50%, -42px); display: flex; flex-direction: column; align-items: center; color: #fff; }
.loc .card { position: relative; display: block; width: 136px; height: 84px; border-radius: 12px; border: 4px solid #fff7ea; background: #16202a;
  box-shadow: 0 10px 24px rgba(0,0,0,.38); rotate: var(--r); transition: scale .25s cubic-bezier(.2,.9,.3,1.4), rotate .25s; }
.loc .card img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 7px; pointer-events: none; }
.loc.live .card { animation: glow 2.8s ease-in-out infinite; }
.loc.done .card { animation: none; box-shadow: 0 0 0 3px var(--mint), 0 10px 24px rgba(0,0,0,.38); }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 3px var(--amber), 0 0 22px rgba(255,200,107,.45), 0 10px 24px rgba(0,0,0,.4); }
  50% { box-shadow: 0 0 0 5px var(--amber), 0 0 46px rgba(255,200,107,.85), 0 10px 24px rgba(0,0,0,.4); } }
.loc:hover .card, .loc:focus-visible .card { scale: 1.1; rotate: 0deg; }
.loc:active .card { scale: .96; }
.loc.soon { transform: translate(-50%, -30px); }
.loc.soon .card { width: 92px; height: 58px; border-width: 3px; border-color: rgba(255,247,234,.75); }
.loc.soon .card img { filter: saturate(.3) brightness(.78); }
.loc .lbl { margin-top: 9px; padding: 4px 12px 5px; border-radius: 100px; white-space: nowrap; display: flex; gap: 7px; align-items: baseline;
  background: rgba(10,16,22,.82); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.loc .lbl b { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.loc .lbl i { font-family: var(--jp); font-style: normal; font-size: 11px; opacity: .7; }
.loc.soon .lbl { margin-top: 6px; padding: 2px 9px 3px; background: rgba(10,16,22,.6); }
.loc.soon .lbl b { font-size: 11.5px; font-weight: 600; }
.loc.soon .lbl i { display: none; }
.loc .chip { position: absolute; top: -11px; right: -12px; padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 800; letter-spacing: .1em; rotate: 6deg;
  background: var(--amber); color: var(--ink); box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.loc.done .chip { background: var(--mint); letter-spacing: 0; font-size: 12px; }
.loc.soon .chip { top: -8px; right: -10px; font-size: 8.5px; padding: 2px 6px; background: rgba(20,28,38,.85); color: rgba(255,255,255,.75); }
.loc .tick { position: absolute; left: -10px; bottom: -10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px;
  background: var(--mint); color: var(--ink); border: 3px solid #fff7ea; }

.map-tools { position: absolute; right: 14px; top: calc(74px + env(safe-area-inset-top)); z-index: 4; display: flex; flex-direction: column; gap: 10px; }
.map-tools button, .icb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(14,21,29,.82); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.eplist { position: absolute; inset: 0; z-index: 3; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; background: rgba(8,13,19,.93); backdrop-filter: blur(14px); }
.eplist.on { opacity: 1; visibility: visible; }
.epgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.epc { text-align: left; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: transform .2s, border-color .2s; }
.epc:hover { transform: translateY(-3px); border-color: var(--amber); }
.epc img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.epc .t { display: block; padding: 12px 14px 14px; position: relative; }
.epc small { display: block; font-size: 11px; letter-spacing: .14em; color: var(--amber); font-weight: 700; font-family: var(--ui); }
.epc .t > b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; color: #fff; margin-top: 3px; }
.epc .t > i { display: block; font-family: var(--jp); font-style: normal; font-size: 13px; opacity: .7; margin-top: 2px; }
.epc em { position: absolute; right: 12px; top: 12px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 8px; border-radius: 100px; background: var(--amber); color: var(--ink); }
.epc .stars { position: absolute; right: 12px; top: 10px; }
.foot { text-align: center; font-size: 13px; line-height: 1.7; opacity: .6; margin-top: 28px; font-family: var(--jp); }
.stars { color: var(--amber); letter-spacing: 1px; font-size: 14px; }
.stars i { font-style: normal; opacity: .25; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 20px; border-radius: 100px; font-weight: 700; font-size: 15px; white-space: nowrap;
  background: rgba(255,255,255,.09); border: 1.5px solid rgba(255,255,255,.14); color: #fff; transition: transform .15s, background .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn small { font-size: 11px; font-weight: 600; opacity: .7; margin-left: 2px; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.ghost { background: transparent; }
.btn.on { background: rgba(255,143,112,.16); border-color: var(--coral); color: var(--coral); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- sheet ---------- */
.sheet { position: absolute; inset: 0; z-index: 30; display: none; }
.sheet.on { display: block; }
.sheet .backdrop { position: absolute; inset: 0; background: rgba(4,8,12,.62); backdrop-filter: blur(6px); animation: fadein .25s; }
.sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 0 0 calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(170deg, #1b2530, #0f161e); border: 1px solid rgba(255,255,255,.12); border-bottom: 0; box-shadow: 0 -20px 80px rgba(0,0,0,.6); animation: rise .38s cubic-bezier(.2,.9,.25,1); }
.sheet .x { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(8,12,17,.7); color: #fff; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }
@media (min-width: 720px) {
  .sheet .panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 500px; max-height: 90dvh; translate: -50% -50%; border-radius: 26px; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 22px; animation: pop .34s cubic-bezier(.2,.9,.25,1.15); }
  @keyframes pop { from { scale: .92; opacity: 0; } }
}
.s-hero { position: relative; }
.s-hero img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 25px 25px 0 0; }
.s-hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, #18212b, transparent); }
.s-loc { position: absolute; left: 22px; bottom: 10px; z-index: 1; }
.s-loc b { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); }
.s-loc span { font-family: var(--jp); font-size: 12px; margin-left: 10px; opacity: .8; }
.s-ep { padding: 6px 22px 4px; }
.s-ep + .s-ep { margin-top: 18px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.s-no { font-size: 11.5px; letter-spacing: .14em; font-weight: 700; color: rgba(255,255,255,.6); }
.s-ep h2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 36px; line-height: 1.05; margin: 6px 0 2px; color: #fff; letter-spacing: -.015em; }
.s-ep .ja { font-family: var(--jp); font-size: 15px; margin: 0; opacity: .75; line-height: 1.6; }
.s-phr { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.s-phr span { font-family: var(--serif); font-style: italic; font-size: 14px; padding: 4px 11px; border-radius: 100px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.s-phr .more { font-family: var(--ui); font-style: normal; font-weight: 700; color: var(--amber); }
.s-role { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.s-role > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; opacity: .75; margin-right: auto; }
.s-role > span small { display: block; font-weight: 500; opacity: .8; }
.s-role .btn { min-height: 40px; padding: 4px 16px; font-size: 14px; border-color: var(--c); color: var(--c); }
/* the song on its own: the whole track, or one part of it */
.s-song { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.s-song > span { flex: 1 0 100%; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #ff8fc0; }
.s-song > span small { display: block; font-weight: 500; opacity: .8; color: inherit; }
.s-song .btn { min-height: 40px; padding: 4px 14px; font-size: 14px; border-color: #ff5fa2; color: #ffd3e6; flex-direction: column; gap: 0; line-height: 1.15; }
.s-song .btn small { font-size: 10.5px; opacity: .7; }

.sv { padding: 26px 22px 0; }
.sv-who { font-size: 13px; letter-spacing: .2em; font-weight: 800; text-transform: uppercase; }
.sv-en { font-family: var(--serif); font-size: 26px; line-height: 1.22; color: #fff; margin-top: 6px; padding-right: 36px; }
.sv-ja { font-family: var(--jp); font-size: 14px; opacity: .75; margin: 8px 0 16px; line-height: 1.6; }
.sv-key { margin: 14px 0; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.05); border-left: 4px solid var(--c); }
.sv-key b { display: block; font-family: var(--serif); font-style: italic; font-size: 24px; color: #fff; }
.sv-key span { display: block; font-family: var(--jp); font-weight: 700; margin-top: 4px; }
.sv-key small { display: block; font-family: var(--ui); font-size: 13px; opacity: .65; margin: 4px 0 12px; }
.row2 { display: flex; gap: 10px; margin-top: 14px; }
.row2 .btn { flex: 1; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.picks .btn { min-height: 40px; }

/* ---------- player ---------- */
/* touch-action: a quick double tap on the stage or the bar must not zoom the page in (iPad Safari does) */
.player { position: absolute; inset: 0; z-index: 20; display: none; flex-direction: column; background: #05080c; touch-action: manipulation; }
.player.on { display: flex; animation: fadein .45s; }
/* while an episode plays, the page under the player is neither drawn nor animated: phones (Android especially)
   run out of graphics memory with both alive, and parts of the stage flicker away and back */
#app:has(> .player.on) > main, #app:has(> .player.on) > main * { visibility: hidden !important; animation-play-state: paused !important; }
#stage-host { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: calc(68px + env(safe-area-inset-bottom)); padding: 0 12px env(safe-area-inset-bottom);
  background: #0a1016; border-top: 1px solid rgba(255,255,255,.08); }
#bar .mid, #bar .right { display: flex; align-items: center; gap: 6px; }
#bar .right { min-width: 44px; justify-content: flex-end; }
.cb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.85); transition: background .2s, transform .15s; }
.cb:hover { background: rgba(255,255,255,.08); }
.cb:active { transform: scale(.9); }
.cb.big { width: 54px; height: 54px; background: var(--amber); color: var(--ink); }
.cb.big .ic { width: 26px; height: 26px; }
.cb.txt { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.cb.txt i { font-family: var(--jp); font-style: normal; font-size: 11px; opacity: .8; margin-left: 1px; }
.cb.txt s { opacity: .5; }
.cb.on { color: var(--coral); }
@media (min-width: 900px) { #bar { padding-left: max(12px, calc(50% - 420px)); padding-right: max(12px, calc(50% - 420px)); } }
#loading { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #05080c; }
#loading.on { display: flex; }
#loading b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; color: #fff; margin-top: 18px; }
#loading span { font-family: var(--jp); font-size: 13px; letter-spacing: .2em; color: var(--amber); }
.cup { width: 56px; height: 40px; border-radius: 4px 4px 26px 26px; background: var(--amber); position: relative; animation: sip 1.2s ease-in-out infinite; }
.cup::before { content: ""; position: absolute; right: -16px; top: 6px; width: 18px; height: 20px; border: 5px solid var(--amber); border-left: 0; border-radius: 0 12px 12px 0; }
.cup::after { content: ""; position: absolute; left: 14px; top: -26px; width: 6px; height: 18px; border-radius: 3px; background: rgba(255,255,255,.5); box-shadow: 14px 4px 0 rgba(255,255,255,.35); animation: steam 1.2s ease-in-out infinite; }
@keyframes sip { 50% { transform: translateY(-5px) rotate(-4deg); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

#end { position: absolute; inset: 0; z-index: 3; display: none; overflow-y: auto; background: rgba(5,8,12,.86); backdrop-filter: blur(14px); }
#end.on { display: block; animation: fadein .4s; }
#end canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.end-card { position: relative; max-width: 460px; margin: 0 auto; padding: max(28px, 6dvh) 20px 40px; text-align: center; }
.stampbig { width: 168px; height: 168px; margin: 0 auto 14px; color: var(--coral); animation: stamp .55s .35s cubic-bezier(.3,1.6,.5,1) backwards; rotate: -9deg; }
@keyframes stamp { from { scale: 2.6; opacity: 0; rotate: 14deg; } }
.stampsvg { display: block; width: 100%; height: 100%; }
.end-h { font-family: var(--serif); font-style: italic; font-size: 40px; color: #fff; letter-spacing: -.02em; }
.end-ja { font-family: var(--jp); font-size: 14px; letter-spacing: .2em; color: var(--amber); margin-top: 4px; }
.end-stars { font-size: 46px; margin: 12px 0 2px; display: flex; justify-content: center; gap: 8px; }
.end-stars b { color: rgba(255,255,255,.14); }
.end-stars b.on { color: var(--amber); animation: starin .5s cubic-bezier(.3,1.8,.5,1) backwards; text-shadow: 0 0 26px rgba(255,200,107,.6); }
@keyframes starin { from { scale: 0; rotate: -90deg; } }
.end-note { font-size: 15px; opacity: .85; }
.end-note small { display: block; opacity: .7; margin-top: 2px; }
.end-lab { font-size: 11.5px; letter-spacing: .22em; font-weight: 800; color: var(--amber); margin: 26px 0 10px; text-align: left; }
.end-lab span { font-family: var(--jp); letter-spacing: .08em; font-weight: 500; color: rgba(255,255,255,.55); margin-left: 10px; }
.end-kp { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.kp { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.1); text-align: left; }
.kp.on { border-color: var(--coral); background: rgba(255,143,112,.1); }
.kp.on .ic { color: var(--coral); }
.kp b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; color: #fff; }
.kp i { display: block; font-family: var(--jp); font-style: normal; font-size: 12.5px; opacity: .7; }
.end-btns { display: flex; gap: 10px; margin-top: 24px; }
.end-btns .btn { flex: 1; }

/* ---------- phrasebook ---------- */
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 100px; background: rgba(255,255,255,.06); margin-bottom: 18px; }
.tabs button { flex: 1; position: relative; min-height: 46px; border-radius: 100px; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.15; }
.tabs button span { display: block; font-family: var(--jp); font-size: 10.5px; font-weight: 500; opacity: .75; }
.tabs button.on { background: var(--cream); color: var(--ink); }
.tabs em { position: absolute; top: 3px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: var(--coral); color: var(--ink); }
.pb { display: flex; flex-direction: column; gap: 10px; }
.ph { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); }
.ph-play { position: relative; flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; color: #fff; }
.ph-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); transition: filter .2s, scale .3s; }
.ph-play:hover img { filter: brightness(.85); scale: 1.08; }
.ph-play .ic { position: relative; width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.ph-txt { flex: 1; min-width: 0; }
.ph .en { font-family: var(--serif); font-size: 20px; line-height: 1.2; color: #fff; }
.ph .ja { font-family: var(--jp); font-size: 13px; opacity: .75; margin-top: 3px; line-height: 1.5; }
.ph .note { font-size: 12.5px; opacity: .55; margin-top: 2px; }
.ph .src { display: flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .65; margin-top: 6px; }
.ph .src span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plant { width: 20px; height: 20px; flex: none; }
.ph-acts { display: flex; flex-direction: column; gap: 2px; flex: none; }
.ph-acts button { width: 38px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: rgba(255,255,255,.55); }
.ph-acts button:hover { background: rgba(255,255,255,.08); color: #fff; }
.ph-acts .ic { width: 18px; height: 18px; }
.empty { text-align: center; padding: 40px 16px; border-radius: 22px; border: 1.5px dashed rgba(255,255,255,.16); }
.empty .big { color: var(--coral); margin-bottom: 8px; }
.empty .big .ic, .empty .big .plant { width: 54px; height: 54px; }
.empty b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; color: #fff; }
.empty p { font-size: 14px; line-height: 1.75; opacity: .72; margin: 8px 0 18px; }
.newlist { display: flex; gap: 8px; }
.newlist input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 100px; font: inherit; font-size: 15px; color: #fff; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.14); }
.newlist input::placeholder { color: rgba(255,255,255,.4); font-size: 13px; }
.pl { padding: 14px; border-radius: 22px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 8px; }
.pl-head { display: flex; align-items: center; gap: 8px; }
.pl-head > div { flex: 1; min-width: 0; }
.pl-head b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-head span { font-size: 12px; opacity: .6; }
.pl-head .btn { min-height: 42px; }
.pl-empty { font-size: 13px; line-height: 1.7; opacity: .6; margin: 4px 2px; font-family: var(--jp); }
.pl-empty .ic { width: 14px; height: 14px; vertical-align: -2px; }
.garden { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 14px 8px; border-radius: 22px; background: linear-gradient(to bottom, rgba(127,220,185,.10), rgba(127,220,185,.03)); border: 1px solid rgba(127,220,185,.2); }
.garden > div { text-align: center; opacity: .38; }
.garden > div.has { opacity: 1; }
.garden .plant { width: 38px; height: 38px; }
.garden b { display: block; font-size: 20px; color: #fff; }
.garden span { display: block; font-size: 11px; opacity: .8; }
.garden i { display: block; font-family: var(--jp); font-style: normal; font-size: 10px; opacity: .7; }
.fc { margin-top: 6px; padding: 28px 22px 22px; border-radius: 26px; text-align: center; background: linear-gradient(160deg, rgba(34,44,54,.9), rgba(16,22,30,.92)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.fc-count { font-size: 11.5px; letter-spacing: .2em; font-weight: 800; color: var(--amber); text-transform: uppercase; }
.fc-count span { font-family: var(--jp); letter-spacing: .06em; font-weight: 500; color: rgba(255,255,255,.55); margin-left: 8px; }
.fc-ja { font-family: var(--jp); font-size: 26px; font-weight: 700; line-height: 1.5; color: #fff; margin: 22px 0 8px; }
.fc-q { font-size: 14px; opacity: .7; margin-bottom: 22px; }
.fc-q span { display: block; font-family: var(--jp); font-size: 12px; margin-top: 2px; }
.fc-en { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1.15; color: var(--mint); margin: 10px 0 6px; animation: rise .4s; }
.fc-note { font-size: 13.5px; opacity: .65; margin-bottom: 14px; }
.fc .row2 { margin-top: 12px; }

/* ---------- passport ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats > div { padding: 16px 12px; border-radius: 20px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); }
.stats b { display: block; font-family: var(--serif); font-size: 38px; font-weight: 500; color: var(--amber); line-height: 1; }
.stats b i { font-style: normal; font-size: 15px; color: rgba(255,255,255,.45); margin-left: 4px; font-family: var(--ui); }
.stats span { display: block; font-size: 12.5px; font-weight: 700; margin-top: 8px; }
.stats small { display: block; font-size: 10.5px; opacity: .6; font-weight: 500; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 18px 10px; padding: 22px 12px; border-radius: 24px;
  background: #f3e7d2; color: #2a2118; background-image: radial-gradient(rgba(60,40,20,.06) 1px, transparent 1px); background-size: 9px 9px; }
.st { display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; }
.st .stampsvg { width: 104px; height: 104px; rotate: var(--rot); transition: scale .25s cubic-bezier(.2,.9,.3,1.4); }
.st:hover .stampsvg { scale: 1.08; }
.st.got .stampsvg { color: #c8452e; }
.st.open .stampsvg { color: rgba(60,40,20,.42); }
.st.open image, .st.soon image { filter: grayscale(1); opacity: .28; }
.st.soon .stampsvg { color: rgba(60,40,20,.2); }
.st.soon image { opacity: .12; }
.st b { font-size: 13px; margin-top: 8px; }
.st span { font-size: 11px; opacity: .7; margin-top: 2px; }
.st span small { display: block; font-size: 10px; }
.st .stars { color: #c8452e; font-size: 12px; }

/* ---------- toast ---------- */
#toast { position: absolute; left: 50%; top: calc(74px + env(safe-area-inset-top)); z-index: 40; translate: -50% -14px; opacity: 0; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
  padding: 10px 20px; border-radius: 20px; font-weight: 700; font-size: 14px; background: var(--cream); color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.5); transition: opacity .25s, translate .25s; }
#toast.on { opacity: 1; translate: -50% 0; }
#toast small { display: block; font-size: 11.5px; font-weight: 500; opacity: .7; }
body:has(.player.on) #toast { top: 16px; }

@media (max-width: 480px) {
  #nav button { padding: 0 15px; }
  .sv .btn small, .end-btns .btn small { display: none; }
  .s-ep h2 { font-size: 31px; }
  .ph-play { width: 62px; height: 62px; }
  .ph .en { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .townmap .cloud, .townmap .wave, .townmap .boat, .loc.live .card { animation: none; } }

/* ---------- today's news ---------- */
.today { position: absolute; left: 14px; top: calc(74px + env(safe-area-inset-top)); z-index: 4; max-width: calc(100% - 86px); display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 12px;
  border-radius: 100px; text-align: left; color: #fff; background: rgba(14,21,29,.88); border: 1.5px solid var(--coral); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.today i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,143,112,.7); animation: live 1.8s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 12px rgba(255,143,112,0); } }
.today span { min-width: 0; }
.today small { display: block; font-family: var(--ui); font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: var(--coral); white-space: nowrap; }
.today b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 18px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today .ic { color: var(--amber); width: 20px; height: 20px; }
.today.done { border-color: rgba(255,255,255,.18); }
.today.done i { background: var(--mint); animation: none; }
.today.done small { color: var(--mint); }
.s-src, .end-src { font-size: 12px; opacity: .65; margin: -6px 0 14px; }
.end-src { margin: 10px 0 0; }
.s-src a, .end-src a { color: var(--amber); }

/* ---------- home (top page) ---------- */
#v-home { overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--ink); }
#home { position: relative; min-height: 100%; padding-bottom: calc(120px + env(safe-area-inset-bottom)); overflow: hidden; }
.hm-bg { position: absolute; inset: 0; pointer-events: none; }
/* soft glows: a radial gradient, not a blur filter (a big moving blur is too heavy for phones) */
.hm-bg i { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .13; animation: blob 26s ease-in-out infinite alternate; }
.hm-bg i:nth-child(1) { --c: var(--amber); left: -32vmax; top: 60vh; }
.hm-bg i:nth-child(2) { --c: var(--coral); right: -34vmax; top: 110vh; animation-delay: -9s; }
.hm-bg i:nth-child(3) { --c: var(--mint); left: 8vw; top: 180vh; animation-delay: -17s; }
@keyframes blob { to { transform: translate(12vmax, -9vmax) scale(1.25); } }

.hero { position: relative; height: min(80vh, 780px); min-height: 480px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#hero-stage { position: absolute; inset: 0; transition: opacity .38s; }
#hero-stage.cut { opacity: 0; }
.stage.hero-sc { position: absolute; inset: 0; width: auto; height: auto; transform: none; }
.stage.hero-sc .lens { width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--ink) 0%, rgba(10,16,22,.9) 20%, rgba(10,16,22,.2) 56%, rgba(10,16,22,.5) 100%), linear-gradient(to right, rgba(10,16,22,.72), transparent 62%); }
.hero-bars { position: absolute; left: max(20px, calc(50% - 562px)); top: calc(78px + env(safe-area-inset-top)); z-index: 2; display: flex; gap: 6px; width: min(420px, calc(100% - 40px)); }
.hb { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.28); }
.hb::before { content: ""; position: absolute; inset: -12px 0; }
.hb i { display: block; height: 100%; width: 0; border-radius: 2px; background: #fff; }
.hb.done i { width: 100%; }
#hero-copy { position: absolute; left: max(20px, calc(50% - 562px)); right: 20px; bottom: 30px; z-index: 2; max-width: 800px; }
.h-kick { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--c); animation: fadeup .5s both; }
.h-kick i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); animation: live 1.8s ease-out infinite; }
.h-kick span { font-family: var(--jp); letter-spacing: .1em; color: rgba(255,255,255,.72); font-weight: 600; }
#hero-copy h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 10vw, 112px); line-height: .96; letter-spacing: -.035em; margin: 12px 0 10px; color: #fff; text-shadow: 0 4px 44px rgba(0,0,0,.55); }
#hero-copy h1 span { display: inline-block; animation: word .75s cubic-bezier(.2,.8,.2,1) both; }
#hero-copy h1 span:last-child { font-style: italic; color: var(--amber); }
@keyframes word { from { opacity: 0; transform: translateY(48px) rotate(5deg); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } }
.h-ja { font-family: var(--jp); font-size: clamp(15px, 2.4vw, 21px); letter-spacing: .1em; opacity: .88; margin: 0; animation: fadeup .6s .4s both; }
.h-meta { font-size: 12.5px; letter-spacing: .12em; font-weight: 700; opacity: .7; margin: 14px 0 18px; animation: fadeup .6s .5s both; }
.h-play { min-height: 58px; padding: 8px 32px; font-size: 17px; animation: fadeup .5s .6s both, ring 2.6s 1.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,200,107,.55); } 60%, 100% { box-shadow: 0 0 0 16px rgba(255,200,107,0); } }

.hm-body { position: relative; max-width: 1160px; margin: 0 auto; padding: 10px 18px 0; display: flex; flex-direction: column; gap: 46px; }
.hm-body h2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(28px, 5vw, 42px); margin: 0 0 16px; color: #fff; letter-spacing: -.02em; }
.hm-body h2 span { font-family: var(--jp); font-style: normal; font-size: 13px; letter-spacing: .14em; color: var(--amber); margin-left: 12px; font-weight: 700; }
.rv { opacity: 0; transform: translateY(34px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

.hm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 780px) { .hm-pair { grid-template-columns: 1fr; } }
.feat { position: relative; display: flex; align-items: stretch; min-height: 158px; text-align: left; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, rgba(34,44,54,.92), rgba(16,22,30,.96)); border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.feat.in { transition: opacity .7s, transform .35s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s; }
.feat.in:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.feat:nth-child(2) { transition-delay: .12s; }
.f-img { position: relative; flex: none; width: 42%; overflow: hidden; }
.f-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 16s ease-in-out infinite alternate; }
.f-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 55%, rgba(20,27,36,.96)); }
@keyframes kb { from { transform: scale(1.06) translateX(-2%); } to { transform: scale(1.24) translateX(3%); } }
.f-sweep { position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.3) 50%, transparent 60%); animation: sweep 5.5s ease-in-out infinite; }
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.f-txt { flex: 1; min-width: 0; padding: 18px 66px 18px 16px; display: flex; flex-direction: column; justify-content: center; }
.f-txt small { font-family: var(--ui); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.f-txt small i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: live 1.8s ease-out infinite; }
.f-txt small em { font-style: normal; font-family: var(--jp); letter-spacing: .06em; color: rgba(255,255,255,.55); font-weight: 600; }
.f-txt b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.05; color: #fff; margin-top: 6px; }
.f-txt > span { font-family: var(--jp); font-size: 13px; opacity: .75; margin-top: 4px; }
.f-txt .f-tick { overflow: hidden; white-space: nowrap; margin-top: 12px; font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; opacity: .6;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.f-tick span { display: inline-block; padding-left: 100%; animation: tick 24s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
.f-txt .f-note { margin-top: 12px; font-family: var(--ui); font-size: 12px; font-weight: 700; opacity: .85; }
.f-note em { display: block; font-style: normal; font-family: var(--jp); font-size: 11px; font-weight: 500; opacity: .75; }
.f-go { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--ink); }

.wk { display: flex; gap: 14px; overflow-x: auto; padding: 6px 18px 14px; margin: 0 -18px; scroll-snap-type: x mandatory; scroll-padding-left: 18px; scrollbar-width: none; }
.wk::-webkit-scrollbar { display: none; }
.wk-c { flex: none; width: 236px; text-align: left; scroll-snap-align: start; }
.rv.in .wk-c { animation: cardin .65s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cardin { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.wk-img { position: relative; display: block; aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; border: 1.5px solid rgba(255,255,255,.12); transition: transform .3s cubic-bezier(.2,.9,.3,1.3), border-color .3s; }
.wk-c:hover .wk-img { transform: translateY(-6px) rotate(-1.2deg); border-color: var(--c); }
.wk-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .6s; }
.wk-c:hover img { scale: 1.12; }
.wk-img em, .wk-img u { position: absolute; top: 10px; font-style: normal; text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 4px 9px; border-radius: 100px; background: rgba(10,16,22,.82); }
.wk-img em { left: 10px; }
.wk-img u { right: 10px; letter-spacing: 0; }
.wk-img u.new { background: var(--amber); color: var(--ink); letter-spacing: .1em; font-size: 10px; }
.wk-c small { display: block; font-family: var(--ui); font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--c); margin-top: 12px; }
.wk-c b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 21px; line-height: 1.15; color: #fff; margin-top: 2px; }
.wk-c > span:last-child { display: block; font-family: var(--jp); font-size: 12.5px; opacity: .7; margin-top: 2px; }

.mq { overflow: hidden; margin: 0 -18px 10px; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.mq > div { display: inline-flex; gap: 10px; padding-right: 10px; white-space: nowrap; animation: mq 48s linear infinite; }
.mq.rev > div { animation-direction: reverse; animation-duration: 60s; }
.mq span { font-family: var(--serif); font-style: italic; font-size: 19px; padding: 8px 18px; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; }
@keyframes mq { to { transform: translateX(-50%); } }

.town { position: relative; width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 22px; padding: 26px; border-radius: 28px; text-align: left; overflow: hidden;
  background: linear-gradient(135deg, #1e3742, #14262c); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: transform .3s; }
.town:hover { transform: translateY(-4px); }
.tw-cards { position: relative; flex: none; width: 310px; height: 150px; }
.tw-cards img { position: absolute; left: calc(var(--i) * 30px); top: 24px; width: 124px; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; border: 3px solid #fff7ea;
  box-shadow: 0 8px 20px rgba(0,0,0,.4); rotate: calc((var(--i) - 3) * 5deg); animation: float 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes float { 50% { translate: 0 -9px; } }
.tw-txt { flex: 1; min-width: 220px; }
.tw-txt b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(28px, 4vw, 38px); }
.tw-txt span { display: block; font-family: var(--jp); font-size: 13px; opacity: .75; margin-top: 4px; }

@media (max-width: 520px) {
  .hero { height: 76vh; }
  .f-img { width: 36%; }
  .wk-c { width: 200px; }
  .tw-cards { width: 100%; }
  #nav button { padding: 0 16px; }
  #nav button:not(.on) b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-bg i, .f-img img, .f-sweep, .f-tick span, .mq > div, .tw-cards img, .h-play { animation: none; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- lessons with the teacher ---------- */
.pb-top { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-top .btn { flex: 1 1 220px; }
.ph .src .tch { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px 2px 6px; border-radius: 100px; font-style: normal; font-weight: 700; white-space: nowrap;
  color: var(--amber); background: rgba(255,200,107,.12); }
.ph .src .tch .ic { width: 14px; height: 14px; }
.fc .row2 { flex-wrap: wrap; }

/* ---------- footer on Home and Passport: social accounts and the site's pages ---------- */
.site-foot { position: relative; max-width: 1160px; margin: 64px auto 0; padding: 26px 18px 8px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; color: rgba(255,255,255,.55); font-size: 13px; }
.page .site-foot { padding-left: 0; padding-right: 0; }
.site-foot .sns-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.site-foot .sns { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; cursor: pointer; padding: 0; }
.site-foot .sns svg { width: 20px; height: 20px; fill: currentColor; }
.site-foot .sns.soon { opacity: .5; }
.site-foot a.sns:hover { color: var(--amber); border-color: var(--amber); }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 16px 0 8px; }
.site-foot nav a { color: rgba(255,255,255,.62); text-decoration: none; } .site-foot nav a:hover { color: #fff; }
.site-foot p { margin: 0; }

/* ---------- free / paid demo switch ---------- */
#c-plan { pointer-events: auto; cursor: pointer; padding: 0 13px; color: rgba(255,255,255,.75); letter-spacing: .12em; font-size: 12px; }
#c-plan.on { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.prem { text-align: center; }
.prem .sv-en { padding-right: 0; font-style: italic; font-size: 30px; }
.prem-ico { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,200,107,.14); color: var(--amber); }
.prem-ico .ic { width: 30px; height: 30px; }
.prem-list { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.prem-list li { padding: 10px 14px 10px 40px; border-radius: 14px; background: rgba(255,255,255,.05); font-weight: 700; font-size: 14.5px; position: relative; }
.prem-list li::before { content: "✓"; position: absolute; left: 14px; color: var(--mint); font-weight: 900; }
.prem-list small { display: block; font-weight: 500; opacity: .65; font-size: 12px; }
.prem-note { font-size: 12px; opacity: .55; line-height: 1.6; margin: 12px 0 0; }
.btn.shut { color: rgba(255,255,255,.75); border-style: dashed; }
.demo { margin-top: 26px; padding: 18px; border-radius: 22px; border: 1.5px dashed rgba(255,200,107,.5); background: rgba(255,200,107,.05); display: flex; flex-direction: column; gap: 12px; }
.demo .end-lab { margin: 0; }
.demo label { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo input { height: 42px; padding: 0 12px; border-radius: 12px; font: inherit; color: #fff; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.16); color-scheme: dark; }
.demo p { font-size: 12.5px; line-height: 1.7; opacity: .7; margin: 0; }

/* ---------- sample ads (free plan only) ---------- */
body.paid .ad, body.paid .adbreak { display: none; }
.ad { position: relative; display: flex; align-items: center; gap: 16px; margin: 0 auto; border-radius: 14px; overflow: hidden; color: #fff; text-align: left;
  background: linear-gradient(120deg, var(--a), var(--b)); border: 1px solid rgba(255,255,255,.16); }
.ad-lead { width: 100%; max-width: 728px; min-height: 90px; padding: 14px 20px 14px 22px; }
.ad-rect { width: 300px; height: 250px; flex-direction: column; justify-content: center; text-align: center; padding: 22px; margin-top: 22px; }
.ad-tag { position: absolute; left: 0; top: 0; padding: 3px 9px; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; background: rgba(0,0,0,.45); border-radius: 0 0 8px 0; }
.ad-body { flex: 1; min-width: 0; }
.ad-body b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.1; }
.ad-body span { display: block; font-size: 13.5px; opacity: .88; margin-top: 3px; }
.ad-rect .ad-body { flex: none; }
.ad-rect .ad-body b { font-size: 32px; }
.ad-rect .ad-body span { font-size: 15px; margin-top: 8px; }
.ad-cta { flex: none; padding: 9px 18px; border-radius: 100px; background: #fff; color: #10161d; font-weight: 800; font-size: 13.5px; }
.ad-x { position: absolute; right: 8px; bottom: 6px; font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.75); text-decoration: underline; }
.ad-lead .ad-x { bottom: auto; top: 5px; }
.hm-body > .ad, .page > .ad { margin-top: 0; }
.page > .ad, .sheet .ad { margin-top: 20px; }
.sheet .ad { width: calc(100% - 44px); }
.end-card .ad-rect { margin-left: auto; margin-right: auto; }
.adbreak { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.adbreak .end-lab { text-align: center; }
.adbreak .btn { margin-top: 18px; }
@media (max-width: 520px) { .ad-lead { padding: 22px 14px 12px; gap: 10px; } .ad-body b { font-size: 20px; } .ad-cta { padding: 8px 13px; } }

/* ---------- locked things ---------- */
.wk-c.shut .wk-img img, .epc.shut img { filter: saturate(.35) brightness(.6); }
.wk-img u.lk { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; background: rgba(10,16,22,.85); color: var(--amber); }
.wk-img u.lk .ic { width: 16px; height: 16px; }
.wk-img em { min-width: 26px; text-align: center; }
.epc em.lk { background: rgba(10,16,22,.85); color: var(--amber); padding: 5px 7px; }
.epc em.lk .ic { width: 14px; height: 14px; display: block; }
.loc.shut .card { animation: none; box-shadow: 0 0 0 3px rgba(255,255,255,.4), 0 10px 24px rgba(0,0,0,.38); }
.loc.shut .card img { filter: saturate(.4) brightness(.72); }
.loc.shut .chip { background: #1b2330; color: var(--amber); font-size: 9.5px; }

/* ---------- a location's or a show's list of episodes ---------- */
.s-more { padding: 4px 22px 0; }
.s-more .end-lab { margin-top: 20px; }
.s-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 14px; margin-bottom: 6px; border-radius: 14px; text-align: left; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: background .2s, border-color .2s; }
.s-row:hover { background: rgba(255,255,255,.09); border-color: var(--amber); }
.s-row > small { flex: none; width: 46px; font-family: var(--ui); font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--amber); }
.s-row > span { flex: 1; min-width: 0; }
.s-row b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-row i { display: block; font-family: var(--jp); font-style: normal; font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-row em { flex: none; font-style: normal; font-family: var(--jp); font-size: 11.5px; opacity: .6; }
.s-row .ic { flex: none; width: 18px; height: 18px; color: var(--amber); }
.s-row.shut b, .s-row.shut i { opacity: .55; }
.btn.yt { margin-top: 10px; }

/* ---------- the show on the top page and in the player ---------- */
.show-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.show-head .end-lab { margin: 0 0 6px; }
.show-head h2 { margin: 0; }
.show-head h2 span { font-family: var(--ui); letter-spacing: .08em; }
.show-head .btn { min-height: 54px; padding: 8px 26px; }
.free-note { font-size: 13.5px; opacity: .8; margin: 4px 0 0; }
.free-note small { display: block; opacity: .75; }
#showbar { display: none; flex: none; align-items: center; gap: 10px; padding: 8px 14px; background: #0d141b; border-top: 1px solid rgba(255,255,255,.08); }
#showbar.on { display: flex; }
#showbar button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); flex: none; }
#showbar button[disabled] { opacity: .3; pointer-events: none; }
#showbar .ic { width: 18px; height: 18px; }
#showbar span { flex: 1; min-width: 0; font-family: var(--serif); font-style: italic; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#showbar b { font-family: var(--ui); font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: var(--amber); margin-right: 10px; }
#showbar small { display: block; font-family: var(--ui); font-style: normal; font-size: 11.5px; opacity: .6; }
@media (min-width: 900px) { #showbar { padding-left: max(14px, calc(50% - 420px)); padding-right: max(14px, calc(50% - 420px)); } }
.stage.live.auto .c-timer { display: block; }
.stage.live.auto .c-hint { display: none; }

/* ---------- browse, a day's show as one card, and long lists ---------- */
.page.wide { max-width: 1060px; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 12px; margin: 0 -18px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chips-row button, .s-filter button { flex: none; min-height: 40px; padding: 4px 16px; border-radius: 100px; font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.chips-row button small, .s-filter button small { margin-left: 7px; font-size: 10.5px; opacity: .65; font-weight: 500; }
.chips-row button.on, .s-filter button.on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.s-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.s-filter button { min-height: 34px; padding: 3px 13px; font-size: 12.5px; }
.s-filter .chk { margin-left: auto; }
.s-filter .chk.on { background: rgba(127,220,185,.18); border-color: var(--mint); color: var(--mint); }
.s-tabs { margin: 14px 22px 12px; }
.s-tabs u { text-decoration: none; font-size: 12px; opacity: .6; margin-left: 2px; }
.s-none { font-size: 13.5px; opacity: .6; padding: 10px 2px; margin: 0; }
.s-row > small u { display: block; text-decoration: none; font-size: 13px; color: #fff; opacity: .9; }
.s-row > small u::before { content: "#"; opacity: .5; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 16px; margin: 4px 0 18px; }
.dgrid .wk-c { width: auto; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 12px; }
.bw > .end-lab:first-child { margin-top: 4px; }
.pc { display: flex; align-items: center; gap: 13px; padding: 9px; border-radius: 18px; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: transform .2s, border-color .2s; }
.pc:hover { transform: translateY(-3px); border-color: var(--amber); }
.pc img { flex: none; width: 92px; aspect-ratio: 16/11; object-fit: cover; border-radius: 11px; }
.pc span { min-width: 0; }
.pc b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; color: #fff; line-height: 1.15; }
.pc i { display: block; font-family: var(--jp); font-style: normal; font-size: 12px; opacity: .65; }
.pc small { display: block; font-family: var(--ui); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-top: 4px; }
.pc.soon { opacity: .5; }
.pc.soon img { filter: saturate(.3); }
.pc.soon small { color: rgba(255,255,255,.6); }
/* up to four scenes of a day as one picture */
.mo { display: grid; width: 100%; height: 100%; gap: 2px; background: #0a1016; }
.mo2, .mo3, .mo4 { grid-template-columns: 1fr 1fr; }
.mo3, .mo4 { grid-template-rows: 1fr 1fr; }
.mo3 img:first-child { grid-row: span 2; }
.mo img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.s-day { aspect-ratio: 16/7; overflow: hidden; border-radius: 25px 25px 0 0; }
.s-hero.s-day .mo img { border-radius: 0; aspect-ratio: auto; }
.wk-c.all .wk-img { display: grid; place-items: center; color: var(--amber); background: rgba(255,200,107,.08); border-style: dashed; }
.wk-c.all .ic { width: 40px; height: 40px; }
.showcard { width: 100%; display: flex; align-items: center; gap: 22px; padding: 14px; border-radius: 26px; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: transform .25s, border-color .25s; }
.showcard:hover { transform: translateY(-4px); border-color: var(--amber); }
.showcard .mo { flex: none; width: min(42%, 380px); height: auto; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; }
.sc-txt { flex: 1; min-width: 0; }
.sc-txt b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 3.4vw, 32px); color: #fff; }
.sc-txt span { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-top: 4px; }
.sc-txt small { display: block; font-size: 12.5px; opacity: .7; margin-top: 8px; line-height: 1.6; }
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.door { padding: 18px; border-radius: 20px; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: transform .2s, border-color .2s; }
.door:hover { transform: translateY(-4px); border-color: var(--amber); }
.door b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; color: #fff; }
.door span { display: block; font-family: var(--jp); font-size: 12.5px; opacity: .7; margin-top: 2px; }
.door small { display: block; font-family: var(--ui); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-top: 12px; }
@media (max-width: 720px) { .doors { grid-template-columns: 1fr 1fr; } .showcard { flex-wrap: wrap; } .showcard .mo { width: 100%; } .showcard .btn { width: 100%; } .s-filter .chk { margin-left: 0; } }
@media (max-width: 520px) { #nav button { padding: 0 13px; } .tabs button { font-size: 12.5px; } .dgrid { grid-template-columns: 1fr 1fr; } }

/* ---------- EIGO FM: the radio (app.js, "EIGO FM, the radio") ---------- */
:root { --fm: #ff5fa2; --fm2: #8d7dff; }
/* equalizer bars: they move while the radio is playing */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; transform: scaleY(.35); }
.playing .eq i, .cur .eq i { animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-duration: .7s !important; animation-delay: -.3s !important; }
.eq i:nth-child(3) { animation-duration: 1.1s !important; animation-delay: -.5s !important; }
.eq i:nth-child(4) { animation-duration: .8s !important; animation-delay: -.15s !important; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* the header switch */
.fm-chip { pointer-events: auto; cursor: pointer; color: #ffd3e6; border-color: color-mix(in srgb, var(--fm) 55%, transparent); letter-spacing: .1em; font-size: 12px; transition: background .2s, color .2s; }
.fm-chip:hover { background: rgba(255,95,162,.18); }
.fm-chip.on { background: var(--fm); border-color: var(--fm); color: #1a0710; box-shadow: 0 0 0 0 rgba(255,95,162,.6); animation: fmring 2.4s ease-out infinite; }
@keyframes fmring { 70%, 100% { box-shadow: 0 0 0 10px rgba(255,95,162,0); } }

/* the now-playing bar, above the bottom navigation */
.fm { position: absolute; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 7; width: min(520px, calc(100% - 24px)); translate: -50% 20px; opacity: 0; visibility: hidden;
  border-radius: 22px; overflow: hidden; background: linear-gradient(120deg, rgba(58,20,52,.94), rgba(26,22,58,.94)); border: 1px solid rgba(255,95,162,.45);
  backdrop-filter: blur(16px); box-shadow: 0 18px 50px rgba(0,0,0,.55); transition: opacity .3s, translate .3s, visibility .3s; }
.fm.on { opacity: 1; translate: -50% 0; visibility: visible; }
body:has(.player.on) .fm { display: none; }
.fm-in { display: flex; align-items: center; gap: 6px; padding: 8px; }
.fm-disc { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--fm); position: relative; }
.fm-disc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-disc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #1a0e1c; border: 2px solid rgba(255,255,255,.7); }
.fm.playing .fm-disc { animation: spin 6s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.fm-txt { flex: 1; min-width: 0; text-align: left; padding: 0 4px; }
.fm-txt small { display: flex; align-items: center; gap: 6px; font-family: var(--ui); font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--fm); white-space: nowrap; }
.fm-txt small i { width: 7px; height: 7px; border-radius: 50%; background: var(--fm); }
.fm.playing .fm-txt small i { animation: live 1.8s ease-out infinite; }
.fm-txt b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 17px; line-height: 1.2; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-txt span { display: block; font-size: 11.5px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-b { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); }
.fm-b .ic { width: 18px; height: 18px; }
.fm-b[data-fm="toggle"] { background: var(--fm); color: #1a0710; }
.fm-b.x { background: transparent; color: rgba(255,255,255,.6); }
.fm-prog { height: 3px; background: rgba(255,255,255,.1); }
.fm-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--fm2), var(--fm)); transition: width .3s linear; }
body.fm-on #home, body.fm-on .page { padding-bottom: calc(196px + env(safe-area-inset-bottom)); }

/* the banner at the top of Home */
.fm-band { position: relative; border-radius: 30px; overflow: hidden; padding: 22px; color: #fff;
  background: radial-gradient(700px 380px at 92% 0%, rgba(255,95,162,.30), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(141,125,255,.28), transparent 70%), linear-gradient(135deg, #2a1230, #15142e 60%, #10182a);
  border: 1.5px solid rgba(255,95,162,.5); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }
.fm-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 26px; align-items: center; }
.fm-art { position: relative; aspect-ratio: 16/10; border-radius: 20px; overflow: hidden; border: 1.5px solid rgba(255,255,255,.14); color: #fff; }
.fm-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 18s ease-in-out infinite alternate; }
.fm-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,8,24,.75), transparent 55%); }
.fm-air { position: absolute; left: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: .2em;
  background: rgba(10,6,14,.78); color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.18); transition: color .3s, background .3s, box-shadow .3s; }
.fm-air i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); }
.fm-band.on .fm-air { color: #fff; background: #e8264f; border-color: #ff8aa3; box-shadow: 0 0 24px rgba(232,38,79,.7); }
.fm-band.on .fm-air i { background: #fff; animation: live 1.6s ease-out infinite; }
.eq.big { position: absolute; right: 16px; bottom: 14px; z-index: 1; height: 34px; gap: 4px; color: var(--fm); }
.eq.big i { width: 6px; }
.fm-band:not(.playing) .eq.big i { animation: eq 2.4s ease-in-out infinite; opacity: .55; }
.fm-band.playing .eq.big i { animation: eq .9s ease-in-out infinite; }
.fm-kick { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .22em; color: var(--fm); }
.fm-kick i { width: 9px; height: 9px; border-radius: 50%; background: var(--fm); animation: live 1.8s ease-out infinite; }
.fm-kick em { font-style: normal; font-family: var(--jp); letter-spacing: .08em; font-weight: 600; color: rgba(255,255,255,.65); }
.hm-body h2.fm-h { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.02; margin: 10px 0 10px; }
.hm-body h2.fm-h span { font-family: var(--serif); font-style: italic; font-size: inherit; letter-spacing: -.02em; margin: 0; color: var(--fm); font-weight: 500; }
.fm-ja { font-family: var(--jp); font-size: 14px; line-height: 1.75; opacity: .85; margin: 0 0 14px; }
.fm-now { display: none; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: rgba(255,95,162,.12); border: 1px solid rgba(255,95,162,.35); }
.fm-band.on .fm-now { display: block; }
.fm-now small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; color: var(--fm); font-family: var(--ui); }
.fm-now b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; margin-top: 2px; }
.fm-now span { display: block; font-size: 12.5px; opacity: .75; }
.fm-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-btns .btn { flex-direction: column; gap: 0; line-height: 1.15; min-height: 56px; padding: 6px 24px; }
.fm-btns .btn .ic { display: none; }
.fm-btns .btn small { font-size: 11px; font-weight: 500; opacity: .75; }
.fm-power { background: var(--fm); border-color: var(--fm); color: #1a0710; font-size: 17px; animation: fmring 2.6s 1s ease-out infinite; }
.fm-band.on .fm-power { background: transparent; color: #ffd3e6; animation: none; }
.fm-strip { display: flex; gap: 12px; overflow-x: auto; margin: 22px -22px -4px; padding: 4px 22px 10px; scroll-snap-type: x mandatory; scroll-padding-left: 22px; scrollbar-width: none; }
.fm-strip::-webkit-scrollbar { display: none; }
.fm-c { flex: none; width: 196px; scroll-snap-align: start; text-align: left; padding: 14px 14px 13px; border-radius: 18px; color: #fff;
  background: linear-gradient(150deg, hsl(var(--h) 55% 30% / .9), hsl(calc(var(--h) + 30) 45% 16% / .95)); border: 1.5px solid hsl(var(--h) 70% 70% / .25);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.3), border-color .3s; }
.fm-c:hover { transform: translateY(-4px); border-color: hsl(var(--h) 80% 75% / .7); }
.fm-c.cur { border-color: var(--fm); box-shadow: 0 0 0 3px rgba(255,95,162,.25); }
.fm-c-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: hsl(var(--h) 90% 82%); }
.fm-c-top u { text-decoration: none; }
.fm-c-top .eq { opacity: 0; }
.fm-c.cur .fm-c-top .eq { opacity: 1; color: var(--fm); }
.fm-c-top em { margin-left: auto; font-style: normal; opacity: .7; letter-spacing: 0; }
.fm-c b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.15; margin-top: 10px; }
.fm-c-id { display: block; font-size: 12px; font-weight: 700; margin-top: 8px; color: rgba(255,255,255,.85); }
.fm-c small { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
@media (max-width: 780px) {
  .fm-top { grid-template-columns: 1fr; gap: 18px; }
  .fm-band { padding: 16px; border-radius: 24px; }
  .fm-strip { margin: 18px -16px -2px; padding: 4px 16px 8px; scroll-padding-left: 16px; }
  .fm-btns .btn { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .fm-chip b { display: none; }
  .fm-chip { padding: 0 10px; }
  .fm-c { width: 172px; }
}
/* the radio's slide at the top of Home */
#hero-copy.fm-s h1 span:last-child { color: var(--fm); }
.h-btns { display: flex; flex-wrap: wrap; gap: 10px; animation: fadeup .5s .6s both; }
.h-btns .btn { flex-direction: column; gap: 0; line-height: 1.15; }
.h-btns .btn .ic { display: none; }
.h-btns .btn small { font-size: 11px; font-weight: 500; opacity: .75; }
.h-fm { background: var(--fm); border-color: var(--fm); color: #1a0710; animation: fmring 2.6s 1.6s ease-out infinite; }
.h-fm.on { background: rgba(10,6,14,.6); color: #ffd3e6; animation: none; }
.h-sub { min-height: 58px; padding: 8px 24px; background: rgba(10,16,22,.45); }
/* the radio chip makes the header fuller: on a phone the chips draw tighter so the logo stays on one line */
.logo b { white-space: nowrap; }
@media (max-width: 420px) {
  #top { padding-left: 14px; padding-right: 14px; }
  .logo { gap: 8px; }
  .chips { gap: 5px; }
  .chip-stat { padding: 0 9px; font-size: 13px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .eq i, .fm-chip.on, .fm-power, .fm.playing .fm-disc, .fm-art img, .fm-kick i { animation: none !important; }
}
