.royale{width:min(1500px,calc(100% - 48px));padding-block:22px 36px}.royale-heading{margin-bottom:20px}.royale-heading h1{font-size:30px;letter-spacing:-1px}.royale-heading p,.royale-notice{color:var(--muted);margin-top:6px}.royale-error{background:#3e202a;color:#ffd4d6;padding:12px 16px;border-radius:6px;margin-bottom:14px}
.royale-access,.royale-actions{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.royale-access{padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-bottom:16px}.royale label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.royale input{border:1px solid #42464b;background:#121619;border-radius:5px;padding:9px 12px;min-width:0}.royale-access input{width:230px}.royale-settings{padding:12px 16px;border:1px solid var(--line);border-radius:8px}.royale summary{cursor:pointer;font-size:13px}.royale-settings .royale-actions{margin-top:14px}.royale-settings #video{width:min(460px,65vw)}.royale-settings input[type=number]{width:100px}.royale-actions>span{color:var(--muted);font-size:12px;padding-bottom:10px}.royale-controls{margin-block:14px}
.royale-status{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;background:#191e22;border:1px solid #343c40;border-bottom:0;border-radius:12px 12px 0 0}.eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:2px;color:#a9b6b6;margin-bottom:4px}.eyebrow b{letter-spacing:.5px;color:#161d10;background:#c1ee7d;padding:2px 5px;margin-left:7px;border-radius:3px}.royale-status strong{display:block;font-size:21px}.royale-command{text-align:center;min-width:0}.royale-command code{color:var(--accent);font-size:19px}.royale-command small,.royale-counter small{display:block;color:#a9b6b6;font-size:11px;letter-spacing:.5px}.royale-counter{text-align:right;flex-shrink:0;font-variant-numeric:tabular-nums}
.royale-stage{display:grid;grid-template-columns:minmax(0,1fr) 255px;aspect-ratio:16/9;overflow:hidden;border:1px solid #343c40;border-radius:0 0 12px 12px;background:#10191a}.royale-arena{position:relative;overflow:hidden;min-width:0;min-height:0;background:radial-gradient(ellipse at center,#182729,#121a1c 75%)}#arena{width:100%;height:100%;min-height:0}.storm-ground{fill:#3b202c;opacity:.7}#safe-ground{fill:#142528}#safe-line{fill:none;stroke:#ec8c9c;stroke-width:3;stroke-dasharray:10 7}#grid path{fill:none;stroke:#c3e0d4;stroke-opacity:.06;stroke-width:1}
.fighter-body{stroke:#e4f2ee;stroke-width:1.5}.fighter-halo{fill:none;stroke:#c1ee7d;stroke-width:2;opacity:0}.fighter.focused .fighter-halo,.fighter.finalist .fighter-halo{opacity:.8}.fighter-shield{fill:none;stroke:#a2d3ff;stroke-width:2}.fighter-health-bg{fill:#283032}.fighter-health{fill:#c1ee7d}.fighter.dead{opacity:0}.fighter-label{fill:#f0f6f1;font-weight:600;paint-order:stroke;stroke:#122025;stroke-width:4;stroke-linejoin:round;text-anchor:middle;pointer-events:none}.fighter-label.priority{fill:#def9b8}.shot{stroke:#fff4ca;stroke-width:2}.pickup circle{fill:#222b27;stroke:#c1ee7d;stroke-width:1.5}.pickup text{fill:#c1ee7d;font-size:16px;font-weight:700;text-anchor:middle;dominant-baseline:central}
.arena-message{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:20px;pointer-events:none;text-shadow:0 2px 16px #081214}.arena-message>span{font-size:11px;letter-spacing:3px;color:#b8c9bf}.arena-message>strong{font-size:clamp(24px,3.5vw,58px);line-height:1.1;max-width:90%;overflow-wrap:anywhere}.arena-message>p{max-width:500px;color:#ccdbd4;font-size:13px}.royale.won .arena-message{background:#071612aa}.royale.won .arena-message strong{color:#d5fba2;animation:winner-arrival .5s ease-out}.arena-legend{position:absolute;bottom:10px;left:12px;right:12px;display:flex;justify-content:center;gap:15px;font-size:10px;color:#bccabe;pointer-events:none}.connection-lost{position:absolute;top:12px;left:12px;right:12px;background:#392d16;padding:10px;color:#ffe4a2;text-align:center;font-size:12px}
.royale-sidebar{display:flex;flex-direction:column;gap:18px;padding:20px 16px;background:#172023;border-left:1px solid #343c40;overflow:auto;min-height:0}.royale-sidebar h2{font-size:10px;text-transform:uppercase;letter-spacing:1.8px;color:#9cadaa;margin:0 0 10px}.royale-sidebar ol,.royale-sidebar ul{padding:0;list-style:none;margin:0}.royale-sidebar li{font-size:12px;overflow-wrap:anywhere}.royale-sidebar small{color:#a9b6b6;font-size:11px}#leaders li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid #293436}#leaders b{color:#d4efa9}#feed li{border-left:2px solid #566c66;padding:4px 0 4px 9px;margin-bottom:9px;color:#cbd6d1}#feed li.important{border-color:#c1ee7d;color:#e2f4c5}.royale-roster{flex:1;min-height:100px}#search{width:100%;font-size:12px;margin-bottom:7px}#roster{max-height:190px;overflow:auto}#roster li{display:flex;align-items:center;border-bottom:1px solid #263235}#roster button{border:0;background:transparent;text-align:left;color:#cbd6d1;padding:6px 0;font-size:11px;min-width:0}#roster .player-button{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#roster .remove{padding:6px;color:#cba3a6}#roster img{width:18px;height:18px;border-radius:50%;vertical-align:middle;margin-right:5px}.sr-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
.royale-results{margin-top:20px;padding:20px;border:1px solid var(--line);border-radius:8px}.royale-results details{margin-top:16px}.royale-results ol{font-size:13px;color:var(--muted);columns:2;padding-left:24px}.royale-results li{break-inside:avoid;margin-block:5px}.royale-results #history{columns:1;max-height:320px;overflow:auto}.royale-notice{font-size:12px}.royale.broadcast{width:100%;padding:12px}.broadcast .host-only,body:has(.broadcast)>.site-header,body:has(.broadcast)>.site-footer{display:none}.broadcast .royale-stage{height:calc(100vh - 120px);aspect-ratio:auto}.broadcast .royale-results{display:none}.broadcast .royale-notice{margin-top:7px}.broadcast .remove{display:none}
@keyframes winner-arrival{from{transform:scale(.9);opacity:.3}to{transform:scale(1);opacity:1}}
@media(max-width:800px){.royale{width:calc(100% - 24px)}.royale-stage{grid-template-columns:minmax(0,1fr) 210px;aspect-ratio:4/3}.royale-sidebar{padding:12px 10px;gap:12px}.royale-status{padding:12px;gap:10px}.royale-status strong{font-size:17px}.royale-command code{font-size:15px}.royale-status small{font-size:10px}.arena-legend{gap:8px;font-size:9px}.royale-results ol{columns:1}}
@media(max-width:540px){.royale-stage{display:flex;flex-direction:column;aspect-ratio:auto}.royale-arena{aspect-ratio:1;flex:none}.royale-sidebar{border-left:0;border-top:1px solid #343c40;display:grid;grid-template-columns:1fr 1fr;overflow:visible}.royale-roster{grid-column:1/-1}.royale-status{flex-wrap:wrap}.royale-command{order:3;flex-basis:100%;text-align:left}.royale-status>div:first-child{flex:1}.royale-access label,.royale-access input,.royale-settings #video{width:100%}.royale-settings label{width:100%}.royale-heading h1{font-size:26px}.broadcast .royale-stage{height:auto}.arena-message>strong{font-size:28px}.royale-controls{gap:8px}.royale-controls .button{padding:8px 12px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.royale *{animation:none!important;transition:none!important}}

.royale[data-phase=countdown] .arena-message,.royale[data-phase=paused] .arena-message{background:#071612b8}

.fighter.hit .fighter-body{stroke:#fff;stroke-width:4}@media(prefers-reduced-motion:reduce){.fighter.hit .fighter-body{stroke-width:1.5}}
