/* =====================================================================
   KUMO THEME — xanh lá "lệnh xanh" + kem + vàng, chữ serif mềm
   ===================================================================== */
:root {
  --bg: #0b1a0e;
  --bg2: #1f3d24;
  --wine: #2a4d2f;
  --cream: #f3f1df;
  --text: #f0f1df;
  --muted: #b2c6a0;
  --glass: rgba(243, 241, 223, .06);
  --olive: #9fba5f;
  --matcha: #2c6236;
  --matcha-d: #12301a;
  --ink: #15291a;
  --green: #1f8a4c;
  --soft: "Fraunces", "Playfair Display", serif;
}

body {
  background:
    radial-gradient(120% 60% at 50% -10%, #2c6a38 0%, transparent 62%),
    radial-gradient(90% 60% at 50% 110%, #173a20 0%, transparent 70%),
    var(--bg);
}

/* Chữ vàng dùng serif mềm như Kumo */
.gold-text, .brand .b1 { font-family: var(--soft); font-variation-settings: "SOFT" 100, "WONK" 0; }

/* ---------------- Màn 1 ---------------- */
#s1 { padding: 10px 10px 32px; align-items: flex-start; }
.kumo { max-width: 460px; }

/* Khung bo tròn kiểu Kumo */
.frame {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 12px 14px 18px;
  border: 7px solid var(--olive);
  background:
    radial-gradient(70% 45% at 50% 42%, rgba(243, 207, 107, .18), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, #4f9a55 0%, var(--matcha) 45%, var(--matcha-d) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 60px rgba(0, 0, 0, .3);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 5; }
.wordmark { font: 700 21px/1 var(--soft); letter-spacing: -.02em; color: var(--cream); font-variation-settings: "SOFT" 100; }
.wordmark i { font-style: normal; color: var(--gold-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px; color: var(--cream);
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(243, 241, 223, .14); backdrop-filter: blur(6px);
}
.pill b { color: var(--gold-2); font-size: 14px; }
.pill svg { color: var(--gold-2); }

/* Sân khấu: cúp ở giữa + thẻ bay vòng cung */
.hero { position: relative; height: 268px; }
.orbit { position: absolute; inset: 0; }
.ocard {
  position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px;
  display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  border-radius: 20px; background: linear-gradient(160deg, #fbfaec, #e6e8cc);
  box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .55), inset 0 -3px 0 rgba(0, 0, 0, .06), inset 0 2px 0 #fff;
  font-size: 34px; line-height: 1; will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.ocard span { filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.ocard img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.ocard.on { box-shadow: 0 0 0 3px var(--gold-2), 0 14px 28px -8px rgba(243, 207, 107, .55); }

.trophy {
  position: absolute; left: 50%; bottom: 28px; width: 124px; transform: translateX(-50%); z-index: 3;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55));
  animation: trophyFloat 4s ease-in-out infinite;
}
.trophy svg, .trophy img { display: block; width: 100%; height: auto; }
@keyframes trophyFloat { 50% { transform: translateX(-50%) translateY(-6px); } }
.hill { position: absolute; left: 50%; bottom: 0; width: 250px; transform: translateX(-50%); z-index: 4; }
.hill svg { display: block; width: 100%; height: auto; }
/* Khi có ảnh cúp thật (hero/trophy.webp, đã gồm đồi tiền) */
.hero.photo .hill { display: none; }
.hero.photo .trophy { width: 240px; bottom: -4px; animation: none; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .5)) drop-shadow(0 0 30px rgba(243, 207, 107, .18)); }

/* Tên danh hiệu + mô tả: 2 dòng cố định, không làm giật bố cục */
.hero-cap { display: flex; flex-direction: column; align-items: center; gap: 5px; height: 58px; margin-top: 6px; }
.hero-label {
  margin: 0; white-space: nowrap; font: 700 19px/1.3 var(--soft); color: var(--gold-2); padding-top: .1em;
  font-variation-settings: "SOFT" 100; transition: opacity .25s ease;
}
.hero-chip {
  margin: 0; white-space: nowrap; padding: 4px 10px; border-radius: 10px;
  background: rgba(251, 250, 236, .94); color: var(--ink); font-size: 12px; font-weight: 700;
  transition: opacity .25s ease;
}
.hero-label.fade, .hero-chip.fade { opacity: 0; }

.headline {
  margin: 8px 0 4px; min-height: 2.3em;
  font: 800 clamp(28px, 8.2vw, 40px)/1.12 var(--soft); letter-spacing: -.02em; color: var(--cream);
  font-variation-settings: "SOFT" 100, "WONK" 1; padding-top: .12em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
  transition: opacity .35s ease, transform .35s ease;
}
.headline em { font-style: normal; color: var(--gold-2); }
.headline.out { opacity: 0; transform: translateY(8px); }
.sub { margin: 0 auto; max-width: 320px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* Dải chạy: người vừa được vinh danh (nằm trên form) */
.ticker {
  margin: 12px 0 0; overflow: hidden; position: relative;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 10px; width: max-content; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 12.5px; color: var(--cream);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(243, 241, 223, .12);
}
.tk i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: #fbfaec; }
.tk b { color: var(--gold-2); font-weight: 600; }
.tk small { color: var(--muted); font-size: 11px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Form thẻ kem, gọn để ít phải cuộn */
#s1 .entry {
  margin-top: 12px; padding: 16px 16px 16px; text-align: left;
  border: 0; border-radius: 24px; color: var(--ink);
  background: linear-gradient(170deg, #fbfaec, #ecefd6);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8), inset 0 2px 0 #fff;
}
#s1 .entry .form-h { margin: 0 0 10px; font: 700 19px/1.3 var(--soft); color: var(--ink); padding-top: .08em; font-variation-settings: "SOFT" 100; }
#s1 .field { margin-bottom: 10px; }
#s1 .field span { color: #4f6448; margin-bottom: 5px; }
#s1 .field em { color: #85977a; }
#s1 .field input, #s1 .field select {
  height: 46px; color: var(--ink); background-color: #fff; border: 1.5px solid #d6dcbc; border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
}
#s1 .field input::placeholder { color: #9fab90; }
#s1 .field input:focus, #s1 .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 138, 76, .18); outline: none; }
#s1 .field select option { background: #fff; color: var(--ink); }
#s1 .check { margin: 2px 0 12px; }
#s1 .check span { color: #44583e; }
#s1 .entry .btn-gold {
  background: linear-gradient(180deg, #1f5a2c, #0f2f17); color: var(--cream);
  border-radius: 16px; box-shadow: 0 14px 26px -12px rgba(10, 40, 18, .9), inset 0 1px 0 rgba(255, 255, 255, .14);
}
#s1 .entry .btn-gold span { color: var(--cream); }
#s1 .entry .btn-gold::after { background: linear-gradient(100deg, transparent, rgba(243, 207, 107, .35), transparent); }
#s1 .entry .btn-gold .arr {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-2); color: var(--ink); font-size: 15px; margin-left: 4px;
}

/* Nút vàng các màn sau: bo tròn mềm hơn */
.btn-gold, .btn-ghost { border-radius: 18px; }
.cert-wrap { border-radius: 14px; }
.tier, .podium, .wall, .modal-card { border-radius: 22px; }

/* ---------------- PC: 2 cột, vừa một màn hình ---------------- */
@media (min-width: 960px) {
  #s1 { padding: 24px 32px; align-items: center; }
  .kumo {
    max-width: 1200px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: 36px; row-gap: 24px; align-items: center; text-align: left;
  }
  .kumo > .frame {
    grid-column: 1; grid-row: 1; text-align: center;
    display: flex; flex-direction: column; height: min(calc(100svh - 48px), 880px); min-height: 600px;
    padding: 18px 26px 24px; border-width: 9px; border-radius: 38px;
  }
  .kumo > .side { grid-column: 2; grid-row: 1; }
  .kumo > .wall { grid-column: 1 / -1; grid-row: 2; }
  .hero { flex: 1; height: auto; min-height: 300px; }
  .trophy { width: 180px; bottom: 44px; }
  .hill { width: 380px; }
  .hero.photo .trophy { width: 370px; bottom: 0; }
  .ocard { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 28px; font-size: 48px; }
  .hero-cap { height: 66px; }
  .hero-label { font-size: 23px; }
  .headline { font-size: clamp(40px, 3.6vw, 54px); min-height: 0; }
  .sub { font-size: 15.5px; max-width: 460px; }
  .ticker { margin: 0 0 14px; }
  #s1 .entry { margin-top: 0; padding: 28px 28px 24px; }
  #s1 .entry .form-h { font-size: 26px; margin-bottom: 16px; }
  #s1 .field { margin-bottom: 14px; }
  #s1 .field input, #s1 .field select { height: 50px; }
  .stage.wide { max-width: 860px; }
  .tiers { grid-template-columns: repeat(4, 1fr); }
  .cert-wrap { max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .trophy, .ticker-track { animation: none; }
}

/* ---------------- Ô up ảnh lệnh thắng ---------------- */
.field.shot { position: relative; }
.drop {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px; cursor: pointer;
  border: 1.5px dashed #b9c79c; border-radius: 14px; background: rgba(255, 255, 255, .6);
  transition: border-color .2s, background .2s;
}
.drop:hover, .drop:focus-within { border-color: var(--green); background: #fff; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.drop-txt { display: flex; flex-direction: column; min-width: 0; }
.drop-txt b { font-size: 14px; color: var(--green); font-weight: 700; }
.drop-txt small { font-size: 11.5px; color: #7c8b72; line-height: 1.35; }
.drop.has { border-style: solid; border-color: var(--green); background: #fff; }
.shot-x {
  position: absolute; right: 8px; bottom: 11px; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: #eef1e0; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
}
#s1 .field.shot > span { display: block; }

/* Dải chạy giờ là nút bấm */
button.tk { font: inherit; font-size: 12.5px; cursor: pointer; transition: background .2s, border-color .2s; }
button.tk:hover { background: rgba(243, 207, 107, .14); border-color: rgba(243, 207, 107, .45); }
a.counter { text-decoration: none; }
a.counter:hover { border-color: rgba(243, 207, 107, .5); }

/* ---------------- Màn Bảng Vàng ---------------- */
#s5 { align-items: flex-start; padding-top: 16px; }
.hall { max-width: 1160px; }
.hall-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hall-top .back { color: var(--cream); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(243, 241, 223, .14); }
.hall-title {
  margin: 0; font: 800 clamp(40px, 11vw, 64px)/1.15 var(--soft); padding-top: .12em; letter-spacing: -.02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hall-sub { margin: 6px auto 20px; max-width: 460px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.hall-sub a { color: var(--gold-2); font-weight: 600; text-decoration: none; }
.hall-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
.bv {
  overflow: hidden; border-radius: 18px; background: linear-gradient(170deg, #fbfaec, #ecefd6); color: var(--ink);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8); transition: transform .25s, box-shadow .25s;
}
.bv.hl { box-shadow: 0 0 0 3px var(--gold-2), 0 16px 34px -10px rgba(243, 207, 107, .6); transform: translateY(-3px); }
.bv-img { position: relative; aspect-ratio: 4 / 5; background: #dfe5c8; cursor: zoom-in; overflow: hidden; }
.bv-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bv-img.none { cursor: default; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #4f9a55, var(--matcha-d)); }
.bv-img.none > span { font-size: 56px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.bv-rank { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 16px; background: rgba(251, 250, 236, .95); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.bv-img.none .bv-rank { display: none; }
.bv-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.bv-name { font: 700 16px/1.3 var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: .08em; }
.bv-title { font-size: 12px; font-weight: 700; color: #6b7a4d; }
.bv-amt { font: 800 18px/1.3 var(--soft); color: var(--green); padding-top: .06em; }
.bv-body small { font-size: 11px; color: #7c8b72; }
.hall-empty { color: var(--muted); padding: 30px 0; }
.hall-more { margin: 18px auto 0; display: flex; }

/* Xem ảnh lớn */
.shot-modal { display: grid; place-items: center; padding: 16px; }
.shot-modal[hidden] { display: none; }
.shot-view { position: relative; max-width: min(92vw, 720px); text-align: center; }
.shot-view img { display: block; max-width: 100%; max-height: 80svh; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.shot-view p { margin: 12px 0 0; color: var(--cream); font-size: 14px; }
.shot-view .close { position: absolute; right: -6px; top: -6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); font-size: 24px; cursor: pointer; z-index: 2; }

@media (min-width: 720px) { .hall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .hall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
#s1 .field .drop-txt { text-transform: none; letter-spacing: 0; margin: 0; font-weight: 400; font-size: inherit; color: inherit; display: flex; }
.tk i img { width: 18px; height: 18px; object-fit: contain; }
.bv-rank img { width: 22px; height: 22px; object-fit: contain; }
.bv-img.none > span img { width: 46%; height: auto; display: block; margin: auto; }
.bv-img.none > span { width: 100%; text-align: center; }

/* ---------------- #N trên màn vinh danh → Bảng Vàng ---------------- */
.rank-link {
  color: var(--gold-1); font-weight: 800; text-decoration: none; padding: 1px 8px; border-radius: 8px;
  background: rgba(243, 207, 107, .16); border: 1px solid rgba(243, 207, 107, .45); white-space: nowrap;
}
.rank-link::after { content: " ›"; }
.rank-link:hover { background: rgba(243, 207, 107, .3); }

/* ---------------- Lời phát biểu: dải chạy ngang ---------------- */
.wall { max-width: 1200px; }
.wall-list.marquee {
  overflow: hidden; margin: 0 -16px; padding: 4px 0 8px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.wall-track { display: flex; gap: 12px; width: max-content; animation: tick 60s linear infinite; }
.wall-list.marquee:hover .wall-track { animation-play-state: paused; }
.wall-track .speech {
  flex: none; width: min(300px, 78vw); margin: 0; text-align: left; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .2s, border-color .2s;
}
.wall-track .speech:hover { transform: translateY(-2px); border-color: rgba(243, 207, 107, .55); }
.wall-track .speech q { font-size: 15px; }

/* ---------------- Màn chúc mừng rộng hơn trên PC ---------------- */
@media (min-width: 960px) {
  .reveal, .ceremony { max-width: 980px; }
  #s2 .title-big { font-size: clamp(56px, 5.4vw, 84px); }
  #s2 .honoree { font-size: 58px; }
  #s2 .praise { max-width: 720px; font-size: 23px; }
  #s2 .squad-stage, #s4 .squad-stage { max-width: 900px; }
  .squad.photo .fig { height: 360px; }
  .squad.photo .member.center .fig { height: 400px; }
  .squad.photo .member, .squad.photo .member.center { margin: 0 -4px; }
  .squad-stage.small .squad.photo .fig { height: 230px; }
  .squad-stage.small .squad.photo .member.center .fig { height: 255px; }
  #s2 .cert-wrap { max-width: 560px; }
}

/* ---------------- Quyền riêng tư Bảng Vàng ---------------- */
#s1 .pub-check { margin-top: -4px; }
#s1 .pub-check b { color: var(--green); }
.pub-extra { margin: -2px 0 10px; }
.self-note { margin: 0 auto 14px; color: var(--muted); font-size: 12px; font-style: italic; }
.bv-acts { margin-top: 6px; display: flex; justify-content: flex-end; }
.bv-acts button {
  font: inherit; font-size: 11px; color: #7c8b72; background: none; border: 0; padding: 4px 2px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.bv-acts .bv-del { color: #b3302f; }
.bv-acts button:disabled { cursor: default; text-decoration: none; }

/* Vương miện 3D trên màn vinh danh */
.winner-crown img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 20px rgba(243, 207, 107, .55)) drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
.winner-crown { width: 128px; }

/* Ảnh bằng chứng bắt buộc khi đăng + nhãn Self-Reported */
.drop.need { border-color: #d8343b; background: #fff5f4; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.sr-badge, .bv-sr {
  display: inline-block; padding: 2px 7px; border-radius: 6px; font: 700 10.5px/1.4 "Be Vietnam Pro", sans-serif;
  letter-spacing: .04em; font-style: normal; vertical-align: 1px;
  color: #6b4a00; background: #ffe9a8; border: 1px solid #e2b13c;
}
.bv-sr { position: absolute; right: 8px; top: 8px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }

/* =====================================================================
   CHỐT LỜI 2.0 — Sân chơi: trang chủ, Quiz, Bingo, Khao cà phê
   ===================================================================== */
#sh { padding: 10px 10px 32px; align-items: flex-start; }
.brandbox { display: inline-flex; align-items: center; gap: 8px; }
.home-link {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  color: var(--cream); text-decoration: none; font-size: 20px; line-height: 1;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(243, 241, 223, .16);
}
.hub-frame { text-align: center; }
.hub-trophy { display: block; width: 200px; height: auto; margin: 4px auto -6px; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .5)) drop-shadow(0 0 30px rgba(243, 207, 107, .2)); animation: trophyBob 4s ease-in-out infinite; }
@keyframes trophyBob { 50% { transform: translateY(-6px); } }
.hub-eyebrow { margin: 6px 0 0; font: 600 11.5px/1 "Be Vietnam Pro", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.hub-h1 { min-height: 0; margin-top: 8px; }
.hub-cta { display: flex; gap: 10px; justify-content: center; margin: 16px 0 4px; flex-wrap: wrap; }
.hub-cta .btn-gold, .hub-cta .btn-ghost { min-height: 48px; padding: 0 18px; font-size: 15px; text-decoration: none; }
.hub-side { text-align: left; }
.hub-g { margin: 18px 4px 8px; font: 600 13px/1.2 "Be Vietnam Pro", sans-serif; color: var(--muted); }
.hub-g b { color: var(--gold-2); letter-spacing: .14em; margin-right: 6px; font-size: 12px; }
.mode {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; margin-bottom: 8px;
  border-radius: 20px; text-decoration: none; color: var(--ink);
  background: linear-gradient(170deg, #fbfaec, #ecefd6);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .8), inset 0 2px 0 #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mode:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -18px rgba(0, 0, 0, .85), inset 0 2px 0 #fff, 0 0 0 2px var(--gold-2); }
.mode-ico { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #4f9a55, var(--matcha-d)); }
.mode-ico img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .35)); }
.mode-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mode-txt b { font: 700 17px/1.25 var(--soft); font-variation-settings: "SOFT" 100; padding-top: .06em; }
.mode-txt small { font-size: 12.5px; line-height: 1.4; color: #5d6f55; }
.mode > i { font-style: normal; font-size: 22px; color: var(--green); }
.mode.big .mode-ico { width: 68px; height: 68px; }
.mode.big .mode-txt b { font-size: 19px; }
.hub-note { margin: 14px 4px 0; font-size: 12px; color: var(--muted); font-style: italic; }

/* Nút chọn dạng viên (thị trường) */
.seg { display: flex; flex-wrap: wrap; gap: 5px; }
.seg button {
  font: 600 12.5px/1 "Be Vietnam Pro", sans-serif; padding: 9px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  color: #44583e; background: #fff; border: 1.5px solid #d6dcbc; transition: all .15s ease;
}
.seg button[aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.seg.dark { justify-content: center; }
.seg.dark button { color: var(--cream); background: rgba(255, 255, 255, .06); border-color: rgba(243, 241, 223, .2); }
.seg.dark button[aria-pressed="true"] { color: var(--ink); background: var(--gold-2); border-color: var(--gold-2); }
.tier .nm small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Trang Quiz / Bingo */
#s6, #s7 { padding: 14px 14px 40px; align-items: flex-start; }
.stage.play { max-width: 560px; }
.play-title { margin: 6px 0 6px; font: 800 clamp(28px, 7.4vw, 40px)/1.15 var(--soft); color: var(--cream); letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 1; padding-top: .1em; }
.play-sub { margin: 0 auto 16px; max-width: 420px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.play-sub b { color: var(--gold-2); }
.play-card {
  padding: 22px 18px; border-radius: 28px; border: 6px solid var(--olive);
  background: radial-gradient(120% 80% at 50% 0%, #4f9a55 0%, var(--matcha) 45%, var(--matcha-d) 100%);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), inset 0 0 50px rgba(0, 0, 0, .25);
}
.play-card.slim { padding: 18px 16px; margin-top: 18px; }
.quiz-hero { display: block; width: 116px; height: 116px; object-fit: contain; margin: 0 auto 6px; padding: 10px; border-radius: 30px; background: linear-gradient(160deg, #fbfaec, #e6e8cc); box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .55); }
.seg-h { margin: 8px 0 8px; font-size: 13px; color: var(--cream); }
.play-card .btn-gold.big { margin-top: 18px; }
.q-prog { height: 8px; border-radius: 99px; background: rgba(0, 0, 0, .3); overflow: hidden; margin-bottom: 14px; }
.q-prog i { display: block; height: 100%; background: var(--gold-2); border-radius: 99px; transition: width .3s ease; }
.q-text { margin: 4px 0 16px; font: 700 clamp(21px, 5.6vw, 26px)/1.3 var(--soft); color: var(--cream); font-variation-settings: "SOFT" 100; padding-top: .08em; }
.q-opts { display: flex; flex-direction: column; gap: 9px; }
.q-opt {
  font: 600 15px/1.4 "Be Vietnam Pro", sans-serif; text-align: left; padding: 14px 16px; border-radius: 16px; cursor: pointer;
  color: var(--ink); background: linear-gradient(170deg, #fbfaec, #ecefd6); border: 2px solid transparent;
  box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .8); transition: transform .15s ease, border-color .15s ease;
}
.q-opt:hover:not(:disabled) { transform: translateX(3px); border-color: var(--gold-2); }
.q-opt.on { background: var(--gold-2); border-color: #fff3c4; transform: scale(1.02); }
.q-opt:disabled { cursor: default; }
.res-en { margin: 0 0 10px; font: 700 11.5px/1.2 "Be Vietnam Pro", sans-serif; letter-spacing: .2em; color: var(--muted); }
.res-desc { margin: 0 auto 10px; max-width: 440px; color: var(--cream); font-size: 15px; line-height: 1.55; }
.res-roast { margin: 0 auto 6px; max-width: 440px; color: var(--gold-2); font: italic 600 16px/1.5 "Playfair Display", serif; }
.q-bars { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.qb { display: grid; grid-template-columns: 150px 1fr 40px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.qb i { height: 9px; border-radius: 99px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.qb em { display: block; height: 100%; border-radius: 99px; background: var(--olive); }
.qb b { text-align: right; color: var(--cream); font-weight: 600; }
.qb.me { color: var(--gold-2); font-weight: 700; }
.qb.me em { background: var(--gold-2); }

.play-result { margin-top: 18px; }
.play-shot canvas { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto 4px; border-radius: 22px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); }
.coffee-card {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; padding: 12px 14px; text-align: left;
  border-radius: 20px; color: var(--ink); background: linear-gradient(170deg, #fbfaec, #ecefd6);
}
.coffee-card .cc-ico { font-size: 30px; }
.coffee-card p { flex: 1; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.coffee-card b { font-size: 14px; line-height: 1.35; }
.coffee-card small { font-size: 12px; color: #6a7b60; }
.coffee-card .btn-ghost { flex: none; color: var(--ink); border-color: var(--green); min-height: 42px; padding: 0 14px; font-size: 14px; }

/* Bingo 5x5 */
.bingo-stat { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 2px 10px; font-size: 12.5px; color: var(--muted); }
.bingo-stat b { font: 700 16px/1.2 var(--soft); color: var(--gold-2); text-align: center; padding-top: .06em; }
.bingo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-bottom: 14px; }
.bc {
  aspect-ratio: 1; padding: 4px 3px; border-radius: 12px; cursor: pointer; overflow: hidden;
  font: 600 10.5px/1.22 "Be Vietnam Pro", sans-serif; color: rgba(243, 241, 223, .82);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(243, 241, 223, .14);
  display: grid; place-items: center; text-align: center; transition: transform .12s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bc:active { transform: scale(.94); }
.bc.on { color: var(--ink); background: #d9e7b0; border-color: #eef6d2; }
.bc.line { background: var(--gold-2); border-color: #fff3c4; box-shadow: 0 0 14px rgba(243, 207, 107, .45); }
.bc.free { cursor: default; }

/* Popup khao cà phê */
.coffee-modal .modal-card { max-width: 520px; }
.coffee-modal .perk { display: none; }
.coffee-modal .tier .amt { margin-bottom: 0; }
.coffee-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); }

@media (min-width: 600px) {
  .bc { font-size: 12.5px; padding: 6px; border-radius: 14px; }
  .bingo { gap: 8px; }
}
@media (min-width: 960px) {
  #sh { padding: 24px 32px; align-items: center; }
  .hub > .frame { justify-content: center; }
  .hub-trophy { width: 330px; margin-bottom: 0; }
  .hub-cta .btn-gold, .hub-cta .btn-ghost { min-height: 54px; font-size: 16px; padding: 0 24px; }
  .hub-g:first-child { margin-top: 0; }
  .mode { padding: 12px 18px 12px 12px; margin-bottom: 10px; }
  .mode-ico { width: 64px; height: 64px; }
  .mode.big .mode-ico { width: 76px; height: 76px; }
  .stage.play { max-width: 680px; }
  .coffee-modal .tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hub-trophy { animation: none; } }

/* Nền nến chạy mờ phía sau mọi màn */
#candles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .14; }
/* Trang chủ: vòng thẻ quanh cúp */
.hub .hero-cap .hero-chip { cursor: pointer; }
/* Bingo: ô có hình, PC 8 ô một hàng */
.bingo { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); }
.bc { aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; }
.bc .bi { font-size: 20px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.bc:not(.on) .bi { opacity: .75; }
.bc .bt { display: block; }
@media (min-width: 960px) {
  #s7 .stage.play { max-width: 1240px; }
  #s7 .play-sub { max-width: 640px; }
  #s7 .bingo-stat, #s7 > .stage > .actions { max-width: 1240px; }
  .bingo { gap: 10px; }
  .bc { aspect-ratio: 1 / 1; padding: 10px 8px; gap: 8px; font-size: 13.5px; border-radius: 18px; }
  .bc .bi { font-size: 40px; }
  .bc:hover:not(.free) { transform: translateY(-3px); border-color: var(--gold-2); }
  #bgResult { max-width: 680px; margin: 22px auto 0; }
}
