/* Play English · IELTS roadmap. Night sky like the home page; one item per screen on a phone,
   passage beside questions on a computer. Skill colours are fixed across the whole course. */
:root {
  color-scheme: dark;
  --bg: #100a2c; --bg-2: #160f3a; --panel: #1d1550; --panel-2: #272063; --line: rgba(255, 255, 255, .12);
  --ink: #ffffff; --ink-2: #c3bcec; --ink-3: #aaa3dc; /* ink-3 stays above 4.5:1 on the lighter glass panels */
  --sun: #ffc933; --sun-ink: #2e2100; --ok: #46dba6; --ok-ink: #05301f; --bad: #ff7b6b; --bad-ink: #3d0c06;
  --paper: #fffaf0; --paper-2: #f1ebff; --pink-ink: #1d1548; --pink-ink-2: #5c5490;
  --V: #ffc933; --G: #b69cff; --L: #46dba6; --R: #7cc7ff; --W: #ff9f5a; --S: #ff6fae; --T: #ffffff;
  --f-d: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --f-b: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-r: "Source Serif 4", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: radial-gradient(90% 50% at 50% 0%, #2a1d6b 0%, rgba(42, 29, 107, 0) 70%) no-repeat, var(--bg); color: var(--ink); font-family: var(--f-b); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--sun); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px)); }

/* header */
.top { display: flex; align-items: center; gap: 10px; padding: 14px 0 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.brand b { font-family: var(--f-d); font-weight: 800; font-size: 22px; white-space: nowrap; }
.brand b i { font-style: normal; color: var(--sun); }
.top .sp { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pill.sun { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin: 8px 0 16px; }
.seg a { display: grid; place-items: center; height: 40px; border-radius: 12px; color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; }
.seg a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* bands card */
.bands { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); text-align: left; width: 100%; color: inherit; }
.ring { position: relative; width: 116px; height: 116px; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font-family: var(--f-d); font-weight: 800; font-size: 36px; line-height: 1; }
.ring span { font-size: 12px; color: var(--ink-2); }
.skills { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.sk { display: grid; grid-template-columns: 22px minmax(0, 1fr) 30px; gap: 8px; align-items: center; font-size: 13px; }
.sk i { font-style: normal; font-weight: 800; font-size: 12px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--bg); }
.bar { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.bar > em { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: #fff; }
.sk b { text-align: right; font-variant-numeric: tabular-nums; }
.tgt { font-size: 13px; color: var(--ink-2); }
.tgt b { color: var(--sun); }

/* next lesson */
.next { display: flex; align-items: center; gap: 14px; width: 100%; margin: 14px 0 6px; padding: 16px; border: 0; border-radius: 24px; background: var(--sun); color: var(--sun-ink); text-align: left; text-decoration: none; }
.next .k { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--sun-ink); color: var(--sun); font-family: var(--f-d); font-weight: 800; font-size: 22px; }
.next span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.next small { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; opacity: .8; }
.next b { font-family: var(--f-d); font-weight: 800; font-size: 20px; line-height: 1.15; }
.next .go { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--sun-ink); color: var(--sun); display: grid; place-items: center; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip b { color: var(--sun); }

/* road */
.road { position: relative; margin-top: 18px; padding-left: 30px; }
.road::before { content: ""; position: absolute; left: 13px; top: 20px; bottom: 20px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .22) 0 8px, transparent 8px 16px); }
.stop { position: relative; margin-bottom: 14px; }
.node { position: absolute; left: -30px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 3px solid rgba(255, 255, 255, .3); color: var(--ink); font-size: 11px; font-weight: 800; }
.stop.done .node { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); }
.stop.now .node { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); box-shadow: 0 0 0 6px rgba(255, 201, 51, .18); }
.sh { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); text-align: left; color: inherit; }
.sh .bd { font-family: var(--f-d); font-weight: 800; font-size: 26px; line-height: 1; min-width: 46px; }
.sh .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sh .tt b { font-size: 15px; }
.sh .tt span { font-size: 12px; color: var(--ink-2); }
.sh .pc { font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stop.now .sh { border-color: rgba(255, 201, 51, .5); }
.ls { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.le { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; color: inherit; text-decoration: none; }
.le:hover { background: rgba(255, 255, 255, .08); }
.le .kb { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; font-family: var(--f-d); font-weight: 800; font-size: 15px; color: var(--bg); }
.le span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.le span b { font-size: 15px; font-weight: 600; }
.le span small { font-size: 12px; color: var(--ink-2); }
.le .ck { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); display: grid; place-items: center; color: transparent; font-size: 11px; font-weight: 800; }
.le.done .ck { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); }
.le.next-up { border-color: rgba(255, 201, 51, .55); background: rgba(255, 201, 51, .08); }
.le.soon { opacity: .55; }
.le.soon .kb::after { content: ""; }

/* setup */
.card { padding: 18px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.h1 { font-family: var(--f-d); font-weight: 800; font-size: 30px; line-height: 1.1; margin: 8px 0 6px; text-wrap: balance; }
.h2 { font-family: var(--f-d); font-weight: 800; font-size: 22px; line-height: 1.15; margin: 0 0 10px; }
.mute { color: var(--ink-2); }
.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); color: inherit; text-align: left; }
.choice .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--sun); }
.choice b { display: block; font-size: 16px; }
.choice small { color: var(--ink-2); font-size: 13px; }
.stepper { display: grid; grid-template-columns: 30px minmax(0, 1fr) 44px 52px 44px; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stepper:last-child { border-bottom: 0; }
.stepper i { font-style: normal; font-weight: 800; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--bg); font-size: 13px; }
.stepper output { text-align: center; font-family: var(--f-d); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); display: grid; place-items: center; font-size: 22px; font-weight: 700; line-height: 1; }
.round:disabled { opacity: .3; cursor: default; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 18px; background: var(--sun); color: var(--sun-ink); font-weight: 800; font-size: 16px; text-decoration: none; }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--ink); border: 1px solid var(--line); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }
.row { display: flex; gap: 10px; margin-top: 14px; }
.row > * { flex: 1; }

/* lesson player */
.player { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg); }
.ph { display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)); }
.ph .x { width: 44px; height: 44px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); display: grid; place-items: center; }
.ph .pg { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ph .pg span { display: block; height: 100%; border-radius: 99px; background: var(--sun); transition: width .35s; }
.ph .kb { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-d); font-weight: 800; color: var(--bg); }
.pb { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pin { max-width: 680px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.pf { padding: 10px max(16px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); background: var(--bg-2); }
.pf .in { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.fb { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.fb.ok { background: rgba(70, 219, 166, .14); color: #b9f5dc; }
.fb.bad { background: rgba(255, 123, 107, .14); color: #ffd1cb; }
.fb b { display: block; font-size: 15px; color: #fff; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--ink-2); margin: 10px 0 6px; }
.q { font-size: 19px; line-height: 1.45; font-weight: 600; margin: 4px 0 16px; }
.ctx { padding: 14px 16px; border-radius: 16px; background: var(--paper); color: var(--pink-ink); font-family: var(--f-r); font-size: 17px; line-height: 1.55; margin: 6px 0 14px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel); color: var(--ink); text-align: left; font-size: 16px; font-weight: 600; }
.opt .lt { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 800; }
.opt.pick { border-color: var(--sun); }
.opt.ok { border-color: var(--ok); background: rgba(70, 219, 166, .14); }
.opt.bad { border-color: var(--bad); background: rgba(255, 123, 107, .12); }
.opt:disabled { cursor: default; }
/* an input is ~20 characters wide by default: give it a width that shrinks, so a gap never widens a phone screen */
.gapin { display: inline-block; width: 11em; min-width: 0; max-width: 100%; height: 44px; padding: 0 12px; margin: 2px 2px; border-radius: 12px; border: 2px solid var(--sun); background: rgba(255, 201, 51, .08); color: #fff; font-size: 17px; font-weight: 700; vertical-align: middle; }
.gapin.ok { border-color: var(--ok); background: rgba(70, 219, 166, .14); }
.gapin.bad { border-color: var(--bad); background: rgba(255, 123, 107, .12); text-decoration: line-through; }
.ans { color: var(--ok); font-weight: 800; }
.slot { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 40px; padding: 0 10px; margin: 2px 2px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .35); background: transparent; color: #fff; font-weight: 700; vertical-align: middle; }
.slot.full { border-style: solid; border-color: var(--sun); background: rgba(255, 201, 51, .1); }
.slot.ok { border-color: var(--ok); background: rgba(70, 219, 166, .14); }
.slot.bad { border-color: var(--bad); background: rgba(255, 123, 107, .12); }
.bank { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tok { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: #fff; font-weight: 700; font-size: 15px; }
.tok.used { opacity: .3; }
.btext { font-size: 18px; line-height: 2.1; }
.mrow { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mrow .ml { font-weight: 600; font-size: 16px; }
.mrow select { height: 48px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); color: #fff; font-size: 15px; width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.mrow select.ok { border-color: var(--ok); }
.mrow select.bad { border-color: var(--bad); }
.orderline { min-height: 64px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding: 10px; border-radius: 16px; border: 2px dashed rgba(255, 255, 255, .25); margin-bottom: 12px; }
.orderline.ok { border-color: var(--ok); border-style: solid; }
.orderline.bad { border-color: var(--bad); border-style: solid; }

/* tip */
.tip { padding: 20px; border-radius: 24px; background: var(--paper); color: var(--pink-ink); }
.tip h2 { font-family: var(--f-d); font-weight: 800; font-size: 26px; line-height: 1.1; margin: 0 0 8px; }
.tip p { margin: 0; font-size: 16px; line-height: 1.55; }
.tip .exs { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.tip .ex { padding: 10px 14px; border-radius: 14px; background: var(--paper-2); }
.tip .ex b { display: block; font-size: 15px; font-weight: 700; }
.tip .ex span { font-size: 14px; color: var(--pink-ink-2); }
.tip .fx { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(29, 21, 72, .08); font-size: 15px; }
.tip .fx s { color: #b83a2f; }
.tip .fx b { color: #17694a; }
.tip ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.tip ol li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.tip ol li::before { content: counter(s); width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--pink-ink); color: var(--paper); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }

/* audio */
.audio { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); margin: 6px 0 14px; }
.audio .play { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 0; background: var(--L); color: var(--ok-ink); display: grid; place-items: center; }
.audio .tl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.audio .tl .bar span { background: var(--L); }
.audio .tl small { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.audio .sp { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.saybtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 72px; border-radius: 20px; border: 0; background: var(--panel-2); color: #fff; font-size: 16px; font-weight: 700; margin: 4px 0 16px; }
.saybtn svg { color: var(--L); }

/* group (read / listen) */
.grp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } /* an auto track would grow to the widest input or select */
.passage { padding: 18px 18px 8px; border-radius: 20px; background: var(--paper); color: var(--pink-ink); font-family: var(--f-r); font-size: 17px; line-height: 1.65; }
.passage h3 { font-family: var(--f-r); font-weight: 700; font-size: 21px; margin: 0 0 10px; line-height: 1.3; }
.passage p { margin: 0 0 12px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; }
.passage p b { font-family: var(--f-b); font-size: 13px; font-weight: 800; color: var(--pink-ink-2); padding-top: 4px; }
.tabs2 { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.tabs2 button { height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.tabs2 button[aria-selected="true"] { background: #fff; color: var(--bg); }
.qs { display: flex; flex-direction: column; gap: 12px; }
.qi { padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.qi.ok { border-color: rgba(70, 219, 166, .6); }
.qi.bad { border-color: rgba(255, 123, 107, .6); }
.qi .qn { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.qi .qn > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qi .qn i { font-style: normal; min-width: 26px; padding: 0 5px; height: 26px; flex: none; border-radius: 8px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tri button { min-height: 44px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.tri button.pick { border-color: var(--R); background: rgba(124, 199, 255, .16); }
.tri button.ok { border-color: var(--ok); background: rgba(70, 219, 166, .2); }
.tri button.bad { border-color: var(--bad); background: rgba(255, 123, 107, .16); }
.qi .opts .opt { min-height: 48px; font-size: 15px; padding: 8px 12px; }
.qi .why { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.qi .why b { color: #fff; }
.rule { display: inline-block; padding: 4px 10px; border-radius: 8px; background: rgba(255, 201, 51, .14); color: var(--sun); font-size: 12px; font-weight: 800; letter-spacing: .4px; margin-bottom: 10px; }
.script { padding: 14px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; }
.script p { margin: 0 0 8px; }
.script p b { color: var(--ink-2); margin-right: 6px; }
.score { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: var(--R); color: #0d2440; }
.score b { font-family: var(--f-d); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }

/* vocab cards */
.flip { position: relative; width: 100%; height: 360px; perspective: 1100px; border: 0; padding: 0; background: transparent; text-align: left; }
.flip > div { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .8, .3, 1); }
.flip.on > div { transform: rotateY(180deg); }
.side { position: absolute; inset: 0; padding: 22px; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; gap: 10px; background: var(--paper); color: var(--pink-ink); }
.side.back { transform: rotateY(180deg); background: #fff; justify-content: center; gap: 14px; }
.side .w { font-family: var(--f-d); font-weight: 800; font-size: 44px; line-height: 1; overflow-wrap: anywhere; }
.side .ip { color: var(--pink-ink-2); font-size: 16px; }
.side .cols { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.side .cols span { padding: 6px 10px; border-radius: 10px; background: var(--paper-2); font-size: 14px; font-weight: 600; }
.side .vi { font-family: var(--f-d); font-weight: 800; font-size: 30px; line-height: 1.15; }
.side .eg { padding: 12px 14px; border-radius: 14px; background: var(--paper-2); font-size: 16px; line-height: 1.5; }
.side .eg i { display: block; font-style: normal; color: var(--pink-ink-2); font-size: 14px; margin-top: 4px; }
.dots { display: flex; gap: 4px; margin: 4px 0 12px; }
.dots span { flex: 1; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .15); }
.dots span.on { background: #fff; }
.dots span.ok { background: var(--ok); }

/* charts */
.chart { padding: 14px; border-radius: 20px; background: #fff; color: #1d1548; margin: 8px 0 14px; }
.chart h4 { margin: 0 0 8px; font-size: 14px; text-align: center; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .lg { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; margin-top: 6px; }
.chart .lg span { display: inline-flex; align-items: center; gap: 6px; }
.chart .lg i { width: 12px; height: 12px; border-radius: 3px; }
.chart table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.chart th, .chart td { padding: 6px 8px; border-bottom: 1px solid #e6e1f5; text-align: right; }
.chart th:first-child, .chart td:first-child { text-align: left; }
.chart .proc { display: flex; flex-direction: column; gap: 6px; counter-reset: p; }
.chart .proc div { counter-increment: p; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #f4f0ff; font-size: 14px; }
.chart .proc div::before { content: counter(p); width: 24px; height: 24px; flex: none; border-radius: 50%; background: #6b4be0; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.chart .maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* write / speak */
.prompt { padding: 16px 18px; border-radius: 20px; background: var(--paper); color: var(--pink-ink); font-size: 16px; line-height: 1.55; }
.prompt .tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--pink-ink); color: var(--paper); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.prompt ul { margin: 6px 0 0; padding-left: 20px; }
.plan { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.plan li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--panel); font-size: 14px; }
.plan li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--W); flex: none; }
textarea.essay { width: 100%; min-height: 260px; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--line); background: var(--panel); color: #fff; font-size: 16px; line-height: 1.6; resize: vertical; }
textarea.essay:focus { outline: none; border-color: var(--W); }
.meter { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); margin: 6px 2px 0; font-variant-numeric: tabular-nums; }
.meter b { color: #fff; }
.meter b.ok { color: var(--ok); }
.model { padding: 16px 18px; border-radius: 20px; background: #fff; color: var(--pink-ink); font-size: 16px; line-height: 1.65; white-space: pre-line; }
.model .tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ok); color: var(--ok-ink); font-size: 12px; font-weight: 800; margin-bottom: 8px; white-space: normal; }
.notes { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.notes li { padding: 8px 12px; border-radius: 12px; background: rgba(70, 219, 166, .1); font-size: 14px; color: #c9f7e5; }
.checks { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.checks label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 14px; background: var(--panel); font-size: 15px; cursor: pointer; }
.checks input { width: 22px; height: 22px; accent-color: var(--ok); flex: none; }
.checks em { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--ink-2); }
.timer { font-family: var(--f-d); font-weight: 800; font-size: 54px; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; margin: 12px 0 4px; }
.mic { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--S); color: #3d0520; display: grid; place-items: center; margin: 10px auto; }
.mic.rec { animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 111, 174, .55); } 100% { box-shadow: 0 0 0 22px rgba(255, 111, 174, 0); } }
.center { text-align: center; }

/* end of lesson */
.end { text-align: center; padding-top: 30px; }
.end img { width: 110px; height: 110px; border-radius: 50%; }
.end .big { font-family: var(--f-d); font-weight: 800; font-size: 56px; line-height: 1; margin: 14px 0 4px; }

/* word bank */
.lvls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lvl { padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); color: inherit; text-align: left; }
.lvl b { display: block; font-family: var(--f-d); font-weight: 800; font-size: 26px; line-height: 1; }
.lvl small { color: var(--ink-2); font-size: 12px; }
.lvl.on { border-color: var(--sun); }
.wl { display: flex; flex-direction: column; margin-top: 12px; }
.wl button { display: flex; align-items: baseline; gap: 10px; min-height: 48px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; }
.wl b { font-size: 16px; }
.wl i { font-style: normal; font-size: 12px; color: var(--ink-2); }
.wl span { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; margin-left: auto; }
.due { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.due b { font-family: var(--f-d); font-weight: 800; font-size: 34px; line-height: 1; }

/* global tab bar (same as the home page) */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.tabs nav { pointer-events: auto; width: 100%; max-width: 536px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 26px; background: rgba(27, 19, 70, .94); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .8); }
button.tab { background: none; border: 0; font-family: inherit; cursor: pointer; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; border-radius: 20px; color: var(--ink-2); font-size: 12px; font-weight: 600; text-decoration: none; }
.tab[aria-current="page"] { background: var(--panel-2); color: #fff; }
.tab[aria-current="page"] svg { color: var(--sun); }
.foot { margin-top: 28px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.foot a { color: var(--ink-2); }

@media (min-width: 900px) {
  .wrap { padding-bottom: 60px; }
  .top { padding-right: 430px; }
  .tabs { position: absolute; top: 14px; bottom: auto; left: auto; right: max(16px, calc(50% - 380px)); padding: 0; justify-content: flex-end; }
  .tabs nav { width: auto; display: flex; background: rgba(255, 255, 255, .06); box-shadow: none; padding: 4px; border-radius: 16px; }
  .tab { flex-direction: row; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
  .tab svg { width: 18px; height: 18px; }
  .grp.two { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .grp.two .passage { position: sticky; top: 8px; max-height: calc(100vh - 160px); overflow-y: auto; }
  .grp.two .tabs2 { display: none; }
  .grp.two [data-pane] { display: block !important; }
  .pin.widen { max-width: 1180px; }
  .pf .in.widen { max-width: 1180px; }
}
@media (prefers-reduced-motion: reduce) { .flip > div, .ph .pg span { transition: none; } .mic.rec { animation: none; } }

/* ───────── Liquid glass ─────────
   Frames, buttons, bars and badges are frosted glass with a bright rim and a soft highlight.
   Text on glass stays solid white on a dark tint, so it reads like on a solid card. Anything meant
   for reading (passages, tips, models, flashcards) keeps a solid paper surface. */
:root {
  --glass-tint: rgba(30, 22, 82, .58);
  --glass-tint-2: rgba(44, 34, 110, .62);
  --glass-hi: linear-gradient(160deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, 0) 60%, rgba(160, 140, 255, .08) 100%);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(255, 255, 255, .06);
  --glass-drop: 0 18px 40px -22px rgba(0, 0, 0, .75), 0 2px 8px -4px rgba(0, 0, 0, .35);
  --glass-blur: blur(22px) saturate(170%);
}
body::before { content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 30% at 12% 18%, rgba(124, 92, 255, .30), transparent 70%), radial-gradient(34% 28% at 88% 30%, rgba(255, 111, 174, .20), transparent 70%), radial-gradient(40% 32% at 70% 88%, rgba(70, 219, 166, .16), transparent 70%), radial-gradient(30% 26% at 20% 80%, rgba(124, 199, 255, .14), transparent 70%);
  filter: blur(20px); }
.bands, .card, .sh, .le, .qi, .seg, .choice, .audio, .due, .lvl, .chip, .pill:not(.sun), .tabs nav, .ph .x, .round, .opt, .tri button, .tok, .mrow select, .script, .tabs2, .plan li, .checks label, .gapin, .slot, .wl, .notes li {
  background-color: var(--glass-tint); background-image: var(--glass-hi);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: var(--glass-rim), var(--glass-drop);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.le, .opt, .tri button, .tok, .chip, .plan li, .checks label, .notes li, .round, .ph .x { box-shadow: var(--glass-rim); }
.bands, .card, .qi, .audio, .due, .sh, .choice { position: relative; overflow: hidden; }
.bands::after, .card::after, .qi::after, .audio::after, .due::after, .sh::after, .choice::after { content: ""; position: absolute; left: 6%; right: 40%; top: 0; height: 46%; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .16), transparent 70%); }
.le:hover, .choice:hover, .opt:hover:not(:disabled), .tok:hover { background-color: var(--glass-tint-2); }
.seg a[aria-current="page"], .tabs2 button[aria-selected="true"] { background: linear-gradient(180deg, #fff, #e9e4ff); color: #1d1548; box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(0, 0, 0, .6); }
.tab[aria-current="page"] { background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.opt.pick, .tri button.pick { background-color: rgba(255, 201, 51, .16); }
.opt.ok, .tri button.ok, .slot.ok, .gapin.ok { background-color: rgba(70, 219, 166, .22); }
.opt.bad, .tri button.bad, .slot.bad, .gapin.bad { background-color: rgba(255, 123, 107, .2); }
.gapin { border: 2px solid rgba(255, 201, 51, .9); }
.slot { border: 2px dashed rgba(255, 255, 255, .45); }
.slot.full { border-style: solid; border-color: var(--sun); }
.qi.ok { border-color: rgba(70, 219, 166, .7); } .qi.bad { border-color: rgba(255, 123, 107, .7); }
/* buttons: polished, not flat */
.btn, .next, .pill.sun { background: linear-gradient(180deg, #ffe07a 0%, #ffc933 48%, #f4b316 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 0 rgba(160, 100, 0, .25), 0 14px 30px -16px rgba(255, 190, 40, .85); }
.btn.ghost { background-color: var(--glass-tint); background-image: var(--glass-hi); color: #fff; box-shadow: var(--glass-rim); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.next .go { background: #2e2100; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.ph, .pf { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.pf { background: rgba(22, 15, 58, .82); border-top: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.player { background: var(--bg); }
.player::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 30% at 10% 10%, rgba(124, 92, 255, .22), transparent 70%), radial-gradient(40% 30% at 90% 85%, rgba(255, 111, 174, .14), transparent 70%); }
/* reading surfaces: solid paper with a glass rim */
.tip, .passage, .ctx, .prompt, .model, .side, .chart { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(255, 255, 255, .5), 0 22px 44px -26px rgba(0, 0, 0, .8); }

/* glass icon tiles (skills): solid white glyph on a deep jewel-tone tile, like system app icons */
.gi { --s: 36px; width: var(--s); height: var(--s); flex: none; border-radius: 30%; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 -8px 14px -8px rgba(0, 0, 0, .4), 0 10px 20px -12px var(--c2); }
.gi::before { content: ""; position: absolute; left: -10%; right: -10%; top: -40%; height: 85%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0)); pointer-events: none; }
.gi svg { position: relative; width: 58%; height: 58%; fill: #fff; stroke: none; filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, .3)); }
.gi svg .cut { fill: none; stroke: var(--c2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gi svg .ln { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; }
.gi[data-k="L"] { --c1: #36d9b6; --c2: #0a7a84; } .gi[data-k="R"] { --c1: #63adff; --c2: #2350d4; }
.gi[data-k="W"] { --c1: #ffb45e; --c2: #dd5418; } .gi[data-k="S"] { --c1: #ff7db2; --c2: #bf266b; }
.gi[data-k="V"] { --c1: #ffd760; --c2: #d08600; } .gi[data-k="G"] { --c1: #ab8dff; --c2: #5534d6; }
.gi[data-k="T"] { --c1: #8d86ff; --c2: #33289a; }
.gi.sm { --s: 24px; border-radius: 28%; } .gi.sm svg { width: 64%; height: 64%; }
.gi.k { --s: 52px; } .gi.kb { --s: 36px; }
.next .gi.k { --c1: #4a3600; --c2: #1f1500; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -10px rgba(0, 0, 0, .6); }
.next .gi.k svg { fill: #ffd24a; } .next .gi.k svg .cut { stroke: #1f1500; } .next .gi.k svg .ln { stroke: #ffd24a; }
.choice .ic { background: linear-gradient(155deg, #7b67ff, #3a2c9e); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -8px 14px -8px rgba(0, 0, 0, .4), 0 10px 20px -12px #3a2c9e; }
.sk { grid-template-columns: 24px minmax(0, 1fr) 30px; }
.stepper { grid-template-columns: 30px minmax(0, 1fr) 44px 52px 44px; }
.stepper .gi { --s: 30px; }
.mic, .audio .play { background-image: radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 50%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -3px 6px rgba(0, 0, 0, .18), 0 14px 28px -12px rgba(0, 0, 0, .6); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bands, .card, .sh, .le, .qi, .seg, .choice, .audio, .due, .lvl, .chip, .pill:not(.sun), .tabs nav, .ph .x, .round, .opt, .tri button, .tok, .mrow select, .script, .tabs2, .plan li, .checks label, .gapin, .slot, .wl, .notes li, .btn.ghost { background-color: #241b5e; }
}
@media (prefers-reduced-transparency: reduce) {
  .bands, .card, .sh, .le, .qi, .seg, .choice, .audio, .due, .lvl, .chip, .pill:not(.sun), .tabs nav, .ph .x, .round, .opt, .tri button, .tok, .mrow select, .script, .tabs2, .plan li, .checks label, .gapin, .slot, .wl, .notes li, .btn.ghost { background-color: #241b5e; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body::before, .player::before { display: none; }
}
.gi[data-k="G"] svg { width: 66%; height: 66%; }

/* ───────── IELTS Plus ───────── */
.gi[data-k="P"] { --c1: #ffe27a; --c2: #c77800; }
.seg a.px-tab { color: #ffd65c; }
.seg a.px-tab[aria-current="page"] { color: #3a2600; background: linear-gradient(180deg, #fff1b8, #ffcf3f); }
.px-hero { display: flex; gap: 16px; align-items: center; padding: 20px; background-color: rgba(52, 36, 112, .62); }
.px-hero .gi.k { --s: 64px; }
.px-hero .h1 { margin: 2px 0 4px; font-size: 26px; line-height: 1.15; }
.px-hero .kicker { margin: 0; color: #ffd65c; }
.px-on { display: inline-block; margin-top: 2px; padding: 4px 10px; border-radius: 99px; background: rgba(70, 219, 166, .18); color: #8ff0c9; font-size: 13px; font-weight: 700; }
.px-feats { display: grid; gap: 8px; margin-top: 12px; }
.px-f { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--glass-tint); background-image: var(--glass-hi); box-shadow: var(--glass-rim); border: 1px solid rgba(255, 255, 255, .14); }
.px-f b { display: block; font-size: 15px; }
.px-f small { color: var(--ink-2); font-size: 13px; }
.px-soon { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: var(--ink-2); vertical-align: 2px; margin-left: 4px; }
.px-demo, .px-res { margin-top: 12px; }
.px-res { padding: 16px; border-radius: 22px; background: var(--paper); color: var(--pink-ink); }
.px-res .kicker { color: var(--pink-ink-2); margin-top: 14px; }
.px-dt { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.px-dt b { font-family: var(--f-d); font-size: 40px; line-height: 1; color: #ffd65c; }
.px-res .px-dt b { color: #6a3df0; }
.px-cr { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px; gap: 4px 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.px-cr .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.px-res .px-cr .bar { background: rgba(29, 21, 72, .1); }
.px-cr .bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd65c, #ff9f5a); }
.px-res .px-cr .bar span { background: linear-gradient(90deg, #8d6bff, #5534d6); }
.px-cr b { text-align: right; }
.px-cr p { grid-column: 1 / -1; margin: 0 0 4px; font-size: 13px; color: var(--pink-ink-2); }
.px-fix { margin-top: 8px; font-size: 15px; }
.px-demo .px-fix { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.px-fix s { color: #ff8f80; text-decoration-thickness: 2px; }
.px-res .px-fix s { color: #c0392b; }
.px-fix ins { text-decoration: none; color: #46dba6; font-weight: 700; }
.px-res .px-fix ins { color: #0b8a5a; }
.px-fix small { display: block; color: var(--pink-ink-2); font-size: 13px; }
.px-fixes .px-fix { padding: 8px 0; border-bottom: 1px solid rgba(29, 21, 72, .08); margin: 0; }
.px-good { margin: 4px 0 0; padding-left: 20px; font-size: 14px; }
.px-note { margin-top: 8px; font-size: 13px; color: var(--pink-ink-2); }
.px-more { margin-top: 12px; }
.px-more summary { cursor: pointer; font-weight: 700; color: #5534d6; }
.px-more .model { margin-top: 8px; }
.px-next { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #efe9ff; font-size: 14px; }
/* the two gói, side by side when there is room, each with its three lengths as rows */
.px-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 4px; text-align: left; }
.px-plan { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .16); background-color: var(--glass-tint); background-image: var(--glass-hi); box-shadow: var(--glass-rim), var(--glass-drop); }
.px-plan.max { border: 2px solid #ffd65c; background-color: rgba(78, 58, 10, .42); }
.px-ph h3 { margin: 0; font-family: var(--f-d); font-weight: 800; font-size: 23px; line-height: 1.15; }
.px-plan.max .px-ph h3 { color: #ffd65c; }
.px-ph p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.px-lim { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.4; }
.px-lim li { display: flex; gap: 10px; align-items: baseline; }
.px-lim b { flex: none; width: 76px; }
.px-lim span { flex: 1; min-width: 0; color: var(--ink-2); }
.px-lim li.add b { color: #ffd65c; }
.px-lim li.no { opacity: .7; }
.px-durs { display: grid; gap: 8px; margin-top: auto; }
.px-pl { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 62px; padding: 10px 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; text-align: left; }
.px-pl:hover { background-color: rgba(255, 255, 255, .12); }
.px-pl.hot { border: 2px solid #ffd65c; background: rgba(78, 58, 10, .55); }
.px-len { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.px-len > b { font-size: 16px; }
.px-len i { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; background: linear-gradient(180deg, #ffe07a, #f4b316); color: #2e2100; }
.px-len small { flex-basis: 100%; color: #ffe7a3; font-size: 12px; }
.px-pr { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.px-pr b { font-family: var(--f-d); font-weight: 800; font-size: 21px; line-height: 1.1; }
.px-pr small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.px-gift { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.px-gift b { color: #ffe7a3; }
.px-pl.off { opacity: .55; }
.px-free { margin-top: 14px; font-size: 13px; color: var(--ink-2); text-align: center; }
.px-restore { margin-top: 14px; padding: 2px 16px; }
.px-restore[open] { padding-bottom: 14px; }
.px-restore summary { cursor: pointer; font-weight: 700; padding: 11px 0; min-height: 44px; } /* a full-size touch target */
.px-rin { display: flex; gap: 8px; margin-top: 10px; }
.px-rin input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .25); text-transform: uppercase; letter-spacing: .04em; }
.px-code { color: #ffd65c; letter-spacing: .04em; }
.px-sheet { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; background: rgba(8, 5, 26, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.px-box { position: relative; width: min(400px, 100%); padding: 22px 18px 18px; border-radius: 28px; background: #1d1550; background-image: var(--glass-hi); box-shadow: var(--glass-rim), 0 30px 60px -20px rgba(0, 0, 0, .8); text-align: center; }
.px-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.px-amt { font-family: var(--f-d); font-size: 34px; line-height: 1.1; margin: 2px 0 12px; }
.px-qr { display: inline-block; padding: 8px; border-radius: 20px; background: #fff; }
.px-qr img { display: block; width: 232px; height: 232px; max-width: 64vw; max-height: 64vw; image-rendering: pixelated; }
.px-hint { margin: 8px 0 12px; font-size: 13px; color: var(--ink-2); }
.px-rows { display: grid; gap: 1px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .1); text-align: left; }
.px-rows > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #221a5c; font-size: 14px; }
.px-rows span { color: var(--ink-3); width: 96px; flex: none; white-space: nowrap; }
.px-rows > div:nth-child(2) b { white-space: nowrap; letter-spacing: -.01em; }
.px-rows b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.px-rows .note b { color: #ffd65c; letter-spacing: .03em; }
.px-rows button { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 700; }
.px-wait, .px-msg { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 10px; font-size: 14px; color: var(--ink-2); }
.px-msg:empty { display: none; }
.px-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #ffd65c; animation: pxp 1.2s ease-in-out infinite; }
@keyframes pxp { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .px-dot { animation: none; } }
.px-done { padding: 10px 0 0; display: flex; flex-direction: column; align-items: center; }
.px-done .gi.k { --s: 72px; }
.px-codebox { margin: 16px 0; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); width: 100%; }
.px-codebox b { font-size: 22px; color: #ffd65c; letter-spacing: .06em; }
.px-ai { margin: 16px 0 6px; }
.px-go .gi.sm { --s: 26px; margin-right: 2px; }
.px-up { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; text-decoration: none; color: #fff; border: 1px solid rgba(255, 214, 92, .45); background: rgba(78, 58, 10, .42); background-image: var(--glass-hi); box-shadow: var(--glass-rim); }
.px-up > span:not(.gi) { flex: 1; min-width: 0; }
.px-up > .gi { flex: none; }
.px-up b { display: block; font-size: 15px; }
.px-up small { color: var(--ink-2); font-size: 13px; }
.px-up i { font-style: normal; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: linear-gradient(180deg, #ffe07a, #f4b316); color: #2e2100; }
/* a phone too narrow for label, number and button on one line: the label goes above */
@media (max-width: 380px) { .px-plan { padding: 14px 12px; } .px-pl { padding: 10px 12px; } .px-pr b { font-size: 19px; } .px-lim b { width: 66px; } .px-rows > div { flex-wrap: wrap; row-gap: 2px; } .px-rows span { width: 100%; font-size: 13px; } }

/* mock tests */
.mk-l { display: grid; gap: 10px; }
.mk-t { padding: 14px; }
.mk-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mk-h > b { font-size: 16px; } .mk-h span { color: var(--ink-2); font-size: 13px; } .mk-h span b { color: #ffd65c; font-size: 18px; }
.mk-s { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mk-k { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 12px; }
.mk-k b { font-size: 14px; color: #ffd65c; }
.mk-k:hover { background: rgba(255, 255, 255, .12); }
.mk-clock { flex: none; min-width: 58px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.mk-clock.late { background: rgba(255, 123, 107, .25); color: #ffb3a8; }

/* headings that only give screens and stages their structure keep the look they had as plain text */
.shh { margin: 0; font: inherit; }
/* containers focused by script (a layer opening, a screen changing) don't need a ring around everything */
.player:focus, .pin:focus, .px-box:focus, main h1:focus { outline: none; }
button.px-up { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.px-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 201, 51, .14); color: #ffe7a3; font-size: 14px; line-height: 1.45; text-align: left; }
.px-warn b { color: #ffd65c; letter-spacing: .04em; }
.px-done .px-warn { margin: 14px 0 0; }
.px-cprow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.px-cprow b { white-space: nowrap; } /* the code stays whole; the button moves below when there is no room */
.px-cprow button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 700; }
.px-wait { flex-wrap: wrap; text-align: center; }
/* Gói IELTS Pro and Max */
.px-sub { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.px-on + .px-sub, .px-sub + .px-sub { margin-top: 4px; }
.px-sub + .px-on { margin-top: 8px; }
.px-try-note, .px-anchor { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.px-try-note b { color: #fff; }
.px-anchor { margin-top: 8px; text-align: center; background: none; padding: 0 8px; }
.px-box.wide { width: min(720px, 100%); }
.px-box .px-plans { margin-top: 0; }
.px-box .px-free { margin-top: 12px; }
.px-co { display: flex; flex-direction: column; align-items: center; }
.px-co > * { max-width: 100%; }
.px-co > .px-rows, .px-co > .px-warn, .px-co > .btn, .px-co > .px-signin, .px-co > .px-done { width: 100%; }
.px-amt s { font-size: 20px; color: var(--ink-3); text-decoration-thickness: 2px; }
.px-signin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 214, 92, .1); font-size: 13.5px; color: #ffe7a3; }
.px-signin .chip { cursor: pointer; border-color: rgba(255, 214, 92, .5); }
.px-giftbox { display: flex; flex-direction: column; gap: 2px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 214, 92, .12); color: #ffe7a3; font-size: 14px; line-height: 1.45; }
.px-giftbox b { color: #ffd65c; }
.px-try { margin-top: 2px; }
.px-tryn { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); text-align: center; }
.px-ai > .px-up { margin-top: 12px; }
.px-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255, 214, 92, .4); background: rgba(78, 58, 10, .4); font-size: 14px; line-height: 1.45; }
.px-offer span { flex: 1 1 220px; }
.px-offer .chip { cursor: pointer; border-color: rgba(255, 214, 92, .5); }
/* mock tests of the language courses (HSK, JLPT, TOPIK): ielts/MOCKS.md */
html[data-lang] .mk-s { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
.mk-v { margin: -4px 0 10px; font-weight: 800; font-size: 14px; } .mk-v.ok { color: #7be0b0; } .mk-v.bad { color: #ffb3a8; }
.mk-lock { margin-bottom: 4px; } .mk-lock a { color: #ffd65c; font-weight: 700; }
.mk-pic { font-size: 44px; line-height: 1.15; margin: 4px 0 8px; letter-spacing: 6px; } .mk-pic.big { font-size: 64px; text-align: center; }
.mk-intro { margin: 8px 0 12px; font-size: 16px; line-height: 1.7; }
.qi .audio { margin: 0 0 10px; } .qi .script { margin-top: 10px; } .qi .script summary { cursor: pointer; font-weight: 700; }
html[data-lang] .seg a { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.opts.mk-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opts.mk-pics .opt { flex-direction: column; align-items: center; gap: 6px; padding: 8px; }
.mk-svg { display: block; width: 100%; max-width: 150px; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; background: #f7f5ff; padding: 4px; box-sizing: border-box; }
