/* civilizations.css - только для вкладки CIV+ */
/* Все классы с префиксом civp- для избежания конфликтов */

/* ===== Переменные ===== */
:root {
    --civp-bg: #07111d;
    --civp-bg-secondary: #0b1725;
    --civp-surface: #101d2c;
    --civp-surface-2: #132233;
    --civp-surface-hover: #17283b;
    --civp-border: #22354a;
    --civp-border-soft: #18293b;
    --civp-text: #f2f5f9;
    --civp-text-secondary: #a7b1c0;
    --civp-text-muted: #748399;
    --civp-gold: #f2c94c;
    --civp-gold-light: #ffd76a;
    --civp-gold-dark: #9b7a2b;
    --civp-gold-bg: rgba(242, 201, 76, 0.1);
    --civp-success: #39d98a;
    --civp-success-bg: rgba(57, 217, 138, 0.1);
    --civp-danger: #ff5d67;
    --civp-danger-bg: rgba(255, 93, 103, 0.1);
    --civp-blue: #4b8dff;
    --civp-blue-bg: rgba(75, 141, 255, 0.1);
    --civp-team-1: #3b82f6;
    --civp-team-1-bg: rgba(59, 130, 246, 0.06);
    --civp-team-1-border: rgba(59, 130, 246, 0.35);
    --civp-team-2: #ef5350;
    --civp-team-2-bg: rgba(239, 83, 80, 0.06);
    --civp-team-2-border: rgba(239, 83, 80, 0.35);
    --civp-radius-sm: 8px;
    --civp-radius-md: 10px;
    --civp-radius-lg: 14px;
    --civp-radius-xl: 18px;
    --civp-border-hover: #2d435c;
    --civp-gold-border: rgba(242, 201, 76, 0.22);
    --civp-row-bg: rgba(16, 29, 44, 0.72);
    --civp-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    --civ-gold: #ffd700;
    --civ-gold-rgb: 255, 215, 0;
    --civ-dark-bg: #1e2a3a;
    --civ-darker-bg: #15232e;
    --civ-border: #4a5a6a;
    --civ-border-light: #5a6a7a;
    --civ-border-dashed: #3a4a5a;
    --civ-text-light: #8a9aa8;
    --civ-error: #ff6b6b;
    --civ-team1: #2a6f97;
    --civ-team2: #c44545;
    --civ-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --civ-transition: all 0.2s ease;
}

/* ===== Базовые стили ===== */
.civ-plus-container {
    padding-bottom: 6px;
}

.civ-plus-container .page-title {
    margin-bottom: 14px;
}

.civp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px;
}

/* ===== Состояния ===== */
.civp-loading,
.civp-error,
.civp-no-game {
    text-align: center;
    border-radius: 12px;
    margin-top: 20px;
}

.civp-loading {
    padding: 40px;
    color: var(--civ-gold);
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
}

.civp-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid var(--civ-gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: civp-spin 1s linear infinite;
}

.civp-error {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid var(--civ-error);
    padding: 20px;
    color: var(--civ-error);
    font-size: 1.1rem;
}

.civp-view-results {
    margin-top: 14px;
}

/* ===== Заглушка "нет созданного пика" ===== */
.civp-no-game {
    padding: 60px 30px;
    background: linear-gradient(180deg, rgba(37, 44, 62, 0.88), rgba(22, 27, 39, 0.94));
    border-radius: 16px;
    border: 1px dashed var(--civ-border-dashed);
    margin: 30px 0;
    box-shadow: var(--civ-shadow);
    transition: var(--civ-transition);
}

.civp-no-game:hover {
    border-color: var(--civ-gold);
    background: linear-gradient(145deg, #1f2b3b, #16242f);
    box-shadow: 0 12px 30px rgba(var(--civ-gold-rgb), 0.1);
    transform: translateY(-2px);
}

.civp-no-game::before {
    content: '🏛️';
    display: block;
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.6;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    transition: var(--civ-transition);
}

.civp-no-game:hover::before {
    opacity: 0.8;
    transform: scale(1.05);
}

.civp-no-game h3 {
    color: var(--civ-gold);
    font-size: clamp(1.2rem, 5vw, 2rem);
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Иконка (для обратной совместимости) */
.civp-no-game-icon {
    font-size: 6rem;
    margin-bottom: 25px;
    opacity: 0.7;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

/* ===== Контейнер игры ===== */
.civp-game-container {
    margin-top: 20px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(43, 50, 70, 0.94), rgba(24, 29, 42, 0.98)),
        linear-gradient(145deg, #2a2f42, #1e2332);
    border-radius: 12px;
    border: 1px solid rgba(126, 136, 164, 0.22);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.civp-game-container.ui-reveal {
    border-color: rgba(255, 224, 138, 0.38);
    box-shadow:
        0 0 0 2px rgba(255, 224, 138, 0.12),
        0 0 24px rgba(255, 224, 138, 0.16),
        0 16px 38px rgba(0, 0, 0, 0.26);
}

.civp-game-header {
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 223, 143, 0.18);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.civp-game-header h3 {
    color: var(--civ-gold);
    font-size: 1.5rem;
    margin: 0 0 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.civp-game-meta {
    color: var(--civ-text-light);
    font-size: 0.76rem;
}

.civp-game-creator-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.civp-meta-item {
    min-width: 176px;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 223, 143, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.civp-meta-label {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 244, 214, 0.7);
    white-space: nowrap;
}

.civp-meta-value {
    display: inline-block;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.civp-game-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.civp-pick-mode-badge {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #dbe7f5;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(8, 14, 24, 0.35);
    white-space: nowrap;
}

.civp-header-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-top: 0;
    min-width: 0;
}

.civp-average-diff {
    max-width: fit-content;
    margin: 0;
    color: rgba(245, 248, 255, 0.92);
    background: linear-gradient(180deg, rgba(74, 90, 106, 0.26), rgba(43, 56, 72, 0.34));
    border: 2px solid rgba(88, 152, 96, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.civp-average-diff-neutral {
    color: rgba(245, 248, 255, 0.9);
    border-color: rgba(88, 152, 96, 0.55);
}

.civp-average-diff-warning {
    color: #fff1c7;
    border-color: rgba(212, 180, 84, 0.6);
}

.civp-average-diff-alert {
    color: #ffe0c2;
    border-color: rgba(214, 132, 63, 0.62);
}

.civp-expire-info {
    color: var(--civ-gold);
    background: rgba(var(--civ-gold-rgb), 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* ===== Лейаут команд ===== */
.civp-teams-layout {
    display: flex;
    gap: 25px;
    justify-content: space-between;
}

.civp-team-left,
.civp-team-right {
    flex: 1;
    background: rgba(24, 29, 42, 0.58);
    border-radius: 9px;
    padding: 16px;
    border: 1px solid rgba(126, 136, 164, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.civp-team-board {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.civp-team-roster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
}

.civp-team-player-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 42px 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9rem;
    min-width: 0;
    width: 100%;
    transition: var(--civ-transition);
}

.civp-team-player-name {
    color: inherit;
    font-size: 0.84rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.civp-team-player-dropzone {
    max-width: 100%;
}

.civp-team1-player-tag {
    border-color: rgba(87, 143, 196, 0.4);
    background: linear-gradient(180deg, rgba(42, 78, 112, 0.3), rgba(22, 34, 49, 0.42));
}

.civp-team2-player-tag {
    border-color: rgba(196, 93, 93, 0.42);
    background: linear-gradient(180deg, rgba(106, 45, 45, 0.28), rgba(41, 22, 22, 0.42));
}

.civp-team-roster > :last-child:nth-child(odd) {
    grid-column: 1 / span 2;
    justify-self: center;
    width: min(100%, 320px);
}

.civp-team-player-civ-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin-left: 0;
    margin-right: 2px;
    flex-wrap: wrap;
    order: -1;
}

.civp-team-player-civ-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(130, 154, 182, 0.22);
    cursor: grab;
    transition: var(--civ-transition);
}

.civp-team-player-civ-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(174, 203, 235, 0.38);
}

.civp-team-player-civ-chip .civp-civ-icon-container {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 999px;
}

.civp-team-player-rating-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 5px 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(14, 20, 30, 0.96), rgba(26, 36, 52, 0.94));
    border: 1px solid rgba(255, 223, 143, 0.34);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
    transform: none;
}

.civp-rating-high {
    color: #ff7b7b !important;
}

.civp-rating-upper-mid {
    color: #ffb15a !important;
}

.civp-rating-mid {
    color: #f1d56a !important;
}

.civp-rating-muted {
    color: rgba(245, 248, 255, 0.72) !important;
}

.civp-team-player-rating-badge.civp-rating-high {
    color: #ff7b7b !important;
}

.civp-team-player-rating-badge.civp-rating-upper-mid {
    color: #ffb15a !important;
}

.civp-team-player-rating-badge.civp-rating-mid {
    color: #f1d56a !important;
}

.civp-team-player-rating-badge.civp-rating-muted {
    color: rgba(245, 248, 255, 0.72) !important;
}

.civp-team-player-tag.current-user {
    border-color: rgba(255, 223, 143, 0.4);
    color: #ffdf8f;
}

.civp-drop-target-active {
    border-color: rgba(116, 181, 255, 0.68) !important;
    box-shadow: 0 0 0 2px rgba(71, 120, 176, 0.22), inset 0 0 0 1px rgba(165, 208, 255, 0.18);
    background: rgba(46, 70, 96, 0.42) !important;
}

.civp-team-average-rating {
    margin-top: -10px;
    margin-bottom: 14px;
    text-align: center;
    font-size: 0.84rem;
    color: rgba(255, 244, 214, 0.72);
}

.civp-team-civs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.civp-local-civ-pool {
    min-height: 52px;
    padding: 4px;
    border: 1px dashed rgba(122, 139, 158, 0.24);
    border-radius: 10px;
}

.civp-team-header h4 {
    color: #ffdf8f;
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 223, 143, 0.16);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.civp-players-left,
.civp-players-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Строка игрока ===== */
.civp-player-row {
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(36, 43, 59, 0.92), rgba(24, 30, 43, 0.94)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.035), transparent 64%);
    border-radius: 9px;
    padding: 8px 10px;
    border: 1px solid rgba(126, 136, 164, 0.18);
    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.civp-player-row:hover {
    background:
        linear-gradient(180deg, rgba(43, 52, 70, 0.96), rgba(28, 36, 51, 0.98)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.06), transparent 64%);
    border-color: rgba(255, 223, 143, 0.26);
    box-shadow:
        0 7px 16px rgba(0, 0, 0, 0.24),
        0 0 10px rgba(255, 223, 143, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

.civp-current-player {
    border-left: 4px solid var(--civ-gold);
    background:
        linear-gradient(180deg, rgba(48, 44, 35, 0.94), rgba(31, 31, 34, 0.96)),
        linear-gradient(145deg, rgba(var(--civ-gold-rgb), 0.12), transparent 64%);
}

.civp-player-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.civp-player-nickname-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex: 1;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 2px 4px;
    transition: var(--civ-transition);
}

.civp-player-civ-dropzone {
    align-items: center;
}

.civp-player-civ-dropzone.has-civ-selection {
    background: rgba(255, 223, 143, 0.06);
    border-color: rgba(255, 223, 143, 0.16);
}

.civp-player-drop-target-active {
    background: rgba(46, 70, 96, 0.52);
    border-color: rgba(116, 181, 255, 0.68);
    box-shadow: 0 0 0 2px rgba(71, 120, 176, 0.2);
}

.civp-player-selected-civ {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 223, 143, 0.1);
    border: 1px solid rgba(255, 223, 143, 0.28);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    flex: 0 0 auto;
}

.civp-player-selected-civ .civp-civ-icon-container {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 999px;
}

.civp-player-number {
    min-width: 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.civp-player-number.team1-number {
    background: var(--civ-team1);
}

.civp-player-number.team2-number {
    background: var(--civ-team2);
}

.civp-player-nickname {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.civp-player-rating {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 244, 214, 0.58);
    letter-spacing: 0.01em;
}

/* ===== Цивилизации ===== */
.civp-player-civs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.civp-civ-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background:
        linear-gradient(180deg, rgba(58, 70, 91, 0.96), rgba(31, 42, 58, 0.98)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.08), transparent 62%);
    border-radius: 6px;
    border: 1px solid rgba(255, 223, 143, 0.24);
    box-shadow:
        0 7px 16px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--civ-transition);
    min-width: 0;
    flex: 1 1 calc(33.333% - 6px);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
}

.civp-civ-card-draggable,
.civp-player-civ-draggable {
    cursor: grab;
}

.civp-civ-card-static {
    position: relative;
    cursor: default;
    opacity: 0.72;
}

.civp-civ-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 223, 143, 0.5);
    box-shadow:
        0 9px 20px rgba(0, 0, 0, 0.3),
        0 0 14px rgba(255, 223, 143, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(66, 80, 104, 0.98), rgba(36, 49, 68, 0.98)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.12), transparent 62%);
}

.civp-civ-card:active {
    transform: scale(0.98);
}

.civp-dragging {
    opacity: 0.5;
}

.civp-civ-card.civp-civ-selected {
    border-color: rgba(255, 223, 143, 0.72);
    box-shadow:
        0 9px 20px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 223, 143, 0.14),
        0 0 18px rgba(255, 223, 143, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Затемненное состояние */
.civp-civ-card.civp-dimmed {
    opacity: 0.4;
    background: linear-gradient(135deg, #1a2533, #0f1a24);
    border-color: var(--civ-border-dashed);
    filter: grayscale(0.7);
}

.civp-civ-card.civp-dimmed:hover {
    opacity: 0.6;
    border-color: var(--civ-text-light);
    transform: translateY(-1px);
}

.civp-civ-card.civp-dimmed .civp-civ-name {
    color: var(--civ-text-light);
}

.civp-civ-card.civp-dimmed .civp-civ-icon {
    opacity: 0.6 !important;
    filter: grayscale(0.8);
}

/* Иконки цивилизаций */
.civp-civ-icon-container {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e2a3a;
    border-radius: 5px;
    overflow: hidden;
    line-height: 0;
}

.civp-civ-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: opacity 0.3s ease, filter 0.2s ease;
    display: block;
}

.civp-civ-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--civ-border-dashed);
    color: var(--civ-gold);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.civp-civ-name {
    color: var(--civ-gold);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    flex: 1;
    min-width: 0;
    transition: color 0.2s ease;
}

/* ===== Анимации ===== */
@keyframes civp-spin {
    to { transform: rotate(360deg); }
}

@keyframes civp-pulse {
    0% {
        border-color: var(--civ-border-dashed);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    50% {
        border-color: var(--civ-gold);
        box-shadow: 0 12px 30px rgba(var(--civ-gold-rgb), 0.15);
    }
    100% {
        border-color: var(--civ-border-dashed);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
}

.civp-no-game-pulse {
    animation: civp-pulse 2s ease-in-out infinite;
}

/* ===== Кнопки ===== */
.mode-btn.civ-plus-split-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #666;
    color: #999;
}

.mode-btn.civ-plus-split-btn.disabled:hover {
    background-color: #666;
    transform: none;
    box-shadow: none;
}

.mode-btn.civ-plus-split-btn {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.1;
}

#civ-plus-split-btn:not(.disabled):not(.cooldown-active) {
    background: linear-gradient(145deg, #273848, #1f2b3a);
    color: #dceaf0;
    border-color: rgba(118, 151, 166, 0.58);
}

#civ-plus-split-btn:not(.disabled):not(.cooldown-active):hover {
    background: linear-gradient(145deg, #304556, #253447);
    border-color: rgba(151, 181, 194, 0.74);
    box-shadow: 0 0 12px rgba(118, 151, 166, 0.16);
}

.mode-btn.civ-plus-split-btn.cooldown-active {
    border-color: rgba(255, 223, 143, 0.55);
    box-shadow: 0 0 14px rgba(255, 223, 143, 0.18);
}

.mode-btn.civ-plus-split-btn .civ-plus-countdown-value {
    color: #ff8f5a;
    font-weight: 800;
    margin-left: 4px;
    text-shadow: 0 0 8px rgba(255, 143, 90, 0.28);
}

.civ-plus-status-message {
    display: block;
    margin-top: 2px;
    color: rgba(255, 223, 143, 0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: normal;
}

.civ-plus-status-message.cooldown-active {
    color: #ffb86b;
}

#civ-plus-actions-row[style*="display: none"] + .civ-plus-status-message {
    display: none !important;
}

.civ-plus-modal-content {
    max-width: 478px;
    width: min(478px, calc(100% - 24px));
    text-align: center;
}

.civ-plus-modal-text {
    margin: 14px 0 18px;
    color: #fff9e7;
    font-size: 15px;
    line-height: 1.38;
}

.civ-plus-modal-split-number {
    color: #ff8f5a;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 143, 90, 0.28);
}

.civ-plus-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.civ-plus-option-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.civ-plus-option-title {
    color: #ffdf8f;
    font-size: 1.05rem;
    font-weight: 700;
}

.civ-plus-option-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.civ-plus-option-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.civ-plus-option-groups {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.civ-plus-option-group {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.civ-plus-option-group-player {
    background: linear-gradient(180deg, rgba(42, 111, 151, 0.16), rgba(24, 44, 64, 0.26));
    border-color: rgba(89, 170, 214, 0.24);
}

.civ-plus-option-group-team {
    background: linear-gradient(180deg, rgba(196, 69, 69, 0.14), rgba(68, 24, 24, 0.24));
    border-color: rgba(224, 127, 127, 0.22);
}

.civ-plus-option-group-draft {
    background: linear-gradient(180deg, rgba(186, 146, 74, 0.14), rgba(66, 50, 20, 0.24));
    border-color: rgba(214, 181, 110, 0.24);
}

.civ-plus-option-group-team.locked,
.civ-plus-option-group-draft.locked {
    opacity: 0.72;
}

.civ-plus-option-group-title {
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff2c7;
}

.civ-plus-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 223, 143, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff4d6;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.civ-plus-option-row-player {
    background: rgba(81, 154, 196, 0.08);
    border-color: rgba(89, 170, 214, 0.18);
}

.civ-plus-option-row-team {
    background: rgba(199, 92, 92, 0.08);
    border-color: rgba(224, 127, 127, 0.18);
}

.civ-plus-option-row-draft {
    background: rgba(201, 163, 89, 0.08);
    border-color: rgba(214, 181, 110, 0.2);
}

.civ-plus-option-row.locked {
    cursor: not-allowed;
    opacity: 0.78;
}

.civ-plus-option-lock {
    margin-left: auto;
}

.civ-plus-option-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.civ-plus-option-mark {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 223, 143, 0.18);
    background: linear-gradient(145deg, rgba(255, 223, 143, 0.12), rgba(255, 184, 107, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.civ-plus-option-mark::after {
    content: '›';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 223, 143, 0.92);
    font-size: 24px;
    font-weight: 700;
    transform: translateX(-1px) scale(0.92);
    opacity: 0.72;
    transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.civ-plus-option-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.civ-plus-option-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff4d6;
}

.civ-plus-option-description {
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 238, 205, 0.74);
}

.civ-plus-option-row:hover:not(.locked) {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.civ-plus-option-row.selected {
    border-color: rgba(255, 223, 143, 0.6);
    background: linear-gradient(145deg, rgba(255, 223, 143, 0.12), rgba(255, 255, 255, 0.06));
    box-shadow: 0 0 0 1px rgba(255, 223, 143, 0.14), 0 12px 26px rgba(0, 0, 0, 0.18);
}

.civ-plus-option-row.selected .civ-plus-option-mark {
    border-color: rgba(255, 223, 143, 0.42);
    background: linear-gradient(145deg, rgba(255, 223, 143, 0.22), rgba(255, 184, 107, 0.12));
    box-shadow: 0 8px 18px rgba(255, 223, 143, 0.12);
}

.civ-plus-option-row.selected .civ-plus-option-mark::after {
    transform: translateX(0) scale(1);
    opacity: 1;
    color: #fff7de;
}

.civ-plus-option-locked-hint {
    margin-top: 10px;
    color: rgba(255, 234, 188, 0.82);
    font-size: 0.85rem;
}

.civ-plus-option-hint {
    color: var(--civ-text-light);
    font-size: 0.95rem;
}

.civ-plus-modal-btn {
    min-width: 120px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.civ-plus-modal-btn.primary {
    background: linear-gradient(145deg, #ffdf8f, #e6c97d);
    color: #181c29;
    border-color: #ffdf8f;
}

.civ-plus-modal-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 223, 143, 0.18);
}

.civ-plus-modal-btn.secondary {
    background: rgba(58, 63, 90, 0.85);
    color: #ffdf8f;
    border-color: rgba(255, 223, 143, 0.22);
}

.civ-plus-modal-btn.secondary:hover {
    background: rgba(70, 76, 106, 0.95);
}

/* ===== Минималистичная версия заглушки ===== */
.civp-no-game-minimal {
    background: transparent !important;
    border: 2px dashed var(--civ-border-dashed) !important;
    box-shadow: none !important;
}

.civp-no-game-minimal:hover {
    background: rgba(30, 42, 58, 0.5) !important;
    border-color: var(--civ-gold) !important;
    transform: none !important;
}

.civp-no-game-minimal::before {
    opacity: 0.3;
    font-size: 4rem;
}

.civp-no-game-minimal h3 {
    color: var(--civ-text-light) !important;
    text-shadow: none !important;
}

.civp-no-game-minimal:hover h3 {
    color: var(--civ-gold) !important;
}

/* ===== Адаптивность ===== */
@media (max-width: 1024px) {
    .civp-teams-layout {
        gap: 15px;
    }

    .civp-team-left,
    .civp-team-right {
        padding: 15px;
    }

    .civp-player-number {
        min-width: 26px;
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .civp-civ-card {
        padding: 5px 6px;
        gap: 5px;
    }

    .civp-civ-name {
        font-size: 0.85rem;
    }

    .civp-draft-overview-bar {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .civp-draft-overview-side-left,
    .civp-draft-overview-side-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .civp-header-badges {
        width: 100%;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .civp-average-diff {
        width: auto;
        max-width: 58%;
        min-width: 0;
        margin-left: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .civ-plus-container .page-title {
        margin-bottom: 10px;
        font-size: 1.25rem;
    }

    .civp-container {
        padding: 7px;
    }

    .civp-game-container {
        margin-top: 12px;
        padding: 16px;
    }

    .civp-game-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .civp-game-header-main,
    .civp-game-meta {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .civp-game-creator-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 8px;
    }

    .civp-meta-item {
        min-width: 0;
        width: 100%;
        white-space: nowrap;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    .civp-meta-value {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .civp-meta-label,
    .civp-meta-value {
        max-width: 100%;
    }

    .civp-meta-label {
        flex: 0 0 auto;
        min-width: 0;
    }

    .civp-meta-value {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: right;
    }

    .civp-pick-mode-badge {
        font-size: 1.2rem;
    }

    .civp-teams-layout {
        flex-direction: column;
        gap: 14px;
    }

    .civp-team-left,
    .civp-team-right {
        width: 100%;
        padding: 13px;
    }

    .civp-team-header h4 {
        margin-bottom: 12px;
        padding-bottom: 8px;
        font-size: 1rem;
    }

    .civp-players-left,
    .civp-players-right {
        gap: 8px;
    }

    .civp-no-game {
        padding: 32px 18px;
        margin: 14px 0;
    }

    .civp-no-game::before {
        font-size: 4rem;
        margin-bottom: 15px;
    }

    .civp-player-header {
        gap: 8px;
        margin-bottom: 6px;
    }

    .civp-player-number {
        min-width: 24px;
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .civp-player-nickname {
        font-size: 1rem;
    }

    .civp-player-civs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .civp-civ-card {
        min-width: 0;
        width: 100%;
        flex: initial;
        padding: 4px 5px;
        gap: 4px;
    }

    .civp-civ-icon-container {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .civp-civ-name {
        font-size: 0.8rem;
    }

    .civ-plus-modal-content {
        max-width: calc(100% - 24px);
    }

    .civ-plus-status-message {
        margin-left: 0;
        white-space: normal;
        text-align: center;
    }

}

@media (max-width: 480px) {
    .civp-average-diff {
        font-size: 0.78rem;
        padding: 4px 8px;
    }

    .civ-plus-container .page-title {
        margin-bottom: 8px;
        font-size: 1.15rem;
    }

    .civp-container {
        padding: 5px;
    }

    .civp-game-container,
    .civp-team-left,
    .civp-team-right {
        padding: 12px;
    }

    .civp-game-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .civp-game-meta,
    .civp-game-creator-meta {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .civp-meta-item {
        padding: 9px 11px;
        gap: 8px;
    }

    .civp-meta-label {
        width: auto;
        font-size: 0.64rem;
    }

    .civp-meta-value {
        width: auto;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .civp-pick-mode-badge {
        font-size: 1.05rem;
    }

    .civp-team-header h4 {
        margin-bottom: 10px;
        padding-bottom: 6px;
        font-size: 0.95rem;
    }

    .civp-player-row {
        padding: 7px 8px;
    }

    .civp-no-game {
        padding: 30px 15px;
    }

    .civp-no-game::before {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .civp-player-header {
        gap: 6px;
    }

    .civp-player-number {
        min-width: 22px;
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .civp-player-nickname {
        font-size: 0.9rem;
    }

    .civp-player-civs {
        gap: 4px;
    }

    .civp-civ-card {
        padding: 3px 4px;
        gap: 3px;
        border-radius: 5px;
    }

    .civp-civ-icon-container {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .civp-civ-name {
        font-size: 0.7rem;
        letter-spacing: -0.01em;
        line-height: 1.1;
    }
}

@media (max-width: 390px) {
    .civ-plus-container .page-title {
        font-size: 1.05rem;
        margin-bottom: 7px;
    }

    .civp-container {
        padding: 4px;
    }

    .civp-game-container,
    .civp-team-left,
    .civp-team-right {
        padding: 10px;
    }

    .civp-game-container {
        margin-top: 8px;
    }

    .civp-game-header {
        margin-bottom: 8px;
        padding-bottom: 7px;
    }

    .civp-pick-mode-badge {
        font-size: 0.98rem;
    }

    .civp-team-header h4 {
        margin-bottom: 8px;
        padding-bottom: 5px;
        font-size: 0.9rem;
    }

    .civp-player-row {
        padding: 6px 7px;
    }

    .civp-player-header {
        gap: 5px;
        margin-bottom: 6px;
    }

    .civp-player-civs {
        gap: 3px;
    }

    .civp-civ-card {
        padding: 2px 3px;
        gap: 2px;
    }

    .civp-civ-icon-container {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .civp-civ-name {
        font-size: 0.66rem;
        letter-spacing: -0.015em;
    }
}

/* ===== Темная тема ===== */
@media (prefers-color-scheme: dark) {
    .civp-game-container {
        background:
            linear-gradient(180deg, rgba(43, 50, 70, 0.94), rgba(24, 29, 42, 0.98)),
            linear-gradient(145deg, #2a2f42, #1e2332);
    }

    .civp-no-game {
        background: linear-gradient(145deg, #1a2533, #121e28);
    }

    .civp-no-game:hover {
        background: linear-gradient(145deg, #1c2735, #13202a);
    }
}

/* ===== Заглушка "Нет созданного пика цивилизаций" ===== */
.civ-no-game {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(145deg, var(--civ-dark-bg), var(--civ-darker-bg));
    border-radius: 16px;
    border: 2px dashed var(--civ-border-dashed);
    margin: 30px 0;
    box-shadow: var(--civ-shadow);
    transition: var(--civ-transition);
}

.civ-no-game:hover {
    border-color: var(--civ-gold);
    background: linear-gradient(145deg, #1f2b3b, #16242f);
    box-shadow: 0 12px 30px rgba(var(--civ-gold-rgb), 0.1);
    transform: translateY(-2px);
}

.civ-no-game::before {
    content: '🏛️';
    display: block;
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.6;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    transition: var(--civ-transition);
}

.civ-no-game:hover::before {
    opacity: 0.8;
    transform: scale(1.05);
}

.civ-no-game h3 {
    color: var(--civ-gold);
    font-size: clamp(1.2rem, 5vw, 2rem);
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Анимация пульсации */
@keyframes civ-pulse {
    0% {
        border-color: var(--civ-border-dashed);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    50% {
        border-color: var(--civ-gold);
        box-shadow: 0 12px 30px rgba(var(--civ-gold-rgb), 0.15);
    }
    100% {
        border-color: var(--civ-border-dashed);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
}

.civ-no-game-pulse {
    animation: civ-pulse 2s ease-in-out infinite;
}

/* Минималистичная версия */
.civ-no-game-minimal {
    background: transparent !important;
    border: 2px dashed var(--civ-border-dashed) !important;
    box-shadow: none !important;
}

.civ-no-game-minimal:hover {
    background: rgba(30, 42, 58, 0.5) !important;
    border-color: var(--civ-gold) !important;
    transform: none !important;
}

.civ-no-game-minimal::before {
    opacity: 0.3;
    font-size: 4rem;
}

.civ-no-game-minimal h3 {
    color: var(--civ-text-light) !important;
    text-shadow: none !important;
}

.civ-no-game-minimal:hover h3 {
    color: var(--civ-gold) !important;
}

/* Адаптивность для заглушки */
@media (max-width: 768px) {
    .civ-no-game {
        padding: 40px 20px;
        margin: 20px 0;
    }

    .civ-no-game::before {
        font-size: 4rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .civ-no-game {
        padding: 30px 15px;
    }

    .civ-no-game::before {
        font-size: 3rem;
        margin-bottom: 10px;
    }
}

/* Темная тема для заглушки */
@media (prefers-color-scheme: dark) {
    .civ-no-game {
        background: linear-gradient(145deg, #1a2533, #121e28);
    }

    .civ-no-game:hover {
        background: linear-gradient(145deg, #1c2735, #13202a);
    }
}

/* ===== Draft ===== */
.civp-draft-container {
    overflow: hidden;
}

.civp-draft-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr minmax(240px, 320px);
    gap: 18px;
    align-items: start;
    background: rgba(7, 22, 36, 0.5);
}

.civp-draft-overview-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 12px;
}

.civp-draft-container .civp-game-header .civp-draft-overview-bar {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
}

.civp-draft-overview-side {
    display: flex;
    align-items: center;
    min-height: 30px;
}

.civp-draft-overview-side-left {
    justify-content: flex-start;
}

.civp-draft-overview-side-right {
    justify-content: flex-end;
}

.civp-draft-overview-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.civp-draft-overview-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37, 47, 63, 0.96), rgba(19, 26, 37, 0.96));
    border: 1px solid rgba(122, 139, 158, 0.22);
    color: rgba(242, 247, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.civp-draft-overview-timer {
    min-width: 142px;
    min-height: 36px;
    padding: 7px 14px;
    font-size: 0.96rem;
    color: #fff8dd;
    background: linear-gradient(180deg, rgba(110, 84, 30, 0.96), rgba(52, 42, 24, 0.98));
    border-color: rgba(255, 223, 143, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 223, 143, 0.12), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.civp-draft-overview-timer.is-expiring {
    color: #ffd8a8;
    border-color: rgba(214, 132, 63, 0.4);
    box-shadow: 0 0 0 1px rgba(214, 132, 63, 0.2), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.civp-draft-overview-remaining {
    color: #dfeaff;
    border-color: rgba(100, 144, 190, 0.28);
}

.civp-draft-overview-muted {
    color: rgba(221, 230, 242, 0.72);
}

.civp-draft-center {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.civp-draft-status-card {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 115px 1px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: min(700px, 100%);
    box-sizing: border-box;
    margin: 0 auto 6px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(10, 25, 39, 0.96), rgba(5, 17, 29, 0.98));
    border: 1px solid rgba(193, 145, 52, 0.58);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 225, 145, 0.04);
}

.civp-draft-status-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f0cd72;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(219, 163, 54, 0.16);
}

.civp-draft-status-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    color: #e8bf56;
}

.civp-draft-status-divider {
    width: 1px;
    height: 54px;
    background: linear-gradient(to bottom, transparent,
        rgba(210, 161, 65, 0.9) 18%,
        rgba(210, 161, 65, 0.9) 82%, transparent);
}

.civp-draft-status-subcopy {
    color: #c6ccd4;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 12.75px;
    font-weight: 400;
    line-height: 1.48;
    letter-spacing: 0.005em;
}

.civp-draft-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.civp-draft-civ-card {
    position: relative;
    width: 100%;
    overflow: visible;
    border: 1px solid rgba(255, 223, 143, 0.12);
    background: linear-gradient(180deg, rgba(42, 49, 67, 0.96), rgba(18, 24, 35, 0.96));
}

.civp-draft-card-available:hover {
    border-color: rgba(255, 223, 143, 0.45);
    transform: translateY(-2px);
}

.civp-draft-card-locked {
    opacity: 0.72;
}

.civp-draft-card-selected {
    border-color: rgba(255, 223, 143, 0.78);
    box-shadow: 0 0 0 2px rgba(255, 223, 143, 0.18), 0 14px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.civp-draft-card-banned {
    opacity: 0.66;
    filter: grayscale(0.18);
}

.civp-draft-card-leftover {
    opacity: 0.58;
    filter: grayscale(0.8);
    background: linear-gradient(180deg, rgba(69, 75, 87, 0.92), rgba(35, 39, 49, 0.96));
    border-color: rgba(176, 184, 198, 0.18);
}

.civp-draft-card-leftover .civp-civ-name {
    color: rgba(233, 238, 245, 0.78);
}

.civp-draft-card-leftover .civp-draft-order-badge {
    background: linear-gradient(180deg, rgba(74, 81, 94, 0.96), rgba(47, 52, 63, 0.94));
    color: rgba(240, 244, 250, 0.88);
    border-color: rgba(197, 205, 217, 0.2);
}

.civp-draft-card-picked.civp-draft-team1 {
    background: linear-gradient(180deg, rgba(109, 191, 255, 0.28), rgba(29, 55, 84, 0.95));
    border-color: rgba(144, 210, 255, 0.5);
}

.civp-draft-card-picked.civp-draft-team2 {
    background: linear-gradient(180deg, rgba(255, 162, 162, 0.24), rgba(86, 33, 33, 0.95));
    border-color: rgba(255, 176, 176, 0.45);
}

.civp-draft-order-badge {
    position: absolute;
    top: -9px;
    right: -9px;
    z-index: 2;
    padding: 5px 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(14, 20, 30, 0.96), rgba(26, 36, 52, 0.94));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 223, 143, 0.34);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
}

.civp-draft-ban-cross {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.civp-draft-ban-cross::before,
.civp-draft-ban-cross::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58%;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 155, 155, 0.9);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    transform-origin: center;
}

.civp-draft-ban-cross::before {
    transform: translate(-50%, -50%) rotate(34deg);
}

.civp-draft-ban-cross::after {
    transform: translate(-50%, -50%) rotate(-34deg);
}

.civp-draft-team-board {
    min-height: 100%;
}

.civp-draft-team-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.civp-draft-team-board-turn-active {
    position: relative;
    border-width: 1px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.025);
}

.civp-draft-team-board-turn-team1 {
    border-color: rgba(116, 188, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(116, 188, 255, 0.11),
        0 8px 22px rgba(57, 126, 201, 0.08);
}

.civp-draft-team-board-turn-team2 {
    border-color: rgba(255, 146, 146, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 146, 146, 0.11),
        0 8px 22px rgba(177, 70, 70, 0.08);
}

.civp-draft-team-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.civp-draft-team-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.civp-draft-turn-callout {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.civp-draft-turn-callout-team1 {
    color: #edf7ff;
    background: linear-gradient(180deg, rgba(80, 136, 206, 0.9), rgba(40, 81, 140, 0.96));
    border: 1px solid rgba(157, 201, 255, 0.34);
}

.civp-draft-turn-callout-team2 {
    color: #fff1f1;
    background: linear-gradient(180deg, rgba(191, 90, 90, 0.9), rgba(120, 44, 44, 0.96));
    border: 1px solid rgba(255, 178, 178, 0.34);
}

.civp-draft-turn-callout-placeholder {
    width: 132px;
    opacity: 0;
    pointer-events: none;
}

.civp-draft-mini-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
}

.civp-draft-team-actions {
    display: flex;
    gap: 10px;
    margin: 14px 0;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
}

.civp-draft-picker-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 10px;
}

.civp-draft-picker-label {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 223, 143, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #f6d878;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.civp-draft-picker-label:empty {
    display: none;
}

.civp-draft-picker-label.is-empty {
    color: rgba(255, 244, 214, 0.76);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 223, 143, 0.1);
}

.civp-draft-picker-label.is-selected {
    color: #fff8df;
    background: linear-gradient(180deg, rgba(255, 223, 143, 0.2), rgba(118, 84, 21, 0.28));
    border-color: rgba(255, 223, 143, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.2);
}

.civp-draft-stage-tracker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(100%, 430px);
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 223, 143, 0.16);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.civp-draft-stage-tracker.civp-draft-stage-pick {
    max-width: min(100%, 470px);
}

.civp-draft-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.civp-draft-stage-head-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.civp-draft-stage-title {
    color: rgba(255, 244, 214, 0.86);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.civp-draft-stage-current {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    color: #fff7dc;
}

.civp-draft-turn-timer {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff7d1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 223, 143, 0.16);
}

.civp-draft-turn-timer.is-expiring {
    color: #fff2ef;
    background: linear-gradient(180deg, rgba(194, 92, 92, 0.92), rgba(117, 40, 40, 0.98));
    border-color: rgba(255, 182, 182, 0.32);
    box-shadow: 0 8px 18px rgba(90, 14, 14, 0.22);
}

.civp-draft-stage-sequence {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.civp-draft-stage-sequence::-webkit-scrollbar {
    display: none;
}

.civp-draft-stage-step {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: visible;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.civp-draft-stage-team1.is-upcoming {
    color: #d9eeff;
    background: rgba(72, 120, 187, 0.28);
    border-color: rgba(120, 176, 239, 0.34);
    box-shadow: inset 0 1px 0 rgba(201, 229, 255, 0.08);
}

.civp-draft-stage-team2.is-upcoming {
    color: #ffe0e0;
    background: rgba(171, 77, 77, 0.28);
    border-color: rgba(224, 132, 132, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 220, 220, 0.08);
}

.civp-draft-stage-step.is-done {
    color: rgba(255, 244, 214, 0.52);
    background: rgba(255, 255, 255, 0.04);
    opacity: 0.72;
}

.civp-draft-stage-step.is-upcoming {
    color: rgba(255, 244, 214, 0.76);
    background: rgba(255, 255, 255, 0.05);
}

.civp-draft-stage-step.is-current {
    color: #fffaf0;
    transform: scale(1.04);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.civp-draft-stage-current.civp-draft-stage-current-team1,
.civp-draft-stage-step.civp-draft-stage-team1.is-current {
    background: linear-gradient(180deg, rgba(83, 128, 196, 0.92), rgba(42, 68, 116, 0.98));
    border: 1px solid rgba(147, 183, 239, 0.26);
}

.civp-draft-stage-current.civp-draft-stage-current-team2,
.civp-draft-stage-step.civp-draft-stage-team2.is-current {
    background: linear-gradient(180deg, rgba(179, 84, 84, 0.92), rgba(105, 41, 41, 0.98));
    border: 1px solid rgba(228, 150, 150, 0.28);
}

.civp-draft-stage-ready .civp-draft-stage-current {
    background: linear-gradient(180deg, rgba(96, 144, 96, 0.92), rgba(44, 88, 44, 0.98));
    border: 1px solid rgba(157, 212, 157, 0.24);
}

.civp-draft-release-btn {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 12px !important;
    line-height: 1.1;
}

.civp-draft-team-action-btn {
    min-width: 280px;
    justify-content: center;
    font-weight: 800;
}

.civp-draft-center-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.civp-draft-action-ban {
    background: linear-gradient(180deg, rgba(140, 58, 58, 0.92), rgba(88, 33, 33, 0.98)) !important;
    border-color: rgba(214, 119, 119, 0.34) !important;
    color: #fff1f1 !important;
}

.civp-draft-action-ban:disabled {
    background: linear-gradient(180deg, rgba(74, 58, 76, 0.92), rgba(52, 57, 84, 0.98)) !important;
    border-color: rgba(142, 146, 176, 0.22) !important;
    color: #f0d68a !important;
}

.civp-draft-action-pick {
    background: linear-gradient(180deg, rgba(56, 96, 148, 0.92), rgba(35, 55, 94, 0.98)) !important;
    border-color: rgba(122, 168, 222, 0.32) !important;
    color: #eef6ff !important;
}

.civp-draft-action-pick:disabled {
    background: linear-gradient(180deg, rgba(74, 58, 76, 0.92), rgba(52, 57, 84, 0.98)) !important;
    border-color: rgba(142, 146, 176, 0.22) !important;
    color: #dbe8ff !important;
}

.civp-draft-team-action-hint {
    color: rgba(255, 244, 214, 0.72);
    font-size: 0.84rem;
    line-height: 1.35;
    max-width: 280px;
}

.civp-draft-log {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.civp-draft-log-item,
.civp-draft-log-empty {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 244, 214, 0.82);
    font-size: 0.84rem;
    line-height: 1.35;
}

.civp-draft-log-empty {
    color: rgba(255, 244, 214, 0.56);
}

.civp-draft-picked-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    grid-auto-rows: min-content;
    gap: 8px;
}

.civp-draft-mini-card {
    position: relative;
    min-height: unset;
    height: auto;
    align-self: start;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.civp-draft-mini-card:disabled {
    cursor: default;
    opacity: 1;
}

.civp-draft-mini-card-selectable {
    cursor: pointer;
}

.civp-draft-mini-card-selectable:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 214, 126, 0.5);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.civp-draft-mini-card .civp-civ-icon-container {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.civp-draft-mini-card .civp-civ-name {
    font-size: 0.9rem;
    line-height: 1.1;
}

.civp-draft-mini-card .civp-draft-ban-cross::before,
.civp-draft-mini-card .civp-draft-ban-cross::after {
    width: 58%;
    height: 2px;
}

.civp-draft-picked-team1 {
    background: linear-gradient(180deg, rgba(109, 191, 255, 0.2), rgba(23, 48, 72, 0.92));
}

.civp-draft-picked-team2 {
    background: linear-gradient(180deg, rgba(255, 162, 162, 0.18), rgba(82, 31, 31, 0.92));
}

.civp-draft-footer-actions {
    display: flex;
    justify-content: center;
}

.civp-draft-play-btn {
    min-width: 220px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.civp-draft-play-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Deep CIV+/Draft treatment */
.civp-game-container,
.civp-draft-container {
    background:
        linear-gradient(180deg, rgba(30, 36, 51, 0.98), rgba(13, 18, 29, 0.99)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.045), transparent 44%);
    border-color: rgba(130, 139, 162, 0.24);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.civp-game-container.ui-reveal {
    border-color: rgba(255, 224, 138, 0.28);
    box-shadow:
        0 0 0 1px rgba(255, 224, 138, 0.12),
        0 18px 44px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.civp-game-header {
    border-bottom-color: rgba(130, 139, 162, 0.24);
}

.civp-pick-mode-badge {
    color: #e7edf8;
    text-shadow: none;
}

.civp-meta-item {
    background: rgba(17, 23, 35, 0.72);
    border-color: rgba(130, 139, 162, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 8px 18px rgba(0, 0, 0, 0.12);
}

.civp-meta-label {
    color: rgba(226, 232, 244, 0.62);
}

.civp-meta-value {
    color: rgba(255, 249, 231, 0.94);
}

.civp-team-left,
.civp-team-right,
.civp-draft-team-board {
    background:
        linear-gradient(180deg, rgba(20, 26, 39, 0.9), rgba(11, 16, 27, 0.94)),
        linear-gradient(145deg, rgba(130, 139, 162, 0.055), transparent 54%);
    border-color: rgba(130, 139, 162, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 12px 26px rgba(0, 0, 0, 0.18);
}

.civp-team-header h4 {
    color: #f4d987;
    border-bottom-color: rgba(130, 139, 162, 0.24);
    text-shadow: none;
}

.civp-team-average-rating,
.civp-player-rating {
    color: rgba(226, 232, 244, 0.62);
}

.civp-player-row {
    background:
        linear-gradient(180deg, rgba(27, 34, 49, 0.96), rgba(17, 24, 37, 0.98)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.025), transparent 62%);
    border-color: rgba(130, 139, 162, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 4px 10px rgba(0, 0, 0, 0.14);
}

.civp-player-row:hover {
    background:
        linear-gradient(180deg, rgba(33, 41, 58, 0.98), rgba(20, 29, 44, 0.99)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.045), transparent 62%);
    border-color: rgba(255, 223, 143, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 7px 16px rgba(0, 0, 0, 0.22);
}

.civp-current-player {
    background:
        linear-gradient(180deg, rgba(37, 35, 29, 0.98), rgba(21, 23, 28, 0.99)),
        linear-gradient(145deg, rgba(var(--civ-gold-rgb), 0.09), transparent 62%);
}

.civp-player-number.team1-number {
    background: linear-gradient(180deg, #2e7fa8, #1d5677);
}

.civp-player-number.team2-number {
    background: linear-gradient(180deg, #d04b4b, #8e3035);
}

.civp-player-nickname {
    color: rgba(255, 249, 231, 0.95);
}

.civp-civ-card,
.civp-draft-civ-card,
.civp-draft-mini-card {
    background:
        linear-gradient(180deg, rgba(37, 45, 61, 0.96), rgba(22, 30, 43, 0.98)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.035), transparent 62%);
    border-color: rgba(130, 139, 162, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 5px 12px rgba(0, 0, 0, 0.16);
}

.civp-civ-card:hover,
.civp-draft-card-available:hover,
.civp-draft-mini-card-selectable:hover {
    background:
        linear-gradient(180deg, rgba(45, 55, 74, 0.99), rgba(27, 37, 53, 0.99)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.065), transparent 62%);
    border-color: rgba(255, 223, 143, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 8px 18px rgba(0, 0, 0, 0.24);
}

.civp-civ-name {
    color: #f0d45f;
}

.civp-civ-icon-container {
    background: rgba(9, 13, 22, 0.62);
    border: 1px solid rgba(130, 139, 162, 0.2);
}

.civp-average-diff,
.civp-draft-overview-pill,
.civp-draft-mini-badge,
.civp-draft-picker-label {
    background: linear-gradient(180deg, rgba(30, 39, 55, 0.94), rgba(16, 23, 35, 0.96));
    border-color: rgba(130, 139, 162, 0.24);
}

.civp-draft-card-selected {
    border-color: rgba(255, 223, 143, 0.68);
    box-shadow:
        0 0 0 2px rgba(255, 223, 143, 0.14),
        0 10px 24px rgba(0, 0, 0, 0.24);
}

.civp-draft-card-picked.civp-draft-team1 {
    background:
        linear-gradient(90deg, rgba(55, 99, 139, 0.34), transparent 54%),
        linear-gradient(180deg, rgba(25, 42, 60, 0.98), rgba(15, 27, 42, 0.99));
    border-color: rgba(106, 164, 213, 0.42);
}

.civp-draft-card-picked.civp-draft-team2 {
    background:
        linear-gradient(90deg, rgba(121, 50, 55, 0.34), transparent 54%),
        linear-gradient(180deg, rgba(47, 27, 35, 0.98), rgba(31, 19, 28, 0.99));
    border-color: rgba(210, 111, 118, 0.38);
}

/* Higher contrast CIV+ pass */
.civ-plus-container .page-title {
    color: #ffe49d;
    text-shadow:
        0 0 18px rgba(255, 223, 143, 0.24),
        0 2px 10px rgba(0, 0, 0, 0.38);
}

.civp-game-container,
.civp-draft-container {
    background:
        linear-gradient(180deg, rgba(24, 30, 44, 0.99), rgba(8, 13, 23, 0.995)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.065), transparent 44%);
    border-color: rgba(255, 223, 143, 0.26);
}

.civp-team-left,
.civp-team-right,
.civp-draft-team-board {
    background:
        linear-gradient(180deg, rgba(16, 22, 34, 0.96), rgba(7, 12, 22, 0.98)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.04), transparent 56%);
    border-color: rgba(151, 163, 190, 0.24);
}

.civp-player-row {
    background:
        linear-gradient(180deg, rgba(22, 29, 43, 0.99), rgba(9, 15, 27, 0.995)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.022), transparent 62%);
    border-color: rgba(120, 132, 162, 0.22);
}

.civp-player-row:hover {
    background:
        linear-gradient(180deg, rgba(29, 38, 55, 0.99), rgba(13, 21, 35, 0.995)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.045), transparent 62%);
    border-color: rgba(255, 223, 143, 0.3);
}

.civp-civ-card,
.civp-draft-civ-card,
.civp-draft-mini-card {
    background:
        linear-gradient(180deg, rgba(45, 57, 78, 0.98), rgba(24, 34, 50, 0.99)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.055), transparent 62%);
    border-color: rgba(170, 181, 207, 0.34);
}

.civp-civ-card:hover,
.civp-draft-card-available:hover,
.civp-draft-mini-card-selectable:hover {
    background:
        linear-gradient(180deg, rgba(55, 69, 94, 0.99), rgba(30, 43, 63, 0.99)),
        linear-gradient(145deg, rgba(255, 223, 143, 0.09), transparent 62%);
    border-color: rgba(255, 223, 143, 0.46);
}

.civp-civ-name {
    color: #ffdc22;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.42);
}

.civp-player-nickname,
.civp-meta-value {
    color: #fffaf0;
}

.civp-draft-team-board.civp-draft-team-board-turn-active {
    border-width: 1px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.025);
}

.civp-draft-team-board.civp-draft-team-board-turn-team1 {
    border-color: rgba(116, 188, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(116, 188, 255, 0.11),
        0 8px 22px rgba(57, 126, 201, 0.08);
}

.civp-draft-team-board.civp-draft-team-board-turn-team2 {
    border-color: rgba(255, 146, 146, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 146, 146, 0.11),
        0 8px 22px rgba(177, 70, 70, 0.08);
}

/* Draft team panels share a dark surface; team color stays in the border and small accents. */
.civp-draft-layout .civp-draft-team-board {
    --draft-team-border: #0d5e92;
    --draft-team-bright: #148fd1;
    --draft-team-glow: rgba(0, 92, 160, 0.06);
    --draft-team-row-border: #103b59;
    --draft-team-row-start: rgba(7, 25, 40, 0.92);
    --draft-team-row-end: rgba(8, 29, 46, 0.72);
    --draft-team-rating-bg: #0a2638;
    --draft-team-rating-border: #0d5e92;
    background: linear-gradient(180deg, rgba(7, 22, 36, 0.98), rgba(4, 15, 26, 0.98));
    border: 1px solid var(--draft-team-border);
    border-radius: 6px;
    box-shadow: inset 0 0 24px var(--draft-team-glow),
        0 10px 24px rgba(0, 0, 0, 0.22);
}

.civp-draft-layout .civp-draft-team-board.civp-team-right {
    --draft-team-border: #8d3040;
    --draft-team-bright: #c14b58;
    --draft-team-glow: rgba(160, 32, 54, 0.06);
    --draft-team-row-border: #522431;
    --draft-team-row-start: rgba(35, 15, 24, 0.92);
    --draft-team-row-end: rgba(43, 19, 29, 0.72);
    --draft-team-rating-bg: #351721;
    --draft-team-rating-border: #9d3442;
}

.civp-draft-layout .civp-draft-team-board.civp-draft-team-board-turn-active {
    border-color: var(--draft-team-bright);
    box-shadow: inset 0 0 24px var(--draft-team-glow),
        0 0 0 1px var(--draft-team-glow),
        0 10px 24px rgba(0, 0, 0, 0.22);
}

.civp-draft-team-board .civp-draft-team-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 8px;
}

.civp-draft-team-board .civp-draft-counter {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 46px;
    padding: 0 10px;
    background: rgba(5, 17, 29, 0.84);
    border: 1px solid #132c40;
    border-radius: 8px;
    box-shadow: none;
}

.civp-draft-team-board .civp-draft-counter:nth-child(3) {
    grid-column: 1 / -1;
}

.civp-draft-counter-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.civp-draft-counter--ban .civp-draft-counter-icon {
    color: #ff4053;
}

.civp-draft-counter--pick .civp-draft-counter-icon {
    color: #e5b84c;
}

.civp-draft-counter-label {
    min-width: 0;
    color: #aeb7bf;
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.civp-draft-counter-label strong {
    color: #e8edf2;
    font-weight: 600;
}

.civp-draft-team-board .civp-team-roster {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.civp-draft-team-board .civp-team-roster > :last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
}

.civp-draft-team-board .civp-team-player-tag {
    box-sizing: border-box;
    height: 52px;
    min-height: 52px;
    padding: 5px 10px 5px 6px;
    gap: 10px;
    color: #ece7dc;
    background: linear-gradient(90deg, var(--draft-team-row-start), var(--draft-team-row-end));
    border: 1px solid var(--draft-team-row-border);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.civp-draft-team-board .civp-team-player-tag.current-user {
    border-color: rgba(229, 184, 76, 0.52);
}

.civp-draft-team-board .civp-team-player-name {
    flex: 1 1 auto;
    color: #ece7dc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
}

.civp-draft-team-board .civp-team-player-civ-icons {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.civp-draft-team-board .civp-team-player-civ-icons::-webkit-scrollbar {
    display: none;
}

.civp-draft-team-board .civp-team-player-civ-chip {
    flex: 0 0 auto;
    padding: 3px;
    border-color: rgba(229, 184, 76, 0.62);
    background: #091726;
}

.civp-draft-team-board .civp-team-player-civ-chip .civp-civ-icon-container {
    width: 30px;
    min-width: 30px;
    height: 30px;
}

.civp-draft-team-board .civp-team-player-rating-badge {
    position: static;
    flex: 0 0 auto;
    min-width: 60px;
    padding: 5px 10px;
    color: #f0d27a !important;
    background: var(--draft-team-rating-bg);
    border: 1px solid var(--draft-team-rating-border);
    border-radius: 999px;
    box-shadow: none;
    font-size: 14px;
    text-align: center;
}

/* Calm, compact cards for the central draft selection only. */
.civp-draft-grid {
    gap: 10px 12px;
    width: 100%;
}

.civp-draft-grid .civp-draft-civ-card {
    box-sizing: border-box;
    flex: none;
    width: 200px;
    max-width: 100%;
    height: 49.6px;
    min-height: 49.6px;
    justify-self: center;
    align-self: center;
    padding: 0 13px;
    gap: 11px;
    color: #e7e1d4;
    background: linear-gradient(180deg, #15263a, #0d1b2a);
    border: 1px solid #31445a;
    border-radius: 7px;
    opacity: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 3px 8px rgba(0, 0, 0, 0.16);
    transition: border-color 0.16s ease, background 0.16s ease,
        box-shadow 0.16s ease, transform 0.16s ease;
}

.civp-draft-grid .civp-draft-civ-card:hover {
    transform: none;
    background: linear-gradient(180deg, #15263a, #0d1b2a);
    border-color: #31445a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 3px 8px rgba(0, 0, 0, 0.16);
}

.civp-draft-grid .civp-draft-civ-card.civp-draft-card-available:not(.civp-draft-card-selected)[data-can-select="true"]:hover,
.civp-draft-grid .civp-draft-civ-card.civp-draft-card-available:not(.civp-draft-card-selected)[data-can-select="true"]:focus-visible {
    background: linear-gradient(180deg, #1a2d43, #102133);
    border-color: #53697f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 5px 12px rgba(0, 0, 0, 0.22);
}

.civp-draft-grid .civp-draft-civ-card.civp-draft-card-locked.civp-draft-card-available {
    opacity: 0.82;
    cursor: default;
}

.civp-draft-grid .civp-draft-civ-card .civp-civ-icon-container {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    overflow: hidden;
    background: #081420;
    border: 1px solid #46576a;
    border-radius: 8px;
}

.civp-draft-grid .civp-draft-civ-card .civp-civ-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.civp-draft-grid .civp-draft-civ-card .civp-civ-name {
    min-width: 0;
    overflow: hidden;
    color: #e9e3d7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    text-shadow: none;
    white-space: nowrap;
}

.civp-draft-grid .civp-draft-civ-card.civp-draft-card-selected,
.civp-draft-grid .civp-draft-civ-card.civp-draft-card-selected:hover {
    transform: none;
    background: linear-gradient(180deg, #3a3424, #181c20);
    border-color: #d4ad4e;
    box-shadow: 0 0 0 1px rgba(221, 177, 69, 0.22),
        0 0 14px rgba(202, 153, 41, 0.16),
        inset 0 1px 0 rgba(255, 226, 143, 0.08);
}

.civp-draft-grid .civp-draft-civ-card.civp-draft-card-selected .civp-civ-name {
    color: #f1cf69;
}

.civp-draft-grid .civp-draft-civ-card.civp-draft-card-banned,
.civp-draft-grid .civp-draft-civ-card.civp-draft-card-banned:hover {
    background: #111820;
    border-color: #2b3139;
    opacity: 0.58;
    filter: none;
    box-shadow: none;
    cursor: default;
}

.civp-draft-grid .civp-draft-civ-card.civp-draft-card-banned .civp-civ-name {
    color: #8f969e;
}

.civp-draft-grid .civp-draft-civ-card.civp-draft-card-banned .civp-civ-icon {
    filter: saturate(0.55) brightness(0.72);
}

.civp-draft-grid .civp-draft-civ-card .civp-draft-ban-cross::before,
.civp-draft-grid .civp-draft-civ-card .civp-draft-ban-cross::after {
    width: 72%;
    background: rgba(188, 82, 82, 0.78);
}

.civp-draft-grid .civp-draft-civ-card .civp-draft-ban-cross::before {
    transform: translate(-50%, -50%) rotate(25deg);
}

.civp-draft-grid .civp-draft-civ-card .civp-draft-ban-cross::after {
    transform: translate(-50%, -50%) rotate(-25deg);
}

.civp-draft-grid .civp-draft-civ-card.civp-draft-card-picked:not(.civp-draft-card-banned),
.civp-draft-grid .civp-draft-civ-card.civp-draft-card-picked:not(.civp-draft-card-banned):hover {
    background: #0c151f;
    border-color: #263747;
    opacity: 0.52;
    box-shadow: none;
    cursor: default;
}

.civp-draft-grid .civp-draft-civ-card.civp-draft-card-picked .civp-civ-name,
.civp-draft-grid .civp-draft-civ-card.civp-draft-card-leftover .civp-civ-name {
    color: #8f969e;
}

.civp-draft-grid .civp-draft-civ-card.civp-draft-card-leftover {
    background: #0c151f;
    border-color: #263747;
    opacity: 0.52;
    filter: none;
    cursor: default;
}

.civp-draft-grid .civp-draft-civ-card .civp-draft-order-badge {
    top: -7px;
    right: -7px;
    padding: 4px 6px;
    font-size: 0.54rem;
}

@media (max-width: 1100px) {
    .civp-draft-layout {
        grid-template-columns: 1fr;
    }

    .civp-draft-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .civp-draft-grid .civp-draft-ban-cross {
        inset: 4px;
    }

    .civp-draft-grid .civp-draft-ban-cross::before,
    .civp-draft-grid .civp-draft-ban-cross::after {
        width: 50%;
    }
}

@media (max-width: 720px) {
    .civp-draft-status-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 10px 14px;
    }

    .civp-draft-status-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, rgba(210, 161, 65, 0.9), transparent);
    }

    .civp-draft-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .civp-draft-grid .civp-draft-ban-cross {
        inset: 7px;
    }

    .civp-draft-grid .civp-draft-ban-cross::before,
    .civp-draft-grid .civp-draft-ban-cross::after {
        width: 42%;
        height: 1.5px;
    }

    .civp-draft-team-actions {
        flex-direction: column;
    }
}

/* ===== Результат пика: турнирная игровая панель ===== */
.civp-game-container.civp-result-container {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 20px;
    padding: 24px;
    border: 1px solid rgba(133, 164, 196, 0.32);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% -40%, rgba(31, 92, 145, 0.22), transparent 48%),
        linear-gradient(180deg, rgba(14, 27, 43, 0.985), rgba(5, 13, 22, 0.995));
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(205, 229, 255, 0.05);
}

.civp-game-container.civp-result-container::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background:
        linear-gradient(90deg, transparent 0 48%, rgba(105, 151, 192, 0.05) 50%, transparent 52%),
        repeating-linear-gradient(135deg, transparent 0 42px, rgba(255, 255, 255, 0.012) 43px 44px);
}

.civp-result-container .civp-game-header {
    min-height: 58px;
    margin: 0 0 24px;
    padding: 0 4px 20px;
    align-items: center;
    border-bottom-color: rgba(135, 164, 193, 0.22);
}

.civp-result-container .civp-pick-mode-badge {
    color: #f1f5fb;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(1.45rem, 2.25vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.015em;
}

.civp-result-container .civp-average-diff {
    padding: 6px 13px;
    border-width: 1px;
    border-color: rgba(135, 164, 193, 0.28);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(34, 51, 70, 0.88), rgba(14, 25, 38, 0.92));
    color: #e7c66b;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 16px rgba(0, 0, 0, 0.18);
}

.civp-result-container .civp-game-creator-meta {
    gap: 14px;
}

.civp-result-container .civp-meta-item {
    min-width: 184px;
    min-height: 48px;
    padding: 10px 14px;
    justify-content: flex-start;
    gap: 10px;
    border-color: rgba(127, 158, 190, 0.26);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(18, 33, 50, 0.9), rgba(8, 18, 31, 0.94));
}

.civp-result-container .civp-meta-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: #a9bed5;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.civp-result-container .civp-meta-label {
    color: #8fa6bd;
    font-size: 0.72rem;
    letter-spacing: 0.045em;
    text-transform: none;
}

.civp-result-container .civp-meta-value {
    margin-left: auto;
    color: #f3f6fb;
    font-size: 0.9rem;
    font-weight: 700;
}

.civp-result-container .civp-teams-layout {
    gap: 18px;
    align-items: stretch;
}

.civp-result-container .civp-result-team {
    position: relative;
    overflow: hidden;
    padding: 0 18px 18px;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(10, 22, 36, 0.95), rgba(4, 12, 21, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 28px rgba(0, 0, 0, 0.2);
}

.civp-result-container .civp-result-team-1 {
    border-color: rgba(38, 149, 220, 0.7);
}

.civp-result-container .civp-result-team-2 {
    border-color: rgba(207, 66, 74, 0.72);
}

.civp-result-container .civp-result-team-header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 68px;
    margin: 0 -18px 16px;
    padding: 0 22px;
    overflow: hidden;
    border-bottom: 1px solid;
}

.civp-result-container .civp-result-team-1 .civp-result-team-header {
    color: #55baff;
    border-bottom-color: rgba(38, 149, 220, 0.5);
    background: linear-gradient(100deg, rgba(22, 92, 145, 0.48), rgba(10, 41, 68, 0.22) 58%, transparent);
}

.civp-result-container .civp-result-team-2 .civp-result-team-header {
    color: #ef545b;
    border-bottom-color: rgba(207, 66, 74, 0.5);
    background: linear-gradient(100deg, rgba(126, 37, 45, 0.5), rgba(67, 23, 31, 0.22) 58%, transparent);
}

.civp-result-container .civp-team-crest {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: 14px;
    opacity: 0.9;
}

.civp-result-container .civp-team-crest svg {
    width: 42px;
    height: 42px;
    fill: currentColor;
    stroke: rgba(255, 255, 255, 0.42);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.civp-result-container .civp-team-crest svg path:last-child {
    fill: none;
    stroke: #eef7ff;
    stroke-width: 2;
}

.civp-result-container .civp-result-team-header::after {
    content: '';
    position: absolute;
    top: -34px;
    right: 5%;
    width: 180px;
    height: 120px;
    opacity: 0.06;
    transform: rotate(-9deg);
    background: currentColor;
    clip-path: polygon(45% 0, 100% 0, 81% 100%, 28% 100%);
}

.civp-result-container .civp-team-header h4 {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 0;
    color: #f1f5fb;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-align: left;
}

.civp-result-container .civp-player-row {
    padding: 10px 12px;
    border-radius: 12px;
    border-color: rgba(112, 143, 175, 0.25);
    background: linear-gradient(180deg, rgba(17, 34, 51, 0.96), rgba(7, 18, 30, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 7px 16px rgba(0, 0, 0, 0.22);
}

.civp-result-container .civp-player-row:hover {
    transform: translateY(-1px);
    border-color: rgba(136, 171, 207, 0.42);
    background: linear-gradient(180deg, rgba(23, 43, 63, 0.98), rgba(10, 24, 39, 0.99));
}

.civp-result-container .civp-player-header {
    min-height: 38px;
    margin-bottom: 9px;
    gap: 12px;
}

.civp-result-container .civp-player-number {
    width: 40px;
    min-width: 40px;
    height: 36px;
    border-radius: 7px;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 5px 12px rgba(0, 0, 0, 0.28);
}

.civp-result-container .civp-player-number.team1-number {
    background: linear-gradient(180deg, #27a6d9, #14709c);
}

.civp-result-container .civp-player-number.team2-number {
    background: linear-gradient(180deg, #e04c53, #a52e38);
}

.civp-result-container .civp-player-nickname-wrap {
    padding: 2px 0;
}

.civp-result-container .civp-player-nickname {
    color: #f3f6fb;
    font-size: 1.04rem;
    font-weight: 700;
}

.civp-result-container .civp-player-rating {
    margin-left: auto;
    font-size: 0.86rem;
    font-weight: 800;
}

.civp-result-container .civp-player-civs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 0;
}

.civp-result-container .civp-civ-card {
    min-height: 42px;
    padding: 6px 9px;
    gap: 8px;
    border-radius: 7px;
    border-color: rgba(125, 155, 188, 0.32);
    background: linear-gradient(180deg, rgba(29, 48, 69, 0.98), rgba(15, 30, 47, 0.99));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 4px 10px rgba(0, 0, 0, 0.18);
}

.civp-result-container .civp-civ-card:hover {
    border-color: rgba(157, 190, 223, 0.55);
    background: linear-gradient(180deg, rgba(38, 61, 86, 0.99), rgba(20, 39, 59, 0.99));
}

.civp-result-container .civp-civ-icon-container {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 7px;
    border-color: rgba(157, 181, 207, 0.26);
    background: rgba(4, 10, 18, 0.72);
}

.civp-result-container .civp-civ-name {
    color: #e8edf5;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1024px) {
    .civp-game-container.civp-result-container {
        padding: 18px;
    }

    .civp-result-container .civp-result-team {
        padding-right: 12px;
        padding-left: 12px;
    }

    .civp-result-container .civp-result-team-header {
        margin-right: -12px;
        margin-left: -12px;
    }
}

@media (max-width: 768px) {
    .civp-game-container.civp-result-container {
        margin-top: 12px;
        padding: 14px;
        border-radius: 14px;
    }

    .civp-result-container .civp-game-header {
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .civp-result-container .civp-game-creator-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .civp-result-container .civp-meta-item {
        width: 100%;
        min-width: 0;
    }

    .civp-result-container .civp-result-team-header {
        min-height: 58px;
    }

    .civp-result-container .civp-team-crest {
        width: 38px;
        height: 38px;
        margin-right: 10px;
    }

    .civp-result-container .civp-team-crest svg {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 480px) {
    .civp-game-container.civp-result-container {
        padding: 10px;
    }

    .civp-result-container .civp-meta-item {
        padding: 8px;
        gap: 6px;
    }

    .civp-result-container .civp-meta-icon {
        display: none;
    }

    .civp-result-container .civp-result-team {
        padding-right: 9px;
        padding-bottom: 10px;
        padding-left: 9px;
    }

    .civp-result-container .civp-result-team-header {
        margin-right: -9px;
        margin-left: -9px;
        padding: 0 14px;
    }

    .civp-result-container .civp-player-row {
        padding: 8px;
    }

    .civp-result-container .civp-player-number {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .civp-result-container .civp-player-nickname {
        font-size: 0.92rem;
    }

    .civp-result-container .civp-player-civs {
        gap: 5px;
    }

    .civp-result-container .civp-civ-card {
        min-height: 34px;
        padding: 4px;
        gap: 4px;
    }

    .civp-result-container .civp-civ-icon-container {
        width: 23px;
        min-width: 23px;
        height: 23px;
    }

    .civp-result-container .civp-civ-name {
        font-size: 0.68rem;
    }
}
/* CIV+ visual system */
#civ-plus-page {
    color: var(--civp-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#civ-plus-page .civ-plus-container {
    padding: 24px;
}

#civ-plus-page .civ-plus-container .page-title {
    color: var(--civp-text);
    font-family: inherit;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: none;
}

#civ-plus-page .civp-game-container,
#civ-plus-page .civp-draft-container {
    color: var(--civp-text);
    font-family: inherit;
    border: 1px solid var(--civp-border);
    border-radius: var(--civp-radius-xl);
    background: var(--civp-bg-secondary);
    box-shadow: var(--civp-shadow);
}

/* Let the page show through behind the draft layout's 50% surface. */
#civ-plus-page .civp-draft-container {
    background: transparent;
}

#civ-plus-page .civp-game-container.ui-reveal {
    border-color: var(--civp-border);
    box-shadow: var(--civp-shadow);
}

#civ-plus-page .civp-result-container::before,
#civ-plus-page .civp-result-team-header::after {
    content: none;
}

#civ-plus-page .civp-result-container .civp-game-header {
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom-color: var(--civp-border-soft);
}

#civ-plus-page .civp-result-container .civp-pick-mode-badge {
    color: var(--civp-text);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: none;
}

#civ-plus-page .civp-result-container .civp-average-diff,
#civ-plus-page .civp-result-container .civp-average-diff-neutral,
#civ-plus-page .civp-result-container .civp-average-diff-warning,
#civ-plus-page .civp-result-container .civp-average-diff-alert {
    padding: 6px 12px;
    color: var(--civp-gold-light);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--civp-gold-border);
    border-radius: var(--civp-radius-sm);
    background: var(--civp-gold-bg);
    box-shadow: none;
}

#civ-plus-page .civp-result-container .civp-game-creator-meta {
    gap: 8px;
}

#civ-plus-page .civp-result-container .civp-meta-item {
    min-width: 0;
    min-height: 0;
    gap: 6px;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#civ-plus-page .civp-result-container .civp-meta-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    stroke: var(--civp-text-muted);
}

#civ-plus-page .civp-result-container .civp-meta-label {
    color: var(--civp-text-muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
}

#civ-plus-page .civp-result-container .civp-meta-value {
    margin-left: 0;
    color: var(--civp-text-secondary);
    font-size: 12px;
    font-weight: 500;
}

#civ-plus-page .civp-result-container .civp-teams-layout {
    gap: 16px;
}

#civ-plus-page .civp-result-container .civp-result-team {
    padding: 16px;
    border: 1px solid var(--civp-border);
    border-radius: var(--civp-radius-lg);
    background: var(--civp-surface);
    box-shadow: var(--civp-shadow);
}

#civ-plus-page .civp-result-container .civp-result-team-1 {
    border-color: var(--civp-team-1-border);
}

#civ-plus-page .civp-result-container .civp-result-team-2 {
    border-color: var(--civp-team-2-border);
}

#civ-plus-page .civp-result-container .civp-result-team-header {
    min-height: 36px;
    margin: 0 0 12px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--civp-border-soft);
    background: transparent;
}

#civ-plus-page .civp-result-container .civp-result-team-1 .civp-result-team-header {
    color: var(--civp-team-1);
    border-bottom-color: var(--civp-team-1-border);
    background: var(--civp-team-1-bg);
}

#civ-plus-page .civp-result-container .civp-result-team-2 .civp-result-team-header {
    color: var(--civp-team-2);
    border-bottom-color: var(--civp-team-2-border);
    background: var(--civp-team-2-bg);
}

#civ-plus-page .civp-result-container .civp-team-crest {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

#civ-plus-page .civp-result-container .civp-team-crest svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
}

#civ-plus-page .civp-result-container .civp-team-crest svg path:last-child {
    stroke: currentColor;
}

#civ-plus-page .civp-result-container .civp-team-header h4 {
    color: var(--civp-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: none;
}

#civ-plus-page .civp-result-container .civp-players-left,
#civ-plus-page .civp-result-container .civp-players-right {
    gap: 12px;
}

#civ-plus-page .civp-result-container .civp-player-row {
    padding: 4px 8px;
    border: 1px solid var(--civp-border-soft);
    border-radius: var(--civp-radius-md);
    background: var(--civp-row-bg);
    box-shadow: none;
}

#civ-plus-page .civp-result-container .civp-player-row:hover {
    transform: none;
    border-color: var(--civp-border);
    background: var(--civp-surface-hover);
    box-shadow: none;
}

#civ-plus-page .civp-result-container .civp-current-player {
    border-left: 3px solid var(--civp-gold);
}

#civ-plus-page .civp-result-container .civp-player-header {
    min-height: 24px;
    gap: 8px;
    margin-bottom: 2px;
}

#civ-plus-page .civp-result-container .civp-player-number {
    width: 24px;
    min-width: 24px;
    height: 24px;
    color: var(--civp-text);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--civp-radius-sm);
    box-shadow: none;
}

#civ-plus-page .civp-result-container .civp-player-number.team1-number {
    background: var(--civp-team-1);
}

#civ-plus-page .civp-result-container .civp-player-number.team2-number {
    background: var(--civp-team-2);
}

#civ-plus-page .civp-result-container .civp-player-nickname {
    color: var(--civp-text);
    font-size: 15px;
    font-weight: 600;
    text-shadow: none;
}

#civ-plus-page .civp-result-container .civp-player-rating {
    color: var(--civp-gold-light);
    font-size: 14px;
    font-weight: 700;
}

#civ-plus-page .civp-result-container .civp-player-civs {
    gap: 8px;
}

#civ-plus-page .civp-result-container .civp-civ-card {
    min-height: 40px;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid var(--civp-border);
    border-radius: var(--civp-radius-sm);
    background: var(--civp-surface-2);
    box-shadow: none;
}

#civ-plus-page .civp-result-container .civp-civ-card:hover {
    transform: none;
    border-color: var(--civp-border-hover);
    background: var(--civp-surface-hover);
    box-shadow: none;
}

#civ-plus-page .civp-result-container .civp-civ-icon-container {
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-color: var(--civp-border-soft);
    border-radius: var(--civp-radius-sm);
    background: var(--civp-bg);
}

#civ-plus-page .civp-result-container .civp-civ-name {
    color: var(--civp-text);
    font-size: 14px;
    font-weight: 500;
    text-shadow: none;
}

#civ-plus-page .civp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 520px;
    max-height: 620px;
    gap: 0;
    margin: 16px auto 0;
    padding: 24px;
    border: 1px solid var(--civp-border);
    border-radius: var(--civp-radius-xl);
    background: var(--civp-bg-secondary);
    box-shadow: var(--civp-shadow);
    text-align: center;
    transform: none;
}

#civ-plus-page .civp-empty-state:hover {
    border-color: var(--civp-border);
    background: var(--civp-bg-secondary);
    box-shadow: var(--civp-shadow);
    transform: none;
}

#civ-plus-page .civp-empty-state::before {
    content: none;
}

#civ-plus-page .civp-empty-header {
    width: 100%;
    text-align: left;
}

#civ-plus-page .civp-empty-brand {
    color: var(--civp-text);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

#civ-plus-page .civp-empty-divider,
#civ-plus-page .civp-empty-action-separator {
    display: none;
}

#civ-plus-page .civp-empty-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 16px;
}

#civ-plus-page .civp-empty-art img {
    display: block;
    width: clamp(180px, 26vw, 300px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

#civ-plus-page .civp-empty-copy h3 {
    margin: 0 0 8px;
    color: var(--civp-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: none;
}

#civ-plus-page .civp-empty-copy p {
    max-width: 420px;
    margin: 0;
    color: var(--civp-text-secondary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

#civ-plus-page .civp-empty-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#civ-plus-page .civp-empty-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    gap: 8px;
    padding: 8px 16px;
    color: var(--civp-bg);
    font: 600 13px/1.2 "Inter", system-ui, sans-serif;
    border: 1px solid var(--civp-gold-dark);
    border-radius: var(--civp-radius-sm);
    background: var(--civp-gold);
    cursor: pointer;
}

#civ-plus-page .civp-empty-refresh:hover:not(:disabled) {
    background: var(--civp-gold-light);
}

#civ-plus-page .civp-empty-refresh:disabled {
    opacity: 0.6;
    cursor: wait;
}

#civ-plus-page .civp-empty-refresh svg,
#civ-plus-page .civp-empty-hint svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#civ-plus-page .civp-empty-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--civp-text-muted);
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 768px) {
    #civ-plus-page .civ-plus-container {
        padding: 16px;
    }

    #civ-plus-page .civp-result-container .civp-game-creator-meta {
        display: flex;
    }

    #civ-plus-page .civp-empty-state {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    #civ-plus-page .civ-plus-container {
        padding: 12px;
    }

    #civ-plus-page .civp-result-container .civp-player-civs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #civ-plus-page .civp-result-container .civp-civ-name {
        font-size: 12px;
    }

    #civ-plus-page .civp-empty-state {
        min-height: 0;
        max-height: none;
    }
}

/* The existing loader sets display:block inline when no pick is available. */
#civ-plus-page .civp-empty-state[style*="display: block"] {
    display: flex !important;
}

#civ-plus-page .civp-result-container .civp-civ-card.civp-civ-selected,
#civ-plus-page .civp-result-container .civp-civ-card:focus-visible {
    border-color: var(--civp-gold);
    background: var(--civp-gold-bg);
    box-shadow: 0 0 0 1px var(--civp-gold-border);
}
/* CIV+ references: empty state and populated match */
#civ-plus-page .civp-empty-state {
    min-height: 720px;
    max-height: none;
    border-color: rgba(154, 136, 103, .45);
    background: linear-gradient(180deg, rgba(17, 31, 48, .94), rgba(10, 21, 35, .97));
}
#civ-plus-page .civp-empty-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 6px 20px;
    border-bottom: 1px solid rgba(163, 185, 209, .25);
}
#civ-plus-page .civp-empty-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .55);
}
#civ-plus-page .civp-empty-divider {
    display: block;
    width: 160px;
    height: 1px;
    background: linear-gradient(90deg, #d7a642, transparent);
}
#civ-plus-page .civp-empty-content { gap: 16px; }
#civ-plus-page .civp-empty-art img { width: clamp(240px, 26vw, 350px); }
#civ-plus-page .civp-empty-copy h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.15;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .45);
}
#civ-plus-page .civp-empty-copy p {
    max-width: 650px;
    font-size: 20px;
    line-height: 1.5;
}
#civ-plus-page .civp-empty-actions {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}
#civ-plus-page .civp-empty-refresh {
    min-height: 56px;
    padding: 10px 32px;
    gap: 14px;
    color: #f2f6ff;
    font-size: 18px;
    border-color: #3974c6;
    border-radius: 12px;
    background: linear-gradient(180deg, #1c427b, #132a53);
}
#civ-plus-page .civp-empty-refresh:hover:not(:disabled) { background: linear-gradient(180deg, #285492, #193969); }
#civ-plus-page .civp-empty-refresh svg { width: 28px; height: 28px; stroke-width: 2.2; }
#civ-plus-page .civp-empty-action-separator {
    display: block;
    width: 1px;
    height: 48px;
    background: rgba(163, 185, 209, .25);
}
#civ-plus-page .civp-empty-hint {
    min-height: 54px;
    padding: 0 20px;
    gap: 12px;
    color: #b3c0d2;
    font-size: 16px;
    border: 1px solid rgba(163, 185, 209, .25);
    border-radius: 12px;
    background: rgba(15, 27, 43, .55);
}
#civ-plus-page .civp-empty-hint svg {
    width: 22px;
    height: 22px;
    fill: #b3c0d2;
    stroke: #17263a;
}

#civ-plus-page .civp-game-container.civp-result-container {
    padding: 28px;
    border-color: rgba(145, 165, 190, .36);
    background: linear-gradient(180deg, rgba(20, 34, 52, .97), rgba(10, 20, 33, .98));
    box-shadow: 0 22px 48px rgba(0, 0, 0, .34);
}
#civ-plus-page .civp-result-container .civp-game-header {
    min-height: 70px;
    margin-bottom: 22px;
    padding: 0 2px 20px;
    border-bottom-color: rgba(145, 165, 190, .22);
}
#civ-plus-page .civp-result-container .civp-pick-mode-badge {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
}
#civ-plus-page .civp-result-container .civp-average-diff {
    border-radius: 999px;
    border-color: rgba(145, 165, 190, .34);
    background: linear-gradient(180deg, rgba(35, 49, 66, .88), rgba(17, 28, 43, .95));
    font-size: 16px;
    font-weight: 600;
}
#civ-plus-page .civp-result-container .civp-game-creator-meta { gap: 16px; }
#civ-plus-page .civp-result-container .civp-meta-item {
    min-height: 50px;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(141, 165, 193, .26);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(25, 39, 57, .86), rgba(13, 25, 40, .93));
}
#civ-plus-page .civp-result-container .civp-meta-icon { width: 19px; height: 19px; flex-basis: 19px; }
#civ-plus-page .civp-result-container .civp-meta-label { font-size: 14px; }
#civ-plus-page .civp-result-container .civp-meta-value {
    margin-left: auto;
    color: var(--civp-text);
    font-size: 14px;
    font-weight: 600;
}
#civ-plus-page .civp-result-container .civp-result-team {
    padding: 0 18px 18px;
    background: linear-gradient(180deg, rgba(15, 29, 45, .97), rgba(8, 19, 32, .99));
}
#civ-plus-page .civp-result-container .civp-result-team-1 { border-color: rgba(55, 155, 226, .64); }
#civ-plus-page .civp-result-container .civp-result-team-2 { border-color: rgba(216, 80, 87, .64); }
#civ-plus-page .civp-result-container .civp-result-team-header {
    min-height: 64px;
    margin: 0 -18px 0;
    padding: 0 22px;
}
#civ-plus-page .civp-result-container .civp-result-team-1 .civp-result-team-header {
    border-bottom-color: rgba(55, 155, 226, .42);
    background: linear-gradient(95deg, rgba(33, 98, 151, .46), rgba(14, 45, 76, .23) 58%, transparent);
}
#civ-plus-page .civp-result-container .civp-result-team-2 .civp-result-team-header {
    border-bottom-color: rgba(216, 80, 87, .42);
    background: linear-gradient(95deg, rgba(130, 40, 50, .44), rgba(65, 26, 39, .22) 58%, transparent);
}
#civ-plus-page .civp-result-container .civp-team-crest {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin-right: 14px;
    background-position: center;
    background-size: 76px 76px;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 73%);
    mask-image: radial-gradient(circle, #000 48%, transparent 73%);
}
#civ-plus-page .civp-result-container .civp-team-crest-blue { background-image: url('/static/image/civp-team-deer-shield.png'); }
#civ-plus-page .civp-result-container .civp-team-crest-red { background-image: url('/static/image/civp-team-wolf-shield.png'); }
#civ-plus-page .civp-result-container .civp-team-header h4 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
#civ-plus-page .civp-result-container .civp-players-left,
#civ-plus-page .civp-result-container .civp-players-right {
    position: relative;
    margin: -1px -18px 0;
    padding: 18px 18px 0;
    border: 1px solid;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
}
#civ-plus-page .civp-result-container .civp-players-left { border-color: rgba(55, 155, 226, .42); }
#civ-plus-page .civp-result-container .civp-players-right { border-color: rgba(216, 80, 87, .42); }
#civ-plus-page .civp-result-container .civp-player-row {
    padding: 10px 12px;
    border-color: rgba(127, 154, 184, .28);
    background: linear-gradient(180deg, rgba(27, 42, 59, .94), rgba(12, 25, 40, .97));
}
#civ-plus-page .civp-result-container .civp-player-header { min-height: 38px; gap: 12px; margin-bottom: 9px; }
#civ-plus-page .civp-result-container .civp-player-number {
    width: 44px;
    min-width: 44px;
    height: 39px;
    border-radius: 7px;
    font-size: 20px;
    font-weight: 700;
}
#civ-plus-page .civp-result-container .civp-player-number.team1-number { background: linear-gradient(180deg, #2798c8, #1c6489); }
#civ-plus-page .civp-result-container .civp-player-number.team2-number { background: linear-gradient(180deg, #ce444d, #96323b); }
#civ-plus-page .civp-result-container .civp-player-nickname { font-size: 21px; font-weight: 500; }
#civ-plus-page .civp-result-container .civp-player-rating { font-size: 18px; font-weight: 600; }
#civ-plus-page .civp-result-container .civp-player-civs { gap: 10px; }
#civ-plus-page .civp-result-container .civp-civ-card {
    min-height: 48px;
    padding: 6px 10px;
    border-color: rgba(136, 163, 193, .34);
    background: linear-gradient(180deg, rgba(34, 51, 72, .96), rgba(23, 39, 58, .97));
}
#civ-plus-page .civp-result-container .civp-civ-icon-container { width: 34px; min-width: 34px; height: 34px; }
#civ-plus-page .civp-result-container .civp-civ-name { font-size: 17px; font-weight: 500; }

@media (max-width: 1024px) {
    #civ-plus-page .civp-result-container .civp-result-team { padding-right: 12px; padding-left: 12px; }
    #civ-plus-page .civp-result-container .civp-result-team-header { margin-right: -12px; margin-left: -12px; }
    #civ-plus-page .civp-result-container .civp-players-left,
    #civ-plus-page .civp-result-container .civp-players-right { margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; }
}
@media (max-width: 768px) {
    #civ-plus-page .civp-game-container.civp-result-container { padding: 16px; }
    #civ-plus-page .civp-result-container .civp-game-creator-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #civ-plus-page .civp-result-container .civp-pick-mode-badge { font-size: 30px; }
    #civ-plus-page .civp-empty-state { min-height: 600px; }
}
@media (max-width: 580px) {
    #civ-plus-page .civp-empty-brand { font-size: 34px; }
    #civ-plus-page .civp-empty-divider { width: 80px; }
    #civ-plus-page .civp-empty-copy h3 { font-size: 25px; }
    #civ-plus-page .civp-empty-copy p { font-size: 16px; }
    #civ-plus-page .civp-empty-actions { flex-wrap: wrap; }
    #civ-plus-page .civp-empty-action-separator { display: none; }
    #civ-plus-page .civp-empty-hint { font-size: 13px; }
}
@media (max-width: 480px) {
    #civ-plus-page .civp-game-container.civp-result-container { padding: 10px; }
    #civ-plus-page .civp-result-container .civp-result-team { padding-right: 9px; padding-left: 9px; }
    #civ-plus-page .civp-result-container .civp-result-team-header { margin-right: -9px; margin-left: -9px; }
    #civ-plus-page .civp-result-container .civp-players-left,
    #civ-plus-page .civp-result-container .civp-players-right { margin-right: -9px; margin-left: -9px; padding-right: 9px; padding-left: 9px; }
    #civ-plus-page .civp-result-container .civp-team-crest { width: 38px; height: 38px; flex-basis: 38px; background-size: 62px 62px; }
    #civ-plus-page .civp-result-container .civp-team-header h4 { font-size: 18px; }
    #civ-plus-page .civp-result-container .civp-player-row { padding: 8px; }
    #civ-plus-page .civp-result-container .civp-player-number { width: 32px; min-width: 32px; height: 32px; font-size: 16px; }
    #civ-plus-page .civp-result-container .civp-player-nickname { font-size: 14px; }
    #civ-plus-page .civp-result-container .civp-civ-icon-container { width: 23px; min-width: 23px; height: 23px; }
    #civ-plus-page .civp-result-container .civp-civ-name { font-size: 12px; }
}
/* CIV+ compact proportions */
#civ-plus-page .civp-empty-state { min-height: 635px; padding: 21px; }
#civ-plus-page .civp-empty-header { gap: 21px; padding-bottom: 18px; }
#civ-plus-page .civp-empty-brand { font-size: 39px; }
#civ-plus-page .civp-empty-divider { width: 140px; }
#civ-plus-page .civp-empty-content { gap: 14px; }
#civ-plus-page .civp-empty-art img { width: clamp(210px, 23vw, 310px); }
#civ-plus-page .civp-empty-copy h3 { font-size: 30px; }
#civ-plus-page .civp-empty-copy p { max-width: 570px; font-size: 18px; }
#civ-plus-page .civp-empty-actions { gap: 14px; margin-top: 16px; }
#civ-plus-page .civp-empty-refresh {
    min-height: 49px;
    padding: 9px 28px;
    gap: 12px;
    font-size: 16px;
    border-radius: 10px;
}
#civ-plus-page .civp-empty-refresh svg { width: 25px; height: 25px; }
#civ-plus-page .civp-empty-action-separator { height: 42px; }
#civ-plus-page .civp-empty-hint {
    min-height: 48px;
    padding: 0 18px;
    gap: 10px;
    font-size: 14px;
    border-radius: 10px;
}
#civ-plus-page .civp-empty-hint svg { width: 19px; height: 19px; }

#civ-plus-page .civp-game-container.civp-result-container { padding: 24px; }
#civ-plus-page .civp-result-container .civp-game-header {
    min-height: 62px;
    margin-bottom: 19px;
    padding-bottom: 18px;
}
#civ-plus-page .civp-result-container .civp-pick-mode-badge { font-size: 34px; }
#civ-plus-page .civp-result-container .civp-average-diff { font-size: 14px; padding: 5px 11px; }
#civ-plus-page .civp-result-container .civp-game-creator-meta { gap: 14px; }
#civ-plus-page .civp-result-container .civp-meta-item {
    min-height: 44px;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 11px;
}
#civ-plus-page .civp-result-container .civp-meta-icon { width: 17px; height: 17px; flex-basis: 17px; }
#civ-plus-page .civp-result-container .civp-meta-label,
#civ-plus-page .civp-result-container .civp-meta-value { font-size: 13px; }
#civ-plus-page .civp-result-container .civp-teams-layout { gap: 14px; }
#civ-plus-page .civp-result-container .civp-result-team { padding: 0 16px 16px; }
#civ-plus-page .civp-result-container .civp-result-team-header {
    min-height: 56px;
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 19px;
}
#civ-plus-page .civp-result-container .civp-team-crest {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    margin-right: 12px;
    background-size: 68px 68px;
}
#civ-plus-page .civp-result-container .civp-team-header h4 { font-size: 21px; }
#civ-plus-page .civp-result-container .civp-players-left,
#civ-plus-page .civp-result-container .civp-players-right {
    margin-right: -16px;
    margin-left: -16px;
    padding: 16px 16px 0;
    border-radius: 12px 12px 0 0;
    gap: 10px;
}
#civ-plus-page .civp-result-container .civp-player-row { padding: 9px 11px; }
#civ-plus-page .civp-result-container .civp-player-header { min-height: 34px; gap: 10px; margin-bottom: 8px; }
#civ-plus-page .civp-result-container .civp-player-number {
    width: 39px;
    min-width: 39px;
    height: 35px;
    font-size: 18px;
}
#civ-plus-page .civp-result-container .civp-player-nickname { font-size: 19px; }
#civ-plus-page .civp-result-container .civp-player-rating { font-size: 16px; }
#civ-plus-page .civp-result-container .civp-player-civs { gap: 9px; }
#civ-plus-page .civp-result-container .civp-civ-card { min-height: 42px; padding: 5px 9px; }
#civ-plus-page .civp-result-container .civp-civ-icon-container { width: 30px; min-width: 30px; height: 30px; }
#civ-plus-page .civp-result-container .civp-civ-name { font-size: 15px; }

@media (max-width: 1024px) {
    #civ-plus-page .civp-result-container .civp-result-team { padding-right: 11px; padding-left: 11px; }
    #civ-plus-page .civp-result-container .civp-result-team-header,
    #civ-plus-page .civp-result-container .civp-players-left,
    #civ-plus-page .civp-result-container .civp-players-right { margin-right: -11px; margin-left: -11px; }
    #civ-plus-page .civp-result-container .civp-players-left,
    #civ-plus-page .civp-result-container .civp-players-right { padding-right: 11px; padding-left: 11px; }
}
@media (max-width: 768px) {
    #civ-plus-page .civp-game-container.civp-result-container { padding: 14px; }
    #civ-plus-page .civp-result-container .civp-pick-mode-badge { font-size: 27px; }
    #civ-plus-page .civp-empty-state { min-height: 530px; }
}
@media (max-width: 580px) {
    #civ-plus-page .civp-empty-brand { font-size: 30px; }
    #civ-plus-page .civp-empty-divider { width: 70px; }
    #civ-plus-page .civp-empty-copy h3 { font-size: 23px; }
    #civ-plus-page .civp-empty-copy p { font-size: 14px; }
    #civ-plus-page .civp-empty-hint { font-size: 12px; }
}
@media (max-width: 480px) {
    #civ-plus-page .civp-game-container.civp-result-container { padding: 9px; }
    #civ-plus-page .civp-result-container .civp-result-team { padding-right: 8px; padding-left: 8px; }
    #civ-plus-page .civp-result-container .civp-result-team-header,
    #civ-plus-page .civp-result-container .civp-players-left,
    #civ-plus-page .civp-result-container .civp-players-right { margin-right: -8px; margin-left: -8px; }
    #civ-plus-page .civp-result-container .civp-players-left,
    #civ-plus-page .civp-result-container .civp-players-right { padding-right: 8px; padding-left: 8px; }
    #civ-plus-page .civp-result-container .civp-team-crest { width: 34px; height: 34px; flex-basis: 34px; background-size: 55px 55px; }
    #civ-plus-page .civp-result-container .civp-team-header h4 { font-size: 16px; }
    #civ-plus-page .civp-result-container .civp-player-nickname { font-size: 14px; }
    #civ-plus-page .civp-result-container .civp-civ-name { font-size: 12px; }
}

/* Local CIV+ typography and full-panel empty artwork */
@font-face {
    font-family: "CIV Inter";
    src: url("/static/fonts/Inter-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "CIV Inter";
    src: url("/static/fonts/Inter-500.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "CIV Inter";
    src: url("/static/fonts/Inter-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "CIV Inter";
    src: url("/static/fonts/Inter-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
#civ-plus-page {
    font-family: "CIV Inter", "Inter", Arial, sans-serif;
}
#civ-plus-page .civp-result-container .civp-pick-mode-badge {
    font-family: "CIV Inter", "Inter", Arial, sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
}
#civ-plus-page .civp-empty-state,
#civ-plus-page .civp-empty-state:hover {
    min-height: 680px;
    background-image:
        linear-gradient(180deg, rgba(6, 15, 27, .36), rgba(6, 15, 27, .05) 42%, rgba(6, 15, 27, .5) 72%, rgba(6, 15, 27, .96)),
        url("/static/image/civ-plus-empty-background.png");
    background-position: center, center;
    background-size: cover;
    background-repeat: no-repeat;
}
#civ-plus-page .civp-empty-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: .01em;
}
#civ-plus-page .civp-empty-content {
    justify-content: flex-end;
    padding-bottom: 16px;
}
#civ-plus-page .civp-empty-copy h3,
#civ-plus-page .civp-empty-copy p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, .75);
}
@media (max-width: 768px) {
    #civ-plus-page .civp-empty-state,
    #civ-plus-page .civp-empty-state:hover { min-height: 560px; }
}
@media (max-width: 580px) {
    #civ-plus-page .civp-empty-brand { font-size: 30px; }
    #civ-plus-page .civp-empty-state,
    #civ-plus-page .civp-empty-state:hover { background-position: center, 52% center; }
}

/* CIV+ result panel: 1440 x 600 desktop bounds */
#civ-plus-page .civp-game-container.civp-result-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    max-height: 600px;
    margin-right: auto;
    margin-left: auto;
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
}
#civ-plus-page .civp-result-container .civp-game-header {
    min-height: 54px;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
}
#civ-plus-page .civp-result-container .civp-pick-mode-badge { font-size: 30px; }
#civ-plus-page .civp-result-container .civp-average-diff { font-size: 13px; padding: 4px 10px; }
#civ-plus-page .civp-result-container .civp-game-creator-meta { gap: 10px; }
#civ-plus-page .civp-result-container .civp-meta-item {
    min-height: 40px;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 10px;
}
#civ-plus-page .civp-result-container .civp-meta-icon { width: 15px; height: 15px; flex-basis: 15px; }
#civ-plus-page .civp-result-container .civp-meta-label,
#civ-plus-page .civp-result-container .civp-meta-value { font-size: 12px; }
#civ-plus-page .civp-result-container .civp-teams-layout { gap: 12px; }
#civ-plus-page .civp-result-container .civp-result-team {
    min-width: 0;
    padding: 0 14px 12px;
    border-radius: 13px;
}
#civ-plus-page .civp-result-container .civp-result-team-header {
    min-height: 50px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 16px;
}
#civ-plus-page .civp-result-container .civp-team-crest {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    margin-right: 10px;
    background-size: 59px 59px;
}
#civ-plus-page .civp-result-container .civp-team-header h4 { font-size: 19px; }
#civ-plus-page .civp-result-container .civp-players-left,
#civ-plus-page .civp-result-container .civp-players-right {
    margin-right: -14px;
    margin-left: -14px;
    padding: 12px 14px 0;
    gap: 8px;
    border-radius: 11px 11px 0 0;
}
#civ-plus-page .civp-result-container .civp-player-row {
    padding: 7px 10px;
    border-radius: 10px;
}
#civ-plus-page .civp-result-container .civp-player-header {
    min-height: 31px;
    gap: 8px;
    margin-bottom: 5px;
}
#civ-plus-page .civp-result-container .civp-player-nickname-wrap {
    gap: 6px;
    padding: 0 2px;
}
#civ-plus-page .civp-result-container .civp-player-number {
    width: 34px;
    min-width: 34px;
    height: 30px;
    font-size: 16px;
}
#civ-plus-page .civp-result-container .civp-player-nickname { font-size: 17px; }
#civ-plus-page .civp-result-container .civp-player-rating { font-size: 15px; }
#civ-plus-page .civp-result-container .civp-player-civs { gap: 7px; }
#civ-plus-page .civp-result-container .civp-civ-card {
    min-height: 36px;
    gap: 6px;
    padding: 4px 7px;
}
#civ-plus-page .civp-result-container .civp-civ-icon-container {
    width: 26px;
    min-width: 26px;
    height: 26px;
}
#civ-plus-page .civp-result-container .civp-civ-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}
@media (max-width: 1024px) {
    #civ-plus-page .civp-result-container .civp-result-team { padding-right: 10px; padding-left: 10px; }
    #civ-plus-page .civp-result-container .civp-result-team-header,
    #civ-plus-page .civp-result-container .civp-players-left,
    #civ-plus-page .civp-result-container .civp-players-right { margin-right: -10px; margin-left: -10px; }
    #civ-plus-page .civp-result-container .civp-players-left,
    #civ-plus-page .civp-result-container .civp-players-right { padding-right: 10px; padding-left: 10px; }
}
@media (max-width: 768px) {
    #civ-plus-page .civp-game-container.civp-result-container {
        max-height: none;
        padding: 14px;
        overflow: visible;
    }
    #civ-plus-page .civp-result-container .civp-pick-mode-badge { font-size: 25px; }
}
@media (max-width: 480px) {
    #civ-plus-page .civp-game-container.civp-result-container { padding: 9px; }
    #civ-plus-page .civp-result-container .civp-result-team { padding-right: 8px; padding-left: 8px; }
    #civ-plus-page .civp-result-container .civp-result-team-header,
    #civ-plus-page .civp-result-container .civp-players-left,
    #civ-plus-page .civp-result-container .civp-players-right { margin-right: -8px; margin-left: -8px; }
    #civ-plus-page .civp-result-container .civp-players-left,
    #civ-plus-page .civp-result-container .civp-players-right { padding-right: 8px; padding-left: 8px; }
    #civ-plus-page .civp-result-container .civp-team-crest { width: 32px; height: 32px; flex-basis: 32px; background-size: 52px 52px; }
    #civ-plus-page .civp-result-container .civp-team-header h4 { font-size: 16px; }
    #civ-plus-page .civp-result-container .civp-player-nickname { font-size: 14px; }
    #civ-plus-page .civp-result-container .civp-civ-name { font-size: 12px; }
}

/* Empty CIV+ message uses the site's restrained UI typography. */
@font-face {
    font-family: "CIV Manrope";
    src: url("/static/fonts/Manrope-500.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "CIV Manrope";
    src: url("/static/fonts/Manrope-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "CIV Manrope";
    src: url("/static/fonts/Manrope-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
#civ-plus-page .civp-empty-copy h3 {
    color: #e8edf5;
    font-family: "CIV Manrope", "Manrope", "CIV Inter", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-transform: none;
    font-synthesis: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .7);
}
#civ-plus-page .civp-empty-copy p {
    color: #b9c5d4;
    font-family: "CIV Manrope", "Manrope", "CIV Inter", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
}
#civ-plus-page .civp-empty-refresh {
    font-family: "CIV Manrope", "Manrope", "CIV Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
}
#civ-plus-page .civp-empty-hint {
    font-family: "CIV Manrope", "Manrope", "CIV Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}
@media (max-width: 580px) {
    #civ-plus-page .civp-empty-copy h3 { font-size: 23px; }
    #civ-plus-page .civp-empty-copy p { font-size: 14px; }
    #civ-plus-page .civp-empty-hint { font-size: 12px; }
}

/* Keep the empty CIV+ panel within 600px and scale its artwork with it. */
#civ-plus-page .civp-empty-state,
#civ-plus-page .civp-empty-state:hover {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    height: 600px;
    min-height: 0;
    max-height: 600px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(6, 15, 27, .38), rgba(6, 15, 27, .30) 48%, rgba(6, 15, 27, .94)),
        url("/static/image/civ-plus-empty-background.png") center / cover no-repeat;
}
#civ-plus-page .civp-empty-state::before {
    content: none;
}
#civ-plus-page .civp-empty-header,
#civ-plus-page .civp-empty-content {
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    #civ-plus-page .civp-empty-state,
    #civ-plus-page .civp-empty-state:hover {
        height: 560px;
        max-height: 600px;
    }
}
@media (max-width: 580px) {
    #civ-plus-page .civp-empty-state,
    #civ-plus-page .civp-empty-state:hover {
        height: min(560px, calc(100svh - 64px));
        min-height: 440px;
        max-height: 600px;
    }
}

/* CIV+ result: align picks with names and use the darker reference palette. */
#civ-plus-page .civp-game-container.civp-result-container {
    color: #f1f4f8;
    border-color: #26394d;
    background: linear-gradient(180deg, rgba(11, 23, 35, .90), rgba(7, 16, 26, .88));
}
#civ-plus-page .civp-result-container .civp-game-header { border-bottom-color: #26394d; }
#civ-plus-page .civp-result-container .civp-average-diff {
    color: #f0bc4d;
    border-color: #3a4651;
    background: rgba(231, 184, 75, .06);
}
#civ-plus-page .civp-result-container .civp-meta-item {
    border-color: #26394d;
    background: #0b1723;
}
#civ-plus-page .civp-result-container .civp-meta-label { color: #718196; }
#civ-plus-page .civp-result-container .civp-meta-value { color: #e7ebf0; }
#civ-plus-page .civp-result-container .civp-result-team {
    background: linear-gradient(180deg, #0d1a28, #091522);
}
#civ-plus-page .civp-result-container .civp-result-team-1 { border-color: rgba(41, 151, 232, .55); }
#civ-plus-page .civp-result-container .civp-result-team-2 { border-color: rgba(232, 77, 88, .50); }
#civ-plus-page .civp-result-container .civp-result-team-1 .civp-result-team-header {
    border-bottom-color: rgba(41, 151, 232, .35);
    background: linear-gradient(90deg, rgba(20, 123, 193, .17), rgba(20, 123, 193, .03));
}
#civ-plus-page .civp-result-container .civp-result-team-2 .civp-result-team-header {
    border-bottom-color: rgba(232, 77, 88, .32);
    background: linear-gradient(90deg, rgba(189, 53, 64, .15), rgba(189, 53, 64, .025));
}
#civ-plus-page .civp-result-container .civp-players-left { border-color: rgba(41, 151, 232, .35); }
#civ-plus-page .civp-result-container .civp-players-right { border-color: rgba(232, 77, 88, .32); }
#civ-plus-page .civp-result-container .civp-player-row {
    border-color: #1d3042;
    background: #0f1c29;
}
#civ-plus-page .civp-result-container .civp-player-row:hover {
    border-color: #2a3d50;
    background: #122232;
}
#civ-plus-page .civp-result-container .civp-player-civs {
    margin-left: 42px;
}
#civ-plus-page .civp-result-container .civp-civ-card {
    color: #e8edf3;
    border-color: #2a3d50;
    background: #111f2e;
}
#civ-plus-page .civp-result-container .civp-civ-card:hover {
    border-color: #38526b;
    background: #16283a;
}
#civ-plus-page .civp-result-container .civp-civ-name { color: #e8edf3; }
#civ-plus-page .civp-result-container .civp-player-rating { color: #f0bc4d; }
#civ-plus-page .civp-result-container .civp-player-number.team1-number {
    background: linear-gradient(180deg, #2997e8, #1470a9);
}
#civ-plus-page .civp-result-container .civp-player-number.team2-number {
    background: linear-gradient(180deg, #e6535d, #b5323d);
}
@media (max-width: 768px) {
    #civ-plus-page .civp-result-container .civp-player-civs { margin-left: 0; }
}
/* CIV+ player pick: highlight the row and the chosen civilization, not the nickname. */
#civ-plus-page .civp-result-container .civp-player-nickname-wrap.has-civ-selection,
#civ-plus-page .civp-result-container .civp-player-nickname-wrap.civp-player-drop-target-active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
#civ-plus-page .civp-result-container .civp-result-team-1 .civp-player-row:has(.has-civ-selection),
#civ-plus-page .civp-result-container .civp-result-team-1 .civp-player-row:has(.civp-player-drop-target-active) {
    border-color: rgba(41, 151, 232, .70);
    background: linear-gradient(90deg, rgba(41, 151, 232, .08), #0f1c29 35%);
}
#civ-plus-page .civp-result-container .civp-result-team-2 .civp-player-row:has(.has-civ-selection),
#civ-plus-page .civp-result-container .civp-result-team-2 .civp-player-row:has(.civp-player-drop-target-active) {
    border-color: rgba(232, 77, 88, .65);
    background: linear-gradient(90deg, rgba(232, 77, 88, .07), #0f1c29 35%);
}
#civ-plus-page .civp-result-container .civp-civ-card:hover {
    background: #182636;
    border-color: #40546a;
    box-shadow: none;
    transform: none;
}
#civ-plus-page .civp-result-container .civp-civ-card.civp-civ-selected,
#civ-plus-page .civp-result-container .civp-civ-card.civp-civ-selected:hover {
    color: #f4f6f8;
    background: rgba(231, 184, 75, .10);
    border-color: #e7b84b;
    box-shadow: 0 0 0 1px rgba(231, 184, 75, .10), 0 0 14px rgba(231, 184, 75, .10);
}
#civ-plus-page .civp-result-container .civp-civ-card.civp-civ-selected .civp-civ-name {
    color: #f4f6f8;
}
#civ-plus-page .civp-result-container .civp-civ-card.civp-dimmed,
#civ-plus-page .civp-result-container .civp-civ-card.civp-dimmed:hover {
    opacity: 1;
    color: #596778;
    background: #0d1824;
    border-color: #182838;
    box-shadow: none;
    filter: none;
    transform: none;
}
#civ-plus-page .civp-result-container .civp-civ-card.civp-dimmed .civp-civ-name {
    color: #596778;
}
#civ-plus-page .civp-result-container .civp-civ-card.civp-dimmed .civp-civ-icon {
    opacity: .38 !important;
    filter: saturate(.55);
}

/* Show progress while checking for a new CIV+ pick. */
#civ-plus-page .civp-empty-refresh.is-loading {
    opacity: .85;
    cursor: wait;
}
#civ-plus-page .civp-empty-refresh.is-loading svg {
    animation: civp-refresh-spin .85s linear infinite;
    transform-origin: center;
}
@keyframes civp-refresh-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    #civ-plus-page .civp-empty-refresh.is-loading svg { animation: none; }
}
/* CIV+ result palette: separate team, player, and civilization surfaces. */
#civ-plus-page .civp-game-container.civp-result-container {
    color: #f0f3f7;
    border-color: #223649;
    background: rgba(13, 23, 34, .90);
}
#civ-plus-page .civp-result-container .civp-game-header { border-bottom-color: #223649; }
#civ-plus-page .civp-result-container .civp-meta-item {
    background: #0d1722;
    border-color: #223649;
}
#civ-plus-page .civp-result-container .civp-meta-label { color: #6f7e91; }
#civ-plus-page .civp-result-container .civp-meta-value { color: #f0f3f7; }
#civ-plus-page .civp-result-container .civp-average-diff {
    color: #f0c652;
    background: rgba(216, 170, 55, .07);
    border-color: #8f6a1c;
}
#civ-plus-page .civp-result-container .civp-result-team { background: #0b141e; }
#civ-plus-page .civp-result-container .civp-result-team-1,
#civ-plus-page .civp-result-container .civp-players-left { border-color: #147db8; }
#civ-plus-page .civp-result-container .civp-result-team-2,
#civ-plus-page .civp-result-container .civp-players-right { border-color: #a92f42; }
#civ-plus-page .civp-result-container .civp-result-team-1 .civp-result-team-header {
    color: #1597e5;
    background: #0d2233;
    border-bottom-color: #147db8;
}
#civ-plus-page .civp-result-container .civp-result-team-2 .civp-result-team-header {
    color: #e13c50;
    background: #251821;
    border-bottom-color: #a92f42;
}
#civ-plus-page .civp-result-container .civp-player-number.team1-number {
    background: linear-gradient(180deg, #1597e5, #147db8);
}
#civ-plus-page .civp-result-container .civp-player-number.team2-number {
    background: linear-gradient(180deg, #e13c50, #a92f42);
}
#civ-plus-page .civp-result-container .civp-player-row {
    background: #101a26;
    border-color: #1c2d3d;
}
#civ-plus-page .civp-result-container .civp-player-row:hover {
    background: #13202d;
    border-color: #34475c;
}
#civ-plus-page .civp-result-container .civp-result-team-1 .civp-player-row:has(.has-civ-selection),
#civ-plus-page .civp-result-container .civp-result-team-1 .civp-player-row:has(.civp-player-drop-target-active) {
    background: linear-gradient(90deg, rgba(21, 151, 229, .07), #101a26 35%);
    border-color: #147db8;
}
#civ-plus-page .civp-result-container .civp-result-team-2 .civp-player-row:has(.has-civ-selection),
#civ-plus-page .civp-result-container .civp-result-team-2 .civp-player-row:has(.civp-player-drop-target-active) {
    background: linear-gradient(90deg, rgba(225, 60, 80, .07), #101a26 35%);
    border-color: #a92f42;
}
#civ-plus-page .civp-result-container .civp-civ-card {
    color: #f0f3f7;
    background: #1a2635;
    border-color: #34475c;
}
#civ-plus-page .civp-result-container .civp-civ-card:hover {
    background: #202e3f;
    border-color: #34475c;
}
#civ-plus-page .civp-result-container .civp-civ-card.civp-civ-selected {
    color: #f5f1e7;
    background: #2b281f;
    border-color: #d4a62a;
    box-shadow: inset 0 0 0 1px rgba(255, 202, 72, .08), 0 0 8px rgba(224, 169, 39, .18);
}
#civ-plus-page .civp-result-container .civp-civ-card.civp-civ-selected:hover {
    background: #322d20;
    border-color: #e8ba36;
}
#civ-plus-page .civp-result-container .civp-civ-card.civp-dimmed,
#civ-plus-page .civp-result-container .civp-civ-card.civp-dimmed:hover {
    opacity: 1;
    color: #657386;
    background: #121c27;
    border-color: #253545;
    box-shadow: none;
    filter: none;
    transform: none;
}
#civ-plus-page .civp-result-container .civp-civ-card.civp-dimmed .civp-civ-name { color: #657386; }
#civ-plus-page .civp-result-container .civp-civ-card.civp-dimmed .civp-civ-icon {
    opacity: .35 !important;
    filter: saturate(.55);
}
#civ-plus-page .civp-result-container .civp-civ-name,
#civ-plus-page .civp-result-container .civp-pick-mode-badge,
#civ-plus-page .civp-result-container .civp-team-header h4,
#civ-plus-page .civp-result-container .civp-player-nickname { color: #f0f3f7; }
#civ-plus-page .civp-result-container .civp-civ-card.civp-civ-selected .civp-civ-name { color: #f5f1e7; }
#civ-plus-page .civp-result-container .civp-player-rating.civp-rating-upper-mid,
#civ-plus-page .civp-result-container .civp-player-rating.civp-rating-mid { color: #f3b642 !important; }
#civ-plus-page .civp-result-container .civp-player-rating.civp-rating-high { color: #f15b60 !important; }

/* Team rating comparison in the CIV+ result header. */
#civ-plus-page .civ-plus-container:has(.civp-result-container) { padding-top: 12px; }
#civ-plus-page .civp-game-container.civp-result-container { margin-top: 10px; padding-top: 12.6px; }
@media (max-width: 768px) {
    #civ-plus-page .civ-plus-container:has(.civp-result-container) { padding-top: 8px; }
    #civ-plus-page .civp-game-container.civp-result-container { margin-top: 6px; padding-top: 9.8px; }
}
@media (max-width: 480px) {
    #civ-plus-page .civ-plus-container:has(.civp-result-container) { padding-top: 6px; }
    #civ-plus-page .civp-game-container.civp-result-container { padding-top: 6.3px; }
}
#civ-plus-page .civp-result-container .civp-game-header {
    min-height: 56px;
    padding-bottom: 10px;
}
#civ-plus-page .civp-result-container .civp-game-header--with-comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(680px, 44vw) minmax(0, 1fr);
    align-items: center;
    column-gap: 20px;
    row-gap: 16px;
}
#civ-plus-page .civp-result-container .civp-game-header-main,
#civ-plus-page .civp-result-container .civp-header-badges {
    min-width: 0;
    width: 100%;
}
#civ-plus-page .civp-result-container .civp-game-creator-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    width: 288px;
    justify-self: end;
    max-width: 100%;
}
#civ-plus-page .civp-result-container .civp-meta-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 8px;
    row-gap: 1px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 39px;
    padding: 3px 10px;
    border: 1px solid #806023;
    border-radius: 11px;
    background: linear-gradient(145deg, #0b1720, #080f15);
    box-shadow: inset 0 1px 0 rgba(246, 197, 88, .06);
}
#civ-plus-page .civp-result-container .civp-meta-icon {
    display: block;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 20px;
    height: 20px;
    stroke: #f1c25b;
}
#civ-plus-page .civp-result-container .civp-meta-label {
    grid-column: 2;
    color: #bfc6ce;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0;
}
#civ-plus-page .civp-result-container .civp-meta-value {
    grid-column: 2;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    color: #f3f4f7;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}
#civ-plus-page .civp-result-container .civp-meta-item.civp-mode-item {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 3px;
    width: 280px;
    max-width: 100%;
    min-height: 56px;
    padding: 8px 14px;
}
#civ-plus-page .civp-result-container .civp-mode-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    height: 38px;
    padding-right: 10px;
    border-right: 1px solid #294457;
}
#civ-plus-page .civp-result-container .civp-mode-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#civ-plus-page .civp-result-container .civp-mode-item .civp-meta-label { font-size: 12px; }
#civ-plus-page .civp-result-container .civp-mode-item .civp-pick-mode-badge {
    grid-column: 2;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#civ-plus-page .civp-result-container .civp-average-diff {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    height: 61px;
    margin: 0;
    padding: 0;
    justify-self: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1;
}
#civ-plus-page .civp-result-container .civp-average-diff-track {
    position: absolute;
    top: 22px;
    right: 140px;
    left: 140px;
    display: flex;
    height: 12px;
    box-sizing: border-box;
    padding: 2px;
    border: 1px solid #020a10;
    border-radius: 999px;
    background: #020b13;
    box-shadow: 0 0 0 1px #486072, -8px 0 16px rgba(0, 174, 255, .25), 8px 0 16px rgba(255, 38, 65, .25);
    overflow: visible;
    filter: none;
}
#civ-plus-page .civp-result-container .civp-average-diff-blue,
#civ-plus-page .civp-result-container .civp-average-diff-red {
    position: relative;
    display: block;
    height: 100%;
    min-width: 0;
}
#civ-plus-page .civp-result-container .civp-average-diff-blue {
    width: var(--civp-blue-share);
    flex: 0 0 var(--civp-blue-share);
    border-radius: 999px 0 0 999px;
    background: linear-gradient(180deg, #28d1ff, #0098e2 55%, #0061a6);
    box-shadow: 0 0 9px rgba(0, 183, 255, .55);
}
#civ-plus-page .civp-result-container .civp-average-diff-red {
    flex: 1 1 auto;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #ff6174, #f52748 55%, #a50728);
    box-shadow: 0 0 9px rgba(255, 40, 71, .55);
}
#civ-plus-page .civp-result-container .civp-average-diff-blue::before,
#civ-plus-page .civp-result-container .civp-average-diff-red::before { content: none; }
#civ-plus-page .civp-result-container .civp-average-diff-blue::after,
#civ-plus-page .civp-result-container .civp-average-diff-red::after {
    content: '';
    position: absolute;
    top: 1px;
    right: 6%;
    left: 6%;
    height: 2px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, .85) 55%, transparent 95%);
}
#civ-plus-page .civp-result-container .civp-average-diff-marker {
    position: absolute;
    z-index: 1;
    top: -6px;
    left: 50%;
    width: 4px;
    height: 22px;
    border: 1px solid #293740;
    border-radius: 3px;
    background: linear-gradient(90deg, #25313c, #c4cdd3 48%, #566472);
    box-shadow: 0 0 4px #020a10;
    transform: translateX(-50%);
}
#civ-plus-page .civp-result-container .civp-average-diff-team-icon {
    position: absolute;
    top: 0;
    width: 76px;
    height: 61px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
#civ-plus-page .civp-result-container .civp-average-diff-team1 {
    left: 0;
    background-image: url('/static/image/civp-team-deer-diamond.png');
}
#civ-plus-page .civp-result-container .civp-average-diff-team2 {
    right: 0;
    background-image: url('/static/image/civp-team-wolf-diamond.png');
}
#civ-plus-page .civp-result-container .civp-team-crest {
    width: 48px;
    height: 54px;
    flex-basis: 48px;
    background-size: contain;
    mix-blend-mode: normal;
    -webkit-mask-image: none;
    mask-image: none;
}
#civ-plus-page .civp-result-container .civp-team-crest-blue { background-image: url('/static/image/civp-team-deer-shield.png'); }
#civ-plus-page .civp-result-container .civp-team-crest-red { background-image: url('/static/image/civp-team-wolf-shield.png'); }
#civ-plus-page .civp-result-container .civp-average-diff-points {
    position: absolute;
    top: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 37px;
    isolation: isolate;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#civ-plus-page .civp-result-container .civp-average-diff-points-blue {
    left: 76px;
    color: #e1f6ff;
    text-shadow: 0 0 8px rgba(0, 168, 255, .7);
    --point-border: #00baff;
    --point-fill: #052b46;
}
#civ-plus-page .civp-result-container .civp-average-diff-points-red {
    right: 76px;
    color: #ffe0e5;
    text-shadow: 0 0 8px rgba(255, 40, 71, .7);
    --point-border: #ed3454;
    --point-fill: #3a101d;
}
#civ-plus-page .civp-result-container .civp-average-diff-points--advantage::before,
#civ-plus-page .civp-result-container .civp-average-diff-points--advantage::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    background: var(--point-border);
}
#civ-plus-page .civp-result-container .civp-average-diff-points--advantage::after {
    inset: 1px;
    background: linear-gradient(180deg, var(--point-fill), #07131e);
}
#civ-plus-page .civp-result-container .civp-average-diff-points--idle { color: var(--point-border); }
#civ-plus-page .civp-result-container .civp-average-diff-points--advantage { font-size: 21px; }
#civ-plus-page .civp-result-container .civp-average-diff-points--large { font-size: 15px; }
#civ-plus-page .civp-result-container .civp-average-diff-caption {
    position: absolute;
    right: 75px;
    bottom: 2px;
    left: 75px;
    color: #c8cbd2;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 1350px) {
    #civ-plus-page .civp-result-container .civp-game-header--with-comparison { grid-template-columns: minmax(0, 1fr) auto; }
    #civ-plus-page .civp-result-container .civp-average-diff { grid-column: 1 / -1; grid-row: 2; }
    #civ-plus-page .civp-result-container .civp-game-header--with-comparison .civp-game-creator-meta { grid-column: 2; grid-row: 1; }
}
@media (max-width: 580px) {
    #civ-plus-page .civp-result-container .civp-game-header--with-comparison { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    #civ-plus-page .civp-result-container .civp-meta-item.civp-mode-item { width: 240px; min-height: 50px; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 6px 12px; }
    #civ-plus-page .civp-result-container .civp-mode-icon { height: 34px; padding-right: 8px; }
    #civ-plus-page .civp-result-container .civp-mode-item .civp-pick-mode-badge { font-size: 18px; }
    #civ-plus-page .civp-result-container .civp-game-header--with-comparison .civp-game-creator-meta { grid-column: 1; grid-row: 3; width: min(288px, 80%); justify-self: center; }
    #civ-plus-page .civp-result-container .civp-average-diff { grid-column: 1; height: 50px; }
    #civ-plus-page .civp-result-container .civp-average-diff-track { top: 17px; right: 98px; left: 98px; height: 10px; }
    #civ-plus-page .civp-result-container .civp-average-diff-marker { top: -5px; height: 19px; }
    #civ-plus-page .civp-result-container .civp-average-diff-team-icon { width: 52px; height: 42px; }
    #civ-plus-page .civp-result-container .civp-average-diff-points { top: 5px; width: 44px; height: 30px; font-size: 15px; }
    #civ-plus-page .civp-result-container .civp-average-diff-points--advantage { font-size: 14px; }
    #civ-plus-page .civp-result-container .civp-average-diff-points--large { font-size: 11px; }
    #civ-plus-page .civp-result-container .civp-average-diff-points-blue { left: 52px; }
    #civ-plus-page .civp-result-container .civp-average-diff-points-red { right: 52px; }
    #civ-plus-page .civp-result-container .civp-average-diff-caption { right: 0; left: 0; bottom: 0; font-size: 10px; }
    #civ-plus-page .civp-result-container .civp-meta-item { grid-template-columns: 16px minmax(0, 1fr); column-gap: 4px; padding: 3px 6px; }
    #civ-plus-page .civp-result-container .civp-meta-icon { width: 16px; height: 16px; }
    #civ-plus-page .civp-result-container .civp-meta-label { font-size: 10px; }
    #civ-plus-page .civp-result-container .civp-meta-value { font-size: 11px; }
}

@media (max-width: 380px) {
    #civ-plus-page .civp-result-container .civp-meta-value { font-size: 10px; }
}

/* Team picks: player assignments above the remaining civilization reserve. */
#civ-plus-page .civp-result-container:has(.civp-team-pick-board) { max-height: none; }
#civ-plus-page .civp-result-container .civp-team-pick-board {
    --team-pick-accent: #1399d8;
    --team-pick-border: #214a65;
    --team-pick-tint: #0a2032;
    gap: 16px;
    min-width: 0;
    padding: 0 18px 18px;
    overflow: hidden;
    border: 1px solid var(--team-pick-border);
    border-radius: 13px;
    background: linear-gradient(180deg, #091724, #070f17);
}
#civ-plus-page .civp-result-container .civp-team-pick-board--2 {
    --team-pick-accent: #df4054;
    --team-pick-border: #63303b;
    --team-pick-tint: #28131c;
    background: linear-gradient(180deg, #1a111a, #090e16);
}
#civ-plus-page .civp-result-container .civp-team-pick-board .civp-team-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    min-height: 78px;
    margin: 0 -18px;
    padding: 8px 22px;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--team-pick-border);
    background: linear-gradient(100deg, var(--team-pick-tint), #080e18);
}
#civ-plus-page .civp-result-container .civp-team-pick-board .civp-team-header::after {
    content: '';
    position: absolute;
    top: -35px;
    right: 4px;
    width: 160px;
    height: 160px;
    opacity: .12;
    background: url('/static/image/civp-team-deer-shield.png') center / contain no-repeat;
    transform: rotate(-12deg);
    pointer-events: none;
}
#civ-plus-page .civp-result-container .civp-team-pick-board--2 .civp-team-header::after { background-image: url('/static/image/civp-team-wolf-shield.png'); }
#civ-plus-page .civp-result-container .civp-team-pick-board .civp-team-header h4 { margin: 0; padding: 0; border: 0; color: #f1f3f7; font-size: 22px; text-transform: uppercase; }
#civ-plus-page .civp-result-container .civp-team-pick-board .civp-team-crest { width: 56px; height: 62px; flex-basis: 56px; }
#civ-plus-page .civp-result-container .civp-team-pick-board .civp-team-roster { display: flex; flex-direction: column; gap: 12px; }
#civ-plus-page .civp-result-container .civp-team-pick-player-row {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    border-radius: 10px;
}
#civ-plus-page .civp-result-container .civp-team-pick-player-identity,
#civ-plus-page .civp-result-container .civp-team-pick-assigned-civ {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 56px;
    padding: 5px 10px;
    border: 1px solid var(--team-pick-border);
    border-radius: 10px;
    background: linear-gradient(115deg, var(--team-pick-tint), #0a131e);
    color: #f2f4f8;
}
#civ-plus-page .civp-result-container .civp-team-pick-player-number {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    height: 34px;
    margin-right: 5px;
    color: #f2f6ff;
    font-size: 20px;
    font-weight: 700;
}
#civ-plus-page .civp-result-container .civp-team-pick-player-number::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--team-pick-accent);
    border-radius: 5px;
    background: var(--team-pick-tint);
    box-shadow: inset 0 0 10px color-mix(in srgb, var(--team-pick-accent) 20%, transparent);
    transform: rotate(45deg);
}
#civ-plus-page .civp-result-container .civp-team-pick-player-number span { position: relative; }
#civ-plus-page .civp-result-container .civp-team-pick-player-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    height: 40px;
    border: 1px solid #a98742;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #303b46, #080e15 70%);
    color: #d8c18c;
}
#civ-plus-page .civp-result-container .civp-team-pick-player-avatar svg { width: 26px; height: 26px; }
#civ-plus-page .civp-result-container .civp-team-pick-player-row .civp-team-player-name { font-size: 16px; font-weight: 600; }
#civ-plus-page .civp-result-container .civp-team-pick-assigned-civ { justify-content: flex-start; cursor: grab; }
#civ-plus-page .civp-result-container .civp-team-pick-assigned-civ .civp-civ-icon-container,
#civ-plus-page .civp-result-container .civp-team-pick-reserve .civp-civ-icon-container {
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 3px;
    border: 1px solid var(--team-pick-border);
    border-radius: 50%;
    background: #101b26 !important;
}
#civ-plus-page .civp-result-container .civp-team-pick-assigned-civ .civp-civ-name,
#civ-plus-page .civp-result-container .civp-team-pick-reserve .civp-civ-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
#civ-plus-page .civp-result-container .civp-team-pick-unassigned {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border: 1px dashed #465363;
    border-radius: 10px;
    background: rgba(10, 18, 28, .45);
    color: #8593a7;
    font-size: 14px;
}
#civ-plus-page .civp-result-container .civp-team-pick-player-row.current-user .civp-team-pick-player-identity { border-color: #bc963d; }
#civ-plus-page .civp-result-container .civp-team-pick-player-row.civp-drop-target-active { outline: 1px solid var(--team-pick-accent); outline-offset: 3px; }
#civ-plus-page .civp-result-container .civp-team-pick-reserve { margin-top: 2px; padding-top: 14px; border-top: 1px dashed var(--team-pick-border); }
#civ-plus-page .civp-result-container .civp-team-pick-reserve-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #e6bc60; font-size: 16px; }
#civ-plus-page .civp-result-container .civp-team-pick-reserve-heading .civp-team-pick-reserve-icon { width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; }
#civ-plus-page .civp-result-container .civp-team-pick-reserve-heading::after { content: ''; height: 1px; flex: 1; background: #806023; }
#civ-plus-page .civp-result-container .civp-team-pick-reserve .civp-local-civ-pool { padding: 0; border: 0; border-radius: 0; min-height: 42px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#civ-plus-page .civp-result-container .civp-team-pick-reserve .civp-civ-card { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 54px; margin: 0; padding: 4px 8px; border: 1px solid var(--team-pick-border); border-radius: 10px; background: linear-gradient(115deg, var(--team-pick-tint), #0a131e); }
#civ-plus-page .civp-result-container .civp-team-pick-reserve-empty { margin-top: -34px; padding: 10px; color: #8593a7; text-align: center; font-size: 13px; pointer-events: none; }
#civ-plus-page .civp-result-container .civp-team-pick-player-avatar { position: relative; overflow: hidden; }
#civ-plus-page .civp-result-container .civp-team-pick-player-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#civ-plus-page .civp-result-container .civp-team-pick-player-avatar img[hidden] { display: none; }
#civ-plus-page .civp-result-container .civp-team-pick-picker { min-width: 0; width: 100%; }
#civ-plus-page .civp-result-container .civp-team-pick-picker summary { list-style: none; cursor: pointer; }
#civ-plus-page .civp-result-container .civp-team-pick-picker summary::-webkit-details-marker { display: none; }
#civ-plus-page .civp-result-container .civp-team-pick-unassigned { box-sizing: border-box; min-height: 56px; justify-content: flex-start; gap: 12px; padding: 5px 14px; }
#civ-plus-page .civp-result-container .civp-team-pick-plus { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid #8593a7; border-radius: 50%; font-size: 21px; font-weight: 400; line-height: 1; }
#civ-plus-page .civp-result-container .civp-team-pick-unassigned-label { flex: 1; min-width: 0; }
#civ-plus-page .civp-result-container .civp-team-pick-chevron { width: 16px; height: 16px; flex: 0 0 16px; margin-left: auto; color: #8593a7; }
#civ-plus-page .civp-result-container .civp-team-pick-picker[open] .civp-team-pick-chevron { transform: rotate(180deg); }
#civ-plus-page .civp-result-container .civp-team-pick-picker summary:focus-visible,
#civ-plus-page .civp-result-container .civp-team-pick-civ-options button:focus-visible { outline: 2px solid var(--team-pick-accent); outline-offset: 2px; }
#civ-plus-page .civp-result-container .civp-team-pick-civ-options { display: grid; gap: 4px; max-height: 250px; overflow-y: auto; margin-top: 6px; padding: 6px; border: 1px solid var(--team-pick-border); border-radius: 10px; background: #0a121d; }
#civ-plus-page .civp-result-container .civp-team-pick-civ-option { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 6px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #f2f4f8; font: inherit; text-align: left; cursor: pointer; }
#civ-plus-page .civp-result-container .civp-team-pick-civ-option:hover { border-color: var(--team-pick-border); background: var(--team-pick-tint); }
#civ-plus-page .civp-result-container .civp-team-pick-civ-option .civp-civ-icon-container { width: 36px; min-width: 36px; height: 36px; margin: 0; }
#civ-plus-page .civp-result-container .civp-team-pick-civ-option .civp-civ-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
#civ-plus-page .civp-result-container .civp-team-pick-civ-return { padding: 9px 6px; border: 0; border-top: 1px solid var(--team-pick-border); background: transparent; color: #e6bc60; font: inherit; font-size: 13px; cursor: pointer; }
#civ-plus-page .civp-result-container .civp-team-pick-choice-empty { padding: 10px; color: #8593a7; font-size: 13px; }
@media (min-width: 581px) and (max-width: 1350px) {
    #civ-plus-page .civp-result-container .civp-team-pick-reserve .civp-local-civ-pool { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
    #civ-plus-page .civp-result-container .civp-team-pick-board { padding-right: 12px; padding-left: 12px; }
    #civ-plus-page .civp-result-container .civp-team-pick-board .civp-team-header { min-height: 64px; margin-right: -12px; margin-left: -12px; padding: 6px 14px; gap: 12px; }
    #civ-plus-page .civp-result-container .civp-team-pick-board .civp-team-header h4 { font-size: 18px; }
    #civ-plus-page .civp-result-container .civp-team-pick-board .civp-team-crest { width: 44px; height: 50px; flex-basis: 44px; }
    #civ-plus-page .civp-result-container .civp-team-pick-player-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    #civ-plus-page .civp-result-container .civp-team-pick-picker { margin-left: 42px; width: calc(100% - 42px); }
    #civ-plus-page .civp-result-container .civp-team-pick-reserve .civp-local-civ-pool { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #civ-plus-page .civp-result-container .civp-team-pick-player-identity { min-height: 49px; }
    #civ-plus-page .civp-result-container .civp-team-pick-assigned-civ, #civ-plus-page .civp-result-container .civp-team-pick-unassigned { min-height: 50px; margin-left: 0; }
    #civ-plus-page .civp-result-container .civp-team-pick-player-row .civp-team-player-name, #civ-plus-page .civp-result-container .civp-team-pick-reserve .civp-civ-name, #civ-plus-page .civp-result-container .civp-team-pick-assigned-civ .civp-civ-name { font-size: 14px; }
    #civ-plus-page .civp-result-container .civp-team-pick-player-avatar { flex-basis: 34px; height: 34px; }
    #civ-plus-page .civp-result-container .civp-team-pick-player-number { flex-basis: 28px; height: 28px; font-size: 17px; }
}

@media (max-width: 380px) {
    #civ-plus-page .civp-result-container .civp-team-pick-reserve .civp-local-civ-pool { grid-template-columns: minmax(0, 1fr); }
}

/* Full draft view: tournament board palette and layout. */
#draft-page .civp-draft-container {
    --bg-main: #0a101c;
    --bg-deep: #070c14;
    --bg-panel: #0c1725;
    --bg-card: #102033;
    --bg-card-hover: #152b43;
    --blue: #175a9b;
    --blue-bright: #168bd2;
    --blue-border: #0b6fae;
    --red: #d33248;
    --red-bright: #ff4961;
    --red-dark: #611e26;
    --red-panel: #30131c;
    --red-border: #9f3447;
    --gold: #d5aa3c;
    --gold-bright: #f0c857;
    --gold-muted: #9f9153;
    --text-primary: #e0dedf;
    --text-secondary: #9f9795;
    --text-muted: #68778b;
    --text-gold: #f1cf74;
    --border-default: #213450;
    --border-soft: #364558;
    --selected-bg: #3a131d;
    --selected-border: #ff5a6f;
    --selected-glow: rgba(255, 73, 97, .45);
    box-sizing: border-box;
    width: 100%;
    max-width: 1640px;
    margin: 18px auto 0;
    padding: 22px 24px;
    overflow: visible;
    color: var(--text-primary);
    font-family: "CIV Inter", "Inter", "Segoe UI", sans-serif;
    border: 1px solid #17293c;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 0, #0e2637 0, transparent 58%),
        linear-gradient(180deg, var(--bg-main), var(--bg-deep));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}
#draft-page .civp-draft-container .civp-game-header {
    display: grid;
    grid-template-columns: minmax(210px, 265px) minmax(0, 1fr) minmax(200px, 255px);
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-default);
}
#draft-page .civp-draft-container .civp-game-header-main,
#draft-page .civp-draft-container .civp-header-badges { min-width: 0; width: 100%; }
#draft-page .civp-draft-container .civp-draft-stage-tracker {
    width: 100%;
    max-width: none;
    min-height: 102px;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: linear-gradient(145deg, #102236, #081522);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
#draft-page .civp-draft-container .civp-draft-stage-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
}
#civ-plus-page .civp-draft-start-bans { display: flex; gap: 10px; margin-top: 10px; }
#civ-plus-page .civp-draft-start-ban {
    position: relative;
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    color: #fff;
    border: 1px solid #8aa5c0;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
#civ-plus-page .civp-draft-start-ban-team1 { background: linear-gradient(#185da7, #0b2f66); }
#civ-plus-page .civp-draft-start-ban-team2 { background: linear-gradient(#d73550, #6d1428); }
#civ-plus-page .civp-draft-start-ban small {
    position: absolute;
    right: -2px;
    bottom: -6px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    color: #fff;
    border-radius: 50%;
    background: #159b50;
    font-size: 12px;
}
#draft-page .civp-draft-container .civp-draft-overview-bar {
    grid-column: 2;
    grid-row: 1;
    display: block;
    min-width: 0;
    min-height: 102px;
    margin: 0;
    overflow: hidden;
}
#draft-page .civp-draft-container .civp-draft-stage-sequence {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 102px;
    overflow-x: auto;
    background: linear-gradient(90deg, transparent 0, #38536b 4%, #38536b 96%, transparent 100%) center 64px / 100% 3px no-repeat;
}
#draft-page .civp-draft-container .civp-draft-stage-step {
    position: relative;
    display: flex;
    flex: 0 0 82px;
    flex-direction: column;
    align-items: center;
    min-width: 82px;
    min-height: 0;
    padding: 2px 3px 0;
    color: #a9b8ca;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    font-weight: 500;
    transform: none;
}
#draft-page .civp-draft-container .civp-draft-stage-step-label {
    height: 41px;
    text-align: center;
    line-height: 1.35;
}
#draft-page .civp-draft-container .civp-draft-stage-step-dot {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    color: #e7f2ff;
    border: 1px solid #5b748e;
    border-radius: 50%;
    background: #0a1725;
    font-size: 14px;
}
#draft-page .civp-draft-container .civp-draft-stage-step-number { margin-top: 3px; color: #8393a8; }
#draft-page .civp-draft-container .civp-draft-stage-step.is-done .civp-draft-stage-step-dot {
    color: #d8f4e4;
    border-color: #398765;
    background: #164d3b;
}
#draft-page .civp-draft-container .civp-draft-stage-step.is-current { color: #ff6d7e; }
#draft-page .civp-draft-container .civp-draft-stage-step.is-current .civp-draft-stage-step-dot {
    border: 2px solid var(--red-bright);
    background: var(--red-dark);
    box-shadow: 0 0 0 5px rgba(255, 73, 97, .12), 0 0 18px var(--selected-glow);
}
#draft-page .civp-draft-container .civp-draft-stage-step.is-current.civp-draft-stage-pick .civp-draft-stage-step-dot {
    border-color: var(--blue-bright);
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(22, 139, 210, .14), 0 0 18px rgba(22, 139, 210, .4);
}
#draft-page .civp-draft-container .civp-draft-stage-finish .civp-draft-stage-step-dot { border-radius: 9px; font-size: 17px; }
#draft-page .civp-draft-container .civp-game-creator-meta {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: #0b1929;
}
#draft-page .civp-draft-container .civp-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #11304b;
    border-radius: 8px;
    background: #091827;
    box-shadow: none;
}
#draft-page .civp-draft-container .civp-meta-label { color: #adc0d3; font-size: 11px; }
#draft-page .civp-draft-container .civp-meta-value { color: #f2f4f7; font-size: 13px; }
#draft-page .civp-draft-container .civp-draft-layout {
    grid-template-columns: minmax(250px, 1fr) minmax(0, 2.55fr) minmax(250px, 1fr);
    align-items: stretch;
    gap: 16px;
    background: transparent;
}
#draft-page .civp-draft-container .civp-draft-team-column,
#draft-page .civp-draft-container .civp-draft-center { min-width: 0; }
#draft-page .civp-draft-container .civp-draft-team-board {
    min-height: 100%;
    padding: 12px;
    border-radius: 10px;
    border-color: var(--blue-border);
    background: linear-gradient(180deg, #071b2c, #061421);
    box-shadow: inset 0 0 24px rgba(22, 139, 210, .06);
}
#draft-page .civp-draft-container .civp-draft-team-board.civp-team-right {
    border-color: var(--red-border);
    background: linear-gradient(180deg, #25101b, #130d17 65%, #0c0d14);
    box-shadow: inset 0 0 24px rgba(211, 50, 72, .06);
}
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-header { margin-bottom: 10px; }
#draft-page .civp-draft-container .civp-draft-team-header-main { flex-direction: row; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
#draft-page .civp-draft-container .civp-draft-team-crest {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    background-position: center;
    background-size: auto 55px;
    background-repeat: no-repeat;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .42));
}
#draft-page .civp-draft-container .civp-draft-team-crest-1 { background-image: url('/static/image/civp-team-deer-shield.png'); }
#draft-page .civp-draft-container .civp-draft-team-crest-2 { background-image: url('/static/image/civp-team-wolf-shield.png'); }
#draft-page .civp-draft-container .civp-team-header h4 {
    margin: 0;
    padding: 0;
    color: var(--gold-bright);
    border: 0;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .025em;
}
#draft-page .civp-draft-container .civp-draft-team-board .civp-draft-team-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
#draft-page .civp-draft-container .civp-draft-counter {
    height: 48px;
    padding: 0 9px;
    border-color: #102a43;
    background: #091525;
    border-radius: 8px;
}
#draft-page .civp-draft-container .civp-team-right .civp-draft-counter { border-color: #3a1927; background: #170e18; }
#draft-page .civp-draft-container .civp-draft-counter-label { color: var(--text-primary); font-size: 13px; }
#draft-page .civp-draft-container .civp-draft-counter-label strong { color: #f3f3f5; }
#draft-page .civp-draft-container .civp-draft-picker-row { display: flex; flex-wrap: nowrap; margin: 8px 0; gap: 7px; }
#draft-page .civp-draft-container .civp-draft-picker-label {
    min-width: 0;
    min-height: 36px;
    flex: 1 1 auto;
    padding: 7px 10px;
    overflow: hidden;
    color: #edf0f3;
    border-color: #183551;
    background: #0b1a2b;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#draft-page .civp-draft-container .civp-team-right .civp-draft-picker-label { border-color: #4a202b; background: #22121c; }
#draft-page .civp-draft-container .civp-draft-picker-btn,
#draft-page .civp-draft-container .civp-draft-release-btn {
    min-height: 36px;
    padding: 7px 10px !important;
    color: var(--gold-bright) !important;
    border-color: #36435e !important;
    border-radius: 8px;
    background: linear-gradient(#344761, #1d2c47) !important;
    font-size: 12px;
    white-space: nowrap;
}
#draft-page .civp-draft-container .civp-team-roster { gap: 7px; }
#draft-page .civp-draft-container .civp-team-player-tag { height: 52px; border-radius: 999px; }
#draft-page .civp-draft-container .civp-team-player-tag:not(:has(.civp-team-player-civ-icons))::before {
    content: '';
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid #596c80;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #91a5b8 0 5px, transparent 6px),
        radial-gradient(ellipse at 50% 82%, #687e92 0 11px, transparent 12px), #17293b;
}
#draft-page .civp-draft-container .civp-team-player-name { color: #f1edf0; font-size: 16px; }
#draft-page .civp-draft-container .civp-team-player-rating-badge {
    color: var(--gold-bright) !important;
    background: #0b2941;
    border-color: var(--blue-border);
    font-size: 14px;
}
#draft-page .civp-draft-container .civp-team-right .civp-team-player-rating-badge { background: #2b1220; border-color: var(--red-border); }
/* Team boards in the draft lobby. */
#draft-page .civp-draft-container .civp-draft-team-board {
    --board-accent: #078aca;
    --board-accent-soft: rgba(0, 155, 226, .16);
    --board-row-border: #173c58;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--board-accent);
    border-radius: 18px;
    background: linear-gradient(160deg, #051b2b, #03111d 55%, #061c2b);
    box-shadow: inset 0 0 28px var(--board-accent-soft), 0 16px 32px rgba(0, 0, 0, .24);
}
#draft-page .civp-draft-container .civp-draft-team-board.civp-team-right {
    --board-accent: #bc344b;
    --board-accent-soft: rgba(204, 48, 76, .14);
    --board-row-border: #512330;
    background: linear-gradient(160deg, #26121d, #150d18 55%, #25111b);
}
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-header {
    order: 1;
    margin: 0;
}
#draft-page .civp-draft-container .civp-draft-team-header-main {
    justify-content: flex-start;
    min-height: 78px;
    box-sizing: border-box;
    margin: 0;
    padding: 11px 14px;
    border-bottom: 1px solid var(--board-accent);
    background: radial-gradient(circle at 15% 40%, var(--board-accent-soft), transparent 72%);
}
#draft-page .civp-draft-container .civp-draft-team-crest {
    width: 54px;
    height: 56px;
    flex-basis: 54px;
    background-size: contain;
}
#draft-page .civp-draft-container .civp-team-header h4 {
    color: #f7f8fc;
    font-size: clamp(18px, 1.65vw, 24px);
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}
#draft-page .civp-draft-container .civp-draft-team-board .civp-draft-team-badges {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: none;
    gap: 8px;
    padding: 14px 12px 12px;
}
#draft-page .civp-draft-container .civp-draft-team-board .civp-draft-counter,
#draft-page .civp-draft-container .civp-team-right .civp-draft-counter {
    width: auto;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #28567e;
    border-radius: 999px;
    background: linear-gradient(180deg, #0c2c49, #081c30);
    box-shadow: inset 0 1px 5px rgba(103, 188, 255, .13);
}
#draft-page .civp-draft-container .civp-team-right .civp-draft-counter {
    border-color: #793447;
    background: linear-gradient(180deg, #44202e, #291522);
    box-shadow: inset 0 1px 5px rgba(255, 115, 132, .1);
}
#draft-page .civp-draft-container .civp-draft-counter:nth-child(3) { grid-column: auto; }
#draft-page .civp-draft-container .civp-draft-counter-icon { display: none; }
#draft-page .civp-draft-container .civp-draft-counter-label { color: #d4e6fa; font-size: 14px; }
#draft-page .civp-draft-container .civp-draft-counter-label strong { color: inherit; font-weight: 700; }
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-roster {
    order: 2;
    gap: 8px;
    padding: 0 12px;
}
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-player-tag {
    height: 56px;
    min-height: 56px;
    gap: 9px;
    padding: 6px 9px;
    border: 1px solid var(--board-row-border);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(7, 25, 40, .98), rgba(11, 31, 47, .84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
#draft-page .civp-draft-container .civp-team-right .civp-team-player-tag {
    background: linear-gradient(90deg, rgba(37, 17, 27, .98), rgba(44, 20, 31, .86));
}
#draft-page .civp-draft-container .civp-team-player-tag:not(:has(.civp-team-player-civ-icons))::before { display: none; }
#draft-page .civp-draft-container .civp-draft-player-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 38px;
    flex: 0 0 34px;
    border: 1px solid #1fb5ee;
    border-radius: 8px;
    background: linear-gradient(160deg, #10a5e8, #0872bd);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}
#draft-page .civp-draft-container .civp-team-right .civp-draft-player-number {
    border-color: #ef566e;
    background: linear-gradient(160deg, #ef4962, #ac2540);
}
#draft-page .civp-draft-container .civp-team-player-name {
    color: #f1f5fb;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
}
#draft-page .civp-draft-container .civp-team-player-rating-badge,
#draft-page .civp-draft-container .civp-team-right .civp-team-player-rating-badge {
    min-width: 54px;
    padding: 5px 7px;
    color: #f3bf62 !important;
    border-color: #a8722c;
    border-radius: 999px;
    background: #0b1a28;
    font-size: 14px;
    font-weight: 700;
}
#draft-page .civp-draft-container .civp-draft-picker-row {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 16px 12px 0;
    padding-top: 13px;
    border-top: 1px solid var(--board-row-border);
}
#draft-page .civp-draft-container .civp-draft-picker-label,
#draft-page .civp-draft-container .civp-team-right .civp-draft-picker-label {
    width: fit-content;
    max-width: 100%;
    flex: 0 1 auto;
    min-height: 38px;
    padding: 7px 12px;
    border-color: var(--board-row-border);
    border-radius: 10px;
    background: rgba(7, 25, 40, .74);
    color: #e7d5bf;
    font-size: 14px;
    font-weight: 700;
}
#draft-page .civp-draft-container .civp-draft-picker-btn,
#draft-page .civp-draft-container .civp-draft-release-btn {
    width: 100%;
    min-height: 46px;
    color: #f5c76f !important;
    border: 1px solid #f1bf60 !important;
    border-radius: 10px;
    background: linear-gradient(180deg, #17446c, #08243d) !important;
    box-shadow: 0 0 0 2px rgba(245, 190, 91, .16), inset 0 1px 9px rgba(84, 171, 244, .24);
    font-size: 17px;
    font-weight: 800;
}
#draft-page .civp-draft-container .civp-team-right .civp-draft-picker-btn,
#draft-page .civp-draft-container .civp-team-right .civp-draft-release-btn {
    background: linear-gradient(180deg, #70283a, #3e1828) !important;
    box-shadow: 0 0 0 2px rgba(245, 190, 91, .16), inset 0 1px 9px rgba(250, 101, 120, .18);
}
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-civs-grid {
    order: 4;
    margin: 12px;
}
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-civs-grid:empty { display: none; }
#draft-page .civp-draft-container .civp-draft-log {
    order: 5;
    margin: 14px 12px 12px;
    padding-top: 12px;
    border-top: 1px solid var(--board-row-border);
}
#draft-page .civp-draft-container .civp-draft-log-item,
#draft-page .civp-draft-container .civp-draft-log-empty {
    border: 1px solid var(--board-row-border);
    border-radius: 10px;
    background: rgba(10, 29, 45, .82);
    color: #adc0d2;
}
#draft-page .civp-draft-container .civp-team-right .civp-draft-log-item,
#draft-page .civp-draft-container .civp-team-right .civp-draft-log-empty {
    background: rgba(41, 19, 29, .82);
}
#draft-page .civp-draft-container .civp-draft-center { gap: 14px; }
#draft-page .civp-draft-container .civp-draft-turn-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 96px;
    box-sizing: border-box;
    padding: 14px 20px;
    border: 1px solid var(--red-border);
    border-radius: 10px;
    background: radial-gradient(circle at 70% 50%, #35111f, transparent 70%), #1b101b;
}
#draft-page .civp-draft-container .civp-draft-turn-banner.is-pick { border-color: var(--blue-border); background: radial-gradient(circle at 70% 50%, #123b5b, transparent 70%), #0b1a2a; }
#draft-page .civp-draft-container .civp-draft-turn-banner.is-ready { border-color: var(--gold-dark); background: #1b1a17; }
#draft-page .civp-draft-container .civp-draft-turn-symbol { color: var(--red-bright); font-size: 54px; line-height: 1; }
#draft-page .civp-draft-container .is-pick .civp-draft-turn-symbol { color: var(--blue-bright); }
#draft-page .civp-draft-container .is-ready .civp-draft-turn-symbol { color: var(--gold-bright); }
#draft-page .civp-draft-container .civp-draft-turn-copy { min-width: 0; flex: 1 1 auto; }
#draft-page .civp-draft-container .civp-draft-turn-heading { display: flex; align-items: center; gap: 14px; }
#draft-page .civp-draft-container .civp-draft-turn-heading strong { color: #f5dfc3; font-size: clamp(19px, 2vw, 28px); letter-spacing: .02em; white-space: nowrap; }
#draft-page .civp-draft-container .civp-draft-turn-heading span { padding: 5px 10px; color: #f0d9dc; border: 1px solid var(--red-border); border-radius: 999px; font-size: 13px; white-space: nowrap; }
#draft-page .civp-draft-container .is-pick .civp-draft-turn-heading span { border-color: var(--blue-border); }
#draft-page .civp-draft-container .civp-draft-turn-copy p { margin: 4px 0 0; color: var(--text-primary); font-size: 14px; }
#draft-page .civp-draft-container .civp-draft-banner-timer { display: grid; grid-template-columns: 46px auto; column-gap: 8px; align-items: center; flex: 0 0 auto; }
#draft-page .civp-draft-container .civp-draft-banner-ring { grid-row: 1 / 3; width: 46px; height: 46px; box-sizing: border-box; border: 5px solid var(--red-bright); border-right-color: #521c2a; border-radius: 50%; box-shadow: 0 0 13px rgba(255, 73, 97, .45); }
#draft-page .civp-draft-container .is-pick .civp-draft-banner-ring { border-color: var(--blue-bright); border-right-color: #16344d; box-shadow: 0 0 13px rgba(22, 139, 210, .4); }
#draft-page .civp-draft-container .civp-draft-banner-time { color: #fff3e5; font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
#draft-page .civp-draft-container .civp-draft-banner-timer small { color: #bbc0c8; font-size: 11px; }
#draft-page .civp-draft-container .civp-draft-banner-timer.is-expiring .civp-draft-banner-ring { animation: civp-draft-timer-pulse 1s ease-in-out infinite; }
@keyframes civp-draft-timer-pulse { 50% { opacity: .55; box-shadow: 0 0 23px rgba(255, 73, 97, .8); } }
#draft-page .civp-draft-container .civp-draft-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card {
    width: 100%;
    height: 156px;
    min-height: 156px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 11px 7px 9px;
    border: 1px solid #2b4c68;
    border-radius: 9px;
    background: linear-gradient(180deg, var(--bg-card), #081827);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card.civp-draft-card-available[data-can-select="true"]:hover,
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card.civp-draft-card-available[data-can-select="true"]:focus-visible {
    transform: translateY(-2px);
    border-color: var(--blue-bright);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}
#draft-page .civp-draft-container .civp-draft-grid .civp-civ-icon-container {
    width: 68px;
    height: 68px;
    min-width: 68px;
    flex-basis: 68px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-civ-name {
    width: 100%;
    color: #f0edf0;
    font-size: 15px;
    text-align: center;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card.civp-draft-card-selected,
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card.civp-draft-card-selected:hover {
    transform: none;
    border: 2px solid var(--gold-bright);
    background: radial-gradient(circle at 50% 40%, #273747, #0d1b29);
    box-shadow: 0 0 0 2px rgba(240, 200, 87, .14), 0 0 18px rgba(240, 200, 87, .28);
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-selected .civp-civ-name { color: #fff0c1; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-banned,
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-picked,
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-leftover { opacity: 1; }
#draft-page .civp-draft-container .civp-draft-grid-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    color: #a8c6e2;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
#draft-page .civp-draft-container .civp-draft-grid-heading::before,
#draft-page .civp-draft-container .civp-draft-grid-heading::after {
    content: '';
    flex: 1 1 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #25435e);
}
#draft-page .civp-draft-container .civp-draft-grid-heading::after {
    transform: rotate(180deg);
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card.civp-draft-card-locked.civp-draft-card-available {
    opacity: 1;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-civ-icon-container {
    flex: 0 0 72px;
    width: 72px;
    min-width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: #050d16;
    box-shadow: 0 0 0 2px #020910, 0 0 0 3px rgba(81, 123, 153, .35);
}
#draft-page .civp-draft-container .civp-draft-grid .civp-civ-name {
    flex: 0 0 auto;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    text-shadow: none;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-status {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 30px;
    box-sizing: border-box;
    margin-top: auto;
    padding: 2px 4px;
    border: 1px solid #0d5b54;
    border-radius: 7px;
    background: linear-gradient(180deg, #063630, #092724);
    color: #81d6c9;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-picked.civp-draft-team1,
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-picked.civp-draft-team1:hover {
    border-color: #168bd2;
    background: radial-gradient(circle at 50% 25%, #103453, #081a29 75%);
    box-shadow: inset 0 0 18px rgba(15, 146, 224, .22), 0 0 12px rgba(15, 146, 224, .2);
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-picked.civp-draft-team2,
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-picked.civp-draft-team2:hover {
    border-color: #dc475c;
    background: radial-gradient(circle at 50% 25%, #3b1a28, #111722 75%);
    box-shadow: inset 0 0 18px rgba(220, 71, 92, .18), 0 0 12px rgba(220, 71, 92, .16);
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-status-team1 {
    border-color: #075b96;
    background: linear-gradient(180deg, #0a385f, #082942);
    color: #76cfff;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-status-team2 {
    border-color: #8e3349;
    background: linear-gradient(180deg, #552134, #391b2a);
    color: #ff9bac;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-status-pending {
    border-color: #a88637;
    background: linear-gradient(180deg, #483916, #2a2619);
    color: #ffe08a;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-banned,
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-banned:hover,
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-picked.civp-draft-card-banned {
    border-color: #853242;
    background: radial-gradient(circle at 50% 25%, #2d1822, #141820 76%);
    box-shadow: inset 0 0 15px rgba(117, 30, 47, .18);
    filter: none;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-banned .civp-civ-icon {
    filter: grayscale(.7) brightness(.55);
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-status-banned {
    border-color: #813040;
    background: linear-gradient(180deg, #441923, #30171f);
    color: #f49aa1;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-leftover {
    border-color: #30465a;
    background: linear-gradient(180deg, #102130, #0c1926);
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-status-leftover {
    border-color: #41556a;
    background: #1a2b3a;
    color: #b8c6d4;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-ban-cross {
    inset: 23px auto auto 50%;
    width: 58px;
    height: 58px;
    transform: translateX(-50%);
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-ban-cross::after {
    display: none;
}
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-ban-cross::before {
    width: 95%;
    height: 5px;
    background: #d83e55;
    box-shadow: 0 0 0 1px #3d101b, 0 0 9px rgba(216, 62, 85, .65);
    transform: translate(-50%, -50%) rotate(-45deg);
}
#draft-page .civp-draft-container .civp-draft-center-actions { gap: 5px; margin-top: 10px; }
#draft-page .civp-draft-container .civp-draft-team-action-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
#draft-page .civp-draft-container .civp-draft-action-ban,
#draft-page .civp-draft-container .civp-draft-action-ban:disabled {
    color: #fff4f4 !important;
    border: 1px solid #d85b6d !important;
    background: linear-gradient(180deg, #b33648, #8e2631) !important;
}
#draft-page .civp-draft-container .civp-draft-action-pick,
#draft-page .civp-draft-container .civp-draft-action-pick:disabled {
    color: #f5faff !important;
    border: 1px solid #338ed4 !important;
    background: linear-gradient(180deg, #196ca9, #124873) !important;
}
#draft-page .civp-draft-container .civp-draft-team-action-btn:disabled { opacity: .68; cursor: not-allowed; }
#draft-page .civp-draft-container .civp-draft-action-symbol { margin-right: 10px; color: var(--red-bright); font-size: 28px; vertical-align: -1px; }
#draft-page .civp-draft-container .civp-draft-action-pick .civp-draft-action-symbol { color: #8cd3ff; }
#draft-page .civp-draft-container .civp-draft-team-action-hint { max-width: none; color: #8290a2; font-size: 11px; text-align: center; }
#draft-page .civp-draft-container .civp-draft-status-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-height: 58px;
    margin: 4px 0 0;
    padding: 10px 16px;
    border-color: var(--gold-dark);
    border-radius: 9px;
    background: #081421;
}
#draft-page .civp-draft-container .civp-draft-status-title { flex: 0 0 auto; color: var(--gold-bright); font-family: inherit; font-size: 14px; }
#draft-page .civp-draft-container .civp-draft-status-icon { width: 23px; height: 23px; }
#draft-page .civp-draft-container .civp-draft-status-divider { width: 1px; height: 26px; background: var(--gold-dark); }
#draft-page .civp-draft-container .civp-draft-status-subcopy { min-width: 0; flex: 1 1 auto; color: var(--text-primary); font-size: 12px; }
#draft-page .civp-draft-container .civp-draft-rules { position: relative; flex: 0 0 auto; }
#draft-page .civp-draft-container .civp-draft-rules summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    color: #e9edf3;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: linear-gradient(#203349, #101e2d);
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}
#draft-page .civp-draft-container .civp-draft-rules summary::-webkit-details-marker { display: none; }
#draft-page .civp-draft-container .civp-draft-rules summary span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #46617b; border-radius: 50%; font-weight: 800; }
#draft-page .civp-draft-container .civp-draft-rules-content {
    position: absolute;
    z-index: 10;
    right: 0;
    bottom: calc(100% + 9px);
    width: min(480px, 75vw);
    padding: 16px;
    color: var(--text-primary);
    border: 1px solid var(--gold-dark);
    border-radius: 9px;
    background: #0b1725;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .55);
    font-size: 13px;
    line-height: 1.5;
}
@media (max-width: 1250px) {
    #draft-page .civp-draft-container .civp-game-header {
        grid-template-columns: minmax(205px, 250px) minmax(0, 1fr);
    }
    #draft-page .civp-draft-container .civp-draft-overview-bar { grid-column: 2; }
    #draft-page .civp-draft-container .civp-game-creator-meta {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #draft-page .civp-draft-container .civp-draft-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #draft-page .civp-draft-container .civp-draft-team-column-1 { grid-column: 1; grid-row: 1; }
    #draft-page .civp-draft-container .civp-draft-team-column-2 { grid-column: 2; grid-row: 1; }
    #draft-page .civp-draft-container .civp-draft-center { grid-column: 1 / -1; grid-row: 2; }
    #draft-page .civp-draft-container .civp-draft-status-card { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 750px) {
    #draft-page .civp-draft-container { padding: 14px; }
    #draft-page .civp-draft-container .civp-game-header { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    #draft-page .civp-draft-container .civp-game-header-main,
    #draft-page .civp-draft-container .civp-draft-overview-bar,
    #draft-page .civp-draft-container .civp-game-creator-meta { grid-column: 1; grid-row: auto; }
    #draft-page .civp-draft-container .civp-draft-stage-tracker { min-height: 0; }
    #draft-page .civp-draft-container .civp-draft-layout { grid-template-columns: minmax(0, 1fr); }
    #draft-page .civp-draft-container .civp-draft-team-column-1,
    #draft-page .civp-draft-container .civp-draft-center,
    #draft-page .civp-draft-container .civp-draft-team-column-2,
    #draft-page .civp-draft-container .civp-draft-status-card { grid-column: 1; grid-row: auto; }
    #draft-page .civp-draft-container .civp-draft-team-board { min-height: 0; }
    #draft-page .civp-draft-container .civp-draft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #draft-page .civp-draft-container .civp-draft-status-card { flex-wrap: wrap; gap: 10px; }
    #draft-page .civp-draft-container .civp-draft-status-subcopy { flex-basis: calc(100% - 230px); }
    #draft-page .civp-draft-container .civp-draft-rules { margin-left: auto; }
}
@media (max-width: 480px) {
    #draft-page .civp-draft-container .civp-draft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card { height: 148px; min-height: 148px; }
    #draft-page .civp-draft-container .civp-draft-grid .civp-civ-icon-container { flex-basis: 62px; width: 62px; min-width: 62px; height: 62px; }
    #draft-page .civp-draft-container .civp-draft-grid .civp-draft-ban-cross { top: 20px; width: 50px; height: 50px; }
    #draft-page .civp-draft-container .civp-draft-turn-banner { gap: 10px; padding: 10px; }
    #draft-page .civp-draft-container .civp-draft-turn-symbol { font-size: 34px; }
    #draft-page .civp-draft-container .civp-draft-turn-heading { flex-wrap: wrap; gap: 4px; }
    #draft-page .civp-draft-container .civp-draft-turn-heading strong { font-size: 16px; }
    #draft-page .civp-draft-container .civp-draft-turn-copy p { font-size: 11px; }
    #draft-page .civp-draft-container .civp-draft-banner-timer { grid-template-columns: 1fr; text-align: center; }
    #draft-page .civp-draft-container .civp-draft-banner-ring { display: none; }
    #draft-page .civp-draft-container .civp-draft-banner-time { font-size: 21px; }
    #draft-page .civp-draft-container .civp-draft-banner-timer small { font-size: 9px; }
    #draft-page .civp-draft-container .civp-draft-status-divider { display: none; }
    #draft-page .civp-draft-container .civp-draft-status-subcopy { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    #draft-page .civp-draft-container .civp-draft-banner-timer.is-expiring .civp-draft-banner-ring { animation: none; }
}
/* Draft card, first iteration of the compact tournament layout. */
#draft-page .civp-draft-container { max-width: 1720px; padding: 18px; background: transparent; border: 0; box-shadow: none; }
#draft-page .civp-draft-container .civp-draft-header { grid-template-columns: minmax(0,1fr) minmax(0,2.05fr) minmax(0,1fr); gap: 12px 22px; padding-bottom: 0; border: 0; align-items: center; background: transparent; box-shadow: none; }
#draft-page .civp-draft-container .civp-game-header-main { grid-column: 1; grid-row: 1; }
#draft-page .civp-draft-container .civp-draft-mode-card { display:flex; align-items:center; gap:16px; width:fit-content; max-width:100%; padding:12px 18px; border:1px solid #947125; border-radius:10px; background:rgba(2,12,21,.86); box-sizing:border-box; }
#draft-page .civp-draft-container .civp-draft-mode-card img { width:38px; height:38px; object-fit:contain; }
#draft-page .civp-draft-container .civp-draft-mode-card div { padding-left:16px; border-left:1px solid #244559; }
#draft-page .civp-draft-container .civp-draft-mode-card span { display:block; font-size:12px; color:#accce1; }
#draft-page .civp-draft-container .civp-draft-mode-card strong { font-size:20px; color:#f5f7fa; }
#draft-page .civp-draft-container .civp-draft-header-center { grid-column:2; grid-row:1; min-width:0; }
#draft-page .civp-draft-container .civp-draft-title { display:flex; align-items:center; justify-content:center; gap:20px; margin:0 0 12px; font-family:Georgia,serif; font-size:clamp(20px,1.7vw,29px); color:#f6c963; text-transform:uppercase; letter-spacing:.06em; text-align:center; }
#draft-page .civp-draft-container .civp-draft-title::before,#draft-page .civp-draft-container .civp-draft-title::after { content:''; height:1px; flex:1; background:linear-gradient(90deg,transparent,#b78b35); }
#draft-page .civp-draft-container .civp-draft-title::after { transform:rotate(180deg); }
#draft-page .civp-draft-container .civp-draft-turn-banner { --turn-color:#00cfff; display:flex; min-height:60px; gap:16px; margin:0 auto; padding:4px 20px 4px 8px; border:1px solid var(--turn-color); border-radius:10px 32px 32px 10px; background:linear-gradient(90deg,#03263a,rgba(1,18,30,.9)); box-shadow:inset 0 -3px 12px #00cfff22,0 0 18px #00cfff22; }
#draft-page .civp-draft-container .civp-draft-turn-team2 { --turn-color:#ff3656; background:linear-gradient(90deg,#37121e,rgba(20,9,17,.9)); box-shadow:inset 0 -3px 12px #ff365622,0 0 18px #ff365622; }
#draft-page .civp-draft-container .civp-draft-turn-banner.is-ready { --turn-color:#d6aa4a; }
#draft-page .civp-draft-container .civp-draft-turn-banner strong { color:var(--turn-color); font-size:clamp(15px,1.4vw,23px); min-width:0; flex:1; }
#draft-page .civp-draft-container .civp-draft-turn-crest { flex:0 0 60px; height:64px; background:url('/static/image/civp-team-deer-shield.png') center / contain no-repeat; }
#draft-page .civp-draft-container .civp-draft-turn-team2 .civp-draft-turn-crest { background-image:url('/static/image/civp-team-wolf-shield.png'); }
#draft-page .civp-draft-container .civp-draft-banner-timer { display:flex; flex-direction:column; justify-content:center; min-width:78px; text-align:center; }
#draft-page .civp-draft-container .civp-draft-banner-time { color:#f3fbff; font-size:36px; text-shadow:0 0 14px var(--turn-color); }
#draft-page .civp-draft-container .civp-draft-banner-timer small { font-size:9px; color:#a9c3d5; }
#draft-page .civp-draft-container .civp-draft-banner-timer.is-expiring .civp-draft-banner-time { color:#ff6678; }
#draft-page .civp-draft-container .civp-game-creator-meta { grid-column:3; grid-row:1; display:flex; gap:10px; padding:0; border:0; border-radius:0; background:none; }
#draft-page .civp-draft-container .civp-meta-item { display:grid; grid-template-columns:24px minmax(0,1fr); column-gap:10px; row-gap:0; flex:1; min-height:50px; padding:8px 12px; border:1px solid #947125; background:rgba(2,12,21,.86); }
#draft-page .civp-draft-container .civp-draft-meta-symbol { grid-row:1 / 3; width:24px; height:24px; align-self:center; color:#f5c44e; font-size:28px; line-height:1; }
#draft-page .civp-draft-container .civp-meta-label { grid-column:2; font-size:11px; }
#draft-page .civp-draft-container .civp-meta-value { grid-column:2; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#draft-page .civp-draft-container .civp-draft-overview-bar { grid-column:2; grid-row:2; display:flex; min-height:72px; gap:14px; padding:8px 12px; border:1px solid #214b63; border-radius:12px; background:rgba(2,20,32,.8); }
#draft-page .civp-draft-container .civp-draft-sequence-group { flex:1; min-width:0; text-align:center; }
#draft-page .civp-draft-container .civp-draft-sequence-group + .civp-draft-sequence-group { border-left:1px solid #235066; padding-left:14px; }
#draft-page .civp-draft-container .civp-draft-sequence-label { color:#e2eaf0; font-size:11px; margin-bottom:8px; line-height:1.4; }
#draft-page .civp-draft-container .civp-draft-sequence-label strong { color:#e4c260; }
#draft-page .civp-draft-container .civp-draft-stage-sequence { height:auto; align-items:center; justify-content:space-evenly; gap:5px; padding:2px; background:linear-gradient(#315b71,#315b71) center / 90% 1px no-repeat; overflow-x:auto; }
#draft-page .civp-draft-container .civp-draft-stage-step { flex:0 0 25px; min-width:25px; padding:0; }
#draft-page .civp-draft-container .civp-draft-stage-step-dot { width:25px; height:25px; flex-basis:25px; font-size:12px; border-color:#47778f; }
#draft-page .civp-draft-container .civp-draft-stage-team2 .civp-draft-stage-step-dot { border-color:#d44458; background:#30131e; }
#draft-page .civp-draft-container .civp-draft-stage-step.is-current .civp-draft-stage-step-dot { background:#00a7dd; border-color:#03e0ff; box-shadow:0 0 12px #00cfff; }
#draft-page .civp-draft-container .civp-draft-stage-team2.is-current .civp-draft-stage-step-dot { background:#c32240; border-color:#ff506b; box-shadow:0 0 12px #ff3656; }
#draft-page .civp-draft-container .civp-draft-timer-note { grid-column:3; grid-row:2; display:flex; align-items:center; gap:12px; padding:12px 16px; border:1px solid #947125; border-radius:10px; background:linear-gradient(120deg,#282213bb,#100f0dbb); color:#edc556; font-size:13px; }
#draft-page .civp-draft-container .civp-draft-timer-note span { font-size:26px; }
#draft-page .civp-draft-container .civp-draft-layout { grid-template-columns:minmax(0,1fr) minmax(0,1.76fr) minmax(0,1fr); gap:14px; align-items:start; background:transparent; box-shadow:none; }
#draft-page .civp-draft-container .civp-draft-team-board { border-width:1px; border-radius:14px; min-height:0; --board-accent:#00bcf3; }
#draft-page .civp-draft-container .civp-draft-team-board.civp-team-right { --board-accent:#ff264b; }
#draft-page .civp-draft-container .civp-draft-team-header-main { min-height:80px; padding:8px 16px; gap:16px; }
#draft-page .civp-draft-container .civp-draft-team-crest { width:62px; height:65px; flex-basis:62px; }
#draft-page .civp-draft-container .civp-team-header h4 { font-size:clamp(16px,1.4vw,23px); }
#draft-page .civp-draft-container .civp-draft-team-average { margin-left:auto; color:#b6cee3; font-size:17px; }
#draft-page .civp-draft-container .civp-draft-picker-row { order:2; flex-direction:row; align-items:center; gap:8px; margin:0 12px 10px; padding:10px 0; border-bottom:1px solid var(--board-row-border); border-top:0; }
#draft-page .civp-draft-container .civp-draft-picker-label,#draft-page .civp-draft-container .civp-team-right .civp-draft-picker-label { display:flex; align-items:center; gap:8px; border:0; padding:0; background:none; font-weight:400; font-size:12px; flex:1; width:auto; }
#draft-page .civp-draft-container .civp-draft-crown { display:grid; place-items:center; width:30px; height:30px; flex:0 0 30px; color:#e5b64c; border:1px solid #856622; border-radius:50%; font-size:23px; }
#draft-page .civp-draft-container .civp-draft-picker-btn,#draft-page .civp-draft-container .civp-draft-release-btn,#draft-page .civp-draft-container .civp-team-right .civp-draft-picker-btn,#draft-page .civp-draft-container .civp-team-right .civp-draft-release-btn { width:auto; min-height:36px; padding:7px 10px!important; font-size:12px; border-color:#a77f2a!important; background:linear-gradient(#292615,#11130f)!important; box-shadow:inset 0 0 10px #d9a93718; }
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-roster { order:3; gap:6px; }
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-player-tag { height:50px; min-height:50px; border-radius:8px; padding:5px 6px; }
#draft-page .civp-draft-container .civp-team-pick-player-avatar { position:relative; display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; border:1px solid #9c782e; border-radius:50%; overflow:hidden; background:#142331; color:#d9be79; }
#draft-page .civp-draft-container .civp-team-pick-player-avatar svg { width:23px; height:23px; }
#draft-page .civp-draft-container .civp-team-pick-player-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
#draft-page .civp-draft-container .civp-team-pick-player-avatar img[hidden] { display:none; }
#draft-page .civp-draft-container .civp-team-player-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
#draft-page .civp-draft-container .civp-team-player-rating-badge,#draft-page .civp-draft-container .civp-team-right .civp-team-player-rating-badge { min-width:0; margin-left:auto; padding:0; border:0; background:none; color:#b8cfe2!important; font-size:13px; font-weight:400; }
#draft-page .civp-draft-container .civp-draft-player-captain { color:#efc15b; font-size:21px; }
#draft-page .civp-draft-container .civp-draft-picks-heading { order:4; margin:12px 12px 0; padding-top:10px; border-top:1px solid var(--board-row-border); color:#f3c456; font-size:13px; font-weight:600; }
#draft-page .civp-draft-container .civp-draft-picks-heading span { font-size:22px; margin-right:7px; }
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-civs-grid { order:5; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:10px 12px 14px; }
#draft-page .civp-draft-container .civp-draft-empty-slot { display:grid; place-items:center; min-height:70px; border:1px dashed #356078; border-radius:10px; background:#07152188; }
#draft-page .civp-draft-container .civp-team-right .civp-draft-empty-slot { border-color:#67505e; }
#draft-page .civp-draft-container .civp-draft-empty-slot span { display:grid; place-items:center; border:1px solid #7296ae; color:#9abbcf; border-radius:50%; width:20px; height:20px; font-size:19px; }
#draft-page .civp-draft-container .civp-draft-mini-card { min-width:0; width:100%; min-height:85px; margin:0; }
#draft-page .civp-draft-container .civp-draft-mini-card .civp-civ-name { font-size:11px; }
#draft-page .civp-draft-container .civp-draft-log { order:6; margin:0 12px 12px; padding-top:8px; font-size:11px; }
#draft-page .civp-draft-container .civp-draft-log summary { color:#8da7bc; cursor:pointer; }
#draft-page .civp-draft-container .civp-draft-center { padding:12px; gap:10px; border:1px solid #203e52; border-radius:14px; background:rgba(2,16,27,.82); }
#draft-page .civp-draft-container .civp-draft-grid-heading { font-size:14px; }
#draft-page .civp-draft-container .civp-draft-grid { gap:8px; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card { min-height:125px; height:125px; padding:8px 5px; gap:5px; }
#draft-page .civp-draft-container .civp-draft-grid .civp-civ-icon-container { width:52px; min-width:52px; height:52px; flex-basis:52px; }
#draft-page .civp-draft-container .civp-draft-grid .civp-civ-name { font-size:12px; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-status { min-height:23px; font-size:10px; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-selected,#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card.civp-draft-card-selected:hover { border-color:#00ccff; background:radial-gradient(circle at 50% 25%,#084568,#071c2d); box-shadow:inset 0 0 20px #00bbff33,0 0 12px #00bbff33; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-ban-cross { top:17px; width:45px; height:45px; }
#draft-page .civp-draft-container .civp-draft-team-action-btn { min-height:42px; font-size:17px; }
@media (max-width:1200px) {
 #draft-page .civp-draft-container .civp-draft-header { grid-template-columns:minmax(0,1fr) minmax(0,2fr); }
 #draft-page .civp-draft-container .civp-game-creator-meta { grid-column:1; grid-row:2; }
 #draft-page .civp-draft-container .civp-draft-overview-bar { grid-column:2; grid-row:2 / 4; }
 #draft-page .civp-draft-container .civp-draft-timer-note { grid-column:1; grid-row:3; }
 #draft-page .civp-draft-container .civp-draft-picker-row { flex-wrap:wrap; }
 #draft-page .civp-draft-container .civp-draft-picker-label { flex-basis:100%; }
 #draft-page .civp-draft-container .civp-draft-layout { grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr); }
 #draft-page .civp-draft-container .civp-draft-team-header-main { gap:8px; padding:8px; }
 #draft-page .civp-draft-container .civp-draft-team-crest { flex-basis:40px; width:40px; height:48px; }
 #draft-page .civp-draft-container .civp-draft-team-average { font-size:12px; }
 #draft-page .civp-draft-container .civp-draft-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 #draft-page .civp-draft-container .civp-team-player-tag { flex-wrap:wrap; height:auto!important; }
}
@media (max-width:900px) {
 #draft-page .civp-draft-container { padding:12px; }
 #draft-page .civp-draft-container .civp-draft-header { grid-template-columns:minmax(0,1fr); gap:12px; }
 #draft-page .civp-draft-container .civp-draft-header > * { grid-column:1; grid-row:auto; }
 #draft-page .civp-draft-container .civp-draft-header-center { grid-row:1; }
 #draft-page .civp-draft-container .civp-game-header-main { grid-row:2; }
 #draft-page .civp-draft-container .civp-draft-mode-card { width:100%; }
 #draft-page .civp-draft-container .civp-draft-overview-bar { flex-wrap:wrap; }
 #draft-page .civp-draft-container .civp-draft-sequence-group { flex-basis:100%; }
 #draft-page .civp-draft-container .civp-draft-sequence-group + .civp-draft-sequence-group { padding-left:0; padding-top:8px; border-left:0; border-top:1px solid #235066; }
 #draft-page .civp-draft-container .civp-draft-layout { grid-template-columns:minmax(0,1fr); }
 #draft-page .civp-draft-container .civp-draft-layout > * { grid-column:1; grid-row:auto; }
 #draft-page .civp-draft-container .civp-draft-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 #draft-page .civp-draft-container .civp-draft-picker-row { flex-wrap:nowrap; }
 #draft-page .civp-draft-container .civp-draft-picker-label { flex-basis:auto; }
 #draft-page .civp-draft-container .civp-draft-team-crest { width:56px; flex-basis:56px; height:60px; }
 #draft-page .civp-draft-container .civp-team-header h4 { font-size:22px; }
 #draft-page .civp-draft-container .civp-team-player-tag { flex-wrap:nowrap; }
}
@media (max-width:480px) {
 #draft-page .civp-draft-container .civp-draft-turn-banner { gap:8px; padding-right:10px; }
 #draft-page .civp-draft-container .civp-draft-turn-crest { flex-basis:40px; height:50px; }
 #draft-page .civp-draft-container .civp-draft-banner-timer { min-width:55px; }
 #draft-page .civp-draft-container .civp-draft-banner-time { font-size:26px; }
 #draft-page .civp-draft-container .civp-draft-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 #draft-page .civp-draft-container .civp-draft-status-card { padding:10px; }
 #draft-page .civp-draft-container .civp-draft-picker-row { flex-wrap:wrap; }
 #draft-page .civp-draft-container .civp-draft-picker-label { flex-basis:100%; }
}
#draft-page .civp-draft-container .civp-meta-item { justify-items:start; align-content:center; }
#draft-page .civp-draft-container .civp-meta-label { text-transform:none; letter-spacing:normal; }
#draft-page .civp-draft-container .civp-meta-value { width:100%; text-align:left; }
#draft-page .civp-draft-container .civp-draft-turn-banner.is-ready strong { font-size:17px; }
/* Draft iteration 2: current action, civilization grid, then supporting teams. */
#draft-page .civp-draft-container .civp-draft-header { margin-bottom:14px; gap:8px 18px; }
#draft-page .civp-draft-container .civp-draft-turn-banner { display:block; min-height:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
#draft-page .civp-draft-container .civp-draft-turn-heading-row { display:flex; align-items:center; gap:12px; min-width:0; }
#draft-page .civp-draft-container .civp-draft-turn-crest { flex-basis:44px; height:48px; }
#draft-page .civp-draft-container .civp-draft-turn-heading-row h2 { flex:1; min-width:0; margin:0; color:#f0f6fc; font-size:clamp(18px,1.55vw,25px); font-weight:700; letter-spacing:.01em; }
#draft-page .civp-draft-container .civp-draft-turn-progress { flex:0 0 auto; color:#93acbf; font-size:12px; white-space:nowrap; }
#draft-page .civp-draft-container .civp-draft-banner-timer { min-width:65px; padding-left:12px; border-left:1px solid #324453; }
#draft-page .civp-draft-container .civp-draft-banner-time { font-size:30px; color:#e8f2fa; text-shadow:none; }
#draft-page .civp-draft-container .civp-draft-turn-instruction { margin:3px 0 0 56px; color:#99afc0; font-size:12px; line-height:1.5; }
#draft-page .civp-draft-container .civp-draft-overview-bar { min-height:0; padding:5px 0; gap:12px; border:0; border-radius:0; background:none; }
#draft-page .civp-draft-container .civp-draft-sequence-label { font-size:10px; margin-bottom:4px; color:#809aaf; }
#draft-page .civp-draft-container .civp-draft-sequence-label strong { color:#b2c3d2; font-weight:500; }
#draft-page .civp-draft-container .civp-draft-stage-step { min-width:20px; flex-basis:20px; }
#draft-page .civp-draft-container .civp-draft-stage-step-dot { width:20px; height:20px; flex-basis:20px; font-size:10px; }
#draft-page .civp-draft-container .civp-draft-stage-step.is-current .civp-draft-stage-step-dot { box-shadow:0 0 7px #00cfff55; }
#draft-page .civp-draft-container .civp-draft-stage-team2.is-current .civp-draft-stage-step-dot { box-shadow:0 0 7px #ff365655; }
#draft-page .civp-draft-container .civp-draft-timer-note { padding:0; border:0; background:none; color:#8499ac; font-size:11px; }
#draft-page .civp-draft-container .civp-meta-item { border:0; background:rgba(3,14,24,.45); }
#draft-page .civp-draft-container .civp-draft-meta-symbol { color:#98adbd; }
#draft-page .civp-draft-container .civp-draft-layout { grid-template-columns:minmax(0,1fr) minmax(0,2.05fr) minmax(0,1fr); }
#draft-page .civp-draft-container .civp-draft-team-board { border-color:#245875; box-shadow:none; }
#draft-page .civp-draft-container .civp-draft-team-board.civp-team-right { border-color:#754052; box-shadow:none; }
#draft-page .civp-draft-container .civp-draft-team-header-main { min-height:66px; gap:10px; padding:8px 12px; border-bottom-color:var(--board-row-border); background:none; }
#draft-page .civp-draft-container .civp-draft-team-crest { flex-basis:42px; width:42px; height:48px; }
#draft-page .civp-draft-container .civp-team-header h4 { font-size:clamp(16px,1.15vw,20px); }
#draft-page .civp-draft-container .civp-draft-team-average { font-size:13px; color:#8098ac; }
#draft-page .civp-draft-container .civp-draft-picker-row { margin:0 10px 6px; padding:8px 0; gap:7px; }
#draft-page .civp-draft-container .civp-draft-crown { width:22px; height:22px; flex-basis:22px; border:0; font-size:19px; color:#bba362; }
#draft-page .civp-draft-container .civp-draft-picker-label,#draft-page .civp-draft-container .civp-team-right .civp-draft-picker-label { min-height:26px; font-size:11px; color:#9aafc0; white-space:normal; }
#draft-page .civp-draft-container .civp-draft-picker-row .civp-draft-picker-btn,#draft-page .civp-draft-container .civp-draft-picker-row .civp-draft-release-btn { min-height:28px; padding:5px 8px!important; font-size:11px; font-weight:500; border-color:#596273!important; color:#beccd7!important; border-radius:6px; background:transparent!important; box-shadow:none; }
#draft-page .civp-draft-container .civp-draft-captain-self { position:relative; flex:0 0 auto; font-size:10px; }
#draft-page .civp-draft-container .civp-draft-captain-self summary { padding:3px 6px; border-radius:4px; color:#a4d4e9; background:#123042; list-style:none; cursor:pointer; }
#draft-page .civp-draft-container .civp-draft-captain-self summary::-webkit-details-marker { display:none; }
#draft-page .civp-draft-container .civp-draft-captain-self .civp-draft-release-btn { margin-top:4px; }
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-roster { padding:0 10px; gap:2px; }
#draft-page .civp-draft-container .civp-draft-team-board .civp-team-player-tag { min-height:42px; height:42px; padding:4px 2px; gap:8px; border:0; border-bottom:1px solid #8aa0ba12; border-radius:0; background:none; box-shadow:none; }
#draft-page .civp-draft-container .civp-team-pick-player-avatar { flex-basis:28px; width:28px; height:28px; border-color:#647582; }
#draft-page .civp-draft-container .civp-team-pick-player-avatar svg { width:19px; height:19px; }
#draft-page .civp-draft-container .civp-draft-player-number { width:25px; height:29px; flex-basis:25px; font-size:15px; border-radius:5px; }
#draft-page .civp-draft-container .civp-team-player-name { font-size:12px; font-weight:500; }
#draft-page .civp-draft-container .civp-team-player-rating-badge,#draft-page .civp-draft-container .civp-team-right .civp-team-player-rating-badge { font-size:11px; color:#829bad!important; }
#draft-page .civp-draft-container .civp-draft-player-captain { font-size:16px; color:#bba362; }
#draft-page .civp-draft-container .civp-draft-picks-heading { font-size:11px; color:#9bafbf; }
#draft-page .civp-draft-container .civp-draft-picks-heading span { font-size:17px; color:#bba362; }
#draft-page .civp-draft-container .civp-draft-empty-slot { min-height:58px; border-color:#65778944; background:#8697a008; }
#draft-page .civp-draft-container .civp-team-right .civp-draft-empty-slot { border-color:#65778944; }
#draft-page .civp-draft-container .civp-draft-grid-heading { color:#829bad; font-size:12px; font-weight:500; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card { min-height:110px; height:110px; justify-content:center; gap:9px; border-color:transparent; background:#14253466; box-shadow:none; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card .civp-civ-icon-container { width:50px; height:50px; min-width:50px; flex-basis:50px; background:transparent; box-shadow:none; }
#draft-page .civp-draft-container .civp-draft-grid .civp-civ-name { font-weight:500; font-size:13px; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-status { min-height:0; width:auto; margin:0; padding:0; border:0; border-radius:0; background:none; font-size:10px; color:#94a9b8; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-status::before { content:''; display:inline-block; width:4px; height:4px; margin-right:5px; border-radius:50%; background:currentColor; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-status-team1 { color:#73c5f0; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-status-team2,#draft-page .civp-draft-container .civp-draft-grid .civp-draft-status-banned { color:#dc7d8d; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-status-pending { color:#79cbb0; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-available[data-can-select="true"]:hover { border-color:#5da58c; background:#12332d; transform:none; box-shadow:none; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card.civp-draft-card-selected,#draft-page .civp-draft-container .civp-draft-grid .civp-draft-civ-card.civp-draft-card-selected:hover { border:1px solid #39b6e3; background:#10384c; box-shadow:inset 0 0 0 1px #39b6e344; }
#draft-page .civp-draft-container:has(.civp-draft-turn-team2) .civp-draft-grid .civp-draft-civ-card.civp-draft-card-selected { border-color:#d76279; background:#3a1b29; box-shadow:inset 0 0 0 1px #d7627944; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-banned { opacity:.58; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-ban-cross { top:14px; width:40px; height:40px; }
#draft-page .civp-draft-container .civp-draft-center-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; margin-top:4px; padding:10px 0 0; border-top:1px solid #284051; }
#draft-page .civp-draft-container .civp-draft-action-preview { display:flex; align-items:center; gap:10px; flex:1; min-width:0; font-size:13px; color:#dfebf4; }
#draft-page .civp-draft-container .civp-draft-action-preview img { width:32px; height:32px; object-fit:contain; }
#draft-page .civp-draft-container .civp-draft-team-action-hint { text-align:left; color:#91a8ba; font-size:12px; line-height:1.5; }
#draft-page .civp-draft-container .civp-draft-center-actions .civp-draft-team-action-btn { width:auto; max-width:55%; min-height:36px; padding:8px 14px; border-radius:7px; font-size:13px; font-weight:600; text-transform:none; letter-spacing:normal; }
#draft-page .civp-draft-container .civp-draft-center-actions .civp-draft-team-action-btn:disabled { color:#718495!important; border-color:#344755!important; background:#15232d!important; opacity:1; box-shadow:none; cursor:default; }
#draft-page .civp-draft-container .civp-draft-center-actions--waiting { justify-content:center; color:#93aaba; font-size:12px; }
#draft-page .civp-draft-container .civp-draft-wait-dot { width:6px; height:6px; border-radius:50%; background:#7e97ab; }
#draft-page .civp-draft-container .civp-draft-status-card { border:0; border-top:1px solid #294051; background:transparent; border-radius:0; color:#8fa5b6; }
#draft-page .civp-draft-container .civp-draft-status-title { color:#8fa5b6; font-size:12px; }
#draft-page .civp-draft-container .civp-draft-status-subcopy { color:#839bad; font-size:11px; }
#draft-page .civp-draft-container .civp-draft-rules summary { border:0; background:none; color:#8fa5b6; font-size:10px; }
@media (max-width:1200px) {
 #draft-page .civp-draft-container .civp-draft-layout { grid-template-columns:minmax(0,1fr) minmax(0,1.8fr) minmax(0,1fr); }
 #draft-page .civp-draft-container .civp-draft-turn-heading-row { flex-wrap:wrap; }
 #draft-page .civp-draft-container .civp-draft-picker-row { flex-wrap:wrap; }
}
@media (max-width:900px) {
 #draft-page .civp-draft-container .civp-draft-layout { grid-template-columns:minmax(0,1fr); }
 #draft-page .civp-draft-container .civp-draft-center { grid-row:1; }
 #draft-page .civp-draft-container .civp-draft-team-column-1 { grid-row:2; }
 #draft-page .civp-draft-container .civp-draft-team-column-2 { grid-row:3; }
 #draft-page .civp-draft-container .civp-draft-status-card { grid-row:4; }
 #draft-page .civp-draft-container .civp-draft-turn-heading-row { flex-wrap:nowrap; gap:8px; }
 #draft-page .civp-draft-container .civp-draft-turn-heading-row h2 { font-size:17px; }
 #draft-page .civp-draft-container .civp-draft-turn-progress { font-size:10px; }
 #draft-page .civp-draft-container .civp-draft-turn-crest { flex-basis:30px; height:36px; }
 #draft-page .civp-draft-container .civp-draft-banner-timer { min-width:50px; padding-left:8px; }
 #draft-page .civp-draft-container .civp-draft-banner-time { font-size:23px; }
 #draft-page .civp-draft-container .civp-draft-turn-instruction { margin-left:0; }
 #draft-page .civp-draft-container .civp-draft-picker-row { flex-wrap:nowrap; }
}
@media (max-width:480px) {
 #draft-page .civp-draft-container .civp-draft-turn-heading-row { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:5px 8px; }
 #draft-page .civp-draft-container .civp-draft-turn-heading-row h2 { font-size:16px; }
 #draft-page .civp-draft-container .civp-draft-turn-progress { grid-column:2; grid-row:2; }
 #draft-page .civp-draft-container .civp-draft-banner-timer { grid-column:3; grid-row:1 / 3; }
 #draft-page .civp-draft-container .civp-draft-center-actions { flex-wrap:wrap; }
 #draft-page .civp-draft-container .civp-draft-center-actions .civp-draft-team-action-btn { max-width:100%; margin-left:auto; }
 #draft-page .civp-draft-container .civp-draft-picker-row { flex-wrap:wrap; }
}
#draft-page .civp-draft-container .civp-draft-center-actions { flex-direction:row; }
#draft-page .civp-draft-container .civp-draft-center-actions--waiting { gap:8px; }
#draft-page .civp-draft-container .civp-draft-center-actions .civp-draft-team-action-btn { min-width:0; flex:0 1 auto; }
#draft-page .civp-draft-container .civp-draft-grid .civp-draft-card-selected .civp-civ-name { color:#eef6fc; }
