:root{color-scheme:dark;font-family:Inter,system-ui,sans-serif;background:#091725;color:#eef8ff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 80% 0,#183f543b,transparent 55%),#091725}a{color:#a5d8ed;text-decoration:none}a:hover{color:#fff}button,select,input{font:inherit;border:1px solid #526e83;border-radius:9px;background:#142d40;color:#f0f8ff;padding:10px}button,select{cursor:pointer}button{min-height:44px;touch-action:manipulation}button:hover{background:#234c62;border-color:#91c5dc}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid #c1f17d;outline-offset:3px}[hidden]{display:none!important}
.hockey-site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 28px;border-bottom:1px solid #60859a33;background:#081521d9}.hockey-back-link,.hockey-builder-link{font-size:12px;font-weight:650}.hockey-brand{display:flex;align-items:center;gap:11px}.hockey-brand>span{display:grid;place-items:center;width:39px;height:39px;border:1px solid #5d9ab9;border-radius:11px;background:#1b3c50;color:#c7edff;font-size:25px}.hockey-brand small{font-size:8px;font-weight:800;letter-spacing:.19em;color:#84acbf}.hockey-brand h1{margin:2px 0 0;font-size:20px;line-height:1.1;letter-spacing:-.03em}.hockey-builder-link{padding:10px 13px;border:1px solid #3e596d;border-radius:9px}
main{position:relative}.scoreboard{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 25px;padding:17px 20px;background:linear-gradient(90deg,#102433,#193849,#102433);border-bottom:1px solid #5a8eaa55}.scoreboard strong{font-size:22px;letter-spacing:.01em;font-variant-numeric:tabular-nums}.scoreboard #clock{padding:6px 11px;background:#0a1e2b;border:1px solid #45657b;border-radius:7px;font-size:12px;color:#cde6f7;font-weight:750;font-variant-numeric:tabular-nums}#call{font-size:12px;color:#c8ec9b}#rink{display:block;width:100%;height:65vh;min-height:300px;touch-action:none;background:radial-gradient(ellipse,#24465e,#091725)}
#lobby,main.rad-sports-shell #lobby{position:relative;top:auto;left:auto;transform:none;width:min(820px,calc(100% - 32px));max-height:none;overflow:visible;margin:28px auto;padding:28px;border:1px solid #58809788;border-radius:21px;background:radial-gradient(ellipse at top right,#3f798e26,transparent 60%),linear-gradient(130deg,#132d3f,#0d2030);box-shadow:0 20px 60px #0003}.hockey-lobby-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}.hockey-lobby-heading small{font-size:9px;letter-spacing:.16em;color:#91c4d9;font-weight:800}.hockey-lobby-heading h2{margin:8px 0;font-size:38px;line-height:1.1;letter-spacing:-.04em}.hockey-lobby-heading p{margin:0;font-size:13px;color:#b0c8d5}.hockey-lobby-badge{padding:11px 14px;border:1px solid #6a9aaf55;border-radius:10px;color:#a6d6e6;background:#17384980;font-size:9px;font-weight:750;letter-spacing:.08em;line-height:1.7;text-align:center;white-space:nowrap}.hockey-lobby-fields{display:grid;grid-template-columns:1fr 1fr;gap:22px}.hockey-lobby-fields fieldset{margin:0;padding:16px;border:1px solid #52748a66;border-radius:13px;background:#091b2880;min-width:0}.hockey-lobby-fields legend{font-size:13px;font-weight:750;padding:0 6px;color:#dceef5}.hockey-lobby-fields legend>span{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;border:1px solid #80b9ce;font-size:10px;color:#a2dbeb;margin-right:6px}#lobby label{display:grid;gap:7px;align-items:start;margin:0 0 15px;font-size:11px;font-weight:650;color:#b8d1de}#lobby select,#lobby input[type=number]{width:100%;min-height:46px;padding:10px 11px;border:1px solid #4b6a82;border-radius:8px;background:#0e2637;color:#edf8ff;font-size:12px}#lobby label:last-child{margin-bottom:0}.hockey-field-help{font-size:10px;line-height:1.6;color:#8baabd;margin:-5px 0 17px}#hockey-period-help{margin:-4px 0 0}#lobby .hockey-ai-option{display:flex;align-items:center;gap:11px;margin:20px 0;padding:14px;border:1px solid #4f74966b;border-radius:10px;background:#15314566;cursor:pointer}.hockey-ai-option input{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:#c3ec88}.hockey-ai-option span{display:grid;gap:4px}.hockey-ai-option strong{font-size:12px;color:#d1e2ee}.hockey-ai-option small{font-size:10px;font-weight:400;color:#98b4c5;line-height:1.5}.hockey-lobby-launch{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:2px}.hockey-lobby-launch p{display:grid;gap:5px;margin:0}.hockey-lobby-launch p strong{font-size:14px;color:#e0edf4}.hockey-lobby-launch p span{font-size:10px;color:#93b2c3}#start{min-width:205px;min-height:49px;border:1px solid #c8efa5;border-radius:10px;background:#c0ec8d;color:#172d1c;font-size:13px;font-weight:850;box-shadow:0 5px 18px #acd96b18}#start:hover{background:#d6ffa7}#status{font-size:12px;color:#ffd699;line-height:1.5;margin:14px 0 0}#status:empty{display:none}
#view-hint{margin:0;padding:10px 20px;background:#0c2131;border-top:1px solid #30546a;color:#93bace;font-size:11px;letter-spacing:.015em;line-height:1.6}main .hockey-access-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:13px 20px;background:#0c2233;border-block:1px solid #345c7355}main .hockey-access-bar>button{font-size:12px;border-color:#567d94;background:#1b3d51}main .hockey-access-bar label{display:flex;align-items:center;gap:8px;font-size:10px;color:#a8c5d6}main .hockey-access-bar select{max-width:250px;min-height:42px;font-size:11px;background:#102c3e}.sport-trigger-control{display:flex;gap:7px;align-items:center}.sport-trigger-control select{min-height:42px}.hockey-trigger-status{font-size:11px;font-weight:700;color:#d2f4a6}main .hockey-access-bar .hockey-trigger-status{padding:8px 11px;border:1px solid #809c5a55;border-radius:8px;background:#1b342966}main .hockey-access-bar .xr-controls-help{color:#96bacb;font-size:10px}main .hockey-access-bar .xr-support-status{color:#b1d1de}main .hockey-access-bar .xr-enter-button{background:#1a3e40;border-color:#87bf99;color:#d5ffdd;font-size:11px}
footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 18px}footer label{font-size:12px;display:grid;gap:6px}footer select{font-size:12px;padding:9px}footer>span:first-child{font-size:12px;color:#b8cedc;line-height:1.7}#roster,#bracket{color:#9fc4d5;font-size:11px;line-height:1.7}#roster{padding:8px;background:#102c3e;border-radius:7px}#bracket{padding:0 20px}#controls-help,#match-details{margin:8px 20px;padding:14px;border:1px solid #3e5e74;border-radius:10px;background:#10283a;font-size:12px;line-height:1.6}#controls-help summary,#match-details summary,#match-controls>summary{cursor:pointer;color:#a8d7ec;font-weight:650}#controls-help p{max-width:100ch;color:#bad1df}#referee-log{max-height:180px;overflow:auto;line-height:1.8}#penalties{color:#ffd29b}main .rad-sports-menu{padding:18px;border:1px solid #729db5;border-radius:18px;background:#0c2030;color:#eaf6ff;box-shadow:0 25px 100px #0009;width:min(620px,calc(100% - 24px))}main .rad-sports-menu::backdrop{background:#04101bc9;backdrop-filter:blur(4px)}main .rad-sports-menu>button:first-child{background:#22485f;color:#e5f6ff;border-color:#608ca3;margin-bottom:12px}main .rad-sports-menu #match-controls{border:0}main .rad-sports-menu footer{gap:10px}main .rad-sports-menu footer label{display:grid;gap:7px;color:#b6d0df}main .rad-sports-menu footer button{min-height:44px}main .rad-sports-menu #controls-help,main .rad-sports-menu #match-details{margin:10px 0}main .rad-sports-menu #restart{background:#bddf99;color:#18301f;border-color:#daf7be;font-weight:750}
#touch{display:none;flex-wrap:wrap;padding:8px;gap:5px;justify-content:center}#touch button{min-width:44px;min-height:44px;touch-action:none}[data-game-camera-toggle]{border-color:#5fc0d4;color:#b3edff}[data-game-camera-mode=top-down]{background:#24576a}#center-view{border-color:#5fc0d4;color:#b3edff}
@media(max-width:640px){.hockey-site-header{padding:13px 14px;gap:12px}.hockey-brand{gap:7px}.hockey-brand>span{width:31px;height:33px;font-size:21px;border-radius:9px}.hockey-brand h1{font-size:17px}.hockey-brand small{font-size:6px}.hockey-back-link{font-size:10px}.hockey-builder-link{padding:8px;font-size:9px;max-width:95px;text-align:center}.scoreboard{gap:9px 14px;padding:12px}.scoreboard strong{font-size:18px}.scoreboard #clock{font-size:10px;padding:5px 8px}#call{font-size:10px}#lobby,main.rad-sports-shell #lobby{width:calc(100% - 24px);padding:18px;margin:18px auto;border-radius:16px}.hockey-lobby-heading{margin-bottom:21px;gap:12px}.hockey-lobby-heading h2{font-size:31px}.hockey-lobby-heading p{font-size:11px}.hockey-lobby-badge{font-size:7px;padding:9px}.hockey-lobby-fields{grid-template-columns:1fr;gap:16px}.hockey-lobby-fields fieldset{padding:13px}.hockey-lobby-fields legend{font-size:12px}#lobby select,#lobby input[type=number]{font-size:12px}.hockey-lobby-launch{flex-direction:column;align-items:stretch;gap:15px}.hockey-lobby-launch p span{font-size:10px}#start{width:100%;min-height:49px}#view-hint{padding:9px 13px;font-size:10px}main .hockey-access-bar{padding:10px 12px;gap:8px}main .hockey-access-bar>button{font-size:10px;padding:8px}main .hockey-access-bar label{display:grid;gap:5px;flex:1;min-width:135px}main .hockey-access-bar select{max-width:none;width:100%;font-size:10px}main .hockey-access-bar .hockey-trigger-status{font-size:10px;padding:8px;line-height:1.4}main .hockey-access-bar .xr-controls-help{font-size:9px}footer{padding:10px 12px;gap:8px}footer>span:first-child{font-size:11px}#rink{height:58vh}#controls-help,#match-details{margin-inline:12px;padding:12px;font-size:11px}}
/* Keep touch skating and contextual actions visible while the player watches the ice. */
@media(pointer:coarse){body{padding-bottom:calc(126px + env(safe-area-inset-bottom,0px))}#touch{position:fixed;z-index:20;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-areas:"view up . shoot pass check" "left down right poke loft .";gap:5px;padding:8px;border:1px solid #41667e;border-radius:14px;background:#091b2eef;box-shadow:0 4px 22px #0008;backdrop-filter:blur(8px)}#touch button{min-width:0;min-height:44px;padding:8px 2px;font-size:11px;font-weight:650;border-color:#58829c;background:#173c53;user-select:none;-webkit-user-select:none}#touch button:active{background:#286a7f;border-color:#b9ff38}#touch [data-key=arrowup]{grid-area:up}#touch [data-key=arrowleft]{grid-area:left}#touch [data-key=arrowdown]{grid-area:down}#touch [data-key=arrowright]{grid-area:right}#touch [data-key=" "]{grid-area:shoot;background:#366247;color:#eeffdf}#touch [data-key=e]{grid-area:pass}#touch [data-key=q]{grid-area:check}#touch [data-key=f]{grid-area:poke}#touch [data-key=shift]{grid-area:loft}main:has(#lobby:not([hidden])) #touch{display:none}#touch-toggle-camera{grid-area:view;font-size:9px;line-height:1.2;padding:4px 2px}#rink{height:55vh}footer{gap:7px;padding:8px 12px}footer>span:first-child{display:none}footer button,footer select{padding:8px;font-size:12px;min-height:44px}#roster{width:100%;font-size:10px}}
@media(pointer:coarse) and (orientation:landscape){body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}#touch{grid-template-columns:repeat(10,minmax(0,1fr));grid-template-areas:"view up left down right shoot pass check poke loft"}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Keep the rink lobby theme when shared sports controls load after this sheet. */
body:has(main.rad-sports-shell){background:radial-gradient(ellipse at 80% 0,#183f543b,transparent 55%),#091725;color:#eef8ff}
main.rad-sports-shell{border-color:#5b8ba977;background:#091b29;box-shadow:0 15px 60px #0002}
main.rad-sports-shell .scoreboard{background:linear-gradient(90deg,#102433,#193849,#102433);border-color:#5a8eaa55;color:#eef8ff}
main.rad-sports-shell #lobby select,main.rad-sports-shell #lobby input[type=number]{border-color:#4b6a82;background:#0e2637;color:#edf8ff;padding:10px 11px}
main.rad-sports-shell #start{background:#c0ec8d;color:#172d1c;border-color:#c8efa5}main.rad-sports-shell #start:hover{background:#d6ffa7}
main.rad-sports-shell #toggle-camera{border-color:#77bed5;background:#102f43e8;color:#dbf5ff;box-shadow:0 0 12px #74bde51f}
main .rad-sports-menu #match-controls{border-color:#3e5e74;background:#10283a}main .rad-sports-menu #match-controls summary{color:#a8d7ec}
main .rad-sports-menu #match-controls button,main .rad-sports-menu #match-controls select{border-color:#567d94;background:#17384e;color:#e5f6ff}
main .rad-sports-menu #match-controls #restart{background:#bddf99;color:#18301f;border-color:#daf7be}
main .rad-controller-menu .sport-trigger-control{display:grid;gap:7px;font-size:12px;color:#c6dfeb;padding:12px;border:1px solid #517989;border-radius:9px;background:#0e2837}main .rad-controller-menu .sport-trigger-control select{min-height:44px;font-size:12px;background:#15384c;color:#edfbff;border-color:#6a92a9}

/* Camera and action toggle share one wrapping toolbar anchored to the rink. */
.rad-sports-shell .rad-sports-viewport>.sports-action-utilities{position:absolute;inset:8px 8px auto;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:6px;z-index:6;}
.rad-sports-shell .sports-action-utilities>#toggle-camera{position:static;inset:auto;flex:0 0 44px;width:44px;height:44px;margin:0;padding:8px;box-sizing:border-box;border-radius:9px;}
.rad-sports-shell .sports-action-utilities svg{width:23px;height:23px;display:block;}

/* Lobby challenges stay in the document so they cannot cover match setup. */
.native-game-challenges.hockey-lobby-challenges{position:relative;inset:auto;width:100%;margin-top:20px;z-index:auto}
.hockey-lobby-challenges .native-challenge-panel{max-height:none}
