/* LÍMITE 3 — tema oscuro */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #131519;
  --surface-2: #1a1d22;
  --surface-3: #23272e;
  --border: #252930;
  --text: #eef0f3;
  --text-2: #b5bac3;
  --muted: #7d838e;
  --accent: #c6ff3d;
  --accent-ink: #0a0b0d;
  --accent-soft: rgba(198, 255, 61, .12);
  --hot: #ff6b3d;
  --hot-soft: rgba(255, 107, 61, .14);
  --ok: #3ddc84;
  --ok-soft: rgba(61, 220, 132, .13);
  --warn: #ffc93d;
  --warn-soft: rgba(255, 201, 61, .13);
  --bad: #ff5d6c;
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --tab-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
button { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; margin: 0; line-height: 1.15; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }

/* ---------- arranque ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.logo-mark {
  font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -.04em;
  width: 72px; height: 72px; border-radius: 22px; background: var(--surface); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); animation: pulse 1.4s ease-in-out infinite;
}
.logo-mark span { color: var(--accent); }
@keyframes pulse { 50% { transform: scale(.94); opacity: .7; } }

/* ---------- layout ---------- */
.shell { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(var(--tab-h) + var(--safe-b) + 28px); }
.shell.wide { max-width: 1040px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 20px; }
.topbar h1 { font-size: 28px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.brand b { color: var(--accent); }
.back { background: var(--surface); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; flex: none; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-family: var(--font); font-weight: 600; margin: 26px 0 10px; }

.viewing-banner {
  background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(255, 201, 61, .3);
  padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* ---------- tarjetas ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 12px; }
.card.tap { cursor: pointer; transition: transform .12s, border-color .15s; }
.card.tap:hover { border-color: var(--surface-3); }
.card.tap:active { transform: scale(.985); }
.card h3 { font-size: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr 1fr; } }

.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 22px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(198, 255, 61, .22), transparent 55%), linear-gradient(160deg, #1a1f15, #121418 60%);
  border: 1px solid rgba(198, 255, 61, .22);
}
.hero .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.hero h2 { font-size: 34px; margin: 6px 0 4px; }
.hero p { margin: 0 0 16px; color: var(--text-2); }
.hero .big-code { position: absolute; right: -6px; top: -18px; font-family: var(--display); font-weight: 700; font-size: 130px; color: rgba(198, 255, 61, .07); pointer-events: none; }
.hero.rest { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 201, 61, .2), transparent 55%), linear-gradient(160deg, #1f1b12, #121418 60%); border-color: rgba(255, 201, 61, .25); }
.hero.rest .kicker { color: var(--warn); }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-family: var(--display); font-size: 26px; font-weight: 700; margin-top: 2px; }
.stat .value small { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat .delta { font-size: 13px; margin-top: 2px; }
.up { color: var(--ok); } .down { color: var(--bad); } .flat { color: var(--muted); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer;
  font-weight: 600; transition: transform .1s, background .15s, opacity .15s; text-decoration: none; color: var(--text);
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.hot { background: var(--hot); color: #160700; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn.lg { padding: 17px 20px; font-size: 17px; border-radius: 16px; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 600; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.hot { background: var(--hot-soft); color: var(--hot); }

/* ---------- listas ---------- */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--surface-2); }
.list-item .t { font-weight: 600; }
.list-item .s { font-size: 13px; color: var(--muted); }
.ex-num { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-family: var(--display); flex: none; font-size: 14px; }
.ex-num.done { background: var(--accent); color: var(--accent-ink); }
.chev { color: var(--muted); flex: none; }

/* ---------- barra de pestañas ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b); background: rgba(10, 11, 13, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border); display: flex; justify-content: center;
}
.tabbar-inner { display: flex; width: 100%; max-width: 560px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: none; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--accent); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; overflow: hidden; background: #0d0f0a; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.login-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 70% 30%, rgba(198, 255, 61, .25), transparent 70%); }
.login-art h1 { position: relative; font-size: clamp(44px, 6vw, 76px); line-height: .95; letter-spacing: -.04em; }
.login-art h1 em { font-style: normal; color: var(--accent); }
.login-art p { position: relative; color: var(--text-2); max-width: 420px; font-size: 17px; }
.bars { position: absolute; left: 48px; right: 48px; top: 64px; height: 42%; display: flex; align-items: flex-end; gap: 12px; }
.bars i { flex: 1; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--accent), rgba(198, 255, 61, .15)); transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.login-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.login-form .box { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 28px; margin-bottom: 6px; }
@media (max-width: 820px) {
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 42vh; padding: 28px 20px; }
  .bars { left: 20px; right: 20px; top: 28px; height: 40%; }
}

/* ---------- presentación ---------- */
.intro { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.intro-progress { display: flex; gap: 6px; padding: 16px 16px 0; max-width: 760px; width: 100%; margin: 0 auto; }
.intro-progress span { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.intro-progress span i { display: block; height: 100%; width: 0; background: var(--accent); }
.intro-progress span.done i { width: 100%; }
.intro-progress span.on i { animation: fill var(--dur, 5s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.intro-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.intro-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 24px; text-align: center; max-width: 620px; margin: 0 auto; width: 100%; }
.intro-visual { height: 240px; width: 100%; display: grid; place-items: center; margin-bottom: 26px; }
.intro-stage .kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; }
.intro-stage h2 { font-size: clamp(36px, 8vw, 56px); margin: 8px 0 12px; letter-spacing: -.035em; }
.intro-stage p { color: var(--text-2); font-size: 17px; max-width: 460px; margin: 0 auto; }
.intro-stage .kicker, .intro-stage h2, .intro-stage p { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.intro-stage h2 { animation-delay: .08s; } .intro-stage p { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.intro-nav { display: flex; gap: 10px; padding: 16px 16px calc(20px + var(--safe-b)); max-width: 520px; width: 100%; margin: 0 auto; }
.intro-tap { position: absolute; top: 80px; bottom: 120px; width: 35%; z-index: 1; }
.intro-tap.l { left: 0; } .intro-tap.r { right: 0; }

.v-logo { font-family: var(--display); font-weight: 700; font-size: 120px; letter-spacing: -.06em; animation: pop .9s cubic-bezier(.2, 1.4, .3, 1) both; }
.v-logo span { color: var(--accent); display: inline-block; animation: spin3 1.2s .4s cubic-bezier(.2, 1, .3, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes spin3 { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
.v-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; width: 100%; max-width: 420px; }
.v-days div { aspect-ratio: 1 / 1.25; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; color: var(--muted); font-family: var(--display); font-size: 20px; }
.v-days div.on { animation: dayOn .5s both; }
@keyframes dayOn { to { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-8px); } }
.v-clock { position: relative; width: 210px; height: 210px; }
.v-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.v-clock circle.track { stroke: var(--surface-3); }
.v-clock circle.arc { stroke: var(--accent); stroke-dasharray: 597; stroke-dashoffset: 597; animation: arc 2.6s .2s cubic-bezier(.4, 0, .2, 1) forwards; stroke-linecap: round; }
@keyframes arc { to { stroke-dashoffset: 40; } }
.v-clock b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 52px; }
.v-reps { display: flex; align-items: center; gap: 14px; font-family: var(--display); }
.v-reps .n { font-size: 84px; font-weight: 700; animation: rise .5s both; }
.v-reps .n.main { color: var(--accent); }
.v-reps .p { font-size: 13px; color: var(--hot); animation: rise .5s both; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font); font-weight: 700; }
.v-chart { width: 100%; max-width: 440px; height: 220px; }
.v-chart path.line { stroke: var(--accent); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s .2s ease forwards; }
.v-chart path.area { fill: url(#g); opacity: 0; animation: fadeIn 1s 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.v-people { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 440px; }
.v-people span { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; animation: rise .5s both; }
.v-people span:nth-child(odd) { border-color: rgba(198, 255, 61, .4); }

/* ---------- entrenamiento ---------- */
.target {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.target > div { background: var(--surface); padding: 12px 10px; text-align: center; }
.target .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.target .value { font-family: var(--display); font-size: 22px; font-weight: 700; }
.target .value.accent { color: var(--accent); }

.warmup { display: flex; gap: 8px; }
.warmup button { flex: 1; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: center; }
.warmup button b { display: block; font-family: var(--display); font-size: 18px; }
.warmup button span { font-size: 12px; color: var(--muted); }
.warmup button.done { background: var(--accent-soft); border-color: rgba(198, 255, 61, .4); }
.warmup button.done b { color: var(--accent); }

.stepper { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.stepper button { width: 64px; height: 64px; border: 0; background: var(--surface-2); font-size: 26px; cursor: pointer; flex: none; }
.stepper button:active { background: var(--surface-3); }
.stepper input { border: 0; background: transparent; text-align: center; font-family: var(--display); font-size: 30px; font-weight: 700; padding: 0; height: 64px; border-radius: 0; }
.stepper .unit { color: var(--muted); padding-right: 12px; font-size: 14px; }

.phases { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.phase { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 8px; text-align: center; transition: border-color .2s, background .2s; }
.phase.on { border-color: var(--accent); background: var(--accent-soft); }
.phase .label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.phase .count { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.phase .mini { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.phase .mini button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-size: 18px; }
.total-line { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 14px 0 4px; font-family: var(--display); }
.total-line b { font-size: 46px; }

.timer-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(10, 11, 13, .94); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; }
.ring { position: relative; width: 230px; height: 230px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: var(--surface-3); }
.ring .arc { stroke: var(--hot); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 84px; font-weight: 700; }
.timer-overlay.go .ring .arc { stroke: var(--accent); }

.result-badge { border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.result-badge.ok { background: var(--ok-soft); border: 1px solid rgba(61, 220, 132, .3); }
.result-badge.warn { background: var(--warn-soft); border: 1px solid rgba(255, 201, 61, .3); }
.result-badge.info { background: var(--accent-soft); border: 1px solid rgba(198, 255, 61, .3); }
.result-badge .ico { font-size: 24px; line-height: 1; }

/* ---------- hojas modales ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s forwards; opacity: 0; }
.sheet { width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet h3 { font-size: 22px; margin-bottom: 4px; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 24px; border-bottom: 1px solid var(--border); } }

/* ---------- teoría y fichas ---------- */
.prose p { color: var(--text-2); margin: 0 0 12px; white-space: pre-line; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 0 12px 40px; color: var(--text-2); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.tip { display: flex; gap: 10px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text-2); font-size: 14px; margin-top: 8px; }
.theory-card { display: flex; gap: 14px; align-items: flex-start; }
.theory-card .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; flex: none; }

/* ---------- calendario de constancia ---------- */
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 420px; }
.heat i { aspect-ratio: 1; border-radius: 5px; background: var(--surface-2); }
.heat i.plan { background: var(--surface-3); }
.heat i.on { background: var(--accent); }
.heat i.today { outline: 2px solid var(--text-2); outline-offset: 1px; }
.heat-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 420px; font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 6px; }

.day-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 440px; }
.day-pick button { height: 52px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 700; cursor: pointer; font-family: var(--display); font-size: 16px; }
.day-pick button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.chart-box { position: relative; height: 220px; }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty .ico { font-size: 34px; margin-bottom: 8px; }

/* ---------- tabla admin ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
@media (max-width: 640px) { .table .opt { display: none; } }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--bad); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
.grid2 + .card, .card + .grid2, .list + .card { margin-top: 12px; }

/* ---------- ilustraciones de ejercicios ---------- */
.ex-fig { position: relative; aspect-ratio: 4 / 3; max-width: 620px; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); margin: 0 0 16px; }
.ex-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-fig img.end, .ex-fig .t1 { animation: exEnd 2.6s ease-in-out infinite; }
.ex-fig .t0 { animation: exStart 2.6s ease-in-out infinite; }
@keyframes exEnd { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes exStart { 0%, 38% { opacity: 1; } 50%, 88% { opacity: 0; } 100% { opacity: 1; } }
.ex-tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(10, 11, 13, .75); color: var(--text); backdrop-filter: blur(6px); }
.ex-tag.t1 { color: var(--accent); }
.sheet .ex-fig { margin-top: 12px; }
.thumb-wrap { position: relative; flex: none; }
.ex-thumb { display: block; width: 76px; height: 57px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.ex-badge { position: absolute; right: -6px; top: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--surface-3); border: 2px solid var(--surface); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ex-badge.done { background: var(--accent); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) {
  .ex-fig img.end, .ex-fig .t1 { animation: none; opacity: 0; }
  .ex-fig .t0 { animation: none; }
}
