/* AXYS G1 app UI: tokens built out from the brand sheet (black, white, grey #6D6E71, green #8DC63F) */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --grey: #6D6E71;
  --lime: #8DC63F;

  --bg: #000000;
  --surface: #0D0E0F;
  --surface-2: #151618;
  --surface-3: #1E2023;
  --line: #24262A;
  --line-2: #33363B;
  --text: #F3F4F1;
  --text-2: #A7A9AC;
  --text-3: #6D6E71;

  --lime-hi: #A9DB66;
  --lime-press: #6E9E2C;
  --lime-ink: #0C1505;
  --lime-10: rgba(141, 198, 63, .10);
  --lime-20: rgba(141, 198, 63, .20);
  --amber: #F2B33D;
  --red: #E5484D;
  --blue: #6AA8FF;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --display: 'Michroma', 'Manrope', sans-serif;
  --ui: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { display: block; }

/* ---------------- phone screen ---------------- */
.screen {
  width: 390px; height: 844px; position: relative; overflow: hidden;
  background: var(--bg); color: var(--text); font-family: var(--ui); font-size: 14px; line-height: 1.35;
  display: flex; flex-direction: column;
  font-feature-settings: "tnum" 1;
}
.os-bar { height: 47px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.os-bar .os-r { display: flex; gap: 6px; align-items: center; }
.app-bar { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 10px; position: relative; z-index: 3; }
.app-bar .ttl { font-family: var(--display); font-size: 10.5px; letter-spacing: .3em; color: var(--text-2); text-transform: uppercase; flex: 1; margin-left: 4px; white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; transition: background .25s var(--ease), transform .2s var(--ease); }
.icon-btn:active, .icon-btn.is-pressed { background: var(--surface-3); transform: scale(.94); }
.batt { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--text); padding: 6px 10px 6px 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.batt .dev { color: var(--text-3); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.batt-cells { display: flex; gap: 2px; padding: 2px; border: 1.5px solid var(--text-2); border-radius: 4px; position: relative; }
.batt-cells::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 5px; border-radius: 0 2px 2px 0; background: var(--text-2); }
.batt-cells i { width: 4px; height: 8px; border-radius: 1px; background: var(--surface-3); }
.batt-cells i.on { background: var(--lime); }

.body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 16px 24px; scrollbar-width: none; }
.body::-webkit-scrollbar { display: none; }
.home-ind { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .55); z-index: 9; }

h1.scr { font-family: var(--ui); font-weight: 600; font-size: 26px; letter-spacing: -.02em; line-height: 1.12; }
.eyebrow { font-family: var(--display); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-2); }
.lime { color: var(--lime); }
.red { color: var(--red); }
.amber { color: var(--amber); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); position: relative; overflow: hidden; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 11.5px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.chip.ok { color: var(--lime); background: var(--lime-10); border-color: rgba(141, 198, 63, .28); }
.chip.warn { color: var(--amber); background: rgba(242, 179, 61, .1); border-color: rgba(242, 179, 61, .3); }
.chip.bad { color: var(--red); background: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .32); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(141, 198, 63, .55); } 70% { box-shadow: 0 0 0 7px rgba(141, 198, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(141, 198, 63, 0); } }

/* ---------------- buttons + pressed states ---------------- */
.btn { position: relative; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s; overflow: hidden; isolation: isolate; user-select: none; }
.btn-primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 28px -12px rgba(141, 198, 63, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:active, .btn-primary.is-pressed { transform: scale(.97); background: var(--lime-press); box-shadow: 0 2px 8px -4px rgba(141, 198, 63, .6), inset 0 3px 8px rgba(0, 0, 0, .35); color: #0a1204; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.btn-secondary:active, .btn-secondary.is-pressed { transform: scale(.97); background: var(--surface-3); border-color: var(--lime); color: var(--lime); }
.btn-ghost { height: 44px; background: transparent; color: var(--text-2); border: 1px solid var(--line); font-size: 12px; }
.btn-ghost:active, .btn-ghost.is-pressed { background: var(--lime-10); color: var(--lime); border-color: rgba(141, 198, 63, .4); transform: scale(.97); }
.btn[disabled], .btn.is-disabled { background: var(--surface-2); color: var(--text-3); box-shadow: none; border: 1px dashed var(--line-2); cursor: not-allowed; }
.btn-sm { height: 36px; border-radius: 12px; font-size: 11px; padding: 0 14px; width: auto; letter-spacing: .1em; }
/* haptic ripple on press */
.btn .ripple, .tap-ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(0); background: rgba(255, 255, 255, .35); animation: ripple .6s var(--ease) forwards; z-index: -1; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.haptic { position: absolute; pointer-events: none; z-index: 20; }
.haptic i { position: absolute; left: 50%; top: 50%; border: 1.5px solid var(--lime); border-radius: 50%; transform: translate(-50%, -50%); animation: hap .7s var(--ease) forwards; opacity: 0; }
.haptic i:nth-child(2) { animation-delay: .08s; }
.haptic i:nth-child(3) { animation-delay: .16s; }
@keyframes hap { 0% { width: 10px; height: 10px; opacity: .9; } 100% { width: 90px; height: 90px; opacity: 0; } }

/* ---------------- system screen ---------------- */
.fw { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: linear-gradient(90deg, rgba(242, 179, 61, .12), rgba(242, 179, 61, .03)); border: 1px solid rgba(242, 179, 61, .3); }
.fw .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(242, 179, 61, .14); color: var(--amber); flex: none; }
.fw .t { flex: 1; min-width: 0; }
.fw b { display: block; font-size: 13.5px; font-weight: 700; }
.fw small { font-size: 12px; color: var(--text-2); }
.fw .bar { height: 3px; border-radius: 2px; background: var(--line-2); margin-top: 6px; overflow: hidden; display: none; }
.fw .bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .2s linear; }
.fw.updating .bar { display: block; }
.fw.done { background: var(--lime-10); border-color: rgba(141, 198, 63, .3); }
.fw.done .ic { background: var(--lime-20); color: var(--lime); }

.net { height: 372px; margin-top: 12px; background: #050505; }
.net .render { position: absolute; width: 404px; max-width: none; left: -21px; top: 2px; opacity: .92; }
.net::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .8) 100%); pointer-events: none; }
.net-head { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.net-head .eyebrow { color: var(--text-2); }
.net svg.links { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.node { position: absolute; z-index: 4; transform: translate(-50%, -50%); }
.node .ring { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--lime); display: grid; place-items: center; background: rgba(0, 0, 0, .45); backdrop-filter: blur(3px); }
.node .ring i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.node.off .ring { border-color: var(--red); }
.node.off .ring i { background: var(--red); box-shadow: 0 0 12px var(--red); }
.node .lbl { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 9px; border-radius: 10px; background: rgba(13, 14, 15, .86); border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; line-height: 1.2; }
.node .lbl small { display: block; color: var(--text-2); font-weight: 600; font-size: 10px; letter-spacing: .04em; }
.node .lbl.l { right: 40px; } .node .lbl.r { left: 40px; }
.net-foot { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 3; display: flex; gap: 8px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tile { padding: 12px 13px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-height: 112px; display: flex; flex-direction: column; gap: 8px; position: relative; transition: transform .2s var(--ease), border-color .25s, background .25s; text-align: left; }
.tile:active, .tile.is-pressed { transform: scale(.97); border-color: var(--lime); background: var(--surface-2); }
.tile .top { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); }
.tile .big { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.tile .sub { font-size: 11.5px; color: var(--text-2); margin-top: auto; }
.tile .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.tile.ok .ico { background: var(--lime-10); color: var(--lime); }
.tile.bad .ico { background: rgba(229, 72, 77, .12); color: var(--red); }
.switch { width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; transition: background .25s var(--ease); flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch.on { background: var(--lime); }
.switch.on::after { transform: translateX(16px); }
.cam-mini { height: 46px; position: relative; }

/* ---------------- profile ---------------- */
.pf-head { display: flex; gap: 16px; align-items: center; padding: 6px 2px 16px; }
.avatar-ring { width: 92px; height: 92px; position: relative; flex: none; }
.avatar-ring img { position: absolute; inset: 7px; width: 78px; height: 78px; border-radius: 50%; object-fit: cover; }
.avatar-ring > svg { position: absolute; inset: 0; }
.pf-head .nm { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pf-head .em { color: var(--text-2); font-size: 13px; margin: 2px 0 8px; }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 3px; position: relative; }
.seg button { flex: 1; height: 36px; border-radius: 11px; font-weight: 700; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; z-index: 1; transition: color .25s; }
.seg button.on { color: var(--lime-ink); }
.seg .knob { position: absolute; top: 3px; bottom: 3px; border-radius: 11px; background: var(--lime); transition: left .3s var(--ease), width .3s var(--ease); }
.row2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.field { padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.field .eyebrow { margin-bottom: 9px; }
.hcp { display: flex; align-items: center; justify-content: space-between; }
.hcp .v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.step { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 18px; transition: transform .15s var(--ease), background .2s; }
.step:active, .step.is-pressed { transform: scale(.9); background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.member { margin-top: 10px; padding: 16px; border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, rgba(141, 198, 63, .2), rgba(141, 198, 63, 0) 55%), var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.member .tier { display: flex; align-items: center; justify-content: space-between; }
.member .tier b { font-family: var(--display); font-size: 13px; letter-spacing: .2em; }
.tier-track { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tier-track div { padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 11.5px; color: var(--text-2); }
.tier-track div b { display: block; color: var(--text); font-size: 12.5px; }
.tier-track .cur { border-color: var(--text-2); }
.tier-track .pro { border-color: rgba(141, 198, 63, .5); background: var(--lime-10); }
.tier-track .pro b { color: var(--lime); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.stat { padding: 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; }
.stat .v small { font-size: 13px; color: var(--text-2); font-weight: 600; margin-left: 2px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 8px; }
.spark i { flex: 1; border-radius: 2px; background: var(--line-2); }
.spark i.on { background: var(--lime); }
.streak { margin-top: 10px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.streak .hd { display: flex; justify-content: space-between; align-items: baseline; }
.streak .hd b { font-size: 24px; letter-spacing: -.03em; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.days div { text-align: center; font-size: 10.5px; color: var(--text-3); font-weight: 700; }
.days div i { display: grid; place-items: center; height: 34px; border-radius: 11px; background: var(--surface-2); margin-bottom: 5px; border: 1px solid var(--line); }
.days div.on i { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.days div.today i { background: transparent; border: 1.5px dashed var(--lime); color: var(--lime); }
.rec-bar { height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 12px; position: relative; }
.rec-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--lime-press), var(--lime)); }
.rec-bar span { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--text); right: 0; }

/* ---------------- 3D stages ---------------- */
.stage { position: relative; border-radius: 26px; overflow: hidden; background: radial-gradient(70% 55% at 50% 58%, #15171a 0%, #060607 70%); border: 1px solid var(--line); }
.stage > canvas, .stage > img.still { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stage-ov { position: absolute; z-index: 3; }
.match { width: 74px; height: 74px; display: grid; place-items: center; position: relative; }
.match > svg { position: absolute; inset: 0; }
.match b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.match b small { font-size: 10px; }
.legend { display: flex; gap: 12px; font-size: 11px; font-weight: 700; color: var(--text-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.vo { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.vo .spk { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); flex: none; transition: transform .2s var(--ease); }
.vo .spk:active, .vo .spk.is-pressed { transform: scale(.9); background: var(--lime-press); }
.vo .cap { flex: 1; font-size: 13.5px; line-height: 1.35; }
.wave { display: flex; gap: 2px; align-items: center; height: 18px; margin-bottom: 4px; }
.wave i { width: 3px; border-radius: 2px; background: var(--lime); height: 30%; animation: wv 1s ease-in-out infinite; }
@keyframes wv { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; position: relative; }
.steps i.done { background: var(--lime); }
.steps i.cur::after { content: ""; position: absolute; inset: 0; width: var(--p, 60%); background: var(--lime); border-radius: 2px; transition: width .3s; }
.pose-name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.haptic-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--lime); color: var(--lime-ink); font-size: 11.5px; font-weight: 800; opacity: 0; transform: translateY(6px) scale(.95); transition: all .3s var(--ease); }
.haptic-tag.show { opacity: 1; transform: none; }
.done-sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 30; padding: 22px 18px 18px; border-radius: 28px; background: rgba(16, 17, 18, .94); backdrop-filter: blur(16px); border: 1px solid rgba(141, 198, 63, .35); transform: translateY(120%); transition: transform .5s var(--ease); text-align: center; }
.done-sheet.show { transform: none; }
.done-sheet .ck { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: var(--lime-ink); box-shadow: 0 0 0 8px var(--lime-10), 0 0 40px rgba(141, 198, 63, .5); }
.done-sheet h3 { font-size: 21px; letter-spacing: -.02em; }
.done-sheet p { color: var(--text-2); font-size: 13px; margin: 6px 0 16px; }

/* ---------------- drill ---------------- */
.drill-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.drill-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.meter { padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.meter .v { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.meter .v small { font-size: 13px; color: var(--text-2); font-weight: 700; }
.tempo-bars { display: flex; gap: 3px; align-items: flex-end; height: 34px; }
.tempo-bars i { width: 5px; border-radius: 2px; background: var(--line-2); }
.tempo-bars i.on { background: var(--lime); }
.tempo-bars i.beat { animation: beat 1.2s infinite; }
@keyframes beat { 0%, 100% { opacity: .35; } 10% { opacity: 1; } }
.gauge { margin-top: 10px; padding: 12px 14px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.gauge .lbls { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-top: 6px; }
.gauge .track { height: 12px; border-radius: 6px; position: relative; background: linear-gradient(90deg, var(--red) 0%, var(--amber) 26%, var(--lime) 40%, var(--lime) 60%, var(--amber) 74%, var(--red) 100%); }
.gauge .track::before { content: ""; position: absolute; left: 40%; width: 20%; top: -5px; bottom: -5px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 8px; }
.gauge .needle { position: absolute; top: -8px; width: 4px; height: 28px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .6); transform: translateX(-50%); transition: left .12s linear; }

/* ---------------- shot taking ---------------- */
.ring-wrap { width: 270px; height: 270px; margin: 6px auto 0; position: relative; display: grid; place-items: center; }
.ring-wrap svg.seg5 { position: absolute; inset: 0; }
.ring-c { text-align: center; }
.ring-c .n { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.ring-c .n small { font-size: 26px; color: var(--text-3); font-weight: 700; }
.ring-c .eyebrow { margin-top: 8px; }
.ring-c .take { margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; color: var(--lime); font-weight: 700; font-size: 13px; }
.beads { display: flex; justify-content: space-between; gap: 6px; margin-top: 14px; }
.bead { flex: 1; padding: 9px 4px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-size: 11px; font-weight: 700; color: var(--text-3); transition: all .35s var(--ease); }
.bead svg { margin: 0 auto 4px; }
.bead.done { color: var(--text); border-color: rgba(141, 198, 63, .35); }
.bead.cur { border: 1.5px dashed var(--lime); color: var(--lime); }
.last-shot { margin-top: 10px; padding: 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 12px; align-items: center; }
.last-shot .k { font-size: 10px; color: var(--text-3); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.last-shot .v { font-size: 16px; font-weight: 800; }
.live-row { display: flex; gap: 8px; margin-top: 10px; }
.flash { animation: flash .7s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(141, 198, 63, .8); } 100% { box-shadow: 0 0 0 18px rgba(141, 198, 63, 0); } }

/* ---------------- shots complete ---------------- */
.done-hero { text-align: center; padding: 6px 0 10px; }
.done-hero .badge { width: 150px; height: 150px; margin: 0 auto; position: relative; display: grid; place-items: center; }
.done-hero .badge > svg { position: absolute; inset: 0; }
.done-hero .badge .ck { width: 84px; height: 84px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: var(--lime-ink); box-shadow: 0 0 50px rgba(141, 198, 63, .45); }
.done-hero h1 { margin-top: 12px; }
.sw { margin-top: 10px; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; }
.sw .thumb { width: 74px; height: 92px; border-radius: 16px; background: radial-gradient(70% 60% at 50% 60%, #1a1c1f, #070708); position: relative; overflow: hidden; border: 1px solid var(--line); }
.sw .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sw .thumb canvas { width: 100% !important; height: 100% !important; }
.sw.str { border-color: rgba(141, 198, 63, .35); }
.sw.wk { border-color: rgba(229, 72, 77, .35); }
.sw .tag { font-family: var(--display); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; }
.sw .nm { font-size: 16.5px; font-weight: 700; margin: 4px 0 10px; letter-spacing: -.01em; }
.score { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--amber) 50%, var(--lime)); position: relative; }
.score i { position: absolute; top: -5px; width: 4px; height: 18px; border-radius: 2px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 3px rgba(0, 0, 0, .6); }
.score-v { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--text-2); font-weight: 700; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ---------------- overview ---------------- */
.view-tog { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(13, 14, 15, .8); border: 1px solid var(--line); }
.view-tog button { height: 28px; padding: 0 10px; border-radius: 9px; font-size: 11px; font-weight: 800; color: var(--text-2); transition: all .25s var(--ease); }
.view-tog button.on { background: var(--surface-3); color: var(--text); }
.scrub { margin-top: 12px; }
.scrub .rail { position: relative; height: 46px; touch-action: none; cursor: grab; }
.scrub .segs { position: absolute; left: 0; right: 0; top: 17px; height: 12px; display: flex; gap: 3px; }
.scrub .segs i { height: 100%; border-radius: 3px; opacity: .85; }
.scrub .knob { position: absolute; top: 5px; width: 20px; height: 36px; border-radius: 10px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 4px rgba(0, 0, 0, .7), 0 6px 18px rgba(0, 0, 0, .6); }
.scrub .knob::after { content: ""; position: absolute; left: 50%; top: 9px; bottom: 9px; width: 2px; margin-left: -1px; background: #222; border-radius: 1px; }
.scrub .names { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.scrub .names span.on { color: var(--text); }
.ph-panel { margin-top: 12px; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ph-panel .hd { display: flex; justify-content: space-between; align-items: center; }
.ph-panel .ph { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.ph-panel .ft { font-size: 14px; font-weight: 700; margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; }
.ph-panel p { color: var(--text-2); font-size: 12.5px; margin-top: 5px; line-height: 1.45; }
.play { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; flex: none; }
.play:active, .play.is-pressed { transform: scale(.9); background: var(--lime-press); }

/* ---------------- explainer ---------------- */
.video { height: 236px; border-radius: 24px; overflow: hidden; position: relative; background: #111; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 40%, rgba(0, 0, 0, .75)); }
.video .vplay { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center; z-index: 3; transition: transform .2s var(--ease), background .2s; }
.video .vplay:active, .video .vplay.is-pressed { transform: translate(-50%, -50%) scale(.9); background: var(--lime); color: var(--lime-ink); }
.video .vbar { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; }
.video .vbar .tr { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); position: relative; }
.video .vbar .tr i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--lime); border-radius: 2px; }
.video .vbar .tr b { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); left: 0; }
.video .chap-dots { position: absolute; inset: 0; pointer-events: none; }
.video .tagv { position: absolute; left: 14px; top: 14px; z-index: 3; }
.v-title { margin-top: 14px; }
.v-title h1 { font-size: 23px; }
.coach { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--text-2); font-size: 12.5px; }
.coach i { width: 28px; height: 28px; border-radius: 50%; background: url(../img/coach.jpg) 58% 20% / 300% no-repeat; border: 1px solid var(--line-2); }
.chapters { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.chap { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: transform .2s var(--ease), border-color .2s; }
.chap:active, .chap.is-pressed { transform: scale(.98); border-color: var(--lime); }
.chap .th { width: 56px; height: 40px; border-radius: 10px; background: url(../img/coach.jpg) center / cover; position: relative; }
.chap.on .th { box-shadow: 0 0 0 2px var(--lime); }
.chap b { font-size: 13px; display: block; }
.chap small { font-size: 11.5px; color: var(--text-2); }
.lock-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--text-2); margin-top: 10px; }
.btn .unlock-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(141, 198, 63, .18); z-index: -1; transition: width .2s linear; }

/* ---------------- menu drawer ---------------- */
.drawer { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .35s var(--ease); }
.drawer .panel { position: absolute; left: 0; top: 0; bottom: 0; width: 300px; background: #0a0b0c; border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .45s var(--ease); padding: 60px 18px 24px; display: flex; flex-direction: column; }
.drawer.open { pointer-events: auto; }
.drawer.open .scrim { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer .lockup { width: 150px; margin: 4px 0 22px 6px; }
.drawer nav { display: flex; flex-direction: column; gap: 2px; }
.drawer nav button { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 12px; border-radius: 14px; font-weight: 700; font-size: 14.5px; color: var(--text-2); text-align: left; transition: background .2s, color .2s; }
.drawer nav button span.n { font-family: var(--display); font-size: 9px; color: var(--text-3); width: 18px; }
.drawer nav button.on { background: var(--surface-2); color: var(--text); }
.drawer nav button.on span.n { color: var(--lime); }
.drawer nav button:active { background: var(--lime-10); color: var(--lime); }
.drawer .dev-card { margin-top: auto; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.drawer .dev-card b { color: var(--text); display: block; font-size: 13px; }

.fade-in { animation: fin .45s var(--ease) both; }
@keyframes fin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* static capture mode: no motion */
.still-mode *, .still-mode *::before, .still-mode *::after { animation-play-state: paused !important; transition: none !important; }
.still-mode .fade-in { animation: none !important; }

.shotbars { margin-top: 10px; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.shotbars .bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 92px; margin-top: 10px; }
.shotbars .bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; font-size: 10.5px; color: var(--text-3); font-weight: 700; }
.shotbars .bars b { font-size: 12px; }
.shotbars .bars i { width: 100%; border-radius: 8px 8px 4px 4px; opacity: .9; }
