/* ============================================================
   LEAGUE REMOTE — Hextech Theme
   Self-contained (no CDN). All colors via CSS variables.
   ============================================================ */

:root {
    /* Backgrounds */
    --bg-0: #010a13;
    --bg-1: #0a1428;
    --bg-2: #0a1a24;
    --panel: #091c26;
    --panel-2: #0d232f;

    /* Gold */
    --gold-1: #f0e6d2;
    --gold-2: #c8aa6e;
    --gold-3: #c89b3c;
    --gold-4: #785a28;
    --gold-5: #463714;

    /* Hextech blue/teal */
    --cyan-1: #0ac8b9;
    --cyan-2: #0397ab;
    --blue-deep: #0a323c;
    --blue-glow: rgba(10, 200, 185, 0.35);

    /* Neutrals */
    --grey-1: #a09b8c;
    --grey-2: #5b5a56;
    --line: #1e2d38;

    /* Semantic */
    --red-1: #e84057;
    --red-2: #ff4655;
    --green-1: #1fb96b;
    --warn: #f0b232;

    --font-head: "Beaufort for LoL", "Trajan Pro", Georgia, "Times New Roman", serif;
    --font-body: "Spiegel", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(1200px 600px at 50% -10%, #0c2a33 0%, transparent 60%),
        radial-gradient(900px 500px at 100% 100%, #0a1c2e 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    background-attachment: fixed;
    color: var(--gold-1);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Layout shell ---------- */
.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 20px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 18px;
    position: relative;
}
.app-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-4) 20%, var(--gold-3) 50%, var(--gold-4) 80%, transparent);
}
.app-header::before {
    content: "";
    position: absolute;
    left: 50%; bottom: -3px;
    width: 7px; height: 7px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--gold-3);
    box-shadow: 0 0 8px var(--gold-3);
}

.brand {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-1);
    text-shadow: 0 0 14px rgba(200, 170, 110, 0.35);
    display: flex;
    align-items: center;
    gap: 9px;
}
.brand-mark {
    width: 20px; height: 20px;
    flex: 0 0 auto;
    transform: rotate(45deg);
    border: 2px solid var(--gold-3);
    background: linear-gradient(135deg, var(--cyan-2), transparent);
    box-shadow: 0 0 10px var(--blue-glow), inset 0 0 6px rgba(10,200,185,.4);
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ---------- Status pill ---------- */
.status-indicator {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
    border: 1px solid currentColor;
    position: relative;
    white-space: nowrap;
}
.status-indicator::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 6px currentColor;
}
.status--pending { color: var(--warn); background: rgba(240, 178, 50, 0.08); }
.status--ok      { color: var(--cyan-1); background: rgba(10, 200, 185, 0.08); }
.status--error   { color: var(--red-2); background: rgba(255, 70, 85, 0.08); }

/* ---------- State containers ---------- */
.state-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hidden { display: none !important; }

.center-col {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 22px;
}

/* ---------- Typography ---------- */
h3.title {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    color: var(--gold-1);
}
.subtitle {
    color: var(--grey-1);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    padding: 0 8px;
    max-width: 320px;
}

/* ---------- Hextech panel / frame ---------- */
.hex-panel {
    position: relative;
    background:
        linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--gold-4);
    box-shadow: 0 0 0 1px rgba(0,0,0,.4), inset 0 0 40px rgba(0, 30, 40, .5);
}
.hex-panel::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(200, 170, 110, 0.18);
    pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-1);
    background: linear-gradient(180deg, #1a2b34, #0a1720);
    border: 2px solid var(--gold-4);
    padding: 14px 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.btn:hover, .btn:focus-visible {
    border-color: var(--gold-2);
    color: #fff;
    box-shadow: 0 0 18px rgba(200, 170, 110, 0.28);
    outline: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}
.btn--full { width: 100%; }

.btn--gold {
    background: linear-gradient(180deg, var(--gold-2), var(--gold-4));
    color: #0a1015;
    border-color: var(--gold-3);
    text-shadow: 0 1px 0 rgba(255,255,255,.2);
}
.btn--gold:hover {
    background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
    color: #0a1015;
    box-shadow: 0 0 22px rgba(200, 170, 110, 0.5);
}

.btn--success {
    border-color: #14795a;
    color: #eafff5;
    background: linear-gradient(180deg, #10664a, #063326);
}
.btn--success:hover { border-color: var(--green-1); box-shadow: 0 0 18px rgba(31,185,107,.4); }

.btn--danger {
    border-color: #7c2932;
    color: #ffe9ec;
    background: linear-gradient(180deg, #6d2029, #360f14);
}
.btn--danger:hover { border-color: var(--red-2); box-shadow: 0 0 18px rgba(255,70,85,.4); }

.btn--ban  { border-color: var(--red-2); color: #ffe9ec;
    background: linear-gradient(180deg, #7c2932, #3a1116); }
.btn--ban:hover { box-shadow: 0 0 22px rgba(255,70,85,.5); }
.btn--pick { border-color: var(--gold-3); color: #0a1015;
    background: linear-gradient(180deg, var(--gold-2), var(--gold-4)); }
.btn--pick:hover { box-shadow: 0 0 22px rgba(200,170,110,.5); }

.btn--sm { padding: 8px 16px; font-size: 0.72rem; }

/* ---------- Code / pairing input ---------- */
.code-input {
    width: 220px;
    max-width: 80%;
    background: var(--bg-0);
    border: 1px solid var(--gold-4);
    color: var(--gold-1);
    text-align: center;
    font-family: var(--font-head);
    font-size: 2.4rem;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    padding: 14px 0;
    outline: none;
    transition: all 0.2s;
    box-shadow: inset 0 0 20px rgba(0,0,0,.6);
}
.code-input:focus {
    border-color: var(--cyan-1);
    box-shadow: inset 0 0 20px rgba(0,0,0,.6), 0 0 16px var(--blue-glow);
}
.code-input::placeholder { color: var(--grey-2); }

/* ---------- Idle orb ---------- */
.idle-orb {
    width: 104px; height: 104px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transform: rotate(45deg);
    border: 2px solid var(--gold-3);
    background: radial-gradient(circle, rgba(10,200,185,.12), transparent 70%);
    box-shadow: 0 0 30px var(--blue-glow), inset 0 0 24px rgba(10,200,185,.15);
}
.idle-orb::before {
    content:""; position:absolute; inset:7px;
    border: 1px solid rgba(200,170,110,.3);
}
.idle-orb svg { width: 40px; height: 40px; transform: rotate(-45deg); color: var(--cyan-1); }

/* ---------- Lobby members ---------- */
.member-list {
    width: 100%;
    max-width: 340px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 168px;
    overflow-y: auto;
}
.member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(13,35,47,.9), rgba(9,28,38,.9));
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold-4);
    padding: 10px 12px;
}
.member-name { font-weight: 700; font-size: 0.85rem; color: var(--gold-1); }
.member-name--me { color: var(--cyan-1); text-shadow: 0 0 8px var(--blue-glow); }
.role-tag {
    font-size: 0.68rem;
    color: var(--grey-1);
    background: rgba(0,0,0,.35);
    border: 1px solid var(--line);
    padding: 3px 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.role-tag--empty { color: var(--grey-2); font-style: italic; border: none; background: none; }

/* ---------- Role selectors ---------- */
.role-row {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin-top: 6px;
}
.role-box {
    flex: 1;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--gold-4);
    padding: 9px 12px;
    position: relative;
    text-align: left;
}
.role-box label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-1);
    margin-bottom: 3px;
}
.role-box select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--gold-1);
    font-weight: 700;
    font-size: 0.9rem;
    outline: none;
    appearance: none;
    cursor: pointer;
}
.role-box select option { background: var(--bg-1); color: var(--gold-1); }
.role-box .chev {
    position: absolute; right: 10px; top: 50%;
    width: 14px; height: 14px; transform: translateY(-50%);
    color: var(--gold-3); pointer-events: none;
}

/* ---------- Spinner (matchmaking) ---------- */
.spinner {
    position: relative;
    width: 132px; height: 132px;
    display: flex; align-items: center; justify-content: center;
}
.spinner .ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}
.spinner .ring-1 { border-top-color: var(--cyan-1); animation: spin 1.4s linear infinite; box-shadow: 0 0 14px var(--blue-glow); }
.spinner .ring-2 { inset: 12px; border-right-color: var(--gold-3); animation: spin-reverse 1.9s linear infinite; }
.spinner .ring-3 { inset: 24px; border-bottom-color: var(--cyan-2); animation: spin 2.6s linear infinite; }
.spinner-inner { display: flex; flex-direction: column; align-items: center; z-index: 1; }
.spinner-label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-1); }
.spinner-time  { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: #fff;
    text-shadow: 0 0 12px var(--blue-glow); }

.pill {
    color: var(--grey-1);
    background: rgba(0,0,0,.35);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

/* ---------- Match found ---------- */
.mf-badge {
    position: relative;
    width: 132px; height: 132px;
    display: flex; align-items: center; justify-content: center;
}
.mf-badge .ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--cyan-1);
    border-right-color: var(--gold-3);
    border-bottom-color: var(--cyan-2);
    animation: spin 2s linear infinite;
    box-shadow: 0 0 18px var(--blue-glow);
}
.mf-time { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: #fff;
    text-shadow: 0 0 14px var(--blue-glow); }

.btn-row { display: flex; gap: 12px; width: 100%; padding: 0 4px; }
.btn-row .btn { flex: 1; }

/* ============================================================
   CHAMPION SELECT
   ============================================================ */
#state-champ-select { height: 100%; }

.cs-header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    flex-shrink: 0;
    min-height: 44px;
}
.cs-title {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    color: var(--gold-1);
    transition: color .2s;
}
.cs-title--ban  { color: var(--red-2); text-shadow: 0 0 14px rgba(255,70,85,.4); }
.cs-title--pick { color: var(--cyan-1); text-shadow: 0 0 14px var(--blue-glow); }
.cs-phase { font-size: 0.82rem; color: var(--grey-1); margin: 3px 0 0; }
.cs-phase--active { color: var(--gold-1); }

.cs-timer {
    position: absolute; top: -2px; right: 0;
    font-family: var(--font-head);
    font-size: 1.4rem; font-weight: 700;
    color: var(--gold-1);
    background: rgba(0,0,0,.4);
    border: 1px solid var(--gold-4);
    padding: 2px 12px;
    min-width: 52px;
    box-shadow: inset 0 0 10px rgba(0,0,0,.5);
}
.cs-timer--low {
    color: #fff;
    border-color: var(--red-2);
    background: rgba(255,70,85,.15);
    box-shadow: 0 0 14px rgba(255,70,85,.5);
    animation: pulse 1s ease-in-out infinite;
}

/* Bans bar */
.bans-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 2px;
    flex-shrink: 0;
}
.bans-group { display: flex; gap: 5px; }
.bans-group--right { flex-direction: row-reverse; }
.bans-label {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--grey-2);
}
.ban-slot {
    width: 30px; height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-0);
    flex-shrink: 0;
    position: relative;
}
.ban-slot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pairing error ---------- */
.pair-error {
    color: var(--red-2);
    background: rgba(255, 70, 85, 0.1);
    border: 1px solid rgba(255, 70, 85, 0.4);
    font-size: 0.8rem;
    padding: 8px 14px;
    max-width: 300px;
    line-height: 1.4;
}

/* ---------- Match-found progress ring ---------- */
.mf-ring { position: absolute; inset: 0; width: 132px; height: 132px; transform: rotate(-90deg); }
.mf-ring-track { fill: none; stroke: var(--line); stroke-width: 5; }
.mf-ring-fill {
    fill: none;
    stroke: var(--cyan-1);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 339.29;   /* 2 * pi * 54 */
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 6px var(--blue-glow));
    transition: stroke-dashoffset 0.9s linear;
}
.mf-badge--low .mf-ring-fill { stroke: var(--red-2); }
.mf-badge--low .mf-time { color: var(--red-2); }

/* ---------- Champ card states ---------- */
.champ-card--gone {
    opacity: 0.22;
    filter: grayscale(0.9);
    pointer-events: none;
}
.champ-card--ack-ok { outline: 2px solid var(--green-1); box-shadow: 0 0 16px rgba(31,185,107,.55); }
.champ-card--ack-fail { outline: 2px solid var(--red-2); box-shadow: 0 0 16px rgba(255,70,85,.55); }

/* ---------- Landscape / wider screens ---------- */
@media (orientation: landscape) and (min-width: 700px) {
    .app-shell { max-width: 720px; }
    .champ-scroll { max-height: 52vh; }
}
@media (max-width: 480px) {
    .app-shell { padding: 10px 10px 14px; }
    .bans-bar .ban-slot { width: 26px; height: 26px; }
}

/* ============================================================
   ARAM BENCH
   ============================================================ */
.aram-panel { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.aram-me {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--gold-4);
    padding: 10px 14px;
}
.aram-me img {
    width: 72px; height: 72px;
    border: 2px solid var(--gold-3);
    box-shadow: 0 0 14px var(--blue-glow);
    background: var(--bg-0);
    object-fit: cover;
}
#aram-my-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--gold-1); }
.aram-team-row, .aram-bench-row {
    display: flex; gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.aram-slot {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    border: 1px solid var(--line);
    background: var(--bg-0);
    overflow: hidden;
    position: relative;
}
.aram-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aram-slot--empty img { opacity: 0.15; }
.aram-slot--bench {
    width: 68px; height: 68px;
    border-color: var(--gold-4);
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.aram-slot--bench:hover {
    border-color: var(--cyan-1);
    box-shadow: 0 0 14px var(--blue-glow);
    transform: translateY(-3px);
}
.aram-slot--bench:active { transform: scale(0.94); }
.aram-slot-name {
    position: absolute; left: 0; right: 0; bottom: 0;
    font-size: 0.52rem; text-align: center;
    background: rgba(0,0,0,.75);
    color: var(--gold-1);
    padding: 1px 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aram-bench-label {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--grey-2);
}
.aram-empty { color: var(--grey-2); font-style: italic; font-size: 0.82rem; }

/* ============================================================
   PARTY INVITE
   ============================================================ */
.invite-icon {
    width: 104px; height: 104px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transform: rotate(45deg);
    border: 2px solid var(--gold-3);
    background: radial-gradient(circle, rgba(31,185,107,.15), transparent 70%);
    box-shadow: 0 0 30px rgba(31,185,107,.25), inset 0 0 24px rgba(31,185,107,.15);
}
.invite-icon svg { width: 40px; height: 40px; transform: rotate(-45deg); color: var(--green-1); }

/* ============================================================
   CREATE LOBBY CARD
   ============================================================ */
.create-lobby {
    width: 100%;
    max-width: 340px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--gold-4);
    padding: 14px;
}
.create-lobby-title {
    font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--grey-1); text-align: center;
}
.create-queue-box select { font-size: 0.95rem; }
@media (max-width: 480px) {
    .create-lobby { max-width: none; }
}

/* ============================================================
   SUMMONER SPELLS
   ============================================================ */
.spell-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0 6px;
    flex-shrink: 0;
}
.spell-slot {
    width: 46px; height: 46px;
    padding: 0;
    border: 2px solid var(--gold-4);
    background: var(--bg-0);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.spell-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spell-slot:hover {
    border-color: var(--cyan-1);
    box-shadow: 0 0 12px var(--blue-glow);
}
.spell-slot:active { transform: scale(0.93); }
.spell-hint {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-2);
}
.spell-picker {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(1, 10, 19, 0.92);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}
.spell-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: var(--gold-1);
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 0.05em;
}
.spell-picker-close {
    background: none;
    border: 1px solid var(--gold-4);
    color: var(--gold-2);
    font-size: 1.4rem;
    line-height: 1;
    width: 36px; height: 36px;
    cursor: pointer;
}
.spell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    max-height: 62vh;
    overflow-y: auto;
    padding-right: 4px;
}
.spell-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 4px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--gold-4);
    cursor: pointer;
    transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.spell-cell img { width: 40px; height: 40px; object-fit: cover; }
.spell-cell span {
    font-size: 0.6rem;
    color: var(--gold-1);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68px;
}
.spell-cell:hover {
    border-color: var(--cyan-1);
    box-shadow: 0 0 14px var(--blue-glow);
    transform: translateY(-2px);
}
.spell-cell:active { transform: scale(0.95); }
.ban-slot--locked { border-color: var(--red-2); }
.ban-slot--locked img { filter: grayscale(1) brightness(.7); }
.ban-slot--locked::after {
    content:""; position:absolute; inset:0;
    background: linear-gradient(135deg, transparent 45%, var(--red-2) 46%, var(--red-2) 54%, transparent 55%);
    opacity: .8;
}
.ban-slot--empty { opacity: 0.3; }

/* Swap / trade request prompt */
.swap-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, rgba(200,170,110,.14), rgba(9,28,38,.92));
    border: 1px solid var(--gold-3);
    box-shadow: 0 0 16px rgba(200,170,110,.3);
    padding: 8px 12px;
    margin-bottom: 8px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
.swap-text { font-size: 0.8rem; color: var(--gold-1); font-weight: 600; line-height: 1.3; }
.swap-actions { display: flex; gap: 8px; flex-shrink: 0; }
.swap-actions .btn { padding: 7px 14px; }

/* Draft body: team | grid | team */
.draft-body {
    display: flex;
    flex: 1;
    gap: 8px;
    overflow: hidden;
    min-height: 0;
}
.team-col {
    width: 58px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}
.pick-slot {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 3px;
    overflow: hidden;
    background: var(--bg-0);
    border: 1px solid var(--line);
    position: relative;
    flex-shrink: 0;
    opacity: 0.65;
}
.pick-slot img { width: 100%; height: 100%; object-fit: cover; }
.pick-slot--locked { opacity: 1; }
.pick-slot--me {
    border: 2px solid var(--gold-3);
    box-shadow: 0 0 12px rgba(200,170,110,.45);
    opacity: 1;
}
.pick-slot--empty img { opacity: 0; }
.pick-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--grey-2); font-size: 10px;
}

/* Champ grid center column */
.grid-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(13,35,47,.5), rgba(9,28,38,.5));
    border: 1px solid var(--gold-4);
    padding: 8px;
    min-width: 0;
    position: relative;
}
.grid-wrap::before {
    content:""; position:absolute; inset:2px; border:1px solid rgba(200,170,110,.12); pointer-events:none;
}
.champ-search {
    width: 100%;
    background: var(--bg-0);
    border: 1px solid var(--line);
    color: var(--gold-1);
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    outline: none;
    flex-shrink: 0;
    transition: border-color .2s;
}
.champ-search:focus { border-color: var(--cyan-2); }
.champ-search::placeholder { color: var(--grey-2); }

.champ-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.champ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 6px;
}

.champ-card {
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
    transition: transform .15s, border-color .15s, box-shadow .15s;
    background: var(--bg-0);
}
.champ-card .imgwrap { position: relative; padding-top: 100%; }
.champ-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.champ-name {
    font-size: 0.6rem;
    text-align: center;
    padding: 3px 2px;
    background: rgba(0,0,0,.55);
    color: var(--gold-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.champ-card--active { cursor: pointer; }
.champ-card--active:hover { transform: scale(1.06); border-color: var(--gold-4); }
.champ-card--disabled { opacity: 0.4; filter: grayscale(1); }
.champ-card--selected {
    border-color: var(--cyan-1);
    box-shadow: 0 0 16px var(--blue-glow);
}
.champ-card--ban-selected {
    border-color: var(--red-2);
    box-shadow: 0 0 16px rgba(255,70,85,.5);
}

.lock-wrap { margin-top: 12px; flex-shrink: 0; }

/* ---------- Scrollbars ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-4); }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Animations ---------- */
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.animate-pulse { animation: pulse 1.6s ease-in-out infinite; }
