@font-face { font-family: "Montserrat"; src: url("/static/montserrat.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/static/dmsans.woff") format("woff"); font-weight: 100 1000; font-display: swap; }
:root {
  /* colores sacados de las plantillas "TUMO Uruguay Wrapped 2026" */
  --fondo: #1c1c1c; --lima: #c5f82d; --blanco: #ebedea; --lila: #c58fd0; --violeta: #a268e3; --naranja: #f9a61a;
  --borde: #6b4fd6; --cian: #3fd6e8; --coral: #f2746b;
  --titulo: "Montserrat", system-ui, sans-serif; --texto: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #111; color: var(--blanco); }
body { font-family: var(--texto); -webkit-font-smoothing: antialiased; overflow: hidden; -webkit-tap-highlight-color: transparent; }
#app { position: relative; width: 100%; max-width: 460px; height: 100dvh; max-height: 920px; margin: 0 auto; overflow: hidden; background: var(--fondo); }
@media (min-width: 600px) { #app { margin-top: calc((100dvh - min(100dvh, 920px)) / 2); border-radius: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.6); } }
.pantalla { position: absolute; inset: 0; overflow: hidden; background: var(--fondo); }
[hidden] { display: none !important; }
a { color: inherit; }

/* texturas de las plantillas, fundidas con el fondo */
.tex { position: absolute; z-index: 0; pointer-events: none; background-size: cover; background-repeat: no-repeat; }
.tex.arr { top: 0; left: 0; right: 0; height: 32%; background-position: center bottom;
  -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
.tex.abj { bottom: 0; left: 0; right: 0; height: 32%; background-position: center top;
  -webkit-mask: linear-gradient(transparent, #000 40%); mask: linear-gradient(transparent, #000 40%); }
.tex.alto { height: 46%; } .tex.bajo { height: 24%; }
.tex.der { top: 0; right: 0; width: 62%; height: 44%; background-position: left bottom;
  -webkit-mask: linear-gradient(to left, #000 55%, transparent), linear-gradient(#000 55%, transparent); -webkit-mask-composite: source-in;
  mask: linear-gradient(to left, #000 55%, transparent), linear-gradient(#000 55%, transparent); mask-composite: intersect; }
.tex.izq { bottom: 0; left: 0; width: 62%; height: 40%; background-position: right top;
  -webkit-mask: linear-gradient(to right, #000 55%, transparent), linear-gradient(to top, #000 55%, transparent); -webkit-mask-composite: source-in;
  mask: linear-gradient(to right, #000 55%, transparent), linear-gradient(to top, #000 55%, transparent); mask-composite: intersect; }
.tex.lado { top: 0; bottom: 0; right: 0; width: 22%; background-position: left center;
  -webkit-mask: linear-gradient(90deg, transparent, #000 35%); mask: linear-gradient(90deg, transparent, #000 35%); }
.grano { position: absolute; inset: -50%; pointer-events: none; z-index: 1; opacity: .09; mix-blend-mode: overlay;
  background-image: var(--ruido); animation: grano 1s steps(4) infinite; }
@keyframes grano { 0% { transform: translate(0,0) } 25% { transform: translate(-3%,2%) } 50% { transform: translate(2%,-3%) }
  75% { transform: translate(-1%,3%) } 100% { transform: translate(0,0) } }
.flota { animation: flota 9s ease-in-out infinite alternate; }
@keyframes flota { from { transform: translateY(0) scale(1) } to { transform: translateY(-10px) scale(1.04) } }

/* tipografia */
.t { font-family: var(--titulo); font-weight: 800; letter-spacing: -.035em; line-height: .95; }
.lima { color: var(--lima); } .lila { color: var(--lila); } .naranja { color: var(--naranja); } .violeta { color: var(--violeta); }
.num { font-family: var(--titulo); font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--lima); font-size: 112px;
  font-variant-numeric: tabular-nums; text-shadow: 3px 4px 0 rgba(0,0,0,.35); }
.num.xl { font-size: 136px; }
.num.m { font-size: 78px; }
.sub { font-size: 30px; font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin-top: 8px; }
.chico { font-size: 17px; font-weight: 400; margin-top: 12px; }
.mayus { text-transform: uppercase; }

/* ---------- entrada ---------- */
.entrada { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 26px 26px; }
.entrada > *:not(.tex):not(.grano) { position: relative; z-index: 3; }
.portada-t { margin-top: auto; padding-top: 34%; }
.portada-t .t { display: block; font-size: 66px; text-transform: uppercase; }
.portada-t .t.w { font-size: 64px; text-transform: none; color: var(--blanco); letter-spacing: -.03em; }
.portada-t .chico { font-size: 18px; }
.login { margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: center; }
#boton-google { min-height: 44px; }
.mini { margin-top: 12px; font-size: 11.5px; line-height: 1.4; opacity: .7; max-width: 360px; }
.error { margin-top: 12px; background: var(--blanco); color: var(--fondo); padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.entrada .in, .entrada .t { animation: sube .7s cubic-bezier(.2,.9,.25,1) both; }

/* ---------- cargando ---------- */
.cargando { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.cargando > *:not(.tex):not(.grano) { position: relative; z-index: 3; }
.cargando p { font-size: 22px; }
.anillos-carga { width: 90px; height: 90px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 6px, var(--violeta) 6px 8px);
  animation: late 1.2s ease-in-out infinite; }
@keyframes late { 0%, 100% { transform: scale(.85); opacity: .6 } 50% { transform: scale(1.05); opacity: 1 } }

/* ---------- historia ---------- */
.barras { position: absolute; z-index: 20; top: 12px; left: 10px; right: 54px; display: flex; gap: 4px; }
.barras i { flex: 1; height: 3px; border-radius: 3px; background: rgba(235,237,234,.25); overflow: hidden; }
.barras i b { display: block; height: 100%; width: 0; background: var(--blanco); }
.barras i.hecha b { width: 100%; }
.zona { position: absolute; z-index: 10; top: 0; bottom: 0; background: none; border: 0; cursor: pointer; }
.zona.izq { left: 0; width: 30%; } .zona.der { right: 0; width: 70%; }
.zona:focus-visible { outline: 3px solid var(--lima); outline-offset: -6px; }
.cerrar { position: absolute; z-index: 21; top: 4px; right: 8px; width: 40px; height: 32px; border: 0; background: none;
  color: var(--blanco); font-size: 13px; font-weight: 900; cursor: pointer; opacity: .8; }
.cerrar:focus:not(:focus-visible), .zona:focus:not(:focus-visible) { outline: none; }
.slide { position: absolute; inset: 0; padding: 60px 26px 54px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.slide > *:not(.tex):not(.grano):not(.marca) { position: relative; z-index: 3; }
.slide.centro { align-items: center; text-align: center; }
.in { animation: sube .7s cubic-bezier(.2,.9,.25,1) both; animation-delay: calc(var(--d, 0) * 1s); }
.pop { animation: entra .8s cubic-bezier(.2,.9,.2,1.2) both; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes sube { from { opacity: 0; transform: translateY(28px) } to { opacity: 1; transform: none } }
@keyframes entra { from { opacity: 0; transform: scale(.75) } to { opacity: 1 } }
.pausado .in, .pausado .pop, .pausado .flota { animation-play-state: paused; }
.der-al { align-self: flex-end; text-align: right; }
.gap { height: 56px; }

/* filas tipo "100% GRATUITO" */
.par { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.par .num { font-size: 88px; }
.par .txt { font-size: 32px; text-transform: uppercase; letter-spacing: -.01em; }

/* lista de disciplinas tipo "NUESTRAS FAVORITAS" */
.favs-t { font-size: 46px; text-transform: uppercase; color: var(--naranja); }
.favs-t small { font-family: var(--texto); font-weight: 400; font-size: 17px; color: var(--blanco); letter-spacing: 0; text-transform: none; margin-left: 6px; white-space: nowrap; }
.pills { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; width: 92%; }
.pill { display: flex; align-items: center; height: 66px; border: 2px solid var(--borde); border-radius: 33px; background: rgba(20,12,34,.6); }
.pill .ic { width: 66px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border-right: 2px solid var(--borde); }
.pill .ic img, .pill .ic span { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.pill .nom { padding: 0 18px; font-size: 21px; line-height: 1.1; }
.pill .pos { margin-left: auto; padding-right: 20px; font-family: var(--titulo); font-weight: 800; color: var(--lima); font-size: 22px; }

/* tarjeta final tipo "Nuestra era" */
.cabeza { font-size: 54px; }
.cabeza .w { color: var(--blanco); }
.tarjeta { margin-top: 22px; border-radius: 30px; padding: 22px 20px; position: relative;
  background: linear-gradient(#141414, #141414) padding-box, linear-gradient(160deg, var(--lima), var(--cian) 40%, var(--violeta) 70%, var(--coral)) border-box;
  border: 2px solid transparent; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.fila { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.fila img { width: 58px; height: 46px; flex: 0 0 auto; object-fit: contain; }
.fila .k { font-size: 19px; line-height: 1.15; }
.fila .k b { font-weight: 500; }
.era { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.era img { width: 74px; height: 92px; flex: 0 0 auto; }
.era .t { font-size: 30px; line-height: 1; }
.acciones { display: flex; gap: 10px; margin-top: 18px; position: relative; z-index: 15; width: 100%; }
.btn { flex: 1; border: 0; border-radius: 999px; padding: 15px 16px; font: inherit; font-family: var(--titulo); font-weight: 800; font-size: 16px; cursor: pointer;
  background: var(--lima); color: #141414; }
.btn.claro { background: transparent; color: var(--blanco); box-shadow: inset 0 0 0 2px var(--borde); flex: 0 0 auto; width: 52px; }
.btn:focus-visible { outline: 3px solid var(--blanco); outline-offset: 2px; }
.demo { position: absolute; z-index: 22; bottom: 16px; right: 14px; white-space: nowrap; background: var(--lima);
  color: #141414; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; font-family: var(--titulo); }
.marca { position: absolute; z-index: 4; bottom: 18px; left: 26px; font-family: var(--titulo); font-weight: 800; font-size: 13px; color: var(--lima); letter-spacing: -.01em; }

@media (max-height: 700px) {
  .num { font-size: 92px; } .num.xl { font-size: 108px; } .sub { font-size: 25px; } .portada-t .t { font-size: 54px; }
  .favs-t { font-size: 42px; } .pill { height: 56px; } .pill .ic { height: 52px; } .cabeza { font-size: 44px; } .par .num { font-size: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* adivina */
.opciones { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; position: relative; z-index: 15; }
.op { border: 2px solid var(--borde); background: rgba(20,12,34,.6); color: var(--blanco); border-radius: 33px; padding: 16px 22px;
  font-family: var(--titulo); font-weight: 800; font-size: 26px; text-align: left; cursor: pointer; letter-spacing: -.02em; }
.op.bien { background: var(--lima); color: #141414; border-color: var(--lima); }
.op.mal { border-color: var(--coral); color: var(--coral); }
.op:disabled { cursor: default; }
.op:not(.bien):not(.mal):disabled { opacity: .45; }
/* mix */
.barra-mix { display: flex; height: 54px; border-radius: 27px; overflow: hidden; margin-top: 30px; gap: 3px; }
.barra-mix i { display: block; min-width: 8px; }
.ley { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.ley p { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.ley span { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; }
.ley b { margin-left: auto; font-family: var(--titulo); font-weight: 800; color: var(--lima); }
/* playlist */
.playlist { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; width: 80%; }
.pl { display: flex; align-items: center; gap: 14px; }
.pl .n { font-family: var(--titulo); font-weight: 800; color: var(--lima); font-size: 24px; width: 22px; }
.pl .ic { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; }
.pl .ic img, .pl .ic span { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.35); }
.pl .nom { font-size: 19px; line-height: 1.15; }
.pl .nom small { display: block; font-size: 13px; color: var(--lila); margin-top: 2px; }
.slide > .opciones, .slide > .acciones { z-index: 15 !important; }

/* fase */
.fase-ic { position: relative; width: 180px; height: 180px; border-radius: 50%; margin-top: 18px; display: grid; place-items: center;
  background: linear-gradient(#1c1c1c, #1c1c1c) padding-box, linear-gradient(160deg, var(--lima), var(--cian) 40%, var(--violeta) 70%, var(--coral)) border-box;
  border: 4px solid transparent; box-shadow: 0 0 60px rgba(162,104,227,.35); }
.fase-ic span { font-family: var(--titulo); font-weight: 800; font-size: 110px; color: var(--lima); letter-spacing: -.05em; line-height: 1; }
.fase-ic img { width: 62%; height: 62%; object-fit: contain; }
.fase-ic.con-img span { display: none; }
.recorrido { display: flex; align-items: center; gap: 6px; margin-top: 22px; }
.recorrido span { width: 58px; height: 70px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--titulo); font-weight: 800; font-size: 20px;
  border: 2px solid var(--borde); color: rgba(235,237,234,.45); }
.recorrido span.si { border-color: var(--lima); color: var(--lima); }
.recorrido span.aca { background: var(--lima); color: #141414; }
.recorrido i { width: 18px; height: 2px; background: var(--borde); }
.pills + .chico { margin-top: 18px; }
.recorrido span img { width: 30px; height: 26px; object-fit: contain; opacity: .35; }
.recorrido span.si img { opacity: 1; }
.recorrido span.aca img { filter: brightness(0) opacity(.85); }
