*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: var(--cr);
    font-family: var(--sans);
    color: var(--ink);
  }

  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 100dvh;
  }

  /* ── Bear emblem ── */
  .emblem {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--or);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(232,80,26,.25);
  }

  .emblem svg { width: 40px; height: 40px; }

  /* ── Card ── */
  .card {
    background: var(--wh);
    border-radius: 20px;
    padding: 40px 36px 36px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 40px rgba(0,0,0,.07);
    border: 1px solid var(--rule);
  }

  .card-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: 8px;
    color: var(--ink);
  }

  .card-sub {
    font-size: 15px;
    color: var(--mu);
    margin-bottom: 28px;
    line-height: 1.5;
  }

  .squad-code-pill {
    display: inline-block;
    background: var(--or-lt);
    color: var(--or);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 28px;
    text-transform: uppercase;
  }

  /* ── Spinner ── */
  .spinner-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
  }

  .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--rule);
    border-top-color: var(--or);
    border-radius: 50%;
    animation: spin .8s linear infinite;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── Status message ── */
  .status-msg {
    font-size: 13px;
    font-family: var(--mono);
    color: var(--sm);
    margin-bottom: 28px;
    min-height: 18px;
    transition: opacity .3s;
  }

  /* ── Buttons ── */
  .btn-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity .4s ease;
  }

  .btn-row.visible { opacity: 1; }

  .btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--sans);
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: opacity .15s, transform .1s;
  }

  .btn:active { transform: scale(.98); }

  .btn-primary {
    background: var(--or);
    color: var(--wh);
  }

  .btn-primary:hover { opacity: .9; }

  .btn-secondary {
    background: transparent;
    color: var(--mu);
    border: 1.5px solid var(--rule);
    font-size: 14px;
  }

  .btn-secondary:hover { border-color: var(--sm); color: var(--ink); }

  /* ── Footer ── */
  .page-footer {
    margin-top: 32px;
    font-size: 12px;
    color: var(--sm);
    font-family: var(--mono);
    text-align: center;
  }

  /* ── Invalid state ── */
  .invalid-card .card-title { color: #C0392B; }
  .error-icon { font-size: 40px; margin-bottom: 16px; }
