/* ==========================================================================
   CLINED DUEL ARENA — NATIVE CLINICAL TACTILE DESIGN
   Selaras 100% dengan design-system.css, latihan-materi.css, study-plus.css,
   dan home-ergonomic.css (Light & Dark slate-emerald, tanpa warna tabrakan).
   ========================================================================== */

/* ───────── 1. Header Halaman Duel & Beranda Duel ───────── */
html body #socialPage,
html body #duelPage {
  overflow-x: hidden;
}

html body #socialPage .ub-head,
html body #duelPage .ub-head {
  padding: 8px 10px !important;
  margin-bottom: 12px !important;
  border-radius: var(--r-lg) !important;
  background: var(--card) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  box-shadow: var(--depth) !important;
}

html body #socialPage .ub-head .topline,
html body #duelPage .ub-head .topline {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

html body #socialPage .ub-head .topline > b,
html body #duelPage .ub-head .topline > b {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  letter-spacing: -.015em;
  color: var(--text) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ───────── 2. Beranda Duel: Hero Card (CLINED Clinical Tactile) ───────── */
html body #socialPage .duel-hero {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--depth) !important;
  padding: 14px !important;
  gap: 12px !important;
  overflow: hidden;
}

html body #socialPage .duel-hero-glow {
  display: none !important;
}

/* Banner atas Sky → Clinical Teal, selaras dgn .sp-cd-big / .ml-hero / .ub-hero */
html body #socialPage .duel-hero-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 11px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1cb0f6 0%, #0d9488 100%);
  border: 2px solid #0f766e;
  border-bottom-width: 4px;
  color: #ffffff;
}

html body #socialPage .duel-hero-banner::after {
  content: "⚔️";
  position: absolute;
  right: 12px;
  top: 6px;
  font-size: 56px;
  opacity: .12;
  pointer-events: none;
  line-height: 1;
}

html body #socialPage .duel-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

html body #socialPage .duel-hero-badge {
  background: rgba(255, 255, 255, .17) !important;
  border: 1.5px solid rgba(255, 255, 255, .34) !important;
  border-bottom-width: 3px !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  box-shadow: none !important;
  padding: 6px 12px 6px 7px !important;
  min-height: 48px !important;
}

html body #socialPage .duel-hero-badge .duel-rank-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .24) !important;
  box-shadow: none !important;
  font-size: 20px;
}

html body #socialPage .duel-hero-badge small {
  color: rgba(255, 255, 255, .88) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
}

html body #socialPage .duel-hero-badge b {
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 900;
}

html body #socialPage .duel-hero-banner .duel-tier-info-btn {
  background: rgba(255, 255, 255, .18) !important;
  border: 1.5px solid rgba(255, 255, 255, .35) !important;
  border-bottom-width: 3px !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  min-height: 36px !important;
  padding: 5px 11px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

html body #socialPage .duel-hero-banner .duel-dia-pill {
  background: rgba(15, 23, 42, .22) !important;
  border: 1.5px solid rgba(255, 255, 255, .3) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  padding: 6px 11px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  min-height: 36px;
  box-sizing: border-box;
}

html body #socialPage .duel-hero-banner .duel-rp-box {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, .18) !important;
  border: 1.5px solid rgba(255, 255, 255, .22) !important;
  border-radius: 13px !important;
  padding: 9px 11px !important;
  gap: 6px;
}

html body #socialPage .duel-hero-banner .duel-rp-head {
  color: rgba(255, 255, 255, .94) !important;
  font-size: 12px;
  font-weight: 700;
}

html body #socialPage .duel-hero-banner .duel-rp-head b {
  color: #ffffff !important;
  font-weight: 900;
}

html body #socialPage .duel-hero-banner .duel-rp-head small {
  color: rgba(255, 255, 255, .9) !important;
  font-size: 11.5px;
  font-weight: 700;
}

html body #socialPage .duel-hero-banner .duel-rp-track {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .24) !important;
  border: 0 !important;
}

html body #socialPage .duel-hero-banner .duel-rp-track i {
  background: linear-gradient(90deg, #d9f99d, #ffffff) !important;
}

/* Strip 3 statistik karier — selaras dgn .ml-stats & .duo-reward-item */
html body #socialPage .duel-stat-grid {
  gap: 8px;
}

html body #socialPage .duel-stat-box {
  background: var(--surface) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: 16px !important;
  padding: 10px 6px !important;
  box-shadow: none !important;
  gap: 2px;
  align-content: center;
}

html body #socialPage .duel-stat-box small {
  color: var(--muted) !important;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

html body #socialPage .duel-stat-box b {
  font-variant-numeric: tabular-nums;
  font-size: clamp(19px, 4.8vw, 22px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text) !important;
}

html body #socialPage .duel-stat-box.win b { color: var(--ok-text) !important; }
html body #socialPage .duel-stat-box.rate b { color: var(--sky-text) !important; }
html body #socialPage .duel-stat-box.streak b { color: var(--warn-text) !important; }

html body #socialPage .duel-stat-box span {
  color: var(--muted) !important;
  font-size: 10px;
  font-weight: 700;
}

/* Strip Kartu Andalan — bersih di atas permukaan CLINED */
html body #socialPage .duel-hero-card-strip {
  background: var(--surface-2) !important;
  border: 2px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

html body #socialPage .duel-hero-card-txt small {
  color: var(--med) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

:root.dark html body #socialPage .duel-hero-card-txt small {
  color: var(--sky-text) !important;
}

html body #socialPage .duel-hero-card-txt b {
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 800;
}

html body #socialPage .duel-hero-card-strip .duel-tier-info-btn {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 3px !important;
  border-radius: 11px !important;
  min-height: 36px !important;
  padding: 5px 11px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

@media (hover: hover) {
  html body #socialPage .duel-hero-card-strip .duel-tier-info-btn:hover {
    border-color: var(--sky) !important;
    background: var(--surface) !important;
  }
}

/* Quick Match CTA — tombol hijau taktil 3D khas CLINED */
html body #socialPage .duel-quick-btn {
  background: var(--brand) !important;
  color: #ffffff !important;
  border: 2px solid var(--brand-dark) !important;
  border-bottom: 5px solid #3c8d00 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  min-height: 60px !important;
  padding: 10px 14px !important;
  transition: transform .1s var(--ease-ui), filter .15s ease, border-bottom-width .1s ease !important;
}

html body #socialPage .duel-quick-btn:active {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
}

@media (hover: hover) {
  html body #socialPage .duel-quick-btn:hover {
    filter: brightness(1.04);
  }
}

html body #socialPage .duel-quick-ico {
  background: rgba(255, 255, 255, .22) !important;
  border-radius: 12px;
  color: #ffffff;
}

html body #socialPage .duel-quick-txt b {
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 900;
}

html body #socialPage .duel-quick-txt small {
  color: rgba(255, 255, 255, .92) !important;
  font-size: 11.5px;
  font-weight: 700;
}

html body #socialPage .duel-quick-go {
  background: rgba(255, 255, 255, .22) !important;
  border: 1.5px solid rgba(255, 255, 255, .34);
  color: #ffffff !important;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

/* ───────── 3. Beranda Duel: Kartu Bagian (Tantangan, Atur Arena, Teman, LB) ───────── */
html body #socialPage .soc-card,
html body #duelPage .soc-card {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--depth) !important;
  padding: 16px !important;
}

html body #socialPage .soc-title.between {
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

html body #socialPage .duel-title-left {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  align-items: flex-start !important;
}

html body #socialPage .soc-title > span,
html body #socialPage .duel-title-left > span {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 0 !important;
  box-shadow: none !important;
  background: var(--sky-soft) !important;
  font-size: 20px;
}

html body #socialPage .duel-arena-card .duel-title-left > span { background: var(--med-soft) !important; }
html body #socialPage .soc-setup .soc-title > span { background: var(--sky-soft) !important; }
html body #socialPage .duel-lb-card .duel-title-left > span { background: var(--warn-soft) !important; }

html body #socialPage .soc-hint,
html body #socialPage .soc-empty,
html body #duelPage .soc-hint,
html body #duelPage .soc-empty {
  color: var(--muted) !important;
  opacity: 1 !important;
}

/* Ruang Aktif / Menunggu di Beranda Duel */
html body #socialPage .soc-live-row {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--warn) !important;
  border-bottom-width: 4px !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--depth) !important;
  padding: 11px 13px !important;
}

html body #socialPage .soc-live-row .soc-go {
  color: var(--warn-text) !important;
}

html body #socialPage .soc-live-subactions {
  border-top-color: var(--line) !important;
}

html body #socialPage .soc-invite {
  background: linear-gradient(90deg, var(--brand-soft), transparent 60%), var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--brand) !important;
  border-bottom-width: 4px !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--depth) !important;
}

/* Tantangan Terbuka */
html body #socialPage .duel-live-pill {
  background: var(--med-soft) !important;
  color: var(--med-dark) !important;
  border: 1.5px solid rgba(13, 148, 136, .32) !important;
}

:root.dark html body #socialPage .duel-live-pill {
  color: var(--med2) !important;
}

html body #socialPage .duel-open-room {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  transition: border-color .15s ease;
}

@media (hover: hover) {
  html body #socialPage .duel-open-room:hover {
    border-color: var(--med) !important;
  }
}

html body #socialPage .duel-open-room .duel-tags-row {
  border-top-color: var(--line) !important;
}

html body #socialPage .duel-open-empty {
  background: var(--surface) !important;
  border: 2px dashed var(--line) !important;
  border-radius: 16px !important;
  color: var(--muted) !important;
}

html body #socialPage .duel-open-empty b {
  color: var(--text) !important;
}

html body #socialPage .duel-open-empty small {
  color: var(--muted) !important;
  opacity: 1 !important;
}

html body #socialPage .duel-open-empty small b {
  display: inline !important;
  margin: 0 !important;
  font-size: inherit !important;
  font-weight: 800 !important;
}

html body #socialPage .h2h-pill {
  white-space: nowrap;
}

html body #socialPage .duel-join-now {
  box-shadow: none !important;
}

/* Atur Arena Duel */
html body #socialPage .duel-field-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: var(--med) !important;
  opacity: 1 !important;
  margin-top: 2px;
}

:root.dark html body #socialPage .duel-field-label {
  color: var(--sky-text) !important;
}

html body #socialPage .duel-mode-card {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  transition: border-color .15s ease, background-color .15s ease, transform .1s var(--ease-ui) !important;
}

html body #socialPage .duel-mode-card small {
  color: var(--muted) !important;
  opacity: 1 !important;
}

html body #socialPage .duel-mode-card.classic.on {
  border-color: var(--sky) !important;
  border-bottom-color: var(--sky-dark) !important;
  background: var(--sky-soft) !important;
}

html body #socialPage .duel-mode-card.classic.on b {
  color: var(--sky-text) !important;
}

html body #socialPage .duel-mode-card.sudden_death.on {
  border-color: var(--danger) !important;
  border-bottom-color: var(--danger-dark) !important;
  background: var(--danger-soft) !important;
}

html body #socialPage .duel-mode-card.sudden_death.on b {
  color: var(--danger-text) !important;
}

/* Segmented Controls — selaras dgn #userBankPage .ml-chips */
html body #socialPage .soc-lab {
  color: var(--text) !important;
  font-weight: 800 !important;
}

html body #socialPage .soc-lab small {
  color: var(--muted) !important;
  opacity: 1 !important;
}

html body #socialPage .soc-seg {
  background: var(--surface) !important;
  border: 2px solid var(--line) !important;
  border-radius: 14px !important;
  padding: 4px !important;
  box-shadow: none !important;
}

html body #socialPage .soc-seg button {
  background: transparent !important;
  color: var(--muted) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}

html body #socialPage .soc-seg button.on {
  background: var(--sky) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 0 var(--sky-dark) !important;
}

/* Taruhan EXP */
html body #socialPage .duel-wager-btn {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: 15px !important;
  box-shadow: none !important;
}

html body #socialPage .duel-wager-btn small {
  color: var(--muted) !important;
  opacity: 1 !important;
}

html body #socialPage .duel-wager-btn b em {
  color: var(--warn-text) !important;
}

html body #socialPage .duel-wager-btn.on {
  border-color: var(--warn) !important;
  border-bottom-color: var(--warn-dark) !important;
  background: var(--warn-soft) !important;
}

/* Tantang Teman & H2H */
html body #socialPage .soc-friend {
  background: var(--surface-2) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 3px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

html body #socialPage .soc-friend .soc-who small {
  color: var(--muted) !important;
  opacity: 1 !important;
}

html body #socialPage .soc-on {
  color: var(--ok-text) !important;
}

/* Leaderboard Rank Gladiator — JAGA nameplate .has-banner tetap utuh! */
html body #socialPage .duel-lb-row:not(.has-banner) {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 3px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

html body #socialPage .duel-lb-row.me:not(.has-banner) {
  border-color: var(--sky) !important;
  border-bottom-color: var(--sky-dark) !important;
  background: var(--sky-soft) !important;
}

html body #socialPage .duel-lb-row:not(.has-banner) .duel-lb-wins {
  color: var(--sky-text) !important;
}

html body #socialPage .duel-lb-row:not(.has-banner) .duel-lb-meta {
  color: var(--muted) !important;
  opacity: 1 !important;
}

html body #socialPage .duel-lobby-grid {
  display: contents;
}

@media (min-width: 1100px) {
  html body #socialBody > .duel-lobby-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    grid-template-rows: auto 1fr;
    gap: 16px;
    align-items: stretch;
  }
  html body #socialBody > .duel-lobby-grid > .duel-arena-card { grid-column: 1; grid-row: 1; align-self: start; }
  html body #socialBody > .duel-lobby-grid > .duel-friends-card {
    grid-column: 1;
    grid-row: 2;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
  }
  html body #socialBody > .duel-lobby-grid > .duel-friends-card > .soc-sec { flex: 1 1 auto; align-content: start; }
  html body #socialBody > .duel-lobby-grid > .soc-setup {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
    box-sizing: border-box;
    align-content: start;
  }
  html body #socialBody .duel-lb-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

html body #socialPage .duel-lb-row.has-banner {
  border-radius: 16px !important;
  border-bottom-width: 3px !important;
}

html body #socialPage .duel-lb-row.has-banner .duel-lb-wins {
  background: rgba(15, 23, 42, .62);
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #ffffff !important;
}

html body #socialPage .duel-lb-row.has-banner .duel-rank-pill {
  background: rgba(15, 23, 42, .62) !important;
  border-color: rgba(255, 255, 255, .24) !important;
  color: #f1f5f9 !important;
}
html body #socialPage .duel-lb-row.has-banner .duel-rank-pill.tier-bronze   { color: #fdba74 !important; border-color: rgba(251, 146, 60, .48) !important; }
html body #socialPage .duel-lb-row.has-banner .duel-rank-pill.tier-silver   { color: #e2e8f0 !important; border-color: rgba(203, 213, 225, .45) !important; }
html body #socialPage .duel-lb-row.has-banner .duel-rank-pill.tier-gold     { color: #fde047 !important; border-color: rgba(250, 204, 21, .5) !important; }
html body #socialPage .duel-lb-row.has-banner .duel-rank-pill.tier-platinum { color: #5eead4 !important; border-color: rgba(45, 212, 191, .48) !important; }
html body #socialPage .duel-lb-row.has-banner .duel-rank-pill.tier-diamond  { color: #7dd3fc !important; border-color: rgba(56, 189, 248, .5) !important; }
html body #socialPage .duel-lb-row.has-banner .duel-rank-pill.tier-master   { color: #f0abfc !important; border-color: rgba(232, 121, 249, .5) !important; }
html body #socialPage .duel-lb-row.has-banner .duel-rank-pill.tier-mythic   { color: #fef08a !important; border-color: rgba(250, 204, 21, .6) !important; }

/* ───────── 4. Saat Lagi Duel: Papan Arena & Tarik Tambang ───────── */
html body #duelPage .duel-arena-board {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--depth) !important;
  padding: 13px !important;
  gap: 10px !important;
}

/* Jangan buat kartu ganda di dalam .duel-arena-board */
html body #duelPage .duel-board {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body #duelPage .duel-side {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 3px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

html body #duelPage .duel-side.me {
  border-color: rgba(28, 176, 246, .42) !important;
}

html body #duelPage .duel-side.on-fire {
  border-color: var(--warn) !important;
  box-shadow: 0 0 0 3px var(--warn-soft) !important;
}

html body #duelPage .duel-fighter-info > b {
  color: var(--text) !important;
}

html body #duelPage .duel-fighter-info > span {
  color: var(--muted) !important;
  opacity: 1 !important;
}

html body #duelPage .duel-side .duel-streak-pill {
  color: #ffffff !important;
  opacity: 1 !important;
}

html body #duelPage .duel-side > i {
  background: var(--line) !important;
}

html body #duelPage .duel-side > i::after {
  background: var(--brand) !important;
}

html body #duelPage .duel-side.opp > i::after {
  background: var(--warn) !important;
}

html body #duelPage .duel-vs {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body #duelPage .duel-vs-badge {
  background: var(--surface) !important;
  color: var(--sky-text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 3px !important;
  box-shadow: none !important;
}

html body #duelPage .duel-vs small {
  color: var(--muted) !important;
  opacity: 1 !important;
}

/* Bar Tarik Tambang */
html body #duelPage .duel-tug {
  background: var(--surface) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 14px !important;
  padding: 8px 11px !important;
  gap: 7px;
}

html body #duelPage .duel-tug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}

html body #duelPage .duel-tug-head .me-side { color: var(--sky-text) !important; white-space: nowrap; }
html body #duelPage .duel-tug-head .opp-side { color: var(--warn-text) !important; white-space: nowrap; }
html body #duelPage .duel-tug-head b { color: var(--text) !important; white-space: nowrap; }
html body #duelPage .duel-tug-head b.lead-me { color: var(--ok-text) !important; }
html body #duelPage .duel-tug-head b.lead-opp { color: var(--danger-text) !important; }

@media (max-width: 480px) {
  html body #duelPage .duel-tug-head {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2px 6px;
    text-align: left;
  }
  html body #duelPage .duel-tug-head b {
    grid-column: 1 / -1;
    order: -1;
    text-align: center;
    font-size: 11.5px;
  }
  html body #duelPage .duel-tug-head .opp-side {
    text-align: right;
  }
}

html body #duelPage .duel-tug-track {
  height: 11px;
  border-radius: 99px !important;
  border: 0 !important;
  background: linear-gradient(90deg, #ff9600, #ff4b4b) !important;
}

html body #duelPage .duel-tug-fill {
  background: linear-gradient(90deg, #1cb0f6, #58cc02) !important;
  border-radius: 99px 0 0 99px;
}

html body #duelPage .duel-tug-knot {
  background: var(--card) !important;
  border: 2px solid var(--line-d) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18) !important;
}

/* Emote Bar — grid chip rapi, bukan pil lonjong */
html body #duelPage .duel-emote-bar {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
}

html body #duelPage .duel-emote-btn {
  min-height: 40px !important;
  padding: 4px 6px !important;
  border-radius: 13px !important;
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 3px !important;
  box-shadow: none !important;
  gap: 4px;
}

html body #duelPage .duel-emote-btn span {
  font-size: 15px;
  flex: none;
}

html body #duelPage .duel-emote-btn small {
  color: var(--muted) !important;
  opacity: 1 !important;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: hover) {
  html body #duelPage .duel-emote-btn:hover {
    border-color: var(--sky) !important;
    background: var(--surface) !important;
  }
}

html body #duelPage .duel-emote-bubble {
  background: var(--text) !important;
  color: var(--card) !important;
  border: 2px solid var(--sky) !important;
}

/* ───────── 5. Kartu Soal & Pilihan Jawaban (Identik dgn Latihan Materi & Kuis) ───────── */
html body #duelPage .duel-qcard {
  padding: 16px !important;
  gap: 13px !important;
}

html body #duelPage .soc-qtimer {
  position: relative;
  height: 26px !important;
  border-radius: 99px !important;
  background: var(--surface) !important;
  border: 2px solid var(--line) !important;
  overflow: hidden;
}

html body #duelPage .soc-qtimer i {
  background: linear-gradient(90deg, var(--brand), var(--sky)) !important;
}

html body #duelPage .soc-qtimer i[data-low="1"] {
  background: linear-gradient(90deg, var(--danger), var(--warn)) !important;
}

html body #duelPage .soc-qtimer b {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 0 9px;
  border-radius: 99px;
  background: rgba(15, 23, 20, .68);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none !important;
}

html body #duelPage .soc-qn {
  display: inline-flex;
  align-items: center;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .05em;
  color: var(--sky-text) !important;
  background: var(--sky-soft) !important;
  padding: 5px 10px;
  border-radius: 9px;
  opacity: 1 !important;
}

html body #duelPage .soc-q {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.54 !important;
  letter-spacing: -.015em;
  color: var(--text) !important;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

html body #duelPage .soc-opts {
  gap: 9px;
}

html body #duelPage .soc-opt {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 13px 14px !important;
  min-height: 54px !important;
  border-radius: 16px !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  background: var(--card) !important;
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.46 !important;
  box-shadow: none !important;
  transition: transform .09s var(--ease-ui), border-color .15s ease, background-color .15s ease !important;
}

html body #duelPage .soc-opt > span:last-child {
  padding-top: 4px;
  overflow-wrap: anywhere;
}

html body #duelPage .soc-opt:active:not(:disabled) {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
}

@media (hover: hover) {
  html body #duelPage .soc-opt:hover:not(:disabled) {
    border-color: var(--sky) !important;
    background: var(--surface-2) !important;
  }
}

html body #duelPage .soc-l {
  width: 30px;
  height: 30px;
  border-radius: 50% !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--line) !important;
  font-size: 12px;
  font-weight: 900;
}

html body #duelPage .soc-opt.ok {
  border-color: var(--brand) !important;
  border-bottom-color: var(--brand-dark) !important;
  background: var(--brand-soft) !important;
  color: var(--text) !important;
}

html body #duelPage .soc-opt.ok .soc-l {
  background: var(--brand) !important;
  border-color: var(--brand-dark) !important;
  color: #ffffff !important;
}

html body #duelPage .soc-opt.bad {
  border-color: var(--danger) !important;
  border-bottom-color: var(--danger-dark) !important;
  background: #fff1f2 !important;
  color: var(--text) !important;
}

html body #duelPage .soc-opt.bad .soc-l {
  background: var(--danger) !important;
  border-color: var(--danger-dark) !important;
  color: #ffffff !important;
}

:root.dark html body #duelPage .soc-opt.ok {
  background: #223825 !important;
  border-color: #58cc02 !important;
  color: #f0fdf4 !important;
}

:root.dark html body #duelPage .soc-opt.bad {
  background: #3a1c20 !important;
  border-color: #ff5b5b !important;
  border-bottom-color: #c83232 !important;
  color: #ffe4e6 !important;
}

html body #duelPage .soc-fb {
  border-radius: 14px !important;
  padding: 11px 13px !important;
  border: 2px solid var(--line) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
}

html body #duelPage .soc-fb.ok {
  background: var(--brand-soft) !important;
  border-color: rgba(88, 204, 2, .45) !important;
}

html body #duelPage .soc-fb.ok b { color: var(--ok-text) !important; }

html body #duelPage .soc-fb.bad {
  background: var(--danger-soft) !important;
  border-color: rgba(255, 75, 75, .42) !important;
}

html body #duelPage .soc-fb.bad b { color: var(--danger-text) !important; }

/* ───────── 6. Ruang Tunggu, Countdown, & Hasil Duel ───────── */
html body #duelPage .duel-study-wait-box {
  background: var(--clinical) !important;
  border: 2px solid rgba(13, 148, 136, .35) !important;
  border-radius: 16px !important;
  color: var(--text) !important;
}

html body #duelPage .duel-study-wait-txt small {
  color: var(--muted) !important;
  opacity: 1 !important;
}

html body #duelPage .soc-code {
  background: var(--sky-soft) !important;
  color: var(--sky-text) !important;
  border: 2px dashed var(--sky) !important;
  border-radius: 16px !important;
}

html body #duelPage .duel-vs-cards-clash {
  background: var(--surface) !important;
  border: 2px solid var(--line) !important;
  border-radius: 18px !important;
}

html body #duelPage .soc-result.win {
  border-color: var(--brand) !important;
  background: linear-gradient(180deg, var(--brand-soft), transparent 45%), var(--card) !important;
}

html body #duelPage .soc-result.lose {
  border-color: var(--warn) !important;
  background: linear-gradient(180deg, var(--warn-soft), transparent 45%), var(--card) !important;
}

html body #duelPage .duel-rank-result-card {
  background: linear-gradient(135deg, #1cb0f6 0%, #0d9488 100%) !important;
  border: 2px solid #0f766e !important;
  border-bottom-width: 4px !important;
  border-radius: 18px !important;
  color: #ffffff !important;
}

html body #duelPage .duel-rank-result-left b { color: #ffffff !important; }
html body #duelPage .duel-rank-result-left small { color: rgba(255, 255, 255, .88) !important; }
html body #duelPage .duel-rank-result-card .duel-rp-track {
  background: rgba(255, 255, 255, .24) !important;
  border: 0 !important;
}
html body #duelPage .duel-rank-result-card .duel-rp-track i {
  background: linear-gradient(90deg, #d9f99d, #ffffff) !important;
}
html body #duelPage .duel-rank-result-card .duel-rp-sub {
  color: rgba(255, 255, 255, .92) !important;
}

html body #duelPage .duel-rank-result-card .duel-rp-delta {
  background: rgba(15, 23, 42, .24) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, .36) !important;
}

html body #duelPage .duel-rank-result-card .duel-rp-delta.rp-up {
  background: rgba(88, 204, 2, .34) !important;
  border-color: rgba(217, 249, 157, .65) !important;
}

html body #duelPage .duel-rank-result-card .duel-rp-delta.rp-down {
  background: rgba(255, 75, 75, .32) !important;
  border-color: rgba(254, 202, 202, .65) !important;
}

html body #duelPage .duel-reward-banner {
  background: var(--clinical) !important;
  border: 2px solid rgba(13, 148, 136, .35) !important;
  border-radius: 16px !important;
  color: var(--text) !important;
}

html body #duelPage .duel-reward-title {
  color: var(--med-dark) !important;
}

:root.dark html body #duelPage .duel-reward-title {
  color: var(--med2) !important;
}

html body #duelPage .soc-score {
  background: var(--surface) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: 16px !important;
  color: var(--text) !important;
}

html body #duelPage .soc-score.me {
  border-color: var(--sky) !important;
  border-bottom-color: var(--sky-dark) !important;
  background: var(--sky-soft) !important;
}

html body #duelPage .soc-score small,
html body #duelPage .soc-score span {
  color: var(--muted) !important;
  opacity: 1 !important;
}

html body #duelPage .duel-share-win-btn {
  background: var(--sky) !important;
  border: 2px solid var(--sky-dark) !important;
  border-bottom: 5px solid #0e7ab0 !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  padding: 10px 14px !important;
}

html body #duelPage .duel-share-win-btn:active {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
}

html body #duelPage .soc-btns2 button {
  white-space: normal !important;
  line-height: 1.25 !important;
}

html body #duelPage .soc-rev {
  background: var(--surface) !important;
  border: 2px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  margin-top: 10px !important;
  color: var(--text) !important;
}

html body #duelPage .soc-rev summary {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px !important;
  align-items: start !important;
  cursor: pointer;
  list-style: none;
}

html body #duelPage .soc-rev summary::-webkit-details-marker {
  display: none;
}

html body #duelPage .soc-rev-q {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

html body #duelPage .soc-rev-body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--line);
}

html body #duelPage .soc-rev ul {
  margin: 0 !important;
  display: grid;
  gap: 7px !important;
}

html body #duelPage .soc-rev li {
  display: grid;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}

html body #duelPage .soc-rev li.ok {
  background: var(--brand-soft);
  border-color: rgba(88, 204, 2, .5);
  color: var(--text) !important;
}

html body #duelPage .soc-rev li.bad {
  background: var(--danger-soft);
  border-color: rgba(255, 75, 75, .45);
}

html body #duelPage .soc-rev-opt-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

html body #duelPage .soc-rev-letter {
  font-weight: 900;
  color: var(--sky-text);
}

html body #duelPage .soc-rev-opt-txt {
  flex: 1 1 200px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

html body #duelPage .soc-rev-key {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
}

html body #duelPage .soc-rev-opt-exp {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 5px;
  border-top: 1px dashed var(--line);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

html body #duelPage .soc-rev-opt-exp b {
  color: var(--text);
  font-weight: 800;
}

html body #duelPage .soc-pemb {
  margin: 0 !important;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--text) !important;
  opacity: 1 !important;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

html body #duelPage .soc-pemb b {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--sky-text);
}

html body #duelPage .soc-pemb p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

/* ───────── 7. Floating Wait Bar, Match-Found Modal, & Rank Modal ───────── */
html body .duel-wait-float {
  left: 0 !important;
  right: 0 !important;
  margin-inline: auto !important;
  transform: none !important;
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--med) !important;
  border-bottom-width: 4px !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 20, .18) !important;
  backdrop-filter: none !important;
}

:root.dark html body .duel-wait-float {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .46) !important;
}

html body .duel-wait-float.is-active {
  border-color: var(--warn) !important;
  background: var(--card) !important;
}

html body .duel-wf-txt b {
  color: var(--text) !important;
}

html body .duel-wf-txt b em {
  background: var(--med-soft) !important;
  color: var(--med-dark) !important;
}

:root.dark html body .duel-wf-txt b em {
  color: var(--med2) !important;
}

html body .duel-wf-txt small {
  color: var(--muted) !important;
}

html body .duel-wait-float .duel-wf-open {
  background: var(--surface) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 3px !important;
  color: var(--text) !important;
}

html body .duel-wait-float .duel-wf-cancel {
  background: var(--danger-soft) !important;
  border: 2px solid rgba(255, 75, 75, .38) !important;
  border-bottom-width: 3px !important;
  color: var(--danger-text) !important;
}

html body .duel-wait-float .duel-wf-go {
  background: var(--brand) !important;
  border: 2px solid var(--brand-dark) !important;
  border-bottom-width: 3px !important;
  color: #ffffff !important;
}

html body .duel-matched-card {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--brand) !important;
  border-bottom-width: 5px !important;
  border-radius: 24px !important;
}

html body .duel-matched-ico {
  background: linear-gradient(135deg, #1cb0f6 0%, #0d9488 100%) !important;
  box-shadow: 0 6px 16px rgba(13, 148, 136, .28) !important;
}

html body .duel-matched-title { color: var(--text) !important; }
html body .duel-matched-sub,
html body .duel-matched-note { color: var(--muted) !important; opacity: 1 !important; }
html body .duel-matched-meta { background: transparent !important; border: 0 !important; padding: 0 !important; }
html body .duel-matched-meta span {
  background: var(--surface) !important;
  border: 1.5px solid var(--line) !important;
  color: var(--text) !important;
}

html body .duel-rank-modal {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: 24px !important;
}

html body .duel-rank-mybox {
  background: linear-gradient(135deg, #1cb0f6 0%, #0d9488 100%) !important;
  border: 2px solid #0f766e !important;
  border-bottom-width: 4px !important;
  color: #ffffff !important;
}

html body .duel-rank-myhead small { color: rgba(255, 255, 255, .9) !important; }
html body .duel-rank-myhead span { color: rgba(255, 255, 255, .92) !important; }
html body .duel-rank-rules {
  background: var(--surface) !important;
  border: 2px solid var(--line) !important;
  color: var(--text) !important;
}
html body .duel-tier-row {
  background: var(--card) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 3px !important;
  color: var(--text) !important;
}
html body .duel-tier-row.current {
  border-color: var(--sky) !important;
  background: var(--sky-soft) !important;
}

@media (max-width: 480px) {
  html body #socialPage .duel-hero { padding: 12px !important; }
  html body #socialPage .duel-hero-banner { padding: 12px; }
  html body #duelPage .soc-q { font-size: 16px !important; }
}

/* ───────── 8. Multiplayer Arena (2–15 Pemain, Open/Private, Live Race & Podium) ───────── */
html body #socialPage .soc-seg.n4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html body #socialPage .duel-cap-row {
  display: grid;
  gap: 8px;
}

html body #socialPage .duel-cap-select {
  min-height: 44px !important;
  font-size: 14px !important;
}

html body .duel-tag.mp {
  background: var(--sky-soft) !important;
  color: var(--sky-text) !important;
  border: 1.5px solid rgba(28, 176, 246, .35) !important;
}

html body .duel-tag.open {
  background: var(--med-soft) !important;
  color: var(--med-dark) !important;
  border: 1.5px solid rgba(13, 148, 136, .34) !important;
}

:root.dark html body .duel-tag.open {
  color: var(--med2) !important;
}

html body .duel-tag.priv {
  background: var(--warn-soft) !important;
  color: var(--warn-text) !important;
  border: 1.5px solid rgba(255, 150, 0, .38) !important;
}

html body .duel-host-tag {
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--warn-soft);
  color: var(--warn-text);
  white-space: nowrap;
}

/* Ruang Tunggu Multiplayer */
html body #duelPage .duel-mp-wait-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

html body #duelPage .duel-code-panel {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 2px solid var(--line);
}

html body #duelPage .duel-code-panel > small {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--muted);
}

html body #duelPage .duel-code-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

html body #duelPage .duel-roster-wrap {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 2px solid var(--line);
}

html body #duelPage .duel-roster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

html body #duelPage .duel-roster-head b {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text);
}

html body #duelPage .duel-roster-head small {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

html body #duelPage .duel-roster-list {
  display: grid;
  gap: 7px;
  max-height: 290px;
  overflow-y: auto;
}

html body #duelPage .duel-roster-item {
  display: grid;
  grid-template-columns: 24px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 13px;
  background: var(--card);
  border: 2px solid var(--line);
}

html body #duelPage .duel-roster-item.me {
  border-color: var(--sky);
  background: var(--sky-soft);
}

html body #duelPage .duel-roster-item .soc-av {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

html body #duelPage .duel-roster-num {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

html body #duelPage .duel-roster-info {
  min-width: 0;
  display: grid;
  gap: 1px;
}

html body #duelPage .duel-roster-info b {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

html body #duelPage .duel-roster-info small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body #duelPage .duel-mp-wait-note {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--sky-soft);
  border: 2px solid rgba(28, 176, 246, .35);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

html body #duelPage .duel-start-mp-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Live Multiplayer Race Board */
html body #duelPage .duel-mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

html body #duelPage .duel-mp-mychip {
  display: grid;
  gap: 1px;
}

html body #duelPage .duel-mp-mychip b {
  font-size: 15px;
  font-weight: 900;
  color: var(--sky-text);
}

html body #duelPage .duel-mp-mychip small {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

html body #duelPage .duel-mp-head-r {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html body #duelPage .duel-mp-list {
  display: grid;
  gap: 6px;
}

html body #duelPage .duel-mp-row {
  display: grid;
  grid-template-columns: 28px 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--line);
}

html body #duelPage .duel-mp-row.me {
  border-color: var(--sky);
  background: var(--sky-soft);
}

html body #duelPage .duel-mp-row.is-out {
  opacity: .65;
}

html body #duelPage .duel-mp-row .soc-av {
  width: 32px;
  height: 32px;
  font-size: 11.5px;
}

html body #duelPage .duel-mp-pos {
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

html body #duelPage .duel-mp-pos.top-1,
html body #duelPage .duel-mp-pos.top-2,
html body #duelPage .duel-mp-pos.top-3 {
  font-size: 18px;
}

html body #duelPage .duel-mp-mid {
  min-width: 0;
  display: grid;
  gap: 4px;
}

html body #duelPage .duel-mp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

html body #duelPage .duel-mp-top > b {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

html body #duelPage .duel-mp-score {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

html body #duelPage .duel-mp-track {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

html body #duelPage .duel-mp-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--brand));
  transition: width .3s var(--ease-ui);
}

html body #duelPage .duel-mp-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

html body #duelPage .duel-mp-sub small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

html body #duelPage .duel-mp-st {
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 99px;
  margin-left: auto;
}

html body #duelPage .duel-mp-st.ok { background: var(--brand-soft); color: var(--ok-text); }
html body #duelPage .duel-mp-st.bad { background: var(--danger-soft); color: var(--danger-text); }

/* Podium & Klasemen Akhir Multiplayer */
html body #duelPage .duel-podium {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  align-items: end;
  gap: 8px;
}

html body #duelPage .duel-podium-slot {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 16px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  min-width: 0;
}

html body #duelPage .duel-podium-slot.place-1 {
  background: linear-gradient(180deg, var(--warn-soft), var(--surface) 75%);
  border-color: var(--warn);
  padding-top: 14px;
}

html body #duelPage .duel-podium-slot.me {
  border-color: var(--sky);
}

html body #duelPage .duel-podium-medal { font-size: 22px; line-height: 1; }
html body #duelPage .duel-podium-slot b {
  font-size: 12px;
  font-weight: 900;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html body #duelPage .duel-podium-score {
  font-size: 14px;
  font-weight: 900;
  color: var(--ok-text);
  font-variant-numeric: tabular-nums;
}
html body #duelPage .duel-podium-slot small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

html body #duelPage .duel-standings {
  width: 100%;
  display: grid;
  gap: 7px;
  text-align: left;
}

html body #duelPage .duel-standings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 4px;
}

html body #duelPage .duel-stand-row {
  display: grid;
  grid-template-columns: 30px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--line);
}

html body #duelPage .duel-stand-row.me {
  border-color: var(--sky);
  background: var(--sky-soft);
}

html body #duelPage .duel-stand-row .soc-av {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

html body #duelPage .duel-stand-rank {
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

html body #duelPage .duel-stand-rank.top-1,
html body #duelPage .duel-stand-rank.top-2,
html body #duelPage .duel-stand-rank.top-3 {
  font-size: 19px;
}

html body #duelPage .duel-stand-who {
  min-width: 0;
  display: grid;
  gap: 1px;
}

html body #duelPage .duel-stand-who b {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #duelPage .duel-stand-who small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

html body #duelPage .duel-stand-stat {
  text-align: right;
  display: grid;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}

html body #duelPage .duel-stand-stat b {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

html body #duelPage .duel-stand-stat b em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

html body #duelPage .duel-stand-stat small {
  font-size: 11px;
  font-weight: 800;
  color: var(--sky-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. REVISI 100 PEMAIN, PILIH BANK SOAL, HADIAH DIAMOND, ADMIN INSPECT & PRIVASI
   ═══════════════════════════════════════════════════════════════════════════ */

/* Kapasitas 2–100 Orang (Preset + Input Angka Bebas) */
html body #socialPage .duel-cap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

html body #socialPage .duel-cap-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-bottom-width: 3px;
  min-height: 44px;
}

html body #socialPage .duel-cap-input {
  width: 52px;
  min-height: 36px;
  border: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  padding: 0 !important;
  outline: none;
  font-variant-numeric: tabular-nums;
}

html body #socialPage .duel-cap-input-wrap span {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

/* Multi-Bank Random Pick Selector */
html body #socialPage .duel-bank-picker {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

html body #socialPage .duel-bank-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px dashed var(--line);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

html body #socialPage .duel-bank-toggle em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

html body #socialPage .duel-bank-toggle i {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  flex: none;
}

html body #socialPage .duel-bank-picker.open .duel-bank-toggle {
  border-style: solid;
  border-color: var(--sky);
  background: var(--sky-soft);
}

html body #socialPage .duel-bank-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 15px;
  background: var(--surface);
  border: 2px solid var(--line);
}

html body #socialPage .duel-bank-tools {
  display: grid;
  gap: 7px;
}

html body #socialPage .duel-bank-search {
  width: 100%;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 11px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

html body #socialPage .duel-bank-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

html body #socialPage .duel-bank-btns .duel-mini-btn.on {
  background: var(--sky-soft) !important;
  border-color: var(--sky) !important;
  color: var(--sky-text) !important;
}

html body #socialPage .duel-bank-list {
  display: grid;
  gap: 5px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 2px;
}

html body #socialPage .duel-bank-opt {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--card);
  border: 1.5px solid var(--line);
  cursor: pointer;
}

html body #socialPage .duel-bank-opt.checked {
  border-color: var(--brand);
  background: var(--brand-soft);
}

html body #socialPage .duel-bank-opt input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  margin: 0;
}

html body #socialPage .duel-bank-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #socialPage .duel-bank-blk {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--sky-soft);
  color: var(--sky-text);
  margin-left: 4px;
}

html body #socialPage .duel-bank-opt small {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

/* Custom Hadiah Diamond (Admin-Only) */
html body #socialPage .duel-prize-box {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sky-soft), var(--warn-soft));
  border: 2px solid var(--sky);
}

html body #socialPage .duel-prize-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
}

html body #socialPage .duel-prize-head em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--sky-text);
}

html body #socialPage .duel-prize-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html body #socialPage .duel-prize-field {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
}

html body #socialPage .duel-prize-field span {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

html body #socialPage .duel-prize-field input {
  width: 100%;
  min-height: 32px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  padding: 4px 8px;
  font-variant-numeric: tabular-nums;
}

html body #socialPage .duel-prize-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

html body #socialPage .duel-tag.prize,
html body #duelPage .duel-tag.prize {
  background: linear-gradient(135deg, rgba(28, 176, 246, .16), rgba(250, 204, 21, .22)) !important;
  border-color: rgba(28, 176, 246, .45) !important;
  color: var(--sky-text) !important;
}

html body #duelPage .duel-mp-dia {
  font-style: normal;
  font-weight: 900;
  color: var(--sky-text);
}

html body #duelPage .duel-podium-dia {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--sky-soft);
  color: var(--sky-text);
  font-size: 10.5px;
  font-weight: 900;
  margin-top: 2px;
}

/* Admin Live Inspect Panel di Lobi */
html body #socialPage .duel-admin-inspect-card {
  border-color: var(--sky) !important;
}

html body #socialPage .duel-admin-room-list {
  display: grid;
  gap: 8px;
}

html body #socialPage .duel-admin-room-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 15px;
  background: var(--surface);
  border: 2px solid var(--line);
}

html body #socialPage .duel-admin-room-row.is-live {
  border-color: rgba(255, 75, 75, .45);
  background: linear-gradient(135deg, var(--surface), var(--danger-soft));
}

html body #socialPage .duel-admin-room-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

html body #socialPage .duel-admin-room-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

html body #socialPage .duel-admin-room-top b {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text);
}

html body #socialPage .duel-admin-room-info > small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

html body #socialPage .duel-admin-code,
html body #duelPage .duel-admin-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--text);
}

html body #socialPage .duel-inspect-status,
html body #duelPage .duel-inspect-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .04em;
}

html body #socialPage .duel-inspect-status.live,
html body #duelPage .duel-inspect-status.live {
  background: var(--danger-soft);
  color: var(--danger-text);
  border: 1.5px solid rgba(255, 75, 75, .45);
}

html body #socialPage .duel-inspect-status.wait,
html body #duelPage .duel-inspect-status.wait {
  background: var(--warn-soft);
  color: var(--warn-text);
  border: 1.5px solid rgba(255, 150, 0, .45);
}

html body #duelPage .duel-inspect-status.done {
  background: var(--brand-soft);
  color: var(--ok-text);
  border: 1.5px solid rgba(88, 204, 2, .45);
}

html body #socialPage .duel-inspect-btn {
  min-height: 38px !important;
  padding: 0 13px !important;
  font-size: 12.5px !important;
  white-space: nowrap;
}

/* Admin Spectator Live Inspect Page */
html body #duelPage .duel-inspect-wrap {
  display: grid;
  gap: 14px;
}

html body #duelPage .duel-inspect-banner {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 2px solid var(--sky);
}

html body #duelPage .duel-inspect-banner-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

html body #duelPage .duel-inspect-banner h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
}

html body #duelPage .duel-inspect-banner p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

html body #duelPage .duel-inspect-cd {
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--warn-soft);
  border: 2px solid rgba(255, 150, 0, .45);
  color: var(--warn-text);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

html body #duelPage .duel-inspect-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 520px) {
  html body #duelPage .duel-inspect-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html body #duelPage .duel-inspect-kpi {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--line);
  text-align: center;
}

html body #duelPage .duel-inspect-kpi small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--muted);
}

html body #duelPage .duel-inspect-kpi b {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

html body #duelPage .duel-inspect-kpi b em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

html body #duelPage .duel-inspect-kpi.ok b { color: var(--ok-text); }
html body #duelPage .duel-inspect-kpi.play b { color: var(--sky-text); }
html body #duelPage .duel-inspect-kpi.out b { color: var(--danger-text); }

html body #duelPage .duel-inspect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

html body #duelPage .duel-inspect-board {
  display: grid;
  gap: 9px;
}

html body #duelPage .duel-inspect-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html body #duelPage .duel-inspect-board-head b {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

html body #duelPage .duel-inspect-search {
  min-width: 180px;
  flex: 1 1 180px;
  max-width: 260px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 11px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}

html body #duelPage .duel-inspect-search.compact {
  min-width: 140px;
  max-width: 200px;
  min-height: 32px;
}

html body #duelPage .duel-inspect-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 2px;
}

/* Mode Privasi Top-3 & Kartu Hasil Pribadi */
html body #duelPage .duel-privacy-note {
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--surface);
  border: 1.5px dashed var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

html body #duelPage .duel-privacy-sep {
  margin: 4px 0 2px;
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--sky-soft);
  color: var(--sky-text);
  font-size: 10.5px;
  font-weight: 900;
  text-align: center;
}

html body #duelPage .duel-top3-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  color: var(--warn-text);
  margin-top: 2px;
}

html body #duelPage .duel-private-card {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 2px solid var(--sky);
  text-align: left;
}

html body #duelPage .duel-private-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

html body #duelPage .duel-private-head em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--sky-soft);
  color: var(--sky-text);
}

html body #duelPage .duel-private-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html body #duelPage .duel-private-stat {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 13px;
  background: var(--card);
  border: 1.5px solid var(--line);
}

html body #duelPage .duel-private-stat small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--muted);
}

html body #duelPage .duel-private-stat b {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

html body #duelPage .duel-private-stat b em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

html body #duelPage .duel-private-dia {
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1.5px solid rgba(88, 204, 2, .42);
  color: var(--ok-text);
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
}

html body #duelPage .duel-private-note {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

html body #duelPage .soc-opt {
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html body #duelPage .soc-opt > * {
  pointer-events: none;
}

html body #duelPage .soc-opt.picking,
html body #duelPage .soc-opt.picking:disabled {
  opacity: 1 !important;
  border-color: var(--sky, #1cb0f6) !important;
  background: var(--sky-soft, rgba(28, 176, 246, .14)) !important;
  color: var(--text) !important;
  box-shadow: 0 3px 0 rgba(28, 176, 246, .45);
  transform: translateY(1px);
}

html body #duelPage .soc-opt.picking .soc-l {
  background: var(--sky, #1cb0f6) !important;
  border-color: var(--sky, #1cb0f6) !important;
  color: #fff !important;
}

html body #duelPage .soc-opt-sending {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(28, 176, 246, .18);
  color: var(--sky-text, #0369a1);
  white-space: nowrap;
}

