/* =========================================================
   DIAGNÓSTICO · juego en 5 niveles (usa los colores de styles.css)
   ========================================================= */
.game [hidden] { display: none !important; }
.game { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.game::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 90% -10%, rgba(255,122,26,.12), transparent 70%); }

/* Barra superior */
.g-top { position: relative; padding: 1.1rem clamp(1rem, 3vw, 2rem) .9rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: .7rem 1.2rem; align-items: center; }
.g-lvl { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.g-lvl-n { font: 700 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.g-lvl b { font-weight: 850; font-stretch: 85%; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.g-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; }
.g-dots li { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); border: 1.5px solid var(--line-2); font-size: 1.05rem; filter: grayscale(1); opacity: .5; transition: all .4s var(--ease); }
.g-dots li.on { filter: none; opacity: 1; border-color: var(--accent); background: rgba(255,122,26,.14); transform: translateY(-2px); }
.g-dots li.done { filter: none; opacity: .9; border-color: transparent; background: rgba(255,122,26,.08); }
.g-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 5%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .7s var(--ease); position: relative; }
.g-bar i::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px); animation: barMove 1s linear infinite; }
@keyframes barMove { to { background-position: 22px 0; } }

/* Pantallas */
.g-stage { position: relative; padding: clamp(1.2rem, 3vw, 2.2rem); min-height: 440px; }
.g-screen { display: none; }
.g-screen.is-active { display: block; animation: gIn .5s var(--ease); }
.g-screen.is-back { animation-name: gInBack; }
@keyframes gIn { from { opacity: 0; transform: translateX(26px); } }
@keyframes gInBack { from { opacity: 0; transform: translateX(-26px); } }
.g-title { font-weight: 850; font-stretch: 85%; font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.1; margin: 0 0 1.3rem; }
.g-title small { display: block; margin-top: .4rem; font: 500 .9rem/1.4 var(--f); font-stretch: 100%; color: var(--muted); }
.g-q { font-weight: 800; margin: 1.2rem 0 .6rem; }
.g-q:first-child { margin-top: 0; }
.g-small { font-size: .8rem; color: var(--dim); margin: .8rem 0 0; }

/* Nivel 1 */
.g-auto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 4vw, 3rem); align-items: start; }
.g-garage { position: sticky; top: 100px; background: radial-gradient(circle at 50% 80%, rgba(255,122,26,.12), transparent 60%), var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem 1rem 1rem; text-align: center; }
.g-quip { position: relative; display: inline-block; max-width: 92%; margin: 0 auto .4rem; padding: .7rem 1rem; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-2); font-weight: 600; font-size: .95rem; animation: quip .45s var(--ease); }
.g-quip::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: var(--card-2); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: translateX(-50%) rotate(45deg); }
@keyframes quip { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.g-car { width: 100%; height: auto; overflow: visible; }
.g-shadow { fill: rgba(0,0,0,.5); filter: blur(2px); }
.g-arch { fill: #0b0b0b; }
.g-body { fill: var(--car, #ff7a1a); stroke: rgba(0,0,0,.45); stroke-width: 1.5; stroke-linejoin: round; transition: fill .5s var(--ease); }
.g-shade { fill: rgba(0,0,0,.24); }
.g-line { stroke: rgba(255,255,255,.28); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.g-glass { fill: #1d2630; stroke: #0e1216; stroke-width: 2.5; stroke-linejoin: round; }
.g-glare { fill: rgba(255,255,255,.12); }
.g-seam { stroke: rgba(0,0,0,.35); stroke-width: 1.4; fill: none; }
.g-handle { fill: rgba(0,0,0,.4); }
.g-mirror { fill: var(--car, #ff7a1a); stroke: rgba(0,0,0,.45); stroke-width: 1.4; filter: brightness(.85); }
.g-head { fill: #fff6c8; stroke: rgba(0,0,0,.3); stroke-width: 1; filter: drop-shadow(0 0 5px rgba(255,240,170,.8)); }
.g-tail { fill: #ff3b2f; stroke: rgba(0,0,0,.35); stroke-width: 1; }
.g-plate { fill: #e9e6df; stroke: rgba(0,0,0,.3); }
.g-light-f, .g-light-b { display: none; }
.g-mud circle { fill: #5c4128; opacity: var(--mud, 0); transition: opacity .5s; }
.g-tire { fill: #141414; }
.g-wall { fill: none; stroke: #262626; stroke-width: 2; }
.g-disc { fill: #2a2c30; }
.g-caliper { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.g-spk { fill: #d6d9de; }
.g-lip { fill: none; stroke: #d6d9de; stroke-width: 2.4; }
.g-hub { fill: #8d939b; stroke: #d6d9de; stroke-width: 1.5; }
.g-rim { transform-box: fill-box; transform-origin: center; }
.g-car.spin .g-rim { animation: wheelSpin .7s var(--ease); }
@keyframes wheelSpin { to { transform: rotate(360deg); } }
.g-car-body { transform-box: fill-box; transform-origin: center bottom; }
.g-car.spin .g-car-body { animation: carBob .7s var(--ease); }
@keyframes carBob { 30% { transform: translateY(-4px) rotate(-.6deg); } 60% { transform: translateY(1px); } }
.g-odo { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; padding: .45rem .8rem; border-radius: 10px; background: #0c0c0c; border: 1px solid var(--line-2); font: 700 .66rem var(--mono); color: var(--dim); letter-spacing: .1em; }
.g-odo b { font: 700 1.15rem var(--mono); color: var(--accent-2); letter-spacing: .12em; text-shadow: 0 0 10px rgba(255,194,26,.5); }

.g-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.g-brand { min-height: 48px; padding: .5rem .4rem; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--ink); font: 700 .84rem/1.15 var(--f); cursor: pointer; transition: all .2s var(--ease); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; }
.g-brand i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.g-brand:hover { border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.g-brand[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,122,26,.14); }
.g-field { display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; }
.g-field > span { font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.g-range { margin-top: 1.2rem; }
.g-range-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.g-range-top span { font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.g-range-top b { font-weight: 900; font-stretch: 75%; font-size: 1.6rem; color: var(--accent); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; border: 0; padding: 0; min-height: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(255,255,255,.1) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--ink); border: 5px solid var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 5px solid var(--accent); }
input[type=range]:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }
.g-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.g-pill { min-height: 44px; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--ink); font: 600 .9rem var(--f); cursor: pointer; transition: all .2s; }
.g-pill:hover { border-color: rgba(255,255,255,.3); }
.g-pill[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #160b00; }

/* Nivel 2 · auto con zonas */
.g-zonecar { position: relative; max-width: 620px; margin: 0 auto 1.4rem; padding: .5rem 0 0; }
.g-car-big { filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.g-hots { position: absolute; inset: 0; }
.g-hot { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); }
.g-hot .dot { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(18,18,18,.85); border: 2px solid var(--accent); font-size: .95rem; transition: all .25s var(--ease); }
.g-hot .dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); animation: hotPulse 2s infinite; }
@keyframes hotPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.g-hot .lbl { font: 700 .72rem var(--mono); padding: .3rem .5rem; border-radius: 8px; background: rgba(18,18,18,.85); border: 1px solid var(--line-2); white-space: nowrap; }
.g-hot.left { flex-direction: row-reverse; }
.g-hot[aria-pressed="true"] .dot { background: var(--accent); transform: scale(1.12); }
.g-hot[aria-pressed="true"] .dot::after { animation: none; opacity: 0; }
.g-hot[aria-pressed="true"] .lbl { background: var(--accent); color: #160b00; border-color: var(--accent); }

.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.g-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; min-height: 96px; padding: .9rem .9rem .8rem; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--ink); font: 700 .95rem/1.25 var(--f); text-align: left; cursor: pointer; transition: transform .25s var(--ease), border-color .2s, background .2s; animation: cardIn .45s var(--ease) both; }
.g-card .em { font-size: 1.7rem; line-height: 1; transition: transform .35s var(--ease); }
.g-card small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.g-card::after { content: ""; position: absolute; top: .7rem; right: .7rem; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--dim); transition: all .2s; }
.g-card:hover { border-color: rgba(255,255,255,.3); transform: translateY(-3px); }
.g-card:hover .em { transform: scale(1.15) rotate(-6deg); }
.g-card[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,122,26,.12); }
.g-card[aria-pressed="true"]::after { content: "✓"; display: grid; place-items: center; font: 800 .75rem var(--f); color: #160b00; background: var(--accent); border-color: var(--accent); }
.g-card.danger[aria-pressed="true"] { border-color: var(--bad); background: rgba(255,77,61,.12); }
.g-card.danger[aria-pressed="true"]::after { background: var(--bad); border-color: var(--bad); color: #fff; }
.g-card.pop { animation: cardPop .35s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes cardPop { 40% { transform: scale(1.05); } }
.g-cards-zona { grid-template-columns: repeat(3, 1fr); }
.g-cards-sound .g-card { padding-bottom: 3.2rem; }
.g-play { position: absolute; left: .8rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--accent-2); font: 700 .74rem var(--mono); cursor: pointer; }
.g-play:hover { border-color: var(--accent-2); }
.g-play.playing { background: var(--accent-2); color: #160b00; }
.g-ono { font: 800 .78rem var(--mono); color: var(--accent); }

/* Nivel 3 · evidencia */
.g-evid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.g-ev { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-height: 130px; padding: 1rem; border-radius: 18px; border: 1.5px dashed rgba(255,255,255,.22); background: var(--bg-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: all .25s var(--ease); }
.g-ev:hover { border-color: var(--accent); transform: translateY(-3px); background: rgba(255,122,26,.06); }
.g-ev:focus-within, .g-ev:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.g-ev-ico { font-size: 2rem; margin-bottom: auto; }
.g-ev b { font-size: .98rem; } .g-ev small { color: var(--muted); font-size: .8rem; }
.g-ev.busy { pointer-events: none; border-style: solid; border-color: var(--accent-2); }
.g-ev.busy::after { content: "Analizando…"; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; background: rgba(18,18,18,.82); font: 700 .85rem var(--mono); color: var(--accent-2); }
.g-ev.done { border-style: solid; border-color: var(--ok); }
.g-ev.done::before { content: "✓"; position: absolute; top: .7rem; right: .8rem; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #0b2410; font-weight: 900; font-size: .78rem; }
.g-rec { margin-top: .9rem; padding: 1rem; border-radius: 18px; background: #0f0f0f; border: 1px solid var(--line-2); animation: gIn .4s var(--ease); }
.g-rec canvas { width: 100%; height: 70px; display: block; }
.g-rec-row { display: flex; align-items: center; gap: 1rem; margin-top: .6rem; flex-wrap: wrap; }
.g-rec-row b { display: block; font: 700 1.2rem var(--mono); }
.g-rec-row small { color: var(--muted); font-size: .84rem; }
.g-rec-row > div { flex: 1; min-width: 160px; }
.g-rec-btn { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.g-rec-btn i { width: 40px; height: 40px; border-radius: 50%; background: var(--bad); transition: all .25s var(--ease); }
.g-rec-btn.on i { width: 24px; height: 24px; border-radius: 6px; }
.g-rec-btn.on { animation: recPulse 1.2s infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 0 10px rgba(255,77,61,.18); } }
.g-rec-alt { font-size: .82rem; color: var(--accent-2); text-decoration: underline; cursor: pointer; }
.g-found { display: grid; gap: .6rem; margin-top: 1rem; }
.g-find { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: .9rem 1rem; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); animation: gIn .45s var(--ease); }
.g-find .em { font-size: 1.5rem; }
.g-find b { display: block; margin-bottom: .2rem; }
.g-find p { margin: 0; color: var(--muted); font-size: .9rem; }
.g-find ul { margin: .35rem 0 0; padding-left: 1.1rem; color: #dcd8d1; font-size: .9rem; }
.g-find.warn { border-color: rgba(255,176,32,.4); }
.g-find.bad { border-color: rgba(255,77,61,.5); }
.g-notas textarea { min-height: 70px; resize: vertical; }

/* Nivel 4 · contacto */
.g-lock { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.2rem, 4vw, 3rem); align-items: center; }
.g-lock-prev { position: relative; aspect-ratio: 4 / 5; max-height: 420px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-2); padding: 1.4rem; overflow: hidden; display: flex; flex-direction: column; gap: 1.2rem; }
.g-lock-prev > *:not(.g-lock-ico) { filter: blur(5px); opacity: .7; }
.g-sem-mini { display: flex; flex-direction: column; gap: .5rem; width: 56px; padding: .6rem; border-radius: 14px; background: #0c0c0c; }
.g-sem-mini i { width: 36px; height: 36px; border-radius: 50%; background: #333; }
.g-sem-mini i:nth-child(1) { background: var(--bad); } .g-sem-mini i:nth-child(2) { background: var(--warn); } .g-sem-mini i:nth-child(3) { background: var(--ok); }
.g-lock-lines { display: grid; gap: .6rem; }
.g-lock-lines i { height: 12px; border-radius: 6px; background: rgba(255,255,255,.18); }
.g-lock-lines i:nth-child(2) { width: 80%; } .g-lock-lines i:nth-child(3) { width: 60%; } .g-lock-lines i:nth-child(4) { width: 70%; }
.g-lock-ico { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; animation: wiggle 2.4s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-10deg); } 85% { transform: rotate(10deg); } }
.g-check { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; font-size: .9rem; color: var(--muted); cursor: pointer; }
.g-check input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 1px 0 0; accent-color: var(--accent); padding: 0; }
.g-check b { color: var(--ink); }
.g-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-err { color: #ffb3aa; font-size: .9rem; min-height: 1.2em; margin: .6rem 0 0; }
.g-unlock { width: 100%; margin-top: .6rem; }
.g-unlock[disabled] { opacity: .6; pointer-events: none; }

/* Nivel 5 · cargando */
.g-loading { display: grid; place-items: center; text-align: center; min-height: 380px; gap: 1rem; }
.g-lift { width: min(320px, 80%); }
.g-lift-post { fill: #2c2c2c; } .g-lift-floor { fill: #2c2c2c; }
.g-lift-arm { fill: var(--accent-2); } .g-lift-body { fill: var(--car, var(--accent)); } .g-lift-tire { fill: #0f0f0f; stroke: #333; stroke-width: 2; }
.g-lift-car { animation: liftUp 2.6s var(--ease) infinite alternate; }
@keyframes liftUp { from { transform: translateY(30px); } to { transform: translateY(-18px); } }
.g-load-msg { font-weight: 700; font-size: 1.1rem; min-height: 1.6em; animation: quip .4s var(--ease); }
.g-load-bar { width: min(320px, 80%); height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.g-load-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: loadSlide 1.3s ease-in-out infinite; }
@keyframes loadSlide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Informe */
.r-head { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; margin-bottom: 1.4rem; }
.sem { display: flex; flex-direction: column; gap: .55rem; padding: .75rem; border-radius: 20px; background: #0b0b0b; border: 1px solid var(--line-2); box-shadow: inset 0 2px 10px rgba(0,0,0,.6); }
.sem i { width: 46px; height: 46px; border-radius: 50%; background: #262626; transition: all .5s var(--ease); }
.sem.l3 i:nth-child(1) { background: var(--bad); box-shadow: 0 0 24px 4px rgba(255,77,61,.7); animation: blink 1.4s infinite; }
.sem.l2 i:nth-child(2) { background: var(--warn); box-shadow: 0 0 24px 4px rgba(255,176,32,.6); }
.sem.l1 i:nth-child(3) { background: var(--ok); box-shadow: 0 0 24px 4px rgba(123,211,137,.6); }
@keyframes blink { 50% { opacity: .55; } }
.r-car { font: 600 .78rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .4rem; }
.r-title { font-weight: 900; font-stretch: 78%; text-transform: uppercase; font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: .98; margin: 0 0 .7rem; }
.r-urg { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; font: 800 .82rem var(--f); text-transform: uppercase; letter-spacing: .04em; }
.r-urg.u1 { background: rgba(123,211,137,.14); color: var(--ok); } .r-urg.u2 { background: rgba(255,176,32,.14); color: var(--warn); } .r-urg.u3 { background: rgba(255,77,61,.16); color: #ff8a7d; }
.r-urg-why { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }
.r-alert { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255,77,61,.12); border: 1.5px solid rgba(255,77,61,.55); margin-bottom: 1.2rem; font-weight: 600; }
.r-sum { font-size: 1.08rem; line-height: 1.55; margin: 0 0 1.4rem; color: #e6e2db; }
.r-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.r-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem; }
.r-box h4 { font: 700 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.r-cause { padding: .8rem 0; border-top: 1px solid var(--line); animation: gIn .5s var(--ease) both; }
.r-cause:first-of-type { border-top: 0; padding-top: 0; }
.r-cause b { display: flex; justify-content: space-between; gap: .6rem; align-items: center; font-size: 1.02rem; }
.r-prob { font: 700 .68rem var(--mono); text-transform: uppercase; padding: .3rem .5rem; border-radius: 999px; flex: none; }
.r-prob.alta { background: rgba(255,122,26,.18); color: var(--accent); } .r-prob.media { background: rgba(255,194,26,.12); color: var(--accent-2); } .r-prob.baja { background: rgba(255,255,255,.07); color: var(--muted); }
.r-cause p { margin: .3rem 0 0; color: var(--muted); font-size: .93rem; }
.r-servs { display: flex; flex-wrap: wrap; gap: .5rem; }
.r-serv { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-radius: 14px; background: rgba(255,122,26,.12); border: 1px solid rgba(255,122,26,.35); font-weight: 700; }
.r-check { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.r-check li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; font-size: .93rem; color: #dcd8d1; animation: gIn .45s var(--ease) both; }
.r-check li::before { content: "✓"; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(123,211,137,.15); color: var(--ok); font-weight: 900; font-size: .75rem; }
.r-tip { margin-top: 1rem; display: flex; gap: .7rem; padding: .9rem 1rem; border-radius: 16px; background: rgba(255,194,26,.08); border: 1px dashed rgba(255,194,26,.4); font-size: .93rem; }
.r-disc { margin: 1.2rem 0 0; padding: .9rem 1rem; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-size: .88rem; }
.r-disc b { color: var(--ink); }
.r-cta { margin-top: 1.4rem; display: grid; gap: .6rem; }
.r-cta .btn-wa { width: 100%; min-height: 64px; font-size: 1.12rem; white-space: normal; text-align: center; }
.r-more { display: flex; flex-wrap: wrap; gap: .5rem; }
.r-more .btn { flex: 1 1 180px; white-space: normal; }
.r-note { font-size: .8rem; color: var(--dim); margin: .4rem 0 0; }

/* Navegación y avisos */
.g-nav { position: relative; display: flex; align-items: center; gap: .8rem; padding: 1rem clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }
.g-hint { flex: 1; font: 500 .82rem var(--mono); color: var(--muted); }
.g-nav #g-prev { order: -1; }
.g-nav #g-next[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.g-nav.hide { display: none; }
.g-toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 5; width: max-content; max-width: calc(100% - 32px); padding: .8rem 1.1rem; border-radius: 14px; background: #2a1110; border: 1.5px solid var(--bad); color: #ffd2cc; font-weight: 600; font-size: .92rem; box-shadow: 0 20px 40px -10px rgba(0,0,0,.7); animation: quip .35s var(--ease); }
.g-toast.ok { background: #13221a; border-color: var(--ok); color: #c9f5d0; }

/* Responsive */
@media (max-width: 900px) {
  .g-auto, .g-lock, .r-grid { grid-template-columns: 1fr; }
  .g-garage { position: static; }
  .g-evid { grid-template-columns: 1fr 1fr; }
  .g-lock-prev { display: none; }
}
@media (max-width: 600px) {
  .game { border-radius: 20px; margin: 0 -4px; }
  .g-top { grid-template-columns: 1fr; }
  .g-dots { display: none; }
  .g-stage { padding: 1.1rem 1rem 1.3rem; min-height: 0; }
  .g-brands { grid-template-columns: repeat(3, 1fr); }
  .g-cards, .g-cards-zona { grid-template-columns: 1fr 1fr; }
  .g-card { min-height: 88px; font-size: .9rem; }
  .g-hot .lbl { display: none; }
  .g-hot .dot { width: 32px; height: 32px; }
  .g-nav { position: sticky; bottom: 0; z-index: 4; background: rgba(24,24,24,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .g-hint { flex-basis: 100%; order: -2; text-align: center; font-size: .76rem; }
  .g-nav .btn { flex: 1; }
  .r-head { grid-template-columns: auto 1fr; gap: 1rem; }
  .sem i { width: 32px; height: 32px; }
  .sem { padding: .55rem; gap: .4rem; }
  .g-toast { bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-hot .dot::after, .g-bar i::after, .sem.l3 i:nth-child(1), .g-lock-ico { animation: none; }
}

/* Mientras se juega el diagnóstico, el botón del chat se corre para no tapar los botones del juego */
.chat-launch, .chat-teaser { transition: opacity .3s, transform .35s var(--ease), box-shadow .3s; }
html.in-game:not(.chat-open) .chat-launch, html.in-game .chat-teaser { opacity: 0; pointer-events: none; transform: translateY(110px); }
