.bana-3d-hero {
    margin-bottom: 1rem;
}

.bana-3d-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 600;
}

.bana-3d-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.bana-3d-wrap {
    position: relative;
    height: min(70vh, 640px);
    min-height: 320px;
    border-radius: 10px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    overflow: hidden;
    background: linear-gradient(180deg, #060d18 0%, #0f2847 55%, #1a3a52 100%);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.6) inset,
        0 18px 48px rgba(2, 8, 23, 0.45);
}

.bana-3d-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 42%, rgba(2, 6, 23, 0.55) 100%);
}

#bana-3d-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.bana-3d-label-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.bana-3d-tag {
    pointer-events: none;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #e2e8f0;
    transform: translate(-50%, -100%);
}

.bana-3d-tag--m {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.65);
}

.bana-3d-tag--c {
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.65);
}

.bana-3d-tag--gun {
    color: #fde68a;
}

.bana-3d-tag--apex {
    font-weight: 600;
    color: #cbd5e1;
}

.bana-3d-compass {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    margin: 0;
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #bae6fd;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.35);
    pointer-events: none;
    z-index: 2;
}

.bana-3d-live {
    position: absolute;
    left: 0.65rem;
    bottom: 0.55rem;
    z-index: 2;
    margin: 0;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
    pointer-events: none;
}

.bana-3d-choices {
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
}

.bana-3d-choices__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.bana-3d-choices__lead {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.4;
}

.bana-3d-choices__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.45rem 1rem;
    margin: 0;
    font-size: 0.85rem;
}

.bana-3d-choices__list dt {
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #94a3b8);
}

.bana-3d-choices__list dd {
    margin: 0.08rem 0 0;
}

.bana-3d-hud {
    margin-top: 0.85rem;
}

.bana-3d-hud__lead {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-muted, #94a3b8);
}

.bana-3d-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
}

.bana-3d-swatch {
    display: inline-block;
    width: 0.85rem;
    height: 0.2rem;
    margin-right: 0.35rem;
    vertical-align: middle;
    border-radius: 2px;
}

.bana-3d-swatch--corr {
    background: #a78bfa;
}

.bana-3d-swatch--naive {
    background: #64748b;
}

.bana-3d-swatch--m {
    background: #22c55e;
}

.bana-3d-swatch--c {
    background: #f97316;
}

.bana-3d-swatch--m-prime {
    background: #06b6d4;
}

.bana-3d-tag--m-prime {
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.65);
}

.bana-3d-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.55rem 1rem;
    margin: 0;
    font-size: 0.85rem;
}

.bana-3d-metrics dt {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #94a3b8);
}

.bana-3d-metrics dd {
    margin: 0.1rem 0 0;
    font-variant-numeric: tabular-nums;
}

.bana-3d-metrics .muted {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
}

.bana-3d-status {
    margin-top: 0.65rem;
}

.bana-3d-guide {
    position: absolute;
    right: 0.65rem;
    top: 0.65rem;
    z-index: 4;
    width: min(22rem, calc(100% - 1.3rem));
    max-height: calc(100% - 1.3rem);
    overflow: auto;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(125, 211, 252, 0.35);
    box-shadow: 0 12px 32px rgba(2, 8, 23, 0.45);
    pointer-events: auto;
}

.bana-3d-guide__progress {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #93c5fd;
}

.bana-3d-guide__title {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    line-height: 1.35;
    color: #f1f5f9;
}

.bana-3d-guide__body {
    font-size: 0.86rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.bana-3d-guide__body p {
    margin: 0 0 0.55rem;
}

.bana-3d-guide__body p:last-child {
    margin-bottom: 0;
}

.bana-3d-guide__body a {
    color: #93c5fd;
}

.bana-3d-guide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.bana-3d-guide__actions .btn-secondary:disabled {
    opacity: 0.45;
}
