/* WORD SMASH homepage. Support and legal pages use document-v3.css. */
@font-face {
  font-family: WSDisplay;
  src: url("../../../../assets/fonts/Orbitron-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: WSHeading;
  src: url("zen-kaku-headings-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070e1a;
  --cyan: #8bddfd;
  --panel: #101a28;
  --ink: #f4f5f5;
  --muted: #b6c1ce;
  --gold: #e0b963;
  --gold-light: #f8d99a;
  --line: #283649;
  --light: #f3f5f7;
  --light-ink: #132235;
  --light-muted: #475a70;
  --ochre: #775414;
  --display: WSDisplay, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --heading: WSHeading, var(--body);
  --section-space: clamp(3.2rem, 6.4vw, 5.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.8 var(--body); letter-spacing: .016em; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 700;
  font-feature-settings: "palt";
  line-break: strict;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--bg); }

.wrap { width: min(73rem, calc(100% - 6rem)); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 10;
  inset: .75rem auto auto 1rem;
  transform: translateY(-180%);
  padding: .65rem 1rem;
  background: var(--gold);
  color: var(--bg);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: rgba(7, 14, 26, .93);
  border-bottom: 1px solid #31435a;
  backdrop-filter: blur(16px);
}
.page-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  pointer-events: none;
}
.header-inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
  color: var(--ink);
  font: 750 .94rem/1.2 var(--display);
  letter-spacing: .07em;
  text-decoration: none;
}
.brand img, .quiz-top img, .download img { border-radius: 22%; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); }
.main-nav a {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  transform: scaleX(0);
  transition: transform .2s ease;
  transform-origin: left;
  background: var(--cyan);
  content: "";
}
.main-nav a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.main-nav a:hover, .site-footer a:hover { color: var(--gold-light); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .32rem;
  color: inherit;
  font-size: .925rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.button-header {
  min-height: 2.75rem;
  flex: none;
  border-color: #675838;
  color: var(--gold-light);
  font-size: .875rem;
}
.button-primary {
  border-color: #f5d390;
  background: linear-gradient(135deg, #ffe8b7, var(--gold) 78%);
  color: #201808;
  box-shadow: 0 4px 22px #e0b96324;
}
.button-primary:hover { box-shadow: 0 6px 28px #e0b96355; transform: translateY(-2px); }
.button-secondary { border-color: #415269; background: #0e1929; }
.button-secondary:hover, .button-header:hover { border-color: var(--gold); background: #211d1b; color: var(--gold-light); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 5.6vw, 5.5rem) clamp(1.4rem, 3vw, 2.1rem);
  border-bottom: 1px solid #36536d;
  background:
    radial-gradient(ellipse at 83% 32%, #203b6b 0%, #0c2038 30%, transparent 63%),
    linear-gradient(105deg, #070c16, #091424 66%, #101b33);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#91daff14 1px, transparent 1px), linear-gradient(90deg, #91daff14 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(ellipse at 82% 36%, #000 5%, transparent 68%);
  content: "";
}
.hero-terrain {
  position: absolute;
  z-index: -1;
  inset: auto -25% -38% 13%;
  height: 80%;
  transform: perspective(34rem) rotateX(62deg);
  transform-origin: top center;
  background:
    linear-gradient(#76d5ff38 1px, transparent 1px) center top / 4rem 4rem,
    linear-gradient(90deg, #76d5ff34 1px, transparent 1px) center top / 4rem 4rem;
  mask-image: radial-gradient(ellipse at 63% 22%, #000, #0004 40%, transparent 70%);
  animation: floor-light 2.1s ease-out both;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(1.8rem, 6vw, 5.6rem);
  padding-bottom: clamp(2.1rem, 4.2vw, 3.85rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--gold-light);
  font: 650 .8125rem/1.5 var(--display);
  letter-spacing: .12em;
}
.eyebrow::before { width: 1.8rem; height: 1px; flex: none; background: currentColor; content: ""; }
.hero-copy { container-type: inline-size; }
.hero-label { color: var(--gold-light); font: 700 .875rem/1.5 var(--body); letter-spacing: .085em; }
.hero h1 {
  margin-block: .7rem 1.35rem;
  font-size: clamp(1.6rem, 12.25cqi, 4.5rem);
  line-height: 1.16;
  letter-spacing: -.028em;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span + span { color: var(--gold-light); text-shadow: 0 0 32px #e0b96329; }
.hero-lead { max-width: 31rem; color: #c7d5e6; line-height: 1.95; text-wrap: pretty; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.platform-note { margin-top: .75rem; color: var(--muted); font-size: .8125rem; }

.hero-stage {
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.stage-orbit {
  position: absolute;
  z-index: -1;
  top: 48%;
  left: 56%;
  width: min(55vw, 44rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 1px solid #89e0ff3b;
  border-radius: 50%;
  box-shadow: inset 0 0 5.5rem #47bcf130, 0 0 2.7rem #6d84ff20;
  pointer-events: none;
}
.stage-orbit::before {
  position: absolute;
  inset: 5%;
  background: repeating-conic-gradient(#8bddfd85 0deg 1deg, transparent 1deg 7.5deg);
  mask-image: radial-gradient(circle closest-side, transparent 95%, #000 95.4% 99.8%, transparent 100%);
  border-radius: 50%;
  content: "";
}
.stage-orbit::after {
  position: absolute;
  inset: 13%;
  transform: rotate(-34deg) scaleY(.67) scaleX(1.31);
  border: 1px solid #ebd39565;
  border-radius: 50%;
  content: "";
}
.orbit-sweep {
  position: absolute;
  inset: 6%;
  transform: rotate(24deg);
  border-radius: 50%;
  background: conic-gradient(from 0deg, #85cfff00, #8bddfd41 48deg, #8bddfda0 50deg, transparent 51deg);
  mask-image: radial-gradient(circle closest-side, transparent 49%, #000 87%, transparent 99%);
  animation: rotate-sweep 4.4s cubic-bezier(.16,.7,.2,1) both;
}
.trial-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(.95rem, 2.3vw, 1.55rem);
  border: 1px solid #55738d;
  border-radius: .6rem;
  background:
    radial-gradient(ellipse at var(--spot-x, 54%) var(--spot-y, 25%), #2475a54a, transparent 65%),
    linear-gradient(150deg, #142946, #0b192a 58%, #0a1423);
  box-shadow: 0 1.55rem 4.25rem #030812ab, inset 0 1px #e1f4ff22;
}
.trial-card::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(var(--cyan), var(--cyan)) right top / 1.45rem 2px,
    linear-gradient(var(--cyan), var(--cyan)) right top / 2px 1.45rem,
    linear-gradient(var(--gold), var(--gold)) left bottom / 1.45rem 2px,
    linear-gradient(var(--gold), var(--gold)) left bottom / 2px 1.45rem;
  background-repeat: no-repeat;
  pointer-events: none;
  content: "";
}
.trial-header {
  position: relative;
  display: flex;
  min-height: 1.9rem;
  justify-content: space-between;
  gap: .6rem;
  align-items: baseline;
  padding-bottom: .45rem;
  border-bottom: 1px solid #76b4e351;
}
.trial-label { color: var(--cyan); font: 670 .8125rem/1.3 var(--display); letter-spacing: .15em; }
.trial-opponent { color: #c9dcf1; font-size: .8125rem; }
.trial-match {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: .65rem;
  min-height: 7.35rem;
  margin-block: .45rem;
  background:
    linear-gradient(90deg, transparent, #6fceff6b, #f4ce7d38, transparent) center / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #8bddfd11 0 1px, transparent 1px 1.4rem),
    radial-gradient(ellipse at 50% 50%, #204f7880, transparent 70%);
  mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent);
}
.trial-match::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  transform: translateX(-110%) skewX(-24deg);
  background: linear-gradient(90deg, transparent, #8bddfd27, #b7eaff05, transparent);
  animation: match-scan 2s .25s ease-out both;
  pointer-events: none;
  content: "";
}
.trial-match > span {
  position: relative;
  color: #e8f9ff;
  font: 760 clamp(1rem, 3vw, 1.55rem)/1 var(--display);
  text-shadow: 0 0 16px #82ddffcf;
}
.trial-fighter {
  width: min(100%, 5.75rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid #9cddf7;
  border-radius: 50%;
  background: #f4fbff;
}
.trial-fighter img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.trial-player { filter: drop-shadow(0 0 .75rem #67d3ff80); animation: player-entrance .7s ease-out both; }
.trial-cpu { border-color: #eac993; filter: drop-shadow(0 0 .75rem #e7ab6c77); animation: cpu-entrance .7s ease-out both; }
.trial-copy { display: grid; justify-items: start; gap: .65rem; }
.trial-copy h2 { font-size: clamp(1.42rem, 3.1vw, 2.25rem); line-height: 1.2; letter-spacing: .015em; }
.trial-copy p { max-width: 27rem; color: #c1d2e4; font-size: .9rem; line-height: 1.68; }
.trial-launch {
  min-height: 3rem;
  border-color: #b7edfd;
  background: linear-gradient(143deg, #e9f9ff, #91d9f5 82%);
  color: #09213b;
  box-shadow: 0 .35rem 1.55rem #54c7ff30;
}
.trial-launch:hover { box-shadow: 0 .45rem 1.75rem #74d9ff68; transform: translateY(-2px); }


.metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #3c5972;
  border-radius: .45rem;
  background: linear-gradient(110deg, #0c192a, #10223b);
  box-shadow: inset 0 1px #81c8eb20;
}
.metrics div { position: relative; display: flex; flex-direction: column-reverse; justify-content: center; padding: .9rem 1.4rem 1rem; }
.metrics div + div { border-left: 1px solid #3c5972; }
.metrics dt { color: var(--muted); font-size: .875rem; }
.metrics dd { margin-bottom: .3rem; color: var(--ink); font: 650 clamp(1.5rem, 3vw, 2.35rem)/1.15 var(--display); letter-spacing: -.012em; }
.metrics span { position: absolute; inset: auto 1.2rem 1.32rem auto; color: var(--gold-light); font: 600 .75rem/1.75 var(--body); letter-spacing: normal; }

.learning, .curriculum, .study-plans, .achievements, .battle, .faq, .download { padding-block: var(--section-space); }
.curriculum, .study-plans, .faq { color-scheme: light; background: var(--light); color: var(--light-ink); }
:is(.curriculum, .study-plans, .faq) :focus-visible { outline-color: var(--ochre); }
:is(.curriculum, .study-plans, .faq) .eyebrow { color: var(--ochre); }
.learning {
  background:
    linear-gradient(90deg, #8bddfd09 1px, transparent 1px) right top / 3.5rem 100%,
    radial-gradient(ellipse at 10% 8%, #122844 0%, #0a1729 42%, #080f1d 83%);
}
:is(.learning, .achievements) .eyebrow { color: var(--cyan); }
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(1.4rem, 5.4vw, 4.65rem);
}
.section-intro h2, .achievements h2, .faq h2, .download h2 {
  margin-top: .7rem;
  font-size: clamp(1.9rem, 3.65vw, 3.35rem);
  line-height: 1.26;
  letter-spacing: -.018em;
}
.section-intro > p { max-width: 31rem; padding-bottom: .2rem; color: var(--muted); text-wrap: balance; }
.curriculum .section-intro > p, .study-plans .section-intro > p { color: var(--light-muted); }
.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.8rem, 1.8vw, 1.4rem);
  margin-top: clamp(1.65rem, 3.2vw, 2.7rem);
}
.study-card {
  --study-accent: #e5c580;
  --study-bg: #28313f;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #36506a;
  border-radius: .65rem;
  background: linear-gradient(145deg, #192e46, #112237 60%);
  box-shadow: 0 .65rem 1.75rem #040b1677;
}
.study-review { --study-accent: #86e1ed; --study-bg: #173647; }
.study-progress { --study-accent: #b6baff; --study-bg: #262f52; }
.study-copy { padding: clamp(1.15rem, 2.6vw, 1.7rem); }
.study-copy h3 { font-size: clamp(1.18rem, 1.85vw, 1.52rem); line-height: 1.4; letter-spacing: .015em; }
.study-copy h3::before {
  display: block;
  width: 1.6rem;
  height: 3px;
  margin-bottom: .82rem;
  border-radius: 4px;
  background: var(--study-accent);
  content: "";
}
.study-copy p { margin-top: .56rem; color: #c3d2e4; line-height: 1.72; }
.study-shot {
  display: grid;
  place-items: start center;
  padding: 1.35rem 1rem 1.55rem;
  border-top: 1px solid #97c7ec28;
  background:
    repeating-linear-gradient(90deg, #a7d3ff14 0 1px, transparent 1px 1.6rem),
    radial-gradient(ellipse at 50% 25%, #98c5ee22, transparent 73%),
    var(--study-bg);
}
.phone-frame {
  display: block;
  width: min(100%, 12rem);
  overflow: hidden;
  border: 4px solid #131a27;
  border-radius: 1.45rem;
  background: #0e1725;
  box-shadow: 0 .65rem 1.65rem #0e17254d;
  transition: transform .25s ease, box-shadow .25s ease;
}
.phone-frame:is(:hover, :focus-visible) { transform: translateY(-4px); box-shadow: 0 .8rem 1.8rem #0e172574, 0 0 1.2rem #75d8ff53; }
.phone-frame img { width: 100%; aspect-ratio: 560 / 1218; }
.review-guide {
  display: grid;
  grid-template-columns: minmax(9.5rem, .45fr) minmax(0, 1fr);
  gap: .85rem 2rem;
  margin-top: 2.4rem;
  padding: clamp(1.25rem, 2.8vw, 1.9rem);
  border-block: 1px solid #3c5972;
}
.review-guide h3 { font-size: 1.12rem; }
.review-guide dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.65rem; }
.review-guide dt { font-weight: 750; }
.review-guide dd { margin-top: .25rem; color: var(--muted); }

.curriculum { border-block: 1px solid #d9e0e8; background: #fcfdfe; }
.catalog-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.catalog-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .9rem;
  border: 1px solid #cbd5e1;
  border-radius: .4rem;
  background: #f4f7fa;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.catalog-nav a:hover { border-color: #ac8c52; background: #f6edda; }
.catalog-feature,
.catalog-card,
.listening-feature {
  --catalog-border: #d5dee9;
  border: 1px solid var(--catalog-border);
  border-radius: .95rem;
  padding: clamp(1.15rem, 3.1vw, 2.5rem);
  background: #fff;
}
.catalog-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, .68fr);
  gap: clamp(1.35rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: 1rem;
  background: linear-gradient(120deg, #fff 48%, #edf3f8);
}
.catalog-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .85rem; margin-bottom: .65rem; }
.catalog-title h3 { font-size: clamp(1.35rem, 2.6vw, 2.25rem); letter-spacing: .02em; line-height: 1.3; }
.catalog-title p { color: var(--ochre); font-size: .875rem; white-space: nowrap; }
.catalog-title strong { font: 650 clamp(1.05rem, 1.7vw, 1.4rem)/1 var(--display); letter-spacing: -.035em; }
.catalog-title + p, .catalog-feature h4 + p { color: var(--light-muted); }
.catalog-feature h4 { margin: 1.25rem 0 .32rem; font-size: 1.08rem; }
.deck-table {
  width: 100%;
  margin-top: .85rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
  text-align: center;
}
.deck-table caption { padding-block: .25rem .5rem; color: var(--light-muted); font-size: .875rem; text-align: left; }
.deck-table th, .deck-table td { padding: .58rem .45rem; border-bottom: 1px solid var(--catalog-border); }
.deck-table thead { background: #edf2f7; }
.deck-table th:first-child { padding-left: .7rem; text-align: left; }
.deck-table td { color: #354a62; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.material-sample {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d2deeb;
  border-left: 3px solid #a17c3e;
  border-radius: .45rem;
  background: #f2f6fa;
  color: #41556d;
}
.material-label { margin-bottom: .35rem; color: var(--ochre); font-size: .875rem; font-weight: 750; }
.material-english { color: var(--light-ink); font-size: 1.06rem; font-weight: 700; line-height: 1.6; }
.material-blank { color: #806023; white-space: nowrap; }
.sample-disclosure { margin-top: .55rem; }
.sample-disclosure summary {
  min-height: 2.75rem;
  padding-block: .46rem;
  color: #2b527c;
  font-size: .925rem;
  font-weight: 750;
  cursor: pointer;
}
.sample-disclosure p + p { margin-top: .35rem; }
.sample-disclosure b, .dialogue b { color: var(--light-ink); }
.sample-disclosure span, .dialogue dd span { margin-left: .45rem; }
.dialogue { display: grid; gap: .65rem; }
.dialogue div { display: grid; grid-template-columns: 1.5rem 1fr; align-items: start; gap: .4rem; }
.dialogue dt { color: #2b527c; font-size: .875rem; font-weight: 750; }
.dialogue dd { min-width: 0; }
.dialogue dd span { display: block; margin-left: 0; font-size: .875rem; }
.catalog-footnote { margin-top: .85rem; color: var(--light-muted); font-size: .875rem; }
.listening-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  align-items: start;
  gap: 1.2rem 2rem;
}
.listening-modes { margin-top: .9rem; }
.listening-modes div { padding-block: .65rem; border-top: 1px solid var(--catalog-border); }
.listening-modes dt { font-weight: 750; }
.listening-modes dd { color: var(--light-muted); }
.listening-sample { margin: 0; }
.listening-play {
  min-height: 2.75rem;
  margin-top: .65rem;
  border-color: #b39862;
  background: #f7ead0;
  color: #5c4115;
}
.listening-play:hover { background: #f1dfb7; }
.listening-status:not(:empty) { margin-top: .45rem; font-size: .875rem; }
.sample-key { padding-top: .5rem; border-top: 1px solid #d2deeb; font-size: .875rem; }

.study-plans { background: #e9eff6; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.4rem, 3vw, 2.25rem);
}
.plan-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid #ccd7e4;
  border-top: 2px solid #a98b52;
  border-radius: .65rem;
  background: #f8fafc;
}
.plan-card h3 { font-size: 1.15rem; line-height: 1.55; }
.plan-card ol { display: grid; gap: .45rem; margin: .75rem 0 .5rem; padding-left: 1.4rem; color: var(--light-muted); }
.plan-card li::marker { color: var(--ochre); font-weight: 750; }
.plan-card a { display: flex; align-items: center; min-height: 2.75rem; margin-top: auto; color: #2b527c; font-size: .9rem; font-weight: 750; }
.plan-card a:hover { color: var(--ochre); }

.battle-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.7rem;
}
.battle-modes article {
  padding: 1rem 1.05rem;
  border: 1px solid #3c4b62;
  border-radius: .65rem;
  background: #152235b8;
}
.battle-modes h3 { font-size: 1.04rem; color: var(--gold-light); }
.battle-modes p { margin-top: .36rem; color: var(--muted); font-size: .93rem; }

.battle {
  border-top: 1px solid #35516b;
  background: radial-gradient(ellipse at 72% 34%, #1e3567 0%, #102541 31%, #080f1c 78%);
}
.arena {
  overflow: hidden;
  position: relative;
  border: 1px solid #58748e;
  border-radius: .65rem;
  background-image: linear-gradient(#91dcfa1c 1px, transparent 1px), linear-gradient(90deg, #91dcfa1c 1px, transparent 1px);
  background-size: 3.4rem 3.4rem;
}
.arena-art img { width: min(100%, 62rem); margin-inline: auto; }
.arena::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 27%;
  transform: translateX(-110%) skewX(-24deg);
  background: linear-gradient(90deg, transparent, #c7e6ff4d, transparent);
  pointer-events: none;
  content: "";
}
.arena-row.is-visible .arena::after { animation: match-scan 1.85s .3s ease-out both; }
.rank-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .2rem;
  margin: 0;
  padding: 1rem .8rem;
  border-top: 1px solid #39475e;
  background: #0d1625;
  list-style: none;
  text-align: center;
}
.rank-list li { color: #e1ac85; font: 600 clamp(.75rem, 1.45vw, 1rem)/1.4 var(--display); }
.rank-list li:nth-child(2) { color: #dce6ef; }
.rank-list li:nth-child(3) { color: var(--gold-light); }
.rank-list li:nth-child(4) { color: #a1dafe; }
.rank-list li:nth-child(5) { color: #d7c6ff; }

.ranking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .58fr);
  align-items: center;
  overflow: hidden;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #4a6481;
  border-radius: .65rem;
  background: linear-gradient(115deg, #142943, #0b192d 60%, #203c61);
}
.ranking-copy { padding: clamp(1.45rem, 4.5vw, 3.65rem); }
.ranking h3 { margin-top: .65rem; font-size: clamp(1.4rem, 2.6vw, 2.35rem); letter-spacing: .005em; line-height: 1.33; }
.ranking-copy > p:not(.eyebrow) { max-width: 34rem; margin-top: .9rem; color: var(--muted); }
.ranking-note { font-size: .875rem; }

.faq-inner { display: grid; grid-template-columns: minmax(0, .64fr) minmax(0, 1fr); gap: 2.5rem; }
.faq h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.faq-list { border-top: 1px solid #c7d0db; }
.faq-list details { border-bottom: 1px solid #c7d0db; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.65rem;
  padding: .75rem 0;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { flex: none; color: var(--ochre); font-size: 1.4rem; line-height: 1; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 1.4rem 1.1rem 0; color: var(--light-muted); }

.download {
  padding-block: clamp(2.65rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 30% 60%, #273348, #0c1421 65%);
}
.download-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.6rem; }
.download h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.7rem); }
.download p { margin-top: .3rem; color: var(--muted); }
.site-footer { padding-block: 1.35rem; color: var(--muted); }
.footer-inner, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.25rem; }
.footer-inner { justify-content: space-between; }
.site-footer p { font: 500 .75rem/1.4 var(--display); }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.25rem; font-size: .875rem; text-decoration: none; }

.is-visible { animation: reveal .62s cubic-bezier(.22, .72, .25, 1) both; }
@keyframes reveal { from { opacity: .68; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rotate-sweep { from { opacity: .34; transform: rotate(-82deg); } to { opacity: .9; transform: rotate(75deg); } }
@keyframes floor-light { from { opacity: .2; } to { opacity: 1; } }
@keyframes match-scan { from { opacity: .3; transform: translateX(-115%) skewX(-24deg); } 38% { opacity: 1; } to { opacity: 0; transform: translateX(470%) skewX(-24deg); } }
@keyframes player-entrance { from { opacity: .52; transform: translateX(-.8rem); } to { opacity: 1; transform: none; } }
@keyframes cpu-entrance { from { opacity: .52; transform: translateX(.8rem); } to { opacity: 1; transform: none; } }

.screen-note { margin-top: .9rem; color: #b6c7dd; font-size: .8125rem; }

.catalog-shots, .achievements-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: clamp(.65rem, 2vw, 1.5rem);
}
:is(.catalog-shots, .achievements-gallery, .arena-shot, .ranking-shot) figcaption {
  margin-top: .6rem;
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
}
.catalog-shots .phone-frame { width: min(100%, 10rem); }
.idiom-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5rem, .42fr);
  align-items: start;
  gap: .7rem;
  margin-top: .9rem;
}
.idiom-demo .material-sample { margin: 0; padding-inline: .8rem; }
.idiom-shot { justify-self: center; }
.idiom-shot .phone-frame { width: min(100%, 7rem); border-width: 3px; border-radius: 1rem; }

.achievements { background: radial-gradient(ellipse at 82% 15%, #16364d, #0a1a2d 56%, #090f1c); }
.achievements-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.65rem, 4.5vw, 4.55rem);
}
.achievements-copy dl { margin-top: 1.35rem; }
.achievements-copy dl div { border-top: 1px solid #365069; padding-block: .7rem; }
.achievements-copy dt { font-weight: 750; }
.achievements-copy dd { margin-top: .22rem; color: var(--muted); }
.achievements-gallery {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #45667e;
  border-radius: .65rem;
  background:
    repeating-linear-gradient(90deg, #b1e3ff12 0 1px, transparent 1px 2rem),
    radial-gradient(ellipse at 50% 14%, #27506a, #111f34 74%);
}
.achievements-gallery .phone-frame { width: min(100%, 11rem); }

.arena-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.9rem, 3vw, 2.75rem);
  margin-top: 2.3rem;
}
.arena-shot .phone-frame { width: 10rem; border-color: #29394f; }
.arena-shot figcaption, .ranking-shot figcaption { color: #e0e6ee; }
.ranking-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 1.35rem;
}
.ranking-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .53;
  object-fit: cover;
}
.ranking-shot .phone-frame { width: 9.25rem; border-color: #29394f; }

.trial-dialog {
  width: min(57rem, calc(100% - 1.5rem));
  height: min(52rem, calc(100dvh - 1.5rem));
  max-width: none;
  max-height: none;
  overflow: hidden;
  padding: 0;
  border: 1px solid #6e9ab6;
  border-radius: .75rem;
  background: #080e19;
  color: var(--ink);
  box-shadow: 0 0 4rem #4ca9df38;
  overscroll-behavior: contain;
}
.trial-dialog[open] { display: flex; flex-direction: column; animation: reveal .24s ease-out both; }
.trial-dialog::backdrop { background: #030710d9; }
.trial-dialog-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .4rem .9rem;
  border-bottom: 1px solid #355a78;
  background: #12243a;
}
.trial-dialog-header h2 { color: #e8f7ff; font-size: 1.1rem; letter-spacing: .045em; }
.trial-dialog iframe { width: 100%; min-height: 0; flex: 1; border: 0; }

.preview-dialog {
  width: min(30rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 1rem;
  border: 1px solid #53637a;
  border-radius: 1rem;
  background: #111c2c;
  color: var(--ink);
  box-shadow: 0 1rem 4rem #0008;
}
.preview-dialog::backdrop { background: #040812cc; }
.preview-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding-bottom: .75rem; }
.preview-dialog h2 { font-size: 1.1rem; }
.preview-close { min-height: 2.75rem; border-color: #65748b; background: #223148; }
.preview-close:hover { border-color: var(--gold); color: var(--gold-light); }
.preview-dialog img {
  width: auto;
  max-height: min(72dvh, 52rem);
  margin-inline: auto;
  border-radius: .55rem;
  object-fit: contain;
}

@media (max-width: 74rem) {
  .metrics span { position: static; margin-left: .5rem; }
}

@media (max-width: 61rem) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero-inner { gap: 2.1rem; }
  .hero-actions { align-items: flex-start; }
  .hero-actions .button { padding-inline: .82rem; }
}

@media (max-width: 50rem) {
  html { scroll-padding-top: 7rem; }
  .wrap { width: calc(100% - 2.75rem); }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 .7rem;
    min-height: 0;
    padding-top: .45rem;
  }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .25rem; }
  .main-nav a { min-height: 2.55rem; }
  .hero { padding-top: 2.85rem; }
  .section-intro { grid-template-columns: 1fr; gap: .9rem; }
  .learning-grid { grid-template-columns: 1fr; }
  .study-card { grid-template-columns: minmax(0, 1fr) minmax(0, .68fr); grid-template-rows: auto; grid-row: auto; align-items: stretch; }
  .study-shot { padding: .8rem .7rem; place-items: center; }
  .phone-frame { width: min(100%, 8.6rem); border-radius: 1rem; border-width: 3px; }
  .study-copy { align-self: center; }
  .review-guide { grid-template-columns: 1fr; }
  .plan-grid, .achievements-inner { grid-template-columns: 1fr; }
  .battle-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .download-inner { grid-template-columns: auto 1fr; gap: .85rem 1rem; }
  .download-inner > a { grid-column: 2; justify-self: start; }
  .download img { width: 3.75rem; }
}

@media (max-width: 44rem) {
  .hero-inner { grid-template-columns: 1fr; justify-items: center; gap: 1.85rem; }
  .hero-copy, .hero-stage { width: min(100%, 35rem); }
  .hero h1 { font-size: clamp(1.6rem, 12.25cqi, 4.05rem); }
  .hero-terrain { inset-inline: -40%; height: 58%; }
  .stage-orbit { width: min(100vw, 40rem); }
}

@media (max-width: 34rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .brand { font-size: .81rem; gap: .45rem; }
  .brand img { width: 2rem; }
  .button-header { min-height: 2.55rem; padding-inline: .7rem; }
  .hero { padding-block: 1.9rem 1.5rem; }
  .hero-inner { gap: 1.55rem; }
  .trial-match { min-height: 6.5rem; }
  .trial-fighter { width: min(100%, 5.1rem); }
  .hero h1 { margin-block: .55rem .95rem; }
  .hero-actions { margin-top: 1.05rem; }
  .hero-actions .button { min-height: 2.9rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics div { padding: .75rem .85rem; }
  .metrics span { margin-left: .3rem; }
  .metrics div:nth-child(3) { border-left: 0; }
  .metrics div:nth-child(n + 3) { border-top: 1px solid #3d4a5e; }
  .learning-grid { gap: .75rem; }
  .review-guide { margin-top: 1.65rem; padding-inline: 0; }
  .review-guide dl, .catalog-feature, .catalog-grid, .listening-feature { grid-template-columns: 1fr; }
  .catalog-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-nav a { padding-inline: .45rem; justify-content: center; }
  .catalog-shots .phone-frame { width: min(100%, 8.25rem); }
  .idiom-demo { grid-template-columns: minmax(0, 1fr) minmax(4.25rem, .48fr); }
  .idiom-demo .material-sample { font-size: .875rem; }
  .idiom-demo .material-english { font-size: .96rem; }
  .arena-row { grid-template-columns: 1fr; }
  .arena-shot { justify-self: center; }
  .rank-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem .8rem; }
  .ranking { grid-template-columns: 1fr; }
  .ranking-art { mask-image: linear-gradient(transparent, #000 24%); }
}

@media (max-width: 23rem) {
  .hero-actions .button-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .phone-frame:is(:hover, :focus-visible) { transform: none; }
}
