:root {
  --bg: #0a0b0a;
  --panel: #111312;
  --raise: #181b19;
  --text: #ecece8;
  --muted: #98a09a;
  --primary: #7eae7f;
  --primary-dark: #5f905f;
  --primary-soft: rgba(126,174,127,.09);
  --accent: #f08a3c;
  --border: #252a26;
  --radius-lg: 20px;
  --radius-md: 12px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background: #070807; font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; position: relative; }
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before { background: repeating-linear-gradient(62deg, rgba(126,174,127,.30) 0 1px, transparent 1px 5px), repeating-linear-gradient(62deg, rgba(126,174,127,.16) 0 2px, transparent 2px 11px); -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 14%, transparent 32%, transparent 68%, rgba(0,0,0,.35) 86%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 14%, transparent 32%, transparent 68%, rgba(0,0,0,.35) 86%, #000 100%); opacity: .55; }
body::after { background: radial-gradient(ellipse 40% 70% at 0% 50%, rgba(126,174,127,.10), transparent 70%), radial-gradient(ellipse 40% 70% at 100% 50%, rgba(126,174,127,.10), transparent 70%); }
.page-shell { position: relative; z-index: 1; }
button { font: inherit; }
a { color: var(--primary); } a:hover { color: var(--accent); }
::selection { background: rgba(126,174,127,.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-shell { width: min(760px, calc(100% - 28px)); min-height: calc(100vh - 28px); margin: 14px auto; background: #0d0f0e; border: 1px solid #222823; border-top: 1px solid rgba(126,174,127,.45); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.quiz-panel { padding: 28px clamp(20px, 6vw, 54px) 40px; }
.quiz-header { text-align: center; }
.brand { display: inline-block; text-decoration: none; }
.brand-logo { display: block; width: min(300px, 76vw); max-height: 108px; object-fit: contain; }
.progress-wrapper { margin-top: 22px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: .78rem; font-weight: 500; letter-spacing: .04em; }
.progress-track, .analysis-track { height: 3px; overflow: hidden; background: var(--border); border-radius: 999px; }
.progress-bar, .analysis-bar { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: inherit; transition: width .25s linear; }
.quiz-content { padding-top: 38px; }
.screen { animation: enter .25s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 14px; text-align: center; color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 600; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.14; text-align: center; }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
.friendly-title { color: var(--primary); margin-bottom: 14px; }
.lead, .question-intro { color: var(--muted); line-height: 1.7; text-align: center; }
.lead { margin: 20px auto 0; max-width: 600px; }
.question-intro { margin: 0 auto 22px; max-width: 600px; }
.notice { margin: 26px auto 0; max-width: 600px; display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--primary-soft); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--muted); line-height: 1.55; text-align: left; }
.notice-dot { flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--accent); }
.meta-row { list-style: none; margin: 30px 0 0; padding: 0; display: flex; justify-content: center; gap: clamp(18px, 6vw, 44px); flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.meta-row strong { display: block; color: var(--text); font-size: 1.3rem; font-weight: 600; margin-bottom: 2px; }
.news-card { margin: 22px auto 30px; max-width: 600px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--raise); }
.news-card img { display: block; width: 100%; max-height: 390px; object-fit: cover; object-position: top; }
.news-card figcaption { padding: 10px 14px; color: var(--muted); font-size: .8rem; text-align: center; }
.question-explanation { margin: 14px auto 0; max-width: 600px; color: var(--muted); text-align: center; line-height: 1.55; font-size: .95rem; }
.options { display: grid; gap: 10px; margin-top: 28px; }
.options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-button { width: 100%; min-height: 60px; padding: 12px 14px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px; color: var(--text); text-align: left; background: var(--raise); border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: .18s ease; }
.option-button:hover { border-color: var(--primary); background: #1b201c; }
.option-button.is-selected { background: var(--primary-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.option-check { width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid #3a423c; border-radius: 6px; background: transparent; color: #0a0b0a; font-weight: 900; font-size: .8rem; position: relative; transition: .18s; }
.option-button.is-single .option-check { border-radius: 50%; }
.option-button.is-multiple.is-selected .option-check { background: var(--primary); border-color: var(--primary); }
.option-button.is-single.is-selected .option-check { border-color: var(--primary); color: transparent; }
.option-button.is-single.is-selected .option-check::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--primary); }
.option-label { font-weight: 500; line-height: 1.4; font-size: .95rem; }
.question-actions { margin-top: 30px; display: flex; justify-content: space-between; gap: 12px; }
.primary-button, .secondary-button { min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: .18s ease; }
.primary-button { color: var(--primary); background: transparent; border: 1px solid var(--primary); }
.primary-button:hover { color: #0a0b0a; background: var(--primary); }
.primary-button:active { background: var(--accent); border-color: var(--accent); }
.primary-button:disabled { opacity: .35; cursor: not-allowed; color: var(--muted); border-color: var(--border); background: transparent; }
.secondary-button { color: var(--muted); background: transparent; border: 1px solid var(--border); }
.secondary-button:hover { color: var(--text); border-color: var(--muted); }
.continue-button { min-width: 180px; }
.start-screen { text-align: center; }
.start-screen .primary-button { margin-top: 32px; }
.analysis-screen { text-align: center; padding: 14px 0; }
.analysis-meta { margin: 34px 0 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.analysis-meta strong { color: var(--accent); font-weight: 600; }
.analysis-track { height: 4px; }
.redirect-note { margin-top: 16px; color: var(--muted); font-size: .85rem; }
.cure-note { margin: 34px auto 0; max-width: 560px; padding: 22px 24px; text-align: left; background: var(--primary-soft); border: 1px solid var(--border); border-radius: var(--radius-md); }
.cure-note p { margin: 0; color: var(--text); line-height: 1.7; }
.cure-note p + p { margin-top: 12px; color: var(--muted); }
.noscript-message { margin: 30px; padding: 18px; border: 1px solid var(--accent); color: var(--accent); background: var(--panel); }
.news-section { margin: 4px auto 34px; text-align: center; }
.news-section h3 { margin: 0; color: var(--text); font-weight: 600; font-size: clamp(1.15rem, 4vw, 1.5rem); }
.news-hint { margin: 8px 0 18px; color: var(--accent); font-size: .85rem; }
.news-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: none; max-width: 430px; margin: 0 auto; cursor: grab; user-select: none; touch-action: pan-y; }
.news-carousel::-webkit-scrollbar { display: none; }
.news-carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.news-slide { margin: 0; max-width: 430px; overflow: hidden; scroll-snap-align: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.news-slide img { display: block; width: 100%; max-height: 520px; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.news-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.news-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--border); cursor: pointer; transition: .18s; }
.news-dots button:hover { transform: scale(1.25); }
.news-dots button.is-active { background: var(--accent); }
@media (max-width: 640px) {
  .page-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .quiz-panel { padding: 20px 17px 30px; }
  .brand-logo { max-height: 90px; }
  .quiz-content { padding-top: 28px; }
  .options-grid { grid-template-columns: 1fr; }
  .news-card img { max-height: 300px; }
  .news-carousel, .news-slide { max-width: 360px; }
  .question-actions { align-items: stretch; }
  .question-actions .primary-button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(4,5,4,.82); backdrop-filter: blur(6px); animation: enter .25s ease both; }
.modal { width: min(440px, 100%); padding: 30px 26px; background: #0d0f0e; border: 1px solid #222823; border-top: 1px solid rgba(126,174,127,.55); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.modal .lead { margin: 12px 0 22px; font-size: .95rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: .8rem; font-weight: 500; letter-spacing: .04em; }
.field input { height: 50px; padding: 0 14px; color: var(--text); background: var(--raise); border: 1px solid var(--border); border-radius: var(--radius-md); font: inherit; font-size: 1rem; }
.field input::placeholder { color: #5b635d; }
.field input:hover { border-color: #3a423c; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.field-error { margin: 0 0 12px; color: var(--accent); font-size: .85rem; }
.modal .primary-button { width: 100%; margin-top: 6px; }
.privacy { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: .78rem; }
.scale { margin: 4px 0 14px; padding: 0; border: 0; min-width: 0; }
.scale legend { padding: 0; margin-bottom: 10px; color: var(--text); font-size: .9rem; line-height: 1.45; }
.scale-row { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.scale-row label { position: relative; cursor: pointer; }
.scale-row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.scale-row span { display: grid; place-items: center; height: 40px; color: var(--muted); background: var(--raise); border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; font-weight: 500; transition: .15s; }
.scale-row label:hover span { border-color: var(--primary); color: var(--text); }
.scale-row input:checked + span { color: #0a0b0a; background: var(--primary); border-color: var(--primary); font-weight: 700; }
.scale-row input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: .72rem; }
@media (max-width:420px){ .scale-row { gap: 3px; } .scale-row span { height: 36px; font-size: .8rem; } }
