:root {
  --bg: #f5f2ec;
  --card: #ffffff;
  --ink: #18222d;
  --muted: #5d6875;
  --line: #e2ddd3;
  --primary: #0d5c63;
  --primary-dark: #094349;
  --primary-soft: #e1eeee;
  --accent: #e9a23b;
  --ok: #23875a;
  --ok-soft: #dff3e8;
  --bad: #c4423a;
  --bad-soft: #fbe4e2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(24, 34, 45, .06), 0 8px 24px rgba(24, 34, 45, .07);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --optA: #2f6fd0; --optB: #d9822b; --optC: #8a4fc7; --optD: #1f9d8f; --optE: #c9457a; --optF: #6b7a26;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }

/* ---------- transizioni ---------- */
@keyframes enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-12px); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.8); } 70% { transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .35; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.enter { animation: enter .45s var(--ease) both; }
.leave { animation: leave .18s ease-in both; pointer-events: none; }
.pop { animation: pop .5s var(--ease) both; }
.stagger > * { animation: enter .45s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .05s; } .stagger > *:nth-child(2) { animation-delay: .12s; }
.stagger > *:nth-child(3) { animation-delay: .19s; } .stagger > *:nth-child(4) { animation-delay: .26s; }
.stagger > *:nth-child(5) { animation-delay: .33s; } .stagger > *:nth-child(6) { animation-delay: .40s; }
.stagger > *:nth-child(n+7) { animation-delay: .45s; }
.shake { animation: shake .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- elementi base ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: .7rem 1.2rem; cursor: pointer;
  background: var(--primary); color: #fff; text-decoration: none;
  transition: transform .15s var(--ease), background .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(13, 92, 99, .25); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger:hover { background: var(--bad-soft); box-shadow: inset 0 0 0 1.5px var(--bad); }
.btn.accent { background: var(--accent); color: #2b1c00; }
.btn.accent:hover { background: #f0b257; box-shadow: 0 6px 16px rgba(233, 162, 59, .35); }
.btn.sm { padding: .4rem .75rem; font-size: .875rem; border-radius: 10px; }
.btn.lg { padding: .95rem 1.6rem; font-size: 1.1rem; border-radius: 14px; }
.btn.block { width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .6rem .75rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { min-height: 5rem; resize: vertical; }
.field { margin-bottom: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.hint { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.error { color: var(--bad); font-weight: 600; font-size: .9rem; min-height: 1.3em; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--primary); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: inline-block; padding: .4rem .85rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .15s var(--ease);
}
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--primary-soft); color: var(--primary-dark); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: #fbefd8; color: #8a5a08; }
.badge.grey { background: #ebe8e1; color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .5rem .75rem; border-bottom: 1.5px solid var(--line); }
td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 2rem auto; }
#toasts { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; z-index: 100; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 12px; box-shadow: var(--shadow); animation: enter .3s var(--ease) both; font-weight: 500; }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* ---------- area docenti ---------- */
.topbar { background: var(--primary-dark); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar .inner { max-width: 1100px; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: .6rem; }
.brand i { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: inline-grid; place-items: center; color: #2b1c00; font-style: normal; font-weight: 900; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 600; color: rgba(255, 255, 255, .75); background: none; border: 0; padding: .45rem .85rem; border-radius: 9px; cursor: pointer; transition: all .15s; }
.tabs button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.tabs button.on { color: var(--primary-dark); background: #fff; }
.topbar .user { font-size: .9rem; opacity: .9; }
.topbar .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.topbar .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
main.wrap { max-width: 1100px; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.head { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.head h1 { margin: 0; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(1200px 600px at 20% -10%, #dcebea, transparent), var(--bg); }
.login-card { width: min(100%, 400px); }
.quiz-card { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; margin-bottom: 1rem; transition: transform .2s var(--ease), box-shadow .2s; }
.quiz-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(24, 34, 45, .06), 0 14px 32px rgba(24, 34, 45, .1); }
.quiz-card h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.quiz-card .actions { display: flex; flex-direction: column; gap: .4rem; align-items: stretch; min-width: 150px; }
@media (max-width: 640px) { .quiz-card { grid-template-columns: 1fr; } .quiz-card .actions { flex-direction: row; flex-wrap: wrap; } }
.linkbox { display: flex; gap: .5rem; align-items: center; background: var(--bg); border-radius: 10px; padding: .4rem .4rem .4rem .75rem; margin-top: .6rem; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.linkbox .lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); flex: none; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.mode-pick label { margin: 0; position: relative; cursor: pointer; }
.mode-pick input { position: absolute; opacity: 0; }
.mode-pick .box { border: 2px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; transition: all .2s var(--ease); height: 100%; background: #fff; }
.mode-pick .box b { display: block; font-size: 1.05rem; }
.mode-pick .box span { font-weight: 400; font-size: .88rem; color: var(--muted); }
.mode-pick input:checked + .box { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.mode-pick input:focus-visible + .box { outline: 3px solid var(--accent); }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease), opacity .3s; opacity: 0; }
.collapse > div { overflow: hidden; }
.collapse.open { grid-template-rows: 1fr; opacity: 1; }
.modal-back { position: fixed; inset: 0; background: rgba(24, 34, 45, .5); display: grid; place-items: start center; padding: 4vh 1rem; overflow-y: auto; z-index: 50; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(100%, 720px); animation: enter .35s var(--ease) both; }
.modal .foot { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }
.q-item { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.q-item:last-child { border-bottom: 0; }
.q-item ol { margin: .4rem 0 0; padding-left: 1.4rem; list-style: upper-alpha; color: var(--muted); font-size: .92rem; }
.q-item li.ok { color: var(--ok); font-weight: 700; }
.opt-row { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; margin-bottom: .5rem; }
.opt-row input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: var(--ok); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }

/* ---------- barre risultati ---------- */
.bar { height: 10px; border-radius: 999px; background: #e9e5dc; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--primary); transition: width .9s var(--ease); }
.bar.ok > i { background: var(--ok); }
.ring { --p: 0; --c: var(--primary); width: 190px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #e9e5dc 0); transition: --p 1.2s var(--ease); position: relative; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.ring::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--card); }
.ring b { position: relative; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.ring.ok { --c: var(--ok); } .ring.bad { --c: var(--bad); }

/* ---------- pagine partecipanti ---------- */
.stage { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 1.25rem 1rem 2.5rem; background: radial-gradient(900px 500px at 50% -10%, #dcebea, transparent), var(--bg); }
.stage .view { width: min(100%, 620px); margin: auto 0; }
.stage .view.wide { width: min(100%, 760px); }
.course dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 1rem 0 0; }
.course dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.course dd { margin: 0; font-weight: 600; }
.waiting { display: flex; align-items: center; gap: .75rem; justify-content: center; color: var(--muted); font-weight: 600; margin-top: 1.5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.opts { display: grid; gap: .75rem; margin-top: 1.25rem; }
.opt {
  --c: var(--optA); position: relative; display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left;
  font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: .85rem 1rem; cursor: pointer; overflow: hidden;
  transition: transform .15s var(--ease), border-color .2s, background .2s, opacity .3s, box-shadow .2s;
}
.opt:nth-child(2) { --c: var(--optB); } .opt:nth-child(3) { --c: var(--optC); } .opt:nth-child(4) { --c: var(--optD); }
.opt:nth-child(5) { --c: var(--optE); } .opt:nth-child(6) { --c: var(--optF); }
.opt .letter { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; position: relative; z-index: 1; }
.opt .txt { flex: 1; position: relative; z-index: 1; }
.opt .num { position: relative; z-index: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.opt .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--c) 16%, transparent); transition: width 1s var(--ease); }
button.opt:not(:disabled):hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 8px 20px rgba(24, 34, 45, .08); }
button.opt:not(:disabled):active { transform: scale(.98); }
.opt.sel { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.opt:disabled { cursor: default; }
.opt.dim { opacity: .55; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); opacity: 1; }
.opt.right .letter { background: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); opacity: 1; }
.opt .tag { position: relative; z-index: 1; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.opt.right .tag { color: var(--ok); } .opt.wrong .tag { color: var(--bad); }
.progress { height: 8px; border-radius: 999px; background: #e3dfd6; overflow: hidden; margin-bottom: 1.25rem; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #2aa3a0); border-radius: inherit; transition: width .6s var(--ease); }
.verdict { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; padding: .5rem 1.1rem; border-radius: 999px; margin-top: 1rem; }
.verdict.ok { background: var(--ok-soft); color: var(--ok); } .verdict.bad { background: var(--bad-soft); color: var(--bad); }
.informativa { max-height: 46vh; overflow-y: auto; white-space: pre-wrap; background: var(--bg); border-radius: 12px; padding: 1rem 1.1rem; font-size: .92rem; margin: 1rem 0; border: 1px solid var(--line); }
.review { margin-top: 1.5rem; }
.review .item { padding: 1rem 0; border-top: 1px solid var(--line); }
.review .item p { font-weight: 700; margin-bottom: .5rem; }
.review li { list-style: none; padding: .3rem .6rem; border-radius: 8px; margin-bottom: .2rem; font-size: .95rem; }
.review ul { padding: 0; margin: 0; }
.review li.right { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.review li.wrong { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.explain { background: #fbf3e2; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: .7rem 1rem; margin-top: 1rem; font-size: .95rem; }

/* ---------- proiezione (docente) ---------- */
body.projector { background: #0c1f26; color: #f1f5f4; }
.proj { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1100px 700px at 85% -10%, #14424a, transparent), radial-gradient(800px 500px at 0% 110%, #1a3340, transparent), #0c1f26; }
.proj-top { display: flex; align-items: center; gap: 1rem; padding: 1rem 2.5vw; font-weight: 600; color: #a9c1c2; font-size: clamp(.85rem, 1.2vw, 1.05rem); }
.proj-top .pill { background: rgba(255, 255, 255, .08); padding: .3rem .9rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .5rem; }
.proj-top .pill .dot { width: 9px; height: 9px; background: #4fd6a0; }
.proj-main { flex: 1; display: grid; place-items: center; padding: 1vh 4vw 3vh; }
.proj-main > .view { width: 100%; max-width: 1500px; }
.lobby { display: grid; grid-template-columns: 1.25fr auto; gap: 5vw; align-items: center; }
@media (max-width: 900px) { .lobby { grid-template-columns: 1fr; text-align: center; } }
.lobby .eyebrow { color: var(--accent); font-size: clamp(.9rem, 1.4vw, 1.3rem); }
.lobby h1 { font-size: clamp(2.2rem, 5.2vw, 5rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .4em; }
.lobby .meta { font-size: clamp(1rem, 1.7vw, 1.6rem); color: #c5d6d6; }
.lobby .meta b { color: #fff; }
.lobby .meta div + div { margin-top: .3em; }
.qr { background: #fff; padding: 1.2vw; border-radius: 24px; width: clamp(240px, 27vw, 460px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); margin: 0 auto; }
.qr img { display: block; width: 100%; }
.qr-cap { text-align: center; margin-top: 1rem; font-size: clamp(.9rem, 1.3vw, 1.25rem); color: #c5d6d6; }
.qr-cap code { display: block; color: #fff; font-weight: 700; margin-top: .2rem; word-break: break-all; }
.proj .q-num { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.9rem, 1.4vw, 1.3rem); margin-bottom: .6rem; }
.proj .q-text { font-size: clamp(1.6rem, 3.3vw, 3.4rem); font-weight: 750; letter-spacing: -.015em; line-height: 1.18; margin-bottom: 4vh; max-width: 30ch * 2; }
.proj .opts { grid-template-columns: 1fr 1fr; gap: 1.4vw; }
@media (max-width: 900px) { .proj .opts { grid-template-columns: 1fr; } }
.proj .opt { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; font-size: clamp(1.05rem, 1.9vw, 2rem); padding: 1.3vw 1.5vw; border-radius: 18px; cursor: default; }
.proj .opt .letter { width: clamp(2.4rem, 3.4vw, 3.6rem); height: clamp(2.4rem, 3.4vw, 3.6rem); font-size: 1em; border-radius: 12px; }
.proj .opt .fill { background: color-mix(in srgb, var(--c) 38%, transparent); }
.proj .opt.dim { opacity: .4; }
.proj .opt.right { background: rgba(60, 200, 140, .16); border-color: #4fd6a0; box-shadow: 0 0 0 4px rgba(79, 214, 160, .2), 0 0 60px rgba(79, 214, 160, .18); }
.proj .opt.right .fill { background: rgba(79, 214, 160, .35); }
.proj .opt.right .tag { color: #7ff0c0; }
.proj .explain { background: rgba(233, 162, 59, .12); color: #f6e3c1; font-size: clamp(1rem, 1.5vw, 1.5rem); margin-top: 3vh; }
.proj-bar { display: flex; align-items: center; gap: 1rem; padding: 1rem 2.5vw; background: rgba(0, 0, 0, .28); border-top: 1px solid rgba(255, 255, 255, .08); flex-wrap: wrap; }
.proj-bar .count { font-size: clamp(1rem, 1.5vw, 1.4rem); font-weight: 700; color: #c5d6d6; }
.proj-bar .count b { color: #fff; font-size: 1.3em; font-variant-numeric: tabular-nums; }
.proj-bar .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.proj-bar .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.proj-bar .btn.danger { color: #ff9d96; box-shadow: inset 0 0 0 1.5px rgba(255, 157, 150, .4); }
.proj-bar .btn.danger:hover { background: rgba(196, 66, 58, .25); }
.summary-grid { display: grid; grid-template-columns: auto 1fr; gap: 5vw; align-items: start; }
@media (max-width: 900px) { .summary-grid { grid-template-columns: 1fr; } }
.proj .ring { width: clamp(200px, 22vw, 340px); background: conic-gradient(#4fd6a0 calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
.proj .ring::before { background: #10272f; inset: 7%; }
.proj .ring b { font-size: clamp(2.6rem, 5vw, 5rem); color: #fff; }
.stats { display: flex; gap: 2rem; justify-content: center; margin-top: 1.5rem; }
.stats div { text-align: center; }
.stats b { display: block; font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 800; }
.stats span { color: #a9c1c2; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.sum-list { max-height: 68vh; overflow-y: auto; padding-right: .5rem; }
.sum-item { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sum-item .t { display: flex; gap: 1rem; justify-content: space-between; font-size: clamp(.95rem, 1.35vw, 1.3rem); font-weight: 600; margin-bottom: .5rem; }
.sum-item .t b { font-variant-numeric: tabular-nums; color: #7ff0c0; }
.proj .bar { background: rgba(255, 255, 255, .1); height: 12px; }
.proj .bar > i { background: #4fd6a0; }
