/* ==========================================================================
   Crashing Moon - Broadcast Control Panel Stylesheet
   Powered by ui.css foundation.
   Applied to: control.html, controlban6.html, controlhok.html, controlhokdraft.html
   ========================================================================== */

@import url('ui.css');

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

/* ================== PAGE BODY & LAYOUT ================== */
body {
    position: relative;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    margin: 0;
    padding: 0 0 60px 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* Kill decorative backgrounds */
body::before, body::after, .background-container, .liquid-blob, .blob, .blob-container {
    display: none !important;
}

/* ================== MAIN CONTENT WRAPPER ================== */
.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 98%; width: 98%;
    margin: 0 auto;
    padding: 20px 24px 60px 24px;
    box-sizing: border-box;
}

/* Headings */
h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 3.6vw, 42px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    text-align: center;
    margin: 6px 0 16px 0;
    line-height: 1.15;
}

h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(19px, 2.2vw, 24px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    text-align: center;
    margin: 22px 0 12px 0;
}

/* ================== TOP NAV BAR & BACK / OPEN DISPLAY ================== */
.top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-body);
    transition: all 0.15s ease;
    align-self: flex-start;
}

.back-hub-btn:hover {
    background-color: var(--surface-3);
    border-color: var(--accent);
    color: var(--accent);
}

.back-hub-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.open-display-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background-color: var(--accent);
    color: var(--accent-ink);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-body);
    transition: all 0.15s ease;
}

.open-display-btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--accent-ink);
}

.open-display-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* ================== ACTION BUTTONS ================== */
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    min-height: 38px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line-strong);
    position: relative;
    outline: none;
}

button:hover {
    background-color: var(--surface-3);
    border-color: var(--muted);
    color: var(--text);
}

button:active {
    transform: translateY(1px);
}

/* Button groups */
.button, .timercontrol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 8px 0 20px 0;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
}

.button > button, .timercontrol > button {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 8px 18px;
}

/* Emphasis on Switch / Apply Buttons */
button[onclick*="switch"], button[onclick*="Switch"] {
    background-color: var(--surface-2);
    color: var(--accent);
    border-color: var(--line-strong);
}

button[onclick*="switch"]:hover, button[onclick*="Switch"]:hover {
    background-color: var(--surface-3);
    border-color: var(--accent);
    color: var(--accent);
}

/* Danger / Reset Buttons */
button[onclick*="reset"], button[onclick*="Reset"], #stop {
    background-color: transparent;
    color: var(--danger);
    border: 1px solid rgba(var(--danger-rgb), 0.45);
}

button[onclick*="reset"]:hover, button[onclick*="Reset"]:hover, #stop:hover {
    background-color: rgba(var(--danger-rgb), 0.12);
    color: var(--danger);
    border-color: var(--danger);
}

/* Timer Control Specific Buttons */
#start {
    background-color: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}
#start:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

#reset {
    background-color: var(--surface-2);
    color: var(--text);
    border-color: var(--line-strong);
}

/* ================== SWAP BUTTONS ================== */
.name-box button, .swap-button {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    min-width: 44px;
    min-height: 32px;
    flex: 0 0 auto;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--text-2);
}

.name-box button:hover, .swap-button:hover {
    background: var(--surface-2);
    border-color: var(--accent);
    color: var(--accent);
}

.swap-active, .swap-button.selected {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-ink) !important;
}

/* ================== THEME SELECTOR BAR ================== */
.theme-control-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: var(--radius);
    margin: 0 auto 16px auto;
}

.theme-control-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.theme-control-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.theme-control-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 4px 26px 4px 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
}

.theme-control-select:hover, .theme-control-select:focus {
    border-color: var(--accent);
    background: var(--surface-3);
}

.theme-control-arrow {
    position: absolute;
    right: 8px;
    pointer-events: none;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 10px;
}

/* ================== MASTER CONTAINER (MAINBOX) ================== */
.mainbox {
    width: 100%;
    box-sizing: border-box;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 16px;
    padding: 16px;
    position: relative;
}

/* ================== BLUE SIDE & RED SIDE CONTAINERS ================== */
.blueside, .redside {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    padding: 14px;
    border-radius: var(--radius-lg);
    gap: 12px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.blueside {
    background: var(--blue-side-bg);
    border: 1px solid var(--blue-side-border);
}

.redside {
    background: var(--red-side-bg);
    border: 1px solid var(--red-side-border);
}

/* ================== SECTION COLUMN CARDS ================== */
.section-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    box-sizing: border-box;
}

.section-card:nth-of-type(1) { flex: 1.15; }
.section-card:nth-of-type(2) { flex: 1.65; }
.section-card:nth-of-type(3) { flex: 1.1; }
.section-card:nth-of-type(4) { flex: 1.0; }

.namebox {
    font-family: var(--font-display);
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    line-height: 1.2;
}

.blueside .namebox {
    color: var(--blue-side-header);
    border-bottom-color: var(--blue-side-border);
}

.redside .namebox {
    color: var(--red-side-header);
    border-bottom-color: var(--red-side-border);
}

/* ================== INPUTS & SWAP WRAPPERS ================== */
.name-box, .dropdown-container {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.name-box > input, .dropdown-container > input {
    flex: 1;
    min-width: 0;
    text-align: left !important;
    padding: 0 8px !important;
}

.name-box > div {
    flex: 0 0 auto;
}

/* Control Room Inputs */
input[type="text"], input[type="number"], input[type="search"], input[type="password"], input:not([type]), select, textarea, .dropdown {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background-color: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: border-color 0.15s ease;
}

#blueTeamInput, #redTeamInput, .teamname-input, .sts-trigger-title, .sts-option-team {
    text-transform: uppercase;
    font-weight: 700;
}

input[type="text"]::placeholder, input[type="number"]::placeholder, input[type="search"]::placeholder, input::placeholder, textarea::placeholder {
    color: var(--muted);
    font-weight: 400;
}

input[type="checkbox"], input[type="radio"] {
    accent-color: var(--accent);
    cursor: pointer;
}

input[type="text"]:hover, input[type="number"]:hover, input:hover, .dropdown:hover, select:hover {
    border-color: var(--muted);
}

input[type="text"]:focus, input[type="number"]:focus, input:focus, .dropdown:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--surface-2);
    box-shadow: 0 0 0 1px var(--accent);
}

/* ================== SCORE STEPPER CONTROLS ================== */
.score-box {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.score-box > input {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 18px;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
    background: var(--surface-2);
}

.score-controls {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 38px;
    justify-content: center;
    flex: 0 0 auto;
}

.score-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 17px !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 32px !important;
    background: var(--surface) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 4px !important;
    color: var(--text) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.score-btn svg {
    pointer-events: none;
    stroke: currentColor;
}

.score-btn:hover {
    background: var(--surface-2) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.score-btn:active {
    transform: scale(0.95) !important;
}

.blueside .score-btn:hover {
    border-color: var(--blue-side-accent) !important;
    color: var(--blue-side-accent) !important;
}

.redside .score-btn:hover {
    border-color: var(--red-side-accent) !important;
    color: var(--red-side-accent) !important;
}

/* ================== DROPDOWN MENU ITEMS ================== */
.dropdown-items {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    max-height: 230px;
    overflow-y: auto;
    display: none;
}

.dropdown-items div {
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
    transition: all 0.12s ease;
    border-bottom: 1px solid var(--line);
}

.dropdown-items div:last-child {
    border-bottom: none;
}

.dropdown-items div:hover {
    background: var(--surface-3);
    color: var(--accent);
    padding-left: 15px;
}

/* ================== FILE UPLOADER ================== */
.container {
    padding: 10px;
    background: var(--surface-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
    margin-top: 4px;
}

.container label {
    font-size: 11px;
    margin-bottom: 4px;
    display: block;
    color: var(--muted);
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

input[type="file"] {
    width: 100%;
    font-size: 11px;
    color: var(--text-2);
    font-family: var(--font-body);
}

input[type="file"]::file-selector-button {
    padding: 4px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 700;
    font-size: 11px;
    font-family: var(--font-body);
}

input[type="file"]::file-selector-button:hover {
    background: var(--surface-2);
    border-color: var(--accent);
    color: var(--accent);
}

.hide {
    display: none;
}

input[type="text"]:disabled, .dropdown:disabled, button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Overlay Tool Logo */
.overlaytoollogo {
    text-align: center;
    margin-bottom: 16px;
    padding-top: 4px;
}
.overlaytoollogo img {
    max-width: 100%;
    height: auto;
}

/* Theme Toggle Button Component */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background-color: var(--surface-2);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--surface-3);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ================== RESPONSIVE MEDIA QUERIES ================== */
@media (max-width: 1400px) {
    .content-wrapper {
        padding: 16px 14px 40px 14px;
    }
    .blueside, .redside {
        padding: 12px;
        gap: 10px;
    }
    .section-card {
        padding: 10px 8px;
    }
}

/* Laptops, Standard Desktops & Moderate Widths (Side-by-side with 2x2 cards for wide readable inputs) */
@media (max-width: 1540px) {
    .blueside, .redside {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    .section-card:nth-of-type(1),
    .section-card:nth-of-type(2),
    .section-card:nth-of-type(3),
    .section-card:nth-of-type(4) {
        flex: none;
    }
    .button > button, .timercontrol > button {
        flex: 0 0 auto;
    }
}

/* Mobile Side Tabs Segmented Switcher (Hidden on Desktop) */
.mobile-side-tabs {
    display: none;
}

/* Mobile Screens: Touch-optimized single column layout with sticky live controls */
@media (max-width: 860px) {
    .content-wrapper {
        padding: 12px 10px calc(80px + env(safe-area-inset-bottom, 0px)) 10px;
    }

    .top-nav-bar {
        justify-content: center;
        gap: 8px;
    }

    .top-nav-actions {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    .back-hub-btn, .open-display-btn, .theme-toggle-btn {
        flex: 1 1 auto;
        min-height: 38px;
        justify-content: center;
        font-size: 12px;
        padding: 6px 10px;
    }

    h1 {
        font-size: clamp(20px, 5.4vw, 26px);
        margin: 6px 0 12px 0;
        word-break: break-word;
        text-align: center;
        max-width: 100%;
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(16px, 4.2vw, 20px);
        margin: 14px 0 8px 0;
    }

    /* Prevent automatic iOS safari zoom on inputs */
    input[type="text"], input[type="number"], input[type="search"], select, textarea, .dropdown {
        font-size: 16px !important;
        height: 40px;
    }

    .mainbox {
        flex-direction: column;
        padding: 10px;
        border-radius: var(--radius-lg);
        gap: 12px;
    }

    .blueside, .redside {
        display: flex;
        flex-direction: column;
        padding: 10px;
        border-radius: var(--radius);
        gap: 10px;
    }

    .section-card {
        padding: 10px;
        border-radius: var(--radius);
    }

    .namebox {
        font-size: 17px;
        margin-bottom: 4px;
        padding-bottom: 4px;
    }

    .button > button {
        flex: 1 1 calc(50% - 6px);
        min-width: 100px;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Sticky Bottom Live Operator Action Bar on Phone */
    .timercontrol {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--surface);
        border-top: 1px solid var(--line-strong);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px)) 10px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        z-index: 9999;
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
        display: flex;
        gap: 6px;
    }

    .timercontrol > button {
        flex: 1 1 calc(33.33% - 6px);
        min-width: 0;
        min-height: 44px;
        padding: 8px 4px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    /* Mobile Side Tabs Segmented Switcher */
    .mobile-side-tabs {
        display: flex;
        align-items: center;
        gap: 6px;
        background: var(--surface);
        padding: 5px;
        border-radius: var(--radius);
        border: 1px solid var(--line-strong);
        margin: 0 0 12px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-side-tab {
        flex: 1;
        min-height: 40px;
        padding: 6px 10px;
        border: 1px solid transparent;
        border-radius: calc(var(--radius) - 2px);
        background: transparent;
        color: var(--text-muted);
        font-family: var(--font-title);
        font-size: 14px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-side-tab .side-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        flex-shrink: 0;
    }

    .mobile-side-tab.is-blue .side-dot {
        background: #4D88FF;
        box-shadow: 0 0 6px rgba(77, 136, 255, 0.6);
    }

    .mobile-side-tab.is-red .side-dot {
        background: #FF5C5C;
        box-shadow: 0 0 6px rgba(255, 92, 92, 0.6);
    }

    .mobile-side-tab.is-both .side-dot {
        background: var(--accent);
        box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.5);
    }

    .mobile-side-tab:hover {
        background: var(--surface-2);
        color: var(--text);
    }

    .mobile-side-tab.is-blue.active {
        background: rgba(77, 136, 255, 0.15);
        border-color: rgba(77, 136, 255, 0.45);
        color: #7AA2FF;
        font-weight: 700;
    }

    .mobile-side-tab.is-red.active {
        background: rgba(255, 92, 92, 0.15);
        border-color: rgba(255, 92, 92, 0.45);
        color: #FF8585;
        font-weight: 700;
    }

    .mobile-side-tab.is-both.active {
        background: var(--surface-3);
        border-color: var(--line-strong);
        color: var(--accent);
        font-weight: 700;
    }

    /* Side filtering by data-mobile-active attribute */
    .mainbox[data-mobile-active="blue"] > .redside {
        display: none !important;
    }
    .mainbox[data-mobile-active="red"] > .blueside {
        display: none !important;
    }
    .mainbox[data-mobile-active="both"] > .blueside,
    .mainbox[data-mobile-active="both"] > .redside {
        display: flex !important;
    }
}

/* =======================================================
   SUPPLEMENTAL UTILITIES (LANE SELECT, PRESETS, CLOUD SYNC)
   Matches Crashing Moon UI Foundation
   ======================================================= */

/* Lane Dropdown in Nickname Cards */
select.lane-dropdown {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 36px !important;
    padding: 0 2px !important;
    font-size: 11px !important;
    text-align: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background-color: var(--surface);
    color: var(--text);
    box-sizing: border-box;
    cursor: pointer;
}

/* MLBB Preset Row in Team Cards */
.mlbb-preset-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.mlbb-logo-preview {
    width: 60px;
    height: 60px;
    margin: 4px auto;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mlbb-logo-preview img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.mlbb-preset-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

/* Cloud Sync Bar */
.cloud-sync-bar {
    max-width: 1200px;
    margin: 20px auto;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.cloud-sync-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.cloud-sync-label {
    font-size: 11.5px;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    color: var(--accent, #c49f48);
    letter-spacing: 0.06em;
}

.cloud-sync-meta {
    font-size: 11.5px;
    color: var(--text-muted);
}

.cloud-sync-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cloud-sync-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

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


/* Wide, clear typography for Team Name & Nickname inputs */
#name-input-1, #name-input-8 {
    text-align: left !important;
    padding: 0 10px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

input[id^="name-input-"] {
    text-align: left !important;
    padding: 0 8px !important;
}

.name-box button[id^="swap-btn-"] {
    min-width: 38px !important;
    padding: 2px 6px !important;
    font-size: 10px !important;
}
