:root {
      --ink: #17223b;
      --muted: #64708b;
      --sky: #9be7ff;
      --aqua: #48d6c3;
      --sun: #ffe46b;
      --coral: #ff7a8a;
      --lilac: #a78bfa;
      --grass: #7ee787;
      --cream: #fff9e8;
      --card: rgba(255, 255, 255, 0.78);
      --stroke: rgba(23, 34, 59, 0.12);
      --shadow: 0 24px 70px rgba(49, 79, 130, 0.18);
      --radius: 32px;
    }

    * { box-sizing: border-box; }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--ink);
      font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
      background:
        radial-gradient(circle at 12% 16%, rgba(255, 228, 107, 0.65) 0 9rem, transparent 9.2rem),
        radial-gradient(circle at 82% 8%, rgba(167, 139, 250, 0.42) 0 12rem, transparent 12.2rem),
        radial-gradient(circle at 86% 72%, rgba(72, 214, 195, 0.42) 0 13rem, transparent 13.2rem),
        linear-gradient(160deg, #dff8ff 0%, #f8fbff 48%, #fff5df 100%);
      overflow-x: hidden;
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      inset: auto;
      width: 46vmax;
      height: 46vmax;
      border-radius: 44% 56% 61% 39% / 45% 42% 58% 55%;
      opacity: 0.14;
      pointer-events: none;
      z-index: -1;
    }

    body::before {
      left: -18vmax;
      bottom: -15vmax;
      background: #ff7a8a;
    }

    body::after {
      right: -20vmax;
      top: 20vmax;
      background: #48d6c3;
      transform: rotate(18deg);
    }

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

    .page {
      width: min(1160px, calc(100% - 32px));
      margin: 0 auto;
      padding: 22px 0 42px;
    }

    .nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      margin-bottom: 30px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-weight: 900;
      letter-spacing: -0.03em;
    }

    .brand-mark {
      display: grid;
      place-items: center;
      width: 48px;
      height: 48px;
      border: 3px solid rgba(23, 34, 59, 0.1);
      border-radius: 18px;
      background: linear-gradient(145deg, #fff, #ffe46b 55%, #ffbd5c);
      box-shadow: 0 12px 30px rgba(255, 181, 61, 0.32);
      transform: rotate(-6deg);
    }

    .brand-mark span { transform: rotate(6deg); }

    .nav-links {
      display: flex;
      gap: 10px;
      align-items: center;
      color: #42506f;
      font-size: 0.95rem;
      font-weight: 800;
    }

    .nav-links a,
    .pill {
      border: 1px solid var(--stroke);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.55);
      padding: 10px 14px;
      backdrop-filter: blur(14px);
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: max-content;
      max-width: 100%;
      color: #394462;
      font-size: 0.78rem;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .hero {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
      gap: clamp(28px, 5vw, 68px);
      align-items: center;
      min-height: 620px;
      padding: clamp(28px, 6vw, 72px);
      border: 1px solid rgba(255,255,255,0.65);
      border-radius: 48px;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.43)),
        radial-gradient(circle at 88% 18%, rgba(255, 122, 138, 0.20), transparent 28%),
        radial-gradient(circle at 68% 78%, rgba(126, 231, 135, 0.22), transparent 32%);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 18px;
      border: 2px dashed rgba(23, 34, 59, 0.08);
      border-radius: 36px;
      pointer-events: none;
    }

    .hero-copy,
    .hero-world { position: relative; z-index: 1; }

    .hero-copy {
      min-width: 0;
      max-width: 100%;
    }

    h1 {
      max-width: 100%;
      margin: 18px 0 18px;
      font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
      font-size: clamp(2.8rem, 7vw, 6rem);
      line-height: 1.12;
      letter-spacing: -0.02em;
      color: var(--ink);
      overflow: visible;
    }

    .hero-title-line {
      display: block;
      width: fit-content;
      max-width: 100%;
      padding-right: 0.12em;
    }

    .hero-title-joy {
      color: #1683f7;
    }

    .hero-title-helpers {
      color: #073b7a;
    }

    .subtitle {
      max-width: 100%;
      color: #42506f;
      font-size: clamp(1rem, 2vw, 1.28rem);
      line-height: 1.58;
      font-weight: 700;
      overflow-wrap: break-word;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 14px;
      margin: 30px 0 22px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 56px;
      padding: 0 24px;
      border: 0;
      border-radius: 999px;
      background: linear-gradient(135deg, #17223b, #30446d);
      color: #fff;
      font-weight: 900;
      box-shadow: 0 16px 34px rgba(23, 34, 59, 0.24);
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .button:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(23,34,59,0.28); }

    .button.secondary {
      background: rgba(255, 255, 255, 0.78);
      color: var(--ink);
      box-shadow: inset 0 0 0 1px var(--stroke);
    }

    .trust-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 24px;
    }

    .trust-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      border: 1px solid var(--stroke);
      border-radius: 999px;
      background: rgba(255,255,255,0.62);
      color: #4c5874;
      font-size: 0.9rem;
      font-weight: 800;
    }

    .hero-world {
      position: relative;
      min-height: 0;
      aspect-ratio: 1 / 1;
      border-radius: 42px;
      overflow: hidden;
      background:
        radial-gradient(circle at 18% 16%, rgba(255, 209, 102, 0.55), transparent 9rem),
        radial-gradient(circle at 86% 12%, rgba(255, 122, 200, 0.35), transparent 10rem),
        linear-gradient(180deg, #aeeeff 0%, #eefbff 54%, #fff0bf 100%);
      box-shadow: inset 0 0 0 1px rgba(23, 34, 59, 0.06), 0 24px 60px rgba(65, 117, 169, 0.18);
    }

    .hero-world img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    .skyline {
      position: absolute;
      inset: auto -8% -6%;
      height: 38%;
      background: #8fd368;
      border-radius: 50% 50% 0 0;
      box-shadow: inset 0 28px 0 rgba(255, 255, 255, 0.18);
    }

    .hero-world .cloud,
    .mini-scene .cloud {
      position: absolute;
      width: min(18rem, 42vw);
      height: 5rem;
      background: rgba(255, 255, 255, 0.72);
      border-radius: 999px;
      animation: drift 18s linear infinite;
      will-change: transform;
    }

    .hero-world .cloud::before,
    .hero-world .cloud::after,
    .mini-scene .cloud::before,
    .mini-scene .cloud::after {
      content: "";
      position: absolute;
      background: inherit;
      border-radius: 50%;
    }

    .hero-world .cloud::before,
    .mini-scene .cloud::before {
      width: 8rem;
      height: 8rem;
      left: 2.5rem;
      bottom: 1.4rem;
    }

    .hero-world .cloud::after,
    .mini-scene .cloud::after {
      width: 6.5rem;
      height: 6.5rem;
      right: 3rem;
      bottom: 1.8rem;
    }

    .hero-world .cloud.one,
    .mini-scene .cloud.one {
      top: 14%;
      left: 6%;
    }

    .hero-world .cloud.two,
    .mini-scene .cloud.two {
      top: 8%;
      right: -3%;
      width: min(14rem, 34vw);
      opacity: 0.55;
      animation-duration: 24s;
    }

    .hero-world .cloud.three {
      top: 28%;
      left: 42%;
      width: min(11rem, 28vw);
      opacity: 0.42;
      animation-duration: 30s;
      animation-delay: -8s;
    }

    @keyframes drift {
      50% { transform: translate3d(7vw, 0, 0); }
    }

    .glyph-float {
      position: absolute;
      z-index: 2;
      display: grid;
      place-items: center;
      min-width: 52px;
      min-height: 52px;
      padding: 10px 14px;
      color: var(--ink);
      font-weight: 900;
      font-size: clamp(1.1rem, 2.4vw, 1.45rem);
      letter-spacing: -0.03em;
      background: rgba(255, 255, 255, 0.92);
      border: 4px solid var(--sun);
      border-radius: 999px;
      box-shadow: 0 12px 24px rgba(23, 34, 59, 0.12);
      animation: glyphDrift 4.2s ease-in-out infinite;
    }

    .glyph-float.g1 { left: 14%; bottom: 42%; animation-delay: -0.6s; }
    .glyph-float.g2 { left: 38%; bottom: 58%; animation-delay: -1.8s; border-color: #b9f48d; }
    .glyph-float.g3 { right: 18%; bottom: 48%; animation-delay: -2.4s; }
    .glyph-float.g4 { right: 34%; bottom: 66%; animation-delay: -3.1s; border-color: #8ed4ff; }
    .glyph-float.g5 { left: 58%; bottom: 36%; animation-delay: -1.2s; font-size: clamp(1rem, 2vw, 1.25rem); }

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

    .section {
      margin-top: 34px;
      padding: clamp(28px, 5vw, 56px);
      border: 1px solid rgba(255,255,255,0.64);
      border-radius: 42px;
      background: rgba(255,255,255,0.56);
      box-shadow: 0 16px 50px rgba(59, 91, 133, 0.11);
      backdrop-filter: blur(18px);
    }

    .section-heading {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: end;
      margin-bottom: 24px;
    }

    h2 {
      margin: 0;
      font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
      font-size: clamp(2.2rem, 5vw, 4.1rem);
      line-height: 0.95;
      letter-spacing: -0.045em;
    }

    .section-heading p {
      max-width: 470px;
      margin: 0;
      color: var(--muted);
      font-weight: 800;
      line-height: 1.5;
    }

    .games-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
      gap: 18px;
    }

    .game-card {
      position: relative;
      min-height: 420px;
      padding: 26px;
      border: 1px solid var(--stroke);
      border-radius: 34px;
      background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.68));
      overflow: hidden;
      box-shadow: 0 18px 50px rgba(50, 76, 118, 0.12);
    }

    .game-card.featured {
      display: grid;
      grid-template-columns: 1fr 0.86fr;
      gap: 24px;
      align-items: stretch;
      background:
        radial-gradient(circle at 88% 16%, rgba(255, 228, 107, 0.45), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,0.96), rgba(235,250,255,0.76));
    }

    .game-card h3 {
      margin: 14px 0 10px;
      font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
      font-size: clamp(2.2rem, 4vw, 3.65rem);
      line-height: 0.92;
      letter-spacing: -0.04em;
    }

    .game-card p {
      color: #59647f;
      font-size: 1.03rem;
      font-weight: 750;
      line-height: 1.55;
      margin: 0 0 20px;
    }

    .tag-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 22px 0 26px;
    }

    .tag {
      padding: 8px 11px;
      border-radius: 999px;
      background: #eef8ff;
      color: #2e496a;
      font-size: 0.82rem;
      font-weight: 900;
    }

    .mini-scene {
      position: relative;
      min-height: 0;
      aspect-ratio: 1 / 1;
      border-radius: 28px;
      overflow: hidden;
      background:
        radial-gradient(circle at 18% 16%, rgba(255, 209, 102, 0.45), transparent 7rem),
        linear-gradient(180deg, #b8f0ff, #ecfbff 52%, #f8e6a9 53%);
      box-shadow: inset 0 0 0 1px rgba(23,34,59,0.08);
    }

    .mini-scene img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    .math-gate {
      position: absolute;
      left: 50%;
      bottom: 14px;
      z-index: 2;
      width: min(260px, 82%);
      padding: 14px;
      border: 2px solid rgba(23,34,59,0.1);
      border-radius: 20px;
      background: rgba(255,255,255,0.82);
      transform: translateX(-50%);
      font-weight: 900;
      text-align: center;
      box-shadow: 0 14px 30px rgba(23,34,59,0.12);
    }

    .coming-stack {
      display: grid;
      gap: 18px;
    }

    .coming-card {
      min-height: 0;
      padding: 24px;
      border: 1px dashed rgba(23, 34, 59, 0.20);
      border-radius: 34px;
      background: rgba(255,255,255,0.46);
    }

    .coming-icon {
      display: grid;
      place-items: center;
      width: 64px;
      height: 64px;
      border-radius: 23px;
      background: linear-gradient(145deg, #fff, #f3edff);
      font-size: 2rem;
      box-shadow: 0 12px 28px rgba(89, 100, 127, 0.12);
    }

    .coming-card h3 {
      margin: 16px 0 8px;
      font-size: 1.35rem;
      letter-spacing: -0.02em;
    }

    .coming-card p {
      margin: 0;
      color: var(--muted);
      font-size: 0.96rem;
      font-weight: 800;
      line-height: 1.45;
    }

    .details {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 34px;
      align-items: start;
    }

    .detail-card {
      padding: 24px;
      border: 1px solid var(--stroke);
      border-radius: 30px;
      background: rgba(255,255,255,0.58);
      overflow: hidden;
    }

    .detail-card-figure {
      margin: -24px -24px 16px;
    }

    .detail-card-figure img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      object-position: center top;
    }

    .detail-card strong {
      display: block;
      margin-bottom: 7px;
      font-size: 1.05rem;
      font-weight: 900;
    }

    .detail-card span {
      color: var(--muted);
      font-weight: 750;
      line-height: 1.48;
    }

    .footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
      padding: 28px 8px 0;
      color: #50607a;
      font-size: 0.95rem;
      font-weight: 850;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .footer-links a {
      padding: 10px 12px;
      border-radius: 999px;
      transition: background 180ms ease, color 180ms ease;
    }

    .footer-links a:hover {
      background: rgba(255,255,255,0.65);
      color: var(--ink);
    }

    @media (max-width: 920px) {
      .hero,
      .game-card.featured,
      .games-grid,
      .details {
        grid-template-columns: 1fr;
      }

      .hero { min-height: auto; }
      .hero-world { aspect-ratio: 1 / 1; order: -1; }
      .section-heading { display: block; }
      .section-heading p { margin-top: 12px; }
    }

    @media (max-width: 640px) {
      .page {
        width: min(100% - 22px, 1160px);
        padding-top: 12px;
      }

      .nav {
        align-items: flex-start;
        margin-bottom: 14px;
      }

      .nav-links { display: none; }

      .pill {
        white-space: normal;
        line-height: 1.35;
      }

      .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 15px;
      }

      .hero,
      .section {
        padding: 22px;
        border-radius: 30px;
      }

      .hero::before { inset: 10px; border-radius: 23px; }
      .hero-world { aspect-ratio: 1 / 1; border-radius: 26px; }
      .glyph-float { min-width: 44px; min-height: 44px; padding: 8px 11px; font-size: 1rem; }
      .hero-actions { align-items: stretch; }
      .button { width: 100%; }
      .game-card { padding: 20px; min-height: auto; border-radius: 26px; }
      .mini-scene { aspect-ratio: 1 / 1; }
      .coming-card,
      .detail-card { border-radius: 24px; }
      .footer { display: block; text-align: center; }
      .footer-links { justify-content: center; margin-top: 10px; }
    }

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