* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  :root {
    --sky: #00AFCA;
    --sky-dark: #0089A0;
    --gold: #FEC50C;
    --gold-dark: #E0AC00;
    --dark: #0A1628;
    --dark-2: #13233D;
    --white: #FFFFFF;
    --gray: #8A9BB5;
    --success: #27C97A;
    --error: #FF4E5B;
  }
  html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
  }
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background:
      radial-gradient(circle at 20% 10%, rgba(0, 175, 202, 0.25), transparent 45%),
      radial-gradient(circle at 85% 90%, rgba(254, 197, 12, 0.18), transparent 45%),
      var(--dark);
    position: relative;
  }
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      repeating-linear-gradient(45deg, rgba(0, 175, 202, 0.04) 0 2px, transparent 2px 24px),
      repeating-linear-gradient(-45deg, rgba(254, 197, 12, 0.03) 0 2px, transparent 2px 24px);
    pointer-events: none;
    z-index: 0;
  }
  .app {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    background: rgba(19, 35, 61, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 175, 202, 0.25);
    border-radius: 28px;
    padding: 32px 24px 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    animation: appIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  @keyframes appIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
  .brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--sky), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
  }
  .progress-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--sky), var(--gold));
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .screen { display: none; animation: fadeIn 0.4s ease; }
  .screen.active { display: block; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  .hero-emoji {
    font-size: 64px;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1;
    animation: float 3s ease-in-out infinite;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
  }
  h1 .accent {
    background: linear-gradient(135deg, var(--sky), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 28px;
    padding: 0 8px;
  }
  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
  }
  .btn:active { transform: scale(0.97); }
  .btn-primary {
    background: linear-gradient(135deg, var(--sky), var(--sky-dark));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 175, 202, 0.35);
  }
  .btn-primary:hover { box-shadow: 0 14px 40px rgba(0, 175, 202, 0.5); }
  .btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(254, 197, 12, 0.3);
  }
  .btn-gold:hover { box-shadow: 0 14px 40px rgba(254, 197, 12, 0.5); }
  .btn-telegram {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(42, 171, 238, 0.4);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(42, 171, 238, 0.4); }
    50% { box-shadow: 0 10px 45px rgba(42, 171, 238, 0.7); }
  }
  .q-counter {
    font-size: 13px;
    color: var(--sky);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .q-text {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
  }
  .answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .answer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    line-height: 1.35;
  }
  .answer:hover {
    background: rgba(0, 175, 202, 0.12);
    border-color: rgba(0, 175, 202, 0.5);
    transform: translateX(4px);
  }
  .answer.correct {
    background: rgba(39, 201, 122, 0.15);
    border-color: var(--success);
    color: var(--success);
  }
  .answer.wrong {
    background: rgba(255, 78, 91, 0.15);
    border-color: var(--error);
    color: var(--error);
  }
  .answer:disabled { cursor: default; transform: none; }
  .answer-letter {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.2s ease;
  }
  .answer.correct .answer-letter { background: var(--success); color: var(--dark); }
  .answer.wrong .answer-letter { background: var(--error); color: var(--white); }
  .result-emoji {
    font-size: 72px;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1;
    animation: popIn 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
  }
  @keyframes popIn {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
  }
  .result-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--sky), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .result-score {
    text-align: center;
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 16px;
  }
  .result-score strong { color: var(--gold); font-size: 18px; }
  .result-desc {
    text-align: center;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 26px;
    padding: 0 4px;
  }
  .cta-block {
    background: linear-gradient(135deg, rgba(0, 175, 202, 0.12), rgba(254, 197, 12, 0.08));
    border: 1px solid rgba(0, 175, 202, 0.25);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 14px;
  }
  .cta-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
  }
  .cta-sub {
    font-size: 13px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
  }
  .retry {
    display: block;
    text-align: center;
    color: var(--gray);
    font-size: 13px;
    text-decoration: none;
    margin-top: 14px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
    padding: 8px;
    transition: color 0.2s;
  }
  .retry:hover { color: var(--sky); }
  .footer {
    text-align: center;
    font-size: 11px;
    color: rgba(138, 155, 181, 0.6);
    margin-top: 20px;
    line-height: 1.5;
  }
  @media (max-width: 480px) {
    body { padding: 12px; align-items: flex-start; padding-top: 24px; }
    .app { padding: 24px 18px 20px; border-radius: 22px; }
    h1 { font-size: 26px; }
    .q-text { font-size: 19px; }
    .hero-emoji { font-size: 56px; }
    .result-emoji { font-size: 64px; }
    .answer { padding: 14px 16px; font-size: 14.5px; }
    .btn { padding: 16px 20px; font-size: 15px; }
    .progress-bar { width: 60px; }
  }
