/* ================= Vault =================
   Performance rules used throughout:
   - only transform + opacity are animated (compositor-only, no repaints)
   - no animated blur/blend layers; backdrop blur only on the sticky nav + modal
*/

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face { font-family: "Instrument Serif"; src: url("/vendor/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/vendor/fonts/instrument-serif.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/vendor/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #050608;
  --surface: #0e1014;
  --surface-2: #15171c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f5f7;
  --muted: #8a8a90;
  --gold: #f5b94a;
  --gold-2: #ff9a3d;
  --gold-soft: rgba(245, 185, 74, .12);
  --mint: #4fe3a6;
  --mint-soft: rgba(79, 227, 166, .14);
  --danger: #ff5f6d;
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);        /* smooth "expo out" */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --font: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100vh; min-height: 100dvh; color: var(--text); background: transparent;
  font: 16px/1.5 var(--font); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
::selection { background: rgba(245, 185, 74, .35); }

h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.03em; margin: 0; font-weight: 700; }
h2 { font-size: 1.3rem; letter-spacing: -.02em; }
p { margin: 8px 0; }
a { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.error { color: var(--danger); font-size: .92rem; animation: shake .5s var(--ease); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- background: slow-moving light, compositor-only ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); contain: strict; }
.bg-layer { position: absolute; inset: -25%; will-change: transform; }
.l1 { background: radial-gradient(38% 42% at 22% 22%, rgba(245,185,74,.30), rgba(245,185,74,.08) 45%, transparent 70%); animation: drift1 26s var(--ease-io) infinite alternate; }
.l2 { background: radial-gradient(40% 46% at 82% 38%, rgba(255,104,58,.20), rgba(255,104,58,.05) 45%, transparent 70%); animation: drift2 32s var(--ease-io) infinite alternate; }
.l3 { background: radial-gradient(46% 40% at 45% 92%, rgba(118,86,255,.22), rgba(118,86,255,.05) 45%, transparent 70%); animation: drift3 38s var(--ease-io) infinite alternate; }
.l4 { background: radial-gradient(34% 38% at 70% 70%, rgba(79,227,166,.20), transparent 70%); opacity: 0; transition: opacity 2s var(--ease); animation: drift2 30s var(--ease-io) infinite alternate-reverse; }
body.has-unlocked .l4 { opacity: 1; }
.bg-noise {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.modal-open .bg-layer { animation-play-state: paused; }
@keyframes drift1 { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(10%, 8%, 0) scale(1.12); } }
@keyframes drift2 { from { transform: translate3d(5%, -4%, 0) scale(1.05); } to { transform: translate3d(-9%, 7%, 0) scale(.95); } }
@keyframes drift3 { from { transform: translate3d(-6%, 4%, 0) scale(1); } to { transform: translate3d(8%, -8%, 0) scale(1.15); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- page + nav ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 0 28px 60px; }
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.nav::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; opacity: 0;
  background: rgba(5,6,8,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line); transition: opacity .4s var(--ease);
}
.nav.scrolled::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 650; font-size: 1.05rem; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; transition: transform .6s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }
.nav-pill, .pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted);
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.pill { color: var(--gold); border-color: rgba(245,185,74,.3); font-weight: 600; }
.nav-pill .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transition: background .4s; }
.nav-pill.has { color: var(--text); border-color: rgba(79,227,166,.3); }
.nav-pill.has .pulse { background: var(--mint); animation: pulse 2.4s var(--ease) infinite; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 56px 0 72px; }
.eyebrow { font-family: var(--mono); display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 650; color: var(--gold); margin: 0 0 20px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 { font-size: clamp(3rem, 6.6vw, 5.6rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; color: var(--text); }
/* word-by-word rise */
.display .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .04em .12em; margin: -.14em -.04em -.12em; }
.display .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--ease); }
.display.in .w > span { transform: none; }
.display .w:nth-child(n+2) > span { color: #c9c9cf; }
.display .accent, .display em, h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; padding-right: .06em;
  background: linear-gradient(100deg, #ffe3a3, var(--gold) 45%, #ff9a5a); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.hero h1 .accent { font-size: 1.12em; line-height: .9; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 520px; margin: 22px 0 0; letter-spacing: -.015em; }
.stats { display: flex; gap: 40px; margin-top: 38px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-size: 1.6rem; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .76rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: end; opacity: 0; transform: scale(.88) rotate(-12deg); transition: opacity 1.4s var(--ease) .15s, transform 1.8s var(--ease) .15s; }
.hero-art.in { opacity: 1; transform: none; }
.vault-scroll, .vault-parallax, .vault { position: absolute; inset: 0; }
.vault-parallax { transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform 1.2s var(--ease); will-change: transform; }
.v-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v-layer svg { width: 100%; height: 100%; display: block; overflow: visible; }
.v-glow { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, rgba(245,185,74,.30), rgba(255,138,61,.08) 45%, transparent 68%); animation: breathe 7s var(--ease-io) infinite; will-change: transform, opacity; }
.v-orbit { fill: var(--gold); animation: spin 48s linear infinite; will-change: transform; }
.v-orbit-2 { fill: #ffd28a; opacity: .6; animation-duration: 72s; animation-direction: reverse; }
.v-bolts circle { fill: #2a2d36; stroke: rgba(245,185,74,.55); stroke-width: 1.2; }
.v-dial { animation: spin 110s linear infinite; will-change: transform; }
.v-ticks line { stroke: rgba(255,255,255,.18); stroke-width: 1.2; }
.v-ticks line.major { stroke: rgba(245,185,74,.7); stroke-width: 2; }
.v-wheel { transition: transform 2s var(--spring); will-change: transform; }
.v-wheel line { stroke: #d39a3c; stroke-width: 9; stroke-linecap: round; }
.v-wheel .knob { fill: var(--gold); }
.v-wheel .hub { fill: #181b22; stroke: var(--gold); stroke-width: 4; }
.v-core { fill: #ffe2a1; transition: fill .8s var(--ease); }
.hero-art:hover .v-wheel { transform: rotate(120deg); }
.hero-art.open .v-wheel { transform: rotate(240deg); }
.hero-art.open .v-core { fill: var(--mint); }
.hero-art.open .v-glow { background: radial-gradient(circle, rgba(79,227,166,.26), rgba(245,185,74,.08) 45%, transparent 68%); }

/* the vault drifts back as you scroll (where the browser supports scroll-linked animation) */
@supports (animation-timeline: scroll()) {
  .vault-scroll { animation: vaultAway linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  .hero-copy { animation: copyAway linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  @keyframes vaultAway { to { transform: translate3d(0, 60px, 0) scale(.86); opacity: .35; } }
  @keyframes copyAway { to { transform: translate3d(0, -30px, 0); opacity: .4; } }
}

/* ---------- toolbar ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.search { position: relative; display: flex; align-items: center; flex: 1; max-width: 380px; }
.search .ico { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px; width: 100%; border-radius: 99px; }
.chips { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.chip-glider { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 99px; background: rgba(255,255,255,.1); transition: transform .5s var(--ease), width .5s var(--ease); }
.chip { position: relative; z-index: 1; border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 99px; font-weight: 550; font-size: .9rem; }
.chip:hover { color: var(--text); background: transparent; transform: none; }
.chip.active { color: var(--text); }

/* ---------- controls ---------- */
input, textarea, button, .btn {
  font: inherit; font-size: 16px; color: var(--text); border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); padding: 12px 15px;
  transition: border-color .3s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease), background .3s var(--ease), color .3s, opacity .3s;
}
textarea { resize: vertical; min-height: 48px; }
input::placeholder, textarea::placeholder { color: #5f5f66; }
input:focus, textarea:focus { outline: none; border-color: rgba(245,185,74,.6); box-shadow: 0 0 0 4px var(--gold-soft); background: rgba(255,255,255,.06); }
input.flash { animation: flash .9s var(--ease); }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font-weight: 600; text-decoration: none; background: var(--surface-2); user-select: none; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { button:hover, .btn:hover { border-color: var(--line-2); background: #1b1d23; } }
button:active, .btn:active { transform: scale(.97); transition-duration: .1s; }
button:disabled { opacity: .5; cursor: default; transform: none; }
button:focus-visible, .btn:focus-visible, .tile:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245,185,74,.55); }
.btn.primary { position: relative; border: 0; color: #1a1306; font-weight: 650; background: linear-gradient(180deg, #ffcf70, var(--gold) 55%, #eba53a); box-shadow: 0 8px 24px -10px rgba(245,185,74,.7), inset 0 1px 0 rgba(255,255,255,.45); }
@media (hover: hover) { .btn.primary:hover { background: linear-gradient(180deg, #ffd789, #f7c25f 55%, #f0ae45); transform: translateY(-1px); } }
.btn.primary.loading span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid rgba(26,19,6,.3); border-top-color: #1a1306; animation: spin .7s linear infinite; }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 13px; font-size: .88rem; border-radius: 11px; }
.btn.small .ico { width: 15px; height: 15px; }
.btn.danger { color: var(--danger); }
.btn.danger.armed { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.copied { color: var(--mint); border-color: rgba(79,227,166,.4); }
.btn.icon-only { padding: 8px 9px; }
.btn.icon-only span { display: none; }
.btn.icon-only.armed span, .btn.icon-only.copied span { display: inline; }
.wide { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); padding: 4px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.link-btn:hover { color: var(--text); background: none; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.field-label { font-size: .85rem; font-weight: 600; color: #c9c9cf; margin-bottom: -4px; }
.hint { font-size: .8rem; color: var(--muted); margin: -2px 0 0; }

/* ---------- grid + tiles ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.tile {
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; cursor: pointer; isolation: isolate;
  transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease);
}
.tile.reveal { transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms), border-color .5s var(--ease), box-shadow .6s var(--ease); }
@media (hover: hover) {
  .tile.in:hover { transform: translate3d(0, -6px, 0); transition-delay: 0ms; border-color: rgba(245,185,74,.32); box-shadow: 0 30px 60px -30px rgba(0,0,0,.95); }
  .tile.unlocked.in:hover { border-color: rgba(79,227,166,.38); }
  .tile:hover .media { transform: scale(1.05); }
}

.thumb, .m-media, .mini-thumb { position: relative; overflow: hidden; background: #0b0c10; }
.thumb { aspect-ratio: 4 / 3; }
.media { position: absolute; inset: 0; transition: transform 1s var(--ease); will-change: transform; }
.art { position: absolute; inset: 0; }
.art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 9px); }
.ph { position: absolute; inset: -14%; width: 128%; height: 128%; object-fit: cover; filter: blur(22px) saturate(1.2) brightness(.8); }
.sharp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }
.sharp.revealed { opacity: 1; transform: none; }
.kind-ico { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85); pointer-events: none; transition: opacity .5s; }
.kind-ico .ico { width: 42px; height: 42px; stroke-width: 1.4; }
.has-ph .kind-ico { opacity: 0; }
.thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(5,6,8,.5)); pointer-events: none; }

.lock-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  color: var(--gold); background: rgba(8,9,12,.72); border: 1px solid rgba(255,255,255,.1);
  transition: color .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}
.lock-badge .ico { width: 17px; height: 17px; }
.ico .shackle { transition: transform .9s var(--spring); transform-box: view-box; transform-origin: 16px 10.5px; }
.unlocked .lock-badge { color: var(--mint); border-color: rgba(79,227,166,.35); background: rgba(8,22,16,.75); }
.unlocked .lock-badge .shackle { transform: translateY(-2.5px) rotate(22deg); }
.just-unlocked .lock-badge { animation: badgePop 1.1s var(--spring); }
.tile .ring { position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px var(--mint); opacity: 0; }
.just-unlocked .ring { animation: ringFlash 1.8s var(--ease); }
.shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.2) 50%, transparent 65%); transform: translate3d(-110%, 0, 0); }
.just-unlocked .shine { animation: sweep 1.6s var(--ease) .2s; }
.hover-cta { display: none; }

.tile-body { padding: 16px 18px 18px; }
.tile-body h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-body .desc { color: var(--muted); font-size: .88rem; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-body .meta { color: #6e6e76; font-size: .74rem; margin-top: 8px; font-family: var(--mono); letter-spacing: -.01em; }

.skeleton { pointer-events: none; }
.skeleton .thumb, .skeleton .tile-body span { background: #121318; animation: skel 1.6s var(--ease-io) infinite; }
.skeleton .tile-body span { display: block; height: 12px; border-radius: 6px; margin: 4px 0 10px; width: 70%; }
.skeleton .tile-body span + span { width: 40%; }

.empty { text-align: center; padding: 50px 0 30px; }
.empty-art { width: 200px; margin-bottom: 10px; animation: float 6s var(--ease-io) infinite; }
.empty h3 { font-size: 1.2rem; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,6,.6); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); opacity: 0; transition: opacity .5s var(--ease); }
.modal-card {
  position: relative; width: min(880px, 100%); max-height: calc(100dvh - 48px); overflow: auto; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 28px; box-shadow: 0 50px 120px -30px rgba(0,0,0,.95);
  opacity: 0; transform: translate3d(0, 30px, 0) scale(.94); transition: opacity .45s var(--ease), transform .7s var(--ease);
}
.modal.show .modal-backdrop { opacity: 1; }
.modal.show .modal-card { opacity: 1; transform: none; }
.m-close { position: absolute; top: 14px; right: 14px; z-index: 6; background: rgba(8,9,12,.72); }
.m-close .ico { width: 18px; height: 18px; }
.m-media { min-height: 360px; }
.m-media .kind-ico .ico { width: 64px; height: 64px; }
.m-lock-wrap { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; transition: opacity .6s var(--ease) .3s; }
.m-lock { width: 84px; height: 84px; overflow: visible; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); will-change: transform; }
.m-shackle { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; transform-box: view-box; transform-origin: 21.5px 14px; transition: transform .9s var(--spring), stroke .5s; }
.m-lbody { fill: var(--gold); transition: fill .5s; }
.m-hole { fill: #1a1306; stroke: #1a1306; stroke-width: 2; stroke-linecap: round; }
.m-keyhole { transform-box: view-box; transform-origin: 16px 21px; transition: transform .5s var(--ease); }
.modal-card.is-locked .m-lock { animation: float 5s var(--ease-io) infinite; }
.is-open .m-shackle { transform: translateY(-3px) rotate(30deg); stroke: var(--mint); }
.is-open .m-lbody { fill: var(--mint); }
.unlocking .m-keyhole { transform: rotate(90deg); }
.unlocking .m-shackle { transform: translateY(-6px) rotate(36deg); stroke: #fff4dc; transition: transform .35s cubic-bezier(.2,1.6,.4,1) .28s, stroke .2s .28s; }
.unlocking .m-lbody { fill: #fff4dc; transition: fill .15s .28s; }
.modal-card.is-locked.unlocking .m-lock, .modal-card.unlocking.denied .m-lock { animation: lockSlam 1.4s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 22px rgba(255,170,60,.9)) drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.is-open .m-lock-wrap { opacity: 0; }
.m-lock-wrap::before, .m-lock-wrap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 3px solid #ffb347; opacity: 0; }
.unlocking .m-lock-wrap::before { animation: wave .9s cubic-bezier(.1,.7,.2,1) .28s both; }
.unlocking .m-lock-wrap::after { animation: wave 1.2s cubic-bezier(.1,.7,.2,1) .36s both; border-color: #fff1d6; border-width: 1.5px; }
.m-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255,244,220,.95), rgba(255,150,50,.45) 18%, rgba(255,90,20,.12) 42%, transparent 70%); }
.unlocking .m-glow { animation: flashGlow 1s cubic-bezier(.1,.7,.2,1) .28s; }
.modal-card.impact { animation: impactShake .5s cubic-bezier(.36,.07,.19,.97); }
.redeem-field.impact { animation: impactShake .5s cubic-bezier(.36,.07,.19,.97); border-color: #ffb347; }
.spark-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9999; pointer-events: none; }
.m-shine { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.3) 50%, transparent 65%); transform: translate3d(-110%, 0, 0); }
.unlocking .m-shine { animation: sweep 1s var(--ease) .32s; }
.modal-card.denied .m-lock { animation: lockJam .65s cubic-bezier(.36,.07,.19,.97); }
.modal-card.denied:not(.unlocking) .m-shackle { animation: shackleYank .5s cubic-bezier(.2,1.4,.4,1); }
.modal-card.denied:not(.unlocking) .m-lbody { animation: bodyHeat .8s ease-out; }
.denied .key-input { animation: shake .55s var(--ease); }

.modal-card .m-body { padding: 36px 32px 30px; display: flex; flex-direction: column; gap: 6px; }
.m-kind { font-family: var(--mono); align-self: flex-start; font-size: .72rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.m-body h2 { font-size: 1.8rem; line-height: 1.12; letter-spacing: -.035em; margin: 4px 0 2px; padding-right: 40px; }
.m-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.m-meta span { font-family: var(--mono); font-size: .74rem; color: var(--muted); padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); }
.m-unlock, .m-open { display: flex; flex-direction: column; gap: 12px; margin-top: auto; animation: fadeUp .6s var(--ease) both; }
.key-input { position: relative; display: flex; align-items: center; flex: 1; }
.key-input > .ico { position: absolute; left: 14px; color: var(--gold); pointer-events: none; }
.key-input input { width: 100%; padding-left: 44px; font-family: var(--mono); letter-spacing: .02em; }
.m-file { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--mint-soft); border: 1px solid rgba(79,227,166,.22); }
.m-file strong { word-break: break-word; font-weight: 600; }

/* progress */
.bar { position: relative; height: 6px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.06); margin: 6px 0; }
.bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .4s var(--ease), background .4s; }
.bar.complete span { background: var(--mint); }
.done-text { color: var(--mint); font-weight: 650; display: inline-block; animation: pop .6s var(--spring); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate3d(-50%, 20px, 0); opacity: 0;
  padding: 12px 18px; border-radius: 14px; background: #1a1c22; border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8);
  transition: opacity .4s var(--ease), transform .6s var(--ease); max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translate3d(-50%, 0, 0); }

/* ---------- admin ---------- */
.card { background: rgba(14,16,20,.82); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.login { max-width: 420px; margin: 10vh auto 0; }
.login h1 { font-size: 2.4rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; padding-top: 10px; }
.admin-grid .col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.admin-grid .col.card { display: block; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 26px 16px; background: rgba(255,255,255,.02);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .5s var(--ease);
}
.drop input, .cover-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (hover: hover) { .drop:hover { border-color: rgba(245,185,74,.55); background: var(--gold-soft); } }
.drop.dragging, .drop.has-files { border-color: var(--gold); background: var(--gold-soft); }
.drop.dragging { transform: scale(1.015); }
.drop.has-files .drop-hint { color: var(--gold); font-weight: 600; }
.drop-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); transition: transform .6s var(--spring); }
.drop:hover .drop-icon { transform: translateY(-3px); }
.shake { animation: shake .5s var(--ease); }
.key-row { display: flex; gap: 8px; }
.key-row .key-input input { padding-left: 15px; padding-right: 46px; }
.reveal-btn { position: absolute; right: 4px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); }
.reveal-btn:hover { color: var(--text); background: transparent; }
.gen-btn { flex-shrink: 0; }
.strength { display: flex; align-items: center; gap: 5px; min-height: 16px; }
.strength i { width: 26px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); transition: background .4s; }
.strength span { font-size: .78rem; color: var(--muted); margin-left: 6px; }
.strength[data-level="1"] i:nth-child(1) { background: var(--danger); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--gold); }
.strength[data-level="3"] i { background: var(--mint); }
.cover-pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; color: var(--muted); font-size: .92rem; transition: border-color .3s, color .3s; }
.cover-pick:hover, .cover-pick.has-files { border-color: rgba(245,185,74,.45); color: var(--text); }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .92rem; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.12); transition: background .4s var(--ease); flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .5s var(--spring); }
.toggle input:checked + .switch { background: var(--mint); }
.toggle input:checked + .switch::after { transform: translateX(18px); }
.toggle input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(245,185,74,.5); }
.job { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-top: 10px; background: rgba(255,255,255,.02); animation: fadeUp .6s var(--ease) both; }
.job-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.job-head strong { word-break: break-word; font-weight: 600; }
.admin-list { list-style: none; padding: 0; margin: 14px 0 0; }
.admin-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); animation: fadeUp .6s var(--ease) both; }
.admin-item.leaving { animation: leave .45s var(--ease) forwards; }
.mini-thumb { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; }
.mini-thumb .kind-ico .ico { width: 22px; height: 22px; }
.mini-thumb .ph ~ .kind-ico { opacity: 0; }
.mini-thumb .ph[hidden] ~ .kind-ico { opacity: 1; }
.admin-info { min-width: 0; flex: 1; }
.file-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-info .note { color: #b9a77e; margin-top: 2px; }
.admin-info .note:empty { display: none; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.empty-line { padding: 20px 0; text-align: center; }
.edit-card { display: block; width: min(520px, 100%); padding: 30px; }
#single-fields, #cover-field { gap: 12px; }
details summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: .92rem; padding: 6px 0; }
details[open] summary { margin-bottom: 8px; }


/* ---------- viewer ---------- */
.m-actions { display: flex; gap: 10px; }
.m-actions .btn { flex: 1; }
.viewer { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; background: #050608; opacity: 0; transition: opacity .45s var(--ease); }
.viewer.show { opacity: 1; }
body.viewer-open { overflow: hidden; }
body.viewer-open .view-toggle { opacity: 0; pointer-events: none; }
.viewer-bar {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line); background: rgba(10,11,14,.9);
  transform: translate3d(0, -10px, 0); transition: transform .6s var(--ease);
}
.viewer.show .viewer-bar { transform: none; }
.v-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.v-title strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-tools { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.v-tools:empty { display: none; }
.tool { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #d6d6db; }
.tool:hover { background: rgba(255,255,255,.08); }
.tool.on { color: var(--gold); }
.tool .ico { width: 17px; height: 17px; }
.zoom-label { font-family: var(--mono); min-width: 52px; text-align: center; font-size: .76rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.page-label { min-width: 64px; color: var(--text); border-right: 1px solid var(--line); margin-right: 2px; }
.viewer-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; transform: scale(.97); transition: transform .7s var(--ease); }
.viewer.show .viewer-stage { transform: none; }
.v-loading { position: absolute; inset: 64px 0 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); pointer-events: none; }
.v-loading .bar { width: 220px; }
.v-spinner { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid rgba(245,185,74,.2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
.v-note { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--muted); padding: 20px; }
.v-note .ico { width: 44px; height: 44px; stroke-width: 1.4; }

/* image viewer */
.zoom-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; cursor: zoom-in; }
.zoom-stage.zoomed { cursor: grab; }
.zoom-stage.grabbing.zoomed { cursor: grabbing; }
.zoom-img { position: absolute; left: 0; top: 0; max-width: none; will-change: transform; opacity: 0; transition: opacity .5s var(--ease); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); -webkit-user-drag: none; }
.zoom-img.ready { opacity: 1; }
.zoom-img.anim { transition: opacity .5s var(--ease), transform .55s var(--ease); }
.zoom-preview { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: blur(12px); opacity: .6; transition: opacity .6s var(--ease); }
.zoom-preview.gone { opacity: 0; }

/* PDF reader */
.pdf-scroll { position: absolute; inset: 0; overflow: auto; touch-action: pan-x pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pdf-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 16px 60px; min-width: min-content; }
.pdf-page { position: relative; flex-shrink: 0; background: #fff; border-radius: 4px; box-shadow: 0 12px 40px -12px rgba(0,0,0,.8); overflow: hidden; }
.pdf-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s var(--ease); }
.pdf-page.ready canvas { opacity: 1; }

/* video + audio */
.media-box { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
.media-box video { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 14px; background: #000; outline: none; }
.audio-box { flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.audio-art { width: min(300px, 62vw); aspect-ratio: 1; border-radius: 24px; overflow: hidden; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 30% 20%, rgba(245,185,74,.35), transparent 60%), #111318; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.audio-art img { width: 100%; height: 100%; object-fit: cover; }
.audio-art .ico { width: 72px; height: 72px; stroke-width: 1.3; }
.audio-title { font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-align: center; max-width: 80vw; word-break: break-word; }
.audio-box audio { width: min(460px, 86vw); }

/* text */
.text-scroll { position: absolute; inset: 0; overflow: auto; padding: 24px; }
.text-view { margin: 0 auto; max-width: 980px; font: 14px/1.6 var(--mono); color: #dcdce2; white-space: pre; tab-size: 4; }
.text-view.wrap { white-space: pre-wrap; word-break: break-word; }

[data-view="mobile"] .viewer-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
[data-view="mobile"] .v-tools { order: 3; width: 100%; justify-content: center; }
[data-view="mobile"] #v-download span { display: none; }
[data-view="mobile"] .media-box { padding: 0; }
[data-view="mobile"] .media-box video { border-radius: 0; }
[data-view="mobile"] .text-scroll { padding: 14px; }
[data-view="mobile"][data-device="large"] .viewer { inset: 3vh calc(50% - 205px); border-radius: 36px; overflow: hidden; }


/* ---------- tabs ---------- */
.tabs { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.tabs a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 99px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 550; transition: color .35s var(--ease); }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); }
.tabs a .ico { width: 16px; height: 16px; opacity: .8; }
.tabs a.active .ico { color: var(--gold); opacity: 1; }
.tab-glider { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 99px; background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); opacity: 0; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; }
.tab-glider.on { opacity: 1; }
a.nav-pill { text-decoration: none; }

/* ---------- page transitions + headers ---------- */
.view.entering { animation: viewIn .7s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
.page-head { padding: 64px 0 40px; max-width: 760px; }
.page-head h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.035em; }
.page-head .lede { margin-top: 16px; }
.lede.mono { font-family: var(--mono); font-size: .92rem; letter-spacing: -.01em; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 34px; color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .3s, transform .4s var(--ease); }
.back-link:hover { color: var(--text); transform: translate3d(-3px, 0, 0); }
.back-link + .page-head { padding-top: 22px; }
.mono { font-family: var(--mono); }
.coll-tag { position: absolute; left: 12px; top: 12px; z-index: 2; max-width: calc(100% - 64px); font: 600 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 9px; border-radius: 8px; color: #f3e6c8; background: rgba(8,9,12,.72); border: 1px solid rgba(245,185,74,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* shared small media squares */
.mini, .mos { position: relative; overflow: hidden; background: #0b0c10; }
.mini .kind-ico .ico, .mos .kind-ico .ico { width: 22px; height: 22px; }
.mini.has-ph .kind-ico, .mos.has-ph .kind-ico { opacity: 0; }

/* ---------- collections ---------- */
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.coll-card { display: block; color: var(--text); text-decoration: none; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease); }
.coll-card.reveal { transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms), border-color .5s, box-shadow .6s; }
@media (hover: hover) { .coll-card.in:hover { transform: translate3d(0, -6px, 0); transition-delay: 0ms; border-color: rgba(245,185,74,.32); box-shadow: 0 30px 60px -30px rgba(0,0,0,.95); } .coll-card:hover .mos { transform: scale(1.04); } }
.mosaic { display: grid; gap: 3px; aspect-ratio: 16 / 10; background: var(--line); }
.mosaic.n1 { grid-template-columns: 1fr; }
.mosaic.n2 { grid-template-columns: 1fr 1fr; }
.mosaic.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic.n3 .mos:first-child { grid-row: span 2; }
.mosaic.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mos { transition: transform 1s var(--ease); }
.coll-body { padding: 18px 20px 20px; }
.coll-body h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.coll-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.prog.ok { color: var(--mint); }
.coll-bar { height: 3px; margin-top: 12px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.coll-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), #a6f7d4); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.2s var(--ease); }

/* ---------- timeline ---------- */
.timeline { position: relative; max-width: 860px; }
.tl-group { margin-bottom: 44px; }
.tl-month { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-weight: 400; }
.tl-month em { font-family: var(--serif); font-style: italic; font-size: 2.3rem; letter-spacing: -.01em; color: var(--text); }
.tl-month span { font-size: .85rem; color: var(--muted); }
.tl-list { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.tl-list::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, rgba(245,185,74,.6), rgba(255,255,255,.06)); }
.tl-item { position: relative; display: grid; grid-template-columns: 70px 56px 1fr auto; align-items: center; gap: 16px; padding: 12px 14px; margin-left: -14px; border-radius: 16px; cursor: pointer; transition: background .4s var(--ease), transform .5s var(--ease); }
.tl-item:hover { background: rgba(255,255,255,.035); transform: translate3d(4px, 0, 0); }
.tl-dot { position: absolute; left: -24.5px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); transition: background .4s, border-color .4s; }
.tl-item.is-open .tl-dot { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 10px rgba(79,227,166,.6); }
.tl-item time { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tl-media .mini { width: 56px; height: 56px; border-radius: 12px; }
.tl-info { min-width: 0; display: flex; flex-direction: column; }
.tl-info strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-state { color: var(--gold); padding: 4px 9px; border-radius: 8px; border: 1px solid rgba(245,185,74,.25); }
.tl-item.is-open .tl-state { color: var(--mint); border-color: rgba(79,227,166,.3); }

/* ---------- keys ---------- */
.redeem { max-width: 720px; }
.redeem-field { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(255,255,255,.035); transition: border-color .4s, box-shadow .5s var(--ease); }
.redeem-field:focus-within { border-color: rgba(245,185,74,.6); box-shadow: 0 0 0 5px var(--gold-soft); }
.redeem-field > .ico { width: 22px; height: 22px; color: var(--gold); }
.redeem-field input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none !important; font: 500 1.15rem var(--mono); letter-spacing: .02em; padding: 12px 4px; }
.redeem-field .btn { padding: 13px 24px; border-radius: 16px; }
.redeem-result { margin: 14px 4px 0; font-size: .95rem; animation: fadeUp .5s var(--ease) both; }
.redeem-result.good { color: var(--mint); }
.redeem-result.good strong { font-weight: 650; }
.redeem-result.bad { color: var(--danger); }
.keys-head { display: flex; align-items: baseline; justify-content: space-between; max-width: 720px; margin: 56px 0 10px; }
.keys-list { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.key-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); animation: fadeUp .6s var(--ease) both; }
.key-item.leaving { animation: leave .4s var(--ease) forwards; }
.key-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); flex-shrink: 0; }
.key-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.key-val { font: 500 .98rem var(--mono); letter-spacing: .03em; word-break: break-all; }
.key-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key-actions { display: flex; gap: 4px; }
.keys-empty { max-width: 720px; padding: 18px 0; border-top: 1px solid var(--line); }
.forget-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 720px; margin-top: 48px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(255,95,109,.2); background: rgba(255,95,109,.04); }
.forget-row p { margin: 0; }

/* ---------- about ---------- */
.about-text { max-width: 720px; font-size: 1.15rem; line-height: 1.65; color: #d4d4da; }
.about-text p:first-child { font-family: var(--serif); font-size: 1.7rem; line-height: 1.35; color: var(--text); letter-spacing: -.005em; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; padding: 26px 24px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease), border-color .5s; }
.step-card:hover { transform: translate3d(0, -4px, 0); border-color: rgba(245,185,74,.3); }
.step-card > .ico { width: 28px; height: 28px; color: var(--gold); margin-bottom: 16px; }
.step-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-n { position: absolute; right: 18px; top: 10px; font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: rgba(245,185,74,.14); }
.faq-title { margin: 64px 0 12px; font-size: 1.5rem; }
.faq { max-width: 760px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; border: 0; border-radius: 0; background: transparent; font-size: 1.05rem; font-weight: 550; text-align: left; }
.q:hover { background: transparent; color: var(--gold); }
.q i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .5s var(--ease), border-color .3s; flex-shrink: 0; }
.q i .ico { width: 15px; height: 15px; }
.qa.open .q i { transform: rotate(45deg); border-color: rgba(245,185,74,.5); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.a > div { overflow: hidden; }
.a p { margin: 0 0 20px; color: var(--muted); max-width: 640px; opacity: 0; transform: translate3d(0, -6px, 0); transition: opacity .4s var(--ease), transform .55s var(--ease); }
.qa.open .a { grid-template-rows: 1fr; }
.qa.open .a p { opacity: 1; transform: none; }

@media (max-width: 1060px) { [data-view="desktop"] .tabs a .ico { display: none; } [data-view="desktop"] .tabs a { padding: 8px 12px; } }
@media (max-width: 860px) { [data-view="desktop"] .nav-pill { display: none; } }
/* mobile: bottom tab bar like an app */
[data-view="mobile"] .tabs {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 80; justify-content: space-between;
  padding: 6px; border-radius: 22px; background: rgba(16,17,22,.94); border-color: var(--line-2); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8);
}
[data-view="mobile"] .tabs a { flex: 1; flex-direction: column; gap: 3px; padding: 8px 2px 7px; font-size: .66rem; border-radius: 16px; }
[data-view="mobile"] .tabs a .ico { width: 20px; height: 20px; }
[data-view="mobile"] .tab-glider { top: 6px; bottom: 6px; border-radius: 16px; }
[data-view="mobile"] .page { padding-bottom: 110px; }
[data-view="mobile"][data-device="phone"] .view-toggle { bottom: calc(90px + env(safe-area-inset-bottom)); }
[data-view="mobile"][data-device="large"] .tabs { position: sticky; left: auto; right: auto; bottom: 10px; margin-top: 10px; }
[data-view="mobile"] .nav-pill { padding: 6px 11px; font-size: .78rem; }
[data-view="mobile"] .page-head { padding: 30px 0 26px; }
[data-view="mobile"] .page-head h1 { font-size: 2.6rem; }
[data-view="mobile"] .coll-grid { grid-template-columns: 1fr; gap: 14px; }
[data-view="mobile"] .tl-item { grid-template-columns: 48px 1fr auto; gap: 12px; }
[data-view="mobile"] .tl-item time { display: none; }
[data-view="mobile"] .tl-media .mini { width: 48px; height: 48px; }
[data-view="mobile"] .tl-month em { font-size: 1.9rem; }
[data-view="mobile"] .redeem-field { flex-wrap: wrap; padding: 8px; }
[data-view="mobile"] .redeem-field > .ico { display: none; }
[data-view="mobile"] .redeem-field input { width: 100%; flex-basis: 100%; padding: 12px 10px; font-size: 1rem; }
[data-view="mobile"] .redeem-field .btn { width: 100%; }
[data-view="mobile"] .key-item { flex-wrap: wrap; }
[data-view="mobile"] .key-actions { width: 100%; justify-content: flex-end; }
[data-view="mobile"] .forget-row { flex-direction: column; align-items: flex-start; }
[data-view="mobile"] .steps { grid-template-columns: 1fr; }
[data-view="mobile"] .about-text p:first-child { font-size: 1.35rem; }


/* vault sound toggle + tap-to-spin on touch */
.sound-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.sound-btn:hover { color: var(--text); }
.sound-btn .ico { width: 17px; height: 17px; }
.sound-btn .sx { opacity: 0; }
.sound-btn .sw1, .sound-btn .sw2 { transition: opacity .3s var(--ease); }
.sound-btn.off .sw1, .sound-btn.off .sw2 { opacity: 0; }
.sound-btn.off .sx { opacity: 1; }
.sound-btn:not(.off) { color: var(--gold); }
.hero-art.spin .v-wheel { transform: rotate(120deg); }
.hero-art { -webkit-tap-highlight-color: transparent; }


/* admin lockdown */
.lock-card { border-color: rgba(255,95,109,.22); }
body.site-locked .lock-card { border-color: rgba(255,95,109,.6); box-shadow: 0 0 0 1px rgba(255,95,109,.25), 0 20px 60px -20px rgba(255,60,60,.35); }
.lock-status { font: 700 .72rem/1 var(--mono); letter-spacing: .14em; padding: 6px 10px; border-radius: 8px; color: var(--mint); border: 1px solid rgba(79,227,166,.3); }
.lock-status.on { color: #fff; background: var(--danger); border-color: var(--danger); animation: pulseRed 1.8s ease-in-out infinite; }
.btn.lock-btn { padding: 14px; font-weight: 700; }
.btn.danger-fill { color: #fff; border: 0; background: linear-gradient(180deg, #ff6b74, #e5484d); box-shadow: 0 10px 26px -10px rgba(229,72,77,.7); }
.btn.danger-fill.armed { background: linear-gradient(180deg, #ff3b47, #b3131d); animation: impactShake .5s cubic-bezier(.36,.07,.19,.97); }
body.site-locked .nav .pill { color: #fff; background: var(--danger); border-color: var(--danger); }
@keyframes pulseRed { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.6); } 50% { box-shadow: 0 0 0 6px rgba(229,72,77,0); } }


/* admin: save a key this browser doesn't know yet */
.btn.warn { color: var(--gold); border-color: rgba(245,185,74,.4); background: var(--gold-soft); }
.savekey { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0 14px 78px; animation: fadeUp .5s var(--ease) both; }
.savekey input { flex: 1; min-width: 180px; font-family: var(--mono); padding: 9px 12px; }
.savekey .msg { flex-basis: 100%; }
[data-view="mobile"] .savekey { padding-left: 0; }


/* admin passkeys */
.pk-list { list-style: none; margin: 0; padding: 0; }
.pk-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); animation: fadeUp .5s var(--ease) both; }
.pk-item .key-main strong { font-weight: 600; }
.lock-status.on-good { color: #06150e; background: var(--mint); border-color: var(--mint); }
.login-stage { color: var(--gold); font-size: .92rem; animation: fadeUp .4s var(--ease) both; }


/* pointer-reactive background */
.bg-par { position: absolute; inset: 0; will-change: transform; }
.bg-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-spot { position: absolute; left: 0; top: 0; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(245,185,74,.14), rgba(255,138,61,.05) 38%, transparent 68%); }
body.has-unlocked .bg-spot { background: radial-gradient(circle, rgba(245,185,74,.13), rgba(79,227,166,.06) 40%, transparent 68%); }
/* cards catch the light where the pointer is */
.coll-card { position: relative; }
.tile::after, .coll-card::after, .step-card::after, .card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,236,200,.075), transparent 45%);
}
.card { position: relative; }
@media (hover: hover) { .tile:hover::after, .coll-card:hover::after, .step-card:hover::after, .card:hover::after { opacity: 1; } }

/* ================= DESKTOP VIEW ================= */
[data-view="desktop"] .modal-card .m-media { min-height: 460px; }

/* ================= MOBILE VIEW ================= */
[data-view="mobile"] .page { padding: 0 18px 40px; }
[data-view="mobile"] .nav { padding: 12px 0; }
[data-view="mobile"] .hero { grid-template-columns: 1fr; gap: 8px; padding: 6px 0 40px; }
[data-view="mobile"] .hero-art { order: -1; max-width: 230px; justify-self: center; }
[data-view="mobile"] .hero h1 { font-size: 2.9rem; }
[data-view="mobile"] .lede { font-size: 1.05rem; }
[data-view="mobile"] .stats { gap: 24px; margin-top: 26px; }
[data-view="mobile"] .stats strong { font-size: 1.25rem; }
[data-view="mobile"] .toolbar { flex-direction: column; align-items: stretch; }
[data-view="mobile"] .search { max-width: none; }
[data-view="mobile"] .chip { flex: 1; }
[data-view="mobile"] .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
[data-view="mobile"] .tile { border-radius: 18px; }
[data-view="mobile"] .tile-body { padding: 11px 12px 13px; }
[data-view="mobile"] .tile-body h3 { font-size: .95rem; }
[data-view="mobile"] .tile-body .desc { display: none; }
[data-view="mobile"] .tile-body .meta { font-size: .72rem; margin-top: 4px; }
[data-view="mobile"] .lock-badge { top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 10px; }
[data-view="mobile"] .modal { padding: 0; place-items: end stretch; top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100dvh); }
[data-view="mobile"] .modal-card { grid-template-columns: 1fr; width: 100%; max-height: calc(var(--vvh, 100dvh) - max(12px, env(safe-area-inset-top))); border-radius: 28px 28px 0 0; transform: translate3d(0, 100%, 0); transition: opacity .3s, transform .65s var(--ease); }
[data-view="mobile"] .modal.show .modal-card { transform: none; }
[data-view="mobile"] .m-media { min-height: 0; aspect-ratio: 16 / 11; }
[data-view="mobile"] .modal-card .m-body { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
[data-view="mobile"] .m-body h2 { font-size: 1.45rem; }
[data-view="mobile"] .admin-grid { grid-template-columns: 1fr; }
[data-view="mobile"] .card { padding: 20px; }
[data-view="mobile"] .admin-item { flex-wrap: wrap; }
[data-view="mobile"] .admin-actions { width: 100%; justify-content: flex-start; }
[data-view="mobile"] .key-row { flex-direction: column; }
[data-view="mobile"] .footer { flex-direction: column; align-items: flex-start; margin-top: 48px; }
[data-view="mobile"] .edit-card { border-radius: 28px 28px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }

/* Mobile view chosen on a computer: preview inside a phone frame */
[data-view="mobile"][data-device="large"] body { padding: 3vh 0; }
[data-view="mobile"][data-device="large"] .page {
  max-width: 410px; height: 92vh; overflow-y: auto; border-radius: 46px; border: 10px solid #1b1d23;
  background: var(--bg); box-shadow: 0 50px 120px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); scrollbar-width: none;
}
[data-view="mobile"][data-device="large"] .page::-webkit-scrollbar { display: none; }
[data-view="mobile"][data-device="large"] .nav::before { inset: 0 -18px; }
[data-view="mobile"][data-device="large"] .modal { place-items: center; }
[data-view="mobile"][data-device="large"] .modal-card, [data-view="mobile"][data-device="large"] .edit-card { width: 390px; border-radius: 28px; max-height: 88vh; }

/* ---------- floating view toggle ---------- */
.view-toggle {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 99px;
  border: 1px solid var(--line-2); background: rgba(20,22,27,.92); box-shadow: 0 14px 40px -10px rgba(0,0,0,.8);
  font-size: .86rem; font-weight: 600; color: var(--text); animation: floatIn .9s var(--ease) .8s both;
}
.vt-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); transition: transform .6s var(--spring); }
.vt-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.view-toggle:hover .vt-icon { transform: rotate(-12deg) scale(1.08); }
.view-toggle.vt-pop .vt-icon { animation: spinPop .6s var(--spring); }
[data-view-source="manual"] .view-toggle .vt-icon { box-shadow: 0 0 0 2px var(--gold); }
[data-zoomed] .view-toggle { transform-origin: bottom right; scale: 1.7; }
[data-view="mobile"][data-device="phone"] .view-toggle { padding: 8px; }
[data-view="mobile"][data-device="phone"] .view-toggle .vt-label { display: none; }
body.modal-open .view-toggle { opacity: 0; pointer-events: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: var(--ease); }
.view-switching .page { animation: fadeUp .5s var(--ease) both; }

/* ---------- vault-dial cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type=checkbox]):not([type=radio]):not([type=file]), html.has-cursor textarea, html.has-cursor select { cursor: text !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); will-change: transform; }
.cur.on { opacity: 1; }
.cur-scale { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; transition: transform .5s var(--spring), opacity .3s var(--ease); }
.cur-rot { width: 100%; height: 100%; will-change: transform; }
.cur-dial { width: 100%; height: 100%; overflow: visible; display: block; filter: drop-shadow(0 0 6px rgba(245,185,74,.45)); }
.d-face { fill: rgba(245,185,74,.06); stroke: var(--gold); stroke-width: 1.4; transition: fill .4s var(--ease), stroke .4s; }
.d-ticks line { stroke: rgba(245,185,74,.55); stroke-width: 1.1; stroke-linecap: round; transition: stroke .4s; }
.d-ticks line.maj { stroke: var(--gold); stroke-width: 1.6; }
.d-notch { fill: #fff2cf; transition: fill .4s; }

.cur[data-state="hover"] .cur-scale { transform: scale(1.3); }
.cur[data-state="hover"] .d-face { fill: rgba(245,185,74,.1); }
.cur.down .cur-scale { transform: scale(.82); transition-duration: .15s; }
.cur[data-state="hover"].down .cur-scale { transform: scale(1.1); }
.cur[data-state="text"] .cur-scale { transform: scale(.3); opacity: 0; }

/* over files: the dial grows into a frame around a padlock */
.cur[data-state="lock"] .cur-scale, .cur[data-state="unlock"] .cur-scale, .cur.celebrate .cur-scale { transform: scale(2.15); }
.cur[data-state="lock"] .d-face, .cur[data-state="unlock"] .d-face, .cur.celebrate .d-face { fill: rgba(8,9,12,.82); stroke-width: .9; }
.cur[data-state="lock"] .d-ticks line, .cur[data-state="unlock"] .d-ticks line { stroke-width: .8; }
.cur[data-state="unlock"] .d-face, .cur.celebrate .d-face { stroke: var(--mint); }
.cur[data-state="unlock"] .d-ticks line, .cur.celebrate .d-ticks line { stroke: rgba(79,227,166,.7); }
.cur[data-state="unlock"] .d-notch, .cur.celebrate .d-notch { fill: var(--mint); }
.cur[data-state="unlock"] .cur-dial, .cur.celebrate .cur-dial { filter: drop-shadow(0 0 8px rgba(79,227,166,.45)); }
.cur-lock { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -14px 0 0 -13px; overflow: visible; opacity: 0; transform: scale(.4); transition: opacity .25s var(--ease), transform .55s var(--spring); }
.cur[data-state="lock"] .cur-lock, .cur[data-state="unlock"] .cur-lock, .cur.celebrate .cur-lock { opacity: 1; transform: scale(1); }
.cur-shackle { fill: none; stroke: var(--gold); stroke-width: 2.8; stroke-linecap: round; transform-box: view-box; transform-origin: 21.5px 14px; transition: transform .9s var(--spring), stroke .45s; }
.cur-body { fill: var(--gold); transition: fill .45s; }
.cur-hole { fill: #1a1306; stroke: #1a1306; stroke-width: 2; stroke-linecap: round; }
.cur-keyhole { transform-box: view-box; transform-origin: 16px 21px; transition: transform .5s var(--ease); }
.cur[data-state="unlock"] .cur-shackle { transform: translateY(-3px) rotate(30deg); stroke: var(--mint); }
.cur[data-state="unlock"] .cur-body { fill: var(--mint); }
/* unlock celebration */
.cur.celebrate .cur-lock { animation: lockSlam 1.4s cubic-bezier(.2,.8,.2,1); }
.cur.celebrate .cur-keyhole { transform: rotate(90deg); }
.cur.celebrate .cur-shackle { transform: translateY(-4px) rotate(32deg); stroke: var(--mint); transition-delay: .28s; }
.cur.celebrate .cur-body { fill: var(--mint); transition-delay: .28s; }
.cur-wave, .cur-spark { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; }
.cur-wave b { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid #ffb347; opacity: 0; will-change: transform, opacity; animation: wave 1.1s var(--ease) both; }
.cur-wave:nth-of-type(2n) b { border-color: #fff1d6; }
.cur-spark b { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform, opacity; animation: spark 1.2s cubic-bezier(.15,.85,.3,1) forwards; }

/* ---------- keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translate3d(24px, 0, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -6px, 0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
@keyframes skel { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translate3d(-6px, 0, 0); } 40%, 80% { transform: translate3d(6px, 0, 0); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes lockSlam {
  0% { transform: scale(1) rotate(0); }
  6% { transform: scale(1.03) rotate(-9deg); }
  12% { transform: scale(1.03) rotate(7deg); }
  17% { transform: scale(.88) rotate(0); }
  20% { transform: scale(1.5) rotate(-3deg); }
  34% { transform: scale(.95) rotate(1.5deg); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@keyframes lockJam {
  0% { transform: none; }
  12% { transform: translateY(-3px) rotate(-6deg); }
  20% { transform: translateY(1.5px) rotate(5deg) scale(.97); }
  34% { transform: translateX(-3px) rotate(-4deg); }
  48% { transform: translateX(2px) rotate(3deg); }
  64% { transform: rotate(-1.5deg); }
  100% { transform: none; }
}
@keyframes shackleYank { 0% { transform: none; } 14% { transform: translateY(-5px); } 22% { transform: translateY(.6px); } 32% { transform: translateY(-1.5px); } 44%, 100% { transform: none; } }
@keyframes bodyHeat { 0% { fill: var(--gold); } 22% { fill: #ff7a45; } 100% { fill: var(--gold); } }
@keyframes impactShake {
  0%, 100% { transform: none; }
  12% { transform: translate3d(-7px, 4px, 0) rotate(-.4deg); }
  25% { transform: translate3d(6px, -5px, 0) rotate(.4deg); }
  38% { transform: translate3d(-5px, 3px, 0); }
  52% { transform: translate3d(4px, -2px, 0); }
  68% { transform: translate3d(-2px, 1px, 0); }
}
@keyframes lockJazz {
  0% { transform: scale(1) rotate(0); }
  12% { transform: scale(1.06) rotate(-14deg); }
  24% { transform: scale(1.06) rotate(10deg); }
  34% { transform: scale(1) rotate(0); }
  48% { transform: scale(1.45) rotate(-4deg); }
  62% { transform: scale(.92) rotate(2deg); }
  76% { transform: scale(1.1) rotate(0); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes badgePop { 0% { transform: scale(1) rotate(0); } 30% { transform: scale(1.45) rotate(-16deg); } 55% { transform: scale(.92) rotate(8deg); } 75% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes ringFlash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wave { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes flashGlow { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sweep { to { transform: translate3d(110%, 0, 0); } }
@keyframes confetti { 0% { opacity: 1; transform: translate3d(-50%, -50%, 0) rotate(0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate3d(calc(-50% + var(--cx)), calc(-50% + var(--cy)), 0) rotate(var(--rot)) scale(.6); } }
@keyframes spark { 0% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 100% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(0); opacity: 0; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(245,185,74,.6); } 100% { box-shadow: 0 0 0 12px rgba(245,185,74,0); } }
@keyframes floatIn { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes spinPop { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.8); } 100% { transform: rotate(360deg) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero-art, .display .w > span { opacity: 1 !important; transform: none !important; }
}
