/* Lo marcado como oculto se oculta siempre, aunque su clase tenga otro display */
[hidden] { display: none !important; }

/* BARRAS — estilos */
:root {
  --bg: #0a0a0b;
  --s1: #141417;
  --s2: #1c1c21;
  --s3: #27272e;
  --line: #2a2a31;
  --tx: #f4f4f5;
  --mu: #9b9ba5;
  --ac: #f5c518;
  --ac-tx: #121212;
  --red: #ff3b5c;
  --ok: #22c55e;
  --warn: #f59e0b;
  --info: #a78bfa;
  --r: 16px;
  --nav: 62px;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #2a2108 0%, transparent 60%), #050506;
  color: var(--tx);
  font: 15px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
img:not([src]), video:not([src]) { visibility: hidden; }
h1, h2, h3, h4, p { margin: 0; }
small { color: var(--mu); }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--mu); }
.small { font-size: 13px; }
.txt-ac { color: var(--ac); }
.txt-warn { color: var(--warn); }
.txt-bad { color: var(--red); }
.pad { padding: 14px 16px 24px; }
.pad-x { padding-left: 16px; padding-right: 16px; }

/* ---------- marco de la app ---------- */
.app-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 600px) {
  .app-frame {
    height: min(calc(100dvh - 40px), 920px);
    margin-top: max(20px, calc((100dvh - 920px) / 2));
    border-radius: 34px;
    border: 1px solid #26262d;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 10px #0d0d0f;
  }
}
.main { position: absolute; inset: 0; display: flex; flex-direction: column; }
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.is-reels .screen { overflow: hidden; }

/* ---------- topbar y nav ---------- */
.topbar {
  height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, .92);
}
.logo, .brand-logo {
  font-family: var(--display); letter-spacing: .04em; font-size: 26px; line-height: 1;
  background: linear-gradient(180deg, #ffe066, var(--ac) 60%, #c79a00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tb-title { font-size: 19px; font-weight: 800; }
.tb-actions { display: flex; gap: 2px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; position: relative; }
.icon-btn:hover { background: var(--s2); }
.icon-btn svg { width: 24px; height: 24px; }
.dot {
  position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 9px; font: 700 10px/17px Inter, sans-serif; font-style: normal; text-align: center;
}
.bottomnav {
  height: calc(var(--nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  flex-shrink: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #0b0b0d; border-top: 1px solid var(--line); position: relative; z-index: 30;
}
.nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--mu); font-size: 10.5px; font-weight: 600; }
.nav-btn svg { width: 25px; height: 25px; }
.nav-btn.active { color: var(--tx); }
.nav-btn.active svg { color: var(--ac); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: var(--s3); color: var(--tx); transition: transform .1s, filter .15s;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ac); color: var(--ac-tx); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--s2); }
.btn-lg { height: 52px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; margin-top: 12px; }
.btn-row .btn { flex: 1; }
.link { color: var(--ac); font-weight: 600; font-size: 13.5px; }
.chev { color: var(--mu); font-size: 22px; line-height: 1; }

/* ---------- auth ---------- */
.auth { position: absolute; inset: 0; overflow-y: auto; }
.auth-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(circle at 50% 20%, #3b2f05, transparent 60%);
}
.auth-bg span { font-family: var(--display); font-size: 150px; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(245, 197, 24, .12); white-space: nowrap; transform: rotate(-8deg) translateX(-20px); }
.auth-inner { position: relative; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 40px 18px 28px; }
.brand { text-align: center; margin-bottom: auto; padding-top: 12vh; }
.brand-logo { font-size: 72px; }
.brand p { color: var(--mu); margin-top: 6px; font-weight: 500; }
.auth-actions { display: grid; gap: 10px; }
.auth-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.roles { display: grid; gap: 10px; }
.role-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: rgba(28, 28, 33, .9); border: 1px solid var(--line); transition: border-color .15s; }
.role-card:hover { border-color: var(--ac); }
.role-card b { display: block; font-size: 16px; }
.role-card small { display: block; margin-top: 2px; }
.role-ico { font-size: 28px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--s3); border-radius: 14px; flex-shrink: 0; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.auth .card { background: rgba(20, 20, 23, .95); }
.login details { margin-top: 8px; }
.login summary { cursor: pointer; color: var(--mu); padding: 8px 0; font-size: 14px; }
.login .link { margin-top: 10px; }
.hint { font-size: 12.5px; color: var(--mu); }

/* ---------- formularios ---------- */
.form { display: grid; gap: 14px; }
.form-head { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.form-head .role-ico { width: 40px; height: 40px; font-size: 22px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--mu); }
.fld input, .fld textarea, .sel, .inline-form input, .cmt-form input {
  width: 100%; background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: none;
}
.fld input:focus, .fld textarea:focus, .sel:focus, .inline-form input:focus, .cmt-form input:focus { border-color: var(--ac); }
.fld textarea { resize: vertical; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sel { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mu) 50%), linear-gradient(135deg, var(--mu) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.sel-sm { padding: 7px 30px 7px 10px; font-size: 13px; width: auto; max-width: 170px; }
.sel-scope { margin-bottom: 12px; }
.avatar-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.avatar-pick small { color: var(--ac); font-weight: 600; }

/* ---------- avatares y badges ---------- */
.av { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 35%, #000)); color: #111; font-weight: 800; font-size: calc(var(--s) * .36); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-sm { --s: 36px; }
.av-md { --s: 48px; }
.av-lg { --s: 64px; }
.av-xl { --s: 86px; }
.ring { padding: 2.5px; border-radius: 50%; background: conic-gradient(var(--lc), color-mix(in srgb, var(--lc) 30%, #000), var(--lc)); flex-shrink: 0; }
.ring > .av { border: 2.5px solid var(--bg); }
.lvl { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--lc); background: color-mix(in srgb, var(--lc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--lc) 35%, transparent); white-space: nowrap; }
.lvl-sm { font-size: 11px; padding: 2px 7px; }
.lvl-org { --lc: #22d3ee; }
.verified { color: #22d3ee; font-size: .8em; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(0, 0, 0, .55); border: 1px solid; backdrop-filter: blur(6px); }
.badge-ok { color: var(--ok); border-color: rgba(34, 197, 94, .45); }
.badge-warn { color: var(--warn); border-color: rgba(245, 158, 11, .45); }
.badge-off { color: var(--mu); border-color: var(--line); }
.badge-info { color: var(--info); border-color: rgba(167, 139, 250, .45); }
.badge-done { color: var(--tx); border-color: var(--line); }
.badge-dist { color: var(--tx); border-color: var(--line); }
.badge-num { background: var(--red); color: #fff; font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; }
.pill { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.pill-ok { background: rgba(34, 197, 94, .12); color: var(--ok); }
.pill-wait { background: rgba(245, 158, 11, .12); color: var(--warn); }
.pill-bad { background: rgba(255, 59, 92, .12); color: var(--red); }
.prog { height: 6px; border-radius: 4px; background: var(--s3); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--ac); border-radius: 4px; transition: width .4s; }

/* ---------- inicio ---------- */
.hero-card { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: linear-gradient(135deg, #1d1a0d, var(--s1) 60%); border: 1px solid #3a320f; margin-bottom: 18px; }
.hero-org { background: linear-gradient(135deg, #0b2228, var(--s1) 60%); border-color: #164650; }
.hero-hi { font-weight: 800; font-size: 17px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--mu); margin: 4px 0 8px; }
.sec { margin-top: 26px; }
.sec > h3, .card > h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sec-head h2 { font-size: 19px; font-weight: 800; }
.sub-head { font-size: 13px; font-weight: 700; color: var(--mu); margin: 18px 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 13px; border-radius: 99px; background: var(--s2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--ac); color: var(--ac-tx); border-color: var(--ac); }
.geo-row { font-size: 13px; color: var(--mu); margin: -4px 0 12px; }
.events { display: grid; gap: 14px; }

/* tarjeta de evento */
.ev-card { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ev-poster {
  position: relative; cursor: pointer; padding: 14px 16px 16px; min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--c) 65%, transparent), transparent 62%), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 10px), linear-gradient(135deg, #1b1b20, #0d0d10);
}
.ev-top { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.ev-kicker { font-size: 12px; font-weight: 700; color: var(--c, var(--ac)); text-transform: uppercase; letter-spacing: .06em; }
.ev-title { font-family: var(--display); font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; margin-top: 4px; }
.ev-poster-big { min-height: 190px; padding-top: 60px; }
.ev-poster-big .ev-title { font-size: 44px; }
.ev-poster-sm { min-height: 120px; border-radius: 16px; margin-bottom: 4px; }
.ev-poster-sm .ev-kicker { color: var(--mu); text-transform: none; letter-spacing: 0; margin-top: 6px; }
.ev-body { padding: 14px 16px 6px; cursor: pointer; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13.5px; margin-bottom: 12px; }
.ev-grid .span2 { grid-column: span 2; }
.plazas { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; margin: 4px 0 8px; }
.plazas-top { display: flex; justify-content: space-between; color: var(--mu); }
.ev-foot { padding: 6px 16px 16px; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-cta { margin-bottom: 14px; }

/* podio */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; position: relative; min-width: 0; }
.pod b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.pod small { font-size: 12px; }
.pod-step { width: 100%; margin-top: 6px; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font-family: var(--display); font-size: 26px; background: var(--s2); border: 1px solid var(--line); }
.pod-1 .pod-step { height: 74px; background: linear-gradient(180deg, #4a3b07, #1c1708); border-color: #6b560e; color: var(--ac); }
.pod-2 .pod-step { height: 54px; color: #d4d4d8; }
.pod-3 .pod-step { height: 40px; color: #d08b4a; }
.crown { font-size: 22px; margin-bottom: -6px; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.org-mini { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px 10px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.org-mini b { font-size: 13.5px; line-height: 1.2; }
.org-mini small { font-size: 11.5px; }

/* ---------- reels ---------- */
.reels-wrap { position: relative; height: 100%; }
.reel-filters { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 4px; padding: 14px 10px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.rf { padding: 6px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.rf.on { color: #fff; background: rgba(255, 255, 255, .16); }
.reels { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--g); display: grid; place-items: center; }
.reel-bg { position: absolute; inset: 0; display: grid; place-items: center; }
.reel-media { width: 100%; height: 100%; object-fit: cover; }
.reel-center { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 64px 120px 28px; text-align: center; }
.reel-type-big { font-size: 40px; opacity: .9; }
.reel-quote { margin: 0; font-family: var(--display); font-size: 34px; line-height: 1.08; text-transform: uppercase; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.reel-center audio { width: 100%; max-width: 280px; }
.eq { display: flex; gap: 4px; align-items: end; height: 40px; }
.eq i { width: 5px; background: var(--ac); border-radius: 3px; animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(odd) { animation-duration: .7s; }
.eq i:nth-child(3n) { animation-duration: 1.3s; }
@keyframes eq { from { height: 6px; } to { height: 40px; } }
.reel-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .78)); }
.reel-side { position: absolute; right: 8px; bottom: 26px; display: flex; flex-direction: column; gap: 18px; z-index: 2; }
.side-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.side-btn svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); transition: transform .15s; }
.side-btn:active svg { transform: scale(.85); }
.side-btn.liked svg { fill: var(--red); stroke: var(--red); animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.3); } }
.reel-info { position: absolute; left: 14px; right: 70px; bottom: 22px; z-index: 2; display: grid; gap: 7px; }
.reel-author { display: flex; align-items: center; gap: 8px; }
.reel-author b { font-size: 15px; }
.reel-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: rgba(255, 255, 255, .75); }
.chip-sm { background: rgba(255, 255, 255, .15); padding: 2px 8px; border-radius: 99px; font-weight: 600; color: #fff; }
.reel-desc { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag { color: var(--ac); font-weight: 600; cursor: pointer; }
.mute-hint { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .6); padding: 5px 10px; border-radius: 99px; font-size: 12px; pointer-events: none; }
.burst { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font-size: 110px; color: var(--red); pointer-events: none; animation: burst .8s ease-out forwards; text-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -70%) scale(1); opacity: 0; } }
.post-view { height: 100%; }
.post-view .reel { height: 100%; }

/* ---------- buscar ---------- */
.search-box { display: flex; align-items: center; gap: 10px; background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 46px; }
.search-box:focus-within { border-color: var(--ac); }
.search-box svg { width: 20px; height: 20px; color: var(--mu); flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: 0; outline: none; height: 100%; min-width: 0; }
.seg { display: flex; gap: 4px; padding: 4px; margin: 12px 0 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--mu); text-align: center; white-space: nowrap; }
.seg button.on { background: var(--s3); color: var(--tx); }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { padding: 7px 12px; border-radius: 99px; background: var(--s2); border: 1px solid var(--line); color: var(--ac); font-weight: 600; font-size: 13px; }
.tag-chip small { margin-left: 3px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--g); display: grid; place-items: center; border-radius: 4px; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile-q { padding: 10px; font-family: var(--display); font-size: 14px; line-height: 1.1; text-transform: uppercase; text-align: center; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tile-ico { position: absolute; top: 6px; right: 6px; font-size: 13px; }
.tile-likes { position: absolute; left: 6px; bottom: 5px; font-size: 11.5px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.list { display: grid; gap: 8px; }
.row-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); }
.row-btn:hover { border-color: #3a3a43; }
.row-btn b { display: block; font-size: 14.5px; }
.row-btn small { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips-scroll { margin-bottom: 8px; }
.rank-sec { margin-top: 14px; }
.rank-sec-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; margin-bottom: 6px; border-radius: 10px; font-weight: 800; color: var(--lc); background: color-mix(in srgb, var(--lc) 10%, transparent); border-left: 3px solid var(--lc); }
.rank-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.rank-row:hover { background: var(--s1); }
.rank-row b { display: block; font-size: 14.5px; }
.rank-row small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-pos { width: 28px; text-align: center; font-weight: 800; color: var(--mu); flex-shrink: 0; }
.rank-pos.top { font-family: var(--display); font-size: 20px; }
.top-1 { color: var(--ac); }
.top-2 { color: #d4d4d8; }
.top-3 { color: #d08b4a; }
.rank-pts { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.rank-pts b { font-size: 15px; }
.pts-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.pts-table div { background: var(--s2); border-radius: 12px; padding: 10px; }
.pts-table b { display: block; color: var(--ac); font-size: 18px; }
.pts-table small { font-size: 12px; }
.levels { display: grid; gap: 6px; }
.lv-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--lc) 8%, transparent); }
.lv-row b { flex: 1; color: var(--lc); }

/* ---------- perfil ---------- */
.profile { padding: 16px 16px 30px; }
.p-head { display: flex; align-items: center; gap: 18px; }
.p-stats { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 19px; font-weight: 800; }
.stat small { font-size: 11.5px; }
.p-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.p-id h2 { font-size: 20px; font-weight: 800; }
.p-loc { font-size: 13px; color: var(--mu); margin-top: 4px; }
.p-loc b { color: var(--tx); }
.p-bio { margin-top: 8px; font-size: 14px; }
.lvl-card { margin-top: 14px; padding: 14px; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--lc) 16%, var(--s1)), var(--s1) 70%); border: 1px solid color-mix(in srgb, var(--lc) 35%, var(--line)); display: grid; gap: 10px; }
.lvl-top { display: flex; align-items: center; gap: 12px; }
.lvl-ico { font-size: 30px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: rgba(0, 0, 0, .3); }
.lvl-top small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.lvl-top b { font-size: 20px; font-weight: 800; color: var(--lc); }
.lvl-pts { text-align: right; }
.lvl-pts b { font-family: var(--display); font-size: 28px; color: var(--tx); font-weight: 400; display: block; line-height: 1; }
.lvl-next { font-size: 13px; color: var(--mu); }
.lvl-next b { color: var(--tx); }
.lvl-pos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lvl-pos button { min-width: 0; background: rgba(0, 0, 0, .28); border-radius: 12px; padding: 8px 4px; text-align: center; }
.lvl-pos b { display: block; font-family: var(--display); font-size: 20px; font-weight: 400; }
.lvl-pos small { font-size: 11px; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.lvl-extra { font-size: 12.5px; color: var(--mu); }
.p-actions { display: flex; gap: 8px; margin-top: 14px; }
.p-actions .btn { flex: 1; }
.p-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 18px -16px 3px; border-bottom: 1px solid var(--line); }
.p-tabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 0; color: var(--mu); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.p-tabs button span { font-size: 17px; }
.p-tabs button small { font-size: 10.5px; font-weight: 600; }
.p-tabs button.on { border-color: var(--tx); color: var(--tx); }
.p-tabs button.on small { color: var(--tx); }
.profile .grid { margin: 0 -16px; }
.profile > .list { margin-top: 12px; }
.date-box { width: 46px; height: 46px; border-radius: 12px; background: var(--s3); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.date-box b { font-size: 17px !important; line-height: 1; }
.date-box small { font-size: 10.5px !important; text-transform: uppercase; }
.hist-res { font-size: 12.5px; font-weight: 700; color: var(--mu); white-space: nowrap; }
.hist-res.gold { color: var(--ac); }
.cta-card { margin-top: 16px; padding: 14px; border-radius: var(--r); background: linear-gradient(135deg, #1d1a0d, var(--s1)); border: 1px solid #3a320f; display: grid; gap: 6px; justify-items: start; }

/* organización */
.org-banner { height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 70% 0%, color-mix(in srgb, var(--c) 70%, transparent), transparent 65%), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 12px), #111114; }
.org-banner span { font-family: var(--display); font-size: 46px; line-height: .95; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 60%, transparent); text-align: center; padding: 0 10px; opacity: .8; }
.org-head { display: flex; align-items: flex-end; gap: 14px; padding: 0 16px; margin-top: -36px; }
.org-head .av { border: 4px solid var(--bg); }
.org-head h2 { font-size: 19px; font-weight: 800; line-height: 1.2; }
.org-stats { padding: 14px 16px 0; }
.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.crew-item { background: var(--s2); border-radius: 12px; padding: 10px 12px; display: grid; }
.crew-item span { font-size: 20px; }
.crew-item small { font-size: 11.5px; }
.jury { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.jury-chip { background: var(--s2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 600; }

/* detalle de evento */
.info-list { display: grid; gap: 12px; padding: 14px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.info-row small { font-size: 11.5px; display: block; }
.info-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--s2); display: grid; place-items: center; flex-shrink: 0; }
.ev-detail + .pad, .info-list + .plazas { margin-top: 12px; }
.av-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
.av-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.av-item small { font-size: 11.5px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx); }
.champ-card { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #3b2f05, #16130a); border: 1px solid #6b560e; margin-bottom: 10px; position: relative; }
.champ-card small { display: block; color: var(--ac); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.champ-card b { font-family: var(--display); font-size: 26px; font-weight: 400; }
.champ-card .crown { position: absolute; top: 4px; left: 52px; }
.card .list + .muted { margin-top: 10px; }

/* panel organizador */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; }
.kpi b { display: block; font-size: 20px; font-weight: 800; }
.kpi small { font-size: 11.5px; line-height: 1.2; display: block; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: 10px; font-size: 13px; }
.bar-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-lbl small { display: block; font-size: 11px; }
.bar { height: 10px; background: var(--s3); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ac); border-radius: 6px; }
.bar-alt i { background: #22d3ee; }
.bar-val { text-align: right; font-weight: 700; }
.count { background: var(--s3); color: var(--mu); font-size: 12px; padding: 1px 8px; border-radius: 99px; }
.inline-form { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; color: var(--mu); }
.inline-form label { flex: 1; }
.inline-form input { width: 84px; padding: 8px 10px; }
.ins-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.ins-row:first-of-type { border-top: 0; }
.ins-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ins-user b { display: block; font-size: 14px; }
.ins-user small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-btns { display: flex; gap: 6px; }
.res-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }

/* nueva publicación */
.type-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--s1); border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; cursor: pointer; }
.type-opt em { font-style: normal; font-size: 24px; }
.type-opt input:checked + span { border-color: var(--ac); background: #1d1a0d; }
.drop { cursor: pointer; }
.drop-inner { min-height: 160px; border: 1.5px dashed #3a3a43; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; overflow: hidden; }
.drop-inner img, .drop-inner video { max-width: 100%; max-height: 280px; border-radius: 10px; }
.drop-inner audio { width: 100%; }
.drop-ico { font-size: 30px; }
.swatches { display: flex; gap: 10px; }
.sw { width: 40px; height: 40px; border-radius: 50%; background: var(--g); cursor: pointer; border: 2px solid transparent; }
.sw input { display: none; }
.sw:has(input:checked) { border-color: var(--tx); box-shadow: 0 0 0 2px var(--bg) inset; }

/* notificaciones */
.notif { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); font-size: 14px; }
.notif small { display: block; margin-top: 2px; font-size: 12px; }
.notif.new { border-color: #6b560e; background: #17140a; }

/* ---------- overlays y sheets ---------- */
.overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: calc(var(--nav) + env(safe-area-inset-bottom));
  z-index: 20; background: var(--bg); display: flex; flex-direction: column; animation: slideIn .22s ease-out;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.overlay.still { animation: none; }
.ov-head { height: 54px; flex-shrink: 0; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.ov-head h1 { flex: 1; font-size: 16px; font-weight: 800; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-sp { width: 42px; }
.ov-body { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.ov-full .ov-head { position: absolute; top: 0; left: 0; right: 0; z-index: 5; border: 0; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.ov-full .ov-body { overflow: hidden; }
.sheet-backdrop { position: absolute; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 82%; overflow-y: auto; background: var(--s1); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(100%); } }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: #3a3a43; margin: 0 auto 14px; }
.sheet h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.sheet-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: 14px; }
.sheet .hint { margin-bottom: 14px; }
.comments { display: grid; gap: 14px; margin-bottom: 14px; max-height: 45vh; overflow-y: auto; }
.cmt { display: flex; gap: 10px; font-size: 14px; }
.cmt small { display: block; font-size: 11.5px; margin-top: 2px; }
.cmt-form { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--s1); padding-top: 6px; }
.empty { text-align: center; padding: 34px 16px; color: var(--mu); }
.empty span { font-size: 36px; display: block; margin-bottom: 6px; }
.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -20px); z-index: 100; background: #f4f4f5; color: #111; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.rf, .btn-sm, .pill { white-space: nowrap; }
.rf { padding: 6px 9px; }
.btn-row .btn { white-space: nowrap; padding: 0 10px; }

a.row-btn { color: inherit; text-decoration: none; }
.btn-icon { flex: 0 0 42px !important; padding: 0; }
.btn-icon svg { width: 22px; height: 22px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mu); cursor: pointer; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--ac); flex-shrink: 0; }
.check a { color: var(--ac); }

.link-inline { color: var(--ac); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.btn-danger { background: var(--red); color: #fff; }
.ask { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .65); animation: fade .15s; }
.ask-box { width: 100%; max-width: 340px; padding: 18px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.ask-box p { font-size: 15px; line-height: 1.45; }
.legal-modal { position: absolute; inset: 0; z-index: 55; display: flex; flex-direction: column; background: var(--bg); animation: slideIn .2s ease-out; }
.legal-body { flex: 1; overflow-y: auto; padding: 8px 16px 32px; font-size: 14.5px; line-height: 1.6; color: #d4d4d8; }
.legal-body h2 { font-size: 16px; color: var(--ac); margin: 22px 0 6px; }
.legal-body .meta { color: var(--mu); font-size: 13px; }
.legal-body .draft { background: #2a2108; border: 1px solid #6b560e; color: var(--ac); padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 12px 0; }
.legal-body ul { padding-left: 20px; }
.legal-body a { color: var(--ac); }
.btn:focus-visible, .row-btn:focus-visible, .chip:focus-visible, .nav-btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.cta-note { font-size: 13px; color: var(--mu); text-align: center; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; }
.sheet-p { font-size: 14px; margin-bottom: 10px; }

/* quedadas */
.qd-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); cursor: pointer; }
.qd-card:hover { border-color: #3a3a43; }
.qd-title { display: block; font-size: 14.5px; margin-bottom: 2px; }
.qd-card small { display: block; font-size: 12.5px; line-height: 1.4; }
.qd-date { background: rgba(34, 211, 238, .12); }
.qd-date b { color: #22d3ee; }
.qd-poster { background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--c) 55%, transparent), transparent 62%), radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px) 0 0 / 14px 14px, linear-gradient(135deg, #14181c, #0d0d10); }
.sec-sub { margin: -4px 0 12px; }
.txt-ok { color: var(--ok); }
.report-link { display: block; margin: 22px 0 8px; color: var(--mu); }

.storage { margin-top: 10px; display: grid; gap: 2px; }
.storage b { font-size: 22px; font-weight: 800; }

.yt-btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; background: #ff0033; color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.yt-btn:hover { filter: brightness(1.1); }
.fld-hint { font-size: 12px; color: var(--mu); }

/* instalar como app */
.install-card { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 12px; margin: -6px 0 18px; border-radius: var(--r); background: var(--s1); border: 1px dashed #6b560e; }
.install-card img { border-radius: 11px; flex-shrink: 0; }
.install-card b { display: block; font-size: 14px; }
.install-card small { display: block; font-size: 12.5px; line-height: 1.4; }
.install-x { width: 32px; height: 32px; font-size: 14px; color: var(--mu); flex-shrink: 0; }
.install-steps { display: grid; gap: 10px; margin-bottom: 14px; }
.install-steps div { background: var(--s2); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.install-steps small { font-size: 13px; line-height: 1.45; }

/* contacto de inscritos y acciones en comentarios */
.ins-row { flex-wrap: wrap; }
.ins-contact { flex-basis: 100%; display: flex; gap: 8px; padding-left: 46px; }
.ins-contact a { font-size: 13px; font-weight: 600; color: var(--tx); text-decoration: none; padding: 5px 11px; border-radius: 99px; background: var(--s2); }
.cmt-act { font-size: 11.5px; font-weight: 600; color: var(--mu); text-decoration: underline; text-underline-offset: 2px; }
.auth .install-card { margin: 4px 0 0; background: rgba(20, 20, 23, .95); }

/* historias */
.stories-bar { display: flex; gap: 14px; overflow-x: auto; margin: -4px -16px 16px; padding: 2px 16px 6px; scrollbar-width: none; }
.stories-bar::-webkit-scrollbar { display: none; }
.st-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 0 68px; }
.st-item small { font-size: 11.5px; color: var(--tx); max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ring { position: relative; padding: 3px; border-radius: 50%; background: var(--s3); }
.st-ring.unseen { background: conic-gradient(#ffe066, #f5c518, #ff3b5c, #f5c518, #ffe066); }
.st-ring > .av { border: 2.5px solid var(--bg); }
.st-add i { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--ac); color: var(--ac-tx); font-style: normal; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); font-size: 14px; }
.story-viewer { position: absolute; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; animation: fade .15s; }
.st-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.st-bars { position: relative; z-index: 3; display: flex; gap: 4px; padding: 10px 10px 0; }
.st-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.st-bars b { display: block; width: 0; height: 100%; background: #fff; }
.st-bars i.done b { width: 100%; }
.st-head { position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 6px 0 12px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.st-head small { color: rgba(255, 255, 255, .75); }
.st-close { color: #fff; font-size: 18px; }
.st-tap { position: absolute; top: 70px; bottom: 120px; z-index: 2; width: 35%; }
.st-prev { left: 0; }
.st-next { right: 0; width: 65%; }
.st-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 40px 14px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .75)); display: grid; gap: 10px; }
.st-foot p { font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.st-actions { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.drop-story { min-height: 260px; }
.drop-story img, .drop-story video { max-height: 360px; }

/* Respeta la barra de estado del móvil (hora, batería, cámara) cuando la app está instalada a pantalla completa */
.main, .auth, .legal-modal, .story-viewer { top: env(safe-area-inset-top, 0px); }
.overlay { top: env(safe-area-inset-top, 0px); }
.toast { top: calc(18px + env(safe-area-inset-top, 0px)); }
.app-frame { background: var(--bg); }

.demo-logins { display: grid; gap: 6px; }
.demo-logins div { background: var(--s2); border-radius: 10px; padding: 8px 12px; display: grid; }
.demo-logins small { font-size: 11.5px; }
.demo-logins b { font-size: 14px; word-break: break-all; user-select: all; }

/* cartel del evento */
.ev-poster.has-img { background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, .82) 100%), var(--img) center / cover no-repeat, #111; }
.ev-poster.has-img .ev-title { text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.ev-card .ev-poster.has-img { min-height: 170px; }
.drop-poster { min-height: 130px; }
.drop-poster img { max-height: 220px; width: 100%; object-fit: cover; }
.file-btn { cursor: pointer; flex: 0 0 auto; }

/* banner de organización */
.org-banner { position: relative; }
.org-banner.has-img { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55)), var(--img) center / cover no-repeat, #111; }
.org-banner.has-img, .banner-prev { height: 150px; }
.banner-edit { position: absolute; right: 10px; top: 10px; }
.banner-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); }
.banner-pick { display: grid; gap: 6px; cursor: pointer; }
.banner-pick small { color: var(--ac); font-weight: 600; text-align: center; }
.banner-prev { border-radius: 14px; overflow: hidden; display: grid; place-items: center; border: 1.5px dashed #3a3a43;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .3)), var(--img, radial-gradient(circle at 70% 0%, color-mix(in srgb, var(--c) 60%, transparent), transparent 65%)) center / cover no-repeat, #111; }
.banner-prev img { width: 100%; height: 100%; object-fit: cover; }
.banner-prev span { font-weight: 700; color: var(--mu); }
.org-head { position: relative; z-index: 1; }
.av { position: relative; }
.av img { position: absolute; inset: 0; }

/* mis inscripciones */
.my-ins { margin-bottom: 22px; }
.pill-sm { padding: 5px 9px; font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
.list { grid-template-columns: minmax(0, 1fr); }
.row-btn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sin zoom en el móvil: nada de doble toque y campos a 16px para que el iPhone no amplíe al escribir */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
input, select, textarea { font-size: 16px !important; }

.sec-toggle { width: 100%; text-align: left; }
.sec-toggle .muted { font-size: 13px; white-space: nowrap; }
.chev-t { color: var(--tx); margin-left: 4px; }
.ins-home { display: flex; align-items: stretch; gap: 6px; }
.ins-home .row-btn { flex: 1; min-width: 0; }
.ins-ack { height: auto; align-self: stretch; padding: 0 10px; }
.my-ins-all { display: block; margin: 8px 0 0 auto; }
.ins-home { gap: 0; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; }
.ins-home .row-btn { border: 0; background: none; padding-right: 6px; }
.ins-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; padding: 8px 10px 8px 0; flex-shrink: 0; }
.ins-side .ins-ack { height: auto; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--tx); }
.sec-toggle h2 { white-space: nowrap; }
.sec-toggle .muted { white-space: normal; text-align: right; }

/* seguidores */
.p-follows { display: flex; gap: 16px; margin-top: 6px; font-size: 13.5px; }
.p-follows button { color: var(--mu); }
.p-follows b { color: var(--tx); }
.stat-btn { text-align: center; }
.follow-row { display: flex; align-items: center; gap: 8px; }
.follow-row .row-btn { flex: 1; min-width: 0; }
.rf { padding: 6px 10px; }

/* interruptor */
.switch { width: 40px; height: 24px; border-radius: 12px; background: var(--s3); position: relative; flex-shrink: 0; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--ac); }
.switch.on i { transform: translateX(16px); }
.row-btn .grow small { display: block; font-size: 12px; color: var(--mu); }

/* eventos cancelados */
.badge-bad { color: var(--red); border-color: rgba(255, 59, 92, .5); }
.cancel-note { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 59, 92, .1); border: 1px solid rgba(255, 59, 92, .35); color: #ff8fa3; font-size: 14px; }
.cancel-note b { color: var(--red); }
.cancel-card { border-color: rgba(255, 59, 92, .4); }
.reason-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reason-pick .type-opt span { flex-direction: row; justify-content: center; padding: 10px 6px; font-size: 13px; }

/* mensajes directos */
.dm-hint { margin: -4px 0 12px; }
.dm-row.is-unread b { color: var(--ac); }
.dm-row.is-unread small { color: var(--tx); font-weight: 600; }
.dm-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.dm-meta small { font-size: 11.5px; }
.dm-unread { font-style: normal; background: var(--ac); color: var(--ac-tx); font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; }
.ov-chat .ov-body { overflow: hidden; display: flex; flex-direction: column; }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-who { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.chat-who b { display: block; font-size: 14px; }
.chat-who small { font-size: 12px; }
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.chat-empty { margin: auto; color: var(--mu); text-align: center; font-size: 14px; }
.msg { max-width: 78%; padding: 8px 12px 6px; border-radius: 18px; display: grid; gap: 2px; word-wrap: break-word; overflow-wrap: anywhere; }
.msg p { font-size: 15px; line-height: 1.35; }
.msg small { font-size: 10.5px; opacity: .7; justify-self: end; color: inherit; }
.msg.me { align-self: flex-end; background: var(--ac); color: var(--ac-tx); border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--s2); border-bottom-left-radius: 6px; cursor: pointer; }
.chat-seen { align-self: flex-end; font-size: 11px; color: var(--mu); margin-top: -2px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.chat-form input { flex: 1; min-width: 0; background: var(--s2); border: 1px solid var(--line); border-radius: 22px; padding: 10px 14px; outline: none; }
.chat-form input:focus { border-color: var(--ac); }
.chat-note { padding: 10px 16px; font-size: 13px; color: var(--mu); text-align: center; }
.chat-request { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }

/* Fondo de la bienvenida: BATTLE / HOUSE más grandes y centradas, para llenar el ancho de la pantalla */
.auth-bg { align-items: center; }
.auth-bg span { font-size: 172px; text-align: center; transform: rotate(-8deg); }
/* Título de la bienvenida en una sola línea, adaptado al ancho del móvil */
.auth { container-type: inline-size; }
.brand-logo { font-size: 60px; font-size: min(72px, 15.5cqw); white-space: nowrap; }
/* Logo de la barra superior: dibujo + nombre */
.logo-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.logo-icon { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.logo-wrap .logo { font-size: 22px; white-space: nowrap; }
.logo-icon { width: 34px; height: 34px; border-radius: 0; object-fit: contain; }

/* me gusta en comentarios */
.cmt > div:not(.av) { flex: 1; min-width: 0; }
.cmt > .av { flex: 0 0 auto; }
.cmt-like { display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--mu); padding: 2px 2px 0; flex-shrink: 0; }
.cmt-like svg { width: 16px; height: 16px; }
.cmt-like span { font-size: 11px; min-height: 13px; }
.cmt-like.liked { color: var(--red); }
.cmt-like.liked svg { fill: var(--red); stroke: var(--red); animation: pop .3s; }

.push-card .push-ico { font-size: 26px; width: 44px; text-align: center; flex-shrink: 0; }

/* foto de perfil en grande */
.av-btn { border-radius: 50%; flex-shrink: 0; }
.lightbox { position: absolute; inset: 0; z-index: 65; background: rgba(0, 0, 0, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; animation: fade .15s; cursor: zoom-out; }
.lightbox img { width: min(88%, 380px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: lb-in .2s ease-out; }
.lightbox p { font-weight: 800; font-size: 18px; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; color: #fff; font-size: 18px; }
@keyframes lb-in { from { transform: scale(.85); opacity: 0; } }

/* Fondo de la bienvenida: RAPHOOD x3, centrado y ocupando todo el ancho */
.auth-bg span { font-size: 150px; font-size: 32cqw; }

/* tick azul de verificación (como en Instagram) */
.verified { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #1d9bf0; color: #fff !important; font-size: 9px; font-weight: 900; line-height: 1; margin-left: 4px; vertical-align: 1px; flex-shrink: 0; font-style: normal; }
h2 .verified { width: 18px; height: 18px; font-size: 11px; vertical-align: 2px; }

/* segunda fila de botones del perfil (crear quedada) */
.p-actions + .p-actions { margin-top: 8px; }

/* buscar por población (inicio) */
.pob-search { margin: 10px 0 4px; }
.pob-h { font-size: 15px; margin: 16px 0 8px; }

/* mapa: punto exacto y «Cómo llegar» */
.map-box { display: block; height: 200px; border-radius: 14px; overflow: hidden; background: #1a1a1a; border: 1px solid rgba(255,255,255,.08); position: relative; z-index: 0; }
.map-view { height: 150px; margin-top: 10px; cursor: pointer; }
.map-hint { display: block; margin-top: 6px; }
.map-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.map-tools .btn { flex: 1 1 auto; }
.map-go { margin-top: 10px; text-align: center; text-decoration: none; }
.map-err { padding: 16px; }
.map-pin { font-size: 30px; line-height: 34px; text-align: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); background: none; border: 0; }
.leaflet-container { font: inherit; }

/* vista previa de una publicación antes de publicarla */
.np-btns { display: flex; gap: 8px; }
.np-btns .btn { flex: 1; }
.post-preview { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 12px); }
.pp-head { text-align: center; display: grid; gap: 2px; }
.pp-head small { color: var(--muted, #9a9aa3); }
.pp-frame { position: relative; height: min(68vh, 640px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.pp-frame .reel { height: 100%; }
.pp-frame .reel-side, .pp-frame .reel-author { pointer-events: none; }
.pp-actions { display: flex; gap: 8px; width: min(100%, 360px); }
.pp-actions .btn { flex: 1; }

/* speaker y jurado por batalla */
.ppl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ppl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 600; }
.ppl-chip.is-pending { background: rgba(245,197,24,.14); color: #f5c518; }
.ppl-chip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.ppl-add { display: flex; gap: 6px; }
.ppl-add input { flex: 1; min-width: 0; }
.ppl-sug { display: grid; gap: 4px; margin-top: 6px; }
.ppl-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.ppl-opt small { display: block; color: var(--muted, #9a9aa3); font-weight: 400; }
.ppl-free { border-style: dashed; }

/* artistas: tipo de participante, tarjeta y canción destacada */
.at-pick .type-opt small { display: block; font-size: 10px; font-weight: 500; opacity: .7; margin-top: 2px; }
.art-card { margin-top: 12px; }
.art-top { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 0; background: rgba(255,255,255,.06); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.art-top small { display: block; color: var(--muted, #9a9aa3); font-size: 11px; }
.art-top b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.art-top .grow { min-width: 0; }
.art-card { overflow: hidden; }
.art-card > *, .art-card .lvl-top .grow { min-width: 0; }
.art-top { max-width: 100%; }

/* canción del mes */
.som-card { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px; margin: 8px 0 12px; border-radius: 18px; border: 1px solid rgba(245,197,24,.35);
  background: linear-gradient(135deg, rgba(245,197,24,.16), rgba(167,139,250,.10)); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.som-thumb { flex: 0 0 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--g); display: grid; place-items: center; font-size: 30px; }
.som-thumb img, .som-thumb video { width: 100%; height: 100%; object-fit: cover; }
.som-card .grow { min-width: 0; display: grid; gap: 4px; }
.som-kicker { color: #f5c518; font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.som-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.som-author { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.som-author .av { width: 22px; height: 22px; font-size: 10px; }
.som-chip { background: rgba(245,197,24,.2); color: #f5c518; }

.art-awards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hof { margin: 8px 0 14px; }
.hof .row-btn small { display: block; }

/* insignias ganadas: un botón compacto en el perfil y su propia pantalla */
.badges-btn { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(245,197,24,.3); background: rgba(245,197,24,.08); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.badges-btn .grow { min-width: 0; }
.badges-btn small { display: block; color: var(--muted, #9a9aa3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badges-ico, .badge-medal { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: radial-gradient(circle at 35% 30%, #ffe27a, #c8960c); box-shadow: 0 2px 8px rgba(245,197,24,.25); }
.badges-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.badges-hero small { display: block; color: var(--muted, #9a9aa3); }
.badge-row small { display: block; }
.rank-soon { display: grid; gap: 6px; margin: 10px 0; }
.rank-soon small { color: var(--muted, #9a9aa3); }
.art-month { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(167,139,250,.12); font-size: 13px; }

/* canción destacada del artista */
.feat-kicker { display: block; color: #c4b5fd; font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.feat-song { display: flex; gap: 12px; align-items: center; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.feat-song .grow { min-width: 0; display: grid; gap: 4px; }
.feat-go { color: #c4b5fd; font-weight: 700; font-size: 13px; }
.feat-change { margin-top: 10px; }
/* «Estás al día»: separa lo nuevo de lo ya visto en Reels */
.reel-caught { background: linear-gradient(160deg, #0f0f14, #1c1830); }
.reel-caught .reel-center { padding: 0 32px; gap: 10px; }
.caught-ico { font-size: 46px; }
.reel-caught b { font-size: 22px; }
.reel-caught small { color: var(--muted, #9a9aa3); max-width: 260px; }
/* insignia de Organización fundadora */
.founder { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #1a1300; background: linear-gradient(135deg, #ffe27a, #d9a514); box-shadow: 0 2px 8px rgba(245,197,24,.25); }
.founder-sm { margin: 0 0 0 4px; padding: 0 4px; font-size: 11px; vertical-align: 1px; background: none; box-shadow: none; }

/* respuestas a comentarios y menciones */
.cmt-replies { display: grid; gap: 10px; margin: -2px 0 2px 42px; }
.cmt-sub .av { width: 26px; height: 26px; font-size: 11px; }
.cmt-more { margin: -4px 0 4px 42px; font-size: 12px; font-weight: 600; color: var(--mu); background: none; border: 0; padding: 2px 0; text-align: left; cursor: pointer; }
.cmt-replies .cmt-more { margin-left: 0; }
.cmt-replying { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; margin-top: 6px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 12.5px; }
.cmt-replying button { border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.mention { color: #f5c518; font-weight: 600; cursor: pointer; }

/* ranking: país + provincia/estado/región */
.scope-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px; }
.scope-row .sel { min-width: 0; }
/* logo grafiti de RAPHOOD en la pantalla de bienvenida y al cargar */
.brand-mark { margin: 0; line-height: 0; }
.brand-mark img, .brand-mark-img { display: block; width: min(320px, 78cqw); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 24px rgba(0,0,0,.55)); }
.boot .brand-mark-img { width: min(260px, 70vw); }

/* retos */
.reto-card { margin: 4px 0 14px; padding: 16px; border-radius: 20px; border: 1px solid rgba(255,90,60,.45); background: linear-gradient(135deg, rgba(255,90,60,.22), rgba(245,197,24,.12)); display: grid; gap: 6px; }
.reto-kicker { color: #ff8a5c; font-weight: 800; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.reto-title { margin: 0; font-size: 26px; line-height: 1.1; }
.reto-desc { margin: 0; font-size: 14px; }
.reto-meta { color: var(--muted, #9a9aa3); font-size: 12.5px; }
.reto-btns { display: flex; gap: 8px; margin-top: 6px; }
.reto-btns .btn { flex: 1; }
.reto-banner { padding: 12px 14px; border-radius: 14px; background: rgba(255,90,60,.16); border: 1px solid rgba(255,90,60,.4); display: grid; gap: 4px; }
.reto-banner small { color: var(--muted, #9a9aa3); }
.reto-reel { background: linear-gradient(160deg, #1a0d0a, #3a1a10 60%, #5a2a10); }
.reto-reel .btn { margin-top: 6px; }

/* tipo de batalla y lista */
.ev-pick { grid-template-columns: 1fr 1fr; }
.ev-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.add-part { width: 100%; margin-top: 8px; }

.songs-head { margin: 14px 16px 8px; }

/* control de asistencia */
.att-card { border: 1px solid rgba(52,211,153,.35); }
.att-count { font-size: 15px; margin-bottom: 6px; }
.att-search { width: 100%; margin: 10px 0 2px; }
.att-list { display: grid; gap: 6px; }
.att-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.att-row small { display: block; color: var(--muted, #9a9aa3); }
.att-row.is-here { background: rgba(52,211,153,.12); }
.org-ctas { display: grid; gap: 8px; }
.att-title { display: grid; gap: 2px; margin-bottom: 10px; }
.att-title small { color: var(--muted, #9a9aa3); }
/* bandera del país en la esquina del evento */
.ev-flag { position: absolute; top: 12px; right: 14px; z-index: 2; line-height: 0; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.25); }
.ev-flag svg { display: block; width: 26px; height: auto; }
.ev-top { right: 52px; }

/* sin límite de plazas */
.plazas-row { align-items: end; }
.unlim-check { align-self: center; font-size: 13px; }
/* aviso cuando se abre desde el navegador de Instagram, Facebook, TikTok… */
.inapp-card { border: 1px solid rgba(245,197,24,.45); }
.inapp-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* clasificaciones de las organizaciones fundadoras */
.clasif-card { display: grid; gap: 10px; margin-bottom: 12px; }
.clasif-head { display: flex; align-items: center; gap: 10px; }
.clasif-head small { display: block; color: var(--muted, #9a9aa3); }
.clasif-table { display: grid; gap: 4px; }
.clasif-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.04); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.clasif-row.top { background: rgba(245,197,24,.10); }
.clasif-row small { display: block; color: var(--muted, #9a9aa3); }
.clasif-pos { width: 26px; text-align: center; font-weight: 800; }
.clasif-pts { white-space: nowrap; }
.pts-input { width: 80px; }

/* aviso de puntos de la clasificación */
.pts-notice { margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(250,204,21,.12); border: 1px solid rgba(250,204,21,.4); font-size: 14px; line-height: 1.4; }
.pts-notice small { display: block; margin-top: 4px; color: var(--muted, #9a9aa3); }
.pts-sum { display: block; font-size: 12px; color: var(--muted, #9a9aa3); }
.pts-plus { font-weight: 700; opacity: .7; }

/* medallas del podio en las clasificaciones */
.clasif-pos.is-medal { font-size: 24px; line-height: 1; }
.clasif-row.p1 { background: linear-gradient(90deg, rgba(245,197,24,.22), rgba(245,197,24,.05)); }
.clasif-row.p2 { background: linear-gradient(90deg, rgba(203,213,225,.20), rgba(203,213,225,.04)); }
.clasif-row.p3 { background: linear-gradient(90deg, rgba(205,127,50,.22), rgba(205,127,50,.05)); }

/* historial de temporadas */
.clasif-hist-btn { margin-top: 2px; }

/* ===== batalla en directo ===== */
.txt-red { color: var(--red); } .txt-acc { color: var(--ac); } .txt-j { color: var(--info); } .center { text-align: center; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; border-radius: 99px; padding: 3px 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: livePulse 1.2s infinite; }
@keyframes livePulse { 50% { opacity: .3; } }
.live-root { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.live-root .sec { margin: 0; }
.live-head { display: flex; align-items: center; gap: 10px; }
.live-head b { display: block; font-size: 15px; } .live-head small { display: block; color: var(--mu); font-size: 12px; }
.live-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.live-steps span { font-size: 11px; font-weight: 700; text-align: center; padding: 6px 2px; border-radius: 8px; background: var(--s2); color: var(--mu); }
.live-steps span.on { background: var(--ac); color: var(--ac-tx); } .live-steps span.done { color: var(--ok); }
.is-judge .live-steps span.on { background: var(--info); }
.live-stats { display: flex; gap: 8px; }
.live-stats div { flex: 1; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 9px; text-align: center; }
.live-stats b { display: block; font-size: 22px; } .live-stats small { font-size: 11px; color: var(--mu); }
.live-groups { display: grid; gap: 8px; }
.live-grp { background: var(--s2); border-radius: 12px; padding: 8px 9px; }
.live-grp-h { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; margin-bottom: 6px; }
.live-grp-h span { color: var(--mu); font-weight: 600; }
.live-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.live-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; background: var(--s3); border-radius: 99px; padding: 3px 6px 3px 3px; }
.live-chip .av { width: 22px; height: 22px; font-size: 9px; }
.live-chip select { background: var(--s1); color: var(--mu); border: 1px solid var(--line); border-radius: 8px; height: 26px; max-width: 62px; padding: 0 2px; line-height: 1; }
.live-jrow { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 5px 0; }
.live-jrow > span:last-child { margin-left: auto; font-size: 12px; font-weight: 700; }
.live-gnav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
.live-gnav button { flex: none; padding: 7px 11px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); color: var(--mu); font-weight: 700; font-size: 12.5px; }
.live-gnav button.done { color: var(--ok); } .live-gnav button.now { color: var(--ac); }
.live-gnav button.on { border-color: var(--ac); color: var(--tx); background: var(--s3); }
.live-scroll { overflow-x: auto; }
.live-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.live-table th { font-size: 10.5px; color: var(--mu); font-weight: 700; text-align: center; padding: 0 3px 8px; line-height: 1.25; }
.live-table th small { display: block; color: var(--ac); font-size: 9.5px; }
.live-table th:first-child { text-align: left; }
.live-table td { padding: 6px 3px; text-align: center; border-top: 1px solid var(--line); }
.live-rp { text-align: left !important; font-weight: 700; white-space: nowrap; }
.live-rp > span, .live-rp .av { vertical-align: middle; } .live-rp .av { display: inline-grid; margin-right: 6px; width: 24px; height: 24px; }
.live-got { font-weight: 700; } .live-got i { color: var(--ok); font-style: normal; font-size: 10px; }
.live-wait { color: var(--mu); }
.live-cell { width: 54px; height: 36px; border-radius: 9px; border: 1.5px solid var(--ac); background: rgba(245,197,24,.08); color: var(--tx); font-weight: 700; font-size: 14px; text-align: center; padding: 0; }
.live-cell.bad { border-color: var(--red); background: rgba(255,59,92,.12); }
.live-tot { font-weight: 800; color: var(--ac); white-space: nowrap; } .live-tot.partial { color: var(--mu); font-weight: 600; }
.live-manual { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.live-rank { list-style: none; margin: 0; padding: 0; }
.live-rank li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 2px; border-top: 1px solid var(--line); }
.live-rank li:first-child { border-top: 0; }
.live-rank .pos { width: 26px; font-weight: 800; color: var(--mu); font-size: 12px; }
.live-rank b { margin-left: auto; } .live-rank em { font-style: normal; font-size: 10.5px; font-weight: 800; }
.live-rank li.partial b { color: var(--mu); } .live-rank li.out { opacity: .5; }
.live-rank li.tie { background: rgba(255,59,92,.1); border-radius: 8px; }
.live-rank li.live-cut { justify-content: center; color: var(--red); font-size: 11px; font-weight: 800; border-top: 2px dashed var(--red); }
.live-alert { background: rgba(255,59,92,.1); border: 1px solid rgba(255,59,92,.45); border-radius: 14px; padding: 11px; font-size: 13px; line-height: 1.45; }
.live-alert b { color: var(--red); }
.live-alert .btn { margin-top: 10px; }
.live-votes { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 0 0; }
.live-votes span { font-size: 11px; font-weight: 700; border-radius: 8px; padding: 5px 8px; background: var(--s3); }
.live-votes span.k { background: rgba(167,139,250,.2); color: var(--info); } .live-votes span.rep { background: rgba(245,197,24,.15); color: var(--ac); }
.live-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.live-pick button { flex: 1; min-width: 40%; padding: 9px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--tx); }
.live-pick button.on { border-color: var(--ok); color: var(--ok); background: rgba(34,197,94,.1); }
.live-rounds { overflow-x: auto; margin: 0; }
.live-matches { display: grid; gap: 8px; }
.live-match { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.live-match.now { border-color: var(--ac); }
.live-mh { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 800; color: var(--mu); padding: 7px 10px 0; }
.live-match.now .live-mh { color: var(--ac); }
.live-mp { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 14px; }
.live-mp + .live-mp { border-top: 1px solid var(--line); }
.live-mp .seed { width: 24px; font-size: 10.5px; color: var(--mu); font-weight: 800; }
.live-mp .av { width: 26px; height: 26px; }
.live-mp .v { margin-left: auto; font-size: 11.5px; color: var(--mu); font-weight: 700; }
.live-mp.win { color: var(--ok); } .live-mp.lose { opacity: .45; text-decoration: line-through; }
.live-match .live-votes { padding: 6px 10px 0; }
.live-confirm { display: flex; gap: 6px; padding: 9px 10px 10px; }
.live-confirm button { flex: 1; font-size: 12.5px; font-weight: 800; padding: 10px 4px; border-radius: 10px; background: var(--s3); color: var(--tx); }
.live-confirm button.ok { background: var(--ok); color: #0a0a0b; }
.live-tree { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); gap: 6px; overflow-x: auto; align-items: center; }
.live-rd { display: grid; gap: 5px; }
.live-rd small { font-size: 9.5px; color: var(--mu); font-weight: 800; text-align: center; text-transform: uppercase; }
.live-tm { display: grid; background: var(--s2); border-radius: 7px; overflow: hidden; }
.live-tm span { font-size: 11px; font-weight: 700; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-tm span + span { border-top: 1px solid var(--line); }
.live-tm .w { color: var(--ok); } .live-tm .l { opacity: .45; } .live-tm .t { color: var(--mu); }
.live-champ { text-align: center; font-size: 46px; padding: 10px 0 4px; }
.live-champ small { display: block; font-size: 12px; color: var(--mu); text-transform: uppercase; letter-spacing: .08em; }
.live-champ b { display: block; font-family: var(--display); font-weight: 400; font-size: 40px; color: var(--ac); text-transform: uppercase; line-height: 1.05; }
.live-champ span { display: block; font-size: 13px; color: var(--mu); margin-top: 4px; }
.live-exit { margin-top: 6px; }
.live-btn-o { background: var(--red); color: #fff; font-weight: 800; }
.live-btn-j { background: var(--info); color: #121212; font-weight: 800; }
.live-btn-j[disabled] { opacity: .45; }
/* tarjetas de Inicio y de «Gestionar evento» */
.live-card { border-radius: 18px; padding: 14px; margin: 0 0 12px; display: grid; gap: 6px; }
.live-card.is-judge { background: linear-gradient(135deg, rgba(167,139,250,.28), rgba(167,139,250,.06)); border: 1.5px solid rgba(167,139,250,.6); }
.live-card.is-org { background: linear-gradient(135deg, rgba(255,59,92,.24), rgba(255,59,92,.05)); border: 1.5px solid rgba(255,59,92,.6); }
.live-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.live-tag-j { color: var(--info); }
.live-card-t { font-family: var(--display); font-size: 27px; text-transform: uppercase; line-height: 1.05; }
.live-card-s { font-size: 12.5px; color: var(--mu); }
.live-card-row { display: flex; flex-wrap: wrap; gap: 6px; }
.live-card-row span { font-size: 11.5px; font-weight: 700; background: rgba(0,0,0,.3); border-radius: 8px; padding: 5px 8px; }
.live-card .btn { margin-top: 4px; }
.live-manage { border-color: rgba(255,59,92,.45); }
.live-manage h3 { display: flex; align-items: center; gap: 8px; }
.live-check { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 5px; font-size: 13px; }
.live-public h3 { display: flex; align-items: center; }
.live-now { font-weight: 700; margin: 4px 0 8px; }
/* jurado */
.live-hero { text-align: center; padding: 12px 6px 6px; }
.live-hero .ico { font-size: 42px; }
.live-hero small { display: block; color: var(--mu); font-size: 12.5px; }
.live-hero b { display: block; font-family: var(--display); font-weight: 400; font-size: 32px; text-transform: uppercase; color: var(--info); line-height: 1.05; margin-top: 4px; }
.live-root:not(.is-judge) .live-hero b { color: var(--ac); }
.live-hero p { color: var(--mu); font-size: 13.5px; margin-top: 6px; line-height: 1.45; }
.live-hero.sm { padding-top: 2px; }
.live-rap { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.live-rap.sel { border-color: var(--info); }
.live-rap-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15.5px; }
.live-rap-h .score { margin-left: auto; font-family: var(--display); font-size: 30px; color: var(--ac); line-height: 1; }
.live-rap-h .score.is-empty { color: var(--s3); }
.live-nums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.live-nums button { text-align: center; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--s2); color: var(--tx); font-weight: 800; font-size: 17px; }
.live-nums button.on { background: var(--info); color: #121212; border-color: var(--info); }
.live-nums button.half { grid-column: span 2; background: rgba(245,197,24,.12); border-color: rgba(245,197,24,.5); color: var(--ac); font-size: 15px; }
.live-nums button.half.on { background: var(--ac); color: #121212; }
.live-ok { text-align: center; font-size: 13px; font-weight: 700; color: var(--ok); background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); border-radius: 12px; padding: 11px; }
.live-duel { display: grid; gap: 8px; }
.live-fighter { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border-radius: 16px; background: var(--s2); border: 2px solid var(--line); font-size: 19px; color: var(--tx); text-align: left; }
.live-fighter .chk { margin-left: auto; font-size: 12.5px; font-weight: 800; color: #121212; background: var(--info); border-radius: 99px; padding: 5px 10px; }
.live-fighter.on { border-color: var(--info); background: rgba(167,139,250,.14); }
.live-vs { text-align: center; font-family: var(--display); font-size: 22px; color: var(--mu); }
.live-rep { padding: 13px; border-radius: 14px; border: 2px dashed rgba(245,197,24,.5); color: var(--ac); font-weight: 800; font-size: 15px; background: none; }
.live-rep.on { background: rgba(245,197,24,.15); border-style: solid; }

/* dos botones que deben caber siempre (por ejemplo «¿Imprevistos?»): mitad y mitad, el texto puede bajar de línea */
.btn-row-fit { display: grid; grid-template-columns: 1fr 1fr; }
.btn-row-fit .btn { white-space: normal; min-width: 0; min-height: 46px; height: auto; padding: 8px 10px; line-height: 1.2; text-align: center; justify-content: center; }

/* batalla sin filtros */
.live-steps span.skip { color: var(--mu); opacity: .55; text-decoration: line-through; }
.live-skip h3 { margin-bottom: 4px; }

/* tabla de filtros compacta (caben 3 o más jurados) */
.live-table td, .live-table th { white-space: nowrap; }
.live-table .live-cell { width: 46px; }
.live-rp > span { display: inline-block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.live-gnav { scrollbar-width: none; } .live-gnav::-webkit-scrollbar { display: none; }

/* filtros con 4 o más jurados: una tarjeta por rapero */
.live-rcards { display: grid; gap: 8px; }
.live-rcard { background: var(--s2); border-radius: 12px; padding: 9px 10px; }
.live-rcard-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 14px; }
.live-rcard-h .av { width: 26px; height: 26px; }
.live-rcard-h .live-tot { margin-left: auto; font-size: 16px; }
.live-jgrid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 5px; }
.live-jcell { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.live-jcell small { font-size: 10.5px; color: var(--mu); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-jcell .live-cell { width: 100%; height: 34px; }
.live-jcell .live-got, .live-jcell .live-wait { height: 34px; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 14px; }
.live-jcell .live-got { white-space: nowrap; font-size: 13.5px; } .live-jcell .live-got i { margin-left: 1px; }

/* 2vs2: parejas */
.chip-2v2 { background: rgba(167,139,250,.18); color: #c4b5fd; }
.pair-av { display: inline-flex; flex: none; }
.pair-av .av + .av { margin-left: -10px; box-shadow: 0 0 0 2px var(--bg); }
.pair-invite { display: grid; gap: 6px; background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.45); border-radius: 16px; padding: 14px; }
.pair-invite small { color: var(--mu); }
.pair-invite .btn-row { margin-top: 4px; }

.pair-row { flex-wrap: wrap; }
.pair-row .ins-user { flex: 1 1 100%; }
.pair-row .ins-btns { flex: 1 1 100%; display: flex; gap: 6px; }
.pair-row .ins-btns .btn { flex: 1; }
.live-fighter .chk { white-space: nowrap; flex: none; }
.pair-res { flex-wrap: wrap; row-gap: 6px; }
.pair-res .grow { flex: 1 1 auto; }
.pair-res .sel { flex: 1 1 100%; max-width: none; }

/* iPhone dentro de Instagram/Facebook/TikTok: pasos para abrir en Safari */
.inapp-steps { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 6px; }
.inapp-steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.inapp-steps li .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ac); color: var(--ac-tx); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.inapp-steps .dots { display: inline-grid; place-items: center; background: var(--s3); border-radius: 8px; padding: 0 7px; letter-spacing: 1px; }
.inapp-steps .share-ico { font-style: normal; display: inline-grid; place-items: center; background: var(--s3); border-radius: 6px; padding: 0 5px; }

.inapp-ios .grow b, .inapp-ios .grow small b, .inapp-steps b { display: inline; }
.inapp-ios .grow > b { display: block; }
.inapp-steps p { margin: 0; line-height: 1.4; }
.inapp-ios { align-items: flex-start; }

/* jurado de las exhibiciones */
.jm-pick { grid-template-columns: repeat(3, 1fr); }
.jm-pick .type-opt small { font-size: 10.5px; }
.jm-seg { margin: 10px 0 4px; }


/* encuadre del cartel: la parte de la foto que elige la organización */
.ev-poster.has-img { background-position: 0 0, var(--pos, 50% 50%), 0 0; }
.crop-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .78); display: grid; place-items: center; padding: 16px; }
.crop-box { width: 100%; max-width: 440px; background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px 16px; display: grid; gap: 12px; }
.crop-box h3 { margin: 0; }
.crop-box p { margin: -6px 0 0; }
.crop-card .ev-poster { cursor: grab; touch-action: none; user-select: none; }
.crop-card .ev-poster:active { cursor: grabbing; }
.crop-hand { background: rgba(0, 0, 0, .65); color: #fff; }
.crop-thumb { width: 100%; min-height: 170px; border-radius: 12px; }
.drop-poster:has(.crop-thumb) { padding: 8px; }

/* editar datos de la batalla */
.ev-edit { margin: 12px 0 2px; }

/* Mis eventos: abiertas arriba, finalizadas y canceladas abajo */
.ev-group { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 18px 2px 10px; }
.ev-group:first-child { margin-top: 4px; }

/* survival */
.chip-surv { background: rgba(52, 211, 153, .14); color: #34d399; }
.team-seg { margin: 6px 0 10px; }
.surv-seed { margin: 4px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); }
.surv-seed button { font-size: 12px; white-space: normal; line-height: 1.2; padding: 8px 4px; }
.surv-slots { display: grid; gap: 8px; }
.surv-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px 8px; background: var(--s2); border-radius: 12px; padding: 10px; font-size: 13px; }
.surv-slot > b { grid-column: 1 / -1; }
.surv-slot .sel { min-width: 0; }
.live-fish { margin-top: 10px; padding: 12px; border-radius: 14px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .4); display: grid; gap: 8px; }
.live-fish .live-pick button { display: inline-flex; align-items: center; gap: 6px; }
.live-fished { margin: 8px 0 0; font-size: 13px; color: #34d399; font-weight: 700; }
.pair-av .av + .av + .av { margin-left: -10px; }

/* tarjeta compacta de batalla */
.ev-mini { display: flex; gap: 12px; padding: 10px; cursor: pointer; align-items: stretch; }
.evm-thumb { flex: none; width: 96px; min-height: 104px; border-radius: 12px; position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--c) 70%, transparent), transparent 70%), linear-gradient(135deg, #1b1b20, #0d0d10); }
.evm-thumb.has-img { background: var(--img) var(--pos, 50% 50%) / cover no-repeat, #111; }
.evm-thumb span { font-family: var(--display); font-size: 30px; color: var(--c); }
.evm-flag { position: absolute; top: 6px; left: 6px; line-height: 0; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.evm-flag svg { width: 18px; height: auto; display: block; }
.evm-body { flex: 1; min-width: 0; display: grid; gap: 3px; align-content: center; }
.evm-org { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c, var(--ac)); min-width: 0; }
.evm-org span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evm-org em { flex: none; font-style: normal; text-transform: none; letter-spacing: 0; color: var(--mu); font-weight: 700; }
.evm-org .badge-num { margin-left: auto; }
.evm-title { font-family: var(--display); font-size: 20px; line-height: 1.05; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evm-line { font-size: 12.5px; color: #c9c9d1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evm-foot { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0; }
.evm-foot small { font-size: 11.5px; color: var(--mu); white-space: nowrap; }
.evm-foot .badge { margin-left: auto; padding: 2px 7px; font-size: 10.5px; white-space: nowrap; background: transparent; backdrop-filter: none; }
.evm-bar { flex: 1; max-width: 70px; height: 5px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.evm-bar i { display: block; height: 100%; background: var(--ac); border-radius: 99px; }
.events { gap: 10px; }

/* filtro «Ver en el mapa» */
.ev-map { height: 420px; border-radius: 16px; margin-bottom: 6px; }
.ev-map-hint { margin: 0 2px 8px; }
.ev-dot-wrap { background: none; border: none; }
.ev-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); color: #111; font-weight: 800; font-size: 12px; }
.ev-pop { display: grid; gap: 3px; font-family: inherit; }
.ev-pop + .ev-pop { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; }
.ev-pop small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #666; }
.ev-pop b { font-size: 14px; color: #111; }
.ev-pop span { font-size: 12px; color: #333; }
.ev-pop .btn { margin-top: 6px; justify-self: start; }

/* aviso: población con números */
.hero-warn { border-color: rgba(255, 159, 67, .6); background: linear-gradient(135deg, rgba(255, 159, 67, .16), rgba(255, 159, 67, .03)); text-align: left; width: 100%; margin-bottom: 14px; }

/* poblaciones: lista oficial */
.town-sug { display: grid; gap: 4px; margin: -6px 0 10px; }
.town-sug:empty { display: none; }
.town-manual { justify-self: start; font-size: 13px; padding: 4px 2px; }
.town-ask { background: rgba(245, 197, 24, .1); border: 1px solid rgba(245, 197, 24, .45); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.town-ask .btn-row { margin-top: 8px; flex-wrap: wrap; }

/* Moderación: poblaciones por revisar */
.town-fix { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.town-fix .grow { grid-column: 1 / -1; }
.town-fix .town-to { min-width: 0; background: var(--s2); border: 1px solid var(--line); color: var(--tx); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; }
.town-src { font-size: 10.5px; padding-left: 2px; }

/* clasificación: puntos de jornadas anteriores */
.pts-in { width: 92px; text-align: center; }
.pts-in { background: var(--s2); border: 1px solid var(--line); color: var(--tx); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 15px; font-weight: 700; }
.pts-sub { display: block; }
.admin-email .sel-all { user-select: all; word-break: break-all; }

/* cruce por el 3er puesto */
.live-match.third { border-color: rgba(205, 127, 50, .55); }
.live-3rd-h { display: block; margin-top: 8px; color: #cd7f32; font-weight: 800; }

/* recordatorio: verificar el email */
.verify-card .verify-btn { margin-top: 10px; }

/* mensajes: caja de texto que crece y edición */
.chat-form { align-items: flex-end; }
.chat-form textarea { flex: 1; min-width: 0; background: var(--s2); border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; outline: none; resize: none; font: inherit; font-size: 15px; line-height: 1.35; color: var(--tx); max-height: 170px; overflow-y: auto; }
.chat-form textarea:focus { border-color: var(--ac); }
.chat-form .btn { flex: none; }
.msg.me.tap { cursor: pointer; }
.chat-editing { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--ac); border-top: 1px solid var(--line); background: var(--bg); }

/* minitutorial */
.tut { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px 16px; background: rgba(0, 0, 0, .78); animation: fade .2s; }
.tut-card { width: 100%; max-width: 400px; background: radial-gradient(120% 60% at 50% 0%, rgba(245, 197, 24, .16), transparent 70%), var(--s1); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px 20px; display: grid; gap: 12px; text-align: center; animation: up .25s ease-out; }
.tut-top { display: flex; justify-content: space-between; align-items: center; }
.tut-n { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--mu); }
.tut-ic { font-size: 56px; line-height: 1; margin-top: 6px; }
.tut h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.tut p { font-size: 15px; line-height: 1.45; color: var(--tx); opacity: .9; }
.tut-where { justify-self: center; font-size: 12.5px; font-weight: 700; color: var(--ac); background: rgba(245, 197, 24, .1); border: 1px solid rgba(245, 197, 24, .35); border-radius: 99px; padding: 6px 12px; }
.tut-dots { display: flex; justify-content: center; gap: 6px; }
.tut-dots button { width: 8px; height: 8px; border-radius: 4px; background: #3a3a43; padding: 0; transition: width .2s; }
.tut-dots button.on { width: 22px; background: var(--ac); }
.tut-btns { display: flex; gap: 8px; }
.tut-btns .grow { flex: 1; }
.tut.still, .tut.still .tut-card { animation: none; }

/* apuntar a mano (sin perfil) */
.guest-opt { border: 1px dashed rgba(245, 197, 24, .5); }
.guest-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); flex: none; }

/* ayuda */
.help-search { width: 100%; margin: 10px 0 4px; background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--tx); font: inherit; outline: none; }
.help-search:focus { border-color: var(--ac); }
.help-sec { font-size: 15px; font-weight: 800; margin: 6px 0 8px; }
.help-q { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; overflow: hidden; }
.help-q summary { list-style: none; cursor: pointer; padding: 14px 40px 14px 14px; font-weight: 700; font-size: 15px; position: relative; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--ac); font-weight: 800; }
.help-q[open] summary::after { content: '–'; }
.help-q[open] summary { border-bottom: 1px solid var(--line); }
.help-a { padding: 12px 14px 14px; font-size: 14.5px; line-height: 1.5; display: grid; gap: 8px; }
.help-a ul, .help-a ol { padding-left: 20px; display: grid; gap: 6px; }
.help-a b { color: var(--tx); }
.help-check { list-style: none; padding-left: 0 !important; }
.help-check li { padding-left: 26px; position: relative; }
.help-check li::before { content: '✅'; position: absolute; left: 0; }
.help-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.help-tbl td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.help-tbl td:last-child { text-align: right; font-weight: 800; color: var(--ac); }
.help-imgs { display: grid; gap: 12px; margin-top: 4px; justify-items: center; }
.help-imgs img { width: 100%; max-width: 340px; border-radius: 14px; border: 1px solid var(--line); background: var(--s2); min-height: 120px; }
