:root {
  --bg: #050507;
  --panel: #0c0a14;
  --pink: #ff2d95;
  --blue: #00d4ff;
  --violet: #a855f7;
  --text: #f5f3ff;
  --muted: #a7a3b8;
  --radius: 18px;
  color-scheme: dark;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); }
html.no-scroll { overflow: hidden; }

body {
  min-height: 100vh;
  min-height: 100svh;
  /* Sin fondo propio: el de <html> ya es el negro base, y así los halos y la
     rejilla (z-index: -1) se ven. Antes el fondo del body los tapaba. */
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

/* ------------------------------------------------------------ fondo */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute;
  width: 90vmax; height: 90vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c) 0%, transparent 100%);
  opacity: .3;
  will-change: transform;
  animation: orb 22s ease-in-out infinite alternate;
}
.bg-orbs span:nth-child(1) { --c: var(--pink); left: -40vmax; top: -45vmax; }
.bg-orbs span:nth-child(2) { --c: var(--blue); right: -45vmax; top: -25vmax; animation-delay: -7s; }
.bg-orbs span:nth-child(3) { --c: var(--violet); left: -5vmax; bottom: -55vmax; animation-delay: -14s; }
@keyframes orb { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* ------------------------------------------------------------ hero */
.hero {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5rem) 16px clamp(1.5rem, 4vw, 2.5rem);
  max-width: 1040px;
  margin: 0 auto;
}

.crown {
  display: inline-block;
  width: clamp(56px, 12vw, 84px);
  margin-bottom: .8rem;
  filter: drop-shadow(0 0 6px rgba(255, 45, 149, .7)) drop-shadow(0 0 18px rgba(168, 85, 247, .55));
  animation: crown-in .8s cubic-bezier(.2, 1.4, .4, 1) both, float 4s ease-in-out .8s infinite;
}
.crown svg { display: block; width: 100%; height: auto; }
@keyframes crown-in { from { transform: translateY(-40px) rotate(-12deg) scale(.6); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-6px); } }

.title {
  font-size: clamp(2.1rem, 9vw, 5.25rem);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.02;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .35em;
}
.title .w { display: inline-flex; }
.title .w span {
  display: inline-block;
  animation: neon-on 1.2s steps(1) both, flicker 7s linear 2s infinite;
  animation-delay: calc(var(--i) * 50ms + var(--d, 0ms)), calc(var(--i) * 310ms + 2s);
}
.title .w-million { --d: 80ms; color: #e6fbff; text-shadow: 0 0 4px var(--blue), 0 0 14px var(--blue), 0 0 34px rgba(0, 212, 255, .7); }
.title .w-mural   { --d: 320ms; color: #ffe6f3; text-shadow: 0 0 4px var(--pink), 0 0 14px var(--pink), 0 0 34px rgba(255, 45, 149, .7); }
.title .w-baby    { --d: 560ms; color: #f3e8ff; text-shadow: 0 0 4px var(--violet), 0 0 14px var(--violet), 0 0 34px rgba(168, 85, 247, .7); }
@keyframes neon-on {
  0%   { opacity: .08; text-shadow: none; }
  10%  { opacity: 1; }
  14%  { opacity: .15; text-shadow: none; }
  22%  { opacity: 1; }
  26%  { opacity: .3; text-shadow: none; }
  34%, 100% { opacity: 1; }
}
@keyframes flicker { 0%, 95%, 100% { opacity: 1; } 96% { opacity: .55; } 97% { opacity: 1; } 98.5% { opacity: .75; } }

.tagline {
  margin: 1.2rem auto 0;
  max-width: 36ch;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
  animation: rise .8s ease .8s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  margin-top: 1.8rem;
  animation: rise .8s ease 1s both;
}
.stat { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.stat strong {
  display: inline-block;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, .35));
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  animation: rise .8s ease 1.15s both;
}

/* ------------------------------------------------------------ botones */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: clamp(.9rem, 2.6vw, 1.05rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s cubic-bezier(.2, 1.6, .4, 1), box-shadow .3s ease, filter .3s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(.96); }
.btn:disabled { cursor: not-allowed; filter: grayscale(.8) brightness(.7); transform: none; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.btn-inner { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 2rem; }
.btn svg { width: 1.25em; height: 1.25em; }
.btn.small .btn-inner { padding: .7rem 1.3rem; font-size: .85rem; }
.btn.small { font-size: .85rem; }

/* Explorar: borde de neón giratorio + destello + pulso */
.btn-explore {
  padding: 2px;
  background: conic-gradient(from var(--angle), var(--blue), var(--pink), var(--violet), var(--blue));
  animation: spin 3s linear infinite, glow 2.6s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 212, 255, .35), 0 0 40px rgba(255, 45, 149, .25);
}
.btn-explore .btn-inner { background: #0a0710; border-radius: 999px; }
.btn-explore::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
.btn-explore:hover { box-shadow: 0 0 28px rgba(0, 212, 255, .65), 0 0 60px rgba(255, 45, 149, .45); }
.btn-explore:hover svg { animation: blast .6s ease-in-out infinite alternate; }
@keyframes spin { to { --angle: 360deg; } }
@keyframes glow { 50% { box-shadow: 0 0 30px rgba(168, 85, 247, .6), 0 0 60px rgba(0, 212, 255, .35); } }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes blast { to { transform: translate(2px, -3px) rotate(8deg); } }

/* Subir: degradado sólido */
.btn-upload {
  background: linear-gradient(120deg, var(--pink), var(--violet), var(--blue));
  background-size: 200% 100%;
  animation: slide 4s ease-in-out infinite alternate;
  box-shadow: 0 0 22px rgba(255, 45, 149, .45);
  color: #fff;
}
.btn-upload:hover { box-shadow: 0 0 34px rgba(255, 45, 149, .7); }
@keyframes slide { to { background-position: 100% 0; } }

.btn.ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); padding: .8rem 1.3rem; font-size: .8rem; }

.ripple {
  position: absolute;
  z-index: 4;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  pointer-events: none;
  animation: ripple .7s ease-out forwards;
}
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

.next-hint {
  display: block;
  margin: 1.2rem auto 0;
  padding: .2rem .4rem;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
  animation: rise .8s ease 1.3s both;
}
.next-hint b {
  color: var(--pink);
  font-family: ui-monospace, Consolas, monospace;
  text-shadow: 0 0 10px rgba(255, 45, 149, .8);
  animation: beat 1.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes beat { 50% { transform: scale(1.12); } }

.mine-pill {
  margin-top: 1.2rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, .5);
  background: rgba(0, 212, 255, .08);
  color: var(--text);
  font-size: .85rem;
  cursor: pointer;
}
.mine-pill b { color: var(--blue); font-family: ui-monospace, Consolas, monospace; }

/* ------------------------------------------------------------ mural */
.mural-wrap {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  height: min(78svh, 820px);
  margin: 1rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(140deg, rgba(0, 212, 255, .75), rgba(255, 45, 149, .55) 45%, rgba(168, 85, 247, .75)) border-box;
  box-shadow: 0 0 50px rgba(168, 85, 247, .2), 0 0 120px rgba(255, 45, 149, .1), 0 30px 80px -30px rgba(0, 212, 255, .25);
  animation: rise .9s ease 1.3s both;
}
.mural-wrap.is-exploring {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  z-index: 50;
  animation: none;
}
#mural { display: block; width: 100%; height: 100%; cursor: grab; }

.hud { position: absolute; z-index: 2; display: flex; gap: .5rem; align-items: center; pointer-events: none; transition: opacity .35s ease; }
.hud > * { pointer-events: auto; }
.hud-top { top: 12px; left: 12px; right: 12px; justify-content: space-between; }
.hud-side { right: 12px; top: 50%; transform: translateY(-50%); flex-direction: column; }
.hud-bottom { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; flex-wrap: wrap; }
.is-exploring .hud-bottom .hint { display: none; }

.hud-side button, .goto, .badge {
  background: rgba(10, 7, 16, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hud-side button {
  width: 40px; height: 40px;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .2s, box-shadow .2s;
}
.hud-side button:hover { border-color: var(--blue); box-shadow: 0 0 14px rgba(0, 212, 255, .5); }
.hud-side svg { width: 18px; height: 18px; }

.badge { padding: .35rem .7rem; border-radius: 999px; font-size: .7rem; letter-spacing: .12em; color: var(--blue); }
.goto { display: flex; align-items: center; border-radius: 999px; padding: 0 .3rem 0 .8rem; margin-left: auto; }
.goto label { color: var(--pink); font-weight: 800; }
.goto:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 212, 255, .18); }
.goto input::-webkit-search-cancel-button { display: none; }
.goto input {
  width: 15ch;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  color: var(--text);
  font: 600 .9rem ui-monospace, Consolas, monospace;
  padding: .55rem .3rem;
  outline: none;
}
.goto button { border: 0; background: var(--pink); border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: .8rem; cursor: pointer; }

.hint { font-size: .75rem; color: var(--muted); background: rgba(10, 7, 16, .7); padding: .35rem .7rem; border-radius: 999px; }

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
  color: var(--muted);
  gap: .4rem;
}
.empty-state .big { font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--text); font-weight: 800; }
.empty-state b { color: var(--pink); text-shadow: 0 0 18px var(--pink); font-family: ui-monospace, Consolas, monospace; }

/* HUD del vuelo */
.flight-hud {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  pointer-events: none;
}
.flight-num {
  font: 800 clamp(1.4rem, 5vw, 2.4rem) ui-monospace, Consolas, monospace;
  color: #fff;
  text-shadow: 0 0 10px var(--pink), 0 0 30px var(--violet);
  letter-spacing: .06em;
}
.flight-speed { width: 160px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.flight-speed i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--violet));
  transform-origin: left;
  transform: scaleX(0);
}
.flight-skip {
  pointer-events: auto;
  margin-top: .3rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(10, 7, 16, .6);
  font-size: .75rem;
  cursor: pointer;
}

.exit-explore {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(10, 7, 16, .75);
  font-size: 1.1rem;
  cursor: pointer;
}
.is-exploring .hud-top { right: 68px; }

.site-footer { text-align: center; padding: 2.5rem 16px 2rem; font-size: .78rem; color: #6a6580; }

/* ------------------------------------------------------------ modales */
.modal {
  margin: auto;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 22px;
  padding: 1.6rem 1.4rem 1.4rem;
  color: var(--text);
  background: linear-gradient(#0d0a16, #0d0a16) padding-box,
              linear-gradient(140deg, var(--blue), var(--pink), var(--violet)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 60px rgba(168, 85, 247, .35);
}
.modal[open] { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.modal::backdrop { background: rgba(3, 2, 6, .72); backdrop-filter: blur(6px); animation: fade-in .3s ease; }
@keyframes pop { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.modal h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  z-index: 2;
}
.muted { color: var(--muted); font-size: .9rem; }
.step { display: flex; flex-direction: column; gap: 1rem; }
.step[hidden] { display: none; }
.row { display: flex; gap: .7rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border: 2px dashed rgba(255, 255, 255, .2);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: var(--muted);
}
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:hover, .dropzone.over { border-color: var(--pink); background: rgba(255, 45, 149, .06); color: var(--text); }
.dz-icon { font-size: 3rem; color: var(--pink); text-shadow: 0 0 20px var(--pink); }

/* ------------------------------------------------------------ normas */
.hero-rules { margin: 1.4rem auto 0; max-width: 620px; animation: rise .8s ease 1.4s both; text-align: left; }
.rules { font-size: .9rem; }
.rules summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: 0 auto;
  width: fit-content;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, .45);
  background: rgba(0, 212, 255, .07);
  color: var(--text);
  font-weight: 700;
  transition: background .25s, box-shadow .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.rules summary::-webkit-details-marker { display: none; }
.rules summary:hover { background: rgba(0, 212, 255, .14); box-shadow: 0 0 18px rgba(0, 212, 255, .35); }
.rules summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.rules-q::before { content: "💡 "; }
.rules-chev {
  width: 9px; height: 9px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s ease;
}
.rules[open] .rules-chev { transform: rotate(-135deg) translate(-2px, 0); }
.rules[open] summary { border-color: var(--pink); background: rgba(255, 45, 149, .1); }

.rules-body { margin-top: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.rules[open] .rules-body { animation: rules-in .45s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes rules-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.rules-intro, .rules-foot { color: var(--muted); text-align: center; font-size: .85rem; line-height: 1.45; }

.rules-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.rules-card {
  border-radius: 16px;
  padding: .9rem 1rem 1rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
}
.rules-card.yes { box-shadow: inset 0 0 0 1px rgba(0, 212, 255, .35), 0 0 24px rgba(0, 212, 255, .12); }
.rules-card.no  { box-shadow: inset 0 0 0 1px rgba(255, 45, 149, .35), 0 0 24px rgba(255, 45, 149, .12); }
.rules-card h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7rem; }
.rules-card.yes h3 { color: var(--blue); }
.rules-card.no h3 { color: var(--pink); }
.rules-card ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.rules-card li { display: flex; align-items: center; gap: .6rem; line-height: 1.25; }
.rules-card li span {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  font-size: 1rem;
}
.rules[open] .rules-card li { animation: rules-item .4s ease both; }
.rules[open] .rules-card li:nth-child(2) { animation-delay: .04s; }
.rules[open] .rules-card li:nth-child(3) { animation-delay: .08s; }
.rules[open] .rules-card li:nth-child(4) { animation-delay: .12s; }
.rules[open] .rules-card li:nth-child(5) { animation-delay: .16s; }
.rules[open] .rules-card li:nth-child(6) { animation-delay: .2s; }
@keyframes rules-item { from { opacity: 0; transform: translateX(-8px); } }
.modal .rules summary { width: 100%; }
@media (max-width: 480px) { .rules-cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ en directo */
.live {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  max-width: 100%;
  margin-top: 1.4rem;
  padding: .45rem .9rem .45rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 149, .35);
  background: rgba(255, 45, 149, .07);
  color: var(--text);
  font-size: .85rem;
  cursor: pointer;
  animation: rise .8s ease .9s both;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; animation: blink 1.2s ease-in-out infinite; flex: none; }
@keyframes blink { 50% { opacity: .25; } }
.live-label { font-size: .65rem; font-weight: 800; letter-spacing: .14em; color: #ff7a93; flex: none; }
.live-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-text b { color: var(--blue); }
.live-text.swap { animation: live-swap .5s ease; }
@keyframes live-swap { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------ hitos */
.milestone { width: min(420px, 100%); margin: 1.4rem auto 0; animation: rise .8s ease 1.1s both; }
.ms-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; margin-bottom: .45rem; }
.ms-row b { color: var(--pink); }
.ms-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ms-bar i {
  position: relative;
  overflow: hidden;
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--violet));
  box-shadow: 0 0 12px rgba(255, 45, 149, .6);
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}

.celebrate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(10, 4, 20, .55), rgba(3, 2, 6, .85));
  cursor: pointer;
  animation: fade-in .3s ease;
}
.celebrate.out { opacity: 0; transition: opacity .4s ease; }
.celebrate canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.celebrate-box { position: relative; text-align: center; display: flex; flex-direction: column; gap: .6rem; padding: 0 16px; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.celebrate-box strong {
  font-size: clamp(2.2rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 12px var(--pink), 0 0 40px var(--violet), 0 0 80px var(--blue);
}
.celebrate-box span { color: var(--text); font-size: clamp(1rem, 3.5vw, 1.3rem); }
@keyframes fade-in { from { opacity: 0; } }

/* ------------------------------------------------------------ tarjeta */
.btn-card { background: linear-gradient(120deg, #feda75, #fa7e1e, #d62976, #962fbf); color: #fff; box-shadow: 0 0 18px rgba(214, 41, 118, .4); }
.btn-card:hover { box-shadow: 0 0 28px rgba(214, 41, 118, .65); }
.card-modal { width: min(400px, calc(100% - 32px)); }
.card-modal h2 { margin-bottom: .2rem; }
.card-preview { width: 100%; aspect-ratio: 9 / 16; margin: 1rem 0; border-radius: 16px; overflow: hidden; background: #000; position: relative; }
.card-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.card-preview.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%); animation: shine 1.2s linear infinite; }

/* ------------------------------------------------------------ máquina del tiempo */
.hourglass {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(10, 7, 16, .88);
  box-shadow: 0 -1px 0 rgba(168, 85, 247, .45), 0 -6px 18px rgba(168, 85, 247, .18);
  cursor: pointer;
  opacity: .55;
  transition: opacity .3s, height .3s, box-shadow .3s;
}
.hourglass:hover, .hourglass:focus-visible { opacity: 1; height: 42px; box-shadow: 0 -1px 0 var(--violet), 0 -8px 26px rgba(168, 85, 247, .5); outline: none; }
.hourglass svg { width: 15px; height: 21px; overflow: visible; animation: hg-flip 9s ease-in-out infinite; }
.hg-frame { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 3px var(--violet)); }
.hg-sand-top { fill: var(--pink); animation: hg-top 9s linear infinite; transform-origin: 12px 12px; }
.hg-sand-bottom { fill: var(--blue); animation: hg-bottom 9s linear infinite; transform-origin: 12px 28px; }
.hg-stream { stroke: var(--pink); stroke-width: 1; stroke-dasharray: 1.5 2; animation: hg-stream .6s linear infinite; }
@keyframes hg-top { 0% { transform: scaleY(1); } 85%, 100% { transform: scaleY(0); } }
@keyframes hg-bottom { 0% { transform: scaleY(.15); } 85%, 100% { transform: scaleY(1); } }
@keyframes hg-stream { to { stroke-dashoffset: -3.5; } }
@keyframes hg-flip { 0%, 88% { transform: rotate(0); } 96%, 100% { transform: rotate(180deg); } }
.hourglass-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 6px);
  white-space: nowrap;
  font-size: .72rem;
  letter-spacing: .08em;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: rgba(10, 7, 16, .9);
  border: 1px solid rgba(168, 85, 247, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.hourglass:hover .hourglass-tip, .hourglass:focus-visible .hourglass-tip { opacity: 1; transform: translate(-50%, 0); }
.is-exploring .hourglass { display: none; }

.vhs {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 5px),
    linear-gradient(rgba(10, 4, 20, .55), rgba(10, 4, 20, .55));
  animation: vhs 0.7s steps(7) both;
}
.vhs span {
  font: 800 clamp(1.4rem, 6vw, 3rem) ui-monospace, Consolas, monospace;
  color: #fff;
  letter-spacing: .1em;
  text-shadow: -3px 0 var(--pink), 3px 0 var(--blue);
  animation: vhs-jitter .12s steps(2) infinite;
}
@keyframes vhs { 0% { opacity: 0; } 15%, 75% { opacity: 1; transform: skewX(-4deg); } 100% { opacity: 0; transform: none; } }
@keyframes vhs-jitter { 50% { transform: translate(2px, -1px); } }

.timemachine {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem 1.1rem 0;
  background: linear-gradient(180deg, rgba(13, 10, 22, .97), rgba(8, 6, 14, .97));
  border-right: 1px solid rgba(168, 85, 247, .4);
  box-shadow: 20px 0 60px rgba(0, 0, 0, .6), 0 0 40px rgba(168, 85, 247, .15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: tm-in .5s cubic-bezier(.2, 1.1, .3, 1) both;
}
.timemachine.out { animation: tm-out .3s ease both; }
@keyframes tm-in { from { transform: translateX(-104%); } }
@keyframes tm-out { to { transform: translateX(-104%); } }
.tm-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.tm-head .modal-close { position: static; flex: none; }
.tm-kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.tm-head h2 { font-size: 1.35rem; margin: .2rem 0; }
.tm-replay { align-self: flex-start; }
.tm-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding: 0 .2rem 2rem 1.4rem;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, .5) transparent;
}
.tm-list::before {
  content: "";
  position: absolute;
  left: .45rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--pink), var(--violet), var(--blue));
  box-shadow: 0 0 10px rgba(168, 85, 247, .7);
  opacity: .7;
}
.tm-day { position: relative; margin: 1.1rem 0 .5rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tm-day::before { content: ""; position: absolute; left: -1.2rem; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--pink); box-shadow: 0 0 8px var(--pink); }
.tm-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .45rem .55rem;
  margin: .25rem 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  animation: rules-item .35s ease both;
}
.tm-item::before { content: ""; position: absolute; left: -1.05rem; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--violet); }
.tm-item:hover, .tm-item:focus-visible { background: rgba(168, 85, 247, .12); transform: translateX(3px); outline: none; }
.tm-item img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.tm-item .tm-num { font: 700 .9rem ui-monospace, Consolas, monospace; }
.tm-item .tm-handle { color: var(--blue); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-item .tm-time { margin-left: auto; color: var(--muted); font-size: .75rem; flex: none; }
.tm-item .tm-text { display: flex; flex-direction: column; min-width: 0; }
.tm-more { display: flex; justify-content: center; gap: .35rem; padding: 1rem 0 1.4rem; }
.tm-more i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: blink 1s ease-in-out infinite; }
.tm-more i:nth-child(2) { animation-delay: .15s; }
.tm-more i:nth-child(3) { animation-delay: .3s; }
.tm-more.done { visibility: hidden; }

.replay-hud {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  pointer-events: none;
  text-align: center;
}
.replay-rec { font: 700 .7rem ui-monospace, Consolas, monospace; letter-spacing: .2em; color: #ff3b5c; animation: blink 1s steps(2) infinite; }
.replay-hud strong { font: 900 clamp(1.4rem, 5vw, 2.4rem) ui-monospace, Consolas, monospace; text-shadow: 0 0 10px var(--pink), 0 0 30px var(--violet); }
.replay-hud span:not(.replay-rec) { font-size: .85rem; color: var(--text); text-shadow: 0 1px 4px #000; }

/* ------------------------------------------------------------ modo pruebas (admin) */
.testmode-badge {
  position: fixed;
  z-index: 90;
  left: 12px;
  top: 12px;
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, .7);
  background: rgba(30, 22, 4, .9);
  color: #ffd166;
  font: 700 .72rem ui-monospace, Consolas, monospace;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 209, 102, .35);
}

/* ------------------------------------------------------------ invitar */
.mine-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: center; margin-top: 1.2rem; }
.mine-row .mine-pill { margin-top: 0; }
.btn-invite {
  background: linear-gradient(120deg, #25d366, var(--blue));
  color: #04120a;
  box-shadow: 0 0 18px rgba(37, 211, 102, .35);
}
.btn-invite:hover { box-shadow: 0 0 28px rgba(37, 211, 102, .6); }
.btn-invite svg { width: 1.1em; height: 1.1em; }

.cropper { position: relative; width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; touch-action: none; }
#crop-canvas { width: 100%; height: 100%; display: block; cursor: move; }
.crop-frame { position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), inset 0 0 30px rgba(0, 0, 0, .5); pointer-events: none; }
input[type="range"] { width: 100%; accent-color: var(--pink); }

.field { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; }
.at-input { display: flex; align-items: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); padding: 0 .8rem; }
.at-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 212, 255, .2); }
.at-input b { color: var(--pink); }
.at-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font-size: 1rem; padding: .75rem .3rem; }
.bad { color: #ff7aa8 !important; }
.check { display: flex; gap: .6rem; font-size: .8rem; color: var(--muted); line-height: 1.4; align-items: flex-start; }
.check input { margin-top: .15rem; accent-color: var(--pink); width: 18px; height: 18px; flex: none; }
.send-hint { font-size: .8rem; color: #ffd166; text-align: right; min-height: 1em; margin-top: -.4rem; }
.send-hint:empty { display: none; }
.error { color: #ff7aa8; font-size: .85rem; background: rgba(255, 45, 149, .1); border-radius: 10px; padding: .6rem .8rem; }

.step[data-step="sending"] { align-items: center; padding: 2.5rem 0; text-align: center; }
.loader { position: relative; width: 84px; height: 84px; }
.loader i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; animation: spin-ring 1.1s linear infinite; }
.loader i:nth-child(1) { border-top-color: var(--pink); }
.loader i:nth-child(2) { inset: 10px; border-top-color: var(--blue); animation-duration: .8s; animation-direction: reverse; }
.loader i:nth-child(3) { inset: 20px; border-top-color: var(--violet); animation-duration: 1.4s; }
@keyframes spin-ring { to { transform: rotate(360deg); } }

.step[data-step="done"] { align-items: center; text-align: center; }
.done-photo { width: 62%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 2px var(--pink), 0 0 40px rgba(255, 45, 149, .6); animation: drop-in .8s cubic-bezier(.2, 1.5, .4, 1); }
.done-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes drop-in { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
.done-label { font-weight: 700; font-size: 1.1rem; }
.done-number { font: 900 clamp(2.4rem, 12vw, 3.4rem) ui-monospace, Consolas, monospace; color: #fff; text-shadow: 0 0 10px var(--pink), 0 0 34px var(--violet); }
.done-handle { color: var(--blue); font-weight: 700; margin-top: -.6rem; }

.photo-modal { width: min(560px, calc(100% - 32px)); }
.photo-frame { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #000; position: relative; }
.photo-frame img, .photo-frame canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-frame.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%); animation: shine 1.2s linear infinite; }
.photo-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1rem 0; flex-wrap: wrap; }
.photo-num { font: 800 1.6rem ui-monospace, Consolas, monospace; text-shadow: 0 0 12px var(--pink); }
.photo-handle { color: var(--blue); font-weight: 700; text-decoration: none; }
.photo-handle:hover { text-decoration: underline; }

.toast {
  position: fixed;
  z-index: 100;
  /* Es un popover (capa superior): así se ve también por encima de las ventanas. */
  inset: auto auto calc(24px + env(safe-area-inset-bottom, 0px)) 50%;
  margin: 0;
  overflow: visible;
  color: var(--text);
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: .8rem 1.2rem;
  border-radius: 14px;
  background: rgba(13, 10, 22, .95);
  border: 1px solid rgba(255, 45, 149, .5);
  box-shadow: 0 0 30px rgba(255, 45, 149, .3);
  font-size: .9rem;
}
.toast.show { animation: toast-in .4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes toast-in { from { transform: translate(-50%, 30px); opacity: 0; } }

/* ============================================================ pulido premium
   Todo lo de aquí abajo anima solo transform / opacity (compositor), salvo
   donde se indica: nada de esto repinta el mural ni bloquea el hilo principal. */

/* ------------------------------------------------------------ accesibilidad */
:where(button, a, summary, input, [tabindex]):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
#mural:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------ suelo synthwave
   Rejilla en perspectiva al pie de la pantalla, muy tenue: da profundidad al
   fondo sin competir con el contenido. */
.bg-grid {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 44vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  perspective: 340px;
  perspective-origin: 50% 0;
  opacity: .3;
  -webkit-mask-image: linear-gradient(transparent 22%, #000);
  mask-image: linear-gradient(transparent 22%, #000);
}
.bg-grid i {
  position: absolute;
  inset: 0 -120% -140%;
  transform-origin: 50% 0;
  transform: rotateX(72deg);
  background-image:
    linear-gradient(rgba(255, 45, 149, .8) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0, 212, 255, .6) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  background-position: 50% 0;
  will-change: transform;
  animation: grid-run 2.6s linear infinite;
}
@keyframes grid-run { to { transform: rotateX(72deg) translateY(40px); } }

/* ------------------------------------------------------------ contadores vivos */
.stat.bump strong { animation: stat-bump .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stat-bump { 35% { transform: scale(1.2); } }
.stat-plus {
  position: absolute;
  left: 50%;
  top: -.5rem;
  font: 800 .95rem ui-monospace, Consolas, monospace;
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink);
  pointer-events: none;
  animation: plus-up 1.6s ease-out both;
}
@keyframes plus-up {
  from { opacity: 0; transform: translate(-50%, 8px); }
  20% { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -28px); }
}
.ms-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.2s ease-in-out infinite;
}

/* ------------------------------------------------------------ mural */
.hover-tip {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(10, 7, 16, .92);
  border: 1px solid rgba(0, 212, 255, .7);
  box-shadow: 0 0 14px rgba(0, 212, 255, .35);
  font: 700 .78rem ui-monospace, Consolas, monospace;
  will-change: transform;
}

/* Bandas de cine durante el vuelo «Explorar»: entran, y los controles se apartan. */
.mural-wrap::before, .mural-wrap::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 9%;
  z-index: 2;
  background: #000;
  pointer-events: none;
  transition: transform .7s cubic-bezier(.6, 0, .2, 1);
}
.mural-wrap::before { top: 0; transform: translateY(-102%); }
.mural-wrap::after { bottom: 0; transform: translateY(102%); }
.mural-wrap.is-flying::before, .mural-wrap.is-flying::after { transform: none; }
.is-flying .hud { opacity: 0; }
.is-flying .hud > * { pointer-events: none; }

/* Pantallas con muesca: nada queda debajo de la barra de estado. */
.is-exploring .hud-top { top: calc(12px + env(safe-area-inset-top, 0px)); }
.is-exploring .hud-bottom { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.is-exploring .exit-explore { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
.is-exploring .flight-hud, .is-exploring .replay-hud { top: calc(18px + env(safe-area-inset-top, 0px)); }

/* ------------------------------------------------------------ cómo funciona */
.how { max-width: 1040px; margin: clamp(3.5rem, 10vw, 6.5rem) auto 0; padding: 0 16px; text-align: center; }
.kicker { font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); text-shadow: 0 0 12px rgba(0, 212, 255, .6); }
.how h2 {
  max-width: 18ch;
  margin: .7rem auto 0;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.12;
  text-wrap: balance;
}
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; text-align: left; }
.how-step {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  --tone: var(--pink);
}
.how-step:nth-child(2) { --tone: var(--blue); }
.how-step:nth-child(3) { --tone: var(--violet); }
.how-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--tone), transparent 80%); }
.how-step::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -110px; top: -110px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--tone), transparent);
  opacity: .14;
  transition: opacity .4s ease, transform .4s ease;
}
.how-step:hover::after { opacity: .3; transform: scale(1.15); }
.how-n {
  display: block;
  font: 900 2.6rem/1 ui-monospace, Consolas, monospace;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--tone);
  filter: drop-shadow(0 0 10px var(--tone));
}
.how-step h3 { margin: .9rem 0 .4rem; font-size: 1.12rem; }
.how-step p { color: var(--muted); font-size: .93rem; line-height: 1.55; }
.how-cta { margin-top: 2.4rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.how-cta b { color: var(--text); font-variant-numeric: tabular-nums; }

.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--reveal-i, 0) * 90ms); }

/* ------------------------------------------------------------ ventanas */
.modal.closing { animation: pop-out .17s ease-in forwards; }
.modal.closing::backdrop { animation: fade-out .17s ease forwards; }
@keyframes pop-out { to { transform: scale(.94) translateY(10px); opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.modal-close { transition: background .2s, transform .2s; }
.modal-close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }
.toast.hide { animation: toast-out .25s ease-in forwards; }
@keyframes toast-out { to { transform: translate(-50%, 16px); opacity: 0; } }

/* Enviando: tu foto bajo un escáner de neón + pasos que se van cumpliendo. */
.step[data-step="sending"] { gap: 1.4rem; padding: 1.6rem 0 1rem; }
.scan {
  position: relative;
  width: min(62%, 240px);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, .6), 0 0 40px rgba(0, 212, 255, .3);
}
.scan canvas { display: block; width: 100%; height: 100%; filter: saturate(.75) brightness(.8); }
.scan::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 212, 255, .08) 0 1px, transparent 1px 4px); }
.scan-line {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, .28) 80%, #7df0ff);
  transform: translateY(-100%);
  animation: scan 1.5s cubic-bezier(.5, 0, .5, 1) infinite alternate;
}
@keyframes scan { to { transform: translateY(294%); } }
.send-steps { list-style: none; display: flex; flex-direction: column; gap: .6rem; text-align: left; font-size: .9rem; color: var(--muted); }
.send-steps li { display: flex; align-items: center; gap: .65rem; opacity: .45; transition: opacity .3s, color .3s; }
.send-steps li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; }
.send-steps li.on { opacity: 1; color: var(--text); }
.send-steps li.on::before { border-color: var(--blue); border-top-color: transparent; animation: spin-ring .8s linear infinite; }
.send-steps li.done { opacity: .85; color: var(--text); }
.send-steps li.done::before { border-color: var(--pink); background: var(--pink); box-shadow: 0 0 10px var(--pink); }

/* Hecho: chispas de neón alrededor de tu foto. */
.step[data-step="done"] { position: relative; }
.sparks { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.done-number { animation: number-in .9s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
@keyframes number-in { from { opacity: 0; transform: scale(.7); letter-spacing: .3em; } }
.done-rank { font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: #d8ccff; }

/* Ficha de foto: anterior / siguiente y entrada de cada foto. */
.photo-stage { position: relative; }
.photo-frame { touch-action: pan-y; }
.photo-frame > * { animation: photo-in .32s ease both; }
@keyframes photo-in { from { opacity: 0; transform: translateX(var(--dx, 0px)) scale(.985); } }
.photo-nav {
  position: absolute;
  top: 50%;
  width: 40px; height: 40px;
  margin-top: -20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(10, 7, 16, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s, transform .2s cubic-bezier(.2, 1.6, .4, 1), border-color .2s, box-shadow .2s;
}
.photo-nav svg { width: 20px; height: 20px; }
.photo-nav.prev { left: 8px; }
.photo-nav.next { right: 8px; }
.photo-nav:hover { opacity: 1; border-color: var(--blue); box-shadow: 0 0 14px rgba(0, 212, 255, .5); transform: scale(1.1); }
.photo-nav:active { transform: scale(.92); }
.photo-actions { justify-content: flex-end; }
.photo-actions #btn-report { margin-right: auto; }

@media (max-width: 720px) {
  .how-steps { grid-template-columns: 1fr; }
  .bg-grid { height: 30vh; opacity: .2; }
}
@media (max-width: 420px) {
  .photo-actions .btn.small .btn-inner { padding: .65rem 1rem; }
  .photo-actions .btn.ghost { padding: .7rem .9rem; }
}

@media (max-width: 600px) {
  .mural-wrap { height: 70svh; width: calc(100% - 24px); }
  .hint { display: none; }
  /* El reloj de arena ya no queda debajo del botón «Explorar». */
  .hourglass { left: auto; right: 16px; transform: none; }
  .goto input { width: 12ch; }
  .hud-side button { width: 36px; height: 36px; }
  .btn-inner { padding: .9rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
