@font-face {
  font-family: "Bomb Sound";
  src: url("./assets/the-bomb-sound.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #06101b;
  --ink-soft: #0a1a29;
  --navy: #0b2438;
  --navy-light: #123b56;
  --parchment: #f5e7ca;
  --cream: #fff5dd;
  --gold: #ffb31f;
  --gold-pale: #ffd66b;
  --orange: #ff721f;
  --coral: #ff5d55;
  --cyan: #21c7e8;
  --violet: #a681ff;
  --lime: #9edb42;
  --muted: #99afbf;
  --line: rgba(255, 255, 255, 0.12);
  --display: "Bomb Sound", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(27, 86, 116, 0.16), transparent 42rem),
    var(--ink);
  color: var(--cream);
  font-family: var(--body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.025;
  pointer-events: none;
}

a {
  color: inherit;
}

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

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 126px 0;
  scroll-margin-top: 76px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--gold-pale);
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 30px;
  height: 2px;
  background: currentColor;
  content: "";
  box-shadow: 0 0 12px currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.83;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(4, 12, 21, 0.92), rgba(4, 12, 21, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.header-inner {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  width: min(100%, var(--max));
  min-height: 54px;
  margin: 0 auto;
}

.header-brand {
  display: inline-flex;
  width: 132px;
  align-items: center;
  text-decoration: none;
}

.header-brand img {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 50px);
}

.desktop-nav a {
  position: relative;
  padding: 14px 0;
  color: #c4d0da;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.desktop-nav a:hover {
  color: #fff;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 196, 71, 0.55);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffbd2e, #ee7a10);
  box-shadow: 0 8px 24px rgba(255, 119, 22, 0.18), inset 0 1px rgba(255, 255, 255, 0.45);
  color: #2b1301;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease;
}

.header-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.header-cta span {
  font-size: 1.1rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: max(800px, 100svh);
  align-items: center;
  overflow: hidden;
  padding: 114px 20px 80px;
  background:
    linear-gradient(90deg, rgba(3, 10, 18, 0.98) 0%, rgba(4, 13, 23, 0.9) 39%, rgba(5, 17, 28, 0.38) 73%, rgba(3, 10, 17, 0.72) 100%),
    linear-gradient(180deg, rgba(2, 8, 15, 0.16) 0%, rgba(4, 14, 24, 0.08) 58%, var(--ink) 100%),
    url("./assets/dojo-background.jpg") center / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 28% 48%, rgba(255, 152, 27, 0.08), transparent 34%),
    linear-gradient(rgba(6, 22, 35, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 22, 35, 0.12) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  content: "";
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.hero::after {
  position: absolute;
  right: -18vw;
  bottom: -42vw;
  z-index: -1;
  width: 75vw;
  height: 75vw;
  border: 1px solid rgba(72, 189, 225, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 10vw rgba(29, 174, 211, 0.025), 0 0 0 22vw rgba(29, 174, 211, 0.018);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 670px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  padding: 9px 14px 8px;
  border: 1px solid rgba(128, 210, 232, 0.26);
  border-radius: 999px;
  background: rgba(6, 23, 36, 0.66);
  color: #bceaf5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.eyebrow-dot,
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(158, 219, 66, 0.12), 0 0 12px rgba(158, 219, 66, 0.78);
}

.hero-logo {
  width: min(450px, 86%);
  margin: 0 0 18px -8px;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.48));
}

.hero h1 {
  margin: 0 0 22px;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(3.65rem, 6.8vw, 7.3rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.78;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: var(--orange);
  text-shadow: 0 8px 30px rgba(255, 91, 18, 0.22);
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 30px;
  color: #bdcbd5;
  font-size: clamp(1rem, 1.6vw, 1.19rem);
  font-weight: 500;
  line-height: 1.65;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-button {
  display: inline-flex;
  min-width: 180px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: #050607;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.store-button:hover {
  border-color: rgba(255, 196, 71, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 147, 20, 0.12);
  transform: translateY(-3px);
}

.store-button img {
  width: auto;
  height: 50px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 24px;
  color: #8097a7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
}

.hero-proof span:not(:last-child)::after {
  width: 4px;
  height: 4px;
  margin: 0 12px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 650px;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.phone-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 195, 232, 0.25), rgba(6, 40, 61, 0.08) 50%, transparent 70%);
  filter: blur(10px);
}

.moon-ring {
  position: absolute;
  top: 8%;
  right: 5%;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(171, 229, 242, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(88, 203, 228, 0.04), 0 0 80px rgba(37, 170, 205, 0.08);
}

.moon-ring::before,
.moon-ring::after {
  position: absolute;
  border: 1px solid rgba(255, 179, 31, 0.12);
  border-radius: 50%;
  content: "";
}

.moon-ring::before {
  inset: 34px;
}

.moon-ring::after {
  inset: 76px;
}

.phone-shell {
  position: relative;
  z-index: 3;
  width: 346px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 46px;
  background: linear-gradient(145deg, #233849, #02070c 52%, #172e3f);
  box-shadow:
    0 45px 85px rgba(0, 0, 0, 0.58),
    0 0 0 5px rgba(8, 20, 30, 0.85),
    0 0 60px rgba(28, 181, 218, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transform: rotateY(-4deg) rotateX(1deg) rotateZ(0.6deg);
}

.phone-shell::after {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 37px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 24%, transparent 80%, rgba(255, 255, 255, 0.03));
  content: "";
  pointer-events: none;
}

.phone-shell > img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  object-fit: cover;
  object-position: center;
}

.phone-top {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 5;
  width: 94px;
  height: 24px;
  border-radius: 999px;
  background: #020508;
  transform: translateX(-50%);
}

.phone-top span {
  position: absolute;
  top: 8px;
  right: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f2539;
  box-shadow: inset 0 0 2px #3f7c9d;
}

.float-card {
  position: absolute;
  z-index: 5;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 230px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(7, 22, 34, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: float-card 5s ease-in-out infinite;
}

.float-card strong,
.float-card small {
  display: block;
}

.float-card strong {
  color: #fff1d2;
  font-size: 0.79rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.float-card small {
  margin-top: 3px;
  color: #7891a4;
  font-size: 0.68rem;
}

.float-card--top {
  top: 24%;
  left: -8%;
}

.float-card--bottom {
  right: -9%;
  bottom: 18%;
  animation-delay: -2.5s;
}

.float-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 188, 51, 0.42);
  border-radius: 9px;
  background: rgba(255, 145, 22, 0.1);
  color: var(--gold);
  font-size: 1rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.petal {
  position: absolute;
  z-index: 2;
  width: 11px;
  height: 7px;
  border-radius: 90% 10% 90% 10%;
  background: #e25e82;
  box-shadow: 0 0 8px rgba(237, 89, 132, 0.25);
  opacity: 0.6;
  animation: petal-fall 9s linear infinite;
}

.petal--one { top: 12%; left: 58%; animation-delay: -1s; }
.petal--two { top: 32%; left: 91%; animation-delay: -6s; transform: scale(0.7); }
.petal--three { top: 3%; left: 73%; animation-delay: -4s; transform: scale(1.2); }
.petal--four { top: 45%; left: 52%; animation-delay: -8s; }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  color: #7e94a4;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.scroll-cue i::after {
  position: absolute;
  top: -16px;
  left: 0;
  width: 1px;
  height: 16px;
  background: var(--gold);
  content: "";
  animation: scroll-line 1.8s ease-in-out infinite;
}

.battle-ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #071522;
}

.battle-ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 26px;
  padding: 18px 0 16px;
  color: #d9e2e8;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  animation: ticker 28s linear infinite;
}

.battle-ticker__track b {
  color: var(--orange);
  font-family: var(--body);
  font-size: 0.72rem;
}

.rules {
  position: relative;
}

.rules::before {
  position: absolute;
  top: 25%;
  right: -18%;
  width: 650px;
  height: 650px;
  background: url("./assets/enso-ring.png") center / contain no-repeat;
  content: "";
  filter: hue-rotate(160deg) saturate(0.8);
  opacity: 0.045;
  pointer-events: none;
}

.rules-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}

.rules-heading p,
.modes-header > p {
  max-width: 470px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.75;
}

.moves {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(rgba(11, 36, 56, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 36, 56, 0.7) 1px, transparent 1px),
    rgba(7, 23, 35, 0.66);
  background-size: 36px 36px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 30px 80px rgba(0, 0, 0, 0.18);
}

.move-card {
  position: relative;
  display: grid;
  min-height: 300px;
  grid-template-rows: 1fr auto;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(21, 53, 72, 0.85), rgba(6, 16, 27, 0.94));
  transition: transform 220ms ease, border-color 220ms ease;
}

.move-card::after {
  position: absolute;
  right: -30%;
  bottom: -55%;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  content: "";
  filter: blur(15px);
  opacity: 0.15;
}

.move-card--rock::after { background: var(--cyan); }
.move-card--scissors::after { background: var(--coral); }
.move-card--paper::after { background: var(--gold); }

.move-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-7px);
}

.move-index {
  position: absolute;
  top: 17px;
  left: 18px;
  color: #5f7788;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
}

.move-art {
  display: grid;
  place-items: center;
  padding: 25px 0 14px;
}

.move-art img {
  width: 130px;
  max-height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.34));
  transition: transform 260ms ease;
}

.move-card:hover .move-art img {
  transform: scale(1.08) rotate(-3deg);
}

.move-card > div:last-child {
  position: relative;
  z-index: 2;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.move-card p {
  margin-bottom: 3px;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.move-card span:last-child {
  color: #7f96a7;
  font-size: 0.75rem;
  font-weight: 700;
}

.move-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 185, 43, 0.22);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.1rem;
}

.battle-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.battle-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 30px 28px;
}

.battle-steps article:not(:last-child) {
  border-right: 1px solid var(--line);
}

.battle-steps article > span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.battle-steps h3 {
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.battle-steps p {
  margin: 0;
  color: #8198a8;
  font-size: 0.84rem;
  line-height: 1.6;
}

.modes {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 112, 27, 0.08), transparent 23rem),
    linear-gradient(180deg, rgba(10, 27, 42, 0.3), rgba(5, 14, 24, 0.7));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modes-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto 70px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.mode-card {
  --mode-color: var(--cyan);
  position: relative;
  min-height: 440px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--mode-color) 14%, transparent), transparent 48%),
    linear-gradient(145deg, rgba(16, 41, 59, 0.98), rgba(5, 15, 25, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transition: transform 220ms ease, border-color 220ms ease;
}

.mode-card::after {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border: 1px solid color-mix(in srgb, var(--mode-color) 24%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 34px color-mix(in srgb, var(--mode-color) 3%, transparent), 0 0 0 70px color-mix(in srgb, var(--mode-color) 2%, transparent);
  content: "";
}

.mode-card:hover {
  border-color: color-mix(in srgb, var(--mode-color) 58%, transparent);
  transform: translateY(-8px);
}

.mode-card--cyan { --mode-color: var(--cyan); }
.mode-card--coral { --mode-color: var(--coral); }
.mode-card--violet { --mode-color: var(--violet); }
.mode-card--gold { --mode-color: var(--gold); }

.mode-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #668094;
  font-family: var(--display);
  font-size: 0.8rem;
}

.mode-card__top i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  color: var(--mode-color);
  font-family: var(--body);
  font-style: normal;
}

.mode-card__symbol {
  position: relative;
  z-index: 2;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  margin: 50px 0 38px;
  border: 1px solid color-mix(in srgb, var(--mode-color) 40%, transparent);
  border-radius: 24px 24px 44px 24px;
  background: color-mix(in srgb, var(--mode-color) 9%, transparent);
  box-shadow: inset 0 0 35px color-mix(in srgb, var(--mode-color) 6%, transparent), 0 12px 30px rgba(0, 0, 0, 0.18);
  color: var(--mode-color);
  font-family: Georgia, serif;
  font-size: 3.3rem;
  text-shadow: 0 0 25px color-mix(in srgb, var(--mode-color) 45%, transparent);
}

.mode-card > small {
  position: relative;
  z-index: 2;
  color: var(--mode-color);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mode-card h3 {
  position: relative;
  z-index: 2;
  margin: 5px 0 8px;
  color: var(--cream);
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mode-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #8196a6;
  font-size: 0.82rem;
  line-height: 1.6;
}

.progress-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: 50px;
  min-height: 680px;
  align-items: center;
  padding: 70px clamp(28px, 6vw, 84px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(5, 18, 29, 0.96), rgba(6, 23, 37, 0.85) 56%, rgba(7, 34, 49, 0.72)),
    url("./assets/dojo-background.jpg") center / cover;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.progress-panel::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(29, 80, 107, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 80, 107, 0.1) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: linear-gradient(to right, black, transparent 65%);
}

.progress-copy {
  position: relative;
  z-index: 2;
}

.progress-copy h2 {
  font-size: clamp(3.5rem, 5.3vw, 5.8rem);
}

.progress-copy > p {
  max-width: 490px;
  margin: 28px 0 34px;
  color: #9aafbd;
  font-size: 1rem;
  line-height: 1.75;
}

.progress-points {
  display: grid;
  gap: 10px;
}

.progress-points span {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #9bb0bf;
  font-size: 0.8rem;
}

.progress-points b {
  color: var(--gold);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.emote-stage {
  position: relative;
  min-height: 520px;
}

.emote-stage__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(83, 199, 226, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 42px rgba(38, 156, 191, 0.025), inset 0 0 80px rgba(33, 168, 203, 0.035);
}

.emote-stage__ring::before,
.emote-stage__ring::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.emote-stage__ring::before {
  inset: 70px;
  border: 1px dashed rgba(255, 185, 38, 0.16);
  animation: ring-spin 30s linear infinite;
}

.emote-stage__ring::after {
  inset: 142px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle, rgba(26, 155, 190, 0.12), rgba(7, 22, 34, 0.74));
}

.emote {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(22, 57, 75, 0.95), rgba(7, 18, 29, 0.95));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.07);
  animation: emote-float 6s ease-in-out infinite;
}

.emote img {
  width: 106px;
  height: 106px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.2));
}

.emote--1 { top: 4%; left: 38%; transform: rotate(-4deg); }
.emote--2 { top: 19%; right: 4%; animation-delay: -1s; transform: rotate(4deg); }
.emote--3 { right: 12%; bottom: 10%; animation-delay: -2s; transform: rotate(-3deg); }
.emote--4 { bottom: 0; left: 36%; animation-delay: -3s; transform: rotate(3deg); }
.emote--5 { bottom: 12%; left: 2%; animation-delay: -4s; transform: rotate(-4deg); }
.emote--6 { top: 22%; left: 0; animation-delay: -5s; transform: rotate(3deg); }
.emote--7 { top: 40%; left: 41%; width: 104px; height: 104px; animation-delay: -2.4s; }
.emote--7 img { width: 92px; height: 92px; }

.emote-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  transform: translate(-50%, -50%);
}

.emote-center span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 3.1rem;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 173, 27, 0.28);
}

.emote-center small {
  color: #859aaa;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.download {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 150px;
  text-align: center;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 620px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 130, 24, 0.13), rgba(23, 131, 163, 0.04) 46%, transparent 70%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
}

.download-icon {
  width: 112px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 25px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 50px rgba(255, 99, 24, 0.16);
}

.download h2 {
  max-width: 900px;
  color: var(--cream);
  font-size: clamp(4rem, 9vw, 8.8rem);
  line-height: 0.86;
}

.download > p {
  margin: 26px 0 32px;
  color: #9eb0bd;
  font-size: 1.05rem;
}

.download > small {
  margin-top: 22px;
  color: #627b8e;
  font-size: 0.72rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: #687f90;
  font-size: 0.73rem;
}

.footer-brand {
  width: 118px;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.footer-links a {
  color: #a4b3be;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-pale);
}

.mobile-download {
  display: none;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes petal-fall {
  0% { translate: 0 -12vh; rotate: 0deg; }
  100% { translate: -18vw 88vh; rotate: 520deg; }
}

@keyframes scroll-line {
  0% { transform: translateY(0); }
  100% { transform: translateY(48px); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes emote-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

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

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
    gap: 30px;
  }

  .phone-shell {
    width: 308px;
  }

  .hero-visual {
    min-height: 590px;
  }

  .float-card--top { left: -4%; }
  .float-card--bottom { right: -4%; }

  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mode-card {
    min-height: 390px;
  }

  .mode-card__symbol {
    margin: 30px 0 25px;
  }

  .progress-panel {
    grid-template-columns: 0.86fr 1.14fr;
    padding: 55px 35px;
  }

  .emote-stage {
    transform: scale(0.88);
  }
}

@media (max-width: 820px) {
  .section {
    width: min(calc(100% - 32px), var(--max));
    padding: 92px 0;
  }

  .site-header {
    padding: 9px 16px;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    min-height: 50px;
  }

  .header-brand {
    width: 112px;
  }

  .header-brand img {
    height: 46px;
  }

  .desktop-nav {
    display: none;
  }

  .header-cta {
    min-height: 44px;
    padding: 0 15px;
    font-size: 0.7rem;
  }

  .hero {
    min-height: auto;
    padding: 102px 16px 70px;
    background:
      linear-gradient(180deg, rgba(3, 10, 18, 0.78) 0%, rgba(3, 11, 19, 0.93) 44%, var(--ink) 100%),
      url("./assets/dojo-background.jpg") center top / auto 62% no-repeat;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    display: flex;
    max-width: 680px;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    text-align: center;
  }

  .hero-logo {
    width: min(410px, 82vw);
    margin-left: 0;
  }

  .hero h1 {
    font-size: clamp(4.1rem, 15vw, 7rem);
  }

  .hero-lede {
    max-width: 590px;
  }

  .hero-proof {
    justify-content: center;
  }

  .hero-visual {
    min-height: 620px;
  }

  .phone-shell {
    width: min(320px, 68vw);
    transform: rotateY(-4deg) rotateZ(0.8deg);
  }

  .float-card--top {
    top: 26%;
    left: 8%;
  }

  .float-card--bottom {
    right: 5%;
    bottom: 17%;
  }

  .scroll-cue {
    display: none;
  }

  .rules-heading,
  .modes-header {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 50px;
  }

  .moves {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 16px;
  }

  .move-arrow {
    display: none;
  }

  .move-card {
    min-height: 260px;
    padding: 18px;
  }

  .move-art img {
    width: 105px;
    max-height: 120px;
  }

  .battle-steps {
    grid-template-columns: 1fr;
  }

  .battle-steps article:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .modes {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .progress-panel {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .progress-copy {
    text-align: center;
  }

  .progress-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .progress-points {
    max-width: 510px;
    margin: 0 auto;
    text-align: left;
  }

  .emote-stage {
    width: 560px;
    max-width: 100%;
    margin: 0 auto;
    transform: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-bottom: 122px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .mobile-download {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 1200;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: rgba(7, 18, 28, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
  }

  .mobile-download > div:first-child {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 120px;
  }

  .mobile-download > div:first-child img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .mobile-download span strong,
  .mobile-download span small {
    display: block;
  }

  .mobile-download span strong {
    color: var(--cream);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mobile-download span small {
    margin-top: 3px;
    color: #71899b;
    font-size: 0.63rem;
  }

  .store-buttons--compact {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .store-buttons--compact .store-button {
    min-width: auto;
    min-height: 48px;
    padding: 3px;
    border-radius: 10px;
  }

  .store-buttons--compact .store-button img {
    height: 38px;
  }
}

@media (max-width: 560px) {
  h2 {
    font-size: clamp(3.5rem, 16vw, 5.1rem);
  }

  .section-kicker {
    font-size: 0.7rem;
  }

  .header-cta {
    padding: 0 12px;
  }

  .header-cta span {
    display: none;
  }

  .hero {
    padding-top: 92px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 0.63rem;
  }

  .hero-logo {
    width: min(360px, 84vw);
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(3.7rem, 17vw, 5.6rem);
  }

  .hero-lede {
    margin-bottom: 24px;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .store-buttons {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .store-button {
    min-width: 154px;
    min-height: 52px;
  }

  .store-button img {
    height: 43px;
  }

  .hero-proof {
    gap: 8px 0;
    font-size: 0.62rem;
  }

  .hero-proof span:not(:last-child)::after {
    margin: 0 8px;
  }

  .hero-visual {
    min-height: 550px;
    margin: -8px 0 0;
  }

  .phone-shell {
    width: min(286px, 72vw);
  }

  .float-card {
    min-width: 185px;
    padding: 11px 12px;
  }

  .float-card strong {
    font-size: 0.67rem;
  }

  .float-card small {
    font-size: 0.57rem;
  }

  .float-card--top {
    top: 27%;
    left: 0;
  }

  .float-card--bottom {
    right: -2%;
    bottom: 18%;
  }

  .battle-ticker__track {
    padding: 15px 0 13px;
    font-size: 0.84rem;
  }

  .rules-heading {
    margin-bottom: 38px;
  }

  .rules-heading p,
  .modes-header > p {
    font-size: 0.94rem;
    line-height: 1.7;
  }

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

  .move-card {
    min-height: 152px;
    grid-template-columns: 105px 1fr;
    grid-template-rows: 1fr;
    gap: 14px;
    align-items: center;
  }

  .move-art {
    padding: 10px 0;
  }

  .move-art img {
    width: 92px;
    max-height: 100px;
  }

  .move-card > div:last-child {
    padding-top: 0;
    padding-left: 16px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .battle-steps {
    margin-top: 40px;
  }

  .battle-steps article {
    padding: 24px 8px;
  }

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

  .mode-card {
    min-height: 330px;
  }

  .mode-card__symbol {
    width: 92px;
    height: 92px;
    margin: 28px 0 24px;
    font-size: 2.7rem;
  }

  .progress-panel {
    min-height: auto;
    padding: 56px 16px 35px;
    border-radius: 20px;
  }

  .progress-copy h2 {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }

  .progress-points span {
    grid-template-columns: 58px 1fr;
    font-size: 0.72rem;
  }

  .emote-stage {
    min-height: 390px;
    transform: scale(0.92);
  }

  .emote-stage__ring {
    width: 315px;
    height: 315px;
  }

  .emote-stage__ring::before { inset: 48px; }
  .emote-stage__ring::after { inset: 102px; }

  .emote {
    width: 86px;
    height: 86px;
    border-radius: 25px;
  }

  .emote img {
    width: 77px;
    height: 77px;
  }

  .emote--1 { left: 38%; }
  .emote--2 { right: 3%; }
  .emote--3 { right: 7%; }
  .emote--4 { left: 38%; }
  .emote--5 { left: 0; }
  .emote--6 { left: -2%; }
  .emote--7 { top: 39%; left: 40%; width: 72px; height: 72px; }
  .emote--7 img { width: 64px; height: 64px; }

  .emote-center span {
    font-size: 2.3rem;
  }

  .emote-center small {
    font-size: 0.47rem;
  }

  .download {
    padding-top: 110px;
    padding-bottom: 120px;
  }

  .download h2 {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .download-icon {
    width: 92px;
    border-radius: 22px;
  }

  .mobile-download > div:first-child {
    min-width: 0;
  }

  .mobile-download > div:first-child img {
    width: 42px;
    height: 42px;
  }

  .mobile-download span {
    display: none;
  }

  .store-buttons--compact {
    width: auto;
  }

  .store-buttons--compact .store-button img {
    height: 34px;
  }
}

@media (max-width: 390px) {
  .header-brand {
    width: 98px;
  }

  .header-brand img {
    height: 43px;
  }

  .header-cta {
    font-size: 0.64rem;
  }

  .hero .store-button,
  .download .store-button {
    min-width: 142px;
  }

  .hero .store-button img,
  .download .store-button img {
    height: 39px;
  }

  .float-card--bottom {
    right: -7%;
  }

  .mobile-download {
    right: 7px;
    bottom: 7px;
    left: 7px;
  }

  .mobile-download > div:first-child img {
    display: none;
  }

  .store-buttons--compact .store-button img {
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
