:root {
  --bg-top: #071126;
  --bg-mid: #120a37;
  --bg-bottom: #02050f;
  --panel: rgba(10, 16, 34, 0.82);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: #cbd3ee;
  --accent: #7be7ff;
  --accent-strong: #9c6cff;
  --link-bg: rgba(255, 255, 255, 0.06);
  --link-border: rgba(255, 255, 255, 0.16);
  --link-hover: rgba(123, 231, 255, 0.16);
  --shadow: rgba(0, 0, 0, 0.38);
  --surface-deep: rgba(6, 12, 31, 0.86);
  --surface-card: rgba(11, 19, 46, 0.72);
  --surface-card-strong: rgba(13, 21, 51, 0.92);
  --stroke: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 128, 80, 0.35), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(123, 231, 255, 0.18), transparent 20%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 46%, var(--bg-bottom));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 80%);
  pointer-events: none;
}

.wordrush-home {
  background:
    radial-gradient(circle at 0% 74%, rgba(163, 42, 255, 0.24), transparent 24%),
    radial-gradient(circle at 100% 74%, rgba(0, 169, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #040717, #070b23 45%, #030512);
}

.wordrush-home::after {
  content: "";
  position: fixed;
  left: -12%;
  right: -12%;
  bottom: -16%;
  height: 38vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(71, 13, 255, 0.45), transparent 58%);
  pointer-events: none;
  filter: blur(34px);
}

.shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.hero-card,
.content-card {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 26px 60px var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card::after,
.content-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 108, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-icon {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.96;
}

.lede,
.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lede {
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid var(--link-border);
  border-radius: 18px;
  background: var(--link-bg);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-2px);
  background: var(--link-hover);
  border-color: rgba(123, 231, 255, 0.45);
}

.support-note,
.back-link {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
}

.support-note a,
.back-link,
.inline-link {
  color: var(--accent);
}

.inline-path {
  color: #ffe27e;
  font-weight: 700;
}

.page-title {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-title {
  margin: 30px 0 10px;
  font-size: 1.15rem;
  color: #ffffff;
}

ul {
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
}

.landing-shell {
  width: 100%;
  padding-bottom: 64px;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 18px clamp(20px, 4vw, 72px) 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 6, 18, 0.72);
  backdrop-filter: blur(10px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item {
  position: relative;
  padding: 10px 8px 14px;
  color: rgba(245, 247, 255, 0.96);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, #8456ff, #a15dff);
  transition: transform 180ms ease;
}

.nav-item:hover::after,
.nav-item:focus-visible::after,
.nav-item-active::after {
  transform: scaleX(1);
}

.landing-main {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 72px) 0;
}

.wordrush-page-main {
  width: min(100%, 1120px);
}

.wordrush-content-card {
  max-width: 980px;
  margin: 0 auto;
}

.challenge-card {
  max-width: 860px;
}

.hero-panel {
  position: relative;
  overflow: visible;
  padding: 14px 0 0;
}

.hero-glow {
  position: absolute;
  bottom: -110px;
  width: 44%;
  height: 270px;
  pointer-events: none;
  filter: blur(14px);
}

.hero-glow-left {
  left: -6%;
  background:
    radial-gradient(ellipse at center, rgba(166, 54, 255, 0.85), transparent 62%);
}

.hero-glow-right {
  right: -4%;
  background:
    radial-gradient(ellipse at center, rgba(0, 164, 255, 0.7), transparent 62%);
}

.floating-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 102px;
  height: 102px;
  border-radius: 28px;
  color: rgba(188, 200, 255, 0.22);
  font-size: 3.5rem;
  font-weight: 900;
  background: rgba(81, 92, 174, 0.08);
  border: 1px solid rgba(130, 145, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: rotate(-12deg);
  user-select: none;
}

.tile-left-top {
  top: 48px;
  left: 34px;
}

.tile-left-upper-mid {
  top: 190px;
  left: -6px;
}

.tile-left-lower-mid {
  top: 334px;
  left: 52px;
}

.tile-left-bottom {
  top: 478px;
  left: 116px;
}

.tile-right-top {
  top: 58px;
  right: 40px;
  transform: rotate(8deg);
}

.tile-right-upper-mid {
  top: 194px;
  right: -4px;
  transform: rotate(18deg);
}

.tile-right-lower-mid {
  top: 324px;
  right: 48px;
  transform: rotate(11deg);
}

.tile-right-bottom {
  top: 468px;
  right: 112px;
  transform: rotate(7deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 74px auto 0;
  text-align: center;
}

.hero-icon {
  width: min(360px, 56vw);
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.34));
}

.hero-kicker {
  margin: 20px 0 0;
  color: #54c8ff;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 760px;
  margin: 18px auto 0;
  color: #eef2ff;
  font-size: 1.18rem;
  line-height: 1.58;
}

.hero-copy strong {
  color: #ffe05f;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 34px;
  border-radius: 22px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #7b5dff, #5f3dff);
  box-shadow:
    0 12px 28px rgba(92, 74, 255, 0.3),
    0 0 22px rgba(107, 92, 255, 0.35);
}

.play-button:hover,
.play-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 32px rgba(92, 74, 255, 0.34),
    0 0 26px rgba(107, 92, 255, 0.42);
}

.play-button-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.play-button-icon svg {
  width: 100%;
  height: 100%;
}

.challenge-copy {
  margin: 0;
  color: #d8e1fb;
  font-size: 1.08rem;
  line-height: 1.7;
}

.challenge-code-panel {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid rgba(123, 231, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 17, 42, 0.88), rgba(8, 13, 33, 0.98));
}

.challenge-code-label {
  display: block;
  margin-bottom: 14px;
  color: #7be7ff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.challenge-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.challenge-code-value {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.challenge-copy-button {
  min-width: 150px;
  min-height: 52px;
}

.challenge-copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.challenge-actions {
  margin-top: 26px;
}

.challenge-play-button {
  min-width: min(100%, 300px);
}

.challenge-steps {
  margin: 10px 0 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.challenge-steps li + li {
  margin-top: 8px;
}

.challenge-note {
  text-align: left;
}

.feature-ribbon {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(12, 18, 48, 0.64), rgba(10, 17, 44, 0.92));
  border-radius: 28px;
  overflow: hidden;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px 28px 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item:last-child {
  border-right: 0;
}

.feature-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-badge svg {
  width: 28px;
  height: 28px;
}

.feature-badge-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.feature-badge-image-chest {
  width: 39px;
  height: 39px;
}

.badge-violet {
  color: #a868ff;
  box-shadow: 0 0 18px rgba(158, 74, 255, 0.2);
}

.badge-gold {
  color: #ffc947;
  box-shadow: 0 0 18px rgba(255, 201, 71, 0.2);
}

.badge-cyan {
  color: #50c9ff;
  box-shadow: 0 0 18px rgba(80, 201, 255, 0.2);
}

.badge-green {
  color: #48e2ad;
  box-shadow: 0 0 18px rgba(72, 226, 173, 0.2);
}

.feature-item h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-item p {
  margin: 0;
  color: #d0d8f7;
  font-size: 1.02rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .shell {
    padding: 28px 16px 40px;
  }

  .hero-card,
  .content-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

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

@media (max-width: 1220px) {
  .feature-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .landing-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-nav {
    justify-content: flex-start;
  }

  .hero-panel {
    padding: 28px 0 0;
  }

  .floating-tile {
    display: none;
  }

  .hero-kicker {
    font-size: 1.1rem;
    letter-spacing: 0.14em;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .feature-item h2 {
    font-size: 1.2rem;
  }

  .feature-ribbon {
    margin-top: 56px;
  }

  .wordrush-page-main {
    padding-top: 28px;
  }
}

@media (max-width: 700px) {
  .brand-link {
    gap: 12px;
  }

  .brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .landing-nav {
    gap: 10px 14px;
  }

  .nav-item {
    padding: 8px 4px 12px;
    font-size: 0.96rem;
  }

  .feature-ribbon {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .feature-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

  .play-button {
    width: 100%;
  }

  .challenge-code-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .challenge-copy-button,
  .challenge-play-button {
    width: 100%;
  }
}
