/* The Map That Plays · El Mapa que Suena — marfil, azul noche, ámbar y madera */
@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #FFFDF8; --bg2: #F4EDE2; --card: #FFFFFF; --ink: #1E2433; --ink2: #4A5163; --ink3: #6B7180; --line: #E4D9C7; --line2: #EDE3D3;
  --night: #141833; --night2: #1B2046; --night3: #0D1027; --amber: #F5B83D; --amber2: #E9A520; --amber-ink: #141833;
  --walnut: #6B3F22; --maple: #F4EDE2; --ok: #1E7A46; --ok-bg: #E4F3EA; --bad: #A5402F; --bad-bg: #F9E6E2; --info-bg: #EEF0FA; --warn-bg: #FFF4DB;
  --focus: #3B78D8; --side-w: 288px; --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(20, 24, 51, .06), 0 6px 18px rgba(20, 24, 51, .06);
  --fs: 17px; --wood: #6B3F22; --wood2: #7B4A2A; --fret: #D9C9A8; --str: #E8DCC6; --inlay: #E9DCC3; --dot-ink: #141833;
  color-scheme: light;
}
html[data-size="1"] { --fs: 15.5px; } html[data-size="3"] { --fs: 19.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0D1027; --bg2: #141833; --card: #1B2046; --ink: #F4EDE2; --ink2: #C9C2B3; --ink3: #A39C8F; --line: #2C3263; --line2: #232853; --ok: #5FC48C; --ok-bg: #143324; --bad: #F08A78; --bad-bg: #3A1D1A; --info-bg: #1E2452; --warn-bg: #3A2E12; --shadow: none; --wood: #4E2E18; --wood2: #5A361C; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0D1027; --bg2: #141833; --card: #1B2046; --ink: #F4EDE2; --ink2: #C9C2B3; --ink3: #A39C8F; --line: #2C3263; --line2: #232853; --ok: #5FC48C; --ok-bg: #143324; --bad: #F08A78; --bad-bg: #3A1D1A; --info-bg: #1E2452; --warn-bg: #3A2E12; --shadow: none; --wood: #4E2E18; --wood2: #5A361C; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs)/1.55 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 .8em; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--night); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 99; } .skip:focus { left: 8px; }
svg.icw, .icw { width: 22px; height: 22px; flex: none; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .9em; }
[hidden] { display: none !important; }

/* ---------- Barra lateral ---------- */
#side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--night); color: #F4EDE2; overflow-y: auto; overscroll-behavior: contain; z-index: 40; padding: max(14px, env(safe-area-inset-top)) 10px 28px; transform: translateX(-102%); transition: transform .22s ease; }
body.side-open #side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
#scrim { position: fixed; inset: 0; background: rgba(13, 16, 39, .55); z-index: 39; }
body.gated #side, body.gated .menu-b { display: none; }
.side-brand { display: flex; gap: 12px; align-items: center; padding: 6px 8px 16px; }
.brand-mark svg { width: 44px; height: 44px; display: block; }
.brand-t { display: flex; flex-direction: column; line-height: 1.2; } .brand-t b { font-size: 16px; } .brand-t small { color: #A39C8F; font-size: 12.5px; }
.nav-h { margin: 18px 10px 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #A39C8F; font-weight: 600; }
.nav-i, .nav-l, .nav-part > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: #F4EDE2; cursor: pointer; font-size: 15px; }
.nav-i:hover, .nav-l:hover, .nav-part > summary:hover { background: var(--night2); }
.nav-i.on, .nav-l.on { background: #262C5E; box-shadow: inset 3px 0 0 var(--amber); }
.nav-ic svg { width: 20px; height: 20px; display: block; color: #C9C2B3; } .nav-i.on .nav-ic svg { color: var(--amber); }
.nav-t { display: flex; flex-direction: column; line-height: 1.25; } .nav-t small { color: #A39C8F; font-size: 12.5px; }
.nav-part > summary { list-style: none; } .nav-part > summary::-webkit-details-marker { display: none; }
.nav-part > summary .part-n { font-size: 11.5px; font-weight: 700; color: var(--amber); min-width: 52px; text-transform: uppercase; letter-spacing: .04em; }
.nav-part > summary .part-t { font-size: 14.5px; }
.nav-l { padding-left: 18px; font-size: 14.5px; color: #E2DACB; }
.nav-l .ln { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; border: 1.5px solid #4A5180; flex: none; }
.nav-l .ln.seen { background: var(--amber); border-color: var(--amber); color: var(--night); }
#side hr { border: 0; border-top: 1px solid #2C3263; margin: 14px 6px; }
.nav-lang { display: flex; align-items: center; gap: 8px; padding: 6px 10px; flex-wrap: wrap; } .nav-lang-l { font-size: 15px; margin-right: auto; }
.lang-b { min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #4A5180; background: transparent; color: #F4EDE2; cursor: pointer; font-size: 14px; }
.lang-b.on { background: var(--amber); border-color: var(--amber); color: var(--night); font-weight: 600; }
@media (min-width: 1000px) {
  #side { transform: none; } body:not(.gated) #main { margin-left: var(--side-w); } .menu-b { display: none !important; } #scrim { display: none !important; }
}

/* ---------- Estructura ---------- */
#main { min-height: 100vh; outline: none; }
.appbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(6px); -webkit-backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line2); padding-top: env(safe-area-inset-top); }
.appbar .row { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 12px; max-width: 980px; }
.appbar h1 { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.pad { padding: 20px 16px 96px; max-width: 920px; margin: 0 auto; } @media (min-width: 700px) { .pad { padding: 28px 32px 110px; } }
.view > * + * { margin-top: 18px; }
.pg-t { font-size: 1.75em; font-weight: 750; letter-spacing: -.01em; }
.lead { font-size: 1.08em; color: var(--ink2); }
.pie { font-size: .9em; color: var(--ink3); } .pie.src { font-size: .82em; }
.sec-t { font-size: 1.28em; font-weight: 700; margin-top: 34px !important; } .sec-t small { font-weight: 500; color: var(--ink3); font-size: .7em; }
.blk h3, .ess h4 { font-size: 1.18em; margin-bottom: 10px; }
.txt p, .blk p { max-width: 68ch; }
ol.steps, .how-l { padding-left: 1.3em; margin: 0; } ol.steps li, .how-l li { margin: 6px 0; max-width: 66ch; }
.empty { text-align: center; padding-top: 60px; }

/* ---------- Botones e íconos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 600; font-size: .95em; text-decoration: none; cursor: pointer; background: var(--bg2); color: var(--ink); transition: transform .08s, background .15s; touch-action: manipulation; }
.btn:active { transform: scale(.98); } .btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 20px; height: 20px; }
.btn-pri { background: var(--amber); color: var(--amber-ink); } .btn-pri:hover { background: var(--amber2); }
.btn-soft { background: transparent; border-color: var(--line); } .btn-soft:hover { background: var(--bg2); }
.btn-lg { min-height: 54px; font-size: 1.02em; padding: 12px 22px; }
.btn.busy { position: relative; color: transparent; } .btn.busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--amber-ink); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ib { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; cursor: pointer; flex: none; color: var(--ink); }
.ib:hover { background: var(--bg2); } .ib svg { width: 22px; height: 22px; }
.ib[aria-pressed="true"] { color: var(--bad); } .ib[aria-pressed="true"] svg { fill: currentColor; }
.linkb { background: none; border: 0; padding: 8px 0; color: var(--focus); text-decoration: underline; cursor: pointer; min-height: 44px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); text-decoration: none; cursor: pointer; font-size: .9em; max-width: 100%; }
.scroll-x .chip { white-space: nowrap; }
.chip.on, .chip[aria-pressed="true"] { background: var(--night); color: #F4EDE2; border-color: var(--night); }
:root[data-theme="dark"] .chip.on { background: var(--amber); color: var(--night); border-color: var(--amber); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.scroll-x { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; } .scroll-x::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg2); padding: 4px; border-radius: 12px; }
.seg-b { min-height: 40px; min-width: 44px; padding: 6px 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-size: .9em; font-weight: 500; }
.seg-b.on { background: var(--card); box-shadow: var(--shadow); font-weight: 650; color: var(--ink); }
:root[data-theme="dark"] .seg-b.on { background: var(--night2); outline: 1.5px solid var(--amber); }
.tgl { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-size: .88em; }
.tgl svg { width: 18px; height: 18px; } .tgl[aria-pressed="true"] { background: var(--night); color: #F4EDE2; border-color: var(--night); }
.ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ctl-lab { font-size: .85em; color: var(--ink3); font-weight: 600; }
.ctl-info { font-size: .9em; color: var(--ink2); }
.semis { min-width: 3.2em; text-align: center; font-weight: 700; }
.rot-90 { transform: rotate(-90deg); }

/* ---------- Campos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; } .field > span { font-size: .85em; font-weight: 600; color: var(--ink2); }
.field.grow { flex: 1 1 200px; }
input[type=text], input[type=search], input[type=number], input[type=date], select, textarea { min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); width: 100%; }
textarea { resize: vertical; min-height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
input[type=range] { accent-color: var(--amber2); min-height: 32px; flex: 1 1 140px; }
input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--ok); }
.field-err { color: var(--bad); font-size: .9em; min-height: 1.2em; margin: 4px 0; }
.tool-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.sel-wrap { display: inline-flex; align-items: center; gap: 8px; } .sel-lab { font-size: .85em; font-weight: 600; color: var(--ink3); }
.sel-wrap select { width: auto; min-height: 40px; padding: 6px 10px; }
.search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--card); }
.search svg { width: 20px; height: 20px; color: var(--ink3); } .search input { border: 0; box-shadow: none !important; padding-left: 0; background: transparent; }

/* ---------- Tarjetas y avisos ---------- */
.callout { border-radius: var(--r); padding: 16px 18px; background: var(--bg2); }
.callout h4 { display: flex; align-items: center; gap: 8px; font-size: 1em; margin-bottom: 8px; } .callout h4 svg { width: 20px; height: 20px; }
.callout > p:last-child { margin-bottom: 0; }
.callout:is(p) { display: flex; gap: 10px; align-items: flex-start; } .callout:is(p) svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.c-miralo, .c-see { background: var(--info-bg); } .c-concepto_clave { background: var(--warn-bg); } .c-tip_experto { background: var(--ok-bg); }
.c-error_comun, .callout.warn { background: var(--bad-bg); } .c-error_comun h4, .callout.warn svg { color: var(--bad); }
.c-guar { background: var(--night); color: #F4EDE2; } .c-guar h4 { color: var(--amber); } .c-guar .ex { color: var(--ink); }
.c-today { background: var(--warn-bg); } .c-ess { background: var(--card); border: 1.5px solid var(--line); }
.c-ok { background: var(--ok-bg); color: var(--ok); } .c-info { background: var(--info-bg); }
.c-skip { background: var(--card); border: 1.5px dashed var(--line); } .c-skip summary { cursor: pointer; display: flex; gap: 8px; align-items: center; font-weight: 600; min-height: 44px; } .c-skip summary svg { width: 20px; height: 20px; }
details > summary { cursor: pointer; } .legend { border-top: 1px solid var(--line2); padding-top: 8px; } .legend summary, .hint summary, .self summary, .filters summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92em; color: var(--ink2); }
.hint summary svg { width: 18px; height: 18px; }
.guide { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 6px 16px 12px; }
.guide summary { min-height: 48px; display: flex; align-items: center; gap: 8px; font-weight: 700; } .guide summary svg { width: 20px; height: 20px; color: var(--amber2); }
.guide .callout { margin-top: 10px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; flex: none; } .sw.dotted { outline: 2px dotted var(--ink2); outline-offset: 1px; }
.legend-l { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; } .legend-l li { display: flex; gap: 10px; align-items: center; }

/* ---------- Inicio ---------- */
.hero { display: grid; gap: 18px; background: var(--night); color: #F4EDE2; border-radius: 20px; overflow: hidden; }
.hero-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; max-height: 420px; object-position: center 30%; }
.hero:has(.hero-cover img) .hero-t h2, .hero:has(.hero-cover img) .hero-s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-t { padding: 0 20px 22px; } .hero-t h2 { font-size: 1.7em; } .hero-s { color: #E2DACB; } .hero-w { color: #C9C2B3; font-size: .95em; }
@media (min-width: 760px) { .hero { grid-template-columns: 300px 1fr; align-items: center; } .hero-cover img { max-height: none; height: 100%; } .hero-t { padding: 24px 28px 24px 0; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--r); padding: 12px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 1.4em; display: flex; align-items: center; gap: 4px; } .stat b svg { width: 22px; height: 22px; color: #EE8A1F; } .stat span { font-size: .8em; color: var(--ink3); line-height: 1.3; }
.parts { display: grid; gap: 14px; } @media (min-width: 760px) { .parts { grid-template-columns: 1fr 1fr; } }
.part-card { background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.part-card .part-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.part-card .part-n { margin: 14px 16px 2px; font-size: .75em; font-weight: 700; color: var(--walnut); text-transform: uppercase; letter-spacing: .06em; }
:root[data-theme="dark"] .part-card .part-n { color: var(--amber); }
.part-card h4 { margin: 0 16px 6px; font-size: 1.1em; }
.les-list { list-style: none; padding: 4px 8px 10px; margin: 0; }
.les-list a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-radius: 10px; text-decoration: none; min-height: 44px; }
.les-list a:hover { background: var(--bg2); }
.les-list .ln { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85em; border: 1.5px solid var(--line); flex: none; }
.les-list a.seen .ln { background: var(--amber); border-color: var(--amber); color: var(--night); }
.les-list .lt { display: flex; flex-direction: column; } .les-list .lt small { color: var(--ink3); font-size: .85em; line-height: 1.4; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.shelf-i { text-decoration: none; display: flex; flex-direction: column; gap: 6px; } .shelf-i b { font-size: .92em; line-height: 1.3; } .shelf-i small { font-size: .78em; color: var(--ink3); line-height: 1.35; }
.cover { position: relative; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--night2), var(--night)); aspect-ratio: 3/4; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-css { display: grid; place-items: center; } .cover-css::before { content: ''; position: absolute; left: -10%; right: -10%; top: 46%; height: 22%; background: var(--walnut); transform: rotate(-24deg); }
.cover-mark { position: relative; color: var(--amber); } .cover-mark svg { width: 40px; height: 40px; }
.cover-lock { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(13, 16, 39, .82); color: var(--amber); display: grid; place-items: center; } .cover-lock svg { width: 18px; height: 18px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.how-i { background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--r); padding: 14px; } .how-i p { font-size: .92em; color: var(--ink2); margin: 4px 0 0; }
.how-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--night); color: var(--amber); font-weight: 700; font-size: .85em; margin-bottom: 6px; }
.home-links { text-align: center; color: var(--ink3); } .home-links a { display: inline-block; padding: 10px 4px; }
.piece-h { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; } .piece-h .lead { margin: 6px 0 0; font-size: 1em; }
@media (min-width: 700px) { .piece-h { grid-template-columns: 150px 1fr; } }
.final { background: var(--night); color: #F4EDE2; border-radius: 20px; overflow: hidden; margin-top: 40px !important; }
.final.has-img img { width: 100%; max-height: 640px; object-fit: cover; }
.final.has-img blockquote { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.final blockquote { margin: 0; padding: 28px 22px 10px; } .final blockquote p { font-size: 1.25em; font-weight: 600; } .final footer { color: #C9C2B3; display: flex; flex-direction: column; gap: 2px; } .final footer small { font-size: .8em; }
.final-c { padding: 14px 22px 22px; margin: 0; color: #E2DACB; }
.final.has-img { position: relative; }

/* ---------- Lección ---------- */
.les-h { border-bottom: 1px solid var(--line2); padding-bottom: 16px; }
.les-k { font-size: .8em; font-weight: 700; color: var(--walnut); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
:root[data-theme="dark"] .les-k { color: var(--amber); }
.les-min { display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: .88em; margin: 8px 0 0; } .les-min svg { width: 18px; height: 18px; }
.skip-q li { margin: 10px 0; } .skip-a { font-weight: 600; color: var(--ok); }
.gal { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 82%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.gal > .gal-i { scroll-snap-align: start; min-width: 0; }
@media (min-width: 760px) { .gal { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); overflow: visible; } .gal.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.gal-hint { font-size: .8em; color: var(--ink3); margin-top: 2px; } @media (min-width: 760px) { .gal-hint { display: none; } }
.gal-i.now > .diag { outline: 3px solid var(--amber); }
.pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 36px !important; flex-wrap: wrap; }
.back-l { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; color: var(--ink2); font-weight: 600; font-size: .92em; } .back-l svg { width: 18px; height: 18px; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--night); color: var(--amber); font-size: .78em; margin-right: 8px; vertical-align: 2px; }
.mins { color: var(--ink3); font-weight: 500; font-size: .75em; }

/* ---------- Diagramas ---------- */
.diag { margin: 0; background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.diag > * + * { margin-top: 10px; }
.dt { font-weight: 650; font-size: .95em; }
.diag .pie { margin: 6px 0 0; }
.diag-err { color: var(--ink3); font-size: .9em; }
.fb { display: block; } .fb-svg { display: block; user-select: none; -webkit-user-select: none; touch-action: manipulation; overflow: visible; }
.fb-v .fb-svg { width: 100%; max-width: 230px; margin: 0 auto; height: auto; }
.fb-h .fb-svg { width: var(--w); max-width: none; height: auto; }
.fb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding-bottom: 4px; }
.fb-mini .fb-svg { width: calc(var(--w) * .8); }
.fb-svg .wood { fill: var(--wood); } .fb-svg .fret { stroke: var(--fret); stroke-width: 2; } .fb-svg .nut { stroke: #F4EDE2; stroke-width: 6; }
.fb-svg .str { stroke: var(--str); opacity: .9; } .fb-svg .inlay { fill: var(--inlay); opacity: .55; }
.fb-svg .frn { font-size: 11px; fill: var(--ink3); text-anchor: middle; font-weight: 600; } .fb-svg .mute { font-size: 16px; fill: var(--ink2); text-anchor: middle; font-weight: 700; }
.fb-svg .hit { fill: transparent; cursor: pointer; } .fb-svg .hit:hover { fill: rgba(245, 184, 61, .16); }
.fb-svg .dot { pointer-events: none; } .fb-svg .disc { stroke: rgba(13, 16, 39, .35); stroke-width: 1; }
.fb-svg .dot .ring { fill: var(--card); stroke-width: 3; }
.fb-svg .dl { font-size: 12px; font-weight: 700; text-anchor: middle; }
.fb-svg .dot.dotted .disc { stroke: #FFFDF8; stroke-width: 2.4; stroke-dasharray: 3 2.4; }
.fb-svg .dot.dim { opacity: .45; } .fb-svg .dot.hot .disc { stroke: var(--amber); stroke-width: 3.5; }
.fb-svg .common { fill: none; stroke: var(--amber); stroke-width: 2.5; }
.fb-svg .dot.lit { animation: lit .45s ease; } @keyframes lit { 0% { transform-box: fill-box; } 40% { filter: brightness(1.35) drop-shadow(0 0 6px #F5B83D); } }
.fb-svg .sel circle { fill: var(--amber); stroke: var(--night); stroke-width: 2; } .fb-svg .sel.good circle { fill: #2C9A56; } .fb-svg .sel.bad circle { fill: #A5402F; } .fb-svg .sel text { fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; }
.fb-svg .ping circle { fill: none; stroke: var(--amber); stroke-width: 3; } .fb-svg .ping text { fill: var(--ink); font-size: 12px; font-weight: 700; text-anchor: middle; }
.fb-svg .arrow { stroke: var(--ink2); stroke-width: 2.5; fill: none; marker-end: url(#ah); } .fb-svg .arrow-t { font-size: 11px; fill: var(--ink2); }
.fb-ghost .dot, .fb .dot.ghost { opacity: .45; }
.ghost .disc { fill-opacity: .4; }
.chips .chip-play svg, .chip-play svg { width: 16px; height: 16px; }
/* tablatura */
.tab-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding-bottom: 6px; }
.tab-svg { display: block; height: auto; max-width: none; }
.tab-line { stroke: var(--ink3); stroke-width: 1; opacity: .7; } .tab-bar { stroke: var(--ink2); stroke-width: 1.5; } .tab-lab { font-size: 11px; font-weight: 800; fill: var(--ink3); writing-mode: vertical-rl; }
.tn { cursor: pointer; } .tn-bg { fill: var(--card); stroke: none; } .tn-t { font-size: 13px; font-weight: 700; text-anchor: middle; fill: var(--ink); } .tn-t.on { fill: #fff; }
.tn.bass .tn-t { fill: var(--ink2); } .tn-tec { font-size: 10px; fill: var(--ink2); font-style: italic; }
.tn.lit .tn-bg { stroke: var(--amber); stroke-width: 3; }
.tab-cur { fill: rgba(245, 184, 61, .22); }
.sheet-tab { box-shadow: none; border-style: dashed; }
/* transporte */
.transport { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; background: var(--bg2); border-radius: 12px; }
.btn-play { min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 0; background: var(--night); color: #F4EDE2; font-weight: 650; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.btn-play svg { width: 20px; height: 20px; color: var(--amber); } .transport.is-on .btn-play, .btn-play[aria-pressed="true"] { background: var(--amber); color: var(--night); } .btn-play[aria-pressed="true"] svg, .transport.is-on .btn-play svg { color: var(--night); }
:root[data-theme="dark"] .btn-play { background: var(--amber); color: var(--night); } :root[data-theme="dark"] .btn-play svg { color: var(--night); }
/* rejillas */
.sgrid-scroll { overflow-x: auto; padding-bottom: 4px; }
.sgrid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(40px, 1fr); gap: 4px; min-width: max-content; }
.sc { display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 8px; padding: 6px 2px; background: var(--bg2); min-height: 74px; border: 2px solid transparent; cursor: pointer; }
.sc-n { font-size: 11px; color: var(--ink3); font-weight: 600; } .sc-sym { font-size: 18px; font-weight: 800; min-height: 26px; } .sc-str { font-size: 10px; color: var(--ink3); }
.sc.now { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 18%, var(--card)); } .sc.okc { background: var(--ok-bg); border-color: var(--ok); } .sc.badc { background: var(--bad-bg); border-color: var(--bad); }
.strum-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; touch-action: none; }
.strum-b { min-height: 96px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 1em; }
.strum-b svg { width: 30px; height: 30px; } .strum-b:active { background: var(--amber); color: var(--night); }
/* hoja de acordes */
.bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.bar { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 66px; padding: 6px 8px; border-radius: 10px; background: var(--bg2); border: 2px solid transparent; cursor: pointer; text-align: left; }
.bar-n { font-size: 11px; color: var(--ink3); } .bar-c { display: flex; gap: 6px; flex-wrap: wrap; } .bar-c b { font-size: 1.05em; } .bar-g { font-size: 11px; color: var(--ink3); }
.bar.now { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 18%, var(--card)); } .bar.okc { border-color: var(--ok); } .bar.badc { border-color: var(--bad); }
.sheet-meta { font-size: .88em; color: var(--ink2); font-weight: 600; }
.now-next { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; }
.now-next > * { box-shadow: none; } .now-next .nxt { opacity: .55; } .now-next .cur { border-color: var(--amber); }
.prog-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.prog-cell { flex: 0 0 150px; cursor: pointer; } .prog-cell .diag { box-shadow: none; padding: 8px; } .prog-cell.now .diag { border-color: var(--amber); outline: 2px solid var(--amber); } .prog-cell.nxt .diag { border-style: dashed; }
.prog-deg { text-align: center; font-weight: 700; color: var(--ink2); font-size: .85em; }
.capo-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--night); color: #F4EDE2; padding: 8px 14px; border-radius: 999px; font-weight: 650; } .capo-badge svg { width: 18px; height: 18px; color: var(--amber); }
/* tablas, círculo, teclado */
.tbl-wrap { overflow-x: auto; } .tbl { border-collapse: collapse; width: 100%; font-size: .9em; } .tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; } .tbl th { font-weight: 650; color: var(--ink2); background: var(--bg2); }
.circ-svg { width: 100%; max-width: 360px; display: block; margin: 0 auto; } .circ-svg .cseg { cursor: pointer; } .circ-svg text { font-size: 13px; font-weight: 700; text-anchor: middle; fill: var(--ink); pointer-events: none; }
.circ-info { text-align: center; font-size: .9em; color: var(--ink2); }
.kb-scroll { overflow-x: auto; } .kb-svg { display: block; height: auto; max-width: none; }
.kb-svg .key { cursor: pointer; } .kb-svg .key.w { fill: #FFFDF8; stroke: #8F8678; } .kb-svg .key.b { fill: #1E2433; } .kb-svg .key.on { fill: var(--amber); } .kb-svg .key.selk { fill: #3B78D8; }
.kb-svg text { font-size: 11px; text-anchor: middle; font-weight: 700; pointer-events: none; }
.form-sec, .sec-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.form-ch { background: var(--bg2); padding: 6px 10px; border-radius: 8px; font-weight: 650; }

/* ---------- Ejercicios ---------- */
.ex { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.ex > * + * { margin-top: 12px; }
.ex-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .ex-n { font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--walnut); }
:root[data-theme="dark"] .ex-n { color: var(--amber); }
.ex-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78em; font-weight: 650; padding: 4px 10px; border-radius: 999px; } .ex-badge svg { width: 14px; height: 14px; } .ex-badge.ok { background: var(--ok-bg); color: var(--ok); } .ex-badge.ko { background: var(--warn-bg); color: #8A5A00; }
:root[data-theme="dark"] .ex-badge.ko { color: var(--amber); }
.ex-q { font-size: 1.08em; font-weight: 650; }
.opts { display: grid; gap: 8px; } @media (min-width: 600px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt { min-height: 48px; padding: 10px 14px; text-align: left; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; font-size: .95em; }
.opt:hover:not(:disabled) { border-color: var(--ink3); } .opt.ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); font-weight: 650; } .opt.bad { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); } .opt:disabled:not(.ok) { opacity: .6; }
.ex-fb { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 1.4em; margin: 0; } .ex-fb:empty { display: none; } .ex-fb svg { width: 20px; height: 20px; } .ex-fb.ok { color: var(--ok); } .ex-fb.bad { color: var(--bad); }
.ex-act { display: flex; gap: 8px; flex-wrap: wrap; } .ex-act:empty { display: none; }
.ex-ans { background: var(--bg2); border-radius: 12px; padding: 12px; }
.ex-src { font-size: .85em; margin: 22px 0 -8px !important; } .ex-src a { color: var(--ink3); }
.btn-listen { align-self: flex-start; }
.chord-pad { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; touch-action: manipulation; }
.chord-b { min-height: 64px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font-size: 1.15em; font-weight: 750; cursor: pointer; }
.chord-b:active { background: var(--amber); color: var(--night); } .chord-b.okc { border-color: var(--ok); background: var(--ok-bg); } .chord-b.badc { border-color: var(--bad); background: var(--bad-bg); }
.seq { display: flex; gap: 6px; flex-wrap: wrap; min-height: 44px; align-items: center; } .seq-c { padding: 6px 12px; border-radius: 8px; background: var(--bg2); font-weight: 700; } .seq-c.ok { background: var(--ok-bg); color: var(--ok); } .seq-c.bad { background: var(--bad-bg); color: var(--bad); } .seq-ph { color: var(--ink3); font-size: .9em; }

/* ---------- Bonos ---------- */
.plan-prog .bar-p { height: 10px; background: var(--bg2); border-radius: 99px; overflow: hidden; } .bar-p i { display: block; height: 100%; background: var(--amber); border-radius: 99px; }
.dots120 { display: grid; grid-template-columns: repeat(auto-fill, 18px); gap: 5px; }
.dots120 a { width: 18px; height: 18px; border-radius: 5px; background: var(--bg2); border: 1px solid var(--line); } .dots120 a.on { background: var(--ok); border-color: var(--ok); } .dots120 a.g { outline: 2px solid var(--amber); }
.day { background: var(--card); border: 1.5px solid var(--line2); border-radius: 12px; margin-top: 8px !important; }
.day > summary { list-style: none; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; min-height: 52px; } .day > summary::-webkit-details-marker { display: none; }
.day-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); font-weight: 700; font-size: .85em; } .day.done .day-n, .day-c.done .day-n { background: var(--ok); color: #fff; } .day-n svg { width: 18px; height: 18px; }
.day.g { border-color: var(--amber); } .day-t { font-weight: 600; font-size: .95em; } .day-m { font-size: .8em; color: var(--ink3); }
.day-b { padding: 0 14px 14px 62px; } @media (max-width: 500px) { .day-b { padding-left: 14px; } }
.day-open { display: flex; flex-wrap: wrap; gap: 6px; } .day-ok { font-size: .92em; color: var(--ink2); }
.day-cb { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.day-c { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line2); text-decoration: none; min-height: 56px; } .day-c .day-t { font-size: .85em; line-height: 1.3; }
.dict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.dict-grid .pie { grid-column: 1 / -1; margin: 0; }
.dict-i { min-height: 64px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; }
.dict-i b { font-size: 1.1em; } .dict-i small { font-size: .7em; color: var(--ink3); text-align: center; line-height: 1.25; }
.dict-det { scroll-margin-top: 70px; } .det-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .det-h h3 small { font-weight: 500; color: var(--ink3); font-size: .7em; }
.det-n { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .nt { padding: 4px 10px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 700; font-size: .88em; }
.big-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; } .big-steps li { background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--r); padding: 14px 14px 14px 58px; position: relative; } .big-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--night); color: var(--amber); display: grid; place-items: center; font-weight: 700; }
.ficha { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; } .ficha > * + * { margin-top: 10px; }
.song-list { display: grid; gap: 8px; } @media (min-width: 700px) { .song-list { grid-template-columns: 1fr 1fr; } }
.song-list .pie { grid-column: 1 / -1; margin: 0; }
.song-i { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line2); text-decoration: none; min-height: 56px; } .song-i small { color: var(--ink3); font-size: .82em; } .song-i.done { border-color: var(--ok); }
.gloss dt { font-weight: 700; margin-top: 12px; } .gloss dd { margin: 2px 0 0; color: var(--ink2); }
.stats .callout { grid-column: 1 / -1; margin: 0; }
.timer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; background: var(--night); color: #F4EDE2; padding: 22px; border-radius: 20px; }
.clock { font-size: 2.6em; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .02em; min-width: 4ch; text-align: center; } .clock.sm { font-size: 1.6em; }
.log-form { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; } .log-form > * + * { margin-top: 12px; }
.set-l { font-weight: 600; font-size: .9em; color: var(--ink2); margin: 14px 0 6px; }
.faces .seg-b { font-size: .88em; }
.week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; } .wd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; background: var(--bg2); font-size: .85em; } .wd.on { background: var(--ok-bg); color: var(--ok); } .wd.today { outline: 2px solid var(--amber); } .wd span { color: var(--ink3); font-size: .85em; }
.sess-i { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); font-size: .9em; align-items: center; } .sess-i small { color: var(--ink3); }
@media (max-width: 520px) { .sess-i { grid-template-columns: auto 1fr; } }
.game-q { font-size: 1.15em; font-weight: 700; } .poster .gal { grid-auto-columns: minmax(280px, 92%); }

/* ---------- Extras ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--line2); padding-bottom: 0; }
.tab { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: .92em; color: var(--ink2); border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tab svg { width: 18px; height: 18px; } .tab.on { color: var(--ink); border-bottom-color: var(--amber); }
.timer-iv { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--bg2); padding: 12px; border-radius: 12px; } .timer-iv.on { background: var(--warn-bg); } .iv-what { font-weight: 700; } .timer-iv .pie { flex-basis: 100%; margin: 0; }
.str-rows { display: grid; gap: 8px; } .str-row { display: grid; grid-template-columns: 44px 1fr; gap: 6px 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--bg2); }
.str-row .seg { grid-column: 1 / -1; background: var(--card); } .str-row.now { outline: 3px solid var(--amber); } .str-tip { grid-column: 1 / -1; margin: 0; font-size: .88em; color: var(--ink2); }
@media (min-width: 700px) { .str-row { grid-template-columns: 44px 160px 1fr; } .str-row .seg { grid-column: auto; } }
.trainer > * + * { margin-top: 14px; }
.lick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.lick-i { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 10px 6px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line2); text-decoration: none; min-height: 76px; }
.lick-i .ln { font-size: .72em; color: var(--ink3); font-weight: 700; } .lick-i b { font-size: 1.05em; } .lick-i small { font-size: .72em; color: var(--ink3); } .lick-i .sw { position: absolute; right: 8px; top: 8px; width: 10px; height: 10px; } .lick-i.done { border-color: var(--ok); }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.solo-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; padding-left: 1.4em; } .solo-map a { color: var(--ink2); }
.band-tr input[type=range] { min-width: 140px; }
.band-neck { min-height: 120px; }
.band-ex { margin-top: 26px !important; }

/* ---------- Puerta y candado ---------- */
.gate { max-width: 460px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 18px 60px; text-align: center; }
.gate > * + * { margin-top: 14px; }
.gate-lang { display: flex; justify-content: flex-end; gap: 6px; } .gate-lang .lang-b { color: var(--ink); border-color: var(--line); } .gate-lang .lang-b.on { color: var(--night); }
.gate-cover { width: 62%; max-width: 230px; margin: 8px auto 0; box-shadow: 0 14px 40px rgba(20, 24, 51, .25); }
.gate-t { font-size: 1.8em; font-weight: 800; } .gate-s { color: var(--ink2); } .gate-lead { font-weight: 600; }
.code-form { text-align: left; display: flex; flex-direction: column; gap: 6px; } .code-form .btn { width: 100%; margin-top: 6px; }
.code-row { display: flex; gap: 8px; } .code-row .btn { width: auto; margin: 0; padding: 10px 12px; flex: none; } .code-row input { flex: 1; min-width: 0; letter-spacing: .04em !important; font-size: 1.05em !important; font-size: 1.15em; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.gate-help { font-size: .88em; color: var(--ink3); } .gate-links a { display: inline-block; padding: 10px; color: var(--ink2); }
.lock-hero { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; } @media (min-width: 700px) { .lock-hero { grid-template-columns: 170px 1fr; } }
.lock-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78em; font-weight: 700; color: var(--walnut); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; } .lock-tag svg { width: 16px; height: 16px; }
:root[data-theme="dark"] .lock-tag { color: var(--amber); }
.lock-box { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); } .lock-box h3 { margin-bottom: 4px; }
.lock-desc p { max-width: 64ch; }
/* ajustes */
.set-sec { background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--r); padding: 16px; } .set-sec h3 { font-size: 1.05em; margin-bottom: 10px; } .set-sec > * + * { margin-top: 10px; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; } .sw-row input { width: 46px; height: 28px; }
.mycodes { display: flex; flex-direction: column; gap: 6px; } .code-chip { display: flex; align-items: center; gap: 6px; } .code-chip code { background: var(--bg2); padding: 8px 12px; border-radius: 8px; font-weight: 700; letter-spacing: .06em; }
.ver { text-align: center; font-size: .78em; color: var(--ink3); }
.help-d { background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--r); padding: 4px 16px; } .help-d summary { min-height: 50px; display: flex; align-items: center; font-weight: 650; } .help-d ol { padding-bottom: 12px; }
.help h3 { margin-top: 26px; font-size: 1.1em; }
/* toast y actualización */
#toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); background: var(--night); color: #F4EDE2; padding: 12px 18px; border-radius: 14px; z-index: 60; max-width: min(92vw, 520px); display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .25s ease; font-size: .95em; }
#toast.on { transform: translate(-50%, 0); } #toast .btn { min-height: 40px; color: #F4EDE2; border-color: #4A5180; }
.upd { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; background: var(--card); border: 1.5px solid var(--amber); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: var(--shadow); max-width: 520px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { #side, .appbar, .transport, .ctl, .btn, .tabs, #toast, .upd { display: none !important; } body { background: #fff; color: #000; } #main { margin: 0 !important; } .diag, .ex { box-shadow: none; break-inside: avoid; } }
/* ---------- Control de reproducción: Tocar / Pausa / Continuar + Volver a empezar (un solo reproductor a la vez) ---------- */
.pctl { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; max-width: 100%; }
.pctl .btn-play { min-width: 0; }
.pctl .btn-play span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pctl .rs-b, .pctl .pl-b { width: 44px; height: 44px; min-width: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.pctl .rs-b:hover { background: var(--bg2); }
.pctl .rs-b svg, .pctl .pl-b svg { width: 20px; height: 20px; fill: none; }
.pctl .pl-b { background: var(--night); border-color: var(--night); color: var(--amber); }
.pctl .pl-b svg path { fill: currentColor; }
.pctl .pl-b[aria-pressed="true"], .pctl .pl-b[aria-pressed="true"]:hover { background: var(--amber); border-color: var(--amber); color: var(--night); }
.pctl .pl-b:hover { background: var(--night2); }
.pctl .ib[aria-pressed="true"] svg { fill: none; }
.pctl .pl-b[aria-pressed="true"] svg path { fill: currentColor; }
.pctl.is-on .btn-play, .pctl .btn-play[aria-pressed="true"] { background: var(--amber); color: var(--night); }
.pctl.is-on .btn-play svg, .pctl .btn-play[aria-pressed="true"] svg { color: var(--night); }
.pctl[data-state="paused"] .btn-play { box-shadow: inset 0 0 0 2px var(--amber); }
:root[data-theme="dark"] .pctl .pl-b { background: var(--amber); border-color: var(--amber); color: var(--night); }
:root[data-theme="dark"] .pctl .pl-b[aria-pressed="true"] { background: var(--card); border-color: var(--amber); color: var(--amber); }
:root[data-theme="dark"] .pctl[data-state="paused"] .btn-play { box-shadow: inset 0 0 0 2px var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pctl .pl-b { background: var(--amber); border-color: var(--amber); color: var(--night); }
  :root:not([data-theme="light"]) .pctl .pl-b[aria-pressed="true"] { background: var(--card); border-color: var(--amber); color: var(--amber); }
  :root:not([data-theme="light"]) .pctl[data-state="paused"] .btn-play { box-shadow: inset 0 0 0 2px var(--ink); }
}
.diag.mini .pctl .btn-play { padding: 8px 14px; }
.cell-play.btn-play { min-height: 44px; padding: 6px 14px; }
.str-row { grid-template-columns: auto 1fr; } @media (min-width: 700px) { .str-row { grid-template-columns: auto 160px 1fr; } }
.form-sec { padding: 4px 0; } .form-sec > b { min-width: 4em; }
.form-ch > span.now { background: var(--amber); color: var(--night); border-radius: 6px; }
.circ-svg .cseg.now path { fill: var(--amber); }
.chip-g { display: inline-flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .pctl * { transition: none !important; } }
:root[data-theme="dark"] .pctl.is-on .btn-play { background: var(--card); color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber); } :root[data-theme="dark"] .pctl.is-on .btn-play svg { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-play { background: var(--amber); color: var(--night); } :root:not([data-theme="light"]) .btn-play svg { color: var(--night); } :root:not([data-theme="light"]) .pctl.is-on .btn-play { background: var(--card); color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber); } :root:not([data-theme="light"]) .pctl.is-on .btn-play svg { color: var(--amber); } }
/* afinador: una nota de referencia a la vez */
.tuner-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; } @media (min-width: 700px) { .tuner-row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tuner-b { min-height: 64px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; touch-action: manipulation; }
.tuner-b b { font-size: 1.15em; } .tuner-b small { font-size: .78em; color: var(--ink3); }
.tuner-b[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--night); } .tuner-b[aria-pressed="true"] small { color: var(--night); }
.dt .ico, .dt svg.ico { width: 20px; height: 20px; flex: none; vertical-align: -3px; margin-right: 6px; color: var(--amber2); }
