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

  :root {
    --ink: #1a130d;
    --warm: #2e1f14;
    --amber: #c4832a;
    --amber-light: #e8a84a;
    --cream: #f8f3ea;
    --parchment: #ede5cf;
    --muted: #7a6b58;
    --red: #c0392b;
    --red-soft: #e74c3c;
    --green: #2d6b4a;
    --green-soft: #4caf78;
    --yellow: #c4932a;
  }

  html, body {
    height: 100%;
    background: var(--ink);
    color: var(--cream);
    font-family: 'Crimson Pro', serif;
    overflow: hidden;
  }

  /* ── SHELL ── */
  .app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }

  /* Atmosphere */
  .app::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(196,131,42,0.07) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 80%, rgba(196,131,42,0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
  }

  /* ── HEADER ── */
  .header {
    flex-shrink: 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(196,169,122,0.1);
    position: relative;
    z-index: 10;
  }

  .header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .header-wordmark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cream);
  }

  .header-wordmark span { color: var(--amber); }

  .header-tag {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amber);
    opacity: 0.7;
    background: rgba(196,131,42,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(196,131,42,0.2);
  }

  /* ── PROGRESS ── */
  .progress-bar {
    flex-shrink: 0;
    height: 2px;
    background: rgba(196,169,122,0.1);
    position: relative;
    z-index: 10;
  }

  .progress-fill {
    height: 100%;
    background: var(--amber);
    transition: width 0.5s ease;
    opacity: 0.7;
  }

  /* ── MAIN CONTENT ── */
  .main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 20px 40px;
    position: relative;
    z-index: 5;
    -webkit-overflow-scrolling: touch;
  }

  /* ── SCREENS ── */
  .screen {
    display: none;
    animation: fadeUp 0.4s ease forwards;
  }

  .screen.active { display: block; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── HOME SCREEN ── */
  .home-inner {
    padding: 40px 0 20px;
    text-align: center;
  }

  .home-mark {
    margin: 0 auto 24px;
    width: 64px; height: 64px;
    background: rgba(196,131,42,0.08);
    border: 1px solid rgba(196,131,42,0.2);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
  }

  .home-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .home-title em { font-style: italic; font-weight: 300; color: var(--amber); }

  .home-sub {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(248,243,234,0.6);
    margin-bottom: 36px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .situation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }

  .situation-btn {
    padding: 18px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(196,169,122,0.15);
    border-radius: 8px;
    color: var(--cream);
    font-family: 'Crimson Pro', serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .situation-btn:active { transform: scale(0.98); }

  .situation-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(196,131,42,0.35);
  }

  .situation-btn.urgent {
    border-color: rgba(192,57,43,0.3);
    background: rgba(192,57,43,0.06);
  }

  .situation-btn.urgent:hover { background: rgba(192,57,43,0.1); }

  .btn-icon { font-size: 1.4rem; line-height: 1; }
  .btn-label { font-weight: 500; color: var(--cream); }
  .btn-sub { font-size: 0.78rem; color: rgba(248,243,234,0.45); font-weight: 300; }

  .home-footer {
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(248,243,234,0.25);
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px solid rgba(196,169,122,0.1);
  }

  /* ── QUESTION SCREEN ── */
  .question-screen {
    padding: 32px 0 20px;
  }

  .question-context {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
    opacity: 0.7;
    margin-bottom: 16px;
  }

  .question-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .question-sub {
    font-size: 0.92rem;
    font-weight: 300;
    color: rgba(248,243,234,0.5);
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .option-btn {
    padding: 16px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(196,169,122,0.15);
    border-radius: 8px;
    color: var(--cream);
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .option-btn:active { transform: scale(0.99); }
  .option-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(196,131,42,0.4); }

  .option-btn.danger {
    border-color: rgba(192,57,43,0.35);
    background: rgba(192,57,43,0.07);
  }

  .option-btn.danger:hover { background: rgba(192,57,43,0.14); }

  .option-indicator {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(196,169,122,0.3);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    color: rgba(248,243,234,0.4);
    font-weight: 500;
  }

  .back-btn {
    background: none;
    border: none;
    color: rgba(248,243,234,0.35);
    font-family: 'Crimson Pro', serif;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: color 0.2s;
  }

  .back-btn:hover { color: var(--amber); }

  /* ── RESULT SCREENS ── */
  .result-screen { padding: 32px 0 20px; }

  .result-urgent {
    background: rgba(192,57,43,0.1);
    border: 1px solid rgba(192,57,43,0.3);
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 20px;
  }

  .result-warning {
    background: rgba(196,147,42,0.1);
    border: 1px solid rgba(196,147,42,0.3);
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 20px;
  }

  .result-calm {
    background: rgba(45,107,74,0.1);
    border: 1px solid rgba(45,107,74,0.3);
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 20px;
  }

  .result-badge {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .result-urgent .result-badge { color: #e74c3c; }
  .result-warning .result-badge { color: var(--yellow); }
  .result-calm .result-badge { color: var(--green-soft); }

  .result-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
  }

  .result-urgent .result-badge-dot { background: #e74c3c; }
  .result-warning .result-badge-dot { background: var(--yellow); }
  .result-calm .result-badge-dot { background: var(--green-soft); animation: none; }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
  }

  .result-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .result-body {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(248,243,234,0.75);
  }

  /* ── ACTION BUTTONS ── */
  .action-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .action-primary {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--amber);
    color: var(--ink);
    border: none;
    border-radius: 8px;
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
  }

  .action-primary:hover { background: var(--amber-light); }

  .action-primary.danger-btn {
    background: var(--red);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px;
  }

  .action-primary.danger-btn:hover { background: var(--red-soft); }

  .action-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: rgba(248,243,234,0.5);
    border: 1px solid rgba(196,169,122,0.15);
    border-radius: 8px;
    font-family: 'Crimson Pro', serif;
    font-size: 0.9rem;
    font-weight: 300;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
  }

  .action-secondary:hover { color: var(--cream); border-color: rgba(196,131,42,0.3); }

  /* ── STEPS LIST ── */
  .steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 16px 0;
  }

  .step-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(196,169,122,0.08);
    align-items: flex-start;
  }

  .step-item:last-child { border-bottom: none; }

  .step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(196,131,42,0.15);
    border: 1px solid rgba(196,131,42,0.3);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    color: var(--amber);
    font-weight: 600;
    margin-top: 2px;
  }

  .step-text {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(248,243,234,0.75);
  }

  .step-text strong { color: var(--cream); font-weight: 500; }

  /* ── RESTART ── */
  .restart-btn {
    background: none;
    border: none;
    color: rgba(248,243,234,0.3);
    font-family: 'Crimson Pro', serif;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 0;
    transition: color 0.2s;
  }

  .restart-btn:hover { color: var(--amber); }

  /* ── DISCLAIMER ── */
  .disclaimer {
    font-size: 0.72rem;
    font-style: italic;
    color: rgba(248,243,234,0.2);
    line-height: 1.6;
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid rgba(196,169,122,0.08);
    margin-top: 8px;
  }

  /* scrollbar */
  .main::-webkit-scrollbar { width: 3px; }
  .main::-webkit-scrollbar-track { background: transparent; }
  .main::-webkit-scrollbar-thumb { background: rgba(196,131,42,0.2); border-radius: 2px; }


  .header-actions { display:flex; align-items:center; gap:12px; }
  .triage-hamburger {
    display:none; flex-direction:column; gap:4px; background:none; border:none; cursor:pointer; padding:6px;
  }
  .triage-hamburger span { display:block; width:20px; height:1.5px; background:var(--cream); }
  .triage-drawer {
    display:none; position:fixed; inset:0; z-index:999; background:rgba(12,8,5,.98); backdrop-filter:blur(14px);
    flex-direction:column; align-items:center; justify-content:center; gap:22px;
  }
  .triage-drawer.open { display:flex; }
  .triage-drawer a {
    color:var(--cream); text-decoration:none; font-family:'Cormorant Garamond', serif; font-size:1.7rem; font-weight:600;
  }
  .triage-drawer .mobile-close {
    position:absolute; top:20px; right:20px; background:none; border:none; color:rgba(248,243,234,.6);
    font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; cursor:pointer;
  }
  @media (max-width: 760px) {
    .triage-hamburger { display:flex; }
    .header-tag { font-size:0.58rem; padding:3px 8px; }
    .header-actions { margin-left:auto; }
  }

