/* =========================================================
   Abisal · tema "agua marina profunda"
   Agua pura + éter musical + neón del sol + bioluminiscencia
   ========================================================= */
:root {
  --abyss: #01121a;
  --deep: #032634;
  --sea: #064757;
  --teal: #0b7a82;
  --aqua: #19e3d0;
  --neon: #3cf2ff;
  --biolum: #7cffc4;
  --ether: #a99cff;
  --sun: #fff1a8;
  --coral: #ff7aa8;

  --text: #e6fbff;
  --text-2: #a7d3dc;
  --text-3: #6fa3ad;
  --glass: rgba(10, 60, 75, .38);
  --glass-2: rgba(16, 90, 105, .30);
  --line: rgba(124, 255, 230, .16);
  --line-2: rgba(124, 255, 230, .32);
  --glow: 0 0 18px rgba(60, 242, 255, .35);
  --radius: 20px;
  --radius-s: 12px;
  --nav-h: 68px;
  --top-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Segoe UI Variable Display", "SF Pro Display", -apple-system, system-ui, "Roboto", "Helvetica Neue", sans-serif;
  --mono: "Cascadia Code", "SF Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(120% 80% at 50% -10%, #0a5b68 0%, var(--deep) 38%, var(--abyss) 78%) fixed, var(--abyss);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overscroll-behavior-y: none;
}
#ocean { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(1,18,26,0) 0%, rgba(1,18,26,.25) 60%, rgba(1,18,26,.7) 100%); }

a { color: var(--neon); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
small, .muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--mono); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------- Barra superior / navegación ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 16px 0;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(1,18,26,.85), rgba(1,18,26,.4));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.brand-mark { color: var(--biolum); text-shadow: 0 0 10px var(--biolum), 0 0 22px var(--neon); font-size: 1.3rem; animation: pulse 4s ease-in-out infinite; }
.brand-name { background: linear-gradient(90deg, var(--biolum), var(--neon), var(--ether)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-meta { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--text-2); }
.icon-btn { background: none; border: 0; color: var(--neon); font-size: 2rem; line-height: 1; padding: 0 6px 4px 0; cursor: pointer; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(0deg, rgba(1,18,26,.95), rgba(3,38,52,.75));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-3); font-size: .72rem; font-weight: 600; letter-spacing: .02em; transition: color .2s; }
.tabbar .ti { font-size: 1.35rem; line-height: 1; transition: transform .25s, text-shadow .25s; }
.tabbar a.active { color: var(--biolum); }
.tabbar a.active .ti { transform: translateY(-2px); text-shadow: 0 0 10px var(--biolum), 0 0 24px var(--neon); }

main {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 28px);
  outline: none;
}
.view-enter { animation: rise .35s ease-out; }

/* ---------- Tarjetas de cristal ---------- */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(25,227,208,.09), rgba(169,156,255,.05) 60%, rgba(3,38,52,.25)), var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.card.glow { border-color: var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 30px rgba(60,242,255,.12), inset 0 1px 0 rgba(255,255,255,.08); }
.card.link { display: block; color: inherit; transition: transform .15s, border-color .2s; }
.card.link:active { transform: scale(.985); border-color: var(--line-2); }
.card::after { /* reflejo de sol */
  content: ""; position: absolute; top: -40%; left: -30%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(255,241,168,.07), transparent);
  pointer-events: none;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h2, .card-head h3 { margin: 0; }
.eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); font-weight: 700; margin-bottom: 4px; }

.hero { padding: 6px 2px 14px; }
.hero h1 { font-size: 1.9rem; background: linear-gradient(100deg, var(--text) 10%, var(--biolum) 55%, var(--neon) 80%, var(--ether)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack > * + * { margin-top: 10px; }

/* ---------- Estadísticas ---------- */
.stat { background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--biolum); text-shadow: 0 0 14px rgba(124,255,196,.45); font-variant-numeric: tabular-nums; }
.stat span { font-size: .75rem; color: var(--text-2); }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: rgba(25,227,208,.12); color: var(--aqua); border: 1px solid rgba(25,227,208,.3); white-space: nowrap; }
.chip.violet { background: rgba(169,156,255,.12); color: var(--ether); border-color: rgba(169,156,255,.35); }
.chip.sun { background: rgba(255,241,168,.1); color: var(--sun); border-color: rgba(255,241,168,.35); }
.chip.coral { background: rgba(255,122,168,.1); color: var(--coral); border-color: rgba(255,122,168,.35); }
.chip.ok { background: rgba(124,255,196,.14); color: var(--biolum); border-color: rgba(124,255,196,.4); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(25,227,208,.08); color: var(--text);
  font: 600 .95rem var(--font); cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn.primary {
  border: 0; color: #012029;
  background: linear-gradient(120deg, var(--biolum), var(--neon) 55%, var(--ether));
  box-shadow: 0 0 22px rgba(60,242,255,.45), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(255,122,168,.5); color: var(--coral); background: rgba(255,122,168,.06); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row .btn { flex: 1 1 auto; }

/* ---------- Progreso ---------- */
.bar { height: 8px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--aqua), var(--biolum)); box-shadow: 0 0 12px var(--aqua); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ring { --p: 0; --c: var(--biolum); width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.08) 0);
  display: grid; place-items: center; position: relative; filter: drop-shadow(0 0 6px rgba(124,255,196,.35)); }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--deep); }
.ring span { position: relative; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Listas ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; color: inherit; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 600; }
.item .s { font-size: .82rem; color: var(--text-2); }
.item .chev { color: var(--text-3); font-size: 1.3rem; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Check personalizado */
.check { display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: 0 0 26px; height: 26px; border-radius: 9px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .2s; margin-top: 1px; }
.check input:checked + .box { background: linear-gradient(135deg, var(--biolum), var(--neon)); border-color: transparent; box-shadow: 0 0 14px rgba(124,255,196,.6); }
.check input:checked + .box::after { content: "✓"; color: #012029; font-weight: 900; font-size: .9rem; }
.check input:checked ~ .lbl .t { color: var(--text-2); }
.check .lbl { flex: 1; }
.check .lbl .t, .check .lbl .s { display: block; }
.check .lbl .t { font-weight: 600; }
.check .lbl .s { font-size: .84rem; color: var(--text-2); }

/* ---------- Sesión / temporizador ---------- */
.timer { text-align: center; padding: 6px 0 12px; }
.timer .clock { font: 700 3.4rem/1 var(--mono); letter-spacing: .02em; color: var(--text);
  text-shadow: 0 0 18px rgba(60,242,255,.55), 0 0 40px rgba(124,255,196,.25); font-variant-numeric: tabular-nums; }
.timer .label { color: var(--aqua); font-weight: 600; margin-top: 6px; }
.block { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; margin-bottom: 8px; background: rgba(1,18,26,.25); transition: border-color .3s, box-shadow .3s; }
.block.current { border-color: var(--neon); box-shadow: 0 0 0 1px rgba(60,242,255,.4), 0 0 24px rgba(60,242,255,.18); }
.block.done { opacity: .72; }
.block .min { font: 600 .8rem var(--mono); color: var(--sun); }
.block .what { margin-top: 6px; font-size: .9rem; color: var(--text); }
.block .what a { font-weight: 600; }

/* ---------- Plan ---------- */
.phase-head { display: flex; align-items: center; gap: 12px; }
.phase-dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 12px currentColor; background: currentColor; }
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; margin-top: 12px; }
.wk { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font: 700 .9rem var(--mono); color: var(--text-2);
  border: 1px solid var(--line); background: rgba(1,18,26,.3); position: relative; }
.wk.done { color: #012029; background: linear-gradient(135deg, var(--biolum), var(--aqua)); border-color: transparent; box-shadow: 0 0 10px rgba(124,255,196,.4); }
.wk.current { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 0 2px rgba(60,242,255,.35), 0 0 18px rgba(60,242,255,.3); animation: pulse 2.6s ease-in-out infinite; }
.wk.exam::after { content: "◈"; position: absolute; top: 1px; right: 4px; font-size: .6rem; color: var(--sun); }

/* ---------- Segmentado ---------- */
.seg { display: flex; padding: 4px; border-radius: 999px; background: rgba(1,18,26,.45); border: 1px solid var(--line); margin-bottom: 14px; }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 600 .9rem var(--font); cursor: pointer; }
.seg button.on { background: linear-gradient(120deg, rgba(124,255,196,.25), rgba(60,242,255,.25)); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Guías ---------- */
.guide-sec { padding: 12px; border-radius: var(--radius-s); margin-bottom: 10px; border-left: 3px solid var(--aqua); background: rgba(1,18,26,.3); }
.guide-sec.ex { border-left-color: var(--sun); }
.guide-sec.do { border-left-color: var(--ether); }
.guide-sec h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.chords { font: 600 .95rem var(--mono); color: var(--sun); background: rgba(255,241,168,.06); border: 1px dashed rgba(255,241,168,.3); padding: 10px 12px; border-radius: var(--radius-s); overflow-x: auto; }

/* ---------- Formularios ---------- */
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: .82rem; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=url], input[type=date], input[type=number], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line-2); background: rgba(1,18,26,.55); color: var(--text); font: 1rem var(--font);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--aqua); height: 32px; }

/* Rúbrica */
.crit { padding: 10px 0; border-top: 1px solid var(--line); }
.crit:first-of-type { border-top: 0; }
.crit .spread b { font: 700 1.3rem var(--mono); color: var(--biolum); min-width: 2ch; text-align: right; }
.crit .band { font-size: .8rem; color: var(--sun); min-height: 1.2em; }

/* ---------- Gráficas ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--text-2); font: 11px var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--text-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; box-shadow: 0 0 8px currentColor; background: currentColor; }

/* ---------- Herramientas ---------- */
.bpm { font: 800 4rem/1 var(--mono); text-align: center; color: var(--text); text-shadow: 0 0 22px rgba(60,242,255,.6); font-variant-numeric: tabular-nums; }
.beats { display: flex; justify-content: center; gap: 10px; margin: 14px 0; }
.beat { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .05s, box-shadow .05s; }
.beat.first { width: 22px; height: 22px; }
.beat.on { background: var(--biolum); box-shadow: 0 0 16px var(--biolum), 0 0 30px var(--neon); }
.beat.first.on { background: var(--sun); box-shadow: 0 0 18px var(--sun), 0 0 34px var(--neon); }
.tuner-note { font: 800 4.5rem/1 var(--font); text-align: center; text-shadow: 0 0 24px rgba(124,255,196,.6); }
.tuner-note sub { font-size: 1.4rem; color: var(--text-2); }
.gauge { position: relative; height: 54px; margin: 10px 4px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,122,168,.25), rgba(124,255,196,.35) 46% 54%, rgba(255,122,168,.25)); border: 1px solid var(--line); }
.gauge .needle { position: absolute; top: 4px; bottom: 4px; width: 4px; margin-left: -2px; left: 50%; border-radius: 4px; background: var(--text); box-shadow: 0 0 12px var(--neon); transition: left .12s ease-out, background .2s; }
.gauge .needle.ok { background: var(--biolum); box-shadow: 0 0 16px var(--biolum); }
.gauge .mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.4); }
.strings { display: flex; justify-content: space-between; gap: 6px; }
.strings span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; color: var(--text-2); }
.strings span.on { border-color: var(--biolum); color: var(--biolum); box-shadow: 0 0 12px rgba(124,255,196,.35); }
.tap-pad { width: 100%; height: 170px; border-radius: var(--radius); border: 1px solid var(--line-2); font: 700 1.2rem var(--font); color: var(--text);
  background: radial-gradient(circle at 50% 50%, rgba(60,242,255,.18), rgba(1,18,26,.3)); cursor: pointer; touch-action: manipulation; user-select: none; }
.tap-pad.hit { background: radial-gradient(circle at 50% 50%, rgba(124,255,196,.5), rgba(1,18,26,.3)); }
.offsets { display: flex; align-items: center; height: 70px; gap: 3px; border-bottom: 1px solid var(--line); position: relative; }
.offsets .zero { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-2); }
.offsets i { flex: 1; align-self: center; border-radius: 3px; background: var(--aqua); min-height: 2px; }

/* ---------- Video ---------- */
video { width: 100%; border-radius: var(--radius-s); background: #000; display: block; max-height: 60vh; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vs video { max-height: 40vh; }
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); animation: pulse 1s infinite; }
.vid-thumb { display: flex; gap: 6px; align-items: center; }
.vid-thumb .btn.small { padding: 0 11px; min-width: 38px; }
.vid-thumb .ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: linear-gradient(135deg, rgba(124,255,196,.2), rgba(169,156,255,.2)); border: 1px solid var(--line); flex: 0 0 auto; }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(1,10,15,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; }
.modal-sheet { width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto; padding: 18px 16px calc(18px + var(--safe-b));
  background: linear-gradient(180deg, #06404c, var(--deep) 30%, var(--abyss)); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(60,242,255,.15); animation: sheet .3s ease-out; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px); z-index: 60;
  padding: 10px 18px; border-radius: 999px; background: rgba(3,38,52,.95); border: 1px solid var(--line-2); color: var(--text);
  box-shadow: 0 0 24px rgba(60,242,255,.3); opacity: 0; transition: all .3s; pointer-events: none; max-width: 90vw; text-align: center; font-size: .9rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty { text-align: center; padding: 20px 10px; color: var(--text-2); }
.empty .big { font-size: 2.4rem; display: block; color: var(--aqua); text-shadow: 0 0 18px var(--aqua); margin-bottom: 6px; }
.note { font-size: .84rem; color: var(--text-2); padding: 10px 12px; border-radius: var(--radius-s); background: rgba(169,156,255,.08); border: 1px solid rgba(169,156,255,.22); }

/* ---------- Dossier (imprimible) ---------- */
.dossier h1 { font-size: 2rem; }
@media print {
  #ocean, .veil, .topbar, .tabbar, .no-print, .toast { display: none !important; }
  body { background: #fff; color: #022; }
  main { padding: 0; max-width: none; }
  .card { background: #fff; border: 1px solid #9cc; box-shadow: none; break-inside: avoid; color: #022; backdrop-filter: none; }
  .card::after { display: none; }
  .hero h1, .dossier h1 { color: #036; background: none; -webkit-text-fill-color: #036; }
  .muted, small, .item .s { color: #355; }
  .stat b { color: #066; text-shadow: none; }
  a { color: #066; }
  .chart text { fill: #355; }
}

/* ---------- Animaciones ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 600px) {
  main { padding-top: 24px; }
  .grid-md-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid-md-2 > .card { margin-bottom: 0; }
}
@media (max-width: 360px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .timer .clock { font-size: 2.8rem; }
}

/* ---------- Consulta ---------- */
.fb-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; padding: 4px 6px; border-radius: var(--radius-s); background: linear-gradient(180deg, rgba(60,30,10,.25), rgba(30,15,5,.35)); }
.fb { display: block; }
.fb .fbn { fill: var(--text-3); font: 600 10px var(--font); }
.fb .fbl { fill: #012029; font: 700 9px var(--font); pointer-events: none; }
.fbdot { cursor: pointer; }
.fbdot circle { transition: r .15s; }
.fbdot.hit circle { r: 14; filter: drop-shadow(0 0 8px var(--biolum)); }
.chord-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.chord-tile { background: rgba(1,18,26,.35); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px 2px 2px; cursor: pointer; color: inherit; }
.chord-tile:active { border-color: var(--biolum); box-shadow: 0 0 14px rgba(124,255,196,.35); }
.chd { width: 100%; height: auto; display: block; }
.chd .chn { fill: var(--text); font: 700 13px var(--font); }
.chd .chs { fill: var(--text-3); font: 9px var(--mono); }
.chd .chf { fill: var(--sun); font: 700 10px var(--font); }
.chd .chx { fill: var(--coral); font: 700 11px var(--font); }
pre.tab { font: 600 .82rem/1.45 var(--mono); color: var(--sun); background: rgba(1,18,26,.5); border: 1px dashed rgba(255,241,168,.3); border-radius: var(--radius-s); padding: 10px 12px; overflow-x: auto; margin: 0 0 10px; }
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.deg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--radius-s); border: 1px solid var(--line); background: rgba(1,18,26,.35); color: var(--text); cursor: pointer; font: 1rem var(--font); }
.deg b { color: var(--sun); font-size: .8rem; }
.deg span { font-weight: 700; }
.deg:active { border-color: var(--biolum); }
