/* Tipografía autoalojada (Inter): sin peticiones a Google Fonts */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/inter-latin-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/inter-latin-ext-800.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0b1020; --card: rgba(18, 24, 44, .86); --line: rgba(255, 255, 255, .09);
  --text: #eaf0ff; --muted: #93a0c0; --accent: #34d399; --accent-2: #6366f1; --danger: #f87171; --warn: #fbbf24;
  --radius: 16px; font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
#map { position: fixed; inset: 0; background: #0b1020; }
.leaflet-container { font-family: inherit; background: #0b1020; }
/* Teselas claras de OSM convertidas a tema oscuro */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.6); }
.tiles-native .leaflet-tile-pane { filter: none; }
.leaflet-control-attribution { background: rgba(11, 16, 32, .7) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-control-zoom a { background: var(--card) !important; color: var(--text) !important; border-color: var(--line) !important; }

.card { background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.hidden { display: none !important; }
.spacer { flex: 1; }

.topbar { position: fixed; top: calc(12px + var(--notice-h, 0px)); left: 12px; right: 12px; z-index: 1000; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand, #account button, .pill { white-space: nowrap; }
.brand { cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 17px; letter-spacing: .2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(14px); }
.brand b { font-weight: 800; color: var(--accent); }
.logo { width: 18px; height: 18px; background: linear-gradient(135deg, #6ee7b7, #34d399 55%, #059669); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
#account { display: flex; gap: 8px; align-items: center; }

button { font: inherit; cursor: pointer; border: 0; border-radius: 12px; padding: 10px 16px; color: var(--text); background: rgba(255, 255, 255, .08); transition: transform .12s, background .15s, opacity .15s; }
button:hover:not(:disabled) { background: rgba(255, 255, 255, .15); }
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: linear-gradient(135deg, #10b981, #34d399); color: #052e22; font-weight: 700; }
button.primary:hover:not(:disabled) { background: linear-gradient(135deg, #34d399, #6ee7b7); }
button.attack { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; font-weight: 700; }
button.attack:hover:not(:disabled) { background: linear-gradient(135deg, #f87171, #fb923c); }
button.ghost { background: transparent; border: 1px solid var(--line); }
button.wide { width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(14px); font-weight: 600; }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; }
.coin { color: var(--warn); }

#panel { position: fixed; z-index: 1000; top: 72px; right: 12px; width: 340px; max-height: calc(100vh - 88px); overflow: auto; padding: 18px; animation: slide .25s ease-out; }
@keyframes slide { from { opacity: 0; transform: translateX(16px); } }
#panel h2 { margin: 0 0 4px; font-size: 20px; }
#panel .sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.close { position: absolute; top: 10px; right: 10px; padding: 4px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.stage { display: grid; place-items: center; margin: 10px 0; border-radius: 12px; background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, .18), rgba(0, 0, 0, .25)); border: 1px solid var(--line); }
.stage canvas { max-width: 100%; height: auto; }
.row { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0; }
.row span:first-child { color: var(--muted); font-size: 13px; }
.price { font-size: 26px; font-weight: 800; }
.owner { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.owner i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(251, 191, 36, .15); color: var(--warn); }
.photo { width: 100%; border-radius: 12px; margin: 8px 0; max-height: 200px; object-fit: cover; }
.note { color: var(--muted); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.btns { display: grid; gap: 8px; margin-top: 12px; }
.btns.two { grid-template-columns: 1fr 1fr; }

input, textarea { width: 100%; font: inherit; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
label { font-size: 12px; color: var(--muted); }
textarea { resize: vertical; min-height: 64px; }

.palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 8px 0; }
.sw { aspect-ratio: 1; border-radius: 8px; border: 2px solid transparent; padding: 0; }
.sw.sel { border-color: #fff; transform: scale(1.12); }
.sw.erase { background: repeating-conic-gradient(#444 0 25%, #222 0 50%) 0 0 / 10px 10px; }
.layer-ctl { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin: 6px 0; font-size: 13px; color: var(--muted); }
.layer-ctl button { padding: 6px 12px; }
#layer-canvas { touch-action: none; cursor: crosshair; border-radius: 10px; width: 100%; }
.meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 4px; }
.meter > div { height: 100%; background: var(--accent); transition: width .2s; }

.feed { position: fixed; z-index: 900; left: 12px; bottom: 28px; width: 280px; padding: 12px 14px; font-size: 13px; }
.feed h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.feed div { padding: 3px 0; color: var(--muted); }
.feed b { color: var(--text); }

.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(5, 8, 18, .6); backdrop-filter: blur(4px); }
.modal-body { width: min(420px, calc(100vw - 24px)); padding: 24px; animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.95); } }
.modal-body h2 { margin-top: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { flex: 1; } .tabs button.on { background: var(--accent-2); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.amounts button { padding: 12px 6px; display: grid; gap: 2px; }
.amounts small { color: var(--accent); font-weight: 600; }
.amounts button.on { outline: 2px solid var(--accent); }
.err { color: var(--danger); font-size: 13px; min-height: 18px; }
.warn { font-size: 12px; color: var(--warn); margin-top: 8px; }

.lm { display: grid; place-items: center; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.lm span { font-size: 18px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.lm em { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px #000, 0 0 6px #000; white-space: nowrap; }

#toasts { position: fixed; z-index: 3000; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 12px; background: #1c2542; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); animation: pop .2s ease-out; }
.toast.ok { border-color: var(--accent); } .toast.bad { border-color: var(--danger); }

@media (max-width: 760px) {
  #panel { top: auto; right: 0; left: 0; bottom: 0; width: auto; max-height: 62vh; border-radius: 20px 20px 0 0; }
  .feed { display: none; }
  .brand { font-size: 14px; padding: 8px 12px; }
  .topbar { gap: 6px; flex-wrap: wrap; }
  #account { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  #account button, .pill { padding: 8px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.flag { height: 14px; width: 21px; object-fit: cover; /* todas las banderas en la misma caja 3:2 */ border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); vertical-align: middle; }
button.pill { color: var(--text); }
select { width: 100%; font: inherit; color: var(--text); background: #1a2140; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px; }

/* ---- editor ampliado ---- */
#panel { width: 380px; }
.palette { grid-template-columns: repeat(8, 1fr); }
.tools { display: flex; gap: 6px; margin: 8px 0; }
.tools .tool { flex: 1; padding: 8px 0; font-size: 16px; }
.tools .tool.on { background: var(--accent-2); }
input[type=range] { padding: 0; margin: 2px 0 8px; accent-color: var(--accent); }

/* ---- likes ---- */
.like { padding: 6px 14px; font-weight: 700; font-size: 15px; border-radius: 999px; }
.like.on { background: rgba(248, 113, 113, .22); color: #fecaca; }
.like.pop { animation: heart .35s ease-out; }
@keyframes heart { 40% { transform: scale(1.35); } }

/* ---- rankings ---- */
.rank-btn { cursor: pointer; font-weight: 700; }
.modal-body { position: relative; }
.modal-body.wide { width: min(620px, calc(100vw - 20px)); max-height: calc(100vh - 40px); overflow: auto; padding: 22px 20px; }
.modal-body .close { position: absolute; top: 12px; right: 12px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-btn { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 14px; }
.chip-btn.small { padding: 5px 12px; font-size: 13px; }
.chip-btn.on { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-weight: 700; }
.rank-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.rank-filters select { width: auto; flex: 1 1 180px; min-width: 0; max-width: 100%; margin: 0; }
.rank-filters .chips { margin: 0; }
.rank-list { display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 44px auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 8px; text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid transparent; animation: rowin .35s ease-out backwards; }
.rank-row:hover:not(:disabled) { background: rgba(255, 255, 255, .11); transform: translateX(3px); }
.rank-row.top1 { background: linear-gradient(90deg, rgba(251, 191, 36, .22), rgba(255, 255, 255, .05)); border-color: rgba(251, 191, 36, .45); }
.rank-row.top2 { background: linear-gradient(90deg, rgba(203, 213, 225, .18), rgba(255, 255, 255, .05)); border-color: rgba(203, 213, 225, .3); }
.rank-row.top3 { background: linear-gradient(90deg, rgba(217, 119, 6, .2), rgba(255, 255, 255, .05)); border-color: rgba(217, 119, 6, .35); }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } }
.medal { font-size: 22px; text-align: center; color: var(--muted); font-weight: 700; font-size: 18px; }
.rank-row.top1 .medal, .rank-row.top2 .medal, .rank-row.top3 .medal { font-size: 26px; }
.mini { width: 48px; height: 48px; image-rendering: pixelated; border-radius: 8px; border: 1px solid var(--line); }
.info { display: grid; gap: 2px; min-width: 0; }
.info b, .info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info small { color: var(--muted); font-size: 12px; }
.metric { font-weight: 800; font-size: 17px; white-space: nowrap; }
.flag.big { height: 32px; width: 48px; border-radius: 4px; }
.dotc { width: 28px; height: 28px; border-radius: 50%; display: inline-block; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

@media (max-width: 760px) {
  #panel { width: auto; }
  .rank-row { grid-template-columns: 36px auto 1fr auto; gap: 8px; }
  .mini { width: 40px; height: 40px; }
}

.tip { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: rgba(99, 102, 241, .14); border: 1px solid rgba(99, 102, 241, .35); font-size: 13px; line-height: 1.45; color: #c7d2fe; }

/* ---- ataques, avisos y escudo ---- */
.alert { position: fixed; z-index: 1100; top: 68px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(127, 29, 29, .96), rgba(185, 28, 28, .92)); border: 1px solid rgba(252, 165, 165, .6); box-shadow: 0 10px 40px rgba(239, 68, 68, .45); animation: alarm 1.4s ease-in-out infinite; }
@keyframes alarm { 50% { box-shadow: 0 10px 56px rgba(239, 68, 68, .85); border-color: #fecaca; } }
.alert-icon { font-size: 30px; animation: shake 1.4s ease-in-out infinite; }
@keyframes shake { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-8deg); } }
.alert-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.alert-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-text span { color: #fecaca; font-size: 13px; }
.alert-btns { display: flex; gap: 8px; }
.alert .ghost { border-color: rgba(255, 255, 255, .35); }
button.shield-cta { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3b2300; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 0 rgba(251, 191, 36, .7); animation: cta 1.6s ease-out infinite; }
button.shield-cta:hover:not(:disabled) { background: linear-gradient(135deg, #fcd34d, #fbbf24); }
@keyframes cta { 70% { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); } }
.cd { font-variant-numeric: tabular-nums; font-weight: 700; }
.cd.big { font-size: 24px; letter-spacing: .5px; }

.empire-btn { position: relative; font-weight: 700; }
.empire-btn.alarm { background: rgba(185, 28, 28, .85); border-color: #fca5a5; animation: alarm 1.4s ease-in-out infinite; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }

.atk-card { margin: 10px 0; padding: 12px 14px; border-radius: 14px; display: grid; gap: 8px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .45); }
.atk-card.danger { background: rgba(239, 68, 68, .16); border-color: rgba(248, 113, 113, .7); animation: alarm 1.6s ease-in-out infinite; }
.atk-card.mine { background: rgba(251, 191, 36, .12); }
.atk-card small { color: var(--muted); line-height: 1.45; }
.atk-clock { color: var(--muted); font-size: 13px; display: flex; align-items: baseline; gap: 8px; }
.atk-card.danger .atk-clock .cd { color: #fecaca; }
.atk-card.mine .atk-clock .cd { color: var(--warn); }
.meter.atk { height: 8px; }
.atk-card.danger .meter > div { background: #ef4444; }
.atk-card.mine .meter > div { background: var(--warn); }
.tip.warn-tip { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .4); color: #fde68a; }
.ok { color: var(--accent); } b.warn, .warn-text { color: var(--warn); }

.amounts button.pick { position: relative; outline: 2px solid var(--warn); }
.ribbon { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--warn); color: #3b2300; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.stats > div { padding: 12px 8px; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, .06); display: grid; gap: 2px; }
.stats b { font-size: 20px; }
.stats small { color: var(--muted); font-size: 12px; }
.sec { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sec.danger { color: #fca5a5; }
.erow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.erow.danger { background: rgba(239, 68, 68, .14); border: 1px solid rgba(248, 113, 113, .5); }
.erow .info { flex: 1; }
.erow button { padding: 6px 12px; font-size: 13px; }
.state { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.state.ok { background: rgba(52, 211, 153, .15); color: var(--accent); }
.state.warn { background: rgba(251, 191, 36, .15); color: var(--warn); }
.state.danger { background: rgba(239, 68, 68, .2); color: #fca5a5; }
.nrow { padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 13px; line-height: 1.4; }
.nrow small { color: var(--muted); }
.nrow.new { border-left: 3px solid var(--accent); }
.nrow.lost, .nrow.incoming { border-left: 3px solid #ef4444; }
.nrow.won, .nrow.repelled { border-left: 3px solid var(--accent); }
.feed .ev.launch b { color: #fca5a5; }

@media (max-width: 760px) {
  .alert { top: var(--top, 112px); flex-wrap: wrap; }
  .alert-btns { width: 100%; } .alert-btns button { flex: 1; }
  .empire-label { display: none; }
  .cd.big { font-size: 20px; }
}

/* ---- iconos de lugares ---- */
.lm { gap: 3px; }
.lmb { box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .92); background: linear-gradient(145deg, var(--a), var(--b)); box-shadow: 0 3px 9px rgba(0, 0, 0, .55), inset 0 2px 3px rgba(255, 255, 255, .45), inset 0 -3px 5px rgba(0, 0, 0, .2); }
.lmb svg { width: 66%; height: 66%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.lm em { padding: 1px 8px; border-radius: 999px; background: rgba(11, 16, 32, .74); text-shadow: none; }
.lmb-inline { display: inline-flex; vertical-align: middle; }
.chip { display: inline-flex; align-items: center; gap: 4px; }

/* ---- aviso de zoom en la vista del mundo ---- */
.hint { position: fixed; z-index: 900; left: 50%; bottom: 30px; transform: translateX(-50%); display: grid; gap: 2px; text-align: center; padding: 10px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(14px); font-weight: 600; pointer-events: none; }
.hint small { color: var(--muted); font-weight: 400; font-size: 12px; max-width: 360px; }
@media (max-width: 760px) { .hint { bottom: auto; top: var(--top, 112px); width: calc(100vw - 24px); } }

/* ---- subastas ---- */
.auction-card { margin: 10px 0; padding: 12px 14px; border-radius: 14px; display: grid; gap: 8px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .5); }
.auction-card.lead { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .55); }
.auction-card small { color: var(--muted); line-height: 1.45; }
.auction-card .row { margin: 2px 0; }
.auction-card .price { font-size: 22px; }
.bid-row { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.bid-row input { margin: 0; font-size: 20px; font-weight: 800; text-align: right; }
.tip.ok-tip { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .4); color: #a7f3d0; }
.feed .ev.bid b, .feed .ev.won b { color: #fcd34d; }

/* ---- editor de colores ---- */
.color-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.color-row small { color: var(--muted); }
.color-input { width: 48px; height: 36px; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; }
.hex-input { width: 104px; margin: 0; font-family: ui-monospace, Consolas, monospace; text-transform: lowercase; }
.palette.recent:empty { display: none; }
.palette.recent { margin-top: 0; }
.palette .sw { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.tools { flex-wrap: wrap; }
.tools .tool { flex: 1 0 14%; }

/* ---- marcas, arrendamientos y patrocinio ---- */
.sponsor-card { margin: 10px 0; padding: 12px 14px; border-radius: 14px; display: grid; gap: 8px; background: linear-gradient(135deg, rgba(251, 191, 36, .14), rgba(251, 191, 36, .04)); border: 1px solid rgba(251, 191, 36, .55); }
.sponsor-tag { justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: rgba(251, 191, 36, .22); color: #fcd34d; }
.sponsor-card small, .lease-card small { color: var(--muted); line-height: 1.45; }
.verified { color: #60a5fa; }
.lease-card { margin: 10px 0; padding: 12px 14px; border-radius: 14px; display: grid; gap: 8px; background: rgba(99, 102, 241, .12); border: 1px solid rgba(99, 102, 241, .45); }
.lease-card.on { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .5); }
.state.lease { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.brandm { pointer-events: auto !important; cursor: pointer; }
.brand-badge { width: 36px; height: 36px; font-weight: 800; font-size: 17px; color: #3b2300; --a: #fde68a; --b: #f59e0b; }
.brandm em { background: rgba(120, 53, 15, .85); }
.stats.four, .stats.two { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 520px) { .stats.four { grid-template-columns: repeat(4, 1fr); } }
.bars { height: 110px; display: flex; align-items: flex-end; gap: 3px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.bars i { flex: 1; min-height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #818cf8, #4f46e5); }
.bars i.hasclick { background: linear-gradient(180deg, #fcd34d, #d97706); }
.muted { color: var(--muted); font-size: 12px; }

/* ---- primeros pasos, guía, cuenta y legal ---- */
.checklist { position: fixed; z-index: 950; top: 68px; left: 12px; width: 270px; padding: 12px 14px; font-size: 13px; animation: slide .25s ease-out; }
.cl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cl-head button { padding: 2px 8px; }
.cl-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--muted); }
.cl-item.ok { color: var(--accent); }
.cl-item.ok .cl-label { text-decoration: line-through; opacity: .7; }
.cl-label { flex: 1; }
.chip-btn.small { padding: 4px 10px; font-size: 12px; background: rgba(52, 211, 153, .18); color: #a7f3d0; }
.guide { display: grid; gap: 12px; margin: 10px 0 14px; }
.guide-item { display: flex; gap: 12px; align-items: flex-start; }
.guide-item p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.guide-icon { font-size: 26px; line-height: 1; }
.tour-icon { font-size: 54px; text-align: center; margin: 4px 0 10px; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.dots i.on { background: var(--accent); }
label.tos { display: flex; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--muted); margin: 8px 0; cursor: pointer; }
label.tos a, .legal a { color: #93c5fd; }
.legal { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 10px; }
.admin-link { display: inline-block; margin: 8px 0; color: #fcd34d; font-weight: 700; }
.report-btn { width: 100%; margin-top: 10px; font-size: 13px; padding: 7px; color: var(--muted); }
.help-btn { padding: 8px 12px; }
@media (max-width: 760px) { .checklist { top: var(--top, 112px); width: calc(100vw - 24px); } }

.share-btn { width: 100%; margin-top: 10px; font-size: 13px; padding: 8px; }

/* ---- cuenta, carga y avisos generales ---- */
.mnav { display: none; }
.splash { position: fixed; inset: 0; z-index: 5000; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; background: var(--bg); color: var(--muted); }
.splash .logo { width: 44px; height: 44px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); opacity: .7; } }
.linkish { display: block; width: 100%; margin-top: 10px; padding: 6px; background: none; color: #93c5fd; font-size: 13px; }
button.balance { font-variant-numeric: tabular-nums; }
.erow .ok, .erow .warn-text { white-space: nowrap; }

/* ---- móvil: navegación inferior, hojas desplegables y objetivos táctiles ---- */
@media (max-width: 760px) {
  :root { --nav-h: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .desk { display: none !important; }

  .topbar { top: calc(8px + env(safe-area-inset-top, 0px)); left: calc(10px + env(safe-area-inset-left, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); flex-wrap: nowrap; }
  .brand { font-size: 15px; padding: 8px 12px; }
  #account { flex-wrap: nowrap; }
  #account .pill, #account button { padding: 8px 14px; font-size: 14px; }

  .mnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0; height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom, 0px); background: rgba(12, 17, 34, .95); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 0; padding: 6px 2px; border-radius: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; }
  .mnav button.on { color: var(--accent); }
  .mnav button.alarm { color: #fca5a5; animation: alarm 1.4s ease-in-out infinite; box-shadow: none; }
  .mnav .ni { position: relative; font-size: 22px; line-height: 1; }
  .mnav .badge { position: absolute; top: -6px; right: -14px; }
  .stage canvas { max-height: 30vh; max-height: 30dvh; width: auto; margin: 0 auto; } /* que los botones de acción queden a la vista */

  /* el panel de parcela es una hoja que sube desde la navegación; el asa la pliega */
  #panel { top: auto; left: 0; right: 0; bottom: var(--nav-h); width: auto; max-height: calc(100vh - var(--nav-h) - var(--top, 64px) - 8px); max-height: calc(100dvh - var(--nav-h) - var(--top, 64px) - 8px); padding: 10px 16px 18px; border-radius: 20px 20px 0 0; overscroll-behavior: contain; animation: rise .25s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  #panel::before { content: ''; display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
  #panel.peek { max-height: 140px; overflow: hidden; }
  #panel.editing { top: var(--top, 64px); max-height: none; border-radius: 16px 16px 0 0; }
  #panel .close { top: 18px; }

  /* los modales también suben desde abajo, a pantalla casi completa */
  .modal { place-items: end center; }
  .modal-body, .modal-body.wide { width: 100%; max-height: 90vh; max-height: 90dvh; overflow: auto; padding: 22px 16px calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; overscroll-behavior: contain; animation: rise .22s ease-out; }

  .feed { display: none; }
  .feed.open { display: block; position: fixed; z-index: 1150; left: 10px; right: 10px; width: auto; bottom: calc(var(--nav-h) + 10px); font-size: 14px; }
  .feed.open div { padding: 5px 0; }
  .alert { top: var(--top, 64px); }
  .hint, .checklist { top: var(--top, 64px); }
  body.panel-open .hint, body.panel-open .checklist, body.panel-open .leaflet-control-zoom, body.panel-open .leaflet-control-attribution { display: none; }
  .leaflet-bottom { bottom: var(--nav-h); }
  .leaflet-control-zoom { margin-bottom: 12px !important; margin-right: 10px !important; }
  #toasts { bottom: calc(var(--nav-h) + 12px); width: calc(100vw - 24px); }
  .toast { text-align: center; }

  /* 16 px evita que iOS haga zoom al enfocar un campo; el resto del texto pequeño sube a 13 px */
  input, select, textarea { font-size: 16px; }
  .muted, .note, .sec, .stats small, label, .chip, .info small, .atk-card small, .nrow small, .legal, .tip, .sponsor-card small, .lease-card small, .auction-card small { font-size: 13px; }
  .lm em { font-size: 12px; }
}

/* pantallas táctiles: dedos, no ratones (44 px es el mínimo cómodo) */
@media (pointer: coarse) {
  button:not(.sw):not(.tool) { min-height: 44px; }
  .tools .tool { min-height: 44px; }
  .close { min-width: 44px; min-height: 44px; }
  .chip-btn.small, .erow button, .cl-head button { min-height: 40px; }
  .sw.sel { transform: scale(1.06); }
}

.lang-btn { padding: 8px 12px; cursor: pointer; }

/* ---- banderas de invasores (mapa del mundo) ---- */
.inv-wrap { overflow: visible; }
.inv { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 0; padding: 0; background: none; border: 0; cursor: pointer; filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .6)); animation: invIn .4s cubic-bezier(.2, .9, .3, 1.15) backwards; animation-delay: var(--d, 0ms); }
.inv:hover:not(:disabled) { background: none; }
.inv img { display: block; width: var(--w); height: var(--h); object-fit: cover; border: 2px solid #fff; border-radius: 6px; background: #1c2542; transition: transform .15s ease-out; }
.inv:hover img, .inv:focus-visible img { transform: scale(1.14); }
.inv:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.inv-n { margin-top: -7px; padding: 1px 8px; border-radius: 999px; background: rgba(11, 16, 32, .94); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font: 800 11px/1.5 Inter, sans-serif; font-variant-numeric: tabular-nums; z-index: 1; }
.inv.mine img { border-color: #f87171; animation: invAlarm 1.8s ease-out infinite; }
.inv.mine .inv-n { background: #b91c1c; border-color: #fecaca; }
@keyframes invIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.5); } }
@keyframes invAlarm { 0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, .75); } 70%, 100% { box-shadow: 0 0 0 12px rgba(248, 113, 113, 0); } }

.inv-toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 12px; border-radius: 12px; background: var(--card); color: var(--text); border: 1px solid var(--line); backdrop-filter: blur(14px); font-weight: 700; font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); margin-bottom: 8px !important; animation: slide .25s ease-out; }
.inv-toggle[aria-pressed='false'] { opacity: .7; }
.inv-toggle[aria-pressed='false'] span { filter: grayscale(1); }
.inv-toggle[aria-pressed='true'] { border-color: rgba(52, 211, 153, .6); }

.inv-pop .leaflet-popup-content-wrapper { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(14px); box-shadow: 0 14px 44px rgba(0, 0, 0, .55); }
.inv-pop .leaflet-popup-tip { background: rgba(18, 24, 44, .94); border: 1px solid var(--line); }
.inv-pop .leaflet-popup-content { margin: 14px 16px 16px; font-family: inherit; line-height: 1.4; }
.inv-pop a.leaflet-popup-close-button { color: var(--muted); width: 32px; height: 32px; font-size: 20px; line-height: 32px; top: 4px; right: 4px; }
.inv-card { display: grid; gap: 10px; min-width: 210px; }
.inv-head { display: flex; align-items: center; gap: 10px; padding-right: 22px; }
.inv-head b { display: block; font-size: 15px; }
.inv-head small, .inv-own { color: var(--muted); font-size: 12px; }
.inv-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.inv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f87171, #fb923c); }
.inv-bar i.own { background: linear-gradient(90deg, #34d399, #6ee7b7); }
.inv-mine { padding: 8px 10px; border-radius: 10px; background: rgba(248, 113, 113, .14); border: 1px solid rgba(248, 113, 113, .5); color: #fecaca; font-size: 13px; font-weight: 600; }
.inv-tip { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font: 600 12px Inter, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.inv-tip::before { border-top-color: rgba(18, 24, 44, .94) !important; }
.mine-chip { margin-left: 8px; background: rgba(248, 113, 113, .2); color: #fecaca; }
.inv-tip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inv-tip-row button { flex: none; padding: 6px 12px; font-size: 13px; }
.settler-chip { margin-left: 8px; background: rgba(251, 191, 36, .16); color: #fde68a; }
body.has-popup .hint, body.has-popup .checklist { display: none; }
.inv-row .info small, .ruin-card .info small { white-space: normal; }
body.world-view #toasts { bottom: 118px; } /* por encima de la ayuda de zoom del mapa del mundo */
@media (max-width: 760px) { .inv-toggle { height: 44px; } body.world-view #toasts { bottom: calc(var(--nav-h) + 12px); } }

/* ---- aviso de la administración y mantenimiento ---- */
.notice { position: fixed; z-index: 1300; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px; font-size: 14px; font-weight: 600; text-align: center; color: #dbeafe; background: rgba(30, 58, 138, .96); border-bottom: 1px solid rgba(147, 197, 253, .45); animation: slide .25s ease-out; }
.notice.warn { color: #fef3c7; background: rgba(120, 53, 15, .96); border-color: rgba(251, 191, 36, .5); }
.notice.bad { color: #fee2e2; background: rgba(127, 29, 29, .96); border-color: rgba(252, 165, 165, .5); }
.notice button { flex: none; padding: 2px 10px; min-height: 0; }
@media (max-width: 760px) { .topbar { top: calc(8px + env(safe-area-inset-top, 0px) + var(--notice-h, 0px)); } .notice { padding-top: calc(8px + env(safe-area-inset-top, 0px)); } }

.map-status { position: absolute; z-index: 1000; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--card); color: var(--text); border: 1px solid var(--line); font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); pointer-events: none; }
.map-status[hidden] { display: none; }

.search { position: relative; flex: 0 1 340px; min-width: 0; }
.search input { width: 100%; margin: 0; padding: 9px 14px 9px 36px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; backdrop-filter: blur(14px); }
.search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; }
.search-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: 60vh; overflow-y: auto; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(14px); }
.search-list[hidden] { display: none; }
.search-list li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.search-list li.on, .search-list li:hover { background: rgba(255, 255, 255, .09); }
.search-list .st { display: grid; min-width: 0; }
.search-list .st b, .search-list .st small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-list small { color: var(--muted); font-size: 12px; }
.search-list li.note { color: var(--muted); font-size: 13px; cursor: default; }
@media (max-width: 760px) { .search { order: 5; flex: 1 0 100%; } .search-list { max-height: 45vh; } }

.greeting { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .05); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.greeting small { display: block; margin-bottom: 4px; color: var(--muted); font-weight: 600; }

.chip-btn { padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--text); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.chip-btn.on { border-color: var(--accent); color: var(--accent); }
.chips.filters { margin: 8px 0 12px; }
.mine-badge { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.mine-badge.danger { background: rgba(239, 68, 68, .25); color: #fca5a5; }
.mine-badge.warn { background: rgba(251, 191, 36, .18); color: var(--warn); }
.inv-toggle.alarm { border-color: var(--danger); }

.disc-row { margin: 6px 0; }
.disc-row > small { display: block; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.disc-row .chips { margin: 0; }

.cl-now { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); }
.cl-now b { display: block; color: var(--text); }
.cl-now p { margin: 4px 0 10px; color: var(--muted); line-height: 1.45; }
.cl-now button { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } 50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, .25); } }
.checklist { width: 300px; max-height: calc(100vh - 140px); overflow-y: auto; }
@media (max-width: 760px) { .checklist { width: calc(100vw - 24px); max-height: 46vh; } }

.poster-preview { display: block; width: 100%; max-width: 360px; margin: 8px auto; border-radius: 8px; border: 2px solid #e8ddc5; aspect-ratio: 3 / 2; object-fit: cover; }
.poster-preview[hidden] { display: none; }

.captcha { display: flex; justify-content: center; margin: 10px 0 2px; min-height: 65px; } /* Turnstile del registro */

.side-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.side-pick button { padding: 8px 6px; font-size: 13px; }
.side-pick button.on { border-color: #34d399; background: rgba(52, 211, 153, .18); color: #a7f3d0; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 13px; line-height: 1.4; cursor: pointer; }
.check-row input { margin-top: 2px; flex: none; }
.checklist.min { width: auto; padding: 4px; max-height: none; overflow: visible; }
.cl-pill { padding: 8px 12px; border-radius: 12px; background: transparent; color: var(--text); font-weight: 600; font-size: 13px; border: 0; cursor: pointer; }
.cl-item.wait { color: var(--muted); }
.cl-hint { display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; opacity: .85; }
@media (max-width: 760px) { .checklist.min { width: auto; } }
.erow.mission { flex-wrap: wrap; }
.erow.mission .info { flex: 1 1 100%; }
.erow.mission button { margin-left: auto; }
.brand-head { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.brand-head small { display: block; color: var(--muted); }
.logo-badge { flex: none; display: inline-grid; place-items: center; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.logo-badge.initial { font-weight: 800; color: #3b2300; background: linear-gradient(145deg, #fde68a, #f59e0b); border: 0; }
.brand-badge.has-logo { background: #fff; padding: 0; overflow: hidden; }
.brand-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.erow.est { flex-wrap: wrap; }
.erow.est .info { flex: 1 1 100%; }
.erow.est .check-row { flex: 1 1 100%; margin: 4px 0 0; }
.leaflet-container .brand-badge img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; border-radius: 50%; }
.check-row input[type=checkbox] { width: auto; flex: none; margin: 2px 0 0; }
.tabs { flex-wrap: wrap; }
.tabs button { flex: 1 1 auto; }

/* ---- recarga y primer contacto ---- */
.topup-bal { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.topup-sum { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); }
.topup-sum span { flex: 1; color: var(--muted); font-size: 13px; }
.topup-sum b { font-size: 20px; }
.topup-sum small { color: var(--accent); font-weight: 600; }
.topup-nudge:empty { display: none; }
.topup-nudge .linkish { margin: 0 0 8px; color: var(--accent); font-weight: 600; }
.amounts button { position: relative; }
.amounts button.pick:not(.on) { outline-width: 1px; }
button.balance.low { border-color: rgba(251, 191, 36, .7); animation: nudge 2.4s ease-in-out infinite; }

.pitch { position: fixed; z-index: 950; top: 68px; left: 12px; width: 300px; padding: 16px 16px 14px; display: grid; gap: 8px; animation: slide .25s ease-out; }
.pitch b { font-size: 16px; line-height: 1.3; padding-right: 28px; }
.pitch p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pitch .close { top: 8px; right: 8px; }
.pitch-gift { padding: 8px 10px; border-radius: 10px; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .4); color: #fde68a; font-size: 13px; line-height: 1.4; }
@media (max-width: 760px) {
  .pitch { left: 10px; right: 10px; width: auto; }
  body.panel-open .pitch { display: none; }
}
body.has-popup .pitch { display: none; }
@media (max-width: 760px) {
  .pitch { top: var(--top, 64px); bottom: auto; padding: 12px 14px; gap: 6px; }
  .pitch p { display: none; }
  body.world-view .pitch { top: calc(var(--top, 64px) + 88px); } /* debajo de la ayuda de zoom del mundo */
}
