:root {
    --bg: #0b1020;
    --bg-2: #151325;
    --panel: rgba(18, 22, 39, 0.94);
    --panel-strong: rgba(11, 14, 27, 0.98);
    --line: rgba(255, 240, 214, 0.14);
    --text: #fff8eb;
    --muted: rgba(255, 248, 235, 0.68);
    --cyan: #55f2d0;
    --lime: #c7ff5e;
    --teal: #16c79a;
    --violet: #a99bff;
    --amber: #ffb86b;
    --red: #ff6675;
    --shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 209, 102, 0.14), transparent 24%),
        radial-gradient(circle at 92% 16%, rgba(69, 224, 195, 0.12), transparent 28%),
        linear-gradient(135deg, #080c18 0%, #17162b 52%, #281b29 100%);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.firestorm-shell {
    min-height: 100svh;
    width: min(1600px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
}

.firestorm-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(110deg, rgba(18, 25, 57, 0.96), rgba(8, 33, 39, 0.9) 56%, rgba(31, 19, 57, 0.94)),
        radial-gradient(circle at 10% 0%, rgba(255, 184, 107, 0.18), transparent 32%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    margin-bottom: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.35rem;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #07110f;
    background: linear-gradient(135deg, var(--lime), var(--cyan));
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(216, 248, 95, 0.3);
}

.topbar-center,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.topbar-center {
    justify-content: center;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.status-chip--live {
    color: var(--text);
    border-color: rgba(120, 233, 221, 0.22);
}

.status-chip--muted {
    color: rgba(236, 249, 244, 0.58);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 14px rgba(216, 248, 95, 0.8);
}

.topbar-metric {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    min-width: 104px;
}

.topbar-metric span {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.topbar-metric strong {
    font-family: inherit;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
}

.topbar-link {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.topbar-link:hover {
    transform: translateY(-1px);
    border-color: rgba(120, 233, 221, 0.3);
    background: rgba(120, 233, 221, 0.08);
}

.firestorm-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.45fr) minmax(280px, 0.88fr);
    gap: 16px;
    align-items: start;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(12, 27, 24, 0.78), rgba(6, 15, 14, 0.96));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.ledger-panel,
.core-panel,
.side-column > .panel {
    padding: 18px;
}

.side-column {
    display: grid;
    gap: 16px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.panel-head--dense {
    margin-bottom: 12px;
}

.panel-head h1,
.panel-head h2 {
    margin: 0;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.panel-head h1 {
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.panel-head h2 {
    font-size: 1.15rem;
}

.panel-badge,
.panel-caption {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 11px;
    border: 1px solid rgba(120, 233, 221, 0.22);
    color: var(--cyan);
    background: rgba(120, 233, 221, 0.07);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.panel-badge--alt {
    border-color: rgba(216, 248, 95, 0.22);
    color: var(--lime);
    background: rgba(216, 248, 95, 0.08);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--lime);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.search-wrap input {
    width: min(100%, 280px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.search-wrap input:focus {
    border-color: rgba(120, 233, 221, 0.32);
    box-shadow: 0 0 0 4px rgba(120, 233, 221, 0.08);
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(120, 233, 221, 0.22);
}

.filter-btn.is-active {
    background: linear-gradient(135deg, rgba(120, 233, 221, 0.16), rgba(216, 248, 95, 0.12));
    border-color: rgba(120, 233, 221, 0.3);
    color: var(--text);
}

.hero-deck {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(120, 233, 221, 0.18);
    background:
        radial-gradient(circle at 20% 20%, rgba(120, 233, 221, 0.18), transparent 26%),
        radial-gradient(circle at 80% 15%, rgba(216, 248, 95, 0.12), transparent 22%),
        linear-gradient(145deg, rgba(12, 24, 22, 0.98), rgba(5, 12, 11, 0.96));
    padding: 16px;
    min-height: 206px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, transparent 0 44%, rgba(255, 255, 255, 0.04) 48%, transparent 54%),
        linear-gradient(90deg, transparent, rgba(120, 233, 221, 0.1), transparent);
    pointer-events: none;
}

.hero-card__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(150px, 0.72fr);
    gap: 14px;
    align-items: stretch;
}

.hero-card__copy {
    display: grid;
    align-content: space-between;
    gap: 14px;
}

.hero-card__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hero-card__title h3 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.8rem, 2.4vw, 2.8rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-card__rating {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.ovr {
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3rem, 5vw, 4.6rem);
    line-height: 0.9;
    font-weight: 800;
    color: var(--lime);
    text-shadow: 0 0 24px rgba(216, 248, 95, 0.28);
}

.ovr-label {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-meta span,
.card-meta span,
.profile-id,
.profile-state,
.panel-caption {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-meta span,
.card-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.hero-stats {
    display: grid;
    gap: 10px;
}

.stat-row {
    display: grid;
    gap: 6px;
}

.stat-row__label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--cyan), var(--lime));
    box-shadow: 0 0 16px rgba(120, 233, 221, 0.18);
}

.hero-card__visual {
    display: grid;
    gap: 10px;
}

.hero-card__frame {
    position: relative;
    min-height: 100%;
    border-radius: 22px;
    border: 1px solid rgba(120, 233, 221, 0.16);
    background:
        radial-gradient(circle at 50% 24%, rgba(120, 233, 221, 0.18), transparent 22%),
        linear-gradient(180deg, rgba(7, 18, 16, 0.4), rgba(4, 10, 10, 0.84));
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hero-card__frame::after {
    content: "";
    position: absolute;
    inset: -24% -24% auto auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 248, 95, 0.3), transparent 70%);
    filter: blur(2px);
    pointer-events: none;
}

.hero-club {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-card__portrait {
    width: 100%;
    min-height: 280px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 28% 18%, rgba(120, 233, 221, 0.24), transparent 20%),
        radial-gradient(circle at 72% 24%, rgba(216, 248, 95, 0.18), transparent 18%),
        linear-gradient(180deg, rgba(12, 27, 24, 0.96), rgba(5, 12, 11, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px;
    position: relative;
}

.hero-card__portrait span {
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 0.9;
    letter-spacing: 0.08em;
    color: var(--lime);
    text-shadow: 0 0 24px rgba(216, 248, 95, 0.26);
}

.hero-card__portrait small {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-card__hint {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

.pitch-panel,
.card-rail-wrap {
    margin-top: 16px;
}

.pitch-board {
    display: grid;
    gap: 10px;
}

.line-row {
    display: grid;
    grid-template-columns: minmax(88px, 0.16fr) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.line-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.line-label strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.line-label span {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.line-slots {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.slot {
    min-height: 92px;
    border-radius: 18px;
    padding: 12px;
    border: 1px dashed rgba(120, 233, 221, 0.18);
    background:
        linear-gradient(180deg, rgba(8, 19, 17, 0.65), rgba(4, 10, 10, 0.9)),
        radial-gradient(circle at 50% 0%, rgba(120, 233, 221, 0.12), transparent 50%);
    display: grid;
    align-content: space-between;
    gap: 10px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.slot.is-filled {
    border-style: solid;
    border-color: rgba(120, 233, 221, 0.28);
    background:
        linear-gradient(180deg, rgba(10, 24, 22, 0.86), rgba(4, 10, 10, 0.94)),
        radial-gradient(circle at 50% 0%, rgba(216, 248, 95, 0.14), transparent 50%);
}

.slot:hover {
    transform: translateY(-1px);
}

.slot__name {
    font-weight: 700;
    line-height: 1.1;
}

.slot__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.76rem;
}

.slot__badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--cyan);
}

.card-rail-wrap {
    padding-top: 2px;
}

.rail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rail-head h2 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.draft-card {
    position: relative;
    overflow: hidden;
    min-height: 278px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(120, 233, 221, 0.16);
    background:
        radial-gradient(circle at 16% 10%, rgba(120, 233, 221, 0.18), transparent 24%),
        radial-gradient(circle at 84% 14%, rgba(216, 248, 95, 0.14), transparent 22%),
        linear-gradient(145deg, rgba(12, 24, 23, 0.98), rgba(4, 10, 10, 0.97));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.draft-card:hover {
    transform: translateY(-3px);
    border-color: rgba(120, 233, 221, 0.34);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.draft-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.05) 46%, transparent 52%),
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 70%);
    pointer-events: none;
}

.draft-card.is-selected {
    border-color: #ffb86b;
    background:
        radial-gradient(circle at 16% 10%, rgba(255, 184, 107, 0.35), transparent 28%),
        radial-gradient(circle at 84% 14%, rgba(190, 132, 255, 0.34), transparent 26%),
        linear-gradient(145deg, rgba(76, 39, 61, 0.98), rgba(23, 24, 54, 0.98));
    box-shadow:
        0 0 0 2px rgba(255, 184, 107, 0.24),
        0 0 28px rgba(190, 132, 255, 0.28),
        0 18px 42px rgba(0, 0, 0, 0.42);
}

.draft-card.is-selected::after {
    content: "";
    position: absolute;
    inset: -8%;
    border-radius: inherit;
    border: 1px solid rgba(255, 184, 107, 0.42);
    animation: pulse-border 1.4s ease-out infinite;
    pointer-events: none;
}

.draft-card.is-locked {
    opacity: 0.52;
    cursor: not-allowed;
}

.draft-card.is-just-selected {
    animation: pop-select 0.48s ease;
}

.draft-card__top,
.draft-card__mid,
.draft-card__footer {
    position: relative;
    z-index: 1;
}

.draft-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.draft-card__name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.4rem;
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.draft-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.draft-card__meta span,
.draft-card__footer span {
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.draft-card__rating {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.draft-card__rating strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.8rem;
    line-height: 0.9;
    color: var(--lime);
}

.draft-card__rating span {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.draft-card__mid {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.draft-card__metric {
    display: grid;
    gap: 6px;
}

.player-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.player-profile-grid span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(236,249,244,0.72);
    font-size: 0.78rem;
}

.player-profile-grid strong {
    color: #ecf9f4;
}

.draft-card__metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.draft-card__footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.draft-card__action {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(120, 233, 221, 0.22);
    background: rgba(120, 233, 221, 0.08);
    color: var(--text);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.draft-card__action.is-selected {
    border-color: rgba(199, 255, 94, 0.62);
    background: rgba(199, 255, 94, 0.16);
    color: var(--lime);
    font-weight: 800;
    box-shadow: 0 0 16px rgba(199, 255, 94, 0.16);
}

.draft-card__chip {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.draft-card__badge {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(120, 233, 221, 0.36);
}

.draft-card__badge.is-elite {
    background: var(--lime);
}

.draft-card__badge.is-rare {
    background: var(--cyan);
}

.draft-card__badge.is-core {
    background: var(--amber);
}

.draft-card__badge.is-mythic {
    background: var(--violet);
}

.radar-shell {
    position: relative;
    display: grid;
    place-items: center;
    padding: 8px 0 4px;
}

.radar-shell svg {
    width: min(100%, 420px);
    height: auto;
}

#radarSvg text {
    fill: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.grid-line {
    stroke: rgba(255, 255, 255, 0.08);
    fill: none;
}

.axis-line {
    stroke: rgba(120, 233, 221, 0.14);
    stroke-width: 1.4;
}

.radar-polygon {
    fill: rgba(120, 233, 221, 0.18);
    stroke: rgba(216, 248, 95, 0.66);
    stroke-width: 2.4;
    filter: drop-shadow(0 0 12px rgba(120, 233, 221, 0.2));
}

.radar-point {
    fill: var(--lime);
    stroke: #061110;
    stroke-width: 3;
}

.radar-ring {
    position: absolute;
    width: 178px;
    height: 178px;
    pointer-events: none;
    filter: drop-shadow(0 0 14px rgba(120, 233, 221, 0.2));
}

.ring-base,
.ring-fill {
    fill: none;
    stroke-width: 10;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.ring-base {
    stroke: rgba(255, 255, 255, 0.08);
}

.ring-fill {
    stroke: url(#ringGradient);
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
}

.radar-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.radar-stat {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.radar-stat span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.radar-stat strong {
    display: block;
    margin-top: 6px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.04em;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(120, 233, 221, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(120, 233, 221, 0.22), rgba(216, 248, 95, 0.18));
    color: var(--text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
}

.profile-state {
    color: var(--lime);
    margin-bottom: 4px;
}

.profile-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.7rem;
    line-height: 0.92;
    text-transform: uppercase;
}

.profile-id {
    color: var(--muted);
    margin-top: 4px;
}

.profile-stats {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.profile-stats div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.profile-stats span {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-stats strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.action-btn {
    flex: 1;
    border: 1px solid rgba(120, 233, 221, 0.2);
    background: rgba(120, 233, 221, 0.08);
    color: var(--text);
    border-radius: 14px;
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.action-btn--ghost {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.terminal-log {
    min-height: 280px;
    max-height: 440px;
    overflow: auto;
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(120, 233, 221, 0.12);
    background:
        radial-gradient(circle at 20% 0%, rgba(120, 233, 221, 0.09), transparent 24%),
        rgba(2, 8, 8, 0.96);
    font-family: "Courier New", monospace;
}

.terminal-line {
    display: grid;
    gap: 4px;
    line-height: 1.45;
}

.terminal-line__meta {
    color: rgba(236, 249, 244, 0.48);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terminal-line__body {
    color: var(--text);
    white-space: pre-wrap;
}

.terminal-line[data-role="system"] .terminal-line__body {
    color: var(--cyan);
}

.terminal-line[data-role="manager"] .terminal-line__body {
    color: var(--lime);
}

.terminal-line[data-role="assistant"] .terminal-line__body {
    color: var(--amber);
}

.terminal-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.terminal-form input {
    width: 100%;
    border: 1px solid rgba(120, 233, 221, 0.16);
    border-radius: 14px;
    padding: 13px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    outline: none;
}

.terminal-form input:focus {
    border-color: rgba(216, 248, 95, 0.34);
    box-shadow: 0 0 0 4px rgba(216, 248, 95, 0.06);
}

.terminal-send {
    border: 1px solid rgba(216, 248, 95, 0.24);
    border-radius: 14px;
    padding: 0 16px;
    background: linear-gradient(135deg, rgba(216, 248, 95, 0.16), rgba(120, 233, 221, 0.12));
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-list {
    display: grid;
    gap: 10px;
}

.rank-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rank-card:hover,
.rank-card.is-active {
    transform: translateY(-1px);
    border-color: rgba(120, 233, 221, 0.3);
    background: rgba(120, 233, 221, 0.07);
}

.rank-card__index {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.2rem;
    color: var(--text);
    background: linear-gradient(135deg, rgba(120, 233, 221, 0.16), rgba(216, 248, 95, 0.14));
    border: 1px solid rgba(120, 233, 221, 0.16);
}

.rank-card__body {
    display: grid;
    gap: 10px;
}

.rank-card__title {
    display: grid;
    gap: 2px;
}

.rank-card__title strong {
    font-size: 0.98rem;
}

.rank-card__title span {
    color: var(--muted);
    font-size: 0.78rem;
}

.rank-card__bars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rank-mini {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-mini span {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rank-mini strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.6rem;
    line-height: 0.92;
}

.news-panel h2 {
    margin: 0 0 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-feed {
    display: grid;
    gap: 10px;
}

.status-item {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.status-item strong {
    font-size: 0.98rem;
}

.status-item span {
    color: var(--muted);
    font-size: 0.82rem;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(120, 233, 221, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

@keyframes pulse-border {
    0% {
        transform: scale(0.96);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

@keyframes pop-select {
    0% {
        transform: scale(0.98);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 1280px) {
    .firestorm-grid {
        grid-template-columns: 1fr;
    }

    .side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .radar-panel {
        grid-column: span 2;
    }
}

@media (max-width: 960px) {
    .firestorm-topbar {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .topbar-center,
    .topbar-actions {
        justify-content: flex-start;
    }

    .side-column {
        grid-template-columns: 1fr;
    }

    .radar-panel {
        grid-column: span 1;
    }

    .hero-card__grid {
        grid-template-columns: 1fr;
    }

    .line-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .firestorm-shell {
        width: min(100% - 20px, 1600px);
        padding-top: 10px;
    }

    .core-panel,
    .ledger-panel,
    .side-column > .panel {
        padding: 14px;
    }

    .card-rail {
        grid-template-columns: 1fr;
    }

    .terminal-form,
    .profile-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

.firestorm-app {
    min-height: 100svh;
    width: min(1680px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 30px;
}

.firestorm-topbar--routed {
    margin-bottom: 18px;
}

.route-shell {
    display: grid;
    gap: 16px;
}

.route-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(12, 27, 24, 0.92), rgba(6, 15, 14, 0.92)),
        radial-gradient(circle at 15% 20%, rgba(120, 233, 221, 0.12), transparent 28%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.route-hero h1 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3.6rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.route-hero p {
    margin: 10px 0 0;
    max-width: 68ch;
    color: var(--muted);
}

.route-hero__metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.route-hero__metrics > div,
.metric-grid > div {
    min-width: 120px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.route-hero__metrics span,
.metric-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.route-hero__metrics strong,
.metric-grid strong {
    display: block;
    font-family: inherit;
    font-size: 1.35rem;
}

.route-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.route-nav__link {
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font: 700 0.74rem inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.route-nav__link:hover,
.route-nav__link.is-active {
    transform: translateY(-1px);
    color: var(--text);
    border-color: rgba(120, 233, 221, 0.34);
    background: rgba(120, 233, 221, 0.08);
}

.route-grid {
    display: grid;
    gap: 16px;
}

.route-grid--leaderboard,
.route-grid--forum,
.route-grid--nexus,
.route-grid--profile,
.route-grid--arcade {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.74fr);
}

.route-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(12, 27, 24, 0.84), rgba(6, 15, 14, 0.96));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.route-panel--wide {
    min-height: 100%;
}

.route-panel--nested + .route-panel--nested {
    margin-top: 16px;
}

.route-panel__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.route-panel__head h2 {
    margin: 0;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.2rem;
}

.route-stack {
    display: grid;
    gap: 16px;
}

.table-board,
.feed-list,
.chat-stream,
.arcade-list,
.profile-list {
    display: grid;
    gap: 10px;
}

.table-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
}

.table-row.is-selected {
    border-color: rgba(120, 233, 221, 0.34);
    background: rgba(120, 233, 221, 0.08);
}

.table-row__rank {
    font-family: inherit;
    font-size: 1.2rem;
    color: var(--lime);
}

.table-row__player {
    display: grid;
}

.table-row__player strong {
    font-size: 1rem;
}

.table-row__player span,
.table-row__meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.table-row__meta {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.summary-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.summary-card__avatar,
.profile-avatar--large {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--lime), var(--cyan));
    color: #06110f;
    font-family: inherit;
    font-size: 1.55rem;
    font-weight: 800;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.metric-grid--profile,
.metric-grid--arcade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-item,
.chat-item,
.arcade-card {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.feed-item {
    display: flex;
    gap: 10px;
    align-items: start;
}

.feed-item__dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 12px rgba(216, 248, 95, 0.5);
}

.room-tabs,
.filter-row,
.tool-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.room-tab,
.filter-btn {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.room-tab.is-active,
.filter-btn.is-active {
    color: var(--text);
    border-color: rgba(120, 233, 221, 0.34);
    background: rgba(120, 233, 221, 0.08);
}

.chat-stream {
    margin: 14px 0;
    max-height: 520px;
    overflow: auto;
}

.route-panel__subhead {
    max-width: 42rem;
    margin: 0.35rem 0 0;
    color: rgba(236, 249, 244, 0.68);
}

.forum-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}

.summary-chip {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.summary-chip span {
    display: block;
    color: rgba(236, 249, 244, 0.7);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.summary-chip strong {
    display: block;
    margin-top: 3px;
    font-size: 1.2rem;
}

.chat-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 82%;
}

.chat-item--own {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-item__avatar {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(169, 117, 255, 0.8), rgba(255, 188, 92, 0.85));
    color: #171225;
    font-weight: 800;
}

.chat-item__body {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px 14px 14px 4px;
    background: rgba(255, 255, 255, 0.045);
}

.chat-item--own .chat-item__body {
    border-color: rgba(169, 117, 255, 0.28);
    border-radius: 14px 14px 4px 14px;
    background: rgba(169, 117, 255, 0.11);
}

.chat-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 5px;
}

.chat-item__author {
    font-weight: 750;
}

.chat-item__role,
.chat-item__meta time {
    color: rgba(236, 249, 244, 0.56);
    font-size: 0.72rem;
}

.chat-item__body p {
    margin: 0;
    overflow-wrap: anywhere;
}

.chat-item__reply-button {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #ffcb78;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
}

.chat-item__reply-context,
.reply-composer-context {
    display: flex;
    gap: 8px;
    margin: 0 0 8px;
    padding: 7px 9px;
    border-left: 2px solid #ffcb78;
    background: rgba(255, 203, 120, 0.08);
    color: rgba(236, 249, 244, 0.75);
    font-size: 0.78rem;
}

.chat-item__reply-context {
    flex-direction: column;
}

.chat-item__reply-context strong {
    color: #ffcb78;
}

.reply-composer-context {
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.reply-composer-context div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.reply-composer-context span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-form {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.group-form input,
.group-form textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.16);
    color: inherit;
    font: inherit;
}

.group-form textarea {
    min-height: 66px;
    resize: vertical;
}

.group-form small {
    color: rgba(236, 249, 244, 0.52);
    line-height: 1.4;
}

.chat-item__meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chat-item--system {
    border-color: rgba(216, 248, 95, 0.18);
}

.chat-item--assistant {
    border-color: rgba(120, 233, 221, 0.16);
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
}

.chat-form input,
.route-search {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.route-search {
    min-width: 260px;
}

.nexus-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 16px;
}

.nexus-column {
    display: grid;
    gap: 14px;
}

.nexus-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.card-grid .draft-card {
    min-height: 100%;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.profile-hero h3 {
    margin: 6px 0 4px;
    font-family: inherit;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-hero p {
    margin: 0;
    color: var(--muted);
}

.profile-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lime);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.action-btn {
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(120, 233, 221, 0.24);
    background: linear-gradient(135deg, rgba(120, 233, 221, 0.16), rgba(216, 248, 95, 0.08));
    color: var(--text);
    font-weight: 700;
}

.action-btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.choice-grid {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.choice-btn {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
}

.choice-btn.is-selected {
    border-color: rgba(120, 233, 221, 0.34);
    background: rgba(120, 233, 221, 0.08);
}

.choice-btn:disabled {
    opacity: 0.8;
    cursor: default;
}

.arcade-card.is-answered {
    border-color: rgba(216, 248, 95, 0.16);
}

.radar-shell--small {
    transform: scale(0.92);
    transform-origin: top center;
}

@media (max-width: 1200px) {
    .route-grid--leaderboard,
    .route-grid--forum,
    .route-grid--nexus,
    .route-grid--profile,
    .route-grid--arcade,
    .nexus-layout {
        grid-template-columns: 1fr;
    }

    .route-hero {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .firestorm-app {
        width: calc(100% - 18px);
    }

    .firestorm-topbar,
    .chat-form {
        grid-template-columns: 1fr;
    }

    .topbar-center,
    .topbar-actions,
    .route-hero__metrics {
        justify-content: flex-start;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }
}

.route-outlet {
    display: block;
}
.route-outlet--entering > * {
    animation: route-enter 0.42s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes route-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }

.hub-card { min-height: 180px; border-radius: 10px; }
.hub-card:nth-child(1) { background: linear-gradient(145deg, rgba(255, 102, 117, .22), rgba(25, 28, 54, .96)); }
.hub-card:nth-child(2) { background: linear-gradient(145deg, rgba(69, 224, 195, .2), rgba(25, 28, 54, .96)); }
.hub-card:nth-child(3) { background: linear-gradient(145deg, rgba(255, 159, 104, .22), rgba(25, 28, 54, .96)); }
.hub-card:nth-child(4) { background: linear-gradient(145deg, rgba(143, 156, 255, .2), rgba(25, 28, 54, .96)); }
.fantasy-hub__grid,
.prediction-grid,
.challenge-opponents { display: grid; gap: 12px; }

.sector-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sector-card,
.hub-card {
    display: grid;
    gap: 6px;
    min-height: 120px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(120, 233, 221, 0.08), rgba(255, 255, 255, 0.02));
    color: var(--text);
    text-align: left;
}

.sector-card:hover, .sector-card.is-active, .hub-card:hover {
    border-color: rgba(216, 248, 95, 0.38);
    background: linear-gradient(135deg, rgba(216, 248, 95, 0.12), rgba(120, 233, 221, 0.08));
}

.sector-card__index, .hub-card > span { color: var(--cyan); font-size: 0.72rem; letter-spacing: 0.12em; }
.sector-card strong, .hub-card strong { font-size: 1.08rem; text-transform: uppercase; }
.sector-card > span:last-child, .hub-card em, .fantasy-hub__intro > span, .sector-stage p, .challenge-stage__copy { color: var(--muted); font-style: normal; }

.fantasy-hub, .sector-stage, .challenge-stage {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(12, 27, 24, 0.9), rgba(6, 15, 14, 0.96));
    box-shadow: var(--shadow);
}

.fantasy-hub__intro h2, .sector-stage h2, .challenge-stage h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-transform: uppercase;
}

.fantasy-hub__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hub-card { min-height: 150px; border-radius: 16px; }
.fantasy-hub__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fantasy-hub__account { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:4px; color:var(--muted); }
.account-link { border:0; padding:0; color:var(--lime); background:none; font-weight:700; cursor:pointer; }
.hub-card { position:relative; min-height:180px; padding:22px; overflow:hidden; border-radius:10px; background:linear-gradient(145deg, rgba(24,49,45,.92), rgba(19,22,40,.94)); box-shadow:inset 0 1px rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.2); }
.hub-card::after { content:""; position:absolute; right:-24px; bottom:-36px; width:120px; height:120px; border:1px solid rgba(216,248,95,.25); border-radius:50%; }
.hub-card strong { font-size:1.35rem; max-width:9ch; }
.hub-card__icon { display:grid; place-items:center; width:2.5rem; height:2.5rem; margin-bottom:10px; border:1px solid rgba(120,233,221,.32); border-radius:12px; color:var(--cyan); background:rgba(120,233,221,.1); filter:drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.hub-card__icon svg { display:block; width:1.25rem; height:1.25rem; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.hub-card > small { display:block; color:var(--cyan); font-size:.72rem; letter-spacing:.12em; }
.room-tabs { position:sticky; top:8px; z-index:2; padding:8px; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(5,14,14,.9); backdrop-filter:blur(16px); }
.chat-stream { min-height:360px; max-height:620px; padding:4px; background:rgba(2,8,8,.26); border:1px solid rgba(255,255,255,.07); border-radius:10px; }
.chat-item { border-left:3px solid var(--cyan); border-radius:8px; }
.chat-form { position:sticky; bottom:10px; padding:10px; border:1px solid rgba(120,233,221,.18); border-radius:10px; background:rgba(6,15,14,.94); }
.prediction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prediction-grid article, .challenge-matchup, .challenge-opponent {
    display: grid; gap: 6px; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; background: rgba(255, 255, 255, 0.03);
}
.prediction-grid span { color: var(--cyan); font-size: 0.72rem; text-transform: uppercase; }
.prediction-grid em { color: var(--muted); font-size: 0.85rem; font-style: normal; }
.challenge-matchup { grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; }
.challenge-opponents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.challenge-opponent { color: var(--text); text-align: left; }

.profile-editor { display: grid; gap: 12px; margin-top: 14px; }
.profile-editor label { display: grid; gap: 7px; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-editor input, .profile-editor textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; background: rgba(255, 255, 255, 0.03); color: var(--text); resize: vertical; }

.firestorm-footer {
    display: grid;
    gap: 14px;
    padding: 24px max(20px, 4vw) 28px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
}
.firestorm-footer__identity { color: var(--text); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.firestorm-footer__identity small { margin-left: 8px; color: var(--cyan); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: none; }
.firestorm-footer__links { display:flex; gap:14px; }
.fantasy-mini-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(120,233,221,.2);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(12,27,24,.96), rgba(19,22,40,.96));
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.fantasy-mini-nav a {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 9px 4px;
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}
.fantasy-mini-nav__icon { display:grid; place-items:center; width:1.75rem; height:1.75rem; border:1px solid rgba(120,233,221,.3); border-radius:9px; color:var(--cyan); background:rgba(120,233,221,.08); }
.fantasy-mini-nav__icon svg { display:block; width:.9rem; height:.9rem; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.fantasy-mini-nav a small { font-size: .68rem; }
.fantasy-mini-nav a:hover,
.fantasy-mini-nav a:focus-visible,
.fantasy-mini-nav a.is-active {
    color: var(--text);
    background: rgba(216,248,95,.12);
}
.fantasy-mini-nav a:hover .fantasy-mini-nav__icon,
.fantasy-mini-nav a:focus-visible .fantasy-mini-nav__icon,
.fantasy-mini-nav a.is-active .fantasy-mini-nav__icon { color:#171323; border-color:#ffb86b; background:#ffb86b; }
.fantasy-mini-nav.is-profile-open { border-color: rgba(216,248,95,.42); }

@media (max-width: 1100px) { .fantasy-hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sector-selector, .fantasy-hub__grid, .prediction-grid, .challenge-opponents { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
    .forum-summary {
        grid-template-columns: 1fr;
    }

    .chat-item {
        max-width: 94%;
    }

    .reply-composer-context {
        align-items: flex-start;
        flex-direction: column;
    }
}

.draft-stack {
    display: grid;
    gap: 16px;
}

.route-intro {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid rgba(216, 248, 95, 0.18);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(216, 248, 95, 0.08), rgba(120, 233, 221, 0.04));
}

.route-intro h2,
.route-intro p {
    margin: 0;
}

.route-intro h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.route-intro > p:last-child {
    max-width: 68ch;
    color: var(--muted);
}

.draft-controls,
.captain-list,
.wallet-addresses {
    display: grid;
    gap: 12px;
    margin: 14px 0;
}

.draft-controls {
    grid-template-columns: minmax(190px, auto) 1fr;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(120, 233, 221, 0.14);
    border-radius: 18px;
    background: rgba(120, 233, 221, 0.04);
}

.draft-controls strong {
    display: block;
    margin-top: 3px;
    font-size: 0.88rem;
}

.captain-list {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.captain-chip,
.community-row {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.captain-chip {
    padding: 10px;
    text-align: left;
    font-size: 0.78rem;
}

.captain-chip.is-active,
.community-row.is-active {
    border-color: rgba(216, 248, 95, 0.38);
    background: rgba(216, 248, 95, 0.09);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 390px;
    overflow: auto;
}

.community-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 9px;
    text-align: left;
    font-size: 0.75rem;
}

.community-row span,
.community-row em,
.community-highlight span,
.challenge-card span {
    color: var(--muted);
    font-style: normal;
}

.community-highlight,
.challenge-card {
    display: grid;
    gap: 5px;
    padding: 13px;
    border: 1px solid rgba(120, 233, 221, 0.14);
    border-radius: 16px;
    background: rgba(120, 233, 221, 0.05);
}

.forum-map-head { margin-top: 18px; }

.wallet-row {
    display: grid;
    grid-template-columns: 0.55fr 0.9fr 1.6fr auto;
    gap: 8px;
}

.wallet-row input,
.wallet-row select {
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.wallet-row option {
    color: #101a20;
    background: #f4f7f6;
}

.wallet-rate {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .draft-controls,
    .wallet-row,
    .community-grid { grid-template-columns: 1fr; }
}

.progress-shell {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow);
}

.progress-shell__copy {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.progress-shell__copy h2 {
    margin: 0;
    font-size: 1.15rem;
}

.progress-shell__stats {
    display: grid;
    gap: 4px;
    justify-items: end;
    color: var(--muted);
    font-size: 0.85rem;
}

.progress-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.progress-track__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--lime));
    box-shadow: 0 0 20px rgba(120, 233, 221, 0.28);
}

.status-chip { cursor: pointer; }
.dialog-backdrop[hidden] { display: none; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(2, 8, 8, 0.78); }
.dialog-panel { position: relative; width: min(100%, 520px); padding: 26px; border: 1px solid rgba(120, 233, 221, 0.28); border-radius: 20px; background: var(--panel-strong); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45); }
.dialog-panel h2 { margin: 0 0 10px; font-size: 1.8rem; text-transform: uppercase; }
.dialog-panel p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; }
.dialog-status { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.dialog-status strong { color: var(--cyan); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.leaderboard-progress {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-progress__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.85rem;
}

.forum-banner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    padding: 14px 16px;
    margin: 14px 0;
    border-radius: 18px;
    background: rgba(120, 233, 221, 0.06);
    border: 1px solid rgba(120, 233, 221, 0.14);
}

.forum-banner h3 {
    margin: 0;
    font-size: 1.05rem;
}

.forum-banner p {
    margin: 0;
    max-width: 42ch;
    color: var(--muted);
}

.forum-capsules {
    display: grid;
    gap: 10px;
}

.forum-capsule {
    display: grid;
    gap: 4px;
    text-align: left;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.forum-capsule strong {
    font-size: 0.95rem;
}

.forum-capsule span {
    color: var(--muted);
    font-size: 0.82rem;
}

.forum-capsule.is-active {
    border-color: rgba(120, 233, 221, 0.34);
    background: rgba(120, 233, 221, 0.08);
}

.wallet-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wallet-card > div {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.wallet-card span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wallet-card strong {
    display: block;
    font-size: 1.25rem;
}

.wallet-card small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.76rem;
}

.wallet-switch {
    display: grid;
    gap: 12px;
    padding: 14px;
    margin-top: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.wallet-switch strong {
    display: block;
    margin-bottom: 4px;
}

.wallet-switch span {
    color: var(--muted);
    font-size: 0.9rem;
}

.identity-stack {
    display: grid;
    gap: 10px;
}

.identity-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.identity-step span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(120, 233, 221, 0.12);
    color: var(--cyan);
    font-weight: 700;
}

.identity-step strong {
    display: block;
    margin-bottom: 4px;
}

.identity-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.address-field {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.address-field span {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.address-field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

@media (max-width: 900px) {
    .wallet-card {
        grid-template-columns: 1fr;
    }

    .progress-shell__copy,
    .forum-banner {
        flex-direction: column;
    }

    .progress-shell__stats {
        justify-items: start;
    }
}

.route-nav__icon {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    color: var(--cyan);
    font-size: 1rem;
}

.mobile-route-nav {
    display: none;
}

.account-checklist,
.wallet-ledger,
.challenge-payouts {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.account-checklist__item,
.challenge-payouts > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.account-checklist__item > span {
    color: var(--muted);
    font-size: 0.72rem;
}

.account-checklist__item strong,
.challenge-payouts strong {
    display: block;
}

.account-checklist__item small,
.challenge-payouts small,
.wallet-ledger small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.75rem;
}

.account-checklist__item--done {
    border-color: rgba(69, 224, 195, 0.38);
}

.wallet-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-ledger > div {
    padding: 10px;
    border-radius: 10px;
    background: rgba(69, 224, 195, 0.06);
}

.authority-note {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.challenge-pools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.challenge-pool {
    position: relative;
    width: 100%;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.challenge-pool:hover,
.challenge-pool:focus-visible,
.challenge-pool.is-selected {
    transform: translateY(-2px);
    border-color: #ffb86b;
    box-shadow: 0 0 0 2px rgba(255, 184, 107, 0.14), 0 14px 32px rgba(98, 57, 148, 0.18);
}

.challenge-pool__marker {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    border-radius: 50%;
    color: #171323;
    background: #ffb86b;
    font-weight: 900;
}

.challenge-pool__meta {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.challenge-payouts > div {
    grid-template-columns: 1fr auto;
}

.challenge-payouts small {
    grid-column: 1 / -1;
}

.challenge-entry-panel,
.challenge-opponent-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
}

.challenge-entry-panel h2,
.challenge-opponent-panel h2 {
    margin: 4px 0;
}

.challenge-entry-panel p,
.challenge-empty span {
    color: var(--muted);
}

.challenge-readiness {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 184, 107, 0.25);
    border-radius: 12px;
    color: #ffcc91;
}

.challenge-readiness.is-ready {
    border-color: rgba(120, 233, 221, 0.35);
    color: var(--cyan);
}

.challenge-readiness small,
.challenge-pool > small,
.challenge-opponent-count {
    color: var(--muted);
}

.challenge-opponent.is-selected {
    border-color: #ffb86b;
    background: rgba(255, 184, 107, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 184, 107, 0.12);
}

.challenge-empty {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px dashed rgba(255, 184, 107, 0.28);
    border-radius: 14px;
}

@media (max-width: 760px) {
    .firestorm-shell {
        width: min(100% - 20px, 640px);
        padding-bottom: 84px;
    }

    .route-nav {
        display: none;
    }

    .mobile-route-nav {
        position: fixed;
        z-index: 20;
        right: 10px;
        bottom: 10px;
        left: 10px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(11, 16, 32, 0.94);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
    }

    .mobile-route-nav__link {
        display: grid;
        justify-items: center;
        gap: 2px;
        padding: 7px 2px;
        border-radius: 10px;
        color: var(--muted);
        font-size: 1rem;
    }

    .mobile-route-nav__link:hover,
    .mobile-route-nav__link:focus-visible,
    .mobile-route-nav__link.is-active {
        color: var(--text);
        background: rgba(69, 224, 195, 0.12);
    }

    .mobile-route-nav__link small {
        font-size: 0.58rem;
        text-transform: capitalize;
    }

    .challenge-pools,
    .wallet-ledger {
        grid-template-columns: 1fr;
    }

    .challenge-entry-panel,
    .challenge-opponent-panel {
        align-items: stretch;
        flex-direction: column;
    }
}
.admin-route { align-items: start; }
.admin-gate { position: sticky; top: 1rem; }
.admin-request-card { border-left: 3px solid var(--accent, #f0b35a); }
.admin-request-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.text-input { width: 100%; box-sizing: border-box; margin: .4rem 0 1rem; padding: .75rem; border: 1px solid rgba(255,255,255,.16); border-radius: .5rem; background: rgba(0,0,0,.18); color: inherit; }
