:root {
      --background: #f7f8fc;
      --surface: rgba(255, 255, 255, 0.82);
      --surface-strong: #ffffff;
      --text: #172033;
      --muted: #667085;
      --primary: #5b63f6;
      --primary-dark: #444ce7;
      --primary-soft: #eef0ff;
      --success: #17884f;
      --border: rgba(23, 32, 51, 0.09);
      --shadow: 0 24px 70px rgba(36, 43, 92, 0.12);
      --shadow-soft: 0 12px 34px rgba(36, 43, 92, 0.08);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 96px;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 15% 8%, rgba(91, 99, 246, 0.13), transparent 30%),
        radial-gradient(circle at 88% 54%, rgba(92, 191, 255, 0.12), transparent 29%),
        var(--background);
    }

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

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

    button {
      font: inherit;
    }

    :focus-visible {
      outline: 3px solid rgba(91, 99, 246, 0.32);
      outline-offset: 3px;
    }

    .page {
      min-height: 100vh;
      overflow: hidden;
    }

    .container {
      width: min(1120px, calc(100% - 40px));
      margin-inline: auto;
    }

    .navbar {
      min-height: 82px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-size: 1.1rem;
      font-weight: 850;
      letter-spacing: -0.02em;
    }

    .brand-mark {
      width: 46px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 13px;
      color: white;
      background: linear-gradient(145deg, var(--primary), #7b83ff);
      box-shadow: 0 12px 30px rgba(91, 99, 246, 0.28);
      font-size: 0.92rem;
      letter-spacing: -0.04em;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
    }

    .status {
      padding: 9px 14px;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.68);
      backdrop-filter: blur(12px);
      font-size: 0.84rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .nav-apply {
      padding: 10px 15px;
      border-radius: 999px;
      color: white;
      background: var(--text);
      box-shadow: 0 9px 24px rgba(23, 32, 51, 0.16);
      font-size: 0.84rem;
      font-weight: 800;
      white-space: nowrap;
      transition: transform 160ms ease, box-shadow 160ms ease;
    }

    .nav-apply:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 28px rgba(23, 32, 51, 0.22);
    }

    .language-switcher {
      display: inline-flex;
      align-items: center;
      padding: 3px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.78);
      box-shadow: 0 8px 24px rgba(36, 43, 92, 0.05);
    }

    .language-button {
      min-width: 42px;
      padding: 7px 9px;
      border: 0;
      border-radius: 999px;
      color: var(--muted);
      background: transparent;
      cursor: pointer;
      font-size: 0.76rem;
      font-weight: 850;
      letter-spacing: 0.03em;
    }

    .language-button[aria-pressed="true"] {
      color: white;
      background: var(--primary);
      box-shadow: 0 6px 14px rgba(91, 99, 246, 0.24);
    }

    .hero {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 72px;
      align-items: center;
      padding: 68px 0 100px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 20px;
      color: var(--primary-dark);
      font-size: 0.9rem;
      font-weight: 850;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 26px;
      height: 2px;
      border-radius: 999px;
      background: var(--primary);
    }

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

    h1 {
      max-width: 720px;
      margin-bottom: 0;
      font-size: clamp(3.2rem, 7vw, 6.2rem);
      line-height: 0.96;
      letter-spacing: -0.065em;
    }

    .title-line {
      display: block;
    }

    .highlight {
      color: var(--primary);
    }

    .description {
      max-width: 620px;
      margin: 28px 0 0;
      color: var(--muted);
      font-size: clamp(1.05rem, 2vw, 1.25rem);
      line-height: 1.75;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 30px;
    }

    .primary-button,
    .secondary-button {
      min-height: 52px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 0 20px;
      border-radius: 15px;
      font-size: 0.92rem;
      font-weight: 850;
      transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    }

    .primary-button {
      color: white;
      background: var(--primary);
      box-shadow: 0 13px 28px rgba(91, 99, 246, 0.26);
    }

    .secondary-button {
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.76);
      box-shadow: 0 8px 24px rgba(36, 43, 92, 0.06);
    }

    .primary-button:hover,
    .secondary-button:hover {
      transform: translateY(-2px);
    }

    .store-title {
      margin: 38px 0 14px;
      color: var(--text);
      font-size: 0.95rem;
      font-weight: 800;
    }

    .store-list {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .store-card {
      min-width: 190px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 18px;
      border: 1px solid var(--border);
      border-radius: 15px;
      background: var(--surface-strong);
      box-shadow: 0 10px 30px rgba(36, 43, 92, 0.06);
      user-select: none;
    }

    .store-icon {
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      background: var(--primary-soft);
      font-size: 1.05rem;
    }

    .store-card small {
      display: block;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 650;
    }

    .store-card strong {
      display: block;
      margin-top: 2px;
      font-size: 0.95rem;
    }

    .visual {
      position: relative;
      min-height: 540px;
      display: grid;
      place-items: center;
    }

    .glow {
      position: absolute;
      width: 420px;
      height: 420px;
      border-radius: 50%;
      background: rgba(91, 99, 246, 0.15);
      filter: blur(70px);
    }

    .game-card {
      position: relative;
      width: min(620px, 100%);
      padding: 28px;
      border: 1px solid rgba(255, 255, 255, 0.88);
      border-radius: 32px;
      background: var(--surface);
      box-shadow: var(--shadow);
      backdrop-filter: blur(20px);
      transform: rotate(0.8deg);
    }

    .game-card-header,
    .preview-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .game-card-header {
      margin-bottom: 20px;
    }

    .preview-top {
      margin-bottom: 16px;
    }

    .level {
      font-size: 0.84rem;
      color: var(--muted);
      font-weight: 700;
    }

    .pill {
      flex: 0 0 auto;
      padding: 7px 10px;
      border-radius: 999px;
      color: var(--primary-dark);
      background: var(--primary-soft);
      font-size: 0.7rem;
      font-weight: 850;
      letter-spacing: 0.02em;
    }

    .preview-heading {
      min-width: 0;
    }

    .preview-game {
      margin-bottom: 0;
      font-size: 1.35rem;
      line-height: 1.1;
      font-weight: 850;
      letter-spacing: -0.03em;
    }

    .preview-subtitle {
      margin-top: 4px;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 700;
    }

    .ticket-pill {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: #ffffff;
      box-shadow: 0 8px 24px rgba(36, 43, 92, 0.06);
      font-size: 0.9rem;
      font-weight: 850;
    }

    .matrix-shell {
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: #f5f7fc;
    }

    .logic-matrix {
      display: grid;
      grid-template-columns: 68px repeat(6, minmax(0, 1fr));
      background: #d3d9e6;
      gap: 2px;
      border-radius: 10px;
      overflow: hidden;
    }

    .logic-matrix > div {
      aspect-ratio: 1;
      min-width: 0;
      display: grid;
      place-items: center;
      background: #ffffff;
      color: #27324a;
      font-weight: 750;
      font-size: 0.78rem;
      text-align: center;
      padding: 4px;
    }

    .logic-corner,
    .logic-head,
    .logic-row-head {
      background: #eef1f6 !important;
      color: #2c354d;
      font-weight: 800 !important;
    }

    .logic-cell {
      position: relative;
      background: #ffffff !important;
    }

    .mark-cross,
    .mark-circle {
      position: relative;
      width: 34px;
      height: 34px;
      display: inline-block;
    }

    .mark-cross::before,
    .mark-cross::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      width: 4px;
      height: 36px;
      border-radius: 999px;
      background: #e55967;
      transform-origin: center;
      translate: -50% -50%;
    }

    .mark-cross::before {
      transform: rotate(45deg);
    }

    .mark-cross::after {
      transform: rotate(-45deg);
    }

    .mark-circle {
      border: 5px solid #29a564;
      border-radius: 50%;
    }

    .clue {
      margin-top: 16px;
      padding: 16px 17px;
      border: 1px solid var(--border);
      border-radius: 17px;
      background: white;
    }

    .clue-label {
      margin-bottom: 8px;
      color: var(--primary-dark);
      font-size: 0.74rem;
      font-weight: 850;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .clue-list {
      display: grid;
      gap: 10px;
    }

    .clue-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.5;
    }

    .clue-number {
      flex: 0 0 auto;
      width: 22px;
      height: 22px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      color: #ffffff;
      background: #1d2740;
      font-size: 0.72rem;
      font-weight: 800;
    }

    .test-section {
      position: relative;
      padding: 104px 0;
      border-top: 1px solid rgba(23, 32, 51, 0.06);
      background: rgba(255, 255, 255, 0.48);
    }

    .test-grid {
      display: grid;
      grid-template-columns: 0.95fr 1.05fr;
      gap: 48px;
      align-items: start;
    }

    .section-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 18px;
      padding: 8px 11px;
      border-radius: 999px;
      color: var(--success);
      background: rgba(32, 170, 96, 0.1);
      font-size: 0.76rem;
      font-weight: 850;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .section-badge::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #20aa60;
      box-shadow: 0 0 0 5px rgba(32, 170, 96, 0.11);
    }

    .test-copy h2 {
      max-width: 520px;
      margin-bottom: 20px;
      font-size: clamp(2.25rem, 5vw, 4.4rem);
      line-height: 1.02;
      letter-spacing: -0.055em;
    }

    .test-copy > p {
      max-width: 560px;
      margin-bottom: 0;
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.75;
    }

    .test-steps {
      display: grid;
      gap: 12px;
      margin: 28px 0 0;
      padding: 0;
      list-style: none;
    }

    .test-step {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 12px;
      align-items: start;
      padding: 14px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.7);
    }

    .step-number {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 11px;
      color: var(--primary-dark);
      background: var(--primary-soft);
      font-size: 0.8rem;
      font-weight: 900;
    }

    .test-step strong {
      display: block;
      margin-bottom: 3px;
      font-size: 0.92rem;
    }

    .test-step span:last-child {
      color: var(--muted);
      font-size: 0.84rem;
      line-height: 1.5;
    }

    .form-card {
      width: 100%;
      max-width: 680px;
      justify-self: end;
      overflow: hidden;
      border: 1px solid rgba(23, 32, 51, 0.08);
      border-radius: 28px;
      background: white;
      box-shadow: var(--shadow);
    }

    .form-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      padding: 24px 26px;
      border-bottom: 1px solid var(--border);
      background: linear-gradient(180deg, #ffffff, #fafbff);
    }

    .form-card-header h3 {
      margin-bottom: 6px;
      font-size: 1.2rem;
      letter-spacing: -0.025em;
    }

    .form-card-header p {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 0.84rem;
      line-height: 1.5;
    }

    .external-form-link {
      flex: 0 0 auto;
      display: none;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 0 13px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: white;
      color: var(--primary-dark);
      font-size: 0.78rem;
      font-weight: 850;
    }

    .form-frame-wrap {
      height: clamp(640px, 78vh, 760px);
      min-height: 0;
      overflow: hidden;
      background: #f8f9fd;
    }

    .google-form-frame {
      width: 100%;
      height: 100%;
      min-height: 0;
      display: none;
      border: 0;
      background: white;
    }

    .form-placeholder {
      min-height: 640px;
      display: grid;
      place-items: center;
      padding: 44px 28px;
      text-align: center;
    }

    .form-placeholder-inner {
      max-width: 500px;
    }

    .form-placeholder-icon {
      width: 72px;
      height: 72px;
      display: grid;
      place-items: center;
      margin: 0 auto 20px;
      border-radius: 22px;
      color: var(--primary-dark);
      background: var(--primary-soft);
      font-size: 1.8rem;
    }

    .form-placeholder h3 {
      margin-bottom: 10px;
      font-size: 1.35rem;
      letter-spacing: -0.03em;
    }

    .form-placeholder p {
      margin-bottom: 18px;
      color: var(--muted);
      line-height: 1.65;
    }

    .form-code-hint {
      display: inline-block;
      max-width: 100%;
      padding: 9px 12px;
      overflow-wrap: anywhere;
      border: 1px solid var(--border);
      border-radius: 10px;
      color: #4d5670;
      background: white;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.75rem;
    }

    .privacy-note {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      padding: 15px 22px 18px;
      color: var(--muted);
      background: #fafbff;
      font-size: 0.76rem;
      line-height: 1.5;
    }

    .privacy-note span:first-child {
      flex: 0 0 auto;
    }

    .footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 28px 0 34px;
      color: var(--muted);
      font-size: 0.82rem;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 16px;
    }

    .footer-links a:hover {
      color: var(--primary-dark);
    }

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

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

    @media (max-width: 960px) {
      .status {
        display: none;
      }

      .hero {
        grid-template-columns: 1fr;
        gap: 52px;
        padding-top: 48px;
      }

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

      .eyebrow,
      .hero-actions,
      .store-list {
        justify-content: center;
      }

      .description {
        margin-inline: auto;
      }

      .visual {
        min-height: auto;
      }

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

      .form-card {
        max-width: 760px;
        justify-self: center;
      }

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

      .test-copy h2,
      .test-copy > p {
        margin-inline: auto;
      }

      .test-steps {
        max-width: 720px;
        margin-inline: auto;
      }
    }

    @media (max-width: 680px) {
      .container {
        width: min(100% - 28px, 1120px);
      }

      .navbar {
        min-height: 72px;
      }

      .brand span:last-child,
      .nav-apply {
        display: none;
      }

      .hero {
        padding: 42px 0 76px;
      }

      h1 {
        font-size: clamp(3rem, 16vw, 4.7rem);
      }

      .description {
        margin-top: 22px;
        font-size: 1rem;
      }

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

      .primary-button,
      .secondary-button,
      .store-card {
        width: 100%;
      }

      .store-card {
        justify-content: center;
      }

      .game-card {
        padding: 20px;
        border-radius: 25px;
        transform: none;
      }

      .matrix-shell {
        padding: 8px;
      }

      .logic-matrix {
        grid-template-columns: 50px repeat(6, minmax(0, 1fr));
      }

      .logic-matrix > div {
        font-size: 0.6rem;
      }

      .mark-cross,
      .mark-circle {
        width: 22px;
        height: 22px;
      }

      .mark-cross::before,
      .mark-cross::after {
        width: 3px;
        height: 24px;
      }

      .mark-circle {
        border-width: 4px;
      }

      .test-section {
        padding: 76px 0;
      }

      .test-grid {
        gap: 36px;
      }

      .form-card {
        border-radius: 22px;
      }

      .form-card-header {
        display: block;
        padding: 21px;
      }

      .external-form-link {
        width: 100%;
        margin-top: 14px;
      }

      .form-frame-wrap {
        height: clamp(540px, 72vh, 660px);
        min-height: 0;
      }

      .form-placeholder {
        min-height: 560px;
      }

      .google-form-frame {
        height: 100%;
        min-height: 0;
      }

      .footer {
        flex-direction: column;
        text-align: center;
      }

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

/* SEO content and static bilingual-page additions */
.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.external-form-link {
  display: inline-flex;
}

.google-form-frame {
  display: block;
  height: 100%;
  min-height: 0;
}

.form-placeholder {
  display: none;
}

.seo-section {
  padding: 104px 0;
  border-top: 1px solid rgba(23, 32, 51, 0.06);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.seo-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.seo-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 900;
}

.seo-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.seo-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-wrap {
  max-width: 860px;
  margin: 54px auto 0;
}

.faq-wrap h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.privacy-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  max-width: 860px;
  padding: 64px 0 96px;
}

.legal-page h1 {
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 1;
}

.legal-page .lead,
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-page h2 {
  margin: 42px 0 12px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.legal-page ul {
  padding-left: 22px;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.redirect-card {
  max-width: 620px;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.redirect-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
}

.redirect-card p {
  color: var(--muted);
  line-height: 1.7;
}

.redirect-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .seo-section {
    padding: 76px 0;
  }

  .seo-card {
    padding: 22px;
  }

  .google-form-frame {
    height: 100%;
    min-height: 0;
  }

  .redirect-card {
    padding: 30px 22px;
  }
}

