@font-face {
  font-family: Cinzel;
  src: url("/assets/fonts/cinzel.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f7ebd5;
  --muted: #ced7de;
  --fine: #aebbc3;
  --bg: #0b1420;
  --panel: #142531;
  --edge: #38464c;
  --metal: #776243;
  --accent: #efd095;
  --accent-ink: #281701;
  --serif: Cinzel, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.05rem/1.6 var(--sans); }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { color: #fff1c8; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, p, dl, dd, ul { margin: 0; }
h1, h2 { font: 550 2.2rem/1.15 var(--serif); text-wrap: balance; }
p { color: var(--muted); }
.hb-wrap { width: min(100% - 4rem, 74rem); margin-inline: auto; }
.hb-skip { position: absolute; inset: .75rem auto auto .75rem; z-index: 9; background: var(--bg); padding: .5rem 1rem; transform: translateY(-150%); }
.hb-skip:focus { transform: none; }

.hb-header { background: #0c151f; border-bottom: 1px solid var(--metal); }
.hb-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; min-height: 4.75rem; }
.hb-brand, .hb-nav a, .hb-language { color: var(--ink); text-decoration: none; }
.hb-brand { display: inline-flex; width: fit-content; align-items: center; }
.hb-brand img { display: block; width: 9.6rem; height: auto; }
.hb-nav { display: flex; align-items: stretch; gap: 1.5rem; align-self: stretch; }
.hb-nav a { display: grid; align-items: center; padding: .65rem 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.hb-nav a:hover, .hb-nav [aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.hb-actions { justify-self: end; display: flex; align-items: center; gap: 1rem; }
.hb-language { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.hb-language:hover { text-decoration: underline; }

.hb-button { display: inline-flex; min-height: 3.18rem; align-items: center; justify-content: center; padding: .66rem 1.32rem; border: 1px solid #f3d39b; border-radius: .2rem; background: linear-gradient(180deg, #ffdf9d, #dba955); box-shadow: inset 0 0 0 1px #5d360d32, 0 4px 18px #080f1755; color: var(--accent-ink); font-weight: 700; text-decoration: none; line-height: 1.25; text-align: center; }
.hb-button:hover { background: #ffdf9d; color: var(--accent-ink); }
.hb-top-play { min-height: 2.5rem; padding-inline: .88rem; font-size: .9rem; white-space: nowrap; }
.hb-secondary { background: #111d29; border-color: var(--metal); color: var(--ink); }
.hb-secondary:hover { background: #1e3240; color: var(--ink); border-color: var(--accent); }

.hb-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 31.5rem; overflow: hidden; background: #101d2a; border-bottom: 1px solid var(--metal); }
.hb-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #0b1420 4%, #0d1824f2 30%, #0d1824a0 69%, #0d1824d6 100%), url("/assets/gameplay/portal.webp") 92% 44% / min(57rem, 69vw) auto no-repeat; }
.hb-hero-content { padding-block: 4.6rem 4.85rem; }
.hb-eyebrow { display: flex; align-items: center; gap: .68rem; margin-bottom: 1.05rem; color: #f1d199; font-size: .93rem; font-weight: 700; letter-spacing: .115em; text-transform: uppercase; }
.hb-hero h1 { color: #fff0d2; font-size: clamp(3.75rem, 6.6vw, 6.5rem); letter-spacing: -.055em; line-height: .97; text-shadow: 0 8px 30px #0a151cc4; }
.hb-hero-copy > p { max-width: 33rem; margin-top: 1.35rem; font-size: clamp(1.12rem, 1.8vw, 1.36rem); color: #e1e8eb; text-wrap: pretty; }
.hb-hero-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.9rem; }
.hb-hero-inner { min-height: 22rem; }
.hb-hero-inner .hb-hero-content { padding-block: 3.4rem; }
.hb-hero-inner h1 { max-width: 18ch; font-size: clamp(2.55rem, 5.4vw, 5.1rem); letter-spacing: -.045em; line-height: 1.06; }

.hb-snapshot { margin: 1.2rem 0 0; padding: .42rem; border: 1px solid var(--metal); background: #101f2a; box-shadow: 0 10px 30px #080e1570; }
.hb-snapshot img { display: block; width: 100%; height: auto; }
.hb-snapshot figcaption { padding: .45rem .46rem .13rem; color: var(--muted); font-size: .92rem; }

.hb-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--edge); }
.hb-facts > div { padding: 1.2rem 1rem 1.24rem 1.45rem; border-left: 1px solid var(--edge); }
.hb-facts > div:first-child { padding-inline-start: 0; border: 0; }
.hb-facts dt { color: var(--fine); font-size: .875rem; }
.hb-facts dd { margin-top: .12rem; font-size: 1.05rem; font-weight: 580; }

.hb-practice { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); align-items: center; gap: 3.25rem; padding-block: 3.75rem 3.25rem; }
.hb-practice h2 { font-size: clamp(1.64rem, 2.8vw, 2.55rem); letter-spacing: -.035em; }
.hb-practice h2 + p { margin-top: .63rem; }
.hb-practice-card {
  padding: clamp(1rem, 2vw, 1.65rem);
  border: 1px solid #786343;
  background: radial-gradient(ellipse at center top, #263f35, #101d1e 75%);
  box-shadow: inset 0 0 0 3px #152218, 0 .9rem 2rem #050d1373;
}
.hb-practice-field { min-inline-size: 0; padding: 0; margin: 1.12rem 0 0; border: 0; }
.hb-practice-grid {
  width: min(100%, 25rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.24rem, .7vw, .52rem);
  padding: .56rem;
  background: #0a141b;
  border: 1px solid #536255;
  box-shadow: inset 0 0 1.25rem #0009;
}
.hb-stone {
  position: relative; display: grid; place-items: center;
  padding: .23rem; aspect-ratio: 1; border: 1px solid #3b4d4b;
  border-radius: .3rem; background: #14232b; cursor: pointer;
}
.hb-stone:not([aria-disabled="true"]):hover { border-color: #d9d7bc; background: #24363a; }
.hb-stone[aria-pressed="true"] { border-color: #ffe19f; background: #66512b; box-shadow: 0 0 .65rem #f9c76864; }
.hb-stone[aria-disabled="true"], .hb-practice-field:disabled .hb-stone { cursor: default; }
.hb-stone span {
  width: 100%; height: 100%; display: block;
  background: url("/assets/gameplay/arena-gems.webp") var(--tile-x) center / 500% 100% no-repeat;
  border-radius: 17%;
}
.hb-stone[data-element="water"] { --tile-x: 0%; }
.hb-stone[data-element="fire"] { --tile-x: 25%; }
.hb-stone[data-element="nature"] { --tile-x: 50%; }
.hb-stone[data-element="light"] { --tile-x: 75%; }
.hb-stone[data-element="dark"] { --tile-x: 100%; }
.hb-stone.hb-stone-match { border-color: #9eeafa; background: #28778a; box-shadow: 0 0 .88rem #61ddea66; }
.hb-practice-controls { display: flex; justify-content: space-between; align-items: center; gap: .55rem 1rem; flex-wrap: wrap; margin-top: .9rem; }
.hb-practice-feedback { flex: 1 1 9rem; font-size: .94rem; color: #f2e9d1; }
.hb-practice-reset {
  border: 1px solid #71654c; border-radius: .2rem; background: #10212a;
  color: #fff0d2; padding: .32rem .56rem; font-size: .91rem; cursor: pointer;
}
.hb-practice-reset:hover { border-color: var(--accent); }
.hb-practice-context > a { display: inline-block; margin-top: .9rem; }

.hb-maiden-section { border-bottom: 1px solid var(--metal); }
.hb-maidens { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .92rem; padding: 0; margin-top: 1.35rem; list-style: none; }
.hb-maiden {
  min-width: 0; position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: .72; display: flex; align-items: end;
  border: 1px solid color-mix(in srgb, var(--stone) 60%, #12141c); background: #152733;
}
.hb-maiden img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hb-maiden::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #0b141c 2%, #0b141cbd 24%, transparent 60%); }
.hb-maiden > div { padding: .8rem 1.1rem; }
.hb-maiden h3 { color: #fbedd0; font: 650 clamp(1.16rem, 2.8vw, 2.15rem)/1.18 var(--serif); margin: 0; }
.hb-maiden p { display: flex; align-items: center; gap: .5rem; margin-top: .24rem; color: #eee5d2; line-height: 1.25; font-size: .91rem; }
.hb-maiden p .hb-gem { width: .62rem; height: .62rem; }

.hb-section { padding-block: 3.5rem; }
.hb-story { border-bottom: 1px solid var(--edge); }
.hb-story-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem,2.5vw,2.3rem); margin-top: 1.4rem; }
.hb-story-cards img { width: 100%; height: auto; display: block; border: 1px solid var(--metal); }
.hb-story-cards h3 { margin: .9rem 0 .3rem; font: 600 clamp(1.15rem,2vw,1.55rem)/1.25 var(--serif); color: var(--accent); }
.hb-story-cards p, .hb-ability-note { color: var(--muted); }
.hb-ability-note { margin-top: .65rem; font-size: .98rem; line-height: 1.4; }
.hb-combat-elements { margin-top: 1.4rem; }
.hb-combat-elements h3 { font: 600 1.4rem/1.25 var(--serif); }
.hb-eyebrow a { color: inherit; }
.hb-stats { width: 100%; margin: 1.15rem 0; border-collapse: collapse; text-align: start; font-variant-numeric: tabular-nums; }
.hb-stats :is(th,td) { padding: .48rem clamp(.15rem,1vw,.7rem); border-bottom: 1px solid var(--edge); text-align: start; }
.hb-stats thead { color: var(--accent); }
.hb-stats tbody tr:last-child { background: var(--panel); }
.hb-shot-marlie-level-two, .hb-shot-frost-guard, .hb-shot-league-reward { max-width: 32rem; }
.hb-shot-marlie-level-two img { max-height: 28rem; object-fit: contain; }
.hb-section > h2, .hb-element-text h2 { font-size: clamp(1.8rem, 3vw, 2.85rem); letter-spacing: -.035em; }
.hb-section > p, .hb-element-text p { margin-top: .72rem; }
.hb-gem { display: inline-block; flex: none; width: .84rem; height: .84rem; transform: rotate(45deg); border: 1px solid #ffffff6a; border-radius: .09rem; background: linear-gradient(145deg, #ffffffb0, transparent 55%), var(--stone, #deb66f); box-shadow: 0 0 16px var(--glow, #e9b96250); }
.hb-topic-title { font: 600 1.39rem/1.2 var(--serif); }
.hb-topic-copy { color: var(--muted); line-height: 1.5; }
.hb-water, .hb-team { --stone: #64a9dc; --glow: #84aceb5c; }
.hb-fire, .hb-combat { --stone: #d98268; --glow: #e499715c; }
.hb-nature { --stone: #72bd9a; --glow: #72bd9a5c; }
.hb-light, .hb-upgrades { --stone: #dec281; --glow: #f3cc775c; }
.hb-dark { --stone: #bf8ae9; --glow: #bf8ae974; }

.hb-elements { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3.4rem; min-height: 10.2rem; padding: 1.65rem 1.8rem; border: 1px solid var(--metal); border-radius: .2rem; background: radial-gradient(ellipse at right, #20414d, #122532 75%); }
.hb-element-text { max-width: 32rem; }
.hb-element-text h2 { font-size: clamp(1.85rem, 2.6vw, 2.55rem); }
.hb-home-articles { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.7rem; padding-top: 3.5rem; }
.hb-prose { overflow-wrap: break-word; }
.hb-prose h2, .hb-chooser h2 { font-size: clamp(1.85rem, 2.7vw, 2.54rem); letter-spacing: -.032em; }
.hb-prose p, .hb-prose ul { margin-top: 1rem; }
.hb-prose ul { color: var(--muted); padding-left: 1.2rem; }
.hb-prose li + li { margin-top: .5rem; }
.hb-faq h2 { margin-bottom: 1.5rem; }
.hb-faq details { border-top: 1px solid var(--edge); }
.hb-faq details:last-child { border-bottom: 1px solid var(--edge); }
.hb-faq summary { display: block; position: relative; padding: 1.08rem 2.45rem 1.08rem 0; font-weight: 620; cursor: pointer; list-style: none; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { position: absolute; right: .55rem; content: "+"; color: var(--accent); }
.hb-faq details[open] summary::after { content: "−"; }
.hb-faq details p { padding: 0 2rem 1.15rem 0; }

.hb-layout { display: grid; grid-template-columns: minmax(11.5rem, 15.5rem) minmax(0, 1fr); gap: 3rem; padding-top: 3.25rem; }
.hb-sidebar nav { position: sticky; top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .66rem; padding: .3rem 1rem 1rem 1.15rem; border-left: 1px solid var(--edge); }
.hb-sidebar h2 { margin-bottom: .35rem; font: 700 .89rem/1.3 var(--sans); color: var(--ink); }
.hb-sidebar a { font-size: .9rem; color: var(--muted); text-decoration: none; }
.hb-sidebar a:hover { color: var(--accent); text-decoration: underline; }
.hb-article > * + * { margin-top: 2.65rem; }
.hb-related { margin-top: 1rem; }
.hb-chooser { padding: 1.35rem 1.4rem 1.45rem; border: 1px solid var(--metal); border-radius: .2rem; background: var(--panel); }
.hb-choices { display: flex; gap: .55rem; flex-wrap: wrap; margin-block: 1rem .9rem; }
.hb-choices button { padding: .55rem .76rem; border: 1px solid var(--edge); border-radius: .2rem; background: #0d1a26; color: var(--ink); cursor: pointer; }
.hb-choices button:hover { border-color: var(--accent); }
.hb-choices [aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.hb-choice-result { min-height: 3.3em; }
.hb-chooser dl { margin-top: 1rem; }
.hb-chooser dt { color: var(--ink); font-weight: 650; }
.hb-chooser dd { margin: .15rem 0 .7rem; color: var(--muted); }

.hb-footer { border-top: 1px solid var(--edge); background: #0b1822; padding-block: 2.05rem; }
.hb-foot-row { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.hb-foot-row p { margin-top: .6rem; font-size: .9rem; }
.hb-foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; font-size: .9rem; }
.hb-foot-links time { color: var(--fine); }

/* Character stage */
.hb-stage { background: #101019; }
.hb-scene { position: relative; isolation: isolate; overflow: clip; background: #120f1b; }
.hb-sky {
  position: absolute; z-index: -2; inset: 0;
  background: linear-gradient(90deg, #0d0b14ab, #13101a55 46%, #110e18c9),
              linear-gradient(0deg, #11101b 0%, transparent 50%),
              url("/assets/amethyst-keep.webp") center 54% / cover;
}
.hb-scene::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0e0c1333 20%, transparent 60%), radial-gradient(ellipse at 82% 45%, var(--glow), transparent 62%); }
.hb-scene-inner { position: relative; display: grid; align-items: center; min-height: clamp(32rem, 42vw, 41rem); }
.hb-title-block { position: relative; z-index: 2; width: min(45%, 32rem); container-type: inline-size; padding: 3.2rem 0 3.6rem; }
.hb-stage-kicker, .hb-strip-inner > p {
  display: flex; align-items: center; gap: .8rem; color: #f1d8a6;
  font: 650 .91rem/1.32 var(--sans); letter-spacing: .13em; text-transform: uppercase;
}
.hb-stage-kicker::before { content: ""; flex: 0 0 2.3rem; height: 1px; background: linear-gradient(90deg, #b4985b33, #f1d8a6); }
.hb-stage h1 {
  margin: .85rem 0 .6rem; width: max-content; max-width: 100%;
  font: 650 clamp(4.5rem, 8.5vw, 8rem)/.99 var(--serif); letter-spacing: -.063em;
  font-size: min(22cqi, clamp(4.5rem, 8.5vw, 8rem)); white-space: nowrap;
  color: #ffdc92; background: linear-gradient(175deg, #fff6d7 12%, #eed29b 45%, #c88c50 79%, #f2cf96 95%);
  background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 10px #100c12);
}
.hb-stage-tagline { max-width: 17em; color: #fff3d9; font: 550 clamp(1.35rem, 2.3vw, 2.05rem)/1.24 var(--serif); text-wrap: balance; }
.hb-stage-intro { max-width: 24rem; margin-top: 1rem; color: #e2dce3; font-size: clamp(1rem, 1.35vw, 1.21rem); line-height: 1.5; }
.hb-stage .hb-button { padding-inline: 1.4rem; min-height: 3.15rem; }
.hb-stage .hb-secondary { background: #191722bc; border-color: #9a8363; }
.hb-stage .hb-secondary:hover { background: #342c36; }
.hb-play-note { display: inline-block; margin-top: .85rem; color: #e5dac8; font-size: .91rem; }
.hb-character { position: absolute; inset: 0 max(-8vw, -8rem) 0 32%; margin: 0; }
.hb-character-art {
  position: absolute; inset: -1.2% -1% -1.2% -1%;
  transform: translate(var(--lean-x, 0), var(--lean-y, 0)); transition: transform .42s ease-out;
  mask-image: linear-gradient(0deg, transparent, black 10%);
}
.hb-character-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: 55% bottom; }
.hb-portraits { position: absolute; inset: .6rem 3% -1.2rem 0; transform-origin: 54% 90%; }
.hb-character figcaption {
  position: absolute; right: max(11%, 2.5rem); bottom: 7%; display: flex; flex-direction: column; align-items: flex-end;
  padding: .6rem 0 .6rem 2rem; color: #fff0d7;
  text-shadow: 0 2px 8px #080711, 0 0 24px #080711, 0 0 4px #080711;
}
.hb-character figcaption::before { position: absolute; content: ""; top: .75rem; bottom: .55rem; right: -.9rem; width: 2px; background: linear-gradient(transparent, var(--stone), transparent); }
.hb-character-name { font: 550 clamp(1.8rem, 3.9vw, 3.75rem)/1.1 var(--serif); letter-spacing: -.055em; }
.hb-character-trait { display: flex; align-items: center; gap: .5rem; color: #fff5da; font-size: .95rem; font-weight: 600; }
.hb-character-trait .hb-gem { width: .55rem; height: .55rem; }
.hb-motes { position: absolute; inset: 0 2% 0 8%; pointer-events: none; overflow: hidden; mask-image: linear-gradient(0deg, transparent, black 16%, black 85%, transparent); }
.hb-motes i {
  position: absolute; left: var(--x); top: var(--y); width: .28rem; aspect-ratio: 1; transform: rotate(45deg);
  background: #fff0c9; box-shadow: 0 0 .55rem .15rem var(--stone); opacity: 0;
}
.hb-motes i:nth-child(1) { --x: 18%; --y: 74%; --t: -2s; }
.hb-motes i:nth-child(2) { --x: 29%; --y: 41%; --t: -3.9s; }
.hb-motes i:nth-child(3) { --x: 43%; --y: 71%; --t: -1s; }
.hb-motes i:nth-child(4) { --x: 54%; --y: 27%; --t: -4.5s; }
.hb-motes i:nth-child(5) { --x: 67%; --y: 85%; --t: -3.1s; }
.hb-motes i:nth-child(6) { --x: 74%; --y: 56%; --t: -5.6s; }
.hb-motes i:nth-child(7) { --x: 83%; --y: 38%; --t: -.6s; }
.hb-motes i:nth-child(8) { --x: 89%; --y: 78%; --t: -6s; }
.hb-motion { position: absolute; right: .3rem; top: 1rem; display: grid; place-items: center; width: 2.65rem; aspect-ratio: 1; border: 1px solid #c4b59680; border-radius: 50%; color: #f4e5c9; background: #141018a8; cursor: pointer; }
.hb-motion:hover { border-color: #fff0c7; }
.hb-motion span { width: .7rem; height: .78rem; border: solid currentColor; border-width: 0 .2rem; }
.hb-motion[aria-pressed="false"] span { height: 0; width: 0; border-width: .4rem 0 .4rem .67rem; border-color: transparent transparent transparent currentColor; }
.hb-cast-strip { position: relative; background: linear-gradient(100deg,#211c24,#19171e 56%,#17141c); border-block: 1px solid #7b6848; }
.hb-strip-inner { min-height: 5.9rem; display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.hb-strip-inner > p { max-width: 8.8rem; font-size: .88rem; letter-spacing: .12em; }
.hb-seals { display: flex; justify-content: space-evenly; align-items: stretch; flex: 1 1 auto; gap: .4rem; align-self: stretch; }
.hb-seal {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .52rem;
  padding: .55rem .35rem; min-width: 0; border: 0; background: transparent; cursor: pointer;
  font: 590 1rem/1.15 var(--serif); color: #c9c0c5;
}
.hb-seal img {
  width: clamp(2.6rem, 3.6vw, 3.7rem); height: auto; border-radius: 50%; border: 1px solid #7a7072;
  padding: 2px; background: #211d24; opacity: .8; transition: border-color .2s, opacity .2s, box-shadow .2s;
}
.hb-seal[aria-pressed="true"], .hb-seal:hover { color: #fff1d5; }
.hb-seal[aria-pressed="true"] img, .hb-seal:hover img { opacity: 1; border-color: var(--stone); box-shadow: 0 0 0 2px #16131c, 0 0 0 3px var(--stone), 0 0 16px var(--glow); }
.hb-seal[aria-pressed="true"]::after { content: ""; position: absolute; bottom: 0; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, transparent, var(--stone), transparent); }
.hb-cast-team { flex: none; font-size: .94rem; }
.hb-film { margin: 1.2rem 0 0; background: #0c111a; border: 1px solid #7b684c; box-shadow: 0 .65rem 2rem #070d17a0; }
.hb-film video { display: block; width: 100%; height: auto; aspect-ratio: 1024/552; background: #070c13; }
.hb-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: 1.65rem; }
.hb-topic { display: grid; position: relative; isolation: isolate; align-content: end; min-height: 14rem; overflow: hidden; padding: 1.25rem; gap: .4rem; color: #fff2dc; text-decoration: none; border: 1px solid #635b50; background: #181820; }
.hb-chapter-combat { --art: url("/assets/gameplay/first-fight.webp"); --pos: 50% 40%; }
.hb-chapter-team { --art: url("/assets/maidens/kissa-hero.webp"); --pos: 55% 29%; }
.hb-chapter-upgrades { --art: url("/assets/maidens/marlie-hero.webp"); --pos: 50% 27%; }
.hb-topic-art { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #111019 4%, #111019e5 26%, #11101920 86%), var(--art) var(--pos) / cover; }
.hb-topic:hover { border-color: #cab378; color: #fff0c8; }
.hb-topic-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.hb-topic-copy { max-width: 32ch; color: #e5dfe7; }
.hb-hero-inner::before { background: linear-gradient(90deg, #101322 8%, #121422ed 32%, #15162255 76%, #10132290), var(--art) right var(--pos-y, 33%) / max(64%, 40rem) auto no-repeat; }
.hb-stone:focus-visible { z-index: 1; }
.hb-stone-match span { filter: brightness(1.18); }
@keyframes hb-float { 0%, 100% { opacity: 0; transform: translate(-.55rem, 1.6rem) rotate(35deg) scale(.45); } 27% { opacity: .76; } 75% { opacity: .42; } 96% { opacity: 0; transform: translate(.8rem, -2.6rem) rotate(110deg) scale(.7); } }
@keyframes hb-breathe { from { transform: translate3d(-2px, 1px, 0) rotate(-.28deg); } to { transform: translate3d(3px, -4px, 0) rotate(.22deg); } }
@keyframes hb-match { 0% { box-shadow: 0 0 0 0 #93f1ffbf; } 100% { box-shadow: 0 0 .6rem .55rem #93f1ff00; } }
@media (prefers-reduced-motion: no-preference) {
  .hb-ready:not(.hb-paused) .hb-character { transition: opacity .22s ease-out; }
  .hb-ready:not(.hb-paused) .hb-character.hb-switching { opacity: 0; transition: opacity .16s ease-in; }
  .hb-ready .hb-motes i { animation: hb-float 7.4s var(--t) ease-in-out infinite; }
  .hb-ready .hb-portraits { animation: hb-breathe 6.5s ease-in-out infinite alternate; }
  .hb-stage.hb-paused .hb-motes i, .hb-stage.hb-paused .hb-portraits { animation-play-state: paused; }
  .hb-topic-art, .hb-maiden img { transition: transform .45s ease-out; }
  .hb-topic:hover .hb-topic-art, .hb-topic:focus-visible .hb-topic-art, .hb-maiden:hover img { transform: scale(1.045); }
  .hb-stone-match { animation: hb-match .7s .22s ease-out 2; }
}
@media (forced-colors: active) {
  .hb-stage h1 { -webkit-text-fill-color: CanvasText; }
  .hb-seal[aria-pressed="true"] { outline: 2px solid Highlight; }
}

@media (max-width: 56rem) {
  .hb-wrap { width: min(100% - 3rem, 74rem); }
  .hb-bar { gap: 0 1rem; grid-template-columns: 1fr auto; padding-top: .65rem; min-height: 0; }
  .hb-nav { grid-column: 1 / -1; grid-row: 2; gap: 1.4rem; margin-top: .4rem; }
  .hb-actions { grid-column: 2; grid-row: 1; }
  .hb-hero { min-height: 31rem; }
  .hb-hero-inner { min-height: 20rem; }
  .hb-hero::before { background-size: auto, max(28rem, 69vw) auto; }
  .hb-practice { gap: 1.65rem; }
  .hb-elements { flex-wrap: wrap; }
  .hb-layout { gap: 1.75rem; grid-template-columns: minmax(9.5rem, 12rem) minmax(0, 1fr); }
  .hb-strip-inner { gap: .65rem; }
  .hb-strip-inner > p { max-width: 6rem; }
  .hb-seal { flex-direction: column; gap: .32rem; font-size: .94rem; }
  .hb-title-block { width: 46%; }
  .hb-maidens { gap: .48rem; }
  .hb-maiden > div { padding: .6rem; }
}

@media (max-width: 39rem) {
  .hb-story-cards { grid-template-columns: 1fr; gap: 1.35rem; }
  .hb-stats { font-size: .92rem; }
  .hb-wrap { width: calc(100% - 2rem); }
  .hb-bar { gap: 0 .5rem; }
  .hb-brand img { width: 8rem; }
  .hb-top-play { display: none; }
  .hb-language { display: flex; align-items: center; min-height: 2.75rem; }
  .hb-nav { justify-content: space-between; gap: .55rem; margin-top: .09rem; }
  .hb-nav a { font-size: .9rem; padding-block: .72rem; }
  .hb-hero { min-height: 0; align-items: end; }
  .hb-hero::before { background: linear-gradient(100deg, #0c1620fa, #0c1620bf 72%, #0b142088), url("/assets/gameplay/portal.webp") 92% 12% / 28rem auto no-repeat; }
  .hb-hero-content, .hb-hero-inner .hb-hero-content { padding-block: 2.65rem 2.1rem; }
  .hb-hero h1 { font-size: clamp(2.8rem, 13vw, 4.9rem); }
  .hb-hero-inner h1 { font-size: clamp(2.2rem, 8.5vw, 4.2rem); }
  .hb-eyebrow { margin-bottom: .9rem; }
  .hb-hero-copy > p { margin-top: 1rem; }
  .hb-hero-links { margin-top: 1.5rem; }
  .hb-facts { grid-template-columns: 1fr 1fr; }
  .hb-facts > div { padding: .78rem 0 .78rem .92rem; }
  .hb-facts > div:nth-child(odd) { padding-inline-start: 0; border-left: 0; }
  .hb-facts > div:nth-child(n+3) { border-top: 1px solid var(--edge); }
  .hb-section { padding-block: 2.3rem; }
  .hb-practice { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 2.05rem 2rem; }
  .hb-maidens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .hb-maiden { aspect-ratio: .78; }
  .hb-maiden > div { padding: .4rem; }
  .hb-maiden h3 { font-size: clamp(.86rem, 4.3vw, 1.23rem); }
  .hb-maiden p { font-size: .875rem; gap: .3rem; }
  .hb-maiden p .hb-gem { display: none; }
  .hb-topics { margin-top: 1.2rem; }
  .hb-elements { padding: 1.12rem; }
  .hb-home-articles { grid-template-columns: 1fr; gap: 1.9rem; padding-top: 2.25rem; }
  .hb-layout { display: block; padding-top: 1.65rem; }
  .hb-sidebar { margin-bottom: 1.85rem; }
  .hb-sidebar nav { position: static; padding-bottom: .2rem; }
  .hb-article > * + * { margin-top: 2rem; }
  .hb-scene-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hb-character { position: relative; inset: auto; width: calc(100% + 2rem); height: clamp(14rem, 66vw, 23rem); margin-inline: -1rem; }
  .hb-character-art { mask-image: linear-gradient(0deg, transparent 0%, black 13%); }
  .hb-portraits { inset: .25rem 6% -.85rem -10%; }
  .hb-character-art img { object-position: 50% 48%; }
  .hb-character figcaption { right: 2rem; bottom: 5%; }
  .hb-character-name { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hb-character-trait { font-size: .88rem; }
  .hb-sky { background-position: center, center, 58% 58%; }
  .hb-title-block { width: 100%; padding: .25rem 0 1.35rem; }
  .hb-title-block::before { content: ""; position: absolute; z-index: -1; inset: -1.1rem -1rem 0; background: linear-gradient(180deg, transparent, #151121b8 25%, #12101be8); }
  .hb-stage-kicker { font-size: .875rem; letter-spacing: .075em; gap: .62rem; }
  .hb-stage-kicker::before { flex-basis: 1.5rem; }
  .hb-stage h1 { font-size: min(22cqi, clamp(3.6rem, 15.4vw, 5.6rem)); margin: .38rem 0; }
  .hb-stage-tagline { max-width: none; font-size: clamp(1.18rem, 4.6vw, 1.52rem); }
  .hb-stage-intro { margin-top: .55rem; max-width: 32rem; }
  .hb-stage .hb-hero-links { gap: .6rem; margin-top: 1.05rem; }
  .hb-stage .hb-hero-links .hb-button { min-height: 2.8rem; padding-inline: .95rem; width: auto; }
  .hb-motion { right: -.25rem; top: .55rem; }
  .hb-strip-inner { flex-wrap: wrap; justify-content: space-between; padding-block: .65rem .34rem; gap: .2rem .4rem; }
  .hb-strip-inner > p { max-width: none; font-size: .875rem; }
  .hb-cast-team { order: 1; font-size: .9rem; }
  .hb-seals { order: 2; flex-basis: 100%; justify-content: space-between; gap: .2rem; }
  .hb-seal { flex: 1; padding-inline: .05rem; font-size: .875rem; }
  .hb-seal img { width: clamp(2.26rem, 10.3vw, 3.2rem); }
  .hb-hero-inner::before { background: linear-gradient(90deg,#101322f5 8%,#111322ce 56%,#1013229e), var(--art) var(--pos) / cover; }
}

@media (max-width: 23rem) {
  .hb-hero-links .hb-button { width: 100%; }
  .hb-nav a { font-size: .87rem; }
}

.hb-stage .hb-hero-links a[rel~=sponsored], .hb-end-play .hb-button {
  padding-inline: 1.65rem; min-height: 3.45rem; font-size: 1.12rem;
  box-shadow: inset 0 0 0 2px #ffecaa5c, 0 .28rem 0 #795629, 0 .55rem 1.5rem #100b11a0;
}
.hb-inline-play { margin-top: 1.1rem; }
.hb-elements { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(15rem,.8fr); }
.hb-element-text { max-width: none; }
.hb-matchups { width: 100%; border-collapse: collapse; font-size: 1rem; text-align: left; }
.hb-matchups thead { color: var(--accent); }
.hb-matchups th, .hb-matchups td { padding: .25rem .45rem; border-bottom: 1px solid #6b77724d; }
.hb-matchups tbody th { font-weight: 450; }
.hb-matchups .hb-gem { width: .65rem; height: .65rem; margin-right: .6rem; }
.hb-end-play { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem clamp(1rem,3vw,2.4rem); margin-block: .5rem 2.5rem; border: 1px solid var(--metal); background: linear-gradient(110deg,#262136,#171b27 72%); }
.hb-end-play > span { font: 600 clamp(1.35rem,2.5vw,2rem)/1.23 var(--serif); }
.hb-end-play small, .hb-dock small { display: block; margin-top: .26rem; font: 500 .91rem/1.35 var(--sans); color: var(--muted); }
.hb-dock { display: none; }
@media (min-width: 56.01rem) {
  html { scroll-padding-top: 6.25rem; }
  .hb-header { position: sticky; top: 0; z-index: 6; }
  .hb-sidebar nav { top: 6rem; }
}
@media (max-width: 56rem) {
  html { scroll-padding-bottom: 5.3rem; }
  .hb-footer { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
  .hb-dock { position: fixed; z-index: 5; bottom: 0; inset-inline: 0; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom)); background: #121722fa; border-top: 1px solid var(--metal); }
  .hb-dock .hb-button { min-height: 2.8rem; }
  .hb-dock small { margin: 0; }
}
@media (max-width: 39rem) {
  .hb-elements { grid-template-columns: 1fr; }
  .hb-dock .hb-button { padding-inline: 1rem; }
  .hb-dock small { max-width: 7.5rem; line-height: 1.18; }
  .hb-stage .hb-hero-links a[rel~=sponsored] { font-size: 1rem; }
}
@media print { .hb-header, .hb-dock, .hb-end-play, .hb-inline-play { display: none; } }
