/* Phone-first app shell. Data rails scroll inside their own bounds, never the page. */
html{max-inline-size:100%;overflow-x:clip;scroll-padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
.hockey-night{inline-size:100%;min-inline-size:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.hockey-night main,.hockey-night #live,.hockey-night #live>*{min-inline-size:0;max-inline-size:100%}
.hockey-night .night-score-rail{min-inline-size:0;max-inline-size:100%;overscroll-behavior-inline:contain}
.hockey-night .night-game-caption>span,.hockey-night .night-hero-foot>span{min-width:0;overflow-wrap:anywhere}

@media(max-width:900px){
 .hockey-night{--app-bottom-space:calc(76px + env(safe-area-inset-bottom,0px));padding-bottom:var(--app-bottom-space)}
 .hockey-night main{inline-size:100%;max-inline-size:100%;padding:10px max(10px,env(safe-area-inset-right,0px)) 20px max(10px,env(safe-area-inset-left,0px));margin:0}
 .hockey-night .compact-header{padding-top:env(safe-area-inset-top,0px);border-top-width:2px}
 .hockey-night .compact-header .compact-topbar{height:56px;gap:6px;padding:5px 10px;max-width:100%}
 .hockey-night .compact-header .brand{flex:1 1 0%;min-width:0}
 .hockey-night .compact-header .brand-wordmark{width:min(190px,100%);max-width:100%;height:40px}
 .hockey-night .compact-header .brand-wordmark img{width:100%;height:100%;object-fit:contain}
 .hockey-night .compact-header .notification-bell,.hockey-night .header-menu,.hockey-night .header-menu>summary{flex:0 0 44px;width:44px}
 .hockey-night .compact-header .notification-bell,.hockey-night .header-menu>summary{height:44px;border-radius:9px}
 .hockey-night .header-menu-panel{right:10px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 140px);overflow-y:auto;overscroll-behavior:contain}
 .hockey-night .header-menu-actions>button,.hockey-night .header-menu-actions>a{min-height:48px;font-size:13px}
 .hockey-night .compact-nav{display:none}
 .hockey-night input:not([type=checkbox]):not([type=radio]),.hockey-night select,.hockey-night textarea{font-size:16px;max-inline-size:100%}
 .hockey-night button,.hockey-night a,.hockey-night summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}

 /* Short broadcast hero, with legible controls instead of micro-type. */
 .hockey-night .night-hero{border-radius:12px;margin-bottom:10px;max-width:100%}
 .hockey-night .night-hero-top{padding:12px 13px 7px;gap:8px;min-width:0}
 .hockey-night .night-hero-top>div{min-width:0}
 .hockey-night .night-hero-top #poolTitle{font-size:10px;letter-spacing:1.5px}
 .hockey-night .night-hero-top h1{font-size:clamp(21px,5.7vw,29px);letter-spacing:.3px;line-height:1.1;white-space:normal}
 .hockey-night .night-season{font-size:9px;letter-spacing:.3px;flex:0 0 auto}
 .hockey-night .night-matchup{width:calc(100% - 24px);max-width:590px}
 .hockey-night .night-game-topline{margin-top:3px;gap:8px;flex-wrap:wrap}
 .hockey-night .night-game-status{font-size:11px;letter-spacing:.3px;line-height:1.3;padding:4px 7px}
 .hockey-night .night-game-topline>small{font-size:10px;letter-spacing:0;max-width:45%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .hockey-night .night-game-teams{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr);gap:5px;margin:10px 0 4px}
 .hockey-night .night-game-teams>div:not(.night-game-score){flex-direction:column;gap:3px;min-width:0}
 .hockey-night .night-game-teams>div>img{width:42px;height:42px}
 .hockey-night .night-game-teams>div>strong{font-size:15px;letter-spacing:1px}
 .hockey-night .night-game-teams>div>span:not(.night-game-score span){display:none}
 .hockey-night .night-game-score{font-size:clamp(44px,12vw,62px);gap:10px;min-width:0}
 .hockey-night .night-game-score>span{font-size:23px}
 .hockey-night .night-game-caption{gap:5px;margin-bottom:0;font-size:11px;line-height:1.35;justify-content:space-between}
 .hockey-night .night-game-caption>button{font-size:11px;min-height:44px;flex:0 0 auto;padding:7px}
 .hockey-night .night-hero-foot{margin:0 12px;padding:2px 0 6px;font-size:10px;gap:7px}
 .hockey-night .night-hero-foot>span{max-width:none;flex:1;line-height:1.4}
 .hockey-night .night-hero-foot>div{gap:5px;flex:0 0 auto}
 .hockey-night .night-hero-foot button{width:44px;height:44px;font-size:20px}
 .hockey-night .night-hero-foot #nightSlideCount{font-size:11px}
 .hockey-night .night-score-rail>button{flex:0 0 102px;padding:8px 10px}
 .hockey-night .night-score-rail>button>span{font-size:9px;letter-spacing:0;min-height:12px}
 .hockey-night .night-score-rail strong{font-size:12px;gap:5px;margin-top:3px}
 .hockey-night .night-score-rail strong>b{font-size:13px}
 .hockey-night .night-waiting{padding:32px 12px;font-size:13px}
 .hockey-night .night-offnight{padding:16px 0}.hockey-night .night-offnight>p{font-size:13px}

 /* All four actions stay visible on phones. No swipe-only dashboard. */
 .hockey-night .night-dashboard-track{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;padding:0;scroll-snap-type:none}
 .hockey-night .night-dashboard-track>button{width:100%;min-width:0;max-width:100%;min-height:122px;flex:initial;padding:12px;transform:none}
 .hockey-night .night-tile-icon{width:29px;height:29px;font-size:21px}
 .hockey-night .night-dashboard-track>button>small{font-size:9px;letter-spacing:.25px;margin-top:8px;line-height:1.3}
 .hockey-night .night-dashboard-track>button>strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
 .hockey-night .night-dashboard-track>button>span:not(.night-tile-icon){font-size:11px;line-height:1.4;margin-top:5px}
 .hockey-night .night-dashboard-track>button>b{top:14px;right:12px}
 .hockey-night .night-section-head{margin:18px 0 10px;gap:10px}
 .hockey-night .night-section-head>div{min-width:0}
 .hockey-night .night-section-head>div>span{font-size:10px;letter-spacing:1px}
 .hockey-night .night-section-head h2{font-size:25px;line-height:1.15}
 .hockey-night .night-section-head>small{font-size:11px;text-align:right;max-width:100px}

 /* A fixed-width data grid that fits a 320px viewport without losing names. */
 .hockey-night .season-race .panel-head{padding:12px;gap:8px}
 .hockey-night .season-race h2{font-size:25px}
 .hockey-night .season-race .panel-kicker{font-size:9px;letter-spacing:.5px}
 .hockey-night .race-updated{font-size:11px;max-width:250px;line-height:1.45}
 .hockey-night .night-live-pill{display:none}
 .hockey-night .night-standing-labels,.hockey-night .night-standing{grid-template-columns:20px minmax(0,1fr) 39px 46px;gap:7px;padding:9px 12px;min-width:0;width:100%;box-sizing:border-box}
 .hockey-night .night-standing-labels{font-size:9px;letter-spacing:0}
 .hockey-night .night-standing{min-height:64px}
 .hockey-night .night-standing-rank{font-size:22px}
 .hockey-night .night-standing-name{min-width:0;gap:7px}
 .hockey-night .night-avatar{width:30px;height:30px;flex:0 0 30px}
 .hockey-night .night-avatar>b{font-size:10px}
 .hockey-night .night-standing-name>span:last-child{min-width:0;flex:1}
 .hockey-night .night-standing-name strong{font-size:13px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .hockey-night .night-standing-name small{font-size:10px;line-height:1.3;margin-top:3px}
 .hockey-night .night-standing-today{font-size:12px}
 .hockey-night .night-standing-points{font-size:23px}
 .hockey-night .night-expand{font-size:13px;min-height:48px}

 .hockey-night .night-newsroom>header{padding:13px 12px;gap:8px}
 .hockey-night .night-newsroom>header>div{min-width:0;flex:1}
 .hockey-night .night-newsroom>header>div>span{font-size:9px;letter-spacing:.4px}
 .hockey-night .night-newsroom h2{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
 .hockey-night .night-desk-mark{font-size:24px}
 .hockey-night .night-newsroom>header>button{min-width:44px;min-height:44px;flex:0 0 44px}
 .hockey-night #nightStory{padding:14px 12px}
 .hockey-night .night-story-meta{font-size:11px;gap:6px;flex-wrap:wrap;line-height:1.4}
 .hockey-night #nightStory h3{font-size:25px;line-height:1.15;overflow-wrap:anywhere}
 .hockey-night #nightStory>p{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
 .hockey-night .night-story-members{gap:7px}
 .hockey-night .night-story-members>a{min-height:44px;max-width:100%;border-radius:9px;padding:6px 8px}
 .hockey-night .night-story-members>a>span:last-child{min-width:0}
 .hockey-night .night-story-members strong{font-size:11px;overflow-wrap:anywhere}
 .hockey-night .night-story-members small{font-size:10px}
 .hockey-night .night-story-stats{font-size:11px;line-height:1.55}
 .hockey-night .night-newsroom>footer{font-size:10px;padding:6px 12px;flex-wrap:wrap;gap:4px}
 .hockey-night .night-newsroom>footer>button{font-size:11px;min-height:44px}
 .hockey-night .night-newsroom>details>summary{font-size:13px;min-height:48px;align-items:center;padding:10px 12px}
 .hockey-night #nightStoryLinks>button{min-height:48px}.hockey-night #nightStoryLinks strong{font-size:13px}.hockey-night #nightStoryLinks time{font-size:11px}
 .hockey-night #nightBanterPreview{grid-template-columns:minmax(0,1fr)}
 .hockey-night .night-chirp{padding:13px 12px}
 .hockey-night .night-chirp strong{font-size:13px}.hockey-night .night-chirp time{font-size:10px}
 .hockey-night .night-chirp strong+span{font-size:14px;line-height:1.55}.hockey-night .night-chirp small{font-size:11px}
 .hockey-night .night-banter .night-section-head>button{font-size:12px;min-height:44px;padding:9px 10px;flex:0 0 auto}
 .hockey-night .night-full-banter>summary{font-size:13px;min-height:48px;align-items:center}
 .hockey-night .pool-snapshot>summary,.hockey-night .leader-spotlight>summary{min-height:48px;padding:12px}
 .hockey-night .pool-snapshot summary>span,.hockey-night .leader-spotlight summary>span{font-size:13px}
 .hockey-night .pool-snapshot summary>small,.hockey-night .leader-spotlight summary>small{font-size:11px;line-height:1.4}

 /* Full-screen detail pages behave like app screens, with an always-visible close. */
 .hockey-night .night-panel-dialog{inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-sizing:border-box;overflow-x:clip;overflow-y:auto}
 .hockey-night .night-panel-dialog>header{padding:calc(10px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 10px max(12px,env(safe-area-inset-left,0px));min-width:0}
 .hockey-night .night-panel-dialog>header>div{min-width:0}
 .hockey-night .night-panel-dialog>header span{font-size:10px;letter-spacing:.7px}
 .hockey-night .night-panel-dialog h2{font-size:26px;line-height:1.2}
 .hockey-night .night-panel-dialog>header>button{flex:0 0 44px;width:44px;height:44px}
 .hockey-night #nightPanelBody{padding:12px 10px calc(24px + env(safe-area-inset-bottom,0px));max-width:100%;min-width:0}
 .hockey-night #nightPanelBody .night-detail-group,.hockey-night #nightPanelBody .grid,.hockey-night #nightPanelBody .panel{min-width:0;max-width:100%}
 .hockey-night #nightPanelBody .stat-central-grid{grid-template-columns:minmax(0,1fr)}
 .hockey-night #nightPanelBody .night-injuries{grid-template-columns:minmax(0,1fr)}
 .hockey-night #nightPanelBody .night-panel-intro{font-size:14px;line-height:1.6}
 .hockey-night #nightPanelBody .team-standings-scroll,.hockey-night #nightPanelBody .nhl-division-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
 .hockey-night #nightPanelBody .h2h-controls{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);gap:6px}
 .hockey-night #nightPanelBody .h2h-controls label,.hockey-night #nightPanelBody .h2h-controls select{min-width:0;max-width:100%}
 .hockey-night #nightPanelBody .h2h-controls select{min-height:44px}
 .hockey-night #nightPanelBody .h2h-stat span{font-size:12px;letter-spacing:0}
 .hockey-night #nightPanelBody .icon-btn{min-width:44px;min-height:44px}
 .hockey-night #nightPanelBody .league-leader-row{grid-template-columns:32px minmax(0,1fr);gap:8px;padding:12px}
 .hockey-night #nightPanelBody .league-rank{grid-row:1/3}
 .hockey-night #nightPanelBody .league-stats{grid-column:2;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;min-width:0}
 .hockey-night #nightPanelBody .league-stat{min-width:0;padding:7px 2px}
 .hockey-night #nightPanelBody .league-stat small{font-size:9px;letter-spacing:0}
 .hockey-night #nightPanelBody .league-stat strong{font-size:14px}

 .hockey-night .night-bottom-nav{position:fixed;z-index:45;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:5px max(5px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px));background:#1b2229f5;border-top:1px solid #64788655;backdrop-filter:blur(18px);max-width:100%;transition:transform .15s}
 .hockey-night .night-bottom-nav>button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0;min-height:52px;padding:5px 2px;font-size:11px;line-height:1.2;border:0;border-radius:8px;background:transparent;color:#a6b7c4;font-weight:800}
 .hockey-night .night-bottom-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .hockey-night .night-bottom-nav>button.active{color:#c8f4ff;background:#9ce3f60b}
 .hockey-night:has(input:not([type=checkbox]):not([type=radio]):focus,textarea:focus) .night-bottom-nav{transform:translateY(110%);pointer-events:none}
 .hockey-night #poolRace,.hockey-night #benchBoard{scroll-margin-top:12px}
 .hockey-night .site-footer{max-width:100%;padding:18px 14px;margin-top:22px;gap:18px}
 .hockey-night .site-footer .footer-logo{width:min(210px,100%)}
 .hockey-night .site-footer>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:370px){
 .hockey-night .night-season{display:none}
 .hockey-night .night-standing-labels,.hockey-night .night-standing{grid-template-columns:18px minmax(0,1fr) 35px 43px;gap:6px;padding-inline:10px}
 .hockey-night .night-standing-name{gap:6px}.hockey-night .night-standing-name strong{font-size:12px}
 .hockey-night .night-dashboard-track>button{padding:10px}.hockey-night .night-dashboard-track>button>strong{font-size:14px}
 .hockey-night .night-story-meta{flex-direction:column;align-items:flex-start}
}
@media(max-width:900px) and (orientation:landscape) and (max-height:500px){
 .hockey-night .night-bottom-nav>button{min-height:44px;flex-direction:row;gap:6px;font-size:11px}
 .hockey-night .night-bottom-nav svg{width:18px;height:18px}
 .hockey-night .night-game-teams>div>img{width:34px;height:34px}
 .hockey-night .night-game-score{font-size:44px}
}
@media(prefers-reduced-motion:reduce){.hockey-night .night-bottom-nav{transition:none}}
