/* ── Draft Page ── */

.draft-page {
    background:
        radial-gradient(circle at 16% 12%, rgba(75, 134, 255, 0.18), transparent 24%),
        radial-gradient(circle at 82% 16%, rgba(200, 170, 110, 0.18), transparent 26%),
        linear-gradient(180deg, #06090f 0%, #09111a 50%, #05070d 100%);
}

.draft-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
    z-index: -1;
}

[data-theme="light"] .draft-page {
    background:
        radial-gradient(circle at 16% 12%, rgba(75, 134, 255, 0.12), transparent 24%),
        radial-gradient(circle at 82% 16%, rgba(200, 170, 110, 0.16), transparent 26%),
        linear-gradient(180deg, #f7f1e5 0%, #f0e8d9 48%, #f8f3ea 100%);
}

[data-theme="light"] .draft-page::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 84px 84px;
}

.draft-page a {
    text-decoration: none;
}

/* ── Shared Draft Components ── */

.panel-card {
    background: linear-gradient(180deg, rgba(10, 16, 24, 0.9), rgba(10, 16, 24, 0.72));
    border: 1px solid rgba(200, 170, 110, 0.14);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .panel-card {
    background: linear-gradient(180deg, rgba(255, 251, 243, 0.92), rgba(255, 249, 238, 0.76));
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.panel-header h2,
.panel-header h3 {
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.15;
}

.panel-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.panel-note {
    max-width: 240px;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
    text-align: right;
}

/* ── Top Bar ── */

.draft-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px 24px;
    background: rgba(5, 7, 13, 0.8);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

[data-theme="light"] .draft-topbar {
    background: rgba(246, 241, 230, 0.84);
}

.draft-topbar-start {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.draft-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(200, 170, 110, 0.16);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 700;
    background: rgba(200, 170, 110, 0.08);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.draft-home-link::before {
    content: '←';
    font-size: 0.8rem;
}

.draft-home-link:hover {
    color: var(--text-primary);
    border-color: rgba(200, 170, 110, 0.34);
    background: rgba(200, 170, 110, 0.14);
    transform: translateY(-1px);
}

.draft-logo {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.draft-match-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    text-align: center;
}

.match-kicker {
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.match-teams {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 2.05rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.match-meta {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.draft-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.draft-topbar .theme-toggle {
    flex: none;
}

.draft-phase {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid rgba(200, 170, 110, 0.16);
    background: rgba(10, 16, 24, 0.72);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.phase-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.phase-subtext {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.72rem;
}

.draft-phase.phase-blue {
    border-color: rgba(75, 134, 255, 0.28);
    background: rgba(75, 134, 255, 0.12);
}

.draft-phase.phase-blue .phase-label {
    color: var(--accent-blue);
}

.draft-phase.phase-red {
    border-color: rgba(255, 109, 98, 0.28);
    background: rgba(255, 109, 98, 0.12);
}

.draft-phase.phase-red .phase-label {
    color: var(--accent-red);
}

.draft-phase.phase-done {
    border-color: rgba(39, 205, 167, 0.3);
    background: rgba(39, 205, 167, 0.12);
}

.draft-phase.phase-done .phase-label {
    color: var(--accent-green);
}

.draft-phase.phase-neutral .phase-label {
    color: var(--accent-gold);
}

/* ── Advantage ── */

.advantage-section {
    padding: 26px 24px 0;
    max-width: 1600px;
    margin: 0 auto;
}

.advantage-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 520px);
    gap: 28px;
    padding: 28px 30px;
    border: 1px solid rgba(200, 170, 110, 0.16);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(10, 16, 24, 0.94), rgba(10, 16, 24, 0.76));
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .advantage-card {
    background: linear-gradient(180deg, rgba(255, 251, 243, 0.94), rgba(255, 249, 238, 0.78));
}

.advantage-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.4vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 0.95;
    text-transform: uppercase;
}

.advantage-caption {
    max-width: 620px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.72;
}

.advantage-meter-card {
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(200, 170, 110, 0.12);
    border-radius: 22px;
    background: rgba(7, 12, 18, 0.64);
}

[data-theme="light"] .advantage-meter-card {
    background: rgba(255, 250, 240, 0.72);
}

.advantage-meter {
    display: grid;
    gap: 10px;
}

.advantage-bar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(75, 134, 255, 0.16), rgba(255, 109, 98, 0.18));
}

.advantage-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    transition: width 0.45s ease;
}

.advantage-labels {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.advantage-blue,
.advantage-red {
    font-size: 1.08rem;
    font-weight: 700;
}

.advantage-blue {
    color: var(--accent-blue);
}

.advantage-red {
    color: var(--accent-red);
    text-align: right;
}

.advantage-status {
    color: var(--text-secondary);
    font-size: 0.86rem;
    text-align: center;
}

.advantage-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.advantage-chip {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid rgba(200, 170, 110, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .advantage-chip {
    background: rgba(255, 255, 255, 0.4);
}

.advantage-chip-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.advantage-chip strong {
    color: var(--text-primary);
    font-size: 0.94rem;
    font-weight: 700;
}

/* ── Layout ── */

.draft-main {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(380px, 0.92fr);
    grid-template-areas:
        'board explain'
        'board copilot';
    gap: 22px;
    padding: 22px 24px 32px;
    max-width: 1600px;
    margin: 0 auto;
}

.draft-board,
.explanation-panel,
.copilot-section {
    padding: 24px;
}

.draft-board {
    grid-area: board;
}

.explanation-panel {
    grid-area: explain;
}

.copilot-panel {
    grid-area: copilot;
}

/* ── Draft Board ── */

.draft-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.board-side-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(200, 170, 110, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
}

[data-theme="light"] .board-side-card {
    background: rgba(255, 255, 255, 0.36);
}

.side-column {
    display: flex;
    flex-direction: column;
}

.side-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-header-red {
    justify-content: flex-end;
}

.side-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.side-header-blue .side-tag {
    background: rgba(75, 134, 255, 0.14);
    color: var(--accent-blue);
}

.side-header-red .side-tag {
    background: rgba(255, 109, 98, 0.14);
    color: var(--accent-red);
}

.team-name-input {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid rgba(200, 170, 110, 0.18);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease;
}

.team-name-input:focus {
    border-bottom-color: var(--accent-gold);
}

.side-header-red .team-name-input {
    text-align: right;
}

.ban-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.ban-slot,
.pick-slot {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ban-slot:hover,
.pick-slot:hover {
    transform: translateY(-1px);
    border-color: rgba(200, 170, 110, 0.36);
    background: rgba(200, 170, 110, 0.05);
}

.ban-slot {
    min-width: 0;
    aspect-ratio: 1;
    border: 1px dashed rgba(200, 170, 110, 0.18);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.ban-slot.active,
.pick-slot.active {
    border-style: solid;
    border-color: rgba(200, 170, 110, 0.46);
    box-shadow: 0 0 0 1px rgba(200, 170, 110, 0.2), 0 0 22px rgba(200, 170, 110, 0.14);
}

.ban-slot.filled,
.pick-slot.filled {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.ban-slot.filled .slot-label,
.pick-slot.filled .slot-label {
    display: none;
}

.ban-slot .champ-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.42);
}

.ban-slot .champ-name-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 4px 2px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
    color: var(--accent-red);
    font-size: 0.58rem;
    font-weight: 600;
    text-align: center;
    text-decoration: line-through;
}

.slot-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pick-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.pick-slot {
    min-height: 82px;
    padding: 12px 14px;
    border: 1px dashed rgba(200, 170, 110, 0.18);
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.pick-slot .champ-portrait {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    flex: none;
}

.pick-slot .champ-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pick-slot .champ-name {
    font-size: 1rem;
    font-weight: 700;
}

.pick-slot .champ-role {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.side-red .pick-slot {
    flex-direction: row-reverse;
    text-align: right;
}

/* ── Explanation Panel ── */

.explanation-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.explanation-header {
    margin-bottom: 6px;
}

.audience-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(200, 170, 110, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.audience-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.audience-btn.active {
    background: rgba(200, 170, 110, 0.14);
    color: var(--accent-gold);
}

.audience-btn:hover:not(.active) {
    color: var(--text-secondary);
}

.explanation-body {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.8;
}

.explanation-body p + p {
    margin-top: 12px;
}

.explanation-placeholder {
    color: var(--text-muted);
}

.explanation-guide {
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.explanation-guide li {
    padding: 7px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.explanation-guide li::before {
    content: '→';
    display: inline-block;
    margin-right: 8px;
    color: var(--accent-gold);
}

.explanation-summary strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.explanation-advantage {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.explanation-risk {
    color: var(--accent-gold);
    font-size: 0.82rem;
}

.strength-profile {
    padding-top: 18px;
    border-top: 1px solid rgba(200, 170, 110, 0.12);
}

.strength-profile h4 {
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strength-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strength-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.strength-label {
    width: 106px;
    flex: none;
    color: var(--text-muted);
    font-size: 0.76rem;
    text-align: right;
    cursor: help;
}

.strength-bar-track {
    flex: 1;
    height: 8px;
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.strength-bar-blue {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    transition: width 0.35s ease;
}

.strength-bar-red {
    background: linear-gradient(90deg, #ff8f77, var(--accent-red));
    transition: width 0.35s ease;
}

/* ── Copilot ── */

.copilot-panel {
    display: grid;
    gap: 22px;
    align-content: start;
}

.copilot-section {
    min-height: 0;
}

.recommendations {
    display: grid;
    gap: 14px;
}

.rec-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(200, 170, 110, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.rec-card:hover:not(.rec-placeholder) {
    transform: translateY(-1px);
    border-color: rgba(200, 170, 110, 0.32);
    background: rgba(200, 170, 110, 0.06);
}

.rec-rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 170, 110, 0.14);
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.rec-body {
    min-width: 0;
}

.rec-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rec-name {
    color: var(--text-primary);
    font-size: 0.96rem;
    font-weight: 700;
}

.rec-role,
.rec-impact {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rec-reason {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.58;
}

.rec-side {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.rec-delta {
    font-size: 0.94rem;
    font-weight: 700;
    white-space: nowrap;
}

.rec-delta.positive {
    color: var(--accent-green);
}

.rec-delta.negative {
    color: var(--accent-red);
}

.rec-placeholder .rec-impact {
    display: none;
}

.whatif-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.whatif-table th {
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(200, 170, 110, 0.12);
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.whatif-table td {
    padding: 14px 8px 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    vertical-align: top;
}

.whatif-table tr:hover td {
    background: rgba(200, 170, 110, 0.04);
}

.whatif-placeholder td {
    padding-right: 0;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.whatif-delta.positive {
    color: var(--accent-green);
    font-weight: 700;
}

.whatif-delta.negative {
    color: var(--accent-red);
    font-weight: 700;
}

/* ── Champion Modal ── */

.champion-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 7, 11, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.champion-modal-content {
    width: min(1100px, 100%);
    max-height: min(82vh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(200, 170, 110, 0.18);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(10, 16, 24, 0.96), rgba(10, 16, 24, 0.82));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

[data-theme="light"] .champion-modal-content {
    background: linear-gradient(180deg, rgba(255, 251, 243, 0.96), rgba(255, 249, 238, 0.84));
}

.champion-modal-header {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(200, 170, 110, 0.12);
}

.champion-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.champion-search-wrap {
    min-width: 0;
}

.champion-search {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(200, 170, 110, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.champion-search:focus {
    border-color: rgba(200, 170, 110, 0.36);
    background: rgba(200, 170, 110, 0.05);
}

.champion-role-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.role-btn,
.modal-close {
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(200, 170, 110, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.role-btn.active {
    border-color: rgba(200, 170, 110, 0.3);
    background: rgba(200, 170, 110, 0.14);
    color: var(--accent-gold);
}

.role-btn:hover:not(.active),
.modal-close:hover {
    border-color: rgba(200, 170, 110, 0.28);
    color: var(--text-primary);
}

.champion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    padding: 18px 20px 20px;
    overflow-y: auto;
}

.champ-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid rgba(200, 170, 110, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
    text-align: center;
}

.champ-card:hover {
    transform: translateY(-1px);
    border-color: rgba(200, 170, 110, 0.26);
    background: rgba(200, 170, 110, 0.08);
}

.champ-card.disabled {
    opacity: 0.24;
    pointer-events: none;
}

.champ-card img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.champ-card .champ-card-name {
    max-width: 100%;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.champ-card .champ-card-role {
    color: var(--text-muted);
    font-size: 0.6rem;
    line-height: 1.35;
}

/* ── AI Coach ── */

.ai-coach-bar {
    position: sticky;
    bottom: 0;
    z-index: 110;
    padding: 0 24px 24px;
    background: linear-gradient(180deg, rgba(5, 7, 13, 0), rgba(5, 7, 13, 0.68) 30%, rgba(5, 7, 13, 0.88) 100%);
}

[data-theme="light"] .ai-coach-bar {
    background: linear-gradient(180deg, rgba(246, 241, 230, 0), rgba(246, 241, 230, 0.7) 30%, rgba(246, 241, 230, 0.9) 100%);
}

.coach-shell {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 22px;
    border: 1px solid rgba(200, 170, 110, 0.14);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(10, 16, 24, 0.94), rgba(10, 16, 24, 0.8));
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .coach-shell {
    background: linear-gradient(180deg, rgba(255, 251, 243, 0.94), rgba(255, 249, 238, 0.8));
}

.coach-copy p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.coach-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 14px;
}

.coach-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(200, 170, 110, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.coach-input:focus {
    border-color: rgba(200, 170, 110, 0.36);
    background: rgba(200, 170, 110, 0.05);
}

.coach-send {
    min-width: 112px;
    padding: 12px 18px;
    border: none;
    border-radius: 16px;
    background: var(--gradient-main);
    color: #140f06;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coach-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(137, 97, 35, 0.24);
}

.coach-response {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(200, 170, 110, 0.14);
    border-radius: 18px;
    background: rgba(200, 170, 110, 0.06);
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ── Responsive ── */

@media (max-width: 1240px) {
    .draft-topbar {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            'brand actions'
            'info info';
    }

    .draft-topbar-start {
        grid-area: brand;
    }

    .draft-match-info {
        grid-area: info;
        align-items: flex-start;
        text-align: left;
    }

    .draft-topbar-actions {
        grid-area: actions;
        justify-self: end;
    }

    .advantage-card {
        grid-template-columns: 1fr;
    }

    .draft-main {
        grid-template-columns: 1fr;
        grid-template-areas:
            'board'
            'explain'
            'copilot';
    }

    .copilot-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 960px) {
    .advantage-insights,
    .draft-board-grid,
    .copilot-panel {
        grid-template-columns: 1fr;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-note {
        max-width: none;
        text-align: left;
    }

    .champion-modal {
        padding: 16px;
    }

    .champion-modal-header {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .champion-role-filter {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .draft-topbar,
    .advantage-section,
    .draft-main,
    .ai-coach-bar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .draft-topbar {
        gap: 14px;
    }

    .draft-topbar-start {
        gap: 10px;
    }

    .draft-home-link {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .draft-logo {
        font-size: 1.6rem;
    }

    .match-teams {
        font-size: 1.5rem;
    }

    .draft-topbar-actions {
        width: 100%;
        justify-self: stretch;
        justify-content: space-between;
    }

    .draft-phase {
        min-width: 0;
        flex: 1;
        justify-content: center;
    }

    .advantage-card,
    .draft-board,
    .explanation-panel,
    .copilot-section,
    .coach-shell {
        padding: 18px;
    }

    .advantage-title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .ban-row {
        gap: 6px;
    }

    .pick-slot {
        min-height: 72px;
    }

    .pick-slot .champ-portrait {
        width: 50px;
        height: 50px;
    }

    .audience-switch {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .recommendations {
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 84%);
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .rec-card {
        min-width: 0;
    }

    .champion-grid {
        grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    }

    .coach-input-wrap {
        grid-template-columns: 1fr;
    }

    .coach-send {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .draft-topbar {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .match-kicker,
    .match-meta {
        font-size: 0.72rem;
    }

    .match-teams {
        font-size: 1.34rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .draft-phase {
        padding: 9px 12px;
        gap: 8px;
    }

    .phase-subtext {
        padding-left: 8px;
    }

    .panel-header h2,
    .panel-header h3 {
        font-size: 1.12rem;
    }

    .team-name-input {
        font-size: 0.92rem;
    }

    .pick-slot {
        padding: 10px;
    }

    .pick-slot .champ-name {
        font-size: 0.88rem;
    }

    .whatif-table th:last-child,
    .whatif-table td:last-child {
        display: none;
    }

    .champion-grid {
        grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
        gap: 8px;
        padding: 16px;
    }

    .champ-card img {
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ban-slot,
    .pick-slot,
    .rec-card,
    .coach-send,
    .champ-card {
        transition: none;
    }
}
