/* Heckled Knight theme, used by its product page and its homepage section.
   Everything comes from the game (Games/BokKnight): the sunset sky and hills, the purple
   menu panel, the gold button, parchment and wood boards, the pixel title, Sir Bülent
   and the Narrator. Pixel art is scaled with nearest-neighbour; type is Pixelify Sans. */

@font-face {
  font-family: "VT323";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/vt323-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "VT323";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/vt323-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/pixelify-sans-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/pixelify-sans-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Pixelify Sans draws 5 like an S; titles take their digits from VT323. */
@font-face {
  font-family: "HK Digits";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/vt323-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0030-0039;
}

@property --hk-deaths {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

.hk-hero,
.hk-section,
.hk-band {
  --hk-ink: #1d1028;
  --hk-night: #24142f;
  --hk-panel: #2b1d40;
  --hk-plum: #4a2b5c;
  --hk-cream: #fbecc8;
  --hk-letter: #f6dca0;
  --hk-gold: #f8c82a;
  --hk-gold-dark: #b8860b;
  --hk-sun: #f19a4b;
  --hk-parchment: #f2d49a;
  --hk-brown: #3a2130;
  --hk-slime: #7ccf3c;
  /* Pixelify Sans for titles and buttons; VT323 for reading, where its digits stay clear. */
  --hk-font: "HK Digits", "Pixelify Sans", "Archivo", monospace;
  --hk-text: "VT323", "Plex Mono", monospace;
  /* One game pixel on screen. */
  --px: clamp(2px, 0.28vw, 4px);
  color: var(--hk-cream);
  font-family: var(--hk-text);
  font-size: 21px;
  font-weight: 400;
}

body.theme-heckled-knight {
  background: #1d1028;
}

.hk-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hk-hero img,
.hk-section img,
.hk-band img {
  image-rendering: pixelated;
}

/* Screenshots, the key art and store badges are not pixel art. */
.hk-hero .store-badge img,
.hk-band .store-badge img,
.hk-section .hk-frame img,
.hk-band .hk-frame img {
  image-rendering: auto;
}

/* Sky: the game's three parallax layers. */
.hk-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #2a1840;
}

.hk-sky-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 100%;
}

.hk-hills {
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: auto 100%;
  image-rendering: pixelated;
}

.hk-hills--far {
  background-image: url(/images/heckled-knight/pixel/bg-far.webp);
}

.hk-hills--near {
  background-image: url(/images/heckled-knight/pixel/bg-near.webp);
}

.hk-cloud {
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: pixelated;
  opacity: 0.85;
}

.hk-cloud--1 {
  top: 8%;
  left: 6%;
  width: calc(123 * var(--px) * 1.2);
  aspect-ratio: 123 / 77;
  background-image: url(/images/heckled-knight/pixel/cloud1.webp);
}

.hk-cloud--2 {
  top: 22%;
  left: 58%;
  width: calc(164 * var(--px));
  aspect-ratio: 164 / 52;
  background-image: url(/images/heckled-knight/pixel/cloud2.webp);
  opacity: 0.6;
}

.hk-cloud--3 {
  top: 4%;
  left: 78%;
  width: calc(94 * var(--px));
  aspect-ratio: 94 / 73;
  background-image: url(/images/heckled-knight/pixel/cloud3.webp);
  opacity: 0.7;
}

/* Title: the game's letters, the crooked E included. */
.hk-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: calc(2 * var(--px)) calc(12 * var(--px));
  margin-top: clamp(20px, 3vw, 40px);
}

.hk-word {
  display: inline-flex;
  align-items: flex-end;
  gap: calc(1 * var(--px));
}

.hk-title img {
  width: auto;
  height: calc(var(--h) * var(--px) * 1.15);
  filter: drop-shadow(var(--px) var(--px) 0 rgba(29, 16, 40, 0.6));
}

.hk-banner {
  display: inline-grid;
  place-items: center;
  min-width: calc(101 * var(--px) * 1.6);
  min-height: calc(23 * var(--px) * 1.6);
  margin-top: calc(4 * var(--px));
  padding: 0 calc(10 * var(--px)) calc(2 * var(--px));
  background: url(/images/heckled-knight/pixel/banner.webp) center / 100% 100% no-repeat;
  image-rendering: pixelated;
  color: var(--hk-ink);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 700;
  font-family: var(--hk-font);
}

.hk-tagline {
  margin-top: 20px;
  max-width: 24ch;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  text-shadow: calc(var(--px)) calc(var(--px)) 0 var(--hk-ink);
  font-family: var(--hk-font);
}

.hk-lead {
  margin-top: 16px;
  max-width: 46ch;
  color: #f1dfc0;
  font-size: clamp(21px, 1.8vw, 25px);
  line-height: 1.25;
  text-shadow: 1px 1px 0 var(--hk-ink);
}

.hk-actions,
.hk-band .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 24px;
}

.hk-actions + .hk-actions {
  margin-top: 14px;
}

/* The game's buttons as 9-slice images. */
.hk-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 2px 18px;
  border: 10px solid transparent;
  border-image: url(/images/heckled-knight/pixel/button.webp) 5 fill / 10px / 0 stretch;
  background: none;
  color: var(--hk-cream);
  font-family: var(--hk-font);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  image-rendering: pixelated;
  transition: transform 0.1s steps(2);
}

.hk-btn--gold {
  border-image-source: url(/images/heckled-knight/pixel/button-hover.webp);
  color: var(--hk-ink);
}

.hk-btn svg {
  width: 16px;
  height: 16px;
}

.hk-btn:hover,
.hk-btn:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.hk-btn--gold:hover,
.hk-btn--gold:focus-visible {
  border-image-source: url(/images/heckled-knight/pixel/button.webp);
  color: var(--hk-cream);
}

.hk-frame {
  display: block;
  border: calc(5 * var(--px)) solid transparent;
  border-image: url(/images/heckled-knight/pixel/panel.webp) 5 fill / calc(5 * var(--px)) / 0 stretch;
  image-rendering: pixelated;
}

.hk-frame img,
.hk-frame video {
  display: block;
  width: 100%;
}

/* The Narrator talks in a menu panel, one line after another. */
.hk-say {
  display: grid;
  grid-template-columns: calc(92 * var(--px) * 0.55) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 6px 18px;
  align-items: start;
  padding: 18px 22px 20px 14px;
  border: calc(5 * var(--px)) solid transparent;
  border-image: url(/images/heckled-knight/pixel/panel.webp) 5 fill / calc(5 * var(--px)) / 0 stretch;
  image-rendering: pixelated;
}

.hk-mic {
  grid-row: span 2;
  width: calc(92 * var(--px) * 0.55);
  aspect-ratio: 92 / 97;
  background: url(/images/heckled-knight/pixel/narrator-talk.webp) 0 0 / 200% 100% no-repeat;
  image-rendering: pixelated;
}

.hk-say-name {
  justify-self: start;
  padding: 2px 12px 3px;
  background: var(--hk-gold);
  color: var(--hk-ink);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--hk-font);
}

.hk-say-lines {
  position: relative;
  min-height: 4.4em;
  margin: 0;
  font-size: clamp(23px, 1.9vw, 27px);
  line-height: 1.15;
}

.hk-say-lines p + p {
  display: none;
}

/* Ground with Sir Bülent and the death counter. */
.hk-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(14 * var(--px));
  background: var(--hk-ink);
  box-shadow: 0 calc(-1 * var(--px)) 0 var(--hk-plum);
}

.hk-runner {
  position: absolute;
  left: 0;
  bottom: calc(100% - 2 * var(--px));
  width: calc(47 * var(--px) * 1.6);
  height: calc(54 * var(--px) * 1.6);
  background: url(/images/heckled-knight/pixel/knight-run.webp) 0 0 / 600% 100% no-repeat;
  image-rendering: pixelated;
  transform: translateX(8vw);
}

.hk-deaths {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
  color: var(--hk-cream);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--hk-font);
}

.hk-deaths img {
  width: calc(16 * var(--px) * 0.6);
  height: auto;
}

.hk-deaths b {
  min-width: 3ch;
  color: var(--hk-gold);
}

.hk-deaths b::after {
  counter-reset: deaths var(--hk-deaths);
  content: counter(deaths);
}

/* Hero */
.hk-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 0 calc(14 * var(--px) + 54 * var(--px) * 1.6 + 32px);
}

.hk-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: rgba(251, 236, 200, 0.8);
  font-size: 19px;
}

.hk-crumbs a {
  color: var(--hk-cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}

/* Sections */
.hk-section {
  position: relative;
  overflow-x: clip;
  padding: clamp(64px, 9vw, 120px) 0;
}

.hk-section--night {
  background-color: var(--hk-ink);
  background-image: radial-gradient(rgba(251, 236, 200, 0.35) 1px, transparent 1.6px);
  background-size: 64px 64px;
}

.hk-section--night + .hk-section--night {
  padding-top: 0;
}

.hk-section--dusk {
  background: linear-gradient(180deg, var(--hk-ink) 0%, #3b2150 40%, #6b3a5e 100%);
}

.hk-section--parchment {
  background: var(--hk-parchment);
  color: var(--hk-brown);
}

.hk-section--parchment + .hk-section--parchment {
  padding-top: 0;
}

.hk-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.hk-num {
  padding: 4px 12px;
  background: var(--hk-gold);
  box-shadow: 0 4px 0 var(--hk-gold-dark);
  color: var(--hk-ink);
  font-size: 20px;
  font-weight: 700;
  font-family: var(--hk-font);
}

.hk-head h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 4px 4px 0 var(--hk-ink);
  font-family: var(--hk-font);
}

.hk-section--parchment .hk-head h2 {
  text-shadow: 3px 3px 0 rgba(58, 33, 48, 0.18);
}

.hk-note {
  grid-column: 1 / -1;
  max-width: 60ch;
  font-size: clamp(21px, 1.7vw, 24px);
  opacity: 0.9;
}

.hk-sub {
  margin: clamp(48px, 6vw, 80px) 0 24px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  text-shadow: 3px 3px 0 var(--hk-ink);
  font-family: var(--hk-font);
}

/* Feature cards on parchment */
.hk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  border: 0;
}

.hk-cards li {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 22px 24px 26px;
  border: calc(8 * var(--px)) solid transparent;
  border-image: url(/images/heckled-knight/pixel/parchment.webp) 8 fill / calc(8 * var(--px)) / 0 stretch;
  image-rendering: pixelated;
  color: var(--hk-brown);
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.2;
}

.hk-cards li::before {
  content: none;
}

.hk-cards img {
  width: calc(16 * var(--px) * 1.4);
  height: auto;
}

/* H.K. rerolls */
.hk-reroll {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 12px 40px;
  align-items: start;
  margin-top: clamp(56px, 7vw, 96px);
}

.hk-reroll-q {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--hk-gold);
  text-shadow: 3px 3px 0 #5a2d00;
  font-family: var(--hk-font);
}

.hk-reroll-note {
  grid-column: 1;
  font-size: 22px;
  opacity: 0.85;
}

.hk-reroll-list {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hk-reroll-list li {
  padding: 6px 14px 7px;
  border: 3px solid var(--hk-plum);
  background: var(--hk-panel);
  font-size: 23px;
}

.hk-reroll-list li:first-child {
  border-color: var(--hk-gold);
  background: var(--hk-gold);
  color: var(--hk-ink);
}

/* Worlds */
.hk-worlds {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hk-worlds li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 16px 16px 18px;
  border: calc(6 * var(--px)) solid transparent;
  border-image: url(/images/heckled-knight/pixel/board.webp) 6 fill / calc(6 * var(--px)) / 0 stretch;
  image-rendering: pixelated;
}

.hk-worlds img {
  grid-row: span 2;
  width: calc(14 * var(--px) * 1.4);
  height: auto;
}

.hk-world-num {
  display: none;
}

.hk-worlds strong {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 2px 2px 0 var(--hk-ink);
  font-family: var(--hk-font);
}

.hk-world-levels {
  font-size: 19px;
  color: #f3d9a8;
}

/* Bosses */
.hk-bosses {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hk-bosses li {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 10px 16px;
  border: calc(5 * var(--px)) solid transparent;
  border-image: url(/images/heckled-knight/pixel/panel.webp) 5 fill / calc(5 * var(--px)) / 0 stretch;
  image-rendering: pixelated;
  text-align: center;
}

.hk-boss-art {
  display: grid;
  place-items: end center;
  height: 140px;
}

.hk-boss-art img {
  max-width: 100%;
  max-height: 140px;
  width: auto;
  height: auto;
  min-height: 90px;
  object-fit: contain;
}

.hk-bosses strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  font-family: var(--hk-font);
}

.hk-bosses .is-final {
  border-image-source: url(/images/heckled-knight/pixel/button-hover.webp);
  color: var(--hk-ink);
}

/* Trailer and screens */
.hk-video {
  max-width: 1100px;
}

.hk-video video {
  background: #000;
}

.hk-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.hk-shots a:hover,
.hk-home-screens figure:hover .hk-frame {
  border-image-source: url(/images/heckled-knight/pixel/button-hover.webp);
}

.hk-shots figcaption,
.hk-home-screens figcaption {
  margin-top: 10px;
  font-size: 20px;
  opacity: 0.85;
}

/* Support and related on parchment */
.hk-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(28px, 5vw, 80px);
  align-items: start;
}

.hk-split .hk-head {
  margin-bottom: 0;
}

.hk-section .link-list {
  border-top: 3px solid var(--hk-brown);
}

.hk-section .link-list a {
  border-bottom: 3px solid rgba(58, 33, 48, 0.3);
}

.hk-section .link-list strong {
  font-family: var(--hk-font);
  font-size: 22px;
  font-weight: 700;
}

.hk-section .link-list span {
  color: #6b4b3a;
}

.hk-section .link-list a:hover {
  background: var(--hk-gold);
  color: var(--hk-ink);
}

.hk-more .rows {
  border-top: 3px solid var(--hk-brown);
  font-family: var(--font);
}

.hk-more .row {
  border-bottom-color: rgba(58, 33, 48, 0.3);
}

.hk-more .row:hover,
.hk-more .row:focus-visible {
  background: var(--hk-panel);
  color: var(--hk-cream);
}

/* Homepage section */
.hk-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(56px, 7vw, 96px) 0 calc(14 * var(--px) + 54 * var(--px) * 1.6 + 32px);
}

.hk-band .bar {
  font-family: var(--font);
  text-shadow: 1px 1px 0 var(--hk-ink);
}

.hk-band .bar .label,
.hk-band .text-link {
  color: var(--hk-cream);
}

.hk-band .text-link:hover {
  color: var(--hk-gold);
}

.hk-home {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(20px, 3vw, 40px);
}

.hk-home-side {
  display: grid;
  gap: 18px;
  margin-top: clamp(20px, 3vw, 40px);
}

.hk-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hk-facts li {
  padding: 5px 12px 6px;
  background: rgba(29, 16, 40, 0.72);
  border: 3px solid var(--hk-plum);
  font-size: 21px;
}

.hk-small {
  display: inline-block;
  margin-top: 18px;
  color: var(--hk-cream);
  font-size: 21px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hk-small:hover {
  color: var(--hk-gold);
}

.hk-home-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(40px, 5vw, 64px);
}

.hk-home-screens figcaption {
  text-shadow: 1px 1px 0 var(--hk-ink);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hk-hills--far {
    animation: hk-pan 90s linear infinite;
  }

  .hk-hills--near {
    animation: hk-pan 45s linear infinite;
  }

  .hk-cloud {
    animation: hk-drift 70s linear infinite;
  }

  .hk-cloud--2 {
    animation-duration: 110s;
    animation-delay: -40s;
  }

  .hk-cloud--3 {
    animation-duration: 90s;
    animation-delay: -70s;
  }

  .hk-hero .hk-title img {
    animation: hk-drop 0.45s calc(0.15s + var(--i) * 0.06s) cubic-bezier(0.3, 1.5, 0.5, 1) both;
  }

  .hk-hero .hk-banner {
    animation: hk-pop 0.35s 1s steps(4) both;
  }

  .hk-mic {
    animation: hk-talk 0.36s steps(1) infinite;
  }

  .hk-say-lines p + p {
    display: block;
  }

  .hk-say-lines p {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: hk-line 18s infinite;
    animation-delay: calc(var(--i) * 4.5s);
  }

  .hk-runner {
    animation: hk-run 0.5s steps(6) infinite, hk-cross 11s linear infinite;
  }

  .hk-deaths b {
    animation: hk-count 600s steps(600) infinite;
  }

  .hk-reroll-list li {
    animation: hk-pick 16s steps(1) infinite;
    animation-delay: calc(var(--i) * 2s);
  }

  .hk-reroll-list li:first-child {
    border-color: var(--hk-plum);
    background: var(--hk-panel);
    color: var(--hk-cream);
  }

  .hk-bosses li:hover .hk-boss-art img {
    animation: hk-hop 0.4s steps(3);
  }
}

@keyframes hk-pan {
  to { background-position-x: -960px; }
}

@keyframes hk-drift {
  from { transform: translateX(-40vw); }
  to { transform: translateX(120vw); }
}

@keyframes hk-drop {
  from { transform: translateY(-120%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes hk-pop {
  from { transform: scale(0); }
  to { transform: none; }
}

@keyframes hk-talk {
  0% { background-position: 0 0; }
  50% { background-position: 100% 0; }
}

@keyframes hk-line {
  0% { opacity: 1; clip-path: inset(0 100% 0 0); animation-timing-function: steps(28); }
  11% { opacity: 1; clip-path: inset(0); }
  24% { opacity: 1; clip-path: inset(0); }
  25%, 100% { opacity: 0; clip-path: inset(0); }
}

@keyframes hk-run {
  to { background-position: 120% 0; }
}

@keyframes hk-cross {
  from { transform: translateX(-12vw); }
  to { transform: translateX(110vw); }
}

@keyframes hk-count {
  to { --hk-deaths: 600; }
}

@keyframes hk-pick {
  0%, 12.4% { border-color: var(--hk-gold); background: var(--hk-gold); color: var(--hk-ink); }
  12.5%, 100% { border-color: var(--hk-plum); background: var(--hk-panel); color: var(--hk-cream); }
}

@keyframes hk-hop {
  50% { transform: translateY(-12px); }
}

@keyframes hk-in-up {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Scroll reveals where supported; content stays in place elsewhere. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hk-band .hk-title img {
      animation: hk-drop linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i) * 4%) entry 100%;
    }

    .hk-cards li,
    .hk-worlds li,
    .hk-bosses li,
    .hk-shots figure,
    .hk-home-screens figure {
      animation: hk-in-up linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i) * 6%) entry 100%;
    }

    .hk-head h2 {
      animation: hk-in-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}

/* Layout */
@media (max-width: 1024px) {
  .hk-hero-grid,
  .hk-home,
  .hk-split,
  .hk-reroll {
    grid-template-columns: 1fr;
  }

  .hk-reroll-list {
    grid-column: 1;
    grid-row: auto;
  }

  .hk-worlds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hk-bosses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hk-cards,
  .hk-shots,
  .hk-home-screens {
    grid-template-columns: 1fr;
  }

  .hk-bosses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hk-worlds {
    grid-template-columns: 1fr;
  }

  .hk-say {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hk-mic {
    width: 72px;
  }

  .hk-deaths {
    font-size: 13px;
  }
}
