/* Pantallas: cada una tiene su lugar propio del barrio */

/* ---------- Cabecera con personaje ---------- */
.cabecera { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.cabecera__txt { flex: 1; min-width: 0; }

/* ---------- Mercado ---------- */
.fondo-mercado { background: #2A1A33; min-height: 100%; background-image: radial-gradient(circle at 50% 0, rgba(255,201,60,.14), transparent 55%); }
.toldo { position: relative; height: 40px; width: 100vw; margin: -2px 0 22px calc(50% - 50vw); background: repeating-linear-gradient(90deg, #E23F6B 0 42px, #FFF3CC 42px 84px); border-top: 3px solid var(--out); border-bottom: 3px solid var(--out); }
.toldo::after { content: ''; position: absolute; left: 0; right: 0; bottom: -17px; height: 14px; background: radial-gradient(circle at 21px 0, #E23F6B 20px, transparent 21px) 0 0 / 84px 14px repeat-x, radial-gradient(circle at 63px 0, #FFF3CC 20px, transparent 21px) 0 0 / 84px 14px repeat-x; filter: drop-shadow(0 3px 0 var(--out)); }
.producto { background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r); box-shadow: 0 4px 0 var(--out); padding: 12px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.producto__img { height: 104px; display: flex; align-items: center; justify-content: center; }
.producto__img svg { height: 100%; width: auto; filter: drop-shadow(0 3px 0 rgba(0,0,0,.28)); }
.producto h4 { font-size: 17.5px; }
.producto p { font-size: 13.5px; color: var(--txt2); line-height: 1.28; flex: 1; }
.producto__precio { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; font-size: 16px; }
.producto.is-lock .producto__img { filter: grayscale(1) brightness(.5); }
.cinta { position: absolute; top: 10px; right: -3px; background: var(--led); color: #2A0620; font: 400 12.5px var(--f-d); padding: 2px 8px; border: 2.5px solid var(--out); border-radius: 7px 0 0 7px; }
.estrellas { color: var(--wc); font-size: 13px; letter-spacing: 1px; }

.linea-cog { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r); box-shadow: 0 4px 0 var(--out); padding: 10px 12px; }
.linea-cog__img { width: 64px; height: 64px; } .linea-cog__img svg { width: 100%; height: 100%; }
.linea-cog h4 { font-size: 17px; }
.linea-cog__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }
.linea-cog.is-lock { opacity: .55; }

/* ---------- Mochila ---------- */
.seccion-t { font-size: 20px; margin: 18px 0 9px; display: flex; align-items: center; gap: 7px; }
.seccion-t:first-child { margin-top: 0; }
.seccion-t i { width: 28px; height: 28px; display: block; }
.objeto { position: relative; background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r); padding: 10px; text-align: center; box-shadow: 0 3px 0 var(--out); }
.objeto__img { height: 74px; display: flex; justify-content: center; } .objeto__img svg { height: 100%; width: auto; }
.objeto b { display: block; font: 400 15.5px var(--f-d); margin-top: 4px; }
.objeto small { display: block; color: var(--txt2); font-size: 13px; line-height: 1.2; }
.objeto__cant { position: absolute; top: -8px; right: -5px; min-width: 30px; height: 28px; padding: 0 7px; background: var(--wc); color: #2E1E02; font: 400 16px/23px var(--f-d); border: 2.5px solid var(--out); border-radius: 10px; }
.vacio { padding: 20px; text-align: center; color: var(--txt2); background: rgba(255,255,255,.04); border: 3px dashed var(--ber-600); border-radius: var(--r); }
.vacio .btn { margin-top: 10px; }

/* ---------- Misiones ---------- */
.fondo-misiones { background: var(--ber-900); min-height: 100%; }
.mision { display: grid; grid-template-columns: 44px 1fr auto; gap: 11px; align-items: center; padding: 10px 11px; background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r); box-shadow: 0 4px 0 var(--out); }
.mision__ico { width: 44px; height: 44px; } .mision__ico .moneda-svg { width: 100%; height: 100%; }
.mision h4 { font-size: 16.5px; }
.mision p { font-size: 13.5px; color: var(--txt2); line-height: 1.2; }
.mision .barra { height: 10px; margin-top: 5px; }
.mision__prog { font-size: 12.5px; color: var(--txt2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.mision__premio { display: flex; flex-wrap: wrap; gap: 4px 9px; font-size: 13px; font-weight: 600; margin-top: 3px; color: var(--hoja-l); }
.mision__premio .plata { font-size: 13px; color: var(--cash); }
.mision.is-hecha { background: #2B4A23; }
.mision.is-cobrada { opacity: .55; }
.ok-sello { width: 36px; height: 36px; display: grid; place-items: center; background: var(--hoja); color: var(--hoja-t); border: 3px solid var(--out); border-radius: 50%; font-size: 17px; }
.resumen-dia { display: flex; align-items: center; gap: 11px; padding: 11px; background: var(--ber-700); border: 3px solid var(--out); border-radius: var(--r); box-shadow: 0 4px 0 var(--out); margin-bottom: 13px; }
.resumen-dia__cofre { width: 54px; height: 54px; flex: none; }
.resumen-dia.is-listo { background: #5A4307; }
.resumen-dia.is-listo .resumen-dia__cofre { animation: late 1s ease-in-out infinite; }
.bolitas { display: flex; gap: 4px; margin-top: 5px; }
.bolitas i { width: 18px; height: 18px; border-radius: 50%; background: var(--ber-950); border: 2.5px solid var(--out); }
.bolitas i.on { background: var(--hoja); }

/* Libreta de la historia */
.libreta { position: relative; background: var(--papel); color: var(--tinta); border: 3px solid var(--out); border-radius: 10px 18px 18px 10px; box-shadow: 0 5px 0 var(--out); padding: 16px 14px 16px 30px; background-image: linear-gradient(90deg, transparent 21px, rgba(226,63,107,.4) 21px, rgba(226,63,107,.4) 23px, transparent 23px), repeating-linear-gradient(transparent, transparent 27px, rgba(110,90,66,.16) 27px, rgba(110,90,66,.16) 28px); }
.libreta__cap { font-size: 23px; }
.libreta__sub { font-size: 14px; color: var(--tinta2); font-weight: 600; margin-bottom: 11px; }
.libreta .globo { background: #FFFBEA; font-size: 15px; }
.libreta .globo::before { background: #FFFBEA; }
.mision-actual { margin-top: 11px; padding: 11px; background: #FFFBEA; border: 3px solid var(--out); border-radius: 13px; box-shadow: 0 3px 0 var(--out); }
.mision-actual h4 { font-size: 19px; }
.mision-actual .barra { margin-top: 6px; background: #D9C48E; }
.mision-actual__prog { font-size: 13.5px; color: var(--tinta2); font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.premio-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.premio-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; background: var(--tinta); color: #FFF3CC; border-radius: 9px; font-size: 13.5px; font-weight: 600; }
.premio-chip svg { width: 20px; height: 20px; }
.premio-chip--xp { padding-left: 8px; background: #4E9E12; color: #fff; }
.camino { margin-top: 14px; list-style: none; padding: 0; }
.camino li { position: relative; padding: 4px 0 4px 30px; font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.camino li::before { content: ''; position: absolute; left: 7px; top: 8px; width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid var(--tinta); background: #fff8df; z-index: 1; }
.camino li::after { content: ''; position: absolute; left: 13.5px; top: 10px; bottom: -12px; width: 2.5px; background: rgba(51,36,26,.35); }
.camino li:last-child::after { display: none; }
.camino li.is-ok { color: var(--tinta2); text-decoration: line-through; text-decoration-color: rgba(51,36,26,.3); }
.camino li.is-ok::before { background: #5CC93F; }
.camino li.is-act { font-weight: 700; }
.camino li.is-act::before { background: var(--wc); box-shadow: 0 0 0 3px rgba(229,164,15,.35); }
.camino li.is-lejos { color: rgba(51,36,26,.42); }
.caps { margin-top: 16px; display: grid; gap: 8px; }
.cap-fila { display: flex; align-items: center; gap: 10px; padding: 8px 11px; background: var(--ber-800); border: 3px solid var(--out); border-radius: 13px; text-align: left; width: 100%; }
.cap-fila .cara { width: 40px; height: 40px; border-width: 2.5px; }
.cap-fila b { display: block; font: 400 16px var(--f-d); }
.cap-fila small { display: block; color: var(--txt2); font-size: 13px; }
.cap-fila.is-lock { opacity: .5; }
.cap-fila.is-lock .cara svg { filter: brightness(.1); }
.cap-fila__n { margin-left: auto; font-size: 13px; color: var(--txt2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Pedidos: corcho ---------- */
.fondo-corcho { min-height: 100%; background-color: #A67A4E; background-image: radial-gradient(#8F653D 1.6px, transparent 1.8px), radial-gradient(#BC8F62 1.4px, transparent 1.6px); background-size: 15px 15px, 21px 21px; background-position: 0 0, 7px 9px; box-shadow: inset 0 0 90px rgba(46,24,6,.55); }
.corcho-titulo { display: inline-block; padding: 7px 14px; background: var(--papel); color: var(--tinta); border: 3px solid var(--out); border-radius: 6px; box-shadow: 0 4px 0 var(--out); transform: rotate(-1.2deg); font-size: 22px; font-family: var(--f-d); margin-bottom: 14px; }
.notas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.nota { position: relative; background: var(--papel); color: var(--tinta); padding: 18px 14px 13px; border: 3px solid var(--out); border-radius: 4px; box-shadow: 0 5px 0 rgba(46,24,6,.75); }
.nota:nth-child(3n+1) { transform: rotate(-.8deg); } .nota:nth-child(3n+2) { transform: rotate(.7deg); background: #FFE9EE; } .nota:nth-child(3n) { transform: rotate(-.3deg); background: #E8F7DA; }
.nota::before { content: ''; position: absolute; top: -9px; left: 50%; margin-left: -10px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF8E9E, #D93A3A 60%); border: 3px solid var(--out); }
.nota__cli { display: flex; align-items: center; gap: 10px; }
.nota__cli .cara { width: 52px; height: 52px; }
.nota__cli b { font: 400 17.5px/1.1 var(--f-d); display: block; }
.nota__cli small { display: block; font-size: 13.5px; color: var(--tinta2); line-height: 1.2; font-style: italic; }
.nota__pide { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center; margin: 10px 0 8px; padding: 7px 9px; background: rgba(51,36,26,.09); border-radius: 8px; }
.nota__pide svg { width: 62px; height: 62px; }
.nota__peso { font: 400 23px/1 var(--f-d); }
.nota__det { font-size: 13.5px; color: var(--tinta2); font-weight: 500; line-height: 1.2; }
.nota .barra { background: #D9C48E; }
.nota__prog { display: flex; justify-content: space-between; font-size: 13px; color: var(--tinta2); font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.nota__paga { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; font-weight: 600; font-size: 14.5px; }
.nota__paga .plata { font: 400 21px var(--f-d); }
.nota__paga small { display: block; font-size: 12.5px; color: var(--tinta2); line-height: 1.15; font-weight: 500; }
.nota__acciones { display: flex; gap: 7px; }
.nota__acciones .btn:first-child { flex: 1; }
.nota--espera { background: rgba(255,243,204,.55) !important; text-align: center; color: var(--tinta); padding: 26px 14px; border-style: dashed; }

/* ---------- Bloqueo ---------- */
.bloqueo { position: relative; max-width: 460px; margin: 24px auto 0; text-align: center; background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r-l); box-shadow: 0 6px 0 var(--out); padding: 20px 18px; }
.bloqueo__ico { width: 76px; height: 76px; margin: 0 auto 8px; }
.bloqueo h2 { font-size: 26px; }
.bloqueo p { color: var(--txt2); margin: 8px 0 12px; }

/* ---------- Banda ---------- */
.fondo-banda { min-height: 100%; background-color: #231733; background-image: linear-gradient(180deg, rgba(141,95,224,.2), transparent 300px); }
.banda-head { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; margin-bottom: 14px; }
.banda-head__em { width: 88px; } .banda-head__em svg { width: 100%; height: auto; }
.banda-head h2 { font-size: 25px; }
.banda-head .barra { margin-top: 7px; }
.banda-tag { display: inline-block; font: 400 13px var(--f-d); padding: 1px 7px; background: var(--ber-600); border: 2px solid var(--out); border-radius: 6px; margin-left: 4px; vertical-align: 3px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.perk { padding: 7px 4px; background: var(--ber-800); border: 3px solid var(--out); border-radius: 12px; text-align: center; }
.perk b { display: block; font: 400 19px var(--f-d); }
.perk small { font-size: 12.5px; color: var(--txt2); line-height: 1.1; display: block; }
.encargo { background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r); box-shadow: 0 4px 0 var(--out); padding: 12px; }
.encargo__top { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.encargo__top svg { width: 64px; height: 64px; }
.encargo h4 { font-size: 18px; }
.encargo__frase { font-size: 13.5px; color: var(--txt2); font-style: italic; line-height: 1.2; }
.encargo__peso { font: 400 21px var(--f-d); color: var(--hoja-l); margin-top: 2px; }
.encargo__barra { display: flex; height: 18px; margin: 10px 0 4px; background: var(--ber-950); border: 3px solid var(--out); border-radius: 9px; overflow: hidden; }
.encargo__barra .mio { background: var(--hoja); box-shadow: inset 0 2px 0 rgba(255,255,255,.4); transition: width .4s var(--ease); }
.encargo__barra .otros { background: #8D5FE0; box-shadow: inset 0 2px 0 rgba(255,255,255,.25); transition: width .4s var(--ease); }
.encargo__leyenda { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 13px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.encargo__leyenda b { color: var(--hoja-l); }
.encargo__paga { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 9px 0; padding: 7px 10px; background: rgba(255,201,60,.1); border-radius: 10px; font-size: 14px; }
.encargo__ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.encargo__ctrl .btn { flex: 1; }
.miembro { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 2px solid rgba(255,255,255,.06); }
.miembro:last-child { border-bottom: 0; }
.miembro.is-yo { background: rgba(139,227,43,.12); border-radius: 9px; }
.miembro__pos { width: 22px; text-align: center; font: 400 16px var(--f-d); color: var(--txt2); }
.miembro b { font-weight: 600; font-size: 15px; }
.miembro small { display: block; font-size: 12.5px; color: var(--txt2); }
.miembro__g { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.nivel-banda { display: grid; grid-template-columns: 38px 1fr 1fr 1fr 1.2fr; gap: 3px; align-items: center; padding: 8px 8px; font-size: 13.5px; text-align: center; border-bottom: 2px solid rgba(255,255,255,.06); font-variant-numeric: tabular-nums; }
.nivel-banda.is-hd { font-weight: 700; color: var(--txt2); font-size: 12.5px; }
.nivel-banda.is-act { background: rgba(139,227,43,.14); border-radius: 9px; }
.nivel-banda b { font: 400 17px var(--f-d); }
.banda-card { display: grid; grid-template-columns: 62px 1fr; gap: 11px; align-items: center; padding: 11px; background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r); box-shadow: 0 4px 0 var(--out); }
.banda-card svg { width: 62px; height: auto; }
.banda-card h4 { font-size: 18px; }
.banda-card p { font-size: 13.5px; color: var(--txt2); line-height: 1.22; }
.banda-card__dat { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 13px; color: var(--hoja-l); font-weight: 600; margin: 3px 0 7px; }
.selector-emblema { display: flex; flex-wrap: wrap; gap: 5px; }
.selector-emblema button { width: 44px; height: 44px; border: 3px solid var(--out); border-radius: 10px; background: var(--ber-700); padding: 4px; display: grid; place-items: center; }
.selector-emblema button.is-on { border-color: var(--hoja); background: var(--ber-600); }
.selector-emblema svg { width: 100%; height: 100%; }
.selector-emblema i { display: block; width: 100%; height: 100%; border-radius: 5px; }

/* ---------- Vecinos ---------- */
.fondo-calle { min-height: 100%; background: linear-gradient(180deg, #1B1A52, #4B2470 55%, #2A1A3A); }
.vecino { display: grid; grid-template-columns: 58px 1fr auto; gap: 11px; align-items: center; padding: 10px 11px; background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r); box-shadow: 0 4px 0 var(--out); }
.vecino h4 { font-size: 17px; }
.vecino p { font-size: 13.5px; color: var(--txt2); line-height: 1.2; font-style: italic; }
.vecino__sed { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: #8FD3FF; margin-top: 2px; }
.vecino__sed i { width: 16px; height: 16px; display: block; }
.visita__bar { position: absolute; z-index: 42; left: 10px; right: 10px; top: calc(var(--hud-h) + var(--safe-t) + 2px); display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; background: var(--papel); color: var(--tinta); border: 3px solid var(--out); border-radius: 15px; box-shadow: 0 4px 0 var(--out); max-width: 400px; }
@media (min-width: 760px) { .visita__bar { left: 18px; right: auto; width: 360px; } }
.visita .herramientas { left: 8px; right: 8px; bottom: calc(var(--dock-h) + var(--safe-b) + 10px); justify-content: center; }
@media (min-width: 760px) { .visita .herramientas { bottom: calc(var(--dock-h) + 26px); } }
.visita { --deco-mt: 62px; }
@media (min-width: 1280px) { .visita { --deco-mt: 0px; } }
.visita__bar b { display: block; font: 400 16px/1.1 var(--f-d); }
.visita__bar small { display: block; font-size: 13px; color: var(--tinta2); line-height: 1.2; }
.visita__bar .det { flex: 1; min-width: 0; }

/* ---------- Billetera ---------- */
.fondo-billetera { min-height: 100%; background: linear-gradient(180deg, #12382F, var(--ber-900) 320px); }
.saldos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.saldo { padding: 11px 12px; border: 3px solid var(--out); border-radius: var(--r); box-shadow: 0 4px 0 var(--out); }
.saldo--wc { background: linear-gradient(160deg, #6E4B06, #3B2807); }
.saldo--cash { background: linear-gradient(160deg, #0F5C47, #0B342B); }
.saldo .fila svg { width: 30px; height: 30px; }
.saldo__n { font: 400 28px/1.1 var(--f-d); margin-top: 4px; font-variant-numeric: tabular-nums; }
.saldo small { display: block; font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.2; }
.opciones { display: flex; flex-wrap: wrap; gap: 7px; }
.opcion { min-height: 44px; padding: 7px 14px; background: var(--ber-700); border: 3px solid var(--out); border-radius: 12px; font-weight: 600; }
.opcion.is-on { background: var(--hoja); color: var(--hoja-t); }
.direccion { display: flex; gap: 7px; align-items: center; padding: 9px 11px; background: var(--ber-950); border: 3px solid var(--out); border-radius: 12px; font-size: 13.5px; word-break: break-all; color: var(--txt2); }
.aviso { padding: 10px 12px; background: rgba(77,184,255,.13); border: 3px solid #1F6FB0; border-radius: 12px; font-size: 14px; color: #CDEBFF; }
.aviso--oro { background: rgba(255,201,60,.12); border-color: var(--wc-d); color: #FFEDB8; }
.mov { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 2px solid rgba(255,255,255,.06); font-size: 14.5px; }
.mov:last-child { border-bottom: 0; }
.mov small { display: block; color: var(--txt3); font-size: 12.5px; }
.mov__m { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mov__m.is-mas { color: var(--hoja-l); } .mov__m.is-menos { color: #FF9EAA; }
.estado { padding: 1px 7px; border-radius: 7px; font-size: 12.5px; font-weight: 600; background: var(--wc); color: #2E1E02; }
.estado--pagado { background: var(--hoja); color: var(--hoja-t); }

/* ---------- Más y perfil ---------- */
.menu-mas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.menu-mas a, .menu-mas button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r); box-shadow: 0 4px 0 var(--out); text-decoration: none; text-align: center; font-family: var(--f-d); font-size: 17px; }
.menu-mas i { display: block; width: 56px; height: 56px; }
.menu-mas small { font: 500 13px var(--f-u); color: var(--txt2); line-height: 1.2; }
.datos-perfil { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.dato { padding: 8px 10px; background: var(--ber-850); border: 2.5px solid var(--out); border-radius: 11px; }
.dato b { display: block; font: 400 20px var(--f-d); font-variant-numeric: tabular-nums; }
.dato small { font-size: 12.5px; color: var(--txt2); }
.interruptor { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; font-weight: 500; width: 100%; }
.interruptor i { width: 46px; height: 26px; border-radius: 14px; background: var(--ber-950); border: 3px solid var(--out); position: relative; display: block; transition: background .15s; flex: none; }
.interruptor i::after { content: ''; position: absolute; top: 1px; left: 1px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s var(--rebote); }
.interruptor.is-on i { background: var(--hoja-d); } .interruptor.is-on i::after { left: 21px; }

/* ---------- Subida de nivel ---------- */
.subida { text-align: center; }
.subida__n { width: 110px; height: 110px; margin: 0 auto 6px; display: grid; place-items: center; background: var(--hoja); color: var(--hoja-t); font: 400 54px var(--f-d); border: 4px solid var(--out); border-radius: 32px; box-shadow: 0 6px 0 var(--out); transform: rotate(-4deg); animation: nivelEntra .6s var(--rebote); }
@keyframes nivelEntra { from { transform: rotate(-30deg) scale(.3); opacity: 0; } }
.subida h3 { font-size: 27px; }
.subida__lista { margin: 12px 0; text-align: left; display: grid; gap: 7px; }
.subida__lista div { display: flex; align-items: center; gap: 9px; padding: 6px 10px; background: var(--ber-700); border: 2.5px solid var(--out); border-radius: 11px; font-weight: 600; font-size: 14.5px; }
.subida__lista svg { width: 32px; height: 32px; flex: none; }

/* ---------- Plantar ---------- */
.elegir-cepa { display: grid; gap: 8px; }
.elegir-cepa button { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 11px; padding: 8px 11px; background: var(--ber-700); border: 3px solid var(--out); border-radius: 14px; text-align: left; box-shadow: 0 3px 0 var(--out); }
.elegir-cepa button svg { width: 56px; height: 66px; }
.elegir-cepa b { display: block; font: 400 17px var(--f-d); }
.elegir-cepa small { display: block; font-size: 13px; color: var(--txt2); line-height: 1.2; }
.tres { display: inline-flex; gap: 3px; margin-top: 3px; }
.tres i { width: 11px; height: 11px; border-radius: 50%; background: #A9743F; border: 2px solid var(--out); }
.tres i.off { background: transparent; }
.ficha-planta { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: end; }
.ficha-planta__art { position: relative; height: 150px; }
.ficha-planta__art .planta-svg { position: absolute; left: 0; bottom: 42px; width: 100%; height: auto; overflow: visible; }
.ficha-planta__art .maceta-svg { position: absolute; left: 12%; bottom: 0; width: 76%; height: auto; }
.ficha-dato { font-size: 14.5px; margin-bottom: 7px; }
.ficha-dato .fila { justify-content: space-between; margin-bottom: 2px; }

/* ---------- Notificaciones ---------- */
.aviso-fila { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-bottom: 2px solid rgba(255,255,255,.06); font-size: 14.5px; line-height: 1.25; }
.aviso-fila:last-child { border-bottom: 0; }
.aviso-fila i { width: 28px; height: 28px; display: block; flex: none; }
.aviso-fila small { display: block; color: var(--txt3); font-size: 12.5px; }

/* ---------- Salas y campos ---------- */
.lugares { display: grid; gap: 16px; }
.lugar { background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r-l); box-shadow: 0 5px 0 var(--out); overflow: hidden; padding-bottom: 12px; }
.lugar > .btn, .lugar > .barra, .lugar > .lugar__estado { margin-left: 12px; margin-right: 12px; width: calc(100% - 24px); }
.lugar > .barra { margin-bottom: 10px; }
.lugar__vista { position: relative; aspect-ratio: 4 / 1; min-height: 92px; overflow: hidden; border-bottom: 3px solid var(--out); }
.lugar__fondo { position: absolute; inset: 0; }
.lugar__vista .deco-sala { position: absolute; inset: 0; width: 100%; height: 100%; }
.lugar__cuerpo { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px; align-items: center; }
.lugar__cap { min-width: 72px; padding: 6px 8px; text-align: center; background: var(--papel); color: var(--tinta); border: 3px solid var(--out); border-radius: 13px; box-shadow: 0 3px 0 var(--out); transform: rotate(-2deg); }
.lugar__cap b { display: block; font: 400 28px/1 var(--f-d); }
.lugar__cap small { font-size: 12.5px; font-weight: 600; }
.lugar__txt h3 { font-size: 21px; }
.lugar__txt p { font-size: 14.5px; color: var(--txt2); line-height: 1.28; margin-top: 2px; }
.lugar__estado { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 14px; margin-bottom: 5px; }
.lugar__espera { color: #FFD95E; font-weight: 600; }
@media (min-width: 760px) { .lugar__vista { min-height: 0; } }

/* ---------- Eventos ---------- */
.fondo-eventos { min-height: 100%; position: relative; background: linear-gradient(180deg, #2B1747, #1F1230 420px); }
.banderines { position: absolute; left: 0; right: 0; top: calc(var(--hud-h) + var(--safe-t) - 2px); height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='34'%3E%3Cpath d='M0 2Q60 12 120 2' fill='none' stroke='%231A1024' stroke-width='3'/%3E%3Cpath d='M6 3L18 31 32 6Z' fill='%23E23F6B' stroke='%231A1024' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M46 7L60 33 74 7Z' fill='%23FFC93C' stroke='%231A1024' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M88 6L102 31 114 3Z' fill='%2346E0B4' stroke='%231A1024' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x top left; pointer-events: none; }
.pagina--eventos { padding-top: calc(var(--hud-h) + var(--safe-t) + 44px); }
.eventos { display: grid; gap: 16px; }
.evento { display: grid; grid-template-columns: 1fr; background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r-l); box-shadow: 0 5px 0 var(--out); overflow: hidden; }
.evento__art { position: relative; display: flex; justify-content: center; padding: 12px 12px 4px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--glow) 34%, transparent), transparent 70%), var(--ber-700); border-bottom: 3px solid var(--out); }
.tombola { width: 168px; height: auto; display: block; }
.tombola-giro { animation: girar 11s linear infinite; transform-origin: 0 0; }
.evento__premio { position: absolute; right: 10px; bottom: 8px; display: flex; align-items: flex-end; gap: 2px; }
.evento__premio svg { width: 54px; height: auto; transform: rotate(5deg); filter: drop-shadow(0 3px 0 rgba(0,0,0,.3)); }
.evento__premio b { font: 400 23px/1 var(--f-d); color: #fff; text-shadow: 0 2px 0 var(--out), 2px 0 0 var(--out), -2px 0 0 var(--out); }
.evento__cuerpo { padding: 13px 14px 14px; min-width: 0; }
.evento__tag { display: inline-block; padding: 2px 9px; background: var(--papel); color: var(--tinta); border: 2.5px solid var(--out); border-radius: 8px; font: 400 13px var(--f-d); transform: rotate(-1.5deg); }
.evento h2 { font-size: 25px; margin-top: 5px; }
.evento__cuerpo > p { color: var(--txt2); font-size: 15px; margin-top: 3px; }
.evento__cuerpo > p b { color: #fff; font-weight: 600; }
.evento__datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 11px 0; }
.evento__datos > div { padding: 6px 4px; text-align: center; background: var(--ber-900); border: 2.5px solid var(--out); border-radius: 11px; }
.evento__datos small { display: block; font-size: 12px; color: var(--txt3); line-height: 1.1; }
.evento__datos b { font: 400 16.5px var(--f-d); white-space: nowrap; }
.evento__btn { min-height: 52px; font-size: 19px; }
.evento__anotado { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(139,227,43,.13); border: 3px dashed var(--hoja-d); border-radius: 13px; }
.evento__anotado b { display: block; font: 400 17px var(--f-d); }
.evento__anotado small { font-size: 13px; color: var(--txt2); }
.evento__previo { margin-top: 12px; padding-top: 10px; border-top: 2px dashed rgba(255,255,255,.14); font-size: 14.5px; }
.evento__previo .fila b { font-weight: 600; }
.evento__estado { margin: 3px 0 6px; }
.evento__gano { color: var(--wc); font: 400 16px var(--f-d); }
.evento__nombres { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.evento__nombre { padding: 1px 8px; background: var(--ber-700); border-radius: 8px; font-size: 13px; }
.evento__nombre.is-yo { background: var(--wc); color: #2E1E02; font-weight: 700; }
@media (min-width: 700px) { .evento { grid-template-columns: 250px 1fr; } .evento__art { border-bottom: 0; border-right: 3px solid var(--out); align-items: center; } .tombola { width: 210px; } }
.subida__paquete { width: 92px; margin: 0 auto 8px; animation: nivelEntra .6s var(--rebote); }
.subida__paquete svg { width: 100%; height: auto; }

/* ---------- VIP ---------- */
.fondo-vip { min-height: 100%; background: radial-gradient(circle at 50% 18%, rgba(255,201,60,.22), transparent 42%), linear-gradient(180deg, #3A1B57, #1F1230 520px); }
.fondo-vip .pagina { max-width: 620px; }
.vip__cab { text-align: center; margin-bottom: 14px; }
.vip__corona { width: 92px; height: 92px; margin: 0 auto 2px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.vip__cab .titulo { font-size: 34px; }
.vip__precio { margin-top: 4px; font-size: 17px; color: var(--txt2); }
.vip__precio .plata { font: 400 25px var(--f-d); color: var(--cash); margin-right: 2px; vertical-align: -2px; }
.vip__estado { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 9px 12px; margin-bottom: 12px; background: rgba(255,201,60,.16); border: 3px solid var(--wc-d); border-radius: 14px; font-size: 14.5px; }
.vip__estado b { color: var(--wc); font: 400 16px var(--f-d); }
.vip__lista { list-style: none; margin: 0 0 14px; padding: 0; background: var(--ber-800); border: 3px solid var(--out); border-radius: var(--r-l); box-shadow: 0 5px 0 var(--out); }
.vip__lista li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 10px 13px; border-bottom: 2px solid rgba(255,255,255,.06); }
.vip__lista li:last-child { border-bottom: 0; }
.vip__lista i { display: flex; justify-content: center; align-items: center; width: 48px; height: 50px; }
.vip__lista i svg { width: auto; height: 100%; max-width: 48px; }
.vip__lista b { display: block; font: 400 17px/1.15 var(--f-d); }
.vip__lista small { display: block; font-size: 14px; color: var(--txt2); line-height: 1.25; }
.vip__btn { min-height: 56px; font-size: 20px; }

/* ---------- Chat ---------- */
.chat { position: absolute; z-index: 65; top: 0; right: 0; bottom: 0; width: 100%; display: flex; flex-direction: column; background: var(--ber-850); animation: chatEntra .2s var(--ease); }
.chat[hidden] { display: none; }
@keyframes chatEntra { from { transform: translateX(24px); opacity: 0; } }
@media (min-width: 620px) { .chat { top: calc(var(--hud-h) + var(--safe-t)); width: 400px; border-left: 3px solid var(--out); border-top: 3px solid var(--out); border-top-left-radius: 18px; box-shadow: -8px 0 30px rgba(0,0,0,.35); } }
.chat__cab { flex: none; display: flex; align-items: center; gap: 9px; padding: 9px 12px; padding-top: calc(9px + var(--safe-t)); background: var(--ber-700); border-bottom: 3px solid var(--out); }
.chat__cab i { display: block; width: 34px; height: 34px; }
.chat__cab b { display: block; font: 400 18px/1.1 var(--f-d); }
.chat__cab small { font-size: 13px; color: var(--hoja-l); }
.chat__cerrar { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; background: var(--ber-600); border: 3px solid var(--out); border-radius: 11px; font-size: 16px; }
.chat__lista { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px; }
.msg { display: grid; grid-template-columns: 40px 1fr; gap: 9px; padding: 7px 6px; border-radius: 11px; }
.msg.is-yo { background: rgba(139,227,43,.1); }
.msg__cara { display: block; }
.msg .cara--chica { display: block; width: 40px; height: 40px; }
.msg.is-vip .cara--chica { border-color: var(--wc); box-shadow: 0 0 8px rgba(255,201,60,.55); }
.msg__cuerpo { min-width: 0; }
.msg__cab { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; line-height: 1.2; }
.msg__cab b { font-weight: 600; font-size: 14.5px; }
.msg.is-vip .msg__cab b { color: var(--wc); }
.msg__nivel { padding: 0 6px; background: var(--ber-600); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--hoja-l); }
.msg__vip { padding: 0 6px; background: var(--wc); color: #2E1E02; border-radius: 6px; font: 400 12px/1.4 var(--f-d); }
.msg time { margin-left: auto; font-size: 12px; color: var(--txt3); white-space: nowrap; }
.msg p { margin-top: 1px; font-size: 15px; line-height: 1.3; color: var(--txt); overflow-wrap: anywhere; }
.chat__form { flex: none; display: flex; gap: 7px; padding: 9px 10px calc(9px + var(--safe-b)); background: var(--ber-800); border-top: 3px solid var(--out); }
.chat__form input { flex: 1; min-width: 0; min-height: 42px; padding: 7px 12px; background: var(--ber-950); border: 3px solid var(--out); border-radius: 12px; color: var(--txt); font-size: 16px; }
.chat__form input:focus { outline: none; border-color: var(--hoja); }
.chat__form .btn { min-height: 42px; }

/* ---------- Misión que se puede dejar para después ---------- */
.mision-actual__saltar { margin-top: 7px; --c: #E9D9A8; --e: #C9B57C; --t: var(--tinta); min-height: 40px; font-size: 15px; }
.camino li.is-dejada { color: var(--tinta2); font-style: italic; }
.camino li.is-dejada::before { background: #E9D9A8; }
