* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(155,217,255,0.28) rgba(4,8,14,0.72);
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    width: 6px;
  }
  html::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track {
    background: rgba(4,8,14,0.72);
  }
  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(155,217,255,0.34), rgba(224,189,122,0.22));
    border-radius: 999px;
  }
  :root {
    --bg: #050706;
    --bg-deep: #090b0a;
    --panel: rgba(15, 20, 18, 0.82);
    --panel-strong: rgba(22, 27, 24, 0.94);
    --line: rgba(197, 154, 92, 0.18);
    --line-strong: rgba(197, 154, 92, 0.34);
    --text: #f0eadc;
    --muted: #9f998c;
    --dim: #6f7167;
    --copper: #c59a5c;
    --copper-soft: #e0bd7a;
    --moss: #58745f;
    --teal: #77c4ad;
    --violet: #8f78d6;
    --danger: #d0898d;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background:
      linear-gradient(180deg, #050706 0%, #0a0d0b 52%, #050706 100%);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 100vw;
    overflow-x: hidden;
    overscroll-behavior: none;
  }

  @media (max-width: 899px) {
    html,
    body {
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
      display: none;
      width: 0;
      height: 0;
    }
  }

  .app {
    width: min(430px, 100vw);
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    background:
      linear-gradient(180deg, rgba(18, 24, 20, 0.95) 0%, rgba(5, 7, 6, 0.98) 58%),
      repeating-linear-gradient(90deg, rgba(197,154,92,0.035) 0 1px, transparent 1px 42px),
      repeating-linear-gradient(0deg, rgba(119,196,173,0.018) 0 1px, transparent 1px 54px);
    box-shadow: 0 0 0 1px rgba(197,154,92,0.08), 0 0 80px rgba(0,0,0,0.5);
    overflow: hidden;
  }
  .app::before {
    content: '';
    position: fixed;
    left: 50%;
    top: 0;
    width: min(430px, 100vw);
    height: 210px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(197,154,92,0.13), transparent 74%),
      conic-gradient(from 210deg at 50% 12%, transparent 0 18%, rgba(119,196,173,0.13) 22%, transparent 31%, rgba(143,120,214,0.12) 46%, transparent 56%, rgba(197,154,92,0.12) 70%, transparent 83%);
    opacity: 0.72;
    filter: blur(0.2px);
  }
  .app::after {
    content: attr(data-symbols);
    position: fixed;
    left: 50%;
    top: 16px;
    width: min(430px, 100vw);
    transform: translateX(-50%);
    text-align: center;
    color: rgba(224, 189, 122, 0.14);
    font-size: 13px;
    letter-spacing: 5px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
  }

  .stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
  .star {
    position: absolute; background: var(--copper-soft); border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite alternate;
  }
  .star-1 { width: 1px; height: 1px; top: 8%; left: 12%; animation-delay: 0.1s; animation-duration: 2.4s; }
  .star-2 { width: 1px; height: 1px; top: 18%; left: 78%; animation-delay: 0.7s; animation-duration: 3.1s; }
  .star-3 { width: 2px; height: 2px; top: 27%; left: 34%; animation-delay: 1.4s; animation-duration: 4.2s; }
  .star-4 { width: 1px; height: 1px; top: 36%; left: 88%; animation-delay: 0.3s; animation-duration: 2.8s; }
  .star-5 { width: 1px; height: 1px; top: 44%; left: 20%; animation-delay: 1.8s; animation-duration: 5s; }
  .star-6 { width: 2px; height: 2px; top: 52%; left: 64%; animation-delay: 0.9s; animation-duration: 3.6s; }
  .star-7 { width: 1px; height: 1px; top: 61%; left: 6%; animation-delay: 2.2s; animation-duration: 4.5s; }
  .star-8 { width: 1px; height: 1px; top: 72%; left: 82%; animation-delay: 1.1s; animation-duration: 2.9s; }
  .star-9 { width: 2px; height: 2px; top: 84%; left: 42%; animation-delay: 0.5s; animation-duration: 4.8s; }
  .star-10 { width: 1px; height: 1px; top: 13%; left: 48%; animation-delay: 2.6s; animation-duration: 3.5s; }
  .star-11 { width: 1px; height: 1px; top: 24%; left: 9%; animation-delay: 1.7s; animation-duration: 4.1s; }
  .star-12 { width: 1px; height: 1px; top: 31%; left: 58%; animation-delay: 0.2s; animation-duration: 2.6s; }
  .star-13 { width: 2px; height: 2px; top: 47%; left: 76%; animation-delay: 2.9s; animation-duration: 5.2s; }
  .star-14 { width: 1px; height: 1px; top: 55%; left: 29%; animation-delay: 1.3s; animation-duration: 3.8s; }
  .star-15 { width: 1px; height: 1px; top: 66%; left: 51%; animation-delay: 0.8s; animation-duration: 4.4s; }
  .star-16 { width: 2px; height: 2px; top: 74%; left: 17%; animation-delay: 2s; animation-duration: 3.2s; }
  .star-17 { width: 1px; height: 1px; top: 88%; left: 91%; animation-delay: 1.5s; animation-duration: 4.7s; }
  .star-18 { width: 1px; height: 1px; top: 6%; left: 69%; animation-delay: 0.4s; animation-duration: 5.4s; }
  .star-19 { width: 1px; height: 1px; top: 40%; left: 43%; animation-delay: 2.4s; animation-duration: 3.9s; }
  .star-20 { width: 2px; height: 2px; top: 79%; left: 62%; animation-delay: 0.6s; animation-duration: 2.7s; }
  .star-21 { width: 1px; height: 1px; top: 21%; left: 93%; animation-delay: 1.9s; animation-duration: 4.9s; }
  .star-22 { width: 1px; height: 1px; top: 59%; left: 94%; animation-delay: 1s; animation-duration: 3.4s; }
  .star-23 { width: 1px; height: 1px; top: 92%; left: 25%; animation-delay: 2.7s; animation-duration: 4.6s; }
  .star-24 { width: 2px; height: 2px; top: 3%; left: 31%; animation-delay: 1.2s; animation-duration: 3.3s; }
  @keyframes twinkle { 0% { opacity: 0.15; } 100% { opacity: 0.6; } }

  .screen { display: none; flex-direction: column; flex: 1; position: relative; z-index: 1; }
  .screen.active { display: flex; animation: screenIn 0.3s ease-out; }
  @keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  .is-hidden { display: none !important; }
  .date-native { color-scheme: dark; }
  .is-invalid {
    border-color: rgba(220,80,80,0.55) !important;
    background: rgba(220,80,80,0.06) !important;
  }

  .header {
    text-align: center;
    padding: 58px 20px 16px;
    position: relative;
  }
  .header::after {
    content: '';
    position: absolute; bottom: 0; left: 16px; right: 16px;
    height: 1px; background: linear-gradient(90deg, transparent, rgba(197,154,92,0.24), transparent);
  }
  .header-label {
    font-size: 9px; letter-spacing: 4px; color: var(--copper);
    text-transform: uppercase; margin-bottom: 6px;
  }
  .header-title {
    font-size: 30px; font-weight: 760; color: var(--text);
    letter-spacing: 0;
    text-shadow: 0 0 22px rgba(224,189,122,0.18);
  }
  .header-sub {
    font-size: 12px; color: var(--muted); margin-top: 4px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .header-sub::before, .header-sub::after {
    content: ''; width: 18px; height: 1px; background: rgba(197,154,92,0.28);
  }

  @media (min-width: 900px) {
    body {
      min-height: 100vh;
      overflow: hidden;
      background:
        radial-gradient(circle at 18% 8%, rgba(124,231,255,0.16), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(123,140,255,0.14), transparent 32%),
        linear-gradient(135deg, #02050a 0%, #06111b 48%, #010306 100%);
    }

    .app {
      width: min(1180px, calc(100vw - 48px));
      max-width: 1180px;
      min-height: calc(100vh - 48px);
      height: calc(100vh - 48px);
      margin: 24px auto;
      border-radius: 18px;
      border: 1px solid rgba(155,217,255,0.14);
      overflow: hidden;
    }

    .app::before,
    .app::after {
      width: min(1180px, calc(100vw - 48px));
      border-radius: 18px 18px 0 0;
    }

    .screen {
      min-height: 0;
    }

    .header {
      padding: 38px 40px 18px;
    }

    .header-title {
      font-size: 34px;
    }

    .screen-title {
      padding-top: 38px;
    }
  }
