/* El tiempo en el campo · Los Lagos · tema claro para leer a pleno sol (ver docs/DESIGN.md) */
:root {
  --rojo: #BB162E;
  --rojo-hondo: #8B212F;
  --grafito: #55565A;
  --tinta: #1d1d1f;
  --texto-2: #6e6e73;
  --texto-3: #86868b;
  --calma: #c7c7cc;
  --fondo: #f5f5f7;
  --tarjeta: #ffffff;
  --hueco: #e8e8ed;
  --margen: 16px;
  --radio: 28px;
  --cifra: 80px;
  --fuente: -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (max-width: 374px) { :root { --cifra: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--fondo); }
body {
  margin: 0 auto;
  max-width: 430px;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { display: block; }
[hidden] { display: none !important; }
p, h1, h2, figure { margin: 0; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }

/* ---------- barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 10;
  height: 56px;
  padding: 0 var(--margen);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.barra-ma { display: block; width: 155px; height: 24px; overflow: hidden; }
/* meteoalert.svg (687 × 545) trae el ícono encima; aquí se muestra solo la palabra (y 438 a 544) */
.barra-ma img { width: 155px; height: auto; margin-top: -99px; }
.barra-club { height: 40px; width: auto; max-width: 96px; object-fit: contain; object-position: right center; }

/* si falta un logo se oculta; en la barra queda el nombre en texto */
img.falla { visibility: hidden; }
.pie-logo.falla, .evento-emblema.falla { display: none; }
.barra-ma.falla img { display: none; }
.barra-ma.falla::before { content: "MeteoAlert"; font-size: 20px; line-height: 24px; font-weight: 700; color: var(--rojo); letter-spacing: -.01em; }

/* aviso discreto de reconexión */
.aviso {
  position: fixed; z-index: 11;
  top: calc(env(safe-area-inset-top) + 64px); left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(29, 29, 31, .88);
  color: #fff;
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.aviso[hidden] { display: none; }

.pagina { padding: 20px var(--margen) 32px; }

/* ---------- franja del evento ---------- */
.evento { display: flex; align-items: center; gap: 12px; }
.evento-emblema { width: 44px; height: 44px; object-fit: contain; flex: none; }
.evento-txt { display: flex; flex-direction: column; line-height: 1.25; }
.evento-org { font-size: 15px; font-weight: 600; color: var(--tinta); }
.evento-nom { font-size: 15px; color: var(--texto-2); }

/* ---------- título, hora y resumen ---------- */
.titulo {
  margin-top: 28px;
  font-size: 34px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em;
}
.hora { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.hora-l1 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--texto-2); }
.hora-l2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.hora-punto {
  position: relative;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rojo);
  flex: none;
}
.hora-punto::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--rojo); opacity: 0;
}
.hora-punto.late::after { animation: latido 1.2s ease-out; }
@keyframes latido { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
.hora-hhmm { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.hora-dia { font-size: 17px; color: var(--texto-2); }

.resumen {
  margin-top: 22px;
  display: flex; flex-direction: column;
  font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em;
}
.resumen-2 { color: var(--rojo-hondo); }
.resumen-2:empty { display: none; }

/* ---------- mapa ---------- */
.mapa { margin-top: 20px; }
.mapa-lienzo {
  position: relative;
  aspect-ratio: 1200 / 800;
  border-radius: var(--radio);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.35), transparent 60%),
    #d9dbd6;
  isolation: isolate;
}
.mapa-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mapa-img.falla { display: none; }
.mapa-pines { position: absolute; inset: 0; }
.mapa-nota { margin-top: 10px; padding: 0 4px; font-size: 13px; color: var(--texto-2); }

.pin { position: absolute; width: 0; height: 0; }
.pin-flecha {
  position: absolute; left: -20px; top: -20px;
  width: 40px; height: 40px;
  transform: rotate(var(--giro, 0deg));
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}
.pin-flecha svg { display: block; width: 100%; height: 100%; }
.pin-calma {
  position: absolute; left: -9px; top: -9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 5px solid var(--grafito);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  display: none;
}
.pin.sin-dir .pin-flecha { display: none; }
.pin.sin-dir .pin-calma { display: block; }
/* etiqueta: banderín con el número de estación + km/h */
.pin-et {
  --pen: #BB162E; --pen-txt: #ffffff;
  position: absolute; left: 22px; top: -16px;
  height: 30px; padding: 0 9px 0 7px;
  display: flex; align-items: center; gap: 5px;
  border-radius: 10px;
  background: #fff;
  color: var(--tinta);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.pin-et svg { display: block; flex: none; }
.pin-et span { display: flex; align-items: baseline; gap: 3px; }
.pin-et b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.pin-et i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--texto-2); }
.pin.mas .pin-et { --pen: #ffffff; --pen-txt: #BB162E; background: var(--rojo); color: #fff; }
.pin.mas .pin-et i { color: rgba(255, 255, 255, .85); }
.pin.apagado .pin-flecha { display: none; }
.pin.apagado .pin-calma { display: block; border-color: var(--texto-3); }
.pin.apagado .pin-et { --pen: #86868b; background: rgba(255, 255, 255, .9); color: var(--texto-2); }
.pin.apagado .pin-et b { font-size: 13px; font-weight: 600; }

/* ---------- tarjetas de estación ---------- */
.estaciones { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.est {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: var(--radio);
  background: var(--tarjeta);
  overflow: hidden;
  isolation: isolate;
}
.est::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #fbe8eb; opacity: 0; pointer-events: none;
}
.est.destello::after { animation: destello 1s ease-out; }
@keyframes destello { 0% { opacity: 1; } 100% { opacity: 0; } }

.est-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.est-nom { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.est-hace { font-size: 14px; color: var(--texto-2); white-space: nowrap; }
.est-zona { font-size: 15px; color: var(--texto-2); margin-top: 1px; }
.est-mas { display: none; margin-left: 6px; color: var(--rojo); font-weight: 600; }
.est.mas .est-mas { display: inline; }

.est-medio {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
}
.est-vel { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.est-cifra {
  font-size: var(--cifra); line-height: 1; font-weight: 700; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.est-kmh { font-size: 21px; font-weight: 600; color: var(--texto-2); }
.est.mas .est-cifra { color: var(--rojo); }

.est-rumbo { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.est-dir { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.est-dir.vacio { color: var(--texto-2); font-weight: 500; }
.est-cat { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 500; color: var(--tinta); }
.punto { width: 10px; height: 10px; border-radius: 50%; background: var(--calma); flex: none; }
.cat-moderado .punto { background: var(--grafito); }
.cat-fuerte .punto, .cat-muy_fuerte .punto { background: var(--rojo); }
.cat-fuerte, .cat-muy_fuerte { color: var(--rojo-hondo); font-weight: 600; }
.cat-sin .punto { background: transparent; box-shadow: inset 0 0 0 2px var(--texto-3); }

.est-pie {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--hueco, #e8e8ed);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
  color: var(--texto-2);
}
.est-pie[hidden] { display: none; }
.dato { display: flex; flex-direction: column; min-width: 0; }
.dato-et { font-size: 14px; line-height: 1.25; }
.dato-v { margin-top: 1px; font-size: 17px; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dato-v b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: var(--tinta); }
.dato-v i { font-style: normal; font-size: 14px; }
.est-pie2 { margin-top: 2px; }

/* columna izquierda: cifra y, debajo, la mini gráfica de 2 h */
.est-izq { min-width: 0; }
.spark { margin-top: 8px; display: flex; align-items: flex-end; gap: 8px; }
.spark-et { flex: none; font-size: 12px; line-height: 1; color: var(--texto-2); }
.spark-lienzo { position: relative; flex: 1; min-width: 0; height: 26px; }
.spark-lienzo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.spark-base { stroke: var(--hueco); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark-area { fill: rgba(85, 86, 90, .07); }
.spark-linea {
  fill: none; stroke: var(--texto-3); stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.spark-punto {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--rojo); box-shadow: 0 0 0 2px #fff;
}

/* tendencia del viento y variación de la dirección */
.est-det { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 15px; }
.est-tend { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--tinta); }
.tend-ico { display: block; width: 16px; height: 16px; }
.tend-ico svg { display: block; width: 100%; height: 100%; }
.tend-sube .tend-ico { transform: rotate(-45deg); }
.tend-baja .tend-ico { transform: rotate(45deg); }
.est-var { color: var(--texto-2); }

/* pelota-brújula: hoyuelos, N arriba y la flecha roja hacia donde va el viento */
.bola {
  position: relative;
  width: 84px; height: 84px; border-radius: 50%;
  background-color: #f5f5f7;
  background-image: radial-gradient(circle, rgba(0, 0, 0, .10) 1.6px, transparent 2.2px);
  background-size: 10px 10px;
  background-position: 1px 1px;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .05), inset 0 4px 8px rgba(255, 255, 255, .9);
}
.bola-n {
  position: absolute; top: 4px; left: 0; right: 0;
  text-align: center; font-size: 11px; font-weight: 700; color: var(--texto-2); line-height: 1;
}
.bola-flecha {
  position: absolute; left: 50%; top: 50%;
  width: 50px; height: 50px; margin: -25px 0 0 -25px;
  transform: rotate(var(--giro, 0deg));
}
.bola-flecha svg { display: block; width: 100%; height: 100%; }
.bola-centro {
  display: none;
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--calma);
}
.est.sin-dir .bola-flecha { display: none; }
.est.sin-dir .bola-centro { display: block; }

/* rotaciones con transición (el JS acumula el ángulo para girar por el camino corto) */
.gira { transition: transform .9s cubic-bezier(.3, .7, .2, 1); }

/* sin señal o sin datos: tarjeta atenuada */
.est.apagada .est-medio, .est.apagada .est-pie { opacity: .38; }
.est.apagada .est-cifra { color: var(--tinta); }
.est.apagada .bola-flecha { display: none; }
.est.apagada .bola-centro { display: block; }

/* ---------- tu tiro (brújula) ---------- */
.tiro:not([hidden]) + .estaciones { margin-top: 12px; }
.tiro {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radio);
  background: var(--tarjeta);
  scroll-margin-top: calc(env(safe-area-inset-top) + 68px);
}
.tiro-cab { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tiro-cab-txt { min-width: 0; }
.tiro-tit { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tiro-sub { margin-top: 2px; font-size: 15px; line-height: 1.3; color: var(--texto-2); }
.tiro[data-estado="ok"] .tiro-sub { font-size: 17px; font-weight: 600; color: var(--tinta); }
.tiro-btn {
  flex: none;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: var(--tinta); color: #fff;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tiro-btn:active { background: #3a3a3c; }
.tiro-btn.secundario { background: var(--fondo); color: var(--tinta); }
.tiro-btn.secundario:active { background: var(--hueco); }

.tiro-cuerpo { margin-top: 16px; }
.tiro-msg { margin-bottom: 14px; font-size: 17px; line-height: 1.35; }
.tiro[data-estado="esperando"] .tiro-msg { color: var(--texto-2); }
.tiro[data-estado="sin_sensor"] .tiro-elige, .tiro[data-estado="sin_sensor"] .tiro-zona,
.tiro[data-estado="sin_permiso"] .tiro-elige, .tiro[data-estado="sin_permiso"] .tiro-zona { display: none; }
.tiro[data-estado="sin_sensor"] .tiro-msg, .tiro[data-estado="sin_permiso"] .tiro-msg { margin-bottom: 0; }

.tiro-elige { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tiro-elige-et { font-size: 15px; color: var(--texto-2); }
.tiro-sel { display: flex; flex-wrap: wrap; gap: 5px; }
.tiro-est {
  min-width: 44px; height: 44px; padding: 0 9px; border: 0; border-radius: 22px;
  background: var(--fondo); color: var(--tinta);
  font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tiro-est[aria-pressed="true"] { background: var(--tinta); color: #fff; }
.tiro-zona { margin-top: 8px; font-size: 15px; color: var(--texto-2); }
.tiro-zona:empty { display: none; }

.tiro-medio {
  margin-top: 30px;
  display: grid; grid-template-columns: 136px 1fr; align-items: center; column-gap: 18px;
}
/* dial: un green visto desde arriba (franjas de corte y collar), con el hoyo y su bandera arriba
   como objetivo. El verde solo vive aquí y en el mapa: representa pasto, no es color de marca. */
.dial {
  position: relative;
  width: 136px; height: 136px; border-radius: 50%;
  background-color: #6fae5b;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .13) 0 11px, rgba(0, 0, 0, .05) 11px 22px);
  border: 5px solid #4f8f45;
  box-sizing: border-box;
  box-shadow: 0 0 0 4px #dfe9c9, inset 0 0 14px rgba(0, 0, 0, .14);
}
/* hoyo */
.dial::before {
  content: ""; position: absolute; left: 50%; top: 9px;
  width: 12px; height: 7px; margin-left: -6px; border-radius: 50%;
  background: #1d1d1f; box-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
/* bandera clavada en el hoyo */
.dial-meta {
  position: absolute; left: 50%; top: -22px; margin-left: -2px;
  width: 26px; height: 36px; overflow: visible;
}
.dial-meta rect { fill: #1d1d1f; }
.dial-meta path { fill: var(--rojo); stroke: #fff; stroke-width: .8; }
.dial-anillo { position: absolute; inset: 0; }
.dial-norte {
  position: absolute; top: 24px; left: 50%; width: 16px; height: 14px; margin-left: -8px;
  text-align: center; font-size: 12px; font-weight: 700; line-height: 1; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.dial-flecha {
  position: absolute; left: 50%; top: 50%;
  width: 80px; height: 80px; margin: -40px 0 0 -40px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}
.dial-flecha svg { display: block; width: 100%; height: 100%; }
/* en calma: la pelota quieta en el green */
.dial-centro {
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background-color: #fff;
  background-image: radial-gradient(circle, rgba(0, 0, 0, .16) 1px, transparent 1.5px);
  background-size: 5px 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.tiro-lect { min-width: 0; }
.tiro-frase { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.tiro-l1 { display: flex; flex-direction: column; }
.tiro-l1a { font-size: 17px; font-weight: 600; }
.tiro-l1.contra .tiro-l1a { color: var(--rojo-hondo); }
.tiro-num { display: flex; align-items: baseline; gap: 5px; font-size: 19px; font-weight: 600; color: var(--texto-2); }
.tiro-num b { font-size: 56px; line-height: 1.02; font-weight: 700; letter-spacing: -.045em; color: var(--tinta); }
.tiro-l2 { margin-top: 8px; font-size: 17px; font-weight: 600; }
.tiro-l2.solo { margin-top: 0; font-size: 21px; }
.tiro-l3 { font-size: 15px; color: var(--texto-2); }
.tiro-medio.impreciso .dial, .tiro-medio.impreciso .tiro-lect { opacity: .4; }
.tiro-medio.impreciso ~ .tiro-nota { display: none; }   /* el aviso rojo ya dice lo mismo */
.tiro-aviso { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--rojo-hondo); }
.tiro-nota { margin-top: 16px; font-size: 13px; line-height: 1.4; color: var(--texto-2); }

/* ---------- condiciones de juego (un solo bloque) ---------- */
.cond {
  margin-top: 12px;
  padding: 20px 20px 6px;
  border-radius: var(--radio);
  background: var(--tarjeta);
}
.cond-tit { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.cond-fila { padding: 12px 0; border-top: 1px solid var(--hueco); }
.cond-et { font-size: 15px; color: var(--texto-2); }
.cond-linea { margin-top: 2px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cond-val { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cond-val b { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.cond-cat { font-size: 17px; font-weight: 600; }
#cond-bola .cond-cat { font-size: 15px; font-weight: 500; color: var(--texto-2); }
.cond-ayuda { margin-top: 2px; font-size: 15px; line-height: 1.3; color: var(--texto-2); }

/* escala UV: cinco segmentos de gris a rojo; se llenan hasta el nivel actual */
.uv-escala { display: flex; gap: 3px; flex: none; }
.uv-escala i { display: block; width: 14px; height: 6px; border-radius: 3px; background: var(--hueco); }
.uv-escala i.uv-1 { background: var(--calma); }
.uv-escala i.uv-2 { background: var(--grafito); }
.uv-escala i.uv-3 { background: var(--rojo); }
.uv-escala i.uv-4 { background: #A31C2F; }
.uv-escala i.uv-5 { background: var(--rojo-hondo); }

.sol { display: inline-flex; align-items: center; gap: 7px; flex: none; font-size: 17px; font-weight: 500; }
.sol-ico { display: block; width: 26px; height: 26px; color: var(--grafito); }
.sol-ico svg { display: block; width: 100%; height: 100%; }

/* ---------- botón de WhatsApp ---------- */
.whats {
  margin-top: 32px;
  min-height: 56px;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px;
  background: var(--tinta);
  color: #fff;
  font-size: 17px; font-weight: 600; text-decoration: none; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.whats:active { background: #3a3a3c; }
.whats-ico { width: 22px; height: 22px; flex: none; }

/* ---------- pie ---------- */
.pie {
  padding: 40px var(--margen) calc(32px + env(safe-area-inset-bottom));
  background: #fff;
  text-align: center;
}
.pie-logo { margin: 0 auto; width: 220px; height: auto; }
.pie-txt { margin: 20px auto 0; max-width: 300px; font-size: 17px; line-height: 1.35; color: var(--tinta); }
.pie-credito { margin-top: 14px; font-size: 12px; color: var(--texto-3); }
.pie-credito:empty { display: none; }
.pie-credito + .pie-credito { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .gira { transition: none; }
  .hora-punto.late::after, .est.destello::after { animation: none; }
}

/* punto "Tú": ubicación del jugador en el mapa */
.yo { position: absolute; width: 0; height: 0; z-index: 3; pointer-events: none; }
.yo[hidden] { display: none; }
.yo-punto { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--tinta); border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.yo-halo { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(29,29,31,.22); animation: yo-late 2.2s ease-out infinite; }
.yo-et { position: absolute; left: 12px; top: -9px; padding: 1px 7px; border-radius: 9px; background: var(--tinta); color: #fff; font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; }
@keyframes yo-late { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .yo-halo { animation: none; opacity: .5; } }

/* ---------- teléfono acostado (horizontal) ----------
   Solo aplica con la pantalla más ancha que alta y al menos 600 px de ancho: un teléfono en
   vertical nunca entra aquí, así que la vista vertical queda intacta. */
@media (orientation: landscape) and (min-width: 600px) {
  :root {
    --lado-i: max(var(--margen), env(safe-area-inset-left));
    --lado-d: max(var(--margen), env(safe-area-inset-right));
  }
  body { max-width: 1000px; }
  /* con tan poca altura, la barra no se queda fija: se va con la página */
  .barra { position: static; height: 48px; padding-left: var(--lado-i); padding-right: var(--lado-d); }
  .barra-club { height: 36px; }
  .aviso { top: calc(env(safe-area-inset-top) + 10px); }

  .pagina {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 20px;
    align-items: start;
    padding: 14px var(--lado-d) 28px var(--lado-i);
  }
  /* izquierda: evento, título, hora y resumen; derecha: el mapa a todo lo alto de ese bloque */
  .evento, .titulo, .hora, .resumen { grid-column: 1; }
  .mapa { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  .tiro, .estaciones, .cond, .whats { grid-column: 1 / -1; }
  .titulo { margin-top: 16px; font-size: 28px; }
  .hora { margin-top: 10px; }
  .hora-hhmm { font-size: 30px; }
  .resumen { margin-top: 14px; font-size: 19px; }

  /* tu tiro: selector y notas a la izquierda, green y lectura a la derecha, todo en una pantalla */
  .tiro-cuerpo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 28px;
    align-items: start;
  }
  .tiro-msg { grid-column: 1 / -1; }
  .tiro-elige, .tiro-zona, .tiro-aviso, .tiro-nota { grid-column: 1; }
  .tiro-medio { grid-column: 2; grid-row: 2 / span 4; margin-top: 24px; }
  .tiro-nota { margin-top: 12px; }

  /* estaciones de dos en dos */
  .estaciones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }

  /* condiciones de juego en columnas */
  .cond { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); column-gap: 28px; padding-bottom: 10px; }
  .cond-tit { grid-column: 1 / -1; }

  .whats { justify-self: center; width: 100%; max-width: 430px; margin-top: 24px; }
  .pie { padding-left: var(--lado-i); padding-right: var(--lado-d); }
}
@media (orientation: landscape) and (min-width: 600px) and (max-width: 739px) {
  :root { --cifra: 68px; }
  .est-pie { column-gap: 10px; }
  .dato-et { font-size: 13px; white-space: nowrap; }
}
