/* Fahd Tesla Universe — HUD layer. The 3D lab is the interface; HTML only carries text, links and controls. */
@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap; src: url('../assets/fonts/tajawal-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-display: swap; src: url('../assets/fonts/tajawal-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 800; font-display: swap; src: url('../assets/fonts/tajawal-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap; src: url('../assets/fonts/tajawal-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Tajawal'; font-weight: 700 800; font-display: swap; src: url('../assets/fonts/tajawal-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Orbitron'; font-weight: 400 600; font-display: swap; src: url('../assets/fonts/orbitron-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-weight: 700 900; font-display: swap; src: url('../assets/fonts/orbitron-latin-800-normal.woff2') format('woff2'); }

:root {
  --void: #020309;
  --volt: #3fa9ff;
  --plasma: #9b5cff;
  --copper: #c8834a;
  --glow: #eaf6ff;
  --ink: #c9d8ec;
  --ink-dim: #7f90a8;
  --glass: rgba(8, 16, 34, 0.66);
  --line: rgba(127, 196, 255, 0.26);
  --cut: 14px;
  --ar: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --en: 'Orbitron', 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--void); color: var(--ink); font-family: var(--ar); overflow: hidden; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
.skip-link { position: fixed; top: -60px; right: 16px; z-index: 100; padding: 10px 16px; background: var(--volt); color: #001; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

#stage { position: fixed; inset: 0; }
#lab { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1px solid var(--line); background: rgba(10, 22, 44, 0.55); color: var(--glow); font-family: var(--ar); font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background .25s, border-color .25s, transform .2s, box-shadow .25s; }
.btn:hover { background: rgba(63, 169, 255, 0.16); border-color: rgba(127, 196, 255, 0.6); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(100deg, rgba(63, 169, 255, 0.9), rgba(155, 92, 255, 0.85)); border-color: transparent; color: #fff; box-shadow: 0 0 28px rgba(63, 169, 255, 0.35); }
.btn-primary:hover { background: linear-gradient(100deg, #5bb8ff, #ad78ff); box-shadow: 0 0 40px rgba(63, 169, 255, 0.55); }
.btn-primary[aria-disabled="true"] { background: linear-gradient(100deg, rgba(127, 107, 255, 0.45), rgba(63, 169, 255, 0.35)); box-shadow: none; }
.btn-ghost { background: transparent; }
.btn-link { border: 0; background: none; min-height: 36px; color: var(--ink-dim); font-weight: 400; text-decoration: underline; text-underline-offset: 4px; clip-path: none; }
.btn-link:hover { background: none; color: var(--glow); }
.icon-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(6, 12, 26, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background .2s, color .2s; color: var(--ink); }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(63, 169, 255, 0.18); color: #fff; }

/* ---------------- boot overlay ---------------- */
#boot { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #060a18 0%, #010205 70%); transition: opacity .9s ease; padding: 24px; text-align: center; }
#boot.gone { opacity: 0; pointer-events: none; }
.boot-inner { display: grid; justify-items: center; gap: 18px; max-width: 520px; }
.boot-spark { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px #9fd0ff, 0 0 40px 12px rgba(63, 169, 255, .55), 0 0 90px 30px rgba(155, 92, 255, .25); animation: flicker 2.6s infinite steps(1); margin-bottom: 18px; }
@keyframes flicker { 0%, 100% { opacity: 1; } 7% { opacity: .3; } 9% { opacity: 1; } 42% { opacity: .85; } 44% { opacity: .2; } 46% { opacity: 1; } 71% { opacity: .6; } }
.boot-brand { font-family: var(--en); letter-spacing: .5em; font-size: 13px; color: var(--volt); margin: 0; padding-inline-start: .5em; }
.boot-title { font-size: clamp(28px, 6vw, 44px); font-weight: 800; color: var(--glow); margin: 0; line-height: 1.25; text-shadow: 0 0 30px rgba(63, 169, 255, .35); }
.boot-sub { margin: 0; color: var(--ink-dim); font-size: 16px; line-height: 1.8; }
#boot-status { margin: 4px 0 0; font-size: 14px; color: var(--ink-dim); min-height: 1.5em; }
#boot:not(.ready) #boot-status::after { content: ''; display: inline-block; width: 1em; text-align: start; animation: dots 1.2s infinite; }
@keyframes dots { 0% { content: ''; } 33% { content: '.'; } 66% { content: '..'; } 100% { content: '...'; } }
#boot-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; min-height: 46px; }
.boot-note { font-size: 13px; color: #56657c; margin: 6px 0 0; }

/* ---------------- intro typography ---------------- */
#intro-text { position: fixed; inset-inline: 0; bottom: 21vh; z-index: 20; text-align: center; pointer-events: none; padding: 0 20px; }
#intro-text p { margin: 0; font-size: clamp(24px, 4.6vw, 52px); font-weight: 800; color: #fff; opacity: 0; filter: blur(14px); letter-spacing: .02em; text-shadow: 0 0 18px rgba(63, 169, 255, .9), 0 0 60px rgba(155, 92, 255, .6); transform: translateY(14px) scale(1.02); transition: opacity 1.4s ease, filter 1.4s ease, transform 1.6s cubic-bezier(.2, .8, .2, 1); }
#intro-text small { display: block; margin-top: 12px; font-size: clamp(13px, 1.6vw, 17px); color: var(--volt); font-family: var(--en); letter-spacing: .4em; opacity: 0; transition: opacity 1.4s .6s; }
#intro-text.on p { opacity: 1; filter: blur(0); transform: none; }
#intro-text.on small { opacity: .9; }
#skip-intro { position: fixed; bottom: 24px; left: 24px; z-index: 30; }

/* ---------------- HUD ---------------- */
#hud { position: fixed; inset-inline: 0; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: opacity .8s, transform .8s; }
body.hud-on #hud { opacity: 1; transform: none; }
#hud > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--glow); }
.brand .mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(63, 169, 255, .1); color: var(--volt); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.brand b { display: block; font-family: var(--en); font-weight: 800; font-size: 14px; letter-spacing: .14em; }
.brand span { display: block; font-size: 12.5px; color: var(--ink-dim); }
.hud-tools { display: flex; gap: 8px; }

#station-bar { position: fixed; z-index: 10; left: 50%; bottom: 18px; transform: translate(-50%, 20px); display: flex; align-items: stretch; gap: 8px; opacity: 0; transition: opacity .8s, transform .8s; max-width: calc(100vw - 24px); }
body.hud-on #station-bar { opacity: 1; transform: translate(-50%, 0); }
.st-info { min-width: 260px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 8px 18px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
#station-zone { font-size: 11.5px; color: var(--c, var(--volt)); letter-spacing: .02em; }
#station-name { font-size: 16px; font-weight: 800; color: var(--glow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
#station-dots { display: flex; gap: 5px; margin-top: 2px; }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(127, 144, 168, .35); cursor: pointer; transition: transform .25s, background .25s, box-shadow .25s; position: relative; }
.dot::before { content: ''; position: absolute; inset: -7px; }
.dot.on { background: var(--c); box-shadow: 0 0 10px var(--c); transform: scale(1.35); }
.dot:hover { background: var(--c); }
#station-bar .icon-btn { height: auto; min-height: 58px; }

/* ---------------- info panel (hologram) ---------------- */
#panel { position: fixed; z-index: 12; right: 28px; top: 50%; width: min(390px, 34vw); transform: translate(30px, -50%); opacity: 0; visibility: hidden; padding: 24px 24px 22px; background: linear-gradient(165deg, rgba(12, 26, 52, .78), rgba(8, 10, 24, .62)); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); transition: opacity .45s, transform .55s cubic-bezier(.2, .8, .2, 1), visibility .45s; }
#panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(127, 196, 255, .045) 0 1px, transparent 1px 4px); }
#panel::after { content: ''; position: absolute; top: 0; inset-inline: 20%; height: 2px; background: linear-gradient(90deg, transparent, var(--volt), transparent); }
#panel.on { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.p-zone { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c); padding-inline-end: 34px; white-space: nowrap; }
.p-zone i { width: 8px; height: 8px; background: var(--c); box-shadow: 0 0 10px var(--c); transform: rotate(45deg); }
.p-zone span { margin-inline-start: auto; font-family: var(--en); font-size: 10px; letter-spacing: .18em; color: var(--ink-dim); }
#panel h2 { margin: 12px 0 4px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; color: #fff; font-weight: 800; }
.p-proj { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--copper); font-weight: 700; font-size: 15px; }
.p-proj .ico { width: 18px; height: 18px; }
.p-en { margin: 4px 0 0; font-family: var(--en); font-size: 11px; letter-spacing: .14em; color: var(--ink-dim); text-transform: uppercase; text-align: right; }
.p-desc { margin: 14px 0 18px; font-size: 16px; line-height: 1.9; color: var(--ink); }
.tip { margin: -6px 0 16px; font-size: 13.5px; color: var(--ink-dim); }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.p-actions .btn { flex: 1 1 auto; }
.p-more { display: none; }
.p-close { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-dim); cursor: pointer; }
.p-close:hover { color: #fff; }
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
.soc { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); text-decoration: none; color: var(--glow); transition: background .2s, transform .2s; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.soc:hover { background: color-mix(in srgb, var(--c) 20%, transparent); transform: translateY(-2px); }
.soc .ico { width: 26px; height: 26px; color: var(--c); }
.soc .n { font-weight: 700; font-size: 14px; }
.soc .h { font-family: var(--en); font-size: 9.5px; color: var(--ink-dim); letter-spacing: .06em; }
.soc.hero { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(100deg, rgba(37, 244, 238, .14), rgba(255, 47, 109, .14)); border-color: rgba(37, 244, 238, .5); box-shadow: 0 0 26px rgba(255, 47, 109, .18); }
.soc.hero .ico { width: 34px; height: 34px; filter: drop-shadow(2px 0 0 #ff2f6d) drop-shadow(-1px 0 0 #25f4ee); }
.soc.hero .n { font-size: 17px; }
.soc.hero::after { content: 'قناة المحتوى الأساسية'; grid-column: 1 / -1; font-size: 12px; color: #9ff7f4; margin-top: -4px; }

/* ---------------- drawer (lab index) ---------------- */
#drawer { position: fixed; z-index: 15; top: 0; bottom: 0; right: 0; width: min(380px, 90vw); padding: 22px 20px; background: linear-gradient(180deg, rgba(5, 10, 22, .94), rgba(3, 4, 10, .96)); border-inline-start: 1px solid var(--line); transform: translateX(105%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; }
#drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-head h2 { margin: 0; font-size: 19px; color: #fff; }
.drawer-head p { margin: 2px 0 0; font-family: var(--en); font-size: 10px; letter-spacing: .2em; color: var(--ink-dim); }
#drawer-list, #drawer-list ul { list-style: none; margin: 0; padding: 0; }
#drawer-list .z { margin: 0 0 14px; }
#drawer-list h3 { font-size: 13px; color: var(--c); margin: 14px 0 6px; font-weight: 700; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(127, 196, 255, .12); padding-bottom: 6px; }
#drawer-list h3 span { font-family: var(--en); font-size: 9.5px; letter-spacing: .15em; color: var(--ink-dim); }
#drawer-list li li { display: flex; align-items: center; }
.d-item { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 8px; border: 0; background: none; cursor: pointer; text-align: start; font-size: 15px; color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.d-item:hover, .d-item:focus-visible { background: rgba(63, 169, 255, .1); color: #fff; }
.d-item .ico { color: var(--volt); }
.d-item.core { color: #fff; font-weight: 700; border: 1px solid var(--line); }
.d-link { display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink-dim); }
.d-link:hover { color: var(--volt); }
.d-soon { font-size: 12px; color: var(--plasma); padding: 0 8px; }
.d-social { display: flex; gap: 8px; margin-top: 10px; }
.d-social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); }
.d-social a.hero { width: 64px; background: linear-gradient(100deg, rgba(37, 244, 238, .15), rgba(255, 47, 109, .15)); }

/* ---------------- settings ---------------- */
#settings { position: fixed; z-index: 16; top: 76px; left: 20px; width: min(330px, calc(100vw - 40px)); padding: 18px; background: rgba(5, 10, 22, .94); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s, visibility .3s; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
#settings.on { opacity: 1; visibility: visible; transform: none; }
#settings h2 { font-size: 16px; margin: 0 0 12px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
#settings fieldset { border: 0; padding: 0; margin: 0 0 14px; }
#settings legend { font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; }
.seg { display: flex; border: 1px solid var(--line); }
.seg label { flex: 1; text-align: center; font-size: 13px; padding: 8px 4px; cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: rgba(63, 169, 255, .22); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--volt); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; font-size: 14px; }
.row input[type=range] { flex: 1; accent-color: var(--volt); }
.row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--volt); }
#set-detected { font-family: var(--en); font-size: 10px; color: var(--ink-dim); word-break: break-all; display: block; margin-top: 8px; }

/* ---------------- subtitles, hints, toast, flash ---------------- */
#subtitle { position: fixed; z-index: 11; left: 50%; bottom: 112px; transform: translate(-50%, 10px); width: min(680px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; background: rgba(4, 10, 24, .7); border: 1px solid var(--line); border-inline-start: 3px solid var(--volt); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s, transform .5s; pointer-events: none; }
#subtitle.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 761px) { #subtitle { left: 24px; transform: translateY(10px); width: min(620px, calc(100vw - min(390px, 34vw) - 90px)); } #subtitle.on { transform: none; } }
#subtitle .who { font-weight: 800; color: var(--volt); white-space: nowrap; }
#subtitle .line { font-size: 16px; line-height: 1.8; color: var(--glow); }
#hint { position: fixed; z-index: 11; top: 84px; left: 50%; transform: translate(-50%, -8px); padding: 8px 18px; border-radius: 30px; background: rgba(63, 169, 255, .14); border: 1px solid rgba(63, 169, 255, .4); color: var(--glow); font-size: 14px; opacity: 0; transition: opacity .5s, transform .5s; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
#hint.on { opacity: 1; transform: translate(-50%, 0); }
#toast { position: fixed; z-index: 40; left: 50%; bottom: 110px; transform: translate(-50%, 10px); padding: 12px 20px; background: rgba(20, 12, 40, .92); border: 1px solid rgba(155, 92, 255, .5); color: #fff; font-size: 14.5px; opacity: 0; transition: opacity .4s, transform .4s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#flash { position: fixed; inset: 0; z-index: 45; background: radial-gradient(circle at 50% 50%, #fff 0%, #cfe6ff 40%, #6aa8ff 100%); opacity: 0; pointer-events: none; transition: opacity .35s; }
#fps { position: fixed; z-index: 60; bottom: 6px; right: 8px; font: 11px/1 monospace; color: #7fc4ff; background: rgba(0, 0, 0, .5); padding: 4px 6px; }

/* ---------------- fallback (no WebGL) ---------------- */
#fallback { position: fixed; inset: 0; z-index: 70; overflow-y: auto; padding: 40px 20px; background: radial-gradient(ellipse at top, #0b1430, #020309 60%); }
.fb-wrap { max-width: 720px; margin: 0 auto; }
.fb-wrap h1 { font-size: clamp(26px, 5vw, 38px); color: #fff; margin: 0 0 8px; }
.fb-wrap > p { color: var(--ink-dim); line-height: 1.9; }
#fallback-list #drawer-list { columns: 2 280px; column-gap: 28px; }
#fallback-list .z { break-inside: avoid; }
body.fallback-mode #stage, body.fallback-mode #hud, body.fallback-mode #station-bar { display: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 760px) {
  #hud { padding: 10px 12px; }
  .brand span { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  #panel { right: 10px; left: 10px; width: auto; top: auto; bottom: 90px; transform: translateY(30px); max-height: 40vh; overflow-y: auto; padding: 14px 16px 14px; }
  .p-en, .tip, .p-desc, .p-proj { display: none; }
  #panel.expanded .p-desc, #panel.expanded .p-proj { display: flex; }
  #panel.expanded .p-desc { display: block; }
  .p-more { display: inline-block; border: 0; background: none; color: var(--volt); font-size: 13px; padding: 2px 0 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
  #panel h2 { margin: 6px 0 2px; }
  #panel.on { transform: none; }
  #panel h2 { font-size: 21px; margin-top: 8px; }
  .p-desc { font-size: 14.5px; margin: 8px 0 12px; line-height: 1.8; }
  .p-actions .btn { min-height: 44px; font-size: 14.5px; }
  .st-info { min-width: 0; flex: 1; padding: 6px 10px; }
  #station-bar { left: 10px; right: 10px; transform: translateY(20px); width: auto; bottom: 12px; }
  body.hud-on #station-bar { transform: none; }
  #station-bar .icon-btn { min-height: 54px; width: 44px; }
  #station-name { font-size: 15px; max-width: 46vw; }
  #station-dots { gap: 4px; }
  .dot { width: 6px; height: 6px; }
  #subtitle { bottom: auto; top: 70px; }
  #hint { top: auto; bottom: 86px; }
  #skip-intro { left: 12px; bottom: 16px; }
  #settings { top: 64px; left: 12px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #panel { top: 64px; bottom: 84px; transform: translateX(30px); max-height: none; overflow-y: auto; width: min(360px, 44vw); left: auto; right: 12px; }
  #panel.on { transform: none; }
  #subtitle { bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
}
