/* La Noche de los Regalos · estilos */
:root {
  --noche: #0e1550;
  --noche2: #1b2370;
  --tinta: #1d1b3a;
  --oro: #ffc23a;
  --oro2: #ffe27a;
  --rojo: #e0233f;
  --verde: #2fa24b;
  --papel: #fff8ec;
  --papel2: #f6ead2;
  --hielo: #dfe8ff;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--noche); color: #fff; font-family: "Baloo 2", system-ui, sans-serif; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; touch-action: none; }
button { font-family: inherit; cursor: pointer; border: 0; color: inherit; }
#app { position: fixed; inset: 0; overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
[hidden] { display: none !important; }
.titulo { font-family: "Lilita One", "Baloo 2", sans-serif; font-weight: 400; letter-spacing: .3px; }

/* ---------- botones ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 18px; border-radius: 20px; font: 400 22px/1.1 "Lilita One", "Baloo 2", sans-serif; color: #fff; background: linear-gradient(180deg, #ff6476, #e0233f); box-shadow: 0 5px 0 #a3132b, 0 10px 20px rgba(0,0,0,.25); transition: transform .08s; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #a3132b; }
.btn.oro { background: linear-gradient(180deg, #ffe27a, #ffc21f); color: #5a3b00; box-shadow: 0 5px 0 #c08a00, 0 10px 20px rgba(0,0,0,.25); text-shadow: none; }
.btn.oro:active { box-shadow: 0 2px 0 #c08a00; }
.btn.verde { background: linear-gradient(180deg, #5fd35f, #2fa24b); box-shadow: 0 5px 0 #1d7a35, 0 10px 20px rgba(0,0,0,.25); }
.btn.verde:active { box-shadow: 0 2px 0 #1d7a35; }
.btn.lila { background: linear-gradient(180deg, #e1d2ff, #bfa6f5); color: #2b1f55; box-shadow: 0 5px 0 #8a6fd0, 0 10px 20px rgba(0,0,0,.25); text-shadow: none; }
.btn.lila:active { box-shadow: 0 2px 0 #8a6fd0; }
.btn.hielo { background: linear-gradient(180deg, #ffffff, #dfe8ff); color: var(--tinta); box-shadow: 0 5px 0 #a8b8e8, 0 10px 20px rgba(0,0,0,.2); text-shadow: none; }
.btn.hielo:active { box-shadow: 0 2px 0 #a8b8e8; }
.btn.fantasma { background: rgba(255,255,255,.14); box-shadow: none; font-size: 18px; text-shadow: none; }
.btn small { display: block; font: 600 13px/1.1 "Baloo 2", sans-serif; opacity: .85; }
.btn .col { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.fila { display: flex; gap: 12px; }
.fila > * { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font: 700 16px/1 "Baloo 2", sans-serif; color: #fff; }
.chip:active { background: rgba(255,255,255,.24); }

/* ---------- menús ---------- */
.menu { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-y; z-index: 20; }
.menu:empty { display: none; }
.pant { min-height: 100%; max-width: 560px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 18px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; }
.portada { justify-content: flex-start; align-items: stretch; }
.portada .logo { width: min(100%, 470px); margin: 4px auto 0; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.portada .lema { margin: -6px 0 0; text-align: center; font-weight: 700; font-size: 17px; color: var(--hielo); text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.portada .hueco { flex: 1; min-height: 120px; }
.portada .botones { display: flex; flex-direction: column; gap: 13px; }
.portada .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.portada .chips .chip { background: rgba(14,21,80,.82); box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.cuenta24 { font: 600 13px/1.1 "Baloo 2", sans-serif; opacity: .9; }

.cab { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 2; padding: calc(10px + var(--safe-t)) 0 10px; margin-top: calc(-14px - var(--safe-t)); background: linear-gradient(180deg, rgba(14,21,80,.96) 70%, rgba(14,21,80,0)); }
.cab h1 { flex: 1; margin: 0; font: 400 28px/1.1 "Lilita One", sans-serif; }
.atras { width: 48px; height: 48px; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 26px; }
.atras:active { background: rgba(255,255,255,.26); }
.cab .chip { flex: none; }

/* capítulos */
.capitulo { position: relative; border-radius: 26px; padding: 16px 16px 18px; background: linear-gradient(160deg, var(--c1, #2b3a9a), var(--c2, #182260)); box-shadow: 0 6px 0 rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.2); overflow: hidden; }
.capitulo.bloq { filter: grayscale(.6) brightness(.8); }
.capitulo h2 { margin: 0; font: 400 25px/1.1 "Lilita One", sans-serif; display: flex; align-items: center; gap: 8px; }
.capitulo h2 .est { margin-left: auto; font: 700 16px/1 "Baloo 2", sans-serif; background: rgba(0,0,0,.25); border-radius: 999px; padding: 6px 12px; }
.capitulo p { margin: 6px 0 12px; font-size: 15px; line-height: 1.3; opacity: .92; }
.noches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.noche { aspect-ratio: 1 / 1.05; border-radius: 16px; background: var(--papel); color: var(--tinta); display: flex; flex-direction: column; align-items: center; justify-content: center; font: 400 26px/1 "Lilita One", sans-serif; box-shadow: 0 4px 0 rgba(0,0,0,.22); }
.noche:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.noche .e { font-size: 12px; letter-spacing: -1px; margin-top: 3px; min-height: 14px; }
.noche.gran { background: linear-gradient(180deg, #ffe27a, #ffc21f); color: #5a3b00; }
.noche.gran img { width: 70%; }
.noche.sig { outline: 3px solid var(--oro); outline-offset: 2px; animation: late 1.4s ease-in-out infinite; }
.noche.cerrada { background: rgba(255,255,255,.18); color: rgba(255,255,255,.55); box-shadow: none; font-size: 20px; }
@keyframes late { 50% { transform: scale(1.06); } }
.capitulo.uno .noches { grid-template-columns: 1fr; }
.capitulo.uno .noche { aspect-ratio: auto; padding: 12px; font-size: 20px; flex-direction: row; gap: 10px; }

/* edad */
.edades { display: flex; flex-direction: column; gap: 12px; }
.edad-btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 22px; background: var(--papel); color: var(--tinta); text-align: left; box-shadow: 0 5px 0 rgba(0,0,0,.2); }
.edad-btn b { font: 400 26px/1 "Lilita One", sans-serif; }
.edad-btn span { font-size: 14px; line-height: 1.25; display: block; opacity: .8; }
.edad-btn.sel { outline: 4px solid var(--oro); }
.edad-btn i { font-style: normal; font-size: 34px; }

/* ---------- HUD ---------- */
.hud { position: absolute; left: 0; right: 0; top: 0; z-index: 8; display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--safe-t)) 10px 8px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-btn { width: 44px; height: 44px; flex: none; border-radius: 14px; background: rgba(14,21,80,.72); display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.hud-btn svg { width: 22px; height: 22px; }
.hud-zana { display: flex; gap: 1px; padding: 4px 8px; border-radius: 14px; background: rgba(14,21,80,.72); min-height: 44px; align-items: center; }
.hud-zana img { width: 26px; height: 26px; transition: transform .3s, opacity .3s; }
.hud-zana b { font: 400 22px/1 "Lilita One", sans-serif; margin: 0 2px 0 4px; }
.hud-zana img.come { animation: come .5s ease-out; }
@keyframes come { 30% { transform: scale(1.5) rotate(-20deg); } 100% { transform: scale(1); } }
.hud-paradas { margin-left: auto; display: flex; gap: 3px; padding: 4px 8px; border-radius: 14px; background: rgba(14,21,80,.72); min-height: 44px; align-items: center; }
.hud-paradas img { width: 26px; height: 26px; opacity: .35; filter: grayscale(1); }
.hud-paradas img.ok { opacity: 1; filter: none; }
.hud-paradas img.ahora { opacity: 1; filter: none; animation: late 1.2s ease-in-out infinite; }
.hud-reloj { position: absolute; left: 50%; top: calc(58px + var(--safe-t)); transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(14,21,80,.78); font: 700 15px/1.2 "Baloo 2", sans-serif; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.hud-reloj i { display: block; width: 64px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; }
.hud-reloj i b { display: block; height: 100%; background: linear-gradient(90deg, #ffe27a, #ff8a4a); }
.hud-reloj.prisa { background: rgba(160,30,60,.85); }

/* ---------- zoom ---------- */
.zoom { position: absolute; right: 10px; z-index: 7; display: flex; flex-direction: column; gap: 8px; top: calc(64px + var(--safe-t)); }
.zoom button { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.92); color: var(--tinta); font: 700 26px/1 "Baloo 2", sans-serif; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.zoom button:active { transform: translateY(2px); }

/* ---------- carta ---------- */
.carta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; margin: 0 auto; max-width: 620px; padding: 6px 14px calc(12px + var(--safe-b)); background: var(--papel); color: var(--tinta); border-radius: 26px 26px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.35); background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(80,120,200,.12) 27px 28px); transition: transform .3s ease; }
.carta::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; border-radius: 26px 26px 0 0; background: repeating-linear-gradient(90deg, var(--rojo) 0 18px, #fff 18px 30px, #2f6fe0 30px 48px, #fff 48px 60px); opacity: .9; }
.carta.plegada { transform: translateY(calc(100% - 62px - var(--safe-b))); }
.carta-asa { display: block; width: 100%; height: 22px; background: none; padding: 0; margin-top: 4px; }
.carta-asa i { display: block; width: 46px; height: 5px; border-radius: 3px; background: rgba(29,27,58,.25); margin: 6px auto 0; }
.carta-cuerpo { display: flex; gap: 12px; align-items: flex-start; }
.carta-nino { width: 62px; height: 62px; flex: none; border-radius: 50%; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.carta-texto { flex: 1; min-width: 0; }
.carta-saludo { margin: 0; font: 400 16px/1.2 "Lilita One", sans-serif; color: var(--rojo); }
.carta-msg { margin: 2px 0 0; font-size: 17px; line-height: 1.3; font-weight: 600; }
.carta-msg b { color: #2f4fc8; }
.carta-juguete { width: 52px; height: 52px; flex: none; transform: rotate(8deg); }
.carta-extra:empty { display: none; }
.carta-extra { margin-top: 8px; }
.carta-extra .bandera { height: 58px; border-radius: 6px; box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0,0,0,.3); transform: rotate(-3deg); }
.carta-orden { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 16px; background: var(--noche2); color: #fff; font-weight: 700; font-size: 17px; line-height: 1.2; }
.carta-orden span { flex: 1; }
.carta-orden b { color: var(--oro2); }
.carta-voz { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(255,255,255,.18); font-size: 20px; }
.carta.ok .carta-orden { background: var(--verde); }
.carta.mal .carta-orden { background: #c4364f; animation: tiembla .35s; }
@keyframes tiembla { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.opciones2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcion { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 18px; background: #fff; color: var(--tinta); box-shadow: 0 4px 0 #d9c6a2, 0 0 0 2px #eadcc0 inset; font: 700 17px/1.15 "Baloo 2", sans-serif; }
.opcion img { height: 40px; border-radius: 4px; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.25); }
.opcion small { font-weight: 600; opacity: .7; font-size: 13px; }
.opcion:active { transform: translateY(2px); }
.opcion.bien { background: #d9f7dc; box-shadow: 0 4px 0 #2fa24b, 0 0 0 3px #2fa24b inset; }
.opcion.malo { background: #ffe0e5; box-shadow: 0 4px 0 #c4364f, 0 0 0 3px #c4364f inset; }
.explica { margin: 10px 0 0; font-size: 15px; line-height: 1.35; font-weight: 600; }
.explica b { color: #2f4fc8; }

/* ---------- Nuri ---------- */
.nuri { position: absolute; left: 8px; z-index: 12; display: flex; align-items: flex-end; gap: 0; max-width: min(92vw, 520px); pointer-events: none; bottom: calc(220px + var(--safe-b)); animation: entra .35s ease-out; }
.nuri img { width: 84px; flex: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.nuri p { margin: 0 0 40px -6px; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: #fff; color: var(--tinta); font-weight: 700; font-size: 16px; line-height: 1.3; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.nuri.arriba { bottom: auto; top: calc(124px + var(--safe-t)); }
@keyframes entra { from { transform: translateY(20px); opacity: 0; } }

/* ---------- toast ---------- */
.toast { position: absolute; left: 50%; top: calc(66px + var(--safe-t)); z-index: 11; transform: translate(-50%, -10px); max-width: min(88vw, 440px); padding: 9px 16px; border-radius: 16px; background: rgba(14,21,80,.92); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.25; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.con-reloj .toast { top: calc(108px + var(--safe-t)); }
.toast.ver { opacity: 1; transform: translate(-50%, 0); }
.toast.mal { background: rgba(170,30,60,.94); }
.toast.bien { background: rgba(30,130,60,.94); }

/* ---------- capas (postal, fin, pausa…) ---------- */
.capa { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(8,10,40,.6); overflow-y: auto; animation: fundido .25s; }
@keyframes fundido { from { opacity: 0; } }
.tarjeta { width: min(100%, 440px); border-radius: 28px; background: var(--papel); color: var(--tinta); padding: 20px 20px 18px; box-shadow: 0 16px 40px rgba(0,0,0,.45); text-align: center; animation: sube .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes sube { from { transform: translateY(40px) scale(.92); opacity: 0; } }
.tarjeta h2 { margin: 0 0 6px; font: 400 30px/1.1 "Lilita One", sans-serif; }
.tarjeta p { margin: 8px 0; font-size: 16px; line-height: 1.35; font-weight: 600; }
.tarjeta .botones { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.tarjeta .personaje { width: 130px; margin: -70px auto 0; display: block; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); }
.estrellas { display: flex; justify-content: center; gap: 6px; margin: 4px 0 8px; }
.estrellas img { width: 64px; height: 64px; }
.estrellas img:nth-child(2) { transform: translateY(-10px); }
.estrellas img.gana { animation: pum .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pum { from { transform: scale(0) rotate(-40deg); } }
.datos { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.datos span { background: var(--papel2); border-radius: 12px; padding: 6px 10px; font-weight: 700; font-size: 15px; }

/* postal */
.postal { width: min(100%, 460px); border-radius: 20px; background: #fffdf6; color: var(--tinta); padding: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.45); position: relative; text-align: left; animation: postal .45s cubic-bezier(.2,1.3,.4,1); border: 10px solid transparent; border-image: repeating-linear-gradient(45deg, var(--rojo) 0 12px, #fff 12px 24px, #2f6fe0 24px 36px, #fff 36px 48px) 12; }
@keyframes postal { from { transform: rotate(-8deg) scale(.6); opacity: 0; } }
.postal-top { display: flex; gap: 14px; align-items: center; }
.postal-sello { position: relative; width: 92px; height: 115px; flex: none; transform: rotate(4deg); }
.postal-sello .marco { position: absolute; inset: 0; width: 100%; height: 100%; }
.postal-sello .bandera { position: absolute; left: 14%; right: 14%; top: 22%; width: 72%; height: auto; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.postal-sello .cont { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; font: 700 9.5px/1.05 "Baloo 2", sans-serif; color: #7d6a4a; padding: 0 12px; }
.postal h2 { margin: 0; font: 400 30px/1 "Lilita One", sans-serif; }
.postal .cap { margin: 4px 0 0; font-weight: 700; font-size: 15px; color: #5a5f8a; }
.postal .hola { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: #fff0d0; font: 400 18px/1.15 "Lilita One", "Baloo 2", system-ui, sans-serif; color: #b0142f; flex-wrap: wrap; }
.tarjeta .btn.fantasma { color: var(--tinta); background: rgba(14,21,80,.08); }
.postal .hola small { font: 600 13px/1 "Baloo 2", sans-serif; color: #7d6a4a; }
.postal .hola button { background: none; font-size: 18px; padding: 0; }
.postal .bloque { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #f3f6ff; font-size: 15px; line-height: 1.35; font-weight: 600; }
.postal .bloque b { display: block; font: 400 15px/1.2 "Lilita One", sans-serif; color: #2f4fc8; margin-bottom: 2px; }
.postal .bloque.nav { background: #fff3f0; }
.postal .bloque.nav b { color: var(--rojo); }
.postal .nueva { position: absolute; top: -14px; right: -6px; transform: rotate(8deg); background: var(--oro); color: #5a3b00; font: 400 15px/1 "Lilita One", sans-serif; padding: 7px 12px; border-radius: 999px; box-shadow: 0 3px 0 #c08a00; }
.postal .btn { margin-top: 14px; }

/* álbum */
.album-cont h3 { margin: 10px 0 8px; font: 400 21px/1.1 "Lilita One", sans-serif; display: flex; align-items: center; gap: 8px; }
.album-cont h3 span { margin-left: auto; font: 700 14px/1 "Baloo 2", sans-serif; opacity: .8; }
.sellos { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.sello { border-radius: 12px; background: rgba(28,38,120,.88); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; line-height: 1.1; text-align: center; color: #fff; min-height: 76px; }
.sello img { width: 46px; border-radius: 3px; box-shadow: 0 0 0 2px #fff; }
.sello.no { background: rgba(14,21,80,.7); color: rgba(255,255,255,.55); }
.sello.no .q { opacity: .6; }
.sello.no .q { width: 46px; height: 32px; border-radius: 4px; border: 2px dashed rgba(255,255,255,.6); display: grid; place-items: center; font-size: 16px; }
.barra { height: 14px; border-radius: 7px; background: rgba(255,255,255,.18); overflow: hidden; }
.barra b { display: block; height: 100%; background: linear-gradient(90deg, #ffe27a, #ffc21f); border-radius: 7px; }

/* seguimiento del 24 */
.seg { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; margin: 0 auto; max-width: 620px; padding: 12px 16px calc(14px + var(--safe-b)); background: rgba(14,21,80,.94); border-radius: 26px 26px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
.seg h2 { margin: 0; font: 400 22px/1.15 "Lilita One", sans-serif; display: flex; align-items: center; gap: 8px; }
.seg p { margin: 6px 0; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--hielo); }
.seg p b { color: var(--oro2); }
.seg .num { font: 400 26px/1 "Lilita One", sans-serif; color: var(--oro2); }
.seg .fila { margin-top: 10px; }
.seg .btn { font-size: 17px; padding: 11px 12px; }
.seg-top { position: absolute; left: 10px; right: 10px; top: calc(8px + var(--safe-t)); z-index: 9; display: flex; gap: 8px; align-items: center; }
.seg-top .chip { background: rgba(14,21,80,.8); }
.seg-top .vel { margin-left: auto; }

/* puntos, racha y rapidez */
.hud-puntos { position: absolute; left: 10px; top: calc(58px + var(--safe-t)); display: flex; flex-direction: column; align-items: flex-start; gap: 3px; pointer-events: none; }
.hud-puntos b { padding: 3px 11px; border-radius: 999px; background: rgba(14,21,80,.78); font: 400 18px/1.2 "Lilita One", sans-serif; color: var(--oro2); }
.hud-puntos b::before { content: "⭐ "; font-size: 14px; }
.hud-puntos b.pum { animation: pum2 .45s cubic-bezier(.2,1.6,.4,1); }
.hud-puntos i { font: 400 15px/1 "Lilita One", sans-serif; font-style: normal; padding: 4px 9px; border-radius: 999px; background: linear-gradient(180deg, #ffb13b, #ff5a2a); color: #fff; box-shadow: 0 2px 8px rgba(255,90,42,.5); animation: late 1s ease-in-out infinite; }
@keyframes pum2 { 40% { transform: scale(1.35); } }
.rapidez { position: relative; height: 10px; margin: 6px 4px 0; border-radius: 6px; background: rgba(29,27,58,.12); overflow: visible; }
.rapidez b { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffcf3a, #ff8a2a); transform-origin: left; }
.rapidez span { position: absolute; left: -2px; top: 50%; transform: translate(-50%, -50%); font-size: 15px; }
.carta.urgente { box-shadow: 0 -8px 24px rgba(0,0,0,.35), 0 0 0 4px #ff8a2a inset; }
.carta.urgente .carta-saludo { color: #e05a00; }
.carta.urgente .rapidez b { background: linear-gradient(90deg, #ff6a3a, #ff2a5a); }
.flota { position: absolute; z-index: 13; pointer-events: none; font: 400 26px/1 "Lilita One", sans-serif; color: var(--oro2); text-shadow: 0 2px 0 rgba(14,21,80,.9), 0 0 10px rgba(0,0,0,.4); transform: translate(-50%, -50%); animation: flota 1.1s ease-out forwards; white-space: nowrap; }
.flota small { display: block; font: 700 14px/1.1 "Baloo 2", sans-serif; color: #fff; text-align: center; }
@keyframes flota { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -160%) scale(1); } }
.record { display: inline-block; margin: 0 auto 6px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(180deg, #ffe27a, #ffb83a); color: #5a3200; font: 400 16px/1.2 "Lilita One", sans-serif; }

@media (min-width: 700px) {
  .carta { bottom: 12px; border-radius: 26px; }
  .carta.plegada { transform: translateY(calc(100% - 74px)); }
  .nuri { left: max(12px, calc(50% - 400px)); }
}
@media (max-height: 560px) {
  .portada .hueco { min-height: 20px; }
  .portada .logo { width: min(60%, 340px); }
  .carta-nino { width: 46px; height: 46px; }
  .carta-msg { font-size: 15px; }
}
.tarjeta .puntos-fin { font: 400 30px/1.1 "Lilita One", sans-serif; color: #d97a00; margin: 2px 0 6px; }
.tarjeta .puntos-fin small { font: 700 15px "Baloo 2", sans-serif; color: inherit; opacity: .85; }
.tarjeta .rec { margin: 0 0 6px; font-size: 14px; opacity: .8; }
