/* ¡Pa'l Agua!: estilos de las pantallas, el HUD y los controles táctiles. */
:root {
  --ink: #0b2a45;
  --sea: #12b5d6;
  --deep: #0a7fb5;
  --sand: #ffe2a1;
  --coral: #ff5a4e;
  --sun: #ffcf1f;
  --leaf: #2fd36b;
  --purple: #9b6bff;
  --font: 'Luckiest Guy', 'Arial Black', sans-serif;
  --plain: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --top: max(env(safe-area-inset-top), var(--tint, 0px));
  --bottom: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
body { font-family: var(--font); color: #fff; -webkit-user-select: none; user-select: none; }
#game canvas { display: block; width: 100%; height: 100%; }
.stroke, h1, h2, .btn, .logo span, .bigtxt, .float, .banner b, .roundCard b, .lbl i {
  -webkit-text-stroke: 0.16em var(--ink); paint-order: stroke fill;
}

/* ---------- Pantallas ---------- */
.screen { position: fixed; inset: 0; z-index: 10; display: none; flex-direction: column; align-items: center; gap: 12px;
  padding: calc(var(--top) + 14px) 16px calc(var(--bottom) + 16px); overflow-y: auto; overscroll-behavior: contain; }
.screen.on { display: flex; }
.screen > * { width: 100%; max-width: 520px; flex-shrink: 0; }
.screen.scroll, .screen.shopScreen, .screen.resultsScreen { background: linear-gradient(180deg, rgba(10, 127, 181, .82), rgba(18, 181, 214, .74) 60%, rgba(255, 226, 161, .8)); }
.screen.storyScreen { background: linear-gradient(180deg, rgba(10, 60, 100, .2), rgba(10, 60, 100, .55)); justify-content: flex-end; }
h1 { font-size: clamp(30px, 8vw, 44px); margin: 6px 0 0; text-align: center; font-weight: 400; letter-spacing: .02em; }
h2 { font-size: 30px; margin: 0 0 6px; text-align: center; font-weight: 400; }
p { margin: 0; }
.hint { font-family: var(--plain); font-size: 15px; line-height: 1.35; text-align: center; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.err { font-family: var(--plain); font-weight: 700; font-size: 15px; text-align: center; min-height: 20px; color: #fff3b0; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.err.busy { color: #fff; opacity: .9; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

.back { position: absolute; left: 12px; top: calc(var(--top) + 10px); width: 48px; height: 48px; border-radius: 16px; border: 3px solid var(--ink);
  background: #fff; color: var(--ink); font-size: 26px; box-shadow: 0 4px 0 var(--ink); z-index: 2; cursor: pointer; }
.screen > .back { width: 48px; }

/* Botones gordos de caricatura */
.btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 3px solid var(--ink); border-radius: 20px; background: linear-gradient(180deg, #ff7a6e, var(--coral)); color: #fff;
  box-shadow: 0 6px 0 var(--ink), inset 0 -6px 0 rgba(0, 0, 0, .12), inset 0 4px 0 rgba(255, 255, 255, .3);
  padding: 12px 16px; font-size: 22px; letter-spacing: .02em; cursor: pointer; transition: transform .06s; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink), inset 0 -6px 0 rgba(0, 0, 0, .12); }
.btn:disabled { filter: grayscale(.6) brightness(.85); opacity: .7; cursor: default; }
.btn small { font-family: var(--plain); font-size: 13px; font-weight: 700; -webkit-text-stroke: 0; opacity: .95; letter-spacing: 0; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.btn.big { font-size: 30px; padding: 14px 16px 12px; }
.btn.mid { font-size: clamp(16px, 4.8vw, 21px); padding: 11px 10px; white-space: nowrap; }
.btn.small { font-size: 16px; padding: 8px 12px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.btn.play { background: linear-gradient(180deg, #ff8a5c, #ff5a4e 60%, #e8433a); }
.btn.blue { background: linear-gradient(180deg, #4fd4f0, #12a6d6); }
.btn.green { background: linear-gradient(180deg, #5ee68f, #22b85a); }
.btn.yellow { background: linear-gradient(180deg, #ffe066, #ffbf1f); }
.btn.purple { background: linear-gradient(180deg, #b896ff, #8a5cf0); }
.btn.red { background: linear-gradient(180deg, #ff6b6b, #e03434); }
.btn.ghost { background: linear-gradient(180deg, rgba(255, 255, 255, .95), #dff6ff); color: #fff; }
.btn.ghost { color: var(--ink); -webkit-text-stroke: 0; }
.link { background: none; border: 0; color: #fff; text-decoration: underline; font-family: var(--plain); font-size: 14px; cursor: pointer; }

/* ---------- Menú ---------- */
.screen.menu { justify-content: space-between; background: linear-gradient(180deg, rgba(10, 127, 181, .35), transparent 30%, transparent 55%, rgba(10, 80, 130, .45)); }
.menuTop { display: flex; justify-content: space-between; align-items: center; }
.me { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .92); border: 3px solid var(--ink); border-radius: 99px;
  padding: 2px 14px 2px 2px; color: var(--ink); font-size: 16px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; max-width: 60%; }
.me img { width: 40px; height: 40px; border-radius: 50%; background: #bdf0ff; }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coins { background: rgba(255, 255, 255, .92); border: 3px solid var(--ink); border-radius: 99px; padding: 7px 14px; color: var(--ink); font-size: 18px; box-shadow: 0 3px 0 var(--ink); }
.screen.scroll .coins, .shopScreen .coins { position: absolute; right: 12px; top: calc(var(--top) + 12px); width: auto; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: .85; margin-top: 2vh; animation: bob 2.4s ease-in-out infinite; }
.logo .l1 { font-size: clamp(48px, 15vw, 92px); color: var(--sun); transform: rotate(-4deg); }
.logo .l2 { font-size: clamp(64px, 21vw, 128px); color: #fff; transform: rotate(-4deg); text-shadow: 0 8px 0 var(--deep); }
.logo small { margin-top: 10px; font-size: clamp(12px, 3.5vw, 16px); color: #fff; -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; letter-spacing: .06em; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.menuBtns { display: flex; flex-direction: column; gap: 12px; }
.ver { text-align: center; font-family: var(--plain); font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }

/* ---------- Historia ---------- */
.story { display: flex; flex-direction: column; gap: 14px; margin-bottom: 4vh; }
.panel { background: #fffaf0; border: 4px solid var(--ink); border-radius: 26px; padding: 18px 20px 20px; color: var(--ink); box-shadow: 0 8px 0 var(--ink); animation: pop .35s ease-out; }
.panel small { font-size: 14px; color: var(--deep); }
.panel h2 { color: var(--coral); text-align: left; font-size: 30px; -webkit-text-stroke: 0; }
.panel p { font-family: var(--plain); font-size: 18px; line-height: 1.4; font-weight: 600; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

/* ---------- Tarjetas (cómo se juega) ---------- */
.cards { display: flex; flex-direction: column; gap: 10px; }
.card { background: rgba(255, 255, 255, .95); border: 3px solid var(--ink); border-radius: 18px; padding: 12px 14px; color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.card b { font-size: 20px; font-weight: 400; color: var(--deep); }
.card p { font-family: var(--plain); font-size: 15px; line-height: 1.38; margin-top: 4px; }

/* ---------- Fiesta ---------- */
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot { position: relative; display: flex; align-items: center; gap: 6px; background: #fff; border: 3px solid var(--ink); border-left: 12px solid var(--c);
  border-radius: 18px; padding: 6px 8px; color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.slot.bot { background: #eef8ff; }
.slot img { width: 64px; height: 64px; }
.slot .who { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.slot .who b { font-size: 19px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.slot .who span { font-family: var(--plain); font-size: 13px; font-weight: 700; color: #3b5a75; }
.arrow { width: 34px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: var(--sun); color: var(--ink); font-size: 16px; cursor: pointer; flex-shrink: 0; }
.arrow.big { width: 56px; height: 72px; font-size: 26px; box-shadow: 0 4px 0 var(--ink); }
.ctl { border: 2px solid var(--ink); border-radius: 10px; background: #dff6ff; padding: 3px 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.x { position: absolute; right: -6px; top: -8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: var(--coral); color: #fff; font-size: 13px; cursor: pointer; }
.optRow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.optRow span { font-size: 15px; width: 100%; text-align: center; -webkit-text-stroke: .18em var(--ink); paint-order: stroke fill; }
.pill { border: 3px solid var(--ink); border-radius: 99px; background: rgba(255, 255, 255, .9); color: var(--ink); padding: 6px 16px; font-size: 17px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.pill.on { background: var(--sun); }
.tabs { display: flex; gap: 8px; justify-content: center; }

/* ---------- En línea ---------- */
.onlineMe { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .92); border: 3px solid var(--ink); border-radius: 18px; padding: 4px 12px 4px 4px; color: var(--ink); font-family: var(--plain); font-size: 15px; }
.onlineMe img { width: 54px; height: 54px; }
.join { display: flex; gap: 8px; }
.join input, .form input { flex: 1; min-width: 0; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 14px; font-family: var(--font); font-size: 22px; color: var(--ink); background: #fff; outline: none; text-align: center; letter-spacing: .12em; }
.code { display: flex; flex-direction: column; align-items: center; background: #fffaf0; border: 4px solid var(--ink); border-radius: 22px; padding: 10px; color: var(--ink); box-shadow: 0 6px 0 var(--ink); gap: 6px; }
.code small { font-size: 14px; color: var(--deep); }
.code b { font-size: 52px; letter-spacing: .14em; font-weight: 400; color: var(--coral); line-height: 1; }
.lplayers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.lp { display: flex; flex-direction: column; align-items: center; background: #fff; border: 3px solid var(--ink); border-bottom: 8px solid var(--c, #9cc); border-radius: 18px; padding: 6px; color: var(--ink); }
.lp.off { opacity: .55; }
.lp.bot { background: rgba(255, 255, 255, .55); border-style: dashed; }
.lp img { width: 70px; height: 70px; }
.lp .botFace { font-size: 44px; height: 70px; display: flex; align-items: center; }
.lp b { font-size: 17px; font-weight: 400; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp span { font-family: var(--plain); font-size: 12px; font-weight: 700; }
.wait { text-align: center; font-size: 20px; -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; animation: bob 1.4s infinite; }

/* ---------- Personajes ---------- */
.screen.shopScreen { background: linear-gradient(180deg, rgba(10, 127, 181, .45), transparent 25%, transparent 50%, rgba(10, 80, 130, .55)); }
.showcase { display: flex; align-items: center; justify-content: space-between; flex: 1; min-height: 34vh; }
.charInfo { display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(255, 255, 255, .95); border: 3px solid var(--ink); border-radius: 22px; padding: 12px; color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.charInfo b { font-size: 30px; font-weight: 400; color: var(--coral); }
.charInfo p { font-family: var(--plain); font-size: 15px; text-align: center; }
.charInfo .err { color: var(--coral); text-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.gi { position: relative; padding: 0; border: 3px solid var(--ink); border-radius: 12px; background: #dff6ff; aspect-ratio: 1; cursor: pointer; overflow: hidden; }
.gi.on { background: var(--sun); transform: translateY(-3px); }
.gi img { width: 100%; height: 100%; display: block; }
.gi.locked img { filter: brightness(.55) saturate(.4); }
.gi i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 16px; }

/* ---------- Ranking ---------- */
.board { display: flex; flex-direction: column; gap: 6px; }
.brow { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .95); border: 3px solid var(--ink); border-radius: 14px; padding: 4px 12px 4px 8px; color: var(--ink); }
.brow.me { background: var(--sun); }
.brow span { width: 30px; font-size: 18px; text-align: center; }
.brow img { width: 42px; height: 42px; }
.brow b { flex: 1; font-family: var(--plain); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow em { font-style: normal; font-size: 20px; color: var(--deep); }

/* ---------- Cuenta ---------- */
.form { display: flex; flex-direction: column; gap: 8px; align-items: stretch; background: rgba(255, 255, 255, .2); border-radius: 18px; padding: 10px; }
.form input { text-align: left; letter-spacing: 0; font-family: var(--plain); font-size: 17px; font-weight: 600; }

/* ---------- Resultados ---------- */
.results { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.results .crown { font-size: 54px; animation: bob 1.6s infinite; margin-top: 2vh; }
.results h1 { color: var(--sun); font-size: clamp(34px, 10vw, 54px); margin: 0; }
.results .sub { font-size: 20px; -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; }
.results .winner { width: 150px; height: 150px; animation: pop .5s ease-out; }
.results .row { width: 100%; }
.rlist { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.rrow { display: flex; align-items: center; gap: 8px; background: #fff; border: 3px solid var(--ink); border-left: 10px solid var(--c); border-radius: 14px; padding: 3px 12px 3px 8px; color: var(--ink); }
.rrow.me { background: #fff6cc; }
.rrow .place { width: 34px; font-size: 20px; text-align: center; }
.rrow img { width: 44px; height: 44px; }
.rrow b { flex: 1; font-size: 18px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow em { font-style: normal; font-size: 14px; }
.rrow small { font-family: var(--plain); font-weight: 700; font-size: 13px; width: 44px; text-align: right; }
.earn { font-size: 26px; color: var(--sun); -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; animation: pop .5s .4s backwards; }

/* ---------- Ventanitas ---------- */
#modal { position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; background: rgba(5, 30, 50, .55); padding: 20px; }
#modal.on { display: flex; }
#modal .box { width: 100%; max-width: 380px; background: #fffaf0; border: 4px solid var(--ink); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); box-shadow: 0 8px 0 var(--ink); animation: pop .25s ease-out; }
#modal h2 { color: var(--coral); -webkit-text-stroke: 0; }
#modal p { font-family: var(--plain); font-size: 16px; text-align: center; line-height: 1.4; }
.toggle { display: flex; justify-content: space-between; align-items: center; border: 3px solid var(--ink); border-radius: 16px; background: #fff; padding: 10px 14px; font-size: 20px; color: var(--ink); cursor: pointer; }
.toggle i { font-style: normal; background: #cfd8de; border-radius: 99px; padding: 3px 12px; font-size: 16px; }
.toggle.on i { background: var(--leaf); color: #fff; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 6; pointer-events: none; display: none; }
#hud.on { display: block; }
.hudTop { position: absolute; left: 0; right: 0; top: calc(var(--top) + 6px); display: flex; align-items: flex-start; gap: 6px; padding: 0 8px; }
.score { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: flex; align-items: center; gap: 3px; background: rgba(255, 255, 255, .92); border: 2px solid var(--ink); border-bottom: 4px solid var(--c); border-radius: 12px; padding: 1px 6px 1px 1px; color: var(--ink); font-size: 12px; transition: opacity .3s, filter .3s; }
.chip img { width: 26px; height: 26px; }
.chip span { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip em { display: flex; gap: 2px; margin-left: 2px; }
.chip em i { width: 8px; height: 8px; border-radius: 50%; background: #c8d3da; border: 1px solid var(--ink); }
.chip em i.won { background: var(--sun); box-shadow: 0 0 6px var(--sun); }
.chip.out { opacity: .5; filter: grayscale(.8); }
.timer { background: rgba(255, 255, 255, .92); border: 2px solid var(--ink); border-radius: 12px; padding: 4px 10px; color: var(--ink); font-size: 18px; min-width: 56px; text-align: center; }
.timer.hot { background: var(--coral); color: #fff; animation: beat .5s infinite; }
@keyframes beat { 50% { transform: scale(1.12); } }
.hbtn { pointer-events: auto; width: 42px; height: 42px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; color: var(--ink); font-size: 16px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.feed { position: absolute; right: 8px; top: calc(var(--top) + 60px); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.feed div { background: rgba(11, 42, 69, .7); border-radius: 10px; padding: 3px 9px; font-size: 13px; font-family: var(--plain); font-weight: 700; transition: opacity .5s; animation: slide .25s ease-out; }
.feed div.gone { opacity: 0; }
.feed b { -webkit-text-stroke: 0; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.fx { position: absolute; inset: 0; overflow: hidden; }
.banner { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-align: center; width: 92%; animation: bannerIn 2.6s ease-out forwards; }
.banner small { font-size: 20px; color: var(--sun); -webkit-text-stroke: .18em var(--ink); paint-order: stroke fill; }
.banner b { font-size: clamp(36px, 11vw, 64px); font-weight: 400; line-height: 1; }
.banner span { font-family: var(--plain); font-weight: 800; font-size: 16px; margin-top: 4px; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
@keyframes bannerIn { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 12% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 20% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%); } }
.bigtxt { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-size: clamp(60px, 22vw, 140px); white-space: nowrap; animation: bigIn 1.2s ease-out forwards; }
.bigtxt.go { color: var(--sun); font-size: clamp(48px, 15vw, 110px); }
.bigtxt.sudden { color: var(--coral); font-size: clamp(36px, 11vw, 80px); }
@keyframes bigIn { 0% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(.8); opacity: 0; } }
.float { position: absolute; transform: translate(-50%, -100%); font-size: 26px; white-space: nowrap; animation: floatUp 1.5s ease-out forwards; }
.float.fall { color: #bff4ff; font-size: 34px; }
.float.power { color: var(--sun); font-size: 24px; }
.float.win { color: var(--sun); font-size: 40px; }
.float.hot { color: #ff9f1c; font-size: 20px; }
.float.small { font-size: 16px; color: #fff; }
.float.react { font-size: 46px; -webkit-text-stroke: 0; }
@keyframes floatUp { 0% { transform: translate(-50%, -60%) scale(.5); opacity: 0; } 15% { transform: translate(-50%, -100%) scale(1.15); opacity: 1; } 25% { transform: translate(-50%, -100%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -190%); opacity: 0; } }
.roundCard { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; background: rgba(255, 250, 240, .96); border: 4px solid var(--ink); border-radius: 26px; padding: 10px 26px 16px; color: var(--ink); box-shadow: 0 8px 0 var(--ink); animation: pop .35s ease-out; }
.roundCard img { width: 110px; height: 110px; }
.roundCard b { font-size: 36px; font-weight: 400; color: var(--c, #fff); }
.roundCard span { font-size: 18px; color: var(--deep); }
.toast { position: absolute; left: 50%; bottom: calc(var(--bottom) + 140px); transform: translateX(-50%); background: rgba(11, 42, 69, .85); border-radius: 12px; padding: 8px 16px; font-family: var(--plain); font-weight: 700; }
.reacts { position: absolute; left: 8px; top: calc(var(--top) + 58px); display: flex; flex-direction: column; gap: 4px; pointer-events: auto; }
.reacts button { width: 38px; height: 38px; border-radius: 12px; border: 2px solid var(--ink); background: rgba(255, 255, 255, .85); font-size: 20px; padding: 0; cursor: pointer; }
/* cara a cara: el marcador estorba en el medio; solo reloj y pausa en el borde derecho */
#hud.f2f .hudTop { top: 50%; left: auto; right: 4px; transform: translateY(-50%); flex-direction: column; align-items: center; padding: 0; }
#hud.f2f .score, #hud.f2f .feed { display: none; }

/* Nombres y calor sobre los personajes */
#labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; line-height: 1; will-change: transform; }
.lbl b { font-family: var(--plain); font-size: 11px; font-weight: 800; background: var(--c); border: 2px solid var(--ink); border-radius: 8px; padding: 1px 6px; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbl i { font-style: normal; font-size: 20px; margin-top: 1px; }
.lbl i.pop { animation: heatPop .3s ease-out; }
@keyframes heatPop { 0% { transform: scale(1.8); } 100% { transform: scale(1); } }

/* ---------- Controles táctiles ---------- */
#touch { position: fixed; inset: 0; z-index: 7; display: none; touch-action: none; }
#touch.on { display: block; }
#touch .half { position: absolute; left: 0; right: 0; bottom: 0; top: 0; }
#touch.two .half { top: 50%; }
#touch.two .half.p2 { top: 0; bottom: 50%; transform: rotate(180deg); border-bottom: 0; }
#touch.two .half.p1 { border-top: 2px dashed rgba(255, 255, 255, .35); }
.stick { position: absolute; left: 22%; top: 72%; width: 116px; height: 116px; margin: -58px 0 0 -58px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 3px solid rgba(255, 255, 255, .5); opacity: .45; pointer-events: none; }
#touch.two .stick { top: 58%; }
.stick.live { opacity: 1; }
.stick i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 255, 255, .9); border: 3px solid var(--ink); box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.tb { position: absolute; border-radius: 50%; border: 4px solid var(--ink); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 0 var(--ink); }
.tb span { -webkit-text-stroke: .18em var(--ink); paint-order: stroke fill; position: relative; }
.tb.press { transform: translateY(4px) scale(.95); box-shadow: 0 1px 0 var(--ink); }
.tb.dash { --cd: 1; right: calc(16px + env(safe-area-inset-right)); bottom: calc(var(--bottom) + 26px); width: 104px; height: 104px;
  background: conic-gradient(var(--coral) calc(var(--cd) * 360deg), #7a3a3a 0); }
.tb.jump { right: calc(132px + env(safe-area-inset-right)); bottom: calc(var(--bottom) + 18px); width: 78px; height: 78px; background: linear-gradient(180deg, #4fd4f0, #12a6d6); }
#touch.two .tb.dash { bottom: 18px; width: 92px; height: 92px; }
#touch.two .tb.jump { bottom: 14px; right: 120px; width: 70px; height: 70px; }
@media (orientation: landscape) and (max-height: 500px) {
  .tb.dash { width: 92px; height: 92px; }
  .logo .l1 { font-size: 44px; } .logo .l2 { font-size: 60px; }
  .screen.menu { display: none; } .screen.menu.on { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 20px; }
  .screen.menu .menuTop, .screen.menu .ver { grid-column: 1 / -1; }
}
