/* Host boundary: the approved cascade is scoped; baseball styles cannot leak in. */
.nhl-cards{width:300px;max-width:100%;--gold:#c5a267;--red:#C44536;--cream:#f5f1e6;font:400 14px/1.5 'NHL Inter',sans-serif;color:var(--cream);text-align:left}
.nhl-cards[data-card-width="252"]{width:252px}
.nhl-cards *{box-sizing:border-box}
.nhl-cards [hidden]{display:none!important}
.nhl-cards .card-scene{height:auto;-webkit-perspective:1200px;perspective:1200px;--photo-x:50%;--photo-y:0%;--photo-scale:1.25;--photo-fit:contain}
.nhl-cards .team-logo-slot{width:20cqw;height:20cqw}
.nhl-cards .nhl-actual-value{color:#999}
.nhl-cards .nhl-actual-value[data-result=win]{color:#3ab05a}
.nhl-cards .nhl-actual-value[data-result=loss]{color:#C44536}
.nhl-cards .nhl-actual-value[data-result=unavailable]{color:rgba(245,241,230,.35)}
.nhl-cards .cp-sog .cp-actual{justify-content:flex-end;gap:8px;text-align:right}
.nhl-cards .cp-sog .cp-actual b{margin-left:0;flex-shrink:0}
/* The brand is centered in the grid row forming the gap between the two lines. */
.nhl-cards .cp-sog-footer{
  position:relative;display:grid;flex:0 0 calc(38px + 8.75cqw);
  grid-template-columns:minmax(0,1fr) max-content;
  grid-template-rows:max-content 2.5cqw max-content;
  column-gap:8px;align-content:start;align-items:start;
  border-top:1px solid #b5b8bd70;padding-top:3.667cqw;padding-right:1cqw;
}
.nhl-cards .cp-sog-footer .cp-actual{grid-column:2;grid-row:1;border:0;padding:0;font-size:5.04cqw}
.nhl-cards .cp-sog-footer .cp-actual b{font-size:5.775cqw}
.nhl-cards .cp-sog-footer .cp-sog-brand{position:absolute;grid-column:1/2;grid-row:2/3;align-self:center;justify-self:start;padding:0;transform:translateX(3px)}
.nhl-cards .cp-sog-season{grid-column:2;grid-row:3;justify-self:end;font-size:4.41cqw;line-height:1.1;letter-spacing:.12em;white-space:nowrap}
@container(max-width:270px){.nhl-cards .cp-sog-footer{flex-basis:calc(33px + 8.75cqw)}.nhl-cards .cp-sog-season{font-size:11.55px;letter-spacing:.06em}}
/* Keep the approved result-card spacing without a visible review suffix. */
.nhl-cards .cp-layout[data-reviewed=true]{gap:4px}
.nhl-cards .cp-fantasy .cp-layout[data-reviewed=true]{gap:3px}
.nhl-cards [data-long-name=true] .cp-fantasy .cp-layout[data-reviewed=true]{gap:0}
@container(max-width:270px){.nhl-cards .cp-layout[data-reviewed=true],.nhl-cards .cp-fantasy .cp-layout[data-reviewed=true]{gap:1px}.nhl-cards [data-long-name=true] .cp-fantasy .cp-layout[data-reviewed=true]{gap:0}}
/* Reserve the forecast's text height, including when the result gains a LIVE
   label. Keep spacing outside that box compact instead of clipping its text. */
.nhl-cards .cp-fantasy .cp-layout[data-reviewed]{gap:.6cqw}
.nhl-cards .cp-fantasy .cp-identity{margin-bottom:0}
.nhl-cards .cp-fantasy .cp-forecast{flex:1 0 auto;min-height:31cqw}
.nhl-cards .cp-fantasy .cp-history-usage{padding-block:3px}
.nhl-cards .cp-fantasy .cp-actual{padding-top:4px}
@container(max-width:270px){
  .nhl-cards .cp-fantasy .cp-layout[data-reviewed]{gap:1px}
  .nhl-cards .cp-fantasy .cp-history-usage{margin-block:1px}
  .nhl-cards .cp-fantasy .cp-actual{padding-top:3px}
}
.nhl-cards .flip-button{font-family:'NHL Inter',sans-serif;cursor:pointer}
.nhl-cards .flip-button:focus-visible{outline:2px solid #c5a267;outline-offset:3px}
/* Scale the authentic footer wordmark uniformly; retain its approved anchor. */
.nhl-cards .cp-footer .nav-logo-badge{transform:scale(.8);transform-origin:left center;flex-shrink:0}
.nhl-cards .cp-sog .cp-footer .nav-logo-badge{transform:scale(.92)}
/* Match the baseball picks' turn, without a second perspective on the rotor. */
.nhl-cards .card-rotor{outline:none;perspective:none;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:transform .65s cubic-bezier(.4,0,.2,1);transition:transform .65s cubic-bezier(.4,0,.2,1)}
/* Explicitly hide the inactive face: iOS can paint transformed/masked front
   layers through the back despite backface-visibility. Switch at the turn's
   edge (35% of .65s with the rotor's easing), without changing either design. */
.nhl-cards .card-face{visibility:hidden;transition:visibility 0s linear .2275s}
.nhl-cards .card-scene[data-face=front] .card-face.front,
.nhl-cards .card-scene[data-face=back] .card-face.back{visibility:visible}
@media(prefers-reduced-motion:reduce){.nhl-cards .card-rotor{-webkit-transition:none;transition:none}.nhl-cards .card-face{transition:none}}
@media(max-width:340px){.nhl-cards{width:252px}}
/* NHL-only results: the MLB palette, photo shading and badges, without changing
   the approved ice frame, nameplate, card dimensions or forecast content. */
.nhl-cards .nhl-result-overlay{position:absolute;inset:0;z-index:3;pointer-events:none}
.nhl-cards .nhl-result-overlay.win{background:linear-gradient(180deg,rgba(40,180,80,0) 0%,rgba(40,180,80,.22) 100%)}
.nhl-cards .nhl-result-overlay.loss{background:linear-gradient(180deg,rgba(196,69,54,0) 0%,rgba(196,69,54,.22) 100%)}
.nhl-cards .nhl-result-overlay.push{background:linear-gradient(180deg,rgba(120,120,120,0) 0%,rgba(120,120,120,.28) 100%)}
.nhl-cards .nhl-result-overlay.ppd{background:linear-gradient(180deg,rgba(78,171,222,0) 0%,rgba(78,171,222,.38) 100%)}
.nhl-cards .nhl-result-stamp{position:absolute;bottom:7cqw;right:9cqw;z-index:6;display:flex;align-items:center;justify-content:center;width:8.5cqw;height:8.5cqw;border-radius:50%;border:1.5px solid #ffffff4d;font:900 4.3cqw/1 'Playfair Display',serif;color:white;box-shadow:0 2px 8px #0008;pointer-events:none}
.nhl-cards .nhl-result-stamp.win{background:#28b450}.nhl-cards .nhl-result-stamp.loss{background:#C44536}
.nhl-cards .nhl-result-stamp.push,.nhl-cards .nhl-result-stamp.ppd{width:13cqw;height:8cqw;border-radius:4px;font:800 2.8cqw/1 'NHL Inter',sans-serif;background:#555}
.nhl-cards .nhl-result-stamp.ppd{background:#4EABDE}
.nhl-cards .nhl-actual-value[data-result=ppd]{color:#4EABDE}
.nhl-cards .nhl-live-actual-label{display:block;font:600 2.5cqw/1.1 'NHL Inter',sans-serif;letter-spacing:.08em;color:#e06b5f}
.nhl-cards .nhl-live-bar{position:absolute;left:12%;right:12%;top:var(--nhl-nameplate-top,78%);transform:translateY(calc(-100% - 1.5cqw));z-index:5;background:#071626e8;border:1px solid #f5f1e61a;border-radius:4px;padding:2.2cqw 2.7cqw;pointer-events:none}
.nhl-cards .nhl-live-top{display:flex;align-items:center;justify-content:space-between;gap:5px;font:400 3cqw/1.2 'NHL Inter',sans-serif;color:#f5f1e6a6}
.nhl-cards .nhl-live-top b{font-size:4.4cqw;color:#f5f1e6}.nhl-cards .nhl-live-top small{font-size:2.6cqw}
.nhl-cards .nhl-live-tag{display:flex;align-items:center;gap:4px;font-size:2.7cqw;letter-spacing:.1em;font-weight:700;color:#e06b5f}
.nhl-cards .nhl-live-tag i{display:inline-block;width:5px;height:5px;background:#e06b5f;border-radius:50%;animation:nhl-live-pulse 1.5s ease-in-out infinite}
.nhl-cards .nhl-live-track{height:4px;border-radius:3px;overflow:hidden;margin-top:5px;background:#ffffff14}
.nhl-cards .nhl-live-track span{display:block;height:100%;transition:width 1.5s ease}
@keyframes nhl-live-pulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.nhl-cards .nhl-live-track span{transition:none}.nhl-cards .nhl-live-tag i{animation:none}}
