/*
 * DraftArena · Permanent visual refinement · DraftArena 1.6.69
 * A presentation layer ONLY. No UI logic, team colors, draft clock, match
 * registration, role permissions, league data or historical statistics change.
 * Scope excludes .draft-focus-mode to retain the tournament draft layout.
 * Retains user's requested palette #0B1119 with gold as a primary CTA accent.
 */
html body:not(.draft-focus-mode) {
  --da-background: #0B1119;
  --da-navbar: #0e1824;
  --da-surface: #141f2e;
  --da-border: #293a4e;
  --da-input: #0c1725;
  --da-title: #f1e6d1;
  --da-text: #ecf2f8;
  --da-muted: #a0afc1;
  --da-primary: #e7b957;
  --da-primary-text: #17130b;
  --da-card-shadow: 0 16px 40px rgba(2, 6, 13, .22);
  --da-card-shadow-hover: 0 22px 48px rgba(2, 6, 13, .34);
}

/* Stable page frame. No rewrites of app layout or SPA navigation. */
html body:not(.draft-focus-mode) .sidebar {
  background: rgba(13, 23, 36, .96) !important;
  border-bottom: 1px solid rgba(133, 158, 188, .17) !important;
  padding-block: 14px !important;
  box-shadow: 0 8px 26px rgba(3, 7, 14, .14);
  backdrop-filter: blur(18px);
}
html body:not(.draft-focus-mode) .brand {
  gap: 13px;
}
html body:not(.draft-focus-mode) .brand-mark {
  border-radius: 14px !important;
  background: linear-gradient(145deg, #23374c, #0c1827) !important;
  border-color: rgba(231,185,87,.34) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.065),0 10px 28px rgba(3,8,17,.29) !important;
}
html body:not(.draft-focus-mode) .brand strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.45px;
}
html body:not(.draft-focus-mode) .brand small {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: #94a8bb !important;
}
html body:not(.draft-focus-mode) .sidebar .nav {
  gap: 5px;
}
html body:not(.draft-focus-mode) .sidebar .nav-item {
  min-height: 44px;
  padding-inline: 15px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  color: #b5c4d4 !important;
  font-size: 12px;
  font-weight: 750;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s !important;
}
html body:not(.draft-focus-mode) .sidebar .nav-item:hover {
  background: #1c2c3e !important;
  border-color: #314a60 !important;
  color: #f2f6fa !important;
}
html body:not(.draft-focus-mode) .sidebar .nav-item.active {
  background: linear-gradient(145deg, #22384d, #1a2b3d) !important;
  border-color: #3f5970 !important;
  color: #f5f7fa !important;
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 5px 18px rgba(1,5,12,.15) !important;
}
html body:not(.draft-focus-mode) .sidebar .nav-item.active .nav-icon {
  color: #e7b957 !important;
}
html body:not(.draft-focus-mode) .topbar {
  background: rgba(10,18,29,.55) !important;
  border-color: rgba(139,165,192,.14) !important;
  min-height: 70px;
  height: auto;
  padding-block: 12px;
}
html body:not(.draft-focus-mode) .breadcrumbs {
  letter-spacing: 1.35px;
  font-size: 10px;
  color: #9bacc0 !important;
}
html body:not(.draft-focus-mode) .breadcrumbs b {
  color: #f1e6d1 !important;
}
html body:not(.draft-focus-mode) .desktop-note {
  letter-spacing: 1.65px;
  color: #a6b4c5 !important;
}
html body:not(.draft-focus-mode) main {
  max-width: 1440px;
  padding-top: clamp(25px, 3vw, 43px);
  padding-bottom: 65px;
}
html body:not(.draft-focus-mode) .footer {
  font-size: 11px;
  letter-spacing: .55px;
  opacity: .78;
}

/* Editorial hierarchy. Typography stays native (no external fonts). */
html body:not(.draft-focus-mode) :is(.page-heading h1,.hero h1,.home-section-head h2,.podium-heading>span) {
  letter-spacing: -.035em !important;
  font-weight: 850 !important;
  color: #f1e6d1 !important;
  text-wrap: balance;
}
html body:not(.draft-focus-mode) .page-heading {
  margin-bottom: 27px;
  gap: 20px;
}
html body:not(.draft-focus-mode) .page-heading h1 {
  font-size: clamp(27px, 3vw, 39px) !important;
  line-height: 1.12;
}
html body:not(.draft-focus-mode) :is(.eyebrow,.hero-kicker,.upper) {
  letter-spacing: 1.6px !important;
  font-weight: 800 !important;
  color: #a8bbce !important;
}
html body:not(.draft-focus-mode) :is(.page-heading p,.hero p,.smalltext) {
  line-height: 1.75;
  color: #b5c2d1 !important;
}
html body:not(.draft-focus-mode) .home-section {
  margin-top: 33px;
}
html body:not(.draft-focus-mode) .home-section-head {
  margin-bottom: 19px;
}

/* Deliberate surface depth: slight top edge light, never loud glowing gold. */
html body:not(.draft-focus-mode) :is(
  .panel,.stat-card,.home-metrics,.home-matches,.league-tile,
  .rule-block,.report-cell,.profile-recent-panel,.profile-used-panel,
  .profile-summary-panel,.queue-search-scene,.login-panel,.team-card
) {
  background: linear-gradient(164deg,#172638 0%,#131e2d 77%) !important;
  border: 1px solid #293c52 !important;
  border-radius: 17px !important;
  box-shadow: inset 0 1px rgba(255,255,255,.028), var(--da-card-shadow) !important;
}
html body:not(.draft-focus-mode) :is(.panel-head,.login-panel-top) {
  background: rgba(27,44,62,.57) !important;
  border-color: #2c4055 !important;
}
html body:not(.draft-focus-mode) .panel-head {
  padding: 21px 25px;
}
html body:not(.draft-focus-mode) .panel-head h2 {
  font-size: 15px;
  letter-spacing: -.1px;
  font-weight: 850;
}
html body:not(.draft-focus-mode) :is(.panel-pad,.rule-block) {
  padding: 25px;
}

/* Champion hero: luminous blue depth, generous negative space. */
html body:not(.draft-focus-mode) :is(.hero,.hero.hero-elite,.hero.hero-pro) {
  background:
    radial-gradient(ellipse 52% 105% at 87% 39%,rgba(48,91,126,.30),transparent 72%),
    radial-gradient(ellipse 50% 80% at 2% 0%,rgba(62,99,139,.12),transparent 70%),
    linear-gradient(115deg,#152538 3%,#101a29 72%,#152438 100%) !important;
  border: 1px solid #34506b !important;
  border-radius: 22px !important;
  box-shadow: inset 0 1px rgba(255,255,255,.08),0 28px 65px rgba(1,6,15,.30) !important;
}
html body:not(.draft-focus-mode) .hero .hero-copy {
  padding-block: 6px;
}
html body:not(.draft-focus-mode) .hero .hero-copy h1 {
  line-height: 1.09 !important;
  font-size: clamp(32px, 4.2vw, 58px) !important;
}
html body:not(.draft-focus-mode) .hero .hero-copy p {
  max-width: 52ch;
  color: #c2d0de !important;
  font-size: 13.5px;
}
html body:not(.draft-focus-mode) .hero .hero-copy .hero-bottom {
  color: #acbdcf !important;
  letter-spacing: .4px;
}
html body:not(.draft-focus-mode) .hero-actions {
  gap: 11px;
}
html body:not(.draft-focus-mode) .home-metrics.pro {
  border-radius: 16px !important;
  box-shadow: var(--da-card-shadow) !important;
}
html body:not(.draft-focus-mode) .home-metrics.pro > div {
  padding-block: 22px;
}
html body:not(.draft-focus-mode) .home-metrics.pro strong {
  font-size: clamp(23px, 2.5vw, 34px);
  letter-spacing: -.8px;
  font-variant-numeric: tabular-nums;
}
html body:not(.draft-focus-mode) .home-metrics.pro span {
  letter-spacing: .7px;
  color: #9eafc2 !important;
}

/* Keep the existing class art/rank identities, improve the card's frame only. */
html body:not(.draft-focus-mode) .leader-card.reference-card {
  border: 1px solid #39516a !important;
  border-radius: 20px !important;
  box-shadow: 0 19px 38px rgba(1,4,12,.33) !important;
  transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease !important;
  overflow: hidden;
}
html body:not(.draft-focus-mode) .leader-card.reference-card:hover {
  border-color: #637e99 !important;
  box-shadow: var(--da-card-shadow-hover) !important;
  transform: translateY(-3px);
}
html body:not(.draft-focus-mode) .leader-card.reference-card .reference-position {
  border-color: #365068 !important;
}

/* One button system; gold is intentionally limited to main CTAs. */
html body:not(.draft-focus-mode) :is(.btn,.selector-tab,.seg-item,.history-scope-tab,.page-back-arrow) {
  border-radius: 11px !important;
  transition: background-color .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s !important;
}
html body:not(.draft-focus-mode) .btn {
  min-height: 43px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15px;
  box-shadow: inset 0 1px rgba(255,255,255,.045) !important;
}
html body:not(.draft-focus-mode) .btn.small {
  min-height: 35px;
  padding: 8px 13px;
}
html body:not(.draft-focus-mode) :is(.btn.gold,.login-button) {
  background: linear-gradient(180deg,#f0c876,#dbae58) !important;
  border-color: #efd08b !important;
  color: #19160f !important;
  box-shadow: inset 0 1px rgba(255,255,255,.29),0 5px 16px rgba(176,127,43,.15) !important;
}
html body:not(.draft-focus-mode) :is(.btn.gold,.login-button):hover:not(:disabled) {
  background: linear-gradient(180deg,#f5d38a,#e6b866) !important;
  box-shadow: 0 7px 18px rgba(176,127,43,.23) !important;
}
html body:not(.draft-focus-mode) :is(.btn.ghost,.btn.outline-gold) {
  background: linear-gradient(180deg,#22364a,#1a2c3d) !important;
  border-color: #435c73 !important;
  color: #eaf2f9 !important;
}
html body:not(.draft-focus-mode) :is(.btn.ghost,.btn.outline-gold):hover:not(:disabled) {
  background: #2b4359 !important;
  border-color: #6686a0 !important;
}
html body:not(.draft-focus-mode) :is(.btn,.nav-item,.history-scope-tab):focus-visible,
html body:not(.draft-focus-mode) :is(input,textarea,select,.field,.select):focus-visible {
  outline: 2px solid #8bb8d9 !important;
  outline-offset: 3px !important;
}

/* Input ergonomics and compact readable tables. */
html body:not(.draft-focus-mode) :is(input:not([type='checkbox']):not([type='radio']),select,textarea,.field,.select) {
  border-radius: 11px !important;
  border-color: #354c65 !important;
  background: #0d1a29 !important;
  color: #edf3f8 !important;
  min-height: 43px;
}
html body:not(.draft-focus-mode) :is(input,textarea)::placeholder {
  color: #899fb4 !important;
}
html body:not(.draft-focus-mode) :is(.queue-member,.invite-row,.profile-match-card,.match-item) {
  border-radius: 12px !important;
}
html body:not(.draft-focus-mode) .table {
  font-variant-numeric: tabular-nums;
}
html body:not(.draft-focus-mode) .table thead th {
  background: #0f1b2a !important;
  font-size: 10px;
  letter-spacing: 1.15px;
  padding-block: 15px;
  color: #aabccf !important;
}
html body:not(.draft-focus-mode) .table tbody td {
  background: rgba(20,32,46,.82) !important;
  padding-block: 16px;
  border-color: #2a3c51 !important;
}
html body:not(.draft-focus-mode) .table tbody tr:hover td {
  background: #213448 !important;
}
html body:not(.draft-focus-mode) .rank:not(.top) {
  border-radius: 9px;
  background: #253a50 !important;
}
html body:not(.draft-focus-mode) :is(.history-scope-tabs,.seg) {
  border-radius: 12px;
}
html body:not(.draft-focus-mode) :is(.history-scope-tab.selected,.selector-tab.selected,.seg-item.selected) {
  background: #28445c !important;
  border-color: #668ca9 !important;
  color: #f5f9fc !important;
}
html body:not(.draft-focus-mode) :is(.badge,.league-pill) {
  border-radius: 8px;
  letter-spacing: .35px;
}

/* Better containment for overlays, dropdowns and chat without changing events. */
html body:not(.draft-focus-mode) :is(.account-menu-popover,.duo-party-float,.readycheck-modal,.draft-requeue-dialog) {
  border-radius: 18px !important;
  border: 1px solid #3c5670 !important;
  box-shadow: 0 22px 70px rgba(0,4,12,.43) !important;
}
html body:not(.draft-focus-mode) :is(.notice,.queue-kta-link-gate) {
  border-radius: 13px !important;
}
html body:not(.draft-focus-mode) .notice.warning {
  background: #302a24 !important;
  border-color: #8b713f !important;
  color: #f0d6aa !important;
}
html body:not(.draft-focus-mode) .notice.error {
  background: #38252d !important;
  border-color: #a34b59 !important;
  color: #ffc9d0 !important;
}
html body:not(.draft-focus-mode) .toast {
  border-radius: 13px !important;
  box-shadow: 0 16px 36px rgba(1,5,12,.37) !important;
}

/* No UI animation for users who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html :is(.leader-card,.btn,.nav-item,.panel,.stat-card) {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width: 980px) {
  html body:not(.draft-focus-mode) .sidebar {
    gap: 8px;
    padding-inline: 18px !important;
  }
  html body:not(.draft-focus-mode) .sidebar .nav-item {
    padding-inline: 10px !important;
    min-height: 39px;
  }
  html body:not(.draft-focus-mode) main { padding-inline: 22px; }
}
@media (max-width: 740px) {
  html body:not(.draft-focus-mode) .sidebar {
    padding: 13px 14px !important;
  }
  html body:not(.draft-focus-mode) .sidebar .nav-item {
    min-height: 38px;
    padding: 9px 12px !important;
  }
  html body:not(.draft-focus-mode) main {
    padding: 22px 15px 40px;
  }
  html body:not(.draft-focus-mode) .hero {
    border-radius: 17px !important;
  }
  html body:not(.draft-focus-mode) .hero .hero-copy h1 {
    font-size: clamp(28px, 8.7vw, 38px) !important;
  }
  html body:not(.draft-focus-mode) .panel-head { padding: 17px; }
  html body:not(.draft-focus-mode) :is(.panel-pad,.rule-block) { padding: 18px; }
  html body:not(.draft-focus-mode) .home-metrics.pro > div {padding-block: 15px;}
}


/* Result vote semantics: green = my team won; red = my team lost.
   These colours reflect the player's team, never the internal A/B letter. */
.result-vote .result-choice.result-choice--win {
  background: linear-gradient(145deg, #164b36, #113426) !important;
  border-color: #43996b !important;
  color: #effff4 !important;
  box-shadow: inset 0 1px rgba(216,255,225,.08);
}
.result-vote .result-choice.result-choice--loss {
  background: linear-gradient(145deg, #592732, #3b1c27) !important;
  border-color: #ad5867 !important;
  color: #fff1f2 !important;
  box-shadow: inset 0 1px rgba(255,222,228,.055);
}
.result-vote .result-choice.result-choice--win small { color: #c8ebd5 !important; }
.result-vote .result-choice.result-choice--loss small { color: #f1c7d0 !important; }
.result-vote .result-choice.result-choice--win:hover:not(:disabled) {
  background: linear-gradient(145deg, #1d6547, #154d38) !important;
  border-color: #7fe0a6 !important;
}
.result-vote .result-choice.result-choice--loss:hover:not(:disabled) {
  background: linear-gradient(145deg, #77313d, #542530) !important;
  border-color: #f08d9a !important;
}
.result-vote .result-choice.result-choice--win.selected {
  background: linear-gradient(145deg, #1d6b47, #154b34) !important;
  border-color: #a8efbc !important;
  box-shadow: 0 0 0 2px rgba(110,228,153,.24), inset 0 0 0 1px #b0f6c1 !important;
}
.result-vote .result-choice.result-choice--loss.selected {
  background: linear-gradient(145deg, #862f41, #622638) !important;
  border-color: #ffc0c9 !important;
  box-shadow: 0 0 0 2px rgba(255,116,136,.23), inset 0 0 0 1px #ffc4ca !important;
}
.result-vote .result-choice:disabled { opacity: .5; cursor: not-allowed; }
.result-vote .result-choice:focus-visible { outline: 3px solid #f0c967 !important; outline-offset: 3px !important; }
.result-vote .result-choice-summary.result-choice-summary--win {
  background: #123a2c !important; border-color: #4ba775 !important;
}
.result-vote .result-choice-summary.result-choice-summary--loss {
  background: #421e2b !important; border-color: #bf6276 !important;
}
.result-vote .result-choice-summary.result-choice-summary--loss b { color: #ffd1d9; }
