:root {
  --bg: #14121a; --panel: #1f1b27; --panel2: #2a2434; --text: #f3eee6; --muted: #a59bb3;
  --accent: #ff5a36; --gold: #ffd166; --blue: #4aa3ff; --red: #ff4d6d; --green: #3ddc84;
  --radius: 14px; --font: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}
.alpha-label { font-size: 11px; padding: 4px 8px; border: 1px solid #ffd16655; border-radius: 20px; color: var(--gold); vertical-align: middle; }
.mvp-intro { padding: 8px 0; }
.mvp-intro small { color: var(--gold); letter-spacing: .12em; }
.mvp-intro p, .mission-card p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.mission-card { padding: 14px; margin-top: 12px; border: 1px solid #ffffff18; border-radius: 12px; background: #ffffff04; }
.mission-card h4 { margin: 0; }
.mission-card progress { width: 100%; height: 8px; accent-color: var(--accent); }
.mission-card small { display: block; margin: 10px 0; color: var(--gold); }
.mission-card button { width: 100%; }
.history-row { padding: 8px 0; border-bottom: 1px solid #ffffff12; font-size: 13px; }
.history-row small { display: block; margin-top: 5px; color: var(--muted); }
.mvp-account { width: 100%; margin-top: 10px; font-size: 12px; }
#account-form label { display: block; margin: 16px 0; }
#account-form input { margin-top: 6px; }
#account-error { color: #ff8c8c; }
.map-local-controls { position: absolute; left: 12px; bottom: 28px; z-index: 100; display: flex; gap: 6px; }
.map-local-credit { position: absolute; right: 10px; bottom: 5px; color: #bbc9c8; font-size: 10px; z-index: 100; }
.map-local-label { position: absolute; left: 12px; bottom: 70px; font-size: 11px; color: #c7d6d5; background: #14121acc; padding: 6px 9px; border-radius: 6px; }
#panel .tabs { flex-wrap: wrap; }
#tab-missions { overflow-y: auto; padding: 8px 12px; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 8px 12px; background: var(--panel2); color: var(--text); }
button:hover { filter: brightness(1.15); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--accent); color: #fff; font-weight: bold; }
button.ghost { background: transparent; border: 1px solid #ffffff2a; }
input { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid #ffffff22; background: #0f0d14; color: var(--text); }
.hidden { display: none !important; }
#mapwrap { position: fixed; inset: 0; z-index: 0; }
#map { width: 100%; height: 100%; background: #2b2b2b; }

/* HUD */
#hud { position: fixed; top: 10px; left: 10px; right: 10px; z-index: 500; display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; pointer-events: none; }
#hud > * { pointer-events: auto; }
.hud-card { display: flex; align-items: center; gap: 10px; background: #1f1b27ee; padding: 6px 12px 6px 6px; border-radius: var(--radius); box-shadow: 0 4px 16px #0006; text-align: left; position: relative; }
.hud-info { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.hud-info span { font-size: 12px; color: var(--muted); }
.xpbar { height: 6px; background: #0007; border-radius: 4px; overflow: hidden; }
.xpbar span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .4s; }
.badge { position: absolute; top: -6px; right: -6px; background: var(--gold); color: #000; font-size: 11px; font-weight: bold; padding: 2px 6px; border-radius: 10px; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { transform: scale(1.12); } }
.hud-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hud-actions button { background: #1f1b27ee; box-shadow: 0 4px 16px #0006; }
.mini-avatar { width: 44px; height: 44px; display: block; background: var(--panel2); border-radius: 10px; overflow: hidden; }
.mini-avatar svg, .big-avatar svg { width: 100%; height: 100%; }

/* panel */
#panel { position: fixed; right: 10px; top: 80px; bottom: 30px; width: 320px; max-width: calc(100vw - 20px); z-index: 500; background: #1f1b27f2; border-radius: var(--radius); box-shadow: 0 6px 24px #0008; display: flex; flex-direction: column; overflow: hidden; }
.tabs { display: flex; }
.tabs button { flex: 1; border-radius: 0; background: transparent; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--text); border-color: var(--accent); }
.tab { display: none; flex: 1; overflow: auto; padding: 8px; }
.tab.active { display: flex; flex-direction: column; }
#near-list, #chat-list, #rank-list { list-style: none; margin: 0; padding: 0; }
#near-list li { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px; }
#near-list li:hover { background: #ffffff0a; }
#near-list .who { flex: 1; min-width: 0; }
#near-list .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
#near-list .who small { color: var(--muted); }
#near-list .mini-avatar { width: 36px; height: 36px; }
.kind-player b { color: var(--blue); }
.kind-npc b { color: #ff9f7a; }
.fight-btn { background: var(--accent); color: #fff; font-weight: bold; padding: 6px 10px; }
#chat-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
#chat-list b { color: var(--blue); }
#chat-list .sys { color: var(--muted); font-style: italic; }
#chat-form { display: flex; gap: 6px; margin-top: 8px; }
#rank-list { padding-left: 24px; }
#rank-list li { padding: 5px 0; }
#rank-list small { color: var(--muted); }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: #0009; padding: 16px; }
#create { background: linear-gradient(#14121acc, #14121a99); align-items: flex-start; overflow: auto; pointer-events: none; }
#create .sheet { pointer-events: auto; margin-top: 4vh; }
.sheet { background: var(--panel); border-radius: 18px; padding: 20px; width: 100%; max-width: 760px; box-shadow: 0 10px 40px #000a; max-height: calc(100vh - 32px); overflow: auto; }
.sheet.small { max-width: 440px; }
.sheet.center { text-align: center; }
h1 { margin: 0; font-size: 40px; letter-spacing: 3px; color: var(--accent); text-shadow: 3px 3px 0 #000; font-style: italic; }
h2 { margin: 0 0 12px; }
.tag { margin: 2px 0 16px; color: var(--muted); }
.create-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.create-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.big-avatar { width: 180px; height: 180px; background: radial-gradient(circle at 50% 70%, #3a3146, #1a1622); border-radius: 16px; }
.create-form { display: flex; flex-direction: column; gap: 8px; }
.create-form label { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; gap: 6px; }
.row input { flex: 1; }
#search-results, #move-results { list-style: none; margin: 0; padding: 0; max-height: 180px; overflow: auto; }
#search-results li, #move-results li { padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 14px; }
#search-results li:hover, #move-results li:hover { background: #ffffff12; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.place { margin: 4px 0; font-weight: bold; color: var(--gold); }
.stat-list { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 8px; font-size: 13px; align-items: center; }
.stat-list .bar { height: 7px; background: #0006; border-radius: 4px; overflow: hidden; }
.stat-list .bar span { display: block; height: 100%; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; margin-top: 6px; }
.chip { background: var(--panel2); border-radius: 999px; padding: 3px 9px; font-size: 13px; }
.lu-options { display: flex; flex-direction: column; gap: 10px; }
.lu-options button { padding: 16px; font-size: 17px; background: var(--panel2); border: 2px solid #ffffff1a; }
.lu-options button:hover { border-color: var(--gold); }
.close { margin-top: 12px; width: 100%; }
.sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.sheet-head .big-avatar { width: 110px; height: 110px; }

/* monigotes sobre Google Maps */
.hv-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; cursor: pointer; user-select: none; }
.hv-pin .fig { width: 38px; height: 50px; position: relative; filter: drop-shadow(0 2px 2px #0007); }
.hv-pin .fig svg { width: 100%; height: 100%; }
.hv-pin.flip .fig svg { transform: scaleX(-1); }
.hv-pin .shadow { width: 30px; height: 8px; margin-top: -5px; border-radius: 50%; background: #0005; }
.hv-pin .lbl { margin-bottom: 2px; color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 8px; white-space: nowrap; font-weight: bold; background: #000c; border: 2px solid #fff; }
.hv-pin.me .fig { width: 46px; height: 60px; }
.hv-pin.me .lbl { border-color: var(--gold); }
.hv-pin.player .lbl { border-color: var(--blue); }
.hv-pin.npc .lbl { border-color: var(--red); }
.hv-pin.offline { opacity: .6; filter: grayscale(.7); }
.hv-pin.npc .fig, .hv-pin.player .fig { animation: idle 2.4s ease-in-out infinite; }
.hv-pin.walking .fig { animation: walk .32s ease-in-out infinite; }
.hv-pin.hide { visibility: hidden; }
@keyframes idle { 50% { transform: translateY(-2px); } }
@keyframes walk { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }
.hv-pin .bubble { position: absolute; bottom: 100%; margin-bottom: 4px; background: #fff; color: #111; font-size: 12px; padding: 4px 8px; border-radius: 10px; max-width: 180px; width: max-content; white-space: normal; box-shadow: 0 2px 6px #0006; }
.pop { color: #222; font-family: var(--font); min-width: 180px; }
.pop h3 { margin: 0 0 4px; font-size: 15px; }
.pop p { margin: 0 0 8px; color: #555; font-size: 13px; }
.pop button { width: 100%; }
.pop button:not(.primary) { background: #eee; color: #222; }

/* nube de pelea en el mapa */
.brawl { position: absolute; transform: translate(-50%, -75%); width: 150px; height: 120px; pointer-events: none; }
.brawl .cloud { position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 40%, #fff 0 22%, transparent 23%), radial-gradient(circle at 65% 45%, #fff 0 25%, transparent 26%), radial-gradient(circle at 50% 65%, #fff 0 28%, transparent 29%), radial-gradient(circle at 30% 65%, #f2f2f2 0 20%, transparent 21%), radial-gradient(circle at 72% 68%, #f2f2f2 0 20%, transparent 21%); animation: cloud .18s linear infinite; filter: drop-shadow(0 3px 4px #0006); }
.brawl .fx { position: absolute; font-size: 26px; animation: fx .5s ease-out infinite; }
.brawl .fx:nth-child(2) { left: 6px; top: 8px; animation-delay: .1s; }
.brawl .fx:nth-child(3) { right: 4px; top: 18px; animation-delay: .25s; }
.brawl .fx:nth-child(4) { left: 26px; bottom: 4px; animation-delay: .35s; }
.brawl .fx:nth-child(5) { right: 20px; bottom: 0; animation-delay: .05s; }
.brawl .limb { position: absolute; width: 44px; height: 58px; animation: limb .3s ease-in-out infinite alternate; }
.brawl .limb svg { width: 100%; height: 100%; }
.brawl .limb.a { left: 0; top: 30px; } .brawl .limb.b { right: 0; top: 24px; animation-delay: .15s; }
.brawl .limb.b svg { transform: scaleX(-1); }
@keyframes cloud { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(8deg) scale(1.06); } 100% { transform: rotate(0) scale(1); } }
@keyframes fx { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@keyframes limb { from { transform: translate(0, 0) rotate(-15deg); } to { transform: translate(6px, -12px) rotate(20deg); } }
.approach { position: absolute; transform: translate(-50%, -100%); width: 38px; height: 50px; pointer-events: none; transition: left .5s ease-in, top .5s ease-in; }
.approach svg { width: 100%; height: 100%; }

/* transición al combate */
#versus { position: fixed; inset: 0; z-index: 1500; pointer-events: none; overflow: hidden; }
#versus .vs-stripe { position: absolute; left: -10%; width: 120%; height: 52%; background: repeating-linear-gradient(-45deg, var(--accent) 0 40px, #c23a1c 40px 80px); transform: skewY(-6deg); }
#versus .vs-stripe.top { top: -4%; animation: inL .35s ease-out both; }
#versus .vs-stripe.bottom { bottom: -4%; animation: inR .35s ease-out both; }
#versus .vs-word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 90px; font-weight: bold; font-style: italic; color: #fff; text-shadow: 6px 6px 0 #000; animation: pop .4s .2s both; }
#versus.out { animation: fadeout .35s forwards; }
@keyframes inL { from { transform: translateX(-110%) skewY(-6deg); } }
@keyframes inR { from { transform: translateX(110%) skewY(-6deg); } }
@keyframes fadeout { to { opacity: 0; } }
#map.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translate(6px, -4px); } 50% { transform: translate(-6px, 4px); } 75% { transform: translate(4px, 2px); } }

/* arena */
.arena-box { width: 100%; max-width: 900px; background: var(--panel); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px #000c; display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.arena-head { display: flex; align-items: center; padding: 12px 16px; gap: 12px; background: #0004; }
.arena-name { flex: 1; font-weight: bold; font-size: 18px; }
.arena-name.right { text-align: right; }
.vs { color: var(--accent); font-weight: bold; font-style: italic; font-size: 22px; }
.stage { position: relative; height: 340px; overflow: hidden; background: linear-gradient(#3c4a6b 0%, #6b6f8f 45%, #4b4453 46%, #3a3340 100%); }
.stage::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 46%; background:
  linear-gradient(90deg, transparent 0 4%, #22263a 4% 16%, transparent 16% 20%, #2a2f45 20% 34%, transparent 34% 38%, #1f2334 38% 52%, transparent 52% 56%, #2c2f44 56% 70%, transparent 70% 74%, #232740 74% 90%, transparent 90%);
  clip-path: polygon(0 40%, 4% 40%, 4% 10%, 16% 10%, 16% 50%, 20% 50%, 20% 25%, 34% 25%, 34% 45%, 38% 45%, 38% 5%, 52% 5%, 52% 35%, 56% 35%, 56% 20%, 70% 20%, 70% 55%, 74% 55%, 74% 15%, 90% 15%, 90% 60%, 100% 60%, 100% 100%, 0 100%); }
.stage-street { position: absolute; left: 0; right: 0; top: 72%; height: 4px; background: repeating-linear-gradient(90deg, #ffd16699 0 30px, transparent 30px 60px); }
.ftr { position: absolute; bottom: 40px; width: 110px; height: 150px; transition: left .22s ease-in-out, bottom .22s; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.ftr.pet { width: 60px; height: 70px; }
.ftr .hpb { width: 80%; height: 7px; background: #0009; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.ftr .hpb span { display: block; height: 100%; background: var(--green); transition: width .25s; }
.ftr .body { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.ftr .body svg { width: 100%; height: 100%; }
.ftr.flip .body { transform: scaleX(-1); }
.ftr .pet-icon { font-size: 44px; line-height: 1; }
.ftr.flip .pet-icon { transform: scaleX(-1); display: inline-block; }
.ftr .weapon { position: absolute; right: -4px; top: 42%; font-size: 30px; transform: rotate(-20deg); }
.ftr.hurt .body { animation: hurt .3s; }
.ftr.dead { opacity: .35; filter: grayscale(1); transform: rotate(80deg); transform-origin: bottom center; transition: transform .4s, opacity .4s; }
.ftr.lunge .body { animation: lunge .25s; }
@keyframes hurt { 0%, 100% { filter: none; transform: translateX(0) } 30% { filter: brightness(2) saturate(0) sepia(1) hue-rotate(-50deg); transform: translateX(8px) } 60% { transform: translateX(-6px) } }
@keyframes lunge { 50% { transform: translateY(-14px) rotate(-6deg) } }
.ftr.flip.hurt .body { animation: hurtf .3s; }
@keyframes hurtf { 0%, 100% { filter: none; transform: scaleX(-1) translateX(0) } 30% { filter: brightness(2) saturate(0) sepia(1) hue-rotate(-50deg); transform: scaleX(-1) translateX(8px) } 60% { transform: scaleX(-1) translateX(-6px) } }
.ftr.flip.lunge .body { animation: lungef .25s; }
@keyframes lungef { 50% { transform: scaleX(-1) translateY(-14px) rotate(-6deg) } }
.float { position: absolute; z-index: 5; font-weight: bold; font-size: 24px; color: #fff; text-shadow: 2px 2px 0 #000; pointer-events: none; animation: floatup 1s forwards; }
.float.dmg { color: #ff4d4d; } .float.heal { color: var(--green); } .float.info { color: var(--gold); font-size: 18px; }
@keyframes floatup { to { transform: translateY(-50px); opacity: 0; } }
.projectile { position: absolute; z-index: 6; font-size: 30px; transition: left .35s linear, bottom .35s ease-out; }
.log { height: 110px; overflow: auto; padding: 8px 14px; font-size: 14px; background: #0003; }
.log p { margin: 2px 0; }
.log .win { color: var(--gold); font-weight: bold; font-size: 16px; }
.arena-foot { display: flex; gap: 8px; padding: 10px 14px; justify-content: flex-end; }
.result-banner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: bold; font-style: italic; text-shadow: 4px 4px 0 #000; z-index: 9; animation: pop .5s; }
.result-banner.win { color: var(--gold); } .result-banner.lose { color: var(--red); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* energía / monedas */
#res { position: fixed; top: 76px; left: 10px; z-index: 500; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #1f1b27ee; padding: 6px 10px; border-radius: var(--radius); box-shadow: 0 4px 16px #0006; font-size: 14px; max-width: calc(100vw - 20px); }
#res small { color: var(--muted); }
#res button { padding: 4px 8px; }
.res-en { display: flex; align-items: center; gap: 4px; }
.enbar { width: 70px; height: 7px; background: #0007; border-radius: 4px; overflow: hidden; margin-left: 4px; }
.enbar span { display: block; height: 100%; background: #4ad0ff; width: 0; transition: width .4s; }
.res-en.low b { color: var(--red); }
#btn-daily { background: var(--gold); color: #000; animation: pulse 1s infinite alternate; }

/* zona actual */
#zone { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 600; background: #1f1b27f2; padding: 6px 10px; border-radius: var(--radius); box-shadow: 0 6px 24px #0008; width: max-content; max-width: calc(100vw - 20px); }
#zone-list { display: flex; flex-direction: column; gap: 4px; }
.zrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px; }
.zinfo { font-size: 14px; line-height: 1.35; }
.zinfo small { color: var(--muted); }
.zinfo .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.zrow button { white-space: nowrap; }

/* toasts */
#toasts { position: fixed; top: 130px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toast { background: #1f1b27f5; padding: 10px 16px; border-radius: 12px; box-shadow: 0 4px 16px #0008; animation: pop .3s; max-width: 90vw; }
.toast button { margin-left: 8px; padding: 4px 10px; background: var(--accent); }

@media (max-width: 700px) {
  .create-grid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  #panel { top: auto; bottom: 28px; height: 48vh; width: auto; left: 10px; z-index: 700; }
  body:has(#panel:not(.hidden)) #zone { display: none; }
  .hud-actions { max-width: 150px; }
  #btn-move, #btn-sv { display: none; }
  #hud-brute { max-width: calc(100vw - 166px); }
  .zrow { flex-wrap: wrap; }
  #zone { max-height: 37vh; overflow: auto; }
  .hud-actions button { padding: 7px 9px; font-size: 13px; }
  .stage { height: 260px; }
  .ftr { width: 80px; height: 110px; }
}

/* base */
#home-banner { position: fixed; top: 124px; left: 50%; transform: translateX(-50%); z-index: 600; width: min(520px, calc(100vw - 20px)); background: #2a2434f5; border: 2px solid var(--gold); border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 6px 24px #0008; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
#home-banner b { color: var(--gold); font-size: 16px; }
.home-mark { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.home-mark span { font-size: 28px; filter: drop-shadow(0 2px 3px #000a); }
.home-mark small { font-size: 11px; font-weight: bold; color: #fff; background: #000b; padding: 1px 6px; border-radius: 8px; white-space: nowrap; }

/* minijuego y rondas */
.mini-bar { position: relative; height: 34px; margin: 14px 0; background: #0008; border-radius: 10px; overflow: hidden; }
#mini-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #ff4d6d88, #ff4d6d, #ff4d6d88); }
#mini-needle { position: absolute; top: -2px; bottom: -2px; width: 5px; margin-left: -2px; background: #fff; box-shadow: 0 0 8px #fff; border-radius: 3px; }
#mini-hits { display: flex; gap: 8px; justify-content: center; min-height: 28px; margin-bottom: 10px; font-weight: bold; }
#mini-hits .perfect { color: var(--gold); } #mini-hits .good { color: var(--green); } #mini-hits .miss { color: var(--red); }
#mini-btn { width: 100%; padding: 16px; font-size: 20px; touch-action: manipulation; }
#arena-round { text-align: center; padding: 6px; background: var(--accent); color: #fff; font-weight: bold; letter-spacing: 1px; }

/* arena con Street View de fondo */
#arena-sv { position: absolute; inset: 0; z-index: 0; display: none; pointer-events: none; }
#arena-sv * { pointer-events: none !important; }
.stage.sv { background: #000; }
.stage.sv #arena-sv { display: block; }
.stage.sv::before, .stage.sv .stage-street { display: none; }
.stage.sv::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(#0000 50%, #0007 100%); }
#arena-place { position: absolute; top: 6px; left: 8px; z-index: 3; font-size: 12px; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; }
.ftr::after { content: ''; position: absolute; bottom: -6px; left: 15%; width: 70%; height: 12px; border-radius: 50%; background: radial-gradient(#000a, #0000 70%); z-index: -1; }
.ftr.pet::after { bottom: -4px; height: 8px; }
.hv-pin .lbl { box-shadow: 0 1px 4px #000c; }

/* Street View: la foto se encuadra para el tamaño de los brutos (ver arenaScene) */
.stage.sv { height: 380px; }
@media (max-width: 700px) { .stage.sv { height: 300px; } }

/* muñecos del mapa a escala del zoom (zoom 18 = tamaño normal) */
.hv-pin { transform: translate(-50%, -100%) scale(var(--pin-scale, 1)); transform-origin: 50% 100%; }
.home-mark { transform: translate(-50%, -50%) scale(var(--pin-scale, 1)); }
.brawl { transform: translate(-50%, -75%) scale(var(--pin-scale, 1)); }
#map.pins-small .hv-pin:not(.me) .lbl, #map.pins-small .home-mark small { display: none; }

/* recorte de la cara */
#face-canvas { width: 100%; max-width: 360px; aspect-ratio: 1; border-radius: 14px; background: #0008; touch-action: none; cursor: grab; display: block; margin: 8px auto; }
.face-zoom { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.face-zoom input { flex: 1; padding: 0; }

/* avatar generado por Gemini */
#gen-img { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; display: block; margin: 8px auto; }
.gen-btns { display: flex; flex-direction: column; gap: 8px; }
.spinner { width: 54px; height: 54px; margin: 30px auto; border-radius: 50%; border: 5px solid #ffffff22; border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#gen-msg { overflow-wrap: anywhere; }

/* hacerlo gratis en la app de Gemini */
#gemapp-prompt { width: 100%; font: 12px/1.4 monospace; background: #0f0d14; color: var(--text); border: 1px solid #ffffff22; border-radius: 10px; padding: 8px; resize: none; margin: 6px 0 10px; }
.steps { margin: 0 0 6px 18px; padding: 0; font-size: 14px; line-height: 1.6; }
.btnlink { display: block; text-align: center; padding: 8px 12px; border-radius: 10px; background: var(--panel2); color: var(--text); text-decoration: none; }
