/* Torre. Fondos estáticos; las plantas solo cambian de transform (el ancho se fija al crearlas).
   1rem = 32 px a 1080p. */
.torre { background: linear-gradient(180deg, #7FC8F8 0%, #CDEBFF 100%); color: var(--tg-ink); }
.torre-sol { position: absolute; right: 6%; top: 8%; width: 6rem; height: 6rem; border-radius: var(--tg-r-pill); background: #FFE45C; }
.torre-nube { position: absolute; border-radius: var(--tg-r-pill); background: #fff; opacity: .75; }
.torre-nube--1 { left: 8%; top: 12%; width: 8rem; height: 2.25rem; }
.torre-nube--2 { left: 55%; top: 22%; width: 6rem; height: 1.75rem; }
.torre-suelo { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: #6CC46F; border-top: .3125rem solid #58AE5C; }

/* Un carril por jugador, separados por una raya clara */
.torre-carril { position: absolute; top: 0; bottom: 0; overflow: hidden; border-right: .125rem dashed rgba(255,255,255,.6); }
.torre-carril:last-of-type { border-right: 0; }
.torre-mundo { position: absolute; left: 0; top: 0; right: 0; bottom: 0; will-change: transform; }

.torre-planta { position: absolute; left: 0; top: 0; height: 5%; box-sizing: border-box; background: var(--color); border: .1875rem solid rgba(31,31,31,.85); border-radius: .375rem; will-change: transform; }
.torre-planta--clara::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.28); border-radius: .25rem; }
.torre-planta--base { background: #8A4C1E; }
.torre-planta--mueve { z-index: 2; }

/* Pie de cada torre: personaje, nombre y altura, sobre la hierba */
.torre-pie { position: absolute; left: 0; right: 0; bottom: 1.5%; display: flex; align-items: center; justify-content: center; gap: .5rem; z-index: 3; }
.torre-avatar { width: 2.75rem; height: 2.75rem; flex: none; }
.torre-avatar.tg-cara--foto { border-radius: var(--tg-r-pill); object-fit: cover; border: .125rem solid #fff; box-sizing: border-box; }
.torre-nombre { height: 1.75rem; padding: 0 .625rem; border-radius: var(--tg-r-pill); background: #fff; display: flex; align-items: center; font-size: 1rem; font-weight: var(--tg-w-medium); white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.torre-nombre .tg-personaje--linea { width: 1rem; height: 1rem; }
.torre-altura { min-width: 2.75rem; height: 2.75rem; padding: 0 .5rem; box-sizing: border-box; border-radius: var(--tg-r-pill); background: var(--color); color: #fff; border: .1875rem solid #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: var(--tg-w-strong); }
.torre-aviso { position: absolute; left: 0; right: 0; top: 12%; width: max-content; margin: 0 auto; z-index: 4; }

/* Con 5 o más jugadores los carriles son estrechos: solo personaje y altura */
.torre--muchos .torre-nombre { display: none; }
