/* Liquid Glass — glassmorphism, gooey blobs, waves, ripples, soft gradients. */

:root {
  --bg0: #0b1020;
  --bg1: #14183a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f7ff;
  --muted: #b7c0d9;
  --line: rgba(255, 255, 255, 0.22);
  --line-strong: rgba(255, 255, 255, 0.45);
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --accent-deep: #67e8f9;
  --accent-soft: rgba(125, 211, 252, 0.16);
  --shadow: rgba(8, 12, 32, 0.45);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.18);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.18);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.16);
  --star: #fde68a;
  --radius: 18px;
  --radius-sm: 14px;
  --pill: 999px;
  --bd: 1px;
  --glass: blur(22px) saturate(1.55);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font: "Outfit", "Nunito", system-ui, sans-serif;
  --font-sfx: "Outfit", system-ui, sans-serif;
  --z-fx: 40;
  --z-pop: 80;
  --z-modal: 120;
  --z-toast: 140;
}

[data-theme="dark"] {
  --bg0: #070914;
  --bg1: #0e1230;
  --surface: rgba(255, 255, 255, 0.06);
  --ink: #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(167, 139, 250, .45), transparent 60%),
    radial-gradient(800px 500px at 90% 0%, rgba(56, 189, 248, .4), transparent 55%),
    radial-gradient(700px 400px at 50% 100%, rgba(52, 211, 153, .22), transparent 50%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  background-attachment: fixed;
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  pointer-events: none;
  animation: blobMorph 14s ease-in-out infinite;
}
body::before { left: -80px; top: 20%; background: #6366f1; }
body::after { right: -60px; bottom: 10%; background: #22d3ee; animation-delay: -5s; }
@keyframes blobMorph {
  0%, 100% { border-radius: 50% 40% 60% 50%; transform: translate(0, 0) scale(1); }
  33% { border-radius: 40% 60% 50% 70%; transform: translate(30px, -20px) scale(1.08); }
  66% { border-radius: 60% 40% 70% 50%; transform: translate(-20px, 25px) scale(.94); }
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }

.glass {
  background: var(--surface);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px var(--shadow), inset 0 1px 0 rgba(255,255,255,.22);
}

/* Header / chrome */
.site-header {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 22px;
  background: rgba(12, 16, 36, .55);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 18px; letter-spacing: -.03em;
  white-space: nowrap; flex-shrink: 0;
}
.site-logo .mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-weight: 800; color: #041016;
  background: linear-gradient(145deg, #e0f2fe, #a78bfa);
  box-shadow: 0 6px 20px rgba(125, 211, 252, .35);
}
.site-search { flex: 1; max-width: 420px; position: relative; }
.site-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 8px 14px 8px 38px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  font-weight: 600; outline: none; color: var(--ink);
}
.site-search input:focus { border-color: var(--accent); background: rgba(255,255,255,.14); }
.site-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2.2; pointer-events: none;
}
.site-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-count, .site-lib-link, .site-theme-switch a {
  font-weight: 700; font-size: 13px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 4px 10px;
  color: var(--ink); text-decoration: none;
}
.site-theme-switch { display: flex; gap: 6px; }
.site-theme-switch a.is-here {
  background: linear-gradient(135deg, rgba(125,211,252,.5), rgba(167,139,250,.5));
  border-color: rgba(255,255,255,.4);
}
.site-menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.1); color: var(--ink); font-weight: 800;
}
.site-body { display: grid; grid-template-columns: 240px 1fr; max-width: 1440px; margin: 0 auto; min-height: calc(100vh - 64px); }
.site-side {
  position: sticky; top: 72px; align-self: start;
  height: calc(100vh - 72px); overflow: auto;
  padding: 22px 14px 40px 22px;
  border-right: 1px solid var(--line);
}
.site-side h2 { margin: 0 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-side a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 650; font-size: 13px;
  padding: 8px 10px; border-radius: 12px;
}
.site-side a:hover { background: rgba(255,255,255,.08); }
.site-side a.is-active {
  background: linear-gradient(135deg, rgba(125,211,252,.25), rgba(167,139,250,.25));
  color: #fff;
}
.site-side a .n {
  font-size: 11px; min-width: 22px; text-align: center; padding: 0 5px; font-weight: 700;
  background: rgba(255,255,255,.12); border: 1px solid var(--line); border-radius: var(--pill); color: var(--ink);
}
.tree-item { margin-bottom: 4px; }
.tree-subs { display: flex; flex-direction: column; padding: 2px 0 6px 12px; }
.tree-subs a { font-size: 12px; font-weight: 600; color: var(--muted); padding: 5px 10px; }
.tree-subs a.is-active { color: var(--ink); background: rgba(125,211,252,.15); }

.site-main { padding: 8px 28px 80px 24px; min-width: 0; }
.site-intro { padding: 28px 8px 10px; max-width: 760px; }
.site-intro h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.04em;
  margin: 0 0 8px; line-height: 1.05;
}
.site-intro h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #7dd3fc, #a78bfa, #34d399);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-intro p { margin: 0; color: var(--muted); font-weight: 500; font-size: 16px; }
.theme-name {
  display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
  background: rgba(125,211,252,.12); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 3px 10px; margin-bottom: 10px;
}

.kit-section { padding: 28px 0 10px; scroll-margin-top: 88px; }
.kit-section > .sec-head {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 16px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.kit-section > .sec-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.kit-section > .sec-head p { margin: 0; color: var(--muted); font-weight: 600; font-size: 13px; }
.kit-subsec { scroll-margin-top: 96px; margin: 8px 0 22px; }
.kit-subsec > h3 {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kit-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 18px 16px;
  min-height: 280px;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.2);
}
.kit-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kit-num { font-weight: 800; font-size: 11px; letter-spacing: .08em; color: var(--accent); }
.kit-card h3 { margin: 2px 0 0; font-size: 16px; font-weight: 700; }
.kit-desc { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.kit-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 22px 8px; position: relative; min-height: 140px; }
.kit-status { text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; min-height: 18px; }
.kit-copy {
  flex-shrink: 0; min-height: 30px; padding: 4px 10px; font-size: 12px;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  font-weight: 700; color: var(--ink);
}
.kit-copy:hover { background: rgba(255,255,255,.18); }
.kit-copy.is-ok { background: var(--ok); color: #052e1c; }
.kit-card.is-hidden, .kit-section.is-hidden, .kit-subsec.is-hidden { display: none; }
.kit-empty-filter { display: none; text-align: center; padding: 60px 20px; font-weight: 700; color: var(--muted); }
.kit-empty-filter.show { display: block; }

@media (max-width: 1024px) { .kit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .site-body { grid-template-columns: 1fr; }
  .site-side {
    position: fixed; top: 60px; left: 0; bottom: 0; width: min(260px, 84vw);
    background: rgba(12,16,36,.85); backdrop-filter: blur(24px); z-index: 190;
    transform: translateX(-110%); transition: transform .28s var(--ease-out);
    height: auto; border-right: 1px solid var(--line);
  }
  .site-side.is-open { transform: none; }
  .site-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .site-main { padding: 8px 14px 80px; }
}
@media (max-width: 640px) {
  .kit-grid { grid-template-columns: 1fr; }
  .site-count { display: none; }
  .site-header { padding: 8px 12px; gap: 8px; }
}

.site-backdrop { display: none; }
@media (max-width: 900px) {
  .site-backdrop { display: none; position: fixed; inset: 0; top: 60px; background: rgba(8,10,24,.45); z-index: 180; }
  .site-backdrop.show { display: block; }
}

.m-fx-host { position: relative; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Buttons */
.m-btn {
  --btn-bg: linear-gradient(145deg, rgba(125,211,252,.55), rgba(167,139,250,.5));
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 24px rgba(56, 189, 248, .25), inset 0 1px 0 rgba(255,255,255,.4);
  backdrop-filter: blur(10px);
  transition: transform .2s var(--ease-spring), box-shadow .2s;
  user-select: none; white-space: nowrap;
}
.m-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 32px rgba(56,189,248,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.m-btn:active, .m-btn.is-pressed { transform: scale(.97); }
.m-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.m-btn-cancel, .m-btn-secondary {
  background: rgba(255,255,255,.12); color: var(--ink);
  box-shadow: 0 6px 20px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.25);
}
.m-btn-danger { background: linear-gradient(145deg, #fb7185, #e11d48); }
.m-btn-sm { min-height: 34px; padding: 4px 14px; font-size: 13px; }
.m-btn-icon { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 16px; }
.m-fab {
  width: 60px; height: 60px; min-height: 60px; padding: 0; border-radius: 50%; font-size: 28px;
  box-shadow: 0 12px 32px rgba(167,139,250,.4);
}
.m-btn svg, .m-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.m-fab svg { width: 26px; height: 26px; }

.m-btn-group {
  display: inline-flex; overflow: hidden; position: relative;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: rgba(255,255,255,.08); backdrop-filter: blur(16px);
}
.m-btn-group .m-btn { border: 0; border-radius: 0; box-shadow: none; min-height: 42px; background: transparent; color: var(--ink); backdrop-filter: none; }
.m-btn-group .m-btn + .m-btn { border-left: 1px solid var(--line); }
.m-btn-group .m-btn.is-active, .m-btn-group .m-btn[aria-pressed="true"] {
  background: linear-gradient(145deg, rgba(125,211,252,.55), rgba(167,139,250,.5)); color: #fff;
}

/* Toggle */
.m-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 700; }
.m-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.m-toggle-track {
  width: 68px; height: 38px; border-radius: var(--pill);
  background: rgba(255,255,255,.12); border: 1px solid var(--line);
  position: relative; display: block;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.25);
  transition: background .35s var(--ease-out);
}
.m-toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 30px; height: 30px;
  background: linear-gradient(145deg, #fff, #c4b5fd);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: transform .4s var(--ease-spring);
}
.m-toggle input:checked + .m-toggle-track { background: linear-gradient(90deg, #67e8f9, #a78bfa); }
.m-toggle input:checked + .m-toggle-track .m-toggle-thumb { transform: translateX(30px); }

/* Slider */
.m-slider, .m-range { width: min(260px, 100%); position: relative; padding: 28px 8px 8px; touch-action: none; user-select: none; }
.m-slider-track, .m-range-track {
  height: 12px; border-radius: var(--pill); position: relative;
  background: rgba(255,255,255,.1); border: 1px solid var(--line);
  overflow: hidden;
}
.m-slider-fill, .m-range-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(90deg, #67e8f9, #818cf8);
  border-radius: var(--pill);
  overflow: hidden;
}
.m-slider-fill::after, .m-range-fill::after, .m-progress-fill::after {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -2px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'><path d='M0 10 Q 15 0 30 10 T 60 10 T 90 10 T 120 10 V20 H0Z' fill='rgba(255,255,255,.35)'/></svg>") repeat-x;
  background-size: 60px 14px;
  animation: waveSlide 1.1s linear infinite;
  pointer-events: none;
}
@keyframes waveSlide { to { transform: translateX(60px); } }
.m-slider-thumb, .m-range-thumb {
  position: absolute; top: 50%; width: 22px; height: 22px;
  background: linear-gradient(145deg, #fff, #a5f3fc);
  border: 1px solid rgba(255,255,255,.7); border-radius: 50%;
  box-shadow: 0 4px 14px rgba(34,211,238,.45);
  transform: translate(-50%, -50%); cursor: grab; z-index: 2; padding: 0;
}
.m-slider-badge {
  position: absolute; top: 0; transform: translate(-50%, 0);
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 11px; font-weight: 700; padding: 1px 6px; pointer-events: none; z-index: 3;
}

/* Checkbox / radio */
.m-check, .m-radio { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; user-select: none; position: relative; }
.m-check input, .m-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m-check-box, .m-radio-dot {
  width: 24px; height: 24px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease-spring), background .25s; flex-shrink: 0;
}
.m-check-box { border-radius: 8px; }
.m-radio-dot { border-radius: 50%; }
.m-check-box svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .28s var(--ease-spring); }
.m-check input:checked + .m-check-box { background: linear-gradient(145deg, #67e8f9, #818cf8); }
.m-check input:checked + .m-check-box svg { opacity: 1; transform: scale(1); }
.m-radio-pip { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(145deg, #e0f2fe, #22d3ee); transform: scale(0); transition: transform .28s var(--ease-spring); }
.m-radio input:checked + .m-radio-dot .m-radio-pip { transform: scale(1); }
.m-radio-list { display: flex; flex-direction: column; gap: 10px; }

/* Inputs */
.m-field { position: relative; width: min(280px, 100%); }
.m-input, .m-textarea, .m-select-btn, .m-search input, .m-password input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  border-radius: var(--pill);
  padding: 10px 16px;
  font-weight: 600; outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  transition: border-color .15s, background .15s;
}
.m-input:focus, .m-textarea:focus, .m-search:focus-within, .m-select-btn:focus {
  border-color: var(--accent); background: rgba(255,255,255,.14);
}
.m-input::placeholder, .m-textarea::placeholder { color: var(--muted); }
.m-field.has-caret .m-input { caret-color: transparent; }
.m-caret { position: absolute; width: 2px; height: 1.15em; background: var(--accent); border-radius: 1px; top: 50%; transform: translateY(-50%); pointer-events: none; animation: caretBlink 1s steps(1) infinite; display: none; }
.m-field.is-focused .m-caret { display: block; }
@keyframes caretBlink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.m-textarea { border-radius: 16px; min-height: 96px; resize: vertical; }
.m-search { position: relative; width: min(280px, 100%); display: flex; align-items: center; }
.m-search .m-search-icon { position: absolute; left: 12px; width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2.2; pointer-events: none; }
.m-search input { padding-left: 38px; padding-right: 36px; }
.m-search-clear { position: absolute; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); }
.m-search.has-value .m-search-clear { display: flex; }
.m-password { position: relative; width: min(280px, 100%); }
.m-password input { padding-right: 46px; width: 100%; }
.m-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.m-otp { display: flex; gap: 8px; }
.m-otp input {
  width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 800;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px); outline: none;
}
.m-otp input:focus { border-color: var(--accent); transform: translateY(-2px); }

.m-select, .m-menu-wrap { position: relative; width: min(240px, 100%); }
.m-select-btn, .m-menu-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px); border-radius: var(--pill); padding: 10px 14px; font-weight: 700; cursor: pointer;
}
.m-caret-icon { width: 16px; height: 16px; transition: transform .25s var(--ease-spring); }
.m-select.open .m-caret-icon, .m-menu-wrap.open .m-caret-icon { transform: rotate(180deg); }
.m-drop, .m-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: rgba(16, 20, 44, .72); backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4); padding: 6px; z-index: var(--z-pop);
  display: none; animation: popIn .28s var(--ease-spring);
}
.m-select.open .m-drop, .m-menu-wrap.open .m-drop, .m-pop.open { display: block; }
.m-drop button, .m-drop a {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 10px; font-weight: 700; color: var(--ink);
  text-decoration: none; background: none; border: 0;
}
.m-drop button:hover, .m-drop a:hover, .m-drop button.is-active { background: rgba(125,211,252,.16); }
.m-drop .m-sep { height: 1px; background: var(--line); margin: 4px 6px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }

.m-dropzone {
  width: min(300px, 100%); border: 1px dashed var(--line-strong); border-radius: 18px;
  background: rgba(125,211,252,.08); backdrop-filter: blur(12px);
  padding: 22px 16px; text-align: center; font-weight: 700; cursor: pointer;
}
.m-dropzone:hover, .m-dropzone.is-over { background: rgba(125,211,252,.18); transform: translateY(-2px); }
.m-dropzone span { color: var(--muted); font-size: 13px; }

.m-stepper, .m-cart-qty .m-stepper {
  display: inline-flex; align-items: center; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
}
.m-stepper button { width: 40px; height: 40px; font-size: 20px; font-weight: 800; }
.m-stepper button:hover { background: rgba(125,211,252,.2); }
.m-stepper .m-step-val { min-width: 48px; text-align: center; font-weight: 800; font-size: 18px; }

.m-progress { width: min(260px, 100%); }
.m-progress-bar {
  height: 16px; border: 1px solid var(--line); border-radius: var(--pill);
  background: rgba(255,255,255,.08); overflow: hidden;
}
.m-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #67e8f9, #a78bfa, #34d399); background-size: 200% 100%; animation: hueShift 3s linear infinite; border-radius: var(--pill); position: relative; transition: width .7s var(--ease-out); }
@keyframes hueShift { to { background-position: 200% 0; } }
.m-progress-label { font-weight: 700; font-size: 13px; margin-bottom: 6px; display: flex; justify-content: space-between; }

.m-circular { width: 84px; height: 84px; position: relative; }
.m-circular svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.m-circular circle { fill: none; stroke-width: 8; }
.m-circular .bg { stroke: rgba(255,255,255,.12); }
.m-circular .fg { stroke: url(#none); stroke: #7dd3fc; stroke-linecap: round; stroke-dasharray: 226; stroke-dashoffset: 226; transition: stroke-dashoffset .7s var(--ease-out); filter: drop-shadow(0 0 6px #67e8f9); }
.m-circular span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }

.m-loader { width: 56px; height: 56px; position: relative; }
.m-loader-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.12);
  border-top-color: #67e8f9; border-right-color: #a78bfa;
  animation: spin 0.9s linear infinite;
  filter: drop-shadow(0 0 8px rgba(103,232,249,.5));
}
.m-loader-lines { position: absolute; inset: -10px; animation: spin 2s linear infinite; opacity: .5; }
.m-loader-lines i { position: absolute; left: 50%; top: 0; width: 3px; height: 8px; background: #a5f3fc; border-radius: 2px; transform-origin: 50% 38px; }
@keyframes spin { to { transform: rotate(360deg); } }

.m-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; background: linear-gradient(145deg, #fb7185, #e11d48); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: var(--pill); font-size: 11px; font-weight: 800; }
.m-badge.ok { background: linear-gradient(145deg, #34d399, #059669); }
.m-badge.accent { background: linear-gradient(145deg, #7dd3fc, #6366f1); }
.m-badge-row, .m-chip-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.m-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--pill); font-weight: 700; font-size: 13px;
}
.m-chip button { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.16); font-weight: 800; font-size: 12px; }

.m-avatars { display: flex; align-items: center; padding-left: 8px; }
.m-avatar {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4);
  background: linear-gradient(145deg, rgba(125,211,252,.4), rgba(167,139,250,.4));
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
  margin-left: -10px; transition: transform .25s var(--ease-spring), margin .25s;
  backdrop-filter: blur(8px);
}
.m-avatars:hover .m-avatar { margin-left: 2px; transform: translateY(-4px); }

.m-tip-wrap { position: relative; display: inline-block; }
.m-tooltip {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%) scale(.8);
  background: rgba(8,10,24,.85); color: #fff; backdrop-filter: blur(16px);
  font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 10px;
  border: 1px solid var(--line); white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .24s var(--ease-spring); z-index: var(--z-pop);
}
.m-tooltip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: rgba(8,10,24,.85); }
.m-tip-wrap:hover .m-tooltip, .m-tip-wrap:focus-within .m-tooltip, .m-tooltip.is-on { opacity: 1; transform: translateX(-50%) scale(1); }
.m-pop { left: 50%; transform: translateX(-50%); width: 220px; top: calc(100% + 10px); right: auto; text-align: left; padding: 12px; }
.m-pop strong { display: block; margin-bottom: 4px; }
.m-pop p { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 500; }

.m-modal-back {
  position: fixed; inset: 0; background: rgba(6, 8, 20, .55); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; z-index: var(--z-modal); padding: 20px;
}
.m-modal-back.is-open { display: flex; }
.m-modal {
  background: rgba(18, 22, 48, .72); backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--line-strong); border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.2);
  max-width: 400px; width: 100%; padding: 22px; animation: slamIn .4s var(--ease-spring); position: relative;
}
@keyframes slamIn { 0% { transform: scale(.84); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.m-modal h3 { margin: 0 0 8px; font-size: 22px; }
.m-modal p { margin: 0 0 16px; color: var(--muted); font-weight: 500; }
.m-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

.m-toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column-reverse; gap: 10px; z-index: var(--z-toast); pointer-events: none; }
.m-toast {
  pointer-events: auto; background: rgba(18,22,48,.75); backdrop-filter: blur(24px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
  padding: 12px 14px; min-width: 240px; font-weight: 700; animation: toastIn .4s var(--ease-spring);
  display: flex; align-items: center; gap: 10px;
}
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
.m-toast.is-out { animation: toastOut .3s var(--ease-out) forwards; }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

.m-alert {
  width: min(320px, 100%); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  background: var(--warn-soft); backdrop-filter: blur(16px); font-weight: 700;
  display: flex; gap: 10px; align-items: flex-start; animation: slamIn .4s var(--ease-spring);
}
.m-alert.info { background: var(--accent-soft); }
.m-alert.ok { background: var(--ok-soft); }
.m-alert.danger { background: var(--danger-soft); }
.m-alert button { margin-left: auto; font-weight: 800; }

.m-acc { width: min(320px, 100%); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.m-acc-item + .m-acc-item { border-top: 1px solid var(--line); }
.m-acc-btn { width: 100%; text-align: left; padding: 12px 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.m-acc-btn:hover { background: rgba(255,255,255,.06); }
.m-acc-panel { display: none; padding: 0 14px 12px; color: var(--muted); font-weight: 500; font-size: 14px; }
.m-acc-item.open .m-acc-panel { display: block; }

.m-pager { display: flex; gap: 6px; align-items: center; }
.m-pager button {
  min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px); font-weight: 700;
}
.m-pager button.is-active { background: linear-gradient(145deg, #67e8f9, #818cf8); color: #041016; border-color: transparent; }

.m-nav, .m-sidebar, .m-bottom {
  background: rgba(255,255,255,.08); backdrop-filter: var(--glass);
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.m-nav { width: min(360px, 100%); display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 18px; }
.m-nav .brand { font-weight: 800; margin-right: auto; padding: 0 8px; color: var(--accent); }
.m-nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 13px; padding: 6px 8px; border-radius: 8px; }
.m-nav a:hover, .m-nav a.is-active { background: rgba(125,211,252,.18); }
.m-sidebar { width: 200px; border-radius: 18px; padding: 10px; text-align: left; }
.m-sidebar button { width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.m-sidebar button:hover, .m-sidebar button.is-active { background: rgba(125,211,252,.16); }
.m-bottom { width: min(320px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; padding: 6px; }
.m-bottom button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; font-weight: 700; font-size: 11px; }
.m-bottom button svg { width: 20px; height: 20px; }
.m-bottom button.is-active { background: linear-gradient(145deg, rgba(125,211,252,.5), rgba(167,139,250,.5)); color: #fff; transform: translateY(-4px); }

.m-tabs, .m-segment {
  position: relative; display: inline-flex;
  background: rgba(255,255,255,.08); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--pill); padding: 3px;
  filter: url(#goo);
}
.m-tabs { border-radius: 16px; filter: none; }
.m-tab-pill, .m-seg-pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  background: linear-gradient(145deg, #67e8f9, #818cf8);
  border-radius: var(--pill); z-index: 0; pointer-events: none;
  transition: left .45s var(--ease-spring), width .45s var(--ease-spring), transform .45s var(--ease-spring);
  box-shadow: 0 6px 16px rgba(103,232,249,.35);
}
.m-tabs .m-tab-pill { border-radius: 12px; }
.m-tabs button, .m-segment button { position: relative; z-index: 1; padding: 8px 16px; font-weight: 700; border-radius: var(--pill); background: transparent; color: var(--ink); min-height: 36px; }
.m-tabs button.is-active, .m-segment button.is-active { color: #041016; }
.m-tab-panels { margin-top: 12px; font-weight: 700; text-align: center; min-height: 24px; color: var(--muted); font-size: 13px; }

.m-card, .m-price, .m-product {
  width: min(260px, 100%);
  background: rgba(255,255,255,.1); backdrop-filter: var(--glass);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.22); padding: 14px; text-align: left;
  transition: transform .2s var(--ease-spring);
}
.m-card:hover, .m-price:hover, .m-product:hover { transform: translateY(-4px); }
.m-card h4, .m-price h4, .m-product h4 { margin: 0 0 4px; font-size: 16px; }
.m-card p, .m-product p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.m-price { text-align: center; }
.m-price .amt { font-size: 28px; font-weight: 800; margin: 6px 0; }
.m-price .amt small { font-size: 14px; }
.m-price ul { list-style: none; padding: 0; margin: 0 0 12px; font-weight: 500; font-size: 13px; color: var(--muted); }
.m-price.is-featured { border-color: rgba(125,211,252,.5); background: rgba(125,211,252,.12); }
.m-product .m-prod-art {
  height: 92px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(145deg, rgba(125,211,252,.2), rgba(167,139,250,.2));
  margin-bottom: 10px; display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.m-product .price { font-weight: 800; color: var(--accent); margin: 6px 0 8px; }
.m-product .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.m-bell, .m-like, .m-copy {
  position: relative; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  display: inline-flex; align-items: center; justify-content: center;
}
.m-bell:hover, .m-like:hover, .m-copy:hover { transform: translateY(-2px); }
.m-bell .m-badge { position: absolute; top: -8px; right: -8px; }
.m-bell.is-ring svg { animation: bellShake .6s var(--ease-spring); }
@keyframes bellShake { 0%,100% { transform: rotate(0); } 20% { transform: rotate(18deg); } 40% { transform: rotate(-16deg); } 60% { transform: rotate(10deg); } }
.m-like.is-on { background: var(--danger-soft); color: var(--danger); }
.m-like svg { width: 22px; height: 22px; }
.m-like.is-on svg { fill: var(--danger); stroke: var(--danger); }

.m-date { width: 250px; }
.m-date-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.m-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.m-date-grid span, .m-date-grid button { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 700; font-size: 12px; }
.m-date-grid span { color: var(--muted); font-size: 10px; }
.m-date-grid button:hover { background: rgba(125,211,252,.16); }
.m-date-grid button.is-on { background: linear-gradient(145deg, #67e8f9, #818cf8); color: #041016; }

.m-swatches { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.m-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); padding: 0; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.m-swatch.is-on { transform: scale(1.18); box-shadow: 0 0 0 3px rgba(125,211,252,.6); }

.m-theme { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.m-count { display: flex; gap: 8px; }
.m-count-unit {
  min-width: 58px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px; text-align: center; padding: 8px 4px 6px;
}
.m-count-unit b { display: block; font-size: 22px; font-weight: 800; }
.m-count-unit span { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.m-count-unit.is-tick b { animation: tickPop .35s var(--ease-spring); }
@keyframes tickPop { 40% { transform: scale(1.2); } }

.m-empty { text-align: center; max-width: 260px; }
.m-empty .m-empty-art { font-size: 42px; margin-bottom: 8px; animation: floaty 2.8s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.m-empty h4 { margin: 0 0 4px; }
.m-empty p { margin: 0 0 12px; color: var(--muted); font-weight: 500; font-size: 13px; }

.m-stars { display: inline-flex; gap: 4px; position: relative; }
.m-stars button { width: 32px; height: 32px; padding: 0; color: var(--ink); background: none; }
.m-stars button svg { width: 28px; height: 28px; stroke: rgba(255,255,255,.6); fill: transparent; transition: transform .25s var(--ease-spring), fill .15s; }
.m-stars button.is-on svg, .m-stars button.is-hover svg { fill: var(--star); stroke: var(--star); filter: drop-shadow(0 0 6px #fde68a); }
.m-stars button:hover svg { transform: scale(1.18); }

.m-timeline { width: min(280px, 100%); text-align: left; }
.m-tl-item { display: grid; grid-template-columns: 16px 1fr; gap: 10px; position: relative; padding-bottom: 14px; }
.m-tl-item:last-child { padding-bottom: 0; }
.m-tl-item::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.m-tl-item:last-child::before { display: none; }
.m-tl-dot { width: 16px; height: 16px; border: 2px solid var(--accent); border-radius: 50%; background: rgba(255,255,255,.15); margin-top: 2px; transition: transform .28s var(--ease-spring), background .2s; }
.m-tl-item.is-on .m-tl-dot { background: var(--accent); transform: scale(1.2); box-shadow: 0 0 12px #67e8f9; }
.m-tl-body { font-weight: 700; font-size: 13px; }
.m-tl-body span { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }

/* Typography */
.ty-headline { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 0; cursor: pointer; display: inline-block;
  background: linear-gradient(120deg, #fff, #7dd3fc, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ty-type { font-weight: 700; font-size: 18px; min-height: 1.5em; display: inline-block; text-align: left; }
.ty-type .ty-cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: caretBlink 1s steps(1) infinite; }
.ty-glitch { font-weight: 800; font-size: 28px; letter-spacing: -.02em; position: relative; cursor: pointer; display: inline-block; }
.ty-glitch.is-on { animation: glitchShake .45s steps(2) both; }
.ty-glitch.is-on::before, .ty-glitch.is-on::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; }
.ty-glitch.is-on::before { color: #67e8f9; transform: translate(3px, -2px); mix-blend-mode: screen; }
.ty-glitch.is-on::after { color: #a78bfa; transform: translate(-3px, 2px); mix-blend-mode: screen; }
@keyframes glitchShake { 20% { transform: translate(-3px, 1px); } 60% { transform: translate(2px, 0); } 100% { transform: none; } }
.ty-speed { font-weight: 800; font-size: 26px; position: relative; display: inline-block; cursor: pointer; }
.ty-speed.is-on { animation: speedSlide .45s var(--ease-out) both; }
@keyframes speedSlide { 0% { transform: translateX(-18px); filter: blur(4px); } 100% { transform: none; filter: none; } }
.ty-outline { font-weight: 800; font-size: 34px; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 2px #e0f2fe; cursor: pointer; display: inline-block; filter: drop-shadow(0 8px 16px rgba(125,211,252,.4)); }
.ty-marker { font-weight: 700; font-size: 20px; line-height: 1.5; cursor: pointer; }
.ty-marker mark { background: transparent; color: inherit; position: relative; padding: 0 2px; isolation: isolate; }
.ty-marker mark::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 8%; width: 0; background: linear-gradient(90deg, rgba(167,139,250,.55), rgba(125,211,252,.55)); z-index: -1; border-radius: 6px; }
.ty-marker.is-on mark::before { animation: markerWipe .55s var(--ease-out) forwards; }
@keyframes markerWipe { to { width: 100%; } }
.ty-wave { display: inline-flex; font-weight: 800; font-size: 28px; cursor: pointer; line-height: 1; }
.ty-wave span { display: inline-block; }
.ty-wave.is-on span { animation: letterBounce .7s var(--ease-spring) both; }
@keyframes letterBounce { 30% { transform: translateY(-14px) scale(1.08); } }
.ty-counter { font-weight: 800; font-size: 42px; letter-spacing: -.04em; cursor: pointer; display: inline-block; min-width: 4ch; text-align: center; }
.ty-counter b { font-size: 14px; color: var(--muted); display: block; font-weight: 700; letter-spacing: 0; }
.ty-sticker {
  display: inline-block; font-weight: 800; font-size: 26px; letter-spacing: -.02em;
  background: linear-gradient(145deg, rgba(253,230,138,.9), rgba(251,146,60,.85));
  color: #1c1917; border: 1px solid rgba(255,255,255,.4); padding: 6px 14px; border-radius: 14px;
  box-shadow: 0 10px 24px rgba(251,146,60,.3); transform: rotate(-3deg); cursor: pointer;
  backdrop-filter: blur(8px);
}
.ty-sticker:hover, .ty-sticker.is-on { transform: rotate(2deg) translateY(-3px) scale(1.06); }
.ty-bubble {
  position: relative; display: inline-block;
  background: rgba(255,255,255,.12); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 22px; padding: 12px 16px;
  font-weight: 700; font-size: 16px; max-width: 240px; cursor: pointer; animation: popIn .35s var(--ease-spring);
}
.ty-bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -8px; width: 16px; height: 16px;
  background: inherit; backdrop-filter: blur(18px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.ty-bubble .sfx { position: absolute; top: -14px; right: -6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }

/* Liquid FX */
.manga-fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: var(--z-fx); }
.lg-ripple {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.6), rgba(125,211,252,0));
  animation: rippleOut .65s var(--ease-out) forwards; pointer-events: none;
}
@keyframes rippleOut { to { transform: scale(18); opacity: 0; } }
.lg-ring {
  position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 2px solid rgba(125,211,252,.7); animation: ringOut .7s var(--ease-out) forwards; pointer-events: none;
}
@keyframes ringOut { to { transform: scale(6); opacity: 0; } }
.fx-puff { width: 36px; height: 48px; animation: dropOut .8s var(--ease-out) forwards; position: absolute; pointer-events: none; margin-left: -18px; margin-top: -24px; }
.fx-puff svg { width: 100%; height: 100%; overflow: visible; }
@keyframes dropOut {
  0% { opacity: 0; transform: scale(.3) translateY(8px); }
  40% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.8) translate(var(--dx, 8px), var(--dy, -28px)); }
}
.fx-shard, .fx-star, .fx-slash, .fx-line, .fx-hand, .fx-spark, .fx-after, .fx-sfx { position: absolute; pointer-events: none; }
.fx-sfx { display: none; }
.fx-star { width: 16px; height: 16px; animation: starPop .55s var(--ease-spring) forwards; }
@keyframes starPop { 0% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(.4) translate(var(--dx, 10px), var(--dy, -20px)); } }
.fx-slash, .fx-line { height: 2px; background: rgba(125,211,252,.7); border-radius: 2px; animation: lineOut .4s var(--ease-out) forwards; }
@keyframes lineOut { 0% { transform: scaleX(.2); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.fx-spark { width: 8px; height: 8px; background: #a5f3fc; border-radius: 50%; animation: sparkGo .5s var(--ease-out) forwards; box-shadow: 0 0 8px #67e8f9; }
@keyframes sparkGo { 0% { transform: scale(0); } 100% { transform: scale(1.4) translate(var(--dx, 12px), var(--dy, -16px)); opacity: 0; } }
.fx-after { width: 22px; height: 22px; border: 2px solid rgba(125,211,252,.5); border-radius: 50%; animation: afterFade .35s linear forwards; }
@keyframes afterFade { to { opacity: 0; transform: scale(.7); } }
.fx-impact { position: absolute; width: 80px; height: 80px; left: 50%; top: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.fx-impact i { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: rgba(165,243,252,.7); border-radius: 2px; transform-origin: -22px 50%; animation: impactLine .4s var(--ease-out) forwards; }
@keyframes impactLine { 0% { transform: rotate(var(--r, 0deg)) scaleX(0); } 100% { transform: rotate(var(--r, 0deg)) scaleX(1); opacity: 0; } }
.fx-hand { font-size: 28px; animation: handPoint .6s var(--ease-spring) forwards; }
@keyframes handPoint { 0% { transform: scale(.4); opacity: 0; } 50% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; } }

.snippet-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.snippet-page .back { position: absolute; top: 18px; left: 18px; font-weight: 700; color: var(--ink); }
.snippet-page h1 { font-size: 22px; margin: 0 0 6px; }
.snippet-page .lead { color: var(--muted); font-weight: 500; margin: 0 0 28px; }
.snippet-stage { position: relative; padding: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .manga-fx, .m-empty .m-empty-art, body::before, body::after { animation: none !important; }
  .m-loader-ring, .m-loader-lines, .m-slider-fill::after, .m-progress-fill::after { animation: none !important; }
}
