/* Guidance lives over the real game. Only the original target receives clicks. */
:is(#guided-coach,.retained-guide-coach){position:fixed;inset:0;z-index:900;pointer-events:none}
:is(#guided-coach,.retained-guide-coach)[hidden]{display:none}
.guide-shade{position:fixed;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.guide-shade path{fill:rgba(3,11,18,.73);pointer-events:fill;touch-action:none}
.guide-ring,.guide-glow{fill:none;pointer-events:none}.guide-ring{stroke:#f3cf65;stroke-width:2}.guide-glow{stroke:#edca6466;stroke-width:8;animation:guide-breathe 1.8s ease-in-out infinite}@keyframes guide-breathe{0%,100%{opacity:.3}50%{opacity:1}}
.guide-coach{position:fixed;left:50%;transform:translateX(-50%);width:min(480px,calc(100vw - 16px));display:flex;align-items:center;gap:14px;pointer-events:auto;background:linear-gradient(115deg,#203d4c,#122735);border:1px solid #8b8058;border-radius:16px;box-shadow:0 8px 28px #0008;overflow:hidden;min-height:128px;max-height:42dvh;padding:12px 16px 10px 0}
.guide-coach-copy{flex:1;min-width:0;overflow-y:auto;max-height:calc(42dvh - 24px)}
.guide-coach-copy>small{font-size:9px;letter-spacing:.1em;color:#d6bf79}.guide-coach h2{font-family:Oswald,sans-serif;font-size:23px;line-height:1.15;margin:5px 0 7px;color:#edf2e9}.guide-coach p{font-size:13px;line-height:1.4;color:#bed0d9;margin:0}.guide-skip{font-size:11px!important;line-height:20px;min-height:32px;margin:0 auto;padding:6px 12px!important;color:#9db3be!important;display:block}.guide-coach .guide-portrait{width:84px;height:118px;align-self:flex-end}
.guide-portrait{overflow:hidden;position:relative;flex-shrink:0;mask-image:linear-gradient(#000 88%,transparent)}.guide-portrait img{position:absolute;max-width:none!important;width:252px!important;height:168px!important;top:-2px;left:0}.guide-portrait-approval img{left:-84px}.guide-portrait-happy img{left:-168px}
.guide-power{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;margin-top:7px;font-size:11px;color:#aac6c2;font-variant-numeric:tabular-nums}.guide-power b{color:#eff5e9}.guide-power strong{color:#97e3b7;font-size:13px}
.guide-next{min-height:40px;margin-top:12px;padding:8px 16px;font-size:13px;gap:8px}.guide-next svg{width:18px;height:18px}
.guide-active .modal-backdrop{height:calc(var(--app-height,100dvh) - var(--guide-space,170px));top:var(--app-top,0px);background:transparent;backdrop-filter:none}
.guide-active .modal-backdrop>.modal{max-height:100%}
.guide-active #toasts{z-index:950}
.guide-active .modal[data-dialog="beginner-hockey"] .beginner-hockey-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.guide-active .beginner-hockey-choices .btn{font-size:12px;padding:8px 4px}.guide-active .beginner-hockey-choices>article>.text-btn{font-size:10px;min-height:28px}.guide-active [data-guide-current]:focus{outline:none}.guide-active [data-guide-current] :focus-visible{outline-offset:-3px}
.card-power-preview{border:1px solid #537b70;background:#173936;border-radius:10px;padding:12px 16px;margin:14px 0;color:#b8d6cd;font-size:12px}.card-power-preview>div{display:flex;justify-content:space-between;gap:12px;margin:7px 0;font-variant-numeric:tabular-nums;font-size:19px}.card-power-preview b{color:#edf4e5}.card-power-preview strong{color:#9de9ba}.card-power-preview small{font-size:11px;color:#acc8c2}
/* The exit has one clear next step and a quiet option to explore independently. */
.modal:is([data-dialog="guide-release"],[data-dialog="guide-welcome"]){width:min(560px,calc(100vw - 24px));max-width:560px;padding:0!important;overflow:auto;border:1px solid #6b8591;border-radius:18px;background:#142b3a}
.guide-farewell header{display:flex;gap:14px;align-items:center;padding:20px 22px 0 6px;background:radial-gradient(ellipse at 10% 90%,#355e6b,#193748 70%);border-bottom:1px solid #3c5b69}.guide-farewell header>.guide-portrait{width:140px;height:198px;align-self:end}.guide-farewell header .guide-portrait img{width:420px!important;height:280px!important;left:-280px;top:0}.guide-farewell header>div:last-child{min-width:0;flex:1;padding:4px 0 20px}.guide-farewell .eyebrow{font-size:9px;letter-spacing:.1em;color:#e0c775}.guide-farewell h2{font:700 34px/1.12 Oswald,sans-serif;margin:10px 0 12px;color:#f1f4ea}.guide-farewell p{font-size:14px;line-height:1.5;color:#bdd0d8;margin:0}.guide-farewell-body{padding:22px 24px}.guide-farewell-body>p{color:#e0e9e7;margin-bottom:18px}.guide-help-card{display:flex;gap:14px;padding:16px;background:#1e3c4b;border:1px solid #527182;border-radius:12px}.guide-help-card>svg{width:30px;height:30px;flex-shrink:0;color:#e8ca72}.guide-help-card h3{font-size:17px;line-height:1.2;margin:0 0 7px;color:#f0d88e}.guide-help-card p{font-size:13px}.guide-farewell-actions{display:flex;flex-direction:column;gap:10px;margin-top:22px}.guide-farewell-actions>.btn{min-height:48px;font-size:15px}.guide-farewell-actions>.text-btn{color:#9fb9c6;font-size:12px;min-height:30px}
@media(max-width:400px){.guide-coach{gap:8px;padding-right:12px}.guide-coach h2{font-size:20px}.guide-coach p{font-size:12px}.guide-coach-copy>small{font-size:8px}.guide-farewell header{padding:12px 16px 0 0;gap:8px}.guide-farewell header>.guide-portrait{width:104px;height:162px}.guide-farewell header .guide-portrait img{width:312px!important;height:208px!important;left:-208px}.guide-farewell h2{font-size:28px}.guide-farewell p{font-size:13px}.guide-farewell-body{padding:18px 16px}.guide-farewell-actions>.btn{font-size:14px}}
@media(orientation:landscape) and (max-height:550px){.guide-coach{left:auto;right:8px;transform:none;width:min(390px,45vw);max-height:45dvh;min-height:100px;gap:8px;padding-top:9px}.guide-coach .guide-portrait{width:66px;height:94px}.guide-coach .guide-portrait img{width:198px!important;height:132px!important}.guide-coach .guide-portrait-approval img{left:-66px}.guide-coach .guide-portrait-happy img{left:-132px}.guide-coach h2{font-size:19px}.guide-coach p{font-size:12px}.guide-active .modal-backdrop{height:var(--app-height,100dvh);width:calc(100vw - min(390px,45vw) - 24px);justify-content:center;padding:8px}.guide-active .modal-backdrop>.modal{width:100%;padding:14px}.guide-farewell{display:grid;grid-template-columns:42% 58%}.modal:is([data-dialog="guide-release"],[data-dialog="guide-welcome"]){width:min(850px,calc(100vw - 24px));max-width:850px}.guide-farewell header{flex-direction:column;padding:8px 16px;gap:0;border-bottom:0;border-right:1px solid #3c5b69}.guide-farewell header>.guide-portrait{height:110px;align-self:center}.guide-farewell header>div:last-child{padding-bottom:8px}.guide-farewell h2{font-size:27px;margin:8px 0}.guide-farewell-body{padding:20px}.guide-farewell p{font-size:12px}.guide-farewell-actions{margin-top:14px}.guide-help-card{padding:12px}.guide-farewell-actions>.btn{min-height:42px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.guide-glow{animation:none;opacity:.65}}

.guide-welcome-route{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 20px}.guide-welcome-route span{padding:12px 8px;border:1px solid #46616c;background:#1b3643;border-radius:10px;color:#d9e4e5;font-size:12px;text-align:center}.guide-welcome-route b{display:block;font:500 22px/1 Oswald,sans-serif;color:#d6bd78;margin-bottom:8px}.guide-welcome-help{display:block;text-align:center;color:#90aab8;font-size:11px;line-height:1.5;margin-top:12px}.guide-welcome h2{font-size:30px}.guide-welcome .guide-farewell-body>p{font-size:13px;line-height:1.6;margin-bottom:0}@media(max-width:400px){.guide-welcome h2{font-size:24px}.guide-welcome-route{gap:6px;margin-bottom:16px}.guide-welcome-route span{font-size:11px;padding:10px 5px}}@media(orientation:landscape) and (max-height:550px){.guide-welcome h2{font-size:25px}.guide-welcome-route{margin-bottom:12px}.guide-welcome-route span{padding:9px 4px;font-size:11px}.guide-welcome-route b{font-size:18px;margin-bottom:5px}}

/* Only the rounded speech card has a background, in both orientations. */
.guide-coach{background-color:#142b3a;isolation:isolate}

/* Direction is communicated by motion, not only a faint outline. */
.guide-pointer{position:fixed;width:32px;height:32px;pointer-events:none;filter:drop-shadow(0 2px 3px #000b)}
.guide-pointer[hidden]{display:none}
.guide-pointer>span{display:block;width:100%;height:100%;animation:guide-point 1.25s ease-in-out infinite}
.guide-pointer svg{display:block;width:100%;height:100%;transform:rotate(var(--guide-arrow-angle,0deg));fill:none;stroke:#ffe08a;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
@keyframes guide-point{0%,100%{transform:translate(0,0);opacity:.8}50%{transform:translate(var(--guide-arrow-x,0px),var(--guide-arrow-y,5px));opacity:1}}
@media(prefers-reduced-motion:reduce){.guide-pointer>span{animation:none;opacity:1}}

/* Keep the face next to the speech. Results and actions occupy their own full-width row. */
.guide-coach{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:12px 12px 0;overflow:hidden}
.guide-coach-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px}
.guide-coach-heading{display:flex;align-items:flex-start;gap:12px}
.guide-coach-copy{overflow:visible;max-height:none;padding-top:3px}
.guide-coach .guide-portrait{align-self:flex-start;height:106px}
/* Keep both actions visible; the quiet action has the same air above and below. */
.guide-coach-footer{display:flex;flex:none;flex-direction:column;gap:10px;padding:10px 2px}
.guide-coach .guide-portrait-amused img{left:0;top:0;width:100%!important;height:auto!important}
.guide-progress{margin:8px 0 0;padding:10px 12px;border:1px solid #45656d;border-radius:9px;background:#102a35;font-variant-numeric:tabular-nums}
.guide-progress>header{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:12px;color:#dce9e7}
.guide-progress small{font-size:10px;font-weight:400;color:#9ab7bf;line-height:1.4}
.guide-progress .guide-power{display:flex;flex-wrap:nowrap;gap:10px;margin:8px 0 0;align-items:center;font-size:19px;line-height:1.15}
.guide-power>span>small,.guide-power>strong>small{display:block;margin-bottom:3px}
.guide-power>i{font-size:17px;font-style:normal;color:#88a4b1}
.guide-power>strong{margin-left:auto;text-align:right;font-size:20px}
.guide-power>strong>small{margin:3px 0 0}
.guide-step-gain{display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-top:1px solid #36535d;padding-top:7px;margin-top:8px;font-size:11px;color:#b2cbd0}
.guide-step-gain>b{color:#9de1b7;white-space:nowrap}
.guide-progress-compact{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:space-between;align-items:baseline;font-size:11px;padding:7px 10px}
.guide-progress-compact b{color:#e3eeeb;margin-left:4px}.guide-progress-compact small{color:#9de1b7}
.guide-coach-footer>.guide-next{width:100%;margin:0}.guide-coach-footer>.guide-skip{margin:0 auto}
/* Last controls must be scrollable above the mentor card, including after a taller reply. */
@media(orientation:portrait){.guide-active .game-main:not(.city-page)::after{content:"";display:block;flex:none;height:var(--guide-space,170px);pointer-events:none}}
@media(max-width:400px){.guide-coach-heading{gap:8px}.guide-progress{padding:8px 10px}.guide-coach .guide-portrait{width:76px}.guide-coach .guide-portrait:not(.guide-portrait-amused){margin-left:-4px;margin-right:4px}}
@media(orientation:landscape) and (max-height:550px){.guide-coach{padding:9px 10px 0}.guide-coach-heading{gap:8px}.guide-coach .guide-portrait{height:84px}.guide-progress{padding:7px 9px}.guide-progress .guide-power{font-size:17px;margin-top:5px}.guide-power>strong{font-size:18px}.guide-step-gain{margin-top:6px;padding-top:6px}.guide-coach-footer{gap:8px;padding-block:8px}.guide-coach-footer>.guide-next{min-height:36px}}

/* Use the normal trading cards in the picker; let the dialog scroll as one surface
   while guided so its fixed header cannot squeeze the card into a clipped strip. */
.guide-active .modal-backdrop>.modal[data-dialog="portraits"]{display:block;overflow-y:auto;scroll-padding-block:16px}
.guide-active .modal[data-dialog="portraits"]>.hc-picker-body{overflow:visible;min-height:0}
.guide-active .modal[data-dialog="portraits"]>.hc-checkout{position:relative}

.beginner-hockey-preview{display:block;width:100%;padding:0;border:0;background:none;color:inherit;text-align:inherit;cursor:pointer}.beginner-hockey-preview:focus-visible{outline:2px solid #efce70;outline-offset:3px}

:is(#guided-coach,.retained-guide-coach),.guide-content{background:transparent;border:0;box-shadow:none;backdrop-filter:none}
:is(#guided-coach,.retained-guide-coach)>.guide-content{display:contents}
:is(#guided-coach,.retained-guide-coach)>.guide-dock{display:none!important}
/* Compact dialog surfaces are only used in short landscape. */
.modal-backdrop:has(>.modal>.guide-dialog-heading){width:100%;height:var(--app-height,100dvh);top:var(--app-top,0px);padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));background:transparent;backdrop-filter:none}
.modal-backdrop>.modal:has(>.guide-dialog-heading){display:block;box-sizing:border-box;width:min(720px,100%);height:auto;min-height:0;max-height:100%;padding:16px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding:12px;border-radius:16px}
.guide-dialog-heading{display:flex;gap:12px;align-items:center;padding-right:0;margin:0 0 14px;min-width:0}
.guide-dialog-heading>.guide-portrait{width:56px;height:76px;flex:none;align-self:center}
.guide-dialog-heading>.guide-portrait img{width:168px!important;height:112px!important;left:0;top:0}
.guide-dialog-heading>div:last-child{min-width:0}
.guide-dialog-heading small{font-size:10px;letter-spacing:.8px;color:#dfc477}
.guide-dialog-heading h2{font:600 24px/1.15 Oswald,sans-serif;margin:4px 0}
.guide-dialog-heading p{font-size:13px;line-height:1.4;color:#b8cdd6;margin:0}
.guide-dialog-footer{display:flex;justify-content:center;margin-top:10px;padding:0;clear:both}
.guide-dialog-footer>.guide-skip{min-height:36px;margin:0;padding:8px 12px;font-size:12px}
.guide-dialog-body>.modal-heading{display:none}
.modal:has(>.guide-dialog-heading) .modal-footer{margin-top:12px}
.modal:has(>.guide-dialog-heading) .btn{min-height:42px;font-size:13px}
.guide-player-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.guide-player-option{display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px;background:#102735;border:1px solid #526b78;border-radius:12px}
.guide-player-option.is-selected{border-color:#d6b95c}
.guide-player-option>.text-btn{font-size:11px;min-height:30px;text-align:left;padding:4px 0;margin:0}
.guide-player-option>.btn{margin-top:auto}
.guide-player-position{font-size:12px;color:#b8cdd6;margin:0 0 10px}
.guide-player-picker{max-width:480px;margin:auto}
.guide-player-synergies{font-size:12px;border-top:1px solid #3c5260;padding-top:8px}
.guide-player-synergies>summary{cursor:pointer;min-height:32px;color:#dec574}
.guide-player-synergies .hc-candidate-synergies{padding:6px 0;background:none;border:0}
.guide-player-synergies .hc-candidate-synergies-heading{display:none}
.guide-dialog-body>.cards-dialog-content,.guide-dialog-body>.pack-reveal-content{overflow:visible;max-height:none}
@media(orientation:landscape){
 .guide-player-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
 .guide-player-choices.is-claimed{grid-template-columns:minmax(0,1fr);max-width:420px;margin:auto}
}
@media(orientation:landscape) and (max-height:550px){
 :is(#guided-coach,.retained-guide-coach) .guide-coach{width:min(300px,36vw);min-height:0;padding:8px 10px 0}
 :is(#guided-coach,.retained-guide-coach) .guide-coach-heading{gap:8px}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait{width:42px;height:64px}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait img{width:126px!important;height:84px!important;left:-84px;top:0}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait-neutral img{left:0}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait-approval img{left:-42px}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait-amused img{left:0;width:42px!important;height:55px!important}
 :is(#guided-coach,.retained-guide-coach) .guide-coach h2{font-size:19px;line-height:1.15;margin:4px 0}
 :is(#guided-coach,.retained-guide-coach) .guide-coach p{font-size:12px;line-height:1.4}
 :is(#guided-coach,.retained-guide-coach) .guide-coach small{font-size:9px}
 :is(#guided-coach,.retained-guide-coach) .guide-coach-footer{gap:4px;padding:5px 0}
 :is(#guided-coach,.retained-guide-coach) .guide-skip{min-height:32px;margin:0;padding:8px;font-size:11px}
 :is(#guided-coach,.retained-guide-coach) .guide-next{min-height:38px;padding:6px 10px}
 .modal-backdrop>.modal:has(>.guide-dialog-heading){padding:10px 14px;border-radius:12px}
 .guide-dialog-heading{gap:9px;margin-bottom:8px;padding-right:0}
 .guide-dialog-heading>.guide-portrait{width:40px;height:54px}
 .guide-dialog-heading>.guide-portrait img{width:120px!important;height:80px!important}
 .guide-dialog-heading small{font-size:9px}
 .guide-dialog-heading h2{font-size:21px;margin:3px 0}
 .guide-dialog-heading p{font-size:11px;line-height:1.3}
 .guide-dialog-footer{margin-top:4px}
 .guide-dialog-footer>.guide-skip{min-height:30px;padding:6px 12px;font-size:11px}
 .guide-player-option{padding:8px;gap:4px}
 .guide-player-option>.text-btn{font-size:10px;min-height:28px;padding:4px 0}
 .modal:has(>.guide-dialog-heading) .btn{min-height:38px;padding:6px 8px;font-size:12px}
}

:is(#guided-coach,.retained-guide-coach){--guide-safe-left:env(safe-area-inset-left,0px);--guide-safe-right:env(safe-area-inset-right,0px);--guide-safe-top:env(safe-area-inset-top,0px);--guide-safe-bottom:env(safe-area-inset-bottom,0px)}
@media(orientation:landscape) and (max-height:550px){
 .guide-shade path{fill:rgba(3,11,18,.58)}
 .guide-player-choices{gap:12px;justify-content:center;grid-template-columns:repeat(3,minmax(0,170px))}
 .guide-player-option{background:none;border:0;padding:0;align-items:stretch}
 .guide-player-option .beginner-hockey-preview{display:block;width:min(100%,clamp(105px,calc((var(--app-height,100dvh) - 180px) * .72),160px));margin-inline:auto}
 .guide-player-option .hc-card{display:block;width:100%;max-width:none;margin:0}
 .guide-player-option>.text-btn{text-align:center;min-height:28px}
 .guide-player-confirm,.guide-player-picker .guide-player-option{display:grid;grid-template-columns:minmax(100px,150px) minmax(0,1fr);gap:16px;align-items:center}
 .guide-trading-art{min-width:0;width:100%}.guide-trading-art>.hc-card{display:block;width:100%;margin:0}
 .guide-player-confirm h3{font:500 22px/1.2 Oswald,sans-serif;margin:0 0 8px}
 .guide-player-confirm p{font-size:12px}
 .guide-player-controls{min-width:0}
 .guide-player-controls>.btn{margin-top:10px}
 .guide-player-picker{max-width:560px}
 .guide-dialog-footer{padding-bottom:2px}
}

/* R15: desktop guidance uses the same bounded, inline dialogs as wide phones. */
@media(min-width:900px) and (min-aspect-ratio:1/1){
 :is(#guided-coach,.retained-guide-coach) .guide-coach{width:min(350px,32vw);min-height:0;padding:10px 12px 0;transform:none}
 :is(#guided-coach,.retained-guide-coach) .guide-coach-heading{gap:10px}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait{width:60px;height:82px}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait img{width:180px!important;height:120px!important;top:0}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait-neutral img{left:0}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait-approval img{left:-60px}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait-happy img{left:-120px}
 :is(#guided-coach,.retained-guide-coach) .guide-coach .guide-portrait-amused img{left:0;width:60px!important;height:auto!important}
 :is(#guided-coach,.retained-guide-coach) .guide-coach h2{font-size:21px;line-height:1.15;margin:4px 0 6px}
 :is(#guided-coach,.retained-guide-coach) .guide-coach p{font-size:13px;line-height:1.4}
 :is(#guided-coach,.retained-guide-coach) .guide-coach-footer{padding:7px 0;gap:6px}
 :is(.guide-active #modal-root,.retained-dialog-frame.guide-active) .modal:has(>.guide-dialog-heading){width:min(760px,calc(100vw - 32px));height:auto;max-height:calc(var(--app-height,100dvh) - 24px);padding:14px 18px;overflow-y:auto;scrollbar-gutter:stable}
 .guide-dialog-heading{margin-bottom:10px;gap:10px}
 .guide-dialog-heading>.guide-portrait{width:44px;height:60px}
 .guide-dialog-heading>.guide-portrait img{width:132px!important;height:88px!important}
 .guide-dialog-heading h2{font-size:24px}
 .guide-dialog-heading p{font-size:13px;line-height:1.4}
 .guide-player-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:660px;margin-inline:auto}
 .guide-player-option{padding:8px;gap:6px}
 .guide-player-option .beginner-hockey-preview{width:min(100%,clamp(125px,calc((var(--app-height,100dvh) - 240px)*.66),190px));margin-inline:auto}
 .guide-player-option .hc-card,.guide-trading-art>.hc-card{width:100%;max-width:none;margin:0}
 .guide-player-option>.text-btn{font-size:12px;min-height:30px}
 .guide-player-confirm,.guide-player-picker .guide-player-option{display:grid;grid-template-columns:minmax(125px,180px) minmax(0,1fr);align-items:center;gap:20px}
 .guide-player-picker{max-width:600px}
 .guide-trading-art{width:min(100%,clamp(125px,calc((var(--app-height,100dvh) - 220px)*.6),180px));margin-inline:auto}
 .guide-dialog-footer{margin-top:6px}
 :is(.guide-active #modal-root,.retained-dialog-frame.guide-active) .modal:has(>.guide-dialog-heading) .btn{min-height:40px;font-size:13px}
 :is(.guide-active #modal-root,.retained-dialog-frame.guide-active) .modal:has(>.guide-dialog-heading) .cards-dialog-content{overflow:visible;padding:8px 0}
}
/* SVG fill hit testing must not compete with mouse hover on Safari.
   The existing action guard still blocks controls outside the current step. */
@media(hover:hover) and (pointer:fine){
 .guide-shade path{pointer-events:none}
 .guide-active :is([data-guide-current],[data-guide-current] button,[data-guide-current] a,.guide-coach button):hover{transform:none!important;translate:none}
}
@media(min-width:900px) and (max-height:550px){
 :is(.guide-active #modal-root,.retained-dialog-frame.guide-active) .modal:has(>.guide-dialog-heading){padding:8px 12px}
 .guide-dialog-heading{margin-bottom:7px}
 .guide-dialog-heading>.guide-portrait{width:34px;height:46px}
 .guide-dialog-heading>.guide-portrait img{width:102px!important;height:68px!important}
 .guide-dialog-heading h2{font-size:20px}
 .guide-dialog-heading p{font-size:12px;line-height:1.3}
 .guide-player-option .beginner-hockey-preview{width:min(100%,clamp(80px,calc((var(--app-height,100dvh) - 200px)*.62),140px))}
 .guide-player-option{padding:4px;gap:4px}
 :is(.guide-active #modal-root,.retained-dialog-frame.guide-active) .modal:has(>.guide-dialog-heading) .btn{min-height:36px;padding:6px 9px}
 .guide-dialog-footer{margin-top:4px}
 .guide-dialog-footer>.guide-skip{min-height:28px;padding:5px 8px}
}
