    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html {
      scroll-behavior: smooth;
      scrollbar-gutter: stable;
      overflow-y: scroll;
    }
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0); border-radius: 6px; transition: background 0.4s; }
    html:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); }
    html:hover::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
    @supports not selector(::-webkit-scrollbar) {
      html { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.18) transparent; }
    }

    :root {
      --bg:          #F7F6F4;
      --bg-card:     #FFFFFF;
      --bg-section:  #F1F0EE;
      --fg:          #0A0A0A;
      --fg-2:        #1A1A1A;
      --fg-muted:    #64748B;
      --fg-subtle:   #94A3B8;
      --red:         #CC0033;
      --red-dk:      #A8002A;
      --red-alpha:   rgba(204,0,51,0.08);
      --red-glow:    rgba(204,0,51,0.18);
      --border:      rgba(0,0,0,0.07);
      --border-md:   rgba(0,0,0,0.11);
      --shadow-xs:   0 1px 2px rgba(0,0,0,0.04);
      --shadow-sm:   0 1px 3px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.05);
      --shadow-md:   0 4px 20px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.05);
      --shadow-lg:   0 12px 48px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.06);
      --shadow-xl:   0 24px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
      --shadow-btn:  0 0 0 1px rgba(204,0,51,0.3), 0 4px 16px rgba(204,0,51,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
      --font:        'Inter', system-ui, sans-serif;
      --ease:        cubic-bezier(0.16, 1, 0.3, 1);
      --nav-h:       88px;
    }

    body {
      background: var(--bg);
      color: var(--fg);
      font-family: var(--font);
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      min-height: 100vh;
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    /* ── AMBIENT BACKGROUND ── */
    .page-bg {
      position: fixed; inset: 0; z-index: -1; overflow: hidden;
      background:
        radial-gradient(ellipse 100% 60% at 50% -10%, rgba(255,210,220,0.45) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 90%, rgba(220,228,255,0.3) 0%, transparent 50%),
        var(--bg);
    }
    .blob { position: absolute; border-radius: 50%; pointer-events: none; }
    .blob-1 { width:900px; height:600px; top:-250px; left:50%; transform:translateX(-50%); background:rgba(204,0,51,0.05); filter:blur(130px); animation:fa 12s ease-in-out infinite; }
    .blob-2 { width:600px; height:500px; top:30%; left:-180px; background:rgba(255,200,180,0.10); filter:blur(110px); animation:fb 14s ease-in-out infinite; }
    .blob-3 { width:520px; height:420px; top:20%; right:-140px; background:rgba(190,205,255,0.08); filter:blur(110px); animation:fc 10s ease-in-out infinite; }
    .blob-4 { width:400px; height:320px; bottom:10%; right:15%; background:rgba(204,0,51,0.04); filter:blur(100px); animation:fb 16s ease-in-out infinite reverse; }
    @keyframes fa { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(-22px) rotate(1deg);} }
    @keyframes fb { 0%,100%{transform:translateY(0) translateX(0);} 33%{transform:translateY(-14px) translateX(9px);} 66%{transform:translateY(9px) translateX(-7px);} }
    @keyframes fc { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-18px) rotate(-1deg);} }

    /* ── NAV ── */
    nav#nav {
      position: fixed; top:0; left:0; right:0; z-index:200; height:88px;
      display:flex; align-items:center; justify-content:space-between;
      padding: 0 clamp(20px, 9vw, 180px);
      transition: background 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
      border-bottom: 1px solid transparent;
    }
    nav#nav.scrolled {
      background: rgba(247,246,244,0.92);
      backdrop-filter: blur(20px) saturate(160%);
      -webkit-backdrop-filter: blur(20px) saturate(160%);
      border-bottom-color: var(--border);
      box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    }
    .nav-logo { text-decoration:none; font-size:26px; font-weight:800; letter-spacing:-0.03em; color:var(--fg); }
    .nav-logo span { color:var(--red); }
    .nav-links { position:absolute; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:4px; list-style:none; }
    .nav-links a {
      display:inline-flex; align-items:center; gap:7px;
      font-size:15px; font-weight:500; text-decoration:none; color:var(--fg-muted);
      padding:9px 14px; border-radius:8px;
      transition:color 0.2s, background 0.2s;
    }
    .nav-links a svg { opacity:0.6; transition:opacity 0.2s, transform 0.2s var(--ease); flex-shrink:0; }
    .nav-links a:hover { color:var(--fg); background:rgba(0,0,0,0.05); }
    .nav-links a:hover svg { opacity:1; transform:scale(1.08); }
    .btn-nav {
      font-size:15px; font-weight:600; text-decoration:none;
      padding:11px 22px; text-align:center;
      background:var(--fg); color:#fff; border-radius:10px;
      box-shadow:0 1px 3px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.08);
      transition:background 0.2s,transform 0.15s var(--ease),box-shadow 0.2s,filter 0.3s ease;
    }
    .btn-nav:hover { transform:scale(1.06); }

    .nav-hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; }
    .nav-hamburger span { display:block; width:22px; height:2px; background:var(--fg); border-radius:1px; transition:all 0.26s var(--ease); }
    .nav-hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
    .nav-hamburger.open span:nth-child(2){opacity:0;transform:scaleX(0);}
    .nav-hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
    .nav-mobile {
      display:none; position:fixed; top:88px; left:0; right:0;
      background:rgba(247,246,244,0.96); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
      border-bottom:1px solid var(--border); flex-direction:column; z-index:199; padding:8px 0 16px;
    }
    .nav-mobile.open { display:flex; }
    .nav-mobile a {
      display:flex; align-items:center; gap:12px;
      color:var(--fg-muted); text-decoration:none;
      font-size:14px; font-weight:500; padding:12px 24px;
      transition:color 0.18s,background 0.18s;
    }
    .nav-mobile a svg { opacity:0.55; flex-shrink:0; transition:opacity 0.18s; }
    .nav-mobile a:hover { color:var(--fg); background:rgba(0,0,0,0.03); }
    .nav-mobile a:hover svg { opacity:1; }
    .nav-mobile .m-cta { margin:8px 16px 0; background:var(--red); color:#fff!important; border-radius:8px; text-align:center; padding:12px 24px!important; font-weight:600!important; }

    /* ── MAIN ── */
    main {
      flex: 1;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: calc(var(--nav-h) + clamp(48px, 6vh, 96px)) 24px clamp(48px, 6vh, 80px);
    }

    .login-shell {
      width: 100%;
      max-width: 460px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    /* Ping badge (from index.html hero) */
    .hero-badge {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 6px 14px 6px 10px;
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: 100px; text-decoration: none; color: inherit;
      box-shadow: var(--shadow-sm);
      margin-bottom: 24px;
      transition: box-shadow 0.2s, border-color 0.2s;
      cursor: default;
    }
    .hero-badge:hover { border-color: var(--border-md); box-shadow: var(--shadow-md); }
    .ping-wrap { position: relative; display: inline-flex; width: 8px; height: 8px; flex-shrink: 0; }
    .ping-ring { position: absolute; inset: 0; background: #22c55e; border-radius: 50%; animation: ping 1.5s ease-in-out infinite; }
    .ping-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; position: relative; }
    @keyframes ping { 0%{transform:scale(1);opacity:0.75;} 75%,100%{transform:scale(2.4);opacity:0;} }
    .badge-text { font-size: 12px; font-weight: 500; color: var(--fg-muted); }
    .badge-sep { width: 1px; height: 12px; background: var(--border-md); }
    .badge-new { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: 0.04em; }

    .login-title {
      font-size: clamp(42px, 6.6vw, 62px);
      font-weight: 800; letter-spacing: -0.045em; line-height: 1.02;
      color: var(--fg);
      margin-top: 120px;
      margin-bottom: 14px;
    }
    .login-title .red {
      display: inline-block;
      background: linear-gradient(135deg, #CC0033 0%, #E5003B 50%, #CC0033 100%);
      background-size: 200% auto;
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
      animation: shimmer 3.5s ease infinite;
      padding-bottom: 0.06em;
    }
    @keyframes shimmer { 0%{background-position:0% center;} 50%{background-position:100% center;} 100%{background-position:0% center;} }

    .login-sub {
      font-size: clamp(15px, 1.6vw, 17px);
      color: var(--fg-muted);
      line-height: 1.65;
      max-width: 420px;
      margin: 0 auto 36px;
    }

    /* ── CARD ── */
    .login-card {
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 20px;
      box-shadow: var(--shadow-xl);
      overflow: hidden;
      position: relative;
    }
    .login-card-inner {
      padding: 36px 32px 28px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* ── AUTH BUTTONS ── */
    .auth-btn {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 18px;
      border-radius: 12px;
      text-decoration: none;
      font-family: var(--font);
      font-size: 15px;
      font-weight: 600;
      letter-spacing: -0.005em;
      transition: background 0.2s, transform 0.15s var(--ease), box-shadow 0.2s, filter 0.3s ease;
      position: relative;
    }
    .auth-form { margin: 0; }
    .auth-form .auth-btn {
      width: 100%;
      border: 0;
      cursor: pointer;
      text-align: left;
      appearance: none;
      -webkit-appearance: none;
    }

    .auth-btn-discord {
      background: #5865F2;
      color: #fff;
      box-shadow: 0 0 0 1px rgba(88,101,242,0.3), 0 4px 16px rgba(88,101,242,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
    }
    .auth-btn-discord:hover { transform: scale(1.02); }
    .auth-btn-discord:active { transform: scale(0.98); }

    .auth-btn-google {
      background: var(--bg-card);
      color: var(--fg);
      border: 1px solid var(--border-md);
      box-shadow: var(--shadow-sm);
    }
    .auth-btn-google:hover { transform: scale(1.02); border-color: rgba(0,0,0,0.2); }
    .auth-btn-google:active { transform: scale(0.98); }

    .auth-btn-icon {
      width: 22px; height: 22px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .auth-btn-text { flex: 1; text-align: center; }
    .auth-btn-arrow {
      display: inline-flex;
      opacity: 0.55;
      transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    }
    .auth-btn:hover .auth-btn-arrow {
      opacity: 1;
      transform: translateX(3px);
    }

    /* ── DIVIDER ── */
    .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 10px 0 6px;
    }
    .divider-line {
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .divider-text {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--fg-subtle);
    }

    /* ── STORE ROW ── */
    .store-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .store-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 14px;
      border-radius: 10px;
      border: 1px solid var(--border-md);
      background: var(--bg-card);
      color: var(--fg);
      text-decoration: none;
      font-size: 13px;
      font-weight: 600;
      box-shadow: var(--shadow-xs);
      transition: transform 0.15s var(--ease), border-color 0.2s, box-shadow 0.2s, filter 0.3s ease;
      white-space: nowrap;
    }
    .store-btn:hover { transform: scale(1.03); border-color: var(--border-md); }
    .store-btn svg { flex-shrink: 0; }

    /* ── CARD FOOTER NOTE ── */
    .login-note {
      padding: 16px 32px 20px;
      border-top: 1px solid var(--border);
      background: var(--bg-section);
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 12px;
      color: var(--fg-muted);
      line-height: 1.6;
    }
    .login-note-icon {
      flex-shrink: 0;
      margin-top: 1px;
      color: var(--red);
    }
    .login-note-text a {
      color: var(--fg-2);
      font-weight: 600;
      text-decoration: none;
      border-bottom: 1px solid var(--red-glow);
      transition: border-color 0.2s, color 0.2s;
    }
    .login-note-text a:hover {
      color: var(--red);
      border-bottom-color: var(--red);
    }

    /* Tiny help text below card */
    .login-aside {
      margin-top: 22px;
      font-size: 13px;
      color: var(--fg-subtle);
    }
    .login-aside a {
      color: var(--fg-muted);
      font-weight: 600;
      text-decoration: none;
      transition: color 0.2s;
    }
    .login-aside a:hover { color: var(--red); }

    /* ── FOOTER ── */
    footer {
      background: var(--bg-card);
      border-top: 1px solid var(--border);
      padding: 60px 40px 40px;
    }
    .foot-grid {
      max-width: 1200px; margin: 0 auto;
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px;
      padding-bottom: 32px;
    }
    .foot-brand-logo { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; color: var(--fg); display: inline-block; margin-bottom: 12px; }
    .foot-brand-logo span { color: var(--red); }
    .foot-brand-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.6; max-width: 220px; }
    .foot-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); margin-bottom: 16px; }
    .foot-col-links { display: flex; flex-direction: column; gap: 10px; }
    .foot-col-links a { font-size: 13px; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
    .foot-col-links a:hover { color: var(--fg); }
    .foot-bottom {
      max-width: 1200px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    }
    .foot-copy { font-size: 12px; color: var(--fg-muted); }

    /* ── RAINBOW GLOW ── */
    .auth-btn-discord:hover, .auth-btn-google:hover,
    .btn-nav:hover, .store-btn:hover {
      box-shadow:
        0 0 8px  0 rgba(255, 0,   120, 0.75),
        0 0 16px 0 rgba(255, 120, 0,  0.60),
        0 0 28px 0 rgba(0,   200, 255, 0.50),
        0 0 44px 0 rgba(100, 0,   255, 0.35),
        0 0 60px 0 rgba(210, 0,   255, 0.20);
    }

    /* ── REVEAL ── */
    @media (prefers-reduced-motion: no-preference) {
      .reveal { opacity:0; transform:translateY(16px); transition:opacity 0.7s var(--ease),transform 0.7s var(--ease); }
      .reveal.visible { opacity:1; transform:none; }
      .d1{transition-delay:0.08s;} .d2{transition-delay:0.16s;} .d3{transition-delay:0.24s;}
    }

    /* ── TOAST ── */
    .toast {
      position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
      background: var(--bg-card); color: var(--fg);
      border: 1px solid var(--border);
      border-left: 3px solid var(--red);
      border-radius: 12px;
      box-shadow: var(--shadow-lg);
      padding: 12px 18px;
      font-size: 14px; font-weight: 500;
      z-index: 9998;
      display: flex; align-items: center; gap: 10px;
      animation: toast-in 0.35s var(--ease);
    }
    .toast svg { color: var(--red); flex-shrink: 0; }
    @keyframes toast-in {
      from { opacity: 0; transform: translateX(-50%) translateY(10px); }
      to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    /* ── RESPONSIVE ── */
    @media (max-width:1024px) {
      .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
      .foot-brand { grid-column: span 3; }
    }
    @media (max-width:900px) {
      nav#nav { padding: 0 20px; }
      .nav-links { display:none; }
      .btn-nav { display:none; }
      .nav-hamburger { display:flex; }
      footer { padding: 48px 20px 32px; }
    }
    @media (max-width:600px) {
      .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
      .foot-brand { grid-column: span 2; }
    }
    @media (max-width:600px) {
      main { padding: calc(var(--nav-h) + 28px) 16px 48px; }
      .login-card-inner { padding: 28px 22px 24px; }
      .login-note { padding: 14px 22px 18px; }
      .store-row { grid-template-columns: 1fr; }
      .login-title { font-size: clamp(36px, 10vw, 44px); }
    }
  
