/* ============================================================
   DataVault — Kuis Langsung (gabung.html = HP siswa, kelas-live.html = layar guru)
   Mobile-first. Teks selalu terbaca (kontras >= 4,5:1). Font: Plus Jakarta Sans + Sora.
   ============================================================ */
:root { --lv-ink: #FFFFFF; --lv-mut: #C7D2FE; --lv-dark: #1E1B4B; --lv-gold: #FACC15; --lv-ok: #16A34A; --lv-bad: #DC2626; --lv-font: 'Plus Jakarta Sans', 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; --lv-fd: 'Sora', 'Plus Jakarta Sans', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.lv { font-family: var(--lv-font); color: var(--lv-ink); min-height: 100vh; min-height: 100dvh; background: linear-gradient(160deg, #1E1B4B 0%, #3730A3 55%, #5B21B6 100%); background-attachment: fixed; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
.lv h1, .lv h2, .lv h3 { font-family: var(--lv-fd); margin: 0; color: inherit; letter-spacing: -.01em; line-height: 1.25; }
.lv [hidden] { display: none !important; }
.lv-wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.lv-wrap.wide { max-width: 1180px; }
.lv-center { text-align: center; }
.lv-grow { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.lv-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-family: var(--lv-fd); color: #fff; text-decoration: none; margin-bottom: 14px; }
.lv-brand img { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 3px; }
.lv-card { background: #fff; color: #1E1B4B; border-radius: 22px; padding: 20px; box-shadow: 0 14px 40px rgba(0, 0, 0, .28); }
.lv-card h2 { color: #1E1B4B; }
.lv-card p { color: #4B5563; margin: 8px 0 0; line-height: 1.55; }
.lv-label { display: block; font-size: 13px; font-weight: 800; color: #4338CA; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.lv-in { width: 100%; font: inherit; font-size: 22px; font-weight: 800; padding: 14px 16px; border-radius: 14px; border: 3px solid #E0E7FF; background: #fff; color: #1E1B4B; text-align: center; outline: none; }
.lv-in:focus { border-color: #6366F1; box-shadow: 0 0 0 4px rgba(99, 102, 241, .25); }
.lv-in.pin { letter-spacing: .3em; font-size: 30px; }
.lv-btn { appearance: none; border: 0; font: inherit; font-weight: 800; font-size: 18px; padding: 16px 22px; border-radius: 16px; background: var(--lv-gold); color: #1F1300; cursor: pointer; width: 100%; box-shadow: 0 5px 0 #A16207; transition: transform .1s, box-shadow .1s; touch-action: manipulation; }
.lv-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #A16207; }
.lv-btn:disabled { opacity: .65; cursor: not-allowed; box-shadow: none; }
.lv-btn.alt { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; border: 2px solid rgba(255, 255, 255, .35); }
.lv-btn.danger { background: #B91C1C; color: #fff; box-shadow: 0 5px 0 #7F1D1D; }
.lv-btn.small { width: auto; font-size: 15px; padding: 11px 16px; box-shadow: none; }
.lv-err { background: #FEE2E2; color: #7F1D1D; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 15px; margin-top: 12px; }
.lv-note { color: var(--lv-mut); font-size: 14px; line-height: 1.5; }
.lv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 800; font-size: 14px; }

/* ---- karakter ---- */
.lv-av { --c: #6366F1; --s: 64px; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .45), transparent 55%), var(--c); display: inline-grid; place-items: center; font-size: calc(var(--s) * .55); line-height: 1; box-shadow: 0 6px 14px rgba(0, 0, 0, .3), inset 0 -4px 0 rgba(0, 0, 0, .18); flex: 0 0 auto; user-select: none; }
.lv-avgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 14px; }
.lv-avopt { appearance: none; border: 3px solid transparent; background: #EEF2FF; border-radius: 18px; padding: 8px 4px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; color: #312E81; font-size: 12px; font-weight: 800; touch-action: manipulation; }
.lv-avopt .lv-av { --s: 52px; }
.lv-avopt[aria-pressed="true"] { border-color: #4F46E5; background: #E0E7FF; transform: scale(1.06); box-shadow: 0 6px 16px rgba(79, 70, 229, .35); }
.lv-bounce { animation: lv-bounce 1.6s ease-in-out infinite; }
@keyframes lv-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---- penghitung waktu ---- */
.lv-timer { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.lv-timer > i { display: block; height: 100%; width: 100%; border-radius: 999px; background: #34D399; transition: background .3s; }
.lv-timer > i.low { background: #F87171; }
.lv-qhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-weight: 800; }
.lv-secs { font-family: var(--lv-fd); font-size: 22px; min-width: 2.2ch; text-align: right; }
.lv-qtext { background: #fff; color: #1E1B4B; border-radius: 18px; padding: 16px 18px; font-weight: 800; font-size: clamp(1.05rem, 4.4vw, 1.4rem); line-height: 1.4; margin: 12px 0; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.lv-count { font-family: var(--lv-fd); font-weight: 800; font-size: clamp(5rem, 28vw, 9rem); line-height: 1; animation: lv-pop .6s ease; }

/* ---- tombol jawaban ---- */
.lv-opts { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lv-ans { appearance: none; border: 0; font: inherit; color: #fff; background: var(--c, #4F46E5); border-radius: 18px; min-height: 76px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; text-align: left; font-weight: 800; font-size: clamp(1.05rem, 4.6vw, 1.35rem); line-height: 1.25; cursor: pointer; box-shadow: 0 6px 0 rgba(0, 0, 0, .28); touch-action: manipulation; transition: transform .1s, box-shadow .1s, opacity .25s; overflow-wrap: anywhere; }
.lv-ans:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.lv-ans .sh { flex: 0 0 auto; font-size: 30px; width: 42px; text-align: center; }
.lv-ans.dark { color: #1F1300; }
.lv-ans:disabled { cursor: default; }
.lv-ans.dim { background: #475569; color: #fff; box-shadow: none; opacity: .92; }      /* pilihan lain diredupkan lewat warna abu-abu (teks tetap terbaca), bukan lewat transparansi */
.lv-ans.dim.dark { color: #fff; }
.lv-ans.pick { outline: 5px solid #fff; outline-offset: 2px; }
.lv-ans.right { outline: 5px solid #fff; box-shadow: 0 0 0 9px rgba(52, 211, 153, .55); animation: lv-pop .5s ease; }
.lv-ans .cnt { margin-left: auto; font-family: var(--lv-fd); font-size: 1.4em; background: rgba(0, 0, 0, .25); border-radius: 12px; padding: 2px 12px; }
.lv-ans.dark .cnt { background: rgba(0, 0, 0, .15); }

/* ---- hasil per soal ---- */
.lv-res { text-align: center; border-radius: 26px; padding: 22px 16px; color: #fff; }
.lv-res.ok { background: linear-gradient(160deg, #15803D, #166534); }
.lv-res.bad { background: linear-gradient(160deg, #B91C1C, #7F1D1D); }
.lv-res.none { background: linear-gradient(160deg, #475569, #334155); }
.lv-res .big { font-size: 74px; line-height: 1; display: inline-block; animation: lv-pop .6s ease; }
.lv-res.bad .big { animation: lv-shake .6s ease; }
.lv-res h2 { font-size: 26px; margin: 6px 0 2px; color: #fff; }
.lv-pts { font-family: var(--lv-fd); font-weight: 800; font-size: 64px; line-height: 1.1; margin: 4px 0; color: #FDE047; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.lv-break { font-size: 15px; font-weight: 700; color: #F1F5F9; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.lv-break span { background: rgba(0, 0, 0, .25); border-radius: 999px; padding: 4px 12px; }
.lv-flame { display: inline-block; animation: lv-flame .8s ease-in-out infinite alternate; }
.lv-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.lv-stat > div { background: rgba(0, 0, 0, .24); border-radius: 16px; padding: 10px; }
.lv-stat b { display: block; font-family: var(--lv-fd); font-size: 26px; color: #fff; }
.lv-stat small { color: #fff; font-weight: 700; }
.lv-move { font-weight: 800; color: #fff; display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .3); }   /* arah ditandai panah ▲ ▼ (bukan hanya warna) */
.lv-why { background: #fff; color: #1E1B4B; border-radius: 14px; padding: 10px 14px; margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: left; }
.lv-why b { color: #4338CA; }

/* ---- peringkat ---- */
.lv-board { display: flex; flex-direction: column; gap: 10px; }
.lv-row { position: relative; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .14); border-radius: 16px; padding: 10px 14px; overflow: hidden; animation: lv-slide .5s ease both; animation-delay: calc(var(--i, 0) * 90ms); }
.lv-row::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: linear-gradient(90deg, rgba(67, 56, 202, .92), rgba(67, 56, 202, .3)); transition: width 1s ease .2s; }
.lv-row > * { position: relative; }
.lv-row .rk { font-family: var(--lv-fd); font-weight: 800; font-size: 22px; width: 1.6ch; color: #FDE047; }
.lv-row .nm { flex: 1; min-width: 0; font-weight: 800; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.lv-row .sc { font-family: var(--lv-fd); font-weight: 800; font-size: 20px; color: #fff; }
.lv-row.me { outline: 3px solid #FDE047; }
.lv-row .lv-av { --s: 40px; }
.lv-pod { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 16px 0 6px; min-height: 270px; }
.lv-pod .col { display: flex; flex-direction: column; align-items: center; width: 31%; max-width: 190px; animation: lv-rise .9s ease both; }
.lv-pod .col .nm { font-weight: 800; margin: 6px 0 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.lv-pod .col .sc { font-family: var(--lv-fd); font-weight: 800; color: #FEF9C3; margin-bottom: 6px; }
.lv-pod .bar { width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: start center; padding-top: 10px; font-family: var(--lv-fd); font-weight: 800; font-size: 34px; color: #1F1300; }
.lv-pod .p1 .bar { height: 150px; background: linear-gradient(#FDE047, #EAB308); } .lv-pod .p2 .bar { height: 110px; background: linear-gradient(#E2E8F0, #94A3B8); } .lv-pod .p3 .bar { height: 80px; background: linear-gradient(#FDBA74, #F97316); color: #1F1300; }
.lv-pod .p2 { animation-delay: .5s; } .lv-pod .p1 { animation-delay: 1.1s; } .lv-pod .p3 { animation-delay: .1s; }
.lv-pod .p1 .lv-av { --s: 84px; }
.lv-conf { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.lv-conf i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: lv-fall linear forwards; }

/* ---- layar guru ---- */
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lv-top .lv-pill b { font-family: var(--lv-fd); letter-spacing: .08em; }
.lv-pinbox { text-align: center; }
.lv-pinbox .l { font-weight: 800; color: #C7D2FE; font-size: clamp(14px, 2.4vw, 20px); }
.lv-pinbox .pin { font-family: var(--lv-fd); font-weight: 800; font-size: clamp(3.4rem, 15vw, 8rem); letter-spacing: .12em; line-height: 1.1; background: #fff; color: #1E1B4B; border-radius: 26px; padding: 6px 28px; display: inline-block; margin: 8px 0; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.lv-pinbox .url { font-weight: 800; font-size: clamp(16px, 3vw, 26px); color: #FDE047; word-break: break-all; }
.lv-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 18px 0; min-height: 90px; }
.lv-pl { appearance: none; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; border-radius: 16px; padding: 8px 14px 8px 8px; display: flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; animation: lv-pop .4s ease; }
.lv-pl .lv-av { --s: 40px; }
.lv-pl.done { background: rgba(52, 211, 153, .35); }
.lv-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.lv-bar .lv-btn { width: auto; min-width: 190px; }
.lv-dist { display: grid; gap: 8px; margin-top: 12px; }
.lv-tbl { width: 100%; border-collapse: collapse; color: #fff; font-size: 15px; }
.lv-tbl th, .lv-tbl td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.lv-tbl th { color: #C7D2FE; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.lv-scroll { overflow: auto; max-height: 40vh; border-radius: 14px; background: rgba(0, 0, 0, .18); }
.lv-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #fff; color: #1E1B4B; padding: 10px 18px; border-radius: 14px; font-weight: 800; z-index: 20; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); max-width: 90vw; text-align: center; }

@keyframes lv-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@keyframes lv-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-12px); } 40% { transform: translateX(12px); } 60% { transform: translateX(-8px); } 80% { transform: translateX(8px); } }
@keyframes lv-flame { from { transform: scale(1) rotate(-6deg); } to { transform: scale(1.25) rotate(6deg); } }
@keyframes lv-slide { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lv-rise { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lv-fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (min-width: 760px) { .lv-opts.host { grid-template-columns: 1fr 1fr; } .lv-ans.host { min-height: 120px; font-size: clamp(1.2rem, 2.4vw, 2rem); } .lv-qtext.host { font-size: clamp(1.4rem, 3vw, 2.6rem); padding: 26px 30px; } }
@media (max-width: 380px) { .lv-avgrid { gap: 6px; } .lv-avopt .lv-av { --s: 44px; } .lv-pts { font-size: 52px; } }
@media (prefers-reduced-motion: reduce) { .lv *, .lv *::before { animation: none !important; transition: none !important; } }

/* ============================================================
   Tambahan: QR, jenis soal baru (susun huruf / urutkan / pasangkan), alat bantu kelas (acak siswa, kelompok, balapan)
   ============================================================ */
.lv-lobby { display: grid; gap: 22px; align-items: center; justify-items: center; }
@media (min-width: 900px) { .lv-lobby { grid-template-columns: 1.25fr 1fr; } }
.lv-qr { background: #fff; border-radius: 22px; padding: 14px; width: min(300px, 78vw); box-shadow: 0 14px 40px rgba(0, 0, 0, .3); text-align: center; color: #1E1B4B; }
.lv-qr svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.lv-qr .cap { font-weight: 800; font-size: 15px; margin-top: 8px; color: #1E1B4B; }
.lv-modal { position: fixed; inset: 0; z-index: 30; background: rgba(15, 12, 50, .92); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.lv-modal .box { width: 100%; max-width: 760px; text-align: center; }
.lv-modal .x { position: fixed; top: 12px; right: 12px; }
.lv-qr.big { width: min(86vmin, 640px); padding: 22px; }
.lv-qr.big .cap { font-size: clamp(18px, 3.4vmin, 30px); }

/* susun huruf */
.lv-clue { background: rgba(255, 255, 255, .16); border-radius: 14px; padding: 8px 14px; font-weight: 700; text-align: center; margin-bottom: 10px; color: #fff; }
.lv-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 60px; margin: 6px 0 14px; }
.lv-slot { width: 44px; height: 54px; border-radius: 12px; border: 3px dashed rgba(255, 255, 255, .5); display: grid; place-items: center; font-family: var(--lv-fd); font-weight: 800; font-size: 26px; color: #fff; background: rgba(255, 255, 255, .08); }
.lv-slot.fill { border: 3px solid #FDE047; background: rgba(250, 204, 21, .22); animation: lv-pop .25s ease; }
.lv-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px; }
.lv-tile { appearance: none; border: 0; width: 56px; height: 62px; border-radius: 14px; background: #fff; color: #1E1B4B; font: inherit; font-family: var(--lv-fd); font-weight: 800; font-size: 28px; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); cursor: pointer; touch-action: manipulation; }
.lv-tile:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.lv-tile:disabled { opacity: .3; box-shadow: none; }
.lv-tile.host { width: clamp(52px, 8vw, 96px); height: clamp(60px, 9.5vw, 112px); font-size: clamp(28px, 5vw, 60px); cursor: default; }
.lv-acts { display: flex; gap: 10px; }
.lv-acts .lv-btn { flex: 1; }
.lv-acts .lv-btn.alt { flex: 0 0 auto; width: auto; padding-left: 18px; padding-right: 18px; }
/* urutkan */
.lv-ord { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.lv-oitem { appearance: none; border: 0; text-align: left; font: inherit; font-weight: 800; font-size: clamp(1rem, 4.2vw, 1.2rem); background: #fff; color: #1E1B4B; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); cursor: pointer; touch-action: manipulation; overflow-wrap: anywhere; }
.lv-oitem .no { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #E0E7FF; color: #3730A3; font-family: var(--lv-fd); font-size: 20px; }
.lv-oitem.on { background: #FEF08A; box-shadow: 0 5px 0 #A16207; }
.lv-oitem.on .no { background: #1E1B4B; color: #FDE047; }
.lv-oitem.host { cursor: default; font-size: clamp(1.1rem, 2.2vw, 1.7rem); }
/* pasangkan */
.lv-mrow { background: #fff; color: #1E1B4B; border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; box-shadow: 0 5px 0 rgba(0, 0, 0, .22); }
.lv-mrow b { font-size: 1.05rem; overflow-wrap: anywhere; }
.lv-mrow select { width: 100%; font: inherit; font-weight: 700; font-size: 16px; padding: 10px; border-radius: 12px; border: 2px solid #C7D2FE; background: #fff; color: #1E1B4B; }
.lv-mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lv-mcols > div { display: flex; flex-direction: column; gap: 8px; }
.lv-mcols .c { background: #fff; color: #1E1B4B; border-radius: 14px; padding: 12px 14px; font-weight: 800; font-size: clamp(1rem, 2vw, 1.5rem); }
.lv-mcols .c.r { background: #FEF08A; }
/* solusi, ringkasan */
.lv-sol { background: #fff; color: #1E1B4B; border-radius: 16px; padding: 12px 16px; margin-top: 12px; text-align: left; font-weight: 700; line-height: 1.5; }
.lv-sol b { color: #4338CA; }
.lv-sol ol { margin: 6px 0 0; padding-left: 22px; } .lv-sol li { margin: 2px 0; }
.lv-res.part { background: linear-gradient(160deg, #B45309, #92400E); }
.lv-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.lv-sum > div { border-radius: 16px; padding: 12px 8px; text-align: center; font-weight: 800; color: #fff; }
.lv-sum b { display: block; font-family: var(--lv-fd); font-size: clamp(1.6rem, 4vw, 2.6rem); }
.lv-sum .f { background: #15803D; } .lv-sum .p { background: #B45309; } .lv-sum .w { background: #B91C1C; }
/* acak siswa */
.lv-spin { font-family: var(--lv-fd); font-size: clamp(1.8rem, 6vw, 3.4rem); font-weight: 800; color: #fff; margin: 14px 0; min-height: 1.4em; }
.lv-spinav { display: grid; place-items: center; min-height: 190px; }
.lv-spinav .lv-av { --s: 150px; transition: transform .1s; }
.lv-spinav.win .lv-av { animation: lv-pop .7s ease; --s: 190px; }
/* kelompok */
.lv-grps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; text-align: left; }
.lv-grp { background: rgba(255, 255, 255, .14); border-radius: 18px; padding: 12px; border-top: 6px solid var(--g, #FACC15); animation: lv-pop .4s ease both; }
.lv-grp h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.lv-grp .m { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 3px 0; color: #fff; }
.lv-grp .m .lv-av { --s: 30px; }
.lv-ctl { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 10px; color: #fff; font-weight: 800; }
.lv-ctl select { font: inherit; font-weight: 800; padding: 10px 12px; border-radius: 12px; border: 0; background: #fff; color: #1E1B4B; }
/* balapan */
.lv-race { display: flex; flex-direction: column; gap: 10px; margin: 16px auto; width: 100%; max-width: 980px; }
.lv-lane { position: relative; height: 62px; border-radius: 16px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.lv-lane::after { content: '🏁'; position: absolute; right: 10px; top: 14px; font-size: 28px; }
.lv-lane::before { content: ''; position: absolute; left: 70px; right: 60px; top: 50%; border-top: 3px dashed rgba(255, 255, 255, .35); }
.lv-lane .rn { position: absolute; left: 12px; top: 16px; font-family: var(--lv-fd); font-weight: 800; color: #FDE047; width: 26px; }
.lv-lane .rc { position: absolute; top: 4px; left: var(--x, 0%); display: flex; align-items: center; gap: 8px; transition: left 1.6s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; }
.lv-lane .rc .lv-av { --s: 50px; } .lv-lane .rc span.t { font-weight: 800; background: rgba(0, 0, 0, .45); border-radius: 999px; padding: 3px 10px; color: #fff; font-size: 14px; }
.lv-top .lv-btn.small { padding: 9px 12px; font-size: 14px; }
@media (max-width: 640px) { .lv-slot { width: 36px; height: 46px; font-size: 22px; } .lv-tile { width: 50px; height: 56px; font-size: 24px; } .lv-mcols { grid-template-columns: 1fr; } }
.lv-sol .lv-slot { color: #1E1B4B; border-color: #A5B4FC; background: #EEF2FF; width: 38px; height: 46px; font-size: 22px; }
.lv-sol .lv-slot.fill { background: #FEF08A; border-color: #A16207; }
.lv-sol .lv-slots { justify-content: flex-start; margin: 8px 0 0; }
.lv-lobby .lv-pinbox .pin { font-size: clamp(2.4rem, 7.4vw, 5.4rem); white-space: nowrap; padding: 6px 22px; max-width: 100%; }   /* PIN selalu satu baris */
@media (max-width: 899px) { .lv-lobby .lv-pinbox .pin { font-size: clamp(2.4rem, 13vw, 4.6rem); } }

/* ---- Tata letak lobi & QR (rapi di tengah, bisa diperbesar) ---- */
.lv-lobby { width: 100%; display: grid; gap: 22px; align-items: center; justify-items: center; text-align: center; }
.lv-lobby > * { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) and (max-width: 1099px) { .lv-lobby { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .lv-lobby { grid-template-columns: 1.2fr 1fr; max-width: 1100px; margin: 0 auto; } .lv-lobby > * { max-width: none; } }
.lv-qrwrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lv-qrwrap .lv-qr { margin: 0 auto; width: min(340px, 84vw); max-width: 100%; }
.lv-qr svg { width: 100%; height: auto; display: block; }
.lv-qr .cap { text-align: center; }
.lv-qrbtns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lv-qr.big { width: min(var(--qsv, 86vmin), 96vw); max-width: 96vw; margin-left: auto; margin-right: auto; }
.lv-modal .lv-ctl { margin-top: 4px; }
.lv-modal .lv-pinbox .pin { font-size: clamp(2.2rem, 8vmin, 4.6rem); white-space: nowrap; }
.lv-modal .lv-btn:disabled { opacity: .4; }
