/* Bloodlines — site-native look: black, gold, buried amber. */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

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

#fatal {
    display: none;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    background: rgba(6, 6, 10, 0.95);
    border: 1px solid #ff5555;
    color: #ff8888;
    padding: 14px 18px;
    font-size: 12px;
    max-width: 80vw;
}

.panel {
    background: rgba(10, 8, 5, 0.86);
    border: 1px solid #6a5c2a;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.5;
}

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

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

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

#hud-toggle {
    border: none;
    background: none;
    color: #e8c547;
    font-size: 11px;
    padding: 0 2px;
    margin-left: auto;
    cursor: pointer;
}
#hud-toggle:hover { color: #fff; background: none; }
#hud-title.collapsed .hud-sub,
#hud-title.collapsed .hud-links { display: none; }

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

.hud-sub { color: #e8c547; opacity: 0.85; margin-top: 2px; }
.hud-sub b { color: #fff; }

.hud-subtitle {
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 4px;
    font-size: 10px;
}

.hud-links { margin-top: 5px; display: flex; gap: 12px; }
.hud-links a, a { color: #e8c547; 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 #55ff55;
    color: #55ff55;
}
.badge.paused { border-color: #ffff55; color: #ffff55; }
.badge.demo { border-color: #e8c547; color: #e8c547; }
.badge.offline { border-color: #ff5555; color: #ff5555; }


/* live coins tray (top-right) */
#tray { top: 10px; right: 10px; min-width: 200px; max-width: 260px; }

/* node detail (bottom-left) */
#info-panel { left: 10px; bottom: 10px; min-width: 220px; max-width: 340px; display: none; }
.hud-subtitle-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hud-subtitle-row .hud-subtitle { margin-bottom: 0; }
#info-unpin { display: none; padding: 1px 6px; font-size: 11px; line-height: 1.3; }

.k-cat { font-weight: bold; }
.k-txid { display: block; margin: 2px 0; }
.k-row { color: #fff; opacity: 0.82; font-size: 10px; word-break: break-word; }
.k-dim { opacity: 0.5; font-size: 9px; font-style: italic; }
.tray-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #cfcfcf;
    margin-top: 2px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}
.tray-row:hover { color: #fff; }
.tray-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.tray-sats { margin-left: auto; color: #fff; opacity: 0.75; }
.tray-whale { color: #ffd700; }

#hud-hint {
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

button {
    background: #000;
    border: 1px solid #e8c547;
    color: #e8c547;
    font-family: inherit;
    font-size: 10px;
    padding: 3px 8px;
    cursor: pointer;
}
button:hover { background: #e8c547; color: #000; }

#banner {
    position: fixed;
    top: 11%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: none;
    text-align: center;
    background: rgba(10, 8, 5, 0.9);
    border: 1px solid #e8c547;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 12px 20px;
    text-shadow: 0 0 12px #e8c547;
    max-width: 90vw;
}
#banner div + div { color: #e8c547; font-size: 11px; margin-top: 4px; text-shadow: none; }

@media (max-width: 700px) {
    #hud-title { max-width: 64vw; }
    .hud-sub:nth-of-type(2) { display: none; }
    #tray { display: none; }
    #info-panel { max-width: calc(100vw - 130px); }
    .btn-label { display: none; }
    #mute-btn, #pause-btn, #save-btn {
        font-size: 16px;
        line-height: 1;
        padding: 5px 9px;
    }
    #hud-hint { bottom: 8px; right: 8px; gap: 8px; background: none; border: none; padding: 0; }
}

.dig-row { display: flex; gap: 6px; margin-top: 6px; }
#dig-input {
    flex: 1;
    background: #000;
    border: 1px solid #6a5c2a;
    color: #e8c547;
    font-family: inherit;
    font-size: 10px;
    padding: 3px 6px;
    min-width: 0;
}
#dig-input:focus { outline: none; border-color: #e8c547; }
#dig-btn { white-space: nowrap; }
