@font-face {
  font-family: Gambit Rocker;
  src: url("fonts/GambitRocker-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Gambit Pixel;
  src: url("fonts/MxPlus_HP_100LX_8x8.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #11131e;
  --surface: #1b1e33;
  --surface-raised: #272b4c;
  --ivory: #eff1ec;
  --muted: #bcc3da;
  --outline: #4f5884;
  --periwinkle: #8298d9;
  --grass-dark: #769656;
  --grass-light: #eeeed2;
  --board-frame: #4f4730;
  --wine: #772a2b;
  --display: "Gambit Rocker", Georgia, serif;
  --pixel: "Gambit Pixel", Consolas, monospace;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ivory); background: radial-gradient(ellipse at 75% 10%, #1e2940, transparent 52rem), var(--ink); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2; background: repeating-linear-gradient(transparent 0 3px, #0a0a190d 3px 4px); }
a { color: inherit; text-decoration: none; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
img { display: block; image-rendering: pixelated; }
.shell { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.top { background: #131523; border-bottom: 1px solid var(--outline); }
.top-inner { display: grid; grid-template-columns: 1fr minmax(220px, 318px) auto; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; justify-self: start; gap: 13px; }
.brand img { width: 120px; image-rendering: auto; }
.brand span, .home, .sections, .eyebrow, .button { font-family: var(--pixel); }
.brand span { color: var(--periwinkle); font-size: 16px; text-transform: uppercase; border-left: 1px solid var(--outline); padding-left: 12px; }
.home { justify-self: end; font-size: 14px; color: var(--muted); }
.home:hover, .crumb:hover { color: var(--ivory); }
.search-wrap label { display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--ink); border: 1px solid var(--outline); }
.search-icon { width: 12px; height: 12px; border: 2px solid var(--periwinkle); position: relative; flex: 0 0 auto; }
.search-icon::after { content: ""; width: 6px; height: 2px; background: var(--periwinkle); position: absolute; top: 9px; left: 7px; rotate: 45deg; }
.search-wrap input { background: transparent; border: 0; color: var(--ivory); font: inherit; min-width: 0; width: 100%; padding: 8px 0; }
.search-wrap input::placeholder { color: var(--muted); }
.nav-bar { border-bottom: 1px solid var(--outline); background: #191b2c; }
.sections { font-size: 14px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 3px; }
.sections a { padding: 10px 17px 8px; color: var(--muted); border-bottom: 3px solid transparent; }
.sections a:hover { color: var(--ivory); background: var(--surface-raised); }
.sections a[aria-current] { color: var(--ivory); background: #303560; border-color: var(--periwinkle); }
.run-link { margin-left: auto; }
#main { padding-block: 33px 48px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: 2.15rem; }
h3 { font-size: 1.45rem; }
.intro { margin-bottom: 25px; }
.intro > p { margin: 8px 0 0; color: var(--muted); font-size: 1.12rem; }
.eyebrow { color: #b2c4fa; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 9px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 294px; background: #20243d; border: 1px solid var(--periwinkle); box-shadow: 5px 5px 0 #0b0c16; }
.feature-copy { padding: clamp(22px, 3vw, 39px); align-self: center; }
.feature h2 { font-size: clamp(3.1rem, 6vw, 5rem); }
.feature-copy > p:not(.eyebrow) { color: var(--muted); max-width: 38ch; margin: 9px 0 21px; }
.button { font-size: 14px; display: inline-block; color: var(--ivory); background: #3d4180; border: 5px solid transparent; border-image: url("images/ui-panel.png") 2 fill / 5px stretch; image-rendering: pixelated; padding: 5px 13px; min-height: 42px; }
.button:hover { background: #515da0; border-image-slice: 2; }
.button:active { translate: 2px 2px; }
.feature-art { background: var(--wine); overflow: hidden; position: relative; display: grid; place-items: center; isolation: isolate; min-height: 260px; }
.feature-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, #0c0e2429 0 1px, transparent 1px 9px); }
.mini-board { width: min(400px, 80%); aspect-ratio: 2 / 1; transform: rotate(-8deg); position: relative; background: conic-gradient(var(--grass-light) 25%, var(--grass-dark) 0 50%, var(--grass-light) 0 75%, var(--grass-dark) 0) 0 0 / 25% 50%; outline: 5px solid #24251a; box-shadow: 0 0 0 10px var(--board-frame), 10px 13px 0 #1b1019b0; }
.board-piece { width: 11%; height: 23%; object-fit: contain; position: absolute; filter: drop-shadow(2px 3px 0 #191a1760); }
.rook { left: 13%; top: 26%; }
.pawn { right: 13%; bottom: 1%; }
.knight { right: 1%; top: 26%; }
.boss-portrait { width: 40%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(8deg); outline: 3px solid #f3aa69; border: 5px solid #27191c; box-shadow: 8px 9px #211423a6; }
.browse { margin-top: 30px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 13px; min-height: 90px; border: 1px solid var(--outline); background: var(--surface); box-shadow: 3px 3px 0 #0b0c16; }
.tile:hover { border-color: var(--periwinkle); background: var(--surface-raised); }
.tile img, .article-header img { object-fit: contain; background: #353b67; outline: 1px solid var(--outline); }
.tile img { width: 54px; height: 54px; flex: 0 0 auto; padding: 5px; }
.tile p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.article { max-width: 770px; }
.crumb { display: inline-block; color: #b2c4fa; font-family: var(--pixel); margin-bottom: 21px; }
.article-header { display: flex; gap: 24px; align-items: center; padding: 20px; background: var(--surface-raised); border: 1px solid var(--outline); }
.article-header img { width: 104px; height: 104px; }
.article-header h1 { overflow-wrap: anywhere; }
.article-body { margin-top: 24px; border-top: 1px solid var(--outline); padding-top: 23px; }
.article-body p, .article-body li { color: var(--muted); }
.article-body li + li { margin-top: 8px; }

@media (max-width: 820px) {
  .shell { width: calc(100% - 38px); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { grid-template-columns: 1fr auto; gap: 9px 16px; padding-block: 12px; }
  .search-wrap { grid-column: 1 / -1; grid-row: 2; }
  .sections a { padding-inline: 9px; }
  .run-link { margin-left: 0; }
  #main { padding-block: 25px 36px; }
  .feature { grid-template-columns: 1fr; }
  .feature-art { grid-row: 1; min-height: 183px; border-bottom: 1px solid var(--outline); }
  .mini-board { width: min(260px, 73%); }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 72px; }
  .article-header { padding: 12px; gap: 14px; }
  .article-header img { width: 72px; height: 72px; }
}


[hidden] { display: none !important; }
.landing { --landing-header-height: 64px; }
.landing-header { position: sticky; top: 0; z-index: 3; }
.landing-header-inner { min-height: calc(var(--landing-header-height) - 1px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.landing-brand { font: 28px/1 var(--display); }
.landing-nav { display: flex; align-items: center; gap: clamp(4px, 1vw, 12px); }
.social-link { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); }
.social-link:hover { color: var(--ivory); background: var(--surface-raised); }
.social-link svg { display: block; }
.landing-wiki { text-align: center; min-width: 76px; }
@media (max-width: 420px) {
  .landing-header-inner { gap: 8px; }
  .landing-brand { font-size: 24px; }
  .landing-wiki { min-width: 55px; padding-inline: 5px; }
}
.landing-hero { min-height: calc(100svh - var(--landing-header-height)); display: grid; place-items: center; padding: clamp(12px, 4vw, 48px); }
.postcard {
  display: grid;
  grid-template: 1fr auto 1fr / 1fr;
  justify-items: center;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  width: min(100%, 1120px);
  min-height: clamp(510px, 75svh, 690px);
  background: radial-gradient(ellipse at 80% 30%, #5f472b, transparent 53%), #191927;
  border: 1px solid #8d7755;
  box-shadow: 8px 8px #0a0b14;
}
.postcard::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #a9926855;
  pointer-events: none;
  z-index: -1;
}
.postcard-board {
  position: absolute;
  left: -2%;
  bottom: -17%;
  width: clamp(235px, 41%, 460px);
  transform: perspective(900px) rotateX(29deg) rotateZ(-12deg);
  opacity: .68;
  image-rendering: auto;
  z-index: -4;
  pointer-events: none;
}
.postcard-pieces {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.postcard-holy {
  position: absolute;
  width: clamp(36px, var(--size), 128px);
  aspect-ratio: 72 / 46;
  left: var(--x);
  bottom: var(--y);
  rotate: var(--angle);
  animation: holy-drift 5.5s ease-in-out var(--delay) infinite alternate;
  z-index: -3;
}
.scatter-jester-king { --x: 6%; --y: 17%; --size: 10%; --angle: -23deg; --delay: 0s; opacity: 0.84; }
.scatter-necro { --x: 12%; --y: 61%; --size: 12%; --angle: -11deg; --delay: -0.9s; opacity: 0.88; }
.scatter-bounty-king { --x: 33%; --y: 5%; --size: 11%; --angle: 8deg; --delay: -1.8s; opacity: 0.91; }
.scatter-judge-king { --x: 48%; --y: 12%; --size: 9.5%; --angle: 13deg; --delay: -2.7s; opacity: 0.78; }
.scatter-death-king { --x: 59%; --y: 4%; --size: 10.5%; --angle: -9deg; --delay: -3.6s; opacity: 0.77; }
.holy-wing-layer, .holy-king-layer { position: absolute; inset: 0; overflow: hidden; }
.holy-wing-layer { --frames: 6; --duration: .5s; }
.holy-king-layer { --frames: 12; --duration: 1s; }
.postcard-holy img {
  width: calc(var(--frames) * 100%);
  height: 100%;
  max-width: none;
  image-rendering: auto;
  animation: holy-frames var(--duration) steps(var(--frames)) var(--delay) infinite;
}
@keyframes holy-frames { to { transform: translateX(-100%); } }
@keyframes holy-drift {
  from { translate: 0 -4px; }
  to { translate: 0 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .postcard-holy, .postcard-holy img { animation: none; }
}
.postcard-king {
  position: absolute;
  width: auto;
  height: 93%;
  max-width: 56%;
  object-fit: contain;
  object-position: bottom right;
  right: 0;
  bottom: 0;
  image-rendering: auto;
  z-index: -2;
}
.postcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 25%, #141322b3 49%, transparent 75%), linear-gradient(0deg, #121321 0, transparent 30%);
  z-index: -1;
}
.postcard-copy { align-self: end; text-align: center; padding-inline: 20px; margin-bottom: 28px; }
.postcard-copy img { width: min(445px, 66vw); image-rendering: auto; filter: drop-shadow(3px 5px #13101b); }
.postcard-copy p, .wishlist-platforms { font-family: var(--pixel); text-shadow: 2px 2px #13101b; }
.postcard-copy p { margin: 9px 0 0; color: #f3db9d; font-size: clamp(12px, 2.4vw, 16px); text-transform: uppercase; }
.wishlist-now {
  display: grid;
  place-items: center;
  min-width: min(264px, 100%);
  max-width: calc(100% - 24px);
  text-align: center;
  min-height: 58px;
  padding: 6px 17px;
  color: #221611;
  background: #e9bc68;
  border: 2px solid #fce4a1;
  box-shadow: inset -3px -3px #a97033, 5px 5px #13101b;
  font: 18px var(--pixel);
}
.wishlist-now:hover { background: #f6d584; }
.wishlist-now:active { translate: 2px 2px; }
.wishlist-platforms { align-self: start; color: #e6decb; font-size: 12px; margin: 16px 12px; text-align: center; }

@media (max-width: 600px) {
  .postcard-king { height: 87%; max-width: 100%; right: -50px; opacity: .61; }
  .postcard::before { background: linear-gradient(0deg, #121321, #15142366 56%, #15142329); }
  .postcard-copy img { width: min(410px, 70vw); }
  .postcard-board { left: -15%; bottom: -9%; opacity: .57; }
  .postcard-pieces { opacity: .75; }
  .scatter-necro { --x: 6%; --y: 65%; }
}




.trailer { padding-block: clamp(25px, 5vw, 60px) clamp(48px, 8vw, 100px); }
.trailer h2 { margin-bottom: 18px; font-size: clamp(2rem, 4.7vw, 3.4rem); }
.trailer-frame { aspect-ratio: 16 / 9; background: #191927; border: 1px solid var(--outline); box-shadow: 6px 6px #0a0b14; }
.trailer-frame iframe, .trailer-poster { display: block; width: 100%; height: 100%; border: 0; }
.trailer-poster {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  cursor: pointer;
  color: var(--ivory);
  font: clamp(13px, 2.5vw, 18px) var(--pixel);
  background: linear-gradient(#11132133, #111321bb),
    url("https://i.ytimg.com/vi/xvCTxyFniPQ/hqdefault.jpg") center / cover no-repeat, #20243d;
}
.trailer-play { display: grid; place-items: center; width: 60px; height: 52px; background: #e9bc68; border: 2px solid #fce4a1; box-shadow: 4px 4px #13101b; }
.trailer-play::before { content: ""; border: 10px solid transparent; border-left: 16px solid #221611; transform: translateX(5px); }
.trailer-poster:hover .trailer-play { background: #f6d584; }
.trailer-link { display: inline-block; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; margin-top: 15px; }
.trailer-link:hover { color: var(--ivory); }


.tile p.piece-value, .article-body .piece-value { color: #b2c4fa; font-family: var(--pixel); }
.article-body .piece-value { margin-top: 0; }
.article-body ul + h2 { margin-top: 25px; }

.motion-example { width: min(100%, 290px); margin: 16px 0 20px; }
.motion-example label { display: block; color: var(--muted); margin-bottom: 5px; }
.motion-example select { width: 100%; padding: 6px 8px; margin-bottom: 10px; color: var(--ivory); background: var(--surface); border: 1px solid var(--outline); font: inherit; }
.motion-example select:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 2px; }
.motion-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border: 2px solid #697654; }
.motion-cell { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.motion-cell.light { background: var(--grass-light); color: #303a25; }
.motion-cell.dark { background: var(--grass-dark); color: #111915; }
.motion-cell img { width: 87%; height: 87%; object-fit: contain; }
.motion-dot, .motion-capture { display: block; width: 12px; height: 12px; border-radius: 50%; }
.motion-dot { background: #20373f; border: 1px solid #e1f0d2; }
.motion-capture { border: 2px solid #7a2829; background: #f5dfaa; }
.motion-rank, .motion-file { position: absolute; font: 10px/1 var(--pixel); }
.motion-rank { top: 2px; left: 2px; }
.motion-file { right: 2px; bottom: 2px; }
.motion-legend { display: flex; flex-wrap: wrap; gap: 5px 15px; margin: 8px 0 0; font-size: 14px; }
.motion-legend span { display: inline-flex; align-items: center; gap: 5px; }
.motion-note { font-size: 14px; margin: 5px 0 0; }

.ability-demo, .related-pieces { margin-bottom: 24px; }
.ability-demo h2, .related-pieces h2 { margin-bottom: 10px; }
.ability-demo video { display: block; width: min(100%, 440px); height: auto; aspect-ratio: 115 / 131; background: #191b2c; border: 1px solid var(--outline); }
.ability-demo p { max-width: 640px; margin: 8px 0 0; }
.related-pieces > p { margin: 0 0 10px; }
.related-pieces ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.related-pieces ul li + li { margin-top: 0; }
.related-pieces a { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--outline); }
.related-pieces a:hover { background: var(--surface-raised); border-color: var(--periwinkle); }
.related-pieces img { width: 46px; height: 46px; object-fit: contain; }
.related-pieces h3 { color: var(--ivory); }
.related-pieces a p { margin: 3px 0 0; }
