/* Match notifications sit immediately above the room chat. Keep the newest
   items at the bottom when a long message wraps onto several lines. */
#dispatch{
 left:2%;bottom:20%;width:min(415px,34%);display:flex;flex-direction:column;
 align-items:flex-start;max-height:52%;pointer-events:none;text-shadow:none
}
#feed,#messages{
 display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;overflow:hidden;
 max-width:100%;font:550 14px/1.38 system-ui;color:#e6f3fc
}
#messages{flex-shrink:3}
#hud #dispatch #messages #log{
 max-width:100%;max-height:none;flex:none;background:#0e2339df;border-radius:8px;font:inherit;
 color:#d5e9fa;padding:6px 10px;margin-top:5px
}
#hud #log:empty,#feed[hidden],#feed:empty{display:none}
#feed{gap:4px}
/* The first HUD layer sits over the canvas and behind the other controls.
   Reach full strength at the sides, leaving the aiming area transparent. */
#hud{isolation:isolate}
#hud #lowHealth{
 position:absolute;inset:0;pointer-events:none;opacity:0;z-index:0;
 --shade-shape:ellipse closest-side;
 background:radial-gradient(var(--shade-shape) at center,transparent 38%,rgba(11,1,7,.22) 58%,rgba(11,1,7,.69) 81%,#0b0107 98%);
 transition:opacity .28s ease-out
}
#hud:has(#scope:not([hidden])) #lowHealth{--shade-shape:circle 44vmin}
#hud.observer #lowHealth,body:is(.replay-live,.podium-live) #lowHealth{display:none}
#feed>div[data-kind=gift]{--accent:#ffcf70}
#feed>div[data-kind=rescue]{--accent:#ff8e77}
#hud #weapon.jammed{color:#ffd5be;border-color:#ff926f}
#feed>div{
 --accent:#71eed3;flex:none;position:relative;max-width:100%;overflow-wrap:anywhere;
 background:#0c2033ef;border-radius:7px;padding:6px 10px 6px 34px;
 box-shadow:inset 3px 0 var(--accent),inset 0 0 0 1px #b4dfff20
}
#feed b{font-weight:760;color:white;unicode-bidi:isolate}
#feed strong{color:#ffcf72;font-weight:750}
#feed>div::before{
 content:"";position:absolute;left:9px;top:7px;width:17px;height:17px;background:var(--accent);
 mask:var(--symbol,url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2v5m10 5h-5m-5 10v-5M2 12h5m5 0h.01M4 12a8 8 0 1 0 16 0 8 8 0 1 0-16 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")) center/contain no-repeat
}
#feed [data-kind=death]{
 --accent:#ff9e8c;--symbol:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 12a8 8 0 1 0 16 0 8 8 0 1 0-16 0M9 9l6 6m0-6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
}
#feed :is([data-kind=win],[data-kind=draw],[data-kind=lead]){
 --accent:#ffcf72;--symbol:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 4h10v6a5 5 0 0 1-10 0V4ZM7 6H3v2q0 5 5 5m9-7h4v2q0 5-5 5m-4 2v5m-5 0h10' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E")
}
#feed [data-kind=streak]{--accent:#ffcf72}
#feed>div:nth-last-child(n+4){display:none}
@media(prefers-reduced-motion:no-preference){
 @keyframes cayoEvent{from{opacity:0;transform:translateX(-9px)}}
 #feed>div:last-child{animation:cayoEvent .17s ease-out}
}
/* Leave room for the training shortcut, touch pad and centre reticle. */
@media(max-width:960px),(max-height:620px){
 #feed,#messages{font-size:12px;line-height:1.33}
 #feed>div{padding:4px 7px 4px 25px}
 #feed>div::before{left:6px;top:5px;width:14px;height:14px}
 #feed>div:nth-last-child(n+3){display:none}
}
@media(pointer:coarse) and (orientation:landscape){
 #dispatch{--reserve:57px;bottom:auto;top:calc(2% + var(--reserve));max-height:calc(78% - 114px - var(--reserve))}
 #train:not([hidden])~#dispatch{--reserve:92px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:510px){
 #dispatch{--reserve:44px}
 #train:not([hidden])~#dispatch{--reserve:76px}
 #feed>div:nth-last-child(n+2){display:none}
}
@media(orientation:portrait){
 #dispatch{--top:max(calc(18% + 45px),24%);bottom:auto;top:var(--top);max-height:calc(45% - var(--top));width:min(380px,78%)}
 #halo:not([hidden])~#dispatch{--top:max(calc(18% + 45px),calc(10% + 132px))}
}
/* When typing, make room for earlier messages. */
#dispatch:has(+#chat:not([hidden])) #feed>div:not(:last-child){display:none}
#dispatch:has(+#chat:not([hidden])) #messages{
 pointer-events:auto;touch-action:pan-y;overflow:auto;scrollbar-width:thin;
 flex-direction:column-reverse;justify-content:flex-start
}
#announcePrefs,#micPrefs{border-top:1px solid var(--border);margin-top:10px;padding-top:12px}
#announceTitle,#micTitle{color:var(--sub);font-weight:750;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
#menu #announcePrefs .toggle{min-height:45px}
#menu .voiceLine{display:flex;align-items:center;gap:10px;cursor:auto}
#menu .voiceLine label{cursor:pointer}
#menu .voiceLine input{flex:none}
#voiceSamples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:1px 0 6px 34px}
#menu :is(#hearVoice,#hearCountdown){
 display:flex;align-items:center;justify-content:center;
 gap:5px;min-height:36px;font-size:13px;padding:0 10px;border:1px solid #558385;
 border-radius:8px;color:var(--aqua);background:#133644
}
#menu #voiceSamples button:hover:enabled{background:#215366;border-color:var(--aqua)}
#menu #voiceSamples button:focus-visible{outline:2px solid #fff;outline-offset:2px}
#menu :is(#hearVoice,#hearCountdown):disabled{opacity:.5;cursor:default}
#menu :is(#hearVoice,#hearCountdown) svg{width:13px;height:13px;fill:currentColor;stroke-width:1}
@media(pointer:coarse){#menu #voiceSamples button{min-height:42px}}
#voiceStatus{color:var(--sub);font-size:12px;font-weight:550;margin-left:34px}
#voiceStatus:empty{display:none}
#arena label.arenaShuffle{
 grid-column:1/-1;min-height:44px;gap:9px;
 color:#ffe08c;background:linear-gradient(115deg,#3b4c54,#283b56 65%,#373951)
}
#arena .arenaShuffle svg{flex:none}
#arena .arenaShuffle b{flex:1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:2px 10px}
#arena .arenaShuffle small{margin:0;color:#d3e1ed}
#arena .arenaShuffle:has(:checked) small{color:#ffe08c}
/* Room voice consent is separate from match narration. */
#voiceOption{
 display:flex;align-items:center;gap:12px;padding:10px 13px;background:#112b40;
 border:1px solid #426077;border-radius:12px;letter-spacing:0;cursor:pointer
}
#voiceOption:has(:checked){background:#124454;border-color:#54d3ca}
#voiceOption:has(:focus-visible){outline:2px solid #ffdf88;outline-offset:2px}
#voiceOption b{color:#f5f9ff;font:700 14px system-ui}
#voiceOption small{display:block;margin:2px 0 0;font:500 12px/1.4 system-ui}
#voiceHint span{color:#c3dce9}
#voiceHint span+span,#voiceOption:has(:checked) #voiceHint span:first-child{display:none}
#voiceOption:has(:checked) #voiceHint span+span{display:inline}
#form #voiceOption:has(:checked){margin-bottom:0;border-radius:12px 12px 0 0;border-bottom:0}
#joinMicMode{display:none;padding:0 10px 10px;background:#124454;border:1px solid #54d3ca;border-top:0;border-radius:0 0 12px 12px;margin-bottom:13px}
#voiceOption:has(:checked)+#joinMicMode,#micMode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#micMode{margin:8px 0 0}
:is(#menu,#form) .micModes label{
 display:flex;align-items:center;justify-content:center;position:relative;margin:0;padding:4px 5px;
 border:1px solid #526e82;border-radius:8px;text-align:center;min-height:37px;overflow-wrap:anywhere;
 font:650 13px/1.3 system-ui;letter-spacing:0;color:#e2f3fc;background:#102a3c;cursor:pointer
}
:is(#menu,#form) .micModes input{position:absolute;inset:0;opacity:0;padding:0;margin:0;width:100%;height:100%;min-height:0;cursor:pointer}
:is(#menu,#form) .micModes label:has(:checked){color:#0d3636;background:#75ebd4;border-color:#75ebd4}
:is(#menu,#form) .micModes label:has(:focus-visible){outline:2px solid #ffe19c;outline-offset:1px}
:is(#menu,#form) .micModes span{color:inherit}
:is(#menu,#form) .micModes kbd{display:inline;border:1px solid currentColor;border-radius:4px;color:inherit;font:700 11px system-ui;padding:0 4px}
#menu #micState{display:block;text-align:left;color:var(--sub);font-size:12px;font-weight:550;padding-top:6px}
#menu #micState:empty,#hud[hidden]~#menu #micState,#hud.coaching~#menu #micPrefs{display:none}
#voiceOption svg,#ptt svg{
 height:24px;width:24px;color:#75ebd9;flex:none;fill:none;stroke:currentColor;
 stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round
}
#joinVoice{
 accent-color:#63edce;color-scheme:dark;flex:none;width:22px;height:22px;min-height:0;
 margin:0 0 0 auto;padding:0;cursor:pointer
}
#hud #ptt[hidden],#form label[hidden]{display:none}
#hud #ptt{
 display:grid;place-items:center;width:48px;height:48px;padding:0;left:calc(5% + 116px);bottom:calc(20% + 42px);
 border-radius:50%;border:2px solid #65ecd0c2;background:#09263de3;touch-action:none;
 user-select:none;-webkit-user-select:none;-webkit-touch-callout:none
}
#hud #mic:is(.on,.active,[aria-pressed=true]){color:#7dffe4;box-shadow:inset 0 0 0 1px #65ecd0}
#hud #ptt.talking,#hud:has(#mic.talking) #ptt,#hud #mic.talking{
 background:#75eed6;color:#0a3237;box-shadow:0 0 0 3px #65ecd050
}
#hud #ptt.talking svg,#hud:has(#mic.talking) #ptt svg{color:#0a3237}
@media(pointer:coarse){
 :is(#menu,#form) .micModes label{min-height:44px}
}
@media(orientation:portrait){
 #hud #ptt{left:calc(5% + 92px);bottom:calc(20% + 110px)}
}
@media(max-width:365px),(max-height:590px) and (max-width:750px){
 #menu :is(#hearVoice,#hearCountdown){font-size:12px;padding-inline:7px}
 #menu :is(#hearVoice,#hearCountdown) svg{display:none}
 #menu .voiceLine{gap:6px}
 #voiceStatus,#voiceSamples{margin-left:0}
}
#arena{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:0;border:0;margin:12px 0;min-width:0}
#arena legend{font-size:11px;color:#adc7d9;letter-spacing:1px;margin-bottom:6px;font-weight:750}
#arena label{display:flex;position:relative;align-items:center;gap:9px;cursor:pointer;margin:0;padding:8px;border-radius:10px;background:linear-gradient(110deg,#21545b,#162f43);color:#7ff0cd;border:1px solid #cceeff22}
#arena label:nth-of-type(2){color:#c8b5ff;background:linear-gradient(110deg,#443467,#1f2a48)}
#arena label:nth-of-type(3){color:#6fdbff;background:linear-gradient(110deg,#124e6a,#142d44)}
#arena label:nth-of-type(4){color:#ffc58a;background:linear-gradient(110deg,#67433e,#312e42)}
#arena label:has(:checked){border-color:currentColor;box-shadow:inset 0 0 0 1px currentColor}
#arena label:has(:focus-visible){outline:2px solid white}
#arena input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
#arena svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linejoin:round;stroke-linecap:round}
#arena b{color:white;font:700 13px/1.2 system-ui;letter-spacing:0;text-transform:none}
#arena small,.nameInfo{color:#b6cfde;font:500 11px/1.3 system-ui;display:block;margin:2px 0 0}
#hud #watch{bottom:5%;left:50%;transform:translateX(-50%);color:#85f4da;background:#10263bf7;border:1px solid #75f3d761;border-radius:11px;max-width:92vw;width:max-content;font-size:14px}
@media(pointer:coarse){#hud #watch{min-height:44px}}
#hud.observer :is(#vitals,#weapon,#frag,#smoke,#powers,#reloadInfo,#touch,#stance,#revive,#notice,#ouch){display:none!important}
#hud.above #cross{display:none}
#hud #sneak{left:calc(5% + 118px);bottom:20%;border-radius:15px;font-size:12px;padding:6px 10px;background:#102b46bb}
#hud #sneak[aria-pressed=true]{background:#65ecd0;color:#102b46;border-color:#bfffe9}
#hud #smoke{bottom:2%;left:calc(50% + 320px);display:flex;align-items:center;gap:5px;padding:8px 11px;color:#bce1ff;z-index:2}
#smoke:disabled{opacity:.57}
#smoke svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1279px){#hud #smoke{bottom:calc(2% + 51px);left:calc(50% + 218px)}}
@media(max-width:980px),(pointer:coarse){
 #hud #smoke{left:auto;right:15%;bottom:calc(47% + 56px);padding:7px;min-height:46px;border-radius:40px}
 #smoke kbd{display:none}
}
@media(max-width:980px) and (max-aspect-ratio:1/1){#hud #smoke{right:24%;bottom:calc(44% + 56px)}}
@media(pointer:coarse) and (orientation:landscape){
 #hud #smoke{right:calc(4% + 157px);bottom:calc(23% + 73px)}
 #load{right:calc(4% + 157px);bottom:calc(23% + 130px)}
}
@media(pointer:coarse) and (orientation:portrait){
 #hud #smoke{right:calc(4% + 65px);bottom:calc(28% + 90px)}
 #load{right:calc(3% + 83px);bottom:calc(28% + 16px)}
}
#stance{bottom:calc(3% + 55px);color:#c8ffee;background:#102b46dd;border-radius:7px;padding:3px 7px}
@media(pointer:coarse){#stance{display:none}}
@media(max-aspect-ratio:1/1){#hud #sneak{left:calc(5% + 20px);bottom:calc(20% + 115px)}}
@media(max-width:400px){#arena svg{width:21px}#arena label{gap:4px;padding:6px}}
/* One control strip for settings, room voice and chat. */
#hud #tools,#hud #train{
 color:#f2f8ff;background:linear-gradient(160deg,#153751f5,#091d31f2);
 border:1px solid #c3edff51;border-radius:13px;box-shadow:0 3px 9px #071b302e;
 text-shadow:none;align-items:center
}
#hud #tools{display:flex;gap:3px;padding:3px}
#hud #tools button,#hud #train:not([hidden]){
 display:inline-flex;align-items:center;justify-content:center;gap:8px;
 font:650 13px/1 system-ui,sans-serif;letter-spacing:.01em;white-space:nowrap
}
#hud #tools button{
 color:inherit;position:relative;height:36px;background:none;border:0;border-radius:9px;
 box-shadow:none;margin:0;padding:0 12px;transform:none
}
#hud #tools #pause{width:37px;padding:0;color:#d6ecff}
#hud #tools button+button::before{
 content:"";position:absolute;left:-2px;top:25%;height:50%;width:1px;background:#c7e7ff37
}
#hud #tools svg,#hud #tools #pause svg,#hud #train svg{
 width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;
 stroke-linecap:round;stroke-linejoin:round
}
#hud #tools #mic{min-width:97px}
#hud #mic svg{color:#b1c9dd}
#hud #mic .muted{stroke-width:2.3}
#hud #mic[aria-pressed=true] .muted{display:none}
#hud #talk svg{color:#87dfff}
#hud #tools #mic[aria-pressed=true],#hud #tools #talk[aria-expanded=true]{
 background:#1d5660;color:#8bffe3;box-shadow:none
}
#hud #mic[aria-pressed=true] svg,#hud #talk[aria-expanded=true] svg{color:inherit}
#hud #tools #mic.talking{background:#7befcd;color:#103743}
#hud #tools #mic.denied,#hud #mic.denied svg{color:#ffad9d}
#hud #tools #mic.pending,#hud #mic.pending svg{color:#ffd582}
#hud #train{
 top:calc(2% + 51px);height:34px;border-radius:10px;padding:0 9px;
 background:#102e40f3;color:#eafafa;border-color:#70dec78a
}
#hud #train svg{color:#79f1d4;width:17px;height:17px}
#hud #train kbd{
 padding:3px 5px;line-height:1;border-radius:5px;margin-left:3px;background:#7ef1d21a;
 color:#93f9df;border:1px solid #7cf1cf57;font-size:11px
}
@media(hover:hover){
 #hud #tools button:hover{background:#e0f3ff1f;filter:none}
 #hud #train:hover{background:#175065}
}
#hud #tools button:active,#hud #train:active{filter:brightness(1.24)}
#hud #tools button:focus-visible,#hud #train:focus-visible{outline:2px solid #ffda86;outline-offset:0}
@media(max-width:900px),(pointer:coarse){
 #hud #tools button span{display:none}
 #hud #tools button,#hud #tools #mic,#hud #tools #pause{width:40px;height:40px;min-width:0;padding:0}
 #hud #train{top:calc(2% + 54px);height:36px}
}
@media(max-height:610px){
 #hud #tools{padding:2px}
 #hud #tools button,#hud #tools #mic,#hud #tools #pause{height:32px}
 #hud #train{top:calc(2% + 42px);height:29px}
}
#hud #tools button span{color:inherit}
#countIn{
 top:25%;left:50%;transform:translateX(-50%);text-align:center;color:#fffacd;
 font:850 38px/1 system-ui;font-variant-numeric:tabular-nums;min-width:64px;
 padding:10px 15px;background:#0b2138ed;border:1px solid #ffe69588;border-radius:13px
}
#countIn.start{font-size:18px;color:#88ffda;border-color:#86ffdd66}
#soundLink{display:block;text-align:right;color:#94e8e1;font-size:12px;padding:5px 1px}
#feed [data-kind=swap]{
 --accent:#9fd7ff;--symbol:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8h14l-4-4m6 12H6l4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
}
/* Announcer remarks: praise, a friendly jab or the state of the race. */
#feed [data-kind=remark]{
 --accent:#9ff0dc;--symbol:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 4h6a3 3 0 0 1 3 3v4a6 6 0 0 1-12 0V7a3 3 0 0 1 3-3ZM12 17v4m-4 0h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
}
#feed [data-kind=remark][data-tone=praise]{--accent:#ffd77d}
#feed [data-kind=remark][data-tone=tease]{--accent:#ffb39e}
#feed [data-kind=remark]{font-style:italic}
#feed [data-kind=bomb]{
 --accent:#ff8a5c;--symbol:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 9a6 6 0 1 0 .01 0M14 8l2-2m0 0 1-1m-1 1 2 2m-2-2-1.5-1.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
}
/* Capture the flag: the accent follows whose flag it is; a capture takes the scoring side's colour. */
#feed [data-kind=flag]{
 --accent:#8fd8ff;--symbol:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 21V3h2v1.2C9 3 11 3.5 13 4.4s4 1.2 6 .2v10c-2 1-4 .7-6-.2S9 13.1 7 14.3V21Z'/%3E%3C/svg%3E")
}
#feed [data-kind=flag][data-side="1"]{--accent:#ffab92}
#feed [data-kind=flag][data-act=capture]{font-weight:760}
/* Hero voice lines: who said it and the words, low in the middle for a moment. */
#quipLine{
 position:fixed;left:50%;bottom:var(--quipBottom,150px);transform:translateX(-50%);z-index:5;
 max-width:min(560px,80vw);padding:5px 12px 6px;border-radius:8px;pointer-events:none;
 background:rgba(8,18,28,.5);color:#f2f6f8;font:600 14px/1.3 system-ui,sans-serif;text-align:center;
 text-shadow:0 1px 2px rgba(0,0,0,.6)
}
#hud #quipLine[hidden]{display:none}
#quipLine b{color:#ffd76b;font-weight:760;margin-right:.45em}
#quipLine span{color:inherit;font-style:italic}
#quipLine.fresh{animation:quipIn .18s ease-out}
@keyframes quipIn{from{opacity:0;transform:translate(-50%,6px)}}
/* Shown under "Švytėjimas ir lygūs kraštai" after it switched itself off. */
#postfxNote{color:var(--sub);font-size:12px;font-weight:550;margin:-4px 0 6px 34px}
#postfxNote[hidden]{display:none}
