:root {
  color-scheme: dark;
  --page: #17131d;
  --ink: #fbf6fc;
  --muted: #cfc3d5;
  --violet: #d4b4fc;
  --gold: #ffcc67;
  --line: #41364a;
  --display: "Russo One", "Arial Black", sans-serif;
  --cut: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  font: 500 100%/1.55 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
button, summary { font: inherit; color: inherit; cursor: pointer; }
button { border: 0; }
a, button, summary { -webkit-tap-highlight-color: #d7abfb3d; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; }
h2 { font-size: clamp(2.15rem, 4.1vw, 3.5rem); letter-spacing: -.035em; }
.wrap { width: min(77rem, calc(100% - clamp(2.5rem, 9vw, 8rem))); margin-inline: auto; }
.skip {
  position: absolute; z-index: 15; left: 1rem; top: 1rem; transform: translateY(-180%);
  padding: .7rem 1rem; border-radius: .3rem; background: var(--ink); color: var(--page);
}
.skip:focus { transform: none; }
#forge-dust {
  position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%;
  pointer-events: none; user-select: none;
}
.hero {
  position: relative; overflow: hidden; background: #2b193b;
  border-bottom: 1px solid #77517b;
}
.hero-landscape {
  position: absolute; z-index: 0; inset: 0;
  background-image: linear-gradient(90deg, #211329 0%, #2c1839f2 24%, #32194087 54%, #32143e36 79%, #24132e94 100%),
    linear-gradient(0deg, #25152edb, #3d1b4922 33%, #662b7a45 77%, #25142994), url("landing/arena.webp");
  background-position: center, center, center 48%;
  background-size: cover;
}
.hero::after {
  content: ""; position: absolute; z-index: 0; inset: auto 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, #996db7 18%, #f1b85a 60%, #a16dbb 85%, transparent);
}
.hero-layout {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-rows: auto auto; column-gap: 1.3rem;
  min-height: clamp(29.4rem, 39vw, 35.25rem); padding-block: clamp(3rem, 4.8vw, 4.5rem);
}
.hero-copy { grid-area: 1 / 1; align-self: end; position: relative; z-index: 2; }
.genre, .eyebrow, .scene-category {
  font-weight: 700; font-size: .79rem; letter-spacing: .145em; text-transform: uppercase; line-height: 1.3;
}
.genre { display: inline-flex; align-items: center; gap: .65rem; color: #f5cd88; margin-bottom: 1.05rem; }
.genre img { width: 1.25rem; height: 1.25rem; }
.hero h1 {
  font-size: clamp(3.55rem, 6.2vw, 5.85rem); line-height: .99;
  letter-spacing: -.045em; color: #fff8f0;
}
.hero h1 em { display: block; color: var(--gold); font-style: normal; }
.lead { margin-top: 1.25rem; max-width: 27rem; color: #e4d8e7; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.56; }
.hero-actions { grid-area: 2 / 1; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.65rem; margin-top: 1.6rem; z-index: 2; }
.game-button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 3.28rem;
  background-size: 100% 100%; background-repeat: no-repeat; text-decoration: none; font-weight: 700; line-height: 1.25;
}
.gold-button {
  display: grid; grid-template-columns: 77% 23%; flex: none; width: 16.25rem; min-height: 44px; padding: 0;
  aspect-ratio: 464 / 126; color: #372007; font-size: .92rem;
  background-image: url("landing/button-gold.webp"); filter: drop-shadow(0 5px 9px #130b1f72);
}
.gold-button span { padding-inline-start: .75rem; }
.purple-button {
  min-width: 12.3rem; min-height: 3.05rem; padding: .8rem 1.5rem; color: #fff1ff;
  background-image: url("landing/button-purple.webp");
}
.game-button:hover { filter: brightness(1.12) drop-shadow(0 3px 8px #10091d70); }
.game-button:active { transform: translateY(2px); }
.field-link { min-height: 44px; display: inline-flex; align-items: center; color: #f1dffb; text-decoration-color: #ac849d; }
.field-link:hover { color: #fff; }
.hand {
  grid-area: 1 / 2 / 3 / 3; align-self: center; position: relative; isolation: isolate;
  width: 100%; aspect-ratio: 1.63;
}
.hand::before {
  content: ""; position: absolute; pointer-events: none; inset: 4% -9% -9%;
  background: radial-gradient(ellipse at 51% 46%, #bb6df37d, #8548bf52 36%, transparent 69%);
}
.hand::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1; left: 12%; right: 7%; bottom: 1%; height: 17%;
  border-radius: 50%; background: radial-gradient(ellipse, #12091de0, transparent 70%);
}
.hand-glow {
  position: absolute; pointer-events: none; z-index: -1; inset: -21% -1% -24%;
  background: url("landing/rays.webp") no-repeat center / contain; opacity: .64; mix-blend-mode: screen;
}
.card {
  --lift: 0px;
  position: absolute; display: block; width: var(--size); top: var(--top); left: var(--at); z-index: var(--depth);
  transform: translate(-50%, -50%) rotate(var(--tilt)); line-height: 1; touch-action: manipulation;
  filter: drop-shadow(0 10px 9px #100917a8);
}
.card img { width: 100%; height: auto; transform: translateY(var(--lift)); }
.card-far-left { --at: 12%; --top: 53%; --size: 22.5%; --tilt: -22deg; --depth: 1; }
.card-near-left { --at: 28.5%; --top: 50%; --size: 28.5%; --tilt: -13deg; --depth: 2; }
.card-front { --at: 50%; --top: 49%; --size: 34%; --tilt: -3deg; --depth: 4; }
.card-near-right { --at: 71.5%; --top: 50%; --size: 28.5%; --tilt: 12deg; --depth: 3; }
.card-far-right { --at: 88%; --top: 53%; --size: 22.5%; --tilt: 22deg; --depth: 1; }
.card-name {
  position: absolute; pointer-events: none; left: 5%; right: 5%; bottom: 4.6%; padding: 12% .1rem 2.2%;
  font: 400 clamp(.76rem, 1.3vw, 1.25rem)/1.1 var(--display); text-align: center; color: #fff4d8;
  background: linear-gradient(transparent, #1a1027de 66%, #190e22f2); transform: translateY(var(--lift));
}
.card:focus-visible { --lift: -5px; z-index: 6; }
.card, #browse-heroes, [data-scene] { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { --lift: -7px; z-index: 5; }
}
.arena, .market, .seller { position: relative; z-index: 2; }
.arena { padding-top: clamp(2.2rem, 4.7vw, 4.35rem); }
.section-title { display: flex; align-items: center; gap: 1.6rem; margin-bottom: clamp(1.35rem, 2.4vw, 2rem); }
.section-title span { height: 1px; flex: 1; position: relative; background: linear-gradient(90deg, #69526e, #342a3c); }
.section-title span::before { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; background: #bd93cc; transform: rotate(45deg); }
.arena-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3.3vw, 3rem); }
.scene, .equipment { scroll-margin-top: 1.4rem; }
.scene-image, .gear-image {
  display: block; position: relative; isolation: isolate; background: #2f233a; border: 1px solid #735985;
  clip-path: var(--cut); text-decoration: none; overflow: hidden;
}
.scene-image { aspect-ratio: 1280 / 838; }
.skill-image { border-color: #78518b; }
.scene-image picture, .scene-image img { display: block; width: 100%; height: 100%; }
.scene-image img { object-fit: cover; }
.scene-image::before {
  content: ""; pointer-events: none; position: absolute; z-index: 1; inset: 0;
  background: linear-gradient(135deg, transparent 7px, #ac8dbd 8px, transparent 9px) top left / 1rem 1rem no-repeat,
    linear-gradient(-45deg, transparent 7px, #ac8dbd 8px, transparent 9px) bottom right / 1rem 1rem no-repeat;
}
.scene-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #1b112845 0%, transparent 25%, transparent 75%, #1b112826);
}
.zoom {
  width: 2.35rem; height: 2.35rem; position: absolute; right: .65rem; bottom: .65rem; z-index: 2;
  display: grid; place-items: center; background: #21172ce6; color: white; border: 1px solid #a68bb1; border-radius: .32rem;
}
.zoom::after {
  content: ""; width: 1rem; height: 1rem;
  background: linear-gradient(currentColor, currentColor) left top / 6px 2px,
    linear-gradient(currentColor, currentColor) left top / 2px 6px,
    linear-gradient(currentColor, currentColor) right top / 6px 2px,
    linear-gradient(currentColor, currentColor) right top / 2px 6px,
    linear-gradient(currentColor, currentColor) left bottom / 6px 2px,
    linear-gradient(currentColor, currentColor) left bottom / 2px 6px,
    linear-gradient(currentColor, currentColor) right bottom / 6px 2px,
    linear-gradient(currentColor, currentColor) right bottom / 2px 6px;
  background-repeat: no-repeat;
}
.scene-image:is(:hover, :focus-visible), .gear-image:is(:hover, :focus-visible) { border-color: #eed7ff; }
.scene-image:focus-visible, .gear-image:focus-visible { outline-offset: -4px; outline-color: var(--gold); }
.scene-image:is(:hover, :focus-visible) .zoom, .gear-image:is(:hover, :focus-visible) .zoom { background: #56326b; }
.scene-caption { padding-top: 1.1rem; }
.scene-caption h3 { font-size: clamp(1.48rem, 2.4vw, 2.04rem); letter-spacing: -.025em; }
.scene-caption p, .equipment-copy > p:not(.eyebrow), .market p { margin-top: .55rem; color: var(--muted); font-size: 1rem; }
.scene-caption p { max-width: 36rem; }
.scene-caption .scene-category { color: var(--violet); margin: 0 0 .4rem; font-size: .75rem; }
.with-skill { display: grid; grid-template-columns: 3.07rem 1fr; align-items: start; gap: .9rem; }
.skill-token { width: 3.07rem; height: 3.07rem; border-radius: 50%; border: 1px solid #7866af; }
.equipment {
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); grid-template-areas: "screen copy" "screen grades";
  gap: 1.3rem clamp(2rem, 5.8vw, 5.8rem);
  margin-top: clamp(2.8rem, 5.5vw, 5rem); padding: clamp(1.5rem, 3.1vw, 3rem) clamp(1.5rem, 4.3vw, 4rem);
  background: radial-gradient(ellipse at 19% 64%, #533063, transparent 60%), linear-gradient(105deg, #34233f, #281d33 65%, #2e2038);
  border-top: 1px solid #654774; border-bottom: 1px solid #55405f;
}
.equipment-copy { grid-area: copy; align-self: end; }
.equipment-copy, .gear-image, .gear-grades { position: relative; z-index: 2; }
.eyebrow { margin-bottom: .7rem; color: var(--violet); }
.equipment-copy > p:not(.eyebrow) { margin-top: 1rem; }
.gear-image {
  grid-area: screen; width: min(100%, 32rem); margin-inline: auto; background: transparent; border: 0; clip-path: none;
  filter: drop-shadow(0 .55rem .9rem #170c22a8);
}
.gear-image img { width: 100%; height: auto; }
.gear-image .zoom { top: .55rem; right: .55rem; bottom: auto; }
.gear-grades { grid-area: grades; align-self: start; margin: 0; }
.grade-hand { display: flex; align-items: center; isolation: isolate; padding: .55rem 0 .6rem .3rem; }
.grade-hand a {
  --tilt: -12deg;
  display: block; position: relative; flex: 0 0 auto; width: clamp(4.6rem, 7.8vw, 6.9rem);
  transform: rotate(var(--tilt)); transform-origin: 50% 82%; filter: drop-shadow(0 5px 5px #120b1b88);
}
.grade-hand a:first-child { z-index: 2; }
.grade-hand a:nth-child(2) { --tilt: -1deg; margin-left: -.7rem; z-index: 1; }
.grade-hand a:nth-child(3) { --tilt: 11deg; margin-left: -.65rem; }
.grade-hand img { width: 100%; height: auto; }
.grade-hand a:focus-visible { z-index: 3; }
@media (hover: hover) and (pointer: fine) {
  .grade-hand a:hover { z-index: 3; filter: brightness(1.08) drop-shadow(0 5px 5px #120b1b88); }
}
.gear-grades figcaption { margin-top: .15rem; color: #d1bfd8; font-size: .94rem; }
.market { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.35rem; padding-block: clamp(2rem, 4vw, 3.7rem); }
.market > img { width: clamp(3.5rem, 6vw, 5rem); height: auto; transform: rotate(-8deg); }
.market h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.market p { margin-top: .3rem; }
footer { background: #120f17; border-top: 1px solid #29232e; }
.seller {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: .9rem 1rem;
  font-size: .5rem; color: #514858;
}
.seller h2 { font: 700 1em/1.5 Manrope, sans-serif; letter-spacing: normal; }
.seller p { font-size: .94em; margin-top: .1rem; }
.seller-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.seller-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.seller-links a:is(:hover, :focus-visible, :active) { color: #d8c8df; }
@media (prefers-contrast: more) {
  .seller { color: #d8c8df; }
}

dialog:not([open]) { display: none; }
.viewer {
  position: fixed; inset: 0; margin: auto; padding: 0; width: min(54rem, calc(100% - 1.5rem));
  max-width: none; max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem); overflow: auto;
  overscroll-behavior: contain; border: 1px solid #9674a9; border-radius: .8rem;
  background: #251b30; color: var(--ink); box-shadow: 0 1.8rem 6rem #060309ac;
}
.viewer::backdrop { background: #0e0818d9; }
html.modal-open { overflow: hidden; }
.viewer-inner { position: relative; }
.close {
  position: absolute; z-index: 3; top: .65rem; right: .65rem; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: .4rem; border: 1px solid #88699b; background: #2c2039;
}
.close::before, .close::after { content: ""; position: absolute; width: 1rem; height: 2px; background: #fbf4ff; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.close:hover { background: #51385f; }
.hero-viewer .viewer-inner { padding: clamp(1.35rem, 3vw, 2.3rem); background: radial-gradient(ellipse at 21% 32%, #573d647a, transparent 54%); }
.roster-main { display: grid; grid-template-columns: 43% 1fr; gap: clamp(1.1rem, 3.4vw, 2.6rem); align-items: center; }
.roster-art { display: grid; place-items: center; }
.roster-art img { width: auto; max-width: 100%; height: auto; max-height: min(58vh, 28rem); filter: drop-shadow(0 .7rem .6rem #100919a3); }
.roster-copy h2 { font-size: clamp(2rem, 5vw, 3.3rem); }
.roster-copy .eyebrow { margin-bottom: .55rem; }
.skill-heading { display: flex; gap: .7rem; align-items: center; margin: 1.45rem 0 .7rem; }
.skill-heading img { width: 2.8rem; height: 2.8rem; object-fit: contain; }
.skill-heading span { color: #d6b9e5; font-size: .83rem; }
.skill-heading h3 { font-size: 1.17rem; margin-top: .15rem; }
#ability-description { color: #e1d6e6; line-height: 1.52; }
.roster-picker { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid #5a4266; display: flex; justify-content: center; gap: .62rem; }
.roster-picker button {
  padding: 2px; display: block; background: #1b1422; border: 2px solid transparent; border-radius: .34rem; min-width: 44px; min-height: 44px;
}
.roster-picker button[aria-pressed="true"] { border-color: var(--gold); background: #7d5428; }
.roster-picker button:hover { border-color: #d9b5e9; }
.roster-picker img { width: 3.05rem; height: 3.45rem; object-fit: cover; object-position: 50% 24%; border-radius: .14rem; }
.scene-viewer { width: fit-content; max-width: calc(100% - 1.25rem); }
.scene-viewer .viewer-inner { padding: .85rem; }
.scene-viewer h2 { min-height: 44px; display: flex; align-items: center; padding: 0 3.3rem .45rem .2rem; font-size: 1.17rem; letter-spacing: normal; }
#full-scene { max-height: 75vh; max-height: 76dvh; width: auto; height: auto; object-fit: contain; margin-inline: auto; }
@media (max-width: 66rem) {
  .hero-layout { column-gap: .5rem; }
  .hero h1 { font-size: clamp(3.3rem, 6.2vw, 4.25rem); }
  .hero-actions { column-gap: 1rem; }
  .gold-button { width: 15rem; }
}
@media (max-width: 49rem) {
  .wrap { width: min(42rem, calc(100% - 2.25rem)); }
  .hero-layout { display: flex; flex-direction: column; align-items: center; min-height: 0; gap: 0; padding-block: 2rem 1.8rem; }
  .hero-landscape {
    background-image: linear-gradient(180deg, #281630f7 0%, #2d1838e0 29%, #3e20533b 64%, #29172fdc 100%),
      linear-gradient(90deg, #28142d73, #62377838 55%, #27142e64), url("landing/arena-mobile.webp");
    background-position: center, center, center 64%;
  }
  .hero-copy { width: 100%; align-self: auto; }
  .genre { margin-bottom: .75rem; font-size: .75rem; }
  .hero h1 { font-size: clamp(3.05rem, 9.25vw, 4.25rem); }
  .lead { margin-top: .85rem; max-width: 32rem; }
  .hand { width: min(100%, 32rem); aspect-ratio: 1.87; margin-block: .4rem .75rem; }
  .card-name { font-size: clamp(.75rem, 2.8vw, 1rem); }
  .hero-actions { align-self: center; justify-content: center; gap: .6rem 1.4rem; margin-top: 0; }
  .equipment { padding: 1.4rem; gap: 1.5rem; }
  .gear-image { width: 100%; }
  .market { column-gap: .9rem; }
  .market p { max-width: 28rem; }
  .arena-spread { gap: 1.3rem; }
}
@media (max-width: 38rem) {
  .hero-layout { padding-top: 1.45rem; padding-bottom: 1.35rem; }
  .hero h1 { font-size: clamp(2.85rem, 12vw, 3.65rem); }
  .hero-actions { gap: .45rem 1rem; justify-content: flex-start; align-self: stretch; }
  .hero-actions .gold-button { width: clamp(14.1rem, 60vw, 15rem); font-size: .9rem; }
  .field-link { font-size: .96rem; }
  .arena-spread { grid-template-columns: 1fr; gap: 1.85rem; }
  .scene-image { aspect-ratio: 1080 / 1167; }
  .scene-caption { padding-top: .75rem; }
  .with-skill { grid-template-columns: 2.6rem 1fr; gap: .7rem; }
  .skill-token { width: 2.6rem; height: 2.6rem; }
  .zoom { right: .45rem; bottom: .45rem; width: 2rem; height: 2rem; }
  .equipment { grid-template-columns: 1fr; grid-template-areas: "copy" "screen" "grades"; padding: 1.15rem; gap: 1.1rem; }
  .grade-hand { justify-content: center; padding-block: .45rem .5rem; }
  .grade-hand a { width: clamp(4.6rem, 22vw, 6.2rem); }
  .gear-grades figcaption { text-align: center; }
  .market { grid-template-columns: 3rem 1fr; row-gap: .85rem; }
  .market > img { width: 3rem; }
  .market .purple-button { grid-column: 2; justify-self: start; }
  .seller { flex-direction: column; align-items: start; gap: 0; }
  .roster-main { grid-template-columns: 1fr; gap: .8rem; }
  .roster-art img { max-height: min(38vh, 17rem); }
  .hero-viewer .viewer-inner { padding: 1.15rem; }
  .roster-copy .eyebrow { margin-bottom: .25rem; }
  .skill-heading { margin-block: .7rem .45rem; }
  .roster-picker { margin-top: .85rem; padding-top: .7rem; gap: .35rem; }
  .roster-picker img { width: 2.7rem; height: 2.95rem; }
}
@media (max-width: 24rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-actions { column-gap: .78rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hand { animation: deal-in .58s ease-out both; }
  .card img, .card-name, .game-button, .zoom { transition: transform .18s ease-out, filter .18s ease-out, background-color .18s ease-out; }
  @keyframes deal-in { from { transform: translateY(10px) scale(.98); } to { transform: none; } }
}
