/* Halaman turnamen (panitia, TV grup, peserta). Warna dan huruf dari /assets/site.css. */
body { min-height: 100vh; background: radial-gradient(1000px 500px at 90% -10%, rgba(242, 169, 59, .14), transparent 60%), var(--night); }
.t-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px 56px; }
.t-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 -16px 18px; background: rgba(21, 18, 14, .88); border-bottom: 1px solid var(--line); }
.t-bar h1 { font-size: 20px; flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.t-bar h1 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-panel { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.t-panel + .t-panel { margin-top: 18px; }
.t-panel h2 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-muted { color: var(--ink-3); font-size: 13px; }
.t-err { color: var(--danger); font-size: 14px; min-height: 1.2em; }
.t-field { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.t-field input, .t-field select, .t-field textarea { min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--night); color: var(--ink); font: 16px var(--body); width: 100%; box-sizing: border-box; }
.t-field textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
.t-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.t-row > .t-field { flex: 1 1 160px; }
.t-login { max-width: 380px; margin: 14vh auto 0; display: grid; gap: 14px; }
.t-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(167, 154, 131, .2); color: var(--ink-2); white-space: nowrap; }
.t-badge.main, .t-badge.running, .t-badge.final { background: rgba(127, 214, 164, .16); color: var(--ok); }
.t-badge.lobi, .t-badge.setup, .t-badge.groupsDone { background: rgba(242, 169, 59, .16); color: var(--amber); }
.t-badge.tutup { background: rgba(255, 138, 112, .14); color: var(--danger); }
.t-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.t-dot.on { background: var(--ok); }
.t-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.t-group { padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.t-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-group-head b { font: 800 22px var(--display); }
.t-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.t-table td { padding: 7px 6px; border-bottom: 1px solid rgba(67, 56, 42, .5); vertical-align: middle; }
.t-table td.num, .t-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t-table tr.me td { background: rgba(242, 169, 59, .14); }
.t-table .pts { font-weight: 800; color: var(--amber); }
.t-name small { display: block; color: var(--ink-3); font-size: 12px; }
.t-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.t-link { display: flex; gap: 8px; align-items: center; }
.t-link input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--night); color: var(--ink-2); font: 13px var(--body); }
.t-qr { width: 150px; height: 150px; border-radius: 12px; background: #f6efdf; padding: 6px; box-sizing: border-box; flex: none; }
.t-share { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.t-share > div { flex: 1 1 260px; display: grid; gap: 8px; }
.t-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t-log { max-height: 320px; overflow-y: auto; font-size: 13px; color: var(--ink-2); }
.t-log li { padding-left: 10px; border-left: 2px solid var(--line); }
.t-cards { display: grid; gap: 10px; }
.t-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; text-align: left; color: var(--ink); font: 16px var(--body); width: 100%; }
.t-card:hover { border-color: var(--amber); }
a.t-card { text-decoration: none; box-sizing: border-box; }
.t-mini { min-height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 12px var(--body); cursor: pointer; }
.t-mini:hover { border-color: var(--amber); color: var(--ink); }
.t-mini.danger { color: var(--danger); }
details > summary { cursor: pointer; font-weight: 700; }
.t-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: 90%; padding: 12px 18px; border-radius: 12px; background: #3a3024; border: 1px solid var(--line); color: var(--ink); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
@media (max-width: 520px) { .t-groups { grid-template-columns: 1fr; } .t-bar h1 { font-size: 17px; } }

/* ===== Panitia: tahap, langkah berikutnya, tab ===== */
.t-head h2 { margin-bottom: 4px; }
.t-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: none; }
.t-steps li { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--night); border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; font-weight: 700; min-width: 0; }
.t-steps li span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: 12px; }
.t-steps li.done { color: var(--ok); }
.t-steps li.done span { background: rgba(127, 214, 164, .18); color: var(--ok); }
.t-steps li.now { color: var(--ink); border-color: var(--amber); background: rgba(242, 169, 59, .12); }
.t-steps li.now span { background: var(--amber); color: var(--amber-ink); }
.t-next { border: 1px solid rgba(242, 169, 59, .55); background: linear-gradient(160deg, rgba(242, 169, 59, .14), transparent 55%), var(--surface); }
.t-next.t-next-final { border-color: var(--ok); background: linear-gradient(160deg, rgba(127, 214, 164, .14), transparent 55%), var(--surface); }
.t-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.t-next h3 { margin: 0 0 6px; font: 800 24px/1.2 var(--display); }
.t-next-text { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 760px; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.t-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--night); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.t-chip.ok { color: var(--ok); border-color: rgba(127, 214, 164, .4); }
.t-next-actions .btn { min-height: 46px; }
.btn-big { min-height: 54px !important; padding: 0 22px; font-size: 17px; }
.t-tabs { display: flex; gap: 6px; margin: 18px 0 0; overflow-x: auto; scrollbar-width: none; scroll-margin-top: 70px; }
.t-tabs::-webkit-scrollbar { display: none; }
.t-tabs button { flex: none; min-height: 42px; padding: 0 14px; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0; background: var(--night); color: var(--ink-3); font: 700 14px var(--body); cursor: pointer; }
.t-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 3px 0 var(--amber); }
.t-tabs + .t-pane, .t-pane + .t-pane { margin-top: 0 !important; border-top-left-radius: 0; }
.t-pane-hint { margin: 0 0 12px; }
.t-scroll { overflow-x: auto; }
.t-sub { margin: 0 0 8px; font: 800 16px var(--display); display: flex; align-items: center; gap: 8px; }
.t-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--amber-ink); font-size: 13px; }
.t-plan { padding: 12px 14px; border-radius: 12px; background: var(--night); border: 1px dashed var(--line); margin-bottom: 12px; }
.t-plan p { margin: 0 0 8px; }
.t-plan .t-chips { margin: 0; }
.t-linkbox { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.t-linkbox .t-sub { margin: 0; }
.t-open { display: inline-flex; align-items: center; text-decoration: none; }
.t-code { font-size: 18px; letter-spacing: .12em; color: var(--amber); }
.t-more summary { color: var(--ink-2); }
#finalPanel { scroll-margin-top: 70px; }
@media (max-width: 640px) {
  .t-steps { grid-template-columns: repeat(2, 1fr); }
  .t-next h3 { font-size: 20px; }
  .t-next-actions { flex-direction: column; align-items: stretch; }
  .t-next-actions .btn { width: 100%; justify-content: center; }
  .t-bar { flex-wrap: wrap; position: static; }
  .t-bar h1 { flex-basis: 100%; }
  .t-share { flex-direction: column; align-items: stretch; }
  .t-qr { align-self: center; }
}

/* ===== Panitia di dalam kerangka Dasbor Admin (/admin/admin.css) ===== */
.t-admin .t-panel { background: var(--panel); border-color: var(--border); }
.t-admin .t-group { background: var(--panel-2); border-color: var(--border); }
.t-admin .t-next { border-color: rgba(242, 169, 59, .55); background: linear-gradient(160deg, rgba(242, 169, 59, .14), transparent 55%), var(--panel); }
.t-admin .t-next.t-next-final { border-color: var(--good); background: linear-gradient(160deg, rgba(127, 214, 164, .14), transparent 55%), var(--panel); }
.t-admin .t-tabs button.on { background: var(--panel); }
.t-admin .t-back { display: inline-flex; align-items: center; text-decoration: none; }
.t-admin .main > section { max-width: 1240px; }
