@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=Sora:wght@500;600;700&display=swap');

:root {
  --logo-red: #ff0808;
  --logo-orange: #ff7400;
  --logo-yellow: #ffc800;
  --ink: #11100f;
  --ink-deep: #070606;
  --ink-soft: #261612;
  --paper: #fffaf1;
  --paper-warm: #fffdf8;
  --line: #eadfd1;
  --line-dark: rgba(255, 255, 255, 0.11);
  --muted: #8d8176;
  --muted-dark: #70645b;
  --gold: var(--logo-yellow);
  --gold-light: #fff4bf;
  --coral: var(--logo-red);
  --coral-light: #ffe5e5;
  --teal: var(--logo-orange);
  --teal-light: #fff0df;
  --violet: #e84f00;
  --blue: #ff9f00;
  --shadow: 0 18px 48px rgba(42, 19, 7, 0.09);
  --radius: 18px;
  color-scheme: light;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }

body.modal-open { overflow: hidden; }
.skip-link { position: fixed; z-index: 100; top: 9px; left: 9px; padding: 9px 12px; border-radius: 7px; color: var(--ink); background: var(--gold); font-size: 11px; font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .18s; }
.skip-link:focus { transform: translateY(0); }
.initial-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: #7f8994; background: var(--paper); font-size: 11px; }
.loading-state { min-height: 300px; display: grid; place-content: center; justify-items: center; gap: 2px; color: #87929c; font-size: 11px; }
.noscript-message { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 25px; color: #657384; background: var(--paper); text-align: center; font-size: 12px; }
.noscript-message strong { color: var(--ink); font-size: 16px; }
#main-content:focus { outline: none; }

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(255, 116, 0, 0.34); outline-offset: 2px; }

.app-shell { display: flex; min-height: 100vh; animation: app-shell-in .5s cubic-bezier(.2,.75,.25,1) both; }

.sidebar {
  position: sticky;
  top: 0;
  width: 254px;
  flex: 0 0 254px;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--ink);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 17px 20px;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; animation: slide-in-left .48s .05s both; }
.brand-logo-frame { width: 56px; height: 32px; flex: 0 0 56px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--ink-deep); }
.brand-logo { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.05; letter-spacing: -0.03em; }
.brand-subtitle { color: #8e8175; font-size: 10px; line-height: 1.2; letter-spacing: 0.07em; text-transform: uppercase; }

.season-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aab6c6;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  margin: 33px 6px 27px;
  padding: 9px 11px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(255, 116, 0, 0.14); animation: live-pulse 2.2s ease-in-out infinite; }
.season-year { margin-left: auto; color: #617087; }
.space-card { margin: -12px 6px 25px; padding: 13px 12px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.045); }
.space-card-top { display: flex; align-items: center; justify-content: space-between; color: #718198; font: 8px 'JetBrains Mono', monospace; letter-spacing: .1em; }
.space-lock { color: var(--teal); font-size: 14px; }
.space-card > strong, .space-card > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-card > strong { margin-top: 9px; color: #fff; font: 600 12px 'Sora', sans-serif; }
.space-card > small { margin-top: 4px; color: #8492a6; font: 8px 'JetBrains Mono', monospace; }
.space-invite-button { width: 100%; margin-top: 12px; padding: 7px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.08); color: var(--gold); background: transparent; text-align: left; font-size: 10px; }
.space-invite-button span { float: right; }
.space-invite-button:hover { color: #ffd77e; }

.main-nav { flex: 1; animation: slide-in-left .48s .18s both; }
.nav-label { color: #617087; padding: 0 13px 10px; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 28px; }
.nav-item {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #8794a7;
  background: transparent;
  border-radius: 9px;
  transition: color .18s, background .18s, transform .18s;
}
.nav-item:hover { color: #e5ebf2; background: rgba(255,255,255,.05); transform: translateX(3px); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.105); box-shadow: inset 3px 0 0 var(--gold); }
.nav-item.active .nav-icon { color: var(--gold); }
.nav-icon { width: 18px; display: inline-grid; place-items: center; color: #6e7c90; font-size: 17px; line-height: 1; }
.nav-item span:not(.nav-icon):not(.nav-count) { font-weight: 500; font-size: 13px; }
.nav-count { margin-left: auto; min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 10px; color: #e49b00; background: rgba(255,200,0,.13); font: 10px 'DM Mono', monospace; }
.admin-nav-badge { margin-left: auto; color: #667a92; font: 8px 'DM Mono', monospace; letter-spacing: .05em; }
.nav-item.active .admin-nav-badge { color: var(--gold); }

.sidebar-bottom { position: sticky; z-index: 2; bottom: 0; display: flex; flex-direction: column; flex-shrink: 0; margin-top: auto; padding-top: 9px; background: linear-gradient(to bottom, rgba(17,16,15,0), var(--ink) 12px); animation: slide-in-left .48s .28s both; }
.bounty-rule-card { margin: 16px 5px 18px; padding: 15px 14px 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); border-radius: 12px; animation: rule-card-in .65s .35s both; transition: border-color .22s, background .22s, transform .22s, box-shadow .22s; }
.bounty-rule-card:hover { border-color: rgba(255,200,0,.3); background: rgba(255,255,255,.06); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.rule-card-top { display: flex; align-items: center; gap: 7px; color: #aeb9c8; font-size: 11px; }
.tiny-star { color: var(--gold); font-size: 12px; }
.rule-score { margin: 12px 0 5px; font: 22px 'DM Mono', monospace; letter-spacing: -.06em; color: #fff; }
.rule-score strong { color: var(--gold); font-weight: 500; }
.bounty-rule-card p { margin: 0 0 11px; color: #78869a; font-size: 10px; line-height: 1.5; }
.text-button { border: 0; padding: 0; color: #d7e1ed; background: none; font-size: 11px; }
.text-button:hover { color: var(--gold); }
.text-button span { color: var(--gold); margin-left: 4px; }
.local-status { display: flex; align-items: center; gap: 9px; padding: 0 7px 2px; color: #fff; animation: fade-up .48s .52s both; }
.status-icon { color: var(--teal); font-size: 17px; transform: rotate(-20deg); }
.local-status strong, .local-status small { display: block; }
.local-status strong { font-size: 11px; font-weight: 500; }
.local-status small { color: #718096; font-size: 9px; margin-top: 2px; }
.status-check { margin-left: auto; color: var(--teal); font-size: 13px; }

.main-content { flex: 1; width: 100%; min-width: 0; }
.sidebar-overlay { display: none; }
.topbar { height: 79px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(32px, calc((100% - 1240px) / 2 + 32px)); background: var(--paper-warm); border-bottom: 1px solid var(--line); animation: topbar-in .45s .12s both; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; color: #a2a9b1; font-size: 12px; }
.breadcrumbs b { color: #d2d6d5; font-weight: 400; }
.breadcrumbs strong { color: #26334a; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; color: #7f8995; border: 1px solid var(--line); border-radius: 9px; background: transparent; font-size: 18px; transition: color .18s, transform .18s, background .18s; }
.icon-button:hover { color: var(--ink); background: #fff; transform: rotate(-25deg); }
.topbar-divider { width: 1px; height: 26px; background: var(--line); }
.acting-as { display: flex; align-items: center; gap: 10px; }
.acting-as span { color: #a1a8b0; font-size: 10px; }
.acting-as select { appearance: none; border: 0; color: var(--ink); background: transparent; padding-right: 15px; font-weight: 600; font-size: 12px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #8b939d 50%), linear-gradient(135deg, #8b939d 50%, transparent 50%); background-position: calc(100% - 7px) 52%, calc(100% - 3px) 52%; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.current-avatar, .avatar { display: grid; place-items: center; color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 600; border-radius: 50%; }
.current-avatar { width: 33px; height: 33px; padding: 0; border: 0; overflow: hidden; background: var(--coral); font-size: 10px; box-shadow: 0 0 0 4px #fff; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.current-avatar:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px #fff, 0 5px 13px rgba(16,27,44,.15); }
.current-avatar.teal { background: var(--teal); }
.current-avatar.violet { background: var(--violet); }
.current-avatar.gold { color: var(--ink); background: var(--gold); }
.current-avatar.blue { background: var(--blue); }
.current-avatar.mint { color: var(--ink); background: #ffb35f; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); font-size: 20px; }
.account-summary { display: grid; grid-template-columns: auto auto; column-gap: 7px; align-items: center; min-width: 135px; }
.account-summary span { grid-column: 1 / -1; color: #a1a8b0; font-size: 9px; }
.account-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 11px; }
.account-summary small { overflow: hidden; max-width: 120px; text-overflow: ellipsis; white-space: nowrap; color: #9ba3ac; font-size: 9px; }
.signout-button { border: 0; padding: 5px 0; color: #858f99; background: transparent; font-size: 10px; }
.signout-button:hover { color: var(--coral); }
.notification-menu { position: relative; }
.notification-button { position: relative; color: #71808e; font-size: 17px; }
.notification-button:hover { color: var(--ink); }
.notification-new-dot { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border: 2px solid var(--paper-warm); border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px rgba(255, 8, 8, .12); animation: notification-pulse 1.8s ease-in-out infinite; }
.notification-popover { position: absolute; z-index: 30; top: calc(100% + 12px); right: 0; width: min(360px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-warm); box-shadow: 0 18px 45px rgba(42,19,7,.17); animation: popover-in .2s ease-out both; }
.notification-popover-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 16px 12px; border-bottom: 1px solid #edf0ee; }
.notification-popover-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; flex-wrap: wrap; }
.notification-popover-header strong, .notification-popover-header small { display: block; }
.notification-popover-header strong { color: var(--ink); font: 600 13px 'Sora', sans-serif; }
.notification-popover-header small { margin-top: 4px; color: #9aa3aa; font: 8px 'JetBrains Mono', monospace; }
.notification-popover-header .button-ghost { white-space: nowrap; }
.notification-popover-header .clear-notifications { color: #bd3c2e; }
.notification-popover-header .clear-notifications:hover { color: #8f160d; }
.notification-list { max-height: min(430px, 65vh); overflow-y: auto; }
.notification-item { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid #edf0ee; color: inherit; background: transparent; text-align: left; animation: list-item-in .32s both; transition: background .18s, padding-left .18s; }
.notification-item:hover { padding-left: 20px; }
.notification-item:nth-child(2) { animation-delay: .04s; }
.notification-item:nth-child(3) { animation-delay: .08s; }
.notification-item:nth-child(4) { animation-delay: .12s; }
.notification-item:nth-child(5) { animation-delay: .16s; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover, .notification-item.unread { background: #fffdf5; }
.notification-symbol { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 27px; border-radius: 8px; color: #b07c1f; background: var(--gold-light); font-size: 13px; }
.notification-item.unread .notification-symbol { color: #c46052; background: var(--coral-light); }
.notification-copy { min-width: 0; flex: 1; }
.notification-copy strong, .notification-copy span, .notification-copy small { display: block; }
.notification-copy strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }
.notification-copy span { margin-top: 4px; color: #7d8994; font-size: 10px; line-height: 1.4; }
.notification-copy small { margin-top: 5px; color: #a1a9ae; font: 8px 'JetBrains Mono', monospace; }
.notification-unread-dot { width: 6px; height: 6px; flex: 0 0 6px; margin-top: 6px; border-radius: 50%; background: var(--coral); }
.notification-empty { display: grid; justify-items: center; gap: 5px; padding: 30px 20px; color: #9da6ac; text-align: center; }
.notification-empty > span { color: var(--gold); font-size: 17px; }
.notification-empty strong { color: #667486; font-size: 11px; }
.notification-empty p { margin: 0; font-size: 10px; }
.notification-loading { padding: 30px 20px; color: #9da6ac; text-align: center; font-size: 10px; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 1fr) minmax(480px, 1.15fr); background: var(--paper); }
.auth-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 43px 7vw 42px; color: #fff; background: var(--ink); animation: slide-in-left .6s cubic-bezier(.2,.75,.25,1) both; }
.auth-visual::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -180px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.025), 0 0 0 126px rgba(255,255,255,.025); }
.auth-visual::after { content: '✦'; position: absolute; right: 18%; top: 18%; color: var(--gold); font-size: 16px; }
.auth-visual .brand { padding: 0; }
.auth-visual .brand-logo-frame { width: 92px; height: 42px; flex-basis: 92px; }
.auth-visual-copy { position: relative; z-index: 1; max-width: 480px; margin: auto 0; padding: 55px 0; }
.auth-visual-copy .eyebrow { color: #71869d; margin-bottom: 17px; }
.auth-visual-copy h1 { margin: 0; font: 700 clamp(37px, 4vw, 58px)/.99 'Space Grotesk', sans-serif; letter-spacing: -.075em; }
.auth-visual-copy h1 em { color: var(--gold); font-style: normal; }
.auth-visual-copy p:not(.eyebrow) { max-width: 360px; margin: 20px 0 0; color: #9aaabd; font-size: 13px; line-height: 1.65; }
.auth-visual-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #718197; font: 9px 'DM Mono', monospace; letter-spacing: .04em; }
.auth-visual-footer .live-dot { margin-right: 2px; }
.auth-card-wrap { display: grid; place-items: center; padding: 42px 7vw; }
.auth-card { width: min(100%, 426px); animation: card-enter .55s .12s both; }
.auth-card-header { margin-bottom: 26px; }
.auth-card-header .eyebrow { color: #9da5ad; }
.auth-card-header h2 { margin: 0; font: 700 31px 'Space Grotesk', sans-serif; letter-spacing: -.06em; }
.auth-card-header p:not(.eyebrow) { margin: 9px 0 0; color: #89939e; font-size: 12px; line-height: 1.5; }
.auth-tabs { display: flex; gap: 19px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.auth-tab { position: relative; border: 0; padding: 0 0 11px; color: #a3abb3; background: transparent; font-size: 11px; font-weight: 600; }
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: var(--gold); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .field { gap: 7px; }
.auth-form .field label { color: #677484; }
.auth-form .field input { min-height: 42px; padding: 0 12px; border-radius: 8px; }
.auth-form .button-primary { width: 100%; min-height: 43px; margin-top: 4px; }
.auth-password-note { color: #a2aab2; font-size: 9px; margin-top: -5px; }
.auth-error { padding: 10px 11px; border: 1px solid #f0d2cd; border-radius: 8px; color: #a8544b; background: #fff6f3; font-size: 10px; line-height: 1.45; }
.invite-auth-hint { display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; margin-bottom: 18px; border: 1px solid #e4d8b9; border-radius: 9px; color: #8e6d2d; background: #fff9e9; font-size: 10px; line-height: 1.45; }
.invite-auth-hint > span:first-child { color: var(--gold); font-size: 15px; line-height: 1; }
.invite-auth-hint strong { color: #69501d; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 23px 0 15px; color: #a8afb5; font: 9px 'DM Mono', monospace; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.google-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 42px; border: 1px solid #dfe4e1; border-radius: 8px; color: #536174; background: #fff; text-decoration: none; font-size: 11px; font-weight: 600; transition: border .18s, box-shadow .18s, transform .18s; }
.google-button:hover { border-color: #bfc9c4; box-shadow: 0 5px 15px rgba(16,27,44,.06); transform: translateY(-1px); }
.google-button.disabled { color: #a8afb4; background: #f4f5f2; cursor: not-allowed; }
.google-mark { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #e2e5e3; border-radius: 50%; color: #4285f4; font: 700 11px Arial, sans-serif; background: #fff; }
.auth-footnote { margin: 19px 0 0; text-align: center; color: #a2a9b0; font-size: 9px; line-height: 1.5; }
.auth-footnote code { padding: 2px 4px; border-radius: 3px; color: #798894; background: #edf0ed; font: 9px 'DM Mono', monospace; }
.space-onboarding { min-height: 100vh; display: grid; place-items: center; padding: 42px 24px; background: radial-gradient(circle at 9% 8%, rgba(255,200,0,.13), transparent 28%), var(--paper); }
.space-onboarding-shell { width: min(100%, 920px); animation: page-enter .55s cubic-bezier(.2,.75,.25,1) both; }
.space-onboarding-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.space-onboarding-brand .brand-logo-frame { width: 78px; height: 36px; flex-basis: 78px; }
.space-onboarding-brand strong, .space-onboarding-brand small { display: block; }
.space-onboarding-brand strong { color: var(--ink); font: 700 17px/1.05 'Sora', sans-serif; }
.space-onboarding-brand small { color: #8d8176; font: 9px/1.2 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.space-onboarding-header { max-width: 620px; margin-bottom: 27px; }
.space-onboarding-header h1 { margin: 0; color: var(--ink); font: 700 clamp(31px, 5vw, 48px)/1.04 'Sora', sans-serif; letter-spacing: -.065em; }
.space-onboarding-header > p:not(.eyebrow) { max-width: 520px; margin: 14px 0 0; color: #7d8994; font-size: 13px; line-height: 1.6; }
.space-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.space-choice-card { min-height: 300px; display: flex; flex-direction: column; align-items: flex-start; padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-warm); box-shadow: var(--shadow); animation: card-enter .48s both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.space-choice-card:hover { border-color: #ccd5d0; box-shadow: 0 13px 30px rgba(42,19,7,.1); transform: translateY(-3px); }
.space-choice-card:nth-child(2) { animation-delay: .08s; }
.space-choice-card:nth-child(3) { animation-delay: .16s; }
.space-choice-card:hover { border-color: #ccd5d0; }
.space-choice-icon { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 10px; color: #c45700; background: var(--teal-light); font-size: 18px; }
.space-choice-icon.gold { color: #ad7b1c; background: var(--gold-light); }
.space-choice-card .eyebrow { margin-bottom: 7px; }
.space-choice-card h2 { margin: 0; color: var(--ink); font: 600 19px 'Sora', sans-serif; letter-spacing: -.045em; }
.space-choice-card p:not(.eyebrow) { margin: 9px 0 20px; color: #89939e; font-size: 11px; line-height: 1.55; }
.space-choice-card .field { width: 100%; margin-top: auto; }
.space-choice-card .field + button { margin-top: 14px; }
.space-choice-card button { width: 100%; }
.invite-choice-card { min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; grid-column: 1 / -1; padding: 17px 20px; border-color: #e4d8b9; background: #fffaf0; }
.invite-choice-card .space-choice-icon { margin: 0; color: #ad7b1c; background: var(--gold-light); }
.invite-choice-card p:not(.eyebrow) { margin-bottom: 0; }
.invite-choice-card button { width: auto; white-space: nowrap; }
.invite-conflict-card { max-width: 620px; padding: 29px; border: 1px solid #e4d8b9; border-radius: 16px; background: #fffaf0; box-shadow: var(--shadow); }
.invite-conflict-card h1 { margin: 0; color: var(--ink); font: 700 clamp(28px, 5vw, 42px)/1.06 'Sora', sans-serif; letter-spacing: -.06em; }
.invite-conflict-card > p:not(.eyebrow) { margin: 14px 0 0; color: #7d7065; font-size: 12px; line-height: 1.65; }
.invite-conflict-card > p strong { color: var(--ink); }
.invite-conflict-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.space-signout { display: block; margin: 24px auto 0; padding: 5px 0; border: 0; color: #8a949e; background: transparent; font-size: 11px; }
.space-signout:hover { color: var(--coral); }
.invite-modal-copy { display: flex; align-items: flex-start; gap: 11px; color: #7f8994; font-size: 11px; line-height: 1.55; }
.invite-modal-copy p { margin: 0; }
.invite-modal-icon { color: var(--gold); font-size: 19px; line-height: 1; }
.invite-link-field { display: flex; gap: 8px; margin-top: 18px; }
.invite-link-field input { min-width: 0; flex: 1; height: 39px; padding: 0 10px; border: 1px solid #dfe4e1; border-radius: 8px; color: #637183; background: #fff; font: 10px 'JetBrains Mono', monospace; }
.invite-link-field .button-secondary { min-height: 39px; padding: 0 12px; white-space: nowrap; color: var(--ink); border: 1px solid #dfe4e1; background: #fff; }
.invite-link-field .button-secondary:hover { border-color: #bac7c0; background: #f7f9f6; }
.invite-expiry { margin: 9px 0 0; color: #a1a9ae; font: 9px 'JetBrains Mono', monospace; }

.page-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 42px 32px 64px; }
.page-wrap > * { width: 100%; animation: page-enter .48s cubic-bezier(.2,.75,.25,1) both; }
.page-wrap > *:nth-child(2) { animation-delay: .06s; }
.page-wrap > *:nth-child(3) { animation-delay: .11s; }
.page-wrap > *:nth-child(4) { animation-delay: .16s; }
.view-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 28px; animation: heading-in .44s .04s both; }
.eyebrow { margin: 0 0 9px; color: #a1a9b0; font: 10px 'DM Mono', monospace; letter-spacing: .15em; text-transform: uppercase; }
.page-title { margin: 0; color: var(--ink); font: 700 31px/1.05 'Space Grotesk', sans-serif; letter-spacing: -.055em; }
.page-description { margin: 9px 0 0; max-width: 560px; color: #818a95; line-height: 1.55; font-size: 13px; }

.hero { position: relative; min-height: 238px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; border-radius: 21px; padding: 34px 22px; color: #fff; background: var(--ink); box-shadow: var(--shadow); animation: hero-in .58s cubic-bezier(.2,.8,.25,1) both; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .46; background-image: radial-gradient(circle at 80% 45%, rgba(255,200,0,.19), transparent 23%), linear-gradient(125deg, transparent 0 55%, rgba(255,255,255,.04) 55% 55.2%, transparent 55.2% 100%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 600px; }
.hero .eyebrow { color: #6f8297; margin-bottom: 13px; }
.hero h1 { margin: 0; font: 700 42px/1.04 'Space Grotesk', sans-serif; letter-spacing: -.065em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy p { max-width: 460px; color: #97a6b8; margin: 14px 0 24px; line-height: 1.55; font-size: 13px; }
.hero-actions { display: flex; gap: 10px; }
.button-primary, .button-secondary, .button-danger { min-height: 38px; border-radius: 8px; padding: 0 15px; border: 1px solid transparent; font-weight: 600; font-size: 12px; transition: transform .18s, box-shadow .18s, background .18s; }
.button-primary { color: var(--ink); background: var(--gold); box-shadow: 0 5px 15px rgba(255,200,0,.2); }
.button-primary:hover { background: #ffd83d; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,200,0,.25); }
.button-primary:active, .button-secondary:active, .button-danger:active, .button-ghost:active, .icon-button:active { transform: scale(.96); }
.button-primary:disabled, .button-secondary:disabled, .button-danger:disabled, .button-ghost:disabled { cursor: not-allowed; opacity: .52; pointer-events: none; transform: none; box-shadow: none; }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.07); }
.button-secondary:hover { background: rgba(255,255,255,.13); transform: translateY(-1px); }
.button-danger { color: #c65e55; background: var(--coral-light); }
.button-danger:hover { background: #ffe3de; }
.button-small { min-height: 31px; padding: 0 11px; border-radius: 7px; font-size: 11px; }
.button-ghost { color: #7c8792; border: 0; background: transparent; font-size: 11px; padding: 5px 0; }
.button-ghost:hover { color: var(--ink); }
.hero-art { position: relative; width: 310px; height: 218px; flex: 0 0 310px; margin-right: 12px; }
.compass { position: absolute; width: 218px; height: 218px; right: 25px; top: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; transform: rotate(-18deg); }
.compass::before, .compass::after { content: ''; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.compass::after { inset: 50%; width: 7px; height: 7px; margin: -3px; background: var(--gold); border: 0; box-shadow: 0 0 0 5px rgba(255,200,0,.11); }
.compass-line { position: absolute; width: 1px; height: 100%; top: 0; left: 50%; background: rgba(255,255,255,.09); }
.compass-line.two { transform: rotate(90deg); }
.compass-needle { position: absolute; width: 4px; height: 126px; top: 46px; left: calc(50% - 2px); background: linear-gradient(to bottom, var(--coral) 0 50%, var(--gold) 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transform: rotate(45deg); opacity: .85; }
.art-star { position: absolute; color: var(--gold); font-size: 13px; }
.art-star.one { right: 4px; top: 40px; }
.art-star.two { left: 27px; top: 27px; color: var(--teal); font-size: 9px; }
.art-coordinate { position: absolute; right: 0; bottom: 19px; color: #66778d; font: 9px 'DM Mono', monospace; letter-spacing: .08em; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 15px 0 26px; }
.stat-card { min-height: 116px; padding: 17px 18px 15px; border: 1px solid var(--line); background: var(--paper-warm); border-radius: 13px; animation: card-enter .48s cubic-bezier(.2,.75,.25,1) both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.stat-card:hover { border-color: #d4c6ac; box-shadow: 0 10px 24px rgba(42,19,7,.07); transform: translateY(-3px); }
.stats-grid .stat-card:nth-child(2) { animation-delay: .07s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: .14s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: .21s; }
.stat-card-action { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.stat-card-action:hover { border-color: #cfd6d2; box-shadow: 0 7px 18px rgba(31, 46, 55, .06); transform: translateY(-1px); }
.stat-card-action:focus-visible { outline: 3px solid rgba(255, 116, 0, .34); outline-offset: 3px; }
.stat-card-top { display: flex; justify-content: space-between; align-items: center; color: #89939d; font-size: 10px; }
.stat-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--ink); background: #edf0ed; font-size: 13px; }
.stat-icon.gold { color: #af7c19; background: var(--gold-light); }
.stat-icon.teal { color: #c45700; background: var(--teal-light); }
.stat-icon.coral { color: #c76051; background: var(--coral-light); }
.stat-number { margin: 13px 0 0; font: 700 25px 'Space Grotesk', sans-serif; letter-spacing: -.07em; }
.stat-note { margin-left: 5px; color: #9aa1a8; font: 10px 'DM Mono', monospace; letter-spacing: 0; }
.stat-note.positive { color: #c45700; }

.overview-tier-board { padding: 21px 22px 22px; margin: 15px 0 26px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-warm); animation: card-enter .5s .1s both; }
.overview-tier-board .panel-header { margin-bottom: 15px; }
.overview-tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.overview-tier { min-height: 188px; padding: 14px; border: 1px solid #e7eae7; border-top: 3px solid #b8bfc1; border-radius: 11px; background: #fff; animation: card-enter .45s both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.overview-tier:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(42,19,7,.07); }
.overview-tier:nth-child(2) { animation-delay: .06s; }
.overview-tier:nth-child(3) { animation-delay: .12s; }
.overview-tier:nth-child(4) { animation-delay: .18s; }
.overview-tier.tier-1 { border-top-color: var(--gold); }
.overview-tier.tier-2 { border-top-color: var(--coral); }
.overview-tier.tier-3 { border-top-color: var(--teal); }
.overview-tier.tier-4 { border-top-color: var(--blue); }
.overview-tier.current { box-shadow: 0 0 0 2px rgba(255,200,0,.22); }
.overview-tier-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.overview-tier-number { color: #a5adb2; font: 9px 'JetBrains Mono', monospace; }
.overview-tier h3 { margin: 4px 0 0; font: 600 13px 'Sora', sans-serif; letter-spacing: -.035em; }
.overview-tier-range { color: #8f999f; font: 9px 'JetBrains Mono', monospace; }
.overview-tier-rule { min-height: 27px; margin: 11px 0 8px; color: #a1a9ae; font: 9px 'JetBrains Mono', monospace; }
.overview-tier-rule strong { color: #647384; font-weight: 600; }
.overview-tier-rule small { display: block; margin-top: 3px; color: #b0b7bb; font: 8px 'JetBrains Mono', monospace; }
.overview-tier-members { display: flex; flex-direction: column; gap: 2px; }
.overview-tier-player { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 4px; border-radius: 6px; }
.overview-tier-player.is-you { background: var(--teal-light); }
.overview-tier-player .avatar { width: 23px; height: 23px; flex-basis: 23px; font-size: 8px; }
.overview-tier-player-name { min-width: 0; flex: 1; }
.overview-tier-player-name strong, .overview-tier-player-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-tier-player-name strong { color: #4d5b6d; font-size: 10px; font-weight: 600; }
.overview-tier-player-name small { margin-top: 2px; color: #9ea7ad; font: 8px 'JetBrains Mono', monospace; }
.overview-tier-player .you-pill { flex: 0 0 auto; margin-left: 0; font-size: 7px; }
.overview-tier-empty { padding: 13px 4px; color: #a6adb2; font-size: 10px; }
.overview-tier-more { margin-top: 5px; padding: 3px 4px; color: #7e8b95; font-size: 9px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 15px; }
.panel { min-width: 0; padding: 21px 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-warm); animation: card-enter .48s .08s both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.panel:hover { border-color: #dfd1c1; box-shadow: 0 10px 25px rgba(42,19,7,.045); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 17px; }
.panel-title { margin: 0; font: 600 16px 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.panel-kicker { margin: 4px 0 0; color: #9aa1a9; font-size: 10px; }
.view-all { color: #8b949e; text-decoration: none; font-size: 10px; padding-top: 3px; white-space: nowrap; }
.view-all:hover { color: var(--ink); }

.leader-row { display: grid; grid-template-columns: 30px minmax(100px, 1fr) 65px 50px; align-items: center; gap: 9px; min-height: 52px; border-top: 1px solid #edf0ee; animation: list-item-in .38s both; transition: background .18s, padding-left .18s; }
.leader-row:hover { padding-left: 4px; background: #fffdf8; }
.leader-row:nth-child(2) { animation-delay: .04s; }
.leader-row:nth-child(3) { animation-delay: .08s; }
.leader-row:nth-child(4) { animation-delay: .12s; }
.leader-row:nth-child(5) { animation-delay: .16s; }
.leader-row:nth-child(6) { animation-delay: .2s; }
.leader-row:first-of-type { border-top: 0; }
.rank-number { color: #9aa2aa; font: 10px 'DM Mono', monospace; }
.rank-number.top { color: #c89028; }
.player-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar { width: 27px; height: 27px; flex: 0 0 27px; font-size: 9px; }
.avatar.large { width: 41px; height: 41px; flex-basis: 41px; font-size: 12px; }
.avatar img, .current-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-person { appearance: none; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.profile-person:hover .player-name { color: var(--teal); }
.profile-person:focus-visible { outline: 3px solid rgba(255,116,0,.34); outline-offset: 3px; border-radius: 8px; }
.profile-avatar-button { display: inline-grid; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.profile-avatar-button:focus-visible, .player-card:focus-visible { outline: 3px solid rgba(255,116,0,.34); outline-offset: 3px; }
.profile-avatar-button:hover .avatar { box-shadow: 0 0 0 3px rgba(255,116,0,.22); }
.avatar.coral, .current-avatar.coral { background: var(--coral); }
.avatar.teal { background: var(--teal); }
.avatar.violet { background: var(--violet); }
.avatar.gold { color: var(--ink); background: var(--gold); }
.avatar.blue { background: var(--blue); }
.avatar.mint { color: var(--ink); background: #ffb35f; }
.player-name-wrap { min-width: 0; flex: 1; }
.player-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.25; }
.player-tag { display: block; color: #a5abb1; font: 9px/1.2 'DM Mono', monospace; margin-top: 3px; }
.bounty-value { text-align: right; font: 500 12px 'DM Mono', monospace; }
.win-rate { text-align: right; color: #8b949e; font: 10px 'DM Mono', monospace; }
.you-pill { margin-left: 4px; padding: 2px 5px; border-radius: 4px; color: #c45700; background: var(--teal-light); font: 8px 'DM Mono', monospace; vertical-align: 1px; }

.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: center; gap: 11px; min-height: 54px; border-bottom: 1px solid #edf0ee; animation: list-item-in .38s both; transition: background .18s, padding-left .18s; }
.activity-item:hover { padding-left: 4px; background: #fffdf8; }
.activity-item:nth-child(2) { animation-delay: .05s; }
.activity-item:nth-child(3) { animation-delay: .1s; }
.activity-item:nth-child(4) { animation-delay: .15s; }
.activity-item:nth-child(5) { animation-delay: .2s; }
.activity-item:last-child { border-bottom: 0; }
.activity-symbol { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; }
.activity-symbol.win { color: #d45b00; background: var(--teal-light); }
.activity-symbol.loss { color: #c86c5d; background: var(--coral-light); }
.activity-symbol.pending { color: #a97a20; background: var(--gold-light); }
.activity-copy { min-width: 0; flex: 1; }
.activity-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.activity-copy small { display: block; margin-top: 3px; color: #9ba2a9; font-size: 10px; }
.activity-result { text-align: right; white-space: nowrap; font: 11px 'DM Mono', monospace; }
.activity-result.positive { color: #c45700; }
.activity-result.negative { color: #c96c60; }
.activity-result.waiting { color: #ba8629; font: 10px 'DM Sans', sans-serif; }

.section-spacer { height: 15px; }
.empty-state { display: grid; place-items: center; min-height: 150px; padding: 20px; text-align: center; color: #949da5; }
.loading-spinner { width: 22px; height: 22px; margin: 0 auto 12px; border: 2px solid #e1e6e2; border-top-color: var(--teal); border-radius: 50%; animation: spin .75s linear infinite; }
.empty-state strong { display: block; margin-bottom: 6px; color: #556274; font: 600 13px 'Space Grotesk', sans-serif; }
.empty-state p { max-width: 290px; margin: 0; font-size: 11px; line-height: 1.5; }
.empty-mark { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 11px; border-radius: 11px; color: #b08b43; background: var(--gold-light); font-size: 17px; }

.on-deck { margin-top: 15px; padding: 18px 20px; border-radius: 14px; color: #fff; background: #24120d; display: flex; align-items: center; justify-content: space-between; gap: 18px; animation: card-enter .5s .17s both; transition: transform .22s, box-shadow .22s; }
.on-deck:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(42,19,7,.18); }
.on-deck-copy { min-width: 0; }
.on-deck-label { color: #7f96b2; font: 9px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.on-deck h3 { margin: 7px 0 5px; font: 600 16px 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.on-deck p { margin: 0; color: #9aabbe; font-size: 11px; }
.on-deck .button-primary { flex: 0 0 auto; }

.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.data-table th { padding: 13px 21px; color: #9aa2aa; background: #f9faf7; text-align: left; font: 9px 'DM Mono', monospace; font-weight: 400; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 21px; border-top: 1px solid #edf0ee; color: #445267; font-size: 11px; white-space: nowrap; }
.data-table tbody tr { animation: list-item-in .36s both; transition: background .18s, transform .18s; }
.data-table tbody tr:hover { background: #fbfcf8; transform: translateX(2px); }
.data-table tbody tr:nth-child(2) { animation-delay: .04s; }
.data-table tbody tr:nth-child(3) { animation-delay: .08s; }
.data-table tbody tr:nth-child(4) { animation-delay: .12s; }
.data-table tbody tr:nth-child(5) { animation-delay: .16s; }
.data-table tbody tr:nth-child(6) { animation-delay: .2s; }
.data-table .right { text-align: right; }
.table-player { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; }
.table-player .player-name { color: var(--ink); }
.match-player-cell { min-width: 235px; }
.match-players { display: flex; align-items: center; gap: 7px; }
.match-player { display: flex; align-items: center; gap: 6px; min-width: 0; }
.match-player .player-name { max-width: 120px; }
.match-versus { color: #aeb5ba; font-size: 10px; }
.bounty-chip { color: #6e7b8b; font: 11px 'DM Mono', monospace; }
.result-badge, .status-badge, .format-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; font-size: 9px; font-weight: 600; }
.result-badge.win { color: #c45700; background: var(--teal-light); }
.result-badge.loss { color: #c36a5b; background: var(--coral-light); }
.status-badge.awaiting, .status-badge.awaiting_reports, .status-badge.pending, .status-badge.scheduled { color: #aa7a25; background: var(--gold-light); }
.status-badge.completed, .status-badge.accepted { color: #c45700; background: var(--teal-light); }
.status-badge.in_progress { color: #b54f00; background: var(--teal-light); }
.status-badge.disputed, .status-badge.declined { color: #bf665a; background: var(--coral-light); }
.status-badge.suspended, .status-badge.voided, .status-badge.cancelled { color: #bf665a; background: var(--coral-light); }
.status-badge.tier-badge { font-size: 8px; }
.status-badge.tier-1 { color: #a8751a; background: var(--gold-light); }
.status-badge.tier-2 { color: #bf665a; background: var(--coral-light); }
.status-badge.tier-3 { color: #c45700; background: var(--teal-light); }
.status-badge.tier-4 { color: #bd5d00; background: var(--teal-light); }
.format-badge { color: #778391; background: #eef0ee; font-weight: 500; }

.ranking-tree { position: relative; overflow: hidden; padding: 25px 22px 25px; margin-bottom: 15px; border: 1px solid #74231f; border-radius: 17px; color: #fff1df; background: radial-gradient(circle at 8% 8%, rgba(255,117,33,.26), transparent 22%), radial-gradient(circle at 93% 86%, rgba(210,20,25,.3), transparent 27%), linear-gradient(145deg, #120609, #2b0b0e 52%, #100508); box-shadow: 0 18px 45px rgba(79,10,8,.28), inset 0 1px 0 rgba(255,178,88,.16); animation: card-enter .55s both; }
.ranking-tree::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: radial-gradient(circle at 22% 35%, rgba(255,190,78,.7) 0 1px, transparent 2px), radial-gradient(circle at 78% 20%, rgba(255,88,36,.7) 0 1px, transparent 2px), radial-gradient(circle at 61% 82%, rgba(255,190,78,.5) 0 1px, transparent 2px), radial-gradient(circle at 44% 12%, rgba(255,88,36,.5) 0 1px, transparent 2px); background-size: 137px 173px, 181px 211px, 223px 157px, 197px 241px; }
.ranking-tree::after { content: ''; position: absolute; right: -130px; bottom: -185px; width: 420px; height: 420px; border: 1px solid rgba(255,87,38,.2); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,87,38,.045), 0 0 0 47px rgba(255,87,38,.035), 0 0 0 75px rgba(255,87,38,.025); pointer-events: none; }
.ranking-tree-header { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.ranking-tree-header .eyebrow { margin-bottom: 5px; color: #ff7139; text-shadow: 0 0 13px rgba(255,79,27,.55); }
.ranking-tree-header .panel-title { color: #fff4df; text-shadow: 0 2px 0 #54100e, 0 0 18px rgba(255,108,45,.3); }
.ranking-tree-header .panel-kicker { max-width: 560px; color: #d69c89; }
.ranking-tree-direction { padding-top: 4px; color: #ffbe68; font: 9px 'JetBrains Mono', monospace; letter-spacing: .1em; white-space: nowrap; text-shadow: 0 0 10px rgba(255,130,39,.6); }
.ranking-tree-flow { position: relative; z-index: 1; padding: 2px 0; }
.ranking-tree-flow::before { content: ''; position: absolute; top: 19px; bottom: 19px; left: 18px; width: 3px; border-radius: 3px; background: linear-gradient(to bottom, #ffd15a, #ff451e 25%, #ff7b25 50%, #df2435 75%, #ffb13b); box-shadow: 0 0 8px rgba(255,67,24,.9), 0 0 18px rgba(255,40,16,.42); }
.ranking-tree-level { position: relative; display: block; padding: 15px 0 15px 49px; }
.ranking-tree-level::before { content: ''; position: absolute; z-index: 1; top: 34px; left: 10px; width: 14px; height: 14px; border: 3px solid #17070a; border-radius: 50%; background: #ff7a26; box-shadow: 0 0 0 1px #ff9f43, 0 0 14px #ff401c, 0 0 28px rgba(255,48,15,.7); animation: inferno-pulse 2.4s ease-in-out infinite; }
.ranking-tree-level::after { content: ''; position: absolute; top: 41px; left: 19px; width: 30px; height: 2px; background: #ff5b24; box-shadow: 0 0 8px rgba(255,58,20,.85); }
.ranking-tree-level.tier-1::before { background: #ffd15a; }
.ranking-tree-level.tier-2::before { background: #ff4b23; animation-delay: .25s; }
.ranking-tree-level.tier-3::before { background: #ff8a27; animation-delay: .5s; }
.ranking-tree-level.tier-4::before { background: #ed3040; animation-delay: .75s; }
.ranking-tree-level.current .ranking-tree-level-meta { box-shadow: 0 0 0 3px rgba(255,178,64,.34), 0 0 27px rgba(255,58,20,.28), 0 14px 30px rgba(0,0,0,.35); }
.ranking-tree-level-meta { position: relative; min-width: 0; min-height: 83px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 16px; border: 1px solid #7b2a25; border-left: 4px solid #ff6b2d; border-radius: 14px; background: linear-gradient(135deg, #3b1012, #16080a 74%); box-shadow: 0 9px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,184,89,.15); transition: transform .2s, box-shadow .2s; }
.ranking-tree-level-meta::after { content: ''; position: absolute; right: -30px; top: -44px; width: 128px; height: 128px; border: 1px solid rgba(255,119,48,.35); border-radius: 50%; box-shadow: 0 0 0 14px rgba(255,119,48,.08), 0 0 0 29px rgba(255,62,26,.05); }
.ranking-tree-level-meta:hover { transform: translateY(-3px) scale(1.005); box-shadow: 0 14px 28px rgba(0,0,0,.38), 0 0 22px rgba(255,59,21,.24); }
.ranking-tree-level.tier-1 .ranking-tree-level-meta { border-color: #aa6425; border-left-color: #ffd15a; background: radial-gradient(circle at 18% 10%, rgba(255,204,88,.22), transparent 30%), linear-gradient(135deg, #54200e, #1a0809 74%); }
.ranking-tree-level.tier-2 .ranking-tree-level-meta { border-color: #9c3028; border-left-color: #ff4b23; background: radial-gradient(circle at 18% 10%, rgba(255,72,34,.28), transparent 30%), linear-gradient(135deg, #4a1112, #180709 74%); }
.ranking-tree-level.tier-3 .ranking-tree-level-meta { border-color: #a24b25; border-left-color: #ff8a27; background: radial-gradient(circle at 18% 10%, rgba(255,136,37,.24), transparent 30%), linear-gradient(135deg, #43150f, #180709 74%); }
.ranking-tree-level.tier-4 .ranking-tree-level-meta { border-color: #922533; border-left-color: #ed3040; background: radial-gradient(circle at 18% 10%, rgba(237,48,64,.24), transparent 30%), linear-gradient(135deg, #3b0d17, #17070b 74%); }
.ranking-tree-level-name { position: relative; z-index: 1; width: 100%; min-width: 0; padding: 0 58px; display: flex; align-items: center; flex-direction: column; gap: 5px; text-align: center; }
.ranking-tree-level-name > div { display: flex; align-items: center; flex-direction: column; width: 100%; }
.ranking-tree-number { color: #ffab58; font: 9px 'JetBrains Mono', monospace; letter-spacing: .2em; text-shadow: 0 0 10px rgba(255,100,34,.75); }
.ranking-tree-level h3 { margin: 0; color: #fff0d2; font: 700 17px 'Sora', sans-serif; letter-spacing: -.045em; text-shadow: 0 2px 0 #4d100d, 0 0 13px rgba(255,92,35,.28); }
.ranking-tree-level-name small { display: block; margin-top: 3px; color: #e49b7d; font: 9px 'JetBrains Mono', monospace; }
.ranking-tree-count { position: absolute; z-index: 1; right: 14px; top: 13px; color: #ffbd91; font: 9px 'JetBrains Mono', monospace; }
.ranking-tree-members { min-width: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 11px 4px 1px; }
.ranking-tree-player { min-width: 130px; max-width: 190px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #6d2826; border-radius: 9px; background: rgba(30,8,11,.86); box-shadow: 0 5px 13px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,151,75,.08); transition: transform .18s, box-shadow .18s, border-color .18s; }
.ranking-tree-player:hover { transform: translateY(-3px); border-color: #ff8a3a; box-shadow: 0 9px 18px rgba(0,0,0,.35), 0 0 15px rgba(255,67,24,.22); }
.ranking-tree-level.tier-1 .ranking-tree-player { border-color: #9b5c25; }
.ranking-tree-level.tier-2 .ranking-tree-player { border-color: #922b28; }
.ranking-tree-level.tier-3 .ranking-tree-player { border-color: #a04e28; }
.ranking-tree-level.tier-4 .ranking-tree-player { border-color: #842638; }
.ranking-tree-player.is-you { border-color: #ffc45c !important; background: linear-gradient(135deg, rgba(126,40,15,.95), rgba(42,10,10,.95)); box-shadow: 0 0 18px rgba(255,159,47,.3); }
.ranking-tree-player .avatar { width: 24px; height: 24px; flex-basis: 24px; font-size: 8px; }
.ranking-tree-player-copy { min-width: 0; flex: 1; }
.ranking-tree-player-copy strong, .ranking-tree-player-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-tree-player-copy strong { color: #ffe6ca; font-size: 10px; font-weight: 600; }
.ranking-tree-player-copy small { margin-top: 2px; color: #d88d75; font: 8px 'JetBrains Mono', monospace; }
.ranking-tree-player .you-pill { flex: 0 0 auto; margin-left: 0; font-size: 7px; }
.ranking-tree-empty, .ranking-tree-more { color: #d88970; font: 9px 'JetBrains Mono', monospace; }
.ranking-tree-more { padding: 7px 9px; border: 1px dashed #9b3b2c; border-radius: 8px; background: rgba(61,13,12,.42); }
.rankings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 15px; }
.rank-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; margin-bottom: 15px; border-radius: 15px; color: #fff; background: var(--ink); animation: card-enter .5s .08s both; transition: transform .22s, box-shadow .22s; }
.rank-hero:hover { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(42,19,7,.18); }
.rank-hero h2 { margin: 6px 0 3px; font: 600 23px 'Space Grotesk', sans-serif; letter-spacing: -.05em; }
.rank-hero p { margin: 0; color: #9badc1; font-size: 11px; }
.rank-hero .eyebrow { margin: 0; color: var(--gold); }
.rank-big { color: var(--gold); font: 700 47px 'Space Grotesk', sans-serif; letter-spacing: -.09em; line-height: 1; }
.rank-big span { color: #708298; font-size: 12px; letter-spacing: 0; }
.side-stat-list { display: flex; flex-direction: column; gap: 11px; }
.side-stat { padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-warm); animation: card-enter .42s both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.side-stat:hover { border-color: #d7c6ad; box-shadow: 0 10px 22px rgba(42,19,7,.07); transform: translateY(-3px); }
.side-stat:nth-child(2) { animation-delay: .08s; }
.side-stat:nth-child(3) { animation-delay: .16s; }
.side-stat-label { color: #929aa3; font-size: 10px; }
.side-stat-value { margin-top: 6px; font: 600 20px 'Space Grotesk', sans-serif; letter-spacing: -.05em; }
.side-stat-note { color: #c45700; font-size: 10px; margin-left: 5px; font-family: 'DM Mono', monospace; }
.streak-bar { height: 4px; margin-top: 11px; overflow: hidden; border-radius: 3px; background: #eaeeeb; }
.streak-bar span { display: block; height: 100%; border-radius: inherit; background: var(--coral); }

.challenge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.challenge-card { position: relative; padding: 18px 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-warm); animation: card-enter .46s both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.challenge-card:hover { border-color: #dfcda6; box-shadow: 0 11px 25px rgba(42,19,7,.08); transform: translateY(-3px); }
.challenge-card:nth-child(2) { animation-delay: .08s; }
.challenge-card:nth-child(3) { animation-delay: .16s; }
.challenge-card:nth-child(4) { animation-delay: .24s; }
.challenge-card.incoming { border-color: #f1ddb2; box-shadow: inset 3px 0 0 var(--gold); }
.challenge-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.challenge-date { color: #9ba2aa; font: 9px 'DM Mono', monospace; }
.challenge-versus { display: flex; align-items: center; justify-content: space-around; gap: 10px; margin-bottom: 14px; }
.challenge-player { display: flex; align-items: center; flex-direction: column; gap: 7px; min-width: 70px; text-align: center; }
.challenge-player strong { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.versus { color: #b0b5b8; font: 10px 'DM Mono', monospace; }
.challenge-note { overflow: hidden; min-height: 32px; margin: 0 0 15px; color: #929ba4; font-size: 10px; line-height: 1.5; }
.challenge-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid #edf0ee; }
.challenge-card-actions { display: flex; gap: 7px; }
.challenge-card-actions .button-primary, .challenge-card-actions .button-danger { min-height: 29px; padding: 0 10px; font-size: 10px; }
.current-match-list { display: grid; gap: 15px; }
.current-match-card { position: relative; overflow: hidden; padding: 22px; border: 1px solid #e7c77f; border-radius: 16px; background: radial-gradient(circle at 50% 37%, rgba(255,200,0,.12), transparent 28%), linear-gradient(135deg, #fffdf6, #fff4df); box-shadow: 0 14px 32px rgba(102,53,9,.09); animation: battle-card-in .58s cubic-bezier(.2,.8,.25,1) both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.current-match-card:hover { border-color: #d9a83e; box-shadow: 0 18px 38px rgba(102,53,9,.14); transform: translateY(-3px); }
.current-match-card::before { content: '⚔'; position: absolute; right: 24px; bottom: -21px; color: rgba(208,105,0,.1); font-size: 122px; line-height: 1; pointer-events: none; }
.current-match-card.disputed { border-color: #e8ada2; background: radial-gradient(circle at 50% 37%, rgba(255,8,8,.08), transparent 28%), linear-gradient(135deg, #fffdfb, #fff0eb); }
.current-match-top, .current-match-footer, .current-match-details { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.current-match-top { align-items: flex-start; }
.current-match-top h2 { margin: 0; color: var(--ink); font: 600 21px 'Sora', sans-serif; letter-spacing: -.05em; }
.current-match-arena { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; max-width: 630px; margin: 25px auto 22px; }
.current-match-player { display: flex; align-items: center; flex-direction: column; gap: 7px; min-width: 0; text-align: center; }
.current-match-player .avatar.large { width: 66px; height: 66px; flex-basis: 66px; font-size: 18px; border: 4px solid rgba(255,255,255,.85); box-shadow: 0 8px 18px rgba(68,31,7,.13); }
.current-match-player strong { max-width: 170px; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font: 600 14px 'Sora', sans-serif; }
.current-match-player small { color: #a27b57; font: 9px 'JetBrains Mono', monospace; text-transform: uppercase; }
.current-match-vs { display: flex; align-items: center; flex-direction: column; gap: 6px; color: #bd7100; }
.current-match-vs span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #e8bb55; border-radius: 50%; background: #fff8e7; font: 700 11px 'JetBrains Mono', monospace; box-shadow: 0 0 0 6px rgba(255,200,0,.09); }
.current-match-vs small { color: #aa967d; font: 8px 'JetBrains Mono', monospace; white-space: nowrap; }
.current-match-details { justify-content: center; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid rgba(173,124,45,.18); border-bottom: 1px solid rgba(173,124,45,.18); }
.current-match-details span { display: flex; align-items: center; gap: 6px; color: #977e64; font: 9px 'JetBrains Mono', monospace; }
.current-match-details b { color: #b07929; font-weight: 500; text-transform: uppercase; }
.current-match-note { position: relative; z-index: 1; margin: 14px 0 0; color: #8f7d6b; font-size: 10px; line-height: 1.5; }
.current-match-footer { align-items: flex-end; margin-top: 18px; }
.current-match-footer p { max-width: 560px; margin: 0; color: #826f5d; font-size: 11px; line-height: 1.5; }
.current-match-footer .button-primary { flex: 0 0 auto; }
.battle-match-modal { width: min(100%, 630px); overflow: hidden; color: #fff3df; border: 1px solid #7c2c20; background: radial-gradient(circle at 50% 45%, rgba(255,111,27,.18), transparent 28%), linear-gradient(145deg, #240b0d, #0c0507 76%); }
.battle-match-modal .modal-header { position: relative; z-index: 2; margin-bottom: 8px; }
.battle-match-modal .modal-header h2 { color: #fff1df; }
.battle-match-modal .modal-header p { color: #d49a82; }
.battle-match-modal .modal-close { color: #d99a7b; background: rgba(255,255,255,.08); }
.battle-match-modal .modal-close:hover { color: #fff; background: rgba(255,255,255,.15); }
.battle-match-intro { position: relative; overflow: hidden; padding: 10px 4px 1px; text-align: center; }
.battle-match-intro::before, .battle-match-intro::after { content: '✦'; position: absolute; color: var(--gold); font-size: 12px; animation: battle-spark 1.7s ease-in-out infinite; }
.battle-match-intro::before { left: 7%; top: 13%; }
.battle-match-intro::after { right: 8%; top: 32%; animation-delay: .45s; }
.battle-match-kicker { color: #ff9f43; font: 9px 'JetBrains Mono', monospace; letter-spacing: .2em; text-shadow: 0 0 13px rgba(255,129,43,.7); }
.battle-match-kicker span { margin-left: 7px; color: var(--gold); }
.battle-match-arena { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 28px 0 22px; }
.battle-contender { position: relative; display: flex; align-items: center; flex-direction: column; gap: 8px; min-width: 0; }
.battle-contender-left { animation: battle-slide-left .65s cubic-bezier(.2,.8,.2,1) both; }
.battle-contender-right { animation: battle-slide-right .65s cubic-bezier(.2,.8,.2,1) both; }
.battle-contender .avatar.large { position: relative; z-index: 1; width: 78px; height: 78px; flex-basis: 78px; border: 3px solid rgba(255,255,255,.88); font-size: 20px; box-shadow: 0 0 0 7px rgba(255,200,0,.08), 0 13px 26px rgba(0,0,0,.35); }
.battle-contender strong { position: relative; z-index: 1; max-width: 160px; overflow: hidden; color: #fff3df; text-overflow: ellipsis; white-space: nowrap; font: 600 14px 'Sora', sans-serif; }
.battle-contender small { position: relative; z-index: 1; color: #c89075; font: 8px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.battle-contender-glow { position: absolute; top: 18px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,87,22,.24); filter: blur(18px); animation: battle-glow 1.3s ease-in-out infinite; }
.battle-contender-right .battle-contender-glow { background: rgba(255,200,0,.23); animation-delay: .3s; }
.battle-match-center { position: relative; display: flex; align-items: center; gap: 7px; flex-direction: column; animation: battle-vs-pop .7s .25s cubic-bezier(.2,.9,.25,1.3) both; }
.battle-match-center strong { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid #ff9f43; border-radius: 50%; color: #fff; background: #6d180e; box-shadow: 0 0 0 7px rgba(255,70,20,.12), 0 0 30px rgba(255,90,23,.46); font: 700 16px 'JetBrains Mono', monospace; }
.battle-match-center i { position: absolute; top: 22px; color: var(--gold); font-size: 18px; font-style: normal; animation: battle-flash .8s .65s ease-in-out both; }
.battle-match-line { width: 40px; height: 1px; background: linear-gradient(to right, transparent, #ff7139, transparent); }
.battle-match-copy { margin: 0; color: #c9967c; font-size: 10px; line-height: 1.5; }
.battle-match-modal .modal-actions { border-top-color: rgba(255,255,255,.12); }
.battle-match-modal .button-primary { color: #1a0805; }
.boss-challenge-panel { overflow: hidden; }
.boss-challenge-list { display: flex; flex-direction: column; gap: 12px; }
.boss-card { position: relative; overflow: hidden; padding: 18px 19px; border: 1px solid #e6d8bc; border-radius: 14px; background: linear-gradient(135deg, #fffdf6, #fff8e9); box-shadow: inset 3px 0 0 var(--gold); animation: card-enter .48s both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.boss-card:hover { border-color: #d9b36b; box-shadow: inset 3px 0 0 var(--gold), 0 11px 25px rgba(190,105,48,.12); transform: translateY(-3px); }
.boss-card:nth-child(2) { animation-delay: .09s; }
.boss-card:nth-child(3) { animation-delay: .18s; }
.boss-card::after { content: '♛'; position: absolute; right: 17px; top: 30px; color: rgba(190,143,47,.12); font-size: 74px; line-height: 1; pointer-events: none; }
.boss-card.incoming { border-color: #e6ad73; box-shadow: inset 4px 0 0 var(--coral), 0 8px 22px rgba(190,105,48,.1); }
.boss-card-top, .boss-title-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.boss-card-top { margin-bottom: 13px; }
.boss-title-row { align-items: flex-end; margin-bottom: 15px; }
.boss-title-row .eyebrow { margin-bottom: 4px; color: #b27a2a; }
.boss-title-row h3 { margin: 0; color: var(--ink); font: 600 16px 'Sora', sans-serif; letter-spacing: -.04em; }
.boss-title-row > strong { color: #b77d22; font: 700 24px 'JetBrains Mono', monospace; text-shadow: 0 1px 0 #fff; }
.boss-card .challenge-versus, .boss-card .boss-schedule, .boss-card .challenge-note, .boss-card .challenge-card-footer { position: relative; z-index: 1; }
.boss-card .challenge-versus { justify-content: flex-start; gap: 24px; }
.boss-card .challenge-player { min-width: 120px; }
.boss-card .challenge-player small { max-width: 150px; color: #9a876e; font: 9px 'JetBrains Mono', monospace; }
.boss-schedule { display: flex; justify-content: space-between; gap: 12px; padding: 10px 11px; margin: 2px 0 13px; border: 1px solid #f0e5d0; border-radius: 8px; color: #a3917d; background: rgba(255,255,255,.6); font: 8px 'JetBrains Mono', monospace; letter-spacing: .03em; }
.boss-schedule strong { color: #8c5d24; font-weight: 600; }
.boss-rescheduled { position: relative; z-index: 1; display: block; margin: -8px 0 12px; color: #b56c36; font: 9px 'JetBrains Mono', monospace; }
.boss-card .challenge-card-footer { border-top-color: #f0e5d0; }
.boss-card .challenge-card-actions { position: relative; z-index: 1; flex-wrap: wrap; justify-content: flex-end; }
.boss-card .button-danger { color: #b65e47; background: #fff0eb; }
.compact-empty { padding-top: 25px; padding-bottom: 25px; }

.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.tier-card { position: relative; min-height: 206px; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-warm); animation: card-enter .46s both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.tier-card:hover { border-color: #d7c596; box-shadow: 0 11px 25px rgba(42,19,7,.08); transform: translateY(-3px); }
.tier-card:nth-child(2) { animation-delay: .07s; }
.tier-card:nth-child(3) { animation-delay: .14s; }
.tier-card:nth-child(4) { animation-delay: .21s; }
.tier-card::after { content: ''; position: absolute; right: -31px; bottom: -42px; width: 120px; height: 120px; border: 1px solid rgba(16,27,44,.06); border-radius: 50%; box-shadow: 0 0 0 15px rgba(16,27,44,.018), 0 0 0 30px rgba(16,27,44,.018); }
.tier-card.current { border-color: #d7b869; box-shadow: inset 0 3px 0 var(--gold), 0 7px 20px rgba(16,27,44,.05); }
.tier-card.tier-2.current { border-color: #e0a192; box-shadow: inset 0 3px 0 var(--coral), 0 7px 20px rgba(16,27,44,.05); }
.tier-card.tier-3.current { border-color: #8fcec4; box-shadow: inset 0 3px 0 var(--teal), 0 7px 20px rgba(16,27,44,.05); }
.tier-card.tier-4.current { border-color: #ffbd4a; box-shadow: inset 0 3px 0 var(--blue), 0 7px 20px rgba(42,19,7,.05); }
.tier-card-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.tier-number { color: #a0a8ae; font: 10px 'JetBrains Mono', monospace; }
.tier-rank-range { color: #9ba3aa; font: 9px 'JetBrains Mono', monospace; }
.tier-emblem { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; margin: 19px 0 13px; border-radius: 12px; color: #b17e22; background: var(--gold-light); font-size: 21px; }
.tier-2 .tier-emblem { color: #bf6758; background: var(--coral-light); }
.tier-3 .tier-emblem { color: #c45700; background: var(--teal-light); }
.tier-4 .tier-emblem { color: #bd5d00; background: var(--teal-light); }
.tier-card h3 { position: relative; z-index: 1; margin: 0; font: 600 15px 'Sora', sans-serif; letter-spacing: -.04em; }
.tier-card p { position: relative; z-index: 1; min-height: 31px; margin: 7px 0 16px; color: #9099a2; font-size: 10px; line-height: 1.5; }
.tier-card-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding-top: 11px; border-top: 1px solid #edf0ee; color: #8b959e; font: 9px 'JetBrains Mono', monospace; }
.tier-card-footer b { color: #c45700; font: 8px 'JetBrains Mono', monospace; }
.promotion-callout { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 167px; padding: 27px 30px; margin-top: 15px; border-radius: 16px; color: #fff; background: var(--ink); animation: card-enter .52s .12s both; transition: transform .22s, box-shadow .22s; }
.promotion-callout:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42,19,7,.18); }
.promotion-callout::before { content: ''; position: absolute; right: 70px; bottom: -100px; width: 290px; height: 290px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 60px rgba(255,255,255,.025); }
.promotion-callout-copy { position: relative; z-index: 1; }
.promotion-callout .eyebrow { color: var(--gold); }
.promotion-callout h2 { margin: 0 0 8px; font: 600 21px 'Sora', sans-serif; letter-spacing: -.05em; }
.promotion-callout p:not(.eyebrow) { max-width: 480px; margin: 0 0 15px; color: #9aabba; font-size: 11px; line-height: 1.5; }
.promotion-callout p strong, .promotion-callout-copy strong { display: block; margin-bottom: 6px; color: #fff; font: 600 12px 'Manrope', sans-serif; }
.promotion-callout .button-primary:disabled { cursor: not-allowed; opacity: .45; }
.promotion-mark { position: relative; z-index: 1; min-width: 92px; color: var(--gold); font: 700 48px 'Sora', sans-serif; letter-spacing: -.08em; text-align: center; }
.promotion-mark small { display: block; color: #7e91a7; font: 9px 'JetBrains Mono', monospace; letter-spacing: .03em; text-transform: uppercase; }
.tier-threshold { display: inline-block; color: #7f94aa; font: 9px 'JetBrains Mono', monospace; }
.promotion-list { display: flex; flex-direction: column; gap: 11px; }
.promotion-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.promotion-card.incoming { border-color: #edcf91; box-shadow: inset 3px 0 0 var(--gold); }
.promotion-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.promotion-versus { display: flex; align-items: center; gap: 17px; margin-bottom: 15px; }
.promotion-versus .challenge-player { flex-direction: row; min-width: 145px; text-align: left; }
.promotion-versus .challenge-player strong { max-width: 140px; }
.promotion-versus .challenge-player small { color: #9aa4ac; font-size: 9px; }
.promotion-progress { padding: 12px 13px; margin-bottom: 14px; border-radius: 9px; background: #f5f7f4; }
.promotion-progress-label { display: flex; justify-content: space-between; color: #7e8992; font-size: 10px; }
.promotion-progress-label strong { color: var(--ink); font: 10px 'JetBrains Mono', monospace; }
.promotion-progress-bar { height: 5px; overflow: hidden; margin: 9px 0 7px; border-radius: 4px; background: #e3e9e4; }
.promotion-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--coral)); transition: width .25s ease; }
.promotion-progress > small { color: #a0a8ae; font: 9px 'JetBrains Mono', monospace; }
.series-score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }

.player-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.player-card { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-warm); cursor: pointer; animation: card-enter .46s both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.player-card:nth-child(2) { animation-delay: .07s; }
.player-card:nth-child(3) { animation-delay: .14s; }
.player-card:nth-child(4) { animation-delay: .21s; }
.player-card:nth-child(5) { animation-delay: .28s; }
.player-card:hover { border-color: #b9cbc5; box-shadow: 0 9px 22px rgba(16,27,44,.08); transform: translateY(-2px); }
.player-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.player-card-profile { display: flex; align-items: center; gap: 10px; }
.player-card h3 { margin: 0; font: 600 14px 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.player-card .player-tag { margin-top: 4px; }
.player-rank { color: #9da5ad; font: 10px 'DM Mono', monospace; }
.player-card-bounty { display: flex; align-items: baseline; justify-content: space-between; margin: 19px 0 11px; }
.player-card-bounty strong { font: 700 27px 'Space Grotesk', sans-serif; letter-spacing: -.07em; }
.player-card-bounty span { color: #99a2ab; font: 10px 'DM Mono', monospace; }
.player-card-tier { min-height: 25px; margin-bottom: 11px; }
.player-card-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding-top: 12px; border-top: 1px solid #edf0ee; }
.player-card-stats span { display: block; color: #a1a8ae; font-size: 9px; }
.player-card-stats strong { display: block; margin-top: 4px; color: #566376; font: 11px 'DM Mono', monospace; }

.profile-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 15px; align-items: start; }
.profile-card-featured { position: relative; overflow: hidden; min-height: 390px; padding: 24px; border: 1px solid #4b1d12; border-radius: 16px; color: #fff; background: radial-gradient(circle at 86% 12%, rgba(255,177,73,.25), transparent 28%), linear-gradient(145deg, #3b160d, #120908 72%); box-shadow: 0 16px 32px rgba(42,19,7,.16); animation: card-enter .55s both; transition: transform .22s, box-shadow .22s; }
.profile-card-featured:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(42,19,7,.22); }
.profile-card-featured::before { position: absolute; right: -42px; bottom: -70px; width: 220px; height: 220px; border: 1px solid rgba(255,190,95,.2); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,190,95,.04), 0 0 0 50px rgba(255,190,95,.03); content: ''; }
.profile-card-featured-top, .profile-featured-identity, .profile-title-band, .profile-stat-grid { position: relative; z-index: 1; }
.profile-card-featured-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-card-label, .profile-title-label { color: #91a9be; font: 9px 'JetBrains Mono', monospace; letter-spacing: .12em; }
.profile-rank { color: var(--gold); font: 11px 'JetBrains Mono', monospace; }
.profile-featured-identity { display: flex; align-items: center; gap: 15px; margin: 46px 0 27px; }
.profile-featured-identity .avatar.large { width: 78px; height: 78px; flex-basis: 78px; border: 4px solid rgba(255,255,255,.18); font-size: 22px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.profile-featured-identity h2 { margin: 0; color: #fff; font: 600 23px 'Sora', sans-serif; letter-spacing: -.06em; }
.profile-featured-identity p { margin: 7px 0 0; color: #aab8c5; font: 10px 'JetBrains Mono', monospace; text-transform: uppercase; }
.profile-title-band { display: flex; flex-direction: column; gap: 7px; padding: 14px 15px; border: 1px solid rgba(255,190,95,.25); border-radius: 10px; background: rgba(255,255,255,.06); }
.profile-title-band strong { color: #ffd27b; font: 600 16px 'Space Grotesk', sans-serif; }
.profile-title-band small { color: #aab8c5; font-size: 10px; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 27px; }
.profile-stat-grid div { min-width: 0; }
.profile-stat-grid span { display: block; color: #91a9be; font: 9px 'JetBrains Mono', monospace; }
.profile-stat-grid strong { display: block; margin-top: 6px; color: #fff; font: 600 16px 'Sora', sans-serif; letter-spacing: -.04em; }
.profile-editor-panel, .profile-info-panel { min-width: 0; }
.profile-photo-editor { display: flex; align-items: center; gap: 16px; padding: 15px; border: 1px solid #e6ebe8; border-radius: 11px; background: #f5f7f4; }
.profile-photo-preview .avatar.large { width: 72px; height: 72px; flex-basis: 72px; font-size: 19px; }
.profile-upload-label { display: block; margin-bottom: 7px; color: #4e5b6b; font-size: 11px; font-weight: 600; }
.profile-photo-editor input[type='file'] { width: 100%; max-width: 230px; color: #7f8993; font-size: 10px; }
.profile-upload-help { margin: 7px 0 9px; color: #9aa3aa; font-size: 9px; line-height: 1.45; }
.profile-photo-editor .button-ghost { padding: 0; color: #8f989f; font-size: 10px; }
.profile-photo-editor .button-ghost:hover { color: #bf665a; }
.profile-form-grid { margin-top: 17px; }
.profile-save-actions { margin-top: 20px; }
.profile-info-list { display: grid; gap: 0; }
.profile-info-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid #edf0ee; }
.profile-info-list div:last-child { border-bottom: 0; }
.profile-info-list span { color: #9aa2aa; font-size: 10px; }
.profile-info-list strong { color: var(--ink); font: 600 12px 'JetBrains Mono', monospace; }

.admin-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.admin-stat { padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-warm); animation: card-enter .42s both; transition: transform .22s, box-shadow .22s, border-color .22s; }
.admin-stat:hover { border-color: #d7c6ad; box-shadow: 0 10px 22px rgba(42,19,7,.07); transform: translateY(-3px); }
.admin-stat:nth-child(2) { animation-delay: .05s; }
.admin-stat:nth-child(3) { animation-delay: .1s; }
.admin-stat:nth-child(4) { animation-delay: .15s; }
.admin-stat:nth-child(5) { animation-delay: .2s; }
.admin-stat:nth-child(6) { animation-delay: .25s; }
.admin-stat-label { color: #8e98a1; font-size: 10px; }
.admin-stat-value { margin-top: 10px; font: 700 24px 'Space Grotesk', sans-serif; letter-spacing: -.07em; }
.admin-stat-note { margin-left: 5px; color: #9ba3aa; font: 9px 'DM Mono', monospace; letter-spacing: 0; }
.admin-directory-panel { padding: 0; overflow: hidden; }
.admin-directory-header { align-items: flex-start; padding: 21px 22px 0; margin-bottom: 16px; }
.admin-directory-actions { display: flex; align-items: center; gap: 13px; }
.admin-result-count { color: #9aa3aa; font: 9px 'JetBrains Mono', monospace; white-space: nowrap; }
.admin-tools { display: flex; align-items: center; gap: 10px; padding: 0 22px 15px; }
.admin-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px; height: 38px; padding: 0 11px; border: 1px solid #dfe4e1; border-radius: 8px; color: #8c979f; background: #fff; }
.admin-search > span { font-size: 18px; line-height: 1; transform: rotate(-15deg); }
.admin-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.admin-search input::placeholder { color: #b4bbc0; }
.admin-filter { height: 38px; min-width: 155px; padding: 0 10px; border: 1px solid #dfe4e1; border-radius: 8px; color: #5f6d7c; background: #fff; font-size: 11px; }
.admin-player-grid { display: grid; grid-template-columns: minmax(145px, 1.25fr) minmax(150px, 1.2fr) minmax(95px, .8fr) minmax(120px, 1fr) minmax(100px, .82fr) minmax(105px, .9fr) minmax(175px, 1.45fr); gap: 12px; align-items: center; }
.admin-player-grid-header { padding: 11px 22px; color: #9aa2aa; background: #f9faf7; font: 9px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.admin-player-list { display: flex; flex-direction: column; }
.admin-player-row { padding: 14px 22px; border-top: 1px solid #edf0ee; background: var(--paper-warm); animation: list-item-in .4s both; transition: background .18s, box-shadow .18s, transform .18s; }
.admin-player-row:hover { background: #fff; box-shadow: inset 3px 0 0 var(--gold); transform: translateX(2px); }
.admin-player-row:nth-child(2) { animation-delay: .05s; }
.admin-player-row:nth-child(3) { animation-delay: .1s; }
.admin-player-row:nth-child(4) { animation-delay: .15s; }
.admin-player-row:nth-child(5) { animation-delay: .2s; }
.admin-player-cell { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.admin-player-identity { flex-direction: row; align-items: center; gap: 9px; }
.admin-player-identity > div { min-width: 0; }
.admin-player-identity .profile-person { display: inline-grid; flex: 0 0 auto; }
.admin-player-avatar .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 10px; }
.admin-player-cell strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }
.admin-player-cell small { overflow: hidden; color: #9aa3aa; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.admin-player-identity strong { display: block; font-size: 11px; }
.admin-player-identity small { display: block; margin-top: 3px; font: 8px 'JetBrains Mono', monospace; }
.admin-player-account strong { font-weight: 600; }
.admin-player-account small { text-transform: capitalize; }
.admin-date-value, .admin-last-seen { min-width: 0; }
.admin-date-value { display: flex; flex-direction: column; gap: 4px; }
.admin-date-value strong { font: 600 10px 'JetBrains Mono', monospace; }
.admin-date-value small { font-size: 8px; }
.admin-muted-value { color: #a8b0b5; font-size: 9px; }
.admin-last-seen { display: grid; grid-template-columns: 7px minmax(0, 1fr); column-gap: 6px; align-items: center; }
.admin-last-seen i { width: 7px; height: 7px; border-radius: 50%; background: #b9c0c3; }
.admin-last-seen.online i { background: var(--teal); box-shadow: 0 0 0 3px rgba(255,116,0,.14); }
.admin-last-seen span { overflow: hidden; color: #687686; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.admin-last-seen.online span { color: #c45700; font-weight: 700; }
.admin-last-seen small { grid-column: 2; color: #a0a8ad; font-size: 8px; }
.admin-player-record strong, .admin-player-bounty strong { font: 600 10px 'JetBrains Mono', monospace; }
.admin-player-bounty strong { color: #657586; }
.admin-player-status { align-items: flex-start; }
.admin-player-status .admin-actions { justify-content: flex-start; flex-wrap: wrap; gap: 4px 9px; }
.admin-player-status .admin-actions .button-ghost { padding: 2px 0; }
.status-badge.guest { color: #71808c; background: #eef0ed; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 15px; }
.admin-table .data-table { min-width: 780px; }
.admin-user-cell { display: flex; align-items: center; gap: 9px; }
.admin-user-cell strong { display: block; color: var(--ink); font-size: 11px; }
.admin-user-cell small { display: block; overflow: hidden; max-width: 150px; margin-top: 3px; color: #99a2ab; text-overflow: ellipsis; font-size: 9px; }
.admin-role-badge { display: inline-flex; padding: 4px 6px; border-radius: 5px; color: #7b8795; background: #eef0ed; font: 9px 'DM Mono', monospace; text-transform: uppercase; }
.admin-role-badge.admin { color: #a8751a; background: var(--gold-light); }
.admin-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-actions .button-ghost { padding: 4px; font-size: 10px; }
.admin-delete-button { padding: 2px 0; border: 0; color: #bf665a; background: transparent; font-size: 10px; }
.admin-delete-button:hover { color: #9e4037; }
.admin-activity-list { display: flex; flex-direction: column; }
.admin-activity { display: flex; align-items: center; gap: 10px; min-height: 54px; border-bottom: 1px solid #edf0ee; }
.admin-activity:last-child { border: 0; }
.admin-activity-copy { min-width: 0; flex: 1; }
.admin-activity-copy strong { display: block; overflow: hidden; color: #455267; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.admin-activity-copy small { display: block; margin-top: 4px; color: #9da5ab; font-size: 9px; }
.admin-void-button { color: #bf665a; border: 0; background: transparent; font-size: 10px; }
.admin-void-button:hover { color: #9e4037; }
.moderation-note { padding: 13px 14px; margin-top: 15px; border-left: 3px solid var(--gold); border-radius: 8px; color: #78848f; background: var(--gold-light); font-size: 10px; line-height: 1.5; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8, 16, 28, .62); backdrop-filter: blur(4px); animation: fade-in .16s ease-out; }
.modal { width: min(100%, 480px); max-height: calc(100vh - 40px); overflow: auto; padding: 25px; border-radius: 17px; background: var(--paper-warm); box-shadow: 0 28px 90px rgba(0,0,0,.28); animation: rise-in .2s ease-out; }
.modal.wide { width: min(100%, 600px); }
.modal.player-card-modal { width: min(100%, 360px); padding: 20px; }
.player-card-modal .modal-header { margin-bottom: 16px; }
.player-card-modal .modal-header h2 { font-size: 19px; }
.compact-player-card { padding: 15px; border: 1px solid #dfe7e2; border-radius: 13px; background: #fff; }
.compact-player-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.compact-player-identity .avatar.large { width: 58px; height: 58px; flex-basis: 58px; font-size: 17px; }
.compact-player-identity > div { min-width: 0; flex: 1; }
.compact-player-identity strong, .compact-player-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-player-identity strong { color: var(--ink); font: 600 15px 'Sora', sans-serif; }
.compact-player-identity span { margin-top: 4px; color: #9aa2aa; font: 9px 'JetBrains Mono', monospace; text-transform: uppercase; }
.compact-player-identity > b { align-self: flex-start; color: #c08a2a; font: 10px 'JetBrains Mono', monospace; }
.compact-player-title { display: flex; flex-direction: column; gap: 5px; padding: 13px 0; margin-top: 15px; border-top: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; }
.compact-player-title span { color: #9aa2aa; font: 9px 'JetBrains Mono', monospace; text-transform: uppercase; }
.compact-player-title strong { color: var(--ink); font: 600 15px 'Space Grotesk', sans-serif; }
.compact-player-title small { color: #7d8994; font-size: 10px; }
.compact-player-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; }
.compact-player-stats span { display: block; color: #9aa2aa; font: 9px 'JetBrains Mono', monospace; }
.compact-player-stats strong { display: block; margin-top: 5px; color: var(--ink); font: 600 12px 'Sora', sans-serif; letter-spacing: -.03em; }
.compact-player-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; }
.compact-player-footer strong { color: #6d7a88; font: 10px 'JetBrains Mono', monospace; }
.compact-player-actions { margin-top: 15px; padding-top: 15px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.modal-header h2 { margin: 0; font: 600 21px 'Space Grotesk', sans-serif; letter-spacing: -.05em; }
.modal-header p { margin: 6px 0 0; color: #8f99a3; font-size: 11px; line-height: 1.5; }
.modal-close { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #7d8790; background: #eef0ed; font-size: 18px; }
.modal-close:hover { color: var(--ink); background: #e3e7e2; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #697586; font-size: 10px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dfe4e1; border-radius: 8px; color: var(--ink); background: #fff; padding: 10px 11px; font-size: 12px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c7d1cb; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #d6a631; box-shadow: 0 0 0 3px rgba(255,200,0,.13); transform: translateY(-1px); }
.field-help { display: block; margin-top: 7px; color: #9aa3aa; font-size: 9px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #b4bbc0; }
.field textarea { min-height: 70px; resize: vertical; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; padding-top: 17px; border-top: 1px solid #edf0ee; }
.cancel-button { min-height: 37px; padding: 0 13px; border: 0; color: #8a949e; background: transparent; font-size: 11px; }
.cancel-button:hover { color: var(--ink); }
.winner-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.winner-option { position: relative; }
.winner-option input { position: absolute; opacity: 0; }
.winner-option label { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 10px; border: 1px solid #dfe4e1; border-radius: 9px; cursor: pointer; background: #fff; transition: border .15s, box-shadow .15s, background .15s; }
.winner-option input:checked + label { border-color: var(--teal); background: var(--teal-light); box-shadow: 0 0 0 2px rgba(255,116,0,.12); }
.winner-option label strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 11px; }
.winner-option label small { display: block; margin-top: 3px; color: #9aa2a8; font-size: 9px; }
.confirm-callout { display: flex; gap: 10px; padding: 12px; margin-bottom: 17px; border-radius: 9px; color: #647280; background: #f0f4f1; font-size: 10px; line-height: 1.5; }
.confirm-callout strong { color: #c45700; }
.confirm-icon { color: var(--teal); font-size: 14px; }
.rules-list { display: flex; flex-direction: column; gap: 13px; margin: 0; padding: 0; list-style: none; }
.rules-list li { display: flex; gap: 11px; color: #6f7b88; font-size: 11px; line-height: 1.5; }
.rules-list li span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 22px; color: #a8751a; border-radius: 7px; background: var(--gold-light); font: 10px 'DM Mono', monospace; }
.report-summary { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 16px; margin-bottom: 16px; border-radius: 11px; background: #f5f6f3; }
.report-summary .versus { font-size: 11px; }
.report-summary .player-cell { flex-direction: column; gap: 5px; flex: 0 1 130px; }
.report-summary .player-name { max-width: 120px; }
.waiting-state { padding: 10px 2px 2px; text-align: center; color: #87929c; font-size: 11px; line-height: 1.55; }
.waiting-state strong { display: block; color: #c45700; margin-bottom: 6px; }

.toast-region { position: fixed; z-index: 50; right: 22px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.toast { display: flex; align-items: center; gap: 9px; max-width: min(360px, calc(100vw - 44px)); padding: 12px 14px; border: 1px solid #ffd6b0; border-radius: 9px; color: #a84e00; background: #fff5e9; box-shadow: 0 13px 32px rgba(42,19,7,.12); font-size: 11px; animation: rise-in .2s ease-out; }
.toast.error { color: #a8544b; border-color: #f0d2cd; background: #fff6f3; }
.toast-icon { font-size: 14px; }
.error-page { display: grid; place-items: center; min-height: 400px; text-align: center; }
.error-page h2 { margin: 0 0 7px; font: 600 21px 'Space Grotesk', sans-serif; }
.error-page p { margin: 0 0 18px; color: #86919c; font-size: 12px; }

@keyframes app-shell-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in-left { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: translateX(0); } }
@keyframes topbar-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes page-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heading-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes card-enter { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes battle-card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes list-item-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rule-card-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 116, 0, .14); } 50% { box-shadow: 0 0 0 6px rgba(255, 116, 0, .03); } }
@keyframes notification-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); box-shadow: 0 0 0 4px rgba(255, 8, 8, .1); } }
@keyframes popover-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes inferno-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 1px #ff9f43, 0 0 14px #ff401c, 0 0 28px rgba(255,48,15,.7); } 50% { transform: scale(1.28); box-shadow: 0 0 0 2px #ffd15a, 0 0 19px #ff5b21, 0 0 38px rgba(255,48,15,.9); } }
@keyframes battle-slide-left { from { opacity: 0; transform: translateX(-54px) scale(.82); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes battle-slide-right { from { opacity: 0; transform: translateX(54px) scale(.82); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes battle-vs-pop { from { opacity: 0; transform: scale(.35) rotate(-18deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes battle-glow { 0%, 100% { transform: scale(.82); opacity: .55; } 50% { transform: scale(1.16); opacity: 1; } }
@keyframes battle-flash { 0%, 100% { opacity: 0; transform: scale(.5) rotate(-20deg); } 45%, 70% { opacity: 1; transform: scale(1.25) rotate(8deg); } }
@keyframes battle-spark { 0%, 100% { opacity: .25; transform: translateY(5px) scale(.8); } 50% { opacity: 1; transform: translateY(-5px) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Modern type system overrides */
.brand-name, .current-avatar, .avatar, .auth-visual-copy h1, .auth-card-header h2, .page-title, .hero h1, .stat-number, .panel-title, .empty-state strong, .on-deck h3, .rank-hero h2, .rank-big, .side-stat-value, .player-card h3, .player-card-bounty strong, .admin-stat-value, .modal-header h2, .error-page h2 { font-family: 'Sora', sans-serif; }
.season-pill, .nav-label, .nav-count, .admin-nav-badge, .rule-score, .auth-visual-footer, .auth-divider, .auth-footnote code, .eyebrow, .art-coordinate, .stat-note, .rank-number, .player-tag, .bounty-value, .win-rate, .you-pill, .activity-result, .on-deck-label, .data-table th, .bounty-chip, .side-stat-note, .challenge-date, .versus, .player-rank, .player-card-bounty span, .player-card-stats strong, .admin-stat-note, .admin-role-badge, .rules-list li span { font-family: 'JetBrains Mono', monospace; }
.activity-result.waiting { font-family: 'Manrope', sans-serif; }

@media (max-width: 1150px) {
  .page-wrap { padding-left: 30px; padding-right: 30px; }
  .topbar { padding: 0 30px; }
  .hero-art { width: 230px; flex-basis: 230px; }
  .compass { right: -8px; }
  .player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-card-wrap { min-height: 100vh; padding: 36px 24px; }
  .sidebar { position: fixed; z-index: 10; left: 0; top: 0; bottom: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 15px 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; z-index: 9; inset: 0; display: block; visibility: hidden; border: 0; background: rgba(8,16,28,.42); opacity: 0; pointer-events: none; transition: opacity .22s ease, visibility .22s; }
  .sidebar.open + .sidebar-overlay { visibility: visible; opacity: 1; pointer-events: auto; }
  .mobile-menu { display: block; }
  .topbar { gap: 15px; padding: 0 24px; }
  .breadcrumbs { margin-right: auto; }
  .topbar-actions { gap: 11px; }
  .content-grid, .rankings-layout, .profile-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-directory-header { align-items: flex-start; }
  .admin-player-grid-header { display: none; }
  .admin-player-list { gap: 10px; padding: 0 15px 15px; }
  .admin-player-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .admin-player-row:hover { background: #fff; }
  .admin-player-cell { align-items: flex-start; }
  .admin-player-cell[data-label]::before { content: attr(data-label); color: #9aa2aa; font: 8px 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
  .admin-player-identity { grid-column: 1 / -1; align-items: center; padding-bottom: 11px; border-bottom: 1px solid #edf0ee; }
  .admin-player-identity::before { display: none; }
  .admin-player-account { grid-column: 1 / -1; }
  .admin-player-status { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid #edf0ee; }
  .admin-player-status::before { flex: 0 0 auto; }
  .admin-player-status .admin-actions { justify-content: flex-end; }
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { display: none; }
}

@media (max-width: 650px) {
  .auth-card-wrap { padding: 26px 19px; }
  .auth-card-header h2 { font-size: 28px; }
  .space-onboarding { align-items: start; padding: 28px 16px 35px; }
  .space-onboarding-brand { margin-bottom: 35px; }
  .space-onboarding-header h1 { font-size: 33px; }
  .space-choice-grid { grid-template-columns: 1fr; }
  .invite-choice-card { grid-template-columns: auto minmax(0, 1fr); }
  .invite-choice-card button { grid-column: 1 / -1; width: 100%; }
  .invite-conflict-card { padding: 22px; }
  .invite-conflict-actions { align-items: stretch; flex-direction: column; }
  .invite-conflict-actions .button-ghost { text-align: center; }
  .invite-link-field { align-items: stretch; flex-direction: column; }
  .invite-link-field .button-secondary { width: 100%; }
  .topbar { height: 66px; padding: 0 17px; }
  .breadcrumbs span, .breadcrumbs b { display: none; }
  .acting-as span { display: none; }
  .topbar-divider, .icon-button { display: none; }
  .notification-menu, .notification-menu .notification-button { display: block; }
  .notification-menu .notification-button { display: grid; }
  .account-summary { min-width: 0; }
  .account-summary small { display: none; }
  .signout-button { display: block; width: 27px; overflow: hidden; padding: 5px 0; font-size: 0; white-space: nowrap; }
  .signout-button::before { content: '↪'; font-size: 17px; }
  .page-wrap { padding: 25px 16px 38px; }
  .page-title { font-size: 27px; }
  .admin-directory-header { flex-direction: column; gap: 13px; padding: 17px 15px 0; }
  .admin-directory-actions { width: 100%; justify-content: space-between; }
  .admin-tools { align-items: stretch; flex-direction: column; padding: 0 15px 13px; }
  .admin-search, .admin-filter { width: 100%; min-width: 0; }
  .admin-player-list { padding-right: 10px; padding-left: 10px; }
  .admin-player-row { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .admin-player-account { grid-column: 1 / -1; }
  .admin-player-status { align-items: flex-start; flex-direction: column; }
  .admin-player-status .admin-actions { justify-content: flex-start; }
  .admin-table .table-wrap { overflow: visible; }
  .admin-table .data-table { display: block; min-width: 0; }
  .admin-table .data-table thead { display: none; }
  .admin-table .data-table tbody, .admin-table .data-table tr, .admin-table .data-table td { display: block; width: 100%; }
  .admin-table .data-table tr { padding: 8px 0; border-top: 1px solid #edf0ee; }
  .admin-table .data-table tr:first-child { border-top: 0; }
  .admin-table .data-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 15px; border: 0; white-space: normal; text-align: right; }
  .admin-table .data-table td::before { content: attr(data-label); flex: 0 0 auto; color: #9aa2aa; font: 8px 'JetBrains Mono', monospace; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
  .admin-table .data-table td.right { text-align: right; }
  .admin-table .data-table .admin-user-cell { min-width: 0; text-align: left; }
  .admin-table .data-table .admin-actions { flex-wrap: wrap; }
  .hero { min-height: auto; padding: 26px 23px; border-radius: 16px; }
  .hero h1 { font-size: 34px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions button { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin: 9px 0 15px; }
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { min-height: 103px; padding: 13px; }
  .stat-number { font-size: 22px; }
  .panel { padding: 17px 15px; }
  .leader-row { grid-template-columns: 23px minmax(90px, 1fr) 55px 40px; gap: 6px; }
  .challenge-grid, .player-grid { grid-template-columns: 1fr; }
  .current-match-card { padding: 17px; }
  .current-match-arena { gap: 9px; margin-top: 21px; }
  .current-match-player .avatar.large { width: 54px; height: 54px; flex-basis: 54px; font-size: 14px; }
  .current-match-player strong { max-width: 105px; font-size: 11px; }
  .current-match-vs span { width: 35px; height: 35px; font-size: 9px; }
  .current-match-footer { align-items: stretch; flex-direction: column; }
  .current-match-footer .button-primary { width: 100%; }
  .battle-match-modal { padding: 19px; }
  .battle-match-arena { gap: 6px; }
  .battle-contender .avatar.large { width: 63px; height: 63px; flex-basis: 63px; font-size: 16px; }
  .battle-contender strong { max-width: 95px; font-size: 11px; }
  .battle-match-center strong { width: 48px; height: 48px; font-size: 12px; }
  .battle-match-line { width: 20px; }
  .tier-grid { grid-template-columns: 1fr; }
  .overview-tier-grid { grid-template-columns: 1fr; }
  .view-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 20px; }
  .view-heading > button { width: 100%; }
  .ranking-tree-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ranking-tree-level { padding-left: 43px; }
  .ranking-tree-level::after { top: 35px; }
  .ranking-tree-level::before { top: 28px; }
  .ranking-tree-player { min-width: min(100%, 150px); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .winner-options { grid-template-columns: 1fr; }
  .rank-hero { align-items: flex-start; flex-direction: column; }
  .rank-big { align-self: flex-end; margin-top: -12px; }
  .on-deck { align-items: flex-start; flex-direction: column; }
  .on-deck .button-primary { width: 100%; }
  .promotion-callout { align-items: flex-start; flex-direction: column; padding: 23px; }
  .promotion-mark { position: absolute; right: 23px; top: 22px; min-width: 55px; font-size: 36px; }
  .promotion-versus { align-items: flex-start; flex-direction: column; gap: 9px; }
  .promotion-versus .versus { display: none; }
  .promotion-versus .challenge-player { min-width: 0; }
  .boss-card .challenge-versus { align-items: flex-start; flex-direction: column; gap: 9px; }
  .boss-card .challenge-versus .versus { display: none; }
  .boss-schedule { align-items: flex-start; flex-direction: column; gap: 5px; }
  .profile-card-featured { min-height: 0; padding: 20px; }
  .profile-featured-identity { margin: 34px 0 22px; }
  .profile-featured-identity h2 { font-size: 20px; }
  .profile-photo-editor { align-items: flex-start; flex-direction: column; }
  .profile-photo-editor input[type='file'] { max-width: 100%; }
}
