@import url('/vendor/fredoka/500.css');
@import url('/vendor/fredoka/600.css');
@import url('/vendor/fredoka/700.css');
@import url('/vendor/nunito/400.css');
@import url('/vendor/nunito/700.css');
@import url('/vendor/nunito/800.css');

/* ---------- tema ----------
   Antes de revelar: crema, menta y dorado (neutro).
   Después: todo se tiñe de azul (niño) o rosa (niña). */
:root {
  --bg: #fff8ef;
  --bg2: #fdeedd;
  --card: #ffffff;
  --ink: #3b2f4a;
  --ink-soft: #7a6c88;
  --line: #eadfd0;
  --accent: #e8a93c;       /* dorado */
  --accent-ink: #ffffff;
  --accent-soft: #fbecd0;
  --mint: #8fd1b9;
  --boy: #4f95d6;
  --boy-soft: #dcebfa;
  --girl: #e9729b;
  --girl-soft: #fde1ea;
  --ok: #3fae7a;
  --bad: #e25b5b;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(59, 47, 74, 0.25);
  --head: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
body.nino { --accent: #4f95d6; --accent-soft: #dcebfa; --bg: #f2f8ff; --bg2: #dcebfa; --line: #cfe1f5; }
body.nina { --accent: #e9729b; --accent-soft: #fde1ea; --bg: #fff4f7; --bg2: #fde1ea; --line: #f6d3de; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 10% 0%, var(--bg2) 0, transparent 40%),
    radial-gradient(circle at 100% 30%, var(--accent-soft) 0, transparent 35%);
  background-attachment: fixed;
  transition: background-color .8s;
  overscroll-behavior-y: contain;
}
h1, h2, h3, .head { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrapr { flex-wrap: wrap; }
.grow { flex: 1; }
.stack > * + * { margin-top: 14px; }

/* ---------- tarjetas y botones ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 24px;
  border: none; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--head); font-size: 1.2rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 0 -1px color-mix(in srgb, var(--accent) 70%, #000 30%);
  transition: transform .08s, box-shadow .08s, background .3s;
  user-select: none;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 -1px color-mix(in srgb, var(--accent) 70%, #000 30%); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 4px 0 -1px var(--line); border: 2px solid var(--line); }
.btn.boy { background: var(--boy); box-shadow: 0 6px 0 -1px #2d6aa4; }
.btn.girl { background: var(--girl); box-shadow: 0 6px 0 -1px #b94a71; }
.btn.danger { background: var(--bad); box-shadow: 0 6px 0 -1px #a83b3b; }
.btn.sm { min-height: 42px; padding: 8px 16px; font-size: 1rem; }
.link { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; padding: 8px; font-size: 1rem; }

input[type=text], input[type=number], input[type=date], input[type=password], input[type=datetime-local], textarea, select {
  width: 100%; min-height: 56px; padding: 12px 16px;
  border: 2px solid var(--line); border-radius: 16px; background: #fff;
  font-size: 1.15rem; outline: none; transition: border-color .2s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
label.lbl { display: block; font-weight: 800; margin: 0 0 6px; }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin: -16px -16px 16px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topbar .back { width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--card); box-shadow: var(--shadow); font-size: 1.5rem; cursor: pointer; }
.topbar .title { font-family: var(--head); font-weight: 600; font-size: 1.25rem; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 800; white-space: nowrap; }
.avatar { font-size: 1.6rem; line-height: 1; }

/* ---------- portada de los papás ---------- */
.parents { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 6px 0 14px; }
.parent { text-align: center; width: 42%; max-width: 170px; }
.parent .ph {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--accent-soft);
  border: 6px solid #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 3.4rem;
}
.parent .ph img { width: 100%; height: 100%; object-fit: cover; }
.parent .nm { font-family: var(--head); font-weight: 600; font-size: 1.2rem; margin-top: 8px; }
.heart { font-size: 2.2rem; animation: beat 1.4s infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

.hero-title { font-family: var(--head); font-weight: 700; font-size: 2.3rem; text-align: center; margin: 0; }
.hero-title .b { color: var(--boy); } .hero-title .g { color: var(--girl); }

/* ---------- selector de avatar ---------- */
.avatars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.avatars button {
  aspect-ratio: 1; font-size: 2rem; border-radius: 16px; border: 3px solid transparent;
  background: var(--card); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s;
}
.avatars button.on { border-color: var(--accent); transform: scale(1.08); background: var(--accent-soft); }

.toggle { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); cursor: pointer; user-select: none; }
.toggle .sw { width: 58px; height: 34px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.toggle .sw::after { content: ''; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.toggle.on .sw { background: var(--accent); }
.toggle.on .sw::after { left: 28px; }

/* ---------- menú principal ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  position: relative; border: none; text-align: left; cursor: pointer;
  background: var(--card); border-radius: var(--radius); padding: 18px 16px; min-height: 140px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .12s;
}
.tile:active { transform: scale(.97); }
.tile.wide { grid-column: span 2; min-height: 120px; }
.tile .ico { font-size: 2.6rem; line-height: 1; }
.tile .t { font-family: var(--head); font-weight: 600; font-size: 1.2rem; }
.tile .s { font-size: .9rem; color: var(--ink-soft); }
.tile.locked { opacity: .6; }
.tile .badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; border-radius: 99px; padding: 2px 10px; font-weight: 800; font-size: .85rem; }

/* ---------- votación ---------- */
.vote-big { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vote-big button {
  border: 4px solid transparent; border-radius: 28px; padding: 22px 10px; cursor: pointer;
  font-family: var(--head); font-size: 1.5rem; font-weight: 600; color: #fff; min-height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s;
}
.vote-big .vb { background: linear-gradient(160deg, #7ab6ea, #3f86cb); }
.vote-big .vg { background: linear-gradient(160deg, #f59bbb, #dc5a87); }
.vote-big button .e { font-size: 3.6rem; }
.vote-big button.on { border-color: var(--ink); transform: scale(1.04); }
.vote-big button.on::after { content: '✔ Mi voto'; font-size: 1rem; background: rgba(255,255,255,.3); padding: 2px 12px; border-radius: 99px; }
.meter { height: 34px; border-radius: 99px; overflow: hidden; display: flex; background: var(--line); font-weight: 800; color: #fff; font-size: .95rem; }
.meter .mb { background: var(--boy); display: flex; align-items: center; padding-left: 12px; transition: width .6s; }
.meter .mg { background: var(--girl); display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; transition: width .6s; }

/* ---------- lista/ranking ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .pos { width: 32px; text-align: center; font-family: var(--head); font-weight: 700; color: var(--ink-soft); }
.list .me { background: var(--accent-soft); border-radius: 14px; }
.list .pts { font-family: var(--head); font-weight: 600; }

.msg { background: var(--card); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.msg .who { font-weight: 800; font-size: .9rem; color: var(--ink-soft); }

/* ---------- avisos ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(150%);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 18px; font-weight: 700;
  z-index: 200; transition: transform .3s, opacity .3s; max-width: 90vw; text-align: center; opacity: 0;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- pantallas completas (cuenta regresiva / revelación / trivia) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  text-align: center; overflow: auto;
}
.count-bg { background: radial-gradient(circle, #4a3b5c 0%, #1f1729 80%); color: #fff; }
.count-num { font-family: var(--head); font-weight: 700; font-size: min(52vw, 60vh); line-height: 1; text-shadow: 0 0 60px rgba(255,255,255,.4); }
.count-num.pop { animation: pop .9s ease-out; }
@keyframes pop { 0% { transform: scale(2.2); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 100% { transform: scale(.85); opacity: .9; } }
.count-q { font-family: var(--head); font-size: 2rem; display: flex; gap: 18px; align-items: center; }
.count-q .b { color: #8cc3f2; } .count-q .g { color: #f7a6c3; }

.reveal-bg.nino { background: radial-gradient(circle at 50% 40%, #9fd0ff, #3f86cb 70%); }
.reveal-bg.nina { background: radial-gradient(circle at 50% 40%, #ffc2d6, #dc5a87 70%); }
.reveal-bg { color: #fff; }
/* La sombra de color sólido mantiene las letras legibles aunque pase confeti por encima.
   line-height > 1 para que la tilde de la Ñ y el "¡" no se corten. */
.reveal-word { font-family: var(--head); font-weight: 700; font-size: min(22vw, 9rem); line-height: 1.1; padding: .05em .1em; animation: zoomin 1s cubic-bezier(.2,1.6,.4,1);
  text-shadow: 0 .05em 0 var(--reveal-deep, rgba(0,0,0,.25)), 0 .1em .25em rgba(0,0,0,.25); }
.reveal-bg.nino { --reveal-deep: #2a5f96; }
.reveal-bg.nina { --reveal-deep: #b03d68; }
.reveal-bg.ensayo { background: radial-gradient(circle at 50% 40%, #ffe3a3, #e0a030 70%); color: #fff; --reveal-deep: #a8731a; }
.reveal-sub { font-family: var(--head); font-size: 1.6rem; margin: 12px 0 24px; animation: fadeup 1s .5s both; }
.reveal-emoji { font-size: 6rem; animation: zoomin 1s .2s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes zoomin { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fadeup { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Trivia */
.trivia-bg { background: var(--bg); align-items: stretch; justify-content: flex-start; }
.tq { font-family: var(--head); font-weight: 600; font-size: 1.6rem; margin: 10px 0 18px; text-align: center; }
.timebar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.timebar i { display: block; height: 100%; background: var(--accent); width: 100%; transform-origin: left; }
.opts { display: grid; gap: 12px; }
.opt {
  min-height: 76px; border: none; border-radius: 20px; color: #fff; cursor: pointer;
  font-family: var(--head); font-weight: 600; font-size: 1.35rem; padding: 12px 16px;
  display: flex; align-items: center; gap: 14px; text-align: left;
  box-shadow: 0 6px 0 -1px rgba(0,0,0,.2); transition: transform .1s, opacity .3s;
}
.opt:active { transform: translateY(3px); }
.opt .sh { font-size: 1.6rem; width: 36px; text-align: center; }
.opt.c0 { background: #e25b5b; } .opt.c1 { background: #4f95d6; } .opt.c2 { background: #e8a93c; } .opt.c3 { background: #3fae7a; }
.opt.dim { opacity: .35; }
.opt.right { outline: 5px solid var(--ink); }
.big-emoji { font-size: 5rem; line-height: 1.1; }

/* ---------- juegos ---------- */
.game-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 800; }
.timer { font-family: var(--head); font-size: 1.2rem; }

/* sopa de letras */
.ws { display: grid; gap: 3px; user-select: none; touch-action: none; padding: 8px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); position: relative; }
.ws .c { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--head); font-weight: 600; border-radius: 8px; transition: background .15s, transform .15s; position: relative; z-index: 1; }
.ws .c.sel { background: var(--accent); color: #fff; transform: scale(1.08); }
.ws .c.found { color: #fff; }
.ws-words { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ws-words span { padding: 6px 12px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); font-weight: 800; }
.ws-words span.done { text-decoration: line-through; opacity: .5; }

/* crucigrama */
.cw-wrap { overflow-x: auto; padding: 4px; }
.cw { display: grid; gap: 2px; margin: 0 auto; width: max-content; }
.cw .c { width: var(--cs); height: var(--cs); position: relative; }
.cw .c.on { background: #fff; border: 2px solid var(--ink); border-radius: 6px; display: grid; place-items: center; font-family: var(--head); font-weight: 600; font-size: calc(var(--cs) * .55); cursor: pointer; text-transform: uppercase; }
.cw .c.on.word { background: var(--accent-soft); }
.cw .c.on.cur { background: var(--accent); color: #fff; }
.cw .c.on.ok { background: #d8f2e5; color: #1f7a4f; border-color: #3fae7a; }
.cw .c .n { position: absolute; top: 1px; left: 3px; font-size: 10px; font-family: var(--body); font-weight: 800; color: var(--ink-soft); }
.cw-clue { min-height: 64px; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.1rem; }
.cw-clue .em { font-size: 2.2rem; }
.kbd { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 12px; }
.kbd button { min-height: 50px; border: none; border-radius: 10px; background: var(--card); box-shadow: 0 3px 0 var(--line); font-family: var(--head); font-weight: 600; font-size: 1.25rem; cursor: pointer; padding: 0; }
.kbd button:active { transform: translateY(2px); box-shadow: none; }
.kbd button.wide { grid-column: span 2; background: var(--accent-soft); }
.clues { font-size: .95rem; }
.clues li { margin-bottom: 6px; }
.clues li.done { text-decoration: line-through; opacity: .5; }

/* memoria */
.mem { display: grid; gap: 10px; perspective: 800px; }
.mem .card3 { aspect-ratio: 3/4; position: relative; cursor: pointer; transform-style: preserve-3d; transition: transform .45s; }
.mem .card3.flip, .mem .card3.done { transform: rotateY(180deg); }
.mem .face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow); }
.mem .front { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); color: #fff; font-size: 2rem; }
.mem .back { background: #fff; transform: rotateY(180deg); font-size: 2.6rem; }
.mem .back img { width: 100%; height: 100%; object-fit: cover; }
.mem .card3.done .back { outline: 4px solid var(--ok); }

/* palabras revueltas */
.tiles-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 64px; }
.ltile { width: 52px; height: 58px; border-radius: 12px; border: none; background: var(--card); box-shadow: 0 4px 0 var(--line); font-family: var(--head); font-weight: 600; font-size: 1.6rem; cursor: pointer; }
.ltile.used { visibility: hidden; }
.answer-row .ltile { background: var(--accent); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 70%, #000 30%); }
.slot { width: 52px; height: 58px; border-radius: 12px; border: 3px dashed var(--line); }

/* quien es quien */
.qphoto { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); border: 6px solid #fff; }
.result-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.result-row img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }

.done-box { text-align: center; padding: 24px 12px; }
.done-box .pts { font-family: var(--head); font-weight: 700; font-size: 3.4rem; color: var(--accent); }

.shake { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }

.sound-btn { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--card); box-shadow: var(--shadow); font-size: 1.4rem; cursor: pointer; }

/* modo niño: todo un poco más grande */
body.kid { font-size: 20px; }
body.kid .tile .t { font-size: 1.35rem; }

@media (min-width: 700px) {
  .tiles { grid-template-columns: 1fr 1fr 1fr; }
  .tile.wide { grid-column: span 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Funciones "wow" ===== */
/* Carga colectiva */
.charge-bg { background: radial-gradient(circle at 50% 30%, #4a3b5c, #1f1729 80%); color: #fff; gap: 18px; user-select: none; -webkit-user-select: none; }
.battery { position: relative; width: min(86vw, 420px); height: 64px; border: 5px solid #fff; border-radius: 18px; padding: 5px; }
.battery::after { content: ''; position: absolute; right: -16px; top: 18px; width: 10px; height: 18px; background: #fff; border-radius: 0 6px 6px 0; }
.battery i { display: block; height: 100%; width: 0; border-radius: 10px; transition: width .25s;
  background: repeating-linear-gradient(-45deg, #ffd66b 0 18px, #f2b53a 18px 36px); background-size: 51px 51px; animation: stripes 1s linear infinite; }
.battery span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.6rem; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
@keyframes stripes { to { background-position: 51px 0; } }
.tap-btn { width: min(68vw, 300px); aspect-ratio: 1; border-radius: 50%; border: 8px solid rgba(255,255,255,.85); cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #e8a93c 60%, #c57f12); color: #3b2f4a;
  font-family: var(--head); font-weight: 700; font-size: 3.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(255, 214, 107, .6), 0 14px 0 -2px #9a6510; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  animation: tapPulse 1.2s infinite; }
.tap-btn small { font-size: 1rem; font-weight: 600; }
.tap-btn.hit { transform: scale(.94) translateY(6px); box-shadow: 0 0 0 18px rgba(255, 214, 107, .35), 0 6px 0 -2px #9a6510; transition: transform .05s; }
@keyframes tapPulse { 0% { box-shadow: 0 0 0 0 rgba(255,214,107,.6), 0 14px 0 -2px #9a6510; } 70% { box-shadow: 0 0 0 26px rgba(255,214,107,0), 0 14px 0 -2px #9a6510; } 100% { box-shadow: 0 0 0 0 rgba(255,214,107,0), 0 14px 0 -2px #9a6510; } }
.charge-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-weight: 800; opacity: .9; max-width: 92vw; }

/* Estadio de luces */
.stadium { color: #fff; justify-content: space-between; transition: none; }
.stadium-msg { font-family: var(--head); font-size: 1.4rem; text-shadow: 0 2px 8px rgba(0,0,0,.3); margin-top: 6vh; }
.stadium-word { font-family: var(--head); font-weight: 700; font-size: min(20vw, 7rem); line-height: 1.05; text-shadow: 0 4px 20px rgba(0,0,0,.25); }
.stadium .btn { margin-bottom: 4vh; opacity: .8; }

/* Reacciones */
.react-bar { position: fixed; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 160; display: flex; gap: 2px;
  background: var(--card); border-radius: 99px; padding: 4px 6px; box-shadow: var(--shadow); }
.react-bar button { border: 0; background: none; font-size: 1.55rem; width: 42px; height: 44px; border-radius: 50%; cursor: pointer; touch-action: manipulation; }
.react-bar button:active { transform: scale(1.3); }
.react-fly { position: fixed; z-index: 170; font-size: 2rem; pointer-events: none; transform: translate(-50%, 0); animation: fly 1.1s ease-out forwards; }
@keyframes fly { to { transform: translate(-50%, -160px) scale(1.6); opacity: 0; } }
.wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* Ruleta (teléfono) */
.spin-emoji { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
