/* Tangga Juara: panggung biru gelap, soal besar, pilihan A-D, tangga poin, tiga bantuan */
.tj-wrap { flex: 1; min-height: 0; display: flex; padding: clamp(4px, 1vw, 12px); background: #0b1020; }
.tj-stage { position: relative; flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; border: 3px solid #fbbf24; background: radial-gradient(circle at 50% 0%, #312e81, #1e1b4b 55%, #0f172a); display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 22vw, 230px); color: #fff; }
.tj-main { display: flex; flex-direction: column; gap: clamp(5px, 1.2vh, 10px); padding: clamp(6px, 1.2vw, 14px); min-width: 0; min-height: 0; overflow-y: auto; }
.tj-hud { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 800; font-size: clamp(11px, 1.45vw, 16px); }
.tj-hud span { background: rgba(255,255,255,.14); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.tj-hud .k { background: #f59e0b; color: #1f2937; }
.tj-time { height: 8px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; margin-top: 5px; }
.tj-time[hidden] { display: none; }
.tj-time i { display: block; height: 100%; width: 100%; background: #22c55e; transition: width .25s linear; }
.tj-q { background: linear-gradient(180deg, #4338ca, #312e81); border: 3px solid #a5b4fc; border-radius: 18px; padding: clamp(8px, 1.8vh, 18px) clamp(12px, 2vw, 24px); font-weight: 800; font-size: clamp(15px, 2.6vw, 30px); line-height: 1.3; text-align: center; min-height: 3em; display: flex; align-items: center; justify-content: center; }
.tj-opts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(6px, 1.2vh, 12px); }
.tj-opt { display: flex; align-items: center; gap: 10px; min-height: clamp(42px, 8vh, 64px); padding: 4px 14px; border: 3px solid #a5b4fc; border-radius: 999px; background: linear-gradient(180deg, #312e81, #1e1b4b); color: #fff; font: inherit; font-weight: 800; font-size: clamp(14px, 2.2vw, 24px); cursor: pointer; text-align: left; min-width: 0; }
.tj-opt i { flex: 0 0 auto; color: #fbbf24; font-style: normal; font-weight: 900; }
.tj-opt span { overflow-wrap: anywhere; }
.tj-opt:hover:not(:disabled) { border-color: #fbbf24; }
.tj-opt.sel { background: #f59e0b; border-color: #fde68a; color: #1f2937; } .tj-opt.sel i { color: #1f2937; }
.tj-opt.ok { background: #16a34a; border-color: #86efac; color: #fff; } .tj-opt.ok i { color: #fff; }
.tj-opt.bad { background: #dc2626; border-color: #fecaca; color: #fff; } .tj-opt.bad i { color: #fff; }
.tj-opt.gone { visibility: hidden; }
.tj-opt:disabled { cursor: default; }
.tj-fb { margin: 0; min-height: 2.6em; font-weight: 800; font-size: clamp(12px, 1.7vw, 19px); line-height: 1.3; }
.tj-fb.ok { color: #86efac; } .tj-fb.bad { color: #fca5a5; }
.tj-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tj-btn { min-height: clamp(38px, 6.4vh, 48px); padding: 0 22px; border: 0; border-radius: 999px; background: #7c3aed; color: #fff; font: inherit; font-weight: 900; font-size: clamp(13px, 1.8vw, 20px); cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.tj-btn.alt { background: transparent; border: 2px solid #a5b4fc; box-shadow: none; font-size: clamp(11px, 1.4vw, 15px); font-weight: 800; }
.tj-btn[hidden] { display: none; } .tj-btn:disabled { opacity: .4; }
.tj-side { display: flex; flex-direction: column; gap: 8px; padding: clamp(6px, 1vw, 12px); background: rgba(0,0,0,.28); border-left: 3px solid #fbbf24; min-height: 0; }
.tj-life { display: flex; gap: 6px; justify-content: center; }
.tj-life button { width: clamp(44px, 7vw, 64px); height: clamp(40px, 6.5vh, 54px); border: 3px solid #fbbf24; border-radius: 50%/60%; background: #1e1b4b; color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; padding: 0; }
.tj-life button b { font-size: clamp(12px, 1.8vw, 18px); } .tj-life button small { font-size: clamp(8px, 1vw, 10px); font-weight: 700; }
.tj-life button.used { opacity: .35; text-decoration: line-through; } .tj-life button:disabled { cursor: default; }
.tj-ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; }
.tj-ladder li { display: flex; justify-content: space-between; gap: 6px; padding: 0 8px; border-radius: 6px; font-weight: 800; font-size: clamp(10px, 1.45vw, 15px); color: #fbbf24; line-height: 1.55; }
.tj-ladder li.safe { color: #fff; }
.tj-ladder li.done { color: #4ade80; }
.tj-ladder li.cur { background: #f59e0b; color: #1f2937; }
.tj-modal { position: absolute; inset: 0; background: rgba(2,6,23,.7); display: flex; align-items: center; justify-content: center; padding: 12px; z-index: 10; }
.tj-modal[hidden] { display: none; }
.tj-card { background: #fff; color: var(--ink); border: 4px solid #fbbf24; border-radius: 18px; padding: clamp(10px, 2vw, 20px); width: min(560px, 94%); max-height: 94%; overflow-y: auto; text-align: center; }
.tj-card h3 { margin: 0 0 6px; font-size: clamp(16px, 2.4vw, 26px); } .tj-card p { margin: 6px 0; font-weight: 700; font-size: clamp(13px, 1.9vw, 21px); line-height: 1.35; }
.tj-card .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.tj-bars { display: flex; gap: 10px; justify-content: center; align-items: flex-end; height: clamp(90px, 20vh, 160px); margin: 8px 0; }
.tj-bar { width: clamp(34px, 8vw, 62px); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-weight: 900; }
.tj-bar i { display: block; width: 100%; background: #6366f1; border-radius: 6px 6px 0 0; min-height: 2px; } .tj-bar span { font-size: 0.85em; }
.tj-step { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0; font-weight: 800; }
.tj-step button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #e0e7ff; font: inherit; font-weight: 900; font-size: 1.2rem; cursor: pointer; padding: 0; }
.tj-step b { min-width: 2ch; font-size: 1.2em; }
.tj-stars { font-size: clamp(32px, 7vh, 60px); color: #f59e0b; letter-spacing: 6px; line-height: 1; } .tj-stars .off { color: #cbd5e1; }
@media (max-height: 520px) { .tj-wrap { padding: 3px 6px; } .tj-stage { border-width: 2px; border-radius: 12px; } .tj-main { padding: 4px 8px; gap: 4px; } .tj-q { min-height: 2.4em; padding: 4px 12px; font-size: clamp(14px, 2.4vw, 22px); } .tj-opt { min-height: 34px; } .tj-fb { min-height: 1.4em; } .tj-ladder li { line-height: 1.15; font-size: 10.5px; } .tj-ladder { gap: 1px; } .tj-life button { height: 38px; } }
@media (max-width: 640px) and (orientation: portrait) { .tj-stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; } .tj-side { border-left: 0; border-top: 3px solid #fbbf24; flex-direction: row; } .tj-ladder { display: none; } .tj-opts { grid-template-columns: 1fr; } }
