*{box-sizing:border-box}html,body{margin:0;background:#03121e;color:var(--rosa-text);font-family:var(--rosa-font-interface)}body{background:linear-gradient(#03121e88,#03121ed9),url('assets/arena.png') center/cover fixed}#hockey-app{min-height:100dvh;padding:10px max(12px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-bottom));}.ah-header{position:relative;border:1px solid var(--rosa-gold);border-radius:14px;background:var(--rosa-menu-fill);box-shadow:inset 0 0 0 3px #d7a64b22,0 8px 25px #0007}.ah-header::after,.ah-panel::after,.ah-dock::after{content:'';position:absolute;inset:-1px;border:0 solid transparent;border-image:url('../../assets/mahjong-reference/filigree-frame.webp') 115 / 28px / 0 stretch;pointer-events:none}.ah-header .rosa-brand img{width:146px;height:auto}.ah-header .rosa-art-icon{width:27px;height:27px}.ah-header .rosa-control-icon{width:28px;height:28px}.ah-header .rosa-control-icon img{width:100%;height:100%}.ah-header-actions button{width:44px;height:44px;padding:8px}.ah-header-actions button>span:last-child{display:none}.ah-layout{display:grid;grid-template-columns:190px minmax(0,1fr) 165px;gap:16px;max-width:1900px;margin:12px auto 0}.ah-panel,.ah-dock{position:relative;background:var(--rosa-menu-fill);border:1px solid var(--rosa-gold);border-radius:15px;padding:18px;box-shadow:inset 0 0 0 3px #d7a64b22,0 8px 24px #0008}.ah-side{align-self:start;margin-top:83px}.ah-side h2{font-size:16px;color:var(--rosa-gold-light);margin:0 0 16px}.ah-side button{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:52px;width:100%;padding:10px;margin:9px 0;font-size:13px}.ah-side button[aria-pressed=true]{background:var(--rosa-primary-fill);color:var(--rosa-bg)}.ah-side label{display:grid;gap:8px;font-size:12px;margin:20px 0}.ah-side select,.ah-modal select{max-width:100%;width:100%;min-height:44px;border:1px solid #b79350;background:#071b2b;color:#ffe2a0;border-radius:8px;padding:8px;font:inherit}.ah-side .rosa-art-icon{width:26px;height:26px}.ah-side p{font-size:12px;line-height:1.6;color:var(--rosa-text-muted)}.ah-center{min-width:0}.ah-scoreboard{display:flex;align-items:center;justify-content:center;gap:24px;height:76px;padding:5px 12px;background:var(--rosa-menu-fill);border:1px solid #d7a64b77;border-radius:14px;max-width:520px;margin:0 auto 10px;box-shadow:0 5px 18px #0008}.ah-score{display:flex;flex-direction:column;text-align:center;min-width:65px}.ah-score b{font:750 40px/1 var(--rosa-font-numbers);color:#8dd5ff;text-shadow:0 2px #052e53,0 0 14px #28b8fa55}.ah-score.red b{color:#ff8998;text-shadow:0 2px #5d1422,0 0 14px #f82c5655}.ah-score span{font-size:11px;margin-top:3px}.ah-scoreboard>div:nth-child(2){display:grid;gap:5px;text-align:center}.ah-scoreboard small{font-size:10px;color:#c8d4da}.ah-scoreboard strong{font:700 16px var(--rosa-font-numbers);color:var(--rosa-gold-light)}.ah-stage{position:relative;height:max(440px,calc(100dvh - 270px));max-height:1100px;border-radius:18px;background:radial-gradient(ellipse,#173c5c33,#03121e77);overflow:hidden;box-shadow:inset 0 0 0 1px #d7a64b33}.ah-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;outline:0}.ah-stage canvas:focus-visible{outline:3px solid #27b6e6;outline-offset:-4px}.ah-announcement{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);max-width:90%;padding:16px 26px;border-radius:12px;border:1px solid #ffe2a0;background:#03121ee8;text-align:center;color:#ffe2a0;font-size:clamp(20px,2.4vw,36px);font-weight:800;pointer-events:none;text-shadow:0 2px #000;box-shadow:0 8px 25px #0008}.ah-announcement[hidden]{display:none}.ah-dock{display:flex;align-items:center;gap:10px;padding:10px 14px;margin-top:10px}.ah-dock button{min-height:48px;padding:10px 17px;display:flex;align-items:center;gap:7px}.ah-dock .rosa-art-icon{width:24px;height:24px}.ah-dock p{margin:0;font-size:11px;line-height:1.5;color:#c7d1d8}.ah-mobile{display:none!important}.ah-save{margin:9px;text-align:center;color:#aebfc9;font-size:11px}.ah-modal{width:min(470px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;background:transparent;color:var(--rosa-text);overflow:auto}.ah-modal::backdrop{background:#020a15bb;backdrop-filter:blur(7px)}.ah-modal h2{font-size:24px;color:var(--rosa-gold-light);margin:6px 42px 20px 0}.ah-dismiss{float:right;min-width:44px;min-height:44px}.ah-modal-body{font-size:14px;line-height:1.7}.ah-modal label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.ah-modal input[type=checkbox]{width:25px;height:25px;accent-color:#d7a64b}.ah-modal select{width:55%}.ah-modal .ah-confirm{display:flex;gap:9px;flex-wrap:wrap}.ah-modal .ah-confirm button{padding:10px;min-height:44px}.ah-stats{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #d7a64b33}.ah-kicker{letter-spacing:2px;color:#cfb67c;font-size:10px}.ah-loading{display:grid;place-items:center;min-height:80dvh;color:#ffe2a0}.ah-canvas-note{position:absolute;left:10px;bottom:10px;color:#c6d4df;font-size:10px;pointer-events:none}.ah-modal [data-mode]{display:block;width:100%;margin:8px 0;padding:12px;min-height:48px}.ah-modal .ah-panel{padding:24px}.ah-header nav .rosa-button{font-size:12px}.ah-header-actions .rosa-button{min-width:44px}.ah-header nav{display:flex}.ah-mobile-tools{display:none}
@media(max-width:1100px){.ah-layout{grid-template-columns:minmax(0,1fr);max-width:1000px}.ah-side{display:none}.ah-mobile{display:flex!important}.ah-mobile-tools{display:flex;gap:6px;justify-content:center}.ah-stage{height:max(400px,calc(100dvh - 270px))}.ah-header .rosa-brand img{width:120px}}
@media(max-width:600px){#hockey-app{padding:6px max(6px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-bottom))}.ah-header{display:grid!important;grid-template-columns:96px minmax(0,1fr) auto;gap:4px!important;flex-wrap:nowrap!important;padding:5px 7px!important}.ah-header .rosa-brand img{width:94px}.ah-header nav{justify-content:center;min-width:0}.ah-header nav [data-ah=home]{display:none}.ah-header nav .rosa-button{min-width:36px;min-height:44px;padding:5px;max-width:48px}.ah-header nav .rosa-button span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ah-header-actions{gap:4px!important}.ah-header-actions .rosa-button{width:40px;padding:6px;min-width:40px}.ah-header .rosa-control-icon{width:24px;height:24px}.ah-layout{margin-top:7px;gap:7px}.ah-scoreboard{height:58px;gap:16px;margin-bottom:6px}.ah-score b{font-size:31px}.ah-score span{font-size:10px}.ah-scoreboard strong{font-size:13px}.ah-scoreboard small{font-size:9px}.ah-stage{height:max(330px,calc(100dvh - 235px));border-radius:12px}.ah-dock{flex-wrap:wrap;padding:7px;gap:6px}.ah-dock button{flex:1;justify-content:center;min-height:44px;padding:8px 6px;font-size:12px}.ah-dock p{flex-basis:100%;font-size:10px}.ah-save{margin:6px;font-size:10px}.ah-mobile-tools{display:none}.ah-announcement{font-size:22px;padding:12px 16px}.ah-dock .rosa-art-icon{width:21px;height:21px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.ah-header-actions .rosa-control-icon>span{display:block;font-size:28px;line-height:1;}
@media(max-width:600px){#hockey-app .ah-header nav [data-ah=home]{display:none;}#hockey-app .ah-header{min-height:60px;}#hockey-app .ah-stage{height:max(260px,calc(100dvh - 270px));}.ah-dock p{display:none;}.ah-dock{flex-wrap:nowrap;}.ah-dock>button,.ah-dock>.ah-mobile{flex:1;min-width:0;}.ah-dock>.ah-mobile>button{width:100%;}.ah-dock button{font-size:11px;}.ah-dock .rosa-art-icon{display:none;}.ah-dock [data-ah=start]{min-width:0;}}

.ah-mode-tools{display:grid;gap:8px;margin-top:16px;}.ah-mode-tools button{display:flex;gap:9px;align-items:center;min-height:44px;padding:10px;text-align:left;}.ah-mode-tools .rosa-art-icon{width:24px;height:24px;}
@media(min-width:601px) and (max-height:650px){.ah-layout{grid-template-columns:minmax(0,1fr);margin-top:7px;max-width:1000px;}.ah-side{display:none;}.ah-mobile{display:flex!important;}.ah-header{padding:4px 10px!important;}.ah-header .rosa-brand img{width:110px;}.ah-header .rosa-header-nav .rosa-button{min-height:44px;flex-direction:row;padding:4px 8px;gap:5px;font-size:11px;}.ah-scoreboard{height:48px;margin-bottom:6px;}.ah-score b{font-size:27px;}.ah-score span{font-size:9px;}.ah-stage{height:max(160px,calc(100dvh - 215px));}.ah-dock{padding:6px 9px;margin-top:7px;}.ah-dock button{min-height:44px;padding:7px 10px;}.ah-dock p,.ah-mobile-tools,.ah-save{display:none;}}

.ah-modal input[type=range]{width:55%;min-width:0;min-height:44px;accent-color:var(--rosa-gold);}
@media(min-width:601px) and (min-height:651px){.ah-stage{height:max(400px,calc(100dvh - 315px));}}
@media(min-width:601px) and (max-width:1100px){#hockey-app .ah-header{flex-wrap:nowrap;}#hockey-app .rosa-header-nav{flex-basis:auto;order:0;}#hockey-app .ah-mobile-tools{display:none;}}

/* Art pass 2: the live 3D table and the menu share the approved sapphire/gold finish. */
body{background-image:linear-gradient(#03121e30,#03121e99),url('assets/arena.png')}
#hockey-app .ah-layout{grid-template-columns:clamp(180px,15vw,245px) minmax(0,1fr) clamp(165px,14vw,230px);gap:12px;max-width:2200px;margin-top:8px}
#hockey-app .ah-header{display:flex;align-items:center;padding:6px 18px;min-height:72px;box-shadow:inset 0 1px #fff0bb,inset 0 -3px #6c461f,0 3px #d7a64b55,0 8px 22px #0008;background:linear-gradient(110deg,#020e19,#08273d 48%,#020e19)}
#hockey-app .rosa-header-nav{flex:0 1 auto;gap:0;margin-left:22px}
#hockey-app .rosa-header-nav [data-ah=title]{display:none}
.ah-wordmark{flex:1;min-width:0;text-align:center;padding:0 12px;}
.ah-wordmark strong{display:block;font:700 clamp(22px,2.7vw,43px)/1.1 var(--rosa-font-display);letter-spacing:2px;background:linear-gradient(#fff2c0 16%,#eeb957 40%,#fff3bd 49%,#b66d1d 74%,#f7d88b);background-clip:text;color:transparent;filter:drop-shadow(0 2px 1px #160c02)}
.ah-wordmark small{display:block;font-size:9px;letter-spacing:4px;color:var(--rosa-gold-light);margin-top:3px}
#hockey-app .ah-header-actions{margin-left:0;gap:12px}
#hockey-app .ah-side{margin-top:112px;padding:28px 15px 18px;border-radius:28px;border:3px solid #d8a141;background:linear-gradient(110deg,#02101d,#08273d 50%,#020d19);box-shadow:inset 0 0 0 2px #241604,inset 0 0 0 4px #e8c77a88,inset 0 0 25px #000b,0 0 0 2px #573a13,0 0 0 4px #f2d99b88,0 12px 24px #000a}
#hockey-app .ah-side::before{content:'';position:absolute;z-index:1;width:90px;height:90px;top:-60px;left:50%;transform:translateX(-50%);background:url('../../games/monopoly/tokens/dew.webp') center/contain no-repeat;filter:drop-shadow(0 3px 5px #000)}
#hockey-app .ah-side::after{inset:-4px;border-image-width:34px;opacity:.95}
#hockey-app .ah-side h2{text-align:center;font:700 clamp(18px,1.55vw,24px) var(--rosa-font-display);color:var(--rosa-gold-light);text-shadow:0 2px #331e05;margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid #d7a64b66}
#hockey-app .ah-side button{position:relative;min-height:68px;padding:12px 9px;gap:10px;margin:12px 0;border:1px solid #ebc779;border-radius:15px;background:linear-gradient(135deg,#0b3657 0%,#031523 40%,#010b15 70%,#0b2d47);box-shadow:inset 0 1px 2px #c0e6ff88,inset 0 -3px 3px #000,0 2px 0 #6b430d,0 0 0 2px #010c18,0 0 0 3px #d7a64b55,0 5px 10px #0008;font-size:clamp(13px,1.1vw,17px);font-weight:600;color:var(--rosa-ivory)}
#hockey-app .ah-side button .rosa-art-icon{flex:none;width:35px;height:35px;filter:drop-shadow(0 2px 3px #000)}
#hockey-app .ah-side button[aria-pressed=true]{background:linear-gradient(135deg,#064e87,#041a30 60%,#064271);color:#fff5cb;border-color:#a6e7ff;box-shadow:inset 0 0 0 1px #fff9,0 0 0 2px #0b7cce,0 0 12px #188fe7bb,0 5px 12px #0009}
#hockey-app .ah-side button:hover:not(:disabled){filter:brightness(1.17);box-shadow:inset 0 1px #fff9,0 0 0 2px #e0b45a77,0 0 18px #cda24966}
#hockey-app .ah-side label{margin:24px 0 12px;font-size:13px;gap:8px;padding-top:12px;border-top:1px solid #d7a64b77}
#hockey-app .ah-side select{border-radius:10px;box-shadow:inset 0 2px 5px #0009;border-color:#e1ba6c}
#hockey-app .ah-side:first-child .ah-kicker,#hockey-app .ah-side:first-child [data-label=controls]{display:none}
#hockey-app .ah-side [data-ah=online]{font-size:11px;min-height:42px;padding:8px;margin-top:18px}
#hockey-app .ah-side [data-ah=stats],#hockey-app .ah-side [data-ah=full]{min-height:45px;font-size:12px;margin:10px 0;padding:8px}
#hockey-app .ah-side [data-ah=stats] .rosa-art-icon,#hockey-app .ah-side [data-ah=full] .rosa-art-icon{width:25px;height:25px}
#hockey-app .ah-side:last-child .ah-kicker,#hockey-app .ah-side:last-child #ah-hits{text-align:center;margin:14px 0 0;font-size:11px}
#hockey-app .ah-scoreboard{position:relative;height:76px;max-width:390px;margin-bottom:0;border:3px solid #e3b457;border-radius:12px 12px 24px 24px;background:linear-gradient(100deg,#041a42,#020b15 45%,#260616);box-shadow:inset 0 0 0 2px #38240e,inset 0 0 0 3px #ffe2a077,0 0 0 1px #644212,0 6px 18px #000b;gap:24px}
#hockey-app .ah-score b{font-size:45px;color:#c2edff;text-shadow:0 2px #054f8d,0 0 9px #079aff,0 0 24px #045ee8}
#hockey-app .ah-score.red b{color:#ffe5de;text-shadow:0 2px #8e0e20,0 0 9px #ff092f,0 0 24px #f0001d}
#hockey-app .ah-stage{background:radial-gradient(ellipse at 50% 80%,#4fb6ef12,transparent 70%);border-radius:0;box-shadow:none;overflow:hidden}
#hockey-app .ah-stage canvas:focus-visible{outline:1px solid #d7a64b99;outline-offset:-2px;border-radius:18px}
#hockey-app .ah-announcement{top:38%;font:700 clamp(18px,2vw,29px) var(--rosa-font-display);padding:12px 26px;border:2px solid #e7bd6c;box-shadow:inset 0 0 0 2px #503814,0 6px 25px #0009;background:linear-gradient(#08273df5,#020b16f5)}
#hockey-app .ah-dock{margin-top:0;min-height:66px;border:2px solid #e2b25b;background:linear-gradient(#071d30,#020c17);box-shadow:inset 0 0 0 2px #573810,0 0 0 1px #ffda8b66,0 8px 20px #0009;border-radius:18px}
#hockey-app .ah-dock button{border-radius:14px;box-shadow:inset 0 1px #fff5,0 3px 0 #6b4519,0 4px 7px #0008}
#hockey-app .ah-dock [data-ah=start]{min-width:170px;border-color:#ffdfa0;background:var(--rosa-primary-fill);color:#1c1407;font-size:16px;font-weight:750}
#hockey-app .ah-modal .ah-panel{border:2px solid #e3b967;box-shadow:inset 0 0 0 3px #63421c,inset 0 0 0 4px #e9cd8a55,0 18px 50px #000b;background:var(--rosa-menu-fill)}
@media(min-width:1101px) and (min-height:651px){#hockey-app .ah-stage{height:calc(100dvh - 252px);max-height:1250px;min-height:360px}}
@media(min-width:1101px) and (max-height:800px){#hockey-app .ah-side{padding:24px 12px 12px;margin-top:100px}#hockey-app .ah-side h2{margin-bottom:12px;padding-bottom:8px}#hockey-app .ah-side button{min-height:55px;margin:9px 0;font-size:12px}#hockey-app .ah-side button .rosa-art-icon{width:29px;height:29px}#hockey-app .ah-side label{margin-top:16px}#hockey-app .ah-side [data-ah=stats],#hockey-app .ah-side [data-ah=full]{min-height:40px;font-size:11px}}
@media(max-width:1100px){#hockey-app .ah-layout{grid-template-columns:minmax(0,1fr)}#hockey-app .ah-wordmark strong{font-size:25px}#hockey-app .rosa-header-nav{margin-left:8px}#hockey-app .ah-stage{height:calc(100dvh - 260px);min-height:260px}#hockey-app .ah-side{display:none}}
@media(max-width:600px){#hockey-app .ah-header{padding:5px 7px;min-height:60px}#hockey-app .ah-wordmark{padding:0 5px}#hockey-app .ah-wordmark strong{font-size:15px;letter-spacing:.6px}#hockey-app .ah-wordmark small{font-size:7px;letter-spacing:1px}#hockey-app .rosa-header-nav{display:none}#hockey-app .ah-header-actions{gap:4px}#hockey-app .ah-scoreboard{height:60px;max-width:300px;gap:16px;margin-bottom:6px}#hockey-app .ah-score b{font-size:31px}#hockey-app .ah-stage{height:calc(100dvh - 263px);min-height:250px}#hockey-app .ah-dock{min-height:54px;padding:7px;gap:6px}#hockey-app .ah-dock [data-ah=start]{min-width:0;font-size:12px}#hockey-app .ah-dock button{font-size:11px}#hockey-app .ah-announcement{top:43%;font-size:18px;padding:10px 15px}}
@media(min-width:601px) and (max-height:650px){#hockey-app .ah-stage{height:calc(100dvh - 218px);min-height:160px}#hockey-app .ah-scoreboard{height:48px}#hockey-app .ah-score b{font-size:27px}#hockey-app .ah-wordmark strong{font-size:22px}#hockey-app .ah-wordmark small{display:none}#hockey-app .ah-dock{min-height:54px}#hockey-app .ah-save{display:none}}
.ah-tool-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:linear-gradient(145deg,#153a52,#010c16 65%);border:1px solid #d7a64b;box-shadow:inset 0 1px #fff6,0 3px 5px #0009;color:var(--rosa-gold-light)}.ah-tool-icon svg{width:27px;height:27px;fill:currentColor;filter:drop-shadow(0 2px 0 #91601c)}.ah-tool-icon .ah-icon-cut{fill:#062039}.ah-tool-icon .ah-icon-stroke{fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}
@media(max-width:600px){.ah-dock .ah-tool-icon{display:none}}
/* Allocate the remaining viewport to the arena, rather than adding fixed heights. */
#hockey-app{height:100dvh;min-height:0;display:flex;flex-direction:column}
#hockey-app>.ah-header{flex:none}
#hockey-app>.ah-layout{flex:1;width:100%;min-height:0}
#hockey-app .ah-center{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;min-height:0}
#hockey-app .ah-center .ah-stage{height:auto;min-height:0;max-height:none}
#hockey-app .ah-scoreboard{width:min(100%,390px)}
@media(max-width:600px){#hockey-app .ah-scoreboard{width:min(100%,300px)}}
#hockey-app .ah-modal [data-mode],#hockey-app .ah-mode-tools button{display:flex;align-items:center;gap:14px;padding:10px 14px;border-color:#e2b967;border-radius:13px;background:linear-gradient(135deg,#0b3657,#031523 45%,#010b15 75%,#0b2d47);box-shadow:inset 0 1px #c0e6ff66,inset 0 -2px #000,0 3px 0 #664210}
#hockey-app .ah-modal [data-mode][aria-pressed=true]{border-color:#a6e7ff;box-shadow:inset 0 0 0 1px #fff6,0 0 0 2px #0b7cce,0 0 12px #188fe788;background:linear-gradient(135deg,#064e87,#041a30 70%)}
#hockey-app .ah-modal [data-mode] .rosa-art-icon{width:35px;height:35px}
#hockey-app .ah-mode-tools .rosa-art-icon{width:30px;height:30px}
/* Reference finishing: a separate transparent crest and a bevelled score cartouche. */
#hockey-app .ah-side::before{width:min(220px,110%);height:94px;top:-65px;background-image:url('assets/dew-crest-art4.png');filter:drop-shadow(0 3px 4px #000a)}
#hockey-app .ah-scoreboard{border:0;border-radius:0;background:transparent url('assets/score-frame-art4.svg') center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 5px 7px #000a);padding:8px 20px}
#hockey-app .ah-dock [data-ah=start]{position:relative;min-width:190px;padding-inline:24px;border:2px solid #e9bc64;background:linear-gradient(#0a3657 0%,#031a30 36%,#010c18 68%,#103c59);box-shadow:inset 0 1px 2px #d9edff99,inset 0 -2px #03101c,0 0 0 2px #59370e,0 0 0 3px #f9d38366,0 4px 12px #000c;color:var(--rosa-gold-light);font-family:var(--rosa-font-display);font-size:clamp(17px,1.5vw,22px);border-radius:25px;text-shadow:0 2px #281702}
#hockey-app .ah-dock [data-ah=start]:hover{filter:brightness(1.2);box-shadow:inset 0 1px #fff9,0 0 0 2px #b57d22,0 0 16px #d7a64b66}
#hockey-app .ah-dock [data-ah=start] .rosa-art-icon{width:25px;height:25px}
@media(max-width:600px){#hockey-app .ah-dock [data-ah=start]{min-width:0;padding:8px 5px;font-size:13px;border-radius:14px;background:var(--rosa-primary-fill);color:var(--rosa-bg);text-shadow:none;font-family:var(--rosa-font-interface)}}
@media(min-width:601px){#hockey-app .ah-dock [data-ah=start]{min-width:220px;font-size:20px}#hockey-app .ah-dock [data-ah=start] [data-label]{white-space:nowrap}}
#hockey-app .ah-announcement[data-phase=ready]{top:4%;border:0;background:transparent;box-shadow:none;padding:0;font:600 14px var(--rosa-font-interface);text-shadow:0 2px 3px #000}
#hockey-app .ah-score span{margin-top:2px;line-height:1.1}
#hockey-app .ah-score span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Real match results: one modal, actual score/time, and a one-click rematch. */
#hockey-app .ah-result-modal{width:min(520px,calc(100% - 24px))}
#hockey-app .ah-result-modal h2{text-align:center;font-family:var(--rosa-font-display);margin:8px 36px 12px;font-size:27px}
#hockey-app .ah-result{text-align:center}
#hockey-app .ah-result-crest{display:block;width:200px;max-width:75%;height:auto;margin:0 auto 4px;filter:drop-shadow(0 4px 6px #000b)}
#hockey-app .ah-result-winner{font:700 clamp(22px,3vw,30px) var(--rosa-font-display);color:var(--rosa-gold-light);margin:6px 0 12px;text-shadow:0 2px #241603}
#hockey-app .ah-result-score{display:flex;align-items:center;justify-content:center;gap:25px;padding:6px 18px 16px;font:800 58px/1 var(--rosa-font-numbers);font-variant-numeric:tabular-nums}
#hockey-app .ah-result-score b:first-child{color:#b6e7ff;text-shadow:0 2px #075c9e,0 0 18px #007aff88}
#hockey-app .ah-result-score b:last-child{color:#ffcec8;text-shadow:0 2px #930c20,0 0 18px #f01b3d88}
#hockey-app .ah-result-score>span{font-size:30px;color:var(--rosa-gold)}
#hockey-app .ah-result dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 20px;padding-top:14px;border-top:1px solid #d7a64b66}
#hockey-app .ah-result dl>div{padding:9px 7px;border:1px solid #d7a64b55;border-radius:10px;background:#020e1a}
#hockey-app .ah-result dt{font-size:12px;color:var(--rosa-text-muted);line-height:1.3}
#hockey-app .ah-result dd{margin:6px 0 0;font-size:16px;font-weight:700;line-height:1.35;color:var(--rosa-gold-light);font-variant-numeric:tabular-nums}
#hockey-app .ah-result-actions{display:grid;gap:10px}
#hockey-app .ah-result-actions button{display:flex;justify-content:center;align-items:center;gap:10px;min-height:48px;padding:10px 16px}
#hockey-app .ah-result-actions .rosa-art-icon{width:28px;height:28px}
#hockey-app .ah-result-actions .rosa-button--primary{background:var(--rosa-primary-fill);color:var(--rosa-bg);border-color:var(--rosa-gold-light);box-shadow:inset 0 1px #fff8,0 3px 0 #694616}
@media(max-width:600px){#hockey-app .ah-result-modal .ah-panel{padding:16px}#hockey-app .ah-result-modal h2{font-size:22px;margin-top:3px}#hockey-app .ah-result-crest{width:150px}#hockey-app .ah-result-winner{font-size:23px}#hockey-app .ah-result-score{font-size:48px}#hockey-app .ah-result dd{font-size:14px}}
@media(max-height:650px){#hockey-app .ah-result-modal .ah-panel{padding:14px}#hockey-app .ah-result-modal h2{font-size:21px;margin:4px 34px 7px}#hockey-app .ah-result-crest{width:100px}#hockey-app .ah-result-winner{font-size:20px;margin:3px 0 8px}#hockey-app .ah-result-score{font-size:40px;padding:0 8px 10px}#hockey-app .ah-result dl{padding-top:8px;gap:6px;margin-bottom:12px}#hockey-app .ah-result dl>div{padding:7px}#hockey-app .ah-result dd{font-size:13px;margin-top:4px}#hockey-app .ah-result dt{font-size:11px}}
@media(min-width:601px) and (max-height:650px){#hockey-app .ah-result-actions{grid-template-columns:1fr 1fr}#hockey-app .ah-result-actions button{font-size:12px;padding:8px}}
/* A camera control beside the score keeps the playing surface clear. */
#hockey-app .ah-hud{position:relative;display:flex;align-items:center;justify-content:center;min-width:0}
#hockey-app .ah-view-toggle{position:absolute;right:0;top:50%;transform:translateY(-50%)}
#hockey-app .ah-view-toggle button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:8px;border-radius:50%;background:linear-gradient(145deg,#12334d,#020e1b);border-color:var(--rosa-gold);box-shadow:inset 0 1px #fff5,0 3px 8px #0009}
#hockey-app .ah-view-toggle .rosa-art-icon{width:27px;height:27px}
#hockey-app .ah-view-toggle [data-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#hockey-app .ah-view-current{margin:0 0 15px;color:var(--rosa-text-muted);font-size:13px}
#hockey-app .ah-view-current strong{color:var(--rosa-gold-light)}
#hockey-app .ah-view-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#hockey-app .ah-view-choice{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;min-height:130px;padding:12px 6px;border-color:#d4a95b;background:linear-gradient(145deg,#0b3452,#020d1a);font-size:12px;line-height:1.35}
#hockey-app .ah-view-choice[aria-pressed=true]{border-color:#9ce5ff;box-shadow:inset 0 0 0 1px #fff5,0 0 0 2px #0869a8,0 0 14px #0089dc55;background:linear-gradient(145deg,#124d77,#031527)}
#hockey-app .ah-view-preview{display:grid;place-items:center;width:78px;height:50px;perspective:110px}
#hockey-app .ah-view-preview i{position:relative;display:block;width:64px;height:38px;border:3px ridge #e6ba61;border-radius:5px;background:linear-gradient(#e1e9ed 48%,#c0364d 49%,#c0364d 51%,#e1e9ed 52%);box-shadow:0 5px 0 #03101e,0 6px 0 #b78c42}
#hockey-app .ah-view-preview i::before,#hockey-app .ah-view-preview i::after{content:'';position:absolute;top:11px;width:9px;height:9px;border:1px solid #ffe2a0;border-radius:50%;box-shadow:0 2px 2px #0008}
#hockey-app .ah-view-preview i::before{left:8px;background:radial-gradient(at 30% 25%,#b7e7ff,#0555be 55%,#031b45)}
#hockey-app .ah-view-preview i::after{right:8px;background:radial-gradient(at 30% 25%,#ffd1d1,#cb1232 55%,#41051a)}
#hockey-app [data-preview=perspective] i{transform:rotateX(40deg) rotateZ(-8deg)}
#hockey-app [data-preview=auto] i{transform:rotateX(22deg)}
#hockey-app .ah-view-hint,#hockey-app .ah-camera-hint{font-size:12px;line-height:1.6;color:var(--rosa-text-muted);margin:16px 0 4px}
#hockey-app .ah-modal label.ah-camera-setting{display:grid;gap:7px;grid-template-columns:minmax(0,1fr)}
#hockey-app .ah-camera-setting select{width:100%}
#hockey-app .ah-dock .ah-tool-icon{width:28px;height:28px}
#hockey-app .ah-dock .ah-tool-icon svg{width:22px;height:22px}
@media(min-width:601px){#hockey-app .ah-dock button{height:54px;min-height:54px}}
@media(max-width:600px){#hockey-app .ah-hud{padding-right:52px}#hockey-app .ah-hud .ah-scoreboard{width:100%;gap:8px}#hockey-app .ah-score{min-width:42px}#hockey-app .ah-view-choices{grid-template-columns:1fr}#hockey-app .ah-view-choice{flex-direction:row;justify-content:flex-start;gap:15px;min-height:64px;padding:9px 14px;font-size:14px;text-align:left}#hockey-app .ah-view-preview{flex:none;width:68px;height:40px}#hockey-app .ah-view-preview i{width:56px;height:32px}#hockey-app .ah-view-preview i::before,#hockey-app .ah-view-preview i::after{top:8px}}
/* The same sapphire / gold components as the local arena. */
.ah-difficulty-button{margin-top:10px;font-size:12px;min-height:42px}.ah-difficulties{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ah-difficulty{display:flex;gap:14px;text-align:left;padding:16px;min-height:112px}.ah-difficulty>span:last-child{display:grid;gap:8px;min-width:0}.ah-difficulty strong{color:var(--rosa-gold-light);font-size:18px}.ah-difficulty small{font-weight:400;line-height:1.5;color:var(--rosa-text-muted)}.ah-difficulty-rank{display:grid;place-items:center;flex:0 0 42px;width:42px;height:48px;border-radius:12px;border:1px solid var(--rosa-gold);background:linear-gradient(135deg,#254d73,#03121e);color:var(--rosa-gold-light);font-size:30px;font-family:var(--rosa-font-display,Georgia)}.ah-difficulty[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--rosa-gold-light),0 0 18px #e9b86c33}.ah-online-panel p{line-height:1.65}.ah-net-status{border:1px solid #e9b86c66;border-radius:12px;padding:14px;background:var(--rosa-menu-fill);color:var(--rosa-gold-light)}.ah-net-actions{display:flex;gap:10px;flex-wrap:wrap}.ah-net-actions>button{flex:1 1 180px}.ah-net-actions>[hidden]{display:none}.ah-announcement{max-width:min(90%,620px);text-align:center;line-height:1.4}.ah-save{min-width:0;text-wrap:balance}
@media(max-width:600px){.ah-difficulties{grid-template-columns:1fr;gap:8px}.ah-difficulty{padding:12px;min-height:86px}.ah-difficulty strong{font-size:16px}.ah-difficulty small{font-size:12px}.ah-announcement{font-size:clamp(13px,3.5vw,18px)}.ah-save{font-size:10px}}

#hockey-app .ah-side .ah-level-control{display:none}#hockey-app .ah-side [data-ah=difficulty]{font-size:12px;min-height:44px;padding:9px;margin:14px 0 6px}

#hockey-app .ah-modal.ah-difficulty-modal{width:min(680px,calc(100% - 24px))}.ah-difficulties{grid-template-columns:repeat(2,minmax(0,1fr))}.ah-difficulty{min-width:0;white-space:normal}@media(max-width:600px){.ah-difficulties{grid-template-columns:minmax(0,1fr)}}
/* Royal table pass: online is the single entry, secondary actions stay compact. */
#hockey-app .ah-online-side .ah-online-intro{font-size:13px;line-height:1.7;margin:20px 0;color:var(--rosa-ivory)}#hockey-app .ah-online-side .ah-opponent-note{font-size:11px;line-height:1.65;margin-top:16px;padding-top:14px;border-top:1px solid #d7a64b55}#hockey-app .ah-online-side [data-ah=online]{font-size:16px;min-height:66px;margin:0;padding:12px;gap:12px}#hockey-app .ah-online-side [data-ah=online] .rosa-art-icon{width:35px;height:35px;flex:none}
@media(min-width:1101px){#hockey-app .ah-header{min-height:66px}#hockey-app .ah-hud .ah-scoreboard{height:64px;margin-bottom:5px}#hockey-app .ah-dock{padding:6px 10px;margin-top:5px}#hockey-app .ah-dock button{height:46px;min-height:46px}#hockey-app .ah-save{margin:4px}#hockey-app .ah-layout{grid-template-columns:clamp(180px,14vw,230px) minmax(0,1fr) clamp(165px,13vw,220px);gap:10px}#hockey-app .ah-side:last-child [data-ah=stats],#hockey-app .ah-side:last-child [data-ah=full]{min-height:44px}#hockey-app .ah-dock>button{justify-content:center}}

#hockey-app .ah-online-side .ah-online-intro{margin:12px 0}#hockey-app .ah-online-side [data-ah=computer]{min-height:52px;margin:8px 0;padding:9px;font-size:14px;gap:10px}#hockey-app .ah-online-side [data-ah=computer][aria-pressed=true]{border-color:#9de3ff;box-shadow:inset 0 0 0 1px #fff5,0 0 10px #188fe788;background:linear-gradient(135deg,#064e87,#041a30 70%)}
/* Stability10: real network state, compact HUD and usable short-laptop composition. */
#hockey-app .ah-connection{font:500 11px/1.6 var(--rosa-font-numbers);padding-top:8px;border-top:1px solid #d7a64b44;overflow-wrap:normal}
#hockey-app .ah-connection[hidden]{display:none}
@media(min-width:1101px) and (max-height:800px){#hockey-app .ah-layout{grid-template-columns:176px minmax(0,1fr) 166px;gap:8px}#hockey-app .ah-side{padding:14px;margin-top:68px}#hockey-app .ah-side h2{margin-bottom:10px}#hockey-app .ah-online-side .ah-online-intro{margin:9px 0;line-height:1.45;font-size:12px}#hockey-app .ah-online-side .ah-opponent-note{margin-top:8px;padding-top:8px;font-size:10px}#hockey-app .ah-hud .ah-scoreboard{height:55px;margin-bottom:2px}#hockey-app .ah-dock{margin-top:3px;padding:5px 9px}#hockey-app .ah-save{margin:3px}}
.ah-history{list-style:none;margin:0;padding:0;max-height:240px;overflow:auto}.ah-history li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #d7a64b33}.ah-history li span{font-size:12px;color:var(--rosa-text-muted)}.ah-history li strong{color:var(--rosa-gold-light);font-variant-numeric:tabular-nums}.ah-history li small{font-variant-numeric:tabular-nums}.ah-achievements{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ah-achievement{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #d7a64b44;border-radius:10px;font-size:12px;line-height:1.4}.ah-achievement .rosa-art-icon{width:26px;height:26px}.ah-achievement small{display:block;font-size:10px;color:var(--rosa-text-muted);margin-top:4px}.ah-achievement[data-earned=true]{border-color:var(--rosa-gold);background:linear-gradient(135deg,#97681855,#061923)}.ah-achievement[data-earned=false] .rosa-art-icon{filter:grayscale(1);opacity:.5}@media(max-width:420px){.ah-achievements{grid-template-columns:1fr}}
#hockey-app .ah-themes{display:grid;gap:8px}.ah-themes>button{display:flex;align-items:center;gap:12px;width:100%;padding:11px;text-align:left;white-space:normal}.ah-themes small{display:block;font-size:10px;font-weight:400;line-height:1.5}.ah-theme-swatch{flex:0 0 50px;height:38px;border:3px double #e9b86c;border-radius:7px;background:linear-gradient(120deg,#14305f 20%,#edf1f2 21%,#edf1f2 79%,#14305f 80%)}.ah-theme-swatch[data-swatch=ice]{background:linear-gradient(120deg,#16497f 20%,#d9f2ff 21%,#d9f2ff 79%,#16497f 80%)}.ah-theme-swatch[data-swatch=sunset]{background:linear-gradient(120deg,#502c43 20%,#ffe6ce 21%,#ffe6ce 79%,#502c43 80%)}
.ah-daily .rosa-button{display:flex;align-items:center;gap:10px;padding:10px;min-height:44px;width:100%}.ah-daily .rosa-art-icon{width:26px;height:26px}.ah-daily p{font-size:12px;color:var(--rosa-text-muted);line-height:1.6}

.ah-account-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:11px;min-height:44px;padding:8px 12px;white-space:nowrap}@media(max-width:520px){.ah-account-link{font-size:9px;padding:6px;min-width:44px}}
