.death-tool { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); }
.death-preview-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.death-preview-header h2 { font-size: 1.1rem; }
.death-preview-header span, .death-settings p { color: var(--muted); font-size: .85rem; }
.death-preview { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #126ba9; color: #fff; container-type: size; }
.death-screen { position: absolute; inset: 0; padding: 9cqh 11cqw; color: #fff; text-align: left; font: 3.2cqh/1.4 Arial, sans-serif; }
.death-screen[hidden] { display: none; }
.death-screen p { margin: 0 0 3cqh; color: inherit; line-height: inherit; }
.death-face { display: block; font-size: 10cqh; font-weight: 300; line-height: 1; margin-bottom: 4cqh; }
.death-compact { padding: 12cqh 24cqw; background: #09608d; font-size: 2.7cqh; }
.death-classic { padding: 4cqh 4cqw; background: #181e99; font: 2.15cqh/1.3 'Courier New', monospace; overflow: auto; }
.death-classic p { margin-bottom: 2.2cqh; }
.death-code { display: flex; align-items: center; gap: 1.3cqw; font-size: 2cqh; }
.death-code .death-qr { display: block; width: 12cqh; height: 12cqh; flex: none; image-rendering: pixelated; background: #fff; }
.death-settings { display: grid; gap: 12px; margin-top: 16px; }
.death-versions { display: flex; gap: 8px; border: 0; padding: 0; margin: 0; }
.death-versions legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.death-versions label { flex: 1; cursor: pointer; }
.death-versions input { position: absolute; opacity: 0; }
.death-versions label span { display: block; padding: 9px; text-align: center; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: .88rem; font-weight: 650; }
.death-versions input:checked + span { border-color: var(--purple); color: var(--purple-dark); background: #f0ebff; }
.death-versions input:focus-visible + span { outline: 3px solid #b8a8ff; }
.death-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.death-fields label { font-size: .88rem; font-weight: 650; }
.death-fields label span { color: var(--muted); font-weight: 400; }
.death-fields input { display: block; width: 100%; margin-top: 5px; }
.death-settings .tool-button-primary { width: 100%; }
.death-settings p { margin: 0; }
.death-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #126ba9; }
.death-dialog::backdrop { background: #126ba9; }
.death-player, .death-running, .death-dialog .death-preview { position: relative; width: 100%; height: 100%; }
.death-dialog .death-preview { aspect-ratio: auto; border-radius: 0; }
.death-exit { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 10px 14px; border: 1px solid #ffffff80; border-radius: 8px; background: #172343; color: #fff; cursor: pointer; }
@media (max-width: 600px) { .death-tool { padding: 12px; } .death-versions label span { font-size: .75rem; padding: 8px 3px; } }
