/* /Components/GameHud/GameHud.razor.rz.scp.css */
/* HUD-root sits on top of the game canvas; pointer-events:none lets
   clicks pass through to the canvas, and individual slots opt back into
   pointer events so their interactive children stay clickable. */
.hud-root[b-swto5trb57] {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
    font-family: system-ui, sans-serif;
    user-select: none;
}

.hud-slot[b-swto5trb57] {
    position: absolute;
    pointer-events: auto;
}

.hud-top-left[b-swto5trb57]     { top: 16px; left: 16px; }
.hud-top-right[b-swto5trb57]    { top: 16px; right: 16px; }
.hud-bottom-left[b-swto5trb57]  { bottom: 16px; left: 16px; }
.hud-bottom-right[b-swto5trb57] { bottom: 16px; right: 16px; }

/* Left-stack lets the BottomLeft slot host the TerritoryGauge + PaintToolbar
   as a vertical column with matched widths. Each child component sets its
   own internal layout; we fix only the outer width so they align. */
[b-swto5trb57] .tidemark-left-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 240px;
}

[b-swto5trb57] .tidemark-left-stack > * {
    width: 100%;
    box-sizing: border-box;
}
/* /Components/GameHud/MinimapPanel.razor.rz.scp.css */
/* Sized for equirectangular projection: a 2:1 canvas area + header strip.
   Orthographic projection letterboxes its disc inside the same area
   (acceptable polish trade — re-projecting the panel on every toggle would
   shift HUD layout). */
.tidemark-minimap[b-hnaco5w6ib] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px 8px;
    background: rgba(13, 21, 37, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #e6edf3;
    font: 11px monospace;
    pointer-events: auto;
    user-select: none;
    /* Canvas area = 320×160 (equirect 2:1); header + padding fits the rest. */
    width: 336px;
    /* Anchor the dev-mode overlay popover (position:absolute) here. */
    position: relative;
}

/* Toggle hidden state — set by F3 / sidebar button via the toggle module.
   The class lives on the root .tidemark-minimap element (not a descendant),
   so we don't use ::deep — Blazor CSS isolation scopes this rule to the
   component's b-xxx attribute and matches the same root element. */
.tidemark-minimap.tidemark-minimap--hidden[b-hnaco5w6ib] {
    display: none;
}

.tidemark-minimap-header[b-hnaco5w6ib] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    line-height: 1.2;
    color: #a8b3c7;
    min-height: 13px;
    /* Truncate long coord readouts so the header never wraps onto two lines. */
    white-space: nowrap;
    overflow: hidden;
    /* Allow the popover (positioned: absolute) to overflow the header
       while still trimming the legend / coord text via ellipsis. */
    position: static;
}

.tidemark-minimap-legend[b-hnaco5w6ib],
.tidemark-minimap-coord[b-hnaco5w6ib] {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ⚙ button — built dynamically by overlay-menu.ts so styles live here.
   Tucked at the right edge of the header next to the coord readout. */
[b-hnaco5w6ib] .tidemark-minimap-overlay-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e6edf3;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px 7px;
    margin-left: 6px;
    flex: 0 0 auto;
    min-width: 24px;
    text-align: center;
}
[b-hnaco5w6ib] .tidemark-minimap-overlay-button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}
[b-hnaco5w6ib] .tidemark-minimap-overlay-button[aria-expanded="true"] {
    color: #fff;
    background: rgba(76, 201, 240, 0.15);
    border-color: rgba(76, 201, 240, 0.5);
}

/* Popover sits at the top-right of the minimap panel. */
[b-hnaco5w6ib] .tidemark-minimap-overlay-popover {
    position: absolute;
    top: 28px;
    right: 6px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(13, 21, 37, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    padding: 8px 10px;
    color: #e6edf3;
    font: 11px monospace;
    pointer-events: auto;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[b-hnaco5w6ib] .tidemark-minimap-overlay-popover-row {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

[b-hnaco5w6ib] .tidemark-minimap-overlay-popover-row input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}


.tidemark-minimap-canvas[b-hnaco5w6ib] {
    width: 100%;
    height: 160px;
    cursor: crosshair;
    display: block;
}

/* Tooltip is created by OFF's TooltipOverlay as `<div class="minimap-tooltip">`.
   The wrapper element has `position: relative` set by the overlay code, so
   the tooltip is anchored to this panel. */
[b-hnaco5w6ib] .minimap-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font: 10px monospace;
    pointer-events: none;
    z-index: 20;
}
/* /Components/GameHud/PaintToolbar.razor.rz.scp.css */
.paint-toolbar[b-ci78cs29x7] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(13, 21, 37, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.paint-section[b-ci78cs29x7] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.paint-label[b-ci78cs29x7] {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a96b0;
}

.paint-row[b-ci78cs29x7] {
    display: flex;
    gap: 6px;
}

.paint-row button[b-ci78cs29x7] {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    padding: 0;
    line-height: 1;
    transition: border-color 80ms;
}

.paint-row button.active[b-ci78cs29x7] {
    border-color: #fff;
}

.paint-row button:hover[b-ci78cs29x7] {
    border-color: rgba(255, 255, 255, 0.5);
}

.paint-value[b-ci78cs29x7] {
    color: #fff;
    font-weight: 600;
    margin-left: 4px;
}

.brush-slider[b-ci78cs29x7] {
    width: 132px;
    accent-color: #6ea8ff;
    cursor: pointer;
}

/* Mode toggle button — wider than the digit-button row to fit the
   "● hold" / "○ tap" label. */
.mode-row button[b-ci78cs29x7] {
    width: auto;
    min-width: 64px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #c8d3e6;
    text-shadow: none;
    font-size: 12px;
}

.mode-row button.active[b-ci78cs29x7] {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
/* /Components/GameHud/TerritoryGauge.razor.rz.scp.css */
.territory-gauge[b-x7tnum2xc8] {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(13, 21, 37, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #c8d3e6;
    font-size: 12px;
}

.territory-gauge .row[b-x7tnum2xc8] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.territory-gauge .header .label[b-x7tnum2xc8] {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a96b0;
    flex: 1;
}

.territory-gauge .header .cells[b-x7tnum2xc8] {
    font-size: 10px;
    color: #6a7691;
}

.territory-gauge .bar[b-x7tnum2xc8] {
    display: flex;
    width: 100%;
    height: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.territory-gauge .seg[b-x7tnum2xc8] {
    height: 100%;
    transition: width 250ms ease-out;
}

.territory-gauge .legend[b-x7tnum2xc8] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.territory-gauge .legend .row[b-x7tnum2xc8] {
    line-height: 1;
}

.territory-gauge .swatch[b-x7tnum2xc8] {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.territory-gauge .name[b-x7tnum2xc8] {
    flex: 1;
    color: #a8b3c7;
}

.territory-gauge .pct[b-x7tnum2xc8] {
    font-variant-numeric: tabular-nums;
    color: #e2e8f5;
}
