:root {
  color-scheme: light;
  --navy: #102544;
  --navy-deep: #07162a;
  --sky: #9bdaf7;
  --teal: #40c9c2;
  --gold: #f5bd45;
  --coral: #ff6f65;
  --ivory: #fff9ea;
  --mist: #edf9ff;
  --ink: #18304b;
  --line: rgba(16, 37, 68, 0.16);
  --shadow: 0 18px 48px rgba(10, 35, 62, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f4fbff 0%, #fff7e6 46%, #f3fbff 100%);
}

main {
  max-width: 100vw;
  overflow-x: clip;
}

.section-inner > *,
.hero-content,
.story-copy,
.section-heading,
.compact-heading,
.boss-copy {
  min-width: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: white;
  transition: background 180ms ease, box-shadow 180ms ease, min-height 180ms ease;
}

.site-header[data-elevated="true"] {
  min-height: 66px;
  background: rgba(7, 22, 42, 0.88);
  box-shadow: 0 12px 34px rgba(7, 22, 42, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(7, 22, 42, 0.28);
}

.brand-wordmark {
  width: min(210px, 30vw);
  min-width: 128px;
  filter: drop-shadow(0 3px 10px rgba(4, 19, 37, 0.42));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(9, 32, 57, 0.30);
  backdrop-filter: blur(18px);
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  outline: 0;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(9, 32, 57, 0.30);
  backdrop-filter: blur(16px);
}

.language-option {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.language-option.active,
.language-option:hover,
.language-option:focus-visible {
  color: #43230d;
  background: #ffd66a;
  outline: 0;
}

.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffd66a 0%, #f0a92f 100%);
  color: #43230d;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(78, 43, 8, 0.22);
}

.hero-section {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 118px clamp(20px, 6vw, 86px) 92px;
  color: white;
  background: #0e3150;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: 55% center;
  z-index: -4;
  transform: scale(1.03);
}

.hero-overlay {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 24, 43, 0.92) 0%, rgba(10, 38, 68, 0.68) 43%, rgba(6, 23, 42, 0.22) 76%),
    linear-gradient(180deg, rgba(7, 22, 42, 0.20) 0%, rgba(7, 22, 42, 0.18) 68%, #f4fbff 100%);
}

.sky-drift {
  position: absolute;
  z-index: -2;
  width: 56vw;
  height: 18vh;
  min-height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(34px);
  animation: drift 15s ease-in-out infinite alternate;
}

.sky-drift-one {
  top: 18%;
  right: -18vw;
}

.sky-drift-two {
  left: -26vw;
  bottom: 16%;
  width: 72vw;
  background: rgba(134, 220, 236, 0.28);
  animation-duration: 19s;
}

.hero-content {
  width: min(720px, 100%);
  padding-top: 8vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: #166075;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-section .eyebrow,
.boss-section .eyebrow,
.download-section .eyebrow {
  color: #bff6ff;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.95;
  font-weight: 950;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.34);
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  color: var(--navy);
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  color: var(--navy);
}

p {
  line-height: 1.65;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
}

.button-primary {
  color: #47290e;
  background: linear-gradient(180deg, #ffe17d 0%, #efaa33 100%);
  box-shadow: 0 16px 34px rgba(79, 43, 8, 0.28);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(650px, 100%);
  margin-top: 34px;
}

.hero-stats div {
  min-height: 86px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  background: rgba(6, 25, 44, 0.38);
  backdrop-filter: blur(18px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 20px;
}

.hero-stats span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.hero-squad {
  position: absolute;
  right: clamp(8px, 4vw, 72px);
  bottom: 226px;
  z-index: -1;
  width: min(58vw, 850px);
  height: min(62vh, 640px);
  pointer-events: none;
}

.squad-hero {
  position: absolute;
  bottom: 0;
  width: 34%;
  max-height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 26px 28px rgba(3, 16, 31, 0.35));
  animation: floatHero 5.5s ease-in-out infinite;
}

.squad-paladin {
  left: 42%;
  bottom: 54px;
  z-index: 3;
  width: 34%;
}

.squad-ranger {
  left: 0;
  bottom: -18px;
  z-index: 2;
  width: 30%;
  animation-delay: 560ms;
}

.squad-mage {
  left: 78%;
  bottom: -26px;
  right: auto;
  z-index: 1;
  width: 25%;
  animation-delay: 920ms;
}

.next-peek {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 850;
}

.next-peek span {
  width: 2px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.next-peek p {
  margin: 0;
  white-space: nowrap;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.story-band,
.loop-section,
.heroes-section,
.units-band,
.base-section,
.boss-section,
.download-section {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 122px) 0;
}

.story-band {
  background: var(--mist);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.story-copy p:not(.eyebrow) {
  margin: 24px 0 0;
  font-size: 18px;
  color: #39536b;
}

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.story-points span {
  padding: 10px 13px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  color: #23435f;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(16, 37, 68, 0.08);
}

.story-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border-radius: 8px;
  color: white;
  background: rgba(5, 19, 36, 0.76);
  backdrop-filter: blur(12px);
}

.story-caption span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 780;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: #405a72;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 750;
  line-height: 1.55;
}

.loop-section {
  background: linear-gradient(180deg, #fff8e8 0%, #f7fcff 100%);
}

.loop-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.loop-track article,
.unit-grid article,
.building-grid article,
.hero-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(16, 37, 68, 0.10);
}

.loop-track article {
  min-height: 286px;
  padding: 22px;
}

.loop-track img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 20px;
}

.loop-track p,
.hero-card p,
.unit-grid p,
.building-grid p,
.download-section p,
.compact-heading p {
  margin: 10px 0 0;
  color: #405a72;
}

.heroes-section {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 33, 57, 0.82), rgba(10, 33, 57, 0.62)),
    url("./assets/images/backgrounds/hero_roster_scene_v2.png") center / cover fixed;
}

.heroes-section h2,
.heroes-section .hero-card h3,
.heroes-section .hero-marquee-card h3 {
  color: white;
}

.heroes-section .section-heading {
  color: white;
}

.heroes-section .section-lead {
  color: rgba(255, 255, 255, 0.80);
}

.hero-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  animation: heroMarquee 58s linear infinite;
  will-change: transform;
}

.hero-marquee:hover .hero-marquee-track {
  animation-play-state: paused;
}

.hero-marquee-group {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}

.hero-marquee-card {
  position: relative;
  flex: 0 0 clamp(232px, 21vw, 310px);
  height: clamp(372px, 35vw, 440px);
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: white;
  background: var(--card-grad, linear-gradient(145deg, #244b6c, #102544));
  box-shadow: 0 18px 44px rgba(2, 14, 27, 0.34);
}

.hero-marquee-card::before,
.hero-marquee-card::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-marquee-card::before {
  z-index: 1;
  background:
    radial-gradient(circle at 48% 13%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(7, 22, 42, 0) 0%, rgba(7, 22, 42, 0.16) 48%, rgba(7, 22, 42, 0.92) 100%);
}

.hero-marquee-card::after {
  z-index: 0;
  background: var(--card-grad, linear-gradient(145deg, #244b6c, #102544));
}

.hero-marquee-card img {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 88%;
  height: min(72%, 304px);
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 24px rgba(2, 14, 27, 0.42));
}

.hero-marquee-card span,
.hero-marquee-card h3 {
  position: relative;
  z-index: 3;
}

.hero-marquee-card span {
  justify-self: start;
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.hero-marquee-card h3 {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.08;
}

.hero-tone-storm { --card-grad: linear-gradient(145deg, #55b8dc, #234f78 58%, #102544); }
.hero-tone-wind { --card-grad: linear-gradient(145deg, #63d1b8, #277f84 58%, #102544); }
.hero-tone-mage { --card-grad: linear-gradient(145deg, #95dfff, #6f5ed3 58%, #102544); }
.hero-tone-steel { --card-grad: linear-gradient(145deg, #a5bdd2, #4d6275 56%, #102544); }
.hero-tone-thunder { --card-grad: linear-gradient(145deg, #8fc9ff, #3a6e9c 54%, #102544); }
.hero-tone-verdant { --card-grad: linear-gradient(145deg, #8bdc8a, #31775f 56%, #102544); }
.hero-tone-necro { --card-grad: linear-gradient(145deg, #7767c8, #35315f 58%, #10172f); }
.hero-tone-sand { --card-grad: linear-gradient(145deg, #f2c85c, #a97038 58%, #1c3550); }
.hero-tone-fire { --card-grad: linear-gradient(145deg, #ff806b, #9c3a38 58%, #1c2446); }
.hero-tone-ice { --card-grad: linear-gradient(145deg, #92e9ff, #5373b8 56%, #102544); }
.hero-tone-light { --card-grad: linear-gradient(145deg, #f5d879, #7d927a 55%, #102544); }
.hero-tone-aegis { --card-grad: linear-gradient(145deg, #b6e7ff, #477c8a 55%, #102544); }
.hero-tone-star { --card-grad: linear-gradient(145deg, #8fb4ff, #4457a2 56%, #111b40); }
.hero-tone-void { --card-grad: linear-gradient(145deg, #765cce, #2b2659 58%, #10172f); }
.hero-tone-earth { --card-grad: linear-gradient(145deg, #b9a15d, #596244 56%, #102544); }
.hero-tone-prism { --card-grad: linear-gradient(145deg, #80dff0, #6c5cc7 56%, #102544); }

@keyframes heroMarquee {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-card {
  position: relative;
  min-height: 438px;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 22px;
  color: white;
  background: #123556;
}

.hero-card::before,
.hero-card::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-card::before {
  background: linear-gradient(180deg, rgba(11, 38, 64, 0.08) 0%, rgba(7, 22, 42, 0.82) 72%, rgba(7, 22, 42, 0.96) 100%);
  z-index: 1;
}

.hero-card::after {
  z-index: 0;
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(145deg, rgba(64, 201, 194, 0.72), rgba(16, 37, 68, 0.88));
}

.hero-card-storm::after { background: linear-gradient(145deg, #55b8dc, #234f78 58%, #102544); }
.hero-card-wind::after { background: linear-gradient(145deg, #63d1b8, #277f84 58%, #102544); }
.hero-card-mage::after { background: linear-gradient(145deg, #95dfff, #6f5ed3 58%, #102544); }
.hero-card-sand::after { background: linear-gradient(145deg, #f2c85c, #a97038 58%, #1c3550); }
.hero-card-fire::after { background: linear-gradient(145deg, #ff806b, #9c3a38 58%, #1c2446); }
.hero-card-shadow::after { background: linear-gradient(145deg, #7e62d7, #2e285e 58%, #10172f); }

.hero-card img {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 108px;
  width: min(82%, 292px);
  max-height: 304px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 20px 22px rgba(2, 14, 27, 0.34));
}

.hero-card div {
  position: relative;
  z-index: 2;
}

.hero-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 900;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.82);
}

.units-band {
  background: var(--ivory);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.compact-heading {
  margin-bottom: 0;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.unit-grid article {
  min-height: 264px;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 20px 14px;
  text-align: center;
}

.unit-grid img {
  height: 138px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 12px 18px rgba(13, 40, 68, 0.16));
}

.unit-grid h3 {
  font-size: 19px;
}

.base-section {
  background: #f2fbff;
}

.building-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.building-grid article {
  min-height: 286px;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 20px 12px;
  text-align: center;
}

.building-grid img {
  width: 142px;
  height: 142px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 15px 18px rgba(16, 37, 68, 0.16));
  transition: transform 220ms ease;
}

.building-grid article:hover img {
  transform: translateY(-5px);
}

.building-grid h3 {
  font-size: 18px;
}

.building-grid p {
  font-size: 14px;
  line-height: 1.5;
}

.boss-section {
  color: white;
  background: var(--navy-deep);
}

.boss-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 22, 42, 0.94) 0%, rgba(7, 22, 42, 0.68) 52%, rgba(7, 22, 42, 0.34) 100%),
    url("./assets/images/backgrounds/boss_map_pyromancer_volcano_v1.png") center / cover;
  transition: background-image 280ms ease;
}

.boss-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 74px);
}

.boss-copy h2 {
  color: white;
}

.boss-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.boss-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.boss-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.10);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.boss-tab.active,
.boss-tab:hover,
.boss-tab:focus-visible {
  color: #47290e;
  background: var(--gold);
  outline: 0;
}

.boss-showcase {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

.boss-showcase img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.boss-nameplate {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 8px;
  color: white;
  background: rgba(6, 20, 38, 0.78);
  backdrop-filter: blur(14px);
}

.boss-nameplate strong {
  font-size: 22px;
}

.boss-nameplate span {
  color: #ffe08a;
  font-weight: 900;
}

.download-section {
  color: white;
  background:
    linear-gradient(90deg, rgba(9, 42, 71, 0.94), rgba(14, 74, 93, 0.78)),
    url("./assets/images/backgrounds/bg_home_open_island_v1.png") center bottom / cover;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.download-section h2 {
  color: white;
}

.download-section p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.download-actions {
  display: grid;
  gap: 12px;
  min-width: min(100%, 280px);
}

.store-button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: white;
  background: rgba(7, 22, 42, 0.70);
  box-shadow: 0 14px 36px rgba(4, 18, 34, 0.28);
}

.store-button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.store-button span,
.store-button small {
  display: block;
}

.store-button span {
  font-size: 20px;
  font-weight: 950;
}

.store-button small {
  margin-bottom: 2px;
  color: #bff6ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.store-button-secondary {
  opacity: 0.82;
}

.site-footer {
  padding: 28px 0;
  background: #061629;
  color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner img {
  width: 170px;
}

.footer-copy {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.footer-inner p {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffd66a;
  outline: 0;
}

.legal-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6, 22, 41, 0.88), rgba(16, 75, 95, 0.70) 42%, rgba(244, 251, 255, 0.96) 42%),
    url("./assets/images/backgrounds/bg_home_open_island_v1.png") center top / cover fixed;
}

.legal-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: white;
}

.legal-main {
  padding: clamp(34px, 7vw, 82px) 0 clamp(70px, 9vw, 118px);
}

.legal-hero {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto 28px;
  color: white;
}

.legal-hero .eyebrow {
  color: #bff6ff;
}

.legal-hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 8vw, 86px);
}

.legal-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.legal-card {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.legal-content {
  display: grid;
  gap: 28px;
}

.legal-content[hidden] {
  display: none;
}

.legal-section {
  display: grid;
  gap: 10px;
}

.legal-section h2 {
  font-size: clamp(24px, 3.6vw, 34px);
}

.legal-section h3 {
  margin-top: 4px;
  font-size: 20px;
}

.legal-section p,
.legal-section li {
  margin: 0;
  color: #405a72;
  line-height: 1.7;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-date {
  color: #63798d;
  font-weight: 850;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5fbff;
}

.support-panel strong {
  color: var(--navy);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-actions .button-secondary {
  color: var(--navy);
  border-color: rgba(16, 37, 68, 0.18);
  background: white;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from { transform: translateX(-3vw) translateY(0); }
  to { transform: translateX(4vw) translateY(12px); }
}

@keyframes floatHero {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-squad {
    opacity: 0.42;
    right: 0;
    bottom: 168px;
    width: 78vw;
  }

  .squad-paladin {
    left: 39%;
    bottom: 42px;
    width: 33%;
  }

  .squad-ranger {
    left: 0;
    bottom: -16px;
    width: 29%;
  }

  .squad-mage {
    left: 72%;
    bottom: -22px;
    width: 24%;
  }

  .story-grid,
  .boss-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .loop-track,
  .unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-marquee-card {
    flex-basis: 260px;
    height: 392px;
  }

  .hero-marquee-card img {
    height: 272px;
  }

  .hero-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .building-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand-wordmark {
    width: 150px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .header-cta {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .language-switch {
    padding: 3px;
  }

  .language-option {
    min-width: 34px;
    min-height: 32px;
    font-size: 12px;
  }

  .hero-section {
    min-height: 760px;
    align-items: start;
    padding: 104px 18px 96px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-squad {
    right: -6vw;
    bottom: 126px;
    width: 108vw;
    height: 360px;
    opacity: 0.32;
  }

  .squad-paladin {
    left: 37%;
    bottom: 34px;
    width: 31%;
  }

  .squad-ranger {
    left: 3%;
    bottom: -12px;
    width: 28%;
  }

  .squad-mage {
    left: 67%;
    bottom: -16px;
    width: 24%;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 19px;
    max-width: 340px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .story-band,
  .loop-section,
  .heroes-section,
  .units-band,
  .base-section,
  .boss-section,
  .download-section {
    padding: 68px 0;
  }

  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .story-grid,
  .boss-layout,
  .download-layout {
    gap: 26px;
  }

  .story-frame img,
  .boss-showcase img {
    aspect-ratio: 4 / 3;
  }

  .loop-track,
  .unit-grid,
  .hero-card-grid,
  .building-grid,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .loop-track article {
    min-height: 236px;
  }

  .hero-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }

  .hero-marquee-track {
    animation-duration: 46s;
  }

  .hero-marquee-group {
    gap: 12px;
    padding-right: 12px;
  }

  .hero-marquee-card {
    flex-basis: 218px;
    height: 338px;
    padding: 16px;
  }

  .hero-marquee-card img {
    top: 12px;
    height: 226px;
  }

  .hero-marquee-card h3 {
    font-size: 24px;
  }

  .hero-marquee-card span {
    font-size: 11px;
  }

  .hero-card {
    min-height: 380px;
  }

  .hero-card img {
    max-height: 244px;
    bottom: 116px;
  }

  .unit-grid article,
  .building-grid article {
    min-height: 238px;
  }

  .building-grid img {
    width: 128px;
    height: 128px;
  }

  .boss-nameplate {
    position: static;
    border-radius: 0;
  }

  .footer-inner {
    display: grid;
    justify-items: start;
  }

  .footer-copy {
    justify-items: start;
  }

  .footer-inner p {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-header {
    padding: 14px 16px;
  }

  .legal-main {
    padding-top: 26px;
  }

  .legal-hero,
  .legal-card {
    width: min(100% - 28px, 960px);
  }

  .legal-card {
    padding: 22px 18px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .legal-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .hero-marquee-track {
    animation: none !important;
    transform: none !important;
  }
}
