/* ==========================================================================
   Thông Xanh Spa · Vòng quay Noel 2026
   Token lấy từ Figma (frame 32:2, 53:311, 41:2…). Thiết kế gốc: mobile 440px.
   ========================================================================== */

:root {
  --teal-900: #003c40;
  --teal-800: #003f40;
  --ink: #123f3d;
  --ink-2: #143f3d;
  --cream: #faf5e9;
  --ivory: #fffcf5;
  --sand: #eee4cf;
  --sand-2: #f0e5cd;
  --line: #dac7a1;
  --line-2: #cdb68c;
  --ruby: #84283b;
  --ruby-2: #8b2b40;
  --gold: #98733b;
  --muted: #797467;
  --error: #a22d43;
  --ok-bg: #e5ebd7;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #0f3433;
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.app {
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  overflow-x: hidden;
}

.screen[hidden] { display: none !important; }

/* ---------- 3D slice buttons (ảnh caps trái/phải + giữa kéo giãn) ---------- */
.cta {
  --cap: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  background-image: url(../assets/img/cta-left.png), url(../assets/img/cta-right.png), url(../assets/img/cta-center.png);
  background-repeat: no-repeat;
  background-position: left center, right center, center;
  background-size: var(--cap) 100%, var(--cap) 100%, calc(100% - 2 * var(--cap) + 2px) 100%;
  color: #fff4dd;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  transition: transform .12s ease, filter .12s ease, opacity .2s ease;
}
.cta:active:not(:disabled) { transform: translateY(1px); filter: brightness(.94); }
.cta:disabled { opacity: .45; cursor: not-allowed; }
.cta.is-loading { opacity: .7; pointer-events: none; }

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 23px;
  background: var(--cream);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1.45;
}
.btn-outline:active { background: #f3ead6; }

.price-pill {
  --cap: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 72px;
  padding: 0 8px;
  background-image: url(../assets/img/price-left.png), url(../assets/img/price-right.png), url(../assets/img/price-center.png);
  background-repeat: no-repeat;
  background-position: left center, right center, center;
  background-size: var(--cap) 100%, var(--cap) 100%, calc(100% - 2 * var(--cap) + 2px) 100%;
  color: #fff4dc;
  font-weight: 600;
  font-size: 10.5px;
  line-height: 1.25;
  white-space: nowrap;
}

/* ==========================================================================
   HOME — hero 440×960 là artwork chồng lớp, scale theo bề rộng bằng cqw.
   1 đơn vị thiết kế = var(--u).
   ========================================================================== */
.stage {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 440 / 960;
  overflow: hidden;
  --u: calc(100cqw / 440);
}
.stage .abs { position: absolute; }
.hero-art { inset: 0; width: 100%; height: 100%; object-fit: cover; }

.menu-btn {
  left: calc(386 * var(--u)); top: calc(34 * var(--u));
  width: calc(36 * var(--u)); height: calc(28 * var(--u));
}
.menu-btn i {
  position: absolute; left: calc(9 * var(--u));
  width: calc(18 * var(--u)); height: calc(1.5 * var(--u));
  border-radius: 1px; background: #d3bc92;
}
.menu-btn i:nth-child(1) { top: calc(9 * var(--u)); }
.menu-btn i:nth-child(2) { top: calc(14 * var(--u)); }
.menu-btn i:nth-child(3) { top: calc(19 * var(--u)); }

.hero-accent {
  left: calc(31 * var(--u)); top: calc(42 * var(--u)); width: calc(24 * var(--u));
  color: #d3bc92; font-size: calc(22 * var(--u)); line-height: 1.25; text-align: center;
}

.hero-logo { left: calc(146 * var(--u)); top: calc(24 * var(--u)); width: calc(148 * var(--u)); }
.hero-logo img { width: calc(92 * var(--u)); height: calc(76.615 * var(--u)); margin: 0 auto; }
.hero-logo p {
  margin-top: calc(4.4 * var(--u));
  font-family: var(--serif); font-weight: 600; color: #cbb594;
  font-size: calc(22 * var(--u)); line-height: 1.1; text-align: center; white-space: nowrap;
}

.slice3 {
  display: flex; align-items: center; justify-content: center;
  background-repeat: no-repeat;
  background-position: left center, right center, center;
}
.campaign-label {
  left: calc(134 * var(--u)); top: calc(164 * var(--u));
  width: calc(172 * var(--u)); height: calc(28 * var(--u));
  background-image: url(../assets/img/campaign-left.png), url(../assets/img/campaign-right.png), url(../assets/img/campaign-center.png);
  background-size: calc(14 * var(--u)) 100%, calc(14 * var(--u)) 100%, calc(146 * var(--u)) 100%;
  color: #063f3f; font-weight: 600; font-size: calc(10.5 * var(--u)); line-height: 1.25;
}
.hero-title {
  left: calc(20 * var(--u)); top: calc(211 * var(--u)); width: calc(400 * var(--u));
  color: #fff4dc; font-weight: 600; font-size: calc(26 * var(--u)); line-height: 1.25; text-align: center;
}
.hero-intro {
  left: calc(24 * var(--u)); top: calc(296 * var(--u)); width: calc(392 * var(--u));
  color: #e4dac7; font-size: calc(10.5 * var(--u)); line-height: 1.25; text-align: center;
}
.gold-plaque {
  left: calc(100 * var(--u)); top: calc(332 * var(--u));
  width: calc(240 * var(--u)); height: calc(40 * var(--u));
  background-image: url(../assets/img/gold-left.png), url(../assets/img/gold-right.png), url(../assets/img/gold-center.png);
  background-size: calc(20 * var(--u)) 100%, calc(20 * var(--u)) 100%, calc(202 * var(--u)) 100%;
  color: #103d3c; font-weight: 700; font-size: calc(14 * var(--u)); line-height: 1.25;
}

/* ---------- Wheel ---------- */
.wheel {
  left: calc(34 * var(--u)); top: calc(410 * var(--u));
  width: calc(372 * var(--u)); height: calc(400 * var(--u));
}
.wheel-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Đĩa xoay: cùng ảnh wheel.png, cắt tròn theo tâm trục (186,182), bán kính 161 */
.wheel-disc {
  position: absolute;
  left: calc(25 * var(--u)); top: calc(21 * var(--u));
  width: calc(322 * var(--u)); height: calc(322 * var(--u));
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(0deg);
  will-change: transform;
}
.wheel-disc > img {
  position: absolute; max-width: none;
  left: calc(-25 * var(--u)); top: calc(-21 * var(--u));
  width: calc(372 * var(--u)); height: calc(400 * var(--u));
}
.wheel-prize {
  position: absolute;
  width: calc(88 * var(--u)); height: calc(82 * var(--u));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(3 * var(--u));
  text-align: center;
}
.wheel-prize .name {
  color: #063e3d; font-weight: 700; font-size: calc(10.8 * var(--u)); line-height: 1.25;
}
.wheel-prize .pill {
  width: calc(66 * var(--u)); height: calc(18 * var(--u));
  background-image: url(../assets/img/price-left.png), url(../assets/img/price-right.png), url(../assets/img/price-center.png);
  background-size: calc(9 * var(--u)) 100%, calc(9 * var(--u)) 100%, calc(50 * var(--u)) 100%;
  color: #fff4dc; font-weight: 600; font-size: calc(9.8 * var(--u)); line-height: 1.25;
}
.wheel-prize img { width: calc(57 * var(--u)); height: calc(32 * var(--u)); object-fit: cover; }

.lamps { position: absolute; inset: 0; pointer-events: none; }
.lamp { position: absolute; width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.lamp img { position: absolute; max-width: none; }
.lamp .glow {
  left: calc(-8 * var(--u)); top: calc(-8 * var(--u));
  width: calc(30 * var(--u)); height: calc(30 * var(--u));
  transition: opacity .12s linear;
}
.lamp .body { inset: 0; width: 100%; height: 100%; }
.lamp .body-off { opacity: 0; }
.lamp.off .glow, .lamp.off .body-on { opacity: 0; }
.lamp.off .body-off { opacity: 1; }

.wheel-bow {
  left: calc(130.2 * var(--u)); top: calc(320 * var(--u));
  width: calc(111.6 * var(--u)); height: calc(80 * var(--u));
}
.wheel-hub {
  left: calc(157.5 * var(--u)); top: calc(153.5 * var(--u));
  width: calc(57 * var(--u)); height: calc(57 * var(--u));
}
.wheel-hub-logo {
  left: calc(166.5 * var(--u)); top: calc(161 * var(--u)); width: calc(39 * var(--u));
}
.wheel-hub-logo img { width: calc(39 * var(--u)); height: calc(32.478 * var(--u)); }
.wheel-hub-logo p {
  margin-top: calc(.5 * var(--u));
  font-family: var(--serif); font-weight: 600; color: #cbb594;
  font-size: calc(5.2 * var(--u)); line-height: 1.1; text-align: center; white-space: nowrap;
}
.wheel-pointer {
  left: calc(205 * var(--u)); top: calc(392 * var(--u));
  width: calc(30 * var(--u)); height: calc(48 * var(--u));
  transform-origin: 50% 20%;
}
.wheel-pointer.tick { animation: tick .12s ease-out; }
@keyframes tick { 40% { transform: rotate(-9deg); } }

.hero-cta {
  left: calc(48 * var(--u)); top: calc(840 * var(--u));
  width: calc(344 * var(--u)); height: calc(54 * var(--u));
  --cap: calc(27 * var(--u));
  padding: 0;
  font-size: calc(14 * var(--u));
}
.hero-cta.is-large { font-size: calc(16 * var(--u)); }
.hero-plate {
  left: calc(88 * var(--u)); top: calc(902 * var(--u));
  width: calc(264 * var(--u)); height: calc(30 * var(--u));
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 51, 54, .95);
  border: calc(.7 * var(--u)) solid rgba(204, 173, 112, .5);
  border-radius: calc(15 * var(--u));
  color: #fff2d6; font-size: calc(11 * var(--u)); line-height: 1.25; text-align: center; white-space: pre;
}
.hero-plate.is-small { font-size: calc(10 * var(--u)); }

/* ---------- Home: phần dưới hero (layout flow) ---------- */
.home-body { padding: 24px 24px 72px; }

.bonus-card {
  background: var(--sand-2);
  border: 1px solid #d9c195;
  border-radius: 16px;
  padding: 18px 18px 23px;
}
.bonus-card .row { display: flex; gap: 12px; }
.bonus-card .row img { width: 36px; height: 36px; object-fit: contain; flex: none; margin-top: 2px; }
.bonus-card h3 { font-size: 14px; line-height: 1.45; color: var(--ink); }
.bonus-card .intro { margin-top: 11px; font-size: 10px; line-height: 1.45; color: #756f63; }
.btn-teal {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 44px; margin-top: 33px;
  border-radius: 22px; background: var(--teal-800);
  color: #fff3dc; font-weight: 600; font-size: 11px; line-height: 1.45;
}
.btn-teal:disabled { opacity: .65; cursor: default; }

.divider { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 31px; }
.divider i { width: 67px; height: 1px; background: #d1b991; }
.divider span { width: 66px; text-align: center; color: #b08e54; font-size: 18px; line-height: 1.25; }
.gifts-title { margin-top: 12px; font-size: 19px; line-height: 1.25; text-align: center; color: var(--ink); }
.gifts-sub { margin-top: 16px; font-size: 10.5px; line-height: 1.25; text-align: center; color: #7a786b; }

.gift-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 12px; row-gap: 14px;
  margin-top: 27px;
}
.gift-card {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 82px; padding: 11px 12px;
  background-image: url(../assets/img/card-left.png), url(../assets/img/card-center.png);
  background-repeat: no-repeat;
  background-position: left center, 41px center;
  background-size: 41px 100%, calc(100% - 82px + 1px) 100%;
}
.gift-card::after {
  content: ''; position: absolute; right: 0; top: 0; width: 41px; height: 100%;
  background: url(../assets/img/card-left.png) no-repeat center / 100% 100%;
  transform: scaleX(-1);
}
.gift-card > * { position: relative; z-index: 1; }
.gift-card img { width: 54px; height: 46px; object-fit: cover; flex: none; }
.gift-card .copy { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.gift-card .name { font-weight: 600; font-size: 10.8px; line-height: 1.25; color: var(--ink); }
/* Máy < 400px (thiết kế gốc 440px): thu ảnh + khoảng cách để giá không đè viền card */
@media (max-width: 399px) {
  .gift-grid { column-gap: 10px; }
  .gift-card { gap: 6px; padding: 11px 9px; }
  .gift-card img { width: 44px; height: 40px; }
}

.rules-link {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 14px auto 0; height: 44px;
  color: var(--ruby); font-weight: 600; font-size: 13px; line-height: 1.45; text-decoration: none;
}
.rules-link .ic { width: 27px; height: 27px; object-fit: contain; }
.rules-link .lbl { width: 190px; text-align: center; }
.rules-link .chev { width: 16px; height: 16px; }

.foot { margin-top: 19px; font-size: 9px; line-height: 1.25; text-align: center; color: #898375; }

/* ==========================================================================
   Màn con (07 → 15): header teal + nội dung căn giữa
   ========================================================================== */
.sub-header {
  height: 88px; background: var(--teal-900);
  display: flex; align-items: flex-start; gap: 15px;
  padding: 17px 24px 0;
}
.sub-header img { width: 43px; height: 35.809px; }
.sub-header .t { margin-top: 7px; color: #f6e9cd; font-weight: 600; font-size: 18px; line-height: 1.45; }
.sub-header .s { margin-top: 3px; color: #d9bc87; font-weight: 600; font-size: 8.5px; line-height: 1.45; }

.sub-body { padding: 0 24px 72px; display: flex; flex-direction: column; }
.back-link {
  align-self: flex-start; margin-top: 16px; padding: 5px 0;
  color: var(--ruby); font-weight: 600; font-size: 11px; line-height: 1.45; white-space: pre;
}
.back-link.static { cursor: default; }
.sub-icon { width: 66px; height: 66px; object-fit: contain; margin: 22px auto 0; }
.sub-title { margin-top: 21px; font-size: 24px; line-height: 1.45; text-align: center; color: var(--ink); }
.sub-text { margin: 11px auto 0; max-width: 368px; font-size: 11px; line-height: 1.45; text-align: center; color: var(--muted); }

.status-bar {
  display: flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 8px 12px; border-radius: 12px;
  background: var(--sand);
  color: var(--ink-2); font-weight: 600; font-size: 10.5px; line-height: 1.45; text-align: center;
}
.status-bar.ok { background: var(--ok-bg); }
.status-bar.wait { background: #f0e8d8; }
.status-bar.warn { background: #f6e1e1; color: var(--error); }

.prize-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 136px; padding: 12px 16px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  width: 100%;
}
.prize-card.selected { border: 2px solid var(--ruby-2); padding: 11px 15px; }
.prize-card > img { width: 78px; height: 64px; object-fit: cover; flex: none; }
.prize-card .copy { display: flex; flex-direction: column; gap: 7px; font-weight: 600; line-height: 1.45; }
.prize-card .lbl { color: #8c2b40; font-size: 9.5px; }
.prize-card .nm { color: var(--ink); font-size: 14px; }
.prize-card .val { color: var(--gold); font-size: 18px; }
.prize-card .radio { position: absolute; right: 23px; top: 12px; width: 16px; height: 16px; }
.prize-card .radio img { position: absolute; left: 0; top: 0; width: 16px; height: 16px; }
.prize-card .radio .dot { left: 4px; top: 4px; width: 8px; height: 8px; opacity: 0; }
.prize-card.selected .radio { right: 22px; top: 11px; }
.prize-card.selected .radio .dot { opacity: 1; }
.prize-card .radio .on { display: none; }
.prize-card.selected .radio .on { display: block; }
.prize-card.selected .radio .off { display: none; }

.soft-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: var(--sand);
}
.soft-box img { flex: none; object-fit: contain; }
.soft-box .copy { display: flex; flex-direction: column; gap: 7px; line-height: 1.45; }
.soft-box h3 { font-size: 11.5px; color: var(--ink); }
.soft-box p { font-size: 10.5px; color: #787265; }

.note { font-weight: 600; font-size: 10.5px; line-height: 1.45; text-align: center; color: var(--ruby-2); }
.sub-foot { margin-top: 30px; font-size: 9px; line-height: 1.45; text-align: center; color: #8a8171; }
.mt-12 { margin-top: 12px; } .mt-19 { margin-top: 19px; } .mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; } .mt-24 { margin-top: 24px; } .mt-26 { margin-top: 26px; }
.mt-28 { margin-top: 28px; } .mt-30 { margin-top: 30px; } .mt-34 { margin-top: 34px; }
.mt-36 { margin-top: 36px; } .mt-42 { margin-top: 42px; } .mt-45 { margin-top: 45px; }
.mt-50 { margin-top: 50px; } .mt-52 { margin-top: 52px; } .mt-53 { margin-top: 53px; }

/* ---------- 07 · Nhập SĐT ---------- */
.phone-form {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 18px; border-radius: 16px;
  background: var(--ivory); border: 1px solid #e0d1b4;
}
.phone-form label { font-weight: 600; font-size: 11.5px; line-height: 1.45; color: var(--ink-2); }
.phone-input {
  width: 100%; height: 54px; padding: 0 16px;
  border: 1px solid #c4b48e; border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink);
  outline: none;
}
.phone-input::placeholder { color: #9a988d; }
.phone-input:focus { border-color: var(--teal-800); box-shadow: 0 0 0 3px rgba(0, 63, 64, .12); }
.phone-form.has-error .phone-input { border-color: var(--error); }
.phone-help { font-size: 9.5px; line-height: 1.45; color: #83796b; }
.phone-form.has-error .phone-help { color: var(--error); }

.purpose { min-height: 118px; }
.purpose img { width: 36px; height: 36px; }

.check-row { display: flex; align-items: center; gap: 9px; margin: 8px 0 16px; min-height: 20px; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  flex: none; width: 16px; height: 16px; border-radius: 4px;
  border: 1.3px solid var(--teal-800); background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff5db; font-weight: 600; font-size: 11px; line-height: 1;
}
.check-box::after { content: '✓'; opacity: 0; }
.check-row input:checked + .check-box { background: #003d40; border-color: #003d40; }
.check-row input:checked + .check-box::after { opacity: 1; }
.check-row input:focus-visible + .check-box { box-shadow: 0 0 0 3px rgba(0, 63, 64, .2); }
.check-row span:last-child { font-size: 10px; color: #2e4740; }

/* ---------- 10 · Kết quả ---------- */
.share-box { min-height: 144px; border-radius: 16px; }
.share-box img { width: 44px; height: 44px; }
.share-box .copy { gap: 9px; }
.share-box h3 { font-size: 13px; color: var(--ink-2); }
.share-box p { color: #7c7567; }
.text-link {
  align-self: center; margin-top: 50px; padding: 4px 8px;
  color: var(--ink-2); font-weight: 600; font-size: 10.5px; line-height: 1.45; white-space: pre;
}

/* ---------- 11/12 · Chia sẻ ---------- */
.bonus-big {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 144px; border-radius: 16px; background: #eee3cc; text-align: center; line-height: 1.45;
}
.bonus-big strong { font-weight: 600; font-size: 30px; color: var(--ruby); }
.bonus-big span { font-size: 10px; color: #756f63; }
.plus-one { margin-top: 29px; font-weight: 600; font-size: 70px; line-height: 1.45; text-align: center; color: var(--ruby); }
.plus-one-lbl { margin-top: -4px; font-weight: 600; font-size: 16px; line-height: 1.45; text-align: center; color: var(--ink); }
.desc { font-size: 11px; line-height: 1.45; text-align: center; color: #787366; }
.desc.sm { font-size: 10.5px; color: #7a7468; }

/* ---------- 14 · Chọn quà ---------- */
.verify-box { min-height: 96px; background: #eee5d2; }
.verify-box img { width: 32px; height: 32px; }
.verify-box p { color: #777163; }

/* ---------- 15 · Đã chọn ---------- */
.prize-card.final { min-height: 150px; }
.receipt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 134px; padding: 16px; border-radius: 14px;
  background: var(--ivory); border: 1px solid #d7c49f; text-align: center;
}
.receipt strong { font-weight: 600; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.receipt span { font-size: 10.5px; line-height: 1.45; color: #797265; }

/* ==========================================================================
   05 · Thể lệ
   ========================================================================== */
.rules-hero { position: relative; height: 280px; background: var(--teal-900); padding: 17px 24px 0; color: #fff4dc; }
.rules-hero .brand { display: flex; gap: 15px; align-items: flex-start; }
.rules-hero .brand img { width: 43px; height: 35.809px; }
.rules-hero .brand p { margin-top: 10px; color: #f4e6c8; font-weight: 600; font-size: 20px; line-height: 1.25; }
.rules-hero .rule { position: absolute; left: 24px; right: 24px; top: 79px; height: 1px; background: #416362; }
.rules-back {
  position: absolute; left: 20px; top: 88px; height: 40px;
  display: flex; align-items: center; gap: 7px;
  color: #e8d6b4; font-weight: 600; font-size: 11px; line-height: 1.45;
}
.rules-back img { width: 16px; height: 16px; transform: rotate(180deg); }
.rules-hero .kicker { position: absolute; left: 24px; top: 137px; color: #d9bc87; font-weight: 600; font-size: 9px; line-height: 1.45; }
.rules-hero h1 { position: absolute; left: 24px; top: 163px; width: 300px; font-size: 28px; line-height: 1.25; }
.rules-hero .hero-ic { position: absolute; right: 34px; top: 159px; width: 76px; height: 76px; object-fit: contain; }
.rules-hero .tag { position: absolute; left: 24px; right: 24px; top: 247px; color: #e8d9bf; font-size: 10.5px; line-height: 1.45; }

.rules-body { padding: 24px 24px 72px; }
.guarantee {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 8px 18px;
  background: #f0e5cb; border: 1px solid #d9c297; border-radius: 14px;
}
.guarantee img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.guarantee strong { display: block; font-weight: 600; font-size: 11px; line-height: 1.45; color: #143e3c; }
.guarantee span { display: block; margin-top: 4px; font-size: 9.5px; line-height: 1.45; color: #787468; }

.sec-h { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.sec-h img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.sec-h h2 { font-size: 18px; line-height: 1.25; color: var(--ink); }
.sec-h + * { margin-top: 20px; }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; align-items: center; gap: 12px; min-height: 50px; }
.step b {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; border-radius: 14px; background: var(--teal-800);
  color: #f5e5c4; font-weight: 600; font-size: 11px;
}
.step .copy { display: flex; flex-direction: column; gap: 3px; line-height: 1.45; }
.step strong { font-weight: 600; font-size: 11.5px; color: var(--ink-2); }
.step span { font-size: 10px; color: #7b7668; }

.prize-table {
  border: 1px solid #e0d1b4; border-radius: 14px; overflow: hidden; background: #fffcf4;
}
.prize-table .tr { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 14px; font-size: 10.5px; line-height: 1.45; color: #173f3d; }
.prize-table .tr:nth-child(odd):not(.th) { background: #f8f1e2; }
.prize-table .tr span:last-child { font-weight: 600; text-align: right; }
.prize-table .th { height: 32px; background: #ede3cd; color: #7c735f; font-weight: 600; font-size: 8.5px; }

.rule-card { padding: 17px 18px 20px; border-radius: 14px; background: #f0e6d0; }
.rule-card.ivory { background: #fffcf5; padding-top: 16px; }
.rule-card h3 { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.rule-card.ivory h3 { font-size: 11.5px; }
.rule-card ul, .rule-card .p { margin: 17px 0 0; padding: 0; list-style: none; font-size: 10.5px; line-height: 1.45; color: #736f64; }
.rule-card.ivory .p { margin-top: 15px; }
.rule-card .p p + p { margin-top: 15px; }

.terms { border: 1px solid #e2d5bd; border-radius: 14px; background: #fffcf5; padding: 0; }
.terms .tr { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 4px 14px; line-height: 1.45; }
.terms .tr span:first-child { font-size: 10.5px; color: #19423f; }
.terms .tr span:last-child { font-weight: 600; font-size: 9.5px; color: var(--ruby-2); text-align: right; }

.notice { display: flex; gap: 11px; margin-top: 16px; }
.notice img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.notice p { font-size: 10px; line-height: 1.45; color: #837b6d; }

.support { display: flex; gap: 13px; margin-top: 35px; min-height: 112px; padding: 17px 16px; border-radius: 14px; background: var(--sand); }
.support img { width: 36px; height: 36px; object-fit: contain; flex: none; margin-top: 5px; }
.support strong { display: block; font-weight: 600; font-size: 13px; line-height: 1.45; color: #173f3d; }
.support span { display: block; margin-top: 6px; font-size: 10.5px; line-height: 1.45; color: #756f61; }
.rules-cta { margin-top: 30px; font-size: 16px; }

/* ---------- Toast lỗi ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  width: min(392px, calc(100% - 32px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 16px; border-radius: 12px;
  background: #2b1d1f; color: #fff4dd;
  font-size: 12px; line-height: 1.45; text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mock-badge {
  position: fixed; right: 8px; top: 8px; z-index: 60;
  padding: 3px 8px; border-radius: 6px; background: #ffe08a; color: #4a3a00;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
}

/* ---------- Thông báo trúng quà xuyên suốt các màn ---------- */
.feed-toast {
  position: fixed; z-index: 40;
  left: max(12px, calc(50% - 208px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  max-width: min(330px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 14px;
  background: rgba(255, 252, 245, .97);
  border: 1px solid #d9c195;
  box-shadow: 0 8px 24px rgba(0, 40, 40, .18);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.feed-toast.show { opacity: 1; transform: none; }
.feed-toast img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--sand-2); }
.feed-toast strong { display: block; font-weight: 600; font-size: 11.5px; line-height: 1.35; color: var(--ink); }
.feed-toast span { display: block; margin-top: 2px; font-weight: 600; font-size: 10px; line-height: 1.35; color: var(--ruby); }

/* ---------- Nút bật/tắt nhạc Giáng sinh ---------- */
.music-btn {
  position: fixed; z-index: 45;
  top: min(31px, 7vw);
  right: max(52px, calc(50% - 220px + 58px));
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 51, 54, .88);
  border: 1px solid rgba(211, 188, 146, .68);
  color: #f4e6c8;
  box-shadow: 0 4px 12px rgba(0, 28, 30, .28);
  transition: transform .15s ease, border-color .2s ease, opacity .2s ease;
}
.music-btn[hidden] { display: none !important; }
.music-btn:active { transform: scale(.93); }
.music-btn .slash { display: none; stroke: #e6b8b8; }
.music-btn.is-off { opacity: .78; }
.music-btn.is-off .slash { display: block; }
.music-btn.is-playing {
  border-color: #e6ca94;
  box-shadow: 0 0 0 3px rgba(217, 188, 135, .18), 0 4px 12px rgba(0, 28, 30, .28);
}
.music-btn.is-playing svg { animation: music-sway 2.6s ease-in-out infinite; }
@keyframes music-sway {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

.privacy-note { margin-top: 8px; font-size: 9.5px; line-height: 1.45; text-align: center; color: #8a8171; }

@media (prefers-reduced-motion: reduce) {
  .lamp .glow { transition: none; }
  .feed-toast { transition: none; }
  .music-btn.is-playing svg { animation: none; }
}
