/* Reproductor del tótem (lienzo fijo 1080x1920) + juegos. Táctil: sin hover, objetivos >= 120 px. */
[hidden] { display: none !important; }
html, body { height: 100%; }
.totem-body {
  overflow: hidden; background: #000; overscroll-behavior: none; -webkit-tap-highlight-color: transparent;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; margin: 0;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none;
}
html { overflow: hidden; overscroll-behavior: none; background: #000; }
.totem-body img, .totem-body video { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

#viewport { position: fixed; inset: 0; overflow: hidden; background: #000; }
#stage {
  position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; transform-origin: 0 0;
  overflow: hidden; background: var(--bg); isolation: isolate; font-family: var(--font); color: var(--text);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
#stage button { font-family: inherit; touch-action: none; transition: transform .12s var(--ease), filter .12s; }
#stage button:active { transform: scale(.95); filter: brightness(1.15); }
#scene, #overlay, #fx { position: absolute; inset: 0; }
#scene { z-index: 1; }
#overlay { z-index: 20; pointer-events: none; }
#fx { z-index: 60; pointer-events: none; overflow: hidden; }
.layer { position: absolute; inset: 0; pointer-events: auto; isolation: isolate; overflow: hidden; animation: layer-in .4s var(--ease) both; }
@keyframes layer-in { from { opacity: 0; transform: scale(1.03); } }

/* Onda al tocar */
.ripple {
  position: absolute; width: 260px; height: 260px; border-radius: 50%; transform: translate(-50%, -50%);
  border: 8px solid rgba(255, 255, 255, .85); background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%);
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* Píldora de vista previa */
.pill {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 40; max-width: 1010px;
  padding: 14px 34px; border-radius: 99px; background: rgba(8, 8, 14, .8); color: #fff;
  border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  font-size: 30px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.pill b { color: var(--accent); }

/* Botón de pantalla completa (solo con ratón) */
.fs-btn {
  position: fixed; top: 12px; right: 12px; z-index: 100; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 10, 16, .7); color: #fff;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s;
}
body.show-ui .fs-btn { opacity: 1; pointer-events: auto; }

/* ---------- Composiciones ---------- */
.layout { position: absolute; inset: 0; overflow: hidden; background: #000; }
.frames { position: absolute; inset: 0; overflow: hidden; perspective: 2400px; }
.frame { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; will-change: transform, opacity; }
.frame > .media { width: 100%; height: 100%; }
.layout--fullscreen .frame > .media--image-v,
.layout--carousel .frame > .media--image-v,
.layout--combo .combo__mid .frame > .media--image-v { animation: kenburns 16s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

.chip {
  position: absolute; top: 56px; right: 48px; width: 156px; height: 156px; padding: 14px; border-radius: 38px; z-index: 6;
  display: grid; place-items: center; background: rgba(8, 8, 14, .55); backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, .2); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7);
  animation: chip-in .8s var(--ease) both .3s; pointer-events: none;
}
.chip > * { width: 100%; height: 100%; }
/* Logo placeholder en miniaturas (esquina, franja, cabeceras): solo el nombre, sin textos de "pendiente" ilegibles */
.chip [class^="ph__"], .combo__logo [class^="ph__"], .det__logo [class^="ph__"], .invite__logo [class^="ph__"], .game__logo [class^="ph__"] { display: none; }
.chip .ph__name, .combo__logo .ph__name, .det__logo .ph__name, .invite__logo .ph__name, .game__logo .ph__name { display: block; font-size: 22cqmin; }
.layout--carousel .chip { top: 100px; }
.is-preview .layout--fullscreen .chip { top: 96px; }
.is-preview .layout--carousel .chip { top: 170px; }
@keyframes chip-in { from { opacity: 0; transform: translateY(-20px) scale(.8); } }

.stories { position: absolute; left: 48px; right: 48px; top: 44px; display: flex; gap: 10px; z-index: 6; pointer-events: none; }
.stories i { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.stories b { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(255, 255, 255, .6); }
.is-preview .layout--carousel .stories { top: 104px; }
.combo__mid .stories { top: 28px; }

/* Píldora táctil sobre la pieza */
.cta {
  position: absolute; left: 50%; bottom: 44px; z-index: 7; transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px; max-width: 980px; min-height: 132px; padding: 0 56px 0 44px;
  border: 0; border-radius: 999px; background: #fff; color: #0A0A12; cursor: pointer;
  font-size: 56px; font-weight: 900; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 26px 70px -14px color-mix(in srgb, var(--biz, var(--brand)) 85%, transparent), 0 0 0 6px rgba(255, 255, 255, .25);
  opacity: 0;
}
.cta.is-in { animation: cta-in .7s var(--ease) both .8s, cta-pulse 1.8s ease-in-out infinite 1.6s; }
.cta i { font-style: normal; font-size: 70px; line-height: 1; animation: finger 1.4s ease-in-out infinite; }
.cta span { overflow: hidden; text-overflow: ellipsis; }
.cta:active { transform: translateX(-50%) scale(.95) !important; }
@keyframes cta-in { from { opacity: 0; transform: translateX(-50%) translateY(60px) scale(.9); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes cta-pulse { 50% { transform: translateX(-50%) scale(1.05); box-shadow: 0 30px 90px -10px color-mix(in srgb, var(--biz, var(--brand)) 95%, transparent), 0 0 0 16px rgba(255, 255, 255, .12); } }
@keyframes finger { 50% { transform: translateY(-10px) rotate(-8deg); } }

/* Combinado: 1080x608 arriba + carrusel vertical + franja de logo */
.layout--combo { display: flex; flex-direction: column; }
.combo__top { height: 608px; flex: none; position: relative; overflow: hidden; z-index: 2; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
.combo__top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--grad); z-index: 3; }
.combo__notop { display: grid; place-items: center; background: linear-gradient(135deg, var(--biz), #000); font-size: 96px; font-weight: 900; text-align: center; }
.combo__mid { flex: 1; position: relative; overflow: hidden; }
.combo__bottom {
  height: 220px; flex: none; z-index: 2; display: flex; align-items: center; gap: 40px; padding: 0 56px;
  background: linear-gradient(100deg, #0b0b12 0%, color-mix(in srgb, var(--biz) 30%, #0b0b12) 100%);
  border-top: 6px solid var(--biz);
}
.combo__logo { width: 150px; height: 150px; flex: none; }
.combo__logo > * { width: 100%; height: 100%; }
.combo__name { min-width: 0; display: grid; gap: 6px; }
.combo__name strong { font-size: 76px; font-weight: 900; letter-spacing: -.03em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo__name span { font-size: 36px; color: var(--text-2); font-weight: 600; }

/* Monograma (logo ausente) */
.mono {
  container-type: size; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 22%;
  background: linear-gradient(135deg, var(--biz), color-mix(in srgb, var(--biz) 45%, #000)); color: var(--on-biz, #fff);
  font-weight: 900; font-size: 46cqmin; letter-spacing: -.04em;
}
.mono--grad { background: var(--grad); color: #0A0A12; }

/* ---------- Espera con marca / mensajes ---------- */
.idle { background: radial-gradient(900px 700px at 50% 40%, color-mix(in srgb, var(--brand) 22%, #0a0a12), #05050a 75%); }
.idle__aurora i { position: absolute; border-radius: 50%; filter: blur(130px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.idle__aurora i:nth-child(1) { width: 900px; height: 900px; left: -320px; top: -240px; background: var(--brand); }
.idle__aurora i:nth-child(2) { width: 800px; height: 800px; right: -300px; bottom: -200px; background: var(--accent); animation-delay: -6s; }
.idle__aurora i:nth-child(3) { width: 600px; height: 600px; left: 30%; top: 45%; background: color-mix(in srgb, var(--brand) 50%, var(--accent)); opacity: .3; animation-delay: -11s; }
.idle__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px; gap: 28px; }
.idle__logo { width: 300px; height: 300px; margin-bottom: 36px; border-radius: 72px; box-shadow: 0 0 140px color-mix(in srgb, var(--brand) 60%, transparent); animation: breathe 5s ease-in-out infinite; }
.idle__logo > * { width: 100%; height: 100%; }
.idle__name { margin: 0; font-size: 120px; font-weight: 900; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.idle__tag { margin: 0; font-size: 50px; color: var(--text-2); }
.idle__msg { margin: 20px 0 0; font-size: 36px; color: var(--text-3); }
@keyframes drift { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes breathe { 50% { transform: scale(1.05); } }
.btn-xl {
  display: inline-flex; align-items: center; justify-content: center; min-height: 140px; padding: 0 90px; margin-top: 40px;
  border-radius: 999px; background: var(--grad); color: #0A0A12; font-size: 56px; font-weight: 900; text-decoration: none;
}

/* ---------- Invitación a jugar ---------- */
.layer--invite {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 80px 72px; text-align: center; cursor: pointer;
  background: radial-gradient(1200px 950px at 50% 36%, color-mix(in srgb, var(--biz) 55%, #0a0a12) 0%, #07070c 72%);
}
.invite__rings i { position: absolute; left: 50%; top: 40%; width: 520px; height: 520px; margin: -260px; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--biz) 70%, #fff); opacity: 0; animation: ring 3.6s ease-out infinite; }
.invite__rings i:nth-child(2) { animation-delay: 1.2s; }
.invite__rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring { from { transform: scale(.4); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
.invite__biz { position: absolute; top: 72px; left: 72px; right: 72px; display: flex; align-items: center; gap: 28px; text-align: left; }
.invite__logo { width: 120px; height: 120px; flex: none; }
.invite__logo > * { width: 100%; height: 100%; }
.invite__biz strong { font-size: 58px; font-weight: 800; letter-spacing: -.02em; }
.invite__icon { font-size: 320px; line-height: 1; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); animation: bounce 2.4s ease-in-out infinite; position: relative; }
@keyframes bounce { 50% { transform: translateY(-24px) rotate(-4deg) scale(1.04); } }
.invite__title { margin: 0; font-size: 116px; font-weight: 900; line-height: 1.02; letter-spacing: -.04em; position: relative; }
.invite__game { margin: 0; font-size: 54px; font-weight: 700; position: relative; }
.invite__prizes { margin: 0; font-size: 38px; color: var(--text-2); position: relative; }
.invite__play {
  position: relative; min-height: 170px; padding: 0 110px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #0A0A12; font-size: 68px; font-weight: 900; letter-spacing: .02em;
  box-shadow: 0 30px 90px -20px color-mix(in srgb, var(--brand) 85%, transparent); animation: pulse 1.6s ease-in-out infinite;
}
.invite__skip {
  position: relative; min-height: 130px; padding: 0 80px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 3px solid rgba(255, 255, 255, .3); color: #fff; font-size: 46px; font-weight: 700;
}
@keyframes pulse { 50% { transform: scale(1.06); } }
.invite__count { position: absolute; bottom: 64px; left: 50%; margin-left: -70px; width: 140px; height: 140px; display: grid; place-items: center; }
.invite__count svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.invite__count circle { fill: none; stroke-width: 9; }
.invite__track { stroke: rgba(255, 255, 255, .15); }
.invite__arc { stroke: var(--accent); stroke-linecap: round; }
.invite__count span { font-size: 56px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- Aviso de inactividad ---------- */
.layer--warn { z-index: 10; display: grid; place-items: center; background: rgba(4, 4, 10, .82); backdrop-filter: blur(10px); cursor: pointer; }
.warn__card { width: 880px; padding: 80px 60px; text-align: center; border-radius: 72px; background: linear-gradient(160deg, #1d1d2e, #0d0d16); border: 3px solid var(--accent); box-shadow: 0 0 140px color-mix(in srgb, var(--accent) 45%, transparent); }
.warn__emoji { font-size: 150px; line-height: 1; }
.warn__card h2 { margin: 10px 0 0; font-size: 110px; font-weight: 900; }
.warn__card p { margin: 10px 0 0; font-size: 58px; color: var(--text-2); }
.warn__num { margin-top: 30px; font-size: 220px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Detalle de anuncio ---------- */
.layer--detail { display: flex; flex-direction: column; gap: 30px; padding: 60px 64px 56px; }
.det__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(1300px 1000px at 50% 0%, color-mix(in srgb, var(--biz) 55%, #0a0a12), #07070c 72%); }
.det__head { display: flex; align-items: center; gap: 28px; flex: none; }
.det__head strong { font-size: 56px; font-weight: 800; letter-spacing: -.02em; }
.det__logo { width: 116px; height: 116px; flex: none; }
.det__logo > * { width: 100%; height: 100%; }
.det__piece { flex: 1 1 0; min-height: 240px; border-radius: 56px; overflow: hidden; box-shadow: 0 40px 120px -30px color-mix(in srgb, var(--biz) 80%, transparent), 0 0 0 4px rgba(255, 255, 255, .12); }
.det__piece > .media { width: 100%; height: 100%; }
.det__body { flex: none; }
.det__title { margin: 0 0 14px; font-size: 88px; font-weight: 900; letter-spacing: -.035em; line-height: 1.02; }
.det__text { margin: 0; font-size: 46px; line-height: 1.3; color: var(--text-2); }
.det__url { margin: 22px 0 0; font-size: 46px; font-weight: 800; color: var(--accent); word-break: break-all; padding: 20px 30px; border-radius: 28px; background: rgba(255, 255, 255, .07); font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.det__pending { margin: 14px 0 0; font-size: 28px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); }
.det__qr { flex: none; display: grid; justify-items: center; gap: 14px; }
.det__qrbox { width: 600px; height: 600px; padding: 22px; border-radius: 44px; background: #fff; box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .7); }
.det__qrbox svg { width: 100%; height: 100%; display: block; }
.detail--enlace .det__qrbox { width: 460px; height: 460px; }
.det__qr p { margin: 0; font-size: 40px; font-weight: 700; color: var(--text-2); }
.det__back {
  flex: none; width: 100%; min-height: 150px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #0A0A12; font-size: 62px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 24px;
  box-shadow: 0 24px 80px -20px color-mix(in srgb, var(--brand) 80%, transparent);
}

/* ---------- Juegos ---------- */
.game-host { position: absolute; inset: 0; }
.layer--game { background: #07070c; }
.game { position: absolute; inset: 0; overflow: hidden; background: #07070c; color: #fff; font-family: var(--font); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.game button { font-family: inherit; touch-action: none; transition: transform .12s var(--ease), filter .12s; }
.game button:active { transform: scale(.95); filter: brightness(1.15); }
.game__bg i { position: absolute; border-radius: 50%; filter: blur(110px); animation: drift 14s ease-in-out infinite alternate; }
.game__bg i:nth-child(1) { width: 900px; height: 900px; right: -300px; top: -250px; background: var(--biz); opacity: .5; }
.game__bg i:nth-child(2) { width: 800px; height: 800px; left: -300px; bottom: -200px; background: var(--brand); opacity: .35; animation-delay: -7s; }
.game__head { position: absolute; top: 48px; left: 56px; right: 56px; display: flex; align-items: center; gap: 28px; z-index: 40; }
.game__logo { width: 112px; height: 112px; flex: none; border-radius: 28px; overflow: hidden; }
.game__logo > * { width: 100%; height: 100%; }
.game__biz { min-width: 0; flex: 1; }
.game__biz strong { display: block; font-size: 52px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game__biz span { font-size: 30px; color: var(--text-2); }
.game__close {
  flex: none; min-height: 120px; padding: 0 44px; border-radius: 60px; cursor: pointer; display: inline-flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .1); border: 3px solid rgba(255, 255, 255, .3); color: #fff; font-size: 46px; font-weight: 800;
}
.game__intro { position: absolute; top: 200px; left: 56px; right: 56px; z-index: 3; text-align: center; }
.game__title { margin: 0 0 12px; font-size: 76px; font-weight: 900; letter-spacing: -.03em; }
.game__how { margin: 0; font-size: 36px; color: var(--text-2); }
.game__play { position: absolute; inset: 0; z-index: 2; }
.game__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* Toca el objetivo */
.toca__hud { position: absolute; top: 440px; left: 56px; right: 56px; display: grid; grid-template-columns: 230px 1fr 230px; align-items: center; gap: 36px; }
.toca__stat { text-align: center; padding: 18px 10px; border-radius: 36px; background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .12); }
.toca__stat small { display: block; font-size: 24px; font-weight: 800; letter-spacing: .16em; color: var(--text-2); }
.toca__stat strong { font-size: 76px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.05; }
.toca__bar { height: 28px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.toca__bar i { display: block; height: 100%; transform-origin: 0 50%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--biz)); }
.toca__time span { display: block; text-align: center; font-size: 60px; font-weight: 900; margin-top: 8px; font-variant-numeric: tabular-nums; }
.toca__arena { position: absolute; left: 40px; right: 40px; top: 650px; bottom: 40px; border-radius: 64px; border: 3px dashed rgba(255, 255, 255, .14); background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .05), transparent 70%); }
.tgt { position: absolute; width: 260px; height: 260px; display: grid; place-items: center; touch-action: none; cursor: pointer; }
.tgt__v {
  width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, #fff 0 14%, var(--biz) 14% 30%, #fff 30% 46%, var(--accent) 46% 62%, #fff 62% 78%, var(--biz-dark) 78% 100%);
  box-shadow: 0 0 60px color-mix(in srgb, var(--biz) 75%, transparent), 0 0 0 6px rgba(255, 255, 255, .22);
}
.tgt--miss { animation: miss .36s ease-in forwards; }
@keyframes miss { to { opacity: 0; transform: scale(.4); } }
.pop-score { position: absolute; transform: translate(-50%, -50%); font-size: 64px; font-weight: 900; text-shadow: 0 6px 20px rgba(0, 0, 0, .6); pointer-events: none; z-index: 5; animation: floatup .85s ease-out forwards; }
@keyframes floatup { to { transform: translate(-50%, calc(-50% - 120px)); opacity: 0; } }
.toca__count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 300px; font-weight: 900; pointer-events: none; text-shadow: 0 10px 50px rgba(0, 0, 0, .6); z-index: 6; }
.toca__count.is-pop { animation: count-pop .8s var(--ease); }
@keyframes count-pop { from { transform: scale(.4); opacity: 0; } 30% { opacity: 1; } }

/* Toca al robot */
.holes { position: absolute; left: 50px; top: 700px; width: 980px; display: grid; grid-template-columns: repeat(3, 300px); grid-auto-rows: 300px; gap: 60px 40px; }
.hole { position: relative; touch-action: none; cursor: pointer; border-radius: 40px; }
.hole__well {
  position: absolute; left: 10px; right: 10px; bottom: 14px; height: 110px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, #000 0 45%, #14141f 100%);
  border: 8px solid color-mix(in srgb, var(--biz) 40%, #2a2a3c); box-shadow: inset 0 12px 30px rgba(0, 0, 0, .8), 0 14px 30px rgba(0, 0, 0, .4);
}
.hole:active .hole__well { filter: brightness(1.5); }
.hole__window { position: absolute; left: 0; right: 0; top: 0; bottom: 69px; overflow: hidden; }
.hole__robot { position: absolute; left: 50%; bottom: 0; width: 220px; height: 250px; margin-left: -110px; will-change: transform; }
.hole.is-miss { animation: hole-shake .3s; }
.hole.is-miss .hole__well { border-color: var(--danger); }
@keyframes hole-shake { 25% { transform: translateX(-12px); } 75% { transform: translateX(12px); } }
.pop-score--bad { color: var(--danger); font-size: 52px; }
.robot__ph { position: relative; width: 100%; height: 100%; }
.robot__ph svg { width: 100%; height: 100%; display: block; }
.robot__eye { animation: blink 3s steps(1) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 92% { transform: scaleY(.15); } }
.robot__tag { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 8px; padding: 2px 10px; border-radius: 99px; background: rgba(0, 0, 0, .55); font-size: 17px; font-weight: 700; white-space: nowrap; color: #D5DAE4; }
.robot__media { width: 100%; height: 100%; }

/* Reflejos */
.ref__dots { position: absolute; top: 440px; left: 0; right: 0; display: flex; justify-content: center; gap: 32px; }
.ref__dot { width: 260px; padding: 16px 0; text-align: center; border-radius: 40px; background: rgba(255, 255, 255, .07); border: 3px solid rgba(255, 255, 255, .12); }
.ref__dot small { display: block; font-size: 22px; letter-spacing: .14em; color: var(--text-2); }
.ref__dot b { font-size: 48px; font-variant-numeric: tabular-nums; }
.ref__dot.is-current { border-color: #fff; }
.ref__dot.is-done { border-color: var(--ok); }
.ref__pad {
  position: absolute; left: 70px; right: 70px; top: 640px; bottom: 120px; border-radius: 80px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px; text-align: center; padding: 40px; touch-action: none; cursor: pointer;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), inset 0 0 0 4px rgba(255, 255, 255, .15);
}
.ref__pad[data-s="intro"] { background: linear-gradient(160deg, var(--surface-3), var(--surface)); }
.ref__pad[data-s="wait"] { background: linear-gradient(160deg, #d62a45, #7a0f24); }
.ref__pad[data-s="go"] { background: linear-gradient(160deg, #2BE38B, #0a8a4c); box-shadow: 0 0 200px rgba(43, 227, 139, .6), inset 0 0 0 4px rgba(255, 255, 255, .3); }
.ref__pad[data-s="early"] { background: linear-gradient(160deg, #ffc53d, #c27a00); color: #1a1000; }
.ref__pad[data-s="result"] { background: linear-gradient(160deg, var(--biz), var(--biz-dark)); color: var(--on-biz); }
.ref__big { font-size: 140px; font-weight: 900; letter-spacing: -.04em; line-height: 1.02; }
.ref__sub { font-size: 48px; font-weight: 600; opacity: .9; }

/* Ruleta */
.rul { position: absolute; left: 50px; top: 500px; width: 980px; height: 980px; }
.rul::before { content: ""; position: absolute; inset: 20px; border-radius: 50%; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 140px color-mix(in srgb, var(--biz) 50%, transparent); }
.rul__wheel, .rul__cap { position: absolute; inset: 0; width: 100%; height: 100%; }
.rul__cap { pointer-events: none; }
.rul__pointer { position: absolute; left: 50%; top: -30px; width: 104px; height: 140px; margin-left: -52px; transform-origin: 50% 28%; z-index: 4; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.rul__pointer svg { display: block; width: 100%; height: 100%; }
.rul__bulb { fill: #fff; animation: bulb 1s steps(1) infinite; }
.rul__bulb:nth-child(even) { animation-delay: .5s; }
@keyframes bulb { 50% { fill: var(--accent); opacity: .45; } }
.rul__win { position: absolute; left: 60px; right: 60px; top: 1500px; text-align: center; font-size: 52px; opacity: 0; min-height: 70px; }
.rul__win.is-on { animation: layer-in .5s var(--ease) both; opacity: 1; }
.rul__win b { color: var(--accent); }
.rul__btn {
  position: absolute; left: 50%; top: 1590px; margin-left: -280px; width: 560px; min-height: 170px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #0A0A12; font-size: 76px; font-weight: 900; letter-spacing: .04em;
  box-shadow: 0 30px 90px -20px color-mix(in srgb, var(--brand) 85%, transparent); animation: pulse 1.6s ease-in-out infinite;
}
.rul__btn.is-off { opacity: .35; animation: none; }

/* Rasca y gana */
.ras__card { position: absolute; left: 90px; top: 560px; width: 900px; height: 640px; border-radius: 56px; overflow: hidden; background: linear-gradient(145deg, var(--biz), var(--biz-dark)); box-shadow: 0 40px 120px -30px color-mix(in srgb, var(--biz) 80%, transparent), 0 0 0 6px rgba(255, 255, 255, .15); }
.ras__prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 50px; color: var(--on-biz); }
.ras__emoji { font-size: 170px; line-height: 1; }
.ras__text { font-size: 92px; font-weight: 900; line-height: 1.05; letter-spacing: -.03em; }
.ras__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.ras__hint { position: absolute; left: 150px; top: 330px; font-size: 150px; pointer-events: none; animation: scratchhint 2.4s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
@keyframes scratchhint { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(520px, -120px) rotate(8deg); } }
.ras__meter { position: absolute; left: 90px; right: 90px; top: 1290px; display: flex; align-items: center; gap: 28px; }
.ras__meter > div { flex: 1; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ras__meter i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--biz)); border-radius: inherit; transition: transform .15s linear; }
.ras__meter span { font-size: 48px; font-weight: 900; min-width: 150px; text-align: right; font-variant-numeric: tabular-nums; }
.ras__card.is-revealed .ras__prize { animation: card-in .8s var(--ease); }

/* Pantalla final */
.game__result { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 56px; background: rgba(5, 5, 10, .8); backdrop-filter: blur(14px); animation: layer-in .5s var(--ease) both; }
.res__card {
  width: 100%; padding: 70px 56px 56px; border-radius: 72px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--biz) 35%, #14141f), #0d0d16);
  border: 3px solid color-mix(in srgb, var(--biz) 60%, transparent);
  box-shadow: 0 60px 160px -40px color-mix(in srgb, var(--biz) 70%, transparent); animation: card-in .8s var(--ease) both .1s;
}
@keyframes card-in { from { opacity: 0; transform: translateY(60px) scale(.94); } }
.res__emoji { font-size: 190px; line-height: 1; }
.res__title { margin: 10px 0 0; font-size: 92px; font-weight: 900; letter-spacing: -.03em; }
.res__detail { margin: 14px 0 0; font-size: 40px; color: var(--text-2); }
.res__prize { margin: 26px 0; font-size: 108px; font-weight: 900; line-height: 1.05; letter-spacing: -.03em; }
.res__help { margin: 28px 0; font-size: 44px; line-height: 1.3; }
.res__code { display: inline-grid; gap: 8px; padding: 26px 56px; border-radius: 36px; background: rgba(255, 255, 255, .07); border: 4px dashed rgba(255, 255, 255, .3); }
.res__code small { font-size: 26px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.res__code strong { font-size: 124px; font-weight: 900; letter-spacing: .22em; padding-left: .22em; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.res__bar { margin-top: 52px; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.res__bar i { display: block; height: 100%; transform-origin: 0 50%; background: var(--grad); }

/* Pantalla final con CTA + QR (robot) */
.game__result--cta .res__card { padding: 44px 48px 44px; }
.game__result--cta .res__emoji { font-size: 120px; }
.game__result--cta .res__title { font-size: 80px; }
.game__result--cta .res__prize { font-size: 80px; margin: 10px 0; }
.game__result--cta .res__help { font-size: 36px; margin: 10px 0; }
.game__result--cta .res__code { padding: 14px 40px; }
.game__result--cta .res__code strong { font-size: 84px; }
.res__cta { margin: 22px auto 18px; max-width: 900px; padding: 26px 56px; border-radius: 999px; background: var(--grad); color: #0A0A12; font-size: 62px; font-weight: 900; letter-spacing: -.02em; box-shadow: 0 20px 60px -16px color-mix(in srgb, var(--brand) 80%, transparent); }
.res__qr { display: grid; justify-items: center; gap: 8px; }
.res__qrbox { width: 500px; height: 500px; padding: 20px; border-radius: 40px; background: #fff; box-shadow: 0 24px 80px -20px rgba(0, 0, 0, .7); }
.res__qrbox svg { width: 100%; height: 100%; display: block; }
.res__qrbox--pending { display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 4px dashed rgba(255, 255, 255, .35); box-shadow: none; }
.res__qrbox--pending span { font-size: 54px; font-weight: 800; color: var(--text-2); }
.res__url { margin: 6px 0 0; font-size: 44px; font-weight: 800; color: var(--accent); word-break: break-all; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.res__scan { margin: 0; font-size: 32px; color: var(--text-2); }
.res__back {
  margin-top: 30px; width: 100%; min-height: 150px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 58px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 22px;
}

/* ---------- Conectar este tótem (teclado táctil propio) ---------- */
.pair__wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 80px; text-align: center; }
.pair__logo { width: 170px; height: 170px; border-radius: 42px; box-shadow: 0 0 100px color-mix(in srgb, var(--brand) 55%, transparent); }
.pair__logo > * { width: 100%; height: 100%; }
.pair__title { margin: 28px 0 10px; font-size: 88px; font-weight: 900; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pair__help { margin: 0 0 30px; max-width: 880px; font-size: 36px; color: var(--text-2); }
.pair__code {
  width: 920px; height: 170px; display: flex; align-items: center; justify-content: center; border-radius: 40px;
  background: rgba(255, 255, 255, .07); border: 3px solid rgba(255, 255, 255, .22);
}
.pair__text { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 118px; font-weight: 900; letter-spacing: .12em; padding-left: .12em; }
.pair__text:empty::before { content: "ABC-123"; opacity: .18; }
.pair__caret { width: 8px; height: 100px; margin-left: 10px; border-radius: 4px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.pair__code.is-shake { animation: shake .5s; border-color: var(--danger); }
@keyframes shake { 20%, 60% { transform: translateX(-18px); } 40%, 80% { transform: translateX(18px); } }
.pair__err { min-height: 56px; margin: 12px 0 8px; font-size: 38px; font-weight: 700; color: var(--danger); }
.pair__keys { display: grid; grid-template-columns: repeat(7, 128px); gap: 14px; }
.pk {
  height: 124px; border-radius: 28px; cursor: pointer; border: 2px solid rgba(255, 255, 255, .2); color: #fff;
  background: rgba(255, 255, 255, .09); font-size: 62px; font-weight: 800;
}
.pk:active { background: color-mix(in srgb, var(--brand) 70%, #000) !important; }
.pk--num { color: var(--accent); }
.pk--fn { font-size: 42px; color: var(--text-2); background: rgba(255, 255, 255, .05); }
.pk--wide { grid-column: span 2; }
.pk--wide4 { grid-column: span 4; }
.pair__go {
  margin-top: 26px; width: 980px; min-height: 150px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #0A0A12; font-size: 66px; font-weight: 900; letter-spacing: .03em;
  box-shadow: 0 24px 80px -20px color-mix(in srgb, var(--brand) 80%, transparent);
}
.pair__ok {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(900px 800px at 50% 45%, color-mix(in srgb, var(--ok) 28%, #07070c), #05050a 75%); animation: layer-in .5s var(--ease) both;
}
.pair__ok svg { margin-bottom: 20px; }
.pair__ok circle { fill: none; stroke: var(--ok); stroke-width: 6; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw .8s ease-out forwards; }
.pair__ok path { fill: none; stroke: var(--ok); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .5s ease-out forwards .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pair__ok h2 { margin: 0; font-size: 96px; font-weight: 900; letter-spacing: -.03em; }
.pair__okname { margin: 0; font-size: 56px; font-weight: 700; }
.pair__okloc { margin: 0; font-size: 36px; color: var(--text-2); }

/* Esquina oculta para desvincular (mantener 3 s) */
.unlink { position: absolute; top: 0; left: 0; width: 160px; height: 160px; z-index: 55; padding: 0; border: 0; background: transparent; opacity: 1; }
.unlink::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .4); opacity: 0; }
.unlink.is-holding::after { animation: holdring 3s linear forwards; }
@keyframes holdring { from { opacity: 0; transform: scale(.2); } 20% { opacity: .5; } to { opacity: .6; transform: scale(1); } }
.layer--confirm { z-index: 12; display: grid; place-items: center; background: rgba(4, 4, 10, .85); backdrop-filter: blur(10px); }
.confirm__card { width: 900px; padding: 70px 60px; display: grid; gap: 30px; text-align: center; border-radius: 64px; background: linear-gradient(160deg, #1d1d2e, #0d0d16); border: 3px solid var(--danger); }
.confirm__card h2 { margin: 0; font-size: 76px; font-weight: 900; }
.confirm__card p { margin: 0; font-size: 42px; color: var(--text-2); }
.confirm__ok, .confirm__no { min-height: 150px; border-radius: 999px; font-size: 56px; font-weight: 900; cursor: pointer; }
.confirm__ok { border: 0; background: var(--danger); color: #fff; }
.confirm__no { background: transparent; border: 3px solid rgba(255, 255, 255, .35); color: #fff; }

/* ---------- Compatibilidad WebView antiguo ---------- */
/* Sin color-mix(): valores de reserva (colores neutros de la marca por defecto). */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .ripple { box-shadow: 0 0 40px rgba(0, 229, 199, .6); }
  .pill { border-color: rgba(0, 229, 199, .6); }
  .cta { box-shadow: 0 26px 70px -14px rgba(124, 92, 255, .85), 0 0 0 6px rgba(255, 255, 255, .25); }
  @keyframes cta-pulse { 50% { transform: translateX(-50%) scale(1.05); box-shadow: 0 30px 90px -10px rgba(124, 92, 255, .95), 0 0 0 16px rgba(255, 255, 255, .12); } }
  .combo__bottom { background: linear-gradient(100deg, #0b0b12 0%, #1a1a26 100%); }
  .mono { background: linear-gradient(135deg, var(--biz), #222230); }
  .idle { background: radial-gradient(900px 700px at 50% 40%, #1a1636, #05050a 75%); }
  .idle__aurora i:nth-child(3) { background: #3E7ADB; }
  .idle__logo { box-shadow: 0 0 140px rgba(124, 92, 255, .6); }
  .layer--invite { background: radial-gradient(1200px 950px at 50% 36%, #231f38, #07070c 72%); }
  .invite__rings i { border-color: rgba(255, 255, 255, .55); }
  .invite__play, .rul__btn { box-shadow: 0 30px 90px -20px rgba(124, 92, 255, .85); }
  .warn__card { box-shadow: 0 0 140px rgba(0, 229, 199, .45); }
  .det__bg { background: radial-gradient(1300px 1000px at 50% 0%, #231f38, #07070c 72%); }
  .det__piece { box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 4px rgba(255, 255, 255, .12); }
  .det__back, .pair__go { box-shadow: 0 24px 80px -20px rgba(124, 92, 255, .8); }
  .tgt__v { box-shadow: 0 0 60px rgba(255, 255, 255, .3), 0 0 0 6px rgba(255, 255, 255, .22); }
  .hole__well { border-color: #3a3a4c; }
  .rul::before { box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 140px rgba(124, 92, 255, .4); }
  .ras__card { box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .15); }
  .res__card { background: linear-gradient(160deg, #1d1b30, #0d0d16); border-color: rgba(255, 255, 255, .3); box-shadow: 0 60px 160px -40px rgba(0, 0, 0, .8); }
  .res__cta { box-shadow: 0 20px 60px -16px rgba(124, 92, 255, .8); }
  .pair__logo { box-shadow: 0 0 100px rgba(124, 92, 255, .55); }
  .pk:active { background: #3a2f80 !important; }
  .pair__ok { background: radial-gradient(900px 800px at 50% 45%, #0e2a20, #05050a 75%); }
  .media--demo .demo__glow { background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); }
}

/* Sin unidades de contenedor (cq*): se emulan con --cq = 1 cqmin en px según el contexto.
   Reproduce las reglas de .media (demo y placeholder) de base.css. Revisar si base.css cambia. */
@supports not (container-type: size) {
  #stage, .layout { --cq: 10.8px; }
  .combo__top { --cq: 6.08px; }
  .det__piece { --cq: 7px; }
  .chip { --cq: 1.28px; }
  .combo__logo { --cq: 1.5px; }
  .det__logo { --cq: 1.16px; }
  .invite__logo { --cq: 1.2px; }
  .game__logo { --cq: 1.12px; }
  .idle__logo, .pair__logo { --cq: 3px; }
  .mono { font-size: calc(46 * var(--cq, 1px)); }
  .media--demo .demo__glow { width: calc(100 * var(--cq)); height: calc(100 * var(--cq)); margin: calc(-50 * var(--cq)) 0 0 calc(-50 * var(--cq)); translate: none; filter: blur(calc(4 * var(--cq))); }
  .media--demo .demo__content { gap: calc(3 * var(--cq)); padding: calc(8 * var(--cq)); }
  .demo__emoji { font-size: calc(22 * var(--cq)); filter: none; }
  .demo__title { font-size: calc(11 * var(--cq)); text-shadow: 0 4px 16px rgba(0, 0, 0, .45); }
  .demo__subtitle { font-size: calc(4.6 * var(--cq)); }
  .demo__badge { top: calc(3 * var(--cq)); left: calc(3 * var(--cq)); font-size: calc(2.6 * var(--cq)); padding: calc(.8 * var(--cq)) calc(2 * var(--cq)); }
  .demo--promo .demo__content { padding-bottom: calc(16 * var(--cq)); }
  .demo--promo .demo__title { font-size: calc(13 * var(--cq)); }
  .demo--hero .demo__title { font-size: calc(15 * var(--cq)); }
  .media--logo.media--demo .demo__content { gap: calc(2 * var(--cq)); }
  .media--logo.media--demo .demo__emoji { font-size: calc(34 * var(--cq)); }
  .media--logo.media--demo .demo__title { font-size: calc(15 * var(--cq)); }
  .media--video-h.media--demo .demo__emoji { font-size: calc(18 * var(--cq)); }
  .media--video-h.media--demo .demo__title { font-size: calc(12 * var(--cq)); }
  .media--video-h.media--demo .demo__subtitle { font-size: calc(5 * var(--cq)); }
  .media--placeholder .ph__frame { inset: calc(4 * var(--cq)); border-width: calc(.6 * var(--cq)); border-radius: calc(3 * var(--cq)); }
  .media--placeholder .ph__content { gap: calc(2.5 * var(--cq)); padding: calc(10 * var(--cq)); }
  .ph__name { font-size: calc(14 * var(--cq)); }
  .ph__kind { font-size: calc(4.2 * var(--cq)); }
  .ph__pending { font-size: calc(3.6 * var(--cq)); padding: calc(1 * var(--cq)) calc(3 * var(--cq)); border-width: calc(.3 * var(--cq)); }
  .ph__note { font-size: calc(3.4 * var(--cq)); }
  .media--placeholder.media--logo .ph__name { font-size: calc(20 * var(--cq)); }
  .media--placeholder.media--video-h .ph__name { font-size: calc(11 * var(--cq)); }
  .chip .ph__name, .combo__logo .ph__name, .det__logo .ph__name, .invite__logo .ph__name, .game__logo .ph__name { font-size: calc(22 * var(--cq)); }
  .media--play.demo--motion .demo__glow { animation: none; }
}

/* ---------- Kiosco ---------- */
body.kiosk, body.kiosk * { cursor: none !important; }
body.cursor-hidden, body.cursor-hidden * { cursor: none !important; }
.dot-net, .dot-snd { position: absolute; z-index: 58; pointer-events: none; }
.dot-net { left: 20px; bottom: 20px; width: 22px; height: 22px; border-radius: 50%; background: var(--warn); opacity: .75; box-shadow: 0 0 0 4px rgba(0, 0, 0, .35); }
.dot-snd { right: 20px; bottom: 14px; font-size: 40px; opacity: .55; }

@media (prefers-reduced-motion: reduce) {
  .layout--fullscreen .frame > .media--image-v, .layout--carousel .frame > .media--image-v, .layout--combo .frame > .media--image-v { animation: none; }
  .cta.is-in { animation: cta-in .01ms both 0s; }
}
