@import url('https://fonts.googleapis.com/css2?family=Anton&family=Saira:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   BIDLEAGUE GAME CSS
   ============================================= */
:root {
    /* PADDLE theme — IPL blue/violet, gold premium, cyan live */
    --bg: #06060f;
    --surface: #101226;
    --surface2: #161a3f;
    --surface3: #1e2350;
    --border: #262b52;
    --accent: #4b8bff;
    --accent-dim: rgba(75, 139, 255, 0.12);
    --accent-glow: rgba(75, 139, 255, 0.30);
    --text: #f4f5ff;
    --text2: #9a9fc4;
    --text3: #6b6f92;
    --green: #2fd39b;
    --green-dim: rgba(47, 211, 155, 0.15);
    --red: #ff5c5c;
    --red-dim: rgba(255, 92, 92, 0.12);
    --blue: #8fb4ff;
    --font: 'Saira', sans-serif;
    --r: 14px;
    --r-sm: 10px;
    --tr: 0.2s ease;
    /* PADDLE additions */
    --font-display: 'Anton', 'Saira', sans-serif;
    --violet: #7c3aed;
    --cyan: #22d3ee;
    --gold: #ffd75c;
    --gold-dim: rgba(255, 215, 92, 0.12);
    --grad-primary: linear-gradient(135deg, #2f7bff, #7c3aed);
    --grad-card: linear-gradient(165deg, #2a1550, #4a2a86 48%, #8b5cf6);
    --shadow-primary: 0 8px 24px rgba(47, 123, 255, 0.34);
    /* aliases for vars referenced by game.js/game.css but never defined upstream */
    --text1: var(--text);
    --card-bg: var(--surface);
    --primary: var(--accent);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* UTILITIES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--tr);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #0d0f14;
}

.btn-primary:hover {
    background: #f0cc88;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.btn-danger:hover {
    background: #e87070;
}

.btn-green {
    background: var(--green);
    color: #fff;
}

.btn-green:hover {
    background: #5fc49a;
}

.tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
}

.tag-bat {
    background: rgba(91, 155, 213, 0.2);
    color: var(--blue);
}

.tag-bowl {
    background: rgba(224, 92, 92, 0.2);
    color: var(--red);
}

.tag-ar {
    background: rgba(76, 175, 135, 0.2);
    color: var(--green);
}

.tag-wk {
    background: rgba(232, 192, 122, 0.2);
    color: var(--accent);
}

.tag-os {
    background: rgba(168, 130, 210, 0.2);
    color: #c49ee0;
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 56px;
    background: rgba(13, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.topbar-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--text2);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: var(--tr);
}

.topbar-refresh:hover {
    color: var(--text);
    border-color: var(--accent);
}

.topbar-refresh:active {
    transform: rotate(-90deg);
}

.topbar-back {
    font-size: 0.85rem;
    color: var(--text2);
    text-decoration: none;
    transition: color var(--tr);
}

.topbar-back:hover {
    color: var(--text);
}

.topbar-logout {
    font-size: 0.82rem;
    color: var(--text2);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    transition: var(--tr);
}

.topbar-logout:hover {
    color: var(--text);
    border-color: var(--text2);
}

.topbar-info {
    font-size: 0.8rem;
    color: var(--text3);
}

.dashboard-tabs {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 199;
    display: flex;
    justify-content: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
}

.dashboard-tab {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text3);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--tr), border-color var(--tr);
    letter-spacing: 0.02em;
}

.dashboard-tab svg {
    opacity: 0.7;
    flex-shrink: 0;
    transition: opacity var(--tr);
}

.dashboard-tab:hover {
    color: var(--text);
}

.dashboard-tab:hover svg {
    opacity: 1;
}

.dashboard-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.dashboard-tab.active svg {
    opacity: 1;
}

/* =============================================
   AUTH SCREEN
   ============================================= */
.auth-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 100vh;
    padding-top: 56px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.auth-sub {
    font-size: 0.9rem;
    color: var(--text2);
    margin-bottom: 2rem;
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 0.45rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.7rem 1rem;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--tr);
    outline: none;
}

.field input:focus {
    border-color: var(--accent);
}

.field input::placeholder {
    color: var(--text3);
}

.auth-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem;
    font-size: 1rem;
}

.auth-error {
    font-size: 0.82rem;
    color: var(--red, #e05c5c);
    margin-top: 0.6rem;
    min-height: 1.1rem;
    text-align: center;
}

/* Google's branding terms fix the button's surface, text colour and the gap
   beside the mark, so this one deliberately sits outside the app's palette. */
.btn-google {
    width: 100%;
    gap: 0.7rem;
    padding: 0.85rem;
    background: #fff;
    color: #1f1f1f;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-google:hover {
    background: #f4f5f7;
    transform: translateY(-1px);
}

.btn-google:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* The country code is an adornment, not a field — it sits inside the same
   bordered box as the number so the two read as one control. */
.phone-input {
    display: flex;
    align-items: stretch;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
    transition: var(--tr);
}

.phone-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.75rem 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text2);
    background: rgba(255, 255, 255, 0.04);
    border-right: 1px solid var(--border);
    user-select: none;
}

/* Beats the .field input rules further down the sheet, which would otherwise
   redraw the border and focus ring the wrapper is already drawing. */
.field .phone-input input,
.field .phone-input input:focus {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0 0.9rem;
    color: var(--text3);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Doubled up on purpose: the gradient that .auth-btn picks up further down the
   sheet would otherwise win on source order and make every one of these look
   like the primary action. */
.btn.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
    font-weight: 600;
}

.btn.btn-secondary:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    transform: none;
}

.btn.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* One-time codes are read back digit by digit off a screen, so give them the
   spacing and tracking that makes that possible. */
.field input.otp-input {
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.5rem;
    letter-spacing: 0.45em;
    text-indent: 0.45em;
    padding: 0.75rem 1rem;
}

.btn-text-link {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: var(--text2);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.75rem;
    padding: 0.25rem;
    text-decoration: underline;
    font-family: var(--font);
}

.btn-text-link:hover { color: var(--text); }

/* Firebase parks the invisible reCAPTCHA badge here; it must stay in the
   document for the widget to work, but it has nothing to show. Each attempt
   gets its own container, so this matches on the class rather than an id. */
.recaptcha-holder {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 300;
}

.auth-build {
    font-size: 0.66rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text2);
    opacity: 0.45;
    margin-top: 1.25rem;
    letter-spacing: 0.04em;
}

.auth-hint {
    font-size: 0.8rem;
    color: var(--text3);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.auth-error-card {
    border-color: rgba(224, 92, 92, 0.25);
    background: linear-gradient(160deg, rgba(224, 92, 92, 0.06) 0%, var(--surface) 60%);
    text-align: center;
    align-items: center;
}

.auth-error-icon {
    margin-bottom: 0.5rem;
}

.auth-error-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.6rem;
}

.auth-error-body {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.auth-error-code {
    font-size: 0.68rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text2);
    opacity: 0.5;
    margin: 0.9rem 0 0;
}

.auth-boot-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-card-center {
    text-align: center;
}

.auth-spinner-wrap {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 1rem;
}

.auth-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: auth-spin 0.75s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   HOME SCREEN
   ============================================= */
.home-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 100vh;
    padding-top: 101px; /* 56px topbar + 45px tab bar */
}

.home-inner {
    width: 100%;
    max-width: 500px;
}

.home-greeting {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.home-sub {
    font-size: 0.9rem;
    color: var(--text2);
    margin-bottom: 2.5rem;
    max-width: none;
}

.home-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.75rem 1.25rem;
    cursor: pointer;
    transition: var(--tr);
    text-align: center;
}

.home-card:hover {
    border-color: var(--accent);
    background: var(--surface2);
    transform: translateY(-2px);
}

.home-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
}

.home-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.home-card p {
    font-size: 0.8rem;
    color: var(--text2);
    max-width: none;
}

.rejoin-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: var(--r);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rejoin-banner-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.rejoin-banner-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
}

.rejoin-banner-sub {
    font-size: 0.82rem;
    color: var(--text2);
}

.rejoin-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.rejoin-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.rejoin-dismiss {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text2);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: var(--tr);
}

.rejoin-dismiss:hover {
    border-color: var(--text2);
    color: var(--text);
}

.join-form {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.join-form.visible {
    display: flex;
}

.join-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.75rem 1rem;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    outline: none;
    text-align: center;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--tr);
}

.join-input:focus {
    border-color: var(--accent);
}

/* =============================================
   ADMIN CONTROLS — ShadCN-inspired
   ============================================= */
.ac-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: calc(56px + 1.5rem) 1rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ac-header {
    padding: 0.5rem 0 0.25rem;
}

.ac-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.2rem;
}

.ac-sub {
    font-size: 0.8rem;
    color: var(--text3);
    margin: 0;
}

.ac-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.ac-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text3);
    padding: 0.75rem 1rem 0.5rem;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.ac-field {
    padding: 0.65rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ac-grid .ac-field {
    border-bottom: 1px solid var(--border);
}

.ac-grid .ac-field:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.ac-grid .ac-field:nth-last-child(1),
.ac-grid .ac-field:nth-last-child(2) {
    border-bottom: none;
}

/* if odd total, last item spans full width */
.ac-grid .ac-field:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
}

.ac-label {
    font-size: 0.75rem;
    color: var(--text3);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ac-unit::before { content: '('; }
.ac-unit::after  { content: ')'; }

.ac-unit {
    color: var(--text3);
    font-weight: 400;
}

.ac-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    padding: 0;
    width: 100%;
    -moz-appearance: textfield;
}

.ac-input::-webkit-outer-spin-button,
.ac-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.ac-separator {
    height: 1px;
    background: var(--border);
}

.ac-field-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.ac-field-desc {
    font-size: 0.75rem;
    color: var(--text3);
    margin-top: 0.1rem;
}

.ac-footer {
    padding-top: 0.25rem;
}

.ac-save-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--accent);
    color: #0d0f14;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
}

.ac-save-btn:hover { opacity: 0.88; }

/* RULES CARD */
.rules-card { margin-top: 0; }

.rules-section {
    padding: 0.9rem 1rem;
}

.rules-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    letter-spacing: 0.01em;
}

.rules-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
}

.rules-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.rules-item-full {
    grid-column: 1 / -1;
}

.rules-key {
    font-size: 0.7rem;
    color: var(--text3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rules-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.rules-list {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rules-list li {
    font-size: 0.8rem;
    color: var(--text2);
    line-height: 1.45;
}

.rules-note {
    margin: 0.5rem 0 0;
    font-size: 0.74rem;
    color: var(--text3);
    line-height: 1.4;
    background: rgba(255,255,255,0.04);
    border-left: 2px solid var(--border);
    padding: 0.35rem 0.6rem;
    border-radius: 0 4px 4px 0;
}

/* Team auction mode cards */
.rules-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.rules-mode {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}

.rules-mode.rules-mode-active {
    opacity: 1;
    border-color: var(--accent);
    background: rgba(212,175,100,0.06);
}

.rules-mode-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.rules-mode-badge-on  { background: rgba(212,175,100,0.15); color: var(--accent); }
.rules-mode-badge-off { background: rgba(255,255,255,0.08); color: var(--text3); }

.rules-mode .rules-list li { font-size: 0.75rem; }

.rules-modes-3 { grid-template-columns: 1fr; }

@media (max-width: 640px) {
    .rules-modes { grid-template-columns: 1fr; }
    .rules-grid  { grid-template-columns: 1fr 1fr; }
}

.cfg-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
}

.cfg-toggle {
    flex-shrink: 0;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: var(--border);
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.cfg-toggle.on {
    background: var(--accent);
}

.cfg-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cfg-toggle.on .cfg-toggle-knob {
    transform: translateX(22px);
}

/* Toggle that the current mode forces on — visible but not clickable */
.cfg-toggle-row-locked {
    cursor: default;
    opacity: 0.62;
}

/* Team assignment mode picker (admin panel) */
.mode-options {
    display: flex;
    flex-direction: column;
}

.mode-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background var(--tr);
}

.mode-option:last-child { border-bottom: none; }
.mode-option:hover { background: rgba(255,255,255,0.03); }
.mode-option.selected { background: var(--accent-dim); }

.mode-option-radio {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 0.15rem;
    border-radius: 50%;
    border: 2px solid var(--text3);
    position: relative;
    transition: border-color var(--tr);
}

.mode-option.selected .mode-option-radio { border-color: var(--accent); }

.mode-option.selected .mode-option-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent);
}

.mode-option-body { min-width: 0; }

/* "Disabled" chip on rules sections the current config turns off */
.rules-off-tag {
    display: none;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
    background: var(--red-dim);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.rules-section-off { opacity: 0.42; }
.rules-section-off .rules-off-tag { display: inline-block; }

/* TEAM SELECT — FIRST COME, FIRST SERVED */
.ts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.ts-grid-locked { pointer-events: none; }

.ts-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.9rem 0.6rem 0.75rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: linear-gradient(165deg, var(--ts-c2), var(--surface));
    cursor: pointer;
    transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr), opacity var(--tr);
}

.ts-card:hover {
    transform: translateY(-3px);
    border-color: var(--ts-c);
    box-shadow: 0 8px 20px rgba(0,0,0,0.45), 0 0 0 1px var(--ts-c);
}

.ts-card-logo {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--ts-c);
}

.ts-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ts-card-abbr {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--text);
}

.ts-card-name {
    font-size: 0.68rem;
    color: var(--text2);
    line-height: 1.25;
}

.ts-card-status {
    margin-top: 0.2rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--green);
}

.ts-card.taken,
.ts-card.locked {
    cursor: default;
}

.ts-card.taken {
    opacity: 0.45;
    filter: grayscale(0.7);
}

.ts-card.taken:hover,
.ts-card.locked:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.ts-card.taken .ts-card-status { color: var(--text3); }

.ts-card.locked { opacity: 0.6; }

.ts-card.mine {
    opacity: 1;
    filter: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 8px 22px rgba(255,215,92,0.18);
    cursor: default;
}

.ts-card.mine .ts-card-status { color: var(--gold); }

.ts-card.pending {
    opacity: 1;
    border-color: var(--cyan);
    animation: ts-pulse 0.9s ease-in-out infinite;
}

.ts-card.pending .ts-card-status { color: var(--cyan); }

@keyframes ts-pulse {
    0%, 100% { box-shadow: 0 0 0 1px var(--cyan), 0 0 0 rgba(34,211,238,0); }
    50%      { box-shadow: 0 0 0 1px var(--cyan), 0 0 18px rgba(34,211,238,0.45); }
}

@media (max-width: 520px) {
    .ts-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
    .ts-card-logo { width: 42px; height: 42px; }
}

.code-display {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.code-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 0.5rem;
}

.code-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.code-hint {
    font-size: 0.8rem;
    color: var(--text2);
    margin-top: 0.5rem;
    max-width: none;
}

/* =============================================
   LOBBY SCREEN
   ============================================= */
.lobby-screen {
    flex: 1;
    padding: 5rem 1.5rem 2rem;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

.lobby-header {
    margin-bottom: 2rem;
}

.lobby-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.lobby-header p {
    font-size: 0.9rem;
    color: var(--text2);
    max-width: none;
}

/* "n / 10" roster counter next to the Waiting Room title */
.lobby-count {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text2);
}

.lobby-count-full {
    border-color: var(--gold);
    background: var(--gold-dim);
    color: var(--gold);
}

/* =============================================
   SPLIT SEASON — replay + trade window
   ============================================= */
.replay-screen,
.trade-screen {
    flex: 1;
    padding: 5rem 1.5rem 3rem;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.replay-header { margin-bottom: 1.25rem; }
.replay-header h2 { font-size: 1.5rem; font-weight: 700; }
.replay-header p { font-size: 0.9rem; color: var(--text2); margin-top: 0.25rem; }

.replay-progress { margin-bottom: 1rem; }

.replay-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--surface2);
    overflow: hidden;
    border: 1px solid var(--border);
}

.replay-bar-fill {
    height: 100%;
    background: var(--grad-primary);
    transition: width 0.4s ease;
}

.replay-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--text3);
}

.replay-last { color: var(--cyan); text-align: right; }

.replay-blend {
    font-size: 0.75rem;
    color: var(--text3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.25rem;
}

.replay-table { width: 100%; }
.replay-table td.lb-pts { font-variant-numeric: tabular-nums; }

.replay-skip {
    margin-top: 1.5rem;
    width: 100%;
}

/* Blend slider in the admin panel */
.ac-range {
    width: 100%;
    accent-color: var(--accent);
    margin: 0.35rem 0 0.2rem;
}

.blend-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text2);
    margin-bottom: 0.35rem;
}

/* Trade builder */
.trade-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
}

.trade-col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.trade-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
}

.trade-select {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.7rem;
    padding: 0.1rem 0.25rem;
    text-transform: none;
    letter-spacing: 0;
}

.trade-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    width: 100%;
    text-align: left;
    padding: 0.45rem 0.6rem;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--tr), background var(--tr);
}

.trade-pill:hover { border-color: var(--accent); }

.trade-pill.picked {
    border-color: var(--cyan);
    background: rgba(34, 211, 238, 0.12);
}

.trade-pill-name { font-size: 0.8rem; font-weight: 600; }
.trade-pill-meta { font-size: 0.65rem; color: var(--text3); }

.trade-send { width: 100%; }

.trade-inbox,
.trade-sent { margin: 1.25rem 0; }

.trade-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--gold);
    border-radius: var(--r-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.trade-offer-body { font-size: 0.85rem; }
.trade-want { color: var(--red); }
.trade-give { color: var(--green); }
.trade-offer-actions { display: flex; gap: 0.5rem; }
.trade-offer-actions .btn { padding: 0.4rem 0.9rem; font-size: 0.78rem; }

.trade-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.55rem 0.8rem;
    margin-bottom: 0.4rem;
}

.trade-status-tag {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text3);
}

.trade-status-accepted .trade-status-tag { color: var(--green); }
.trade-status-declined .trade-status-tag,
.trade-status-rejected .trade-status-tag { color: var(--red); text-transform: none; letter-spacing: 0; }
.trade-status-pending  .trade-status-tag { color: var(--gold); }

@media (max-width: 640px) {
    .trade-builder { grid-template-columns: 1fr; }
    .replay-screen, .trade-screen { padding: 4.5rem 1rem 3rem; }
}

.participant-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.participant-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.9rem 1.2rem;
}

.p-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.p-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.p-you {
    font-size: 0.72rem;
    color: var(--text3);
    margin-left: 0.4rem;
}

.p-status {
    font-size: 0.78rem;
    font-weight: 600;
}

.p-status.ready {
    color: var(--green);
}

.p-status.waiting {
    color: var(--text3);
}

.lobby-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =============================================
/* =============================================
   AUCTION SCREEN
   ============================================= */

/* ----- TWO-COLUMN AUCTION BODY ----- */

/* Team auction has no right leaderboard panel, so the table fills full width
   and needs a tighter cap to prevent the oval from overflowing the viewport. */

/* ----- LEFT COLUMN: table + action bar ----- */

/* ----- CENTERED AUCTION WRAPPER ----- */

/* ----- CATEGORY LEADERBOARD PANEL ----- */
.cat-lb-panel {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 0.5rem;
    align-self: flex-start;
    position: sticky;
    top: 70px;
}

.cat-lb-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cat-lb-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cat-lb-sub {
    font-size: 0.62rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* flex child so the list is bounded by the panel's real height and scrolls
   inside it. Without min-height:0 a flex item refuses to shrink below its
   content, and the panel's overflow:hidden would just clip the rows. */
.cat-lb-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.35rem 0;
    max-height: 520px;
    overflow-y: auto;
}

.cat-lb-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.75rem;
    transition: background 0.15s;
}

.cat-lb-row:hover { background: rgba(255,255,255,0.04); }

.cat-lb-row.cat-lb-current {
    background: rgba(232,192,122,0.08);
    border-left: 2px solid var(--accent);
}

.cat-lb-row.cat-lb-sold {
    opacity: 0.4;
}

.cat-lb-rank {
    color: var(--text3);
    font-size: 0.65rem;
    min-width: 16px;
    text-align: right;
}

.cat-lb-photo-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.cat-lb-photo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.cat-lb-photo-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--text3);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-lb-name {
    flex: 1;
    color: var(--text1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-lb-right {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.cat-lb-team {
    color: var(--text2);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
}

.cat-lb-rtm {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: rgba(91,155,213,0.18);
    color: #5b9bd5;
    white-space: nowrap;
}

.cat-lb-tag {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(232,192,122,0.15);
    color: var(--accent);
    white-space: nowrap;
}

.cat-lb-tag.sold {
    background: rgba(255,255,255,0.07);
    color: var(--text3);
}

/* ----- GRID SCENE ----- */

/* ----- TABLE WRAP (holds timer + rim) ----- */

/* ----- TABLE RIM ----- */

/* ----- FELT SURFACE ----- */

/* ----- TIMER ON FELT ----- */

/* ----- ENTITY CARD ----- */

@keyframes popIn {
    from { opacity:0; transform:scale(0.82); }
    to   { opacity:1; transform:scale(1); }
}

/* ----- PLAYER CARD NEW LAYOUT ----- */

/* Photo circle */

/* Identity block */

/* Base team logo */

/* Divider between header and price */

/* Larger cap badges for full text */

.cap-orange { background:rgba(247,115,50,0.2); color:#f77332; }
.cap-purple { background:rgba(168,113,206,0.2); color:#c07de0; }

/* ----- SEAT TOKENS ----- */
/* ----- SEAT (poker chip token) ----- */

/* Token shell — always 68×68, dimensions never change */

/* Outer dashed ring (poker chip edge) */

/* Inner face — overlaps the ring */

/* Bidding glow */

/* Name + purse label */

/* ----- ACTION BAR ----- */

.btn-bid {
    flex: 1; background: var(--accent); color: #0d0f14;
    font-size: 0.92rem; font-weight: 700; padding: 0.9rem 1rem;
    border-radius: var(--r-sm); border: none; cursor: pointer;
    transition: var(--tr); font-family: var(--font);
    box-shadow: 0 4px 16px rgba(232,192,122,0.28);
}

.btn-bid:hover:not(:disabled) { background:#f0cc88; transform:translateY(-2px); box-shadow:0 6px 22px rgba(232,192,122,0.38); }
.btn-bid:disabled { opacity:0.35; cursor:not-allowed; }
.btn-bid.cooldown { opacity:0.65; }

.btn-pass {
    flex: 1; background: rgba(255,255,255,0.04); color: var(--text2);
    border: 1px solid var(--border); font-size: 0.92rem; font-weight: 600;
    padding: 0.9rem 1rem; border-radius: var(--r-sm); cursor: pointer;
    transition: var(--tr); font-family: var(--font);
}

.btn-pass:hover:not(:disabled) { border-color:var(--red); color:var(--red); background:var(--red-dim); }
.btn-pass:disabled { opacity:0.35; cursor:not-allowed; }

/* ----- FLIP CARD WRAPPER ----- */

/* ----- SOLD BANNER (legacy, kept for safety) ----- */
.sold-banner {
    width: 100%; max-width: 700px;
    background: var(--green-dim); border: 1px solid rgba(76,175,135,0.3);
    border-radius: var(--r); padding: 1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 1rem; gap: 1rem; flex-wrap: wrap;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:translateY(0); }
}

.sold-text { font-size:0.9rem; color:var(--green); font-weight:600; }
.sold-sub  { font-size:0.78rem; color:var(--text2); margin-top:0.1rem; max-width:none; }

/* =============================================
   TIMER BAR (below table + user seat)
   ============================================= */

/* Gold side glow */

/* Progress track at very bottom */

/* Ring on the left */

/* Middle info */

/* Big second counter on the right */

/* INTRO COUNTDOWN */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(13, 15, 20, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* CATEGORY BANNER */
.category-banner {
    gap: 0.75rem;
    animation: catBannerIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes catBannerIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.cat-banner-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text3);
}

.cat-banner-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem 0;
}
.cat-banner-icon svg { opacity: 0.9; }

.cat-banner-title {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.cat-banner-count {
    font-size: 0.88rem;
    color: var(--text2);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 0.25rem 0.9rem;
    margin-top: 0.25rem;
}

.intro-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text2);
}

.intro-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text);
}

.intro-count {
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    animation: pulse 1s ease;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }
}

/* DISCOUNT MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(13, 15, 20, 0.88);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
    animation: popIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.modal-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.modal-h {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text2);
    max-width: none;
    margin-bottom: 0.3rem;
}

.modal-price-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.modal-old-price {
    font-size: 1rem;
    color: var(--text3);
    text-decoration: line-through;
}

.modal-arrow {
    color: var(--text3);
}

.modal-new-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green);
}

.modal-timer {
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-actions .btn {
    flex: 1;
}

/* SQUAD / CAPTAIN SCREEN */
.squad-screen {
    flex: 1;
    padding: 5rem 1.5rem 3rem;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

.squad-header {
    margin-bottom: 1.5rem;
}

.squad-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.squad-header p {
    font-size: 0.9rem;
    color: var(--text2);
    margin-top: 0.25rem;
    max-width: none;
}

.squad-budget-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.squad-dq-banner {
    background: rgba(232, 92, 92, 0.12);
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.budget-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    color: var(--text2);
}

.budget-pill strong {
    color: var(--accent);
}

.squad-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.squad-player-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.75rem 1rem;
}

.sp-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.sp-price {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.sp-captain-btn,
.sp-vc-btn {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-family: var(--font);
    color: var(--text2);
    transition: var(--tr);
}

.sp-captain-btn:hover,
.sp-vc-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.sp-captain-btn.active {
    background: var(--accent);
    color: #0d0f14;
    border-color: var(--accent);
}

.sp-vc-btn.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.drop-btn {
    font-size: 0.7rem;
    color: var(--red);
    background: none;
    border: 1px solid rgba(224, 92, 92, 0.3);
    border-radius: 100px;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    font-family: var(--font);
    transition: var(--tr);
}

.drop-btn:hover {
    background: var(--red-dim);
}

.squad-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text3);
    margin: 1rem 0 0.5rem;
}

.squad-done-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

/* RETENTION SCREEN */
.retention-screen {
    flex: 1;
    padding: 5rem 1.5rem 3rem;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

.retention-header {
    margin-bottom: 1.5rem;
}

.retention-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.retention-header p {
    font-size: 0.9rem;
    color: var(--text2);
    margin-top: 0.25rem;
    max-width: none;
}

.retention-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.retention-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.retention-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: var(--tr);
}

.retention-row:hover {
    border-color: var(--accent);
}

.retention-row.selected {
    border-color: var(--accent);
    background: rgba(232, 192, 122, 0.08);
}

.retention-row.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.retention-photo,
.retention-photo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    object-position: top center;
}

.retention-photo-fallback {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text2);
}

.retention-info {
    flex: 1;
    min-width: 0;
}

.retention-name {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.retention-meta {
    font-size: 0.75rem;
    color: var(--text3);
    margin-top: 0.15rem;
}

.retention-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.retention-check {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.retention-confirm-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

/* CAPTAIN PICK */
.cp-preview {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.5rem 1rem 1rem;
}
.cp-preview-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.82rem;
    color: var(--text2);
}
.cp-badge-pill {
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cap-pill { background: var(--accent); color: #0d0f14; }
.vc-pill  { background: rgba(212,175,100,0.25); color: var(--accent); }

.cp-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.cp-row:last-child { border-bottom: none; }
.cp-row.cp-cap  { background: rgba(212,175,100,0.08); }
.cp-row.cp-vc   { background: rgba(212,175,100,0.04); }
.cp-photo-wrap  { position: relative; flex-shrink: 0; }
.cp-badges {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}
.cp-badge-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text3);
    font-size: 0.75rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.cp-badge-btn.active-cap {
    background: var(--accent);
    border-color: var(--accent);
    color: #0d0f14;
}
.cp-badge-btn.active-vc {
    background: rgba(212,175,100,0.2);
    border-color: var(--accent);
    color: var(--accent);
}

/* RESULTS / PODIUM */
.results-screen {
    flex: 1;
    padding: 4.5rem 1.5rem 3rem;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}
.results-header { text-align: center; margin-bottom: 0.5rem; }
.results-title  { font-size: clamp(1.4rem,4vw,2rem); font-weight: 800; margin: 0; }
.results-sub    { font-size: 0.8rem; color: var(--text3); margin: 0.3rem 0 0; }

.podium-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 2.5rem;
}
.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    animation: podiumRise 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes podiumRise {
    from { opacity: 0; transform: translateY(40px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.podium-name  { font-size: 0.85rem; font-weight: 700; color: var(--text); text-align: center; max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-team  { font-size: 0.7rem; color: var(--text3); }
.podium-cv    { font-size: 0.65rem; color: var(--text3); text-align: center; max-width: 110px; }
.podium-score { font-size: 1rem; font-weight: 800; color: var(--accent); margin-bottom: 0.4rem; }
.podium-stand {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px 8px 0 0;
}
.podium-slot-1st .podium-stand { background: linear-gradient(180deg,#d4af37,#b8961e); color:#000; }
.podium-slot-2nd .podium-stand { background: linear-gradient(180deg,#a8a9ad,#888); color:#000; }
.podium-slot-3rd .podium-stand { background: linear-gradient(180deg,#cd7f32,#a0611f); color:#000; }

.results-lb-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.lb-dq-row td { opacity: 0.55; }
.lb-dq-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--red);
    border: 1px solid var(--red);
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
}
.results-dq-note {
    font-size: 0.72rem;
    color: var(--text3);
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* LEADERBOARD */
.leaderboard-screen {
    flex: 1;
    padding: 5rem 1.5rem 3rem;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.leaderboard-header {
    margin-bottom: 1.5rem;
}

.leaderboard-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.leaderboard-header p {
    font-size: 0.9rem;
    color: var(--text2);
    margin-top: 0.25rem;
    max-width: none;
}

.lb-empty {
    font-size: 0.82rem;
    color: var(--text3);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.lb-table th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text3);
    padding: 0.75rem 1.1rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--border);
}

.lb-table td {
    padding: 0.9rem 1.1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.lb-table tbody tr:last-child td { border-bottom: none; }

.lb-rank { width: 3.5rem; }

.lb-rank-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.07);
    color: var(--text2);
}
.lb-rank-1 { background: rgba(232,192,122,0.2); color: var(--accent); }
.lb-rank-2 { background: rgba(180,180,200,0.15); color: #c0c0d0; }
.lb-rank-3 { background: rgba(180,110,60,0.15); color: #c87941; }

.lb-you {
    background: rgba(232,192,122,0.07);
}
.lb-you td:first-child {
    border-left: 3px solid var(--accent);
}

.lb-pts {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text1);
}

.lb-change {
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 600;
}

.match-results {
    margin-top: 2rem;
}

.match-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.match-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.match-sub {
    font-size: 0.78rem;
    color: var(--text2);
    max-width: none;
}

/* MOBILE */
/* Labels swap: desktop shows the long wording, mobile shows poker-style short labels */
.label-mobile { display: none; }
.mobile-only { display: none; }

@media (max-width: 640px) {
    /* ================================================================
       LABEL SWITCHING (keep desktop text hidden, mobile text visible)
    ================================================================ */
    .label-desktop { display: none; }
    .label-mobile  { display: inline; }
    .mobile-only   { display: inline-flex; }
    .home-cards    { grid-template-columns: 1fr; }

    /* ================================================================
       POKER TABLE — full-screen green felt background
    ================================================================ */
    

    /* Topbar: slim, semi-transparent overlay */
    .topbar {
        height: 44px;
        min-height: unset;
        padding: 0 1rem;
        background: rgba(6, 15, 10, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    /* Auction header: a tight info strip */
    
    
    
    

    .cat-players-btn {
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--accent);
        border: 1px solid rgba(232,192,122,0.3);
        background: rgba(232,192,122,0.08);
        padding: 0.2rem 0.55rem;
        border-radius: 100px;
        cursor: pointer;
    }

    /* ================================================================
       LAYOUT COLUMN
    ================================================================ */
    
    
    .cat-lb-panel     { display: none; }

    /* ================================================================
       RECTANGLE POKER TABLE (portrait mobile)
    ================================================================ */
    

    

    

    /* Seats: tighter padding around the oval */
    
    
    
    

    /* Seat avatars: slightly smaller */
    
    
    

    /* ================================================================
       ENTITY CARD — small poker-card style
    ================================================================ */
    

    /* Player card internals */
    
    
    
    
    
    
    
    
    
    

    /* Team card (team auction) */
    
    
    
    
    

    /* ================================================================
       BID INFO STRIP — compact bar between table and action buttons
    ================================================================ */
    

    

    
    
    
    

    /* ================================================================
       ACTION BAR — fixed to viewport bottom, poker-chip style
    ================================================================ */
    

    /* BID button — green "Raise" style */
    .btn-bid {
        font-size: 0.88rem;
        font-weight: 800;
        padding: 0.82rem 0.5rem;
        border-radius: 12px;
        background: linear-gradient(145deg, #27b85a, #1a9447);
        color: #fff;
        border: none;
        box-shadow: 0 4px 18px rgba(27, 168, 80, 0.38);
        letter-spacing: 0.01em;
    }
    .btn-bid:hover:not(:disabled) {
        background: linear-gradient(145deg, #2fd068, #1faa52);
        transform: translateY(-1px);
        box-shadow: 0 6px 22px rgba(27,168,80,0.48);
    }
    .btn-bid:disabled { opacity: 0.32; }

    /* PASS button — orange "Fold" style */
    .btn-pass {
        font-size: 0.88rem;
        font-weight: 800;
        padding: 0.82rem 0.5rem;
        border-radius: 12px;
        background: linear-gradient(145deg, #d95020, #b83e14);
        color: #fff;
        border: none;
        box-shadow: 0 4px 18px rgba(200, 70, 20, 0.32);
        letter-spacing: 0.01em;
    }
    .btn-pass:hover:not(:disabled) {
        background: linear-gradient(145deg, #ee5a25, #cc4418);
        transform: translateY(-1px);
    }
    .btn-pass:disabled { opacity: 0.32; }

    /* ================================================================
       CATEGORY PLAYERS MODAL
    ================================================================ */
    .cat-players-modal-content .cat-lb-panel  { display: flex; width: 100%; position: static; }
    .cat-players-modal-content .cat-lb-list   { max-height: 70vh; }
    .cat-players-modal-content .cat-lb-header { padding-right: 2.6rem; }
}

/* =====================================================
   PADDLE THEME LAYER — appended overrides
   Keep this block after all base rules.
   ===================================================== */

/* --- global surface treatment --- */
html { background: var(--bg); }
body {
    background:
        radial-gradient(1100px 620px at 78% -8%, rgba(139, 92, 246, 0.16), transparent 60%),
        radial-gradient(900px 560px at 12% 108%, rgba(47, 123, 255, 0.13), transparent 60%),
        radial-gradient(1200px 800px at 50% -10%, #12103a, var(--bg) 70%);
    background-attachment: fixed;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2c4a; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* --- primary actions: gradient, white text --- */
.btn-primary,
.auth-btn,
.ac-save-btn,
.retention-confirm-btn,
.squad-done-btn,
.rejoin-btn {
    background: var(--grad-primary);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-primary);
    border: none;
}
.btn-primary:hover,
.auth-btn:hover,
.ac-save-btn:hover,
.retention-confirm-btn:hover,
.squad-done-btn:hover {
    background: linear-gradient(135deg, #4b8bff, #8b5cf6);
    transform: translateY(-1px);
}
.btn-green { background: linear-gradient(135deg, #1fae7e, #2fd39b); color: #06230f; }
.btn-danger { background: linear-gradient(135deg, #e04848, #ff5c5c); color: #fff; }

/* --- display type: Anton for hero numbers & names --- */
.topbar-logo,
.auth-logo,
.home-greeting,
.intro-title,
.cat-banner-title,
.sold-text,
.lb-pts,
.podium-score,
.code-value,
.modal-new-price {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
}
.topbar-logo { font-size: 1.15rem; }

/* --- topbar: floating glass --- */
.topbar {
    background: rgba(10, 10, 26, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- dashboard tabs: simple accent-colored text + underline,
   no filled pill --- */
.dashboard-tab.active {
    background: transparent;
    color: var(--accent);
    border-radius: 0;
    border-bottom-color: var(--accent);
    box-shadow: none;
}
.dashboard-tab.active svg { color: var(--accent); opacity: 1; }

/* --- auth --- */
.auth-card {
    background: rgba(12, 12, 30, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}
.field input {
    background: rgba(6, 6, 15, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* --- home cards --- */
.home-card {
    background: rgba(12, 12, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.home-card:hover {
    border-color: rgba(75, 139, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.home-card-icon { background: var(--accent-dim); color: var(--accent); }

/* --- category tags --- */
.tag-bat { background: var(--green-dim); color: var(--green); }
.tag-bowl { background: var(--red-dim); color: var(--red); }
.tag-wk { background: var(--gold-dim); color: var(--gold); }
.tag-ar { background: rgba(143, 180, 255, 0.12); color: var(--blue); }
.tag-os { background: rgba(34, 211, 238, 0.1); color: var(--cyan); }

/* --- auction table: indigo felt --- */

/* --- entity card: glossy frame --- */

/* --- bidder & live states --- */

/* --- seats --- */

/* --- timer --- */

/* --- bid actions --- */
.btn-bid {
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
}
.btn-bid:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.btn-bid:disabled { background: rgba(255, 255, 255, 0.06); color: var(--text3); box-shadow: none; }
.btn-pass {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text2);
}

/* --- SOLD moment --- */
.sold-text {
    color: var(--gold);
    border: 4px solid var(--gold);
    border-radius: 10px;
    padding: 0.1em 0.5em;
    background: rgba(6, 6, 15, 0.34);
    transform: rotate(-12deg);
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

/* --- season pills --- */

/* --- toggles --- */
.cfg-toggle.on { background: var(--grad-primary); }

/* --- retention --- */
.retention-row.selected {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(47, 123, 255, 0.14), rgba(124, 58, 237, 0.08));
}
.retention-price { color: var(--gold); font-family: var(--font-display); }
.retention-photo { border-radius: 50%; object-fit: cover; object-position: center 14%; }

/* --- category leaderboard --- */
.cat-lb-row.cat-lb-current {
    border-color: var(--cyan);
    background: rgba(34, 211, 238, 0.07);
}
.cat-lb-tag.sold { background: var(--gold-dim); color: var(--gold); }
.cat-lb-tag.unsold { background: rgba(232, 92, 92, 0.14); color: #e88c8c; }

/* --- leaderboard & results --- */
.lb-rank-1 { color: var(--gold); }
.lb-rank-2 { color: #c8cce0; }
.lb-rank-3 { color: #e08a3c; }
.lb-you { background: rgba(47, 211, 155, 0.07); }
.podium-slot-1st .podium-stand { background: linear-gradient(180deg, #8a6a1e, #4a3a12); }
.podium-slot-2nd .podium-stand { background: linear-gradient(180deg, #3a3f57, #1a1d2e); }
.podium-slot-3rd .podium-stand { background: linear-gradient(180deg, #6e4a2a, #2e1e10); }

/* --- modal --- */
.modal-card {
    background: #101226;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* --- captain pills --- */
.sp-captain-btn.active, .cp-badge-btn.active-cap { background: var(--gold); color: #06060f; }
.sp-vc-btn.active, .cp-badge-btn.active-vc { background: var(--blue); color: #06060f; }

/* =====================================================
   PADDLE REDESIGN LAYER v2 — structural restyle
   Replaces the poker-table metaphor with the FUT-card
   stage: bidder chips strip on top, hero card center,
   plus full mobile treatment. Appended last: wins cascade.
   ===================================================== */

/* --- auction header → broadcast strip --- */

/* --- kill the poker table: flat stage --- */

/* --- seats → horizontal bidder chips strip above the card --- */

/* --- entity card → FUT hero card --- */

@keyframes pd-shine {
    0% { transform: translateX(-120%) rotate(8deg); }
    60%, 100% { transform: translateX(240%) rotate(8deg); }
}

/* circular photo w/ ring + glow */

/* timer above card: cyan, bigger */

/* --- action bar: hero CTA --- */

.btn-bid {
    min-height: 52px;
    font-size: 1rem;
    border-radius: 12px;
    letter-spacing: 0.02em;
}
.btn-pass { min-height: 52px; border-radius: 12px; }

/* --- retention/veto rows: photo circles --- */
.retention-photo, .retention-photo-fallback {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.14);
}
.retention-row { border-radius: 14px; }
.retention-row.selected { border-color: var(--accent); }

/* =====================================================
   PADDLE MOBILE — one product across devices
   ===================================================== */
@media (max-width: 640px) {
    /* dashboard tabs → bottom nav bar */
    .dashboard-tabs {
        position: fixed;
        top: auto;
        bottom: 0; left: 0; right: 0;
        z-index: 90;
        display: flex;
        justify-content: space-around;
        background: rgba(10, 10, 26, 0.92);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
        margin: 0;
    }
    .dashboard-tab {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.45rem 0.9rem;
        font-size: 0.68rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        border-bottom: none;
        border-radius: 10px;
        min-height: 48px;
        justify-content: center;
    }
    .dashboard-tab.active { border-radius: 10px; }
    .home-screen, .leaderboard-screen { padding-bottom: 90px; }

    /* auction: chips scroll strip, card fills width */
    
    
    
    
    
    

    
    
    

    /* action bar stays fixed bottom (base rule) — enforce hit targets */
    
    .btn-bid, .btn-pass { min-height: 52px; }

    /* forms & buttons: 44px+ touch targets */
    .btn, .auth-btn, .field input, .join-input, .ac-input { min-height: 48px; }
    .retention-row { padding: 0.7rem 0.8rem; }

    /* topbar tighter */
    .topbar { padding: 0.55rem 0.9rem; }
}

/* =====================================================
   PADDLE MOBILE FIXES — small overrides of base mobile rules
   for components shared with the rebuilt auction screen.
   ===================================================== */
@media (max-width: 640px) {
    .btn-pass { box-shadow: none; }
    .btn-pass:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.05);
        transform: none;
    }
    .cat-players-btn {
        color: var(--accent);
        border-color: rgba(75, 139, 255, 0.4);
        background: var(--accent-dim);
    }
}

/* =====================================================
   BL AUCTION — auction screen rebuilt to the PADDLE
   prototype (PADDLE Auction.dc.html). Values transcribed
   literally from the prototype's inline styles.
   Structure: broadcast strip → bidder chips → stage
   (hero card + bid panel). Markup lives in renderAuction.
   ===================================================== */

@keyframes pdl-slam {
    0% { transform: translate(-50%, -50%) scale(2.4) rotate(-18deg); opacity: 0; }
    55% { transform: translate(-50%, -50%) scale(0.86) rotate(-14deg); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(1.08) rotate(-14deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(-14deg); opacity: 1; }
}
@keyframes pdl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); } 50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); } }
@keyframes pdl-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes pdl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* --- wrapper --- */
.bl-auction {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vw, 14px);
    padding: calc(64px + 10px) clamp(12px, 1.8vw, 22px) clamp(12px, 1.8vw, 22px);
    min-height: 100svh;
}

/* --- broadcast top strip --- */
.bl-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.bl-strip-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bl-strip-right { display: flex; align-items: center; gap: 14px; }
.bl-phase-badge {
    font-family: var(--font-display);
    font-size: clamp(13px, 1.5vw, 16px);
    letter-spacing: 0.03em;
    color: #fff;
    padding: 5px 13px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2f7bff, #7c3aed);
    border: 1px solid transparent;
    white-space: nowrap;
}
.bl-live-ind {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #9a9fc4;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.bl-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3d3d; animation: pdl-blink 1.1s infinite; }
.bl-stat { text-align: right; line-height: 1; }
.bl-stat-label {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b6f92;
    font-weight: 600;
    margin-bottom: 3px;
}
.bl-stat-num { font-family: var(--font-display); font-size: 19px; color: #f4f5ff; }
.bl-stat-num--green { color: #2fd39b; }
.bl-strip-sep { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.1); }

/* --- bidder chips strip (zone divs are transparent containers) --- */
/* The chips and the host's skip control share one horizontal band. The chips
   keep their own overflow so a long roster scrolls under the button rather
   than pushing it off-screen. */
.bl-chips-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.bl-chips-row .bl-chips { flex: 1 1 auto; min-width: 0; }

.bl-skip-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text3);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.bl-skip-btn:hover {
    color: var(--red);
    border-color: rgba(255, 92, 92, 0.45);
    background: var(--red-dim);
}
.bl-skip-icon { font-size: 10px; line-height: 1; }

/* The same pill on the veto screen, centred under the confirm button rather
   than riding the end of the chips band. */
.veto-skip-row {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}

.bl-chips {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 1px 4px;
    flex: 0 0 auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.bl-chips::-webkit-scrollbar { display: none; }
.bl-chips > div { display: contents; }
.bl-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px 8px 8px;
    border-radius: 12px;
    background: rgba(12, 12, 30, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.3s;
}
.bl-chip--you {
    background: linear-gradient(135deg, rgba(47, 211, 155, 0.14), rgba(47, 123, 255, 0.1));
    border-color: rgba(47, 211, 155, 0.4);
}
.bl-chip--bidding {
    border-color: #22d3ee;
    animation: pdl-pulse 1.4s infinite;
}
.bl-chip--passed { opacity: 0.4; }
.bl-chip-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}
.bl-chip-initial { font-family: var(--font-display); font-size: 14px; color: #fff; }
.bl-chip-info { min-width: 0; line-height: 1.15; }
.bl-chip-name {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    color: #f4f5ff;
    display: flex;
    align-items: center;
    gap: 5px;
}
.bl-chip-bid-tag {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #06060f;
    background: #22d3ee;
    padding: 1px 4px;
    border-radius: 4px;
}
.bl-chip-purse { font-size: 11px; font-weight: 600; color: #8a8fb5; white-space: nowrap; }

/* --- stage: card column + bid panel --- */
.bl-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    gap: clamp(10px, 1.5vw, 18px);
}
.bl-card-col {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    min-width: 0;
    padding: 6px 0;
    overflow: hidden;
}
.bl-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(60% 55% at 50% 42%, var(--bl-glow, rgba(139, 92, 246, 0.5)), transparent 70%);
}

/* floating gradient orbs around the card (in the column, so the
   card's rounded corners never clip them) */
@keyframes bl-drift-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(26px, 18px); }
}
@keyframes bl-drift-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-22px, -26px); }
}
.bl-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bl-glow, rgba(139, 92, 246, 0.5)), transparent 70%);
    filter: blur(30px);
    opacity: 0.55;
    pointer-events: none;
}
.bl-orb--1 { top: 4%; left: 12%; animation: bl-drift-1 9s ease-in-out infinite; }
.bl-orb--2 { bottom: 4%; right: 12%; animation: bl-drift-2 11s ease-in-out infinite; }

/* --- hero card --- */
.bl-card-stack {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}
.bl-hero-card {
    position: relative;
    z-index: 2;
    width: clamp(280px, 30vw, 380px);
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* player lots use a smaller card: source headshots are ~150px, so the
   photo stays near native size instead of scaling up */
.bl-hero-card--player { width: min(clamp(240px, 24vw, 300px), calc((100svh - 300px) * 0.72)); }
.bl-hero-card--player .bl-pcard-watermark { font-size: clamp(72px, 10vw, 110px); }
.bl-card-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 0.72;
    border-radius: 20px;
    border: 1.5px solid rgba(139, 92, 246, 0.55);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.bl-card-gloss {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 30%);
    pointer-events: none;
}
.bl-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 2.4vw, 26px);
}

/* player card */
.bl-pcard-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bl-pcard-id { text-align: center; line-height: 0.82; }
.bl-pcard-cat {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.4vw, 38px);
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.bl-pcard-divline { width: 26px; height: 2px; background: rgba(255, 255, 255, 0.35); margin: 7px auto 0; }
.bl-pcard-flag { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.72); margin-top: 6px; }
.bl-pcard-teambox {
    width: clamp(40px, 5vw, 54px);
    height: clamp(40px, 5vw, 54px);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.bl-pcard-teambox img { width: 80%; height: 80%; object-fit: contain; }
.bl-pcard-photo-zone {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin: 6px 0;
}
.bl-pcard-watermark {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(96px, 15vw, 150px);
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: 0.04em;
}
.bl-pcard-ring {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1;
    border-radius: 50%;
}
.bl-pcard-ring--dash { width: 94%; border: 1px dashed #c4b5fd; opacity: 0.14; }
.bl-pcard-ring--solid { width: 78%; border: 1px solid #c4b5fd; opacity: 0.22; }
.bl-pcard-photo-glow {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 66%;
    aspect-ratio: 1;
    border-radius: 50%;
}
.bl-pcard-photo {
    position: relative;
    width: 76px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #c4b5fd;
    background: #0a0a1a;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.04), inset 0 -20px 30px rgba(0, 0, 0, 0.35);
}
.bl-pcard-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
.bl-pcard-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    color: rgba(255, 255, 255, 0.55);
}
.bl-pcard-bottom { text-align: center; }
.bl-pcard-name {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 34px);
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 0.94;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.bl-pcard-rule { width: 70%; height: 1px; background: rgba(255, 255, 255, 0.28); margin: 11px auto; }
.bl-pcard-stats { display: flex; justify-content: center; gap: 22px; }
.bl-pcard-stat { text-align: center; line-height: 1; max-width: 40%; }
.bl-pcard-stat-v { font-size: 12.5px; font-weight: 700; color: #fff; }
.bl-pcard-stat-k {
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    margin-top: 4px;
}

/* team card */
.bl-tcard { align-items: center; justify-content: center; text-align: center; padding: clamp(18px, 2.6vw, 30px); }
.bl-tcard-abbr {
    font-family: var(--font-display);
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(80px, 13vw, 150px);
    color: rgba(255, 255, 255, 0.07);
    letter-spacing: 0.02em;
}
.bl-tcard-logo-wrap {
    position: relative;
    width: clamp(120px, 15vw, 180px);
    height: clamp(120px, 15vw, 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pdl-float 5s ease-in-out infinite;
}
.bl-tcard-logo-glow { position: absolute; inset: 0; border-radius: 50%; }
.bl-tcard-logo { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.5)); }
.bl-tcard-noname { position: relative; font-family: var(--font-display); font-size: 48px; color: #fff; }
.bl-tcard-name {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.6vw, 30px);
    color: #fff;
    margin-top: 18px;
    line-height: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.bl-tcard-seasons-label {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.66);
    font-weight: 700;
    margin-top: 8px;
}
.bl-tcard-seasons { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; justify-content: center; }
.bl-season {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    color: #8a8fb5;
    background: rgba(138, 143, 181, 0.12);
    border: 1px solid rgba(138, 143, 181, 0.27);
}
.bl-season--c { color: #ffd75c; background: rgba(255, 215, 92, 0.12); border-color: rgba(255, 215, 92, 0.27); }
.bl-season--p { color: #8b5cf6; background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.27); }

/* RTM / loyalty hint pill under the card */
.bl-hero-card .entity-rtm-hint {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #ffd75c;
    background: rgba(255, 215, 92, 0.1);
    border: 1px solid rgba(255, 215, 92, 0.3);
}
.bl-hero-card .entity-rtm-hint--opp {
    color: #8fb4ff;
    background: rgba(143, 180, 255, 0.1);
    border-color: rgba(143, 180, 255, 0.3);
}

/* SOLD/UNSOLD stamp slammed over the card */
.bl-stamp {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    animation: pdl-slam 0.6s cubic-bezier(0.2, 1.3, 0.5, 1) both;
    pointer-events: none;
}
.bl-stamp-word {
    font-family: var(--font-display);
    font-size: clamp(46px, 7vw, 84px);
    letter-spacing: 0.04em;
    color: #ffd75c;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
    border: 5px solid #ffd75c;
    padding: 2px 22px;
    border-radius: 10px;
    background: rgba(6, 6, 15, 0.34);
    backdrop-filter: blur(2px);
}
.bl-stamp-sub { font-size: 13px; font-weight: 700; color: #fff; margin-top: 12px; text-shadow: 0 2px 6px #000; }

/* --- bid panel --- */
.bl-panel {
    flex: 0 0 clamp(280px, 26vw, 340px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.bl-bid-panel {
    background: rgba(12, 12, 30, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: clamp(15px, 1.7vw, 20px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.bl-panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.bl-panel-label {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8fb5;
    font-weight: 700;
}
.bl-live-chip {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #06060f;
    background: #22d3ee;
    padding: 2px 7px;
    border-radius: 5px;
}
.bl-price {
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 66px);
    color: #fff;
    line-height: 0.9;
    margin: 6px 0 2px;
}
.bl-price-cr { font-size: 0.4em; color: #8a8fb5; font-family: var(--font); font-weight: 700; margin-left: 6px; }
.bl-leader { font-size: 13px; font-weight: 600; color: #e6e8ff; min-height: 19px; }
.bl-leader .timer-bid-who { color: #2fd39b; font-weight: 700; }
.bl-timer { margin-top: 16px; }
.bl-timer-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.bl-timer-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b6f92;
    font-weight: 700;
}
.bl-timer-sec { font-family: var(--font-display); font-size: 16px; color: #f4f5ff; }
.bl-timer-s { font-size: 0.6em; color: #6b6f92; margin-left: 3px; }
.bl-timer-track { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bl-timer-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #22d3ee, #2f7bff);
    transition: width 0.9s linear;
}

/* actions row inside the panel */
.bl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.bl-actions .btn-bid { flex: 1; }
.bl-actions .btn-pass { flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }

/* manual bid — own full-width row under the bid/pass buttons */
.bl-manual {
    flex: 1 0 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bl-manual-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.15s;
}
.bl-manual-field:focus-within { border-color: var(--accent); }

.bl-manual-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 0;
    outline: none;
}
.bl-manual-input::placeholder { color: var(--text3); font-weight: 500; }
.bl-manual-input:disabled { opacity: 0.5; }

.bl-manual-unit {
    flex: 0 0 auto;
    color: var(--text3);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.bl-manual-btn {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.bl-manual-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.11); border-color: var(--accent); }
.bl-manual-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.bl-manual-err {
    flex: 1 0 100%;
    color: var(--red, #e85c5c);
    font-size: 0.68rem;
    line-height: 1.3;
}
.bl-manual-err:empty { display: none; }

/* sold / RTM back face: plain swap, no 3D flip */
.bl-bid-back { display: none; }
.bid-card-inner.flipped .bl-bid-front { display: none; }
.bid-card-inner.flipped .bl-bid-back { display: block; }
.bl-sold-title { font-size: 15px; font-weight: 700; color: #f4f5ff; margin-top: 6px; }
.bl-sold-sub { font-size: 12.5px; color: #8a8fb5; margin-top: 2px; }
.bl-next-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--accent); /* same flat blue as the Bid button */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-primary);
}
.bl-next-btn:hover { filter: brightness(1.06); }
.bl-end-btn {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #9a9fc4;
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.bl-end-btn:hover { border-color: rgba(255, 255, 255, 0.3); color: #f4f5ff; }

/* prev/next lot peeks: blurred mini player-cards behind the hero card */
.bl-peeks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bl-peek {
    position: absolute;
    top: 50%;
    width: 150px;
    aspect-ratio: 0.72;
    border-radius: 16px;
    border: 1.5px solid rgba(139, 92, 246, 0.55);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.55;
    filter: blur(1.5px);
    pointer-events: none;
}
.bl-peek--prev { left: 0; transform: translate(-35%, -50%) rotate(-4deg) scale(0.82); }
.bl-peek--next { right: 0; transform: translate(35%, -50%) rotate(4deg) scale(0.82); }
.bl-peek-cap {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.bl-peek-photo {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #c4b5fd;
    background: #0a0a1a;
}
.bl-peek-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
.bl-peek-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.55);
}
.bl-peek-name {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-lb-next-btn {
    flex: 0 0 auto;
    margin-left: 4px;
    padding: 3px 9px;
    border: none;
    border-radius: 6px;
    background: var(--grad-primary);
    color: #fff;
    font-family: var(--font);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
.cat-lb-next-btn:hover { filter: brightness(1.15); }

/* On a pointer device the docked panel is only 280px wide, so Next is lifted
   out of the flow and revealed over the row's right edge on hover — the name
   keeps its full width. Touch devices have no hover and show the panel as a
   full-width modal, so there it just stays in the row. */
@media (hover: hover) and (pointer: fine) {
    .cat-lb-next-btn {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.12s;
    }
    .cat-lb-row:hover .cat-lb-next-btn,
    .cat-lb-next-btn:focus-visible {
        opacity: 1;
        pointer-events: auto;
    }
}

.cat-lb-hint {
    flex: 0 0 auto;
    padding: 0.4rem 0.85rem 0;
    font-size: 0.6rem;
    line-height: 1.4;
    color: var(--text3);
}

/* drag-to-reorder */
.cat-lb-drag {
    flex: 0 0 auto;
    color: var(--text3);
    font-size: 11px;
    line-height: 1;
    cursor: grab;
    padding: 0 1px;
    touch-action: none; /* stop the list scrolling instead of dragging */
}
.cat-lb-drag:active { cursor: grabbing; }
.cat-lb-row.cat-lb-draggable:hover .cat-lb-drag { color: var(--text2); }

.cat-lb-row.cat-lb-dragging {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.cat-lb-list-dragging { cursor: grabbing; user-select: none; }
.cat-lb-list-dragging .cat-lb-row { transition: transform 0.12s ease; }

/* category leaderboard docked in the panel (player auction, desktop) */
.bl-panel .cat-lb-panel {
    width: 100%;
    position: static;
    margin: 0;
    flex: 1;
    min-height: 0;
}

/* Docked, the panel already has a bounded height, so the list should fill it
   rather than stop at the standalone 520px cap and leave dead space. */
.bl-panel .cat-lb-list { max-height: none; }

/* card-stack mobile layout's participant list - hidden by default
   (desktop and the legacy banner mobile layout never show it) */
.bl-user-stack { display: none; }

/* desktop app shell (matches the prototype): the page never scrolls,
   the bid panel scrolls internally, so the card column's height is the
   visible stage and the card truly centers between header and bottom */
@media (min-width: 821px) {
    .bl-auction { height: 100svh; overflow: hidden; }
    .bl-panel { overflow-y: auto; min-height: 0; scrollbar-width: thin; }
    .bl-hero-card { width: min(clamp(280px, 30vw, 380px), calc((100svh - 250px) * 0.72)); }
    .bl-hero-card--player { width: min(clamp(240px, 24vw, 300px), calc((100svh - 300px) * 0.72)); max-height: 100%; }
    .bl-hero-card--player .bl-card-frame { max-height: 100%; }
}

/* --- mobile: single column, chips scroll, panel pinned --- */
@media (max-width: 820px) {
    /* Grows with its content and lets the page scroll. Pinning this to the
       viewport made the user stack the only thing that could move, so the card
       and the bid panel were stuck off-screen on shorter phones. */
    .bl-auction {
        padding-left: 14px;
        padding-right: 14px;
    }
    .bl-stage { flex-direction: column; }

    /* bidder strip -> grid: every player visible, no horizontal scroll.
       4 columns up to 8 players; .bl-chips--5col (9-10 players) uses 5. */
    .bl-chips {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 7px;
        overflow-x: visible;
        padding: 2px 1px 4px;
    }
    .bl-chips--5col { grid-template-columns: repeat(5, 1fr); }
    /* narrow: let the skip control drop under the grid instead of squeezing it
       (only reachable in the legacy banner layout — card-stack hides the band) */
    .bl-chips-row { flex-wrap: wrap; }
    .bl-chips-row .bl-skip-btn { margin-left: auto; }
    .bl-chip {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
        padding: 8px 4px 7px;
        min-width: 0;
        animation: none;
    }
    .bl-chip-avatar { position: relative; overflow: visible; }
    .bl-chip-avatar img { border-radius: 9px; }
    .bl-chip--bidding .bl-chip-avatar::after {
        content: '';
        position: absolute;
        top: -3px;
        right: -3px;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--cyan, #22d3ee);
        box-shadow: 0 0 7px var(--cyan, #22d3ee);
    }
    .bl-chip-bid-tag { display: none; }
    .bl-chip-info {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.2;
    }
    .bl-chip-name {
        display: block;
        width: 100%;
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .bl-chip-purse { font-size: 10px; }
    .bl-chips--5col .bl-chip { padding: 6px 3px 5px; }
    .bl-chips--5col .bl-chip-avatar { width: 28px; height: 28px; }
    .bl-chips--5col .bl-chip-initial { font-size: 12px; }
    .bl-chips--5col .bl-chip-name { font-size: 10px; }
    .bl-chips--5col .bl-chip-purse { font-size: 9px; }
    /* card region fills whatever height the (auto-sized) panel below
       doesn't need - same technique as desktop, so the card is always
       fully visible no matter how tall the panel's content gets
       (bidding vs sold vs sold+host button), no scrolling required */
    .bl-card-col { flex: 1 1 auto; width: 100%; min-height: 0; }
    .bl-card-stack { height: 100%; }
    .bl-hero-card {
        height: 100%;
        width: auto;
        aspect-ratio: 0.72;
        max-width: min(66vw, 260px);
    }
    /* team card only (not .bl-hero-card--player): same size, just
       nudged down from dead-center - the team panel is always short
       (no host category button, no sold state), so .bl-card-col has
       a lot of leftover height and centering it there leaves the
       card floating with a big empty gap below. .bl-card-stack isn't
       a flex item (align-self would be a no-op on .bl-hero-card,
       which is a plain block inside it), so shift with a transform
       instead - it doesn't touch layout flow or the card's own size. */
    .bl-hero-card:not(.bl-hero-card--player) { transform: translateY(8%); }
    .bl-hero-card--player {
        height: 100%;
        width: auto;
        aspect-ratio: 0.72;
        max-width: min(88vw, 360px);
    }
    .bl-pcard-photo { width: 84px; }
    .bl-pcard-watermark { font-size: 96px; }
    .bl-hero-card--player .bl-pcard-name { font-size: clamp(24px, 7vw, 30px); }
    .bl-hero-card--player .bl-pcard-cat { font-size: clamp(28px, 8vw, 34px); }
    .bl-hero-card--player .bl-pcard-stat-v { font-size: 13.5px; }
    /* prev/next peeks are a desktop-only flourish - no room for them
       once the card is sized to fill the mobile stage */
    .bl-peeks { display: none; }
    .bl-panel {
        flex: 0 0 auto;
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(6, 6, 15, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        max-height: 56vh;
        overflow-y: auto;
    }
    .bl-panel .bl-bid-panel {
        background: transparent;
        border: none;
        padding: 2px 0 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .bl-panel .cat-lb-panel { display: none; }
    .bl-auction .cat-players-btn.mobile-only { display: inline-flex; }
    .bl-price { font-size: clamp(34px, 9vw, 44px); }
    .bl-timer { margin-top: 10px; }
    .bl-actions { margin-top: 12px; }
    .bl-live-ind { display: none; }

    /* ============================================================
       CARD-STACK MOBILE LAYOUT (MOBILE_AUCTION_LAYOUT === 'card-stack')
       Single non-scrolling viewport: strip -> compact card -> bid
       panel -> scrollable user stack. Everything above the stack is
       scoped under .bl-auction--card-stack so the legacy banner
       layout's rules (above, unscoped) are untouched and still work
       when the flag is set to 'banner'.
       ============================================================ */
    .bl-auction--card-stack { display: flex; flex-direction: column; }
    .bl-auction--card-stack .bl-chips { display: none; }
    .bl-auction--card-stack .bl-stage { flex: 0 0 auto; }
    .bl-auction--card-stack .bl-card-col { flex: 0 0 auto; padding: 4px 0; }
    .bl-auction--card-stack .bl-card-stack { height: auto; }
    .bl-auction--card-stack .bl-hero-card {
        height: auto;
        width: min(60vw, 232px);
        max-width: none;
        transform: none;
    }
    .bl-auction--card-stack .bl-hero-card--player {
        height: auto;
        width: min(54vw, 208px);
        max-width: none;
    }
    .bl-auction--card-stack .bl-panel { max-height: none; overflow-y: visible; }
    /* the chips band is hidden in this layout, and the skip control rides
       along with it — same as when it lived in the bid panel */
    .bl-auction--card-stack .bl-chips-row { display: none; }

    /* Grows to its full height rather than scrolling inside itself — the page
       is what scrolls now, so the whole roster comes past on the way down. */
    .bl-auction--card-stack .bl-user-stack {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 6px 2px 8px;
        margin-top: 4px;
    }
    .bl-stackrow {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 12px;
        background: rgba(12, 12, 30, 0.6);
        border: 1.5px solid rgba(255, 255, 255, 0.08);
        flex: 0 0 auto;
        transition: border-color var(--tr), opacity 0.3s;
    }
    .bl-stackrow--you {
        background: linear-gradient(135deg, rgba(47, 211, 155, 0.14), rgba(47, 123, 255, 0.1));
        border-color: rgba(47, 211, 155, 0.4);
    }
    .bl-stackrow--bidding {
        border-color: var(--cyan, #22d3ee);
        animation: pdl-pulse 1.4s infinite;
    }
    .bl-stackrow--passed { opacity: 0.4; }
    .bl-stackrow-avatar {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .bl-stackrow-initial { font-family: var(--font-display); font-size: 14px; color: #fff; }
    .bl-stackrow-name {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        font-weight: 700;
        color: var(--text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .bl-stackrow-purse { font-size: 12px; font-weight: 700; color: var(--green, #2fd39b); flex: 0 0 auto; }
    .bl-stackrow-tag {
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #06060f;
        background: var(--cyan, #22d3ee);
        padding: 3px 7px;
        border-radius: 5px;
        flex: 0 0 auto;
    }
    @media (prefers-reduced-motion: reduce) {
        .bl-stackrow--bidding { animation: none; }
    }
}

@media (max-width: 640px) {
    .bl-auction { padding-top: calc(44px + 10px); }
}

/* =============================================
   TOUCH: NO AUTO-ZOOM ON FOCUS
   =============================================
   iOS Safari zooms the page in whenever a focused field's text is smaller than
   16px, and it never zooms back out — the whole app is left magnified until the
   player pinches out by hand. Every one of these sat just under the line (the
   phone field computed to 15.2px, the custom-bid field to 13.6px), so tapping to
   type anything magnified the screen mid-auction.

   16px here is the browser's threshold, not a design decision. Scoped to coarse
   pointers so the desktop sizing is untouched, and done this way rather than
   with maximum-scale/user-scalable on the viewport, which would fix the zoom by
   taking pinch-zoom away from everyone who needs it. */
@media (pointer: coarse) {

    .field input,
    .join-input,
    .ac-input,
    .bl-manual-input,
    .trade-select,
    #trade-partner,
    #sel-historical-game {
        font-size: 16px;
    }

    /* the one-time code is deliberately larger and stays that way */
    .field input.otp-input {
        font-size: 1.5rem;
    }
}
