/* =====================================================================================================================
   Nếp on a computer (1000 px and up, the default look). index.html loads this file with media="(min-width: 1000px)"
   and every rule is inside the same query again, so a phone never sees any of it. pc.js moves the pieces into place:
   .shell.pc = a sidebar (.pc-side: Nếp dressed, the top bar, the sections) and the page; on Hôm nay the hello, the
   platform as wide as the page, the line under it and a rail (.pc-rail: the line in small, this week, the cards due).
   The feel: big bold headings, room to breathe, white cards on hanji, pill buttons, the season over the whole page.
   Tokens are pop.css's; dark keys off html[data-theme="dark"] like everywhere else.
   ===================================================================================================================== */
@media (min-width: 1000px) {
html.pop { --pc-head: var(--font); --pc-side: 272px; --pc-r: 28px;
  --pc-sh: 0 1px 2px rgba(70, 58, 30, .05), 0 18px 40px -26px rgba(70, 58, 30, .35); }
html.pop[data-theme="dark"] { --pc-sh: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 40px -26px rgba(0, 0, 0, .8); }

/* ---------- the frame ---------- */
html.pop .shell.pc { max-width: none; margin: 0; padding: 0; display: grid; grid-template-columns: var(--pc-side) minmax(0, 1fr); column-gap: 0; align-items: start; }
html.pop .shell.pc > .pg { grid-area: 1 / 2 !important; width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px 48px 96px; min-width: 0; }
html.pop .shell.pc > .pc-side { grid-area: 1 / 1 / span 9 / 2; position: sticky; top: 0; z-index: 5; height: 100vh; display: flex; flex-direction: column; gap: 18px;
  padding: 26px 18px 22px; overflow-y: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--card) 62%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border-right: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
html.pop .pc-brand { display: flex; align-items: baseline; gap: 6px; padding: 0 10px; }
html.pop .pc-brand b { font: 800 30px/1 var(--pc-head); letter-spacing: -.03em; color: var(--ink); }
html.pop .pc-brand small { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--acc-ink); }

/* Nếp in his clothes, on a little patch of the season, with his name, the streak and the grains */
html.pop .pc-me { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 14px 16px; border-radius: var(--pc-r);
  background: radial-gradient(120% 70% at 50% 100%, color-mix(in srgb, var(--season-a) 26%, var(--card)) 0 45%, var(--card) 75%); box-shadow: var(--pc-sh); }
html.pop .pc-me::before { content: ''; position: absolute; left: 50%; top: 128px; width: 120px; height: 18px; margin-left: -60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 40, 10, .22), transparent); }
html.pop .pc-nep { position: relative; width: 168px; height: 150px; margin-top: 4px; }
html.pop .pc-nep .nd { position: absolute; left: 0; bottom: 0; width: 168px; height: 150px; margin: 0; cursor: pointer; }
html.pop .pc-me .topbar { display: contents; }
html.pop .pc-me .rd-hi { display: flex; margin: 6px 0 10px; }
html.pop .pc-me .rd-hi :is(img, canvas) { display: none; }
html.pop .pc-me .rd-hi b { font: 700 24px/1.15 var(--pc-head); letter-spacing: -.02em; color: var(--ink); }
html.pop .pc-me .tb-stats { display: flex; gap: 8px; margin: 0; }
html.pop .pc-me .rd-stat { min-height: 38px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
html.pop .pc-me .rd-stat.grain { cursor: pointer; }
html.pop .pc-me .rd-stat small { display: inline; color: var(--ink3); font-weight: 600; }
@media (max-width: 1199px) { html.pop .pc-me .rd-stat small { display: none; } }

/* the sections: pills */
html.pop .pc-side .navtabs { position: static; align-self: stretch; display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 4px 0 0; padding: 0; background: none; border: 0; }
html.pop .pc-side .navtabs .nt { width: 100%; }
html.pop .pc-side .nt { min-height: 50px; padding: 0 16px; gap: 14px; border-radius: 999px; font-size: 16px; font-weight: 700; color: var(--ink2);
  transition: background-color .18s, color .18s, transform .18s var(--ease-out); }
html.pop .pc-side .nt:hover { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); transform: translateX(3px); }
html.pop .pc-side .nt.on { background: var(--card); color: var(--ink); box-shadow: var(--pc-sh); }
html.pop .pc-side .nt.on::after { content: ''; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--red); }
html.pop .pc-side .nt :is(img, canvas) { width: 30px; height: 30px; margin: -4px -3px; }

/* today, at the foot */
html.pop .pc-today { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: auto; padding: 16px 18px 18px; border: 0; border-radius: 22px;
  background: var(--card); box-shadow: var(--pc-sh); text-align: left; color: var(--ink); cursor: pointer; transition: transform .18s var(--ease-out); }
html.pop .pc-today:hover { transform: translateY(-2px); }
html.pop .pc-today small { font-size: 13px; font-weight: 700; color: var(--ink3); }
html.pop .pc-today b { font: 700 22px/1.2 var(--pc-head); }
html.pop .pc-bar { align-self: stretch; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
html.pop .pc-bar i { display: block; height: 100%; min-width: 8px; border-radius: 4px; background: var(--acc); }

/* ---------- the season over the whole page ---------- */
html.pop .sky { background: linear-gradient(180deg, var(--sky-a) 0, color-mix(in srgb, var(--sky-b) 70%, var(--sky-a)) 38%, var(--bg) 92%); }

/* ---------- Hôm nay ---------- */
html.pop .pg-hoc .pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 28px; align-items: start;
  grid-template-areas: "top top" "hi head" "live ." "scene scene" "line rail"; }
html.pop .pg-hoc :is(.pg-main.rd, .mt) { display: contents; }
html.pop .pg-hoc .pg-side { display: none; }
html.pop .pg-hoc .rd-resume { grid-area: top; margin-bottom: 18px; }
html.pop .pg-hoc .path-card { grid-area: top; margin: 0 0 22px; }
html.pop .shell.pc .hi-br { display: inline; }
html.pop .shell.pc .hi { grid-area: hi; margin: 0 0 26px; font: 700 clamp(46px, 3.9vw, 62px)/1.02 var(--pc-head); letter-spacing: -.035em; color: var(--ink); }
html.pop .shell.pc .hi em { font-style: normal; color: var(--acc-ink); }
html.pop[data-sky="night"]:not([data-theme="dark"]) .shell.pc .hi { color: #FFF8EE; }
html.pop[data-sky="night"]:not([data-theme="dark"]) .shell.pc .hi em { color: #BFF0CF; }
/* the online class (live.js) under the hello, in the left column */
html.pop .pg-hoc .lv-card { grid-area: live; max-width: 640px; margin: -6px 0 28px; }
html.pop .pg-hoc .lv-card .lv-btn { min-height: 40px; padding: 0 18px; }
html.pop .pg-hoc .lv-a.lv-card { grid-template-areas: "av who btn" "av say btn"; gap: 2px 16px; padding: 14px 16px 14px 14px; }
html.pop .pg-hoc .lv-a .lv-face { align-self: center; margin: 0; }
html.pop .pg-hoc .lv-a .lv-av { width: 48px; height: 48px; font-size: 20px; }
html.pop .pg-hoc .lv-a .lv-say { font-size: 17px; }
html.pop .pg-hoc .lv-a .lv-btn { align-self: center; }
html.pop .pg-hoc .mt-head { grid-area: head; align-self: end; justify-self: end; margin: 0 2px 30px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 80%, transparent); box-shadow: var(--pc-sh); }
html.pop .pg-hoc .mt-head b { font-size: 18px; }
html.pop[data-sky="night"]:not([data-theme="dark"]) .pg-hoc .mt-head { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
/* the platform as wide as the page: the same drawing, a size up */
html.pop .pg-hoc .mt > .mt-card:not(.mt-map) { grid-area: scene; margin-bottom: 28px; border-radius: 32px; box-shadow: var(--pc-sh); }
html.pop .pg-hoc .mt-scene { zoom: 1.5; }
html.pop .pg-hoc .mt-sign { zoom: 1.12; }
html.pop .pg-hoc .mt-next-w { display: none; }   /* the rail's "Học tiếp" does it on a computer */
html.pop .pg-hoc .mt-map { grid-area: line; margin: 0; border-radius: var(--pc-r); box-shadow: var(--pc-sh); }
html.pop .pg-hoc .mt-map .mt-b { transition: background-color .15s; }
html.pop .pg-hoc .mt-map .mt-b:hover { background: color-mix(in srgb, var(--l) 8%, transparent); }

/* ---------- the rail ---------- */
html.pop .pc-rail { grid-area: rail; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
html.pop .pg-toi .pc-rail { grid-area: auto; }
html.pop .pc-card { position: relative; padding: 20px 22px 22px; border-radius: var(--pc-r); background: var(--card); box-shadow: var(--pc-sh); }
html.pop .pc-card > header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
html.pop .pc-card > header b { font: 700 22px/1.2 var(--pc-head); letter-spacing: -.02em; }
html.pop .pc-card > header small { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink3); }
html.pop .pc-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--fill); color: var(--ink); font: 700 15px var(--font); cursor: pointer; transition: transform .15s var(--ease-out), background-color .15s; }
html.pop .pc-pill::after { content: '›'; font-size: 20px; line-height: 1; margin-top: -2px; }
html.pop .pc-pill:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--fill) 70%, var(--line)); }
html.pop .pc-pill.go { background: var(--acc-btn); color: #fff; box-shadow: var(--sh-btn); }
html.pop .pc-pill.go:hover { background: var(--acc-press); }

/* the line in small */
html.pop .pc-line { --lf: var(--lnf, var(--ln)); --lt: var(--lnt, #fff); }
html.pop[data-theme="dark"] .pc-line { --lf: var(--lndf, var(--lnd)); --lt: var(--lndt, #fff); }
html.pop .pc-line .mt-ln-no { width: 30px; height: 30px; font-size: 16px; }
html.pop .pc-line svg { display: block; width: 100%; height: auto; margin: 0 0 8px; }
html.pop .pc-line .pc-trk { fill: none; stroke: var(--fill); stroke-width: 7; stroke-linecap: round; }
html.pop .pc-line .pc-run { fill: none; stroke: var(--ln); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 1; }
html.pop[data-theme="dark"] .pc-line .pc-run { stroke: var(--lnd); }
html.pop .pc-st circle { fill: var(--card); stroke: var(--ink3); stroke-width: 2.5; }
html.pop .pc-st.past circle { fill: var(--ln); stroke: var(--card); }
html.pop .pc-st.here circle { fill: var(--card); stroke: var(--ln); stroke-width: 4.5; }
html.pop .pc-st.here .pc-ring { fill: none; stroke: var(--ln); stroke-width: 2; opacity: .5; transform-box: fill-box; transform-origin: center; animation: pc-ping 2.2s var(--ease-out) infinite; }
@keyframes pc-ping { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.4); opacity: 0; } }
html.pop .pc-now { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
html.pop .pc-now span { display: flex; flex-direction: column; min-width: 0; }
html.pop .pc-now small { font-size: 13px; font-weight: 700; color: var(--ink3); }
html.pop .pc-now b { font: 700 18px/1.3 var(--kr-sans, var(--font)); color: var(--ink); }
html.pop .pc-now em { font-style: normal; font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
html.pop .pc-now .nx b { color: var(--ink2); }

/* this week, red seals */
html.pop .pc-week ol { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
html.pop .pc-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; border-radius: 16px; background: var(--card2); }
html.pop .pc-day small { font-size: 12.5px; font-weight: 700; color: var(--ink3); }
html.pop .pc-day b { font-size: 17px; font-weight: 700; color: var(--ink); }
html.pop .pc-day.later b { color: var(--ink3); font-weight: 600; }
html.pop .pc-day.today { box-shadow: inset 0 0 0 2px var(--acc); background: var(--acc-soft); }
html.pop .pc-day b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
html.pop .pc-day.on b { color: var(--red-ink); transform: rotate(-12deg);
  background: radial-gradient(circle, transparent 0 11.5px, var(--red) 12px 13px, transparent 13.5px), color-mix(in srgb, var(--red) 9%, transparent);
  box-shadow: inset 0 0 0 2.5px var(--red); }
html.pop .pc-day.on.today b { color: var(--red-ink); }

/* the cards due */
html.pop .pc-rev-n { display: flex; align-items: baseline; gap: 10px; margin: -2px 0 10px; }
html.pop .pc-rev-n b { font: 700 54px/1 var(--pc-head); letter-spacing: -.03em; color: var(--ink); }
html.pop .pc-rev-n small { font-size: 15px; font-weight: 600; color: var(--ink2); }
html.pop .pc-rev-w { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
html.pop .pc-rev-w span { padding: 4px 12px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink); font: 600 15px var(--kr-sans, var(--font)); }

/* ---------- the other sections: a bold title, room, cards like courses ---------- */
html.pop .pc-head { margin: 4px 4px 28px; }
html.pop .pc-head h1 { margin: 0; font: 700 clamp(44px, 3.6vw, 58px)/1.04 var(--pc-head); letter-spacing: -.035em; color: var(--ink); }
html.pop .pc-head p { margin: 10px 0 0; font-size: 18px; font-weight: 500; color: var(--ink2); }
html.pop .shell.pc .sec { margin-top: 40px; font: 700 26px/1.2 var(--pc-head); letter-spacing: -.02em; }

/* Thi thử: the estimate wide, the three parts as course cards with a clay icon, practice and results side by side */
html.pop .pg-thi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; grid-auto-flow: row dense; align-items: start; }
html.pop .pg-thi > * { grid-column: 1 / -1; }
html.pop .pg-thi > h2.sec:nth-of-type(2), html.pop .pg-thi > .list.rows { grid-column: 1; }
html.pop .pg-thi > h2.sec:nth-of-type(3), html.pop .pg-thi > .list.rows ~ :is(.ex-list, .empty-note) { grid-column: 2; }
html.pop .pg-thi .est { padding: 30px 30px 26px 34px; border-radius: 32px; box-shadow: var(--pc-sh); }
html.pop .pg-thi .est b { font: 700 44px/1.1 var(--pc-head); letter-spacing: -.03em; }
html.pop .pg-thi .est-nep { width: 150px; height: 134px; }
html.pop .pg-thi .slips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
html.pop .pg-thi .slip { flex-direction: column; min-height: 268px; padding: 0; border-radius: var(--pc-r); box-shadow: var(--pc-sh); transition: transform .2s var(--ease-out), box-shadow .2s; }
html.pop .pg-thi .slip::before, html.pop .pg-thi .slip::after { top: auto; bottom: 66px; right: auto; left: -9px; box-shadow: inset -3px 0 4px -3px rgba(70, 58, 30, .14); }
html.pop .pg-thi .slip::after { left: auto; right: -9px; box-shadow: inset 3px 0 4px -3px rgba(70, 58, 30, .14); }
html.pop .pg-thi .slip:hover { transform: translateY(-4px); box-shadow: var(--pc-sh), 0 24px 40px -28px rgba(20, 136, 79, .55); }
html.pop .pg-thi .slip .pc-ic { display: block; width: 72px; height: 72px; margin: 22px 0 0 22px; transition: transform .35s var(--ease-out); }
html.pop .pg-thi .slip:hover .pc-ic { transform: rotate(-8deg) scale(1.08); }
html.pop .pg-thi .slip .pc-ic svg { width: 100%; height: 100%; display: block; }
html.pop .pg-thi .slip-main { padding: 12px 24px 6px; }
html.pop .pg-thi .slip-name b { font: 700 32px/1.2 var(--pc-head); letter-spacing: -.02em; }
html.pop .pg-thi .slip-stub { width: auto; flex-direction: row; justify-content: space-between; gap: 8px; margin: auto 24px 0; padding: 14px 0 18px; border-left: 0; border-top: 2px dashed var(--line); }
html.pop .pg-thi .slip-stub::after { content: '›'; display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border-radius: 50%; background: var(--acc-btn); color: #fff;
  font-size: 24px; line-height: 1; padding-bottom: 3px; box-shadow: var(--sh-btn); }
html.pop .pg-thi .slip-stub b { font-size: 22px; }
html.pop .shell.pc :is(.list.rows, .ex-list) { border-radius: var(--pc-r); box-shadow: var(--pc-sh); }
html.pop .shell.pc .empty-note { padding: 22px; border-radius: var(--pc-r); }

/* Nếp: the call as the big card, the course beside it */
html.pop .pg-nep .nc { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 24px 48px; max-width: 980px; padding-top: 8px; }
html.pop .pg-nep .nc-ring { width: 340px; height: 340px; }
html.pop .pg-nep .nc-ring::before, html.pop .pg-nep .nc-ring i { inset: 28px; }
html.pop .pg-nep .nc-nep { width: 320px; height: 320px; }
html.pop .pg-nep .nc-name { font-size: 40px; }
html.pop .pg-nep .nc-m { min-height: 128px; }
html.pop .pg-nep .nc-ring.sm { width: 150px; height: 150px; }
html.pop .pg-nep .nc-ring.sm::before, html.pop .pg-nep .nc-ring.sm i { inset: 12px; }
html.pop .pg-nep .nc-ring.sm .nc-nep { width: 144px; height: 144px; }
html.pop .pg-nep .nc-head-tx h2 { font-size: 32px; }
html.pop .pg-nep .nc-act { max-width: 440px; }
html.pop .pg-nep .pg-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 0 28px; }
html.pop .pg-nep .pg-side :is(.course) { border-radius: var(--pc-r); box-shadow: var(--pc-sh); }
html.pop .shell.pc .filters .chip { min-height: 46px; padding: 0 20px; border-radius: 999px; font-size: 15.5px; }

/* Ôn tập: the hero and the two games on one row, big */
html.pop .pg-on .rv { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
html.pop .pg-on .rv-hero { min-height: 0; padding: 30px 32px; border-radius: 32px; box-shadow: var(--pc-sh); }
html.pop .pg-on :is(.rv-hero-body b, .rv-t) { font: 700 40px/1.1 var(--pc-head); letter-spacing: -.03em; }
html.pop .pg-on .rv-n { font: 700 76px/1 var(--pc-head); letter-spacing: -.03em; }
html.pop .pg-on .rv-n small { font: 600 20px var(--font); margin-left: 8px; letter-spacing: 0; }
html.pop .pg-on .rv-games { gap: 20px; }
html.pop .pg-on .rv-game { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; text-align: left; padding: 24px 22px; border-radius: var(--pc-r); box-shadow: var(--pc-sh); transition: transform .2s var(--ease-out); }
html.pop .pg-on .rv-game:hover { transform: translateY(-4px) rotate(-.6deg); }
html.pop .pg-on .rv-game svg { width: 140px; height: 68px; margin-bottom: auto; transition: transform .35s var(--ease-out); }
html.pop .pg-on .rv-game:hover svg { transform: scale(1.08) translateY(-3px); }
html.pop .pg-on .rv-game b { font: 700 24px/1.2 var(--pc-head); }
html.pop .pg-on .rv > :is(.sec, .list, .rv-words, .rv-acts, .rv-how) { grid-column: 1 / -1; }
html.pop .pg-on .rv-b { margin-top: 8px; }   /* level with the hero (its margin-top) */

/* Tôi: the name as the title, the panels in two columns, this week and the cards on the right */
html.pop .pg-toi .pg-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 0 28px; }
html.pop .pg-toi .pg-side { display: none; }
html.pop .pg-toi .pg-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
html.pop .pg-toi .pg-main > * { grid-column: 1 / -1; margin: 0; }
html.pop .pg-toi .pg-main > .me-panel { grid-column: auto; }
/* Nếp of yours takes the whole row */
html.pop .pg-toi .pg-main > .me-panel.pet { grid-column: 1 / -1; }
html.pop .pg-toi .me-hero { margin: 4px 4px 8px; }
html.pop .pg-toi .me-hero b { display: block; font: 700 clamp(44px, 3.6vw, 58px)/1.04 var(--pc-head); letter-spacing: -.035em; }
html.pop .pg-toi .me-hero small { display: block; margin-top: 8px; font-size: 18px; color: var(--ink2); }
html.pop .pg-toi :is(.me-stat, .me-panel, .pet) { border-radius: var(--pc-r); box-shadow: var(--pc-sh); }
html.pop .pg-toi .me-stat b { font: 700 40px/1.1 var(--pc-head); }

/* ---------- the screens off the sections (a lesson, the cards, a game, the shop): wider, on the season ---------- */
html.pop #app > .home { max-width: 880px; padding-top: 36px; }
html.pop #app > .home.dash { max-width: 1180px; }
/* a word, a card to flip: big, with room round it */
html.pop .fc-wrap { max-width: 680px; padding-top: 56px; }
html.pop .fc-card { min-height: 420px; }
html.pop .fcard { min-height: 420px; padding: 48px 40px 36px; border-radius: 36px; box-shadow: var(--pc-sh), 0 30px 60px -40px rgba(70, 58, 30, .4); }
html.pop .fcard .kw, html.pop .lw-q .kw { font-size: 76px; }
html.pop .fcard .kw.sm { font-size: 44px; }
html.pop .fc-actions .btn { min-height: 56px; border-radius: 999px; font-size: 17px; }
/* a lesson step: the point in big type */
html.pop .lp-step { padding: 28px 32px; border-radius: var(--pc-r); border: 0; box-shadow: var(--pc-sh); }
html.pop .lp-step h3 { font-size: 34px; line-height: 1.2; letter-spacing: -.02em; }
/* the stone game: wider river */
html.pop .st { max-width: 860px; }
html.pop .st-scene { height: 320px; border-radius: 0 0 32px 32px; }
html.pop .st-play { padding: 24px 0 40px; }

/* ---------- the shop: Nếp big on a stage at the left, the shelf as a neat grid of cards at the right ---------- */
html.pop .shop { background: linear-gradient(180deg, color-mix(in srgb, var(--sky-a) 50%, var(--bg)) 0, var(--bg) 520px), var(--paper-grain), var(--bg);
  background-repeat: no-repeat, repeat, no-repeat; }
html.pop .sh-in { max-width: 1320px; padding: 0 48px 56px; }
html.pop .sh-top { gap: 16px; padding: 22px 0 20px; background: none; }
html.pop .sh-top h2 { font: 700 clamp(40px, 3.4vw, 52px)/1.05 var(--pc-head); letter-spacing: -.035em; color: var(--ink); }
html.pop .sh-x { width: 48px; height: 48px; border: 0; background: var(--card); box-shadow: var(--pc-sh); transition: transform .18s var(--ease-out); }
html.pop .sh-x:hover { transform: rotate(90deg); }
html.pop .sh-have { gap: 8px; min-height: 48px; padding: 0 20px 0 14px; border: 0; background: var(--card); box-shadow: var(--pc-sh); font-size: 20px; }
html.pop .sh-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 36px; }
/* the stage: no card, Nếp stands on the page as big as the column and the screen let him */
html.pop .sh-stage { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: min(680px, calc(100vh - 132px)); padding: 44px 0 24px; }
html.pop .sh-nep { width: min(560px, 100%, calc((100vh - 310px) * 1.12)); }
html.pop .sh-act { min-height: 112px; flex-direction: column; flex-wrap: nowrap; gap: 14px; margin-top: 6px; }
html.pop .sh-act > b { font: 700 32px/1.15 var(--pc-head); letter-spacing: -.02em; }
html.pop .sh-act:has(> .btn ~ .btn) { flex-direction: row; flex-wrap: wrap; }
html.pop .sh-act .btn { min-height: 52px; padding: 0 28px; border-radius: 999px; font-size: 16.5px; }
html.pop .sh-act .btn.ghost { background: var(--fill); border: 0; color: var(--ink); }
html.pop .sh-act .btn.ghost:hover { background: color-mix(in srgb, var(--fill) 70%, var(--line)); }
html.pop .sh-stage.hinted .sh-act { margin-top: 36px; }
/* the shelf: the places as pills, the cards in a grid */
html.pop .sh-shelf { min-width: 0; }
html.pop .sh-tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin-bottom: 22px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 62%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line); }
html.pop .sh-tab { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; color: var(--ink2); font-size: 16px; font-weight: 700;
  transition: background-color .18s, color .18s; }
html.pop .sh-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--card) 70%, transparent); }
html.pop .sh-tab.on { background: var(--card); color: var(--ink); box-shadow: var(--pc-sh); }
html.pop .sh-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
html.pop .sh-it { gap: 4px; padding: 10px 10px 16px; border: 0; border-radius: var(--pc-r); background: var(--card); box-shadow: var(--pc-sh); cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s; }
html.pop .sh-it:hover { transform: translateY(-4px); }
html.pop .sh-it:active { transform: translateY(-1px); }
html.pop .sh-th { width: 100%; height: 128px; margin-bottom: 10px; border-radius: 20px; overflow: hidden; background: color-mix(in srgb, var(--season-a) 14%, var(--card2)); }
html.pop .sh-th > * { transform-origin: 50% 100%; transition: transform .35s var(--ease-out); }
html.pop .sh-th img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
html.pop .sh-th svg { width: 70%; height: 70%; }
html.pop .sh-it:hover .sh-th > * { transform: scale(1.07) rotate(-3deg); }
html.pop .sh-it b { font-size: 16px; font-weight: 700; }
html.pop .sh-it small { gap: 4px; margin-top: 6px; min-height: 30px; padding: 0 12px 0 8px; border-radius: 999px; white-space: nowrap; background: var(--honey-soft); font-size: 15px; font-weight: 800; }
html.pop .sh-it small svg { width: 18px; height: 18px; }
html.pop .sh-it.dear small { background: var(--fill); }
html.pop .sh-it.on { box-shadow: var(--pc-sh), inset 0 0 0 3px var(--acc); }
html.pop .sh-it.on small { padding: 0 12px; background: var(--acc-soft); color: var(--acc-ink); }
html.pop .sh-it.on::after { content: ''; position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; z-index: 1; border-radius: 50%;
  background: var(--acc-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
html.pop .sh-it:not(.on):not(.lock) small:not(:has(svg)) { padding: 0 12px; background: var(--fill); color: var(--ink2); }
html.pop .sh-it.try { box-shadow: var(--pc-sh), inset 0 0 0 3px var(--honey); transform: translateY(-4px); }
html.pop .sh-it.lock { background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: inset 0 0 0 1.5px var(--line); }
html.pop .sh-it.lock small { padding: 0 12px; background: none; box-shadow: inset 0 0 0 1.5px var(--line); }
html.pop[data-theme="dark"] .sh-th { background: color-mix(in srgb, var(--season-a) 6%, var(--card2)); }
html.pop[data-theme="dark"] .sh-it small { color: var(--honey-ink); }
html.pop[data-theme="dark"] .sh-it.on small { color: var(--acc-ink); }
html.pop[data-theme="dark"] .sh-it:is(.lock, .dear) small, html.pop[data-theme="dark"] .sh-it:not(.on):not(.lock) small:not(:has(svg)) { color: var(--ink2); }
html.pop .sh-it.tier1:not(.on):not(.try) { box-shadow: var(--pc-sh), inset 0 0 0 2px #8DBBEA; }
html.pop .sh-it.tier2:not(.on):not(.try) { box-shadow: var(--pc-sh), inset 0 0 0 2px #B79AE6; }
html.pop .sh-it.tier3:not(.on):not(.try) { box-shadow: var(--pc-sh), inset 0 0 0 2px #E9C25A; }
html.pop .sh-tier { top: 16px; left: 16px; padding: 2px 9px; font-size: 13px; }
html.pop .sh-sch { margin-top: 32px; }
html.pop .sh-sch-h h3 { font: 700 26px/1.15 var(--pc-head); letter-spacing: -.02em; }
html.pop .sh-find { gap: 10px; }
html.pop :is(.sh-q, .sh-reg) { min-height: 48px; border: 0; border-radius: 999px; background: var(--card); box-shadow: var(--pc-sh); }
html.pop .sh-q { padding: 0 20px; }
html.pop .sh-reg { flex-basis: 220px; padding: 0 16px; }
html.pop .sh-kinds { margin-top: 14px; }
html.pop .sh-kinds button { border: 0; background: var(--card); box-shadow: var(--pc-sh); }
html.pop .sh-kinds button.on { background: var(--acc-btn); color: #fff; }
html.pop .sh-sgrid { margin-top: 18px; }

/* a small computer: a slimmer sidebar and rail; a short screen: a smaller Nếp */
@media (max-width: 1199px) {
  html.pop { --pc-side: 236px; }
  html.pop .shell.pc > .pg { padding: 32px 28px 80px; }
  html.pop :is(.pg-hoc, .pg-toi) .pg-grid { grid-template-columns: minmax(0, 1fr) 296px; gap: 0 22px; }
  html.pop .pg-nep .pg-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  html.pop .pg-hoc .mt-scene { zoom: 1.3; }
  html.pop .pc-card { padding: 18px 18px 20px; }
  html.pop .sh-in { padding: 0 28px 48px; }
  html.pop .sh-body { gap: 24px; }
  html.pop .sh-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  html.pop .sh-th { height: 108px; }
  html.pop .sh-tab { padding: 0 16px; }
}
@media (max-height: 820px) {
  html.pop .pc-nep, html.pop .pc-nep .nd { width: 136px; height: 122px; }
  html.pop .pc-me::before { top: 104px; }
  html.pop .pc-side { gap: 12px; padding-top: 20px; }
  html.pop .pc-side .nt { min-height: 44px; }
}

/* the plan after the survey: on a wide screen the button sits under the list, it does not float over the last lines */
html.pop .ready #svGo { position: static; margin-bottom: 8px; }
}
