:root {
  --royal-950: #030923;
  --royal-900: #06133d;
  --royal-850: #08194f;
  --royal-800: #0c2470;
  --royal-700: #123ea4;
  --royal-500: #186ee8;
  --cyan: #28dcff;
  --cyan-soft: #8af0ff;
  --gold: #ffc934;
  --gold-light: #fff09b;
  --gold-dark: #9a4c00;
  --purple: #8d5dff;
  --coral: #ff5f55;
  --emerald: #37df9a;
  --cream: #fff9e8;
  --ink: #0b1742;
  --muted: #a9b9df;
  --line: rgba(151, 190, 255, 0.2);
  --panel: rgba(8, 24, 74, 0.78);
  --panel-solid: #0a1c57;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-xl: 52px;
  --shadow-soft: 0 18px 50px rgba(0, 5, 30, 0.28);
  --shadow-deep: 0 35px 90px rgba(0, 4, 28, 0.58);
  --shadow-gold: 0 0 34px rgba(255, 201, 52, 0.25);
  --max: 1320px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--royal-950);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 16% 8%, rgba(29, 112, 255, 0.24), transparent 26rem),
    radial-gradient(circle at 88% 42%, rgba(136, 73, 255, 0.16), transparent 32rem),
    var(--royal-950);
  font-family: "Fredoka", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.is-loading {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  color: inherit;
  font: inherit;
}

button,
a[href] {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--gold-light);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.loader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 42%, rgba(40, 220, 255, 0.18), transparent 18rem),
    linear-gradient(145deg, #03071b, #071b5c 58%, #0c0a2c);
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(82, 180, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 180, 255, 0.15) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle, #000, transparent 68%);
}

.loader.is-ready {
  opacity: 0;
  visibility: hidden;
}

.loader__crown {
  position: relative;
  z-index: 1;
  width: 112px;
  filter: drop-shadow(0 0 28px rgba(255, 206, 60, 0.55));
  animation: crownFloat 1.8s ease-in-out infinite;
}

.loader__logo {
  position: relative;
  z-index: 1;
  width: min(310px, 72vw);
  margin-top: -42px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 20, 0.45));
}

.loader p {
  position: relative;
  z-index: 1;
  margin: 2px 0 6px;
  color: #dbe9ff;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.loader__track {
  position: relative;
  z-index: 1;
  width: min(280px, 68vw);
  height: 8px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 236, 151, 0.68);
  border-radius: 99px;
  background: #050d2d;
}

.loader__track span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold-light), var(--gold));
  box-shadow: 0 0 18px var(--cyan);
  animation: load 1.2s ease-in-out infinite alternate;
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(3, 9, 35, 0.35);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--gold-light), var(--gold));
  box-shadow: 0 0 14px var(--gold);
}

.kingdom-canvas {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cursor-light {
  position: fixed;
  z-index: -1;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 213, 255, 0.11), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.ambient {
  position: fixed;
  z-index: -3;
  width: 48vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.18;
}

.ambient--cyan {
  top: 8%;
  left: -22%;
  background: var(--cyan);
}

.ambient--gold {
  right: -24%;
  bottom: 9%;
  background: var(--gold);
}

.site-header {
  position: fixed;
  z-index: 900;
  top: 14px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 34px), 1420px);
  min-height: var(--header-height);
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(148, 193, 255, 0.16);
  border-radius: 24px;
  background: rgba(4, 13, 43, 0.46);
  box-shadow: 0 18px 50px rgba(0, 5, 30, 0.18);
  backdrop-filter: blur(18px) saturate(135%);
  transform: translateX(-50%);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.site-header.is-scrolled {
  top: 8px;
  background: rgba(3, 11, 40, 0.92);
  border-color: rgba(255, 211, 74, 0.26);
  box-shadow: 0 16px 50px rgba(0, 4, 26, 0.48);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 165px;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand img {
  width: 70px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 25, 0.42));
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(15px, 2.2vw, 34px);
}

.site-nav a {
  position: relative;
  padding: 11px 0;
  color: #d8e5ff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 22px;
}

.header-download,
.primary-cta,
.game-button {
  position: relative;
  overflow: hidden;
  border: 2px solid #ffe78b;
  color: #2c1900;
  background: linear-gradient(180deg, #fff178 0%, #ffc928 45%, #e89000 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.8),
    inset 0 -5px 0 rgba(142, 68, 0, 0.38),
    0 10px 24px rgba(255, 178, 0, 0.22);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.header-download {
  padding: 14px 24px;
  border-radius: 17px;
  font-size: 0.9rem;
  font-weight: 700;
}

.shine-button::after,
.game-button--gold::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -35%;
  width: 26%;
  height: 220%;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(22deg);
  transition: left 0.55s ease;
}

.shine-button:hover::after,
.game-button--gold:hover::after {
  left: 125%;
}

.shine-button:hover,
.game-button:hover {
  filter: brightness(1.08) saturate(1.06);
  transform: translateY(-3px);
}

.shine-button:active,
.game-button:active {
  transform: translateY(1px) scale(0.98);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 55, 136, 0.72);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 3px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.section {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding-block: clamp(90px, 10vw, 160px);
}

.section-heading {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 86px);
}

.section-heading--center {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  text-align: left;
}

.section-heading--center .section-number {
  position: relative;
  top: 0.2em;
  left: auto;
  flex: 0 0 auto;
}

.section-heading--center > div {
  width: auto;
  max-width: min(760px, calc(100% - 76px));
  margin: 0;
  text-align: left;
}

.section-heading--center > div > p:last-child {
  max-width: 620px;
  margin-inline: 0;
  text-align: left;
}

.section-heading--compact {
  margin-bottom: 42px;
}

.section-number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 226, 111, 0.62);
  border-radius: 17px;
  color: var(--gold-light);
  background: linear-gradient(145deg, rgba(255, 212, 68, 0.16), rgba(39, 205, 255, 0.08));
  box-shadow: var(--shadow-gold);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-kicker,
.royal-label {
  margin: 0 0 13px;
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section h2 {
  max-width: 880px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 5.5vw, 5.6rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section h2 em {
  color: var(--gold);
  font-style: normal;
  text-shadow: 0 0 26px rgba(255, 201, 52, 0.22);
}

.section-heading > div > p:last-child:not(.section-kicker) {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.88fr);
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
  min-height: max(780px, 100svh);
  padding: calc(var(--header-height) + 84px) max(28px, calc((100vw - var(--max)) / 2)) 72px;
  isolation: isolate;
}

.hero__backdrop,
.hero__veil,
.hero__grid {
  position: absolute;
  z-index: -5;
  inset: 0;
}

.hero__backdrop {
  overflow: hidden;
}

.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.55;
  filter: saturate(1.1) contrast(1.08) brightness(0.72);
  transform: scale(1.06);
}

.hero__veil {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(3, 9, 35, 0.98) 0%, rgba(4, 14, 52, 0.83) 42%, rgba(3, 10, 38, 0.26) 73%, rgba(3, 9, 35, 0.7) 100%),
    linear-gradient(180deg, rgba(5, 12, 39, 0.62), transparent 45%, var(--royal-950) 100%);
}

.hero__grid {
  z-index: -3;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(65, 199, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 199, 255, 0.22) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to right, #000, transparent 68%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  right: 10%;
  bottom: 4%;
  width: 42vw;
  max-width: 720px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 214, 255, 0.22), rgba(57, 83, 255, 0.09) 42%, transparent 70%);
  filter: blur(12px);
}

.hero__copy {
  position: relative;
  z-index: 5;
  max-width: 680px;
}

.royal-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.royal-label span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.royal-label span:last-child {
  transform: scaleX(-1);
}

.hero__logo {
  width: min(620px, 94%);
  margin: 0 0 -18px -28px;
  filter:
    drop-shadow(0 28px 28px rgba(0, 0, 24, 0.42))
    drop-shadow(0 0 24px rgba(255, 199, 50, 0.14));
  animation: logoBreathe 5s ease-in-out infinite;
}

.hero__headline {
  margin: 28px 0 0;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.85rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__headline strong {
  display: block;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 0 28px rgba(255, 200, 47, 0.26);
}

.hero__lede {
  max-width: 600px;
  margin: 22px 0 0;
  color: #c4d3f2;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.66;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 17px 22px 20px 26px;
  border-radius: 20px;
  font-weight: 700;
}

.primary-cta svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 6px;
  color: #e6eeff;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.secondary-cta:hover {
  color: var(--cyan-soft);
  transform: translateX(3px);
}

.secondary-cta__play {
  position: relative;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(128, 226, 255, 0.6);
  border-radius: 50%;
  background: rgba(25, 97, 191, 0.4);
  box-shadow: 0 0 18px rgba(40, 220, 255, 0.18);
}

.secondary-cta__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--cyan-soft);
  transform: translate(-50%, -50%);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, rgba(17, 29, 69, 0.96), rgba(2, 7, 26, 0.96));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.13),
    0 10px 28px rgba(0, 0, 25, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-button:hover {
  border-color: rgba(255, 223, 112, 0.72);
  box-shadow: 0 14px 30px rgba(0, 0, 25, 0.38), 0 0 22px rgba(255, 202, 52, 0.12);
  transform: translateY(-3px);
}

.store-button__icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.store-button .play-icon {
  fill: var(--cyan);
}

.store-button span {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.store-button small {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.store-button b {
  margin-top: 3px;
  font-size: 1.12rem;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.hero__proof div {
  display: flex;
  flex-direction: column;
}

.hero__proof b {
  color: #fff;
  font-size: 1.42rem;
}

.hero__proof span {
  color: #91a7d5;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__proof i {
  width: 1px;
  height: 29px;
  background: var(--line);
}

.hero-stage {
  position: relative;
  z-index: 4;
  justify-self: center;
  width: min(510px, 39vw);
  perspective: 1300px;
}

.hero-stage__halo {
  position: absolute;
  inset: 8% -18% 3%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 221, 255, 0.25), rgba(91, 55, 255, 0.14) 40%, transparent 68%);
  filter: blur(10px);
}

.hero-stage__phone {
  position: relative;
  z-index: 2;
  aspect-ratio: 0.52;
  padding: 12px;
  overflow: hidden;
  border: 3px solid #ffe884;
  border-radius: 58px;
  background: linear-gradient(145deg, #fff3a5, #b55d00 23%, #ffd649 48%, #6a2f00 78%, #fff1a4);
  box-shadow:
    inset 0 0 0 3px #7a3800,
    0 42px 80px rgba(0, 0, 30, 0.55),
    0 0 52px rgba(28, 213, 255, 0.16);
  transform: rotateY(-7deg) rotateX(2deg) rotateZ(1deg);
  transform-style: preserve-3d;
}

.device-speaker {
  position: absolute;
  z-index: 9;
  top: 22px;
  left: 50%;
  width: 76px;
  height: 20px;
  border: 2px solid rgba(255, 221, 91, 0.5);
  border-radius: 99px;
  background: #040a23;
  transform: translateX(-50%);
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid #4b2200;
  border-radius: 45px;
  background: #071644;
}

.device-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-screen::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 28% 72%, rgba(38, 221, 255, 0.08));
  pointer-events: none;
}

.device-score {
  position: absolute;
  z-index: 2;
  top: 7%;
  left: 8%;
  width: 84%;
  aspect-ratio: 3.2;
}

.device-score > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.device-score span {
  position: absolute;
  z-index: 2;
  top: 8%;
  bottom: 12%;
  width: 17%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding-top: 6%;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 10, 40, 0.45);
}

.device-score span:nth-of-type(1) { left: 3.2%; }
.device-score span:nth-of-type(2) { right: 3.2%; left: auto; }

.device-score small {
  font-size: clamp(0.55rem, 0.85vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #fff;
  transform: translateY(-2px);
}

.device-score b {
  margin-top: auto;
  margin-bottom: 37%;
  font-size: clamp(1.15rem, 2.1vw, 1.85rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.device-score i {
  position: absolute;
  z-index: 2;
  top: 39%;
  left: 50%;
  color: #fff;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 10, 40, 0.45);
  transform: translateX(-50%);
}

.device-board {
  position: absolute;
  z-index: 2;
  top: 25%;
  left: 7%;
  width: 86%;
  aspect-ratio: 1;
}

.device-board > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mini-grid {
  position: absolute;
  z-index: 2;
  inset: 16%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 5px;
}

.mini-grid span {
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  background: rgba(26, 89, 184, 0.22);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.mini-grid span.is-blue {
  background: linear-gradient(145deg, #25e0ff, #1971da);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.5), 0 0 14px rgba(40, 220, 255, 0.55);
}

.mini-grid span.is-gold {
  background: linear-gradient(145deg, #fff072, #f5a600);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.6), 0 0 14px rgba(255, 197, 37, 0.52);
}

.device-turn {
  position: absolute;
  z-index: 3;
  right: 7%;
  bottom: 8%;
  width: 25%;
  animation: crownFloat 2.5s ease-in-out infinite;
}

.device-caption {
  position: absolute;
  z-index: 3;
  bottom: 9%;
  left: 9%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 99px;
  color: #fff;
  background: rgba(3, 15, 58, 0.68);
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
}

.device-caption span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 9px var(--emerald);
}

.hero-avatar {
  position: absolute;
  z-index: 5;
  width: 118px;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 25, 0.42));
  animation: avatarFloat 4.5s ease-in-out infinite;
}

.hero-avatar img {
  width: 100%;
}

.hero-avatar span {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 232, 144, 0.55);
  border-radius: 99px;
  color: #fff3ba;
  background: rgba(5, 16, 56, 0.86);
  box-shadow: 0 8px 16px rgba(0, 0, 25, 0.28);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-avatar--queen { top: 6%; right: -18%; }
.hero-avatar--prince { bottom: 8%; left: -24%; animation-delay: -1.2s; }
.hero-avatar--knight { right: -17%; bottom: 13%; animation-delay: -2.4s; }

.floating-token {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  border: 3px solid var(--gold-light);
  border-radius: 18px;
  color: var(--cream);
  background: linear-gradient(145deg, #154daf, #08225f);
  box-shadow: inset 0 0 0 3px #6b3100, var(--shadow-gold);
  font-size: 0.85rem;
  font-weight: 700;
  transform: rotate(10deg);
}

.floating-token--one { top: 24%; left: -13%; }
.floating-token--two { right: -8%; bottom: 32%; transform: rotate(-13deg); }

.scroll-cue {
  position: absolute;
  z-index: 8;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(221, 232, 255, 0.7);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  width: 24px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 99px;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  border-radius: 4px;
  background: var(--gold-light);
  transform: translateX(-50%);
  animation: scrollDot 1.7s ease infinite;
}

.royal-marquee {
  position: relative;
  z-index: 4;
  width: 104%;
  margin-left: -2%;
  overflow: hidden;
  border-block: 1px solid rgba(255, 231, 140, 0.42);
  color: var(--gold-light);
  background: linear-gradient(90deg, #071744, #102b75, #190e51, #071744);
  box-shadow: 0 14px 44px rgba(0, 0, 30, 0.42);
  transform: rotate(-1deg);
}

.royal-marquee > div {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 18px 0;
  animation: marquee 28s linear infinite;
}

.royal-marquee span {
  padding: 0 28px;
  font-size: clamp(0.74rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.royal-marquee i {
  width: 12px;
  height: 12px;
  border: 2px solid #fff1a4;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  transform: rotate(45deg);
}

.story {
  padding-top: clamp(130px, 12vw, 200px);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.story-art {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(87, 180, 255, 0.19);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 39%, rgba(255, 203, 51, 0.2), transparent 23rem),
    linear-gradient(155deg, rgba(19, 58, 135, 0.72), rgba(6, 14, 48, 0.9));
  box-shadow: inset 0 0 80px rgba(30, 105, 255, 0.08), var(--shadow-deep);
  isolation: isolate;
}

.story-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 16px;
  border: 1px solid rgba(255, 227, 125, 0.16);
  border-radius: calc(var(--radius-xl) - 12px);
  pointer-events: none;
}

.story-art__back {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.story-art__rays {
  position: absolute;
  inset: 5%;
  opacity: 0.65;
  animation: slowSpin 34s linear infinite;
}

.story-art__rays img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-art__portal {
  position: absolute;
  inset: 12% 8%;
  display: grid;
  place-items: center;
}

.story-art__portal i {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(56, 218, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 35px rgba(38, 219, 255, 0.06);
}

.story-art__portal i:nth-child(2) { width: 58%; border-color: rgba(255, 214, 65, 0.28); }
.story-art__portal i:nth-child(3) { width: 38%; border-style: dashed; }

.story-art__king-wrap {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.story-art__king {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 82%;
  height: 90%;
  object-fit: contain;
  object-position: bottom left;
  filter: drop-shadow(0 34px 24px rgba(0, 0, 30, 0.55));
  /* Soft fade only on outer edges — face stays fully opaque */
  -webkit-mask-image:
    linear-gradient(to left, transparent 0%, #000 16%, #000 100%),
    linear-gradient(to top, transparent 0%, #000 22%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, transparent 0%, #000 16%, #000 100%),
    linear-gradient(to top, transparent 0%, #000 22%, #000 100%);
  mask-composite: intersect;
}

.story-art__crown {
  position: absolute;
  z-index: 3;
  top: 5%;
  right: 4%;
  width: 34%;
  filter: drop-shadow(0 0 24px rgba(255, 203, 49, 0.5));
  animation: crownFloat 3.2s ease-in-out infinite;
}

.story-art__label {
  position: absolute;
  z-index: 4;
  right: 7%;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  padding: 13px 17px;
  border: 1px solid rgba(255, 233, 148, 0.55);
  border-radius: 15px;
  background: rgba(4, 13, 46, 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 30, 0.36);
  backdrop-filter: blur(12px);
}

.story-art__label small { color: var(--cyan-soft); font-size: 0.62rem; letter-spacing: 0.12em; }
.story-art__label strong { margin-top: 3px; color: #fff; font-size: 1.15rem; }

.story-copy__lead {
  margin: 0;
  color: #eef4ff;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  line-height: 1.55;
}

.story-chapters {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.story-chapters article {
  position: relative;
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr);
  grid-template-areas:
    "label icon title"
    "label icon text";
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
  min-height: 112px;
  padding: 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(141, 181, 255, 0.16);
  border-radius: 23px;
  background: linear-gradient(100deg, rgba(16, 50, 118, 0.62), rgba(8, 21, 66, 0.62));
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.story-chapters article:hover {
  border-color: rgba(255, 220, 90, 0.42);
  background: linear-gradient(100deg, rgba(22, 70, 153, 0.7), rgba(16, 27, 78, 0.7));
  transform: translateX(7px);
}

.story-chapters article > span {
  grid-area: label;
  color: var(--cyan-soft);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.story-chapters article > div {
  position: relative;
  grid-area: icon;
  width: 50px;
  aspect-ratio: 1;
}

.story-chapters article > div i,
.story-chapters article > div b {
  position: absolute;
  inset: 3px;
  border: 3px solid var(--cyan);
  border-radius: 8px;
  transform: rotate(45deg);
}

.story-chapters article > div b {
  inset: 15px;
  border: 0;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}

.story-chapters h3 {
  grid-area: title;
  margin: 0;
  color: #fff;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.story-chapters p {
  grid-area: text;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.1vw, 0.9rem);
  line-height: 1.5;
}

.story-copy blockquote {
  position: relative;
  margin: 28px 0 0;
  padding: 22px 28px 22px 58px;
  border-left: 3px solid var(--gold);
  border-radius: 0 18px 18px 0;
  color: #f9eecb;
  background: rgba(255, 207, 57, 0.07);
  font-size: 1.05rem;
  line-height: 1.55;
}

.story-copy blockquote span {
  position: absolute;
  top: 4px;
  left: 14px;
  color: var(--gold);
  font-size: 4.5rem;
  line-height: 1;
  opacity: 0.55;
}

.how {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(180deg, transparent, rgba(8, 28, 83, 0.7) 25%, rgba(10, 23, 71, 0.82) 76%, transparent),
    radial-gradient(circle at 50% 50%, rgba(62, 190, 255, 0.12), transparent 44rem);
}

.how-stage {
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(45px, 7vw, 100px);
}

.how-stage__screen {
  position: sticky;
  top: 120px;
  height: 650px;
  overflow: hidden;
  border: 5px solid var(--gold);
  border-radius: 46px;
  background: var(--royal-900);
  box-shadow: inset 0 0 0 3px var(--gold-dark), var(--shadow-deep);
}

.how-stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-stage__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.how-stage__frame {
  position: absolute;
  z-index: 2;
  inset: 7% 7%;
  width: 86%;
  height: 86%;
  object-fit: fill;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 28, 0.42));
}

.how-stage__title {
  position: absolute;
  z-index: 3;
  top: 7%;
  left: 14%;
  width: 72%;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 25, 0.32));
}

.how-stage__cards {
  position: absolute;
  z-index: 4;
  inset: 26% 14% 12%;
  display: grid;
  align-content: center;
  gap: 12px;
}

.how-stage__cards > div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  aspect-ratio: 3.15 / 1;
  min-height: 102px;
  height: auto;
  box-sizing: border-box;
}

.how-stage__cards > div > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: inherit;
  object-position: center 48%;
}

.how-stage__cards b {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  aspect-ratio: 1;
  border: 2px solid #fff0a5;
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(145deg, #27caf2, #143cab);
  box-shadow: 0 7px 14px rgba(0, 0, 30, 0.3);
}

.how-stage__cards span {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  color: #ffe27a;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(90, 45, 0, 0.55),
    0 2px 8px rgba(0, 0, 20, 0.45);
}

.steps {
  position: relative;
  display: grid;
  gap: 16px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 55px;
  bottom: 55px;
  left: 43px;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--gold), var(--purple));
  box-shadow: 0 0 12px rgba(40, 220, 255, 0.32);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 86px 88px 1fr;
  align-items: center;
  gap: 17px;
  min-height: 145px;
  padding: 20px 24px 20px 0;
  border: 1px solid rgba(133, 177, 255, 0.14);
  border-radius: 27px;
  background: linear-gradient(100deg, rgba(7, 22, 70, 0.36), rgba(13, 43, 111, 0.58));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.step:hover,
.step.is-active {
  border-color: rgba(255, 224, 113, 0.42);
  background: linear-gradient(100deg, rgba(14, 40, 105, 0.68), rgba(16, 60, 142, 0.72));
  transform: translateX(8px);
}

.step__badge {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  margin-left: -1px;
}

.step__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 26, 0.35));
}

.step__badge b {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  transform: translate(-50%, -52%);
}

.step__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border: 1px solid rgba(118, 218, 255, 0.3);
  border-radius: 22px;
  background: radial-gradient(circle, rgba(40, 220, 255, 0.17), rgba(10, 34, 98, 0.6));
}

.step__icon > img {
  width: 72%;
  max-height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 28, 0.32));
}

.step__icon--line i,
.step__icon--box i {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid #dffaff;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.step__icon--line i:first-child { left: 13px; top: 50%; }
.step__icon--line i:nth-child(2) { right: 13px; top: 50%; }
.step__icon--line b {
  width: 40px;
  height: 5px;
  border-radius: 5px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.step__icon--box i:nth-child(1) { left: 13px; top: 13px; }
.step__icon--box i:nth-child(2) { right: 13px; top: 13px; }
.step__icon--box i:nth-child(3) { right: 13px; bottom: 13px; }
.step__icon--box i:nth-child(4) { left: 13px; bottom: 13px; }
.step__icon--box b { width: 39px; height: 39px; border: 5px solid var(--gold); border-radius: 6px; box-shadow: 0 0 14px rgba(255, 201, 52, 0.4); }

.step small {
  color: var(--cyan-soft);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.step h3 {
  margin: 3px 0 5px;
  color: #fff;
  font-size: 1.4rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.arena {
  width: min(calc(100% - 32px), 1440px);
  padding-inline: clamp(24px, 5vw, 74px);
  overflow: hidden;
  border: 1px solid rgba(139, 189, 255, 0.16);
  border-radius: 70px;
  background:
    linear-gradient(145deg, rgba(5, 17, 58, 0.94), rgba(14, 48, 121, 0.88)),
    var(--royal-900);
  box-shadow: inset 0 0 110px rgba(33, 126, 255, 0.08), var(--shadow-deep);
}

.arena::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(73, 201, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 201, 255, 0.25) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000 78%, transparent);
}

.arena-glow {
  position: absolute;
  right: -10%;
  bottom: 4%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 218, 255, 0.18), transparent 62%);
  filter: blur(20px);
}

.arena-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: clamp(45px, 7vw, 100px);
}

.arena-copy > p {
  margin: 0;
  color: #bdccec;
  font-size: 1.05rem;
  line-height: 1.7;
}

.arena-metrics {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.arena-metrics article {
  min-height: 104px;
  padding: 17px;
  border: 1px solid rgba(130, 185, 255, 0.18);
  border-radius: 19px;
  background: rgba(7, 24, 75, 0.66);
}

.arena-metrics article:first-child {
  grid-column: 1 / -1;
}

.arena-metrics span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arena-metrics b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 2rem;
}

.arena-metrics article > i {
  display: block;
  height: 10px;
  margin-top: 11px;
  padding: 2px;
  border: 1px solid rgba(255, 225, 115, 0.45);
  border-radius: 99px;
  background: #061438;
}

.arena-metrics article > i em {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.5s ease;
}

.arena-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.game-button {
  padding: 14px 20px 17px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
}

.game-button--ghost {
  border: 1px solid rgba(131, 199, 255, 0.38);
  color: #e3ecff;
  background: rgba(14, 49, 119, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 10px 20px rgba(0, 0, 28, 0.2);
  text-shadow: none;
}

.arena-hint {
  margin-top: 12px !important;
  color: #7f96c6 !important;
  font-size: 1.2rem !important;
}

.game-console {
  position: relative;
  min-height: 750px;
  padding: 26px;
  overflow: hidden;
  border: 5px solid #f4c52d;
  border-radius: 49px;
  background: #06133e;
  box-shadow: inset 0 0 0 3px #713500, var(--shadow-deep);
}

.game-console__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.game-console::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 43, 0.24), rgba(3, 10, 39, 0.52));
  pointer-events: none;
}

.game-console__topline {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.game-console__topline span { display: flex; align-items: center; gap: 8px; }
.game-console__topline i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.game-console__topline b { color: var(--gold-light); }

.score-panel {
  position: absolute;
  z-index: 4;
  top: 6.8%;
  left: 16%;
  width: 68%;
  aspect-ratio: 3.15;
}

.score-panel > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.score-side {
  position: absolute;
  z-index: 2;
  top: 23%;
  bottom: 29%;
  width: 16%;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 10, 40, 0.45);
}

.score-side--you { left: 6.2%; }
.score-side--rival { right: 4.2%; }

.score-side small {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  font-size: clamp(0.5rem, 0.85vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  text-align: center;
}

.score-side b {
  position: absolute;
  top: 52%;
  left: 0;
  right: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-align: center;
}

.score-avatar {
  position: absolute;
  z-index: 2;
  top: 16%;
  width: 19.5%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  pointer-events: none;
}

.score-avatar--you { left: 27.4%; }
.score-avatar--rival { right: 27.2%; }

.score-vs {
  position: absolute;
  z-index: 3;
  top: 28%;
  left: 50%;
  width: 14%;
  transform: translateX(-50%);
}

.board-shell {
  position: absolute;
  z-index: 3;
  top: 23%;
  left: 12%;
  width: 76%;
  aspect-ratio: 1;
}

.board-shell > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.interactive-board {
  position: absolute;
  z-index: 2;
  inset: 15%;
}

.i-dot,
.i-box,
.i-line {
  position: absolute;
}

.i-dot {
  z-index: 5;
  width: 15px;
  height: 15px;
  border: 3px solid #eafcff;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 11px var(--cyan);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.i-box {
  z-index: 1;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.i-box.blue,
.i-box.gold {
  opacity: 0.88;
  transform: scale(1);
}

.i-box.blue {
  background: linear-gradient(145deg, rgba(35, 226, 255, 0.95), rgba(20, 95, 210, 0.88));
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.42), 0 0 18px rgba(39, 220, 255, 0.52);
}

.i-box.gold {
  background: linear-gradient(145deg, rgba(255, 238, 108, 0.96), rgba(240, 148, 0, 0.92));
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.52), 0 0 18px rgba(255, 198, 41, 0.5);
}

.i-line {
  z-index: 4;
  padding: 0;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
}

.i-line::before {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 99px;
  background: rgba(109, 182, 255, 0.26);
  transition: inset 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.i-line.horizontal { height: 24px; transform: translateY(-50%); }
.i-line.vertical { width: 24px; transform: translateX(-50%); }
.i-line:hover::before,
.i-line:focus-visible::before { inset: 23%; background: rgba(113, 231, 255, 0.65); box-shadow: 0 0 12px var(--cyan); }
.i-line.taken-blue::before { inset: 21%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.i-line.taken-gold::before { inset: 21%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.i-line:disabled { cursor: default; }

.turn-panel {
  position: absolute;
  z-index: 4;
  right: 10%;
  bottom: 5%;
  left: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 62px;
  border: 1px solid rgba(255, 238, 167, 0.45);
  border-radius: 20px;
  color: #fff;
  background: rgba(3, 14, 55, 0.73);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.turn-panel img { width: 45px; height: 45px; object-fit: contain; }
.turn-panel span { min-width: 100px; text-align: center; }

.heroes {
  width: min(calc(100% - 24px), 1500px);
}

.hero-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  min-height: 560px;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid rgba(161, 200, 255, 0.2);
  border-radius: 58px;
  background:
    radial-gradient(circle at 22% 48%, color-mix(in srgb, var(--spotlight-accent, #3bdcff) 20%, transparent), transparent 24rem),
    linear-gradient(120deg, rgba(11, 43, 112, 0.9), rgba(7, 18, 57, 0.94) 60%, rgba(34, 15, 78, 0.9));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), var(--shadow-deep);
}

.hero-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(89, 196, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 196, 255, 0.22) 1px, transparent 1px);
  background-size: 65px 65px;
  mask-image: linear-gradient(90deg, #000, transparent 64%);
}

.hero-spotlight__art {
  position: relative;
  align-self: stretch;
  min-height: 520px;
}

.hero-spotlight__art > img {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 4%;
  width: 90%;
  height: 94%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 38px 26px rgba(0, 0, 28, 0.55));
  transition: opacity 0.25s ease, transform 0.45s cubic-bezier(.2,.8,.2,1);
}

.hero-spotlight__rings {
  position: absolute;
  z-index: 1;
  inset: 6%;
  display: grid;
  place-items: center;
}

.hero-spotlight__rings i {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--spotlight-accent, #3bdcff) 50%, transparent);
  border-radius: 50%;
  box-shadow: inset 0 0 36px color-mix(in srgb, var(--spotlight-accent, #3bdcff) 9%, transparent);
}

.hero-spotlight__rings i:nth-child(2) { width: 58%; border-style: dashed; animation: slowSpin 22s linear infinite reverse; }
.hero-spotlight__rings i:nth-child(3) { width: 42%; border-color: rgba(255, 220, 84, 0.42); }

.hero-spotlight__copy {
  position: relative;
  z-index: 4;
  max-width: 650px;
  padding: 60px 80px 60px 30px;
}

.hero-spotlight__copy > span {
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-spotlight__copy > p {
  margin: 30px 0 8px;
  color: var(--spotlight-accent, var(--cyan-soft));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-spotlight h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-spotlight blockquote {
  max-width: 570px;
  margin: 24px 0 0;
  color: #c4d2ee;
  font-size: 1.15rem;
  line-height: 1.65;
}

.trait {
  display: inline-flex;
  flex-direction: column;
  margin-top: 28px;
  padding: 13px 17px;
  border: 1px solid color-mix(in srgb, var(--spotlight-accent, #3bdcff) 40%, transparent);
  border-radius: 15px;
  background: rgba(4, 13, 48, 0.58);
}

.trait small { color: #8298c4; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.trait b { margin-top: 4px; color: #fff5bd; }

.hero-spotlight__seal {
  position: absolute;
  right: 32px;
  bottom: 30px;
  display: grid;
  place-content: center;
  width: 90px;
  aspect-ratio: 1;
  border: 2px solid #ffe88e;
  border-radius: 50%;
  color: var(--gold-light);
  background: linear-gradient(145deg, #1149a8, #091b55);
  box-shadow: inset 0 0 0 5px #743600, 0 0 24px rgba(255, 202, 53, 0.2);
  transform: rotate(-9deg);
}

.hero-spotlight__seal span,
.hero-spotlight__seal b { display: block; text-align: center; font-size: 0.72rem; line-height: 1; }
.hero-spotlight__seal b { margin-top: 3px; color: var(--gold); font-size: 1.1rem; }

.champion-rail {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 16px 5px 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.champion-rail::-webkit-scrollbar { display: none; }

.champion-card {
  --card-accent: var(--accent, var(--cyan));
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 284px;
  height: 460px;
  min-height: 460px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(147, 189, 255, 0.19);
  border-radius: 29px;
  background:
    radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--card-accent) 21%, transparent), transparent 12rem),
    linear-gradient(165deg, rgba(19, 58, 137, 0.84), rgba(5, 16, 51, 0.92));
  box-shadow: var(--shadow-soft);
  scroll-snap-align: center;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.champion-card::before {
  content: "";
  position: absolute;
  top: -70%;
  left: -40%;
  width: 50%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(20deg);
  transition: left 0.7s ease;
}

.champion-card:hover::before { left: 120%; }

.champion-card:hover,
.champion-card.is-active {
  border-color: color-mix(in srgb, var(--card-accent) 70%, white 10%);
  box-shadow: 0 24px 60px rgba(0, 4, 29, 0.5), 0 0 28px color-mix(in srgb, var(--card-accent) 18%, transparent);
}

.champion-card__number {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 17px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.champion-card__portrait {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: 0 0 205px;
  height: 205px;
  margin-bottom: 4vh;
  border-radius: 21px;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 28%, transparent), transparent 68%);
}

.champion-card__portrait::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 5%;
  left: 8%;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 24, 0.42);
  filter: blur(9px);
}

.champion-card__portrait img {
  position: relative;
  z-index: 2;
  width: 96%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 15px rgba(0, 0, 26, 0.4));
  transition: transform 0.35s ease;
}

.champion-card:hover .champion-card__portrait img { transform: translateY(-7px) scale(1.04); }

.champion-card__portrait--king {
  overflow: visible;
}

.champion-card__portrait--king::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #2a5699 0%, #132a5c 55%, #0a1638 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 224, 120, 0.35),
    inset 0 0 22px rgba(0, 8, 30, 0.45),
    0 0 0 5px #d4a84a,
    0 0 0 9px #8f6b1c,
    0 0 0 13px #f0d56a,
    0 0 0 16px #6d5214,
    0 14px 28px rgba(0, 0, 20, 0.5);
}

.champion-card__portrait--king::after {
  right: auto;
  left: 50%;
  bottom: 12px;
  width: 120px;
  height: 16px;
  transform: translateX(-50%);
}

.champion-card__portrait--king img {
  z-index: 2;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 8%;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 26, 0.35));
}

.champion-card:hover .champion-card__portrait--king img {
  transform: translateY(-5px) scale(1.03);
}

.champion-card__portrait--duo img:first-child { width: 82%; transform: translateX(-12%); }
.champion-card__portrait--duo img:last-child { position: absolute; right: -4%; bottom: 0; width: 47%; height: 54%; }

.champion-card > small {
  color: var(--card-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.champion-card h3 {
  margin: 8px 0 6px;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.15;
}

.champion-card > p {
  flex: 1 1 auto;
  min-height: 52px;
  margin: 0;
  color: #9fb1d6;
  font-size: 1rem;
  line-height: 1.5;
}

.champion-card > strong {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(143, 182, 255, 0.15);
  color: #fff1b4;
  font-size: 0.95rem;
  line-height: 1.35;
}

.rail-controls,
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.rail-controls button {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid rgba(132, 204, 255, 0.32);
  border-radius: 15px;
  color: #fff;
  background: rgba(16, 53, 129, 0.62);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rail-controls button:hover { background: rgba(27, 89, 196, 0.78); transform: translateY(-2px); }
.rail-controls svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rail-progress { width: min(340px, 46vw); height: 6px; overflow: hidden; border-radius: 99px; background: rgba(100, 150, 235, 0.16); }
.rail-progress span { display: block; width: 10%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--gold)); box-shadow: 0 0 10px var(--cyan); transition: width 0.2s ease; }

.feature-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
  justify-items: stretch;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(143, 188, 255, 0.17);
  border-radius: 31px;
  background: linear-gradient(145deg, rgba(16, 52, 127, 0.78), rgba(7, 20, 65, 0.92));
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  border-color: rgba(255, 224, 113, 0.38);
  box-shadow: 0 18px 40px rgba(0, 4, 29, 0.35);
}

.feature--wide { grid-column: span 2; }

.feature--duel {
  grid-column: 1 / 3;
  grid-row: 1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: radial-gradient(circle at 80% 50%, rgba(255, 198, 41, 0.18), transparent 16rem), linear-gradient(145deg, #133fa2, #07194f);
}

.feature--strategy {
  grid-column: 3;
  grid-row: 1;
}

.feature--reward {
  grid-column: 4;
  grid-row: 1;
  background: radial-gradient(circle at 20% 20%, rgba(255, 188, 26, 0.17), transparent 15rem), linear-gradient(145deg, #37216f, #0a174c);
}

.feature--modes {
  grid-column: 1 / 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  flex-direction: unset;
  align-items: center;
  gap: 26px;
}

.feature--heroes {
  grid-column: 3;
  grid-row: 2;
  justify-content: flex-end;
}

.feature--crown {
  grid-column: 4;
  grid-row: 2;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle, rgba(255, 204, 54, 0.18), transparent 14rem), linear-gradient(145deg, #132a77, #2b135d);
}

.feature > span,
.feature > div > span { color: var(--cyan-soft); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.feature h3 { margin: 8px 0 10px; color: #fff; font-size: clamp(1.35rem, 2.2vw, 2.2rem); line-height: 1.08; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.feature--duel > div { max-width: 62%; }
.feature--duel > img { width: 34%; max-height: 220px; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(0, 0, 28, 0.38)); }
.feature--strategy > img,
.feature--reward > img,
.feature--crown > img { width: 110px; height: 100px; margin-bottom: 14px; object-fit: contain; filter: drop-shadow(0 15px 15px rgba(0, 0, 28, 0.3)); }
.mode-buttons { display: grid; gap: 13px; }
.mode-buttons img { width: 100%; filter: drop-shadow(0 14px 15px rgba(0, 0, 28, 0.28)); transition: transform 0.25s ease; }
.mode-buttons img:hover { transform: translateX(6px) scale(1.02); }
.feature-avatar-stack { position: relative; height: 118px; margin-bottom: 20px; }
.feature-avatar-stack img { position: absolute; bottom: 0; width: 106px; filter: drop-shadow(0 16px 12px rgba(0, 0, 25, 0.35)); }
.feature-avatar-stack img:nth-child(1) { left: 0; }
.feature-avatar-stack img:nth-child(2) { left: 27%; z-index: 2; }
.feature-avatar-stack img:nth-child(3) { left: 54%; }
.feature--crown > img { width: 150px; height: 135px; margin-inline: auto; animation: crownFloat 3s ease-in-out infinite; }

.kingdom {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  isolation: isolate;
}

.kingdom-backdrop {
  position: absolute;
  z-index: -2;
  inset: 6% 0 5%;
}

.kingdom-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.15) brightness(0.58);
}

.kingdom-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--royal-950), rgba(4, 14, 47, 0.58), rgba(7, 20, 62, 0.7), var(--royal-950)), linear-gradient(180deg, var(--royal-950), transparent 20% 78%, var(--royal-950));
}

.kingdom-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.kingdom-copy h2 { margin-top: 14px; }
.kingdom-copy > p:last-of-type { max-width: 570px; margin-top: 24px; color: var(--muted); font-size: 1.03rem; line-height: 1.68; }

.league-path {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.league-path::before { content: ""; position: absolute; top: 33px; bottom: 33px; left: 27px; width: 2px; background: linear-gradient(var(--emerald), var(--gold)); }
.league-path li { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 0; border-radius: 18px; }
.league-path li > span { position: relative; z-index: 2; display: grid; place-items: center; width: 56px; aspect-ratio: 1; border: 2px solid #8297c7; border-radius: 18px; color: #c7d3ec; background: var(--royal-900); font-size: 0.78rem; }
.league-path li.is-complete > span { border-color: #9fffd4; color: #eafff6; background: #0f7658; box-shadow: 0 0 18px rgba(55, 223, 154, 0.2); }
.league-path li.is-current > span { border-color: #fff0a7; color: #482600; background: var(--gold); box-shadow: 0 0 22px rgba(255, 202, 52, 0.32); }
.league-path div { display: flex; flex-direction: column; }
.league-path b { color: #fff; }
.league-path small {
  margin-top: 3px;
  color: #8fa5d2;
  font-size: 0.95rem;
  line-height: 1.35;
}

.statistics-screen {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  perspective: 1200px;
}

.statistics-screen::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8% 3% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 218, 255, 0.2), transparent 62%);
  filter: blur(14px);
}

.statistics-screen__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 42px rgba(0, 0, 30, 0.52));
}

.theme-strip {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: max-content;
  max-width: 100%;
  margin: 40px auto 0;
  padding: 16px 24px;
  border: 1px solid rgba(155, 198, 255, 0.18);
  border-radius: 26px;
  background: rgba(7, 22, 67, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.theme-strip span {
  margin-right: 10px;
  color: #aebddd;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.theme-strip img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.theme-strip img:hover { transform: translateY(-5px) scale(1.08); }

.gallery {
  width: min(calc(100% - 20px), 1540px);
}

.gallery-rail {
  display: flex;
  align-items: flex-start;
  gap: 27px;
  padding: 30px max(18px, calc((100vw - var(--max)) / 4)) 54px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  perspective: 1400px;
}

.gallery-rail::-webkit-scrollbar { display: none; }

.phone-shot {
  position: relative;
  flex: 0 0 340px;
  padding-bottom: 82px;
  border: 1px solid rgba(141, 190, 255, 0.17);
  border-radius: 48px;
  background: linear-gradient(160deg, rgba(18, 57, 137, 0.75), rgba(5, 15, 49, 0.92));
  box-shadow: var(--shadow-deep);
  scroll-snap-align: center;
  transform-style: preserve-3d;
}

.phone-shot:nth-child(even) { margin-top: 54px; }

.phone-shot__screen {
  position: relative;
  aspect-ratio: 0.505;
  margin: 10px;
  overflow: hidden;
  border: 5px solid #f6cb3b;
  border-radius: 38px;
  background: var(--royal-900);
  box-shadow: inset 0 0 0 3px #6f3200;
}

.phone-shot__screen::after {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 26% 76%, rgba(24, 220, 255, 0.06));
  pointer-events: none;
}

.phone-shot__camera {
  position: absolute;
  z-index: 30;
  top: 25px;
  left: 50%;
  width: 76px;
  height: 22px;
  border: 2px solid rgba(255, 221, 85, 0.46);
  border-radius: 99px;
  background: #050a20;
  transform: translateX(-50%);
}

.phone-shot footer {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-shot footer > span { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 1px solid rgba(255, 229, 125, 0.5); border-radius: 13px; color: var(--gold-light); background: rgba(255, 207, 54, 0.08); font-size: 0.7rem; }
.phone-shot footer > div { display: flex; flex-direction: column; }
.phone-shot footer b { color: #fff; font-size: 0.88rem; }
.phone-shot footer small { margin-top: 2px; color: #8298c4; font-size: 1rem; }
.shot-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-logo { position: absolute; z-index: 3; top: 6%; left: 5%; width: 90%; filter: drop-shadow(0 14px 12px rgba(0, 0, 25, 0.3)); }
.shot-profile { position: absolute; z-index: 4; top: 31%; left: 7%; width: 86%; aspect-ratio: 3.3; }
.shot-profile > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot-profile > img:nth-child(2) { position: absolute; z-index: 2; top: 6%; left: 4%; width: 27%; }
.shot-profile b,
.shot-profile small { position: absolute; z-index: 3; left: 34%; color: #35202c; }
.shot-profile b { top: 26%; font-size: 0.8rem; }
.shot-profile small { top: 52%; color: #785c42; font-size: 0.48rem; text-transform: uppercase; }
.shot-online,
.shot-offline { position: absolute; z-index: 3; left: 12%; width: 76%; }
.shot-online { top: 49%; }
.shot-offline { top: 65%; }
.shot-settings,
.shot-reward { position: absolute; z-index: 3; bottom: 4%; width: 18%; }
.shot-settings { left: 8%; }
.shot-reward { right: 8%; }
.modal-frame { position: absolute; z-index: 2; object-fit: fill; }
.avatar-frame { inset: 11% 7% 9%; width: 86%; height: 80%; }
.avatar-title { position: absolute; z-index: 4; top: 14%; left: 18%; width: 64%; }
.avatar-grid { position: absolute; z-index: 5; inset: 29% 16% 19%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.avatar-grid img { width: 100%; height: 100%; object-fit: contain; }
.shot-close { position: absolute; z-index: 7; top: 10%; right: 6%; width: 18%; }
.settings-frame { inset: 12% 8% 11%; width: 84%; height: 77%; }
.settings-title { position: absolute; z-index: 4; top: 16%; left: 18%; width: 64%; }
.settings-options { position: absolute; z-index: 5; inset: 31% 18% 22%; display: grid; grid-template-columns: 48px 1fr 60px; align-items: center; gap: 20px 8px; color: #442b41; font-size: 0.72rem; }
.settings-options img { width: 100%; height: 45px; object-fit: contain; }
.settings-options img:nth-of-type(2),
.settings-options img:nth-of-type(4),
.settings-options img:nth-of-type(6) { width: 58px; }
.win-rays { position: absolute; z-index: 1; top: 13%; left: -17%; width: 134%; opacity: 0.7; animation: slowSpin 30s linear infinite; }
.win-frame { position: absolute; z-index: 2; top: 16%; left: 9%; width: 82%; height: 64%; }
.win-ribbon { position: absolute; z-index: 5; top: 18%; left: 4%; width: 92%; }
.win-trophy { position: absolute; z-index: 4; top: 31%; left: 20%; width: 60%; filter: drop-shadow(0 18px 18px rgba(0, 0, 30, 0.34)); }
.win-again { position: absolute; z-index: 5; bottom: 15%; left: 14%; width: 72%; }
.win-home { position: absolute; z-index: 5; bottom: 7%; left: 23%; width: 54%; }
.lose-frame { position: absolute; z-index: 2; top: 15%; left: 8%; width: 84%; height: 68%; }
.lose-ribbon { position: absolute; z-index: 5; top: 18%; left: 4%; width: 92%; }
.lose-king { position: absolute; z-index: 4; top: 34%; left: 19%; width: 63%; }
.lose-home { position: absolute; z-index: 5; bottom: 12%; left: 16%; width: 68%; }

.gallery-controls button {
  min-width: 92px;
  padding: 11px 15px;
  border: 1px solid rgba(142, 194, 255, 0.3);
  border-radius: 14px;
  color: #dce8ff;
  background: rgba(15, 51, 125, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-controls button:hover { background: rgba(26, 81, 181, 0.78); transform: translateY(-2px); }
.gallery-controls > div { width: min(360px, 40vw); height: 6px; overflow: hidden; border-radius: 99px; background: rgba(111, 158, 236, 0.17); }
.gallery-controls > div span { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--gold)); transition: width 0.2s ease; }

.final-cta {
  width: min(calc(100% - 24px), 1500px);
  min-height: 920px;
  margin-bottom: 40px;
  padding-inline: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 112, 0.28);
  border-radius: 72px;
  box-shadow: var(--shadow-deep), 0 0 70px rgba(255, 195, 31, 0.08);
  isolation: isolate;
}

.final-cta__backdrop {
  position: absolute;
  z-index: -4;
  inset: 0;
}

.final-cta__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: brightness(0.58) saturate(1.15);
}

.final-cta__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 37, 0.65), rgba(7, 20, 62, 0.28) 40%, rgba(3, 9, 35, 0.96) 90%), radial-gradient(circle at 50% 44%, transparent, rgba(2, 6, 25, 0.7));
}

.final-cta__rays {
  position: absolute;
  z-index: -2;
  top: 8%;
  left: 50%;
  width: min(850px, 90%);
  opacity: 0.65;
  transform: translateX(-50%);
  animation: slowSpin 36s linear infinite;
}

.final-cta__logo {
  position: absolute;
  z-index: 2;
  top: 3%;
  left: 50%;
  width: min(440px, 58vw);
  filter: drop-shadow(0 26px 24px rgba(0, 0, 25, 0.44));
  transform: translateX(-50%);
}

.final-cta__crown {
  position: absolute;
  z-index: 1;
  top: 22%;
  left: 50%;
  width: min(310px, 44vw);
  filter: drop-shadow(0 0 38px rgba(255, 210, 55, 0.5));
  transform: translateX(-50%);
  animation: crownFloatCenter 3.2s ease-in-out infinite;
}

.final-cta__content {
  position: relative;
  z-index: 5;
  max-width: 830px;
  margin: 20vh auto 0;
  padding-bottom: 9vh;
  text-align: center;
}

.final-cta h2 { margin-inline: auto; font-size: clamp(3.1rem, 7vw, 7.5rem); text-shadow: 0 8px 30px rgba(0, 0, 35, 0.48); }
.final-cta__content > p:not(.section-kicker) { max-width: 700px; margin: 22px auto 0; color: #c9d7f1; font-size: 1.13rem; line-height: 1.65; }
.final-cta__content > strong { display: block; margin-top: 12px; color: #fff1b4; font-size: 1.18rem; }
.store-buttons--center { justify-content: center; margin-top: 30px; }
.coming-soon { display: block; margin-top: 16px; color: rgba(185, 201, 231, 0.67); font-size: 1.2rem; }

.final-avatars {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 2%;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.final-avatars img {
  width: clamp(110px, 13vw, 190px);
  margin-inline: -14px;
  filter: drop-shadow(0 20px 18px rgba(0, 0, 30, 0.5));
}

.final-avatars img:nth-child(1),
.final-avatars img:nth-child(5) { width: clamp(86px, 10vw, 150px); transform: translateY(20px); }
.final-avatars img:nth-child(2),
.final-avatars img:nth-child(4) { width: clamp(100px, 12vw, 175px); transform: translateY(8px); }
.final-avatars img:nth-child(3) { z-index: 2; }

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 56px 20px 40px;
  border-top: 1px solid rgba(137, 181, 255, 0.15);
  text-align: center;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: block;
  width: 180px;
  margin: 0 auto 8px;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 25, 0.32));
}

.footer-lead,
.site-footer__inner > p {
  width: 100%;
  margin: 18px 0 0;
  color: #879bc5;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.studio-blurb {
  width: 100%;
  max-width: 640px;
  margin: 18px auto 0;
  color: #9aadd0;
  font-size: 0.78rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  text-align: center;
}

.studio-blurb a { color: var(--gold-light); font-weight: 700; }

.studio-tagline {
  width: 100%;
  margin-top: 16px;
  color: #d7e3ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  width: 100%;
  margin-top: 24px;
}

.site-footer nav a {
  color: #b2c0dd;
  font-size: 0.82rem;
  text-align: center;
  transition: color 0.2s ease;
}

.site-footer nav a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(137, 181, 255, 0.1);
  color: #687da8;
  font-size: 0.72rem;
  text-align: center;
}

.footer-bottom a { color: #a8b9db; }

.powered-by {
  width: 100%;
  margin-top: 18px;
  color: #879bc5;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.powered-by a { color: var(--gold-light); font-weight: 700; text-decoration: none; }
.powered-by a:hover { text-decoration: underline; }

.legal-page { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 120px 0 80px; color: #d5def0; }
.legal-page h1 { margin: 12px 0 18px; font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; }
.legal-page h2 { margin: 28px 0 10px; font-size: 1.2rem; color: var(--gold-light); }
.legal-page p, .legal-page li { line-height: 1.7; color: #b7c4df; }
.legal-page a { color: #7ee7ff; }
.noscript { position: fixed; z-index: 99999; right: 16px; bottom: 16px; left: 16px; padding: 14px; border: 1px solid var(--gold); border-radius: 14px; color: #fff; background: #09194c; text-align: center; }

.store-notice {
  position: fixed;
  z-index: 1500;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 231, 139, 0.62);
  border-radius: 16px;
  color: #fff8d5;
  background: rgba(5, 17, 57, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 28, 0.46), 0 0 22px rgba(255, 203, 45, 0.12);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.store-notice.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.capture-spark {
  --angle: 0deg;
  --distance: 30px;
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px currentColor;
  pointer-events: none;
  animation: captureBurst 0.58s ease-out forwards;
}

.capture-spark--blue { color: var(--cyan); background: var(--cyan-soft); }
.capture-spark--gold { color: var(--gold); background: var(--gold-light); }

@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes crownFloatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50% { transform: translateX(-50%) translateY(-14px) rotate(2deg); }
}

@keyframes logoBreathe {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 28px 28px rgba(0,0,24,.42)) drop-shadow(0 0 24px rgba(255,199,50,.14)); }
  50% { transform: translateY(-5px) scale(1.008); filter: drop-shadow(0 32px 30px rgba(0,0,24,.48)) drop-shadow(0 0 30px rgba(255,199,50,.22)); }
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-11px) rotate(2deg); }
}

@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes scrollDot { 0% { transform: translate(-50%, 0); opacity: 0; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, 16px); opacity: 0; } }
@keyframes load { from { transform: translateX(-20%); } to { transform: translateX(145%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes captureBurst {
  from { opacity: 1; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--distance)) scale(0); }
}

@media (max-width: 1240px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr); }
  .hero-stage { width: min(440px, 38vw); }
  .hero-avatar { width: 96px; }
  .hero-avatar--queen { right: -11%; }
  .hero-avatar--prince { left: -15%; }
  .hero-avatar--knight { right: -11%; }
  .story-layout { gap: 60px; }
  .story-art { min-height: 580px; }
  .feature-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(250px, auto);
  }
  .feature {
    min-height: 250px;
    height: auto;
  }
  .feature--duel,
  .feature--strategy,
  .feature--reward,
  .feature--modes,
  .feature--heroes,
  .feature--crown {
    grid-column: auto;
    grid-row: auto;
  }
  .feature--wide { grid-column: span 2; }
}

@media (max-width: 1020px) {
  :root { --header-height: 68px; }
  .site-header { grid-template-columns: auto auto auto; justify-content: space-between; }
  .brand { min-width: auto; }
  .brand span { display: none; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 0.78rem; }
  .header-download { padding: 12px 18px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 150px; padding-bottom: 110px; text-align: center; }
  .hero__copy { max-width: 760px; margin-inline: auto; }
  .royal-label,
  .hero__actions,
  .store-buttons,
  .hero__proof { justify-content: center; }
  .hero__logo { margin-inline: auto; }
  .hero__lede { margin-inline: auto; }
  .hero-stage { width: min(460px, 62vw); margin-top: 34px; }
  .hero__veil { background: linear-gradient(180deg, rgba(3,9,35,.96), rgba(4,14,52,.72) 48%, rgba(3,9,35,.82)); }
  .hero__grid { mask-image: linear-gradient(#000, transparent 75%); }
  .scroll-cue { display: none; }
  .story-layout,
  .how-stage,
  .arena-layout,
  .kingdom-layout { grid-template-columns: 1fr; }
  .story-art { width: min(620px, 100%); margin-inline: auto; }
  .story-chapters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .story-chapters article {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "icon"
      "title"
      "text";
    justify-items: start;
    align-content: start;
    min-height: 0;
    padding: 20px 18px;
    transform: none;
  }
  .story-chapters article:hover { transform: translateY(-4px); }
  .story-chapters article > div { width: 46px; margin: 8px 0 4px; }
  .how-stage__screen { position: relative; top: auto; width: min(560px, 100%); margin-inline: auto; }
  .arena-copy { max-width: 680px; }
  .game-console { width: min(720px, 100%); margin-inline: auto; }
  .hero-spotlight { grid-template-columns: 0.9fr 1.1fr; }
  .hero-spotlight__copy { padding-right: 45px; }
  .statistics-screen { width: min(480px, 100%); margin-inline: auto; }
}

@media (max-width: 820px) {
  .site-header { width: calc(100% - 20px); top: 8px; }
  .site-nav {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid rgba(139, 187, 255, 0.2);
    border-radius: 20px;
    background: rgba(3, 12, 43, 0.96);
    box-shadow: 0 22px 42px rgba(0, 0, 25, 0.45);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }
  .site-header.menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 13px 15px; border-radius: 12px; font-size: 0.9rem; }
  .site-nav a:hover { background: rgba(34, 91, 190, 0.28); }
  .site-nav a::after { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-download { justify-self: end; }
  .section { width: min(calc(100% - 28px), var(--max)); }
  .section-heading { gap: 15px; }
  .section-number { width: 44px; height: 44px; border-radius: 14px; }
  .section-heading--center {
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
  }
  .section-heading--center > div {
    max-width: min(100%, 720px);
  }
  .story-art { min-height: 540px; }
  .story-chapters {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .story-chapters article {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "icon label"
      "icon title"
      "icon text";
    align-items: start;
    column-gap: 14px;
    row-gap: 4px;
    min-height: 0;
    padding: 18px 16px;
    transform: none;
  }
  .story-chapters article:hover { transform: none; }
  .story-chapters article > span { align-self: end; }
  .story-chapters article > div {
    width: 44px;
    margin: 0;
    align-self: center;
    grid-row: 1 / -1;
  }
  .hero-spotlight { grid-template-columns: 1fr; min-height: auto; }
  .hero-spotlight__art { min-height: 400px; }
  .hero-spotlight__art > img { right: 10%; width: 80%; }
  .hero-spotlight__copy { padding: 34px 34px 45px; text-align: center; }
  .hero-spotlight__copy blockquote { margin-inline: auto; }
  .hero-spotlight__seal { top: 30px; right: 25px; bottom: auto; }
  .feature-bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(240px, auto);
  }
  .feature--wide,
  .feature--duel,
  .feature--strategy,
  .feature--reward,
  .feature--modes,
  .feature--heroes,
  .feature--crown {
    grid-column: auto;
    grid-row: auto;
  }
  .feature--modes { grid-template-columns: 1fr 1fr; }
  .phone-shot { flex-basis: 310px; }
  .final-cta { min-height: 840px; border-radius: 48px; }
  .final-cta__content { margin-top: 330px; }
  .final-avatars img:nth-child(1),
  .final-avatars img:nth-child(5) { display: none; }
}

@media (max-width: 620px) {
  .header-download { display: none; }
  .site-header { grid-template-columns: auto auto; }
  .brand img { width: 64px; height: 50px; }
  .hero { padding-inline: 18px; padding-top: 132px; }
  .royal-label { font-size: 0.62rem; }
  .hero__logo { width: 100%; margin: 4px 0 -18px; }
  .hero__actions { display: grid; }
  .primary-cta,
  .secondary-cta { justify-content: center; }
  .store-buttons { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .store-button { min-width: 0; padding: 9px 11px; }
  .store-button__icon { width: 25px; height: 25px; }
  .store-button small { font-size: 0.53rem; }
  .store-button b { font-size: 0.88rem; }
  .hero__proof { gap: 11px; }
  .hero__proof span { font-size: 0.56rem; }
  .hero-stage { width: min(360px, 84vw); }
  .hero-avatar { width: 76px; }
  .hero-avatar--queen { right: -6%; }
  .hero-avatar--prince { left: -6%; }
  .hero-avatar--knight { right: -7%; }
  .floating-token { display: none; }
  .royal-marquee span { padding-inline: 18px; }
  .section-heading--left { display: block; }
  .section-heading--left .section-number { margin-bottom: 18px; }
  .story-art { min-height: 460px; border-radius: 34px; }
  .story-chapters {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .story-chapters article {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "icon label"
      "icon title"
      "icon text";
    align-items: start;
    column-gap: 14px;
    row-gap: 4px;
    min-height: 0;
    padding: 18px 16px;
    transform: none;
  }
  .story-chapters article:hover { transform: none; }
  .story-chapters article > span {
    align-self: end;
    font-size: 0.62rem;
  }
  .story-chapters article > div {
    width: 44px;
    margin: 0;
    align-self: center;
    grid-row: 1 / -1;
  }
  .story-chapters h3 { font-size: 1.08rem; }
  .story-chapters p { font-size: 0.84rem; }
  .story-copy blockquote { padding-left: 48px; }
  .how-stage__screen { height: 560px; border-radius: 35px; }
  .how-stage__cards { inset: 28% 12% 12%; gap: 10px; }
  .how-stage__cards > div { min-height: 88px; aspect-ratio: 3.1 / 1; padding: 0 12%; gap: 12px; }
  .how-stage__cards b { flex-basis: 40px; width: 40px; font-size: 1.05rem; }
  .how-stage__cards span { font-size: 1.12rem; }
  .step { grid-template-columns: 72px 1fr; padding-right: 17px; }
  .step__badge { width: 72px; height: 72px; }
  .step__badge b { font-size: 1.28rem; }
  .step__icon { display: none; }
  .steps::before { left: 36px; }
  .arena { width: calc(100% - 18px); padding-inline: 15px; border-radius: 40px; }
  .arena-metrics { grid-template-columns: 1fr 1fr; }
  .game-console { min-height: 610px; padding: 18px; border-radius: 38px; }
  .score-panel { top: 8%; left: 8%; width: 84%; }
  .score-avatar { top: 16%; width: 18%; }
  .score-side small { font-size: 0.48rem; }
  .score-side b { font-size: 1.15rem; }
  .board-shell { top: 25%; left: 6%; width: 88%; }
  .turn-panel { right: 5%; bottom: 4%; left: 5%; }
  .i-dot { width: 12px; height: 12px; }
  .hero-spotlight { border-radius: 38px; }
  .hero-spotlight__art { min-height: 340px; }
  .hero-spotlight__seal { width: 70px; }
  .champion-card { flex-basis: 260px; }
  .feature--duel { align-items: flex-end; }
  .feature--duel > div { max-width: 72%; }
  .feature--duel > img { width: 35%; margin-right: -16px; }
  .feature--modes { grid-template-columns: 1fr; }
  .statistics-screen { width: min(420px, 100%); }
  .theme-strip { gap: 8px; padding: 12px 14px; }
  .theme-strip span { display: none; }
  .theme-strip img { width: 48px; height: 48px; }
  .phone-shot { flex-basis: 282px; }
  .phone-shot:nth-child(even) { margin-top: 25px; }
  .gallery-controls button { min-width: 78px; padding-inline: 10px; font-size: 0.75rem; }
  .final-cta { min-height: 790px; padding-inline: 18px; border-radius: 38px; }
  .final-cta__logo { top: 5%; width: 74vw; }
  .final-cta__crown { top: 22%; }
  .final-cta__content { margin-top: 280px; }
  .final-cta__content > p:not(.section-kicker) { font-size: 0.95rem; }
  .final-cta__content > strong { font-size: 1rem; }
  .final-avatars img { width: 29vw; margin-inline: -12px; }
  .footer-bottom { flex-direction: column; align-items: center; }
}

@media (max-width: 390px) {
  .hero__proof div:nth-of-type(2),
  .hero__proof i:nth-of-type(2) { display: none; }
  .hero-stage { width: 88vw; }
  .hero-avatar--queen { top: 4%; }
  .hero-avatar--knight { bottom: 9%; }
  .how-stage__screen { height: 500px; }
  .game-console { min-height: 560px; }
  .score-panel { top: 9%; }
  .board-shell { top: 27%; }
  .turn-panel { min-height: 52px; }
  .turn-panel img { width: 37px; height: 37px; }
  .phone-shot { flex-basis: 260px; }
  .statistics-screen { width: min(360px, 100%); }
  .final-cta { min-height: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .kingdom-canvas,
  .cursor-light { display: none; }
}

@media (hover: none) {
  .cursor-light { display: none; }
  .champion-card:hover,
  .feature:hover,
  .step:hover { transform: none; }
}
