/* Texnika (/learn/texnika), owner 2026-11-11 task 7. Builds on proto.css + home.css; colours from the theme. */
.tx { max-width: 760px; padding-top: 12px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.tx .crumb, .tx-back { display: block; width: fit-content; margin-bottom: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--muted); text-decoration: none; cursor: pointer; }
.tx h1 { font-size: 1.6rem; margin-top: 4px; }
.tx .lead { margin-top: 4px; color: var(--ink-2); }
.tx-warm { margin-top: 14px; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--ink-bg), color-mix(in srgb, var(--ink-bg) 60%, var(--teal))); }
.tx-warm small { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold); }
.tx-warm b { display: block; margin-top: 2px; font-size: 1.1rem; }
.tx-steps { list-style: none; display: grid; gap: 6px; margin: 10px 0 0; padding: 0; }
.tx-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); font-size: 0.84rem; font-weight: 800; }
.tx-steps i { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--accent); font-style: normal; font-size: 0.72rem; }
.tx-steps em { margin-left: auto; font-style: normal; font-size: 0.74rem; opacity: 0.8; white-space: nowrap; }
.tx-warm-go { margin-top: 12px; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.tx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .tx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tx-tile { display: flex; flex-direction: column; gap: 3px; min-height: 168px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; }
.tx-tile:hover { border-color: var(--c); }
.tx-ic { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--c); }
.tx-ic b { font-size: 1.15rem; }
.tx-tile small { font-size: 0.62rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.tx-tile > b { font-size: 0.98rem; line-height: 1.2; }
.tx-tx { font-size: 0.76rem; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.tx-ft { margin-top: auto; padding-top: 8px; display: grid; gap: 4px; }
.tx-ft em { font-style: normal; font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.tx-mini { display: block; height: 5px; border-radius: 9px; background: var(--paper-2); overflow: hidden; }
.tx-mini i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--c); }
/* lists */
.tx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tx-chips .chip { min-height: 38px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-weight: 800; font-size: 0.86rem; cursor: pointer; }
.tx-chips .chip.on { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.tx-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.tx-sub { grid-column: 1 / -1; margin: 8px 0 0; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tx-item { display: grid; gap: 2px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.tx-item b { font-size: 0.92rem; }
.tx-item small { font-size: 0.74rem; font-weight: 800; color: var(--muted); }
.tx-item.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--card)); }
.tx-item.done small { color: var(--ok); }
.tx-item:hover { border-color: var(--accent); }
.tx-note { margin-top: 12px; font-size: 0.84rem; font-weight: 700; color: var(--muted); }
/* exercise */
.tx-top { display: flex; align-items: center; gap: 10px; }
.tx .icon-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; }
.tx-name { flex: 1; min-width: 0; display: grid; }
.tx-name b { font-size: 1.05rem; }
.tx-name span { color: var(--muted); font-weight: 800; font-size: 0.82rem; }
.tx-paper { margin-top: 10px; padding: 2px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; overflow: hidden; }
.tx-paper svg { display: block; }
.tx-paper .tx-th, .tx-paper .tx-th path { fill: var(--accent); }
.tx-paper .ok, .tx-paper .ok path { fill: var(--ok); }
.tx-paper .off, .tx-paper .off path { fill: var(--gold); }
.tx-paper .bad, .tx-paper .bad path { fill: var(--bad); }
.tx-paper .cur, .tx-paper .cur path { fill: var(--teal); }
.tx-kbd { margin-top: 8px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.tx-kbd .kbd { display: block; width: 100%; height: auto; max-height: 140px; }
.tx-kbd .kbd g { cursor: pointer; }
.tx-kbd .kbd .kw rect { fill: #fff; stroke: #c9c2b5; }
.tx-kbd .kbd .kb rect { fill: #1f2440; }
.tx-kbd .kbd .kf { fill: var(--accent); }
.tx-kbd .kbd .on.f1 .kf { fill: var(--accent); } .tx-kbd .kbd .on.f2 .kf { fill: var(--teal); } .tx-kbd .kbd .on.f3 .kf { fill: var(--ink-bg); } .tx-kbd .kbd .on.f4 .kf { fill: var(--gold); } .tx-kbd .kbd .on.f5 .kf { fill: var(--bad); }
.tx-kbd .kbd .kft { fill: #fff; font-size: 9px; font-weight: 900; text-anchor: middle; }
.tx-kbd .kbd .ko { font-size: 8px; fill: #8b8fa3; text-anchor: middle; font-weight: 700; }
.tx-kbd .kbd .hit rect { filter: brightness(0.85); }
.tx-inrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.8rem; font-weight: 800; color: var(--teal); }
.tx-mic { width: auto; min-height: 36px; margin: 0; color: var(--accent-ink); }
.tx-lbl { margin: 14px 0 6px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tx-ladder { display: flex; gap: 4px; align-items: flex-end; }
.tx-ladder span { flex: 1; padding: 6px 0; border-radius: 8px 8px 3px 3px; background: var(--paper-2); color: var(--muted); text-align: center; font-size: 0.72rem; font-weight: 900; white-space: nowrap; }
.tx-ladder span.d { background: var(--teal-soft); color: var(--teal); }
.tx-ladder span.c { background: var(--accent); color: #fff; flex: 1.6; }
.tx-hint { margin: 10px 0 0; padding: 9px 11px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 20%, var(--card)); color: var(--ink); font-size: 0.84rem; font-weight: 700; line-height: 1.4; }
#tx-go, #tx-stop { margin-top: 12px; }
#tx-listen { display: block; width: 100%; margin-top: 4px; }
/* result */
.tx-res-title { margin: 4px 0 0; text-align: center; color: var(--muted); font-weight: 800; font-size: 0.86rem; }
.tx-res-even { margin: 2px 0 0; text-align: center; font-size: 2.4rem; font-weight: 900; }
.tx-res-sub { margin: 0; text-align: center; color: var(--muted); font-weight: 800; font-size: 0.82rem; }
.tx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.tx-tiles div { padding: 10px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: center; }
.tx-tiles b { display: block; font-size: 1.15rem; white-space: nowrap; }
.tx-tiles span { font-size: 0.68rem; font-weight: 800; color: var(--muted); }
.tx-card { margin-top: 10px; padding: 12px 14px; }
.tx-card > b { font-size: 0.9rem; }
.tx-fingers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 110px; margin-top: 8px; }
.tx-fingers div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.tx-fingers i { width: 64%; border-radius: 6px 6px 2px 2px; }
.tx-fingers i.f1 { background: var(--accent); } .tx-fingers i.f2 { background: var(--teal); } .tx-fingers i.f3 { background: var(--ink-bg); } .tx-fingers i.f4 { background: var(--gold); } .tx-fingers i.f5 { background: var(--bad); }
.tx-fingers span { font-size: 0.72rem; font-weight: 900; color: var(--muted); }
.tx-fingers em { font-style: normal; font-size: 0.7rem; font-weight: 800; color: var(--ink-2); }
.tx-base { border-top: 1.5px dashed var(--line); margin-top: 2px; }
.tx-up { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); text-align: center; font-weight: 900; }
#tx-next, #tx-again { margin-top: 12px; }
.tx-icl { font-size: 1.15rem; font-weight: 900; }
.tx-credit { margin: 6px 0 0; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.tx-credit a { color: var(--muted); }
