/* ==========================================================================
   1. ESTILOS GLOBALES Y COMPONENTES COMUNES (Compartidos)
   ========================================================================== */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}
button.nav-login-btn {
  margin:8px 24px 12px;
  width:calc(100% - 48px);
}
button.nav-link {
  background:none;
  cursor:pointer;
} 

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0c0d14;
  color: #e8e8e8;
  min-height: 100vh;
}
ins.adsbygoogle{
  display:block;
}
div.adsbygoogle_div{
width:100%;
max-width:728px;
margin:24px auto 0;
 }

 div.legend-row{
  color:#777;
  font-size:.7rem;
  margin-top:4px"
 }


/* Ajustes de estructura y espaciados por tipo de página */
body.page-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px 60px;
}

body.page-vehicles {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 12px 0;
}

body.page-legal {
  display: flex;
  flex-direction: column;
  padding: 92px 20px 0;
  color: #d0d0d0;
}

body.page-legal .container {
  max-width: 760px;
  margin: 0 auto;
}
body.page-blog {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 12px 0;
  line-height: 1.7;
}
.photo_wiki{
  display:none;
}
img.silueta{
  width:100%;
  height:70px;
  object-fit:contain;
}

/* ── Elementos compartidos del menú inyectado ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center;
  padding: 0 20px; height: 52px;
  background: rgba(10,10,20,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  width: 100%;
}
.nav-logo { font-size: .95rem; font-weight: 900; letter-spacing: 3px; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 7px; }
.nav-center { display: flex; gap: 4px; margin: 0 auto; }
.nav-link { padding: 6px 14px; font-size: .72rem; font-weight: 600; color: #888; text-decoration: none; border-radius: 6px; letter-spacing: .5px; text-transform: uppercase; transition: color .2s, background .2s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-icon { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #2a2a3a; background: transparent; color: #666; font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.nav-icon:hover { border-color: #555; color: var(--t-2); }
.nav-login { padding: 7px 16px; background: #1b2f6e; border: 1px solid #2a4aaa; border-radius: 8px; color: #8ab4ff; font-size: .72rem; font-weight: 700; cursor: pointer; letter-spacing: .5px; text-transform: uppercase; transition: background .2s; }
.nav-login:hover { background: #223888; }
.nav-lang { padding: 6px 12px; background: transparent; border: 1px solid #3a3a5a; border-radius: 8px; color: #aaa; font-size: .72rem; font-weight: 700; cursor: pointer; letter-spacing: .5px; transition: border-color .2s, color .2s; }
.nav-lang:hover { border-color: #888; color: #fff; }

/* Menú móvil */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; margin-left: auto;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--t-2); border-radius: 2px; transition: all .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none; position: fixed; top: 52px; left: 0; right: 0; z-index: 150;
  background: var(--navmob-bg); border-bottom: 1px solid var(--surf-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  flex-direction: column; padding: 12px 0;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a, .nav-mobile-menu button { padding: 13px 24px; font-size: .88rem; color: var(--t-2); text-decoration: none; background: none; border: none; text-align: left; cursor: pointer; font-family: inherit; font-weight: 600; letter-spacing: .5px; border-bottom: 1px solid var(--surf-line); transition: background .15s, color .15s; }
.nav-mobile-menu a:hover, .nav-mobile-menu button:hover { background: var(--surf-line); color: #fff; }
.nav-mobile-menu a:last-child, .nav-mobile-menu button:last-child { border-bottom: none; }
.nav-mobile-menu .mob-highlight { color: #6b9fff; }

/* ==========================================================================
   Footer Unificado (Alineación Horizontal Perfecta para tu Estructura)
   ========================================================================== */
/* El contenedor rompe cualquier padre con max-width o padding lateral */
/* margin-top: auto en flex-column empuja el footer al fondo del viewport */
#contenedor-footer {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  margin-top: auto;
  padding: 40px 0 0;
  box-sizing: border-box;
  z-index: 99;
  clear: both;
}

#contenedor-footer footer {
  width: 100%;
  background: rgba(10,10,20,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 16px 20px;
  box-sizing: border-box;
}

/* El contenedor interno distribuye el copyright a la izquierda y los links a la derecha */
#contenedor-footer .footer-content {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

/* El texto de Copyright */
#contenedor-footer .footer-content p {
  font-size: .72rem;
  color: #888;
  margin: 0;
}

/* La barra de enlaces mantiene una línea horizontal perfecta */
#contenedor-footer .footer-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Links del footer */
#contenedor-footer .footer-links a:not(.social-icon) {
  font-size: .72rem;
  color: #888;
  text-decoration: none;
  letter-spacing: .5px;
  transition: color .2s;
}
#contenedor-footer .footer-links a:not(.social-icon):hover {
  color: #fff;
}

/* Estilo para los iconos de redes sociales */
#contenedor-footer .social-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #888 !important;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

#contenedor-footer .social-icon:hover {
  border-color: rgba(255,255,255,.3);
  color: #fff !important;
}

/* 📱 Responsive para Móviles: Solo aquí se apilan en vertical, pero CENTRADOS */
@media (max-width: 600px) {
  #contenedor-footer .footer-content {
    flex-direction: column !important;
    text-align: center;
    gap: 14px;
  }
  #contenedor-footer .footer-links {
    justify-content: center;
    gap: 12px;
  }
}

/* Publicidad oculta global */
.ad-wrap, #ad-banner, .ad-banner { display: none; }


/* ==========================================================================
   2. ESTILOS EXCLUSIVOS DE LA HOME (index.html)
   ========================================================================== */
.page-index .hero-text {
  padding-top: 72px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.page-index .hero-title { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 900; letter-spacing: 10px; color: #fff; }
.page-index .hero-sub { font-size: .82rem; letter-spacing: 3px; color: #0af; text-transform: uppercase; }

.page-index .hero-img-wrap { position: relative; width: 100%; line-height: 0; margin-top: 0; }
.page-index .hero-img-wrap img { width: 100%; display: block; object-fit: cover; }
.page-index .hero-img-wrap::before, .page-index .hero-img-wrap::after { content: ''; position: absolute; left: 0; right: 0; height: 120px; pointer-events: none; z-index: 1; }
.page-index .hero-img-wrap::before { top: 0; background: linear-gradient(to bottom, #0c0d14, transparent); }
.page-index .hero-img-wrap::after { bottom: 0; background: linear-gradient(to top, #0c0d14, transparent); }

.page-index main { max-width: 760px; margin: -90px auto 0; padding: 0 16px 60px; position: relative; z-index: 1; }

.page-index .section-title { text-align: center; margin: 36px 0 6px; font-size: 1.1rem; font-weight: 900; color: #fff; letter-spacing: 2px; text-transform: uppercase; }
.page-index .section-sub { text-align: center; color: #555; font-size: .75rem; margin-bottom: 20px; letter-spacing: .5px; }

/* Grid de desafíos diarios */
.page-index .daily-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.page-index .daily-card { border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 20px 16px 16px; text-align: center; gap: 0; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; background: var(--surf-card); }
.page-index .daily-card:not(.disabled):hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.page-index .daily-card.planes { border: 1.5px solid #2a4aaa; }
.page-index .daily-card.ships  { border: 1.5px solid #1e6e3a; }
.page-index .daily-card.tanks  { border: 1.5px solid #8a5500; }
.page-index .daily-card.disabled { pointer-events: none; opacity: .6; }

.page-index .card-label { font-size: .6rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px; }
.page-index .planes .card-label { color: #5080e0; }
.page-index .ships  .card-label { color: #30a860; }
.page-index .tanks  .card-label { color: #d48a10; }

.page-index .card-vehicle { width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.page-index .card-desc { font-size: .72rem; color: #bbb; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.page-index .card-btn { width: 100%; padding: 10px; border: none; border-radius: 8px; font-size: .75rem; font-weight: 800; letter-spacing: 2px; cursor: pointer; transition: filter .2s; text-transform: uppercase; }
.page-index .card-btn:hover { filter: brightness(1.15); }
.page-index .planes .card-btn { background: #2050cc; color: #fff; }
.page-index .ships  .card-btn { background: #1e7a32; color: #fff; }
.page-index .tanks  .card-btn { background: #b87000; color: #fff; }

/* Rachas y Estadísticas de la Home */
.page-index .streak-container { display: flex; align-items: stretch; background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.page-index .streak-half { flex: 1; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.page-index .streak-half:first-child { border-right: 1px solid var(--surf-line); }
.page-index .streak-lbl { font-size: .58rem; letter-spacing: 2px; text-transform: uppercase; color: #aaa; }
.page-index .streak-big { display: flex; align-items: baseline; gap: 8px; }
.page-index .streak-emoji { font-size: 1.6rem; line-height: 1; }
.page-index .streak-num   { font-size: 2.4rem; font-weight: 400; line-height: 1; color: #fff; }
.page-index .streak-unit  { font-size: .75rem; color: var(--t-2); }

.page-index .stats-section { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 14px; padding: 20px 16px; }
.page-index .stats-title { font-size: .58rem; letter-spacing: 2.5px; text-transform: uppercase; color: #aaa; text-align: center; margin-bottom: 18px; }
.page-index .stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.page-index .stat-item { text-align: center; padding: 0 8px; border-right: 1px solid var(--surf-line); }
.page-index .stat-item:last-child { border-right: none; }
.page-index .stat-lbl  { font-size: .56rem; color: #aaa; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.page-index .stat-num  { font-size: 2rem; font-weight: 400; color: #fff; line-height: 1; }


/* ==========================================================================
   3. ESTILOS EXCLUSIVOS DE LA PÁGINA DE JUEGO (ORDEN VISUAL CORREGIDO)
   ========================================================================== */
body.page-game {
  background: #0c0d14;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── CONTENEDOR PADRE DE LA IMAGEN ── */
/* ── FONDO DE PÁGINA COMPLETA POR IMAGEN ── */
/* La imagen se aplica como background en el body, cubriendo toda la página */
body.page-planes {
  background-image:
    linear-gradient(to bottom, rgba(12,13,20,.55) 0%, rgba(12,13,20,.75) 50%, #0c0d14 100%),
    url('../assets/images/F-14.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.page-tanks {
  background-image:
    linear-gradient(to bottom, rgba(12,13,20,.55) 0%, rgba(12,13,20,.75) 50%, #0c0d14 100%),
    url('../assets/images/tank.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.page-warships {
  background-image:
    linear-gradient(to bottom, rgba(12,13,20,.55) 0%, rgba(12,13,20,.75) 50%, #0c0d14 100%),
    url('../assets/images/warship_bg.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* El hero-img-wrap ahora es solo un contenedor para el título */
.page-game .hero-img-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* La img dentro del hero ya no se usa como fondo — se oculta */
.page-game .hero-img-wrap img {
  display: none;
}

/* ── EL TÍTULO EN SU SITIO (ARRIBA DEL TODO) ── */
.page-game .hero-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 80px;
  margin-bottom: 40px;
}

.page-game .hero-overlay h1 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 10px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.9);
  margin: 0;
  text-transform: uppercase;
}

/* ── EL JUEGO SE COLOCA DEBAJO DEL TÍTULO NATURALMENTE ── */
.page-game #mode-bar,
.page-game #board,
.page-game #guess-btn,
.page-game #result-panel,
.page-game #col-headers,
.page-game #photo-game,
.page-game #streak,
.page-game #mode-info,
.page-game #lives,
.page-game #guessed-names,
.page-game #message,
.page-game #action-row,
.page-game #legend {
  position: relative;
  z-index: 10; 
  margin-left: auto;
  margin-right: auto;
  margin-top: 0 !important; /* Cero márgenes negativos destructivos */
}

.page-game #mode-bar { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  max-width: 560px; 
  width: 100%; 
  margin-bottom: 14px; 
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 600px) {
  .page-game .hero-overlay {
    padding-top: 70px; /* Clears the 52px fixed nav + some breathing room */
  }
}

.page-game #game-modes { display: flex; gap: 4px; background: var(--surf-card); border-radius: 10px; padding: 4px; border: 1px solid var(--surf-line); width: 100%; }
.page-game .mode-btn { flex: 1; padding: 9px 8px; border: none; border-radius: 7px; font-size: 0.78rem; font-weight: 700; cursor: pointer; letter-spacing: 0.5px; transition: background .2s, color .2s; background: transparent; color: #bbb; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.page-game .mode-btn.active { background: #1b3a9e; color: #fff; }
.page-game .nav-links { display: flex; gap: 4px; flex-wrap: wrap; width: 100%; }
.page-game #nav-links .nav-link { flex: 1; text-align: center; }

.page-game #mode-info { font-size: 0.78rem; color: var(--t-2); margin-bottom: 12px; text-align: center; }
.page-game #streak    { font-size: 0.8rem;  color: #b59f3b; margin-bottom: 5px; min-height: 16px; text-align: center; }
.page-game #lives     { font-size: 0.88rem; margin-bottom: 12px; color: var(--t-2); text-align: center; }

.page-game #col-headers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-width: 560px; width: 100%; margin-bottom: 6px; }
.page-game #col-headers span { text-align: center; font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--t-2); padding: 2px 0; }

.page-game #board { display: flex; flex-direction: column; gap: 8px; max-width: 560px; width: 100%; margin-bottom: 14px; }
.page-game .guess-card { display: flex; flex-direction: column; gap: 4px; animation: slideIn .3s ease; }

.page-game .guess-name { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 6px; padding: 8px 12px; font-size: 0.85rem; font-weight: 700; color: #fff; }
.page-game .guess-attrs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.page-game .cell { padding: 7px 4px; border-radius: 5px; font-size: 0.72rem; font-weight: 600; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 42px; line-height: 1.2; gap: 2px; }
.page-game .cell .arrow { font-size: 0.65rem; }

.page-game .green  { background: #538d4e; color: #fff; }
.page-game .yellow { background: #b59f3b; color: #fff; }
.page-game .red    { background: var(--surf-line); color: var(--t-2); }

.page-game #input-area { max-width: 560px; width: 100%; position: relative; z-index: 50; margin-left: auto; margin-right: auto; margin-bottom: 10px; }
.page-game #search-input { width: 100%; padding: 12px 14px; font-size: 16px; background: var(--surf-card); border: 2px solid var(--surf-line); border-radius: 8px; color: #fff; outline: none; transition: border-color .2s; } /* 16px prevents iOS zoom-on-focus */
.page-game #search-input:focus { border-color: #2a3a6a; }
.page-game #autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 0 0 8px 8px; max-height: 190px; overflow-y: auto; z-index: 9999; }
.page-game .autocomplete-item { padding: 9px 14px; cursor: pointer; font-size: 0.86rem; color: #fff; border-bottom: 1px solid var(--surf-line); transition: background .12s; }
.page-game .autocomplete-item:hover, .page-game .autocomplete-item.active { background: var(--surf-line); }
.page-game .autocomplete-item:last-child { border-bottom: none; }

.page-game #guess-btn { width: 100%; max-width: 560px; padding: 12px; background: #538d4e; color: #fff; font-size: 0.92rem; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; letter-spacing: 2px; transition: background .2s; }
.page-game #guess-btn:hover { background: #4a7d46; }
.page-game #guess-btn:disabled { background: var(--surf-card); color: #555; cursor: default; }

.page-game #message { margin-top: 12px; font-size: 0.88rem; text-align: center; min-height: 20px; color: var(--t-2); }
.page-game #message.lose { color: #c0392b; font-weight: 700; }

.page-game #action-row { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.page-game .action-btn { padding: 8px 18px; background: var(--surf-card); border: 1.5px solid var(--surf-line); border-radius: 8px; color: var(--t-2); font-size: 0.82rem; cursor: pointer; transition: border-color .2s, color .2s; display: none; }
.page-game .action-btn:hover { border-color: #666; color: #fff; }

.page-game #guessed-names { max-width: 560px; width: 100%; display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.page-game .guessed-tag { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 4px; padding: 2px 7px; font-size: 0.7rem; color: var(--t-2); }

.page-game #result-panel { display: none; max-width: 560px; width: 100%; margin-top: 18px; background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 12px; padding: 20px 18px; text-align: center; animation: slideIn .35s ease; }
.page-game #rp-img-wrap { width: 100%; height: 170px; background: var(--well); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border: 1px solid #1e1e2a; }
.page-game #rp-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.page-game #rp-placeholder { font-size: 3.5rem; }
.page-game #rp-name { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.page-game #rp-meta { font-size: 0.78rem; color: #bbb; margin-bottom: 5px; }
.page-game #rp-wiki { font-size: 0.82rem; margin-bottom: 16px; }
.page-game #rp-wiki a { color: #6b9fe4; text-decoration: none; }
.page-game #rp-wiki a:hover { text-decoration: underline; }
.page-game #rp-extra { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 8px 0 12px; }
.page-game .rp-extra-item { font-size: 0.78rem; color: #aaa; }
.page-game .rp-extra-item span { color: #fff; font-weight: 700; }

.page-game #share-bar { position: relative; z-index: 10; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 560px; width: 100%; margin: 40px auto 0; }
.page-game #legend { margin-top: 22px; max-width: 560px; width: 100%; background: var(--surf-card); border-radius: 10px; padding: 14px 16px; border: 1px solid var(--surf-line); }
.page-game #legend h3 { font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--t-2); margin-bottom: 10px; }
.page-game .legend-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.78rem; color: #e0e0e0; }
.page-game .legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

.page-game #modal-overlay, .page-game #stats-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 100; align-items: center; justify-content: center; }
.page-game #modal-overlay.show, .page-game #stats-overlay.show { display: flex; }
.page-game #modal, .page-game #stats-modal { background: var(--modal-bg); border: 1px solid var(--modal-line); border-radius: 16px; padding: 28px 24px; max-width: 400px; width: 92%; text-align: center; position: relative; }

.page-game #modal-x { position: absolute; top: 12px; right: 14px; background: none; border: none; color: #555; font-size: 1.3rem; cursor: pointer; line-height: 1; transition: color .2s; padding: 2px 4px; }
.page-game #modal-x:hover { color: #fff; }
.page-game #modal-emoji { font-size: 2.6rem; margin-bottom: 7px; }
.page-game #modal-title { font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: 3px; margin-bottom: 3px; }
.page-game #modal-subtitle { font-size: 0.78rem; color: #555; margin-bottom: 14px; }
.page-game #modal-img-wrap { width: 100%; height: 175px; background: var(--well); border-radius: 9px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border: 1px solid #1e1e30; }
.page-game #modal-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.page-game #modal-img-placeholder { font-size: 4rem; }
.page-game #modal-plane-name { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.page-game #modal-plane-meta { font-size: 0.78rem; color: #bbb; margin-bottom: 3px; }
.page-game #modal-score { font-size: 0.92rem; color: #538d4e; font-weight: 700; margin-bottom: 20px; }
.page-game #modal-kofi { display: block; width: 100%; padding: 12px; background: #72a4f2; color: #fff; border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 700; cursor: pointer; letter-spacing: .5px; text-decoration: none; text-align: center; transition: opacity .2s; }
.page-game #modal-kofi:hover { opacity: .88; }

.page-game .share-btn { padding: 8px 16px; border: none; border-radius: 7px; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: opacity .2s; letter-spacing: .5px; }
.page-game .share-btn:hover { opacity: .85; }
.page-game .share-btn-x    { background: #000; color: #fff; }
.page-game .share-btn-wa   { background: #25d366; color: #fff; }
.page-game .share-btn-tg   { background: #229ed9; color: #fff; }
.page-game .share-btn-fb   { background: #1877f2; color: #fff; }
.page-game .share-btn-kofi { background: #72a4f2; color: #fff; text-decoration: none; }

/* Social CTAs dentro del result panel */
.rp-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.rp-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .3px;
  transition: opacity .2s;
  flex: 1;
  justify-content: center;
}
.rp-social-btn:hover { opacity: .85; }
.rp-tg { background: #229ed9; color: #fff; }
.rp-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }

.page-game #stats-modal h2 { font-size: 1rem; font-weight: 900; letter-spacing: 3px; color: #fff; margin-bottom: 20px; }
.page-game .stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 22px; }
.page-game .stat-box { background: var(--chip-bg); border-radius: 8px; padding: 12px 6px; }
.page-game .stat-num { font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1; }
.page-game .stat-lbl { font-size: 0.6rem; color: #888; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

.page-game #dist-title { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-bottom: 10px; }
.page-game .dist-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.82rem; }
.page-game .dist-num { color: #aaa; width: 12px; text-align: right; flex-shrink: 0; }
.page-game .dist-bar-wrap { flex: 1; background: var(--chip-bg); border-radius: 4px; height: 22px; overflow: hidden; }
.page-game .dist-bar { height: 100%; background: #538d4e; border-radius: 4px; min-width: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: 7px; font-size: 0.78rem; font-weight: 700; color: #fff; transition: width .6s ease; }
.page-game .dist-bar.current { background: #b59f3b; }

.page-game .stats-tabs { display: flex; gap: 4px; background: #0f1117; border-radius: 8px; padding: 3px; margin-bottom: 18px; }
.page-game .stats-tab { flex: 1; padding: 6px; border: none; border-radius: 6px; font-size: 0.75rem; font-weight: 700; cursor: pointer; background: transparent; color: #666; transition: .2s; }
.page-game .stats-tab.active { background: #538d4e; color: #fff; }

.page-game #history-section { margin-top:20px; text-align:left; }
.page-game #history-title { font-size:.62rem; letter-spacing:2px; text-transform:uppercase; color:#555; margin-bottom:10px; }
.page-game .history-row { display:flex; align-items:center; gap:7px; margin-bottom:7px; }
.page-game .history-lbl { color:#777; font-size:0.72rem; min-width:78px; flex-shrink:0; }
.page-game .h-boxes { display:flex; gap:3px; }
.page-game .h-box { width:18px; height:18px; border-radius:3px; display:inline-flex; align-items:center; justify-content:center; font-size:0.6rem; font-weight:900; flex-shrink:0; }
.page-game .h-win  { background:#538d4e; color:#fff; }
.page-game .h-loss { background:#2a2a3a; color:#888; border:1px solid #333; }
.page-game .h-empty{ background:transparent; border:1px solid #222; }
.page-game .h-not-played { color:#444; font-style:italic; font-size:0.72rem; }

.page-game #stats-close { margin-top: 18px; padding: 9px 28px; background: var(--chip-bg); border: 1.5px solid #3a3a5a; border-radius: 8px; color: var(--t-2); font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: border-color .2s; }
.page-game #stats-close:hover { border-color: #888; color: #fff; }

.page-game #copy-toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:#538d4e; color:#fff; padding:9px 20px; border-radius:8px; font-size:0.85rem; font-weight:600; opacity:0; transition:opacity .3s; pointer-events:none; z-index:300; }
.page-game #copy-toast.show { opacity:1; }

.page-game #photo-game { display:none; max-width:560px; width:100%; margin-bottom:14px; }
.page-game .photo-wrap { width:100%; height:220px; overflow:hidden; border-radius:10px; background:var(--well); border:1px solid #1e1e2a; position:relative; margin-bottom:10px; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.page-game .photo-wrap .photo_wiki { width:100%; height:100%; background-size:cover; background-position:center; background-repeat:no-repeat; transform-origin:center center; transition:transform 1.4s cubic-bezier(.4,0,.2,1); display:block; -webkit-user-select:none; user-select:none; -webkit-user-drag:none; -webkit-touch-callout:none; pointer-events:none; }
.page-game .photo-loading { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:2.5rem; color:#333; background:var(--well); }
.page-game .photo-attempt-label { text-align:center; font-size:0.72rem; color:#666; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:10px; }
.page-game .photo-attempt-label span { color:#b59f3b; font-weight:700; }
.page-game #photo-wrong { display:flex; flex-direction:column; gap:6px; }
.page-game .photo-wrong-row { display:flex; align-items:center; gap:8px; background:#1a0a0a; border:1px solid #3a1a1a; border-radius:6px; padding:7px 12px; font-size:0.82rem; color:#c0392b; font-weight:600; }

.confetti-piece { position:fixed; width:9px; height:13px; top:-20px; border-radius:2px; z-index:9000; pointer-events:none; animation-name:confetti-fall; animation-timing-function:cubic-bezier(.3,.1,.5,1); animation-fill-mode:forwards; }
@keyframes confetti-fall { 0%{ transform:translateY(0) rotate(0deg); opacity:1; } 85%{ opacity:1; } 100%{ transform:translateY(106vh) rotate(680deg); opacity:0; } }

.page-game #contenedor-footer {
  z-index: 10;
  margin-top: 40px;
}
/* ==========================================================================
   4. ESTILOS EXCLUSIVOS DE LA ENCICLOPEDIA / HANGAR (hangar.html / page-vehicles)
   ========================================================================== */
.page-vehicles header { text-align: center; margin-bottom: 24px; }
.page-vehicles header h1 { font-size: 1.8rem; font-weight: 900; letter-spacing: 5px; color: #fff; }
.page-vehicles header .subtitle { font-size: .68rem; letter-spacing: 2px; color: #5080e0; font-weight: 700; margin-top: 3px; }

/* Controles de Filtros */
.page-vehicles #controls { width: 100%; max-width: 720px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.page-vehicles #search-box { flex: 1; min-width: 180px; padding: 10px 14px; font-size: .88rem; background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 8px; color: #fff; outline: none; }
.page-vehicles #search-box:focus { border-color: #2a4aaa; }
.page-vehicles .filter-select { padding: 0 12px; height: 38px; font-size: .82rem; background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 8px; color: var(--t-2); outline: none; cursor: pointer; }
.page-vehicles .filter-select:focus { border-color: #2a4aaa; }
.page-vehicles #plane-count{ width: 100%; text-align: right; font-size: .68rem; color: #555; font-weight: 600; letter-spacing: .5px; margin-top: 2px; }
.page-vehicles #tank-count{ width: 100%; text-align: right; font-size: .68rem; color: #555; font-weight: 600; letter-spacing: .5px; margin-top: 2px; }
.page-vehicles #ship-count{ width: 100%; text-align: right; font-size: .68rem; color: #555; font-weight: 600; letter-spacing: .5px; margin-top: 2px; }

/* Barra de Ordenamiento */
.page-vehicles #sort-bar { width: 100%; max-width: 720px; display: flex; gap: 4px; margin-bottom: 16px; background: var(--surf-bar); padding: 3px; border-radius: 9px; border: 1px solid var(--line-soft); overflow-x: auto; }
.page-vehicles .sort-btn { flex: 1; padding: 7px 4px; border: none; border-radius: 6px; font-size: .72rem; font-weight: 700; cursor: pointer; background: transparent; color: #555; transition: .15s; white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; }
.page-vehicles .sort-btn:hover { color: #aaa; }
.page-vehicles .sort-btn.active { background: var(--surf-line); color: #fff; }

/* Grid de Tarjetas del Hangar */
.page-vehicles #grid { width: 100%; max-width: 720px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* Estado vacío */
.page-vehicles #empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #444; font-size: .85rem; font-weight: 600; }
.page-vehicles #empty .big { font-size: 3rem; margin-bottom: 10px; color: #222; }

/* Tarjetas de Aviones/Vehículos */
.page-vehicles .card { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }

.page-vehicles .card-img-wrap { width: 100%; height: 115px; background: var(--well); border-radius: 7px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; border: 1px solid var(--line-soft); position: relative; }
.page-vehicles .card img { width: 100%; height: 100%; object-fit: cover; display: none; }

.page-vehicles .card:hover { border-color:#8a5500;transform:translateY(-2px); }
.page-vehicles .card-img { width:100%;height:130px;background:var(--well);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative; }
.page-vehicles .card-img img { width:100%;height:100%;object-fit:cover;display:none; }
.page-vehicles .card-img .img-placeholder { font-size:2.8rem;opacity:.2; }

.page-vehicles .card-placeholder { font-size: 2.2rem; color: var(--surf-line); }

.page-vehicles .card-name { font-size: .88rem; font-weight: 800; color: #fff; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Etiquetas del Hangar */
.page-vehicles .card-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 10px; }
.page-vehicles .tag { font-size: .56rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .5px; text-transform: uppercase; }
.page-vehicles .tag-country { background: #0c1535; color: #6b9fff; border: 1px solid #1e3580; }
.page-vehicles .tag-type    { background: #0a1e16; color: #4abf7a; border: 1px solid #1a4a2a; }
.page-vehicles .tag-decade  { background: #1e1400; color: #c4a47a; border: 1px solid #3a2a0a; }
.page-vehicles .tag-engine  { background: var(--surf-card); color: #9a8abf; border: 1px solid var(--modal-line); }

/* Atributos del Hangar */
.page-vehicles .card-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; margin-bottom: 8px; }
.page-vehicles .attr-row { font-size: .68rem; color: #888; }
.page-vehicles .attr-row span { color: #ddd; font-weight: 600; }

/* Sección Flydle Badges */
.page-vehicles .flydle-section { border-top: 1px solid var(--surf-line); padding-top: 8px; margin-top: 4px; }
.page-vehicles .flydle-label { font-size: .58rem; letter-spacing: 1.5px; text-transform: uppercase; color: #666; margin-bottom: 5px; }
.page-vehicles .flydle-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.page-vehicles .flydle-badge { font-size: .58rem; font-weight: 700; background: var(--surf-line); color: var(--t-2); padding: 2px 5px; border-radius: 4px; text-decoration: none; border: 1px solid transparent; }
.page-vehicles .flydle-badge:hover { border-color: #2a4aaa; color: #fff; }
.page-vehicles .flydle-badge.photo { background: #3a2e0a; color: #d4a410; }
.page-vehicles .flydle-badge.photo:hover { border-color: #d4a410; }
.page-vehicles .flydle-badge .badge-date { display:block;font-size:.57rem;color:#4a6aaa;font-weight:400; }
.page-vehicles .not-yet { font-size:.63rem;color:#444;font-style:italic; }
/* ==========================================================================
   5. ESTILOS EXCLUSIVOS PARA PÁGINAS LEGALES / POLÍTICAS (page-legal)
   ========================================================================== */
.page-legal h1 { 
  font-size: 1.8rem; font-weight: 900; color: #fff; letter-spacing: 2px; margin-bottom: 6px; 
}
.page-legal .updated { 
  font-size: 0.78rem; color: #555; margin-bottom: 36px; 
}
.page-legal h2 { 
  font-size: 1rem; font-weight: 700; color: #fff; margin: 28px 0 10px; letter-spacing: .5px; 
}
.page-legal p, .page-legal li { 
  font-size: 0.92rem; line-height: 1.75; color: #bbb; margin-bottom: 12px; 
}
.page-legal ul { 
  padding-left: 20px; margin-bottom: 12px; 
}
.page-legal li { 
  margin-bottom: 6px; 
}
.page-legal strong {
  color: #fff;
}

/* ── How to Play extras (page-legal) ── */
body.page-legal { max-width: 760px; margin: 0 auto; }

.page-legal header { text-align: center; margin-bottom: 28px; }
.page-legal header h1 { font-size: 1.8rem; font-weight: 900; letter-spacing: 5px; color: #fff; }
.page-legal header .subtitle { font-size: .68rem; letter-spacing: 2px; color: #5080e0; font-weight: 700; margin-top: 3px; }

.page-legal article { width: 100%; }

/* CTA button */
.page-legal .cta { display: inline-block; margin: 10px 0 28px; padding: 11px 28px; background: #1b3a9e; color: #fff; border-radius: 9px; text-decoration: none; font-weight: 700; font-size: .9rem; letter-spacing: 1px; transition: background .2s; }
.page-legal .cta:hover { background: #2a4dcc; }

/* h2/h3 */
.page-legal h3 { font-size: .9rem; font-weight: 700; color: #fff; margin: 22px 0 8px; }

/* Steps */
.page-legal .steps { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 24px; }
.page-legal .step  { display: flex; gap: 14px; align-items: flex-start; background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 12px; padding: 14px 16px; }
.page-legal .step-num  { width: 28px; height: 28px; border-radius: 50%; background: #1b3a9e; color: #fff; font-size: .8rem; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.page-legal .step-body h4 { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.page-legal .step-body p  { font-size: .82rem; line-height: 1.6; color: #aaa; margin: 0; }

/* Demo row (colour example) */
.page-legal .demo-label { font-size: .75rem; color: #888; margin-bottom: 8px; }
.page-legal .demo-row   { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 18px; }
.page-legal .demo-cell  { flex: 1; min-width: 60px; padding: 8px 4px; border-radius: 6px; text-align: center; font-size: .72rem; font-weight: 700; color: #fff; line-height: 1.3; }
.page-legal .demo-cell.green  { background: #538d4e; }
.page-legal .demo-cell.yellow { background: #b59f3b; }
.page-legal .demo-cell.grey   { background: var(--surf-line); color: #888; }

/* Attribute & comparison tables */
.page-legal .attr-table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: .82rem; }
.page-legal .attr-table th { text-align: left; font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase; color: #555; padding: 8px 10px; border-bottom: 1px solid var(--surf-line); font-weight: 700; }
.page-legal .attr-table td { padding: 8px 10px; border-bottom: 1px solid #0d0f1a; color: #bbb; vertical-align: top; line-height: 1.5; }
.page-legal .attr-table tr:last-child td { border-bottom: none; }
.page-legal .attr-table .attr-name { color: #fff; font-weight: 600; white-space: nowrap; }

/* Warning & tip boxes */
.page-legal .warn, .page-legal .tip { border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.page-legal .warn { background: #1a1008; border: 1px solid #3a2a10; }
.page-legal .warn strong { color: #e0a030; }
.page-legal .warn p { margin: 6px 0 0; font-size: .82rem; color: #c0a070; }
.page-legal .tip  { background: #081420; border: 1px solid #0d2a40; }
.page-legal .tip strong { color: #4a9fd0; }
.page-legal .tip p { margin: 6px 0 0; font-size: .82rem; color: #7ab0d0; }

/* FAQ */
.page-legal .faq-item { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 10px; padding: 14px 16px; margin-bottom: 8px; }
.page-legal .faq-q { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page-legal .faq-a { font-size: .82rem; line-height: 1.6; color: #aaa; }

/* Related links box */
.page-legal .related { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 12px; padding: 18px; margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.page-legal .related h3 { font-size: .82rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 6px; }
.page-legal .related a  { font-size: .82rem; color: #6b9fff; text-decoration: none; transition: color .15s; }
.page-legal .related a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   6. ESTILOS EXCLUSIVOS PARA EL BLOG / CURIOSIDADES / VÍDEOS (page-blog)
   ========================================================================== */
.page-blog header { text-align: center; margin-bottom: 24px; }
.page-blog header h1 { font-size: 1.8rem; font-weight: 900; letter-spacing: 5px; color: #fff; }
.page-blog header .subtitle { font-size: .68rem; letter-spacing: 2px; color: #5080e0; font-weight: 700; margin-top: 3px; }

.page-blog .page-wrap { width: 100%; max-width: 720px; display: flex; flex-direction: column; }

/* Barra de categorías filtrables */
.page-blog #cat-bar { width: 100%; display: flex; gap: 5px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
.page-blog .cat-btn { padding: 8px 14px; font-size: .75rem; font-weight: 700; background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 8px; color: #aaa; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.page-blog .cat-btn:hover { color: #fff; border-color: #333; }
.page-blog .cat-btn.active { background: #1b3a9e; color: #fff; border-color: #2a4aaa; }

/* Grid de Artículos/Posts */
.page-blog #articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }

/* Tarjetas de artículos / curiosidades / vídeos */
.page-blog .article-card { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.page-blog .article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }

/* Soporte para imágenes, miniaturas o vídeo embeds ratio 16:9 */
.page-blog .article-media { width: 100%; aspect-ratio: 16/9; background: var(--well); border-bottom: 1px solid var(--line-soft); overflow: hidden; position: relative; }
.page-blog .article-media img { width: 100%; height: 100%; object-fit: cover; }
.page-blog .article-media iframe { width: 100%; height: 100%; border: none; }

.page-blog .article-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }

/* Cabecera interna del post */
.page-blog .article-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.page-blog .article-badge { font-size: .58rem; font-weight: 800; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px; }
.page-blog .article-date { font-size: .68rem; color: #555; font-weight: 600; }

/* Colores de categorías dinámicas */
.page-blog .cat-records   { background: #1a1020; color: #c084f5; border: 1px solid #3a2060; }
.page-blog .cat-history   { background: #1a1500; color: #d4a017; border: 1px solid #3a3000; }
.page-blog .cat-tech      { background: #001a2a; color: #38bdf8; border: 1px solid #003a5a; }
.page-blog .cat-curiosity { background: #001a1a; color: #34d399; border: 1px solid #003a3a; }
.page-blog .cat-military  { background: #1a0000; color: #f87171; border: 1px solid #3a0000; }

.page-blog .article-title { font-size: .95rem; font-weight: 800; color: #fff; line-height: 1.4; margin-bottom: 8px; }
.page-blog .article-excerpt { font-size: .78rem; color: #aaa; line-height: 1.6; margin-bottom: 14px; flex: 1; }

/* Enlaces de acción dentro del post */
.page-blog .flydle-link { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 8px; background: var(--line-soft); border: 1px solid var(--surf-line); border-radius: 6px; color: var(--t-2); font-size: .75rem; font-weight: 700; text-decoration: none; transition: border-color .2s, color .2s; text-transform: uppercase; letter-spacing: .5px; }
.page-blog .flydle-link:hover { border-color: #538d4e; color: #fff; }

/* Caja de enlaces relacionados de abajo */
.page-blog .related { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 12px; padding: 18px; margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.page-blog .related h3 { font-size: .82rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.page-blog .related a { font-size: .8rem; color: #6b9fff; text-decoration: none; padding: 4px 0; display: inline-block; transition: color .15s; }
.page-blog .related a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   RANKINGS PAGE
   ========================================================================== */
.page-rankings .page { width: 100%; max-width: 600px; }

/* Tabs */
.page-rankings .tabs { display: flex; gap: 4px; background: var(--surf-bar); padding: 3px; border-radius: 9px; border: 1px solid var(--line-soft); margin-bottom: 20px; }
.page-rankings .tab  { flex: 1; padding: 9px 8px; border: none; border-radius: 7px; font-size: .78rem; font-weight: 700; cursor: pointer; background: transparent; color: #555; letter-spacing: .5px; transition: background .15s, color .15s; text-transform: uppercase; }
.page-rankings .tab:hover  { color: #aaa; }
.page-rankings .tab.active { background: var(--surf-line); color: #fff; }

/* Section titles */
.page-rankings .section-title { font-size: .65rem; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-bottom: 12px; }

/* Streak banner */
.streak-banner { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--surf-line), var(--surf-card)); border: 1px solid #2a3060; border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; }
.streak-main   { display: flex; align-items: center; gap: 12px; }
.streak-fire   { font-size: 2rem; }
.streak-num    { font-size: 2.6rem; font-weight: 900; color: #f97316; line-height: 1; }
.streak-label  { font-size: .6rem; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-top: 2px; }
.streak-best        { text-align: right; }
.streak-best-num    { font-size: 1.2rem; font-weight: 900; color: #b59f3b; }
.streak-best-label  { font-size: .58rem; letter-spacing: 1.5px; text-transform: uppercase; color: #555; margin-top: 2px; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.page-rankings .stat-box { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 10px; padding: 14px 8px; text-align: center; }
.page-rankings .stat-num { font-size: 1.6rem; font-weight: 900; color: #fff; }
.page-rankings .stat-lbl { font-size: .57rem; letter-spacing: 1.5px; text-transform: uppercase; color: #555; margin-top: 4px; }

/* Distribution */
.dist-section   { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.dist-row       { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.dist-label     { width: 14px; text-align: center; font-size: .8rem; color: #888; font-weight: 700; }
.dist-bar-wrap  { flex: 1; background: var(--line-soft); border-radius: 4px; height: 22px; overflow: hidden; }
.dist-bar       { height: 100%; background: #538d4e; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-size: .72rem; font-weight: 700; color: #fff; transition: width .4s; }
.dist-pct       { width: 30px; text-align: right; font-size: .68rem; color: #444; }

/* Achievements */
.achievements       { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.achievement-row    { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #0d0f1a; }
.achievement-row:last-child { border-bottom: none; }
.ach-icon  { font-size: 1.4rem; width: 32px; text-align: center; flex-shrink: 0; }
.ach-body  { flex: 1; }
.ach-title { font-size: .82rem; font-weight: 700; color: #ddd; }
.ach-desc  { font-size: .68rem; color: #555; margin-top: 2px; }
.ach-badge  { font-size: .58rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.ach-bronze { background: #3d2a10; color: #c87941; }
.ach-silver { background: #1e2030; color: #9eaac4; }
.ach-gold   { background: #2a2010; color: #d4a030; }
.ach-locked { background: #111320; color: #333; }

/* Daily history */
.history-section { background: var(--surf-card); border: 1px solid var(--surf-line); border-radius: 10px; padding: 16px; margin-bottom: 16px; overflow-x: auto; }
.history-table   { width: 100%; border-collapse: collapse; font-size: .78rem; }
.history-table th { text-align: left; font-size: .58rem; letter-spacing: 1.5px; text-transform: uppercase; color: #555; padding-bottom: 8px; border-bottom: 1px solid var(--surf-line); font-weight: 700; }
.history-table td { padding: 6px 4px; border-bottom: 1px solid #0d0f1a; color: #999; vertical-align: middle; }
.history-table tr:last-child td { border-bottom: none; }
.h-boxes        { display: flex; gap: 3px; }
.h-box          { width: 20px; height: 20px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; }
.h-win          { background: #538d4e; color: #fff; }
.h-loss         { background: #5a1010; color: #c0392b; }
.h-empty        { background: var(--line-soft); }
.h-result-win   { color: #538d4e; font-weight: 700; }
.h-result-lose  { color: #c0392b; font-weight: 700; }

/* Empty state */
.empty-state      { text-align: center; padding: 40px 20px; color: #555; }
.empty-state .big { font-size: 3rem; margin-bottom: 10px; }
.empty-state p    { font-size: .85rem; line-height: 1.6; margin-bottom: 20px; color: #666; }
.play-btn         { display: inline-block; padding: 10px 24px; background: #1b3a9e; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: 1px; transition: background .2s; }
.play-btn:hover   { background: #2a4dcc; }



/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES (Adaptación móvil)
   ========================================================================== */
@media (max-width: 600px) {
  /* Home */
  .page-index .daily-grid { grid-template-columns: 1fr; }
  .page-index .streak-row { grid-template-columns: 1fr 1fr; }
  .page-index .stats-grid { grid-template-columns: repeat(2,1fr); }
  .page-index .hero-title { letter-spacing: 6px; }
  
  /* Común */
  .nav-center, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  
  /* Juego */
  .page-game #mode-bar { margin-top: -350px; }
  .page-game .hero-overlay h1 { font-size: 1.5rem; letter-spacing: 6px; }

  /* Hangar / Vehículos */
  .page-vehicles #controls { flex-direction: column; }
  .page-vehicles .filter-select { width: 100%; }
  
  /* Páginas Legales */
  body.page-legal { padding-top: 76px; }
  .page-legal h1 { font-size: 1.5rem; }
}

@media (max-width: 360px) {
  .page-index .streak-row { grid-template-columns: 1fr; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .nav-center, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .page-game #mode-bar { margin-top: -800px; }
}

@media (min-width: 1024px) {
  .page-index main { margin: -90px auto 0; }
}

/* ========== 2026 VISUAL REFRESH (overrides earlier rules) ========== */
:root {
  --bg:#090a11; --bg-2:#0c0e18; --surface:#11141f; --surface-2:#161a28;
  --line:rgba(255,255,255,.08); --line-2:rgba(255,255,255,.14);
  --text:#eef1f7; --text-dim:#aab3c5; --text-mute:#6b7488; --radius:16px;
  /* surface/border/well tokens (themable) — dark values keep the look identical */
  --surf-card:#0d1020; --surf-line:#1a1e30; --surf-bar:#07080d; --line-soft:#131622;
  --well:#0a0a18; --t-2:#cccccc; --modal-bg:#13132a; --modal-line:#2a2a4a; --chip-bg:#1a1a2e;
  --nav-bg:rgba(9,10,17,.78); --navmob-bg:rgba(10,10,20,.97);
  --c-planes:#4f8cff; --c-helis:#ff8a3d; --c-tanks:#e0a81e; --c-ships:#2fae6a; --c-subs:#1fc6c6;
  --green:#4f9d50; --yellow:#c7a93b; --red:#2a2f45;
}
body {
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(79,140,255,.10), transparent 60%),
    radial-gradient(900px 520px at 12% 105%, rgba(47,174,106,.08), transparent 55%),
    radial-gradient(900px 520px at 92% 80%, rgba(255,138,61,.06), transparent 55%),
    var(--bg);
  color: var(--text);
}
nav { height:56px; background:var(--nav-bg); border-bottom:1px solid var(--line); -webkit-backdrop-filter:blur(14px) saturate(140%); backdrop-filter:blur(14px) saturate(140%); }
.nav-logo { font-size:1rem; letter-spacing:3px; }
.nav-logo span { color:var(--c-planes); }
.nav-center { gap:2px; flex-wrap:wrap; justify-content:center; }
.nav-link { font-size:.7rem; padding:6px 11px; color:var(--text-mute); border-radius:8px; }
.nav-link:hover { color:#fff; background:rgba(255,255,255,.07); }
.nav-lang { border-radius:9px; border-color:var(--line-2); color:var(--text-dim); }
.nav-lang:hover { border-color:var(--c-planes); color:#fff; }
.page-index .hero-title { background:linear-gradient(180deg,#fff 0%,#b9c6e6 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; text-shadow:0 0 40px rgba(79,140,255,.25); }
.page-index .hero-sub { color:var(--c-subs); letter-spacing:4px; }
.page-index main { max-width:940px; }
.page-index .section-title { font-size:1.15rem; letter-spacing:3px; }
.page-index .section-sub { color:var(--text-mute); font-size:.8rem; }
.page-index .daily-grid { grid-template-columns:repeat(5,1fr); gap:14px; }
.page-index .daily-card { background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:var(--radius); padding:22px 14px 16px; position:relative; overflow:hidden; transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s,border-color .2s; }
.page-index .daily-card::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--accent,var(--c-planes)); opacity:.9; }
.page-index .daily-card::after { content:""; position:absolute; top:-40%; left:50%; width:160%; height:120%; transform:translateX(-50%); background:radial-gradient(closest-side,color-mix(in srgb,var(--accent,#4f8cff) 22%,transparent),transparent 70%); opacity:0; transition:opacity .25s; pointer-events:none; }
.page-index .daily-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,.55); border-color:color-mix(in srgb,var(--accent) 50%,var(--line)); }
.page-index .daily-card:hover::after { opacity:1; }
.page-index .daily-card.planes { --accent:var(--c-planes); border-color:rgba(79,140,255,.32); }
.page-index .daily-card.helis { --accent:var(--c-helis); border-color:rgba(255,138,61,.32); }
.page-index .daily-card.tanks { --accent:var(--c-tanks); border-color:rgba(224,168,30,.32); }
.page-index .daily-card.ships { --accent:var(--c-ships); border-color:rgba(47,174,106,.32); }
.page-index .daily-card.subs { --accent:var(--c-subs); border-color:rgba(31,198,198,.32); }
.page-index .card-label { color:var(--accent) !important; letter-spacing:1.5px; margin-bottom:10px; }
.page-index .card-vehicle { height:80px; }
.page-index .card-emoji { font-size:3.1rem; line-height:1; filter:drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.page-index .silueta { filter:drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
.page-index .card-desc { color:var(--text-dim); }
.page-index .card-btn { background:var(--accent) !important; color:#07121f !important; border-radius:10px; font-weight:900; }
.page-index .card-btn:hover { filter:brightness(1.12); }
.page-index .streak-container, .page-index .stats-section { background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:var(--radius); }
.page-index .streak-num, .page-index .stat-num { font-weight:800; }
body.page-submarines { background-image:radial-gradient(900px 500px at 50% -5%,rgba(31,198,198,.16),transparent 60%),linear-gradient(to bottom,#061417 0%,#07131c 45%,var(--bg) 100%); background-attachment:fixed; }
body.page-helicopters { background-image:radial-gradient(900px 500px at 50% -5%,rgba(255,138,61,.16),transparent 60%),linear-gradient(to bottom,#1a1208 0%,#12101a 45%,var(--bg) 100%); background-attachment:fixed; }
.page-game .hero-overlay { padding-top:86px; margin-bottom:22px; }
.page-game .hero-overlay h1 { letter-spacing:7px; }
.page-game #mode-bar { margin-top:0 !important; }
.page-game #game-modes { background:rgba(13,16,28,.7); border:1px solid var(--line); border-radius:12px; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.page-game .mode-btn { border-radius:9px; color:var(--text-dim); }
.page-game .mode-btn.active { background:linear-gradient(180deg,#2750c8,#1b3a9e); color:#fff; box-shadow:0 4px 14px rgba(39,80,200,.35); }
.page-game #col-headers span { color:var(--text-mute); }
.page-game .guess-name { background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:9px; }
.page-game .cell { border-radius:8px; font-weight:700; box-shadow:inset 0 0 0 1px rgba(255,255,255,.03); }
.page-game .green { background:linear-gradient(180deg,#59a85a,var(--green)); }
.page-game .yellow { background:linear-gradient(180deg,#d4b840,var(--yellow)); color:#1a1606; }
.page-game .red { background:var(--red); color:var(--text-dim); }
.page-game .guess-card { animation:slideIn .32s cubic-bezier(.2,.7,.2,1); }
.page-game #search-input { background:rgba(13,16,28,.85); border:2px solid var(--line); border-radius:11px; }
.page-game #search-input:focus { border-color:var(--c-planes); box-shadow:0 0 0 3px rgba(79,140,255,.18); }
.page-game #autocomplete-list { border-radius:0 0 11px 11px; border-color:var(--line); }
.page-game #guess-btn { background:linear-gradient(180deg,#59a85a,#43803f); border-radius:11px; font-weight:800; box-shadow:0 6px 18px rgba(67,128,63,.3); }
.page-game #guess-btn:hover { filter:brightness(1.08); background:linear-gradient(180deg,#59a85a,#43803f); }
.page-game #guess-btn:disabled { background:var(--surface); box-shadow:none; color:var(--text-mute); }
.page-game #result-panel, .page-game #legend { background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:var(--radius); }
.page-game #modal, .page-game #stats-modal { background:linear-gradient(180deg,#161a2c,#10121d); border:1px solid var(--line-2); border-radius:20px; box-shadow:0 24px 70px rgba(0,0,0,.6); }
.page-game #modal-title { letter-spacing:4px; }
@media (max-width:1024px){ .page-index .daily-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:720px){ .page-index .daily-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:601px) and (max-width:900px){ .page-game #mode-bar { margin-top:0 !important; } }
@media (max-width:600px){ .page-index .daily-grid { grid-template-columns:1fr 1fr; } .page-game #mode-bar { margin-top:0 !important; } .page-game .hero-overlay { padding-top:78px; } .nav-center { display:none; } }
@media (max-width:400px){ .page-index .daily-grid { grid-template-columns:1fr; } }

/* ========== ENCYCLOPEDIA (unified, tabbed) + mobile-first polish ========== */
body[data-cat="planes"] { --cat: var(--c-planes); }
body[data-cat="helis"]  { --cat: var(--c-helis); }
body[data-cat="tanks"]  { --cat: var(--c-tanks); }
body[data-cat="ships"]  { --cat: var(--c-ships); }
body[data-cat="subs"]   { --cat: var(--c-subs); }

.page-encyclopedia header { margin-bottom: 12px; }
.page-encyclopedia header h1 { letter-spacing: 4px; }
.page-encyclopedia .subtitle { color: var(--cat, var(--c-planes)); transition: color .2s; }

#cat-tabs { width: 100%; max-width: 720px; display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px; margin: 0 auto 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-dim); font-size: .78rem; font-weight: 800; cursor: pointer; white-space: nowrap; transition: transform .15s, background .18s, color .18s, border-color .18s; }
.cat-tab .cat-ic { font-size: 1rem; }
.cat-tab:hover { color: #fff; border-color: var(--line-2); }
.cat-tab:active { transform: scale(.96); }
.cat-tab.active { color: #06121f; border-color: transparent; }
body[data-cat="planes"] .cat-tab.active { background: var(--c-planes); }
body[data-cat="helis"]  .cat-tab.active { background: var(--c-helis); }
body[data-cat="tanks"]  .cat-tab.active { background: var(--c-tanks); }
body[data-cat="ships"]  .cat-tab.active { background: var(--c-ships); }
body[data-cat="subs"]   .cat-tab.active { background: var(--c-subs); }

.page-vehicles #search-box { background: rgba(13,16,28,.85); border: 1px solid var(--line); border-radius: 11px; }
.page-vehicles #search-box:focus { border-color: var(--cat, var(--c-planes)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat, #4f8cff) 22%, transparent); }
.page-vehicles .filter-select { border-radius: 10px; border-color: var(--line); }
.page-vehicles #item-count { width: 100%; text-align: right; font-size: .68rem; color: var(--text-mute); font-weight: 700; letter-spacing: .5px; margin-top: 2px; }
.page-vehicles .sort-btn.active { background: color-mix(in srgb, var(--cat, #4f8cff) 24%, var(--surface)); color: #fff; }

.page-vehicles .card { background: linear-gradient(170deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 14px; transition: transform .18s, border-color .18s, box-shadow .18s; }
.page-vehicles .card:hover { border-color: var(--cat, var(--c-planes)); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.page-vehicles .card-wiki { margin-bottom: 6px; }
.page-vehicles .card-wiki a { font-size: .66rem; color: var(--cat, #6b9fe4); text-decoration: none; font-weight: 600; }
.page-vehicles .card-wiki a:hover { text-decoration: underline; }

/* Denser, comfier grid on phones (90% of users) */
.page-encyclopedia #grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 11px; }
@media (max-width: 600px) {
  .page-vehicles { padding-top: 64px; }
  .page-encyclopedia header h1 { font-size: 1.5rem; letter-spacing: 3px; }
  .page-encyclopedia #grid { gap: 9px; }
  .page-vehicles .card { padding: 10px; }
  .page-vehicles .card-name { font-size: .82rem; }
}

/* X (Twitter) follow button — replaces old Telegram CTA */
.rp-x { background: #000; color: #fff; }
.rp-x:hover { background: #111; }

/* Helicopter & submarine icon images (replacing emoji) */
.page-index img.card-emoji { width: 80px; height: 60px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.cat-tab img.cat-ic { width: 18px; height: 18px; object-fit: contain; }
.hero-ico { width: 1em; height: 1em; object-fit: contain; vertical-align: -0.12em; }
.page-game .hero-overlay h1 .hero-ico { width: .9em; height: .9em; margin-right: .12em; }
img.ph-ico { width: 64px; height: 64px; object-fit: contain; opacity: .92; }
.img-ph-img { width: 46px; height: 46px; object-fit: contain; opacity: .85; }

/* ===== Game-to-game quick switcher (game pages) ===== */
#game-switch { display:flex; gap:6px; max-width:560px; width:100%; margin:0 auto 12px; overflow-x:auto; scrollbar-width:none; padding:2px; position:relative; z-index:10; }
#game-switch::-webkit-scrollbar { display:none; }
.gs-tab { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--text-dim); font-size:.72rem; font-weight:800; text-decoration:none; white-space:nowrap; transition:transform .15s, background .18s, color .18s, border-color .18s; }
.gs-tab .gs-ic { font-size:.95rem; line-height:1; }
.gs-tab img.gs-ic { width:16px; height:16px; object-fit:contain; }
.gs-tab:hover { color:#fff; border-color:var(--line-2); }
.gs-tab:active { transform:scale(.96); }
.gs-tab.active { color:#06121f; border-color:transparent; }
body[data-game="planes"] .gs-tab.active { background:var(--c-planes); }
body[data-game="helis"]  .gs-tab.active { background:var(--c-helis); }
body[data-game="tanks"]  .gs-tab.active { background:var(--c-tanks); }
body[data-game="ships"]  .gs-tab.active { background:var(--c-ships); }
body[data-game="subs"]   .gs-tab.active { background:var(--c-subs); }

/* Show the title icon images (override the hero background-image hide rule) */
.page-game .hero-overlay h1 img.hero-ico { display: inline-block; width: .82em; height: .82em; vertical-align: -0.08em; margin-right: .16em; }

/* ========================== NEWS PAGE ========================== */
body.page-news { display:flex; flex-direction:column; align-items:center; padding:72px 14px 0; }
.page-news header { text-align:center; margin-bottom:18px; max-width:760px; }
.page-news header h1 { font-size:1.8rem; font-weight:900; letter-spacing:4px; color:#fff; }
.page-news .subtitle { font-size:.72rem; letter-spacing:1.5px; color:var(--c-subs); font-weight:700; margin-top:5px; text-transform:capitalize; }
.page-news .news-intro { font-size:.82rem; color:var(--text-dim); margin-top:8px; line-height:1.6; }
#news-grid { width:100%; max-width:760px; display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.news-card { background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:var(--radius); padding:14px; display:flex; flex-direction:column; position:relative; overflow:hidden; transition:transform .18s, border-color .18s, box-shadow .18s; }
.news-card::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--ac,var(--c-planes)); }
.news-card[data-game="planes"]{ --ac:var(--c-planes); } .news-card[data-game="helis"]{ --ac:var(--c-helis); }
.news-card[data-game="tanks"]{ --ac:var(--c-tanks); } .news-card[data-game="ships"]{ --ac:var(--c-ships); } .news-card[data-game="subs"]{ --ac:var(--c-subs); }
.news-card:hover { transform:translateY(-3px); border-color:var(--ac); box-shadow:0 12px 28px rgba(0,0,0,.45); }
.news-card-head { display:flex; align-items:center; gap:7px; margin-bottom:10px; }
.news-ic { font-size:1.1rem; line-height:1; display:inline-flex; }
img.news-ic { width:20px; height:20px; object-fit:contain; }
.news-cat { font-size:.62rem; font-weight:800; letter-spacing:1.2px; text-transform:uppercase; color:var(--ac,var(--c-planes)); flex:1; }
.news-num { font-size:.62rem; font-weight:700; color:var(--text-mute); }
.news-img { width:100%; height:120px; background:#06070d; border:1px solid var(--line); border-radius:9px; overflow:hidden; display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.news-img img { width:100%; height:100%; object-fit:cover; display:none; }
.news-ph { opacity:.45; }
.news-ph .news-ic, .news-ph img.news-ic { font-size:2rem; width:48px; height:48px; }
.news-name { font-size:.92rem; font-weight:800; color:#fff; margin-bottom:3px; }
.news-meta { font-size:.7rem; color:var(--text-dim); line-height:1.5; flex:1; margin-bottom:10px; }
.news-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.news-wiki { font-size:.68rem; color:var(--text-mute); text-decoration:none; }
.news-wiki:hover { color:#fff; }
.news-play { font-size:.68rem; font-weight:800; color:#06121f; background:var(--ac,var(--c-planes)); padding:5px 10px; border-radius:7px; text-decoration:none; }
.news-play:hover { filter:brightness(1.1); }
#news-share { width:100%; max-width:760px; display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:22px auto 0; }
.news-share-lbl { font-size:.7rem; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-mute); }
.news-share-btns { display:flex; gap:8px; flex-wrap:wrap; }
.page-news .share-btn { padding:8px 16px; border:none; border-radius:8px; font-size:.8rem; font-weight:700; cursor:pointer; transition:opacity .2s; }
.page-news .share-btn:hover { opacity:.85; }
.page-news .share-btn-x { background:#000; color:#fff; }
.page-news .share-btn-wa { background:#25d366; color:#fff; }
.page-news .share-btn-copy { background:var(--surface-2); color:var(--text); border:1px solid var(--line-2); }
.page-news .news-note { max-width:760px; width:100%; margin:14px auto 0; font-size:.72rem; color:var(--text-mute); font-style:italic; text-align:center; }
#news-toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:#2fae6a; color:#06121f; padding:9px 20px; border-radius:8px; font-size:.85rem; font-weight:700; opacity:0; transition:opacity .3s; pointer-events:none; z-index:300; }
#news-toast.show { opacity:1; }

/* ========================== CONTACT PAGE ========================== */
.page-contact header { text-align:center; margin-bottom:22px; }
.page-contact .subtitle { font-size:.72rem; letter-spacing:1.5px; color:var(--c-subs); font-weight:700; margin-top:5px; }
.contact-form { display:flex; flex-direction:column; gap:14px; margin:22px 0 28px; }
.cf-field { display:flex; flex-direction:column; gap:6px; }
.cf-field span { font-size:.72rem; font-weight:700; letter-spacing:.5px; color:var(--text-dim); text-transform:uppercase; }
.contact-form input, .contact-form textarea { width:100%; padding:12px 14px; font-size:16px; background:rgba(13,16,28,.85); border:1px solid var(--line); border-radius:10px; color:#fff; outline:none; font-family:inherit; transition:border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color:var(--c-planes); box-shadow:0 0 0 3px rgba(79,140,255,.18); }
.contact-form textarea { resize:vertical; }
.contact-send { align-self:flex-start; padding:12px 28px; background:linear-gradient(180deg,#2750c8,#1b3a9e); color:#fff; border:none; border-radius:10px; font-size:.9rem; font-weight:800; letter-spacing:.5px; cursor:pointer; transition:filter .2s; }
.contact-send:hover { filter:brightness(1.1); }
.contact-social { border-top:1px solid var(--line); padding-top:20px; }
.contact-social p { font-size:.85rem; color:var(--text-dim); margin-bottom:12px; }
.contact-soc-row { display:flex; gap:10px; flex-wrap:wrap; }
.contact-soc { display:inline-flex; align-items:center; gap:9px; padding:11px 18px; border-radius:10px; font-size:.85rem; font-weight:700; text-decoration:none; color:#fff; transition:filter .2s, transform .15s; }
.contact-soc:hover { filter:brightness(1.1); transform:translateY(-2px); }
.contact-soc.x { background:#000; border:1px solid #2a2a2a; }
.contact-soc.ig { background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.cf-soon { margin-top:6px; font-size:.82rem; color:#4f9d50; font-weight:600; line-height:1.5; }

/* ===== News: per-vehicle stats + individual share ===== */
.news-act-right { display:inline-flex; align-items:center; gap:8px; }
.news-share-one { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:7px; border:1px solid var(--line-2); background:#000; color:#fff; cursor:pointer; padding:0; transition:transform .15s, filter .2s; }
.news-share-one:hover { filter:brightness(1.25); }
.news-share-one:active { transform:scale(.92); }
#news-stats { width:100%; max-width:760px; margin:30px auto 0; }
.news-stats-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.news-stats-head h2 { font-size:1.05rem; font-weight:900; letter-spacing:2px; text-transform:uppercase; color:#fff; }
.stats-source { font-size:.62rem; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:var(--text-mute); border:1px solid var(--line); border-radius:999px; padding:3px 10px; }
#stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; }
.stat-card { background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:var(--radius); padding:14px; position:relative; overflow:hidden; }
.stat-card::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--ac,var(--c-planes)); }
.stat-card[data-game="planes"]{ --ac:var(--c-planes); } .stat-card[data-game="helis"]{ --ac:var(--c-helis); }
.stat-card[data-game="tanks"]{ --ac:var(--c-tanks); } .stat-card[data-game="ships"]{ --ac:var(--c-ships); } .stat-card[data-game="subs"]{ --ac:var(--c-subs); }
.stat-card .news-card-head { margin-bottom:12px; }
.stat-card .news-cat { color:var(--ac,var(--c-planes)); }
.stat-row { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-bottom:14px; }
.stat-cell { text-align:center; background:rgba(255,255,255,.025); border-radius:9px; padding:8px 4px; }
.stat-v { font-size:1.15rem; font-weight:900; color:#fff; line-height:1; }
.stat-k { font-size:.52rem; letter-spacing:.5px; text-transform:uppercase; color:var(--text-mute); margin-top:5px; }
.sd-title { font-size:.58rem; letter-spacing:1.2px; text-transform:uppercase; color:var(--text-mute); margin-bottom:8px; }
.sd-bars { display:flex; flex-direction:column; gap:4px; }
.sd-row { display:flex; align-items:center; gap:7px; }
.sd-n { width:10px; text-align:right; font-size:.68rem; color:var(--text-mute); font-weight:700; }
.sd-bar-wrap { flex:1; background:rgba(255,255,255,.05); border-radius:4px; height:16px; overflow:hidden; }
.sd-bar { height:100%; background:var(--ac,var(--c-planes)); border-radius:4px; min-width:4px; display:flex; align-items:center; justify-content:flex-end; padding-right:6px; font-size:.6rem; font-weight:700; color:#06121f; transition:width .5s ease; }
.sd-extra { margin-top:10px; font-size:.7rem; color:var(--text-dim); }
.sd-extra b { color:#fff; }

/* Index bottom contact CTA */
.page-index .index-cta { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:14px; padding:18px 20px; border-radius:var(--radius); text-decoration:none; background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); transition:transform .18s, border-color .18s, box-shadow .18s; }
.page-index .index-cta:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--c-subs) 45%,var(--line)); box-shadow:0 12px 30px rgba(0,0,0,.45); }
.page-index .index-cta-title { font-size:1rem; font-weight:900; color:#fff; letter-spacing:.5px; }
.page-index .index-cta-sub { font-size:.78rem; color:var(--text-dim); margin-top:4px; line-height:1.5; }
.page-index .index-cta-btn { flex:0 0 auto; padding:11px 22px; border-radius:10px; background:var(--c-subs); color:#06121f; font-weight:900; font-size:.8rem; letter-spacing:.5px; white-space:nowrap; }
@media (max-width:520px){ .page-index .index-cta { flex-direction:column; align-items:flex-start; } .page-index .index-cta-btn { width:100%; text-align:center; } }

/* ========================== RANKING PAGE ========================== */
body.page-ranking { display:flex; flex-direction:column; align-items:center; padding:72px 14px 0; }
.page-ranking header { text-align:center; margin-bottom:16px; }
.page-ranking header h1 { font-size:1.8rem; font-weight:900; letter-spacing:4px; color:var(--text); }
.page-ranking .subtitle { font-size:.74rem; letter-spacing:1px; color:var(--text-dim); margin-top:5px; }
#rank-tabs { width:100%; max-width:620px; display:flex; gap:7px; overflow-x:auto; scrollbar-width:none; padding:2px 0 10px; margin:0 auto 6px; }
#rank-tabs::-webkit-scrollbar { display:none; }
.rk-tab { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; padding:9px 15px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--text-dim); font-size:.78rem; font-weight:800; cursor:pointer; white-space:nowrap; transition:transform .15s, background .18s, color .18s, border-color .18s; }
.rk-tab .rk-ic { font-size:1rem; line-height:1; } .rk-tab img.rk-ic { width:18px; height:18px; object-fit:contain; }
.rk-tab:hover { color:#fff; border-color:var(--line-2); }
.rk-tab:active { transform:scale(.96); }
.rk-tab.active { color:#06121f; border-color:transparent; }
body[data-scope="overall"] .rk-tab.active { background:#e0b020; }
body[data-scope="planes"] .rk-tab.active { background:var(--c-planes); }
body[data-scope="helis"]  .rk-tab.active { background:var(--c-helis); }
body[data-scope="tanks"]  .rk-tab.active { background:var(--c-tanks); }
body[data-scope="ships"]  .rk-tab.active { background:var(--c-ships); }
body[data-scope="subs"]   .rk-tab.active { background:var(--c-subs); }
.rank-head { width:100%; max-width:620px; display:grid; grid-template-columns:48px 1fr auto; gap:10px; padding:0 14px 8px; font-size:.58rem; letter-spacing:1.2px; text-transform:uppercase; color:var(--text-mute); font-weight:800; }
.rank-head .rank-col-score { text-align:right; }
#rank-list { width:100%; max-width:620px; display:flex; flex-direction:column; gap:7px; }
.rk-row { display:grid; grid-template-columns:48px 1fr auto; gap:10px; align-items:center; background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:12px; padding:11px 14px; }
.rk-row.top { border-color:rgba(224,176,32,.4); }
.rk-rank { display:flex; align-items:center; justify-content:center; }
.rk-medal { font-size:1.3rem; } .rk-pos { font-size:.95rem; font-weight:800; color:var(--text-mute); }
.rk-name { font-size:.92rem; font-weight:800; color:var(--text); display:flex; flex-direction:column; gap:2px; min-width:0; }
.rk-name .rk-sub { font-size:.66rem; font-weight:600; color:var(--text-mute); }
.rk-score { text-align:right; font-size:1.05rem; font-weight:900; color:var(--text); white-space:nowrap; }
.rk-score .rk-score-k { font-size:.56rem; font-weight:700; color:var(--text-mute); margin-left:4px; text-transform:uppercase; }
.rk-loading { text-align:center; color:var(--text-mute); padding:30px; font-size:1.4rem; }
.rk-empty { width:100%; max-width:620px; text-align:center; background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:var(--radius); padding:36px 22px; }
.rk-empty-ic { font-size:3rem; margin-bottom:12px; opacity:.85; }
.rk-empty-title { font-size:1.05rem; font-weight:900; color:var(--text); margin-bottom:8px; }
.rk-empty-text { font-size:.84rem; color:var(--text-dim); line-height:1.6; max-width:420px; margin:0 auto 18px; }
.rk-empty-btn { display:inline-block; padding:11px 24px; border-radius:10px; background:var(--c-planes); color:#06121f; font-weight:900; font-size:.82rem; text-decoration:none; transition:filter .2s; }
.rk-empty-btn:hover { filter:brightness(1.1); }
.rank-foot { width:100%; max-width:620px; text-align:center; margin-top:14px; }
.rank-source { font-size:.62rem; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:var(--text-mute); border:1px solid var(--line); border-radius:999px; padding:4px 12px; display:inline-block; }
@media (max-width:600px){ .page-ranking { padding-top:64px; } .page-ranking header h1 { font-size:1.5rem; letter-spacing:3px; } }

/* Ranking — nickname bar */
.rank-name { width:100%; max-width:620px; margin:0 auto 12px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:12px; padding:10px 14px; font-size:.82rem; color:var(--text-dim); }
.rank-name .rn-label { color:var(--text-mute); }
.rank-name .rn-name { color:var(--text); font-weight:800; }
.rank-name .rn-set { color:var(--text-dim); }
.rank-name .rn-form { display:inline-flex; gap:8px; margin-left:auto; }
.rank-name input { padding:8px 11px; font-size:16px; background:rgba(13,16,28,.85); border:1px solid var(--line); border-radius:9px; color:#fff; outline:none; max-width:170px; }
.rank-name input:focus { border-color:var(--c-planes); box-shadow:0 0 0 3px rgba(79,140,255,.18); }
.rank-name .rn-save, .rank-name .rn-edit { padding:8px 16px; border:none; border-radius:9px; background:var(--c-planes); color:#06121f; font-weight:800; font-size:.78rem; cursor:pointer; }
.rank-name .rn-edit { background:var(--surface-2); color:var(--text-dim); border:1px solid var(--line-2); margin-left:auto; }
.rank-name .rn-save:hover { filter:brightness(1.1); } .rank-name .rn-edit:hover { color:#fff; }

/* First-visit nickname popup */
#name-modal-overlay { position:fixed; inset:0; z-index:400; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(4,5,10,.78); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); opacity:0; transition:opacity .2s; }
#name-modal-overlay.show { opacity:1; }
#name-modal { width:100%; max-width:380px; background:linear-gradient(180deg,#161a2c,#10121d); border:1px solid var(--line-2); border-radius:18px; box-shadow:0 24px 70px rgba(0,0,0,.6); padding:26px 22px; text-align:center; transform:translateY(8px) scale(.98); transition:transform .2s; }
#name-modal-overlay.show #name-modal { transform:none; }
#name-modal .nm-emoji { font-size:2.4rem; margin-bottom:8px; }
#name-modal .nm-title { font-size:1.15rem; font-weight:900; color:#fff; letter-spacing:.5px; margin-bottom:7px; }
#name-modal .nm-text { font-size:.84rem; color:var(--text-dim); line-height:1.55; margin-bottom:16px; }
#name-modal #nm-input { width:100%; padding:12px 14px; font-size:16px; text-align:center; background:rgba(13,16,28,.85); border:1px solid var(--line); border-radius:11px; color:#fff; outline:none; margin-bottom:14px; }
#name-modal #nm-input:focus { border-color:var(--c-planes); box-shadow:0 0 0 3px rgba(79,140,255,.18); }
#name-modal .nm-actions { display:flex; gap:10px; }
#name-modal .nm-skip, #name-modal .nm-save { flex:1; padding:12px; border-radius:11px; font-size:.88rem; font-weight:800; cursor:pointer; border:none; }
#name-modal .nm-skip { background:var(--surface-2); color:var(--text-dim); border:1px solid var(--line-2); }
#name-modal .nm-save { background:var(--c-planes); color:#06121f; }
#name-modal .nm-save:hover { filter:brightness(1.1); } #name-modal .nm-skip:hover { color:#fff; }

/* Index — world ranking CTA (below the games) */
.page-index .index-rank-cta { display:flex; align-items:center; gap:12px; margin:0 0 14px; padding:15px 18px; border-radius:var(--radius); text-decoration:none; background:linear-gradient(135deg, rgba(224,176,32,.16), rgba(224,176,32,.05)); border:1px solid rgba(224,176,32,.35); transition:transform .18s, box-shadow .18s, border-color .18s; }
.page-index .index-rank-cta:hover { transform:translateY(-3px); border-color:rgba(224,176,32,.65); box-shadow:0 12px 30px rgba(0,0,0,.45); }
.page-index .irc-emoji { font-size:1.5rem; line-height:1; }
.page-index .irc-text { flex:1; font-size:.95rem; font-weight:800; color:#fff; letter-spacing:.3px; }
.page-index .irc-arrow { color:#e0b020; font-weight:900; font-size:1.1rem; }

/* Index hero: large photo with the games OVERLAID on top and pulled up, so the
   daily challenges are visible right away (no long scroll). */
.page-index .hero-img-wrap { position: relative; }
.page-index .hero-img-wrap img { height: 80vh; object-fit: cover; object-position: center; }
.page-index main { position: relative; z-index: 2; margin-top: -66vh; }
@media (min-width: 1024px) { .page-index main { margin: -66vh auto 0; max-width: 940px; } }
@media (max-width: 600px) {
  .page-index .hero-img-wrap img { height: 62vh; }
  .page-index main { margin-top: -52vh; }
}

/* Make the section title + subtitle readable over the hero photo */
.page-index .section-title { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.9), 0 0 3px rgba(0,0,0,.7); }
.page-index .section-sub { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.7); font-weight: 600; }

/* Flag picker (ranking nickname bar + welcome modal) */
.rank-name .rn-flag, #name-modal .nm-flag { padding: 8px 10px; font-size: 15px; background: rgba(13,16,28,.9); border: 1px solid var(--line); border-radius: 9px; color: #fff; outline: none; max-width: 140px; cursor: pointer; }
.rank-name .rn-flag:focus, #name-modal .nm-flag:focus { border-color: var(--c-planes); }
#name-modal .nm-row { display: flex; gap: 8px; margin-bottom: 14px; }
#name-modal .nm-row #nm-input { margin-bottom: 0; flex: 1; }
#name-modal .nm-flag { flex: 0 0 auto; }
.rk-row .rk-name { display: flex; flex-direction: column; }

/* ── Flag images (emoji flags don't render on Windows) ── */
.rk-flag{width:22px;height:15px;object-fit:cover;border-radius:2px;vertical-align:-2px;margin-right:7px;box-shadow:0 0 0 1px rgba(0,0,0,.35);flex:0 0 auto}
.rk-name .rk-flag{margin-right:7px}
.rank-name .rn-flag-preview,#name-modal .nm-flag-preview{margin-right:0}
.rank-name .rn-form,#name-modal .nm-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* ── Ranking: Daily / Photo mode toggle ── */
.rank-mode{display:flex;gap:8px;justify-content:center;margin:0 auto 14px;max-width:320px}
.rank-mode .rk-mode{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;
  padding:9px 14px;border-radius:12px;cursor:pointer;font-weight:700;font-size:.92rem;
  color:#aeb8c8;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);
  transition:background .15s,color .15s,border-color .15s}
.rank-mode .rk-mode:hover{background:rgba(255,255,255,.07);color:#e7ecf5}
.rank-mode .rk-mode.active{background:linear-gradient(180deg,#f6c453,#e8a91e);color:#1a1205;border-color:transparent;box-shadow:0 4px 14px rgba(232,169,30,.30)}
.rank-mode .rk-mode-ic{font-size:1.02rem;line-height:1}

/* ── Ranking page: per-vehicle global stats block ── */
.rank-stats{width:100%;max-width:620px;margin:26px auto 0;padding:0}
.rank-stats-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 12px}
.rank-stats-head h2{font-size:1.04rem;margin:0;letter-spacing:.3px}

/* ── Ranking page: country ranking section (inside Global) ── */
.rank-countries{width:100%;max-width:620px;margin:26px auto 0;padding:0}
.rank-ctry-head{display:flex;align-items:center;gap:8px;margin:0 2px 12px}
.rank-ctry-head .rk-ic{font-size:1.15rem}
.rank-ctry-head h2{font-size:1.04rem;margin:0;letter-spacing:.3px}
#rank-ctry-list{display:flex;flex-direction:column;gap:8px}
.rk-empty-mini{color:var(--text-mute);font-size:.86rem;text-align:center;padding:18px 10px;border:1px dashed var(--line);border-radius:var(--radius)}

/* Ranking stats grid: tidy cells, lone card fills the row */
.rank-stats #stats-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));}
@media (max-width:560px){ .rank-stats #stats-grid{grid-template-columns:1fr;} }

/* ============================ LIGHT THEME ============================ */
[data-theme="light"]{
  --bg:#f3f5fb; --bg-2:#e9edf6; --surface:#ffffff; --surface-2:#f7f9fd;
  --line:rgba(15,23,42,.12); --line-2:rgba(15,23,42,.20);
  --text:#101828; --text-dim:#41506b; --text-mute:#6b7488; --red:#e6eaf2;
  --surf-card:#ffffff; --surf-line:#e2e7f0; --surf-bar:#eef1f8; --line-soft:#e2e7f0;
  --well:#e9edf5; --t-2:#41506b; --modal-bg:#ffffff; --modal-line:#e2e7f0; --chip-bg:#eef1f8;
  --nav-bg:rgba(255,255,255,.82); --navmob-bg:rgba(255,255,255,.97);
}
[data-theme="light"] body{
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(79,140,255,.10), transparent 60%),
    radial-gradient(900px 520px at 12% 105%, rgba(47,174,106,.07), transparent 55%),
    radial-gradient(900px 520px at 92% 80%, rgba(255,138,61,.06), transparent 55%),
    var(--bg);
}
[data-theme="light"] body.page-submarines{ background-image:radial-gradient(900px 500px at 50% -5%,rgba(31,198,198,.14),transparent 60%),linear-gradient(to bottom,#e7fbfb 0%,#eef6fb 45%,var(--bg) 100%); }
[data-theme="light"] body.page-helicopters{ background-image:radial-gradient(900px 500px at 50% -5%,rgba(255,138,61,.14),transparent 60%),linear-gradient(to bottom,#fff2e8 0%,#f3eefb 45%,var(--bg) 100%); }
/* text hard-set white over a surface → dark on light */
[data-theme="light"] #search-input,
[data-theme="light"] .page-vehicles #search-box,
[data-theme="light"] .page-vehicles .filter-select,
[data-theme="light"] .rank-name input,
[data-theme="light"] #rn-input,
[data-theme="light"] #nm-input,
[data-theme="light"] .page-game .guess-name,
[data-theme="light"] .page-game .autocomplete-item,
[data-theme="light"] .rank-name .rn-name,
[data-theme="light"] .page-index .index-cta-title{ color:var(--text); }
/* hovers that flipped text to #fff over transparent/near-white */
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .cat-tab:hover,
[data-theme="light"] .rk-tab:hover,
[data-theme="light"] .gs-tab:hover,
[data-theme="light"] .news-wiki:hover,
[data-theme="light"] .nav-lang:hover{ color:var(--text); }
[data-theme="light"] .nav-link:hover{ background:rgba(15,23,42,.06); }
/* dark translucent panels from the 2026 refresh */
[data-theme="light"] .page-game #game-modes{ background:rgba(15,23,42,.05); }
[data-theme="light"] .page-game #search-input{ background:#fff; }
[data-theme="light"] .page-game #modal,
[data-theme="light"] .page-game #stats-modal{ background:linear-gradient(180deg,#ffffff,#f3f6fc); border-color:var(--line-2); box-shadow:0 24px 70px rgba(20,30,60,.18); }
/* photo well + error chip */
[data-theme="light"] .page-game .photo-loading{ color:#9aa6bd; background:var(--well); }
[data-theme="light"] .page-game .photo-wrong-row{ background:#fdecec; border-color:#f3c0c0; color:#c0392b; }
/* softer shadows on light cards */
[data-theme="light"] .page-index .daily-card:hover{ box-shadow:0 16px 40px rgba(20,30,60,.14); }
[data-theme="light"] .rank-mode .rk-mode{ color:var(--text-dim); }

/* Theme toggle button (next to language) */
.nav-theme{ background:none; border:1px solid var(--line-2); color:var(--text-dim); border-radius:9px; padding:5px 9px; font-size:.9rem; cursor:pointer; line-height:1; transition:border-color .2s, color .2s, background .2s; }
.nav-theme:hover{ border-color:var(--c-planes); }
.nav-mobile-menu .nav-theme{ margin:8px 24px; display:inline-block; width:auto; }

/* ============================ ONBOARDING TOUR ============================ */
#onb-overlay{ position:fixed; inset:0; z-index:4000; display:flex; align-items:center; justify-content:center; padding:18px; background:rgba(4,6,12,.62); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); opacity:0; transition:opacity .2s; }
#onb-overlay.show{ opacity:1; }
#onb{ width:100%; max-width:440px; background:linear-gradient(180deg,var(--surface-2),var(--surface)); border:1px solid var(--line-2); border-radius:20px; padding:30px 24px 22px; position:relative; box-shadow:0 30px 80px rgba(0,0,0,.5); transform:translateY(10px) scale(.98); transition:transform .22s cubic-bezier(.2,.7,.2,1); text-align:center; }
#onb-overlay.show #onb{ transform:none; }
.onb-skip{ position:absolute; top:12px; right:14px; background:none; border:none; color:var(--text-mute); font-size:.78rem; font-weight:700; cursor:pointer; letter-spacing:.5px; }
.onb-skip:hover{ color:var(--text); }
.onb-emoji{ font-size:2rem; line-height:1; margin-bottom:10px; letter-spacing:2px; }
.onb-h{ font-size:1.25rem; font-weight:900; color:var(--text); margin:0 0 8px; letter-spacing:.5px; }
.onb-p{ font-size:.9rem; color:var(--text-dim); line-height:1.5; margin:0 auto 14px; max-width:340px; }
.onb-body{ min-height:188px; display:flex; flex-direction:column; justify-content:center; }
/* categories */
.onb-cats{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin-top:6px; }
.onb-cat{ display:flex; flex-direction:column; align-items:center; gap:5px; font-size:1.5rem; color:var(--text); }
.onb-cat img{ width:26px; height:26px; }
.onb-cat i{ font-size:.62rem; font-style:normal; letter-spacing:.5px; color:var(--text-mute); text-transform:uppercase; font-weight:800; }
/* legend */
.onb-legend{ display:flex; flex-direction:column; gap:9px; max-width:330px; margin:4px auto 0; text-align:left; }
.onb-leg{ display:flex; align-items:center; gap:11px; font-size:.86rem; color:var(--text-dim); }
.onb-sw{ width:24px; height:24px; border-radius:6px; flex:0 0 auto; box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); }
.onb-green{ background:linear-gradient(180deg,#59a85a,var(--green)); }
.onb-yellow{ background:linear-gradient(180deg,#d4b840,var(--yellow)); }
.onb-gray{ background:var(--red); }
/* modes */
.onb-modes{ display:flex; flex-direction:column; gap:10px; max-width:360px; margin:0 auto; text-align:left; }
.onb-mode{ display:flex; align-items:flex-start; gap:12px; background:var(--surf-card); border:1px solid var(--surf-line); border-radius:12px; padding:11px 13px; }
.onb-mi{ font-size:1.3rem; line-height:1.2; }
.onb-mode b{ display:block; color:var(--text); font-size:.92rem; }
.onb-mode span{ display:block; color:var(--text-dim); font-size:.8rem; line-height:1.4; }
/* nickname step */
.onb-name-row{ display:flex; align-items:center; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:6px; }
.onb-flag{ padding:9px 10px; font-size:15px; background:var(--surf-card); border:1px solid var(--line-2); border-radius:9px; color:var(--text); outline:none; max-width:150px; cursor:pointer; }
#onb-input{ padding:10px 12px; font-size:16px; background:var(--surf-card); border:1px solid var(--line-2); border-radius:9px; color:var(--text); outline:none; max-width:180px; }
#onb-input:focus, .onb-flag:focus{ border-color:var(--c-planes); box-shadow:0 0 0 3px rgba(79,140,255,.18); }
/* dots + nav */
.onb-dots{ display:flex; justify-content:center; gap:7px; margin:18px 0 14px; }
.onb-dot{ width:7px; height:7px; border-radius:50%; background:var(--line-2); transition:background .2s, width .2s; }
.onb-dot.on{ width:20px; border-radius:5px; background:var(--c-planes); }
.onb-nav{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.onb-back{ background:none; border:1px solid var(--line-2); color:var(--text-dim); border-radius:10px; padding:10px 18px; font-weight:800; font-size:.82rem; cursor:pointer; }
.onb-back:hover{ color:var(--text); }
.onb-next{ flex:1; background:var(--c-planes); color:#06121f; border:none; border-radius:10px; padding:11px 18px; font-weight:900; font-size:.9rem; cursor:pointer; letter-spacing:.5px; transition:filter .15s; }
.onb-next:hover{ filter:brightness(1.08); }
.onb-next.onb-play-btn{ background:linear-gradient(180deg,#59a85a,#43803f); color:#fff; }
@media (max-width:480px){ #onb{ padding:26px 18px 18px; } .onb-cats{ gap:10px; } }

/* ===================== HOMEPAGE — image-led category cards ===================== */
.page-index .daily-grid{ grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:18px; max-width:940px; margin:0 auto; }
.page-index .daily-card{ display:flex; flex-direction:column; padding:0; overflow:hidden; background:linear-gradient(180deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:18px; text-align:left; transition:transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, border-color .2s; }
.page-index .daily-card:hover{ transform:translateY(-6px); box-shadow:0 18px 44px rgba(0,0,0,.45); border-color:color-mix(in srgb,var(--accent) 55%,var(--line)); }
.page-index .daily-card::before{ display:none; }
.page-index .card-photo{ position:relative; display:block; height:165px; overflow:hidden; background:radial-gradient(120% 100% at 50% 0, color-mix(in srgb,var(--accent) 22%,var(--well)), var(--well)); border-bottom:3px solid var(--accent); }
.page-index .card-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .5s ease; }
.page-index .card-img.loaded{ opacity:1; }
.page-index .card-photo::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(5,8,16,.5)); pointer-events:none; }
.page-index .card-ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:3.4rem; color:color-mix(in srgb,var(--accent) 70%,#ffffff); filter:drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.page-index .card-ph img{ width:64px; height:64px; opacity:.92; }
.page-index .card-badge{ position:absolute; top:10px; right:10px; z-index:2; font-size:.56rem; font-weight:900; letter-spacing:1.5px; text-transform:uppercase; color:#fff; background:color-mix(in srgb,var(--accent) 82%,#000); padding:4px 9px; border-radius:999px; box-shadow:0 2px 8px rgba(0,0,0,.35); }
.page-index .card-body{ display:flex; flex-direction:column; gap:5px; padding:15px 16px 17px; }
.page-index .card-label{ font-size:1.12rem; font-weight:900; letter-spacing:.2px; color:var(--text) !important; margin:0 !important; line-height:1.2; }
.page-index .card-desc{ font-size:.82rem; color:var(--text-dim); margin-bottom:9px; min-height:34px; }
.page-index .card-btn{ display:block; text-align:center; background:var(--accent) !important; color:#07121f !important; border-radius:12px; font-weight:900; font-size:1rem; letter-spacing:.5px; padding:13px 16px; text-decoration:none; box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 32%,transparent); transition:filter .15s, transform .1s; }
.page-index .card-btn:hover{ filter:brightness(1.1); }
.page-index .card-btn:active{ transform:translateY(1px); }
.page-index .card-practice{ display:block; text-align:center; margin-top:9px; font-size:.8rem; font-weight:800; letter-spacing:.5px; color:var(--text-mute); text-decoration:none; transition:color .15s; }
.page-index .card-practice:hover{ color:var(--accent); }
@media (max-width:420px){ .page-index .daily-grid{ grid-template-columns:1fr; } }

/* ===================== HOMEPAGE — personal statistics ===================== */
.page-index .me-stats{ max-width:880px; margin:22px auto 0; background:linear-gradient(170deg,var(--surface-2),var(--surface)); border:1px solid var(--line); border-radius:var(--radius); padding:20px 18px; }
.page-index .me-title{ font-size:1.05rem; font-weight:900; letter-spacing:.5px; margin:0 0 14px; text-align:center; color:var(--text); }
.page-index .me-summary{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:16px; }
.page-index .me-cell{ text-align:center; background:var(--surf-card); border:1px solid var(--surf-line); border-radius:11px; padding:11px 6px; }
.page-index .me-num{ font-size:1.5rem; font-weight:900; color:var(--text); line-height:1.1; }
.page-index .me-lbl{ font-size:.58rem; letter-spacing:1px; text-transform:uppercase; color:var(--text-mute); margin-top:4px; font-weight:800; }
.page-index .me-cats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
.page-index .me-cat{ background:var(--surf-card); border:1px solid var(--surf-line); border-radius:12px; padding:12px 13px; position:relative; overflow:hidden; }
.page-index .me-cat::before{ content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--ac,var(--c-planes)); }
.page-index .me-cat[data-game="planes"]{ --ac:var(--c-planes); } .page-index .me-cat[data-game="helis"]{ --ac:var(--c-helis); }
.page-index .me-cat[data-game="tanks"]{ --ac:var(--c-tanks); } .page-index .me-cat[data-game="ships"]{ --ac:var(--c-ships); } .page-index .me-cat[data-game="subs"]{ --ac:var(--c-subs); }
.page-index .me-cat-head{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.page-index .me-ic{ font-size:1.15rem; width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; }
.page-index img.me-ic{ object-fit:contain; }
.page-index .me-cat-name{ font-weight:800; color:var(--text); font-size:.9rem; }
.page-index .me-cat-meta{ margin-left:auto; font-size:.72rem; color:var(--text-mute); font-weight:700; }
.page-index .me-dist{ display:flex; flex-direction:column; gap:4px; }
.page-index .me-dist-row{ display:flex; align-items:center; gap:7px; }
.page-index .me-dist-n{ font-size:.72rem; color:var(--text-mute); width:10px; text-align:center; font-weight:800; }
.page-index .me-bar-wrap{ flex:1; background:rgba(127,140,170,.14); border-radius:4px; height:16px; overflow:hidden; }
.page-index .me-bar{ height:100%; background:var(--ac,var(--c-planes)); border-radius:4px; min-width:6px; display:flex; align-items:center; justify-content:flex-end; padding-right:6px; font-size:.6rem; font-weight:800; color:#06121f; transition:width .5s ease; }
.page-index .me-empty{ text-align:center; color:var(--text-mute); font-size:.85rem; padding:10px 0 2px; }
@media (max-width:520px){ .page-index .me-summary{ grid-template-columns:repeat(2,1fr); } }

/* ── Country flags in clue cells + victory card · Wikipedia fun fact ── */
.page-game .cell.has-flag{ flex-direction:row; gap:5px; }
.page-game .cell .cell-flag{ width:17px; height:12px; object-fit:cover; border-radius:2px; box-shadow:0 0 0 1px rgba(0,0,0,.28); flex:0 0 auto; }
#modal-plane-meta .mc-flag{ width:20px; height:14px; vertical-align:-2px; margin-right:7px; }
.page-game .modal-fact{ margin-top:12px; font-size:.84rem; line-height:1.5; color:var(--text-dim); background:var(--surf-card); border:1px solid var(--surf-line); border-radius:10px; padding:11px 13px; text-align:left; }
.page-game .modal-fact:empty{ display:none; }
.page-game .modal-fact .mf-label{ color:var(--text); font-weight:800; }
@media (max-width:480px){ .page-game .cell .cell-flag{ width:15px; height:11px; } }

/* ===================== HOMEPAGE HERO — robust, no-overlap rebuild ===================== */
.page-index .hero-img-wrap{ position:relative; width:100%; height:56vh; min-height:380px; max-height:600px; overflow:hidden; line-height:0; margin-top:0; }
.page-index .hero-img-wrap img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.page-index .hero-text{ position:absolute; left:0; right:0; bottom:12%; top:auto; z-index:2; display:flex; flex-direction:column; align-items:center; gap:8px; padding:0 16px; text-align:center; line-height:1; }
.page-index .hero-title{ text-shadow:0 4px 30px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5); }
.page-index .hero-sub{ text-shadow:0 2px 12px rgba(0,0,0,.6); }
/* content flows normally below the photo (tiny tuck under the bottom gradient) */
.page-index main{ position:relative; z-index:3; max-width:940px; margin:0 auto; padding:20px 16px 60px; }
.page-index .section-title{ margin-top:4px; }
.page-index .daily-grid{ grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:18px; max-width:940px; margin:0 auto 22px; }
.page-index .index-rank-cta{ margin:0 0 22px; }
@media (min-width:1024px){ .page-index main{ margin:0 auto; max-width:940px; } }
@media (max-width:600px){ .page-index .hero-img-wrap{ height:44vh; min-height:300px; } }

/* ===================== RANKING PAGE — design polish ===================== */
.page-ranking header{ margin-bottom:18px; }
.page-ranking header h1{ display:inline-flex; align-items:center; gap:10px; }
/* consistent vertical rhythm for the control stack (nickname → mode → tabs → head) */
.page-ranking .rank-name{ margin:0 auto 14px; }
.page-ranking .rank-mode{ margin:0 auto 12px; }
.page-ranking #rank-tabs{ margin:0 auto 10px; }
/* player rows: hover lift + clearer top-3 */
.rk-row{ transition:transform .15s ease, border-color .18s, box-shadow .18s; }
.rk-row:hover{ transform:translateY(-2px); border-color:var(--line-2); box-shadow:0 8px 22px rgba(0,0,0,.26); }
.rk-row.top{ background:linear-gradient(170deg, color-mix(in srgb,#e0b020 12%, var(--surface-2)), var(--surface)); }
.rk-row.top .rk-score{ color:#e8b21e; }
/* clearer section separation for countries + per-vehicle stats */
.rank-countries{ border-top:1px solid var(--line); padding-top:22px; margin-top:26px; }
.rank-stats{ border-top:1px solid var(--line); padding-top:22px; margin-top:26px; }
.rank-ctry-head h2, .rank-stats-head h2{ font-weight:900; }
