.vh, .visually-hidden {
  &:not(:focus, :active) {
    clip-path: circle(0);
    white-space: nowrap;
    border: 0;
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
  }
}

@layer reset {
  * {
    box-sizing: border-box;
    margin: 0;
  }

  html {
    interpolate-size: allow-keywords;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;

    @media not (prefers-reduced-motion: reduce) {
      scroll-behavior: smooth;
    }
  }

  canvas, img, video {
    max-width: 100%;
    height: auto;
    display: block;
  }

  button, input, select, textarea {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    word-spacing: inherit;
  }
}

blockquote {
  text-wrap: pretty;
  max-inline-size: 48ch;
}

blockquote:before {
  content: "";
  border-block-start: max(2px, .125em) solid;
  width: 30%;
  margin-block-end: .25lh;
  display: block;
}

@media (width >= 360px) {
  blockquote {
    border-block: 0;
    border-inline-start: max(2px, .125em) solid;
    padding-block-end: .125lh;
    padding-inline-start: .625em;
    line-height: calc(.5rlh + 1em);
  }

  blockquote:before {
    content: none;
  }
}

h1, h2, h3, h4 {
  --gap: .75lh;
}

body {
  line-height: 1.3;

  @media (width >= 400px) {
    line-height: 1.4;
  }

  @media (width >= 1200px) {
    line-height: 1.5;
  }
}

ol, ul {
  &.reset {
    padding: 0;
    list-style: none;
  }
}

.restack :not(:first-child, div) {
  margin-block-start: var(--gap, 1em);
}

.gap, .stack > :not(:first-child) {
  margin-block-start: var(--gap, 1lh);
}

.gap-end {
  margin-block: var(--gap, 1lh);
}

:host, html {
  --gap-2xs: .125lh;
  --gap-xs: .25lh;
  --gap-s: .5lh;
  --gap: 1lh;
  --gap-m: 1lh;
  --gap-l: 1.5lh;
  --gap-xl: 2lh;
  --gap-2xl: 3lh;
}

.gap-0 {
  --gap: 0;
}

.gap-2xs {
  --gap: var(--gap-2xs);
}

.gap-xs {
  --gap: var(--gap-xs);
}

.gap-s {
  --gap: var(--gap-s);
}

.gap-m {
  --gap: var(--gap-m);
}

.gap-l {
  --gap: var(--gap-l);
}

.gap-xl {
  --gap: var(--gap-xl);
}

.gap-2xl {
  --gap: var(--gap-2xl);
}

html {
  hanging-punctuation: first allow-end last;
  overflow-wrap: break-word;
}

.set {
  flex-wrap: wrap;
  gap: .5em;
  display: flex;
}

.btn, button {
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  vertical-align: middle;
  align-items: center;
}

button.reset {
  color: inherit;
  background: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.btnSet {
  display: inline-flex;
  overflow: clip;

  & .btn, & button {
    border-radius: 0;
  }
}

pre {
  tab-size: 4;
  inline-size: fit-content;
  max-inline-size: 100%;
  overflow: auto;

  &.pre-wrap {
    white-space: pre-wrap;
  }
}

code {
  max-width: 100%;

  &:empty {
    display: none;
  }
}

input {
  vertical-align: middle;
  border-radius: 0;
}

[type="checkbox"], [type="radio"] {
  appearance: none;
  place-content: center;
  width: 1em;
  height: 1em;
  padding: 0;
  display: inline-grid;

  &:checked:after {
    content: "";
    background: currentColor;
    width: .5em;
    height: .5em;

    @media (resolution = 1x) {
      width: round(down, .5em, 2px);
      height: round(down, .5em, 2px);
    }
  }
}

[type="radio"], [type="radio"]:after {
  border-radius: 50%;
}

.range {
  align-items: center;
  padding-inline: .5em;
  display: flex;
}

[type="range"] {
  --track-background: linear-gradient(#0000 calc(50% - var(--track-half)),
		currentcolor calc(50% - var(--track-half)),
		currentcolor calc(50% + var(--track-half)),
		#0000 calc(50% + var(--track-half)));
  --track-half: calc(var(--track-width, 4px) / 2);
  background: 0;
  border: 0;
  padding: 0;

  @supports selector(::-moz-range-track) {
    appearance: none;

    &::-moz-range-track {
      background: var(--track-background);
      height: var(--track-width, 4px);
    }

    &::-moz-range-thumb {
      background: var(--color-primary);
      box-shadow: .075em .125em .5em
				color-mix(in srgb, var(--color-primary) 20%, #0001);
      height: var(--thumb-size, 1em);
      width: var(--thumb-size, 1em);
      background-image: linear-gradient(#fff6, #fff0);
      border: 0;
      border-radius: 50%;
    }
  }

  @supports selector(::-webkit-slider-thumb) {
    appearance: none;

    &::-webkit-slider-runnable-track {
      background: var(--track-background);
    }

    &::-webkit-slider-thumb {
      cursor: grab;
    }
  }
}

label {
  user-select: none;
  vertical-align: middle;

  & + :where(input, output, select) {
    margin-inline-start: .375em;
  }

  &.block + :where(input, output, select) {
    --gap: var(--gap-xs);
    margin-inline: 0;
  }
}

input, output, select {
  & + label {
    padding-inline-start: .375em;
  }
}

select {
  field-sizing: content;
  vertical-align: middle;
  background: 0;
}

@media (height >= 768px) {
  html {
    height: 100%;
  }

  body {
    min-height: 100%;
  }

  footer, .stickyFoot {
    position: sticky;
    top: 100vh;
  }
}

:root {
  --col-count: 1;
}

.fixCol {
  gap: var(--col-gap, min(5vw, 3em));
  flex-wrap: wrap;
  display: flex;

  @supports (gap: 1vi) {
    gap: var(--col-gap, min(5vi, 3em));
  }

  @supports (width: 1cqi) {
    .container & {
      gap: var(--col-gap, min(5cqi, 3em));
    }
  }

  & > div {
    min-inline-size: calc(100% / var(--col-count) - var(--col-gap, min(5%, 3em)));
    flex: 1;
  }
}

[background] {
  background: attr(background type(<color>),
		var(--background));
}

[gradient] {
  background: linear-gradient(in oklab, attr(gradient type(<color>#)));
}

[gradient-90] {
  background: linear-gradient(90deg in oklab,
		attr(gradient-90 type(<color>#)));
}

[gradient-135] {
  background: linear-gradient(135deg in oklab,
		attr(gradient-135 type(<color>#)));
}

[gradient-45] {
  background: linear-gradient(45deg in oklab,
		attr(gradient-45 type(<color>#)));
}

.colorInherit {
  color: inherit;
}

.contrast-background-color {
  color: contrast-color(attr(background type(<color>)));
}

[color] {
  color: attr(color type(<color>));
}

[contrast-color] {
  color: contrast-color(attr(contrast-color type(<color>)));
}

.block {
  display: block;
}

.contents {
  display: contents;
}

.flex {
  display: flex;
}

.flow-root {
  display: flow-root;
}

.grid {
  display: grid;
}

.hidden {
  display: hidden;
}

.inline {
  display: inline;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

.inline-grid {
  display: inline-grid;
}

[filter-invert] {
  filter: invert(attr(filter-invert type(<number> | <percentage>),
		1));
}

@media (prefers-color-scheme: dark) {
  [filter-invert-dark] {
    filter: invert();
  }
}

[filter-grayscale] {
  filter: grayscale(attr(filter-grayscale type(<number> | <percentage>),
		1));
}

@property --fov-rad {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.perspective {
  --fov: 90;
  --fov-rad: calc(var(--fov) * pi / 180);
  --perspective: calc(.5 / tan(var(--fov-rad) * .5) * 100dvh);
  position: relative;
}

.perspective > div {
  backface-visibility: hidden;
  transform-style: preserve-3d;
  position: relative;
}

@view-transition {
  navigation: auto;
}

@font-face {
  font-display: swap;
}

@font-face {
  font-family: primary;
  src: url("../font/regular.woff2") format("woff2"), url("../font/regular.ttf") format("truetype");
}

:root {
  --background-dark: #000403;
  --background-light: #fbfffe;
  --background: light-dark(var(--background-light), var(--background-dark));
  --background-invert: light-dark(var(--background-dark), var(--background-light));
  --color-primary: color(display-p3 0 1 .6);
  --color-primary-50: color-mix(var(--color-primary), #0000);
  --color-tint: light-dark(#1111110b, #ffffff16);

  @media (width >= 1024px) {
    --col-count: 2;
    --col-gap: clamp(1em, 5%, 3em);
  }

  @media (width >= 1200px) {
    --col-count: 3;
  }

  accent-color: var(--color-primary);
}

::selection {
  background: var(--color-primary);
  color: #111;
}

*, :hover {
  cursor: url("/svg/pointer.svg") 3 2, progress;
}

html {
  background: var(--background);
  color-scheme: light dark;
  scrollbar-color: var(--color-primary) #0000;

  &[data-template="player"] {
    background: var(--background-dark);
  }
}

body {
  color: light-dark(#111, #f8f9f8);
  font-family: sans-serif;
  font-size: 1.25em;

  @media (width > 600px) {
    font-size: 1.375em;
  }

  @media (width > 1600px) {
    font-size: 1.5em;
  }
}

.wrap {
  margin-inline: auto;
  padding-inline: clamp(1rem, 5%, 3em);
}

.wrapBlock {
  padding-block: clamp(1rem, 5%, 3em);
}

.wrapMax {
  max-inline-size: 112rem;
}

.wrapMaxOut {
  max-inline-size: 140rem;
}

header {
  background: var(--background-dark);
  color: #fff;
  user-select: none;
  padding-block: .375lh clamp(.5lh, 5%, 1.5lh);

  & .wrap {
    position: relative;
  }
}

main {
  position: relative;
}

#hockeySelect {
  gap: 1em;
  list-style: none;
  display: flex;
}

#menuCtrl {
  z-index: 2;
  position: relative;

  @media (width >= 1024px) {
    display: none;
  }
}

#menuBtn, #searchBtn {
  border-radius: 0;

  &:after {
    border: 2px solid;
    content: "";
    vertical-align: middle;
    border-width: 0 2px 2px 0;
    width: .5rem;
    height: .5rem;
    display: inline-block;
    position: relative;
  }
}

#menuBtn:after {
  margin-inline-start: 1.25ch;
  top: -.2em;
  rotate: 45deg;
}

#searchBtn {
  background: light-dark(var(--background), #fff);
  color: light-dark(#fff, #111);
  text-decoration: none;

  &:after {
    margin-inline-start: .75ch;
    display: none;
    top: -.1125em;
    rotate: -45deg;
  }
}

nav {
  @media (width >= 1024px) {
    font-family: primary, sans-serif;
    display: block;
    position: relative;

    & .wrap > ul {
      font-size: 1.5em;
    }
  }

  &.active {
    display: block;
  }

  @media (width >= 1024px) and (height >= 1024px) {
    html:not([data-template="player"]) & {
      z-index: 9;
      position: sticky;
      top: 0;
    }
  }

  & ul {
    vertical-align: middle;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;

    & > li {
      position: relative;
    }
  }

  & .wrap > ul > li {
    background: var(--color-primary);

    &.current a {
      pointer-events: none;
    }

    &:first-child a {
      padding-inline-start: .75em;
    }

    &:last-child {
      background: var(--background-invert);

      & a {
        color: light-dark(#fff, #111);
        padding-inline: .75em;
      }
    }

    [data-template="player"] &:last-child {
      background: var(--background-light);

      & a {
        color: #111;
      }
    }
  }

  & a {
    color: #111;
    border: 0;
    padding-block: .25lh .2875lh;
    padding-inline: .5em;
    text-decoration: none;
    display: block;

    @media (width >= 1024px) {
      padding-block: .1lh .1375lh;
    }

    &:has( + ul):after {
      content: "";
      vertical-align: middle;
      border: 0 solid;
      border-width: 0 0 2px 2px;
      width: .625rem;
      height: .625rem;
      margin-inline-start: .875ch;
      display: inline-block;
      position: relative;
      top: -.15em;
      rotate: -45deg;
    }
  }

  & li ul {
    background: var(--background-invert);
    text-align: left;
    z-index: 999;
    flex-direction: column;
    display: none;
    position: absolute;
    top: 100%;

    &:first-child {
      inset-inline-start: 0;
    }

    &:last-child {
      inset-inline-end: 0;
    }

    & a {
      color: light-dark(#fff, #111);
      border: 0;
      padding: .25em 1em;
      display: block;
    }

    [data-template="player"] & {
      background: #fff;

      & a {
        color: #111;
      }
    }
  }

  & li.active > a + ul {
    display: block;
  }
}

#featureList {
  background: var(--color-tint);
  z-index: 9;
  padding-block: .75lh;
  font-family: primary;
  font-size: 1.5em;
  bottom: 0;
  overflow: auto;

  & ul {
    text-wrap-mode: nowrap;
    gap: 1em;
    margin-inline-end: 1em;
    padding: 0;
    font-size: 1em;
    list-style: none;
    display: flex;
  }

  & a {
    text-decoration: none;
  }
}

section {
  padding-block: 1em;
  position: relative;

  @media (width >= 768px) {
    padding-block: 2em;
  }
}

#startBar {
  background: var(--background-dark);
  color: #fff;
  padding-block-start: .25lh;
  font-family: primary;

  & .wrap {
    flex-wrap: wrap;
    justify-content: end;
    gap: .125lh 1em;
    display: flex;
  }
}

footer {
  background: var(--background-dark);
  color: #fff;
  margin-block-start: 1lh;
  padding-block: 3em 4em;
}

h1, h2, h3, h4 {
  font-variant-ligatures: discretionary-ligatures;
  text-wrap: pretty;
  font-family: primary, sans-serif;

  & + :is(p, h2, h3, h4) {
    --gap: .5lh;
  }
}

h1 {
  margin: 0;
}

h2 {
  font-size: 1.75em;
  font-weight: 600;
  line-height: 1.3;

  &.fancy {
    display: inline-block;

    @media (width >= 2400px) {
      font-weight: 700;
      position: absolute;
      font-size: 4.25em !important;

      :dir(ltr) & {
        transform-origin: 0 0;
        rotate: 90deg;
      }

      :dir(rtl) & {
        transform-origin: 100% 0;
        rotate: -90deg;
      }
    }
  }
}

h3 {
  font-size: 1.5em;
  font-weight: 400;
}

h4 {
  font-size: 1.25em;
}

@media (width >= 1024px) {
  h2 {
    font-size: 2em;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.75em;
  }
}

h1 {
  position: relative;
}

h1:after {
  content: "";
  filter: grayscale(.6);
  background: url("/svg/HockeyTV.svg") 0 100% / cover no-repeat;
  width: 100%;
  height: 70%;
  margin-top: -.5rem;
  position: absolute;
  scale: 1 -1;
  mask: linear-gradient(0deg, #ffffff0d, #fff0);
}

blockquote {
  border-left-width: .25em;
  max-inline-size: 36ch;
  font-family: primary;
  font-size: 1.375em;
  font-weight: 600;
}

p {
  max-inline-size: 56ch;
}

q {
  font-style: italic;
}

strong {
  text-transform: uppercase;
}

ul {
  list-style: outside;
}

main li {
  --gap: var(--gap-xs);
}

a, .link {
  color: currentColor;
  text-decoration-color: currentColor;
  text-decoration-color: var(--color-primary);
  text-underline-offset: max(2px, .2ex);
  text-decoration-line: underline;
  text-decoration-thickness: max(2px, .125ex);
  transition: text-underline-offset .1s ease-out;

  &:hover {
    text-underline-offset: clamp(4px, .5ex, 8px);
  }

  &:active {
    opacity: .7;
  }

  @media (resolution >= 192dpi) {
    text-decoration-thickness: max(1.5px, .125ex);
  }
}

.btnSet {
  border-radius: .5em;
  gap: 0;

  & .btn {
    min-width: 12ch;
  }
}

.btn, button {
  background: var(--color-primary);
  color: contrast-color(var(--color-primary));
  line-height: inherit;
  border: 0;
  border-radius: .375em;
  padding-block: calc(.5em + 2px);
  padding-inline: 1em;
}

code {
  background: var(--color-tint);
  font-size-adjust: .625;
}

details {
  --gap: var(--gap-s);
  list-style-position: outside;

  &::details-content {
    opacity: 0;
    block-size: 0;
    transition: block-size .4s ease-in-out,
			content-visibility .4s allow-discrete, /* ESSENTIAL for animate-out */
			opacity .4s;
    overflow: clip;
  }

  &:open::details-content {
    opacity: 1;
    block-size: auto;
  }
}

summary {
  &.reset {
    list-style: none;
  }
}

hr {
  border: 0;
  border-block-end: 2px solid light-dark(#eee, #333);
}

input {
  background: 0;
  border: 2px solid;
  padding: .5em;
  padding-block: .25em;
}

[type="checkbox"] {
  border: 2px solid;
}

iframe {
  user-select: none;
  background: #111;
  border: 0;
  display: block;
}

select {
  border: 2px solid;
  border-radius: 0;
  min-inline-size: 6ch;
  padding-block: .25em;
  padding-inline: .5em;
}

:focus-visible {
  outline: 2px dashed var(--color-primary);
  outline-offset: 2px;

  @media (resolution >= 2x) {
    outline-width: 1.5px;
  }
}

svg {
  vertical-align: middle;
}

.langBtn {
  anchor-name: --lang-btn;
  color: inherit;
  background: 0;
  border-block-start-width: 0;
  border-radius: 0;
  order: 1;
  gap: .375ch;
  padding: 0;
  display: flex;
}

.langIcon {
  padding-inline: 0;
  display: flex;
  position: relative;
  top: -.2ex;

  & span:last-child {
    position: relative;
    top: .53ex;
    left: -.3ch;
  }
}

#langPopover {
  background: color-mix(var(--background-dark), #0000 6%);
  backdrop-filter: blur(8px) saturate(.4);
  border: 2px solid var(--color-primary);
  color: #fff;
  max-inline-size: calc(100% - 2rem);
  padding-block: .375lh .5lh;
  padding-inline: 1em;
  inset-block-start: 2em;
  inset-inline: auto calc(clamp(1rem, 5%, 3em));

  @media (width > 1800px) {
    position-anchor: --lang-btn;
    inset-inline-end: anchor(end);
  }

  & ul {
    --gap: .5lh;
    padding: 0;
    list-style: none;
  }
}

.sponsors {
  gap: 1em;
  display: flex;

  & .sponsor {
    aspect-ratio: 4 / 3;
    background: var(--color-tint);
    width: min(24rem, 50%);

    @media (width >= 1024px) {
      & .wrap {
        max-width: 40ch;
      }

      & h3 {
        margin-top: 1.25em;
      }
    }
  }
}

@keyframes draw-in {
  0% {
    stroke-dasharray: 1 49;
    stroke-dashoffset: 34px;
    stroke-opacity: .5;
  }

  100% {
    stroke-dasharray: 16 34;
    stroke-dashoffset: 0;
    stroke-opacity: .9;
  }
}

.featured {
  & h3 {
    font-size: 1.125em;
  }

  & htv-card {
    @media (width >= 840px) {
      width: calc((100% - var(--rule-gap)) / 2);

      & h3 {
        font-size: 1.125em;
      }
    }

    @media (width >= 1200px) {
      & h3 {
        font-size: 1.25em;
      }
    }
  }
}

.latest {
  & h3 {
    font-size: 1em;
  }

  & htv-card {
    order: calc(sibling-index());

    &:nth-last-of-type(4) {
      order: 2;
    }

    &:nth-last-of-type(3) {
      order: 10;
    }

    &:nth-last-of-type(2) {
      order: 18;
    }

    &:last-of-type {
      order: 26;
    }

    @media (width > 840px) {
      &:nth-last-of-type(4) {
        order: 2;
      }

      &:nth-last-of-type(3) {
        order: 10;
      }

      &:nth-last-of-type(2) {
        order: 16;
      }

      &:last-of-type {
        order: 24;
      }
    }

    @media (width > 1200px) {
      &:nth-last-of-type(4) {
        order: 4;
      }

      &:nth-last-of-type(3) {
        order: 15;
      }

      &:nth-last-of-type(2) {
        order: 26;
      }

      &:last-of-type {
        order: 37;
      }
    }

    &:hover {
      & div {
        &:after {
          content: "";
          background: color-mix(var(--color-primary) 12%, #0000);
          border-block-end: .5rem solid var(--color-primary);
          pointer-events: none;
          width: 100%;
          height: 100%;
          padding: 8px;
          position: absolute;
          bottom: 0;
        }
      }
    }

    &.sponsor {
      & > div a {
        padding: 1em;
      }

      & img {
        aspect-ratio: unset;
      }
    }

    @media (width >= 840px) {
      width: calc((100% - var(--rule-gap)) / 2);
    }

    @media (width >= 1200px) {
      width: calc((100% - var(--rule-gap) * 2) / 3);
    }
  }
}

htv-set {
  --gap: 4px;
  --rule-gap: 8px;
  gap: var(--rule-gap);
  flex-wrap: wrap;
  display: flex;
}

htv-card {
  width: 100%;
  display: block;
  overflow: clip;

  & svg {
    pointer-events: none;
    display: none;
    position: absolute;
    top: 0;
  }

  & div {
    position: relative;

    & a {
      display: block;
    }
  }

  &:hover {
    & svg {
      display: block;
    }
  }

  & h3 {
    background: var(--color-tint);
    line-height: 1.3;

    & a {
      padding-block: .25lh .3lh;
      padding-inline: .5em;
      text-decoration-line: none;
      transition: none;
      display: block;
    }
  }

  & img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
  }

  @media (width >= 768px) {
    overflow: clip;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
/*# sourceMappingURL=app.css.map */