:root {
  /* Vở học trò: giấy ngà, mực tím, bút đỏ chấm bài */
  --paper: oklch(97.2% 0.018 88);
  --paper-deep: oklch(94.5% 0.026 85);
  --card: oklch(99% 0.008 88);
  --ink: oklch(29% 0.09 295);
  --ink-soft: oklch(44% 0.05 295);
  --line: oklch(87% 0.03 280);
  --grid: oklch(89% 0.035 262 / 0.5);
  --red: oklch(50% 0.19 28);
  --red-deep: oklch(43% 0.17 28);
  --red-tint: oklch(94% 0.03 28);
  --ok: oklch(42% 0.11 150);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px oklch(29% 0.09 295 / 0.1), 0 10px 24px -14px oklch(29% 0.09 295 / 0.35);
  --t: 180ms ease;
  --cell: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  overflow-wrap: break-word;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }

.wrap { width: min(1180px, 100% - var(--s6)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); z-index: 50; }
.skip:focus { left: var(--s2); }
.noscript { padding: var(--s5); text-align: center; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: oklch(97.2% 0.018 88 / 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar__row { display: flex; align-items: center; gap: var(--s5); min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: var(--s2); font: 700 1.125rem/1.2 var(--font-display); text-decoration: none; margin-right: auto; min-height: 44px; }
.logo__mark {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  color: var(--red); border: 2px solid var(--red); border-radius: 48% 52% 50% 50% / 52% 46% 54% 48%;
  font-size: 0.875rem; transform: rotate(-8deg);
}
.topnav { display: flex; gap: var(--s5); font-size: 0.9375rem; font-weight: 500; }
.topnav a { text-decoration: none; padding: var(--s2) 0; border-bottom: 2px solid transparent; transition: border-color var(--t); }
.topnav a:hover { border-color: var(--red); }
.cart-btn {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius-s); font-weight: 600; transition: background var(--t);
}
.cart-btn:hover { background: oklch(36% 0.11 295); }
.cart-btn__count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 var(--s1); border-radius: 11px; background: var(--paper); color: var(--ink); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s2) var(--s5); border-radius: var(--radius-s); border: 1.5px solid transparent;
  font-weight: 600; text-decoration: none; text-align: center; transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn--primary { background: var(--red); color: oklch(99% 0.01 88); }
.btn--primary:hover { background: var(--red-deep); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: oklch(36% 0.11 295); }
.btn--ghost { background: transparent; border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }

/* Hero: trang vở ô ly có lề đỏ */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s7); align-items: center; padding-block: var(--s8) var(--s9); }
.hero__text { position: relative; padding-left: var(--s6); border-left: 2px solid var(--red); }
.eyebrow { font-size: 0.875rem; font-weight: 600; color: var(--red-deep); margin-bottom: var(--s4); }
h1 { font-size: clamp(2.5rem, 1.7rem + 3.8vw, 4.5rem); line-height: 1.18; }
h1 em { display: block; font-style: italic; font-weight: 600; }
.lead { max-width: 46ch; margin-block: var(--s5) var(--s6); color: var(--ink-soft); font-size: 1.0625rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); }
.assure { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: 0.9375rem; color: var(--ink-soft); }
.assure li { display: flex; align-items: baseline; gap: 0.4em; }
.assure li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.assure a { color: var(--red-deep); font-weight: 600; }
.more { display: flex; justify-content: center; margin-top: var(--s6); }
.hero__photos { position: relative; aspect-ratio: 1 / 0.92; }
.photo { position: absolute; object-fit: cover; border: 6px solid var(--card); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.photo--a { width: 74%; aspect-ratio: 497 / 378; left: 18%; top: 0; transform: rotate(2deg); }
.photo--b { width: 40%; aspect-ratio: 295 / 380; left: 0; bottom: 0; transform: rotate(-4deg); }
.photo--c { width: 40%; aspect-ratio: 294 / 380; right: 2%; bottom: 2%; transform: rotate(3deg); }

/* Sections */
.section { padding-block: var(--s8); }
.section--tint { background: var(--paper-deep); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.section__lead { max-width: 62ch; margin-top: var(--s3); color: var(--ink-soft); }
.result-count { color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

/* Filters */
.filters { display: grid; gap: var(--s4); margin-bottom: var(--s6); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  min-height: 44px; padding: 0 var(--s4); background: transparent; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; transition: border-color var(--t), background var(--t), color var(--t);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters__row { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.field-inline { display: inline-flex; align-items: center; gap: var(--s2); font-size: 0.9375rem; color: var(--ink-soft); }
select, input, textarea {
  min-height: 44px; padding: var(--s2) var(--s3); background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-s); max-width: 100%;
}
select:hover, input:hover, textarea:hover { border-color: var(--ink-soft); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: var(--s6) var(--s5); }
.card { height: 100%; }
.card__btn { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; background: none; border: 0; text-align: left; }
.card__photo { overflow: hidden; border-radius: var(--radius); background: var(--paper-deep); aspect-ratio: 4 / 5; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.card__btn:hover img { transform: scale(1.03); }
.card__name { margin-top: var(--s3); font: 700 1.1875rem/1.25 var(--font-display); }
.card__items { margin-top: var(--s1); color: var(--ink-soft); font-size: 0.875rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.card .price { margin-top: auto; padding-top: var(--s2); }
.price small { font-weight: 500; font-size: 0.8125rem; color: var(--ink-soft); }

.empty { padding-block: var(--s7); text-align: center; display: grid; gap: var(--s4); justify-items: center; }

/* Origins */
.origins { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s6); }
.origins > div { padding-top: var(--s3); border-top: 2px solid var(--ink); }
.origins dt { font: 700 1.25rem/1.3 var(--font-display); }
.origins dd { margin-top: var(--s2); color: var(--ink-soft); font-size: 0.9375rem; }

/* Scarves */
.scarves { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--s4) var(--s3); margin-top: var(--s6); }
.scarf img { width: 100%; aspect-ratio: 114 / 135; object-fit: cover; border-radius: var(--radius-s); }
.scarf span { display: block; margin-top: var(--s1); text-align: center; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s6); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: var(--s1); align-content: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s2);
  border: 2px solid var(--red); color: var(--red); font: 700 1.125rem var(--font-display);
  border-radius: 48% 52% 50% 50% / 52% 46% 54% 48%; transform: rotate(-6deg);
}
.steps span { color: var(--ink-soft); font-size: 0.9375rem; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding-block: var(--s6); font-size: 0.9375rem; }
.footer__row { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.footer a { color: inherit; }

/* Dialogs */
dialog.sheet { padding: 0; border: 0; color: var(--ink); background: var(--paper); max-width: 100%; max-height: 100dvh; }
dialog.sheet::backdrop { background: oklch(25% 0.06 295 / 0.55); }
.sheet__inner { padding: var(--s5); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: var(--card); border: 1.5px solid var(--line); border-radius: 50%; font-size: 1.5rem; line-height: 1; transition: border-color var(--t); }
.icon-btn:hover { border-color: var(--ink); }

.sheet--product { width: min(960px, 100% - var(--s6)); margin: auto; border-radius: var(--radius); }
.sheet--product .sheet__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.sheet--product .icon-btn { position: absolute; top: var(--s3); right: var(--s3); z-index: 2; }
.gallery__main { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--paper-deep); border-radius: var(--radius); }
.gallery__thumbs { display: flex; gap: var(--s2); margin-top: var(--s2); }
.thumb { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-s); overflow: hidden; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--red); }
.pd__collection { font-size: 0.875rem; font-weight: 600; color: var(--red-deep); }
.pd h2 { padding-right: var(--s7); }
.pd__items { margin-block: var(--s4); display: grid; gap: var(--s1); }
.pd__items li { padding-left: var(--s4); position: relative; }
.pd__items li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1.5px; background: var(--red); }
.opt { display: grid; gap: var(--s1); margin-bottom: var(--s3); font-size: 0.9375rem; font-weight: 500; }
.opt select { width: 100%; font-weight: 400; }
.check { display: flex; gap: var(--s2); align-items: center; min-height: 44px; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--red); flex: none; }
.pd__buy { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); flex-wrap: wrap; }
.pd__total { font-size: 1.5rem; margin-right: auto; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.qty button { width: 44px; height: 44px; background: none; border: 0; font-size: 1.125rem; }
.qty button:hover { color: var(--red); }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.pd__add { width: 100%; margin-top: var(--s3); }
.pd__msg { margin-top: var(--s2); color: var(--ok); font-size: 0.9375rem; min-height: 1.6em; }
.pd__assure { list-style: none; margin: var(--s2) 0 var(--s3); padding: var(--s3); display: grid; gap: var(--s1); background: var(--red-tint); border-radius: var(--radius); font-size: 0.9375rem; }
.pd__assure li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Thanh kéo kỷ niệm: cây bút đỏ chạy trên thước kẻ */
.ruler { --pen: 28px; max-width: 640px; }
.ruler__memory { margin: 0 0 var(--s2); font: 400 1.3125rem/1.35 var(--font-hand); color: var(--red); }
.ruler__body {
  position: relative; height: 72px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: oklch(95% 0.05 92 / 0.75);
}
.ruler__scale {
  position: absolute; inset: 0 calc(var(--pen) / 2); display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: var(--s1); font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums;
  background:
    linear-gradient(var(--ink-soft), var(--ink-soft)) right top / 1px 18px no-repeat,
    linear-gradient(90deg, var(--ink-soft) 1px, transparent 1px) left top / calc(100% / 6) 18px repeat-x,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) left top / calc(100% / 24) 10px repeat-x;
}
.ruler__scale span { width: 0; display: flex; justify-content: center; }
.ruler input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; cursor: grab;
  -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.ruler input:active { cursor: grabbing; }
.ruler input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: var(--radius-s); }
.ruler input::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.ruler input::-moz-range-track { height: 100%; background: transparent; }
.ruler input::-webkit-slider-thumb {
  -webkit-appearance: none; width: var(--pen); height: 60px; margin-top: -8px; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 60'%3E%3Cpath d='M9 2h10a2 2 0 0 1 2 2v36l-7 18-7-18V4a2 2 0 0 1 2-2z' fill='%23b82a1c'/%3E%3Cpath d='M7 40h14l-7 18z' fill='%23f3dcc0'/%3E%3Cpath d='M11.6 52h4.8L14 58z' fill='%233b2169'/%3E%3Cpath d='M12 5v32' stroke='%23e8897c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px oklch(29% 0.09 295 / 0.35));
}
.ruler input::-moz-range-thumb {
  width: var(--pen); height: 60px; border: 0; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 60'%3E%3Cpath d='M9 2h10a2 2 0 0 1 2 2v36l-7 18-7-18V4a2 2 0 0 1 2-2z' fill='%23b82a1c'/%3E%3Cpath d='M7 40h14l-7 18z' fill='%23f3dcc0'/%3E%3Cpath d='M11.6 52h4.8L14 58z' fill='%233b2169'/%3E%3Cpath d='M12 5v32' stroke='%23e8897c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-8px);
}
.game__stage .ruler { margin-top: var(--s4); }
.offer__memory { margin-bottom: var(--s1); font: 400 1.0625rem/1.35 var(--font-hand); color: var(--red); }

/* Ảnh set quà ngoài đời */
.realgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s6); }
.realgrid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--paper-deep); }

/* Mini game: trang sổ điểm danh, lời phê bút đỏ */
.game {
  padding-block: var(--s8);
  border-bottom: 1px solid var(--line);
  background-color: var(--paper-deep);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.game__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s7); align-items: start; }
.game__hook { position: sticky; top: 84px; }
.game__hook h2 em { display: block; font-style: italic; font-weight: 600; color: var(--red-deep); }
.game__lead { margin-block: var(--s4); font-size: 1.0625rem; color: var(--ink-soft); }
.game__stage { min-height: 460px; padding: var(--s5); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow); }
.game__stage h3 { font-size: 1.5rem; margin-bottom: var(--s3); outline: none; }
.game__challenge { margin-bottom: var(--s4); padding: var(--s3); background: var(--red-tint); color: var(--red-deep); border-radius: var(--radius-s); font-size: 0.9375rem; font-weight: 500; }
.game__field { display: grid; gap: var(--s1); margin-bottom: var(--s4); font-size: 0.9375rem; font-weight: 500; }
.game__field input { width: 100%; font-weight: 400; }
.game__prompt { margin-bottom: var(--s2); font-weight: 600; }
.roll { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--s1); }
.roll button {
  min-height: 44px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s);
  font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color var(--t), background var(--t), color var(--t);
}
.roll button:hover:enabled { border-color: var(--red); color: var(--red-deep); }
.roll button:disabled { cursor: default; color: var(--ink-soft); }
.roll button.is-pen { background: var(--red-tint); border-color: var(--red); color: var(--red-deep); }
.roll button.is-called {
  background: var(--card); color: var(--red); font-family: var(--font-display); font-size: 1.125rem; font-weight: 700;
  border: 2px solid var(--red); border-radius: 48% 52% 50% 50% / 52% 46% 54% 48%; transform: rotate(-6deg);
}
.game__tip { margin-top: var(--s3); font-size: 0.875rem; color: var(--ink-soft); }
.remark { font: 400 1.3125rem/1.35 var(--font-hand); color: var(--red); }
.game__status { min-height: 3.6em; margin-top: var(--s4); }
.game__next { margin-top: var(--s4); }
.game__progress { margin-bottom: var(--s3); font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.quiz { display: grid; gap: var(--s2); }
.quiz button {
  min-height: 52px; padding: var(--s2) var(--s4); text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-s);
  transition: border-color var(--t), background var(--t);
}
.quiz button:hover:enabled { border-color: var(--ink); }
.quiz button:disabled { cursor: default; color: var(--ink-soft); }
.quiz button[aria-pressed="true"] { background: var(--red-tint); border-color: var(--red); color: var(--ink); font-weight: 600; }
.game__after { margin-top: var(--s4); display: grid; gap: var(--s2); justify-items: start; }
.game__source { font-size: 0.875rem; color: var(--ink-soft); }

.ticket { position: relative; padding: var(--s5); background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-s); }
.ticket__title { font: 700 1.5rem/1.2 var(--font-display); padding-right: 76px; outline: none; }
.ticket__rows { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); margin-top: var(--s3); font-size: 0.9375rem; }
.ticket__rows dt { color: var(--ink-soft); }
.ticket__rows dd { font-weight: 600; }
.ticket__title-award { font-family: var(--font-display); font-size: 1.1875rem; color: var(--red-deep); }
.ticket__score {
  position: absolute; top: var(--s4); right: var(--s4); display: grid; place-items: center; width: 68px; height: 68px;
  border: 3px solid var(--red); border-radius: 48% 52% 50% 50% / 52% 46% 54% 48%; transform: rotate(-8deg);
  color: var(--red); font: 400 2.25rem/1 var(--font-hand);
}
.ticket .remark { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--line); }
.ticket__home { margin-top: var(--s4); padding: var(--s3); background: var(--red-tint); border-radius: var(--radius-s); font-size: 0.9375rem; }
.ticket__home strong { display: block; color: var(--red-deep); }
.offer { display: grid; grid-template-columns: 112px 1fr; gap: var(--s4); margin-top: var(--s5); }
.offer img { width: 112px; height: 140px; object-fit: cover; border-radius: var(--radius-s); background: var(--paper-deep); }
.offer__label { font-size: 0.875rem; font-weight: 600; color: var(--red-deep); }
.offer__name { font: 700 1.25rem/1.25 var(--font-display); }
.offer__why { margin-block: var(--s1); font-size: 0.9375rem; color: var(--ink-soft); }
.offer__buttons { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.offer__buttons .btn { flex: 1 1 200px; }
.card-note { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px dashed var(--line); }
.card-note p:first-child { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.card-note blockquote { margin: var(--s2) 0 var(--s3); font-family: var(--font-display); font-style: italic; font-size: 1.0625rem; line-height: 1.5; }
.game__share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--line); }
.game__msg { flex-basis: 100%; min-height: 1.6em; color: var(--ok); font-size: 0.9375rem; }

/* Giỏ quà trượt từ cạnh phải */
.sheet--cart { width: min(480px, 100%); height: 100dvh; margin: 0 0 0 auto; }
.lines { display: grid; gap: var(--s4); }
.line { display: grid; grid-template-columns: 72px 1fr; gap: var(--s3); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--radius-s); }
.line__name { font-weight: 600; }
.line__opts { font-size: 0.875rem; color: var(--ink-soft); }
.line__foot { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s2); flex-wrap: wrap; }
.line__foot .price { margin-left: auto; }
.link-btn { min-height: 44px; padding: 0 var(--s2); background: none; border: 0; color: var(--ink-soft); font-size: 0.875rem; text-decoration: underline; }
.link-btn:hover { color: var(--red); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-block: var(--s4) var(--s1); font-weight: 600; }
.total .price { font-size: 1.375rem; }
.hint { font-size: 0.875rem; color: var(--ink-soft); }

.form { display: grid; gap: var(--s3); margin-top: var(--s5); }
.form h3 { font-size: 1.25rem; }
.field { display: grid; gap: var(--s1); font-size: 0.9375rem; font-weight: 500; }
.field input, .field textarea { width: 100%; font-weight: 400; }
.field textarea { min-height: 72px; resize: vertical; }
.field .req { color: var(--red); }
.field__err { color: var(--red-deep); font-size: 0.875rem; font-weight: 400; }
.field--bad input { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.channels { display: grid; gap: var(--s2); margin-top: var(--s2); }
.notice { padding: var(--s3); border-radius: var(--radius-s); background: var(--red-tint); color: var(--red-deep); font-size: 0.9375rem; }
.done { display: grid; gap: var(--s3); }
.done h3 { font-size: 1.5rem; }
.done__code { font-weight: 700; font-variant-numeric: tabular-nums; }
.done textarea { width: 100%; min-height: 220px; font-size: 0.875rem; line-height: 1.5; background: var(--card); }
.done__copied { color: var(--ok); font-size: 0.9375rem; font-weight: 500; }
.empty-cart { padding-block: var(--s7); text-align: center; display: grid; gap: var(--s4); justify-items: center; color: var(--ink-soft); }

/* Responsive */
/* Mô tả set, gợi ý chọn quà, mua cho cả lớp, hỏi đáp */
.pd__desc { margin-top: var(--s2); color: var(--ink-soft); }
.for-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4); padding: var(--s3) var(--s4); background: var(--paper-deep); border-radius: var(--radius-s); }
.linkbtn { background: none; border: 0; padding: var(--s1) 0; color: var(--red-deep); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); margin-top: var(--s6); }
.guide h3 { font-size: 1.125rem; margin-bottom: var(--s3); }
.guide__list { display: grid; gap: var(--s2); }
.guide__list button {
  display: grid; gap: 2px; width: 100%; min-height: 48px; padding: var(--s3) var(--s4); text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-s); font: inherit; color: inherit; transition: border-color var(--t);
}
.guide__list button:hover, .guide__list button:focus-visible { border-color: var(--ink); }
.guide__list span { color: var(--ink-soft); font-size: 0.9375rem; }
.bulk__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.bulk__panel { padding: var(--s5); background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); }
.bulk__list { display: grid; gap: var(--s2); }
.bulk__list li { padding-left: var(--s4); position: relative; }
.bulk__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1.5px; background: var(--red); }
.bulk__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.faq { display: grid; gap: var(--s2); margin-top: var(--s5); max-width: 760px; }
.faq__item { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-s); }
.faq__item summary { cursor: pointer; padding: var(--s3) var(--s4); min-height: 48px; font-weight: 600; display: flex; align-items: center; }
.faq__item p { padding: 0 var(--s4) var(--s4); color: var(--ink-soft); }
@media (max-width: 760px) {
  .guide, .bulk__grid { grid-template-columns: 1fr; gap: var(--s5); }
  .bulk__cta .btn { flex: 1 1 100%; }
}

@media (max-width: 900px) {
  .scarves { grid-template-columns: repeat(6, 1fr); }
  .sheet--product .sheet__inner { grid-template-columns: 1fr; gap: var(--s4); }
  .gallery__main { aspect-ratio: 1 / 1; }
  .game__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .game__hook { position: static; }
  .game__stage { min-height: 0; }
  .realgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .hero__grid { grid-template-columns: 1fr; padding-block: var(--s6) var(--s7); gap: var(--s6); }
  .hero__text { padding-left: var(--s4); }
  .origins, .steps { grid-template-columns: 1fr; }
  .section { padding-block: var(--s7); }
  .sheet--product { width: 100%; min-height: 100dvh; border-radius: 0; }
}
@media (max-width: 560px) {
  .assure { flex-direction: column; gap: var(--s1); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s3); }
  .scarves { grid-template-columns: repeat(4, 1fr); }
  .card__name { font-size: 1.0625rem; }
  .field-inline { flex: 1 1 100%; justify-content: space-between; }
  .field-inline select { width: 66%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); padding-block: var(--s1); scrollbar-width: none; }
  .chip { flex: none; }
  .ruler__memory { min-height: 2.7em; }
  .game { padding-block: var(--s7); }
  .game__stage { padding: var(--s4); }
  .roll { grid-template-columns: repeat(6, 1fr); }
  .ticket { padding: var(--s4); }
  .hero__cta .btn { flex: 1 1 100%; }
  .offer { grid-template-columns: 88px 1fr; gap: var(--s3); }
  .offer img { width: 88px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Đếm ngược tới 20/11 */
.countdown { background: var(--ink); color: var(--paper); font-size: 0.9375rem; }
.countdown__row { display: flex; align-items: center; gap: var(--s2) var(--s5); flex-wrap: wrap; padding-block: var(--s2); }
.countdown__clock strong { font-variant-numeric: tabular-nums; color: oklch(88% 0.09 85); }
.countdown__line { flex: 1 1 280px; color: oklch(90% 0.02 88); }
.countdown__cta { min-height: 36px; display: inline-flex; align-items: center; padding: 0 var(--s4); border-radius: var(--radius-s); background: var(--red); color: oklch(99% 0.01 88); font-weight: 600; text-decoration: none; }
.countdown__cta:hover { background: var(--red-deep); }

/* Giỏ quà: lựa chọn nhận hàng và thanh toán */
.pick { display: grid; gap: var(--s2); margin: 0; padding: 0; border: 0; min-width: 0; }
.pick legend { margin-bottom: var(--s2); padding: 0; font: 700 1.125rem/1.3 var(--font-display); }
.pick__opt { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3); background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-s); cursor: pointer; transition: border-color var(--t), background var(--t); }
.pick__opt:hover { border-color: var(--ink-soft); }
.pick__opt input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--red); }
.pick__opt span { display: grid; gap: 2px; }
.pick__opt small { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.45; }
.pick__opt:has(input:checked) { border-color: var(--red); background: var(--red-tint); }
.field select { width: 100%; font-weight: 400; }
.field--bad select { border-color: var(--red); }
.channels__alt { text-align: center; }
.channels__alt .link-btn { min-height: 32px; padding: 0 2px; }

/* Mã QR chuyển khoản */
.qr { display: grid; gap: var(--s3); padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.qr__img { width: min(260px, 100%); aspect-ratio: 1; justify-self: center; background: #fff; border-radius: var(--radius-s); }
.qr__rows { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); font-size: 0.9375rem; }
.qr__rows dt { color: var(--ink-soft); }
.qr__rows dd { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--s2); font-variant-numeric: tabular-nums; }
.qr__rows .link-btn { min-height: 32px; }
.qr__wait { display: flex; align-items: center; gap: var(--s2); font-weight: 500; }
.qr__wait::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--red); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.paid { display: grid; gap: var(--s3); justify-items: center; padding: var(--s5) var(--s4); text-align: center; background: oklch(95% 0.04 150); border-radius: var(--radius); }
.paid__stamp {
  padding: var(--s1) var(--s4); border: 3px solid var(--ok); border-radius: var(--radius-s); color: var(--ok);
  font: 700 1.5rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; transform: rotate(-6deg);
  animation: stamp 420ms cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.8); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
.done__more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.done__more[open] { display: grid; gap: var(--s2); }

/* Góc phụ huynh */
.parents__head h2 em { font-style: italic; color: var(--red-deep); }
.tabs { display: flex; gap: var(--s2); margin-block: var(--s5) var(--s4); overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; min-height: 44px; padding: 0 var(--s4); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; transition: border-color var(--t), background var(--t); }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.parents__stage { min-height: 380px; max-width: 760px; }
.pg__result { display: grid; gap: var(--s3); }
.pg__type { font: 700 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.2 var(--font-display); color: var(--red-deep); }
.pg__rows { display: grid; gap: var(--s3); }
.pg__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s3); }
.pg__row small { display: block; color: var(--ink-soft); font-size: 0.875rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.stepper button { width: 44px; height: 44px; background: none; border: 0; font-size: 1.25rem; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pg__plan { display: grid; gap: var(--s2); margin-top: var(--s2); }
.pg__plan li { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s2); background: var(--paper); border-radius: var(--radius-s); }
.pg__plan img { width: 56px; height: 70px; object-fit: cover; border-radius: var(--radius-s); }
.pg__plan small { display: block; color: var(--ink-soft); font-size: 0.8125rem; }
.pg__sum { display: flex; justify-content: space-between; font-weight: 600; padding-top: var(--s2); border-top: 1px dashed var(--line); }
.flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s3); }
.flip { position: relative; min-height: 150px; padding: 0; border: 0; background: none; perspective: 900px; text-align: left; }
.flip__face { position: absolute; inset: 0; display: grid; align-content: center; gap: var(--s1); padding: var(--s4); border-radius: var(--radius); backface-visibility: hidden; transition: transform 450ms ease; }
.flip__front { background: var(--card); border: 1px solid var(--line); font: 400 1.25rem/1.35 var(--font-hand); color: var(--red); box-shadow: var(--shadow); }
.flip__front small { font: 500 0.8125rem/1.3 var(--font-body); color: var(--ink-soft); }
.flip__back { background: var(--ink); color: var(--paper); font-size: 0.9375rem; transform: rotateY(180deg); }
.flip[aria-pressed="true"] .flip__front { transform: rotateY(-180deg); }
.flip[aria-pressed="true"] .flip__back { transform: rotateY(0); }
.share-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.share-row .btn { flex: 1 1 160px; min-height: 44px; }

/* Đại lý */
.agencies { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s5); }
.agency { display: grid; gap: var(--s1); align-content: start; padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); }
.agency h3 { font-size: 1.25rem; }
.agency p { color: var(--ink-soft); font-size: 0.9375rem; }

/* Cộng tác viên */
.ctv__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.ctv__rates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-block: var(--s5); }
.ctv__rates li { display: grid; gap: 2px; padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ctv__rates strong { font: 700 2rem/1 var(--font-display); color: var(--red); }
.ctv__rates span { font-size: 0.875rem; color: var(--ink-soft); }
.ctv__how { display: grid; gap: var(--s2); padding-left: 1.2em; list-style: decimal; color: var(--ink-soft); }
.ctv__panel { display: grid; gap: var(--s5); padding: var(--s5); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ctv__form { margin-top: 0; }
.ctv__form--lookup { padding-top: var(--s5); border-top: 1px dashed var(--line); }
.ctv__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.ctv__msg { min-height: 1.4em; font-size: 0.9375rem; color: var(--red-deep); }
.ctv__msg.is-ok { color: var(--ok); }
.ctv__result { display: grid; gap: var(--s2); padding: var(--s4); background: oklch(95% 0.04 150); border-radius: var(--radius-s); }
.ctv__code { font: 700 1.75rem/1.1 var(--font-display); letter-spacing: 0.04em; }
.ctv__link { width: 100%; font-size: 0.875rem; }
.ctv__stats { display: grid; gap: var(--s3); }
.ctv__sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.ctv__sum div { padding: var(--s3); background: var(--paper); border-radius: var(--radius-s); }
.ctv__sum dt { font-size: 0.8125rem; color: var(--ink-soft); }
.ctv__sum dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.ctv__table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.ctv__table th, .ctv__table td { padding: var(--s2) var(--s1); border-bottom: 1px solid var(--line); text-align: left; }
.ctv__table td:nth-child(n+3), .ctv__table th:nth-child(n+3) { text-align: right; }

@media (max-width: 900px) {
  .ctv__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}
@media (max-width: 760px) {
  .agencies { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .countdown { font-size: 0.875rem; }
  .countdown__line { display: none; }
  .countdown__row { justify-content: space-between; flex-wrap: nowrap; }
  .ctv__rates, .ctv__row { grid-template-columns: 1fr; }
  .ctv__sum { grid-template-columns: 1fr 1fr; }
  .ctv__panel { padding: var(--s4); }
  .tabs { flex-wrap: wrap; }
  .tab { padding: 0 var(--s3); font-size: 0.9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  .paid__stamp, .qr__wait::before { animation: none; }
  .flip__face { transition: none; }
}
