﻿:root {
    --ga-radius: 12px;
    --ga-radius-sm: 8px;
    --ga-gap: 20px;
    --ga-border: var(--mud-palette-lines-default);
    --ga-muted: var(--mud-palette-text-secondary);
    --ga-accent: var(--mud-palette-primary);
    --ga-accent-soft: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    --ga-warning-soft: color-mix(in srgb, var(--mud-palette-warning) 14%, transparent);
    --ga-row-edited: color-mix(in srgb, var(--mud-palette-warning) 8%, transparent);
    --ga-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ---------- Page shell ---------- */

.ga-page {
    width: 100%;
    max-width: 1680px;   /* left-aligned next to the nav so the page uses the space instead of centering */
    margin: 0;
    padding: 24px 28px 40px;
    box-sizing: border-box;
}

.ga-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--ga-gap);
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ga-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ga-accent);
    margin: 0 0 4px;
}

.ga-title {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: var(--mud-palette-text-primary);
}

.ga-subtitle {
    margin: 6px 0 0;
    color: var(--ga-muted);
    font-size: 0.95rem;
}

.ga-page-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Cards ---------- */

.ga-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--ga-border);
    border-radius: var(--ga-radius);
    box-shadow: var(--ga-shadow);
    overflow: hidden;
}

.ga-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ga-border);
}

.ga-card-header-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.ga-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--mud-palette-text-primary);
}

.ga-card-meta {
    font-size: 0.85rem;
    color: var(--ga-muted);
}

.ga-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-top: 1px solid var(--ga-border);
    background: color-mix(in srgb, var(--mud-palette-background) 60%, var(--mud-palette-surface));
}

.ga-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Pills / badges ---------- */

.ga-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--ga-accent-soft);
    color: var(--ga-accent);
}

.ga-pill--warning {
    background: var(--ga-warning-soft);
    color: var(--mud-palette-warning);
}

.ga-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ga-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--ga-accent-soft);
    color: var(--ga-accent);
}

/* ---------- Empty / notice states ---------- */

.ga-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 56px 24px;
    text-align: center;
    color: var(--ga-muted);
}

.ga-empty .mud-icon-root {
    font-size: 3rem;
    opacity: 0.5;
}

.ga-empty-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.ga-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--ga-muted);
    max-width: 560px;
}

.ga-note .mud-icon-root {
    font-size: 1.1rem;
    margin-top: 1px;
    color: var(--mud-palette-info);
}

/* ---------- Form controls ---------- */

.ga-select {
    min-width: 320px;
}

/* ---------- Toolbar (filters above a grid, inside a card) ---------- */

.ga-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ga-border);
}

.ga-toolbar .mud-input-control {
    margin-top: 0;
}

.ga-toolbar-grow {
    flex: 1 1 320px;
    min-width: 220px;
}

.ga-toolbar-select {
    flex: 0 0 200px;
}

/* ---------- MudDataGrid ---------- */
/* Apply with Class="ga-grid" and Elevation="0" on MudDataGrid. */

.ga-grid.mud-table {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.ga-grid .mud-table-head .mud-table-cell {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ga-muted);
    background: color-mix(in srgb, var(--mud-palette-background) 60%, var(--mud-palette-surface));
    border-bottom: 1px solid var(--ga-border);
    padding: 8px 12px;
    line-height: 1.25;
    vertical-align: bottom;
    white-space: normal;   /* long titles wrap instead of widening the grid */
}

.ga-grid .mud-table-body .mud-table-cell {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ga-border);
    vertical-align: middle;
}

.ga-grid .mud-table-body .mud-table-row:last-child .mud-table-cell {
    border-bottom: none;
}

.ga-grid .mud-table-body .mud-table-row {
    transition: background-color 120ms ease;
}

.ga-grid .mud-table-body .mud-table-row:hover {
    background-color: var(--mud-palette-table-hover);
}

/* Edited rows get an accent stripe on the left instead of a full tint. */
.ga-grid .mud-table-row.ga-row-edited {
    background-color: var(--ga-row-edited);
}

.ga-grid .mud-table-row.ga-row-edited > .mud-table-cell:first-child {
    box-shadow: inset 3px 0 0 var(--mud-palette-warning);
}

/* Inline editors: quiet until hovered/focused so the grid still reads as a table. */
.ga-grid .mud-input-control {
    margin-top: 0;
}

.ga-grid .mud-input.mud-input-underline:before {
    border-bottom-color: transparent;
}

.ga-grid .mud-table-row:hover .mud-input.mud-input-underline:before {
    border-bottom-color: var(--ga-border);
}

.ga-cell-muted {
    color: var(--ga-muted);
}

/* Grid pager + filter row */
.ga-grid .mud-table-pagination {
    border-top: 1px solid var(--ga-border);
}

.ga-grid .mud-table-pagination-toolbar {
    min-height: 48px;
    padding: 0 12px;
    color: var(--ga-muted);
}

.ga-grid .mud-table-body .mud-table-row:last-child .mud-table-cell {
    border-bottom: none;
}

/* Cell helpers: add with CellClass / HeaderClass on a column. */
.ga-grid .ga-num,
.ga-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ga-grid .mud-table-body .ga-num {
    white-space: nowrap;
}

/* Inline number editors (cell edit mode) line up with the right-aligned header too. */
.ga-grid .mud-table-body .ga-num input {
    text-align: right;
}

/* Caps a header's width so its title wraps onto two lines (numeric columns with long titles). */
.ga-grid .mud-table-head .ga-col-narrow {
    max-width: 100px;
}

.ga-grid .ga-center,
.ga-center {
    text-align: center;
}

.ga-grid .mud-table-body .ga-center input {
    text-align: center;
}

/* MudDataGrid lays a header out as a flex row (title, then the sort/filter buttons), so text-align alone doesn't move
   the title. Right-aligned headers put the buttons first and the title flush right, over the numbers; centered headers
   center the title. The min-height keeps titles of non-sortable columns (no buttons) level with the others. */
.ga-grid .mud-table-head .column-header {
    min-height: 26px;
}

.ga-grid .mud-table-head .ga-num .column-header {
    flex-direction: row-reverse;
}

.ga-grid .mud-table-head .ga-num .column-header > :first-child {
    flex: 1 1 auto;
    text-align: right;
}

.ga-grid .mud-table-head .ga-center .column-header {
    justify-content: center;
}

.ga-grid .ga-nowrap,
.ga-nowrap {
    white-space: nowrap;
}

.ga-grid .ga-shrink {
    width: 1px;
    white-space: nowrap;
}

.ga-mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
    font-size: 0.85em;
}

.ga-strong {
    font-weight: 500;
}

.ga-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* Neutral / status pills */
.ga-pill--neutral {
    background: color-mix(in srgb, var(--mud-palette-text-primary) 8%, transparent);
    color: var(--mud-palette-text-secondary);
}

.ga-pill--success {
    background: color-mix(in srgb, var(--mud-palette-success) 14%, transparent);
    color: var(--mud-palette-success);
}

.ga-pill--error {
    background: color-mix(in srgb, var(--mud-palette-error) 14%, transparent);
    color: var(--mud-palette-error);
}

.ga-pill--info {
    background: color-mix(in srgb, var(--mud-palette-info) 14%, transparent);
    color: var(--mud-palette-info);
}

/* Loading skeleton (LoadingControl) */
.ga-loading-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

/* Highlighted row (e.g. progressive wins on Close Hands) */
.ga-grid .mud-table-row.ga-row-highlight {
    background-color: color-mix(in srgb, var(--mud-palette-success) 10%, transparent);
}

.ga-grid .mud-table-row.ga-row-highlight > .mud-table-cell:first-child {
    box-shadow: inset 3px 0 0 var(--mud-palette-success);
}

/* Long log text wraps instead of widening the grid */
.ga-log-message {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Key / secret display (dialogs) */
.ga-secret {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px dashed var(--ga-border);
    border-radius: var(--ga-radius-sm);
    background: color-mix(in srgb, var(--mud-palette-background) 60%, var(--mud-palette-surface));
    word-break: break-all;
}

.ga-dialog-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ---------- Tabs (Logs: History / Live) ---------- */

.ga-tabs .mud-tabs-tabbar {
    border-bottom: 1px solid var(--ga-border);
    background: transparent;
}

.ga-tabs .mud-tab {
    text-transform: none;
    font-weight: 600;
    min-height: 44px;
}

.ga-tab-panel {
    padding: 0;
}

/* ---------- Live log tail ---------- */

.ga-tail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-bottom: 1px solid var(--ga-border);
}

.ga-tail-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ga-tail {
    height: 60vh;
    min-height: 280px;
    overflow: auto;
    padding: 8px 0;
    background: #12131a;
    color: #d6d8e0;
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.45;
}

.ga-tail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    color: #8a8fa3;
    font-family: var(--mud-typography-default-family);
    text-align: center;
}

.ga-tail-line {
    display: grid;
    grid-template-columns: max-content 92px 150px minmax(0, 1fr);
    column-gap: 12px;
    padding: 2px 16px;
    border-left: 3px solid transparent;
}

.ga-tail-line:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ga-tail-time {
    color: #7f8599;
}

.ga-tail-src {
    color: #9aa6c4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ga-tail-msg {
    white-space: pre-wrap;
    word-break: break-word;
}

.ga-tail-sev {
    font-weight: 700;
}

.ga-tail-sev--trace,
.ga-tail-sev--none { color: #6f7487; }
.ga-tail-sev--debug { color: #8fb3ff; }
.ga-tail-sev--information { color: #6fd3a8; }
.ga-tail-sev--warning { color: #ffc861; }
.ga-tail-sev--error { color: #ff7a7a; }
.ga-tail-sev--critical { color: #fff; background: #c62828; padding: 0 4px; border-radius: 3px; justify-self: start; }

.ga-tail-line:has(.ga-tail-sev--warning) { border-left-color: #ffc861; }
.ga-tail-line:has(.ga-tail-sev--error),
.ga-tail-line:has(.ga-tail-sev--critical) {
    border-left-color: #ff7a7a;
    background: rgba(255, 90, 90, 0.07);
}

/* Pulsing "Live" dot */
.ga-pulse {
    animation: ga-pulse 1.6s ease-in-out infinite;
}

@keyframes ga-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
    50% { opacity: 0.45; box-shadow: 0 0 0 3px transparent; }
}

@media (max-width: 900px) {
    .ga-tail-line {
        grid-template-columns: max-content 80px minmax(0, 1fr);
    }

    .ga-tail-src {
        display: none;
    }
}

/* ---------- Status page ---------- */
/* State colors used by the Overview cards, legends and the 3D legend (the 3D scene uses the same hex values). */

.ga-status--online { --ga-state: #12B886; }
.ga-status--locked { --ga-state: #F59F00; }
.ga-status--offline { --ga-state: #E03131; }
.ga-status-table--connected { --ga-table: #1C9FE0; }
.ga-status-table--missing { --ga-table: #ADB5BD; }

.ga-status-demo-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: var(--ga-radius-sm);
    border: 1px dashed color-mix(in srgb, var(--mud-palette-info) 50%, transparent);
    background: color-mix(in srgb, var(--mud-palette-info) 8%, transparent);
    color: var(--mud-palette-text-primary);
    font-size: 0.88rem;
}

.ga-status-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ga-status-tile {
    padding: 14px 16px;
    border: 1px solid var(--ga-border);
    border-radius: var(--ga-radius);
    background: var(--mud-palette-surface);
    box-shadow: var(--ga-shadow);
}

.ga-status-tile--warning { box-shadow: inset 3px 0 0 var(--mud-palette-warning), var(--ga-shadow); }
.ga-status-tile--error { box-shadow: inset 3px 0 0 var(--mud-palette-error), var(--ga-shadow); }

.ga-status-tile-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ga-muted);
}

.ga-status-tile-value {
    margin-top: 4px;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--mud-palette-text-primary);
}

.ga-status-tile-of {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ga-muted);
}

.ga-status-panel {
    padding: 16px;
}

/* Overview: one card per server */
.ga-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.ga-status-server {
    border: 1px solid var(--ga-border);
    border-radius: var(--ga-radius);
    background: var(--mud-palette-surface);
    box-shadow: inset 0 3px 0 var(--ga-state);
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 200ms ease, opacity 200ms ease;
}

.ga-status-server-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ga-status-server-title {
    flex: 1;
    min-width: 0;
}

.ga-status-server-name {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ga-status-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ga-state);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ga-state) 18%, transparent);
}

.ga-status--online .ga-status-dot,
.ga-status--locked .ga-status-dot {
    animation: ga-status-beat 2s ease-in-out infinite;
}

@keyframes ga-status-beat {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ga-state) 22%, transparent); }
    50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ga-state) 6%, transparent); }
}

.ga-status-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 0.8rem;
    color: var(--ga-muted);
}

.ga-status-facts strong {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ga-status-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ga-status-table {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid color-mix(in srgb, var(--ga-table) 45%, transparent);
    background: color-mix(in srgb, var(--ga-table) 12%, transparent);
    color: var(--mud-palette-text-primary);
}

.ga-status-table--missing {
    border-style: dashed;
    background: transparent;
    color: var(--ga-muted);
}

.ga-status-table-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ga-table);
}

.ga-status-table--missing .ga-status-table-dot,
.ga-status-table-dot.ga-status-table--missing {
    background: transparent;
    border: 1.5px solid var(--ga-table);
    box-sizing: border-box;
}

.ga-status-seats {
    font-size: 0.7rem;
    color: var(--ga-muted);
    font-variant-numeric: tabular-nums;
}

.ga-status-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin: 16px 2px;
    font-size: 0.78rem;
    color: var(--ga-muted);
}

.ga-status-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ga-status-legend-sep {
    width: 1px;
    height: 14px;
    background: var(--ga-border);
}

.ga-status-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ga-state);
}

.ga-status-datagrid {
    border: 1px solid var(--ga-border);
    border-radius: var(--ga-radius);
    overflow: hidden;
}

.ga-status-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 16px 14px 56px;
}

.ga-status-child-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    font-size: 0.8rem;
    color: var(--ga-muted);
}

.ga-status-section {
    margin-top: 18px;
}

.ga-status-section-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ga-border);
    border-radius: var(--ga-radius-sm);
    background: color-mix(in srgb, var(--mud-palette-background) 60%, var(--mud-palette-surface));
    color: var(--mud-palette-text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ga-status-section-toggle:hover {
    background: var(--mud-palette-table-hover);
}

.ga-status-section-toggle:focus-visible {
    outline: 2px solid var(--ga-accent);
    outline-offset: 2px;
}

.ga-status-section-title {
    font-weight: 600;
}

.ga-status-section .ga-status-grid {
    margin-top: 14px;
}

/* 3D tab (the scene itself is drawn by wwwroot/js/status3d.js) */
.ga-3d {
    position: relative;
    height: max(480px, calc(100vh - 360px));
    border-radius: var(--ga-radius-sm);
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, #121a33 0%, #070910 70%);
    color: #e2e8f0;
}

.ga-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    touch-action: none;   /* let the camera handle touch drags instead of the page scrolling */
}

.ga-3d-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    padding: 24px;
    text-align: center;
    color: #cbd5e1;
}

.ga-3d-message .ga-empty-title { color: #f8fafc; }
.ga-3d-message .mud-icon-root { font-size: 2.6rem; opacity: 0.7; }

.ga-3d-message--overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 16, 0.78);
    backdrop-filter: blur(2px);
}

.ga-3d-toolbar {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.ga-3d .ga-3d-btn {
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ga-3d-hint {
    position: absolute;
    left: 50%;
    bottom: 44px;
    transform: translateX(-50%);
    font-size: 0.72rem;
    color: rgba(226, 232, 240, 0.55);
    white-space: nowrap;
    pointer-events: none;
}

.ga-3d-legend {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    font-size: 0.74rem;
    color: #cbd5e1;
    pointer-events: none;
}

.ga-3d-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* On the dark scene, use the brighter colors the 3D view draws with. */
.ga-3d .ga-status--online { --ga-state: #2EE59D; }
.ga-3d .ga-status--locked { --ga-state: #FFB547; }
.ga-3d .ga-status--offline { --ga-state: #FF5A5F; }
.ga-3d .ga-status-table--connected { --ga-table: #38BDF8; }
.ga-3d .ga-status-table--missing { --ga-table: #64748B; }

.ga-3d-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 300px;
    max-height: calc(100% - 70px);
    overflow: auto;
    padding: 14px 16px;
    border-radius: var(--ga-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 17, 32, 0.88);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    color: #e2e8f0;
}

.ga-3d-panel .ga-eyebrow { color: #a78bfa; }
.ga-3d-panel .mud-icon-button { color: #cbd5e1; }
.ga-3d-panel .ga-status-table { color: #e2e8f0; }
.ga-3d-panel .ga-status-table--missing { color: #94a3b8; }

.ga-3d-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ga-3d-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

.ga-3d-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    margin: 0 0 12px;
    font-size: 0.82rem;
}

.ga-3d-facts dt { color: #94a3b8; }
.ga-3d-facts dd { margin: 0; color: #f1f5f9; }
.ga-3d-wrap { word-break: break-all; }

@media (max-width: 900px) {
    .ga-3d-panel {
        left: 12px;
        width: auto;
        top: auto;
        bottom: 44px;
        max-height: 50%;
    }

    .ga-3d-hint { display: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .ga-page {
        padding: 20px 16px 32px;
    }

    .ga-select {
        min-width: 0;
        width: 100%;
    }
}
