/* RuneShot · layernative.com/runeshot */
:root {
  --ink: #120907;
  --deep: #1a0f14;
  --panel: #2a1712;
  --panel-2: #3b2621;
  --rim: #a87246;
  --rim-soft: rgba(168, 114, 70, .35);
  --cream: #fbf1dc;
  --tan: #e2b98a;
  --muted: #a8917c;
  --gold: #ffc93c;
  --gold-2: #f3b23a;
  --teal: #5fe0d0;
  --teal-2: #2bb3a6;
  --red: #e2584a;
  --violet: #9b6bff;
  --sky: #6fc8ff;
  --radius: 22px;
  --max: 1180px;
  --title: "Lilita One", "Arial Black", system-ui, sans-serif;
  --body: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; letter-spacing: .01em; line-height: 1.05; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ── atmosphere: a slow parallax of the chapter-1 painting behind everything ── */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url("img/map-ch1.webp") center top / cover no-repeat;
  filter: saturate(.9) brightness(.32) blur(2px);
  transform: scale(1.08);
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 0%, transparent 0 30%, rgba(18, 9, 7, .55) 70%, var(--ink) 100%),
              linear-gradient(180deg, rgba(26, 15, 20, .2), rgba(26, 15, 20, .85));
}
.embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(18, 9, 7, .92), rgba(18, 9, 7, .7));
  border-bottom: 1px solid var(--rim-soft);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-family: var(--title); font-size: 24px; }
.nav .brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 2px var(--rim); }
.nav .links { display: flex; gap: 22px; margin-left: auto; font-weight: 600; }
.nav .links a { color: var(--tan); }
.nav .links a:hover { color: var(--gold); text-decoration: none; }
@media (max-width: 760px) { .nav .links a:not(.keep) { display: none; } }

/* ── buttons (the game's chunky pills) ── */
.btn {
  --b-top: #ffe58a; --b-bot: var(--gold-2); --b-ink: #6b3410; --b-rim: #8a5410;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border-radius: 999px;
  font-family: var(--title); font-size: 22px; letter-spacing: .02em; color: var(--b-ink);
  background: linear-gradient(180deg, var(--b-top), var(--b-bot));
  border: 3px solid var(--b-rim);
  box-shadow: 0 6px 0 var(--b-rim), 0 14px 26px rgba(0, 0, 0, .45);
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--b-rim), 0 18px 30px rgba(0, 0, 0, .5); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--b-rim), 0 8px 16px rgba(0, 0, 0, .4); }
.btn.teal { --b-top: #a8fff2; --b-bot: var(--teal); --b-ink: #123c3a; --b-rim: #1b7a72; }
.btn.ghost { --b-top: #5a3a2a; --b-bot: #3b2621; --b-ink: var(--cream); --b-rim: #2a1712; }
.btn.small { min-height: 44px; font-size: 18px; padding: 0 20px; }
.btn .apple { width: 22px; height: 22px; }
.btn[aria-disabled="true"] { cursor: default; }

/* ── hero ── */
.hero { padding: 36px 0 60px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 26px; } }
.hero .logo { width: auto; max-width: 100%; height: min(44vh, 400px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); animation: logoIn .9s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes logoIn { from { transform: translateY(-40px) scale(.9); opacity: 0; } }
.hero .lede { font-size: 22px; color: var(--tan); max-width: 34ch; margin: 18px 0 26px; }
.hero .lede b { color: var(--cream); font-weight: 600; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .platforms { margin-top: 18px; color: var(--muted); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 920px) { .hero .copy { text-align: center; } .hero .logo { margin: 0 auto; height: min(34vh, 300px); } .hero .lede { margin-inline: auto; } .hero .ctas { justify-content: center; } }

/* the playable arena */
.arena-frame {
  position: relative; justify-self: center; width: min(440px, 100%);
  aspect-ratio: 420 / 640; border-radius: 30px; padding: 10px;
  background: linear-gradient(180deg, #5e3a24, #2a1712);
  box-shadow: 0 0 0 3px #120907, 0 30px 70px rgba(0, 0, 0, .65), 0 0 120px rgba(255, 170, 70, .12);
}
.arena-frame::before {
  content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 60px;
  background: radial-gradient(closest-side, rgba(95, 224, 208, .22), transparent);
  filter: blur(10px); animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .5; transform: scale(.96); } }
.arena-frame canvas { display: block; width: 100%; height: 100%; border-radius: 22px; touch-action: none; cursor: crosshair; background: #151d26; }
.arena-ui { position: absolute; inset: 10px; pointer-events: none; border-radius: 22px; overflow: hidden; }
.arena-ui .banner {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.7); opacity: 0;
  text-align: center; transition: transform .45s cubic-bezier(.2, 1.6, .4, 1), opacity .25s;
}
.arena-ui .banner.show { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.arena-ui .banner h3 { font-size: 46px; color: var(--gold); text-shadow: 0 4px 0 #6b3410, 0 0 30px rgba(255, 201, 60, .5); }
.arena-ui .banner.fail h3 { color: var(--red); text-shadow: 0 4px 0 #5a1810, 0 0 30px rgba(226, 88, 74, .45); }
.arena-ui .banner p { color: var(--cream); font-weight: 600; margin: 8px 0 16px; text-shadow: 0 2px 6px #000; }
.sound-toggle {
  position: absolute; right: 22px; bottom: 22px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(18, 9, 7, .7); border: 2px solid var(--rim); color: var(--cream); cursor: pointer;
  display: grid; place-items: center; font-size: 18px;
}

/* ── stats band ── */
.stats { padding: 26px 0; background: linear-gradient(90deg, transparent, rgba(255, 201, 60, .08), transparent); border-block: 1px solid var(--rim-soft); }
.stats .wrap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; text-align: center; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(3, 1fr); row-gap: 20px; } }
.stat b { display: block; font-family: var(--title); font-weight: 400; font-size: clamp(34px, 5vw, 52px); color: var(--gold); text-shadow: 0 3px 0 #6b3410; }
.stat span { color: var(--tan); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }

/* ── sections ── */
section { padding: 90px 0; position: relative; }
.kicker { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.section-title { font-size: clamp(38px, 6vw, 66px); text-shadow: 0 4px 0 rgba(0, 0, 0, .5); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head p { color: var(--tan); font-size: 20px; margin-top: 16px; }

/* how-it-plays rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 110px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .phone-wrap { order: -1; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 30px; margin-bottom: 80px; } .feature:nth-child(even) .phone-wrap { order: 0; } }
.feature h3 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 16px; }
.feature h3 em { font-style: normal; color: var(--gold); }
.feature p { color: var(--tan); font-size: 19px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; color: var(--cream); font-weight: 500; }
.feature li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c8, var(--gold) 45%, #b7791f); box-shadow: 0 0 12px rgba(255, 201, 60, .6); }

.phone-wrap { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 1290 / 2796; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #3a3036, #120c10); box-shadow: 0 0 0 2px #5b4a50, 0 40px 80px rgba(0, 0, 0, .7);
  transform: rotate(-3deg); transition: transform .5s cubic-bezier(.2, 1.2, .4, 1);
}
.feature:nth-child(even) .phone { transform: rotate(3deg); }
.phone:hover { transform: rotate(0) translateY(-6px); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.float-sprite { position: absolute; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(4deg); } }

/* ── the arsenal ── */
.arsenal { background: radial-gradient(70% 60% at 50% 40%, rgba(155, 107, 255, .14), transparent 70%); }
.fusion-stage {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px;
  max-width: 760px; margin: 0 auto 60px; padding: 30px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(42, 23, 18, .9), rgba(26, 15, 20, .9)); border: 2px solid var(--rim);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.fusion-slot { text-align: center; }
.fusion-slot .orb { width: min(130px, 22vw); aspect-ratio: 1; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%); }
.fusion-slot img { width: 86%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); transition: transform .5s cubic-bezier(.2, 1.5, .4, 1), opacity .3s; }
.fusion-slot b { display: block; font-family: var(--title); font-weight: 400; font-size: 20px; }
.fusion-slot small { color: var(--muted); font-size: 14px; }
.fusion-op { font-family: var(--title); font-size: 46px; color: var(--gold); text-shadow: 0 3px 0 #6b3410; }
.fusion-result .orb { background: radial-gradient(circle, rgba(255, 201, 60, .35), transparent 70%); }
.fusion-result.pop img { animation: popIn .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes popIn { 0% { transform: scale(.2) rotate(-90deg); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.fusion-stage.merging .fusion-a img { transform: translateX(60%) scale(.6); opacity: .2; }
.fusion-stage.merging .fusion-b img { transform: translateX(-60%) scale(.6); opacity: .2; }
@media (max-width: 600px) { .fusion-stage { gap: 6px; padding: 20px 10px; } .fusion-op { font-size: 30px; } .fusion-slot b { font-size: 16px; } .fusion-slot small { display: none; } }

.ball-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; }
@media (max-width: 860px) { .ball-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } }
.ball-card {
  position: relative; padding: 16px 8px 12px; border-radius: 20px; text-align: center; cursor: default;
  background: linear-gradient(180deg, #3b2621, #24150f); border: 2px solid #5e3a24;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ball-card:hover, .ball-card:focus-visible { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 201, 60, .2); outline: none; }
.ball-card img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; animation: bob 3.6s ease-in-out infinite; }
.ball-card:nth-child(3n) img { animation-delay: -1.2s; }
.ball-card:nth-child(3n+1) img { animation-delay: -2.4s; }
.ball-card b { font-family: var(--title); font-weight: 400; font-size: 17px; display: block; }
.ball-card .tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; width: 220px; transform: translateX(-50%) translateY(6px);
  padding: 10px 12px; border-radius: 14px; background: var(--ink); border: 2px solid var(--rim); color: var(--tan); font-size: 15px; line-height: 1.35;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.ball-card:hover .tip, .ball-card:focus-visible .tip { opacity: 1; transform: translateX(-50%); }
.ball-card .tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--violet); padding: 2px 7px; border-radius: 999px; }

/* ── heroes ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heroIn { from { transform: translateY(30px) scale(.9); opacity: 0; } }

/* ── chapters ── */
.chapters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 960px) { .chapters { grid-template-columns: repeat(2, 1fr); } .chapters .ch:last-child { grid-column: span 2; } }
.ch { position: relative; overflow: hidden; min-height: 280px; padding: 22px 18px; border-radius: 24px; border: 2px solid rgba(255, 255, 255, .08); box-shadow: 0 16px 36px rgba(0, 0, 0, .45); transition: transform .25s; }
.ch:hover { transform: translateY(-6px); }
.ch .n { font-family: var(--title); font-size: 15px; letter-spacing: .1em; opacity: .75; }
.ch h4 { font-family: var(--title); font-weight: 400; font-size: 26px; margin: 6px 0 8px; line-height: 1.05; }
.ch p { font-size: 15px; opacity: .85; margin: 0; }
.ch img { position: absolute; right: -8px; bottom: -6px; width: min(46%, 120px); opacity: .95; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.ch1 { background: linear-gradient(160deg, #3d5363, #1a2530); }
.ch2 { background: linear-gradient(160deg, #8a3a1e, #2a120c); }
.ch3 { background: linear-gradient(160deg, #3f6b2c, #15240f); }
.ch4 { background: linear-gradient(160deg, #6fa6c9, #1d3346); }
.ch5 { background: linear-gradient(160deg, #5b4aa8, #1c1638); }

/* ── screenshot rail ── */
.rail { display: flex; gap: 22px; overflow-x: auto; padding: 10px 16px 30px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail figure { flex: none; margin: 0; scroll-snap-align: center; }
.rail .phone { width: 240px; transform: none; }
.rail figcaption { text-align: center; color: var(--tan); font-weight: 600; margin-top: 14px; font-size: 16px; }

/* ── final call ── */
.finale { text-align: center; padding: 120px 0 140px; }
.finale .icon { width: 132px; height: 132px; margin: 0 auto 26px; border-radius: 30px; box-shadow: 0 0 0 3px var(--rim), 0 24px 50px rgba(0, 0, 0, .6), 0 0 80px rgba(95, 224, 208, .25); animation: bob 4s ease-in-out infinite; }
.finale h2 { font-size: clamp(42px, 7vw, 80px); }
.finale p { color: var(--tan); font-size: 21px; margin: 18px auto 30px; max-width: 40ch; }

/* ── footer ── */
footer { border-top: 1px solid var(--rim-soft); padding: 40px 0 50px; color: var(--muted); font-size: 15px; background: rgba(18, 9, 7, .75); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--tan); }

/* ── text pages (privacy, terms, press) ── */
.doc { padding: 50px 0 90px; }
.doc .card { background: linear-gradient(180deg, rgba(42, 23, 18, .94), rgba(26, 15, 20, .94)); border: 2px solid var(--rim); border-radius: 28px; padding: clamp(24px, 5vw, 56px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); max-width: 860px; margin: 0 auto; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 30px; }
.doc h2 { font-size: 28px; margin: 34px 0 12px; color: var(--gold); }
.doc p, .doc li { color: var(--tan); }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--cream); }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; }
.doc td { padding: 10px 12px; border-bottom: 1px solid var(--rim-soft); vertical-align: top; color: var(--tan); }
.doc td:first-child { color: var(--cream); font-weight: 600; width: 34%; }

/* press kit */
.assets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin: 16px 0 10px; }
.asset { display: block; padding: 14px; border-radius: 18px; background: #24150f; border: 2px solid #5e3a24; color: var(--cream); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.asset:hover { border-color: var(--gold); transform: translateY(-3px); }
.asset .thumb { height: 150px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 12px; background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%); overflow: hidden; }
.asset .thumb img { max-height: 100%; width: auto; }
.asset b { display: block; font-family: var(--title); font-weight: 400; font-size: 18px; }
.asset small { color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

@media (hover: none), (max-width: 640px) {
  .ball-card .tip { position: static; width: auto; transform: none; opacity: 1; padding: 0; margin-top: 6px; border: 0; background: none; font-size: 13.5px; }
  .ball-card:hover .tip { transform: none; }
}
@media (max-width: 440px) { .btn:not(.small) { font-size: 18px; padding: 0 18px; white-space: nowrap; } }

@media (max-width: 640px) {
  .ball-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ball-card { padding: 14px 12px 12px; }
  .ball-card .tip { line-height: 1.35; }
  .ch { min-height: 250px; }
  .ch img { width: 84px; }
}
.ch h4, .ch p, .ch .n { position: relative; z-index: 1; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.doc td + td { overflow-wrap: anywhere; }
@media (max-width: 640px) { .doc td:first-child { width: 40%; } }
@media (max-width: 640px) {
  .doc td { padding: 9px 6px; }
  .ch { min-height: 0; padding-bottom: 92px; }
  .ch img { width: 78px; }
}

/* ── heroes: a character-select stage tinted in the picked hero's colour ── */
.heroes { --hc: #ffc93c; overflow: hidden; }
.hs-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 32% 58%, color-mix(in srgb, var(--hc) 26%, transparent), transparent 70%); transition: background .6s; }
.hs { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 880px) { .hs { grid-template-columns: 1fr; gap: 8px; } }
.hs-stage { position: relative; height: 560px; display: grid; place-items: end center; }
.hs-name-bg { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--title); font-size: clamp(70px, 12vw, 170px); line-height: 1; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--hc) 45%, transparent); opacity: .7; letter-spacing: .02em; transition: -webkit-text-stroke-color .6s; }
.hs-glow { position: absolute; bottom: 40px; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--hc) 45%, transparent), transparent); filter: blur(10px); transition: background .6s; }
.hs-platform { position: absolute; bottom: 6px; width: min(78%, 380px); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); }
.hs-hero { position: relative; z-index: 2; height: 470px; width: auto; margin-bottom: 72px; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55)); animation: hsIdle 3.6s ease-in-out infinite; }
.hs-hero.in { animation: hsIn .6s cubic-bezier(.2, 1.3, .4, 1), hsIdle 3.6s ease-in-out .6s infinite; }
@keyframes hsIdle { 50% { transform: translateY(-8px); } }
@keyframes hsIn { from { transform: translateX(var(--from, 60px)) scale(.92); opacity: 0; } }
.hs-sparks i { position: absolute; z-index: 3; bottom: 120px; width: 7px; height: 7px; border-radius: 50%; background: var(--hc); box-shadow: 0 0 12px var(--hc); opacity: 0; animation: spark 3.2s ease-out infinite; }
.hs-sparks i:nth-child(1) { left: 30%; } .hs-sparks i:nth-child(2) { left: 64%; animation-delay: .5s; } .hs-sparks i:nth-child(3) { left: 44%; animation-delay: 1.1s; }
.hs-sparks i:nth-child(4) { left: 72%; animation-delay: 1.7s; } .hs-sparks i:nth-child(5) { left: 24%; animation-delay: 2.2s; } .hs-sparks i:nth-child(6) { left: 55%; animation-delay: 2.7s; }
@keyframes spark { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-300px); opacity: 0; } }
.hs-arrow { position: absolute; z-index: 4; top: 46%; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #5e3a24; background: linear-gradient(180deg, #4a2f24, #2a1712); color: var(--cream); font-size: 34px; line-height: 1; cursor: pointer; box-shadow: 0 6px 0 #1a0d08; transition: transform .15s; }
.hs-arrow:hover { transform: translateY(-2px); border-color: var(--hc); }
.hs-arrow:active { transform: translateY(3px); box-shadow: 0 2px 0 #1a0d08; }
.hs-arrow.prev { left: 0; } .hs-arrow.next { right: 0; }
.hs-panel { position: relative; padding: 30px 30px 26px; border-radius: 28px; background: linear-gradient(180deg, rgba(59, 38, 33, .92), rgba(36, 21, 15, .92)); border: 2px solid color-mix(in srgb, var(--hc) 55%, #5e3a24); box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 40px color-mix(in srgb, var(--hc) 18%, transparent); transition: border-color .6s, box-shadow .6s; }
.hs-title { display: inline-block; padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #1a0d08; background: var(--hc); transition: background .6s; }
.hs-panel h3 { font-size: clamp(42px, 5.4vw, 64px); margin: 10px 0 16px; text-shadow: 0 4px 0 rgba(0, 0, 0, .5); }
.hs-hp { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 18px; font-weight: 700; }
.hs-hp span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hs-hp .bar { height: 14px; border-radius: 99px; background: #1a0d08; border: 2px solid #4a2f24; overflow: hidden; }
.hs-hp .bar i { display: block; height: 100%; width: 80%; border-radius: 99px; background: linear-gradient(180deg, #ff8a7a, #d8443a); transition: width .5s cubic-bezier(.2, 1.2, .4, 1); }
.hs-hp b { font-family: var(--title); font-weight: 400; font-size: 22px; color: var(--cream); min-width: 2ch; text-align: right; }
.hs-box { padding: 14px 16px; border-radius: 18px; margin-top: 12px; background: rgba(18, 9, 7, .45); border: 2px solid rgba(255, 255, 255, .06); }
.hs-box small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hs-box p { margin: 0; color: var(--tan); font-size: 17.5px; line-height: 1.4; }
.hs-box.skill { background: linear-gradient(180deg, rgba(255, 201, 60, .14), rgba(255, 201, 60, .04)); border-color: rgba(255, 201, 60, .45); }
.hs-box.skill small { color: var(--gold-2); }
.hs-box.skill b { display: block; font-family: var(--title); font-weight: 400; font-size: 26px; color: var(--gold); margin-bottom: 2px; }
.hs-roster { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hs-pick { position: relative; width: 98px; padding: 0 0 8px; border-radius: 18px; cursor: pointer; background: linear-gradient(180deg, #3b2621, #24150f); border: 3px solid #5e3a24; color: var(--tan); font: 600 14px var(--body); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.hs-pick img { width: 100%; height: 84px; object-fit: cover; object-position: 50% 8%; background: radial-gradient(closest-side at 50% 70%, color-mix(in srgb, var(--pc) 40%, transparent), transparent); }
.hs-pick span { display: block; margin-top: 4px; }
.hs-pick:hover { transform: translateY(-4px); }
.hs-pick[aria-selected="true"] { transform: translateY(-8px); border-color: var(--pc); color: var(--cream); box-shadow: 0 10px 24px rgba(0, 0, 0, .5), 0 0 22px color-mix(in srgb, var(--pc) 45%, transparent); }
@media (max-width: 600px) {
  .hs-stage { height: 420px; }
  .hs-hero { height: 340px; margin-bottom: 52px; }
  .hs-arrow { width: 44px; height: 44px; font-size: 28px; }
  .hs-panel { padding: 22px 18px; }
  .hs-roster { gap: 8px; }
  .hs-pick { width: calc(25% - 6px); font-size: 12.5px; }
  .hs-pick img { height: 66px; }
}

/* ── bestiary: flip cards ── */
.bestiary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mcard { perspective: 1400px; }
@media (max-width: 980px) { .bestiary { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .bestiary { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.mcard { position: relative; aspect-ratio: 3 / 4.1; cursor: pointer; border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; opacity: 0; translate: 0 40px; transition: opacity .8s ease var(--d, 0s), translate .8s cubic-bezier(.2, 1, .3, 1) var(--d, 0s); }
.minner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, 1, .3, 1); }
.mcard.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .mcard { opacity: 1; translate: none; } }
.mcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 22px; }
.mcard.flip .minner { transform: rotateY(180deg); }
.mface { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 3px solid #5e3a24; box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }
.mfront { background: radial-gradient(90% 70% at 50% 40%, color-mix(in srgb, var(--mc) 70%, #fff 8%), color-mix(in srgb, var(--mc) 40%, #120907) 75%); display: flex; flex-direction: column; }
.mfront::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 40%, transparent 0 22px, rgba(255, 255, 255, .03) 22px 24px); }
.mfront img { position: relative; flex: 1; min-height: 0; width: 86%; margin: 10% auto 0; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .45)); transition: transform .35s; }
.mcard:hover .mfront img { transform: scale(1.06) translateY(-4px); }
.mfront .mlabel { position: relative; padding: 10px 14px 14px; background: linear-gradient(180deg, transparent, rgba(18, 9, 7, .85) 40%); }
.mlabel b { display: block; font-family: var(--title); font-weight: 400; font-size: 21px; line-height: 1.05; color: var(--cream); text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.mlabel span { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tan); }
.mtier { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: #1a0d08; background: var(--gold); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.mtier.elite { background: var(--violet); color: #fff; }
.mcard.boss .mface { border-color: #e8a83a; box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 26px rgba(255, 201, 60, .3); }
.mcard.boss .mfront::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 200, .22) 45%, transparent 60%); background-size: 260% 100%; animation: foil 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes foil { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.mflip-hint { position: absolute; z-index: 2; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--cream); background: rgba(18, 9, 7, .55); }
.mback { transform: rotateY(180deg); padding: 16px 16px 14px; background: linear-gradient(180deg, #3b2621, #1f120e); display: flex; flex-direction: column; gap: 8px; }
.mback header { display: flex; align-items: center; gap: 10px; }
.mback header img { width: 46px; height: 46px; object-fit: contain; }
.mback header b { font-family: var(--title); font-weight: 400; font-size: 19px; line-height: 1.05; color: var(--cream); }
.mback dl { margin: 0; display: grid; gap: 7px; overflow: auto; }
.mback dt { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.mback dt.brk { color: var(--gold); }
.mback dd { margin: 0; font-size: 14px; line-height: 1.35; color: var(--tan); }
@media (max-width: 700px) {
  .mcard { aspect-ratio: 3 / 5.1; }
  .mback header img { display: none; }
  .mlabel b { font-size: 17px; }
  .mback { padding: 12px 11px; gap: 5px; }
  .mback header img { width: 34px; height: 34px; }
  .mback header b { font-size: 15.5px; }
  .mback dd { font-size: 12.5px; }
  .mback dt { font-size: 10.5px; }
}
.bestiary-more { text-align: center; color: var(--muted); margin-top: 30px; font-size: 18px; }

/* ── screenshot slider: full width, centred phone big, neighbours shrink and dim ── */
#shots { padding-bottom: 70px; }
.slider { --sw: clamp(240px, 22vw, 340px); position: relative; width: 100%; }
.slides { display: flex; gap: clamp(10px, 2vw, 34px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px calc(50% - var(--sw) / 2) 20px; scrollbar-width: none; cursor: grab; outline: none; }
.slides::-webkit-scrollbar { display: none; }
.slides.drag { cursor: grabbing; scroll-snap-type: none; }
.slide { flex: none; width: var(--sw); margin: 0; scroll-snap-align: center; transform: scale(var(--s, .8)); opacity: var(--o, .45); transition: transform .12s linear, opacity .12s linear; will-change: transform; }
.slide .phone { width: 100%; transform: none; }
.slide .phone:hover { transform: none; }
.slide img { user-select: none; -webkit-user-drag: none; }
.slide figcaption { width: 170%; margin-left: -35%; white-space: nowrap; text-align: center; font-family: var(--title); font-size: clamp(18px, 1.8vw, 24px); color: var(--cream); margin-top: 18px; opacity: var(--c, 0); transition: opacity .2s; }
.sl-bar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 8px; }
.sl-arrow { width: 54px; height: 54px; flex: none; border-radius: 50%; border: 3px solid #5e3a24; background: linear-gradient(180deg, #4a2f24, #2a1712); color: var(--cream); font-size: 38px; line-height: 1; cursor: pointer; box-shadow: 0 6px 0 #1a0d08, 0 14px 30px rgba(0, 0, 0, .5); transition: transform .15s, border-color .15s; }
.sl-arrow:hover { transform: translateY(-2px); border-color: var(--gold); }
.sl-arrow:active { transform: translateY(3px); box-shadow: 0 2px 0 #1a0d08; }
.sl-dots { display: flex; justify-content: center; gap: 10px; }
.sl-dots button { width: 12px; height: 12px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .22); cursor: pointer; transition: width .25s, background .25s; }
.sl-dots button[aria-selected="true"] { width: 34px; background: var(--gold); }
@media (max-width: 700px) {
  .slider { --sw: 68vw; }
  .sl-arrow { width: 44px; height: 44px; font-size: 30px; }
  .sl-bar { gap: 14px; }
}
