/* BSV Aquarium — deep-sea terminal look: abyss blue, pale cyan text. */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #02060e;
    font-family: "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
    color: #bfe7ff;
    -webkit-user-select: none;
    user-select: none;
}

#sea {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}

.panel {
    background: rgba(2, 10, 22, 0.78);
    border: 1px solid rgba(111, 215, 255, 0.45);
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.5;
    backdrop-filter: blur(2px);
}

.hud { position: fixed; z-index: 10; }

#hud-title { top: 10px; left: 10px; max-width: 360px; }

.hud-title-row { display: flex; align-items: center; gap: 8px; }

#hud-toggle,
#guide-toggle {
    border: none;
    background: none;
    color: #8fd0f5;
    font-size: 11px;
    padding: 0 2px;
    margin-left: auto;
    cursor: pointer;
}
#hud-toggle:hover,
#guide-toggle:hover { color: #fff; background: none; }
#hud-title.collapsed .hud-sub,
#hud-title.collapsed .hud-links { display: none; }
#guide-panel.collapsed #guide-body { display: none; }
#guide-panel.collapsed .hud-subtitle-row { margin-bottom: 0; }

.hud-title {
    color: #eaf7ff;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 11px;
    white-space: nowrap;
}

.hud-sub { color: #8fd0f5; opacity: 0.9; margin-top: 2px; }
.hud-sub b { color: #ffd479; font-weight: bold; }

.hud-subtitle {
    color: #eaf7ff;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 10px;
}
.hud-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.hud-links { margin-top: 5px; display: flex; gap: 12px; }
.hud-links a, a { color: #6fd7ff; text-decoration: none; }
.hud-links a:hover, a:hover { color: #fff; text-decoration: underline; }

.badge {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 1px 6px;
    border: 1px solid #6fffb0;
    color: #6fffb0;
}
.badge.paused { border-color: #ffe066; color: #ffe066; }
.badge.demo { border-color: #d08bff; color: #d08bff; }
.badge.offline { border-color: #ff7070; color: #ff7070; }

#detail-panel { top: 10px; right: 10px; min-width: 200px; max-width: 300px; display: none; }
#detail-close {
    display: none;
    border: none;
    background: none;
    color: #8fd0f5;
    font-size: 11px;
    padding: 0 2px;
    cursor: pointer;
}
#detail-close:hover { color: #fff; background: none; }
.d-cat { font-weight: bold; }
.d-txid { display: block; margin: 2px 0; }
.d-row { color: #cfeaff; opacity: 0.85; font-size: 10px; word-break: break-word; }
.d-state { color: #8fd0f5; opacity: 0.8; font-size: 10px; margin-top: 3px; font-style: italic; }

#guide-panel { bottom: 10px; left: 10px; max-width: 270px; max-height: 38vh; overflow: hidden; }
.g-row { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.g-logtitle { color: #eaf7ff; font-weight: bold; letter-spacing: 2px; font-size: 9px; margin-top: 6px; }
.g-log { color: #8fd0f5; }
.g-glyph { color: #9fe7c0; flex: 0 0 10px; text-align: center; }
.g-bsp .g-name { color: #cfeaff; }
.d-elder { color: #ffd479; }
.d-species { color: #9fe7c0; }
.g-swatch { width: 8px; height: 8px; flex: 0 0 8px; }
.g-name { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-arch { color: #8fd0f5; opacity: 0.7; }
.g-count { color: #ffd479; }

#hud-hint {
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hint-text { color: #8fd0f5; opacity: 0.8; font-size: 10px; }

button {
    background: rgba(2, 10, 22, 0.6);
    border: 1px solid #6fd7ff;
    color: #6fd7ff;
    font-family: inherit;
    font-size: 10px;
    padding: 3px 8px;
    cursor: pointer;
}
button:hover { background: #6fd7ff; color: #02060e; }

#banner {
    position: fixed;
    top: 13%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: none;
    text-align: center;
    background: rgba(2, 10, 22, 0.85);
    border: 1px solid #6fd7ff;
    color: #eaf7ff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 10px 18px;
    text-shadow: 0 0 8px #6fd7ff;
    max-width: 90vw;
}
#banner div + div { color: #8fd0f5; font-size: 11px; margin-top: 4px; text-shadow: none; font-weight: normal; }

@media (max-width: 700px) {
    #hud-title { max-width: 62vw; }
    .hud-sub:first-of-type { display: none; }
    #guide-panel { display: none; }
    #detail-panel { top: auto; bottom: 48px; left: 10px; right: auto; max-width: 70vw; }
    #hud-hint .hint-text { display: none; }
}
