/* CK Launchpad — all colours, radii, fonts and the background live in :root so the look can be re-skinned in one place. */
:root {
  /* surfaces */
  --bg-0: #070B14;
  --bg-1: #0B1F3A;
  /* frosted glass: 6-12% white over a slight navy tint; blur + saturate come from --glass-blur */
  --glass: linear-gradient(150deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045)), rgba(8, 16, 34, .34);
  --glass-strong: linear-gradient(150deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055)), rgba(8, 16, 34, .66);
  --glass-hi: linear-gradient(150deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08)), rgba(8, 16, 34, .34);
  --glass-solid: #0f1c33;           /* fallback when backdrop-filter is unsupported, and sticky table cells */
  --glass-blur: blur(24px) saturate(160%);
  --glass-edge: rgba(255, 255, 255, .14);
  --glass-shadow: 0 14px 44px rgba(2, 6, 16, .42), 0 2px 8px rgba(2, 6, 16, .3);
  --gold-glow: 0 0 0 1px rgba(230, 195, 92, .38), 0 0 30px rgba(230, 195, 92, .16);
  --hair: rgba(255, 255, 255, .13);
  --hair-gold: rgba(230, 195, 92, .5);
  --scrim: rgba(4, 8, 16, .62);
  /* brand */
  --gold: #C9A227;
  --gold-2: #E6C35C;
  --gold-hi: #F4D67A;
  --gold-tint: rgba(230, 195, 92, .14);
  --on-gold: #14100A;
  --cyan: #3FD0FF;
  --blue: #2F7BFF;
  --green: #3DDC97;
  --green-tint: rgba(61, 220, 151, .12);
  --violet: #9B8CFF;
  --danger: #FF7A7A;
  /* text */
  --text: #F3F6FC;
  --text-2: #B4C0D6;
  --text-3: #8FA0BC;
  /* shape */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  /* type */
  --font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;
  /* background images (drop-in replaceable) */
  --bg-image-mobile: url("assets/bg-mobile.webp");
  --bg-image-desktop: url("assets/bg-desktop.webp");
  --bg-scrim: linear-gradient(180deg, rgba(7, 11, 20, .25), rgba(7, 11, 20, .1) 40%, rgba(7, 11, 20, .45));
  /* motion */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-spring: cubic-bezier(.32, .72, 0, 1);
  --tabs-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg-0); color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .head { font-family: var(--font-head); letter-spacing: -.01em; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- background layers ---------- */
.bg {
  position: fixed; inset: 0; z-index: -2;
  background: var(--bg-scrim), var(--bg-image-mobile) center / cover no-repeat,
    radial-gradient(120% 80% at 50% 0%, var(--bg-1), var(--bg-0));
  background-color: var(--bg-0);
}
@media (min-width: 768px) {
  .bg { background: var(--bg-scrim), var(--bg-image-desktop) center / cover no-repeat, radial-gradient(120% 80% at 50% 0%, var(--bg-1), var(--bg-0)); }
}
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .7; }

/* ---------- shell ---------- */
.shell { position: relative; min-height: 100vh; min-height: 100dvh; }
.app { width: min(100%, 560px); margin: 0 auto; padding: 0 18px calc(var(--tabs-h) + 40px + env(safe-area-inset-bottom)); transition: width .3s var(--ease-out); }
.app.wide { width: min(100%, 1000px); }
.app.no-tabs { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

.top { position: sticky; top: 0; z-index: 15; padding: calc(env(safe-area-inset-top) + 12px) 0 10px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)), rgba(7, 11, 20, .3); border-bottom: 1px solid var(--glass-edge); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100%, 560px); margin: 0 auto; padding: 0 18px; transition: width .3s var(--ease-out); }
.shell.wide .top-in { width: min(100%, 1000px); }
.shell.no-tabs .brand { visibility: hidden; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: var(--gold-2); filter: drop-shadow(0 0 10px rgba(230, 195, 92, .55)); }
.brand-mark svg { width: 34px; height: 34px; transform: rotate(0deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font: 700 18px/1.2 var(--font-head); color: var(--gold-2); }
.brand-text span { font-size: 14px; color: var(--text-2); }
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--hair); color: var(--text);
  transition: transform .16s var(--ease-out), background-color .2s;
}
.icon-btn:active { transform: scale(.94); }

/* step indicator */
.steps { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0 4px; font-size: 14px; color: var(--text-2); }
.steps .segs { display: flex; gap: 8px; flex: 1; max-width: 200px; }
.steps .seg { height: 5px; flex: 1; border-radius: 4px; background: rgba(150, 175, 220, .22); position: relative; overflow: hidden; }
.steps .seg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); box-shadow: 0 0 10px rgba(230, 195, 92, .6); }
.steps .seg.on::after { transform: scaleX(1); }

main { outline: none; padding-top: 14px; }
.view { animation: enter .32s var(--ease-spring) both; }
.view.back { animation-name: enter-back; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes enter-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes enter-fwd { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.view.fwd { animation-name: enter-fwd; }

h1 { font-size: 34px; line-height: 1.12; font-weight: 800; }
.sub { color: var(--text-2); margin-top: 6px; font-size: 16px; }

/* ---------- glass + buttons ---------- */
.card {
  background: var(--glass); border: 1px solid var(--hair); border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.card.glow { border-color: rgba(230, 195, 92, .34); box-shadow: var(--glass-shadow), var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-md); border: 1px solid var(--hair);
  background: var(--glass); color: var(--text); font-weight: 600; font-size: 16px;
  transition: transform .16s var(--ease-out), box-shadow .2s, background-color .2s, opacity .2s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.gold {
  border: 1px solid rgba(255, 233, 160, .55);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-2) 45%, var(--gold));
  color: var(--on-gold); font-family: var(--font-head); font-weight: 700; font-size: 17px;
  box-shadow: 0 8px 26px rgba(230, 195, 92, .3), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn.gold.big { min-height: 58px; width: 100%; font-size: 18px; }
.btn.line { border-color: var(--hair-gold); color: var(--gold-2); background: rgba(230, 195, 92, .06); }
.btn.sm { white-space: nowrap; min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
.btn.round { width: 56px; min-width: 56px; padding: 0; border-radius: var(--r-md); }
.btn.tile { justify-content: space-between; text-align: left; padding: 0 16px; min-height: 64px; flex: 1; line-height: 1.25; }
.btn .tile-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(63, 160, 255, .16); color: var(--cyan); border: 1px solid rgba(63, 160, 255, .35); flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) { background: var(--glass-hi); }
  .btn.gold:hover:not(:disabled) { box-shadow: 0 10px 32px rgba(230, 195, 92, .42), inset 0 1px 0 rgba(255, 255, 255, .5); background: linear-gradient(180deg, #FBE28C, var(--gold-2) 45%, var(--gold)); }
  .chip:hover { border-color: var(--hair-gold); }
}
.spin { width: 18px; height: 18px; border: 2px solid rgba(20, 16, 10, .3); border-top-color: var(--on-gold); border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- welcome ---------- */
.welcome { text-align: center; padding-top: 6px; }
.logo-orb { width: 96px; height: 96px; margin: 8px auto 16px; border-radius: 28px; display: grid; place-items: center; color: var(--gold-2);
  background: radial-gradient(circle at 30% 20%, rgba(230, 195, 92, .28), rgba(230, 195, 92, .04) 70%); border: 1px solid var(--hair-gold);
  box-shadow: 0 0 44px rgba(230, 195, 92, .28), inset 0 0 24px rgba(230, 195, 92, .12); animation: float 6s ease-in-out infinite; }
.logo-orb svg { width: 52px; height: 52px; }
@keyframes float { 50% { transform: translateY(-6px); } }
.eyebrow { font: 600 13px/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.welcome .wordmark { font: 800 40px/1.05 var(--font-head); margin-top: 10px; }
.welcome h1 { margin-top: 26px; font-size: 30px; }
.welcome .name { background: linear-gradient(90deg, var(--gold-hi), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skel { display: inline-block; width: 9ch; height: .9em; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.16), rgba(255,255,255,.06)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }
.howto { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.howto li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.howto .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-tint); border: 1px solid var(--hair-gold); color: var(--gold-2); flex: none; }
.howto b { display: block; font: 700 16px/1.25 var(--font-head); }
.howto span { color: var(--text-2); font-size: 15px; }
.private { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 20px 0 18px; color: var(--text-2); font-size: 15px; }
.private .ic { color: var(--green); }
.foot { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 22px; letter-spacing: .04em; }
.notice { margin-top: 18px; padding: 14px 16px; text-align: left; color: var(--text-2); font-size: 15px; }
.notice.warn { border-color: rgba(255, 122, 122, .4); }
.err-view { text-align: center; padding-top: 12vh; }
.err-view .btn { margin-top: 22px; }

/* ---------- ring (step 1) ---------- */
.ring-box { position: relative; width: 236px; height: 236px; margin: 18px auto 6px; }
.ring-box svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { stroke: rgba(150, 175, 220, .16); }
.ring-prog { stroke: url(#gGold); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease-out); filter: drop-shadow(0 0 10px rgba(230, 195, 92, .65)); }
.ring-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-mid .big { font: 800 56px/1 var(--font-head); color: var(--gold-2); text-shadow: 0 0 24px rgba(230, 195, 92, .35); }
.ring-mid .big small { font-size: 34px; color: var(--text-2); font-weight: 600; }
.ring-mid .lbl { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.hand { position: absolute; right: -6px; top: 8px; width: 118px; text-align: center; font: 600 24px/1.05 var(--font-hand); color: var(--gold-2); transform: rotate(-9deg); pointer-events: none; }
.hand svg { display: block; width: 46px; height: 40px; margin: 6px 0 0 6px; color: var(--gold-2); }
@media (max-width: 400px) { .hand { right: -14px; width: 100px; font-size: 21px; } }

.two { display: flex; gap: 10px; margin-top: 12px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.section-h h2 { font-size: 20px; font-weight: 700; }
.section-h span { color: var(--text-3); font-size: 14px; }

.adder { display: flex; gap: 10px; margin-top: 14px; }
.field {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-md);
  background: rgba(6, 14, 30, .6); border: 1px solid var(--hair); color: var(--text); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: var(--text-3); }
.field:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63, 208, 255, .18); }
textarea.field { padding: 14px 16px; min-height: 180px; resize: vertical; line-height: 1.45; }
.adder .btn { flex: none; }

.people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pchip { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 4px 0 14px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--hair); font-size: 15px; max-width: 100%; animation: pop .3s var(--ease-spring) both; }
.pchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.pchip button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--text-3); display: grid; place-items: center; }
.pchip button:hover { color: var(--danger); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* memory prompts */
.jog { padding: 14px; margin-bottom: 12px; }
.jog-head { display: flex; align-items: center; gap: 12px; }
.jog-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(63, 160, 255, .14); border: 1px solid rgba(63, 160, 255, .32); color: var(--cyan); }
.jog-t { flex: 1; min-width: 0; }
.jog-t b { display: block; font: 700 16px/1.25 var(--font-head); }
.jog-t span { display: block; color: var(--text-3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jog-body { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.jog.open .jog-body { display: block; animation: enter .26s var(--ease-out) both; }
.jog-body ul { margin: 0 0 12px; padding: 0 0 0 18px; color: var(--text-2); font-size: 15px; }
.jog-body li { margin: 4px 0; }
.jnames { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jnames:empty { display: none; }
.jn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(150, 175, 220, .12); border: 1px solid var(--hair); font-size: 14px; }

.actions { position: sticky; bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom)); margin-top: 22px; z-index: 5; display: flex; gap: 10px; padding-top: 10px; }
.actions::before { content: ""; position: absolute; inset: -14px -18px -10px; background: linear-gradient(180deg, transparent, rgba(7, 11, 20, .7) 40%); z-index: -1; pointer-events: none; }
.actions .btn.gold { flex: 1; }
.hint { color: var(--text-3); font-size: 14px; text-align: center; margin-top: 10px; }

/* ---------- chips ---------- */
.grp { margin-top: 20px; }
.lbl { font: 600 16px/1.3 var(--font-head); margin-bottom: 10px; }
.lbl small { font: 400 14px var(--font-body); color: var(--text-3); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px;
  border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--hair); color: var(--text); font-size: 15px; font-weight: 500;
  transition: transform .14s var(--ease-out), border-color .2s, background-color .2s, box-shadow .2s;
}
.chip:active { transform: scale(.96); }
.chip .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-3); position: relative; flex: none; transition: border-color .2s; }
.chip .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold-2); transform: scale(0); transition: transform .22s var(--ease-spring); }
.chip.on { border-color: var(--gold-2); background: var(--gold-tint); box-shadow: 0 0 16px rgba(230, 195, 92, .18); }
.chip.on .dot { border-color: var(--gold-2); }
.chip.on .dot::after { transform: scale(1); }

/* ---------- rate card ---------- */
.rate-card { padding: 18px; touch-action: pan-y; will-change: transform; }
.pcard-top { display: flex; align-items: center; gap: 14px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 700 22px var(--font-head); color: #fff; flex: none; border: 2px solid rgba(255, 255, 255, .5); box-shadow: 0 0 20px rgba(63, 160, 255, .3); }
.pinfo { flex: 1; min-width: 0; }
.pinfo h2 { font-size: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinfo p { color: var(--text-2); font-size: 15px; }
.pmeta { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 12px; color: var(--text-2); font-size: 14px; }
.dots { display: flex; margin: 0 -2px 14px; overflow: hidden; }
.dots button { flex: 1 1 0; max-width: 24px; height: 28px; border: 0; background: none; display: grid; place-items: center; padding: 0; }
.dots button i { width: 8px; height: 8px; border-radius: 50%; background: rgba(150, 175, 220, .3); transition: transform .2s var(--ease-out), background-color .2s; }
.dots button.done i { background: var(--gold); }
.dots button.cur i { transform: scale(1.7); background: var(--gold-hi); box-shadow: 0 0 10px rgba(230, 195, 92, .8); }
.slider-row { display: flex; align-items: baseline; justify-content: space-between; }
.slider-row .val { font: 700 22px var(--font-head); color: var(--gold-2); }
.slider-row .val small { color: var(--text-2); font-size: 16px; font-weight: 500; }
.slider-lbl { color: var(--gold-2); font-size: 15px; font-weight: 600; margin-top: 2px; min-height: 22px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 4px 0 0; --pct: 50%; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)) 0 / var(--pct) 100% no-repeat, rgba(150, 175, 220, .2); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 6px; background: rgba(150, 175, 220, .2); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF3C4, var(--gold-2) 60%, var(--gold)); border: 2px solid #fff6d6; box-shadow: 0 0 0 5px rgba(230, 195, 92, .18), 0 4px 14px rgba(0, 0, 0, .5); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF3C4, var(--gold-2) 60%, var(--gold)); border: 2px solid #fff6d6; box-shadow: 0 0 0 5px rgba(230, 195, 92, .18); }
input[type=range].unset { --pct: 0%; opacity: .7; }
input[type=range].unset::-webkit-slider-thumb { background: rgba(150, 175, 220, .5); border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.scale { display: flex; justify-content: space-between; color: var(--text-3); font-size: 13px; margin-top: -2px; }
.more { margin-top: 20px; border-top: 1px solid var(--hair); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--text-2); min-height: 32px; list-style-position: inside; }
.more .row { display: grid; gap: 10px; margin-top: 12px; }
.other-in { margin-top: 10px; }
.banner { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--hair); background: rgba(150, 175, 220, .08); transition: background-color .3s, border-color .3s; }
.banner .b-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(150, 175, 220, .18); flex: none; color: var(--text-2); }
.banner b { display: block; font-family: var(--font-head); font-size: 16px; }
.banner span { color: var(--text-2); font-size: 14px; }
.banner.ok { border-color: rgba(61, 220, 151, .5); background: var(--green-tint); }
.banner.ok .b-ic { background: var(--green); color: #05261a; }
.banner.ok b { color: var(--green); }
.empty { padding: 28px 20px; text-align: center; color: var(--text-2); }
.empty .btn { margin-top: 16px; }

/* ---------- my list ---------- */
.list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.score-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; margin-top: 18px; }
.score-card h2 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.score-num { font: 800 68px/1 var(--font-head); color: var(--gold-2); margin-top: 6px; text-shadow: 0 0 28px rgba(230, 195, 92, .35); }
.score-num small { font-size: 26px; color: var(--text-2); font-weight: 600; margin-left: 6px; }
.score-msg { color: var(--text-2); font-size: 15px; margin-top: 8px; max-width: 30ch; }
.gauge { width: 132px; height: 132px; flex: none; position: relative; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge .g-track { stroke: rgba(150, 175, 220, .18); }
.gauge .g-prog { stroke: url(#gBlue); stroke-linecap: round; transition: stroke-dasharray 1.1s var(--ease-out); filter: drop-shadow(0 0 8px rgba(63, 208, 255, .5)); }
.gauge .g-mid { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-2); }
.gauge .g-mid .ic { width: 38px; height: 38px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.tile { padding: 14px 6px 12px; text-align: center; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--hair); }
.tile .ic { width: 26px; height: 26px; margin: 0 auto 4px; display: block; }
.tile b { display: block; font: 700 26px/1.15 var(--font-head); }
.tile span { display: block; font-size: 13px; color: var(--text-2); line-height: 1.25; }
.tile.t1 { border-color: rgba(63, 208, 255, .5); } .tile.t1 .ic { color: var(--cyan); }
.tile.t2 { border-color: rgba(61, 220, 151, .5); } .tile.t2 .ic { color: var(--green); }
.tile.t3 { border-color: rgba(230, 195, 92, .55); } .tile.t3 .ic { color: var(--gold-2); }
.tile.t4 { border-color: rgba(155, 140, 255, .5); } .tile.t4 .ic { color: var(--violet); }
.tbl-wrap { margin-top: 12px; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--hair); background: var(--glass); -webkit-overflow-scrolling: touch; }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 820px; font-size: 15px; }
th, td { padding: 12px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(126, 168, 230, .12); }
th { font: 600 13px var(--font-body); color: var(--text-2); background: rgba(255, 255, 255, .05); }
tbody tr:last-child td { border-bottom: 0; }
td.c1, th.c1 { position: sticky; left: 0; z-index: 2; width: 44px; min-width: 44px; background: var(--glass-solid); color: var(--text-3); text-align: center; padding: 12px 6px; }
td.c2, th.c2 { position: sticky; left: 44px; z-index: 2; background: var(--glass-solid); font-weight: 600; min-width: 130px; box-shadow: 8px 0 12px -8px rgba(0, 0, 0, .6); }
td .none { color: var(--text-3); }
td.st { text-align: center; }
td.st .ic { width: 20px; height: 20px; }
.tick { color: var(--green); } .star { color: var(--gold-2); fill: var(--gold-2); } .dash { color: var(--text-3); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .ic { width: 16px; height: 16px; }
.list-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.list-actions .btn { flex: 1 1 200px; }
.sent-note { color: var(--text-2); font-size: 14px; text-align: center; margin-top: 12px; }
.sent-note b { color: var(--green); font-weight: 600; }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20;
  width: min(calc(100% - 24px), 560px); height: 64px; display: flex; padding: 6px; gap: 4px;
  background: var(--glass-strong); border: 1px solid var(--hair); border-radius: 22px;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.tab { flex: 1; border: 0; background: none; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 500; color: var(--text-3); transition: color .2s, background-color .2s, transform .14s var(--ease-out); }
.tab:active { transform: scale(.96); }
.tab:disabled { opacity: .4; }
.tab.on { color: var(--gold-2); background: linear-gradient(180deg, rgba(230, 195, 92, .16), rgba(230, 195, 92, .05)); box-shadow: inset 0 0 0 1px rgba(230, 195, 92, .25); }
.tab .ic { width: 22px; height: 22px; }

/* ---------- sheet / toast ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .22s var(--ease-out); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet { position: relative; width: min(100%, 560px); max-height: 88dvh; overflow: auto; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  background: var(--glass-strong); border: 1px solid var(--hair); border-bottom: 0; transform: translateY(100%); transition: transform .34s var(--ease-spring); outline: none; }
.sheet-wrap.on .scrim { opacity: 1; }
.sheet-wrap.on .sheet { transform: none; }
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; border-bottom: 1px solid var(--hair); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .28s var(--ease-out), opacity .2s; } .sheet-wrap.on .sheet { opacity: 1; } }
.grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(150, 175, 220, .35); margin: 4px auto 14px; }
.sheet h2 { font-size: 22px; font-weight: 700; }
.sheet .sub { margin-bottom: 14px; }
.sheet .btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sheet .btns .btn { flex: 1 1 140px; }
.sheet .field + .field { margin-top: 10px; }
.mitem { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 12px; margin-top: 8px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--hair); text-align: left; font-weight: 500; }
.preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-height: 140px; overflow: auto; }
.preview .jn { min-height: 30px; }
.found { margin-top: 10px; color: var(--text-2); font-size: 14px; min-height: 22px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 34px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); z-index: 60; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: var(--r-md); background: var(--glass-strong); border: 1px solid var(--hair-gold); color: var(--text); font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .28s var(--ease-out); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(255, 122, 122, .6); }

/* ---------- launch success ---------- */
.launch { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: radial-gradient(90% 70% at 50% 40%, rgba(11, 31, 58, .94), rgba(4, 8, 16, .97)); opacity: 0; transition: opacity .35s var(--ease-out); text-align: center; overflow: hidden; }
.launch.on { opacity: 1; }
.launch canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.launch-in { position: relative; max-width: 420px; }
.launch .rocket { width: 84px; height: 84px; margin: 0 auto 6px; color: var(--gold-2); filter: drop-shadow(0 0 18px rgba(230, 195, 92, .7)); animation: lift 1.1s var(--ease-out) both; }
.launch .rocket svg { width: 100%; height: 100%; }
@keyframes lift { 0% { transform: translateY(80px) scale(.8); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.launch h2 { font-size: 34px; font-weight: 800; margin-top: 4px; }
.launch .gauge { width: 190px; height: 190px; margin: 18px auto 6px; }
.launch .g-mid { display: grid; place-content: center; }
.launch .g-mid b { font: 800 54px/1 var(--font-head); color: var(--gold-2); display: block; }
.launch .g-mid small { color: var(--text-2); font-size: 14px; }
.launch p { color: var(--text-2); margin-top: 10px; }
.launch .btn { margin-top: 24px; min-width: 220px; }

@media (max-width: 380px) {
  h1 { font-size: 30px; }
  .tiles { gap: 6px; }
  .tile b { font-size: 22px; }
  .gauge { width: 108px; height: 108px; }
  .score-num { font-size: 58px; }
}
@media (min-width: 720px) {
  .tiles { gap: 14px; }
  .score-card { padding: 24px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #fx { display: none; }
}

/* ---------- glass pass: real frosted glass with a fading top-edge highlight ---------- */
.card, .tile, .tabs, .sheet, .top, .toast, .tbl-wrap, .icon-btn, .btn:not(.gold) {
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.card, .tile, .sheet { position: relative; }
.card::before, .tile::before, .tabs::before, .sheet::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .02) 70%, rgba(255, 255, 255, .1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tabs { border-color: rgba(255, 255, 255, .08); }
.jog { transition: box-shadow .3s var(--ease-out), border-color .3s; }
.jog.open, .tab.on { border-color: rgba(230, 195, 92, .4); box-shadow: var(--glass-shadow), var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, .2); }
.tab.on { box-shadow: inset 0 0 0 1px rgba(230, 195, 92, .3), 0 0 18px rgba(230, 195, 92, .15); }
.tile { box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .14); }
.sheet { box-shadow: 0 -18px 60px rgba(0, 0, 0, .5); }
@media (min-width: 640px) { .sheet { box-shadow: 0 24px 80px rgba(0, 0, 0, .55); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .tile, .tabs, .sheet, .top, .toast, .tbl-wrap, .icon-btn, .btn:not(.gold), .chip, .pchip { background: var(--glass-solid); }
  .top { background: rgba(9, 16, 30, .96); }
}
