    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: #f1f5f9;
        min-height: 100vh;
        padding-bottom: 80px;
    }

    .header {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .header h1 {
        font-size: 1.5rem;
        text-align: center;
        color: #fbbf24;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .header-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        margin-top: 0.75rem;
        flex-wrap: wrap;
    }

    .header-actions.game {
        flex-direction: column;
        align-items: stretch;
    }

    .header-action-buttons {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        padding: 0.6rem 1rem;
        border: none;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        touch-action: manipulation;
    }

    .btn-primary {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    }

    .btn-secondary {
        background: linear-gradient(135deg, #64748b, #475569);
        color: white;
    }

    .btn-danger {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
    }

    .btn-success {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
    }

    .btn:active {
        transform: scale(0.95);
    }

    .bid-adjust-btn:hover {
        opacity: 0.8;
    }

    .bid-adjust-btn:active {
        transform: scale(0.9);
    }

    .setup-screen, .game-screen {
        padding: 1rem;
        max-width: 900px;
        margin: 0 auto;
    }

    .card {
        background: rgba(30, 41, 59, 0.8);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .card h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        color: #fbbf24;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    .input-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #cbd5e1;
    }

    input[type="text"], input[type="number"], select {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid #475569;
        border-radius: 8px;
        background: #1e293b;
        color: #f1f5f9;
        font-size: 1rem;
    }

    input:focus, select:focus {
        outline: none;
        border-color: #3b82f6;
    }

    .num-players-control {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .num-players-control #numPlayersDisplay {
        min-width: 2.5rem;
        text-align: center;
        font-size: 1.4rem;
        font-weight: 700;
        color: #f1f5f9;
    }

    .num-players-step {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 8px;
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: opacity 0.15s;
    }

    .num-players-step:hover {
        opacity: 0.8;
    }

    .num-players-control button:first-of-type {
        background: rgba(239, 68, 68, 0.2);
        border: 2px solid rgba(239, 68, 68, 0.4);
        color: #fca5a5;
    }

    .num-players-control button:last-of-type {
        background: rgba(34, 197, 94, 0.2);
        border: 2px solid rgba(34, 197, 94, 0.4);
        color: #86efac;
    }

    .num-players-quick-row {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .num-players-quick {
        padding: 0.4rem 0.9rem;
        border: 2px solid #475569;
        border-radius: 8px;
        background: #1e293b;
        color: #94a3b8;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s, border-color 0.15s, color 0.15s;
        flex-shrink: 0;
    }

    .num-players-quick:hover {
        background: #334155;
        border-color: #3b82f6;
        color: #f1f5f9;
    }

    .player-inputs {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .player-custom-select {
        position: relative;
        width: 100%;
    }

    .player-select-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.75rem;
        border: 2px solid #475569;
        border-radius: 8px;
        background: #1e293b;
        color: #f1f5f9;
        font-size: 1rem;
        cursor: pointer;
        text-align: left;
        transition: border-color 0.2s;
    }

    .player-select-btn:hover {
        border-color: #3b82f6;
    }

    .player-select-arrow {
        color: #94a3b8;
        font-size: 0.8em;
        flex-shrink: 0;
    }

    .player-select-panel {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        width: 100%;
        background: #1e293b;
        border: 1px solid #475569;
        border-radius: 8px;
        z-index: 200;
        max-height: 220px;
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .player-select-panel.open {
        display: block;
    }

    .player-select-option {
        padding: 0.65rem 0.75rem;
        color: #e2e8f0;
        font-size: 0.95rem;
        cursor: pointer;
    }

    .player-select-option:hover {
        background: #273449;
    }

    .player-select-option.selected {
        color: #60a5fa;
        font-weight: 600;
    }

    .player-input-row {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .player-input-row input {
        flex: 1;
    }

    .player-input-row button {
        padding: 0.75rem;
        background: #ef4444;
        border: none;
        border-radius: 8px;
        color: white;
        cursor: pointer;
        font-size: 1.2rem;
        line-height: 1;
    }

    .player-tag {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .player-tag button {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        cursor: pointer;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0;
        transition: background 0.2s;
    }

    .player-tag button:hover {
        background: rgba(255, 255, 255, 0.4);
    }

    .round-setup {
        background: rgba(15, 23, 42, 0.9);
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .round-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .round-header h3 {
        color: #fbbf24;
        font-size: 1.1rem;
    }

    .sticky-round-info {
        margin: 0.75rem auto 0;
        max-width: 1100px;
        padding: 0 1.25rem;
    }

    .round-summary {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 0.8rem 1rem;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .round-summary-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        min-width: 0;
    }

    .round-summary-bottom {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: wrap;
    }

    .round-summary .leader-pill {
        background: rgba(251, 191, 36, 0.15);
        border: 1px solid rgba(251, 191, 36, 0.35);
        color: #fbbf24;
        padding: 0.36rem 0.62rem;
        border-radius: 999px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.92rem;
        line-height: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .round-summary .meta-chip {
        color: #cbd5e1;
        font-size: 0.84rem;
        font-weight: 600;
        background: rgba(51, 65, 85, 0.5);
        border: 1px solid rgba(100, 116, 139, 0.35);
        border-radius: 999px;
        padding: 0.22rem 0.5rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .round-summary .meta-chip.trump {
        color: #fbbf24;
        border-color: rgba(251, 191, 36, 0.35);
        background: rgba(251, 191, 36, 0.12);
    }

    .round-summary .meta-chip.low {
        color: #fda4af;
        border-color: rgba(244, 63, 94, 0.35);
        background: rgba(244, 63, 94, 0.12);
    }

    .bid-tracker {
        background: rgba(59, 130, 246, 0.2);
        padding: 0.36rem 0.62rem;
        border-radius: 8px;
        font-weight: 600;
        line-height: 1;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .bid-tracker.under { background: rgba(34, 197, 94, 0.2); }
    .bid-tracker.over { background: rgba(239, 68, 68, 0.2); }
    .bid-tracker.exact { background: rgba(251, 191, 36, 0.2); }

    .players-nav {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.5rem;
        padding: 0.5rem 0;
        margin-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .players-nav::-webkit-scrollbar {
        height: 4px;
    }

    .players-nav::-webkit-scrollbar-track {
        background: rgba(51, 65, 85, 0.2);
        border-radius: 2px;
    }

    .players-nav::-webkit-scrollbar-thumb {
        background: rgba(100, 116, 139, 0.4);
        border-radius: 2px;
    }

    .players-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(100, 116, 139, 0.6);
    }

    .players-nav-btn {
        padding: 0.5rem 1rem;
        background: rgba(51, 65, 85, 0.6);
        border: 2px solid rgba(100, 116, 139, 0.4);
        color: #cbd5e1;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.2s;
    }

    .players-nav-btn:hover {
        background: rgba(51, 65, 85, 0.9);
        border-color: rgba(100, 116, 139, 0.6);
        color: #f1f5f9;
    }

    .players-nav-btn.active {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        border-color: #3b82f6;
        color: white;
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
    }

    .players-grid {
        display: block;
    }

    .player-card {
        background: linear-gradient(135deg, #334155, #1e293b);
        border-radius: 12px;
        padding: 1rem;
        border: 2px solid #475569;
        transition: all 0.2s;
    }

    .player-card.hidden {
        display: none;
    }

    .player-card.selected {
        border-color: #3b82f6;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    }

    .player-card.dealer.selected {
        border-color: #fbbf24;
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    }

    .player-name {
        font-size: 1.1rem;
        font-weight: 700;
        color: #fbbf24;
        margin-bottom: 0.75rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .player-score {
        font-size: 1.5rem;
        font-weight: 700;
        color: #10b981;
    }

    .player-score.negative {
        color: #ef4444;
    }

    .player-inputs-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .player-inputs-grid input, .player-inputs-grid select {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .quick-value-row {
        display: flex;
        gap: 0.25rem;
        margin-top: 0.35rem;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .quick-value-btn {
        padding: 0.35rem 0.5rem;
        border-radius: 6px;
        border: 1px solid rgba(148, 163, 184, 0.45);
        background: rgba(15, 23, 42, 0.7);
        color: #cbd5e1;
        font-size: 0.85rem;
        font-weight: 700;
        cursor: pointer;
        line-height: 1.2;
        touch-action: manipulation;
        min-width: 38px;
    }

    .quick-value-btn:active {
        transform: scale(0.96);
    }

    .score-prediction {
        margin-top: 0.65rem;
        padding: 0.45rem 0.55rem;
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.65);
        border: 1px solid rgba(100, 116, 139, 0.35);
        font-size: 0.78rem;
        color: #cbd5e1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem;
        flex-wrap: wrap;
    }

    .score-prediction .made {
        color: #86efac;
        font-weight: 700;
    }

    .score-prediction .set {
        color: #fca5a5;
        font-weight: 700;
    }

    .checkbox-group {
        display: flex;
        gap: 1rem;
        margin-top: 0.75rem;
    }

    .checkbox-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        user-select: none;
    }

    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .score-history {
        max-height: 300px;
        overflow-y: auto;
        margin-top: 1rem;
    }

    .history-round {
        background: rgba(51, 65, 85, 0.5);
        padding: 0.75rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    .history-round-header {
        font-weight: 600;
        color: #fbbf24;
        margin-bottom: 0.5rem;
    }

    .history-players {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        padding: 1rem;
        overflow-y: auto;
    }

    .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background: #1e293b;
        border-radius: 16px;
        padding: 2rem;
        max-width: 500px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .modal-header h2 {
        color: #fbbf24;
        font-size: 1.5rem;
    }

    .close-modal {
        background: none;
        border: none;
        color: #f1f5f9;
        font-size: 2rem;
        cursor: pointer;
        line-height: 1;
    }

    .game-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .game-item {
        background: rgba(51, 65, 85, 0.8);
        padding: 1rem;
        border-radius: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .stats-summary-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .stats-tile {
        background: rgba(51, 65, 85, 0.55);
        border: 1px solid rgba(100, 116, 139, 0.45);
        border-radius: 10px;
        padding: 0.75rem;
    }

    .stats-tile-label {
        color: #94a3b8;
        font-size: 0.78rem;
        margin-bottom: 0.3rem;
    }

    .stats-tile-value {
        color: #f8fafc;
        font-size: 1.2rem;
        font-weight: 700;
    }

    .stats-table-wrap {
        overflow: auto;
        max-height: 60vh;
        border: 1px solid rgba(100, 116, 139, 0.35);
        border-radius: 10px;
    }

    .stats-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 760px;
        font-size: 0.9rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 0.6rem;
        text-align: left;
        border-bottom: 1px solid rgba(71, 85, 105, 0.6);
        white-space: nowrap;
    }

    .stats-table th {
        color: #fbbf24;
        background: rgba(15, 23, 42, 0.8);
        position: sticky;
        top: 0;
        z-index: 1;
    }

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

    .stats-table th:first-child,
    .stats-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: rgba(15, 23, 42, 0.95);
    }

    .stats-table th:first-child {
        z-index: 3;
    }

    .stats-table td:first-child {
        background: rgba(30, 41, 59, 0.9);
    }

    .stats-source-note {
        color: #94a3b8;
        font-size: 0.82rem;
        margin-top: 0.75rem;
    }

    .stats-section-title {
        color: #fbbf24;
        margin: 1rem 0 0.75rem;
        font-size: 1.05rem;
    }

    .stats-mini-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .stats-mini-card {
        background: rgba(51, 65, 85, 0.4);
        border: 1px solid rgba(100, 116, 139, 0.4);
        border-radius: 10px;
        padding: 0.65rem 0.75rem;
    }

    .stats-mini-label {
        color: #94a3b8;
        font-size: 0.76rem;
        margin-bottom: 0.35rem;
    }

    .stats-mini-value {
        color: #e2e8f0;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .stat-tooltip {
        position: relative;
        display: inline-flex;
        align-items: center;
        cursor: help;
        border-bottom: 1px dotted rgba(251, 191, 36, 0.45);
        line-height: 1.2;
    }

    .stat-tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 0;
        right: auto;
        top: calc(100% + 0.45rem);
        transform: translateX(0) translateY(-4px);
        min-width: 180px;
        max-width: min(260px, 80vw);
        box-sizing: border-box;
        background: rgba(15, 23, 42, 0.98);
        color: #e2e8f0;
        border: 1px solid rgba(251, 191, 36, 0.28);
        border-radius: 10px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
        padding: 0.6rem 0.7rem;
        font-size: 0.78rem;
        font-weight: 500;
        line-height: 1.45;
        white-space: normal;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
        pointer-events: none;
        z-index: 20;
    }

    .stat-tooltip.flip-right::after {
        left: auto;
        right: 0;
    }

    .stat-tooltip:hover::after,
    .stat-tooltip:focus-visible::after {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .game-info h3 {
        color: #fbbf24;
        margin-bottom: 0.25rem;
    }

    .game-info p {
        color: #cbd5e1;
        font-size: 0.85rem;
    }

    .game-actions {
        display: flex;
        gap: 0.5rem;
    }

    .btn-small {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .hidden {
        display: none !important;
    }

    .final-scores {
        background: linear-gradient(135deg, #064e3b, #065f46);
        padding: 1.5rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .final-scores h3 {
        color: #fbbf24;
        margin-bottom: 1rem;
        text-align: center;
    }

    .final-ranking {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .rank-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(0, 0, 0, 0.3);
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    .rank-item.first {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: #0f172a;
    }

    .rank-position {
        font-size: 1.5rem;
        font-weight: 700;
        width: 50px;
    }

    .rank-name {
        flex: 1;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .rank-score {
        font-size: 1.3rem;
        font-weight: 700;
    }

    @media (max-width: 640px) {

        .sticky-round-info {
            margin-top: 0.45rem;
            padding: 0 0.5rem;
        }

        .round-summary {
            padding: 0.45rem 0.55rem;
            gap: 0.35rem;
        }

        .round-summary-top {
            gap: 0.35rem;
        }

        .round-summary .leader-pill {
            font-size: 0.76rem;
            padding: 0.24rem 0.42rem;
        }

        .round-summary .meta-chip {
            font-size: 0.7rem;
            padding: 0.14rem 0.35rem;
        }

        .round-summary .bid-tracker {
            font-size: 0.72rem;
            padding: 0.22rem 0.42rem;
        }
    }

    @media (max-width: 480px) {
        .sticky-round-info {
            padding: 0 0.35rem;
        }

        .round-summary {
            padding: 0.38rem 0.45rem;
            gap: 0.28rem;
        }

        .round-summary .leader-pill {
            font-size: 0.68rem;
            padding: 0.18rem 0.32rem;
            max-width: 60%;
        }

        .round-summary .meta-chip {
            font-size: 0.63rem;
            padding: 0.12rem 0.28rem;
        }

        .round-summary .bid-tracker {
            font-size: 0.66rem;
            padding: 0.16rem 0.32rem;
        }
    }

    @media (max-width: 400px) {
        .trump-section__selects {
            flex-direction: column;
        }
        .trump-custom-select {
            min-width: 0;
            width: 100%;
        }
    }

/* ── Adjustment buttons (+/−) ─────────────────────────────────────────────── */
.btn-adjust {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    touch-action: manipulation;
    border-width: 1px;
    border-style: solid;
    background: none;
}
.btn-adjust--sm { width: 32px; height: 32px; font-size: 1.1rem; }
.btn-adjust--dec { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); color: #fca5a5; }
.btn-adjust--inc { background: rgba(34,197,94,0.2);  border-color: rgba(34,197,94,0.4);  color: #86efac; }
.btn-adjust:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-adjust:not(:disabled):hover { opacity: 0.85; }

/* ── Value displays (bid / tax / hand-size numbers) ───────────────────────── */
.value-display {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    min-width: 40px;
}
.value-display--bid  { color: #3b82f6; }
.value-display--tax  { color: #f59e0b; }
.value-display--hand { color: #fbbf24; font-size: 1rem; min-width: 34px; }

/* ── Trump card section ───────────────────────────────────────────────────── */
.trump-section {
    background: rgba(251,191,36,0.15);
    border: 2px solid rgba(251,191,36,0.35);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.trump-section__row    { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.trump-section__label  { color: #fbbf24; font-weight: 600; font-size: 1rem; }
.trump-section__selects { display: flex; gap: 0.5rem; flex: 1; min-width: 220px; flex-wrap: wrap; }
.conf-custom-select {
    position: relative;
    width: 100%;
}

.conf-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    background: #1e293b;
    border: 2px solid #475569;
    color: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
}

.conf-select-btn:hover {
    border-color: #3b82f6;
}

.conf-select-arrow {
    color: #94a3b8;
    font-size: 0.75em;
    flex-shrink: 0;
}

.conf-select-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.conf-select-panel.open {
    display: block;
}

.conf-select-option {
    padding: 0.4rem 0.6rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.conf-select-option:hover {
    background: #273449;
}

.conf-select-option.selected {
    color: #60a5fa;
    font-weight: 600;
}

.trump-custom-select {
    position: relative;
    flex: 1;
    min-width: 110px;
}

.trump-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    background: rgba(15,23,42,0.8);
    border: 2px solid #fbbf24;
    color: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
}

.trump-select-btn:hover {
    border-color: #fde68a;
}

.trump-select-arrow {
    color: #fbbf24;
    font-size: 0.8em;
    flex-shrink: 0;
}

.trump-select-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #1e293b;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    z-index: 200;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.trump-select-panel.open {
    display: block;
}

.trump-select-option {
    padding: 0.5rem 0.75rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

.trump-select-option:hover {
    background: #273449;
}

.trump-select-option.selected {
    color: #fbbf24;
    font-weight: 600;
}
.trump-badge {
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(251,191,36,0.2);
    border-radius: 8px;
}

/* ── Misc utility classes ─────────────────────────────────────────────────── */
.field-label  { font-size: 0.8rem; color: #cbd5e1; }
.field-row    { display: flex; gap: 0.25rem; align-items: center; }
.field-row--spaced { gap: 0.5rem; margin-top: 0.25rem; }
.position-up   { color: #10b981; }
.position-down { color: #ef4444; }
.col-span-2    { grid-column: span 2; }
.post-round-actions      { display: flex; gap: 0.5rem; margin-top: 1rem; flex-direction: column; }
.post-round-actions__row { display: flex; gap: 0.5rem; }
.post-round-actions__row .btn--flex-1 { flex: 1; }
.post-round-actions__row .btn--flex-2 { flex: 2; }
.post-round-actions > .btn { padding: 0.75rem; }
.btn-full { width: 100%; margin-top: 1rem; padding: 1rem; font-size: 1.1rem; }

/* ── Score history ─────────────────────────────────────────────────────────── */
.history-round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.history-player-entry { line-height: 1.4; }
.score-positive { color: #10b981; font-weight: 600; }
.score-negative { color: #ef4444; font-weight: 600; }
