:root {
  --bg: #faf8f5;
  --bg2: #f2eee8;
  --card: #ffffff;
  --ink: #1d1b19;
  --ink2: #5d5852;
  --ink3: #8f8880;
  --line: #e6e0d7;
  --red: #c8102e;
  --red2: #a50d26;
  --redbg: #fbe9ec;
  --gold: #c9921a;
  --goldbg: #fbf1dc;
  --ok: #1f8a4c;
  --okbg: #e3f4ea;
  --bad: #c62828;
  --badbg: #fde8e8;
  --blue: #2563c9;
  --bluebg: #e7effc;
  --t1: #2f7fd6; --t2: #2f9e54; --t3: #d98a12; --t4: #c8102e; --t0: #8f8880;
  --shadow: 0 1px 2px rgba(40,30,20,.06), 0 4px 16px rgba(40,30,20,.06);
  --r: 14px;
  --zh: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--zh);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312; --bg2: #1d1b19; --card: #22201e; --ink: #f2eee8; --ink2: #c4bdb3; --ink3: #8f8880; --line: #35312d;
    --redbg: #3a1a1f; --goldbg: #3a2f17; --okbg: #17331f; --badbg: #3b1a1a; --bluebg: #182a45;
    --t1: #6aa8f0; --t2: #5cc27e; --t3: #f0ad3c; --t4: #f0566e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141312; --bg2: #1d1b19; --card: #22201e; --ink: #f2eee8; --ink2: #c4bdb3; --ink3: #8f8880; --line: #35312d;
  --redbg: #3a1a1f; --goldbg: #3a2f17; --okbg: #17331f; --badbg: #3b1a1a; --bluebg: #182a45;
  --t1: #6aa8f0; --t2: #5cc27e; --t3: #f0ad3c; --t4: #f0566e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}
:root[data-font="kai"] { --zh: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "AR PL UKai CN", "PingFang SC", "Noto Sans SC", serif; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--ui); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.zh { font-family: var(--zh); }
.muted { color: var(--ink2); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
#app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
#side { position: sticky; top: 0; height: 100vh; overflow: auto; border-right: 1px solid var(--line); padding: 18px 12px; background: var(--bg); }
#main { padding: 24px 32px 96px; max-width: 980px; width: 100%; margin: 0 auto; }
#tabs { display: none; }
.boot { padding: 40px; text-align: center; font-family: var(--zh); color: var(--ink3); font-size: 1.4rem; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--zh); font-size: 1.25rem; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink2); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--bg2); }
.nav a.on { background: var(--redbg); color: var(--red); }
.nav a .ic { width: 22px; text-align: center; font-size: 1.1rem; }
.nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.side-foot { margin-top: 16px; padding: 10px 12px; font-size: .85rem; color: var(--ink3); }
.lvswitch { display: flex; gap: 4px; background: var(--bg2); border-radius: 10px; padding: 4px; margin: 0 4px 14px; }
.lvswitch button { flex: 1; border: 0; background: transparent; padding: 6px 0; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--ink2); }
.lvswitch button.on { background: var(--card); color: var(--red); box-shadow: var(--shadow); }

@media (max-width: 820px) {
  #app { grid-template-columns: 1fr; }
  #side { display: none; }
  #main { padding: 16px 16px 96px; }
  #tabs { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  #tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: .7rem; color: var(--ink3); text-decoration: none; padding: 4px 0; }
  #tabs a .ic { font-size: 1.25rem; line-height: 1.2; }
  #tabs a.on { color: var(--red); }
  h1 { font-size: 1.35rem; }
}

/* ---------- componentes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.grid > .card + .card, .path > .card + .card, .stack > .card + .card { margin-top: 0; }
.stack > * + .card { margin-top: 12px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .g2.sm1 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.spacer { flex: 1; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.head p { margin: 4px 0 0; color: var(--ink2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 12px; cursor: pointer; font-weight: 600; text-decoration: none; transition: transform .05s, background .15s; min-height: 44px; }
.btn:hover { background: var(--bg2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red2); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg2); }
.btn.sm { padding: 6px 10px; min-height: 34px; font-size: .9rem; border-radius: 9px; }
.btn.big { padding: 14px 22px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.icon-btn { border: 0; background: var(--bg2); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; font-size: 1.1rem; flex: none; }
.icon-btn:hover { background: var(--line); }
.icon-btn.play { background: var(--redbg); color: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--bg2); color: var(--ink2); }
.pill.red { background: var(--redbg); color: var(--red); }
.pill.gold { background: var(--goldbg); color: var(--gold); }
.pill.ok { background: var(--okbg); color: var(--ok); }
.pill.blue { background: var(--bluebg); color: var(--blue); }
.bar { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .3s; }
.bar.ok > i { background: var(--ok); }
.bar.gold > i { background: var(--gold); }
input[type=text], input[type=password], input[type=search], select, textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--redbg); }
label.f { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--ink2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tile { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: transform .1s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); }
.tile .big-ic { font-size: 1.8rem; line-height: 1; margin-bottom: 8px; display: block; }
.tile h3 { margin: 0 0 4px; }
.tile p { margin: 0; color: var(--ink2); font-size: .9rem; }
.stat { text-align: center; }
.stat b { display: block; font-size: 1.7rem; line-height: 1.1; }
.stat span { font-size: .8rem; color: var(--ink2); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.note { background: var(--goldbg); border-radius: 11px; padding: 12px 14px; font-size: .92rem; }
.note.blue { background: var(--bluebg); }
.empty { text-align: center; color: var(--ink3); padding: 30px 10px; }

/* ---------- chino ---------- */
.zl { font-family: var(--zh); font-size: 1.35rem; line-height: 2.1; }
.zl ruby { ruby-position: over; margin: 0 1px; }
.zl rt { font-family: var(--ui); font-size: .48em; color: var(--ink3); letter-spacing: .02em; user-select: none; }
.zl .w { cursor: pointer; border-radius: 4px; }
.zl .w:hover { background: var(--goldbg); }
.zl .hl { color: var(--red); font-weight: 700; }
.zl .blank { display: inline-block; min-width: 3.2em; border-bottom: 2px solid var(--ink2); text-align: center; margin: 0 4px; color: var(--red); }
.zl .blank.filled { border-color: var(--red); }
.zl.nopy rt, .zl.tapmode rt { display: none; }
.zl.tapmode ruby.reveal rt { display: revert; }
.zl.tapmode ruby { cursor: pointer; }
.hanzi-xl { font-family: var(--zh); font-size: 5rem; line-height: 1.1; text-align: center; }
.hanzi-l { font-family: var(--zh); font-size: 3rem; line-height: 1.2; }
.pinyin { color: var(--ink2); font-size: 1.2rem; }
.tone1 { color: var(--t1); } .tone2 { color: var(--t2); } .tone3 { color: var(--t3); } .tone4 { color: var(--t4); } .tone0 { color: var(--t0); }
.emoji-pic { font-size: 3.2rem; line-height: 1; display: grid; place-items: center; aspect-ratio: 4/3; background: var(--bg2); border-radius: 12px; }

/* ---------- ejercicios ---------- */
.ex-wrap { max-width: 720px; margin: 0 auto; }
.ex-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ex-top .bar { flex: 1; height: 12px; }
.ex-q { font-weight: 600; color: var(--ink2); margin-bottom: 14px; }
.ex-prompt { text-align: center; margin: 10px 0 24px; }
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .opts.three { grid-template-columns: repeat(3, 1fr); gap: 6px; } }
.opt { border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 12px; min-height: 52px; transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--ink3); }
.opt .k { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--ink3); }
.opt.sel { border-color: var(--blue); background: var(--bluebg); }
.opt.ok { border-color: var(--ok); background: var(--okbg); }
.opt.bad { border-color: var(--bad); background: var(--badbg); }
.opt.dim { opacity: .5; }
.opt.pic { flex-direction: column; justify-content: center; padding: 8px; }
.opt.pic .emoji-pic { width: 100%; font-size: 2.6rem; }
.opt .zh { font-size: 1.25rem; }
.feedback { position: sticky; bottom: 0; margin-top: 20px; padding: 14px 16px; border-radius: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feedback.ok { background: var(--okbg); }
.feedback.bad { background: var(--badbg); }
.feedback .msg { flex: 1; min-width: 180px; }
.feedback .msg b { display: block; }
@media (max-width: 820px) { .feedback { bottom: 70px; } }
.tokens { display: flex; flex-wrap: wrap; gap: 8px; min-height: 56px; padding: 10px; border-radius: 12px; }
.tokens.answer { border: 2px dashed var(--line); margin-bottom: 14px; }
.tok { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 12px; cursor: pointer; font-family: var(--zh); font-size: 1.25rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.tok small { font-family: var(--ui); font-size: .65rem; color: var(--ink3); }
.tok.used { visibility: hidden; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match .opt { justify-content: center; text-align: center; }
.match .opt.gone { visibility: hidden; }
.writer-box { width: 260px; height: 260px; margin: 0 auto; background: var(--card); border: 2px solid var(--line); border-radius: 14px; touch-action: none; position: relative; }
.writer-box svg.grid { position: absolute; inset: 0; pointer-events: none; }
.writer-small { width: 120px; height: 120px; }
.tone-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tone-btns button { width: 64px; height: 56px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.3rem; }
.tone-btns button.on { border-color: var(--blue); background: var(--bluebg); }
.wordcard { text-align: center; padding: 24px 18px; }
.wordcard .meaning { font-size: 1.25rem; font-weight: 600; margin: 8px 0 2px; }
.wordcard .exbox { text-align: left; margin-top: 18px; background: var(--bg2); border-radius: 12px; padding: 12px 14px; }

/* ---------- curso ---------- */
.path { display: grid; gap: 10px; }
.unit { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit; cursor: pointer; }
.unit .num { width: 44px; height: 44px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; font-weight: 700; flex: none; color: var(--ink2); }
.unit.done .num { background: var(--ok); color: #fff; }
.unit.next .num { background: var(--red); color: #fff; box-shadow: 0 0 0 5px var(--redbg); }
.unit .words { font-family: var(--zh); color: var(--ink2); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit .info { flex: 1; min-width: 0; }
.unit .info b { display: block; }

/* ---------- examen ---------- */
.exam-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--bg2); }
.timer.low { background: var(--badbg); color: var(--bad); }
.qnum { font-weight: 700; color: var(--ink3); margin-right: 6px; }
.part-intro { background: var(--bluebg); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.letter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .letter-grid { grid-template-columns: repeat(6, 1fr); } }
.letter-grid .cell { border: 1px solid var(--line); border-radius: 12px; padding: 6px; text-align: center; background: var(--card); }
.letter-grid .cell b { display: block; color: var(--ink3); font-size: .85rem; }
.letter-grid .cell .zh { font-size: 1.1rem; }
.ans-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ans-row button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; }
.ans-row button.on { border-color: var(--blue); background: var(--bluebg); }
.ans-row button.ok { border-color: var(--ok); background: var(--okbg); }
.ans-row button.bad { border-color: var(--bad); background: var(--badbg); }
.q-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-item:last-child { border-bottom: 0; }
.score-ring { width: 150px; height: 150px; margin: 0 auto; position: relative; }
.score-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; }
.transcript { background: var(--bg2); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: .95rem; }

/* ---------- varios ---------- */
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: grid; place-items: center; padding: 16px; }
#modal[hidden] { display: none; }
#modal .box { background: var(--card); border-radius: 18px; padding: 22px; max-width: 520px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--bg2); }
.heat i.l1 { background: #f5c6ce; } .heat i.l2 { background: #e8798b; } .heat i.l3 { background: var(--red); }
.chars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.chars-grid button { aspect-ratio: 1; border: 1px solid var(--line); background: var(--card); border-radius: 10px; font-family: var(--zh); font-size: 1.6rem; cursor: pointer; position: relative; }
.chars-grid button.done::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.kbd { font-family: ui-monospace, monospace; background: var(--bg2); padding: 1px 6px; border-radius: 5px; font-size: .85em; }
.tone-chart svg { width: 100%; height: auto; }
table.py-table { border-collapse: collapse; font-size: .9rem; }
table.py-table td, table.py-table th { border: 1px solid var(--line); padding: 4px 6px; text-align: center; }
table.py-table td.c { cursor: pointer; }
table.py-table td.c:hover { background: var(--goldbg); }
.scroll-x { overflow-x: auto; }
.gram-pat { font-family: var(--zh); background: var(--bg2); padding: 8px 12px; border-radius: 10px; display: inline-block; font-size: 1.05rem; }
.explain p { margin: 0 0 .7em; }
.ex-line { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ex-line:last-child { border-bottom: 0; }
.ex-line .tr { font-size: .92rem; color: var(--ink2); }
.mic { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 2rem; cursor: pointer; box-shadow: 0 6px 20px rgba(200,16,46,.35); }
.mic.rec { animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(200,16,46,.5); } 50% { box-shadow: 0 0 0 16px rgba(200,16,46,0); } }
.diff-char.ok { color: var(--ok); } .diff-char.bad { color: var(--bad); text-decoration: underline; }

/* ---------- app instalada y móvil ---------- */
.install-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-color: var(--red); background: var(--redbg); }
.install-banner img { border-radius: 11px; flex: none; }
.install-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; line-height: 1.5; }
.install-steps li::marker { color: var(--red); font-weight: 700; }
html, body { overscroll-behavior-y: none; }
button, .btn, .opt, .tok, .tile, #tabs a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn, .opt, .tok, #tabs a, .nav a { -webkit-user-select: none; user-select: none; }
input, select, textarea { font-size: max(16px, 1em); }
html.standalone #main { padding-top: calc(16px + env(safe-area-inset-top)); }
html.standalone .exam-bar { top: env(safe-area-inset-top); }
html.standalone #side { padding-top: calc(18px + env(safe-area-inset-top)); }
@media (max-width: 820px) {
  #main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .ex-wrap .feedback { bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------- camino de lecciones (estilo Duolingo) ---------- */
.units { display: grid; gap: 14px; }
.units > .card + .card { margin-top: 0; }
.unit-card.current { border-color: var(--red); box-shadow: 0 0 0 3px var(--redbg), var(--shadow); }
.unit-card.done { opacity: .85; }
.nodes { display: flex; flex-wrap: wrap; gap: 14px 10px; margin-top: 14px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; text-decoration: none; color: var(--ink2); }
.node .dot { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--bg2); border-bottom: 4px solid var(--line); transition: transform .1s; }
.node:active .dot { transform: translateY(2px); border-bottom-width: 2px; }
.node .lbl { font-size: .75rem; text-align: center; line-height: 1.2; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node.done .dot { background: var(--ok); color: #fff; border-bottom-color: #166b3a; font-size: 1.3rem; }
.node.next .dot { background: var(--red); color: #fff; border-bottom-color: var(--red2); animation: bob 1.6s ease-in-out infinite; }
.node.next .lbl { color: var(--red); font-weight: 700; }
.node.review .dot { border-radius: 16px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
body.focus #tabs { display: none; }
@media (max-width: 820px) { body.focus .ex-wrap .feedback { bottom: env(safe-area-inset-bottom); } }
@media (min-width: 821px) { body.focus #app { grid-template-columns: 1fr; } body.focus #side { display: none; } }
.next-card { text-decoration: none; color: inherit; border-color: var(--red); display: block; }
.next-card .next-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 1.6rem; flex: none; border-bottom: 4px solid var(--red2); }
