.hud {
    position: absolute;
    top: var(--safe-t);
    left: var(--safe-l);
    right: var(--safe-r);
    z-index: 5;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "clock vitals mine"
        "board board board";
    align-items: start;
    gap: 8px;
    pointer-events: none;
}

.clock {
    grid-area: clock;
    display: flex;
    align-items: baseline;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(9, 14, 24, .8);
}

.clock .round { color: var(--dim); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.clock .timer { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.clock .role { padding: 3px 7px; border-radius: 999px; background: rgba(57,211,245,.1); color: var(--cyan); font-size: 8px; font-weight: 850; letter-spacing: .02em; }
.clock .role.is-striker { background: rgba(255,158,61,.11); color: #ffc17f; }
.clock .timer.is-ending { color: var(--bad); }

.mine {
    grid-area: mine;
    display: flex;
    align-items: baseline;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(9, 14, 24, .8);
}

.mine span { color: var(--dim); font-size: 11px; font-weight: 700; }
.mine strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mine em { font-style: normal; color: var(--muted); font-size: 11px; font-weight: 700; }

.vitals {
    grid-area: vitals;
    justify-self: center;
    width: clamp(116px, 30vw, 190px);
    padding: 6px 10px;
    border-radius: 13px;
    background: rgba(9, 14, 24, .86);
}

.vital {
    display: grid;
    grid-template-columns: 42px 1fr 24px;
    align-items: center;
    gap: 5px;
    min-height: 13px;
    transition: opacity .18s ease;
}

.vital span,
.vital em { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 800; }
.vital em { text-align: right; font-variant-numeric: tabular-nums; }
.vital > i { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.vital > i > b { display: block; width: 100%; height: 100%; border-radius: inherit; background: #62e6a7; transform-origin: left center; transition: transform .14s linear; }
.vital:last-child > i > b { background: var(--cyan); }
#shieldVital > i > b { background: #75aaff; }
.vital.is-inactive { opacity: .34; }

.board {
    grid-area: board;
    justify-self: start;
    width: 158px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.board li {
    display: grid;
    grid-template-columns: 6px 1fr auto;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    opacity: .78;
}

.board li.is-me { background: rgba(255, 255, 255, .08); opacity: 1; }
.board li.is-ally:not(.is-me) { background: rgba(57,211,245,.035); opacity: .92; }
.board li.is-down { opacity: .34; }
.board .dot { width: 6px; height: 6px; border-radius: 50%; }
.board .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.board .who i { font-style: normal; color: var(--dim); font-size: 10px; font-weight: 700; }
.board .num { font-variant-numeric: tabular-nums; font-weight: 700; }

.minimap {
    position: absolute;
    right: var(--safe-r);
    bottom: var(--stage-bottom);
    z-index: 5;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(7, 11, 20, .5);
    opacity: .82;
    pointer-events: none;
}

.pause-button { right: var(--safe-r); top: calc(var(--safe-t) + 50px); }

.feed {
    position: absolute;
    left: var(--safe-l);
    top: calc(var(--safe-t) + 140px);
    z-index: 4;
    width: min(230px, 58vw);
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.feed div {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}

.feed b { color: var(--text); font-weight: 800; }

.event-toast {
    position: absolute;
    left: 50%;
    top: calc(var(--safe-t) + 54px);
    z-index: 6;
    transform: translateX(-50%);
    max-width: 82vw;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(9, 14, 24, .86);
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    pointer-events: none;
    animation: rise .22s ease;
}

.event-toast.is-capture { color: var(--lime); }
.event-toast.is-cut { color: var(--cyan); }
.event-toast.is-danger { color: var(--bad); }

.coach {
    position: absolute;
    left: 50%;
    bottom: var(--coach-bottom);
    z-index: 6;
    transform: translateX(-50%);
    width: min(330px, 88vw);
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(11, 17, 28, .9);
    text-align: center;
    pointer-events: none;
    animation: rise .3s ease;
}

.coach b { display: block; font-size: 14px; font-weight: 800; }
.coach span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.coach-step { display: flex; justify-content: center; gap: 5px; margin-top: 9px; }
.coach-step i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.coach-step i.is-on { background: var(--action); }

@media (max-width: 430px) {
    .clock,
    .mine { padding: 0 10px; }
    .mine span,
    .mine em { display: none; }
    .vitals { width: 116px; padding-inline: 7px; }
    .vital { grid-template-columns: 36px 1fr 20px; gap: 3px; }
    .feed { top: calc(var(--safe-t) + 124px); width: min(205px, 56vw); }
    .event-toast { top: calc(var(--safe-t) + 50px); }
}
