/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg-primary: #121212;
  --bg-card: #1E1E1E;
  --bg-raised: #272727;
  --border: #333333;
  --accent-neon: #2ED573;
  --accent-hover: #26af5c;
  --accent-soft: rgba(46, 213, 115, .12);
  --text-main: #F5F5F7;
  --text-muted: #A0A0A0;
  --on-accent: #08160E;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; font-stretch: 112%; }
h3 { font-size: 1.2rem; font-weight: 700; }
::selection { background: var(--accent-neon); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-neon); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 16px; padding: 10px 16px; background: var(--accent-neon); color: var(--on-accent); z-index: 2000; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.eyebrow { font-family: var(--display); font-size: .78rem; font-weight: 700; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-neon); margin-bottom: 8px; }
.label { font-size: .82rem; font-weight: 500; color: var(--text-muted); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.section-head { margin: 56px 0 20px; scroll-margin-top: 130px; }
.block-title { margin: 28px 0 14px; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font-family: var(--display); font-weight: 700; font-size: .98rem; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent-neon); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: var(--bg-raised); color: var(--text-muted); cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--border); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-neon); color: var(--accent-neon); }
.btn-captain { background: var(--accent-soft); border: 1px solid var(--accent-neon); color: var(--accent-neon); }
.btn-captain:hover:not(:disabled) { background: var(--accent-neon); color: var(--on-accent); }
.btn-captain:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { min-height: 58px; padding: 16px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* =============================================================
   5. Header & navigation
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(18, 18, 18, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gutter) 2px; }
.logo { display: flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--display); font-weight: 800; font-stretch: 125%; letter-spacing: .08em; font-size: 1.05rem; }
.streak-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 14px; border: 1px solid var(--border); border-radius: 99px; font-size: .9rem; transition: border-color .2s; }
.streak-chip:hover { border-color: var(--accent-neon); }
.streak-chip span { color: var(--text-muted); }
.tabs { display: flex; gap: 4px; padding: 0 var(--gutter) 8px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; font-size: .92rem; font-weight: 500; color: var(--text-muted); transition: color .2s, background-color .2s; }
.tabs a:hover { color: var(--text-main); }
.tabs a.is-active { background: var(--accent-soft); color: var(--accent-neon); font-weight: 600; }

/* =============================================================
   6. Ads
   ============================================================= */
.ad-slot { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: #707070; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .012); }
.ad-wrap { padding: 12px var(--gutter) 0; }
.ad-leaderboard { width: 100%; max-width: 320px; min-height: 50px; margin: 0 auto; }
.ad-infeed { width: 100%; max-width: 336px; min-height: 280px; margin: 40px auto; }
.ad-side { width: 300px; max-width: 100%; min-height: 250px; margin: 0 auto; }

/* =============================================================
   7. Layout
   ============================================================= */
.layout { max-width: 1320px; margin: 0 auto; padding: 8px var(--gutter) 40px; }
main { min-width: 0; }
.js .view:not(.is-active) { display: none; }
.view { padding-top: 14px; animation: viewIn .4s var(--ease-out); }
.js .ad-module.is-off { display: none; }
.sidebar { margin-top: 24px; }

/* =============================================================
   8. Home
   ============================================================= */
.hero { display: grid; gap: 28px; padding: 22px 0 8px; }
.hero h1 { font-size: clamp(2.3rem, 7.6vw, 4.1rem); font-weight: 900; font-stretch: 116%; line-height: 1.02; }
.lead { margin-top: 16px; font-size: 1.08rem; color: var(--text-muted); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cta-row .btn { flex: 1 1 170px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .88rem; color: var(--text-muted); }
.hero-points b { color: var(--text-main); font-family: var(--display); }
.hero-live { position: relative; box-shadow: 0 30px 80px -40px rgba(46, 213, 115, .45); }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-num { font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.live-num small { font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.ring { --p: 0; flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(var(--accent-neon) calc(var(--p) * 1%), var(--bg-raised) 0); transition: --p .5s; position: relative; font-family: var(--display); font-weight: 700; font-size: .85rem; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg-card); }
.ring span { position: relative; }
.chart-box { position: relative; height: 190px; margin-top: 12px; touch-action: pan-y; }
.chart-box-lg { height: 280px; }
.chart-box canvas { width: 100%; height: 100%; }
.chart-tip { position: absolute; top: 4px; padding: 6px 10px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; font-size: .78rem; white-space: nowrap; pointer-events: none; transform: translateX(-50%); }
.chart-tip b { font-family: var(--display); }
.live-note { margin-top: 8px; font-size: .85rem; color: var(--text-muted); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; font-size: .84rem; color: var(--text-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.key { width: 18px; height: 3px; border-radius: 2px; }
.key-me { background: var(--accent-neon); }
.key-base { background: #6B6B6B; }

.world { position: relative; }
.world-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.world-card { position: relative; flex: 0 0 min(82vw, 310px); min-height: 370px; display: flex; flex-direction: column; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); scroll-snap-align: start; overflow: hidden; transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s; }
.world-card:hover { transform: translateY(-5px); border-color: var(--accent-neon); box-shadow: 0 22px 44px -28px rgba(46, 213, 115, .55); }
.art { position: absolute; top: 0; right: -22px; width: 280px; fill: none; stroke: var(--accent-neon); stroke-width: 1.5; opacity: .22; transition: opacity .3s, transform .5s var(--ease-out); }
.world-card:hover .art { opacity: .45; transform: scale(1.05); }
.world-icon { position: relative; font-size: 2.6rem; margin: 56px 0 14px; }
.world-card h3 { position: relative; font-size: 1.5rem; font-weight: 800; font-stretch: 110%; }
.world-card p { position: relative; margin: 10px 0 20px; color: var(--text-muted); font-size: .95rem; flex: 1; }
.world-arrow { display: none; }

.fp-banner { display: grid; gap: 18px; padding: 28px 22px; border: 1px solid var(--accent-neon); border-radius: var(--radius); background: linear-gradient(120deg, rgba(46, 213, 115, .16), var(--bg-card) 55%); }
.fp-banner p.muted { margin-top: 8px; }

.steps { display: grid; gap: 12px; counter-reset: none; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-neon); font-family: var(--display); font-weight: 800; }
.steps p { margin-top: 6px; }
.seo { margin-top: 40px; }
.seo h2 { font-size: 1.4rem; margin-bottom: 10px; }
.seo p { color: var(--text-muted); margin-top: 10px; }

.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--accent-neon); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent-neon); font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 18px 16px; color: var(--text-muted); }

/* =============================================================
   9. Modules
   ============================================================= */
.mod-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.mod-head p.muted { margin-top: 8px; max-width: 62ch; }
.btn-captain { align-self: stretch; }

/* Questionnaire */
.quiz { max-width: 680px; margin: 0 auto; padding: 22px 20px; }
.quiz-top { display: flex; justify-content: space-between; font-size: .84rem; color: var(--text-muted); }
.quiz-bar { height: 5px; margin: 8px 0 24px; border-radius: 3px; background: var(--bg-raised); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent-neon); transition: width .45s var(--ease-out); }
.quiz-step { animation: stepIn .35s var(--ease-out); }
.quiz-q { font-size: clamp(1.3rem, 4.5vw, 1.7rem); font-weight: 800; margin-bottom: 20px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 12px 18px; text-align: left; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-primary); font-weight: 500; transition: border-color .2s, background-color .2s, transform .2s var(--ease-out); }
.opt:hover { border-color: var(--accent-neon); transform: translateX(3px); }
.opt.is-on { border-color: var(--accent-neon); background: var(--accent-soft); color: var(--accent-neon); }
.field { margin-bottom: 18px; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.field-num { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--display); font-weight: 800; font-size: 2rem; }
.field-num input { width: 3.4ch; background: none; border: 0; border-bottom: 2px solid var(--border); color: var(--text-main); font: inherit; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.field-num input::-webkit-outer-spin-button, .field-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field-num input:focus { outline: 0; border-color: var(--accent-neon); }
.field-num small { font-size: .95rem; font-weight: 500; color: var(--text-muted); }
input[type="range"] { --p: 50; -webkit-appearance: none; appearance: none; width: 100%; height: 48px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-neon) calc(var(--p) * 1%), var(--bg-raised) 0); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-neon) calc(var(--p) * 1%), var(--bg-raised) 0); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--text-main); border: 3px solid var(--accent-neon); transition: transform .25s var(--ease-bounce); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--text-main); border: 3px solid var(--accent-neon); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.22); }
.text-input { width: 100%; min-height: 56px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-primary); color: var(--text-main); font: inherit; font-size: 1.05rem; transition: border-color .2s; }
.text-input:focus { outline: 0; border-color: var(--accent-neon); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 99px; font-size: .9rem; color: var(--text-muted); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--accent-neon); color: var(--accent-neon); }
.quiz-err { min-height: 22px; margin-top: 8px; font-size: .88rem; color: #FF9F8A; }
.quiz-nav { display: flex; gap: 10px; margin-top: 12px; }
.quiz-nav .btn-primary { flex: 1; }

/* Plan */
.plan { animation: stepIn .4s var(--ease-out); }
.plan-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-neon); font-size: .84rem; font-weight: 500; }
.plan-note { margin-bottom: 14px; font-size: .92rem; color: var(--text-muted); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.plan-actions .btn { flex: 1 1 180px; }
.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.counter { padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.counter-num { font-family: var(--display); font-weight: 800; font-size: 1.55rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.counter-num small { font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.meter { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--bg-raised); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent-neon); transition: width .45s var(--ease-out); }

.day-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 18px 0 10px; }
.day-tab { position: relative; min-height: 52px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); font-family: var(--display); font-weight: 700; color: var(--text-muted); transition: color .2s, border-color .2s, background-color .2s; }
.day-tab:hover { color: var(--text-main); }
.day-tab.is-on { background: var(--accent-neon); border-color: var(--accent-neon); color: var(--on-accent); }
.day-tab.is-today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent-neon); }
.day-tab.is-on.is-today::after { background: var(--on-accent); }
.day-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 16px 0 12px; }
.day-title h3 { font-size: 1.35rem; font-weight: 800; }
.day-lock { margin-bottom: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); }
.plan-cols { display: grid; gap: 14px; }
.col-title { margin-bottom: 10px; font-size: 1rem; }
.task { display: flex; gap: 12px; align-items: flex-start; min-height: 56px; padding: 14px; margin-bottom: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background-color .2s, transform .25s var(--ease-out); }
.task:hover { border-color: #4a4a4a; transform: translateY(-1px); }
.task.is-locked { cursor: default; }
.task.is-locked:hover { border-color: var(--border); transform: none; }
.task input { position: absolute; opacity: 0; width: 28px; height: 28px; }
.task .box { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 2px solid #555; color: var(--on-accent); font-size: 1rem; font-weight: 800; transition: background-color .2s, border-color .2s, transform .3s var(--ease-bounce); }
.task .box::after { content: "✓"; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .3s var(--ease-bounce); }
.task input:checked + .box { background: var(--accent-neon); border-color: var(--accent-neon); transform: scale(1.06); }
.task input:checked + .box::after { opacity: 1; transform: none; }
.task input:focus-visible + .box { outline: 2px solid var(--accent-neon); outline-offset: 3px; }
.task input:disabled + .box { opacity: .35; }
.task input:checked ~ .task-body b { color: var(--text-muted); }
.task.is-done { background: rgba(46, 213, 115, .06); border-color: rgba(46, 213, 115, .4); }
.task-body { min-width: 0; flex: 1; }
.task-body b { display: block; font-weight: 600; line-height: 1.3; }
.task-body span { display: block; margin-top: 3px; font-size: .86rem; color: var(--text-muted); }
.task-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--accent-neon); font-weight: 500; }
.chart-card { margin-top: 18px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9rem; background: var(--bg-card); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { font-size: .78rem; font-weight: 500; color: var(--text-muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.is-today td { background: var(--accent-soft); }
.edit-link { display: inline-flex; align-items: center; min-height: 48px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.edit-link:hover { color: var(--accent-neon); }

/* Result cards */
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.macro-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.macro { padding: 14px; background: var(--bg-primary); border-radius: var(--radius-sm); }
.macro b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.macro span { font-size: .8rem; color: var(--text-muted); }
.big-kcal { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.big-kcal small { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.ingredients li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.ingredients li:last-child { border-bottom: 0; }
.ingredients b { font-weight: 600; font-variant-numeric: tabular-nums; }
.slider-inline { margin-top: 8px; }

/* Stats & badges */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.badge-grid { display: grid; gap: 12px; }
.badge { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .3s, transform .3s var(--ease-out); }
.badge:hover { transform: translateY(-2px); }
.badge-ico { flex: none; font-size: 2rem; filter: grayscale(1); opacity: .45; transition: filter .4s, opacity .4s; }
.badge-body { flex: 1; min-width: 0; }
.badge-body p { font-size: .84rem; color: var(--text-muted); }
.badge.is-on { border-color: var(--accent-neon); }
.badge.is-on .badge-ico { filter: none; opacity: 1; }

/* FlowPad */
.fp-hero { padding: 40px 22px; border: 1px solid var(--accent-neon); border-radius: var(--radius); text-align: center; background: radial-gradient(ellipse at top, rgba(46, 213, 115, .22), var(--bg-card) 70%); }
.fp-hero h2 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; }
.fp-hero p.muted { max-width: 54ch; margin: 12px auto 24px; }
.fp-grid { display: grid; gap: 14px; margin-top: 16px; }
.fp-card { display: flex; flex-direction: column; transition: transform .35s var(--ease-out), border-color .25s; }
.fp-card:hover { transform: translateY(-5px); border-color: var(--accent-neon); }
.fp-tag { align-self: flex-start; padding: 4px 11px; margin-bottom: 14px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-neon); font-size: .78rem; font-weight: 600; }
.fp-card > p.muted { margin: 8px 0 14px; }
.ticks { margin-bottom: 20px; flex: 1; }
.ticks li { position: relative; padding: 5px 0 5px 24px; font-size: .92rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-neon); font-weight: 800; }

/* Footer */
.site-footer { padding: 34px var(--gutter) 110px; border-top: 1px solid var(--border); text-align: center; }
.site-footer p { margin: 6px auto; max-width: 70ch; }
.privacy-line { font-weight: 500; }
.legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; color: var(--text-muted); }
.legal a:hover { color: var(--accent-neon); }

/* Goal widget */
.goal-widget { position: fixed; bottom: 20px; right: 20px; z-index: 1000; display: flex; align-items: center; gap: 8px; max-width: min(320px, calc(100vw - 40px)); padding: 12px 8px 12px 16px; background: var(--bg-card); border: 1px solid var(--accent-neon); border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 22px -6px rgba(46, 213, 115, .55); animation: stepIn .5s var(--ease-out); }
.goal-text { font-family: var(--display); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.goal-sub { font-size: .78rem; color: var(--accent-neon); }
.goal-toggle { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--text-muted); transition: color .2s, background-color .2s; }
.goal-toggle:hover { background: var(--bg-raised); color: var(--text-main); }
.goal-widget.is-min { padding: 2px; }
.goal-widget.is-min .goal-body { display: none; }

/* Modals */
.modal { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px 20px 20px; color: var(--text-main); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.modal::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(3px); }
.modal[open] { animation: stepIn .3s var(--ease-out); }
.modal-x { position: absolute; top: 6px; right: 6px; width: 48px; height: 48px; color: var(--text-muted); border-radius: 12px; }
.modal-x:hover { color: var(--text-main); }
.captain-card { margin: 14px 0; max-height: 44vh; overflow: auto; padding: 16px; background: var(--bg-primary); border: 1px solid var(--accent-neon); border-radius: var(--radius-sm); font-family: var(--sans); font-size: .9rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.captain-actions { display: grid; gap: 8px; }

/* Toasts */
.toasts { position: fixed; top: 112px; left: 50%; z-index: 1500; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast { padding: 13px 16px; background: var(--bg-raised); border: 1px solid var(--accent-neon); border-radius: 14px; font-weight: 500; box-shadow: 0 12px 34px rgba(0, 0, 0, .5); animation: toastIn .45s var(--ease-bounce); }

/* =============================================================
   10. Effects
   ============================================================= */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* =============================================================
   11. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 769px) {
  :root { --gutter: 24px; }
  .header-row { position: absolute; left: 0; right: 0; top: 8px; pointer-events: none; }
  .header-row > * { pointer-events: auto; }
  .tabs { justify-content: center; padding: 10px 170px; }
  .ad-leaderboard { max-width: 728px; min-height: 90px; }
  .mod-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .btn-captain { align-self: auto; flex: none; }
  .opts-2 { grid-template-columns: repeat(2, 1fr); }
  .steps, .fp-grid { grid-template-columns: repeat(3, 1fr); }
  .fp-banner { grid-template-columns: 1fr auto; align-items: center; padding: 36px; }
  .counters, .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plan-cols, .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .plan-cols-one { grid-template-columns: minmax(0, 1fr); }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .captain-actions { grid-template-columns: 1fr 1fr; }
  .captain-actions .btn:first-child { grid-column: 1 / -1; }
  .macro-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .world-arrow { display: grid; place-items: center; position: absolute; top: -66px; z-index: 2; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-card); transition: border-color .2s, color .2s; }
  .world-arrow:hover { border-color: var(--accent-neon); color: var(--accent-neon); }
  .world-arrow.prev { right: 58px; }
  .world-arrow.next { right: 0; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; padding-top: 34px; }
}
@media (min-width: 1280px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .sidebar { margin-top: 14px; }
  .ad-side { min-height: 600px; }
}

/* =============================================================
   12. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .world-card:hover, .fp-card:hover { transform: none; }
}
