/* tiers.css - path screen, profiles and shared pieces of the three tiers.
   Uses the colour tokens defined in index.html (:root). */

/* ---------- path screen ---------- */
#paths { position: fixed; z-index: 45; inset: 0; overflow: auto; background:
  radial-gradient(110% 80% at 15% 10%, rgba(132, 201, 107, 0.18), transparent 60%),
  radial-gradient(90% 70% at 90% 30%, rgba(155, 123, 224, 0.16), transparent 60%),
  radial-gradient(90% 80% at 60% 100%, rgba(95, 196, 208, 0.14), transparent 60%), var(--bg);
  padding: calc(60px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.paths-inner { max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.paths-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.paths-top .tab { margin: 0; font-size: 15px; padding: 7px 16px; }
.who { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.paths-title { font: 800 clamp(38px, 8vw, 76px)/0.95 var(--display); letter-spacing: -0.02em; margin: 6px 0 0; }
.paths-title span { display: block; font-weight: 500; font-size: 0.36em; letter-spacing: 0; color: var(--green); margin-top: 10px; }
.path-cards { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.path-arrow { align-self: center; font: 700 22px var(--display); color: var(--muted); }
@media (max-width: 820px) { .path-cards { grid-template-columns: minmax(0, 1fr); } .path-arrow { justify-self: center; transform: rotate(90deg); } }
.path-card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.path-card[data-tier="explorer"] { border-top: 4px solid var(--green); }
.path-card[data-tier="scientist"] { border-top: 4px solid var(--violet); }
.path-card[data-tier="professional"] { border-top: 4px solid var(--cyan); }
.path-card.locked { opacity: 0.85; }
.path-card h2 { font: 800 26px/1.05 var(--display); margin: 0; }
.path-card p { margin: 0; color: var(--fg); font-size: 15px; }
.path-icon { font-size: 40px; line-height: 1; }
.path-prog { font: 500 13px var(--mono); color: var(--green) !important; }
.path-note { color: var(--muted) !important; font-size: 14px !important; }
.path-note.small { font-size: 13px !important; }
.path-play { font-size: 17px; padding: 12px 20px; margin-top: auto; align-self: flex-start; }
.path-card .btn { align-self: flex-start; }
.paths-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.paths-foot:empty { display: none; }

/* profiles */
#shellModal { z-index: 60; }
.shell-panel { width: min(560px, 100%); }
.profile-form { display: flex; flex-direction: column; gap: 12px; }
.profile-form label { display: flex; flex-direction: column; gap: 4px; font: 500 13px var(--mono); color: var(--muted); }
.profile-form input, .profile-form select, .pf-cls, .field { background: var(--raise); border: 1px solid var(--line); color: var(--fg); border-radius: 10px; padding: 10px 12px; font: 16px var(--body); }
.pf-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.pf-row.on { border-color: var(--green); }
.pf-pick { text-align: left; background: transparent; border: 0; display: flex; flex-direction: column; padding: 4px 8px; }
.pf-pick i { font-size: 12.5px; color: var(--muted); }
.pf-cls { padding: 6px 8px; font-size: 13px; }

/* back to paths (all new tiers) */
.back-paths { position: fixed; z-index: 30; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(10px + env(safe-area-inset-top, 0px)); }

/* simple SVG charts */
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--mono); fill: var(--muted); }
.chart .axis { stroke: var(--line); }
.chart .grid { stroke: rgba(255, 255, 255, 0.06); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font: 12px var(--mono); color: var(--muted); margin: 4px 0; }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; background: var(--c); }

/* share with teacher */
.tc-qr { width: min(260px, 100%); background: #fff; padding: 8px; border-radius: 10px; }
.tc-qr svg { display: block; width: 100%; height: auto; }
.paths-foot a.btn { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.sv-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font: 15px var(--body) !important; color: var(--fg) !important; }
.sv-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }

/* daily question */
.daily { background: var(--panel-solid); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 18px; padding: 14px 18px; }
.daily-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.daily h2 { font: 800 19px var(--display); margin: 0 0 6px; }
.daily-streak { font: 600 13px var(--mono); color: var(--amber); }
.daily-q { font-size: 16px; margin: 4px 0 10px; }
.daily-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px; }
.daily-opts .btn { min-height: 44px; text-align: left; }
.daily .feedback.good { color: var(--green); }
.daily .feedback.bad { color: var(--pink); }
