:root {
  --primary: #6366f1;
  --primary-light: #4f46e5;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 12px;
  --c1-bg: #fecaca; --c1-text: #991b1b;
  --c2-bg: #fed7aa; --c2-text: #9a3412;
  --c3-bg: #fef9c3; --c3-text: #854d0e;
  --c4-bg: #bbf7d0; --c4-text: #166534;
  --c5-bg: #166534; --c5-text: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

.view { display: none !important; }
.view.active { display: block !important; }

/* ─── HEADER ─── */
.header { background: var(--card); border-bottom: 1px solid var(--border); padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.header-logo { font-weight: 800; font-size: 17px; color: var(--text); }
.header-right { display: flex; align-items: center; gap: 10px; }
.btn-outline { padding: 7px 14px; border: 2px solid var(--primary); color: var(--primary); background: none; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .2s; font-family: inherit; text-decoration: none; display: inline-block; }
.btn-outline:hover { background: var(--primary); color: white; }
.judge-chip { background: var(--bg); border-radius: 20px; padding: 6px 14px; font-size: 13px; color: var(--muted); font-weight: 500; }

.input { width: 100%; padding: 13px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; outline: none; transition: border-color .2s; font-family: inherit; }
.input:focus { border-color: var(--primary); }
.btn-primary { display: block; width: 100%; margin-top: 12px; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; font-family: inherit; }
.btn-primary:hover { background: var(--primary-light); }

.page-body { max-width: 720px; margin: 0 auto; padding: 28px 24px; }
.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
