/* /Components/AppNav.razor.rz.scp.css */
.command-nav[b-erir15sfvj] {
    position: relative;
    isolation: isolate;
}

.command-nav[b-erir15sfvj]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(83, 232, 255, 0.1), transparent 28%, rgba(255, 107, 74, 0.08)),
        linear-gradient(180deg, rgba(4, 11, 18, 0.92), rgba(3, 7, 13, 0.72));
    border-bottom: 1px solid rgba(83, 232, 255, 0.2);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 -1px 0 rgba(142, 230, 183, 0.14);
}

.brand[b-erir15sfvj] {
    display: grid;
    gap: 1px;
    color: #effcff;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(83, 232, 255, 0.22);
}

.brand-kicker[b-erir15sfvj] {
    color: #8ee6b7;
    font-size: 10px;
    font-weight: 900;
}

.brand-title[b-erir15sfvj] {
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

.nav-actions[b-erir15sfvj] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link[b-erir15sfvj] {
    position: relative;
    min-height: 48px;
    min-width: 132px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    color: #dffcff;
    text-decoration: none;
    padding: 0 14px;
    border: 1px solid rgba(83, 232, 255, 0.22);
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(83, 232, 255, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(11, 24, 35, 0.92), rgba(4, 10, 17, 0.92));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26), inset 0 0 16px rgba(83, 232, 255, 0.04);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.nav-link[b-erir15sfvj]::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, #53e8ff, transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: left center;
    transition: opacity 140ms ease, transform 140ms ease;
}

.nav-link:hover[b-erir15sfvj] {
    transform: translateY(-1px);
    border-color: rgba(142, 230, 183, 0.6);
    color: #fff;
    box-shadow: 0 0 24px rgba(83, 232, 255, 0.14), 0 12px 26px rgba(0, 0, 0, 0.32);
}

.nav-link:hover[b-erir15sfvj]::after,
.nav-link.active[b-erir15sfvj]::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-code[b-erir15sfvj] {
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(83, 232, 255, 0.24);
    color: #8ee6b7;
    font-size: 10px;
    font-weight: 950;
    background: rgba(3, 7, 13, 0.56);
}

.nav-link.active[b-erir15sfvj] {
    border-color: rgba(245, 201, 76, 0.68);
    background:
        linear-gradient(135deg, rgba(245, 201, 76, 0.16), transparent 44%),
        linear-gradient(180deg, rgba(20, 30, 25, 0.94), rgba(4, 10, 17, 0.96));
    color: #fff7ce;
    box-shadow: 0 0 28px rgba(245, 201, 76, 0.18), inset 0 0 20px rgba(245, 201, 76, 0.08);
}

.nav-link-primary[b-erir15sfvj] {
    border-color: rgba(142, 230, 183, 0.58);
}

.nav-session[b-erir15sfvj] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-link[b-erir15sfvj] {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(83, 232, 255, 0.2);
    border-radius: 4px;
    background: rgba(3, 7, 13, 0.62);
    color: #c9e5ef;
    font-size: 11px;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
}

.session-link-primary[b-erir15sfvj] {
    border-color: rgba(142, 230, 183, 0.54);
    color: #071018;
    background: linear-gradient(180deg, #8ee6b7, #4fbf85);
}

@media (max-width: 860px) {
    .command-nav[b-erir15sfvj] {
        align-items: stretch !important;
    }

    .nav-actions[b-erir15sfvj] {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .nav-link[b-erir15sfvj] {
        min-width: 0;
        min-height: 44px;
        padding: 0 10px;
    }

    .nav-session[b-erir15sfvj] {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .command-nav[b-erir15sfvj]::before {
        background:
            linear-gradient(180deg, rgba(3, 7, 13, 0.96), rgba(3, 7, 13, 0.84)),
            linear-gradient(90deg, rgba(83, 232, 255, 0.08), rgba(255, 107, 74, 0.06));
    }

    .brand-title[b-erir15sfvj] {
        font-size: 21px;
    }

    .nav-actions[b-erir15sfvj] {
        max-height: 154px;
        overflow-y: auto;
        padding: 8px;
        border: 1px solid rgba(83, 232, 255, 0.18);
        background: rgba(3, 7, 13, 0.66);
        box-shadow: inset 0 0 28px rgba(83, 232, 255, 0.04);
    }

    .nav-link[b-erir15sfvj] {
        min-height: 42px;
        font-size: 11px;
    }
}

.command-nav .brand[b-erir15sfvj] {
    color: #effcff;
    font-size: initial;
    font-weight: initial;
}

.command-nav .nav-link[b-erir15sfvj] {
    min-height: 48px;
    min-width: 132px;
    justify-content: flex-start;
    padding: 0 14px;
    border-radius: 4px;
    border-color: rgba(83, 232, 255, 0.22);
    background:
        linear-gradient(135deg, rgba(83, 232, 255, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(11, 24, 35, 0.92), rgba(4, 10, 17, 0.92));
    color: #dffcff;
}

.command-nav .nav-link.active[b-erir15sfvj] {
    border-color: rgba(245, 201, 76, 0.68);
    background:
        linear-gradient(135deg, rgba(245, 201, 76, 0.16), transparent 44%),
        linear-gradient(180deg, rgba(20, 30, 25, 0.94), rgba(4, 10, 17, 0.96));
    color: #fff7ce;
}

@media (max-width: 860px) {
    .command-nav .nav-link[b-erir15sfvj] {
        min-width: 0;
        min-height: 44px;
    }
}

@media (max-width: 560px) {
    .command-nav .nav-link[b-erir15sfvj] {
        min-height: 42px;
    }
}
/* /Components/Game/EnergyBar.razor.rz.scp.css */
:root[b-3o3cqlb57i]{
    --bg:#0a0a0a;
    --panel:#141414;
    --muted:#9aa3ad;
    --energy-start:#1E90FF;
    --energy-end:#00CED1;
}

.energy-bar-component[b-3o3cqlb57i]{font-size:13px;color:var(--muted);}
.energy-bar-component .label[b-3o3cqlb57i]{font-weight:600;color:#fff;margin-bottom:6px}
.energy-bar-component .bar[b-3o3cqlb57i]{width:100%;height:12px;background:linear-gradient(180deg,#070707,#111);border-radius:6px;position:relative;overflow:hidden;border:1px solid #222}
.energy-bar-component .fill[b-3o3cqlb57i]{height:100%;background:linear-gradient(90deg,var(--energy-start),var(--energy-end));transition:width 350ms cubic-bezier(.2,.9,.2,1);box-shadow:0 6px 18px rgba(30,144,255,0.08) inset}
.energy-bar-component .glow[b-3o3cqlb57i]{position:absolute;top:-6px;width:18px;height:24px;border-radius:50%;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,0.9),rgba(0,0,0,0) 40%);transform:translateX(-50%);pointer-events:none;filter:blur(6px);opacity:.9;transition:left 350ms cubic-bezier(.2,.9,.2,1)}
.energy-bar-component .values[b-3o3cqlb57i]{margin-top:8px;font-size:12px;color:var(--muted);display:flex;justify-content:space-between}
.energy-bar-component .income[b-3o3cqlb57i]{color:#90EE90;font-weight:600}

@media (max-width:768px){.energy-bar-component[b-3o3cqlb57i]{font-size:12px}.energy-bar-component .bar[b-3o3cqlb57i]{height:10px}.energy-bar-component .values[b-3o3cqlb57i]{font-size:11px}}
/* /Components/Game/GameBoard.razor.rz.scp.css */
.gameboard-container[b-rejf2x58ww] {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(83, 232, 255, 0.13), transparent 32%),
        radial-gradient(circle at 86% 16%, rgba(255, 107, 74, 0.12), transparent 30%),
        linear-gradient(180deg, #03070d 0%, #071018 42%, #02050a 100%);
    color: #f7fbff;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.gameboard-container.world-cup-skin[b-rejf2x58ww] {
    background:
        radial-gradient(ellipse at 22% 0%, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(ellipse at 78% 0%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #06100b 0%, #0a1711 38%, #02050a 100%);
}

.stadium-lights[b-rejf2x58ww] {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(105deg, transparent 0 12%, rgba(255,255,255,0.12) 18%, transparent 36%),
        linear-gradient(255deg, transparent 0 12%, rgba(255,255,255,0.11) 18%, transparent 36%),
        radial-gradient(circle at 18% 4%, rgba(255,255,255,0.42), transparent 4%),
        radial-gradient(circle at 82% 4%, rgba(255,255,255,0.38), transparent 4%);
    opacity: 0.8;
}

.world-cup-match-banner[b-rejf2x58ww] {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 3500;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(245, 201, 76, 0.48);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(245, 201, 76, 0.22), rgba(4, 11, 18, 0.92));
    color: #fff7cb;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    transform: translateX(-50%);
    box-shadow: 0 12px 30px rgba(0,0,0,0.34), 0 0 26px rgba(245, 201, 76, 0.18);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.match-info-panel[b-rejf2x58ww] {
    position: relative;
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    padding: 10px 18px;
    background:
        linear-gradient(90deg, rgba(83, 232, 255, 0.08), transparent 26%, rgba(255, 107, 74, 0.07)),
        linear-gradient(180deg, rgba(9, 18, 27, 0.94), rgba(3, 7, 13, 0.92));
    border-bottom: 1px solid rgba(83, 232, 255, 0.22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48), inset 0 -1px 0 rgba(142, 230, 183, 0.16);
    backdrop-filter: blur(18px);
}

.match-title[b-rejf2x58ww] {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.match-title h1[b-rejf2x58ww] {
    margin: 0;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #effcff;
    text-shadow: 0 0 18px rgba(83, 232, 255, 0.22);
}

.match-timer[b-rejf2x58ww] {
    min-width: 124px;
    min-height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(83, 232, 255, 0.36);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(83, 232, 255, 0.14), rgba(5, 14, 22, 0.82));
    color: #dffcff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
    box-shadow: 0 0 22px rgba(83, 232, 255, 0.13), inset 0 0 18px rgba(83, 232, 255, 0.08);
}

.match-timer span[b-rejf2x58ww] {
    color: #8ee6b7;
    font-size: 9px;
    text-transform: uppercase;
}

.domination-panel[b-rejf2x58ww] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-left: 6px;
}

.domination-bar[b-rejf2x58ww] {
    width: 220px;
    height: 8px;
    overflow: hidden;
    border: 1px solid rgba(83, 232, 255, 0.2);
    border-radius: 999px;
    background: #070b10;
}

.domination-fill[b-rejf2x58ww] {
    height: 100%;
    background: linear-gradient(90deg, #ff6b4a, #f5c94c);
    transition: width 300ms ease;
}

.domination-text[b-rejf2x58ww] {
    color: #ffd7cc;
    font-size: 12px;
    font-weight: 700;
}

.player-stats[b-rejf2x58ww] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.match-actions[b-rejf2x58ww] {
    position: absolute;
    left: 18px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
}

.exit-match-button[b-rejf2x58ww] {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 4px;
    border: 1px solid rgba(83, 232, 255, 0.26);
    background: linear-gradient(180deg, rgba(83, 232, 255, 0.12), rgba(4, 11, 18, 0.88));
    color: #effcff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34), 0 0 18px rgba(83, 232, 255, 0.08);
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.exit-match-button:not(:disabled):hover[b-rejf2x58ww] {
    color: #071018;
    background: #8ee6b7;
    border-color: #8ee6b7;
}

.exit-match-button:disabled[b-rejf2x58ww] {
    opacity: 0.72;
    cursor: default;
}

.player-stat[b-rejf2x58ww] {
    min-width: 118px;
    padding: 9px 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-left-width: 4px;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(18, 30, 42, 0.9), rgba(5, 10, 17, 0.94));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.player-one[b-rejf2x58ww] {
    border-left: 4px solid #3ba7ff;
}

.player-two[b-rejf2x58ww] {
    border-left: 4px solid #ff6b4a;
}

.stat-label[b-rejf2x58ww] {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: #c9e5ef;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.stat-label span:last-child[b-rejf2x58ww] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-flag[b-rejf2x58ww] {
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 1;
}

.nation-badge-glow[b-rejf2x58ww] {
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(245, 201, 76, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-value[b-rejf2x58ww] {
    margin: 4px 0 2px;
    font-size: 22px;
    font-weight: 900;
    color: #f7fbff;
}

.stat-percentage[b-rejf2x58ww] {
    color: #f5c94c;
    font-size: 13px;
    font-weight: 900;
}

.game-area[b-rejf2x58ww] {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.hex-grid-shake-layer[b-rejf2x58ww] {
    position: absolute;
    /* Leave room at the top for the board's tug-of-war bar. */
    top: 30px;
    left: 0;
    right: 0;
    bottom: 0;
}

.hex-grid-wrapper[b-rejf2x58ww] {
    --board-scale: 1;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: auto;
    height: 100%;
    max-width: none;
    max-height: 100%;
    overflow: hidden;
    /* No browser touch gestures over the board (zoom/pan/double-tap) so taps always
       become clicks on mobile instead of being swallowed by a gesture. */
    touch-action: none;
    border: 0;
    border-radius: 0;
    background: #03070d;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.52);
}

.world-cup-skin .hex-grid-wrapper[b-rejf2x58ww] {
    background:
        linear-gradient(rgba(255,255,255,0.06) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 2px, transparent 2px),
        repeating-linear-gradient(90deg, #0d3d22 0 72px, #0f4727 72px 144px);
    background-size: 48px 48px, 48px 48px, auto;
}

@media (min-width: 1025px) {
    .hex-grid-wrapper[b-rejf2x58ww] {
        --board-scale: 0.72;
        transform: scale(var(--board-scale));
        transform-origin: center center;
    }


    .sidebar[b-rejf2x58ww] {
        width: 248px;
        flex: 0 0 248px;
        gap: 6px;
    }

    .panel[b-rejf2x58ww] {
        padding: 12px;
    }

    .energy-panel[b-rejf2x58ww] {
        min-height: 78px;
    }

    .territory-panel[b-rejf2x58ww] {
        min-height: 104px;
    }

    .minimap-panel[b-rejf2x58ww] {
        min-height: 164px;
    }

    .abilities-panel[b-rejf2x58ww] {
        min-height: 82px;
    }
}

.hex-grid-wrapper[b-rejf2x58ww]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(83, 232, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83, 232, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, #000 50%, transparent 84%);
}

.world-cup-skin .hex-grid-wrapper[b-rejf2x58ww]::before {
    background:
        linear-gradient(rgba(255,255,255,0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.075) 1px, transparent 1px),
        repeating-linear-gradient(0deg, rgba(142,230,183,0.1) 0 8px, transparent 8px 18px);
    background-size: 42px 42px, 42px 42px, 100% 36px;
    mask-image: radial-gradient(circle at center, #000 54%, transparent 88%);
}

.hex-grid-wrapper[b-rejf2x58ww]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.68), inset 0 0 44px rgba(83, 232, 255, 0.08);
}

.hex-grid[b-rejf2x58ww] {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
    user-select: none;
    filter: drop-shadow(0 28px 58px rgba(0, 0, 0, 0.58));
}

.sidebar[b-rejf2x58ww] {
    width: 282px;
    flex: 0 0 282px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(3, 8, 14, 0.48), rgba(3, 8, 14, 0.78));
    border-left: 1px solid rgba(83, 232, 255, 0.18);
}

.panel[b-rejf2x58ww] {
    flex-shrink: 0;
    padding: 14px;
    border: 1px solid rgba(83, 232, 255, 0.18);
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(83, 232, 255, 0.07), transparent 36%),
        linear-gradient(180deg, rgba(12, 25, 35, 0.92), rgba(4, 9, 15, 0.94));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.panel h3[b-rejf2x58ww] {
    margin: 0 0 12px;
    color: #dffcff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(83, 232, 255, 0.18);
}

.energy-panel[b-rejf2x58ww] {
    min-height: 86px;
}

.energy-bar[b-rejf2x58ww],
.territory-bar[b-rejf2x58ww] {
    width: 100%;
    height: 18px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(83, 232, 255, 0.24);
    border-radius: 999px;
    background: #03070d;
}

.energy-fill[b-rejf2x58ww] {
    height: 100%;
    background: linear-gradient(90deg, #3ba7ff 0%, #53e8ff 44%, #74d7a5 100%);
    box-shadow: 0 0 22px rgba(83, 232, 255, 0.44);
    transition: width 0.3s ease;
}

.energy-stats[b-rejf2x58ww] {
    display: flex;
    justify-content: space-between;
    color: #d5eaf2;
    font-size: 13px;
    font-weight: 800;
}

.income[b-rejf2x58ww] {
    color: #a8f0ca;
}

.territory-panel[b-rejf2x58ww] {
    min-height: 112px;
}

.territory-bar[b-rejf2x58ww] {
    display: flex;
}

.territory-neutral[b-rejf2x58ww] {
    background: repeating-linear-gradient(135deg, #1c2a33 0 6px, #233642 6px 12px);
    transition: width 0.3s ease;
}

.territory-legend[b-rejf2x58ww] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
}

.legend-item[b-rejf2x58ww] {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-item.neutral[b-rejf2x58ww]::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 2px;
    background: #25323a;
}

.minimap-panel[b-rejf2x58ww] {
    min-height: 178px;
}

.minimap[b-rejf2x58ww] {
    width: 100%;
    border: 1px solid rgba(83, 232, 255, 0.22);
    border-radius: 6px;
    background: #03070d;
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.45);
}

.abilities-panel[b-rejf2x58ww] {
    min-height: 88px;
}

.abilities-list[b-rejf2x58ww] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ability[b-rejf2x58ww] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #c4ced8;
    font-size: 12px;
    font-weight: 800;
}

.ability-button[b-rejf2x58ww] {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(83, 232, 255, 0.34);
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(83, 232, 255, 0.18), rgba(13, 31, 42, 0.78));
    color: #effcff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(83, 232, 255, 0.1), inset 0 0 16px rgba(83, 232, 255, 0.07);
    text-transform: uppercase;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.ability-button:not(:disabled):hover[b-rejf2x58ww] {
    transform: translateY(-1px);
    border-color: rgba(142, 230, 183, 0.72);
    box-shadow: 0 0 24px rgba(83, 232, 255, 0.2), inset 0 0 18px rgba(142, 230, 183, 0.12);
}

.ability-button:disabled[b-rejf2x58ww] {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #788695;
    cursor: default;
}

.cooldown-bar[b-rejf2x58ww] {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: #03070d;
}

.cooldown-fill[b-rejf2x58ww] {
    height: 100%;
    background: linear-gradient(90deg, #74d7a5 0%, #f5c94c 100%);
    transition: width 0.3s ease;
}

.connection-status[b-rejf2x58ww] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(83, 232, 255, 0.18);
    border-radius: 6px;
    background: rgba(3, 8, 14, 0.9);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-dot[b-rejf2x58ww] {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-b-rejf2x58ww 1s infinite;
}

.connected .status-dot[b-rejf2x58ww] {
    background: #74d7a5;
    box-shadow: 0 0 12px rgba(116, 215, 165, 0.72);
}

.disconnected .status-dot[b-rejf2x58ww] {
    background: #ff6b4a;
    box-shadow: 0 0 12px rgba(255, 107, 74, 0.72);
}

.reconnecting .status-dot[b-rejf2x58ww] {
    background: #f5c94c;
    box-shadow: 0 0 12px rgba(245, 201, 76, 0.72);
}

.error-message[b-rejf2x58ww] {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    background: #c84444;
    color: #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    animation: slideIn-b-rejf2x58ww 0.3s ease;
}

.error-message button[b-rejf2x58ww] {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.loading-overlay[b-rejf2x58ww] {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 50% 38%, rgba(83, 232, 255, 0.14), transparent 46%),
        radial-gradient(circle at 50% 100%, rgba(255, 107, 74, 0.10), transparent 40%),
        linear-gradient(180deg, #03070d 0%, #071018 55%, #02050a 100%);
}

.loader-card[b-rejf2x58ww] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

/* Animated 3×3 tile grid that lights up tile-by-tile, echoing the board. */
.loader-grid[b-rejf2x58ww] {
    display: grid;
    grid-template-columns: repeat(3, 26px);
    grid-template-rows: repeat(3, 26px);
    gap: 6px;
    margin-bottom: 14px;
}

.loader-grid span[b-rejf2x58ww] {
    border-radius: 5px;
    background: rgba(83, 232, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(83, 232, 255, 0.25);
    animation: loaderTilePulse-b-rejf2x58ww 1.4s ease-in-out infinite;
    animation-delay: var(--d, 0ms);
}

@keyframes loaderTilePulse-b-rejf2x58ww {
    0%, 100% { background: rgba(83, 232, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(83, 232, 255, 0.2); }
    45% { background: rgba(142, 230, 183, 0.85); box-shadow: 0 0 16px rgba(142, 230, 183, 0.6), inset 0 0 0 1px rgba(142, 230, 183, 0.9); }
}

.loader-kicker[b-rejf2x58ww] {
    color: #8ee6b7;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.loader-title[b-rejf2x58ww] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    color: #effcff;
    text-shadow: 0 0 22px rgba(83, 232, 255, 0.25);
}

.loader-phase[b-rejf2x58ww] {
    margin: 2px 0 0;
    color: #9fc6d6;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.loader-bar[b-rejf2x58ww] {
    margin-top: 14px;
    width: 200px;
    max-width: 60vw;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.loader-bar span[b-rejf2x58ww] {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #53e8ff, #8ee6b7);
    animation: loaderSweep-b-rejf2x58ww 1.2s ease-in-out infinite;
}

@keyframes loaderSweep-b-rejf2x58ww {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

body.tw-reduced-motion .loader-grid span[b-rejf2x58ww],
body.tw-reduced-motion .loader-bar span[b-rejf2x58ww] {
    animation-duration: 0.001ms;
}

.match-ended-overlay[b-rejf2x58ww] {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(83, 232, 255, 0.14), transparent 32%),
        rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
}

.victory-confetti[b-rejf2x58ww] {
    position: fixed;
    inset: 0;
    z-index: 2501;
    pointer-events: none;
    overflow: hidden;
}

.victory-confetti span[b-rejf2x58ww] {
    position: absolute;
    top: -24px;
    left: calc((var(--i) * 53px) % 100vw);
    width: 8px;
    height: 16px;
    border-radius: 2px;
    background: hsl(calc(var(--i) * 37), 82%, 62%);
    animation: confettiFall-b-rejf2x58ww 2.8s ease-in infinite;
    animation-delay: calc(var(--i) * 90ms);
    transform: rotate(calc(var(--i) * 23deg));
}

.world-cup-skin .match-ended-panel[b-rejf2x58ww] {
    border-color: rgba(245, 201, 76, 0.46);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62), 0 0 70px rgba(245, 201, 76, 0.2);
}

.match-ended-panel[b-rejf2x58ww] {
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 28px;
    border: 1px solid rgba(83, 232, 255, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(83, 232, 255, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 43, 0.98), rgba(4, 8, 14, 0.98));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62), 0 0 60px rgba(83, 232, 255, 0.16);
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    animation: modalDeploy-b-rejf2x58ww 360ms ease-out;
}

.match-ended-kicker[b-rejf2x58ww] {
    display: block;
    margin-bottom: 8px;
    color: #8ee6b7;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.match-ended-panel h2[b-rejf2x58ww] {
    margin: 0 0 12px;
    color: #f5c94c;
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(245, 201, 76, 0.36);
}

.winner-text[b-rejf2x58ww] {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #effcff;
}

.final-score[b-rejf2x58ww] {
    margin-bottom: 22px;
    color: #c4dce6;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.final-standings[b-rejf2x58ww],
.nation-points-result[b-rejf2x58ww] {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    text-align: left;
}

.final-standing-row[b-rejf2x58ww],
.nation-point-row[b-rejf2x58ww] {
    min-height: 42px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.045);
}

.final-standing-row.is-current[b-rejf2x58ww] {
    border-color: rgba(142, 230, 183, 0.5);
    box-shadow: 0 0 22px rgba(142, 230, 183, 0.12);
}

.final-standing-row span[b-rejf2x58ww],
.nation-points-result > span[b-rejf2x58ww] {
    color: #8ee6b7;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.final-standing-row strong[b-rejf2x58ww],
.nation-point-row strong[b-rejf2x58ww] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.final-standing-row em[b-rejf2x58ww],
.nation-point-row em[b-rejf2x58ww],
.nation-points-result p[b-rejf2x58ww] {
    margin: 0;
    color: #b7c9d6;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.nation-point-row[b-rejf2x58ww] {
    grid-template-columns: minmax(0, 1fr) auto;
}

.match-ended-panel .btn[b-rejf2x58ww] {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid rgba(83, 232, 255, 0.28);
    background: linear-gradient(180deg, rgba(83, 232, 255, 0.18), rgba(9, 21, 31, 0.86));
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.match-ended-panel .btn:hover[b-rejf2x58ww] {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(83, 232, 255, 0.18);
}

.match-ended-actions[b-rejf2x58ww] {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.match-ended-panel .btn-primary[b-rejf2x58ww] {
    background: linear-gradient(180deg, #8ee6b7, #4fbf85);
    color: #071018;
    border-color: rgba(142, 230, 183, 0.78);
}

.match-ended-panel .btn-secondary[b-rejf2x58ww] {
    border: 1px solid rgba(83, 232, 255, 0.28);
    background: rgba(83, 232, 255, 0.08);
    color: #f7fbff;
}

.rematch-error[b-rejf2x58ww] {
    margin-top: 14px;
    color: #ffb2a6;
    font-weight: 800;
}

@keyframes spin-b-rejf2x58ww {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn-b-rejf2x58ww {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse-b-rejf2x58ww {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes modalDeploy-b-rejf2x58ww {
    from {
        transform: translateY(18px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes confettiFall-b-rejf2x58ww {
    0% {
        transform: translateY(-24px) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    100% {
        transform: translateY(108vh) rotate(540deg);
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .game-area[b-rejf2x58ww] {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .hex-grid-wrapper[b-rejf2x58ww] {
        transform: none;
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: min(100%, calc(100dvh - 212px));
    }

    .sidebar[b-rejf2x58ww] {
        width: 100%;
        height: 104px;
        max-height: 104px;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow: hidden;
        gap: 6px;
        padding: 0;
    }

    .panel[b-rejf2x58ww] {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px;
    }

    .minimap-panel[b-rejf2x58ww] {
        flex-basis: 120px;
    }

    .abilities-panel[b-rejf2x58ww] {
        flex-basis: 150px;
    }
}

@media (max-width: 768px) {
    .match-info-panel[b-rejf2x58ww] {
        min-height: 72px;
        align-items: center;
        gap: 6px;
        padding: 6px 8px;
    }

    .match-title[b-rejf2x58ww] {
        min-width: 112px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
    }

    .match-title h1[b-rejf2x58ww] {
        font-size: 14px;
    }

    .match-timer[b-rejf2x58ww] {
        min-width: 82px;
        min-height: 28px;
        font-size: 12px;
    }

    .player-stats[b-rejf2x58ww] {
        gap: 6px;
    }

    .match-actions[b-rejf2x58ww] {
        left: 8px;
        bottom: 8px;
    }

    .exit-match-button[b-rejf2x58ww] {
        min-height: 34px;
        padding: 0 10px;
        font-size: 11px;
    }

    .player-stat[b-rejf2x58ww] {
        min-width: 76px;
        padding: 5px 6px;
    }

    .stat-label[b-rejf2x58ww] {
        font-size: 10px;
    }

    .stat-value[b-rejf2x58ww] {
        margin: 2px 0;
        font-size: 14px;
    }

    .stat-percentage[b-rejf2x58ww] {
        font-size: 11px;
    }

    .domination-panel[b-rejf2x58ww],
    .minimap-panel[b-rejf2x58ww],
    .abilities-panel[b-rejf2x58ww] {
        display: none;
    }

    .sidebar[b-rejf2x58ww] {
        height: 92px;
        max-height: 92px;
    }

    .hex-grid-wrapper[b-rejf2x58ww] {
        transform: none;
        max-height: min(100%, calc(100dvh - 184px));
    }
}

@media (max-width: 560px) {
    .gameboard-container[b-rejf2x58ww] {
        height: 100dvh;
    }

    .game-area[b-rejf2x58ww] {
        gap: 0;
        padding: 0;
    }

    .hex-grid-wrapper[b-rejf2x58ww] {
        transform: none;
        overflow: hidden;
        touch-action: manipulation;
        max-height: min(100%, calc(100dvh - 168px));
    }

    .sidebar[b-rejf2x58ww] {
        height: 88px;
        max-height: 88px;
    }

    .panel[b-rejf2x58ww] {
        padding: 6px;
    }

    .panel h3[b-rejf2x58ww] {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .territory-legend[b-rejf2x58ww] {
        gap: 1px;
        font-size: 9px;
    }

    .connection-status[b-rejf2x58ww] {
        flex: 0 0 auto;
        align-self: stretch;
        min-width: 84px;
        justify-content: center;
    }
}

/* Map-first reskin: keep gameplay controls wired, remove the dashboard feel. */
.match-info-panel[b-rejf2x58ww] {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1200;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
}

.match-title[b-rejf2x58ww] {
    width: min(720px, calc(100vw - 300px));
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.hud-chip[b-rejf2x58ww],
.match-timer[b-rejf2x58ww] {
    min-width: 96px;
    min-height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid rgba(83, 232, 255, 0.22);
    border-radius: 6px;
    background: rgba(3, 7, 13, 0.74);
    color: #effcff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
}

.hud-chip span[b-rejf2x58ww],
.match-timer span[b-rejf2x58ww] {
    color: #8ee6b7;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.hud-chip strong[b-rejf2x58ww],
.match-timer[b-rejf2x58ww] {
    font-size: 13px;
    font-weight: 950;
    line-height: 1.1;
    text-transform: uppercase;
}

.nation-hud-chip[b-rejf2x58ww] {
    min-width: 136px;
}

/* Make it obvious which colour/side is the local player. */
.color-swatch[b-rejf2x58ww] {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    flex: 0 0 auto;
    vertical-align: middle;
}

.you-badge[b-rejf2x58ww] {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    height: 16px;
    border-radius: 999px;
    background: #8ee6b7;
    color: #06140c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.player-stat.is-you[b-rejf2x58ww] {
    box-shadow: 0 0 0 2px rgba(142, 230, 183, 0.55), 0 14px 34px rgba(0, 0, 0, 0.32);
}

.final-standing-row.is-current[b-rejf2x58ww] {
    background: rgba(142, 230, 183, 0.12);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(142, 230, 183, 0.45);
}

/* Power-up tip callout anchored on the board */
.tip-callout[b-rejf2x58ww] {
    animation: tipCalloutIn-b-rejf2x58ww 0.3s ease-out;
}

@keyframes tipCalloutIn-b-rejf2x58ww {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

body.tw-reduced-motion .tip-callout[b-rejf2x58ww] {
    animation: none;
}

/* First-time contextual tip toast */
.context-tip[b-rejf2x58ww] {
    position: fixed;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(420px, calc(100vw - 24px));
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(83, 232, 255, 0.4);
    background: linear-gradient(180deg, rgba(12, 26, 36, 0.98), rgba(5, 12, 18, 0.98));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 26px rgba(83, 232, 255, 0.18);
    color: #eaf4fb;
    cursor: pointer;
    animation: contextTipIn-b-rejf2x58ww 0.3s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.context-tip-icon[b-rejf2x58ww] {
    font-size: 1.7rem;
    line-height: 1;
    flex: 0 0 auto;
}

.context-tip-body[b-rejf2x58ww] {
    flex: 1 1 auto;
    min-width: 0;
}

.context-tip-body strong[b-rejf2x58ww] {
    display: block;
    color: #8ee6b7;
    font-size: 0.95rem;
    font-weight: 900;
    margin-bottom: 2px;
}

.context-tip-body p[b-rejf2x58ww] {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #c4d8e4;
}

.context-tip-close[b-rejf2x58ww] {
    flex: 0 0 auto;
    color: #7f96a6;
    font-size: 0.8rem;
    font-weight: 900;
}

@keyframes contextTipIn-b-rejf2x58ww {
    0% { transform: translateX(-50%) translateY(-12px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

body.tw-reduced-motion .context-tip[b-rejf2x58ww] {
    animation: none;
}

@media (max-width: 768px) {
    .context-tip[b-rejf2x58ww] {
        top: 64px;
        padding: 10px 12px;
        gap: 10px;
    }
    .context-tip-icon[b-rejf2x58ww] { font-size: 1.4rem; }
    .context-tip-body p[b-rejf2x58ww] { font-size: 0.8rem; }
}

.combo-badge[b-rejf2x58ww] {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1400;
    /* Never intercept clicks — the badge floats above the board purely as feedback. */
    pointer-events: none !important;
    padding: 6px 20px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 122, 60, 0.95), rgba(255, 60, 40, 0.92));
    border: 2px solid rgba(255, 224, 138, 0.85);
    box-shadow: 0 0 26px rgba(255, 122, 60, 0.6);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: comboPop-b-rejf2x58ww 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@media (max-width: 768px) {
    .combo-badge[b-rejf2x58ww] {
        font-size: 1.1rem !important;
        padding: 4px 14px;
        top: 8%;
    }
}

@media (max-width: 480px) {
    .combo-badge[b-rejf2x58ww] {
        font-size: 0.95rem !important;
        padding: 3px 12px;
    }
}

@keyframes comboPop-b-rejf2x58ww {
    0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

body.tw-reduced-motion .combo-badge[b-rejf2x58ww] {
    animation: none;
}

.buff-chip[b-rejf2x58ww] {
    border-color: rgba(245, 201, 76, 0.6);
    background: linear-gradient(180deg, rgba(245, 201, 76, 0.18), rgba(5, 14, 22, 0.82));
}

.buff-chip strong[b-rejf2x58ww] {
    color: #ffe08a;
}

/* Timer during the final-seconds Frenzy */
.match-timer.is-frenzy[b-rejf2x58ww] {
    color: #fff;
    border-color: rgba(255, 70, 50, 0.8);
    background: linear-gradient(180deg, rgba(255, 70, 50, 0.32), rgba(60, 8, 4, 0.9));
    box-shadow: 0 0 22px rgba(255, 70, 50, 0.5);
    animation: timerFrenzyPulse-b-rejf2x58ww 0.7s ease-in-out infinite;
}

.match-timer.is-frenzy span[b-rejf2x58ww] {
    color: #ffd0c8;
}

@keyframes timerFrenzyPulse-b-rejf2x58ww {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

body.tw-reduced-motion .match-timer.is-frenzy[b-rejf2x58ww] {
    animation: none;
}

.game-area[b-rejf2x58ww] {
    position: fixed;
    inset: 0;
    display: block;
    padding: 0;
    pointer-events: none;
}

.hex-grid-wrapper[b-rejf2x58ww] {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(740px, calc(100vw - 96px), calc((100dvh - 250px) * 1.52));
    height: min(485px, calc(100dvh - 250px), calc((100vw - 96px) / 1.52));
    max-width: calc(100vw - 96px);
    max-height: calc(100dvh - 250px);
    justify-self: center;
    align-self: center;
    margin: auto;
    transform: translate(-50%, -50%) translateZ(0);
    will-change: transform;
    border: 1px solid rgba(83, 232, 255, 0.18);
    border-radius: 8px;
    background: rgba(3, 7, 13, 0.48);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42), 0 0 42px rgba(83, 232, 255, 0.08);
    pointer-events: auto;
}

.hex-grid[b-rejf2x58ww] {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 18px rgba(83, 232, 255, 0.12));
}

.player-stats[b-rejf2x58ww] {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1200;
    width: min(520px, calc(100vw - 760px));
    min-width: 280px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: auto;
}

.player-stat[b-rejf2x58ww] {
    width: 150px;
    min-width: 0;
    min-height: 48px;
    padding: 7px 10px;
    background: rgba(3, 7, 13, 0.76);
    border-width: 1px;
    border-left-width: 3px;
    backdrop-filter: blur(16px);
}

.stat-value[b-rejf2x58ww] {
    margin: 2px 0 0;
    font-size: 16px;
}

.stat-percentage[b-rejf2x58ww] {
    font-size: 11px;
}

.sidebar[b-rejf2x58ww] {
    position: fixed;
    left: 50%;
    bottom: 12px;
    z-index: 1300;
    width: auto;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(83, 232, 255, 0.2);
    border-radius: 8px;
    background: rgba(3, 7, 13, 0.76);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 54px rgba(0,0,0,0.44);
}

.energy-panel[b-rejf2x58ww],
.territory-panel[b-rejf2x58ww],
.minimap-panel[b-rejf2x58ww] {
    display: none;
}

.abilities-panel[b-rejf2x58ww] {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    clip-path: none;
}

.abilities-panel h3[b-rejf2x58ww] {
    display: none;
}

.abilities-list[b-rejf2x58ww] {
    flex-direction: row;
    gap: 8px;
}

.ability[b-rejf2x58ww] {
    min-width: 116px;
}

.ability-button[b-rejf2x58ww] {
    min-height: 38px;
}

.cooldown-bar[b-rejf2x58ww] {
    height: 5px;
}

.connection-status[b-rejf2x58ww] {
    min-height: 38px;
    align-self: stretch;
    border-color: rgba(83,232,255,0.2);
    background: rgba(255,255,255,0.045);
}

.game-quick-actions[b-rejf2x58ww] {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1350;
    display: flex;
    gap: 8px;
}

.game-quick-actions button[b-rejf2x58ww],
.game-overlay-close[b-rejf2x58ww] {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(83,232,255,0.26);
    border-radius: 4px;
    background: rgba(3, 7, 13, 0.78);
    color: #effcff;
    font: inherit;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(14px);
}

.game-quick-actions button:hover[b-rejf2x58ww],
.game-overlay-close:hover[b-rejf2x58ww] {
    border-color: rgba(142,230,183,0.7);
    box-shadow: 0 0 24px rgba(83,232,255,0.16);
}

.how-to-play-btn[b-rejf2x58ww] {
    width: 38px;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    border-color: rgba(142,230,183,0.38) !important;
}

.how-to-play-list[b-rejf2x58ww] {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.htp-row[b-rejf2x58ww] {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.htp-icon[b-rejf2x58ww] {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1.2;
}

.htp-row div[b-rejf2x58ww] {
    display: grid;
    gap: 3px;
}

.htp-row strong[b-rejf2x58ww] {
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    color: #53e8ff;
}

.htp-row p[b-rejf2x58ww] {
    margin: 0;
    font-size: 13px;
    color: #c7dce8;
    line-height: 1.45;
}

.game-overlay-backdrop[b-rejf2x58ww] {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0,0,0,0.66);
    backdrop-filter: blur(8px);
}

.game-overlay-panel[b-rejf2x58ww] {
    position: relative;
    width: min(520px, 100%);
    max-height: min(680px, calc(100vh - 40px));
    overflow: auto;
    padding: 24px;
    border: 1px solid rgba(83,232,255,0.28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(83,232,255,0.1), transparent 34%),
        linear-gradient(180deg, rgba(10,18,28,0.98), rgba(4,8,14,0.98));
    box-shadow: 0 34px 90px rgba(0,0,0,0.58);
}

.game-overlay-close[b-rejf2x58ww] {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    padding: 0;
}

.overlay-kicker[b-rejf2x58ww] {
    color: #8ee6b7;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.game-overlay-panel h2[b-rejf2x58ww] {
    margin: 8px 0 18px;
    color: #effcff;
    font-size: 34px;
    line-height: 1;
    text-transform: uppercase;
}

.nation-overlay-list[b-rejf2x58ww],
.game-settings-list[b-rejf2x58ww] {
    display: grid;
    gap: 8px;
}

.nation-overlay-row[b-rejf2x58ww],
.game-settings-list label[b-rejf2x58ww] {
    min-height: 54px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    background: rgba(255,255,255,0.045);
}

.nation-overlay-row.is-selected[b-rejf2x58ww] {
    border-color: rgba(245,201,76,0.5);
    box-shadow: 0 0 28px rgba(245,201,76,0.13);
}

.nation-overlay-row strong[b-rejf2x58ww] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

.nation-overlay-row em[b-rejf2x58ww] {
    color: #8ee6b7;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    text-transform: uppercase;
}

.game-settings-list label[b-rejf2x58ww] {
    grid-template-columns: minmax(0, 1fr) auto;
    color: #dbe6f2;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .match-title[b-rejf2x58ww] {
        width: calc(100vw - 24px);
        padding-right: 220px;
    }

    .player-stats[b-rejf2x58ww] {
        top: 66px;
        right: 12px;
        width: min(220px, calc(100vw - 24px));
        min-width: 0;
        display: grid;
    }

    .player-stat[b-rejf2x58ww] {
        width: auto;
    }

    .game-area[b-rejf2x58ww] {
        inset: 0;
    }

    .hex-grid-wrapper[b-rejf2x58ww] {
        width: min(700px, calc(100vw - 32px), calc((100dvh - 286px) * 1.45));
        height: min(460px, calc(100dvh - 286px), calc((100vw - 32px) / 1.45));
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 286px);
    }
}

@media (max-width: 760px) {
    .game-area[b-rejf2x58ww] {
        inset: 0;
        padding: 8px;
    }

    .hex-grid-wrapper[b-rejf2x58ww] {
        width: min(calc(100vw - 16px), calc((100dvh - 286px) * 1.25));
        height: min(calc(100dvh - 286px), calc((100vw - 16px) / 1.25));
        max-width: 100%;
        max-height: calc(100dvh - 286px);
    }

    .match-title[b-rejf2x58ww] {
        width: calc(100vw - 24px);
        gap: 6px;
    }

    .hud-chip[b-rejf2x58ww],
    .match-timer[b-rejf2x58ww] {
        min-width: 72px;
        min-height: 36px;
        padding: 5px 7px;
        font-size: 11px;
    }

    .nation-hud-chip[b-rejf2x58ww] {
        min-width: 104px;
    }

    .player-stats[b-rejf2x58ww] {
        top: 82px;
        right: 8px;
        width: min(178px, calc(100vw - 16px));
        max-height: 76px;
        overflow: auto;
    }

    .sidebar[b-rejf2x58ww] {
        left: 8px;
        right: 8px;
        bottom: 58px;
        width: auto;
        transform: none;
        overflow-x: auto;
    }

    .game-quick-actions[b-rejf2x58ww] {
        right: 8px;
        bottom: 8px;
    }

    .ability[b-rejf2x58ww] {
        min-width: 104px;
    }
}

@media (max-width: 520px) {
    .game-area[b-rejf2x58ww] {
        inset: 0;
        padding: 6px;
    }

    .hex-grid-wrapper[b-rejf2x58ww] {
        width: min(calc(100vw - 12px), calc((100dvh - 258px) * 1.12));
        height: min(calc(100dvh - 258px), calc((100vw - 12px) / 1.12));
        max-height: calc(100dvh - 258px);
    }

    .match-ended-panel[b-rejf2x58ww] {
        padding: 20px;
    }

    .final-standing-row[b-rejf2x58ww] {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .final-standing-row em[b-rejf2x58ww] {
        grid-column: 2;
    }
}

/* Small screens: stack the HUD vertically (info chips on top, player cards below)
   instead of anchoring two blocks left/right where they overlap when chips wrap. */
@media (max-width: 1024px) {
    .match-info-panel[b-rejf2x58ww] {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        top: 8px;
        left: 8px;
        right: 8px;
    }

    .match-title[b-rejf2x58ww] {
        position: static;
        width: 100%;
        padding-right: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 6px;
    }

    .player-stats[b-rejf2x58ww] {
        position: static;
        top: auto;
        right: auto;
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
        max-height: none;
        overflow: visible;
    }

    .player-stat[b-rejf2x58ww] {
        width: auto;
        flex: 1 1 130px;
        min-width: 120px;
    }
}

/* ── Ping markers (right-click a tile) ── */
.tile-ping[b-rejf2x58ww] {
    pointer-events: none;
}

.tile-ping-ring[b-rejf2x58ww] {
    transform-origin: center;
    transform-box: fill-box;
    animation: tilePingPulse-b-rejf2x58ww 1.3s ease-out infinite;
}

.tile-ping-ring-delayed[b-rejf2x58ww] {
    animation-delay: 0.45s;
}

.tile-ping-dot[b-rejf2x58ww] {
    transform-origin: center;
    transform-box: fill-box;
    animation: tilePingDot-b-rejf2x58ww 1.3s ease-in-out infinite;
}

@keyframes tilePingPulse-b-rejf2x58ww {
    0% { opacity: 0.9; transform: scale(0.25); }
    70% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.1); }
}

@keyframes tilePingDot-b-rejf2x58ww {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.25); }
}

body.tw-reduced-motion .tile-ping-ring[b-rejf2x58ww],
body.tw-reduced-motion .tile-ping-dot[b-rejf2x58ww] {
    animation-duration: 0.001ms !important;
}

/* Live tug-of-war territory bar */
.tug-of-war[b-rejf2x58ww] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6;
    height: 30px;
    padding: 3px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    pointer-events: none;
}

.tug-track[b-rejf2x58ww] {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 7px;
    overflow: hidden;
    background: #0a1620;
    border: 1px solid rgba(83, 232, 255, 0.18);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
}

.tug-fill[b-rejf2x58ww] {
    height: 100%;
    transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.18);
}

.tug-fill + .tug-fill[b-rejf2x58ww] {
    border-left: 1px solid rgba(0, 0, 0, 0.35);
}

.tug-fill.is-you[b-rejf2x58ww] {
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.35);
}

.tug-neutral[b-rejf2x58ww] {
    background: #18242c !important;
    box-shadow: none;
}

.tug-labels[b-rejf2x58ww] {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tug-you[b-rejf2x58ww] {
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.tug-leader[b-rejf2x58ww] {
    color: #b0d8e8;
    opacity: 0.85;
}

/* "So close!" near-miss prompt on the match-over screen */
.so-close-banner[b-rejf2x58ww] {
    margin: 6px auto 2px;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffe08a;
    background: linear-gradient(180deg, rgba(245, 201, 76, 0.16), rgba(245, 201, 76, 0.05));
    border: 1px solid rgba(245, 201, 76, 0.45);
    text-shadow: 0 0 12px rgba(245, 201, 76, 0.4);
    animation: soClosePulse-b-rejf2x58ww 1.1s ease-in-out infinite;
}

@keyframes soClosePulse-b-rejf2x58ww {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

body.tw-reduced-motion .so-close-banner[b-rejf2x58ww] {
    animation: none;
}

/* Calmer, encouraging banner on a bigger loss */
.loss-banner[b-rejf2x58ww] {
    margin: 6px auto 2px;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.98rem;
    color: #bfe3f2;
    background: linear-gradient(180deg, rgba(83, 232, 255, 0.12), rgba(83, 232, 255, 0.04));
    border: 1px solid rgba(83, 232, 255, 0.34);
}

/* Celebratory banner on a win */
.victory-banner[b-rejf2x58ww] {
    margin: 6px auto 2px;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #073018;
    background: linear-gradient(180deg, #8ee6b7, #5fcf93);
    border: 1px solid rgba(142, 230, 183, 0.7);
    box-shadow: 0 0 22px rgba(142, 230, 183, 0.4);
    animation: victoryPulse-b-rejf2x58ww 1s ease-in-out infinite;
}

@keyframes victoryPulse-b-rejf2x58ww {
    0%, 100% { transform: scale(1); box-shadow: 0 0 22px rgba(142, 230, 183, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 32px rgba(142, 230, 183, 0.6); }
}

body.tw-reduced-motion .victory-banner[b-rejf2x58ww] {
    animation: none;
}
/* /Components/Game/HexTile.razor.rz.scp.css */
/* HexTile Component Styles */

.hex-tile[b-9m50p4yb2o] {
    display: block;
    transition: filter 0.18s ease;
    transform-origin: center center;
    transform-box: fill-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.tile-hitbox[b-9m50p4yb2o] {
    fill: #000;
    opacity: 0.001;
    pointer-events: all;
    /* Touch target: kill browser touch gestures (double-tap zoom, pan, 300ms tap
       delay) so every tap registers as a click. Without this, rapid taps on mobile
       get eaten as a zoom/scroll gesture and the capture never fires — the tile
       paints (pointerdown) then reverts ("disappears after a few taps"). */
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.hex-tile:hover[b-9m50p4yb2o] {
    /* keep hover purely visual so the board never shifts */
}
.hex-tile:hover .hex-background[b-9m50p4yb2o] {
    filter: brightness(1.18) saturate(1.22);
    stroke: rgba(83,232,255,0.76);
}

.hex-tile.selected .hex-background[b-9m50p4yb2o] {
    stroke: #F5C94C !important;
    stroke-width: 1.35 !important;
    filter: brightness(1.2) saturate(1.25);
}

.hex-tile.reachable .hex-background[b-9m50p4yb2o] {
    stroke: rgba(142,230,183,0.72);
    stroke-width: 1.4;
}

.hex-tile.reachable:not(.selected):hover .hex-background[b-9m50p4yb2o] {
    stroke: rgba(142,230,183,1);
    filter: brightness(1.22) saturate(1.28);
}

.hex-tile:hover .tile-shadow[b-9m50p4yb2o] {
    opacity: 0.54;
}

.hex-background[b-9m50p4yb2o] {
    transition: fill 260ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease, filter 260ms ease, stroke 180ms ease;
    stroke: rgba(83,232,255,0.24);
    stroke-width: 1.35;
}

.square-tile[b-9m50p4yb2o] {
    filter: drop-shadow(0 8px 13px rgba(0,0,0,0.36));
}

.tile-shadow[b-9m50p4yb2o] {
    fill: rgba(0,0,0,0.3);
    filter: blur(1.5px);
    opacity: 0.32;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.tile-inner-highlight[b-9m50p4yb2o] {
    fill: rgba(255,255,255,0.045);
    pointer-events: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 1;
}

.tile-sheen[b-9m50p4yb2o] {
    fill: rgba(255,255,255,0.065);
    pointer-events: none;
    mix-blend-mode: screen;
}

.neutral[b-9m50p4yb2o] {
    fill: #18242C;
    stroke: rgba(83,232,255,0.2);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.26));
}

.owned[b-9m50p4yb2o] {
    fill: #3BA7FF;
    stroke: rgba(116, 215, 165, 0.72);
    filter: drop-shadow(0 0 12px rgba(59,167,255,0.38)) drop-shadow(0 10px 18px rgba(59,167,255,0.26));
    animation: ownedTerritoryGlow-b-9m50p4yb2o 3.8s ease-in-out infinite;
}

.enemy[b-9m50p4yb2o] {
    fill: #FF6B4A;
    stroke: rgba(255, 171, 135, 0.72);
    filter: drop-shadow(0 0 12px rgba(255,107,74,0.36)) drop-shadow(0 10px 18px rgba(255,107,74,0.24));
    animation: enemyTerritoryGlow-b-9m50p4yb2o 4.1s ease-in-out infinite;
}

.out-of-supply[b-9m50p4yb2o] {
    opacity: 0.76;
}

.contested[b-9m50p4yb2o] {
    filter: saturate(1.28) brightness(1.1);
    animation: contestedScan-b-9m50p4yb2o 1.25s ease-in-out infinite;
}

.selection-indicator[b-9m50p4yb2o] {
    filter: none;
    pointer-events: none;
    animation: selectionSweep-b-9m50p4yb2o 1.35s ease-in-out infinite;
    vector-effect: non-scaling-stroke;
}

.capture-progress[b-9m50p4yb2o] {
    transition: width 200ms linear, fill 200ms linear;
    filter: drop-shadow(0 0 8px currentColor);
}

.capture-track[b-9m50p4yb2o] {
    fill: rgba(0,0,0,0.62);
    stroke: rgba(255,255,255,0.12);
    stroke-width: 0.5;
}

.capture-tick[b-9m50p4yb2o] {
    stroke: rgba(0,0,0,0.55);
    stroke-width: 1;
    pointer-events: none;
}
.capture-progress.anim[b-9m50p4yb2o] {
    animation: captureReveal-b-9m50p4yb2o 900ms forwards ease-out, capturePulse-b-9m50p4yb2o 700ms ease-in-out infinite;
}

@keyframes captureReveal-b-9m50p4yb2o {
    from { opacity: 0.6 }
    to { opacity: 1 }
}

.tile-icon[b-9m50p4yb2o] {
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.48));
}

.tile-type-mark[b-9m50p4yb2o] {
    stroke: rgba(0,0,0,0.34);
    stroke-width: 1;
}

.base-mark[b-9m50p4yb2o] {
    fill: #F5C94C;
    filter: drop-shadow(0 0 8px rgba(245,201,76,0.5));
}

.resource-mark[b-9m50p4yb2o] {
    fill: #8ee6b7;
    filter: drop-shadow(0 0 8px rgba(142,230,183,0.45));
}

.tile-type-mark-dot[b-9m50p4yb2o] {
    fill: rgba(10,18,16,0.6);
}

.fortress-mark[b-9m50p4yb2o] {
    fill: #B993FF;
    filter: drop-shadow(0 0 8px rgba(185,147,255,0.45));
}

.out-of-supply-indicator[b-9m50p4yb2o] {
    opacity: 0.62;
    transform-origin: center center;
    animation: supplyPulse-b-9m50p4yb2o 1.8s ease-in-out infinite;
}

.supply-overlay[b-9m50p4yb2o] {
    fill: rgba(255,107,74,0.065);
    pointer-events: none;
}

.out-of-supply-indicator line[b-9m50p4yb2o] {
    filter: drop-shadow(0 0 5px rgba(255, 138, 122, 0.45));
}

@keyframes supplyPulse-b-9m50p4yb2o {
    0% { transform: scale(1); opacity: 1 }
    50% { transform: scale(1.01); opacity: 0.72 }
    100% { transform: scale(1); opacity: 1 }
}

.contested-indicator[b-9m50p4yb2o] {
    animation: pulse-b-9m50p4yb2o 1.5s infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(245, 201, 76, 0.55));
}

@keyframes pulse-b-9m50p4yb2o {
    0%, 100% {
        stroke-width: 2;
        opacity: 1;
    }
    50% {
        stroke-width: 3;
        opacity: 0.7;
    }
}

@keyframes selectionSweep-b-9m50p4yb2o {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

@keyframes contestedScan-b-9m50p4yb2o {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.88; }
}

@keyframes capturePulse-b-9m50p4yb2o {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 0.68; }
}

@keyframes ownedTerritoryGlow-b-9m50p4yb2o {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(59,167,255,0.32)) drop-shadow(0 10px 18px rgba(59,167,255,0.22)); }
    50% { filter: drop-shadow(0 0 16px rgba(59,167,255,0.48)) drop-shadow(0 10px 18px rgba(59,167,255,0.28)); }
}

@keyframes enemyTerritoryGlow-b-9m50p4yb2o {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255,107,74,0.3)) drop-shadow(0 10px 18px rgba(255,107,74,0.2)); }
    50% { filter: drop-shadow(0 0 16px rgba(255,107,74,0.46)) drop-shadow(0 10px 18px rgba(255,107,74,0.26)); }
}

/* Impassable wall tiles: solid rock, no glow, no glossy sheen. */
.wall-tile .hex-background[b-9m50p4yb2o],
.square-tile.wall[b-9m50p4yb2o] {
    filter: none !important;
    animation: none !important;
    stroke: #15181d;
    stroke-width: 1.5;
}

.wall-tile .tile-sheen[b-9m50p4yb2o],
.wall-tile .tile-inner-highlight[b-9m50p4yb2o],
.wall-tile .tile-shadow[b-9m50p4yb2o] {
    display: none;
}

/* Power-up tile marker (Bomb): pulsing golden glow. */
.powerup-glow[b-9m50p4yb2o] {
    fill: rgba(255, 207, 77, 0.22);
    stroke: rgba(255, 207, 77, 0.7);
    stroke-width: 1.5;
    animation: powerupPulse-b-9m50p4yb2o 1.1s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes powerupPulse-b-9m50p4yb2o {
    0%, 100% { opacity: 0.55; transform: scale(0.82); }
    50% { opacity: 1; transform: scale(1.05); }
}

body.tw-reduced-motion .powerup-glow[b-9m50p4yb2o] {
    animation: none;
}

.powerup-multiplier .powerup-glow[b-9m50p4yb2o] {
    fill: rgba(80, 180, 255, 0.22);
    stroke: rgba(80, 180, 255, 0.72);
}

.powerup-surge .powerup-glow[b-9m50p4yb2o] {
    fill: rgba(255, 180, 60, 0.22);
    stroke: rgba(255, 180, 60, 0.75);
}

/* Central fortress "hill" objective glow. */
.hill-glow[b-9m50p4yb2o] {
    fill: none;
    stroke: rgba(245, 201, 76, 0.55);
    stroke-width: 2;
    stroke-dasharray: 4 4;
    animation: hillSpin-b-9m50p4yb2o 6s linear infinite, hillPulse-b-9m50p4yb2o 1.6s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes hillSpin-b-9m50p4yb2o {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes hillPulse-b-9m50p4yb2o {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.85; }
}

body.tw-reduced-motion .hill-glow[b-9m50p4yb2o] {
    animation: none;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.game-page[b-jczkyioxb5] {
    min-height: 100vh;
    background: #03070d;
}

#blazor-error-ui[b-jczkyioxb5] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-jczkyioxb5] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-26fvma69c4] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-26fvma69c4] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-26fvma69c4] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-26fvma69c4] {
    font-size: 1.1rem;
}

.bi[b-26fvma69c4] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-26fvma69c4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-26fvma69c4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-26fvma69c4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-26fvma69c4] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-26fvma69c4] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-26fvma69c4] {
        padding-bottom: 1rem;
    }

    .nav-item[b-26fvma69c4]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-26fvma69c4]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-26fvma69c4]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-26fvma69c4] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-26fvma69c4] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-26fvma69c4] {
        display: none;
    }

    .nav-scrollable[b-26fvma69c4] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/UserSessionBadge.razor.rz.scp.css */
.user-session-badge[b-gapxv071ez] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-session-badge__name[b-gapxv071ez] {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(116, 215, 165, 0.3);
    background: rgba(7, 11, 16, 0.78);
    color: #ccebdd;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.user-session-badge__name:hover[b-gapxv071ez] {
    border-color: rgba(116, 215, 165, 0.5);
    color: #f4fff8;
}

.user-session-badge__logout-form[b-gapxv071ez] {
    margin: 0;
}

.user-session-badge__logout-button[b-gapxv071ez] {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 11, 16, 0.78);
    color: #dbe6f2;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.user-session-badge__logout-button:hover[b-gapxv071ez] {
    border-color: rgba(255, 107, 74, 0.38);
    color: #ffd7cc;
}
