@font-face {
  font-family: "Questrial";
  src: url("https://static.parastorage.com/tag-bundler/api/v1/fonts-cache/googlefont/woff2/s/questrial/v9/QdVUSTchPBm7nuUeVf70viFluW44JQ.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Poppins Semi";
  src: url("https://static.parastorage.com/tag-bundler/api/v1/fonts-cache/googlefont/woff2/s/poppins/v5/9VWMTeb5jtXkNoTv949Npfk_vArhqVIZ0nv9q090hN8.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #121524;
  --coal: #121524;
  --graphite: #1a1d35;
  --cream: #f2f2f2;
  --paper: #fbfbfb;
  --mint: #b9f4de;
  --aqua: #4b4875;
  --coral: #c6001c;
  --plum: #4b4875;
  --gold: #f2f2f2;
  --muted: #626579;
  --line: rgba(18, 21, 36, 0.12);
  --white-line: rgba(255, 255, 255, 0.16);
  --shadow: 0 26px 80px rgba(18, 21, 36, 0.18);
  --soft-shadow: 0 18px 48px rgba(18, 21, 36, 0.10);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Questrial", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--white-line);
  background: rgba(9, 15, 15, 0.86);
  color: #fff;
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background:
    url("logos/F2F2F2.png") center / 72% no-repeat,
    linear-gradient(135deg, rgba(75, 72, 117, 0.68), rgba(198, 0, 28, 0.28));
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 0;
}

.brand span:last-child {
  display: grid;
  gap: 1px;
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 15px;
  line-height: 1;
}

.brand small {
  color: rgba(255, 255, 255, 0.62);
  font-family: "Questrial", Arial, sans-serif;
  font-size: 12px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  transform: translateY(-1px);
}

.nav-links .games-link {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, #b9f4de, #5bd4d6 28%, #6d4cff 58%, #ff8f70 82%, #ffd36a);
  color: #071010;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 28px rgba(91, 212, 214, 0.22);
}

.nav-links .games-link::after {
  content: "";
  position: absolute;
  inset: -45% -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.64), transparent 62%);
  transform: translateX(-65%);
  transition: transform 500ms ease;
}

.nav-links .games-link:hover::after,
.nav-links .games-link[aria-current="page"]::after {
  transform: translateX(65%);
}

.nav-links .games-link:hover,
.nav-links .games-link[aria-current="page"] {
  color: #071010;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #b9f4de, #5bd4d6 28%, #6d4cff 58%, #ff8f70 82%, #ffd36a);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--coal);
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 14px;
}

.hero,
.page-hero,
.login-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 22%, rgba(75, 72, 117, 0.34), transparent 32%),
    radial-gradient(circle at 20% 78%, rgba(198, 0, 28, 0.16), transparent 34%),
    linear-gradient(135deg, #121524 0%, #1a1d35 52%, #121524 100%);
}

.hero::before,
.page-hero::before,
.login-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  align-items: center;
  gap: 64px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 760px;
  margin: 0 auto;
  padding: 92px 0 112px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0 0 24px;
  padding: 8px 12px;
  border: 1px solid rgba(185, 244, 222, 0.35);
  border-radius: 999px;
  background: rgba(185, 244, 222, 0.1);
  color: var(--mint);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
.price,
.brand span:last-child,
.button,
.nav-cta {
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1,
.page-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.92;
}

.hero-copy,
.lead {
  max-width: 630px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(18px, 2vw, 22px);
  overflow-wrap: anywhere;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--coal);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.button.primary {
  background: var(--mint);
  color: var(--coal);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.proof-item {
  padding: 18px;
  border: 1px solid var(--white-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.64);
}

.proof-item strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.hero-visual,
.hero-image-panel {
  position: relative;
}

.hero-visual {
  display: grid;
  align-items: center;
  justify-items: end;
}

.hero-image-panel {
  width: min(100%, 430px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 56px rgba(255, 255, 255, 0.12),
    0 30px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.hero-image-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1531 / 1962;
  object-fit: cover;
}

.section {
  padding: 72px 0;
}

.section.dark {
  background: var(--coal);
  color: #fff;
}

.section-title {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 34px;
}

.section-title > * {
  min-width: 0;
  max-width: 100%;
}

.section-title h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 0.98;
}

.section-title p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.dark .section-title p {
  color: rgba(255, 255, 255, 0.65);
}

.section-title.dark h2,
.section-title.dark p {
  color: #fff;
}

.section-title.dark p {
  color: rgba(255, 255, 255, 0.65);
}

.split {
  padding: 96px 0;
  background: var(--cream);
}

.split-inner,
.features,
.mastery-inner,
.steps,
.teacher-grid,
.domains,
.pricing-grid,
.contact-inner,
.login-panel {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.split-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 34px;
}

.lesson-image {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.64),
    var(--shadow);
}

.lesson-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3750 / 1969;
  object-fit: cover;
  border-radius: inherit;
}

.intro-box {
  padding: 38px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.intro-box h1,
.intro-box h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
}

.intro-box p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature,
.step,
.domain,
.price-card,
.login-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.feature {
  min-height: 240px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature:hover,
.step:hover,
.domain:hover,
.price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--coal);
}

.feature .icon::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mint), var(--coral));
}

.feature img {
  display: none;
}

.feature h3,
.step h2,
.domain h2,
.price-card h2,
.login-card h1 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.08;
}

.feature p,
.step p,
.domain p,
.price-card li {
  margin: 0;
  color: var(--muted);
}

.mastery {
  padding: 96px 0;
  background: var(--coal);
  color: #fff;
}

.mastery-inner {
  display: grid;
  grid-template-columns: 370px 1fr;
  overflow: hidden;
  border: 1px solid var(--white-line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.mastery-title {
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(185, 244, 222, 0.14), rgba(75, 72, 117, 0.24)),
    rgba(255, 255, 255, 0.04);
}

.mastery-title h2 {
  margin: 0;
  font-size: 42px;
  line-height: 0.98;
}

.mastery-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--white-line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.24);
}

.mastery-image img {
  display: block;
  width: 100%;
  aspect-ratio: 8484 / 5262;
  object-fit: cover;
  object-position: center;
}

.mastery-copy {
  padding: 68px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.mastery-copy p {
  max-width: 680px;
  margin: 0;
}

.page-hero {
  padding: 104px 0 90px;
}

.page-hero .container {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.page-title {
  font-size: clamp(52px, 7vw, 92px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 92px 0;
}

.step {
  padding: 28px;
  min-height: 286px;
}

.teacher-band {
  padding: 96px 0;
  background:
    linear-gradient(135deg, rgba(251, 245, 234, 0.92), rgba(255, 255, 255, 0.8)),
    repeating-linear-gradient(90deg, rgba(18, 21, 20, 0.08) 0 1px, transparent 1px 44px);
}

.lessonspace-showcase {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 34px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 28px;
}

.lessonspace-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 0.98;
}

.lessonspace-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.lessonspace-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72),
    var(--shadow);
}

.lessonspace-image img {
  width: 100%;
  aspect-ratio: 1914 / 947;
  object-fit: cover;
  object-position: center;
}

.teacher-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  align-items: stretch;
  gap: 24px;
}

.teacher-card,
.domain-card {
  padding: 42px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.teacher-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  align-items: center;
  gap: 34px;
}

.teacher-card .eyebrow {
  margin-bottom: 18px;
}

.domain-card {
  display: grid;
  align-content: center;
  gap: 24px;
  background:
    linear-gradient(145deg, rgba(185, 244, 222, 0.16), rgba(75, 72, 117, 0.08)),
    var(--paper);
}

.teacher-grid h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
}

.teacher-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.teacher-profile-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72),
    var(--soft-shadow);
}

.teacher-profile-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.domain-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 2px 0 6px;
}

.domain-chip-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18, 21, 36, 0.08);
  color: rgba(18, 21, 36, 0.72);
  font-size: 13px;
}

.domain-card .button {
  justify-self: start;
}

.domains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 92px 0 104px;
}

.domain {
  min-height: 230px;
  padding: 28px;
}

.pricing-tabs {
  display: flex;
  width: max-content;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.pricing-tabs a {
  min-width: 190px;
  padding: 14px 20px;
  text-align: center;
}

.pricing-tabs a:first-child {
  background: var(--mint);
  color: var(--coal);
}

.trial-strip {
  background: var(--mint);
  color: var(--coal);
}

.trial-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}

.trial-strip strong {
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 21px;
}

.trial-strip span {
  color: rgba(18, 21, 36, 0.72);
}

.trial-strip .button {
  min-height: 44px;
  background: var(--coal);
  color: #fff;
  box-shadow: none;
}

.pricing-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(75, 72, 117, 0.46), transparent 34%),
    radial-gradient(circle at 20% 78%, rgba(198, 0, 28, 0.18), transparent 34%),
    linear-gradient(135deg, #121524, #1a1d35 58%, #121524);
}

.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
}

.pricing-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 56px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 560px;
  margin: 0 auto;
  padding: 66px 0 76px;
}

.pricing-copy .page-title {
  font-size: clamp(46px, 6vw, 84px);
}

.region-status {
  display: inline-flex;
  max-width: 720px;
  margin: 28px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(185, 244, 222, 0.28);
  border-radius: 999px;
  background: rgba(185, 244, 222, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.35;
}

.price-hero-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.price-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.tier-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.tier-switch[hidden] {
  display: none;
}

.tier-switch button {
  position: relative;
  width: 54px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: background 180ms ease;
}

.tier-switch button span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}

.tier-switch button[aria-checked="true"] {
  background: var(--mint);
}

.tier-switch button[aria-checked="true"] span {
  transform: translateX(24px);
}

.price-hero-card .price {
  margin: 22px 0 8px;
  color: #fff;
  font-size: clamp(58px, 7vw, 88px);
  line-height: 0.9;
}

.price-note {
  margin: 0 0 28px;
  color: var(--mint);
  font-size: 19px;
}

.price-hero-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  list-style: none;
}

.price-hero-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--mint);
}

.bundle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0;
}

.bundle-row .eyebrow {
  margin-bottom: 16px;
}

.bundle-row h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.bundle-row p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.bundle-row .button.secondary {
  border-color: rgba(18, 21, 36, 0.16);
  background: var(--coal);
  color: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 92px 0 104px;
}

.price-card {
  position: relative;
  overflow: hidden;
  padding: 46px;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: linear-gradient(90deg, var(--mint), var(--aqua), var(--coral));
}

.price-card .price {
  margin: 0 0 28px;
  color: var(--plum);
  font-size: 32px;
}

.price-card ul {
  display: grid;
  gap: 11px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.price-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--aqua);
}

.login-section {
  min-height: 700px;
  padding: 86px 0 104px;
}

.login-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  align-items: center;
  gap: 34px;
  max-width: 1120px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(18px);
}

.login-card h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.94;
}

.login-card p {
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
}

.login-copy .button.secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tutorbird-widget-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 242, 242, 0.92));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.widget-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(185, 244, 222, 0.55), transparent 38%),
    linear-gradient(135deg, var(--coal), var(--graphite));
  color: #fff;
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.widget-card-top small {
  color: var(--mint);
  font: inherit;
  font-size: 13px;
}

.tutorbird-widget-frame {
  min-height: 430px;
  padding: 22px;
  color: var(--ink);
}

.tutorbird-widget-frame iframe,
.tutorbird-widget-frame > div {
  max-width: 100%;
}

.contact-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(185, 244, 222, 0.12), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(75, 72, 117, 0.22), transparent 34%),
    var(--coal);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 240px minmax(400px, 560px) 220px;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  padding: 52px 0 38px;
}

.contact-inner > div:first-child,
.footer-nav {
  min-height: 100%;
  padding: 18px 0;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--white-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.socials a::before {
  content: "f";
  color: #fff;
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 18px;
}

.socials a[aria-label="Instagram"]::before {
  content: "ig";
  font-size: 14px;
}

.socials img {
  width: 24px;
  height: 24px;
}

.contact-form {
  padding: 28px 32px 32px;
  border: 1px solid var(--white-line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
}

.contact-form h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

input {
  width: 100%;
  height: 44px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid var(--white-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 112px;
  margin-bottom: 12px;
  padding: 13px;
  resize: vertical;
  border: 1px solid var(--white-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--mint);
  outline: none;
}

.contact-form .button {
  width: 100%;
  background: var(--mint);
  color: var(--coal);
  cursor: pointer;
}

.start-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(75, 72, 117, 0.44), transparent 34%),
    radial-gradient(circle at 18% 80%, rgba(198, 0, 28, 0.16), transparent 34%),
    linear-gradient(135deg, #121524, #1a1d35 58%, #121524);
}

.start-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
}

.start-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  align-items: center;
  gap: 42px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  padding: 58px 0 68px;
}

.start-copy h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.92;
}

.start-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 21px;
}

.start-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.start-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.start-form {
  padding: 28px;
  border: 1px solid var(--white-line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.start-form h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.start-form .button {
  width: 100%;
  background: var(--mint);
  color: var(--coal);
}

.form-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  text-align: center;
}

.footer-logo {
  display: none;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav a {
  display: flex;
  justify-content: flex-end;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-2px);
}

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

.copyright {
  border-top: 1px solid var(--white-line);
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.copyright a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.games-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(185, 244, 222, 0.18), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(75, 72, 117, 0.44), transparent 36%),
    radial-gradient(circle at 68% 74%, rgba(198, 0, 28, 0.18), transparent 36%),
    linear-gradient(135deg, #121524, #1a1d35 52%, #121524);
}

.games-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.26;
}

.games-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 54px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0 94px;
}

.games-hero-inner > * {
  min-width: 0;
}

.games-hero h1 {
  max-width: 780px;
  line-height: 0.93;
}

.crystal-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(185, 244, 222, 0.14), rgba(75, 72, 117, 0.24), rgba(198, 0, 28, 0.10));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.crystal-card h2 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1;
}

.tag-row,
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.game-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 21, 20, 0.08);
  color: rgba(18, 21, 20, 0.76);
  font-size: 13px;
}

.games-hero .tag {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
}

.games-gallery {
  padding: 72px 0;
  overflow: hidden;
  background: var(--cream);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  overflow: hidden;
}

.game-card {
  display: grid;
  grid-template-rows: auto minmax(140px, 1fr) auto;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.game-card.is-coming-soon {
  cursor: default;
}

.game-card.is-coming-soon:hover {
  transform: none;
  box-shadow: var(--soft-shadow);
}

.game-card:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 5px;
}

.game-art {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 24% 24%, rgba(185, 244, 222, 0.9), transparent 18%),
    radial-gradient(circle at 74% 34%, rgba(75, 72, 117, 0.58), transparent 20%),
    radial-gradient(circle at 42% 76%, rgba(198, 0, 28, 0.36), transparent 22%),
    linear-gradient(135deg, rgba(18, 21, 36, 0.92), rgba(26, 29, 53, 0.86));
}

.game-card.is-coming-soon .game-art {
  filter: saturate(0.45);
}

.game-card.is-coming-soon .game-art::after {
  content: "Coming soon";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(18, 21, 36, 0.84);
  color: #fff;
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-copy {
  align-self: start;
}

.game-card-head {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-bottom: 12px;
}

.game-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.02;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.game-tags {
  align-self: end;
}

.audience-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.audience-tag.is-student {
  background: var(--coral);
}

.audience-tag.is-teacher {
  background: #2557c7;
}

.horse-section {
  padding: 96px 0;
  background: var(--coal);
  color: #fff;
}

.numbers-game-page {
  min-height: calc(100vh - 82px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 18%),
    radial-gradient(circle at 20% 28%, rgba(75, 72, 117, 0.55), transparent 30%),
    radial-gradient(circle at 78% 35%, rgba(198, 0, 28, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%) 0 0 / 34px 34px,
    #272a33;
  color: #fff;
}

.numbers-title-band {
  display: grid;
  place-items: center;
  padding: 22px 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, 0.24), transparent 20%),
    radial-gradient(circle at 62% 16%, rgba(185, 244, 222, 0.28), transparent 16%),
    radial-gradient(circle at 74% 42%, rgba(198, 0, 28, 0.38), transparent 24%),
    linear-gradient(135deg, rgba(226, 231, 245, 0.92), rgba(91, 92, 129, 0.78) 56%, rgba(43, 39, 78, 0.98));
  text-align: center;
}

.numbers-title-band .eyebrow {
  margin-bottom: 10px;
}

.numbers-title-band h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: 0.92;
  text-shadow: 0 5px 0 rgba(18, 21, 36, 0.72), 0 0 24px rgba(255, 255, 255, 0.42);
}

.numbers-stage {
  display: grid;
  justify-items: center;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.rounding-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.rounding-row span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.rounding-row label,
.card-combo label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-family: "Poppins Semi", "Questrial", sans-serif;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.rounding-row input,
.card-combo input {
  width: auto;
  height: auto;
  margin: 0;
  accent-color: var(--mint);
}

.rounding-row label:has(input:checked),
.card-combo label:has(input:checked) {
  border-color: rgba(185, 244, 222, 0.6);
  background: rgba(185, 244, 222, 0.16);
  color: var(--mint);
}

.numbers-board {
  display: grid;
  justify-items: center;
  gap: 24px;
  width: min(100%, 900px);
  padding: 32px 38px 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at 16% 24%, rgba(198, 0, 28, 0.18), transparent 30%),
    radial-gradient(circle at 82% 26%, rgba(75, 72, 117, 0.34), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%) 0 0 / 28px 28px,
    rgba(18, 21, 36, 0.88);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.card-combo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 0;
  padding: 16px 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.card-combo legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.goal-block {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.target-orb {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 216px;
  min-height: 92px;
  border: 3px solid rgba(18, 21, 36, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(180deg, #f20d2d, #b7001a);
  color: #fff;
  box-shadow: 0 14px 0 rgba(18, 21, 36, 0.58), 0 22px 54px rgba(198, 0, 28, 0.32), inset 0 -10px 0 rgba(18, 21, 36, 0.18);
}

.target-orb span {
  display: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.target-orb strong {
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 58px;
  line-height: 0.9;
}

.number-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.number-card {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  min-height: 0;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.28), transparent 18%),
    linear-gradient(180deg, #3f4148, #16171d);
  color: #fff;
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 34px;
  cursor: pointer;
  text-shadow: 0 3px 0 rgba(18, 21, 36, 0.78);
  box-shadow: inset 0 -9px 0 rgba(0, 0, 0, 0.36), 0 10px 0 rgba(0, 0, 0, 0.42), 0 20px 36px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.number-card:hover {
  transform: translateY(-4px);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.32), transparent 18%),
    linear-gradient(180deg, #52545e, #1b1d25);
}

.number-card:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

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

.arith-feedback {
  min-height: 30px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.arith-feedback.is-good {
  color: var(--mint);
}

.arith-feedback.is-warn {
  color: var(--coral);
}

.horse-game {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 28px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.horse-controls,
.track-panel {
  border: 1px solid var(--white-line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.horse-controls {
  padding: 28px;
}

.horse-controls h2 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 0.98;
}

.horse-controls p {
  color: rgba(255, 255, 255, 0.68);
}

.dice-row {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.die {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--coal);
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 34px;
  box-shadow: inset 0 -6px 0 rgba(18, 21, 20, 0.1), 0 14px 34px rgba(0, 0, 0, 0.24);
}

.result-line,
.winner-line {
  min-height: 28px;
  color: var(--mint);
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.track-panel {
  padding: 22px;
  overflow: hidden;
}

.race-track {
  display: grid;
  gap: 8px;
}

.track-row {
  display: grid;
  grid-template-columns: 36px 1fr 40px;
  align-items: center;
  gap: 10px;
}

.track-number {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.track {
  position: relative;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--white-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.odds-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.arcade-screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--white-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(185, 244, 222, 0.25), transparent 32%),
    linear-gradient(135deg, rgba(18, 21, 36, 0.92), rgba(75, 72, 117, 0.34));
  box-shadow: inset 0 0 42px rgba(75, 72, 117, 0.18);
}

.arcade-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-page {
  background: var(--cream);
}

.game-hero.compact {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 26%, rgba(75, 72, 117, 0.42), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(185, 244, 222, 0.16), transparent 30%),
    radial-gradient(circle at 82% 80%, rgba(198, 0, 28, 0.14), transparent 32%),
    linear-gradient(135deg, #121524, #1a1d35 58%, #121524);
}

.game-hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
}

.game-hero .page-title {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 0.96;
}

.standalone {
  padding-top: 64px;
}

.flash-game-section {
  padding: 86px 0 104px;
}

.flash-game-shell {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 28px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.arcade-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 253, 248, 0.78)),
    var(--paper);
  box-shadow: var(--soft-shadow);
}

.arcade-panel h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 0.98;
}

.arcade-panel p {
  color: var(--muted);
}

.arcade-panel label,
.arith-panel label,
.arith-board label {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  color: rgba(18, 21, 20, 0.72);
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 13px;
}

.arcade-panel input[type="range"] {
  width: 100%;
  accent-color: var(--plum);
}

.arcade-panel .button.secondary,
.arith-board .button.secondary {
  border-color: rgba(18, 21, 20, 0.16);
  background: rgba(18, 21, 20, 0.06);
  color: var(--coal);
}

.score-readout,
.lock-meter {
  margin: 22px 0;
  padding: 16px;
  border-radius: 18px;
  background: var(--coal);
  color: var(--mint);
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.tile-arena,
.challenge-board,
.graph-board,
.angle-board,
.data-board {
  min-height: 470px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(185, 244, 222, 0.10), rgba(75, 72, 117, 0.16)),
    var(--paper);
  box-shadow: var(--shadow);
}

.fraction-arena {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-content: start;
}

.fraction-tile,
.choice-tile {
  display: grid;
  place-items: center;
  min-height: 94px;
  border: 3px solid transparent;
  border-radius: 22px;
  background: var(--coal);
  color: #fff;
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 28px;
  cursor: pointer;
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.08);
}

.fraction-tile.is-selected {
  border-color: var(--gold);
}

.fraction-tile.is-matched {
  background: linear-gradient(135deg, var(--mint), var(--aqua));
  color: var(--coal);
  pointer-events: none;
}

.equation-display {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: var(--coal);
  color: var(--mint);
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  text-align: center;
}

.challenge-board input,
.arcade-panel input {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.graph-board svg,
.angle-board svg {
  width: 100%;
  height: 100%;
  min-height: 410px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(18, 21, 20, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 20, 0.09) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}

.graph-board line.axis,
.angle-board line {
  stroke: rgba(18, 21, 20, 0.5);
  stroke-width: 2;
}

.graph-board .target-point {
  fill: var(--coral);
  stroke: var(--coal);
  stroke-width: 3;
}

.graph-board .glider-line {
  stroke: var(--plum);
  stroke-width: 5;
  stroke-linecap: round;
}

.angle-board .beam {
  stroke: var(--plum);
  stroke-width: 10;
  stroke-linecap: round;
}

.angle-board .angle-arc {
  fill: none;
  stroke: var(--coral);
  stroke-width: 5;
}

.evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.evidence-row span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--coal);
  color: #fff;
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 22px;
}

.bar-case {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 12px;
  min-height: 280px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(9, 15, 15, 0.06);
}

.bar-case i {
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--aqua), var(--plum));
}

.game-art {
  position: relative;
  overflow: hidden;
}

.image-preview {
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #f2f2f2;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.game-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--coal);
  font-family: "Poppins Semi", "Questrial", sans-serif;
  z-index: 1;
}

.preview-track {
  display: grid;
  gap: 12px;
  padding: 82px 18px 0;
}

.preview-track i {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.preview-track i::before {
  content: "";
  display: block;
  width: 46px;
  height: 16px;
  border-radius: inherit;
  background: var(--mint);
}

.arith-preview,
.fraction-preview,
.algebra-preview,
.graph-preview,
.angle-preview,
.data-preview {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.arith-preview b { font-size: 48px; }
.arith-preview em { font-style: normal; opacity: 0.75; }
.fraction-preview { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 80px 16px 16px; }
.fraction-preview b { padding: 14px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); }
.algebra-preview b { font-size: 28px; }
.algebra-preview em { color: var(--mint); font-style: normal; }
.graph-preview svg { width: 70%; height: 70%; }
.graph-preview polyline { fill: none; stroke: var(--mint); stroke-width: 6; stroke-linecap: round; }
.graph-preview circle { fill: var(--coral); }
.angle-shape { width: 120px; height: 80px; border-left: 8px solid var(--mint); border-bottom: 8px solid var(--mint); transform: skewX(-24deg); }
.angle-preview b { position: absolute; right: 52px; bottom: 34px; font-size: 42px; color: var(--gold); }
.data-preview { grid-template-columns: repeat(4, 1fr); align-items: end; gap: 10px; padding: 82px 18px 18px; }
.data-preview i { width: 100%; border-radius: 999px 999px 8px 8px; background: linear-gradient(180deg, var(--mint), var(--coral)); }

.angle-architect-page {
  min-height: calc(100vh - 82px);
  background:
    radial-gradient(circle at 18% 8%, rgba(185, 244, 222, 0.16), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(198, 0, 28, 0.18), transparent 26%),
    linear-gradient(180deg, #121524 0%, #171a31 44%, #10121f 100%);
  color: #fff;
}

.angle-architect-hero {
  position: relative;
  overflow: hidden;
}

.angle-architect-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 244, 222, 0.56), transparent);
}

.angle-architect-hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.angle-architect-hero .page-title {
  max-width: 820px;
  margin: 10px 0 16px;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.94;
}

.angle-architect-hero .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.angle-game-shell {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.angle-game-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}

.angle-game-topline h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.95;
}

.angle-game-topline p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.4;
}

.angle-hud {
  display: grid;
  grid-template-columns: minmax(100px, 0.65fr) minmax(88px, 0.5fr) minmax(210px, 1.1fr) minmax(260px, 1.55fr) minmax(130px, 0.75fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.angle-stat,
.angle-stability,
.angle-prompt,
.angle-chain {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.angle-stat span,
.angle-stability span,
.angle-prompt span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.angle-stat strong,
.angle-stability strong,
.angle-prompt strong {
  color: var(--mint);
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.angle-prompt strong {
  display: block;
  color: #fff;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.08;
}

.angle-stability {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: end;
}

.angle-stability span,
.stability-track {
  grid-column: 1 / -1;
}

.stability-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.stability-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), #ffffff);
  transition: width 180ms ease, background 180ms ease;
}

.stability-track i[data-state="warn"] {
  background: linear-gradient(90deg, #f7c948, #ffffff);
}

.stability-track i[data-state="danger"] {
  background: linear-gradient(90deg, var(--coral), #ff9ca9);
}

.angle-chain span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.angle-chain strong {
  color: var(--mint);
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.angle-playfield {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
  align-items: stretch;
}

.angle-canvas-wrap {
  position: relative;
  min-height: 560px;
  height: clamp(560px, calc(100vh - 332px), 720px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.angle-canvas-wrap.is-error {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.angle-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.angle-input-bubble {
  position: absolute;
  z-index: 4;
  width: min(240px, calc(100% - 20px));
  padding: 12px;
  border: 1px solid rgba(185, 244, 222, 0.48);
  border-radius: 8px;
  background: rgba(18, 21, 36, 0.94);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35), 0 0 28px rgba(185, 244, 222, 0.18);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.angle-input-bubble.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.angle-input-bubble label {
  display: block;
  margin-bottom: 8px;
  color: var(--mint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.angle-input-bubble div {
  display: flex;
  gap: 8px;
}

.angle-input-bubble input {
  width: 84px;
  min-width: 0;
  border-color: rgba(255, 255, 255, 0.2);
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.angle-input-bubble .button {
  min-height: 44px;
  padding: 10px 14px;
}

.angle-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(10, 12, 24, 0.76);
  backdrop-filter: blur(8px);
}

.angle-overlay.is-visible {
  display: grid;
}

.angle-overlay > div {
  width: min(480px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.angle-overlay h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 0.98;
}

.angle-overlay p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.angle-side-panel {
  display: grid;
  grid-template-rows: auto;
  gap: 16px;
}

.foreman-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.foreman-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.foreman-portrait {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: rgba(18, 21, 36, 0.74);
  image-rendering: pixelated;
}

.foreman-portrait[data-aa-foreman="neutral"] {
  background-image: url("games/angle-architect/sprites/foreman/neutral.png");
}

.foreman-portrait[data-aa-foreman="happy"] {
  background-image: url("games/angle-architect/sprites/foreman/happy.png");
}

.foreman-portrait[data-aa-foreman="warning"] {
  background-image: url("games/angle-architect/sprites/foreman/warning.png");
}

.foreman-card strong {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.railway-page {
  min-height: calc(100vh - 82px);
  background:
    linear-gradient(180deg, #111524 0%, #171a31 48%, #10121f 100%);
  color: #fff;
}

.railway-shell {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 38px;
}

.railway-shell,
.railway-shell * {
  box-sizing: border-box;
}

.railway-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.railway-topbar h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.96;
}

.railway-level-select {
  display: grid;
  gap: 8px;
  min-width: min(280px, 100%);
}

.railway-level-select label,
.railway-equation-box label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.railway-level-select select,
.railway-equation-box input {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.railway-layout {
  display: grid;
  grid-template-columns: 300px minmax(520px, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}

.railway-panel,
.railway-board-wrap {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 70px rgba(0, 0, 0, 0.25);
}

.railway-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  padding: 18px;
}

.railway-panel h2 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.railway-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.railway-kicker {
  color: var(--mint) !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.railway-tool-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.railway-tool-tabs button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.railway-tool-tabs button.is-active {
  background: var(--mint);
  color: var(--coal);
}

.railway-tool-tabs button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.railway-equation-box {
  display: grid;
  gap: 8px;
}

.railway-equation-box div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.railway-readout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(5, 8, 21, 0.55);
}

.railway-readout span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.railway-readout strong {
  color: var(--mint);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.railway-actions {
  display: grid;
  gap: 10px;
}

.railway-actions .button {
  width: 100%;
}

.railway-board-wrap {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  min-height: 650px;
  padding: 18px;
  overflow: hidden;
}

.railway-board {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border-radius: 8px;
  background: #f7fbff;
  touch-action: none;
}

.railway-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.railway-feedback[data-state="good"] {
  background: rgba(185, 244, 222, 0.16);
  color: var(--mint);
}

.railway-feedback[data-state="bad"] {
  background: rgba(198, 0, 28, 0.15);
  color: #ffb2bd;
}

.railway-objective-card {
  padding: 14px;
  border-radius: 8px;
  background: rgba(5, 8, 21, 0.35);
}

.railway-grid line {
  stroke: rgba(18, 21, 36, 0.1);
  stroke-width: 1;
}

.railway-grid line.axis {
  stroke: rgba(18, 21, 36, 0.44);
  stroke-width: 2;
}

.railway-axis-label {
  fill: rgba(18, 21, 36, 0.46);
  font-size: 11px;
  font-weight: 700;
}

.railway-station-platform {
  fill: #2d334f;
  stroke: #111524;
  stroke-width: 2;
}

.railway-station-dot {
  fill: var(--coral);
  stroke: #fff;
  stroke-width: 3;
}

.railway-station-label,
.railway-obstacle-label {
  fill: #111524;
  font-size: 13px;
  font-weight: 800;
}

.railway-obstacle {
  fill: rgba(198, 0, 28, 0.18);
  stroke: rgba(198, 0, 28, 0.62);
  stroke-width: 3;
  stroke-dasharray: 8 7;
}

.railway-existing-track {
  opacity: 0.58;
}

.railway-sleeper-line {
  stroke: transparent;
}

.railway-sleeper {
  stroke: #70492a;
  stroke-width: 5;
  stroke-linecap: round;
}

.railway-rail,
.railway-track-core {
  stroke: #3a405d;
  stroke-width: 6;
  stroke-linecap: round;
}

.railway-current-track .railway-rail,
.railway-track-core {
  stroke: #4b4875;
}

.railway-existing-track .railway-rail {
  stroke: #7d849f;
}

.railway-handle {
  fill: var(--coral);
  stroke: #fff;
  stroke-width: 4;
  cursor: grab;
}

.railway-handle:active,
.railway-marker:active {
  cursor: grabbing;
}

.railway-marker circle {
  fill: var(--mint);
  stroke: #111524;
  stroke-width: 4;
  cursor: grab;
}

.railway-marker path {
  stroke: #111524;
  stroke-width: 3;
  stroke-linecap: round;
  pointer-events: none;
}

.railway-train rect {
  fill: var(--coral);
  stroke: #111524;
  stroke-width: 3;
}

.railway-train circle {
  fill: #111524;
}


.horse {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 52px;
  height: 28px;
  background: transparent;
  transition: left 380ms cubic-bezier(.2,.9,.2,1);
}

.horse-body {
  position: absolute;
  left: 7px;
  top: 8px;
  width: 35px;
  height: 15px;
  border-radius: 14px 16px 12px 12px;
  background: linear-gradient(135deg, var(--mint), var(--aqua));
  box-shadow: inset 0 -4px 0 rgba(9, 15, 15, 0.16);
}

.horse-body::before {
  content: "";
  position: absolute;
  right: -8px;
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 9px 9px 9px 2px;
  background: var(--aqua);
}

.horse-body::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 10px;
  height: 7px;
  border-radius: 999px 0 0 999px;
  background: var(--coral);
}

.horse::before,
.horse::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: var(--mint);
}

.horse::before { left: 16px; }
.horse::after { left: 34px; }

.horse-rider {
  position: absolute;
  left: 20px;
  top: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--coal);
  font-size: 11px;
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.track {
  height: 40px;
}

.chance-cup-page {
  min-height: calc(100vh - 82px);
  padding: 34px 0 58px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgba(198, 0, 28, 0.22), transparent 28%),
    radial-gradient(circle at 18% 16%, rgba(185, 244, 222, 0.16), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #121524, #22243c 58%, #121524);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

.chance-cup-shell {
  display: grid;
  gap: 18px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.chance-cup-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.chance-cup-top h1 {
  margin: 0;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 0.92;
}

.chance-cup-top p:last-child {
  max-width: 650px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
}

.chance-controls {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.chance-cup-page .dice-row {
  gap: 16px;
  margin: 0;
  perspective: 900px;
}

.chance-cup-page .die {
  position: relative;
  width: 68px;
  height: 68px;
  background: transparent;
  transform-style: preserve-3d;
  filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.34));
}

.die-cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 360ms cubic-bezier(.2,.9,.2,1);
}

.die-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px solid rgba(18, 21, 36, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.96), transparent 18%),
    linear-gradient(145deg, #ffffff 0%, #eef0f6 48%, #bdc2d0 100%);
  color: var(--coal);
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 34px;
  box-shadow: inset -7px -9px 0 rgba(18, 21, 36, 0.12), inset 2px 2px 0 rgba(255, 255, 255, 0.82);
  backface-visibility: hidden;
}

.die-front { transform: translateZ(34px); }
.die-back { transform: rotateY(180deg) translateZ(34px); }
.die-right { transform: rotateY(90deg) translateZ(34px); }
.die-left { transform: rotateY(-90deg) translateZ(34px); }
.die-top { transform: rotateX(90deg) translateZ(34px); }
.die-bottom { transform: rotateX(-90deg) translateZ(34px); }

.die-top,
.die-right,
.die-left,
.die-bottom,
.die-back {
  visibility: hidden;
}

.die[data-value] .die-cube {
  transform: rotateX(0deg) rotateY(0deg);
}

.chance-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.chance-actions .button {
  min-height: 48px;
  padding: 12px 20px;
}

.chance-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  min-height: 34px;
  color: var(--mint);
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.chance-cup-page .result-line,
.chance-cup-page .winner-line {
  min-height: 0;
  margin: 0;
}

.chance-cup-page .track-panel {
  padding: 16px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
}

.chance-cup-page .race-track {
  gap: 6px;
}

.chance-cup-page .track-row {
  grid-template-columns: 34px 1fr 54px;
  gap: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.chance-cup-page .track-row.is-flashing {
  animation: lane-flash 720ms ease;
}

@keyframes lane-flash {
  0%, 100% { background: transparent; box-shadow: none; }
  35%, 70% { background: rgba(185, 244, 222, 0.22); box-shadow: 0 0 34px rgba(185, 244, 222, 0.24); }
}

.chance-cup-page .track {
  height: 34px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.075);
}

.track-score {
  color: rgba(255, 255, 255, 0.68);
  font-family: "Poppins Semi", "Questrial", sans-serif;
  font-size: 14px;
  text-align: right;
}

.chance-cup-page .horse {
  top: 2px;
  left: 5px;
  width: 84px;
  height: 30px;
}

.chance-cup-page .horse img {
  position: absolute;
  left: -10px;
  top: -22px;
  width: 102px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

.chance-cup-page .horse-body {
  display: none;
  left: 9px;
  top: 9px;
  width: 42px;
  height: 15px;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(135deg, var(--mint), #ffffff 58%, var(--plum));
}

.chance-cup-page .horse-body::before {
  right: -10px;
  top: -6px;
  width: 16px;
  height: 15px;
}

.chance-cup-page .horse-rider {
  left: 23px;
  top: -3px;
  background: #fff;
  z-index: 1;
}

.chance-cup-page .horse::before,
.chance-cup-page .horse::after {
  display: none;
  height: 12px;
}

.chance-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 21, 36, 0.72);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity 220ms ease;
}

.chance-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.chance-modal[hidden] {
  display: none;
}

.chance-modal-card {
  position: relative;
  width: min(820px, 100%);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 18%, rgba(185, 244, 222, 0.18), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(198, 0, 28, 0.18), transparent 30%),
    linear-gradient(135deg, #121524, #1a1d35);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.44);
  transform: translateY(18px) scale(0.98);
  transition: transform 240ms ease;
}

.chance-modal.is-open .chance-modal-card {
  transform: translateY(0) scale(1);
}

.race-winner-stage,
.race-chart-stage {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 42px;
  transition: opacity 520ms ease, transform 520ms ease;
}

.race-winner-stage {
  justify-items: center;
  text-align: center;
}

.race-winner-stage h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.9;
}

.race-winner-stage p:last-child {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
}

.race-chart-stage {
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
}

.chance-modal.show-chart .race-winner-stage {
  opacity: 0;
  transform: translateY(-22px);
  pointer-events: none;
}

.chance-modal.show-chart .race-chart-stage {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chart-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.chart-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
}

.chart-heading span {
  color: var(--mint);
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.race-bars {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.race-bar-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.race-bar-track {
  display: grid;
  align-items: end;
  width: 100%;
  height: 170px;
  overflow: hidden;
  border-radius: 999px 999px 10px 10px;
  background: rgba(255, 255, 255, 0.09);
}

.race-bar-track span {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--mint), var(--plum));
  box-shadow: 0 0 22px rgba(185, 244, 222, 0.26);
}

.race-bar-item strong,
.race-bar-item em,
.race-bar-item small {
  font-family: "Poppins Semi", "Questrial", sans-serif;
}

.race-bar-item strong {
  color: #fff;
}

.race-bar-item em {
  color: var(--mint);
  font-size: 13px;
  font-style: normal;
}

.race-bar-item small {
  color: rgba(255, 255, 255, 0.58);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

@media (max-width: 980px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    position: relative;
  }

  .nav-shell {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-cta {
    width: max-content;
    max-width: 100%;
  }

  .hero-inner,
  .games-hero-inner,
  .split-inner,
  .mastery-inner,
  .teacher-grid,
  .pricing-grid,
  .pricing-hero-inner,
  .trial-strip-inner,
  .bundle-row,
  .lessonspace-showcase,
  .login-card,
  .start-inner,
  .contact-inner,
  .flash-game-shell,
  .arith-game,
  .horse-game {
    grid-template-columns: 1fr;
  }

  .numbers-board {
    padding: 34px 28px;
  }

  .hero-inner {
    min-height: auto;
  }

  .features,
  .steps,
  .domains,
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .games-hero-inner {
    align-items: start;
  }

  .crystal-card {
    width: 100%;
    max-width: 520px;
  }

  .trial-strip-inner,
  .bundle-row {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    grid-template-columns: 1fr;
  }

  .domain-card {
    align-content: start;
  }

  .pricing-hero-inner {
    min-height: auto;
    padding: 58px 0 70px;
  }

  .price-hero-card {
    max-width: 560px;
  }

  .login-card {
    max-width: 760px;
  }

  .chance-cup-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .chance-controls {
    justify-items: start;
  }

  .start-inner {
    min-height: auto;
    padding: 66px 0 82px;
  }

  .lessonspace-showcase {
    padding-top: 70px;
  }
}

@media (max-width: 640px) {
  .hero h1,
  .page-title {
    font-size: 48px;
  }

  .games-hero-inner,
  .game-hero-inner,
  .flash-game-shell,
  .game-grid,
  .horse-game,
  .arith-game {
    width: min(calc(100% - 32px), var(--max));
  }

  .numbers-title-band h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .numbers-stage {
    width: min(calc(100vw - 32px), var(--max));
    padding: 24px 0 64px;
  }

  .rounding-row {
    justify-content: flex-start;
    width: 100%;
  }

  .numbers-board {
    gap: 24px;
    padding: 26px 18px;
    border-width: 3px;
    border-radius: 24px;
  }

  .card-combo {
    justify-content: flex-start;
    border-radius: 22px;
  }

  .number-cards {
    gap: 14px;
  }

  .number-card {
    width: 72px;
    height: 72px;
    font-size: 34px;
  }

  .games-hero-inner {
    width: min(calc(100vw - 40px), 350px);
    gap: 34px;
    margin-left: 20px;
    margin-right: auto;
    padding: 72px 0 58px;
  }

  .games-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 0.95;
    max-width: 100%;
  }

  .games-hero .section-kicker,
  .game-hero .section-kicker {
    max-width: 100%;
    white-space: normal;
  }

  .games-hero .lead {
    max-width: 100%;
    font-size: 18px;
  }

  .tag-row,
  .game-tags {
    max-width: 100%;
    min-width: 0;
  }

  .crystal-card {
    padding: 28px;
    border-radius: 28px;
  }

  .hero-proof,
  .hero-actions,
  .features,
  .steps,
  .domains,
  .form-row,
  .pricing-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .trial-strip-inner {
    width: min(calc(100% - 32px), var(--max));
    gap: 12px;
    padding: 18px 0 22px;
  }

  .pricing-hero-inner {
    width: min(calc(100vw - 40px), 350px);
    gap: 30px;
    padding: 48px 0 56px;
  }

  .lessonspace-showcase {
    width: min(calc(100vw - 40px), 350px);
    gap: 24px;
    padding: 58px 0 18px;
  }

  .login-section {
    padding: 54px 0 70px;
  }

  .login-card {
    gap: 28px;
  }

  .start-inner {
    width: min(calc(100vw - 40px), 350px);
    gap: 34px;
    padding: 54px 0 64px;
  }

  .start-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .start-copy p {
    font-size: 18px;
  }

  .start-form {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .chance-cup-page {
    padding: 26px 0 46px;
  }

  .chance-cup-shell {
    width: min(calc(100vw - 32px), 560px);
  }

  .chance-cup-top h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .chance-cup-top p:last-child {
    font-size: 18px;
  }

  .chance-actions,
  .chance-actions .button {
    width: 100%;
  }

  .chance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .chance-cup-page .track-panel {
    padding: 12px;
    border-radius: 20px;
  }

  .chance-cup-page .track-row {
    grid-template-columns: 28px 1fr 44px;
    gap: 7px;
    padding: 1px 4px;
  }

  .chance-cup-page .track {
    height: 30px;
  }

  .chance-cup-page .horse {
    transform: scale(0.88);
    transform-origin: left center;
  }

  .chance-modal {
    padding: 14px;
  }

  .chance-modal-card {
    min-height: 560px;
    border-radius: 24px;
  }

  .race-winner-stage,
  .race-chart-stage {
    padding: 26px 18px;
  }

  .chart-heading {
    display: grid;
    align-items: start;
    gap: 8px;
  }

  .race-bars {
    gap: 6px;
    min-height: 240px;
    padding: 12px;
    overflow-x: auto;
  }

  .race-bar-item {
    min-width: 38px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tutorbird-widget-card {
    border-radius: 22px;
  }

  .tutorbird-widget-frame {
    min-height: 360px;
    padding: 16px;
  }

  .lessonspace-image {
    border-radius: 20px;
  }

  .pricing-copy .page-title {
    font-size: clamp(42px, 12vw, 58px);
  }

  .price-hero-card {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .price-card-top {
    display: grid;
    justify-content: stretch;
  }

  .tier-switch {
    justify-content: space-between;
  }

  .bundle-row {
    width: min(calc(100% - 32px), var(--max));
    padding: 46px 0;
  }

  .game-grid,
  .section-title {
    display: grid;
    grid-template-columns: 1fr;
    width: min(calc(100vw - 40px), 350px);
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  .game-card {
    width: 100%;
    max-width: 350px;
    padding: 22px;
    border-radius: 22px;
  }

  .game-art {
    width: 100%;
    max-width: 306px;
    justify-self: center;
  }

  .section-title p,
  .game-card p {
    max-width: 100%;
  }

  .button,
  .nav-cta,
  .pricing-tabs a {
    width: 100%;
  }

  .intro-box,
  .mastery-copy,
  .mastery-title,
  .teacher-card,
  .domain-card,
  .price-card,
  .login-card,
  .contact-form {
    padding: 28px;
  }

  .contact-inner {
    width: min(calc(100% - 32px), var(--max));
    gap: 24px;
    padding: 54px 0 42px;
  }

  .contact-form h2 {
    font-size: 28px;
    line-height: 1.05;
  }

  .footer-nav {
    width: 100%;
    padding: 0;
  }

  .footer-nav a {
    justify-content: flex-start;
    min-height: 38px;
    padding: 8px 0;
  }

  .hero-visual {
    display: grid;
    justify-items: start;
  }

  .hero-image-panel {
    width: min(100%, 300px);
  }
}

@media (max-width: 1080px) {
  .railway-layout {
    grid-template-columns: 1fr;
  }

  .railway-panel-left,
  .railway-panel-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .railway-board-wrap {
    min-height: 560px;
  }

  .angle-game-topline {
    align-items: start;
  }

  .angle-hud,
  .angle-playfield {
    grid-template-columns: 1fr;
  }

  .angle-side-panel {
    display: none;
  }

  .angle-canvas-wrap {
    min-height: 520px;
    height: clamp(520px, calc(100vh - 300px), 650px);
  }

  .foreman-card {
    align-content: start;
  }
}

@media (max-width: 680px) {
  .railway-shell {
    width: calc(100vw - 28px);
    max-width: var(--max);
    padding-top: 22px;
  }

  .railway-topbar {
    display: grid;
    gap: 16px;
  }

  .railway-panel-left,
  .railway-panel-right {
    grid-template-columns: 1fr;
  }

  .railway-tool-tabs {
    grid-template-columns: 1fr;
  }

  .railway-equation-box div {
    grid-template-columns: 1fr;
  }

  .railway-readout {
    grid-template-columns: 1fr;
  }

  .railway-readout strong {
    text-align: left;
  }

  .railway-board-wrap {
    min-height: 440px;
    padding: 10px;
  }

  .railway-board {
    min-height: 390px;
  }

  .angle-architect-hero-inner,
  .angle-game-shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .angle-game-topline {
    display: grid;
    gap: 10px;
  }

  .angle-game-topline p:not(.eyebrow) {
    font-size: 16px;
  }

  .angle-architect-hero-inner {
    padding: 34px 0 20px;
  }

  .angle-hud {
    gap: 10px;
  }

  .angle-stat,
  .angle-stability,
  .angle-prompt,
  .angle-chain {
    padding: 12px;
  }

  .angle-canvas-wrap {
    min-height: 500px;
    height: 500px;
  }

  .angle-side-panel {
    grid-template-columns: 1fr;
  }

  .foreman-card {
    grid-template-columns: 96px 1fr;
    align-items: center;
  }

  .foreman-portrait {
    width: 96px;
  }

  .angle-input-bubble div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .angle-input-bubble input {
    width: 100%;
  }
}

@media (max-height: 950px) and (min-width: 900px) {
  .angle-game-shell {
    padding-top: 12px;
  }

  .angle-game-topline {
    margin-bottom: 8px;
  }

  .angle-game-topline h1 {
    font-size: clamp(34px, 3.2vw, 44px);
  }

  .angle-game-topline p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.3;
  }

  .angle-stat,
  .angle-stability,
  .angle-chain {
    padding: 10px 12px;
  }

  .angle-stat span,
  .angle-stability span {
    margin-bottom: 4px;
  }

  .angle-stat strong,
  .angle-stability strong {
    font-size: 30px;
  }

  .angle-canvas-wrap {
    height: 470px;
    min-height: 470px;
  }

  .foreman-card {
    padding: 12px;
  }

}
