/* Học chung — giao diện dọc cho điện thoại, và bố cục ngang cho máy tính (xem phần cuối tệp). Nền sáng, thẻ trắng bo tròn, nút nổi khối như đồ chơi.
   Tông màu theo logo GeCo AI: xanh lá (--brand, --accent) và vàng lá (--gold). Bảng màu gốc ghi ở shared/brand.js. */
:root {
  color-scheme: light;
  --brand: #128a43; --brand-deep: #0a6630; --brand-ink: #ffffff; --accent: #01674a; --accent-soft: #e3f6df;
  --gold: #f8e11f; --gold-deep: #cdb40e; --gold-ink: #2a2703; --gold-soft: #fdf9d2;
  --bg: #f6fbee; --panel: #ffffff; --panel2: #eef5e4; --panel3: #dce9cf; --line: #d9e6cb;
  --ink: #1b2a22; --mute: #66756b; --ok: #128a43; --bad: #d8452f;
  --shadow: 0 6px 20px rgba(20, 70, 40, .14); --lift: 0 3px 0 var(--panel3);
  --head: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gl: max(16px, env(safe-area-inset-left)); --gr: max(16px, env(safe-area-inset-right));
}
html { box-sizing: border-box; height: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body { height: 100%; margin: 0; background: #dfeed2; color: var(--ink); font: 15px/1.45 var(--body); -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
#app { height: 100%; max-width: 540px; margin: 0 auto; background: var(--bg); position: relative; overflow: hidden; display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
#app > * { flex: 1; min-height: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; touch-action: manipulation; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
.pad { padding-left: var(--gl); padding-right: var(--gr); }

/* ---------- nút và ô nhập ---------- */
.btn { display: block; width: 100%; min-height: 50px; border-radius: 16px; font: 800 17px var(--head); padding: 0 16px; transition: transform .06s; }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 0 var(--brand-deep); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brand-deep); }
.btn.ghost { background: var(--panel2); color: var(--ink); box-shadow: var(--lift); }
.btn.ghost:active, .btn.danger:active { transform: translateY(2px); box-shadow: none; }
.btn.danger { background: #fde6e1; color: #b3301d; box-shadow: 0 3px 0 #f3c4bb; font-size: 15px; }
.btn[disabled] { opacity: .5; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--mute); margin-bottom: 6px; letter-spacing: .01em; }
.field input, .dpass input { width: 100%; height: 50px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 500 16px var(--body); padding: 0 14px; user-select: text; -webkit-user-select: text; }
.field input:focus, .dpass input:focus { border-color: var(--accent); outline: 0; }
.fine { font-size: 12.5px; color: var(--mute); margin-top: 12px; }
.error { color: var(--bad); font-size: 13px; font-weight: 600; min-height: 18px; margin-top: 8px; }
.iconbtn { width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--panel2); font-size: 18px; line-height: 1; display: grid; place-items: center; box-shadow: var(--lift); }
.iconbtn:active { transform: translateY(2px); box-shadow: none; }
.iconbtn.on { background: var(--accent); color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.pillbtn { height: 42px; padding: 0 16px; border-radius: 21px; background: var(--panel2); font-weight: 700; font-size: 13.5px; flex: none; box-shadow: var(--lift); }
.pill { padding: 6px 13px; border-radius: 18px; font: 800 15px var(--head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 3px 0 var(--gold-deep); }
button.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }

/* ---------- đăng nhập ---------- */
.auth { display: flex; flex-direction: column; justify-content: center; gap: 22px; overflow-y: auto; padding-top: 24px; padding-bottom: 24px; background: radial-gradient(130% 70% at 50% 0%, #cdeeb6 0%, var(--bg) 62%); }
.brand { text-align: center; }
.brand .logo { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 28px; background: linear-gradient(135deg, #01674a, #2fb04c 70%, #7fd03a); color: var(--gold); font: 800 40px/84px var(--head); box-shadow: 0 6px 0 #014d37, var(--shadow); transform: rotate(-4deg); }
.byline { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--mute); font-size: 12px; font-weight: 600; }
.byline img { height: 22px; width: auto; display: block; }
.byline:active { transform: translateY(2px); }
.mbody .byline { display: flex; justify-content: center; margin-top: 16px; }
.brand h1 { font: 800 38px/1.1 var(--head); }
.brand p { color: var(--mute); margin-top: 4px; }
.card { background: var(--panel); border-radius: 26px; padding: 20px; box-shadow: var(--shadow); }
.card .btn + .btn { margin-top: 12px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--panel2); border-radius: 16px; padding: 4px; margin-bottom: 16px; }
.tabs button { height: 40px; border-radius: 12px; font-weight: 700; color: var(--mute); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(20, 70, 40, .14); }

/* ---------- thanh trên ---------- */
.hud { flex: none; position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; padding-top: 10px; padding-bottom: 10px; background: var(--panel); box-shadow: 0 2px 12px rgba(20, 70, 40, .12); }
.room-title { flex: 1; min-width: 0; line-height: 1.2; }
.room-title b { display: block; font: 800 18px/1.15 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-title small { display: block; font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- khung 3D ---------- */
.stage-host { position: relative; overflow: hidden; flex: 1; min-height: 0; background: #eaf5dc; }
.creator-host { flex: none; height: 36%; min-height: 200px; background: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #dff3d2 60%, #b9e3a6 100%); }
canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink); font-weight: 600; }
.fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ov { position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap; transform-origin: 50% 100%; }
.ov.bubble { background: #fff; color: var(--ink); font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.ov.react { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.ov.pts { font: 800 20px/1 var(--head); color: #fff; -webkit-text-stroke: 4px #128a43; paint-order: stroke fill; text-shadow: 0 2px 0 rgba(0, 60, 30, .35); }
.ov.shout span { display: block; font: 800 17px/1 var(--head); padding: 5px 11px 4px; border-radius: 14px; background: #fff; color: #128a43; box-shadow: 0 0 0 2.5px currentColor, 0 4px 10px rgba(20, 60, 35, .25); animation: shout .28s cubic-bezier(.3, 1.7, .5, 1) both; }
.ov.shout.nay span { color: #d2552b; }
.ov.shout.hen span { color: #b9770a; background: #fff8dd; font-size: 14px; }
@keyframes shout { from { transform: scale(.3) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ov.fly { font-size: 32px; line-height: 1; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.ov.speech { background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 16px; white-space: normal; width: max-content; max-width: 190px; text-align: center; box-shadow: 0 4px 12px rgba(20, 60, 35, .22); line-height: 1.25; }
.ov.speech::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.ov.speech b { display: block; font-size: 14px; }
.ov.speech.teach { max-width: 260px; padding: 5px 11px; background: #fbfff2; box-shadow: 0 0 0 2.5px var(--brand), 0 4px 12px rgba(20, 60, 35, .22); }
.ov.speech.teach::after { background: #fbfff2; box-shadow: 2.5px 2.5px 0 0 var(--brand); }
.ov.speech small { display: block; font-size: 11px; color: var(--mute); }
.ov.zzz { font: 800 16px/1 var(--head); color: #fff; text-shadow: 0 1px 3px rgba(20, 30, 60, .8); }
.ov.zzz span { display: inline-block; animation: zz 1.8s ease-in-out infinite; }
.ov.zzz span:nth-child(2) { animation-delay: .3s; font-size: 1.2em; }
.ov.zzz span:nth-child(3) { animation-delay: .6s; font-size: 1.5em; }
@keyframes zz { 0%, 100% { transform: translateY(2px); opacity: .35; } 50% { transform: translateY(-5px); opacity: 1; } }

.chip { position: absolute; top: 10px; right: var(--gr); background: #fff; color: var(--ink); padding: 5px 14px; border-radius: 18px; font: 800 18px/1.2 var(--head); font-variant-numeric: tabular-nums; pointer-events: none; box-shadow: var(--shadow); }
.chip.hot { background: var(--bad); color: #fff; animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.12); } }
.mytag { position: absolute; top: 10px; left: var(--gl); padding: 4px 11px; border-radius: 14px; color: #fff; font-weight: 700; font-size: 12px; pointer-events: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.toasts { position: absolute; top: 48px; left: var(--gl); right: var(--gr); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 2; }
.toast { background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 16px; font-size: 13px; font-weight: 600; max-width: 100%; text-align: center; animation: toast .25s ease-out; box-shadow: var(--shadow); }
.toast b { color: #0a6630; }
@keyframes toast { from { opacity: 0; transform: translateY(-8px); } }
.recenter { position: absolute; right: var(--gr); bottom: 34px; width: 46px; height: 46px; border-radius: 23px; background: #fff; font-size: 19px; box-shadow: var(--shadow); }
.hint { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 130px); background: rgba(16, 35, 26, .86); color: #fff; padding: 7px 13px; border-radius: 16px; font-size: 12px; text-align: center; pointer-events: none; }
.veil { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 130px); display: flex; flex-direction: column; align-items: center; gap: 1px; background: #fff; color: var(--ink); padding: 9px 18px; border-radius: 18px; box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.veil b { font: 800 16px var(--head); }
.veil span { color: var(--mute); font-size: 12px; }

/* ---------- tạo nhân vật ---------- */
.creator, .lobby, .room { display: flex; flex-direction: column; position: relative; }
.options { flex: 1; min-height: 0; overflow-y: auto; padding-top: 16px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; background: var(--panel); border-radius: 26px 26px 0 0; margin-top: -22px; position: relative; z-index: 1; box-shadow: 0 -6px 18px rgba(20, 70, 40, .1); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button, .chips button { min-height: 44px; padding: 0 15px; border-radius: 14px; background: var(--panel2); font-weight: 700; font-size: 14px; border: 2px solid transparent; box-shadow: var(--lift); }
.seg button.on, .chips button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: 0 3px 0 #bfe3c4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { display: flex; flex-wrap: wrap; gap: 10px; }
.sw button { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.sw button.on { box-shadow: 0 0 0 3px var(--accent); transform: scale(1.08); }
.footer { flex: none; padding-top: 10px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
.footer.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.footer.row .btn { min-height: 46px; font-size: 15px; }

/* ---------- sảnh trường 3D ---------- */
.mebtn { flex: none; border-radius: 50%; }
.hud .face { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); object-fit: cover; border: 3px solid var(--brand); font-size: 20px; }
.hud .tot { flex: none; font-size: 14.5px; padding: 6px 11px; }
.levels { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--panel2); border-radius: 16px; padding: 4px; }
.levels button { height: 38px; border-radius: 12px; font: 800 17px var(--head); color: var(--mute); }
.levels button.on { background: var(--brand); color: var(--brand-ink); box-shadow: 0 3px 0 var(--brand-deep); }
.panel.lp { height: 292px; }
/* công tắc giữa lớp trắc nghiệm và khu luyện phát âm */
.modes { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.modes button { height: 32px; border-radius: 12px; font: 800 14px var(--head); color: var(--mute); background: var(--panel2); }
.modes button.on { background: var(--gold); color: var(--gold-ink); box-shadow: 0 3px 0 var(--gold-deep); }
.door.speak { border-top-color: #e8662a !important; background: #fff1e8; }
.dcard.speak { border-color: #e8662a; background: #fff1e8; }
.dcard.speak small { color: #b84a17; }
.lp .content { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.lp .sheet { top: -176px; border-radius: 26px 26px 0 0; box-shadow: 0 -8px 24px rgba(20, 70, 40, .18); }
.actions.two { grid-template-columns: 1fr 1fr; }
.actions .duelbtn { background: var(--gold); color: var(--gold-ink); box-shadow: 0 3px 0 var(--gold-deep); }
.dchips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gr)) 0 calc(-1 * var(--gl)); padding: 2px var(--gr) 6px var(--gl); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dchips::-webkit-scrollbar { display: none; }
.door { flex: none; width: 132px; text-align: left; border-radius: 18px; background: var(--panel2); color: var(--ink); padding: 9px 11px 10px; line-height: 1.2; box-shadow: var(--lift); display: flex; flex-direction: column; gap: 2px; min-height: 92px; border-top: 5px solid var(--accent); }
.door:nth-child(4n+2) { border-top-color: #51c03b; } .door:nth-child(4n+3) { border-top-color: #ecc81f; } .door:nth-child(4n) { border-top-color: #93dd24; }
.door:active { transform: translateY(2px); box-shadow: none; }
.door.full { filter: saturate(.4) brightness(.92); }
.door small { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--mute); }
.door b { flex: 1; font: 800 15px/1.15 var(--head); overflow-wrap: anywhere; }
.door span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--mute); }
.door span i, .dcard span i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fb56d; }
.door.full span i, .dcard span i.full { background: #e2604f; }
.dcard { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: start; background: var(--accent-soft); border-radius: 20px; padding: 11px 13px 13px; border: 2px solid var(--accent); }
.dcard > div { min-width: 0; line-height: 1.25; }
.dcard small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.dcard b { display: block; font: 800 20px/1.15 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard span { display: block; font-size: 12.5px; color: var(--mute); font-weight: 600; }
.dcard span i { margin-right: 5px; }
.dcard .iconbtn { background: #fff; }
.dcard .btn { grid-column: 1 / -1; min-height: 46px; }
.dcard.arena { border-color: var(--gold-deep); background: var(--gold-soft); }
.dcard.arena small { color: #5c5000; }

/* ---------- trang phủ: thách đấu, hồ sơ ---------- */
.modal { position: absolute; inset: 0; z-index: 6; background: var(--bg); display: flex; flex-direction: column; animation: sheet .18s ease-out; }
.mtabs { flex: none; margin: 12px var(--gr) 0 var(--gl); }
.mbody { flex: 1; min-height: 0; overflow-y: auto; padding-top: 14px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.dlist { display: flex; flex-direction: column; gap: 10px; }
.drow { background: var(--panel); border-radius: 18px; border: 2px solid transparent; overflow: hidden; box-shadow: var(--shadow); }
.drow.open { border-color: var(--accent); }
.drow > button { display: block; width: 100%; text-align: left; padding: 11px 14px; line-height: 1.3; }
.drow b { display: block; font: 800 18px/1.2 var(--head); overflow-wrap: anywhere; }
.drow span { display: block; font-size: 13px; font-weight: 600; }
.drow small { display: block; font-size: 12px; color: var(--mute); }
.dpass { display: flex; gap: 8px; padding: 0 12px 12px; }
.dpass input { flex: 1; min-width: 0; }
.dpass .btn { width: auto; flex: 1; min-height: 50px; white-space: nowrap; }
.dpass input + .btn { flex: none; }
.empty { text-align: center; color: var(--mute); padding: 36px 8px; }
.waitbox { background: var(--gold-soft); border: 2px solid var(--gold-deep); border-radius: 18px; padding: 10px 13px; line-height: 1.3; }
.waitbox strong { display: block; font: 800 18px/1.2 var(--head); color: #5c5000; }
.waitbox span { display: block; font-size: 12.5px; color: var(--mute); }
.who { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.who em { background: #fff; color: var(--ink); font-size: 12px; padding: 2px 9px; }
.who em.host { background: var(--gold); color: var(--gold-ink); }
.pcard { display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: 24px; padding: 14px 16px; box-shadow: var(--shadow); }
.pcard img { width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--accent-soft); border: 4px solid var(--brand); }
.pcard b { display: block; font: 800 26px/1.1 var(--head); overflow-wrap: anywhere; }
.pcard span { display: block; color: var(--mute); font-size: 13px; font-weight: 600; margin-top: 2px; }
.total { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, #01674a, #1c9c4c 60%, #49b93f); color: #fff; border-radius: 22px; padding: 12px 18px; box-shadow: 0 5px 0 #014d37; }
.total span { font-weight: 700; }
.total b { font: 800 34px/1 var(--head); font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.stat { background: var(--panel); border-radius: 20px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.stat i { grid-row: 1 / 3; font-style: normal; font-size: 26px; }
.stat b { font: 800 22px/1.1 var(--head); font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--mute); font-weight: 600; line-height: 1.25; }

/* ---------- hộp hỏi lại ---------- */
.dialog { position: absolute; inset: 0; z-index: 9; background: rgba(16, 35, 26, .55); display: grid; place-items: center; padding: 20px var(--gr) 20px var(--gl); animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.dbox { width: 100%; max-width: 380px; background: var(--panel); border-radius: 28px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 16px 40px rgba(8, 30, 18, .35); animation: pop .2s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.dicon { font-size: 44px; line-height: 1; }
.dbox h2 { font: 800 23px/1.2 var(--head); margin: 8px 0 8px; }
.dbox p { font-size: 14.5px; line-height: 1.45; }
.dbox p b { color: var(--bad); }
.dbox .fine { margin-top: 8px; }
.dbox .btn { margin-top: 12px; }
.dbox .btn.primary { margin-top: 16px; }
.dbox a.btn { display: grid; place-items: center; text-decoration: none; }
.dbox .blogo { display: block; height: 44px; width: auto; max-width: 100%; margin: 4px auto 10px; }

/* ---------- thương hiệu: logo góc sảnh, tờ rơi ---------- */
.bmark { position: absolute; top: 10px; left: var(--gl); z-index: 1; display: block; padding: 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); line-height: 0; }
.bmark img { height: 20px; width: auto; display: block; }
.overbtn { position: absolute; top: 10px; right: var(--gr); z-index: 1; padding: 6px 11px; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: #10231a; }
.overbtn.on { background: #128a43; color: #fff; }
.overbtn:active { transform: translateY(2px); }
.bmark:active { transform: translateY(2px); }
.flyer { position: relative; overflow: hidden; margin: 2px auto 14px; max-width: 280px; background: #fff; border-radius: 14px; padding: 30px 18px 16px; box-shadow: 0 0 0 2px var(--line), 0 10px 22px rgba(20, 70, 40, .2); transform: rotate(-2deg); }
.flyer i { position: absolute; left: 0; right: 0; top: 0; height: 16px; background: linear-gradient(90deg, #01674a, #51c03b); border-bottom: 4px solid var(--gold); }
.flyer img { display: block; height: 46px; width: auto; max-width: 100%; margin: 0 auto 10px; }
.flyer b { display: block; font: 800 21px/1.2 var(--head); color: var(--accent); }
.flyer p { font-size: 13.5px; line-height: 1.4; margin-top: 4px; }
.flyer span { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }

/* ---------- bảng điều khiển dưới ---------- */
.panel { flex: none; position: relative; z-index: 1; height: 322px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); border-radius: 26px 26px 0 0; margin-top: -22px; box-shadow: 0 -6px 18px rgba(20, 70, 40, .14); padding-top: 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.actions { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.actions button { height: 42px; border-radius: 14px; background: var(--panel2); font-weight: 700; font-size: 13px; white-space: nowrap; box-shadow: var(--lift); }
.actions button:active { transform: translateY(2px); box-shadow: none; }
.actions button.on { background: var(--accent); color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.content { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.countbox { display: flex; align-items: center; gap: 14px; background: var(--accent-soft); border-radius: 20px; padding: 14px; }
.countbox > b { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font: 800 40px/72px var(--head); text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 4px 0 var(--gold-deep); }
.countbox strong { display: block; font: 800 19px/1.2 var(--head); }
.countbox span { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; font-weight: 600; }
.tip { font-size: 13px; color: var(--mute); background: var(--panel2); border-radius: 14px; padding: 10px 12px; }
.qtext { font-weight: 700; font-size: 16px; line-height: 1.3; min-height: 40px; display: flex; align-items: center; }
.ans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; padding-bottom: 4px; }
.ans button { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px; border-radius: 16px; text-align: left; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.2; }
.ans button:active { transform: translateY(3px); box-shadow: none; }
.ans button small { width: 26px; height: 26px; flex: none; border-radius: 9px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 800 14px var(--head); display: grid; place-items: center; }
.ans button span { min-width: 0; overflow-wrap: anywhere; }
.ans .a0 { background: #3f7fe0; box-shadow: 0 4px 0 #2a5db0; } .ans .a1 { background: #e8662a; box-shadow: 0 4px 0 #b84a17; }
.ans .a2 { background: #8a5fd6; box-shadow: 0 4px 0 #6541a8; } .ans .a3 { background: #0f9690; box-shadow: 0 4px 0 #0a6f6b; }
.ans .picked { outline: 3px solid var(--ink); outline-offset: 2px; }
.ans [aria-disabled="true"] { cursor: default; }
.ans .dim { opacity: .35; }
/* hiện kết quả: số người chọn và phần trăm ở từng đáp án; ô không phải đáp án chỉ nhạt màu chứ vẫn đọc được số */
.ans .rv { position: relative; overflow: hidden; padding-right: 8px; }
.ans .rv.dim { opacity: 1; filter: saturate(.3) brightness(1.04); }
.ans .rv span { flex: 1; }
.ans .cnt { flex: none; display: grid; justify-items: end; gap: 1px; font: 700 10.5px var(--body); line-height: 1.1; white-space: nowrap; }
.ans .cnt i { font: 800 15px var(--head); font-style: normal; }
.ans .rv::after { content: ''; position: absolute; left: 0; bottom: 0; height: 5px; width: var(--pc, 0%); background: rgba(255, 255, 255, .8); border-radius: 0 3px 0 0; transition: width .5s ease-out; }
.explain .none { color: var(--mute); }
.ans .right { background: #128a43; box-shadow: 0 0 0 3px #a8eec6, 0 4px 0 #0a6630; }
.ans .wrong { background: #d8452f; box-shadow: 0 0 0 3px #ffc0b6, 0 4px 0 #a02c1a; }
.ans .right small::after { content: '✓'; } .ans .wrong small::after { content: '✕'; }
.ans .right small, .ans .wrong small { font-size: 0; } .ans .right small::after, .ans .wrong small::after { font-size: 15px; }
/* ---------- phòng luyện phát âm ---------- */
.sayhead { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--mute); font-weight: 600; }
.sayhead span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sayhead .kind { flex: none; font: 800 12px var(--head); font-style: normal; color: #fff; background: #3f7fe0; border-radius: 8px; padding: 2px 8px; }
.sayhead .k-ghep { background: #8a5fd6; } .sayhead .k-cau { background: #e8662a; }
.saytext { font: 700 19px/1.3 var(--body); color: var(--ink); overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.saytext i { font-style: normal; border-radius: 5px; padding: 0 2px; }
.saytext .m2 { color: #0a6630; background: #dff5e6; } .saytext .m1 { color: #6b5300; background: #fdf3c4; } .saytext .m0 { color: #a02c1a; background: #fde2dc; text-decoration: underline wavy #e2604f; text-underline-offset: 3px; }
.saynote { font-size: 13px; color: var(--mute); background: var(--panel2); border-radius: 14px; padding: 9px 12px; }
.saynote small { font-size: 11.5px; }
.mic { flex: none; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; min-height: 66px; border-radius: 18px; padding: 8px 14px; background: #e8662a; color: #fff; box-shadow: 0 4px 0 #b84a17; }
.mic:active { transform: translateY(3px); box-shadow: 0 1px 0 #b84a17; }
.mic i { grid-row: 1 / span 3; font-size: 30px; font-style: normal; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.mic b { font: 800 17px/1.15 var(--head); }
.mic span { font-size: 12.5px; font-weight: 600; opacity: .95; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mic small { font-size: 11px; opacity: .85; }
.mic.on { background: #d8452f; box-shadow: 0 4px 0 #a02c1a; }
.mic.on i { animation: micpulse 1s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
.mic.done { background: var(--accent-soft); color: var(--ink); box-shadow: none; }
.mic.done i { background: #fff; }
.saytype { display: flex; gap: 8px; }
.saytype input { flex: 1; min-width: 0; height: 48px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: 500 16px var(--body); padding: 0 12px; user-select: text; -webkit-user-select: text; }
.saytype .btn { width: auto; min-height: 48px; }
.explain .heard { display: block; color: var(--mute); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replay { align-self: flex-start; font: 700 13px var(--body); color: var(--accent); padding: 2px 0; }
.timer { flex: none; height: 10px; border-radius: 5px; background: var(--panel2); overflow: hidden; margin-top: 2px; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #e8662a, var(--gold)); border-radius: 5px; }
.explain { font-size: 12.5px; line-height: 1.4; color: var(--ink); background: var(--panel2); border-radius: 14px; padding: 8px 11px; overflow: hidden; }
.explain .ok { color: var(--ok); } .explain .bad { color: var(--bad); }
.podhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.podhead strong { font: 800 20px var(--head); }
.podhead span { font-size: 12.5px; color: var(--mute); }
.gain { flex: none; background: var(--gold-soft); border: 2px solid var(--gold-deep); border-radius: 14px; padding: 7px 11px; font-size: 13px; line-height: 1.3; }
.lb { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.lb > div { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 6px; background: var(--panel2); border-radius: 12px; padding: 5px 10px; font-size: 13.5px; }
.lb > div.me { background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold-deep); }
.lb span:first-child { text-align: center; font-weight: 700; }
.lb span:nth-child(2) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.lb span:last-child { font: 800 15px var(--head); font-variant-numeric: tabular-nums; }
/* hết hiệp: bảng dưới cao hơn, dòng gọn hơn để thấy đủ 10 bạn đứng đầu mà không phải cuộn */
.panel { transition: height .25s ease; }
.panel.pod { height: min(478px, calc(100dvh - 196px)); gap: 8px; }
.panel.pod .content { gap: 6px; }
.panel.pod .lb { gap: 3px; flex: 1; min-height: 0; }
.panel.pod .lb > div { padding: 2px 10px; font-size: 13px; line-height: 1.5; flex: none; }
.panel.pod .lb span:last-child { font-size: 14px; }
.panel.pod .lb > div.out { position: sticky; bottom: 0; margin-top: 2px; }
.panel.pod .gain { padding: 5px 11px; font-size: 12.5px; }
em { font-style: normal; display: inline-block; color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 9px; vertical-align: 1px; }

/* ---------- bảng tương tác ---------- */
.sheet { position: absolute; inset: 0; z-index: 3; background: var(--panel); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; gap: 10px; padding: 12px var(--gr) max(10px, env(safe-area-inset-bottom)) var(--gl); overflow-y: auto; animation: sheet .18s ease-out; }
@keyframes sheet { from { transform: translateY(16px); opacity: 0; } }
.sheethead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheethead > div { min-width: 0; }
.sheethead b { font: 800 19px/1.2 var(--head); }
.sheethead small { display: block; font-size: 12px; color: var(--mute); }
.emorow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.emorow button { height: 46px; border-radius: 14px; background: var(--panel2); font-size: 23px; line-height: 1; box-shadow: var(--lift); }
.emorow.big { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.emorow.big button { height: 68px; font-size: 32px; }
.actrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.actrow button { min-height: 84px; border-radius: 18px; background: var(--panel2); font-size: 28px; line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; box-shadow: var(--lift); }
.actrow button span { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.phrases { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 4px; }
.phrases button { text-align: left; min-height: 56px; border-radius: 14px; background: var(--panel2); padding: 7px 11px; line-height: 1.2; box-shadow: var(--lift); }
.emorow button:active, .actrow button:active, .phrases button:active { transform: translateY(2px); box-shadow: none; }
.phrases b { display: block; font-size: 13.5px; }
.phrases small { display: block; font-size: 11px; color: var(--mute); margin-top: 2px; }

/* ---------- nút âm thanh, hiệu ứng tương tác ---------- */
.sndbtn { position: absolute; right: var(--gr); bottom: 90px; z-index: 1; width: 40px; height: 40px; border-radius: 20px; background: #fff; font-size: 17px; line-height: 1; box-shadow: var(--shadow); }
.sndbtn.off { background: var(--panel3); opacity: .85; }
.sndbtn:active { transform: translateY(2px); }
.lobby .sndbtn { bottom: 34px; }
.busy .sndbtn { top: max(12px, env(safe-area-inset-top)); bottom: auto; }
.ov.spark { font-size: 21px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .28)); }
.ov.spark i { display: block; width: 9px; height: 13px; border-radius: 2px; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -18px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: confetti 2.6s linear 1 both; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(var(--r)); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--h, 400px) + 30px)) rotate(calc(var(--r) + 540deg)); opacity: 0; } }
.ans button.right.fresh { animation: rightpop .5s cubic-bezier(.2, 1.6, .4, 1); }
.ans button.wrong.fresh { animation: shake .42s ease-in-out; }
@keyframes rightpop { 0% { transform: scale(.94); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.bump { animation: bump .5s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.22) rotate(-3deg); } 100% { transform: scale(1); } }

/* ---------- màn chờ: sảnh trường học đang tắc ---------- */
.busy { position: relative; height: 100%; display: flex; flex-direction: column; overflow-y: auto; padding-top: 20px; padding-bottom: 20px; background: radial-gradient(130% 70% at 50% 0%, #cdeeb6 0%, var(--bg) 62%); }
.bcard { margin: auto 0; flex: none; background: var(--panel); border-radius: 28px; padding: 18px 18px 20px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; gap: 10px; }
.bscene { margin: 0 auto -4px; width: min(100%, 300px); }
.bscene svg { display: block; width: 100%; height: auto; }
.bscene .steam path { animation: steam 2.4s ease-in-out infinite; }
.bscene .steam path:nth-child(2) { animation-delay: .5s; }
.bscene .steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam { 0% { transform: translateY(8px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-8px); opacity: 0; } }
.bscene .wurst { transform-box: fill-box; transform-origin: 0% 50%; animation: wurst 2.8s ease-in-out infinite; }
@keyframes wurst { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(4deg); } }
.bscene.sip svg { animation: sip .4s ease-out; transform-origin: 30% 90%; }
.bscene.bite svg { animation: bite .32s ease-out; }
@keyframes sip { 40% { transform: rotate(-7deg); } }
@keyframes bite { 30% { transform: translateX(-9px) scale(1.03); } 60% { transform: translateX(4px); } }
.busy h1 { font: 800 min(26px, 6.5vw)/1.15 var(--head); color: var(--accent); text-wrap: balance; }
.blead { font-size: 16px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.bqueue { background: var(--gold-soft); border: 2px solid var(--gold-deep); border-radius: 16px; padding: 9px 12px; font-size: 14.5px; }
.bqueue b { font: 800 18px var(--head); }
.bbar { height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; }
.bbar i { display: block; width: 36%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #07875e, #51c03b); animation: bbar 1.6s ease-in-out infinite alternate; }
@keyframes bbar { from { transform: translateX(-20%); } to { transform: translateX(200%); } }
.btreats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btreats button { min-height: 46px; border-radius: 14px; background: var(--panel2); font-weight: 700; font-size: 13.5px; box-shadow: var(--lift); }
.btreats button:active { transform: translateY(2px); box-shadow: none; }
.bcard .fine { margin-top: 0; }
.bnote { color: var(--accent); font-weight: 600; }
.busy .toasts { top: 12px; }

/* ---------- xe đẩy ở sảnh ---------- */
.shop { display: flex; flex-direction: column; gap: 8px; }
.shop button { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 6px 12px 6px 8px; border-radius: 16px; background: var(--panel2); text-align: left; box-shadow: var(--lift); }
.shop button:active { transform: translateY(2px); box-shadow: none; }
.shop i { font-style: normal; font-size: 28px; line-height: 44px; text-align: center; background: #fff; border-radius: 12px; }
.shop b { display: block; font: 800 16px/1.2 var(--head); }
.shop small { display: block; font-size: 12px; color: var(--mute); }
.shop em { font: 800 15px var(--head); font-style: normal; background: var(--gold); color: var(--gold-ink); padding: 4px 11px; border-radius: 14px; box-shadow: 0 3px 0 var(--gold-deep); white-space: nowrap; }
.shop button.poor { opacity: .55; }
.shop button.held { outline: 3px solid var(--gold-deep); outline-offset: -3px; }
.shop button.held small { color: var(--gold-ink); font-weight: 700; }
.shop button.poor em { background: var(--panel3); box-shadow: none; color: var(--mute); }
.honor { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.honor li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; min-height: 31px; padding: 2px 12px 2px 6px; border-radius: 12px; background: var(--panel2); }
.honor li.top { background: #fff3c4; }
.honor li.me { outline: 2.5px solid var(--brand); outline-offset: -2.5px; background: #e3f8d2; }
.honor li.none { display: block; padding: 10px 12px; color: var(--mute); font-size: 14px; }
.honor i { font: 800 15px/1 var(--head); font-style: normal; text-align: center; color: var(--mute); }
.honor li.top i { font-size: 21px; }
.honor b { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.honor b em { font: 800 11px/1 var(--head); font-style: normal; background: var(--brand); color: #fff; padding: 2px 7px; border-radius: 9px; vertical-align: 2px; }
.honor span { font: 800 14px var(--head); color: #8f1a1a; white-space: nowrap; }
.honornote { margin: 0; font-size: 13px; color: var(--mute); }
.honornote b { color: var(--accent); }
.sheet .gift { min-height: 44px; font-size: 14px; flex: none; }
.sheethead small b { font: inherit; font-weight: 800; color: var(--accent); }
.wallet { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: center; background: var(--gold-soft); border: 2px solid var(--gold-deep); border-radius: 18px; padding: 10px 16px; }
.wallet span { font-weight: 700; font-size: 13.5px; }
.wallet b { font: 800 24px/1 var(--head); font-variant-numeric: tabular-nums; grid-row: span 2; }
.wallet small { font-size: 12px; color: var(--mute); }

@media (max-height: 700px) {
  .bscene { width: min(100%, 220px); }
  .busy { padding-top: 12px; padding-bottom: 12px; }
  .bcard { gap: 8px; padding: 14px 16px 16px; }
  .panel.pod .lb { gap: 2px; }
  .panel.pod .lb > div { padding: 1px 10px; line-height: 1.4; }
  .panel.pod .lb span:last-child { font-size: 13.5px; line-height: 1.5; }
}
@media (max-height: 620px) {
  .panel { height: 292px; }
  .qtext { font-size: 14.5px; min-height: 0; }
  .ans button { min-height: 46px; }
}
/* ---------- máy tính, màn hình ngang: khung 3D nằm bên trái, bảng điều khiển thành cột bên phải ---------- */
/* ---------- phòng bổ túc, giáo vụ, con gà ---------- */
.door.botuc { border-top-color: #f08a3c !important; background: #fff4e6; }
.door.botuc span { color: #a85a17; }
.dcard.botuc { border-color: #f08a3c; background: #fff4e6; }
.dcard.botuc small { color: #a85a17; }
.mebtn { position: relative; }
.henbadge { position: absolute; right: -6px; bottom: -4px; font-style: normal; font-size: 19px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.actions button[disabled] { opacity: .45; }
.dbox .quote { font: 800 19px/1.3 var(--head); color: var(--ink); background: var(--gold-soft); border: 2px solid var(--gold-deep); border-radius: 18px; padding: 12px 14px; margin-top: 4px; }
.demotools { margin-top: 16px; padding: 12px; border-radius: 20px; background: var(--panel2); display: grid; gap: 8px; }
.demotools > b { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.demotools .btn { min-height: 44px; font-size: 14.5px; background: #fff; }
.linkbtn { align-self: flex-start; font-weight: 700; font-size: 13px; color: var(--accent); padding: 6px 4px; }
.panel.tp { height: 318px; }
.tutor .sndbtn { bottom: 34px; }
.tp .content { overflow-y: auto; gap: 9px; }
.tq { flex: none; background: var(--accent-soft); border-radius: 18px; padding: 9px 13px 10px; line-height: 1.3; }
.tq small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.tq b { display: block; font: 800 17.5px/1.25 var(--head); }
.topts { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 4px; }
.topts button { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 10px; border-radius: 16px; text-align: left; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.2; }
.topts button:active { transform: translateY(3px); box-shadow: none; }
.topts button small { width: 24px; height: 24px; flex: none; border-radius: 9px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 800 13px var(--head); display: grid; place-items: center; }
.topts .a0 { background: #3f7fe0; box-shadow: 0 4px 0 #2a5db0; } .topts .a1 { background: #e8662a; box-shadow: 0 4px 0 #b84a17; }
.topts .a2 { background: #8a5fd6; box-shadow: 0 4px 0 #6541a8; } .topts .a3 { background: #0f9690; box-shadow: 0 4px 0 #0a6f6b; }
.topts .picked { outline: 3px solid var(--ink); outline-offset: 2px; }
.trecap { flex: none; display: flex; flex-wrap: wrap; gap: 6px; }
.trecap button { padding: 4px 11px; border-radius: 13px; background: var(--panel2); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.trecap button[disabled] { cursor: default; }
.tphone { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.tphone input { height: 50px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 600 18px var(--body); padding: 0 14px; user-select: text; -webkit-user-select: text; min-width: 0; letter-spacing: .02em; }
.tphone input:focus { border-color: var(--accent); outline: 0; }
.tphone .btn { width: auto; white-space: nowrap; }
.tp .error { margin: 0; min-height: 0; }
.tp .tip b { color: var(--ink); }

/* ---------- trang quản trị ---------- */
.adm h3 { font: 800 17px/1.2 var(--head); margin: 18px 0 8px; }
.adm h3 small { font: 600 12.5px var(--body); color: var(--mute); margin-left: 6px; }
.adm .fine { margin-top: 0; }
.abar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.abar .chips { flex: 1; flex-wrap: nowrap; gap: 6px; }
.abar .chips button, .adm .chips button { height: 36px; padding: 0 10px; border-radius: 18px; background: var(--panel2); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.abar .pillbtn { height: 36px; padding: 0 12px; font-size: 12.5px; }
.abar .chips button.on { background: var(--accent); color: #fff; }
.pillbtn[disabled] { opacity: .45; }
.leads { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.lead { background: var(--panel); border-radius: 20px; padding: 12px 14px; box-shadow: var(--shadow); border-left: 6px solid var(--gold-deep); user-select: text; -webkit-user-select: text; }
.lead.done { border-left-color: var(--brand); opacity: .8; }
.lhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lhead b { font: 800 18px/1.2 var(--head); overflow-wrap: anywhere; }
.lhead time { font-size: 12px; color: var(--mute); white-space: nowrap; }
.lphone { display: inline-block; margin: 4px 0 6px; font: 800 20px/1.2 var(--head); color: var(--accent); text-decoration: none; letter-spacing: .02em; }
.lead dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0 0 10px; font-size: 13px; }
.lead dt { color: var(--mute); } .lead dd { margin: 0; font-weight: 600; }
.lacts { display: flex; gap: 8px; }
.lacts button { height: 36px; padding: 0 12px; border-radius: 12px; background: var(--panel2); font-weight: 700; font-size: 13px; }
.lacts button.on { background: var(--accent-soft); color: var(--accent); }
.lacts .del { margin-left: auto; color: #b3301d; background: #fde6e1; }
.asws { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.asw { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 14px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); text-align: left; }
.asw span { flex: 1; min-width: 0; } .asw b { display: block; font-size: 14.5px; }
.asw small { display: block; font-size: 12px; color: var(--mute); }
.asw i { flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--panel3); position: relative; transition: background .15s; }
.asw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.asw.on i { background: var(--brand); } .asw.on i::after { transform: translateX(18px); }
.asw em { flex: none; width: 26px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--mute); }
.asw.on em { color: var(--brand); }
.ahead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ahead > span { display: flex; gap: 8px; }
.ahead .pillbtn { height: 36px; padding: 0 13px; font-size: 13px; }
.alevel { background: var(--panel); border-radius: 18px; padding: 8px 12px 12px; margin-top: 8px; box-shadow: var(--shadow); }
.alevel .ahead b { font: 800 18px var(--head); }
.arooms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.arooms button { height: 34px; padding: 0 11px; border-radius: 12px; font-size: 12.5px; font-weight: 700; background: var(--panel3); color: var(--mute); text-decoration: line-through; }
.arooms button.on { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
/* thẻ Thống kê của trang quản trị: ô số, bảng, biểu đồ một màu theo ngày */
.mtabs:has(> :nth-child(3)) { grid-template-columns: 1fr 1.25fr .8fr; }
.mtabs:has(> :nth-child(3)) button { font-size: 12.5px; line-height: 1.15; padding: 0 4px; }
.stable { border: 1px solid var(--line); border-radius: 14px; overflow: auto; background: var(--panel); }
.stable table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.stable th, .stable td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stable tr:last-child > * { border-bottom: 0; }
.stable thead th { font-size: 11.5px; font-weight: 700; color: var(--mute); background: var(--panel2); position: sticky; top: 0; }
.stable tbody th { font-weight: 700; }
.stable th:first-child { text-align: left; white-space: normal; }
.stable th small { display: block; font-weight: 500; font-size: 11.5px; color: var(--mute); }
.stable.wide { max-height: 420px; }
.stable.wide table { width: max-content; min-width: 100%; }
.stable.wide th:first-child { position: sticky; left: 0; background: var(--panel); white-space: nowrap; z-index: 1; }
.stable.wide thead th:first-child { background: var(--panel2); z-index: 2; }
.stable.wide thead th { white-space: normal; max-width: 92px; vertical-align: bottom; line-height: 1.2; }
#app.adminpage { max-width: 1100px; }
#app.adminpage > .hud, #app.adminpage > .mtabs { flex: none; } /* ở trang /admin ba phần này là con trực tiếp của #app, không để chúng chia đều chiều cao */
/* thẻ Thống kê (admin-stats.js): thanh lọc, ô chỉ số bấm được, một biểu đồ lớn có kỳ so sánh, phân bố, bảng từng ngày, thẻ chúc mừng */
.stv { --up: #128a43; --up-bg: #e1f4e3; --down: #c33a25; --down-bg: #fbe5e0; --flat: #6b7a70; --flat-bg: #eef2ea; --cmp: #9aa89f; display: flex; flex-direction: column; gap: 14px; }
.stv h3 { margin: 0; font: 800 16px/1.2 var(--head); }
.stv .shead small, .stv .scap { font-size: 12.5px; color: var(--mute); }
.sfilters { display: flex; flex-direction: column; gap: 8px; }
.schips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.schips::-webkit-scrollbar { display: none; }
.schips button { height: 34px; padding: 0 12px; border-radius: 17px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; font-size: 12.5px; white-space: nowrap; flex: none; }
.schips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sopts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.sopts select, .sopts input { height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: 500 13px var(--body); padding: 0 8px; }
.sdates { display: inline-flex; gap: 6px; align-items: center; }
.scmpsel { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--mute); font-weight: 600; }
.sseg { display: inline-flex; background: var(--panel2); border-radius: 12px; padding: 3px; }
.sseg button { height: 28px; padding: 0 12px; border-radius: 9px; font-weight: 700; font-size: 12.5px; color: var(--mute); }
.sseg button.on { background: var(--gold); color: var(--gold-ink); }
.scap { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.scap b { color: var(--ink); }
.slive { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12.5px; color: var(--mute); background: var(--panel2); border-radius: 12px; padding: 7px 12px; }
.slive b { color: var(--ink); font-variant-numeric: tabular-nums; }
.slivedot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
.sgrid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stile.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: linear-gradient(var(--accent-soft), var(--panel) 70%); }
.stile:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.slab { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); font-weight: 600; min-height: 28px; }
.slab > span:first-child { min-width: 0; }
.srt { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.srt i { font-style: normal; font-size: 10.5px; color: #8a9a8f; font-weight: 500; }
.sbrag { width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--brand); display: inline-grid; place-items: center; flex: none; }
.sbrag:hover, .sbrag:focus-visible { background: var(--gold); border-color: var(--gold-deep); color: var(--gold-ink); }
.sbrag svg { width: 16px; height: 16px; }
.sval { font: 800 26px/1.1 var(--head); font-variant-numeric: tabular-nums; }
.srow { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.scmp { font-size: 11.5px; color: #8a9a8f; }
.stile svg { width: 100%; height: 28px; display: block; }
.stile .sa { fill: var(--accent-soft); }
.stile .sl { fill: none; stroke: var(--brand); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.sdelta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sdelta small { font-weight: 500; opacity: .8; font-size: inherit; }
.sdelta.up { color: var(--up); background: var(--up-bg); }
.sdelta.down { color: var(--down); background: var(--down-bg); }
.sdelta.flat { color: var(--flat); background: var(--flat-bg); font-weight: 600; }
.sdelta.mini { font-size: 10.5px; padding: 0 5px; }
.scard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.shead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.shead small { display: block; margin-top: 2px; }
.slegend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--mute); }
.slegend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 10px; border-radius: 3px; background: var(--brand); }
.sw.part { background: var(--gold-deep); }
.sw.cmp { background: none; border-top: 2px dashed var(--cmp); height: 0; border-radius: 0; }
.sbox { position: relative; }
.svchart { width: 100%; height: 250px; display: block; touch-action: pan-y; }
.svchart .sgrid { stroke: var(--panel2); stroke-width: 1; }
.svchart .stick { font: 500 11px var(--body); fill: #8a9a8f; font-variant-numeric: tabular-nums; }
.svchart .sbar { fill: var(--brand); }
.svchart .sbar.part { fill: var(--gold-deep); }
.svchart .sarea { fill: var(--accent-soft); opacity: .85; }
.svchart .sline { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.svchart .send { fill: var(--brand); stroke: var(--panel); stroke-width: 2; }
.svchart .scmpl { fill: none; stroke: var(--cmp); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.svchart .sguide { stroke: var(--mute); stroke-width: 1; stroke-dasharray: 2 3; }
.svempty { margin: 0; padding: 40px 10px; text-align: center; color: var(--mute); font-size: 13px; }
.svtip { position: absolute; top: 14px; transform: translateX(-50%); pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12px; min-width: 150px; white-space: nowrap; box-shadow: var(--shadow); z-index: 2; }
.svtip .th { opacity: .8; margin-bottom: 3px; }
.svtip .tr { display: flex; justify-content: space-between; gap: 12px; }
.svtip b { font: 800 15px var(--head); }
.svtip .sdelta { margin-top: 3px; }
.stwo { display: grid; gap: 14px; }
.sbars { display: flex; flex-direction: column; gap: 8px; }
.sbr { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; }
.sbr .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sbr .nm small { color: #8a9a8f; margin-left: 4px; font-weight: 500; }
.sbr .tk { position: relative; height: 13px; background: var(--panel2); border-radius: 4px; }
.sbr .tk i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 4px; }
.sbr .tk .g { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--cmp); border-radius: 1px; }
.sbr .vv { display: flex; gap: 6px; align-items: center; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.sbr .vv b { min-width: 40px; text-align: right; }
.sbr .vv small { display: none; color: #8a9a8f; font-size: 12px; min-width: 32px; text-align: right; }
.sothers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sot { background: var(--panel); padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }
.sot span { font-size: 12px; color: var(--mute); }
.sot b { font: 800 18px/1.15 var(--head); font-variant-numeric: tabular-nums; }
.sdays td { vertical-align: top; }
.sdays td div { line-height: 1.25; }
.sdays tbody th small { display: block; font-size: 10.5px; color: #8a9a8f; font-weight: 500; }
.sdays tr.wk th { color: var(--accent); }
.sdays .sel { background: var(--accent-soft); }
.sdays.stable.wide { max-height: 560px; }
.sdays.stable.wide thead th { max-width: none; }
.smore { margin-top: 10px; }
.sbragm { position: fixed; inset: 0; z-index: 100; background: rgba(6, 20, 12, .62); display: grid; place-items: center; overflow-y: auto; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.sbragm[hidden] { display: none; }
.sbragm .sbsheet { background: var(--panel); border-radius: 18px; width: min(920px, 100%); display: grid; gap: 14px; padding: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.sbragm img { width: 100%; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; display: block; background: var(--panel2); }
.sbragm .side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sbragm h2 { margin: 0; font: 800 20px/1.2 var(--head); }
.sbragm .sheethead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sbragm .sheethead small { color: var(--mute); font-size: 12.5px; }
.sbragm .field input { height: 44px; }
.sclose { width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); font-size: 20px; line-height: 1; flex: none; }
.sthemes { display: flex; gap: 8px; }
.stheme { border: 2px solid transparent; border-radius: 11px; padding: 3px; }
.stheme.on { border-color: var(--brand); }
.stheme i { display: block; width: 48px; height: 30px; border-radius: 8px; }
.scheck { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.sacts { display: flex; flex-wrap: wrap; gap: 8px; }
.sacts .pillbtn { height: 40px; padding: 0 14px; text-decoration: none; display: inline-flex; align-items: center; }
.sacts .pillbtn.gold { background: var(--gold); color: var(--gold-ink); }
.sacts .pillbtn.fb { background: #1877f2; color: #fff; }
.stoast { margin: 0; min-height: 18px; font-size: 12.5px; color: var(--up, #128a43); font-weight: 600; }
.sbragm .fine { margin: 0; }
@media (min-width: 640px) {
  .sgrid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sothers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sbr { grid-template-columns: 116px minmax(0, 1fr) auto; }
  .sbr .vv small { display: inline; }
  .svchart { height: 280px; }
}
@media (min-width: 760px) {
  .sbragm .sbsheet { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding: 18px; }
}
@media (min-width: 900px) {
  .stwo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .sothers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
#app.adminpage .mtabs { max-width: 620px; }

@media (min-width: 900px) and (min-height: 540px) and (orientation: landscape) {
  :root { --side: clamp(380px, 30vw, 460px); --gl: 20px; --gr: 20px; }
  body { background: #cfe3c0; }
  #app { max-width: 1760px; box-shadow: 0 0 60px rgba(20, 70, 40, .18); }
  .lobby, .room, .creator { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); grid-template-rows: auto minmax(0, 1fr); }
  .lobby > .hud, .room > .hud, .creator > .hud { grid-column: 1 / -1; padding-top: 12px; padding-bottom: 12px; }
  .room-title b { font-size: 21px; } .room-title small { font-size: 13px; }
  .stage-host { grid-column: 1; grid-row: 2; }
  .panel, .panel.lp, .panel.pod { grid-column: 2; grid-row: 2; height: auto; min-height: 0; margin-top: 0; border-radius: 0; padding-top: 18px; padding-bottom: 18px; gap: 14px; box-shadow: -6px 0 18px rgba(20, 70, 40, .12); transition: none; }
  .sheet, .lp .sheet { top: 0; border-radius: 0; padding-top: 18px; box-shadow: none; }
  .modal { left: auto; width: var(--side); box-shadow: -10px 0 30px rgba(20, 70, 40, .22); }
  .actions button { height: 46px; font-size: 14px; }
  .levels button { height: 42px; }
  /* sảnh: mười phòng xếp thành lưới hai cột thay cho dải cuộn ngang */
  .lp .content { justify-content: flex-start; overflow-y: auto; }
  .dchips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; margin: 0; padding: 2px 2px 6px; }
  .door { width: auto; min-height: 84px; display: flex; flex-direction: column; }
  /* phòng học: chữ câu hỏi và nút trả lời lớn hơn */
  .qtext { font-size: 19px; min-height: 56px; }
  .ans { gap: 10px; }
  .ans button { min-height: 64px; font-size: 16px; }
  .panel.pod .lb { gap: 5px; }
  .panel.pod .lb > div { padding: 6px 12px; font-size: 14.5px; }
  .content { overflow-y: auto; }
  .hint { bottom: 22px; font-size: 13.5px; max-width: 70%; }
  .veil { bottom: 22px; }
  .toasts { top: 16px; }
  .toast { font-size: 14.5px; }
  .recenter { bottom: 22px; width: 52px; height: 52px; border-radius: 26px; }
  .sndbtn { bottom: 86px; width: 46px; height: 46px; border-radius: 23px; right: calc(var(--gr) + 3px); }
  .lobby .sndbtn { bottom: 22px; }
  .ov.speech { max-width: 260px; font-size: 15px; }
  /* tạo nhân vật: nhân vật bên trái, lựa chọn bên phải */
  .creator { grid-template-rows: auto minmax(0, 1fr) auto; }
  .creator-host { grid-column: 1; grid-row: 2 / 4; height: auto; }
  .options { grid-column: 2; grid-row: 2; margin-top: 0; border-radius: 0; box-shadow: -6px 0 18px rgba(20, 70, 40, .1); }
  .creator .footer { grid-column: 2; grid-row: 3; }
  /* đăng nhập: tên game bên trái, khung nhập bên phải */
  .auth { flex-direction: row; align-items: center; justify-content: center; gap: 72px; }
  .auth .brand { flex: 0 1 420px; }
  .auth .card { flex: 0 0 420px; }
  .brand .logo { width: 112px; height: 112px; border-radius: 36px; font-size: 54px; line-height: 112px; }
  .brand h1 { font-size: 56px; } .brand p { font-size: 18px; }
  .busy { align-items: center; }
  .bcard { width: min(560px, 100%); }
  .busy h1 { font-size: 30px; }
  .dbox { max-width: 440px; }
  .panel.tp { height: auto; }
  .tq b { font-size: 20px; }
  .topts button { min-height: 56px; font-size: 15.5px; }
  .tutor .sndbtn { bottom: 22px; }
  .ov.speech.teach { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

.acsv { margin: 0 0 12px; display: grid; gap: 6px; }
.acsv small { color: var(--muted, #5b6b63); font-size: 12.5px; line-height: 1.4; }
.acsv textarea { width: 100%; box-sizing: border-box; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; padding: 10px; border-radius: 12px; border: 1.5px solid rgba(1, 74, 54, .22); background: #fff; color: #17352b; resize: vertical; white-space: pre; }

/* trang quản trị: đặt tên nhân vật máy */
.anames { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.aname { display: grid; gap: 4px; padding: 10px 12px 12px 14px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.aname span { font-size: 12.5px; font-weight: 700; color: var(--mute); }
.aname input { width: 100%; height: 42px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 700 15px var(--body); padding: 0 12px; user-select: text; -webkit-user-select: text; }
.aname input:focus { outline: none; border-color: var(--brand); }
.anamebar { display: flex; align-items: center; gap: 12px; margin: 10px 0 8px; }
.anamebar .linkbtn { align-self: center; }
.anamebar small { color: var(--ok); font-weight: 700; font-size: 13px; }

/* nút đi học bổ túc để giải ngố, chỉ hiện khi mình đang là gà */
.henfix { position: absolute; left: var(--gl); z-index: 4; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 9px; border-radius: 22px; background: #e8651f; color: #fff; text-align: left; box-shadow: 0 3px 0 #a8430d, 0 6px 14px rgba(0, 0, 0, .25); animation: henpulse 1.6s ease-in-out infinite; }
.henfix[hidden] { display: none; }
.henfix i { font-style: normal; font-size: 24px; line-height: 1; }
.henfix small { display: block; font-size: 11px; font-weight: 600; opacity: .92; line-height: 1.2; }
.henfix b { display: block; font-size: 13.5px; line-height: 1.25; }
.henfix.low { bottom: 12px; }
.henfix.top { top: 10px; }
.henfix.top.under { top: 40px; }
.henfix:active { transform: translateY(2px); box-shadow: 0 1px 0 #a8430d; }
@keyframes henpulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }
.tip.tcured { background: #fff6d6; color: #5c4a00; font-weight: 600; }

/* trang quản trị: số bạn máy ở sảnh */
.abots { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); margin-bottom: 8px; }
.abots label { flex: 1 1 100%; font-weight: 700; font-size: 14.5px; }
.astep { display: inline-flex; align-items: center; gap: 6px; }
.astep button { width: 38px; height: 38px; border-radius: 50%; background: var(--panel2); font: 800 20px/1 var(--body); box-shadow: var(--lift); }
.astep input { width: 62px; height: 42px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 800 17px var(--body); text-align: center; user-select: text; -webkit-user-select: text; -moz-appearance: textfield; }
.astep input::-webkit-outer-spin-button, .astep input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.astep input:focus { outline: none; border-color: var(--brand); }
.abots small { flex-basis: 100%; color: var(--ok); font-weight: 700; font-size: 13px; }
.abots small:empty { display: none; }
/* ---------- hòm thư góp câu hỏi ---------- */
.door.mail { border-top-color: #e2b400 !important; background: #fff9d9; }
.door.mail span { color: #7a6200; }
.dcard.mail { border-color: var(--gold-deep); background: var(--gold-soft); }
.dcard.mail small { color: #5c5000; }
.dcard.mail span { white-space: normal; }
.field textarea, .cq textarea { width: 100%; box-sizing: border-box; min-height: 84px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 500 16px/1.4 var(--body); padding: 10px 14px; resize: vertical; user-select: text; -webkit-user-select: text; }
.field textarea:focus, .cq textarea:focus, .cq input:focus, .cq select:focus { border-color: var(--accent); outline: 0; }
.mopt { display: grid; grid-template-columns: 50px 1fr; gap: 8px; margin-bottom: 8px; }
.mopt > button { height: 50px; border-radius: 14px; background: var(--panel2); font: 800 17px var(--head); color: var(--mute); border: 2px solid transparent; box-shadow: var(--lift); }
.mopt.right > button { background: var(--ok); color: #fff; box-shadow: none; }
.mopt.right > input { border-color: var(--ok) !important; background: #f1fbf3; }
.mform .fine { margin-top: 2px; }
.explain .qby { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: #7a6200; }
.mtabs:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }
@media (min-width: 620px) { .mtabs:has(> :nth-child(4)) { grid-template-columns: 1fr 1.15fr 1.25fr .8fr; } }
.cqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.cq { background: var(--panel); border-radius: 20px; padding: 12px 14px; box-shadow: var(--shadow); border-left: 6px solid var(--gold-deep); display: grid; gap: 8px; }
.cq.approved { border-left-color: var(--brand); } .cq.rejected { border-left-color: #c9c9c9; opacity: .85; }
.cqmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cqst { font-style: normal; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 10px; background: var(--gold-soft); color: #5c5000; }
.cq.approved .cqst { background: var(--accent-soft); color: var(--accent); } .cq.rejected .cqst { background: #eee; color: #666; }
.cq select { height: 36px; border-radius: 11px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 700 13px var(--body); padding: 0 6px; max-width: 100%; }
.cq textarea { min-height: 62px; font-size: 15px; padding: 8px 11px; border-radius: 12px; }
.cq .mopt { grid-template-columns: 40px 1fr; margin: 0; gap: 6px; }
.cq .mopt > button { height: 40px; border-radius: 11px; font-size: 15px; }
.cq input { width: 100%; box-sizing: border-box; height: 40px; border-radius: 11px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 500 15px var(--body); padding: 0 11px; user-select: text; -webkit-user-select: text; }
.cq .cqnote { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); } .cq .cqnote.bad { color: var(--bad); }
.cq .lacts { flex-wrap: wrap; } .cq .lacts .ok { background: var(--ok); color: #fff; }

/* ---------- studio ảnh kỷ yếu ---------- */
.door.photo { border-top-color: #b3122e !important; background: #fff0f2; }
.door.photo span { color: #8a1026; }
.dcard.photo { border-color: #b3122e; background: #fff0f2; }
.dcard.photo small { color: #8a1026; }
.dcard.photo span { white-space: normal; }
.camcount { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -50%); z-index: 4; font: 800 120px/1 var(--head); color: #fff; text-shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 0 30px rgba(0, 0, 0, .35); pointer-events: none; }
.camflash { position: absolute; inset: 0; z-index: 7; background: #fff; pointer-events: none; animation: camflash .7s ease-out forwards; }
@keyframes camflash { from { opacity: 1; } to { opacity: 0; } }
.shotbody { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.shotbody img.shot { display: block; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 16px; box-shadow: 0 10px 28px rgba(20, 70, 40, .25); animation: shotin .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes shotin { from { transform: scale(.86) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
.shotbody .fine { text-align: center; max-width: 440px; margin: 4px 0 0; }
.shotbody .sharecap { display: block; width: 100%; max-width: 440px; margin-top: 8px; text-align: left; }
.sharecap > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-weight: 800; font-size: 14px; margin-bottom: 5px; }
.sharecap > span small { font-weight: 600; font-size: 12px; opacity: .65; }
.sharecap textarea { display: block; width: 100%; box-sizing: border-box; min-height: 96px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 500 16px/1.45 var(--body); user-select: text; -webkit-user-select: text; }
.sharecap textarea:focus { outline: none; border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24, 119, 242, .18); }
.shotbar { display: flex; flex-direction: column; gap: 8px; }
.shotbar .btn { min-height: 46px; font-size: 15px; }
.shotbar .btn.fb { background: #1877f2; color: #fff; box-shadow: 0 3px 0 #0d5bc4; display: flex; align-items: center; justify-content: center; gap: 10px; }
.shotbar .btn.fb b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #1877f2; font: 800 20px/1 Arial, sans-serif; }
.shotbar .row2 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.shotbar .row2 .btn { padding: 0 6px; font-size: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }

/* kiểm tra micro trước khi vào phòng phát âm */
.micgate { text-align: center; max-width: 460px; margin: 0 auto; }
.micgate p { margin: 10px 0; line-height: 1.5; }
.micgate .mgicon { font-size: 54px; margin: 18px 0 6px; }
.micgate .mgicon.pulse { animation: micpulse 1.2s ease-in-out infinite; }
.micgate .row { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
@keyframes micpulse { 50% { transform: scale(1.12); opacity: .75; } }
.modes[hidden] { display: none; }

/* ---------- sảnh gọn: màn 3D chiếm gần trọn màn hình, thanh trên và thanh nút dưới nổi nhỏ trên cảnh ---------- */
.lmenu { position: absolute; top: calc(100% + 6px); right: var(--gr); z-index: 6; width: min(270px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 20px; background: var(--panel); box-shadow: 0 10px 30px rgba(20, 70, 40, .25); animation: toast .18s ease-out; }
.lmenu[hidden] { display: none; }
.lmenu button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 14px; text-align: left; font-weight: 700; font-size: 14px; }
.lmenu button:active { background: var(--panel2); }
.lmenu button i { font-style: normal; font-size: 19px; width: 24px; text-align: center; }
.lmenu button span { flex: 1; }
.lmenu button em { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 10px; background: var(--panel3, #e7ecdf); color: var(--mute); }
.lmenu button.on em { background: var(--brand); color: #fff; }
.lmenu p { margin: 4px 8px 6px; font-size: 12px; line-height: 1.4; color: var(--mute); }
.menubtn { font: 800 22px/1 var(--body); letter-spacing: 1px; }
.menubtn.on { background: var(--accent-soft); }
.dock button i { font-style: normal; }
.roomsbtn em { font-style: normal; }

@media not all and (min-width: 900px) and (min-height: 540px) and (orientation: landscape) {
  .lobby { display: block; }
  .lobby > .stage-host { position: absolute; inset: 0; }
  /* thanh trên: một viên kính mờ nổi, mỏng */
  .lobby > .hud { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 8px; right: 8px; z-index: 5; gap: 7px; padding: 5px 6px 5px 5px; border-radius: 26px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(20, 70, 40, .16); }
  .lobby > .hud .face { width: 38px; height: 38px; border-width: 2.5px; font-size: 17px; }
  .lobby > .hud .room-title b { font-size: 15.5px; }
  .lobby > .hud .room-title small { font-size: 11px; }
  .lobby > .hud .tot { font-size: 13.5px; padding: 5px 10px; }
  .lobby > .hud .iconbtn { width: 38px; height: 38px; }
  .lobby .lmenu { right: 0; }
  .lobby .bmark { top: calc(max(8px, env(safe-area-inset-top)) + 58px); left: 10px; padding: 4px 8px; border-radius: 12px; background: rgba(255, 255, 255, .8); }
  .lobby .bmark img { height: 16px; }
  .lobby .overbtn { top: calc(max(8px, env(safe-area-inset-top)) + 58px); right: 10px; padding: 5px 9px; border-radius: 12px; font-size: 12px; background: rgba(255, 255, 255, .86); }
  .lobby .overbtn.on { background: #128a43; }
  .lobby .toasts { top: calc(max(8px, env(safe-area-inset-top)) + 60px); }
  .lobby .hint { bottom: calc(max(8px, env(safe-area-inset-bottom)) + 84px); }
  .lobby .henfix.low { bottom: calc(max(8px, env(safe-area-inset-bottom)) + 82px); }

  /* thanh nút dưới: nổi, bo tròn, chỉ một hàng; danh sách phòng nằm trong ngăn kéo */
  .lobby > .panel.lp { position: absolute; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 4; height: auto; margin: 0; gap: 8px; padding: 8px; border-radius: 24px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 22px rgba(20, 70, 40, .2); transition: none; }
  .lobby > .panel.lp > .modes, .lobby > .panel.lp > .levels, .lobby > .panel.lp > .content { display: none; }
  .lobby > .panel.lp.open > .modes:not([hidden]), .lobby > .panel.lp.open > .levels { display: grid; }
  .lobby > .panel.lp.open > .content, .lobby > .panel.lp.picked > .content { display: flex; flex: none; }
  .lobby > .panel.lp.open { background: var(--panel); animation: sheet .18s ease-out; }
  .lobby .lp .dchips { margin: 0 -8px; padding: 2px 8px 4px; }
  .lobby .lp .door { min-height: 82px; width: 124px; }
  .lobby .lp .dcard { padding: 9px 11px 11px; border-radius: 18px; }
  .lobby .lp .dcard b { font-size: 18px; }
  .lobby .lp .dcard .btn { min-height: 42px; }
  .lobby .levels button { height: 34px; font-size: 16px; }
  .lobby .modes button { height: 30px; font-size: 13px; }

  .dock { grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 6px; }
  .dock button { height: 52px; padding: 0 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11px; line-height: 1.1; border-radius: 16px; background: var(--panel2); }
  .dock button i { font-size: 19px; line-height: 1.1; }
  .dock .roomsbtn { flex-direction: row; gap: 7px; background: var(--brand); color: #fff; box-shadow: 0 3px 0 var(--brand-deep); font: 800 14px/1.1 var(--head); }
  .dock .roomsbtn i { font-size: 18px; }
  .dock .roomsbtn em { padding: 2px 7px; border-radius: 9px; background: var(--gold); color: var(--gold-ink); font-size: 12.5px; }
  .dock .roomsbtn.on { background: var(--brand-deep); box-shadow: none; transform: translateY(2px); }

  /* bảng nói nhanh, xe đẩy, bảng vàng: trượt lên từ đáy, cao vừa phải */
  .lobby .lp .sheet { top: auto; bottom: 0; left: 0; right: 0; height: min(440px, 66dvh); border-radius: 24px; box-shadow: 0 -8px 24px rgba(20, 70, 40, .2); }
}
@media (min-width: 900px) and (min-height: 540px) and (orientation: landscape) {
  .lobby .roomsbtn { display: none; }
  .dock button i { margin-right: 6px; }
}

/* ---------- cửa hàng đồng phục: skin đặc biệt ---------- */
.door.wardrobe { border-top-color: #8e44ad !important; background: #f8efff; }
.door.wardrobe span { color: #6c2c8a; }
.dcard.wardrobe { border-color: #8e44ad; background: #f8efff; }
.dcard.wardrobe small { color: #6c2c8a; }
.dcard.wardrobe span { white-space: normal; }
.wtabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-top: 4px; padding-bottom: 6px; scrollbar-width: none; }
.wtabs button { flex: 0 0 auto; }
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.skin { background: #fff; border: 2px solid #ece4f3; border-radius: 16px; padding: 8px 8px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.skin.own { border-color: #c9a6e0; }
.skin.on { border-color: #8e44ad; box-shadow: 0 0 0 3px #e7d3f5; }
.skin .pic { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; background: radial-gradient(circle at 50% 35%, #fff6fb, #f1e3fa); overflow: hidden; }
.skin .pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.skin .pic img:not([src]) { visibility: hidden; }
.skin .pic em { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 11px; font-weight: 700; background: #8e44ad; color: #fff; border-radius: 99px; padding: 2px 8px; }
.skin .pic em.own { background: #3fae6a; }
.skin b { font-size: 14px; margin-top: 4px; line-height: 1.2; }
.skin small { color: #7a7090; font-size: 11.5px; }
.skin small.short { color: #c0392b; }
.skin .btn { width: 100%; margin-top: 6px; padding: 8px 6px; font-size: 14px; min-height: 0; }
.skin .btn.gold { background: #f6c445; color: #4a3200; box-shadow: 0 3px 0 #c99a1e; }

/* ---------- bảng quảng cáo YouTube ở sân và màn ảnh trong hội trường: khung video nằm sau canvas 3D, bẻ phối cảnh cho khớp mặt bảng ---------- */
.medialayer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.medialayer.front { z-index: 2; }
.mediabox { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #000 center / cover no-repeat; overflow: hidden; will-change: transform; }
.mediabox iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.medialayer.front .mediabox iframe { pointer-events: auto; }
.mediaph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; color: #fff; background: linear-gradient(135deg, #ff5a4d, #c4162f 50%, #5b0f2c); animation: mediaph 4s ease-in-out infinite alternate; }
.mediaph b { width: 92px; height: 64px; border-radius: 18px; background: #ff2b3d; display: grid; place-items: center; font-size: 34px; padding-left: 6px; box-shadow: 0 6px 20px #0006; }
.mediaph span { font: 800 30px/1.2 var(--head); max-width: 560px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mediaph small { font-size: 16px; opacity: .85; max-width: 480px; }
@keyframes mediaph { from { filter: brightness(.9); } to { filter: brightness(1.15); } }
.dcard.aula { border-color: #8a5fd6; background: #f3edff; } .dcard.aula small { color: #5a36a8; }
.dcard.aula.live { border-color: #d9574a; background: #fff0ee; } .dcard.aula.live small { color: #b23a2e; }
.door.aula.live { outline: 2px solid #d9574a; } .door.aula.live span i { background: #d9574a; animation: evlive 1.2s infinite; }
@keyframes evlive { 50% { opacity: .25; } }
.flyer.event i { background: linear-gradient(90deg, #d9574a, #f6c81c); }
.flyer.event em { display: block; font-style: normal; font-size: 44px; line-height: 1; margin-bottom: 6px; }
.panel.ap { height: 206px; }
.ap .content { overflow-y: auto; gap: 9px; }
.aacts { flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.aacts button { display: grid; justify-items: center; gap: 2px; min-height: 58px; padding: 7px 4px; border-radius: 16px; background: var(--panel2); font-weight: 700; font-size: 12.5px; color: var(--ink); box-shadow: 0 3px 0 var(--line); }
.aacts button i { font-style: normal; font-size: 21px; line-height: 1; }
.aacts button:active { transform: translateY(3px); box-shadow: none; }
.aacts button.on { background: var(--accent); color: #fff; box-shadow: 0 3px 0 #0b6a35; }
.aulascr .sndbtn { bottom: 34px; }
.aulascr .stage-host { background: #16090b; }
@media (min-width: 900px) and (min-height: 540px) and (orientation: landscape) { .panel.ap { height: auto; } .aulascr .sndbtn { bottom: 22px; } }
/* trang quản trị: thẻ Màn hình và sự kiện */
.aname.wide { margin-bottom: 8px; }
.aname input[type="datetime-local"], .aname input[type="number"] { font-variant-numeric: tabular-nums; }
.evform { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.evform .aname { min-width: 0; }
.evrow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
@media (max-width: 520px) { .evrow { grid-template-columns: minmax(0, 1fr); gap: 0; } .evrow .aname { margin-bottom: 8px; } }
.evtype { display: grid; gap: 6px; padding: 10px 12px 12px 14px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); margin-bottom: 8px; }
.evtype > span { font-size: 12.5px; font-weight: 700; color: var(--mute); }
.evform .cqnote { margin: 0 0 4px; font-size: 13px; font-weight: 700; } .evform .cqnote.bad { color: var(--bad); }
.evst { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 10px; background: var(--gold-soft); color: #5c5000; }
.evst.live { background: #ffe1dd; color: #b23a2e; } .evst.past { background: #eee; color: #666; }
.lead.aev.live { border-left-color: #d9574a; } .lead.aev.past { opacity: .7; border-left-color: #bbb; }
.anamebar { flex-wrap: wrap; }
.wpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 2px; }
.wpick button { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border-radius: 14px; border: 2px solid #dfe7d3; background: #f5f9ee; font: inherit; font-weight: 700; color: #29402f; cursor: pointer; }
.wpick button i { font-style: normal; font-size: 24px; line-height: 1.1; }
.wpick button.on { border-color: #0a8a4a; background: #e2f5d8; box-shadow: 0 2px 0 #0a8a4a; }
@media (max-width: 420px) { .wpick button span { font-size: 12px; } }
/* ---------- Giáng sinh: lịch Advent, túi quà, cây thông ---------- */
.dcard.xmas { border-color: #c8323a; background: #fff3f1; } .dcard.xmas small { color: #a3242c; }
.dcard.xmas.live { border-color: #f2b21c; background: #fff7dc; }
.door.xmas { background: #fff0ee; } .door.xmas small { color: #a3242c; }
.door.xmas.live { outline: 2px solid #d8343a; } .door.xmas.live span i { background: #d8343a; animation: evlive 1.2s infinite; }
.xmas h3 { margin: 18px 0 8px; } .xmas h3 small { font-weight: 600; color: #6b7a70; margin-left: 6px; } .xmas h4 { margin: 12px 0 6px; font-size: 14px; color: #3d5245; }
.xnote { margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; background: #eef6e6; font-weight: 600; color: #24402e; }
.xnote.claim { background: #fff3c4; color: #6b4a00; } .xnote.lost { background: #fde6e4; color: #8a1f1f; } .xnote.play { background: #e6f1ff; color: #1e3f73; }
.xclaim { width: 100%; margin-bottom: 12px; }
.xgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; }
.xcell { position: relative; aspect-ratio: 1; border-radius: 14px; background: #a3242c; color: #fff; display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.xcell small { position: absolute; top: 4px; left: 7px; font-weight: 800; font-size: 12px; opacity: .9; } .xcell i { font-style: normal; font-size: 24px; opacity: .55; }
.xcell.got { background: #1f9d55; } .xcell.got i { opacity: 1; }
.xcell.today { background: #fff; color: #a3242c; outline: 3px solid #f2b21c; } .xcell.ready { background: #f6c81c; color: #5a3d00; animation: pop .5s ease-in-out infinite alternate; } .xcell.ready i { opacity: 1; }
.xcell.miss, .xcell.gone { background: #d9dedb; color: #7c8780; box-shadow: none; }
.xbag { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.xbag button { display: grid; justify-items: center; gap: 1px; padding: 10px 6px 8px; border-radius: 16px; border: 2px solid #dfe7d3; background: #fff; font: inherit; color: #24402e; cursor: pointer; text-align: center; }
.xbag button i { font-style: normal; font-size: 30px; line-height: 1.15; } .xbag button b { font-size: 13px; line-height: 1.2; } .xbag button small { font-size: 11px; color: #6b7a70; }
.xbag button em { font-style: normal; font-size: 11.5px; font-weight: 700; margin-top: 4px; padding: 2px 10px; border-radius: 99px; background: #eef3e8; }
.xbag button.on { border-color: #0a8a4a; background: #e2f5d8; } .xbag button.on em { background: #0a8a4a; color: #fff; }
.xcards, .xmates { display: grid; gap: 8px; } .xmates { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.xcard { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 2px solid #dfe7d3; background: #fff; font: inherit; text-align: left; cursor: pointer; color: #24402e; }
.xcard i { font-style: normal; font-size: 30px; } .xcard span { display: grid; min-width: 0; } .xcard small { color: #6b7a70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xcard em { font-style: normal; font-weight: 700; font-size: 12.5px; padding: 4px 12px; border-radius: 99px; background: #eef3e8; } .xcard.new { border-color: #d8343a; background: #fff3f1; } .xcard.new em { background: #d8343a; color: #fff; }
.xmates button { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; border: 2px solid #dfe7d3; background: #fff; font: inherit; cursor: pointer; color: #24402e; }
.xmates button i { font-style: normal; font-size: 28px; } .xmates button small { font-size: 11.5px; color: #0a8a4a; font-weight: 700; } .xmates button:disabled { opacity: .55; } .xmates button:disabled small { color: #6b7a70; }
.xto { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.xmsg { display: grid; gap: 6px; } .xmsg span { font-size: 13px; font-weight: 700; color: #3d5245; }
.xmsg textarea { font: inherit; padding: 12px 14px; border-radius: 16px; border: 2px solid #dfe7d3; resize: vertical; min-height: 84px; background: #fff; }
.xmas .btn.primary { width: 100%; margin-top: 12px; }
.xgift { display: grid; justify-items: center; gap: 2px; margin-bottom: 8px; } .xgift em { font-style: normal; font-size: 72px; line-height: 1.1; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.xgift small { color: #a3242c; font-weight: 700; } .xgift b { font-size: 24px; } .xgift span { color: #5a6a60; }
/* trang quản trị: lời giáo vụ */
.mtabs:has(> :nth-child(5)) { grid-template-columns: repeat(6, 1fr); }
.mtabs:has(> :nth-child(5)) button { grid-column: span 2; font-size: 12.5px; line-height: 1.15; padding: 0 4px; }
.mtabs:has(> :nth-child(5)) button:nth-child(-n+2) { grid-column: span 3; }
.arms { display: grid; gap: 8px; margin-bottom: 10px; }
.arm { display: grid; gap: 8px; padding: 10px 12px 12px 14px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.armhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--mute); }
.armhead label { display: inline-flex; align-items: center; gap: 6px; }
.armhead select { height: 36px; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 700 14px var(--body); padding: 0 6px; }
.armhead .del { margin-left: auto; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--panel2); color: #b3261e; font-weight: 700; font-size: 12.5px; }
.arm textarea { width: 100%; box-sizing: border-box; min-height: 62px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 500 15.5px/1.4 var(--body); padding: 8px 12px; resize: vertical; user-select: text; -webkit-user-select: text; }
.arm textarea:focus, .armhead select:focus { outline: none; border-color: var(--brand); }
.armhear { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.armhear span { padding: 5px 10px; border-radius: 12px; background: var(--panel2); font-size: 12px; color: var(--mute); }
.armhear b { margin-right: 5px; color: var(--ink); }
.anamebar small.warn { color: #b3261e; }
.anamebar .pillbtn:disabled { opacity: .5; }

/* phòng bổ túc: câu tự luận và lời nhắc dưới câu hỏi (bộ câu do trang quản trị soạn) */
.tq i { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.ttext { flex: none; width: 100%; min-height: 86px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 500 15.5px/1.4 var(--body); padding: 10px 13px; resize: vertical; user-select: text; -webkit-user-select: text; }
.ttext:focus { border-color: var(--accent); outline: 0; }
.tnote { flex: none; font-size: 12px; color: var(--mute); text-align: right; margin-top: -4px; }

/* ---------- xem lại đáp án sau mỗi hiệp, sổ ghi chú ---------- */
.review { z-index: 8; }
.rvbtn { flex: none; min-height: 44px; font-size: 15px; background: var(--accent); color: #fff; box-shadow: 0 4px 0 #014d37; }
.rvlive { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--gold-soft); border-bottom: 2px solid var(--gold-deep); padding-top: 8px; padding-bottom: 8px; font-size: 13px; font-weight: 700; color: #5c5000; }
.rvlive button { flex: none; background: var(--brand); color: #fff; border-radius: 12px; padding: 8px 12px; font: 800 14px var(--head); box-shadow: 0 3px 0 var(--brand-deep); }
.rvlist { display: flex; flex-direction: column; gap: 12px; }
.rvcard { background: var(--panel); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); border-left: 6px solid var(--panel3); }
.rvcard.good { border-left-color: var(--ok); }
.rvcard.miss { border-left-color: var(--bad); }
.rvcard header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.rvn { font: 800 15px var(--head); }
.rvd { background: var(--panel2); color: var(--mute); border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.rvs { margin-left: auto; font-style: normal; font-weight: 800; color: var(--mute); }
.rvs.ok { color: var(--ok); } .rvs.bad, .rvs.miss { color: var(--bad); }
.rvq { margin: 7px 0 8px; font: 700 16.5px/1.35 var(--body); overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.rvo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rvo li { display: flex; align-items: center; gap: 8px; background: var(--panel2); border-radius: 12px; padding: 7px 10px; font-size: 14.5px; line-height: 1.3; user-select: text; -webkit-user-select: text; }
.rvo li small { flex: none; width: 22px; height: 22px; border-radius: 7px; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--mute); }
.rvo li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rvo li b { flex: none; font-size: 11.5px; }
.rvo li.right { background: #dff5e6; color: #0a5a2c; box-shadow: inset 0 0 0 2px var(--ok); }
.rvo li.right small { background: var(--ok); color: #fff; }
.rvo li.wrong { background: #fde4df; color: #8a2414; box-shadow: inset 0 0 0 2px var(--bad); }
.rvo li.wrong small { background: var(--bad); color: #fff; }
.rvex { margin: 9px 0 0; background: var(--gold-soft); border-radius: 12px; padding: 8px 10px; font-size: 14px; line-height: 1.4; user-select: text; -webkit-user-select: text; }
.rvex b { display: block; font-size: 12px; color: #5c5000; margin-bottom: 2px; }
.rvnote { display: block; margin-top: 9px; }
.rvnote span { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--mute); margin-bottom: 4px; }
.rvnote span i { font-style: normal; color: var(--ok); }
.rvnote textarea { width: 100%; min-height: 54px; resize: vertical; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 500 16px/1.35 var(--body); padding: 8px 10px; user-select: text; -webkit-user-select: text; }
.rvnote textarea:focus { border-color: var(--accent); outline: 0; }

/* ---------- màn kết hiệp 3D ở phòng thách đấu, thẻ chia sẻ chiến tích ---------- */
@media not all and (min-width: 900px) and (min-height: 540px) and (orientation: landscape) { .panel.pod.dpod { height: min(360px, calc(100dvh - 300px)); } }
.podbtns { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.podbtns .btn { min-height: 44px; font-size: 14.5px; padding: 0 8px; }
.bragbtn { background: linear-gradient(180deg, #ffd84a, #f2b705); color: #3a2600; box-shadow: 0 4px 0 #a8740f; font-weight: 800; }
.dres { flex: none; margin: 0; padding: 6px 12px; border-radius: 12px; background: var(--panel2); font-size: 14px; }
.dres.top { background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold-deep); }
.finreplay { position: absolute; left: var(--gr); bottom: 34px; height: 40px; padding: 0 14px; border-radius: 20px; background: rgba(255, 255, 255, .92); font: 800 13.5px var(--head); color: var(--ink, #10231a); box-shadow: var(--shadow); z-index: 3; }
.ov.bubble.yeah { background: #ffd84a; color: #3a2600; font-weight: 800; }
.ov.bubble.huhu { background: #dff1ff; color: #1d4a72; font-weight: 800; }
.brag { z-index: 9; }
.brag .shotbody img.shot { aspect-ratio: 4 / 5; }
/* cô giáo bắt quả tang số điện thoại bịa */
.tlie { flex: none; display: flex; align-items: center; gap: 10px; background: #fde8e6; border: 2px solid #e0453a; color: #a3231a; border-radius: 14px; padding: 10px 12px; animation: tlieShake .45s ease 1; }
.tlie b { flex: 1; font-size: 14.5px; line-height: 1.4; }
.tlie span { flex: none; background: #e0453a; color: #fff; font-weight: 800; border-radius: 999px; padding: 4px 10px; font-size: 14px; white-space: nowrap; }
@keyframes tlieShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- báo cáo tiến bộ tuần ---------- */
.wrep { max-width: 760px; margin: 0 auto; width: 100%; }
.wrep h3 { font: 800 15px/1.2 var(--head); margin: 20px 0 8px; }
.wgrade { display: flex; gap: 12px; align-items: center; background: var(--panel); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); border-left: 6px solid var(--mute); }
.wgrade i { font-style: normal; font-size: 34px; }
.wgrade b { display: block; font: 800 19px/1.2 var(--head); }
.wgrade span { font-size: 13px; color: var(--mute); line-height: 1.4; }
.wgrade.up2, .wgrade.up { border-color: var(--ok); background: #eaf7ee; }
.wgrade.down { border-color: var(--bad); background: #fdf0ed; }
.wgrade.new, .wgrade.steady { border-color: var(--gold-deep); background: var(--gold-soft); }
.wtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .wtiles { grid-template-columns: repeat(3, 1fr); } }
.wtile { background: var(--panel); border-radius: 18px; padding: 11px 13px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; }
.wtile i { grid-row: 1 / 3; font-style: normal; font-size: 24px; }
.wtile b { font: 800 20px/1.1 var(--head); font-variant-numeric: tabular-nums; }
.wtile span { font-size: 11.5px; color: var(--mute); font-weight: 600; line-height: 1.25; }
.wtile .wd { grid-column: 1 / 3; margin-top: 6px; }
.wd { font-style: normal; font-size: 11.5px; font-weight: 700; }
.wd.up { color: var(--ok); } .wd.down { color: var(--bad); } .wd.flat { color: var(--mute); font-weight: 600; }
.wdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; background: var(--panel); border-radius: 18px; padding: 12px 12px 8px; box-shadow: var(--shadow); }
.wdays > div { text-align: center; }
.wdays small { font-size: 11px; color: var(--mute); font-weight: 700; }
.wcol { height: 74px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 2px solid var(--line); }
.wcol s, .wcol u { display: block; width: 38%; max-width: 16px; min-height: 2px; border-radius: 4px 4px 0 0; text-decoration: none; }
.wcol s, .wleg s { background: var(--ok); } .wcol u, .wleg u { background: var(--panel3); }
.wleg { font-size: 11.5px; color: var(--mute); margin: 8px 0 0; }
.wleg s, .wleg u { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 3px 0 6px; vertical-align: -1px; }
.wleg u.mark { width: 3px; height: 12px; background: var(--ink); margin-left: 0; }
.wchips { display: flex; flex-wrap: wrap; gap: 8px; }
.wchip { background: var(--panel); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.wchip small { color: var(--mute); font-weight: 600; margin-left: 3px; }
.wchips.up .wchip b { color: var(--ok); margin-left: 6px; } .wchips.weak .wchip b { color: var(--bad); margin-left: 6px; }
.wtopics { display: flex; flex-direction: column; gap: 8px; }
.wtopic { background: var(--panel); border-radius: 16px; padding: 10px 13px; box-shadow: var(--shadow); }
.wt-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 13.5px; }
.wt-h small { color: var(--mute); font-weight: 600; margin-left: 4px; } .wt-h span { color: var(--mute); font-size: 12px; font-weight: 700; white-space: nowrap; }
.wbar { position: relative; height: 9px; border-radius: 6px; background: var(--panel3); margin: 7px 0 5px; }
.wbar s { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--ok); }
.wbar u { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.wrep > .btn { margin-top: 16px; width: 100%; }

/* ---------- mời bạn vào phòng thách đấu ---------- */
.qr { display: block; width: min(210px, 62vw); height: auto; margin: 12px auto 10px; border-radius: 14px; border: 2px solid var(--line); }
.invlink { background: var(--panel2); border: 1.5px dashed var(--line); border-radius: 12px; padding: 9px 10px; font: 700 13px/1.35 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; user-select: all; -webkit-user-select: all; }
.invnote { background: var(--gold-soft); border: 2px solid var(--gold-deep); border-radius: 16px; padding: 10px 12px; margin-bottom: 14px; text-align: left; line-height: 1.35; }
.invnote b { display: block; font: 800 15px/1.25 var(--head); color: #5c5000; }
.invnote span { font-size: 13px; color: var(--mute); }

/* ---------- Hội làng: Kéo co phát âm ---------- */
.door.fest { border-top-color: #3b6fb6 !important; background: #eaf1fb; }
.dcard.fest { border-color: #3b6fb6; background: #eaf1fb; }
.frows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; overflow: auto; }
.frow { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 8px; align-items: center; background: var(--panel2); border-radius: 14px; padding: 6px 8px; }
.frow > i { font-style: normal; font-size: 24px; text-align: center; }
.frow b { display: block; font: 800 15px/1.15 var(--head); } .frow small { color: var(--mute); font-size: 11.5px; }
.frow .btn.sm { min-height: 34px; width: auto; font-size: 14px; padding: 0 12px; border-radius: 12px; }
.frow.dim > div { opacity: .7; }
.iconbtn.sm { width: 32px; height: 32px; font-size: 15px; }
.r18 { display: inline-block; font: 800 10.5px/1 var(--head); font-style: normal; color: #fff; background: #d8452f; border-radius: 6px; padding: 3px 5px 2px; vertical-align: 1px; }
.r18big { width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 50%; border: 6px solid #d8452f; color: #d8452f; font: 800 28px/64px var(--head); text-align: center; }
.dbox h3 { margin: 0 0 6px; font: 800 19px var(--head); text-align: center; }
.r18line { background: #fdecea; border-radius: 10px; padding: 6px 8px; }
.finfo .fhead { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.finfo .fhead i { font-style: normal; font-size: 34px; } .finfo .fhead b { display: block; font: 800 20px/1.1 var(--head); } .finfo .fhead small { color: var(--mute); }
.fcols { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow: auto; }
.fcols p { text-align: left; font-size: 14px; line-height: 1.55; }
.fcols p[lang=en] { color: var(--mute); }
.finfo .row { display: flex; gap: 8px; margin-top: 10px; } .finfo .row .btn { flex: 1; font-size: 15px; }
@media (min-width: 640px) { .fcols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-height: none; } .finfo .dbox, .dbox:has(.finfo) { max-width: 760px; } }

.festscr .fscore { font: 800 22px var(--head); display: flex; gap: 4px; align-items: center; }
.fscore .g, .fzo .g { color: #14883f; } .fscore .y, .fzo .y { color: #b98a00; }
.fzo { position: absolute; z-index: 2; top: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.88); border-radius: 999px; padding: 3px 12px; font: 800 17px var(--head); box-shadow: var(--shadow); }
.fzo span { min-width: 40px; text-align: center; color: var(--ink); }
.fzo b.bump { animation: fbump .3s; }
.panel.fp { height: 360px; }
.panel.fp .content { overflow: auto; }
.fword { display: grid; grid-template-columns: 1fr auto; align-items: center; background: #fffbe6; border: 2px solid #f2b705; border-radius: 16px; padding: 6px 12px; }
.fword small { grid-column: 1 / -1; color: var(--mute); font-size: 11.5px; }
.fword b { font: 800 30px/1.1 var(--head); min-width: 0; overflow-wrap: anywhere; } .fword b em { font-style: normal; color: #d8452f; }
.fword span { grid-column: 1; color: var(--mute); font-size: 13px; } .fword .iconbtn { grid-column: 2; grid-row: 2 / 4; }
.fmic { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--panel2); border-radius: 16px; padding: 8px 10px; }
.fmic b { display: block; font-size: 14px; } .fmic small { display: block; color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.micbig { width: 54px; height: 54px; border-radius: 50%; background: #fff; font-size: 26px; box-shadow: var(--lift); }
.fmic.on .micbig { background: #d8452f; animation: fpulse 1.2s infinite; }
.myzo { font: 800 20px var(--head); color: var(--brand); }
.fcheer { display: flex; gap: 6px; justify-content: center; }
.fcheer button { width: 44px; height: 38px; border-radius: 12px; background: var(--panel2); font-size: 20px; box-shadow: var(--lift); }
.fcheer button:active { transform: translateY(2px); box-shadow: none; }
.froster { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.froster ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.froster li { display: flex; justify-content: space-between; padding: 2px 8px; border-radius: 8px; }
.froster li.h { font: 800 14px var(--head); } .froster .g li.h { color: #14883f; } .froster .y li.h { color: #a87800; }
.froster li.me { background: var(--gold-soft); font-weight: 700; } .froster li span { font-weight: 700; }
.fres { display: flex; flex-direction: column; gap: 4px; background: var(--panel2); border-radius: 16px; padding: 10px 12px; }
.fres.won { background: var(--accent-soft); } .fres > b { font: 800 19px/1.2 var(--head); } .fres small { color: var(--mute); }
.tip.big { font-size: 17px; text-align: center; }
.zopop { position: absolute; font: 700 13px/1 var(--head); pointer-events: none; white-space: nowrap; color: #0d5c2b; background: rgba(255,255,255,.7); border: 1px solid rgba(20,136,63,.35); border-radius: 999px; padding: 3px 7px 2px; animation: zo 1.4s ease-out forwards; } /* bong bóng nhỏ, nhẹ, bay lên rồi tan */
.zopop.y { color: #8a6500; border-color: rgba(242,183,5,.5); }
.zopop small { font-size: .85em; margin-left: 2px; font-weight: 600; }
.zopop.me { font-size: 15px; background: rgba(255,255,255,.88); border-color: rgba(20,136,63,.6); z-index: 2; }
.zochant { position: absolute; transform: translate(-50%, -100%); background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 1px 8px; font: 800 15px var(--head); white-space: nowrap; pointer-events: none; animation: zch 1.4s ease-out forwards; }
.zochant.g { color: #0d5c2b; } .zochant.y { color: #a87800; } .zochant.e { font-size: 22px; border: 0; background: none; }
@keyframes zo { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 15% { transform: translate(-50%, -6px) scale(1); opacity: .95; } 100% { transform: translate(calc(-50% + 6px), -70px) scale(.85); opacity: 0; } }
@keyframes zring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes zch { 0% { opacity: 0; transform: translate(-50%, -80%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -100%) scale(1.1); } 25% { transform: translate(-50%, -100%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -150%); } }
@keyframes fpulse { 50% { box-shadow: 0 0 0 10px rgba(216, 69, 47, .25); } }
@keyframes fbump { 40% { transform: scale(1.25); } }
@media (min-width: 900px) { .panel.fp { height: auto; } }
.zo1 { font-style: normal; font-weight: 800; color: var(--brand); }

/* Hội Thao: danh sách gọn lúc đang chơi để điện thoại thấy đủ người; thanh đo của trò mỗi người một chỗ */
.froster.sm li { padding: 0 6px; font-size: 12px; line-height: 1.3; } .froster.sm li.h { font-size: 13px; }
.fcheer.sm button { height: 32px; width: 40px; font-size: 17px; }
.froster.one { grid-template-columns: 1fr; }
.froster li.x { opacity: .5; text-decoration: line-through; }
.froster .fbar { flex: 1; display: block; height: 7px; margin: 0 8px; align-self: center; background: var(--panel2); border-radius: 4px; overflow: hidden; }
.froster .fbar i { display: block; height: 100%; background: #14883f; border-radius: 4px; transition: width .4s; }
.froster .fbar.out i { background: #c9c9c9; }
.festscr .fscore small { font: 600 11px var(--body, sans-serif); color: var(--mute); margin-left: 4px; }
.festscr .fzo b { white-space: nowrap; }
/* thanh thế trận của trò đấu đôi: nút đỏ trượt giữa hai vạch thắng */
.ften { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); width: min(70%, 360px); display: flex; align-items: center; gap: 6px; pointer-events: none; }
.ften > div { position: relative; flex: 1; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #14883f 0 12%, rgba(255,255,255,.85) 12% 88%, #f2b705 88%); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ften em { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #fff6c2; }
.ften i { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #e2372b; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: left .25s ease-out; }
.ften span { font-size: 14px; }
