@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Juego «Piloto automático» · estilo de gemeloscode.es (CAMPANA-BLACK-FRIDAY.md, sección 6):
 * fondo claro, Sora en títulos, Hanken Grotesk en texto, JetBrains Mono en etiquetas y cifras,
 * turquesa solo para lo importante, iconos de línea. Móvil primero y en vertical.
 */

:root {
  --bg: #f5f7f7;
  --surface: #ffffff;
  --ink: #0f1a1f;
  --muted: #5b6b72;
  --line: #e1e7e8;
  --accent: #1fa397;
  --accent-soft: #dcf5f2;
  --accent-ink: #0d7068;
  --good: #2e9a52;
  --bad: #d4513f;
  --warn: #c98a12;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 26, 31, 0.05), 0 8px 24px rgba(15, 26, 31, 0.06);
  --c-main: #2bb3a7;
  --c-soft: #d9f4f1;
  --font-title: "Sora", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.5 var(--font-text); -webkit-tap-highlight-color: transparent;
}
h1, h2 { font-family: var(--font-title); letter-spacing: -0.02em; line-height: 1.15; margin: 0.25rem 0 0.5rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 0.75rem; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; }
.center { text-align: center; }
.fine { font-size: 0.8125rem; color: var(--muted); margin: 0.625rem 0 0; }
.tag { font: 500 0.75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); margin: 0 0 0.5rem; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }

/* Barra superior */
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 0.5rem) 1rem 0.5rem; background: rgba(245, 247, 247, 0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.bar__title { margin: 0; font: 600 1rem var(--font-title); }
.bar__title span { color: var(--accent); }
.bar__back, .bar__btn {
  display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.bar svg { inline-size: 20px; block-size: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bar__btn[aria-pressed="false"] .i-on, .bar__btn[aria-pressed="true"] .i-off { display: none; }

.app { max-width: 480px; margin: 0 auto; padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom)); }
.screen { display: grid; gap: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.panel--cta { border-color: var(--accent); background: linear-gradient(170deg, var(--accent-soft), var(--surface) 60%); }
.panel--fact { background: var(--accent-soft); border-color: transparent; }
.panel--fact p { font: 600 1.0625rem/1.4 var(--font-title); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-block-size: 48px;
  padding: 0.75rem 1.25rem; border: 0; border-radius: 12px; background: var(--ink); color: #fff;
  font: 600 1rem var(--font-title); text-decoration: none; cursor: pointer; transition: transform 0.12s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn--full { inline-size: 100%; }
.btn--big { min-block-size: 56px; font-size: 1.125rem; background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--sm { min-block-size: 38px; padding: 0.375rem 0.875rem; font-size: 0.875rem; border-radius: 10px; }

/* Formulario */
.field { display: grid; gap: 0.375rem; margin: 0 0 1rem; border: 0; padding: 0; }
.field > span, .field legend { font: 500 0.8125rem var(--font-mono); color: var(--muted); padding: 0; margin-bottom: 0.375rem; }
.field input {
  min-block-size: 48px; padding: 0 0.875rem; border: 1px solid var(--line); border-radius: 12px;
  font: 500 1.0625rem var(--font-text); background: var(--bg); color: var(--ink);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field__err { color: var(--bad); font-size: 0.8125rem; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.swatch {
  position: relative; block-size: 48px; border-radius: 12px; border: 2px solid transparent; cursor: pointer;
  background: linear-gradient(135deg, var(--m) 55%, var(--s) 55%);
}
.swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface) inset; }

/* Local en 3D */
.store { border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #eaf4f6, #f5f7f7 70%); }
.store svg { display: block; inline-size: 100%; block-size: auto; }
.panel--store { padding: 0.5rem; }
.store__hint { display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin: 0.25rem 0 0.25rem; font: 500 0.75rem var(--font-mono); color: var(--muted); }
.store__hint svg { inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.store .room, .store .tag3d { cursor: pointer; outline: none; }
.store .room .floor { transition: filter 0.15s; }
.store .room:hover .floor, .store .room:focus-visible .floor { filter: brightness(0.96) saturate(1.3); }
.store .room.locked { opacity: 0.85; }
.store .floor.hot { animation: hotFloor 1.2s ease-in-out infinite alternate; }
@keyframes hotFloor { to { filter: brightness(0.93) saturate(1.6); } }
.store .tag3d rect:first-child { filter: drop-shadow(0 2px 3px rgba(15, 26, 31, 0.12)); }
.store .robot { animation: bob 2.2s ease-in-out infinite; }
.store .robot.broken { animation: none; }
.store .robot.off { opacity: 0.45; animation: none; }
.store .led { animation: blink 1.2s infinite; }
.store .blink { animation: blink 1.4s infinite; }
.store .neon { animation: blink 2.4s infinite; }
.store .cust { animation: bob 1.8s ease-in-out infinite; }
.store .cust:nth-of-type(2n) { animation-delay: 0.4s; }
.store .walk { animation: walk 6s ease-in-out infinite; }
.store .bob, .shop-wrap .bob { animation: bob 2.4s ease-in-out infinite; }
.store .smoke { animation: smoke 1.6s ease-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }
@keyframes walk { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, -8px); } }
@keyframes smoke { from { opacity: 0.8; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }

.hub-head { display: grid; gap: 0.75rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.625rem 0.75rem; }
.stat__k { display: block; font: 500 0.6875rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.stat__v { font: 700 1.125rem var(--font-title); font-variant-numeric: tabular-nums; }
.stage__row { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; }
.meter { block-size: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter span { display: block; block-size: 100%; inline-size: 0; background: var(--accent); border-radius: inherit; transition: inline-size 0.4s; }

.countdown { font: 600 2rem var(--font-mono); letter-spacing: 0.02em; margin: 0.25rem 0 0.5rem; font-variant-numeric: tabular-nums; }

/* Aviso por email */
.check { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.9375rem; cursor: pointer; }
.check input { inline-size: 22px; block-size: 22px; margin: 0.125rem 0 0; accent-color: var(--accent); flex: none; }
.check small { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 0.125rem; }

/* Agentes */
.agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.agents li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.375rem 0.75rem; font-size: 0.9375rem; }
.agents .pill { white-space: normal; }
.pill { font: 500 0.75rem var(--font-mono); padding: 0.25rem 0.5rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.pill--bad { background: #fde5e1; color: var(--bad); }

/* Mejoras */
.phase { font: 500 0.75rem var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 1.25rem 0 0.5rem; }
.up {
  display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; align-items: center;
  padding: 0.875rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.5rem;
}
.up__name { font-weight: 700; }
.up__lvl { display: inline-flex; gap: 3px; margin-left: 0.375rem; vertical-align: middle; }
.up__lvl i { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--line); }
.up__lvl i.on { background: var(--accent); }
.up__fx { grid-column: 1; font-size: 0.875rem; color: var(--muted); }
.up__svc { grid-column: 1 / -1; font: 500 0.75rem var(--font-mono); color: var(--accent-ink); }
.up .btn { grid-row: 1 / span 2; grid-column: 2; }
.up--max { background: var(--accent-soft); border-color: transparent; }
.up--locked { opacity: 0.6; }

.prizes { margin: 0; padding-left: 1.125rem; display: grid; gap: 0.5rem; font-size: 0.9375rem; }

.ranking { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.ranking li { display: grid; grid-template-columns: 2rem 12px 1fr auto; gap: 0.5rem; align-items: center; padding: 0.5rem 0.625rem; border-radius: 10px; font-size: 0.9375rem; }
.ranking li.me { background: var(--accent-soft); font-weight: 700; }
.ranking li.gap { padding: 0; color: var(--muted); text-align: center; }
.ranking .pos { font: 600 0.8125rem var(--font-mono); color: var(--muted); }
.ranking .dot { inline-size: 12px; block-size: 12px; border-radius: 4px; }
.ranking .val { font: 500 0.8125rem var(--font-mono); }

/* Fin de jornada */
.big-money { font: 700 2.75rem/1.1 var(--font-title); color: var(--accent-ink); margin: 0.25rem 0; font-variant-numeric: tabular-nums; }
.record { display: inline-block; font: 600 0.875rem var(--font-mono); background: #fff3d6; color: #8a5a00; padding: 0.25rem 0.625rem; border-radius: 99px; }
.summary { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; }
.summary li b { font-family: var(--font-mono); font-size: 0.875rem; text-align: right; }
.summary li.hl { background: var(--accent-soft); margin: 0 -0.5rem; padding: 0.5rem; border-radius: 10px; }

/* Informe */
.sheet { border: 0; padding: 0; inline-size: min(440px, calc(100% - 2rem)); border-radius: 20px; box-shadow: 0 20px 60px rgba(15, 26, 31, 0.25); }
.sheet::backdrop { background: rgba(15, 26, 31, 0.45); }
.sheet__body { padding: 1.5rem; }
.report { margin: 0.75rem 0; padding-left: 1.125rem; display: grid; gap: 0.375rem; }
.report--warn { list-style: none; padding: 0; }
.report--warn li { background: #fff3d6; color: #6b4700; border-radius: 10px; padding: 0.625rem 0.75rem; font-size: 0.9rem; }
.report--warn li.ok { background: var(--accent-soft); color: var(--accent-ink); }

/* ───────────── Jornada ───────────── */
body.playing .bar { display: none; }
body.playing .app { padding: 0; max-width: 520px; }
.screen--play { position: relative; gap: 0; min-block-size: 100dvh; grid-template-rows: auto 1fr auto; background: var(--bg); touch-action: none; user-select: none; -webkit-user-select: none; }
.hud { padding: calc(env(safe-area-inset-top) + 0.625rem) 1rem 0.5rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.hud__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.hud__money { font: 700 1.5rem var(--font-title); font-variant-numeric: tabular-nums; }
.hud__combo { font: 700 1rem var(--font-mono); padding: 0.25rem 0.625rem; border-radius: 99px; background: var(--line); transition: background 0.2s, transform 0.15s; }
.hud__combo.up { transform: scale(1.2); }
.hud__combo.hot { background: #ffe3a3; }
.hud__combo.fever { background: var(--accent); color: #fff; animation: pulse 0.5s infinite alternate; }
@keyframes pulse { to { transform: scale(1.08); } }
.hud__time { font-size: 1rem; font-weight: 600; }
.meter--time { block-size: 6px; }
.meter--time span { transition: none; }
.meter--time.rush span { background: var(--warn); }
.hud__game { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin-top: 0.5rem; }
.hud__name { font: 700 1rem var(--font-title); }
.hud__tip { font-size: 0.8125rem; color: var(--muted); text-align: right; }

.arena { position: relative; overflow: hidden; min-block-size: 360px; }
.arena.fever { background: radial-gradient(circle at 50% 40%, var(--accent-soft), var(--bg) 70%); }
.agents-strip { display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.5rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); min-block-size: 44px; border-top: 1px solid var(--line); background: var(--surface); }
.agents-strip .pill { display: inline-flex; gap: 0.375rem; align-items: center; }
.agents-strip .pill::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.agents-strip.paused .pill { opacity: 0.4; }

.toast {
  position: absolute; left: 50%; top: 13%; transform: translate(-50%, -50%); z-index: 8; text-align: center; pointer-events: none;
  background: var(--ink); color: #fff; padding: 0.875rem 1.25rem; border-radius: 14px; font: 700 1.125rem var(--font-title);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2); animation: pop 0.25s ease-out; max-inline-size: 85%;
}
.toast small { display: block; font: 400 0.875rem var(--font-text); opacity: 0.8; margin-top: 0.25rem; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; } }

.intro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 1.5rem; gap: 0.5rem; background: rgba(245, 247, 247, 0.96); z-index: 4; animation: fade 0.2s; }
.intro h2 { font-size: 1.75rem; }
.intro p { color: var(--muted); margin: 0; }
.intro .count { font: 700 3rem var(--font-mono); color: var(--accent); }
@keyframes fade { from { opacity: 0; } }

.float { position: absolute; z-index: 6; translate: -50% -50%; pointer-events: none; font: 700 1rem var(--font-mono); color: var(--good); animation: floatUp 0.9s ease-out forwards; white-space: nowrap; }
.float.bad { color: var(--bad); }
.float.meh { color: var(--muted); }
@keyframes floatUp { to { transform: translateY(-48px); opacity: 0; } }
.coin { position: fixed; z-index: 20; inline-size: 18px; block-size: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe28a, #e2a90f); box-shadow: 0 0 0 2px #c48a00 inset; pointer-events: none; transition: transform 0.6s cubic-bezier(.5,-0.3,.7,1), opacity 0.6s; }

/* Teléfonos */
.phones { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 1.25rem; align-content: center; }
.phone {
  position: relative; aspect-ratio: 1; border-radius: 20px; border: 2px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: transform 0.08s;
}
.phone svg { inline-size: 42%; block-size: 42%; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.phone.ring { border-color: var(--accent); background: var(--accent-soft); animation: shake 0.18s infinite; }
.phone.ring svg { stroke: var(--accent-ink); }
.phone.ring.t2 { border-color: var(--warn); background: #fff3d6; }
.phone.ring.t3 { border-color: var(--bad); background: #fde5e1; }
.phone .tones { position: absolute; bottom: 10%; display: flex; gap: 4px; }
.phone .tones i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--line); }
.phone .tones i.on { background: currentColor; }
.phone.ok { background: #e2f5e8; border-color: var(--good); animation: none; }
.phone.lost { background: #fde5e1; border-color: var(--bad); animation: none; }
@keyframes shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

/* Bandeja */
.inbox { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.25rem 1.25rem 6rem; }
.inbox__hints { position: absolute; inset: auto 1rem 1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.625rem; font: 600 0.75rem var(--font-mono); }
.inbox__left { text-align: center; white-space: nowrap; }
/* Botones de decisión: grandes y de color, para decidir con un toque sin tener que deslizar. */
.inbox__btn { min-block-size: 60px; padding: 0 0.75rem; border: 0; border-radius: 14px; cursor: pointer; color: #fff;
  font: 700 1rem var(--font-mono); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); touch-action: manipulation; }
.inbox__btn:active { translate: 0 2px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.inbox__btn--spam { background: #c0392b; } /* más oscuro que --bad: el texto blanco se lee bien */
.inbox__btn--ok { background: #1f7a3d; }
.mail {
  inline-size: min(320px, 88%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.125rem;
  box-shadow: var(--shadow); cursor: grab; touch-action: none; transition: transform 0.25s, opacity 0.25s;
}
.mail.drag { transition: none; }
.mail__from { font: 500 0.75rem var(--font-mono); color: var(--muted); }
.mail__subj { font: 700 1.125rem/1.3 var(--font-title); margin: 0.375rem 0; }
.mail__body { font-size: 0.9rem; color: var(--muted); margin: 0; }
.mail__timer { block-size: 4px; border-radius: 4px; background: var(--line); margin-top: 0.875rem; overflow: hidden; }
.mail__timer span { display: block; block-size: 100%; background: var(--accent); }
.mail.go-left { transform: translateX(-140%) rotate(-12deg); opacity: 0; }
.mail.go-right { transform: translateX(140%) rotate(12deg); opacity: 0; }

/* Carrera y trato: lienzo */
.arena canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }

/* Cierra el trato */
.deal { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1.25rem; padding: 1.5rem; }
.deal__client { text-align: center; }
.deal__client b { display: block; font: 700 1.375rem var(--font-title); }
.deal__track { position: relative; inline-size: 64px; block-size: 260px; border-radius: 18px; background: var(--line); overflow: hidden; }
.deal__zone { position: absolute; left: 0; right: 0; background: rgba(46, 154, 82, 0.35); border-block: 2px solid var(--good); }
.deal__fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent); }
.deal__btn {
  inline-size: 100%; max-inline-size: 320px; min-block-size: 64px; border-radius: 16px; border: 0; background: var(--ink); color: #fff;
  font: 700 1.125rem var(--font-title); touch-action: none; cursor: pointer;
}
.deal__btn.holding { background: var(--accent); }

/* Jefe final */
.boss { position: absolute; inset: 0; }
.boss__head { position: absolute; left: 50%; top: 1rem; transform: translateX(-50%); text-align: center; inline-size: 90%; }
.boss__head b { font: 700 1.25rem var(--font-title); }
.boss__face { inline-size: 84px; block-size: 84px; margin: 0.25rem auto; }
.boss__doubt { block-size: 12px; border-radius: 99px; background: #fde5e1; overflow: hidden; margin-top: 0.375rem; }
.boss__doubt span { display: block; block-size: 100%; background: var(--bad); transition: inline-size 0.2s; }
.bubble {
  position: absolute; transform: translate(-50%, -50%); padding: 0.625rem 0.875rem; border-radius: 16px 16px 16px 4px;
  background: var(--surface); border: 2px solid var(--bad); font: 600 0.875rem var(--font-text); cursor: pointer;
  box-shadow: var(--shadow); animation: pop 0.2s; white-space: nowrap;
}
.bubble.gone { opacity: 0; transform: translate(-50%, -50%) scale(1.3); transition: 0.2s; }

/* Reparación */
.repair { position: absolute; inset: 0; }
.repair__label { position: absolute; top: 1rem; left: 0; right: 0; text-align: center; font: 600 1rem var(--font-title); }
.spark {
  position: absolute; inline-size: 56px; block-size: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle, #fff6c2, #f2b705 60%, #d4513f); box-shadow: 0 0 20px #f2b705; animation: pop 0.2s;
}

/* Wifi caído */
.wifi { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; gap: 0.75rem; text-align: center; background: rgba(15, 26, 31, 0.82); color: #fff; padding: 1.5rem; }
.wifi b { font: 700 1.375rem var(--font-title); }
.wifi button { justify-self: center; min-inline-size: 200px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ───────────── Ranking, logros, cómo se juega ───────────── */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.25rem; background: var(--bg); border-radius: 12px; margin: 0.25rem 0 0; }
.tab { border: 0; border-radius: 9px; padding: 0.5rem; background: transparent; font: 600 0.875rem var(--font-title); color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.badge { display: grid; justify-items: center; text-align: center; gap: 0.125rem; padding: 0.625rem 0.375rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.badge svg { inline-size: 28px; block-size: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.badge b { font: 700 0.8125rem/1.2 var(--font-title); color: var(--ink); }
.badge span { font-size: 0.6875rem; line-height: 1.25; color: var(--muted); }
.badge.off { background: var(--bg); color: #b3bec3; }
.badge.off b { color: var(--muted); }
.how summary { font: 700 1rem var(--font-title); cursor: pointer; }
.how ol { margin: 0.75rem 0 0; padding-left: 1.125rem; display: grid; gap: 0.5rem; font-size: 0.9375rem; }

/* ───────────── Día de trabajo ───────────── */
.dayhud { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0.5rem; }
.dayhud > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem 0.75rem; }
.dayhud__clock b { display: block; font: 700 1.5rem/1.1 var(--font-mono); }
.dayhud__clock span, .dayhud__stat span { font: 500 0.6875rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.dayhud__stat b { display: block; font: 700 1.125rem var(--font-title); font-variant-numeric: tabular-nums; }
.meter--day { block-size: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.chip { font: 500 0.75rem var(--font-mono); padding: 0.25rem 0.625rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.chip--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.event { display: grid; gap: 0.125rem; padding: 0.75rem 1rem; border-radius: 14px; background: #fff3d6; color: #6b4700; animation: popIn 0.3s ease-out; }
.event b { font: 700 1rem var(--font-title); }
.event span { font-size: 0.875rem; }
.event--vip { background: var(--accent-soft); color: var(--accent-ink); }
.event--wifi, .event--breakdown { background: #fde5e1; color: #8a2a1d; }
.rooms { display: grid; gap: 0.5rem; }
.roomcard {
  display: grid; gap: 0.125rem; text-align: left; padding: 0.75rem 0.875rem; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; transition: transform 0.1s, border-color 0.2s, box-shadow 0.2s;
}
.roomcard:active { transform: scale(0.98); }
.roomcard:hover:not(:disabled) { border-color: var(--accent); }
.roomcard:disabled { opacity: 0.45; cursor: default; }
.roomcard__name { font: 700 1rem var(--font-title); }
.roomcard__q { font-size: 0.9375rem; }
.roomcard__q b { font: 700 1.125rem var(--font-mono); }
.roomcard__q small, .roomcard--skip small { color: var(--muted); }
.roomcard__info { font-size: 0.8125rem; color: var(--muted); }
.roomcard--hot { border-color: var(--warn); background: linear-gradient(170deg, #fff6e0, var(--surface) 70%); }
.roomcard--fix { border-color: var(--bad); background: linear-gradient(170deg, #fde5e1, var(--surface) 70%); }
.roomcard--skip { background: transparent; border-style: dashed; font-size: 0.875rem; text-align: center; color: var(--muted); }
.roomcard.flash { box-shadow: 0 0 0 3px var(--accent); }
.bad { color: var(--bad); }
/* Botón «Empezar» con cuenta atrás: el aro que lo rodea se vacía en 10 s y entonces la partida empieza sola. */
.go { position: relative; display: inline-grid; place-items: center; justify-self: center; margin-top: 1rem; padding: 6px 6px 11px; }
.go__ring { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.go__ring rect { fill: none; stroke-width: 4; }
.go__track { stroke: var(--line); }
.go__left { stroke: var(--accent-ink); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.go__btn { min-inline-size: 11rem; }
.go__hint { font: 500 0.8125rem var(--font-mono); }
.go__hint b { color: var(--ink); font-variant-numeric: tabular-nums; }
.intro__what { font: 600 0.9375rem var(--font-mono); color: var(--accent-ink) !important; margin-top: 0.5rem !important; }

/* Hojas: sala, enfoque, decisión, resumen */
.sheet--bottom { margin: auto auto 0; inline-size: min(520px, 100%); max-block-size: 85dvh; border-radius: 22px 22px 0 0; }
.sheet--bottom[open] { animation: up 0.25s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.x { inline-size: 36px; block-size: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 1.25rem; cursor: pointer; }
.cards { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.fcard { display: grid; gap: 0.25rem; text-align: left; padding: 0.875rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.fcard:hover { border-color: var(--accent); background: var(--accent-soft); }
.fcard b { font: 700 1.0625rem var(--font-title); }
.fcard span { font-size: 0.875rem; color: var(--muted); }
.dec-btns { display: grid; gap: 0.5rem; margin-top: 1rem; }
.hour { list-style: none; margin: 0.5rem 0 1rem; padding: 0; display: grid; gap: 0.375rem; font-size: 0.9375rem; }
.hour li { padding: 0.5rem 0.75rem; border-radius: 10px; background: var(--bg); }
.hour li.ok { background: #e2f5e8; color: #1d6b38; }
.hour li.bad { background: #fde5e1; color: #8a2a1d; }
.hour li.note { background: #fff3d6; color: #6b4700; }
.toast--fixed { position: fixed; top: 18%; }

/* Fin del día */
.big-score { display: grid; justify-items: center; margin: 0.25rem 0 0.5rem; }
.big-score b { font: 700 3.5rem/1 var(--font-title); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.big-score span { font: 500 0.875rem var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; font-size: 0.9375rem; }
.parts .row-between { margin-bottom: 0.25rem; }
.parts b { font-family: var(--font-mono); }

/* Reseñas */
.reviews { position: absolute; inset: 0; display: grid; align-content: center; gap: 1rem; padding: 1.25rem; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.125rem; box-shadow: var(--shadow); animation: popIn 0.2s; }
.review__who { margin: 0 0 0.375rem; font-size: 0.9375rem; display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.review__stars { color: #e2a90f; letter-spacing: 1px; }
.review__stars i { font-style: normal; color: var(--line); }
.review__text { font: 600 1.0625rem/1.35 var(--font-title); margin: 0; }
.review__opts { display: grid; gap: 0.5rem; }
.opt { text-align: left; padding: 0.75rem 0.875rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9375rem; cursor: pointer; }
.opt.ok { background: #e2f5e8; border-color: var(--good); }
.opt.bad { background: #fde5e1; border-color: var(--bad); }

/* Pedidos */
.orders { position: absolute; inset: 0; display: grid; align-content: center; gap: 1.25rem; padding: 1.25rem; }
.ticket { background: #fffdf6; border: 1px dashed #d9a066; border-radius: 14px; padding: 0.875rem 1rem; text-align: center; }
.ticket__head { margin: 0 0 0.5rem; color: var(--muted); }
.ticket__items { display: flex; justify-content: center; gap: 0.75rem; font-size: 2.25rem; min-block-size: 3rem; }
.ticket__items span { transition: transform 0.2s, opacity 0.2s; }
.ticket__items span.in { opacity: 0.25; transform: scale(0.8); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.prod { display: grid; justify-items: center; gap: 0.125rem; padding: 0.625rem 0.25rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform 0.08s; }
.prod span { font-size: 2rem; line-height: 1.1; }
.prod small { font-size: 0.75rem; color: var(--muted); }
.prod.tap { transform: scale(0.92); background: var(--accent-soft); }
.note-box { background: #fff3d6; color: #6b4700; border-radius: 10px; padding: 0.625rem 0.75rem; font-size: 0.875rem; }

/* ═════════════ Versión 3: interfaz de app ═════════════ */
body { background: radial-gradient(140% 60% at 50% -10%, #dff3f0 0%, var(--bg) 55%) fixed, var(--bg); }
body.has-nav .app { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
body.playing .top, body.playing .nav { display: none !important; }
body.calm *, body.calm *::before, body.calm *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
.panel { border-radius: 20px; box-shadow: 0 1px 0 rgba(15, 26, 31, 0.04), 0 10px 30px rgba(15, 26, 31, 0.08); }
.btn { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28); transition: transform 0.08s, box-shadow 0.08s, opacity 0.2s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28); }
.btn--ghost { box-shadow: 0 3px 0 var(--line); }
.btn--big { background: var(--accent); box-shadow: 0 5px 0 var(--accent-ink); }
.btn--play { min-block-size: 64px; font-size: 1.25rem; background: linear-gradient(180deg, #2fc4b6, var(--accent)); box-shadow: 0 6px 0 var(--accent-ink), 0 12px 24px rgba(31, 163, 151, 0.35); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.02); } }
.btn--buy { background: var(--good); box-shadow: 0 4px 0 #1d6b38; }
.view, .viewhead h1 { margin: 0; }
.viewhead { padding: 0.25rem 0.25rem 0; }
.viewhead h1 { font-size: 1.875rem; }
.viewhead p { margin: 0.25rem 0 0; }

/* Barra superior */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 0.5rem;
  padding: calc(env(safe-area-inset-top) + 0.5rem) 0.75rem 0.5rem; background: #0f1a1f; color: #fff;
  box-shadow: 0 6px 20px rgba(15, 26, 31, 0.25);
}
.top__back, .top__btn { flex: none; display: grid; place-items: center; inline-size: 38px; block-size: 38px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; }
.top svg { inline-size: 20px; block-size: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top__title { flex: 1; margin: 0; text-align: center; font: 700 1rem var(--font-title); }
.top__title span { color: #4fd1c5; }
.top__stats { flex: 1; display: flex; gap: 0.375rem; justify-content: center; min-inline-size: 0; }
.chip3 { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.6rem; border-radius: 99px; background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; font: 700 0.875rem var(--font-title); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ico--coin { inline-size: 14px; block-size: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe28a, #e2a90f); box-shadow: 0 0 0 1.5px #c48a00 inset; }
.ico--star { font-style: normal; color: #f2b705; }
.chip3--stage { cursor: pointer; }
.chip3--stage b::before { content: "Etapa "; font-weight: 500; opacity: 0.7; font-size: 0.75rem; }
.minibar { inline-size: 36px; block-size: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.minibar span { display: block; block-size: 100%; inline-size: 0; background: #4fd1c5; border-radius: inherit; transition: inline-size 0.4s; }

/* Barra de pestañas */
.nav {
  position: fixed; z-index: 20; left: 50%; bottom: 0; translate: -50% 0; inline-size: min(520px, 100%);
  display: grid; grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr; align-items: end;
  padding: 0.375rem 0.5rem calc(0.375rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 26, 31, 0.08); border-radius: 20px 20px 0 0;
}
.nav__b { position: relative; display: grid; justify-items: center; gap: 0.125rem; padding: 0.375rem 0; border: 0; background: none; color: var(--muted); font: 600 0.6875rem var(--font-text); cursor: pointer; }
.nav__b svg { inline-size: 24px; block-size: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav__b.on { color: var(--accent-ink); }
.nav__b.on svg { stroke-width: 2.3; }
.nav__play {
  position: relative; justify-self: center; inline-size: 66px; block-size: 66px; margin-top: -30px; border-radius: 50%; border: 4px solid #fff;
  background: linear-gradient(180deg, #2fc4b6, var(--accent)); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 5px 0 var(--accent-ink), 0 10px 24px rgba(31, 163, 151, 0.45);
}
.nav__play svg { inline-size: 28px; block-size: 28px; fill: currentColor; margin-left: 3px; }
.nav__play.on { background: linear-gradient(180deg, #0f1a1f, #26313a); box-shadow: 0 5px 0 #000, 0 10px 24px rgba(0, 0, 0, 0.3); }
.nav__dot { position: absolute; top: 2px; right: calc(50% - 18px); inline-size: 10px; block-size: 10px; border-radius: 50%; background: #e4685d; border: 2px solid #fff; }
.nav__play .nav__dot { top: 2px; right: 4px; animation: pulse 0.8s infinite alternate; }

/* Local */
.stagecard { background: var(--surface); border-radius: 18px; padding: 0.75rem 1rem; box-shadow: 0 6px 20px rgba(15, 26, 31, 0.06); font-size: 0.9375rem; }
.stagecard .fine { margin-top: 0.375rem; }
.meter--fat { block-size: 12px; margin-top: 0.375rem; }
.meter--fat span { background: linear-gradient(90deg, #2fc4b6, var(--accent)); }
.store--big { border-radius: 24px; box-shadow: inset 0 0 0 1px rgba(15, 26, 31, 0.05); margin: 0 -0.25rem; }
.playcta {
  display: grid; justify-items: center; gap: 0.125rem; inline-size: 100%; padding: 1rem; border: 0; border-radius: 20px; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #2fc4b6, var(--accent)); box-shadow: 0 6px 0 var(--accent-ink), 0 14px 28px rgba(31, 163, 151, 0.3); font: 700 1.25rem var(--font-title);
}
.playcta small { font: 500 0.875rem var(--font-text); opacity: 0.9; }
.playcta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--accent-ink); }
.playcta--off { background: #3d4650; box-shadow: 0 6px 0 #1f262c; }

/* Mejoras */
.reco { display: grid; gap: 0.25rem; padding: 1rem 1.125rem; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #0f1a1f, #24434a); box-shadow: 0 10px 28px rgba(15, 26, 31, 0.25); }
.reco__k { font: 500 0.6875rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: #4fd1c5; }
.reco b { font: 700 1.25rem var(--font-title); }
.reco .meter { background: rgba(255, 255, 255, 0.15); }
.reco .meter span { background: #4fd1c5; }
.seg { display: flex; gap: 0.25rem; padding: 0.25rem; background: var(--surface); border-radius: 14px; box-shadow: 0 4px 14px rgba(15, 26, 31, 0.06); }
.seg--scroll { position: sticky; top: calc(env(safe-area-inset-top) + 58px); z-index: 5; overflow-x: auto; scrollbar-width: none; }
.seg__b { flex: 1 0 auto; border: 0; border-radius: 10px; padding: 0.5rem 0.75rem; background: none; font: 600 0.875rem var(--font-title); color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg__b[aria-selected="true"] { background: var(--ink); color: #fff; }
.upgroup { background: var(--surface); border-radius: 20px; padding: 0.25rem 0.875rem 0.375rem; margin-bottom: 0.75rem; box-shadow: 0 6px 20px rgba(15, 26, 31, 0.06); }
.upgroup .phase { margin-top: 0.75rem; }
.up--can { border-color: var(--good); background: linear-gradient(170deg, #e8f7ec, var(--surface) 60%); }

/* Jugar */
.todaycard { padding: 1.25rem; border-radius: 24px; color: #fff; background: linear-gradient(140deg, #1fa397, #0d7068 70%); box-shadow: 0 14px 30px rgba(13, 112, 104, 0.3); margin-bottom: 1rem; }
.todaycard .tag { color: #c9f3ee; }
.todaycard h1 { font-size: 2rem; }
.todaycard p { margin: 0; opacity: 0.95; }
.todaycard--bf { background: linear-gradient(140deg, #0f1a1f, #3a1d1a 60%, #d4513f); }
#jIdle { display: grid; gap: 0; }
.dots8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.dots8 i { font: 600 0.625rem var(--font-mono); font-style: normal; text-align: center; padding: 0.25rem 0; border-radius: 6px; background: var(--line); color: var(--muted); }
.dots8 i.done { background: var(--accent-soft); color: var(--accent-ink); }
.dots8 i.now { background: var(--ink); color: #fff; }
#jDay { display: grid; gap: 0.75rem; }
#jDay .store { border-radius: 20px; }

/* Eventos */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.5rem 0 1rem; }
.kpi { background: var(--bg); border-radius: 12px; padding: 0.5rem 0.625rem; }
.kpi span { display: block; font: 500 0.6875rem var(--font-mono); color: var(--muted); }
.kpi b { font: 700 1rem var(--font-title); }
.drawbox { margin-bottom: 0.75rem; }
.drawbox__clock { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: 14px; background: #0f1a1f; color: #fff; margin-bottom: 0.5rem; }
.drawbox__clock span { font: 500 0.75rem var(--font-mono); color: #9fb3b8; }
.drawbox__clock b { font: 700 1.5rem var(--font-mono); color: #4fd1c5; }
.cal { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.cal__d { display: grid; grid-template-columns: 3rem 1fr auto; gap: 0.75rem; align-items: center; padding: 0.5rem 0.75rem; border-radius: 14px; background: var(--bg); }
.cal__date { display: grid; justify-items: center; font: 500 0.6875rem var(--font-mono); color: var(--muted); text-transform: uppercase; }
.cal__date b { font: 700 1.25rem var(--font-title); color: var(--ink); }
.cal__txt b { display: block; font: 700 0.9375rem var(--font-title); }
.cal__txt small { color: var(--muted); font-size: 0.8125rem; }
.cal__st { font: 700 0.75rem var(--font-mono); color: var(--muted); }
.cal__d--today { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal__d--today .cal__st { color: var(--accent-ink); }
.cal__d--past { opacity: 0.6; }
.cal__d--bf { background: linear-gradient(135deg, #0f1a1f, #3a1d1a); color: #fff; }
.cal__d--bf .cal__date b, .cal__d--bf .cal__txt small { color: #fff; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.hist li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 12px; background: var(--bg); }
.hist small { display: block; color: var(--muted); font-size: 0.75rem; }
.hist__n { text-align: right; }
.ranking li.podium--1 .pos { color: #c48a00; }
.ranking li.podium--1 .pos::before { content: "🥇"; }
.ranking li.podium--2 .pos::before { content: "🥈"; }
.ranking li.podium--3 .pos::before { content: "🥉"; }
.ranking li.podium .pos { font-size: 0; }
.ranking li.podium .pos::before { font-size: 1.125rem; }

/* Trofeos */
.trophies { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.tr { display: grid; grid-template-columns: 52px 1fr; gap: 0.75rem; align-items: center; padding: 0.75rem; border-radius: 18px; background: var(--surface); box-shadow: 0 6px 18px rgba(15, 26, 31, 0.06); }
.tr__medal { display: grid; place-items: center; inline-size: 52px; block-size: 52px; border-radius: 50%; background: #e6eaec; color: #9aa5aa; font-size: 1.5rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08); }
.tr__medal svg { inline-size: 26px; block-size: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr--bronze .tr__medal { background: radial-gradient(circle at 35% 30%, #f3c79b, #b8743d); color: #fff; }
.tr--silver .tr__medal { background: radial-gradient(circle at 35% 30%, #f4f6f7, #9aa5aa); color: #fff; }
.tr--gold .tr__medal { background: radial-gradient(circle at 35% 30%, #ffe8a0, #d29a1f); color: #fff; box-shadow: 0 0 0 3px #fff3d6, 0 0 18px rgba(226, 169, 15, 0.45); }
.tr--none { opacity: 0.75; }
.tr__body small { display: block; color: var(--muted); font-size: 0.8125rem; }
.tr__body .meter { block-size: 6px; margin: 0.375rem 0 0.125rem; }
.tr__steps { display: inline-flex; gap: 3px; }
.tr__steps i { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--line); }
.tr__steps i.bronze { background: #b8743d; }
.tr__steps i.silver { background: #9aa5aa; }
.tr__steps i.gold { background: #d29a1f; }
.tr.pop { animation: popIn 0.4s ease-out both; }
@keyframes popIn { from { transform: scale(0.85); opacity: 0; } }
.records { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.records li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.875rem 1rem; border-radius: 16px; background: var(--surface); box-shadow: 0 6px 18px rgba(15, 26, 31, 0.06); }
.records b { font: 700 1rem var(--font-mono); }
.decos { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.deco { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-radius: 16px; background: var(--surface); box-shadow: 0 6px 18px rgba(15, 26, 31, 0.06); }
.deco small { display: block; color: var(--muted); font-size: 0.8125rem; }
.deco--off { opacity: 0.6; }

/* Ajustes: interruptores */
.switch { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.625rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch small { display: block; color: var(--muted); font-size: 0.8125rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { flex: none; position: relative; inline-size: 48px; block-size: 28px; border-radius: 99px; background: var(--line); transition: background 0.2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; inline-size: 22px; block-size: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch--mini { border: 0; padding: 0; }
.how { margin-top: 0.75rem; }

/* Tutorial, inicio y final */
.tut__art { display: grid; place-items: center; min-block-size: 120px; margin-bottom: 0.5rem; }
.tut__art .store { inline-size: 100%; }
.tut__emoji { font-size: 4rem; }
.headstart { background: #fff3d6; color: #6b4700; border-radius: 12px; padding: 0.625rem 0.875rem; }
.panel--hero { background: linear-gradient(170deg, var(--accent-soft), var(--surface) 70%); }
#sEnd { padding-bottom: 1rem; }

/* ═════════════ Local en 3D, versión detallada e interactiva ═════════════ */
.storewrap { position: relative; margin: 0 -0.5rem; }
.store--big { border-radius: 24px; background: radial-gradient(120% 80% at 50% 10%, #eef7f8, #dfe9ec 75%); touch-action: pan-y; overflow: hidden; }
.storewrap.zoomed .store--big { touch-action: none; cursor: grab; }
.store--big svg { transition: filter 0.6s; }
.store .iso--night { background: radial-gradient(120% 80% at 50% 10%, #2a3560, #141b33 75%); }
.store .iso--dusk { background: radial-gradient(120% 80% at 50% 10%, #ffe2c4, #e9d6e6 75%); }
.store .tint, .store .lights { pointer-events: none; }
.store .lights { mix-blend-mode: screen; }
.cam { position: absolute; inset: 0.625rem 0.625rem auto; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.cam__chip { pointer-events: auto; font: 600 0.75rem var(--font-mono); padding: 0.3rem 0.6rem; border-radius: 99px; background: rgba(255, 255, 255, 0.88); box-shadow: 0 2px 8px rgba(15, 26, 31, 0.12); backdrop-filter: blur(6px); }
.cam__btns { display: grid; gap: 0.375rem; pointer-events: auto; }
.cam__b { inline-size: 36px; block-size: 36px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, 0.92); box-shadow: 0 3px 0 rgba(15, 26, 31, 0.15), 0 4px 10px rgba(15, 26, 31, 0.12); font: 700 1.25rem/1 var(--font-title); color: var(--ink); cursor: pointer; }
.cam__b:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(15, 26, 31, 0.15); }
.collect {
  position: absolute; left: 50%; bottom: 0.75rem; translate: -50% 0; display: inline-flex; align-items: center; gap: 0.4rem; max-inline-size: calc(100% - 1.5rem);
  padding: 0.6rem 1rem; border: 0; border-radius: 99px; background: #0f1a1f; color: #fff; font: 600 0.8125rem var(--font-text); cursor: pointer;
  box-shadow: 0 4px 0 #000, 0 10px 24px rgba(15, 26, 31, 0.35); animation: breathe 1.6s ease-in-out infinite;
}
.collect b { color: #ffe28a; font-family: var(--font-mono); }
.roomcard3 {
  position: relative; margin: 0.5rem 0.5rem 0; padding: 0.875rem 1rem; border-radius: 18px; background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 30px rgba(15, 26, 31, 0.22); animation: cardUp 0.28s var(--ease, ease-out); font-size: 0.875rem;
}
@keyframes cardUp { from { transform: translateY(14px); opacity: 0; } }
.roomcard3 > .row-between b { font: 700 1.125rem var(--font-title); }
.roomcard3 .muted { margin: 0.125rem 0 0.375rem; font-size: 0.8125rem; }
.roomcard3 .x { inline-size: 30px; block-size: 30px; font-size: 1.125rem; }
.rc__lines { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.25rem; }
.rc__next { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.5rem 0.625rem; border-radius: 12px; background: var(--bg); }
.rc__next small { display: block; color: var(--muted); font-size: 0.75rem; }
.link3 { margin-top: 0.5rem; border: 0; background: none; padding: 0; color: var(--accent-ink); font: 600 0.8125rem var(--font-text); cursor: pointer; }
.chip3.bump { animation: popIn 0.3s; }

/* Vida en el local */
.store .robot.work { animation: bob 1.6s ease-in-out infinite; }
.store .robot .eye { animation: blinkEye 4s infinite; }
@keyframes blinkEye { 0%, 92%, 100% { opacity: 1; } 95% { opacity: 0.1; } }
.store .scr { animation: scr 3s ease-in-out infinite; }
.store .scr--code { fill: #4ade80; animation-duration: 1.2s; }
.store .ring-scr { animation: scr 0.9s steps(2) infinite; }
@keyframes scr { 50% { opacity: 0.55; } }
.store .belt { animation: belt 3s linear infinite; }
@keyframes belt { from { transform: translate(-12px, -7px); } to { transform: translate(12px, 7px); } }
.store .walker.w1 { animation: walkX 16s linear infinite; }
.store .walker.w2 { animation: walkY 11s linear infinite 3s; }
@keyframes walkX { from { transform: translate(0, 0); opacity: 0; } 5%, 95% { opacity: 1; } to { transform: translate(254px, 147px); opacity: 0; } }
@keyframes walkY { from { transform: translate(0, 0); opacity: 0; } 6%, 94% { opacity: 1; } to { transform: translate(-127px, 73px); opacity: 0; } }
.store .walkin { animation: walkIn 7s ease-in-out infinite; }
@keyframes walkIn { 0% { transform: translate(18px, 10px); opacity: 0; } 15% { opacity: 1; } 60%, 75% { transform: translate(-10px, -6px); opacity: 1; } 100% { transform: translate(-22px, -13px); opacity: 0; } }
.store .drone { animation: drone 6s ease-in-out infinite; }
@keyframes drone { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, -6px); } }
.store .water { animation: scr 1.6s ease-in-out infinite; }
.store .coinbub { cursor: pointer; }
.store .coinbub__in { animation: coinBob 1.2s ease-in-out infinite; }
@keyframes coinBob { 50% { transform: translateY(-4px); } }
.store .alert { animation: blink 1.4s ease-in-out infinite; }
.store .bub { pointer-events: none; }
.store .bub__in { animation: bub 3s ease-out forwards; }
@keyframes bub { 0% { opacity: 0; transform: translateY(6px); } 12%, 80% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-8px); } }
.rc__next .btn, .up .btn { white-space: nowrap; flex: none; }

/* ═════════════ Inicio tipo juego de móvil ═════════════ */
.screen--home { gap: 0.75rem; }
.storewrap--home { margin: -1rem -1rem 0; }
.storewrap--home .store--big { border-radius: 0 0 28px 28px; min-block-size: 300px; display: grid; align-items: end; box-shadow: inset 0 -1px 0 rgba(15, 26, 31, 0.06), 0 10px 24px rgba(15, 26, 31, 0.08); }
.storewrap--home .store--big svg { padding-top: 54px; }
.lvl {
  position: absolute; top: 0.75rem; left: 0.75rem; display: flex; align-items: center; gap: 0.5rem; max-inline-size: 64%;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem; border: 0; border-radius: 99px; background: rgba(15, 26, 31, 0.88); color: #fff; text-align: left; cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 26, 31, 0.25); backdrop-filter: blur(6px);
}
.lvl__n { flex: none; display: grid; place-items: center; inline-size: 38px; block-size: 38px; border-radius: 50%; font: 800 1.125rem var(--font-title); color: #04201d; background: radial-gradient(circle at 35% 30%, #8ff0e6, #1fa397); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #fff; }
.lvl__t { display: grid; gap: 2px; min-inline-size: 0; }
.lvl__t b { font: 700 0.8125rem var(--font-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvl__bar { display: block; inline-size: 120px; max-inline-size: 100%; block-size: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.lvl__bar i { display: block; block-size: 100%; background: linear-gradient(90deg, #4fd1c5, #b7f5ee); border-radius: inherit; }
.lvl__t small { font: 500 0.625rem var(--font-mono); color: #9fb3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hudr { position: absolute; top: 0.75rem; right: 0.75rem; display: grid; gap: 0.4rem; }
.hudbtn {
  position: relative; display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 0 rgba(15, 26, 31, 0.15), 0 6px 14px rgba(15, 26, 31, 0.14); font: 700 1.25rem/1 var(--font-title); color: var(--ink); cursor: pointer;
}
.hudbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(15, 26, 31, 0.15); }
.hudbtn svg { inline-size: 22px; block-size: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hudbtn--mail { background: #fff3d6; }
.hudbtn__n { position: absolute; top: -5px; right: -5px; min-inline-size: 20px; block-size: 20px; padding: 0 5px; border-radius: 99px; background: #e4685d; color: #fff; font: 700 0.75rem/20px var(--font-mono); font-style: normal; border: 2px solid #fff; animation: pulse 0.8s infinite alternate; }
.storewrap--home .cam__chip { position: absolute; left: 0.75rem; bottom: 0.75rem; }
.storewrap--home .collect { bottom: 3.25rem; }
.store__hint { margin: -0.25rem 0 0; justify-content: center; }
.alertbar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; inline-size: 100%; padding: 0.75rem 0.875rem; text-align: left;
  border: 0; border-radius: 18px; background: linear-gradient(135deg, #fff3d6, #ffe3a3); color: #6b4700; cursor: pointer; box-shadow: 0 4px 0 #e2c27a, 0 10px 20px rgba(201, 138, 18, 0.2);
  animation: popIn 0.3s;
}
.alertbar__ico { font-size: 1.75rem; }
.alertbar small { display: block; font: 500 0.75rem var(--font-mono); }
.alertbar b { font: 700 1rem var(--font-title); color: #3d2a00; }
.alertbar__go { padding: 0.4rem 0.75rem; border-radius: 99px; background: #0f1a1f; color: #fff; font: 700 0.8125rem var(--font-title); }
.sect { display: grid; gap: 0.25rem; }
.sect .tag { margin: 0.25rem 0.25rem 0.25rem; }
.quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.quest {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 0.75rem; align-items: center; inline-size: 100%; padding: 0.625rem 0.75rem; text-align: left;
  border: 0; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 0 rgba(15, 26, 31, 0.04), 0 6px 16px rgba(15, 26, 31, 0.07); cursor: pointer; color: var(--ink);
}
.quest:active { transform: scale(0.99); }
.quest__ico { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 12px; background: var(--bg); font-size: 1.25rem; }
.quest__t b { display: block; font: 700 0.9375rem var(--font-title); }
.quest__t small { display: block; color: var(--muted); font-size: 0.8125rem; }
.quest__bar { display: block; block-size: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 0.3rem; }
.quest__bar i { display: block; block-size: 100%; background: var(--accent); border-radius: inherit; }
.quest__go { font: 700 1.5rem var(--font-title); color: var(--muted); }
.quest--hot { background: linear-gradient(135deg, #e3f7f4, var(--surface) 70%); box-shadow: inset 0 0 0 2px var(--accent), 0 6px 16px rgba(31, 163, 151, 0.15); }
.quest--hot .quest__ico { background: var(--accent); }
.quest--done .quest__bar i { background: var(--good); }
.quest--done .quest__t small { color: var(--good); font-weight: 600; }
.nextday { list-style: none; margin: 0; padding: 0.625rem 0.875rem; border-radius: 16px; background: #0f1a1f; color: #fff; display: grid; gap: 0.375rem; }
.nextday li { display: flex; gap: 0.75rem; align-items: baseline; }
.nextday .mono { color: #4fd1c5; min-inline-size: 5.5rem; }
.agentrow { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0.125rem 0.5rem; scrollbar-width: none; scroll-snap-type: x mandatory; }
.agentc {
  flex: 0 0 132px; scroll-snap-align: start; display: grid; justify-items: start; gap: 0.125rem; padding: 0.75rem; text-align: left; border: 0; border-radius: 18px;
  background: var(--surface); box-shadow: 0 6px 16px rgba(15, 26, 31, 0.07); cursor: pointer; color: var(--ink);
}
.agentc__bot { font-size: 1.5rem; }
.agentc b { font: 700 0.8125rem/1.2 var(--font-title); }
.agentc small { color: var(--muted); font-size: 0.75rem; }
.agentc__st { margin-top: 0.25rem; font: 600 0.6875rem var(--font-mono); padding: 0.15rem 0.45rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.agentc--bad .agentc__st { background: #fde5e1; color: var(--bad); }
.agentc--zz .agentc__st { background: var(--bg); color: var(--muted); }
.agentc--off { opacity: 0.7; border: 1px dashed var(--line); box-shadow: none; }
.agentc--off .agentc__st { background: var(--bg); color: var(--muted); }

/* Buzón */
.mailbox { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.625rem; }
.msg { padding: 0.875rem; border-radius: 16px; background: #fffaf0; box-shadow: inset 0 0 0 1px #f1dfb5; }
.msg--done { background: var(--bg); box-shadow: none; opacity: 0.85; }
.msg__head { display: flex; gap: 0.625rem; align-items: center; margin-bottom: 0.375rem; }
.msg__ico { font-size: 1.75rem; }
.msg__head small { display: block; font: 500 0.75rem var(--font-mono); color: var(--muted); }
.msg__head b { font: 700 1rem var(--font-title); }
.msg p { font-size: 0.9375rem; margin: 0 0 0.5rem; }
.msg__opts { display: grid; gap: 0.4rem; }
.msg__res { color: var(--accent-ink); font-weight: 600; }

/* Día: salas bloqueadas, lluvia y sucesos nuevos */
.roomcard--blocked { background: repeating-linear-gradient(135deg, #f5f7f7 0 10px, #eceff0 10px 20px); opacity: 0.85; }
.store .rain { animation: rain 0.6s linear infinite; pointer-events: none; }
@keyframes rain { from { transform: translate(0, -12px); } to { transform: translate(-6px, 14px); } }
.event--blackout { background: #0f1a1f; color: #e8f2f1; }
.event--rain, .event--leak { background: #e3ebfb; color: #1f3b7a; }
.event--bigorder { background: var(--accent-soft); color: var(--accent-ink); }
.event--complaint, .event--inspection { background: #fde5e1; color: #8a2a1d; }
body.on-local #tStage { display: none; }
.sheet--bottom { overflow-y: auto; overscroll-behavior: contain; }

/* ═════════════ Premios: misiones, cofre, pase y participaciones ═════════════ */
#trMis, #trPass { display: grid; gap: 0.75rem; }
.seg__dot { display: inline-block; inline-size: 8px; block-size: 8px; margin-left: 4px; border-radius: 50%; background: #e4685d; vertical-align: top; }
.tickets { border-radius: 20px; padding: 1rem; color: #fff; background: linear-gradient(135deg, #0f1a1f, #1d4a48); box-shadow: 0 10px 26px rgba(15, 26, 31, 0.25); }
.tickets__in { display: flex; gap: 0.875rem; align-items: center; }
.tickets__ico { font-size: 2.25rem; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); }
.tickets b { display: block; font: 700 1.125rem var(--font-title); }
.tickets small { display: block; color: #b9cfd2; font-size: 0.8125rem; }
.tickets .quest__bar { background: rgba(255, 255, 255, 0.15); margin-top: 0.5rem; }
.tickets .quest__bar i { background: linear-gradient(90deg, #f2b705, #ffe28a); }
.missions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.mis { display: grid; grid-template-columns: 40px 1fr auto; gap: 0.75rem; align-items: center; padding: 0.75rem; border-radius: 16px; background: var(--surface); box-shadow: 0 6px 16px rgba(15, 26, 31, 0.07); }
.mis__ico { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 12px; background: var(--bg); font-size: 1.25rem; }
.mis__t b { display: block; font: 700 0.9375rem var(--font-title); }
.mis__t small { display: block; color: var(--muted); font-size: 0.75rem; }
.mis__t .quest__bar { margin: 0.3rem 0 0.15rem; }
.mis--ready { box-shadow: inset 0 0 0 2px var(--good), 0 6px 16px rgba(46, 154, 82, 0.18); background: linear-gradient(135deg, #e8f7ec, var(--surface) 70%); }
.mis--ready .mis__ico { animation: wiggle 1s ease-in-out infinite; }
.mis--done { opacity: 0.7; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.chest { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.75rem; align-items: center; padding: 0.875rem; border-radius: 20px; background: linear-gradient(135deg, #fff3d6, #ffe3a3); box-shadow: 0 4px 0 #e2c27a, 0 10px 20px rgba(201, 138, 18, 0.2); }
.chest__box { display: grid; place-items: center; inline-size: 64px; block-size: 64px; border-radius: 18px; background: #fffaf0; font-size: 2.25rem; filter: grayscale(0.7); opacity: 0.7; }
.chest__box--ready { filter: none; opacity: 1; animation: wiggle 0.8s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.35), 0 0 24px rgba(242, 183, 5, 0.6); }
.chest__box--open { filter: none; opacity: 1; }
.chest__t b { display: block; font: 700 1.0625rem var(--font-title); color: #3d2a00; }
.chest__t small { color: #6b4700; font-size: 0.8125rem; }
.howlist { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.howlist li { display: flex; gap: 0.75rem; align-items: center; }
.howlist li > span { font-size: 1.5rem; }
.howlist b { display: block; font: 700 0.9375rem var(--font-title); }
.howlist small { color: var(--muted); font-size: 0.8125rem; }
.rwlog { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.rwlog li { display: flex; gap: 0.625rem; padding: 0.5rem 0.75rem; border-radius: 12px; background: var(--surface); font-size: 0.875rem; }
.rwlog small { display: block; color: var(--muted); font-size: 0.75rem; }
.rwlog__entry { box-shadow: inset 3px 0 0 #f2b705; }
.passhead { display: grid; grid-template-columns: 72px 1fr; gap: 0.875rem; align-items: center; padding: 1rem; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #3b2a7a, #8059d6); box-shadow: 0 10px 26px rgba(80, 50, 160, 0.3); }
.passhead__lvl { display: grid; justify-items: center; inline-size: 72px; block-size: 72px; place-content: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe8a0, #d29a1f); color: #3d2a00; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.passhead__lvl span { font: 600 0.625rem var(--font-mono); text-transform: uppercase; }
.passhead__lvl b { font: 800 1.75rem/1 var(--font-title); }
.passhead__t b { display: block; font: 700 1.0625rem var(--font-title); }
.passhead__t small { display: block; color: #ddd3fa; font-size: 0.75rem; margin-top: 0.25rem; }
.passhead .quest__bar { background: rgba(255, 255, 255, 0.2); margin-top: 0.375rem; }
.passhead .quest__bar i { background: linear-gradient(90deg, #f2b705, #ffe28a); }
.pass { list-style: none; margin: 0; padding: 0 0 0 1.25rem; display: grid; gap: 0.5rem; position: relative; }
.pass::before { content: ""; position: absolute; left: 0.55rem; top: 0.5rem; bottom: 0.5rem; inline-size: 4px; border-radius: 99px; background: var(--line); }
.tier { position: relative; display: grid; grid-template-columns: auto 36px 1fr auto; gap: 0.625rem; align-items: center; padding: 0.625rem 0.75rem; border-radius: 14px; background: var(--surface); box-shadow: 0 4px 12px rgba(15, 26, 31, 0.06); }
.tier__n { position: absolute; left: -1.45rem; display: grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--line); color: var(--muted); font: 700 0.75rem var(--font-mono); border: 3px solid var(--bg); }
.tier__ico { display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 10px; background: var(--bg); font-size: 1.125rem; grid-column: 2; }
.tier__l { grid-column: 3; font: 600 0.875rem var(--font-title); }
.tier > :last-child { grid-column: 4; }
.tier__lock { opacity: 0.5; }
.tier--entry { background: linear-gradient(135deg, #fff8e1, var(--surface) 70%); box-shadow: inset 0 0 0 1px #f1dfb5, 0 4px 12px rgba(15, 26, 31, 0.06); }
.tier--ready .tier__n, .tier--claimed .tier__n { background: #8059d6; color: #fff; }
.tier--ready { box-shadow: inset 0 0 0 2px var(--good), 0 6px 16px rgba(46, 154, 82, 0.18); }
.tier--claimed { opacity: 0.6; }
.prize .sheet__body { display: grid; justify-items: center; gap: 0.25rem; }
.prize__burst { position: relative; display: grid; place-items: center; inline-size: 120px; block-size: 120px; margin: -0.25rem auto 0.25rem; border-radius: 50%; background: radial-gradient(circle, #fff3d6 30%, transparent 70%); }
.prize__burst::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(242, 183, 5, 0.35) 0 10deg, transparent 10deg 30deg); animation: spin 8s linear infinite; }
.prize__burst span { position: relative; font-size: 3.5rem; animation: popIn 0.4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes spin { to { transform: rotate(360deg); } }
.prize__nums { padding: 0.5rem 0.75rem; border-radius: 12px; background: #0f1a1f; color: #ffe28a; font-size: 0.875rem; }
.store .balloon { animation: bob 2.6s ease-in-out infinite; }
.store .balloon:nth-child(2n) { animation-delay: 0.6s; }
