/* The camera's off-screen arrows sit within about 64 px of the stage's edges: the feed, the round's line and the
   aim chip keep out of that band, fixed to the screen whatever the camera does.
   The room's first minutes and a match's end: the join card of a room link, the aim prompt, the kill feed, the round's
   reason and the results card over the arena. */
.join-card h1 { margin-top: 0; }
.start-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.start-row form { margin: 0; }
.touch-note { margin: 0 0 8px; }
.touch-note[hidden] { display: none; }

.aim-chip { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); padding: 3px 12px; font-size: 0.8rem; border-radius: 999px; background: rgba(13, 16, 24, 0.78); border-color: rgba(255, 255, 255, 0.3); }
.aim-chip[hidden] { display: none; }

.kill-feed { position: absolute; right: 72px; top: max(16%, 72px); margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; max-width: 45%; }
.kill-feed li { padding: 3px 10px; border-radius: 6px; background: rgba(5, 7, 11, 0.7); color: #fff; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.round-why { position: absolute; left: 50%; top: max(22%, 72px); transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 8px; background: rgba(5, 7, 11, 0.75); color: #fff; font-size: 0.95rem; text-align: center; max-width: 90%; pointer-events: none; }
.round-why[hidden] { display: none; }

.results-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(640px, 94%); max-height: 94%; overflow: auto; box-sizing: border-box; padding: 18px 20px; border-radius: var(--radius); background: rgba(16, 19, 28, 0.96); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); z-index: 5; }
.results-card[hidden] { display: none; }
.results-close { position: absolute; right: 10px; top: 10px; }
.results-title { margin: 0 0 4px; font-size: 1.5rem; color: #ffd54f; padding-right: 36px; }
.results-you { margin: 0 0 6px; font-weight: 600; }
.results-you.win { color: var(--good); }
.results-you.loss { color: var(--bad); }
.results-ko { margin: 0 0 8px; color: var(--muted); }
.results-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 6px 0 10px; }
.results-table th, .results-table td { padding: 5px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.results-table th:first-child, .results-table td:first-child { text-align: left; }
.results-table tr.winner td.name { color: #ffd54f; font-weight: 600; }
.results-table tr.mine td.name::after { content: " (you)"; color: var(--muted); font-weight: 400; }
.results-table td.xp { white-space: nowrap; }
.results-bar { display: block; height: 5px; margin-top: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.results-bar-fill { display: block; height: 100%; background: var(--accent); }
.results-awards { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.results-awards li { padding: 5px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 0.85rem; display: flex; flex-direction: column; }
.results-awards b { color: var(--accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.results-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.results-actions .big { font-size: 1.2rem; padding: 10px 30px; }
.results-wait { margin: 8px 0 0; font-size: 0.85rem; }

@media (max-width: 600px) {
    .results-card { position: fixed; padding: 12px; max-height: 90vh; width: 94vw; }
    .results-title { font-size: 1.15rem; }
    .results-table { font-size: 0.78rem; }
    .results-table th, .results-table td { padding: 4px 3px; }
    .kill-feed li { font-size: 0.72rem; }
}
