/* ============ Vihara Chou — phong cách sang trọng: onyx · vàng champagne · ngà ============ */
@font-face { font-family: 'Lora'; src: url('/fonts/Lora-Variable.ttf') format('truetype'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/fonts/Lora-Italic-Variable.ttf') format('truetype'); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --onyx: #0b0a09; --onyx-2: #15120e; --onyx-3: #1e1a14;
  --gold: #c9a961; --gold-hi: #ecd9a6; --gold-lo: #8c6c34;
  --gold-grad: linear-gradient(135deg, #8c6c34 0%, #d9bd7f 28%, #f3e4b8 48%, #c49a52 70%, #e8d29a 100%);
  --ivory: #f4eee3; --muted: rgba(244, 238, 227, .58); --line: rgba(201, 169, 97, .32); --line-soft: rgba(201, 169, 97, .14);
  --glass: rgba(255, 248, 230, .035);
  /* 4 màu đá quý cho đáp án */
  --ruby: #8f1d2c; --ruby-2: #b8384a;
  --sapphire: #17365f; --sapphire-2: #2d5a92;
  --topaz: #8a6219; --topaz-2: #b98a35;
  --emerald: #154f3b; --emerald-2: #2a7a5c;
  --ok: #1f6b4f; --bad: #7e1f2c;
  --serif: 'Lora', 'Times New Roman', Georgia, serif;
  --sans: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--sans);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--ivory);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(201,169,97,.16), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(140,108,52,.12), transparent 60%),
    var(--onyx) fixed;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
/* hoạ tiết hình thoi rất mờ trên nền */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(45deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(-45deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, transparent 30%, #000 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 100%);
}
body > * { position: relative; z-index: 1; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; }
input, select, textarea { font: inherit; }
.screen { display: none; min-height: 100%; }
.screen.active { display: flex; }
.center { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.serif { font-family: var(--serif); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Logo chữ ---- */
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); white-space: nowrap; }
.brand .mono {
  width: 30px; height: 30px; flex: none; border: 1px solid var(--gold); transform: rotate(45deg);
  display: grid; place-items: center;
}
.brand .mono i { transform: rotate(-45deg); font-style: italic; font-size: 15px; font-weight: 600; color: var(--gold-hi); }
.brand .w1 { letter-spacing: .32em; font-size: 15px; font-weight: 500; text-transform: uppercase; color: var(--ivory); }
.brand .w2 { font-style: italic; font-size: 20px; font-weight: 500; color: var(--gold); margin-left: -4px; }
.brand.lg { flex-direction: column; gap: 18px; }
.brand.lg .mono { width: 58px; height: 58px; }
.brand.lg .mono i { font-size: 28px; }
.brand.lg .w1 { font-size: 34px; letter-spacing: .38em; margin-right: -.38em; }
.brand.lg .w2 { font-size: 30px; margin: -10px 0 0; }

/* ---- Đường trang trí ---- */
.orn { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 9px; width: 100%; max-width: 260px; margin: 14px auto; }
.orn::before, .orn::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn::after { background: linear-gradient(90deg, var(--gold), transparent); }
.eyebrow { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---- Nút ---- */
.btn {
  background: transparent; color: var(--ivory); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 24px; font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s, border-color .25s, transform .08s, box-shadow .25s;
}
.btn:hover { border-color: var(--gold); background: rgba(201,169,97,.08); }
.btn:active { transform: translateY(1px); }
.btn.gold {
  background: var(--gold-grad); color: #1b1406; border: 0;
  box-shadow: 0 8px 28px rgba(201,169,97,.25), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn.gold:hover { box-shadow: 0 10px 34px rgba(201,169,97,.4), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.dark { border-color: var(--line-soft); color: var(--muted); }
.btn.dark:hover { color: var(--ivory); }
.btn.small { padding: 8px 14px; font-size: 11px; }
.btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }

/* ---- Hình & màu đáp án ---- */
.shape { width: 1.4em; height: 1.4em; flex: none; color: var(--ivory); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.c0, .c1, .c2, .c3 { position: relative; border: 1px solid rgba(236,217,166,.35); }
.c0 { background: linear-gradient(150deg, var(--ruby-2), var(--ruby) 60%); }
.c1 { background: linear-gradient(150deg, var(--sapphire-2), var(--sapphire) 60%); }
.c2 { background: linear-gradient(150deg, var(--topaz-2), var(--topaz) 60%); }
.c3 { background: linear-gradient(150deg, var(--emerald-2), var(--emerald) 60%); }
/* viền vàng mảnh bên trong */
.c0::after, .c1::after, .c2::after, .c3::after {
  content: ''; position: absolute; inset: 4px; border: 1px solid rgba(236,217,166,.18); border-radius: inherit; pointer-events: none;
}

.netdot { position: fixed; top: 10px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); z-index: 50; }
.netdot.off { background: #c0392b; box-shadow: 0 0 8px #c0392b; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.pop { animation: pop .5s cubic-bezier(.2,.8,.2,1) both; }
.spinner { width: 44px; height: 44px; border: 1px solid var(--line); border-top-color: var(--gold-hi); border-radius: 50%; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== Giao diện ĐÁM CƯỚI: ngà · hồng phấn · vàng hồng ===================== */
body.theme-wedding {
  --onyx: #fbf6f1; --onyx-2: #f5ece5; --onyx-3: #ffffff;
  --gold: #b27d71; --gold-hi: #96594f; --gold-lo: #e2c0b5;
  --gold-grad: linear-gradient(135deg, #c08a7d 0%, #e8c2b5 30%, #f7e2d8 50%, #c99285 72%, #e6bcae 100%);
  --ivory: #3e2b2d; --muted: rgba(62, 43, 45, .58); --line: rgba(178, 125, 113, .38); --line-soft: rgba(178, 125, 113, .18);
  --ruby: #a8505f; --ruby-2: #d08a95;
  --sapphire: #536c8f; --sapphire-2: #8ea3c0;
  --topaz: #a07b42; --topaz-2: #cdae78;
  --emerald: #5f7a5c; --emerald-2: #98ae92;
  --ok: #6f8f6a; --bad: #b05a66;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(232, 182, 176, .45), transparent 62%),
    radial-gradient(900px 600px at 105% 108%, rgba(226, 192, 181, .5), transparent 60%),
    radial-gradient(700px 400px at 50% 50%, #fffdfb, transparent 80%),
    #fbf6f1 fixed;
}
.theme-wedding::before { opacity: .35; }
.theme-wedding .c0, .theme-wedding .c1, .theme-wedding .c2, .theme-wedding .c3 { color: #fff; border-color: rgba(255,255,255,.55); }
.theme-wedding .c0::after, .theme-wedding .c1::after, .theme-wedding .c2::after, .theme-wedding .c3::after { border-color: rgba(255,255,255,.4); }
.theme-wedding .shape { color: #fff; filter: drop-shadow(0 1px 2px rgba(80,40,40,.25)); }
.theme-wedding .btn.gold { color: #4a2a2c; box-shadow: 0 8px 26px rgba(178,125,113,.3), inset 0 1px 0 rgba(255,255,255,.7); }
.theme-wedding .btn:hover { background: rgba(178,125,113,.08); }
.theme-wedding .netdot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.theme-wedding .brand .mono { border-color: var(--gold); }
.theme-wedding .brand .mono i { color: var(--gold-hi); }

/* người chơi */
.theme-wedding .topbar { background: rgba(255,252,249,.75); }
.theme-wedding .topbar .score::before { content: '♥'; font-size: 11px; }
.theme-wedding .joinbox input::placeholder { color: rgba(62,43,45,.25); }
.theme-wedding .answers button { color: #fff; box-shadow: 0 12px 30px rgba(120,70,60,.22); text-shadow: 0 1px 2px rgba(60,30,30,.25); }
.theme-wedding .count { box-shadow: inset 0 0 30px rgba(178,125,113,.12); background: rgba(255,255,255,.55); }
.theme-wedding .res-icon { background: rgba(255,255,255,.75); box-shadow: 0 0 40px rgba(178,125,113,.3); }
.theme-wedding #s-result.ok::before { background: radial-gradient(ellipse at 50% 35%, rgba(152,174,146,.45), transparent 70%); }
.theme-wedding #s-result.bad::before { background: radial-gradient(ellipse at 50% 35%, rgba(208,138,149,.4), transparent 70%); }
.theme-wedding .medal { color: #4a2a2c; box-shadow: 0 0 60px rgba(178,125,113,.35); }
.theme-wedding .medal.plain { background: rgba(255,255,255,.6); color: var(--gold-hi); }
.theme-wedding .err { color: #b05a66; }

/* máy host */
.theme-wedding .ehead, .theme-wedding .startbar { background: rgba(251,246,241,.88); }
.theme-wedding .qcard { background: rgba(255,255,255,.72); box-shadow: 0 10px 30px rgba(120,70,60,.08); }
.theme-wedding .qcard ::placeholder { color: rgba(62,43,45,.3); }
.theme-wedding .opt input[type=text] { color: #fff; border-bottom-color: rgba(255,255,255,.5); }
.theme-wedding .opt input[type=text]::placeholder { color: rgba(255,255,255,.7); }
.theme-wedding .opt input[type=checkbox] { border-color: rgba(255,255,255,.85); }
.theme-wedding .qhead select, .theme-wedding .esel select { background: #fff; }
.theme-wedding .pill { background: rgba(255,255,255,.6); }
.theme-wedding #s-lobby .joininfo { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.55)); box-shadow: 0 20px 60px rgba(120,70,60,.1); }
.theme-wedding .names .nm { background: rgba(255,255,255,.7); }
.theme-wedding .qtitle::before, .theme-wedding .qtitle::after { content: '♥'; font-size: 13px; }
.theme-wedding .timer::before { background: radial-gradient(circle, #fff, #fbf3ee); }
.theme-wedding .timer { background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(178,125,113,.15) 0); }
.theme-wedding .tile { color: #fff; box-shadow: 0 14px 34px rgba(120,70,60,.18); text-shadow: 0 1px 2px rgba(60,30,30,.25); }
.theme-wedding .tile.dim { opacity: .3; }
.theme-wedding .tile .ck { color: #4a2a2c; text-shadow: none; }
.theme-wedding .lb .row { background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.4)); }
.theme-wedding .lb .row.first { background: linear-gradient(90deg, rgba(232,194,181,.55), rgba(255,255,255,.5)); box-shadow: 0 10px 40px rgba(178,125,113,.18); }
.theme-wedding .pod .block { color: #4a2a2c; box-shadow: 0 20px 50px rgba(120,70,60,.18); }
.theme-wedding .fulltable th { background: #f5ece5; }
.theme-wedding .bar .lab .shape { color: var(--muted); }
.theme-wedding .bar.win .lab .shape { color: var(--gold); }
/* chữ ánh kim trên nền sáng: dùng vàng hồng đậm hơn để dễ đọc */
.theme-wedding .gold-text, .theme-wedding .points.gold-text, .theme-wedding .lb .row.first .sc {
  background: linear-gradient(135deg, #8a5248 0%, #b97d70 35%, #d29c8f 50%, #a4675b 70%, #b98275 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===================== Dùng chung: hình đại diện · pháo giấy · ảnh ===================== */
.av { display: inline-flex; width: 36px; height: 36px; flex: none; vertical-align: middle; }
.av svg { width: 100%; height: 100%; overflow: visible; }
.avgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; max-width: 360px; margin: 18px auto 6px; }
.avgrid button { aspect-ratio: 1; border-radius: 50%; padding: 5px; background: transparent; border: 3px solid transparent; transition: transform .15s, border-color .15s, box-shadow .15s; }
.avgrid button svg { width: 100%; height: 100%; overflow: visible; display: block; }
.avgrid button:active { transform: scale(.92); }
.avgrid button.sel { border-color: var(--gold); transform: scale(1.1); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -24px; animation-name: fall; animation-timing-function: cubic-bezier(.25,.6,.5,1); animation-fill-mode: forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }
@keyframes bounceIn { 0% { transform: scale(.3); opacity: 0; } 55% { transform: scale(1.12); opacity: 1; } 75% { transform: scale(.95); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* ===================== Giao diện DỄ THƯƠNG: kẹo ngọt · bo tròn · nảy ===================== */
@font-face { font-family: 'VC Round'; src: url('/fonts/Inter-Bold.otf') format('opentype'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'VC Round'; src: url('/fonts/Inter-Black.otf') format('opentype'); font-weight: 800 900; font-display: swap; }
body.theme-cute {
  --onyx: #fff4f9; --onyx-2: #ffffff; --onyx-3: #ffffff;
  --gold: #ff5c9d; --gold-hi: #e93d84; --gold-lo: #ffc2da;
  --gold-grad: linear-gradient(180deg, #ff8fbf, #ff5c9d);
  --ivory: #4a3560; --muted: rgba(74,53,96,.6); --line: rgba(255,92,157,.4); --line-soft: rgba(124,92,180,.16);
  --ruby: #ff5a8a; --ruby-2: #ff8db0; --sapphire: #3d9bff; --sapphire-2: #7cc0ff;
  --topaz: #ffad14; --topaz-2: #ffcf5e; --emerald: #25c288; --emerald-2: #6be0b4;
  --serif: 'VC Round', 'Segoe UI', Roboto, Arial, sans-serif; --sans: 'VC Round', 'Segoe UI', Roboto, Arial, sans-serif;
  font-family: var(--sans);
  background:
    radial-gradient(520px 420px at 8% 12%, rgba(255,170,205,.55), transparent 70%),
    radial-gradient(560px 460px at 95% 18%, rgba(190,170,255,.45), transparent 70%),
    radial-gradient(620px 480px at 80% 100%, rgba(150,230,205,.45), transparent 70%),
    radial-gradient(520px 420px at 0% 100%, rgba(255,215,140,.45), transparent 70%),
    #fff4f9 fixed;
}
.theme-cute::before {
  opacity: 1; mask-image: none; -webkit-mask-image: none;
  background-image: radial-gradient(circle, rgba(255,92,157,.13) 2.2px, transparent 2.8px);
  background-size: 28px 28px;
}
.theme-cute .brand .mono { border: 0; background: var(--gold-grad); border-radius: 12px; transform: rotate(-8deg); box-shadow: 0 4px 0 #e0397c; }
.theme-cute .brand .mono i { transform: rotate(8deg); color: #fff; font-style: normal; font-weight: 900; }
.theme-cute .brand .w1 { letter-spacing: .12em; font-weight: 900; color: var(--ivory); }
.theme-cute .brand .w2 { font-style: normal; font-weight: 900; color: var(--gold); margin-left: 0; }
.theme-cute .brand.lg .mono { border-radius: 20px; box-shadow: 0 6px 0 #e0397c; }
.theme-cute .brand.lg .w1 { letter-spacing: .14em; margin-right: -.14em; font-size: 30px; }
.theme-cute .brand.lg .w2 { font-size: 34px; margin-top: -14px; }
.theme-cute .orn { color: var(--gold); font-size: 13px; }
.theme-cute .eyebrow { letter-spacing: .1em; font-weight: 900; color: var(--gold); font-size: 13px; }
.theme-cute .tagline { font-style: normal; font-weight: 700; color: var(--muted); }
.theme-cute .gold-text, .theme-cute .points.gold-text { background: none; -webkit-text-fill-color: currentColor; color: var(--gold); }

/* nút bấm kiểu viên kẹo */
.theme-cute .btn {
  border: 0; border-radius: 999px; text-transform: none; letter-spacing: 0; font-weight: 900; font-size: 16px; padding: 13px 28px;
  background: #fff; color: var(--ivory); box-shadow: 0 5px 0 rgba(124,92,180,.22), 0 10px 20px rgba(124,92,180,.12);
  transition: transform .12s, box-shadow .12s, filter .2s;
}
.theme-cute .btn:hover { transform: translateY(-2px); background: #fff; filter: brightness(1.03); }
.theme-cute .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(124,92,180,.22); }
.theme-cute .btn.gold { background: var(--gold-grad); color: #fff; box-shadow: 0 6px 0 #d8367a, 0 12px 26px rgba(255,92,157,.35); text-shadow: 0 1px 0 rgba(180,30,90,.3); }
.theme-cute .btn.gold:active { box-shadow: 0 1px 0 #d8367a; }
.theme-cute .btn.dark { background: rgba(255,255,255,.75); color: var(--muted); }
.theme-cute .btn.small { font-size: 13px; padding: 9px 18px; }
.theme-cute .btn:disabled { filter: grayscale(.6); opacity: .5; transform: none; }

/* màu đáp án dạng nút 3D */
.theme-cute .c0, .theme-cute .c1, .theme-cute .c2, .theme-cute .c3 { border: 0; color: #fff; }
.theme-cute .c0::after, .theme-cute .c1::after, .theme-cute .c2::after, .theme-cute .c3::after { display: none; }
.theme-cute .c0 { background: linear-gradient(180deg, #ff8db0, #ff5a8a); --edge: #e0396c; }
.theme-cute .c1 { background: linear-gradient(180deg, #7cc0ff, #3d9bff); --edge: #2179d8; }
.theme-cute .c2 { background: linear-gradient(180deg, #ffcf5e, #ffad14); --edge: #df8d00; }
.theme-cute .c3 { background: linear-gradient(180deg, #6be0b4, #25c288); --edge: #139c6a; }
.theme-cute .shape { color: #fff; filter: drop-shadow(0 2px 0 rgba(0,0,0,.12)); }

/* ---- điện thoại ---- */
.theme-cute .topbar { background: rgba(255,255,255,.85); border-bottom: 0; box-shadow: 0 4px 18px rgba(124,92,180,.1); }
.theme-cute .topbar .who { font-weight: 900; display: flex; align-items: center; gap: 10px; }
.theme-cute .topbar .score { background: var(--gold-grad); color: #fff; padding: 5px 14px; border-radius: 999px; font-weight: 900; box-shadow: 0 3px 0 #d8367a; }
.theme-cute .topbar .score::before { content: none; }
.theme-cute .joinbox { background: #fff; border-radius: 30px; padding: 26px 22px 22px; box-shadow: 0 8px 0 rgba(124,92,180,.12), 0 20px 50px rgba(124,92,180,.15); gap: 16px; margin-top: 24px; }
.theme-cute .field label { text-align: center; letter-spacing: .08em; color: var(--muted); font-weight: 900; }
.theme-cute .joinbox input { border: 3px solid #f0e4f8; border-radius: 18px; background: #fbf7ff; font-weight: 900; font-size: 24px; padding: 12px; }
.theme-cute .joinbox input#pin { letter-spacing: .25em; font-size: 28px; }
.theme-cute .joinbox input:focus { border-color: var(--gold); background: #fff; }
.theme-cute .joinbox input::placeholder { color: rgba(74,53,96,.28); font-style: normal; font-weight: 700; }
.theme-cute .joinbox .btn { font-size: 18px; padding: 16px; }
.theme-cute .big { font-weight: 900; }
.theme-cute .qtext { font-weight: 900; }
.theme-cute .count { border: 0; background: var(--gold-grad); color: #fff; box-shadow: 0 8px 0 #d8367a; font-weight: 900; animation: bounceIn .5s both; }
.theme-cute .answers { gap: 14px; padding: 14px; }
.theme-cute .answers button { border-radius: 26px; box-shadow: 0 7px 0 var(--edge); font-weight: 900; font-size: 21px; text-shadow: 0 2px 0 rgba(0,0,0,.12); animation: bounceIn .45s both; }
.theme-cute .answers button:nth-child(2) { animation-delay: .06s; } .theme-cute .answers button:nth-child(3) { animation-delay: .12s; } .theme-cute .answers button:nth-child(4) { animation-delay: .18s; }
.theme-cute .answers button .shape { width: 56px; height: 56px; }
.theme-cute .answers button:active { transform: translateY(6px) scale(.98); box-shadow: 0 1px 0 var(--edge); filter: none; }
.theme-cute .qbar { letter-spacing: .06em; font-weight: 900; color: var(--muted); }
.theme-cute .res-icon { border: 0; color: #fff; font-size: 52px; font-weight: 900; width: 110px; height: 110px; animation: bounceIn .6s both; }
.theme-cute #s-result.ok .res-icon { background: linear-gradient(180deg, #6be0b4, #25c288); box-shadow: 0 8px 0 #139c6a, 0 0 0 10px rgba(37,194,136,.15); }
.theme-cute #s-result.bad .res-icon { background: linear-gradient(180deg, #ff8db0, #ff5a8a); box-shadow: 0 8px 0 #e0396c, 0 0 0 10px rgba(255,90,138,.15); }
.theme-cute #s-result.ok::before { background: radial-gradient(ellipse at 50% 35%, rgba(107,224,180,.4), transparent 70%); }
.theme-cute #s-result.bad::before { background: radial-gradient(ellipse at 50% 35%, rgba(255,141,176,.35), transparent 70%); }
.theme-cute .points { font-weight: 900; }
.theme-cute #res-points:not(.gold-text) { color: var(--ivory); font-size: 30px; }
.theme-cute .rankline { border-top: 0; background: #fff; border-radius: 22px; padding: 14px 22px; box-shadow: 0 5px 0 rgba(124,92,180,.12); display: flex; align-items: center; justify-content: center; gap: 10px; }
.theme-cute .rankline b { color: var(--gold); font-weight: 900; }
.theme-cute #res-streak { letter-spacing: .04em; text-transform: none; font-weight: 900; color: #ff8a00; font-size: 15px; }
.theme-cute #res-correct { font-style: normal; font-weight: 700; }
.theme-cute .medal { border-radius: 28px; color: #fff; background: linear-gradient(180deg, #ffd65a, #ffad14); box-shadow: 0 8px 0 #df8d00, 0 0 50px rgba(255,173,20,.4); }
.theme-cute .medal.silver { background: linear-gradient(180deg, #eef1f8, #c3cbdc); color: var(--ivory); box-shadow: 0 8px 0 #a3adc2; }
.theme-cute .medal.bronze { background: linear-gradient(180deg, #ffc49c, #ff9a5c); box-shadow: 0 8px 0 #e07a3a; }
.theme-cute .medal.plain { background: #fff; color: var(--gold); box-shadow: 0 8px 0 rgba(124,92,180,.15); }
.theme-cute .spinner { border: 6px solid #ffe0ee; border-top-color: var(--gold); }
.theme-cute .qimg-phone { border: 5px solid #fff; box-shadow: 0 6px 0 rgba(124,92,180,.12); }
.theme-cute .meav { width: 140px; height: 140px; animation: bounceIn .6s both; }
.theme-cute .avgrid button.sel { background: #fff; }

/* ---- máy host ---- */
.theme-cute .ehead, .theme-cute .startbar { background: rgba(255,255,255,.85); border: 0; box-shadow: 0 4px 20px rgba(124,92,180,.08); }
.theme-cute .ehead .sub { letter-spacing: .1em; font-weight: 800; }
.theme-cute .titlein { font-weight: 900; border-bottom: 3px solid #f0e4f8; }
.theme-cute .qcard { background: #fff; border: 0; border-radius: 26px; box-shadow: 0 6px 0 rgba(124,92,180,.1), 0 16px 40px rgba(124,92,180,.08); }
.theme-cute .qhead .qnum { font-style: normal; font-weight: 900; }
.theme-cute .qhead select, .theme-cute .esel select { border-radius: 12px; border: 2px solid #f0e4f8; background: #fff; font-weight: 700; }
.theme-cute .qhead .ib { border-radius: 12px; border: 2px solid #f0e4f8; }
.theme-cute .qcard textarea { font-weight: 800; border-bottom: 3px solid #f0e4f8; }
.theme-cute .opt { border-radius: 18px; box-shadow: 0 4px 0 var(--edge); }
.theme-cute .opt input[type=text] { color: #fff; font-weight: 800; border-bottom-color: rgba(255,255,255,.55); }
.theme-cute .opt input[type=text]::placeholder { color: rgba(255,255,255,.8); }
.theme-cute .opt input[type=checkbox] { border: 2.5px solid #fff; }
.theme-cute .opt input[type=checkbox]:checked { background: #fff; }
.theme-cute .opt input[type=checkbox]:checked::after { color: var(--gold); }
.theme-cute .esel label { letter-spacing: .08em; font-weight: 900; }
.theme-cute .pill { background: #fff; border: 0; color: var(--gold); letter-spacing: .06em; font-weight: 900; box-shadow: 0 4px 0 rgba(124,92,180,.12); }
.theme-cute .ltitle { font-style: normal; font-weight: 900; color: var(--ivory); }
.theme-cute #s-lobby .joininfo { background: #fff; border: 0; border-radius: 34px; box-shadow: 0 8px 0 rgba(124,92,180,.12), 0 24px 60px rgba(124,92,180,.12); }
.theme-cute #s-lobby .joininfo::before { display: none; }
.theme-cute #s-lobby .url { font-weight: 700; }
.theme-cute #s-lobby .pin { font-weight: 900; letter-spacing: .06em; }
.theme-cute #qr { border: 0; border-radius: 18px; background: #fff; }
.theme-cute .lobbybar { border-bottom: 0; }
.theme-cute .pcount { font-weight: 900; }
.theme-cute .names .nm { background: #fff; border: 0; border-radius: 999px; padding: 6px 18px 6px 6px; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; box-shadow: 0 4px 0 rgba(124,92,180,.12); animation: bounceIn .5s both; }
.theme-cute .names .nm .av { width: 40px; height: 40px; }
.theme-cute .qtitle { background: #fff; border: 0; border-radius: 30px; font-weight: 900; box-shadow: 0 8px 0 rgba(124,92,180,.1), 0 20px 50px rgba(124,92,180,.08); }
.theme-cute .qtitle::before, .theme-cute .qtitle::after { display: none; }
.theme-cute .timer { background: conic-gradient(var(--gold) calc(var(--p) * 360deg), #ffe0ee 0); font-weight: 900; box-shadow: 0 8px 0 rgba(124,92,180,.12); }
.theme-cute .timer::before { inset: 11px; background: #fff; }
.theme-cute .timer.hot { background: conic-gradient(#ff5a5a calc(var(--p) * 360deg), #ffe0e0 0); }
.theme-cute .timer.hot span { color: #ff3d3d; }
.theme-cute .acount { background: #fff; border-radius: 28px; padding: 14px 0; letter-spacing: .06em; font-weight: 900; box-shadow: 0 8px 0 rgba(124,92,180,.12); }
.theme-cute .acount b { font-weight: 900; color: var(--gold); }
.theme-cute .qimgbox img { border: 8px solid #fff; border-radius: 26px; padding: 0; box-shadow: 0 8px 0 rgba(124,92,180,.12), 0 18px 40px rgba(124,92,180,.15); max-height: 38vh; animation: bounceIn .6s both; }
.theme-cute .tile { border-radius: 24px; box-shadow: 0 7px 0 var(--edge); font-weight: 900; text-shadow: 0 2px 0 rgba(0,0,0,.1); animation: bounceIn .45s both; }
.theme-cute .tile:nth-child(2) { animation-delay: .07s; } .theme-cute .tile:nth-child(3) { animation-delay: .14s; } .theme-cute .tile:nth-child(4) { animation-delay: .21s; }
.theme-cute .tile .shape { width: 42px; height: 42px; }
.theme-cute .tile.dim { opacity: .3; filter: grayscale(.4); }
.theme-cute .tile .ck { background: #fff; color: var(--gold); box-shadow: 0 3px 0 rgba(0,0,0,.12); text-shadow: none; animation: wiggle .6s .3s 2; }
.theme-cute .previewbar { height: 12px; background: #ffe0ee; border-radius: 999px; overflow: hidden; }
.theme-cute .previewbar div { height: 12px; background: var(--gold-grad); border-radius: 999px; box-shadow: none; }
.theme-cute .bar .num { font-weight: 900; }
.theme-cute .bar .col { border-radius: 18px 18px 6px 6px; box-shadow: 0 6px 0 var(--edge); }
.theme-cute .bar .lab .shape { color: var(--muted); width: 28px; height: 28px; }
.theme-cute .bar.win .lab .shape { color: var(--gold); }
.theme-cute h2.big { font-weight: 900; }
.theme-cute .lb .row { background: #fff; border: 0; border-radius: 24px; font-weight: 900; padding: 12px 26px 12px 18px; box-shadow: 0 6px 0 rgba(124,92,180,.1); animation: bounceIn .5s both; }
.theme-cute .lb .row .r { font-style: normal; font-weight: 900; color: var(--muted); width: 34px; text-align: center; }
.theme-cute .lb .row .av { width: 54px; height: 54px; }
.theme-cute .lb .row .st { border: 0; background: #fff1d6; color: #ff8a00; font-weight: 900; letter-spacing: .02em; text-transform: none; font-size: 15px; }
.theme-cute .lb .row.first { background: var(--gold-grad); color: #fff; box-shadow: 0 7px 0 #d8367a, 0 18px 40px rgba(255,92,157,.25); }
.theme-cute .lb .row.first .r, .theme-cute .lb .row.first .sc { color: #fff; background: none; -webkit-text-fill-color: #fff; }
.theme-cute .pod .nm { font-weight: 900; }
.theme-cute .pod .av { width: 110px; height: 110px; margin-bottom: 8px; }
.theme-cute .p1 .av { width: 140px; height: 140px; animation: wiggle 1s 1.6s 2; }
.theme-cute .p1 .nm { color: var(--gold); }
.theme-cute .pod .block { border-radius: 28px 28px 0 0; box-shadow: 0 20px 50px rgba(124,92,180,.15); }
.theme-cute .pod .block::after { display: none; }
.theme-cute .pod .block .md { font-style: normal; font-weight: 900; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.12); }
.theme-cute .pod .block .sc { font-weight: 900; color: #fff; }
.theme-cute .pod .block .sm { color: #fff; opacity: .9; letter-spacing: .04em; text-transform: none; font-size: 14px; }
.theme-cute .p1 .block { background: linear-gradient(180deg, #ffd65a, #ffad14); }
.theme-cute .p2 .block { background: linear-gradient(180deg, #a9d4ff, #6aa8f0); }
.theme-cute .p3 .block { background: linear-gradient(180deg, #ffb7cf, #ff7fab); }
.theme-cute .fulltable { background: #fff; border: 0; border-radius: 20px; }
.theme-cute .fulltable th { background: #fff; letter-spacing: .06em; }
.theme-cute .imgrow .thumb { border-radius: 14px; border: 3px solid #f0e4f8; }

/* ảnh câu hỏi trên điện thoại + khu chọn ảnh khi soạn */
.qimg-phone { display: block; max-width: calc(100% - 28px); max-height: 24vh; margin: 12px auto 0; border-radius: 14px; object-fit: contain; }
#s-ready .qimg-phone { max-height: 30vh; margin: 16px auto 4px; }
.imgrow { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.imgrow .thumb { height: 76px; max-width: 140px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.imgrow .qimg { flex: 1; min-width: 200px; margin-top: 0 !important; }
.qcard.drag { outline: 3px dashed var(--gold); outline-offset: 4px; }
.meav { width: 120px; height: 120px; margin: 6px auto 4px; }
.pod .av { width: 84px; height: 84px; margin-bottom: 6px; }
.lb .row .av { width: 46px; height: 46px; }
.names .nm { display: inline-flex; align-items: center; gap: 8px; }
.names .nm .av { width: 30px; height: 30px; }
.topbar .who { display: flex; align-items: center; gap: 10px; }
.topbar .who .av { width: 34px; height: 34px; }
