/* DRS Deathscreen
   Só fundos sólidos nos painéis: no FiveM, sombras, filtros e animações com transform ficam com um retângulo preto.
   Solid panel backgrounds only: in FiveM, shadows, filters and transform animations render a black box. */
:root {
    --panel: rgb(13, 12, 17);
    --card: rgb(22, 20, 27);
    --line: rgb(44, 36, 44);
    --line-soft: rgb(33, 29, 36);
    --white: #f6f3f5;
    --text: #dcd5da;
    --muted: #978d95;
    --faint: #62575f;
    --accent: #fb7185;
    --accent-bg: rgb(60, 22, 32);
    --ok: #4ade80;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
.screen.dead {
    --accent: #ef4444;
    --accent-bg: rgb(58, 16, 18);
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Manrope", "Segoe UI", sans-serif; }
html, body { width: 100vw; height: 100vh; overflow: hidden; background: transparent; color: var(--text); user-select: none; }
.hidden { display: none !important; }

.screen { position: fixed; inset: 0; }

/* edges darken and redden; the centre stays clear so the body is visible */
.vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 38%, rgba(60, 6, 14, 0.55) 78%, rgba(20, 0, 4, 0.85) 100%);
}
.screen.dead .vignette {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 30%, rgba(10, 4, 6, 0.7) 75%, rgba(0, 0, 0, 0.92) 100%);
}

/* ------------------------------------------------------------------ top */
.top {
    position: absolute; top: 9vh; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center;
}
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    height: 30px; padding: 0 14px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-bg); border: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
h1 { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); line-height: 1.1; }
.top p { font-size: 16px; font-weight: 600; color: var(--text); }
.top .quote { font-size: 14px; font-style: italic; font-weight: 500; color: var(--muted); }

/* ------------------------------------------------------------------ bottom panel */
.panel {
    position: absolute; left: 0; right: 0; bottom: 6vh; margin: 0 auto;
    width: min(720px, 94vw);
    display: flex; flex-direction: column; gap: 14px;
    padding: 18px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
}
.row { display: flex; gap: 14px; }

.timer { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.timer svg { width: 100%; height: 100%; }
.track { fill: none; stroke: var(--card); stroke-width: 8; }
.ring {
    fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round;
    stroke-dasharray: 326.73; stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.25s linear;
}
.timer-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 18px; text-align: center; }
.timer-text strong { font: 700 27px var(--mono); color: var(--white); }
.timer-text span { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.25; }

.monitor { position: relative; flex: 1; min-width: 0; height: 132px; border-radius: 16px; background: rgb(8, 9, 11); border: 1px solid var(--line-soft); overflow: hidden; }
.monitor canvas { display: block; width: 100%; height: 100%; }
.bpm { position: absolute; top: 10px; right: 14px; display: flex; align-items: baseline; gap: 5px; }
.bpm strong { font: 700 26px var(--mono); color: var(--accent); }
.bpm span { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.info div { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-soft); min-width: 0; }
.info dt { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.info dd { margin-top: 3px; font-size: 13.5px; font-weight: 700; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.actions { align-items: stretch; }
.action {
    position: relative; overflow: hidden;
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--line);
}
.action kbd {
    position: relative; z-index: 1;
    min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px;
    display: grid; place-items: center;
    font: 700 14px var(--mono); color: #2a0a10; background: var(--accent);
}
.action-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.action-text strong { font-size: 13.5px; font-weight: 800; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-text span { font: 600 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
.action.locked kbd { color: var(--faint); background: var(--line-soft); }
.action.locked .action-text strong { color: var(--muted); }
.action.done { border-color: rgb(40, 90, 60); }
.action.done kbd { color: #07260f; background: var(--ok); }
.hold { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent-bg); }

.ems {
    display: flex; align-items: center; gap: 8px;
    padding: 0 14px; border-radius: 14px;
    font-size: 12.5px; font-weight: 800; color: var(--text);
    background: var(--card); border: 1px solid var(--line);
    white-space: nowrap;
}
.ems .dot { background: var(--ok); animation: none; }
.ems.none .dot { background: var(--faint); }
.ems.none { color: var(--muted); }
