/* VQMM True Juice (#182) - chép từ bản vẽ HPBD_campaign_test/lucky-wheel/v2/styles.css; bỏ khối confetti (landing tự bắn confetti). Màu = brand token (#034d2c primary, #fab917 mango...) vì iframe tĩnh không dùng Tailwind của app. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,600;1,6..72,500;1,6..72,600&display=swap");

:root { --green:#034d2c; --mango:#fab917; --white:#fff; --pearl:#fbfaf5; --border:#efece0; --lime:#b6df83; --mint:#eef7f2; --text:#2d3436; --shadow:0 4px 14px rgba(0,0,0,.04); }
* { box-sizing:border-box; }
html, body { background:transparent; }
body { min-width:320px; min-height:100svh; margin:0; color:var(--text); font-family:Inter, Arial, sans-serif; }
button { font:inherit; cursor:pointer; }
.page-shell { display:grid; min-height:100svh; width:min(100%, 520px); margin:auto; padding:24px; place-items:center; text-align:center; background:transparent; }
.eyebrow { margin:0 0 13px; color:var(--green); font-size:.71rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
h1, h2 { margin:0; color:var(--green); font-family:Newsreader, Georgia, serif; font-weight:600; letter-spacing:-.035em; }
h1 { font-size:clamp(2.55rem, 10vw, 3.65rem); line-height:.98; }
h1 em { font-weight:500; }
.intro { margin:19px 0 0; font-size:.96rem; }
.wheel-stage { position:relative; width:min(100%, 400px); aspect-ratio:1; margin:auto; }
.wheel-frame { position:relative; width:100%; height:100%; border:10px solid var(--white); border-radius:50%; background:var(--pearl); box-shadow:0 12px 32px rgba(3,77,44,.14), var(--shadow); overflow:hidden; }
.wheel-rotor { position:absolute; inset:0; border-radius:50%; transition:transform 4.35s cubic-bezier(.12,.82,.12,1); }
.wheel { position:absolute; inset:0; border-radius:50%; }
.wheel svg { width:100%; height:100%; overflow:visible; }
.wheel .segment { stroke:var(--white); stroke-width:.8; vector-effect:non-scaling-stroke; transition:fill .25s ease, filter .25s ease, opacity .25s ease; }
.wheel .segment--even { fill:var(--pearl); }.wheel .segment--odd { fill:var(--mint); }.wheel .segment--accent { fill: #f3f0e6; }
.wheel.wheel--has-winner .segment:not(.is-winner) { opacity:.32; }.wheel .segment.is-winner { fill:var(--mango); filter:drop-shadow(0 0 8px rgba(250,185,23,.55)); opacity:1; }
.wheel-item { position:absolute; z-index:1; top:50%; left:50%; width:92px; transform:translate(-50%, -50%) rotate(var(--angle)) translateY(-128px) rotate(var(--counter-angle)); pointer-events:none; }
.wheel-item { transition:opacity .25s ease, filter .25s ease; }.wheel-item.is-dim { opacity:.3; filter:grayscale(.25); }
.wheel-item__inner { display:grid; justify-items:center; gap:2px; }
.image-placeholder { display:grid; width:38px; height:32px; place-items:center; border:1px dashed rgba(3,77,44,.45); border-radius:8px; background:rgba(255,255,255,.46); color:var(--green); font-size:.52rem; font-weight:600; letter-spacing:.08em; }
.image-placeholder.has-image { width:63px; height:63px; border:0; background:transparent; }
.wheel-prize-image { display:block; width:63px; height:63px; object-fit:contain; }
.wheel-item__label { max-width:90px; color:var(--green); font-size:.64rem; font-weight:600; line-height:1.13; text-align:center; }
.pointer { position:absolute; z-index:4; top:-14px; left:50%; width:30px; height:30px; border:3px solid var(--white); border-radius:50% 50% 50% 0; background:var(--mango); box-shadow:0 4px 8px rgba(250,185,23,.32); transform:translateX(-50%) rotate(-45deg); }
.spin-button { position:absolute; z-index:5; top:50%; left:50%; display:grid; width:108px; height:108px; place-content:center; transform:translate(-50%, -50%); border:5px solid var(--white); border-radius:50%; color:var(--green); background:var(--lime); box-shadow:0 8px 18px rgba(3,77,44,.18); transition:transform .25s ease, box-shadow .25s ease; text-transform:none; }
.spin-button:hover { transform:translate(-50%, -50%) translateY(-3px); box-shadow:0 10px 20px rgba(3,77,44,.22); }.spin-button:active { transform:translate(-50%, -50%) scale(.96); }.spin-button strong { font-size:1.1rem; line-height:1.05; }
.status { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.modal[hidden] { display:none; }.modal { position:fixed; z-index:10; inset:0; display:grid; place-items:center; padding:22px; }.modal__backdrop { position:absolute; inset:0; border:0; background:rgba(3,77,44,.3); backdrop-filter:blur(4px); }.modal__card { position:relative; z-index:1; width:min(100%, 365px); max-height:calc(100svh - 44px); overflow-y:auto; padding:38px 26px 26px; border:1px solid var(--border); border-radius:24px; background:var(--pearl); box-shadow:0 20px 48px rgba(3,77,44,.2); text-align:center; animation:pop .35s ease-out; }.modal__close { position:absolute; top:12px; right:15px; width:34px; height:34px; border:0; border-radius:50%; color:var(--green); background:transparent; font-size:1.75rem; line-height:1; }.modal__image-placeholder { display:grid; width:min(100%, 276px); height:228px; margin:0 auto 31px; place-items:center; border:1px dashed rgba(3,77,44,.5); border-radius:16px; background:var(--mint); color:var(--green); font-size:.75rem; font-weight:600; letter-spacing:.12em; }.modal h2 { margin:0; color:var(--green); font-family:Newsreader, Georgia, serif; font-size:2.2rem; font-weight:600; line-height:1.05; }.modal__card > p:not(.eyebrow) { margin:14px 0 4px; font-size:.9rem; }.modal__reward { display:block; color:var(--green); font-family:Newsreader, Georgia, serif; font-size:1.75rem; font-weight:600; }.modal__cta { width:100%; margin-top:24px; padding:14px 20px; border:0; border-radius:100px; color:var(--green); background:var(--mango); box-shadow:0 6px 16px rgba(250,185,23,.28); font-weight:600; transition:transform .25s ease, box-shadow .25s ease; }.modal__cta:hover { transform:translateY(-3px); box-shadow:0 10px 20px rgba(250,185,23,.32); }.modal__cta:active { transform:scale(.98); }.is-spinning .spin-button { cursor:wait; opacity:.7; }
@keyframes pop { from { transform:scale(.92); opacity:0; } to { transform:scale(1); opacity:1; } }
@media (max-width:390px) { .page-shell { padding-right:18px; padding-left:18px; }.wheel-item { transform:translate(-50%, -50%) rotate(var(--angle)) translateY(-112px) rotate(var(--counter-angle)); }.wheel-item__label { font-size:.58rem; }.image-placeholder { width:33px; height:29px; }.image-placeholder.has-image, .wheel-prize-image { width:54px; height:54px; } }

.modal__image-placeholder.has-image { overflow:visible; border:0; background:transparent; }
.image-placeholder:not(.has-image), .modal__image-placeholder:not(.has-image) { display:none; }
.modal-prize-image { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
.modal__voucher { display:grid; gap:3px; margin:12px 0 0; color:var(--text); font-size:.84rem; line-height:1.45; }
.modal__usage-note { margin:8px 0 0; color:var(--muted); font-size:.82rem; line-height:1.45; }

/* Cân dòng nhãn quà, tránh một từ đứng riêng trên VQMM. */
.wheel-item__label { white-space:pre-line; text-wrap:balance; word-break:keep-all; overflow-wrap:normal; }

/* Popup kết quả: tên quà là điểm nhấn; khoảng cách text/nút thống nhất 16px. */
.modal__image-placeholder { margin-bottom:20px; }
.modal h2 { max-width:290px; margin:0 auto; font-size:1.35rem; font-weight:500; line-height:1.2; text-wrap:balance; }
.modal__card > p:not(.eyebrow) { margin:12px 0 0; }
.modal__reward { max-width:300px; margin:8px auto 0; font-size:2.05rem; font-weight:600; line-height:1.05; text-wrap:balance; }
.modal__voucher { margin:16px 0 0; }
.modal__cta { margin-top:16px; }

/* Mã voucher là thông tin lưu lại; CTA vẫn là hành động chính. */
.modal__voucher { display:grid; width:100%; gap:5px; padding:12px 14px; border:1px dashed rgba(3,77,44,.38); border-radius:14px; background:rgba(238,247,242,.72); text-align:left; }
.modal__voucher-label { color:var(--muted); font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.modal__voucher-row { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.modal__voucher-code { display:block; color:var(--green); font-size:1.1rem; font-weight:800; letter-spacing:.06em; line-height:1.2; word-break:break-all; }
.modal__copy-btn { flex-shrink:0; padding:5px 10px; border:1px solid rgba(3,77,44,.28); border-radius:999px; background:var(--white); color:var(--green); font-size:.75rem; font-weight:600; line-height:1.2; transition:background .2s ease, border-color .2s ease, color .2s ease; }
.modal__copy-btn:hover { border-color:var(--green); background:var(--mint); }
.modal__copy-btn.is-copied { border-color:var(--green); background:var(--green); color:var(--white); }
.modal__voucher-expiry { color:var(--text); font-size:.8rem; }
.spin-button:disabled { cursor:default; opacity:.72; }

/* Desktop (#182): vòng quay co giãn theo bề rộng khung (container query units). Mọi kích thước dưới đây là
   tỷ lệ của bản 400px cũ (92px=23cqw, 128px=32cqw...), nên mobile giữ nguyên dáng, desktop lớn tới 560px.
   Trình duyệt không hiểu cqw → bỏ qua cả khối, dùng kích thước px cố định ở trên. */
@supports (width: 1cqw) {
  .page-shell { width:min(100%, 608px); }
  .wheel-stage { container-type:inline-size; width:min(100%, 560px); }
  .wheel-frame { border-width:2.5cqw; }
  .wheel-item { width:23cqw; transform:translate(-50%, -50%) rotate(var(--angle)) translateY(-32cqw) rotate(var(--counter-angle)); }
  .wheel-item__label { max-width:22.5cqw; font-size:max(8.5px, 2.5cqw); }
  .image-placeholder.has-image, .wheel-prize-image { width:15.75cqw; height:15.75cqw; }
  .pointer { top:-3.5cqw; width:7.5cqw; height:7.5cqw; border-width:.75cqw; }
  .spin-button { width:27cqw; height:27cqw; border-width:1.25cqw; }
  .spin-button strong { font-size:max(13px, 4.4cqw); }
}
