/* =====================================================================================
   Tema "Al calor de la hoguera" (sólo Tibia Survivor)
   Noche al raso: cielo azul noche con estrellas, madera para los botones y paneles,
   crema y brasas para el texto y los acentos. Todo va bajo body:not(.game-tactics) para no
   tocar las pantallas de Tibia Fight Tactics, y sólo dentro de #screen, #modal y #toasts para
   no tocar el HUD de la partida (css/hud-styles.css) ni el canvas de Phaser.
   ===================================================================================== */

body:not(.game-tactics) :is(#screen, #modal, #toasts) {
  /* Paleta de la hoguera */
  --hg-night-1: #0b1224;
  --hg-night-2: #141b35;
  --hg-night-3: #1d1a26;
  --hg-earth: #2a1c14;
  --hg-ember: #ff7a1a;
  --hg-flame: #ffd36b;
  --hg-bark: #5b351d;
  --hg-bark-2: #7a4b2a;
  --hg-bark-dark: #2e190c;
  --hg-bark-edge: #24130a;
  --hg-rope: #a07c52;
  --hg-cream: #f6e7cc;
  --hg-cream-2: #ffe6bf;
  --hg-ash: #b9ab98;
  --hg-ink: #2a0e03;
  --hg-glass: rgba(20, 14, 12, 0.62);
  --hg-glass-line: rgba(255, 190, 110, 0.28);
  --hg-head: 'Grenze Gotisch', 'Georgia', 'Times New Roman', serif;
  --hg-text: 'Alegreya Sans', 'Trebuchet MS', system-ui, sans-serif;
  --hg-wood: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 7px, rgba(0, 0, 0, 0.12) 7px 9px), linear-gradient(var(--hg-bark-2), var(--hg-bark));
  --hg-panel-bg: linear-gradient(180deg, rgba(48, 30, 20, 0.92), rgba(30, 20, 15, 0.94));

  /* Variables del juego (base.css) con los colores de la hoguera */
  --bg: #0e1120;
  --bg-2: rgba(16, 12, 12, 0.72);
  --panel: rgba(40, 26, 18, 0.9);
  --panel-2: rgba(66, 42, 26, 0.92);
  --panel-border: #5a3a22;
  --panel-border-light: #9a7046;
  --text: var(--hg-cream);
  --muted: var(--hg-ash);
  --gold: var(--hg-flame);
  --gold-dark: #c0701c;
  --accent: var(--hg-ember);
  --font: var(--hg-text);
  --radius: 0.65rem;
  --shadow: 0 4px 0 var(--hg-bark-edge);

  font-family: var(--hg-text);
  letter-spacing: 0.01em;
  color: var(--hg-cream);
}

/* ---------- Fondo de las pantallas: noche cálida (el menú lleva su propio decorado) ---------- */
body:not(.game-tactics) #screen {
  background:
    radial-gradient(ellipse 70% 45% at 50% 108%, rgba(255, 122, 26, 0.26), rgba(255, 110, 30, 0.08) 55%, transparent 75%),
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 31% 8%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 47% 22%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 63% 12%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 27%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 89% 9%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 5% 41%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 95% 44%, rgba(255, 255, 255, 0.45), transparent 60%),
    linear-gradient(var(--hg-night-1) 0%, var(--hg-night-2) 40%, var(--hg-night-3) 72%, var(--hg-earth) 100%) fixed,
    var(--hg-night-1);
  scrollbar-color: var(--hg-bark-2) rgba(0, 0, 0, 0.3);
}
body:not(.game-tactics) #screen:has(.hg-menu) {
  background: linear-gradient(var(--hg-night-1) 0%, var(--hg-night-2) 42%, var(--hg-night-3) 70%, var(--hg-earth) 100%) fixed, var(--hg-night-1);
}

/* ---------- Tipografía ---------- */
body:not(.game-tactics) :is(#screen, #modal) :is(h1, h2, h3):not(.logo) {
  font-family: var(--hg-head);
  font-weight: 600;
  letter-spacing: 0.01em;
}
body:not(.game-tactics) #screen .screen-head h2 {
  font-size: 2.6rem;
  line-height: 1;
  color: #ffdca4;
  text-shadow: 3px 0 18px rgba(255, 120, 30, 0.45), 0 3px 0 #3b1a0a;
}
body:not(.game-tactics) #modal .modal-box h2 {
  font-size: 2rem;
  color: #ffdca4;
  text-shadow: 2px 0 14px rgba(255, 120, 30, 0.45), 0 2px 0 #3b1a0a;
}
body:not(.game-tactics) :is(#screen, #modal) h3 { color: var(--hg-cream-2); }
body:not(.game-tactics) :is(#screen, #modal) .muted { color: var(--hg-ash); }
body:not(.game-tactics) :is(#screen, #modal) a { color: var(--hg-flame); }

/* ---------- Botones: madera; el principal, brasa ---------- */
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn {
  font-family: var(--hg-head);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--hg-cream-2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
  background: var(--hg-wood);
  border: 2px solid var(--hg-bark-dark);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--hg-bark-edge), inset 0 1px 0 rgba(255, 220, 170, 0.22);
  padding-inline: 1.1rem;
}
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn:hover { filter: brightness(1.16); }
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hg-bark-edge); }
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn:disabled,
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn[aria-disabled="true"] { filter: grayscale(0.6) brightness(0.8); cursor: not-allowed; }
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn-small { font-size: 0.98rem; min-height: 2.25rem; padding-inline: 0.85rem; box-shadow: 0 3px 0 var(--hg-bark-edge), inset 0 1px 0 rgba(255, 220, 170, 0.2); }
body:not(.game-tactics) :is(#screen, #modal) .btn-big { font-size: 1.35rem; }
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn-primary {
  color: #fff4dc;
  text-shadow: 0 1px 0 #5a1a06, 0 0 10px rgba(90, 20, 0, 0.5);
  background: radial-gradient(ellipse at 50% 120%, #ffe17a 0, #ff8a22 40%, #b8370e 78%, #6a1f0a 100%);
  border-color: #2a0f07;
  box-shadow: 0 4px 0 #3a1206, 0 0 18px rgba(255, 120, 30, 0.35), inset 0 2px 0 rgba(255, 240, 200, 0.45);
}
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn-primary:hover { filter: brightness(1.1); box-shadow: 0 4px 0 #3a1206, 0 0 28px rgba(255, 140, 40, 0.6), inset 0 2px 0 rgba(255, 240, 200, 0.5); }
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn-danger {
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 7px, rgba(0, 0, 0, 0.12) 7px 9px), linear-gradient(#8e2f22, #5e1c14);
  border-color: #2a0b07;
  color: #ffe1d6;
}
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn-sc {
  background: linear-gradient(#5b2d86, #3b1c59);
  border-color: #1f0e30;
  color: #f0dcff;
  box-shadow: 0 4px 0 #1a0b29, inset 0 1px 0 rgba(230, 200, 255, 0.25);
}
body:not(.game-tactics) :is(#screen, #modal, #toasts) .btn-icon { padding: 0; }

/* Foco visible y cálido en todo lo que se puede pulsar */
body:not(.game-tactics) :is(#screen, #modal, #toasts) :is(button, a, input, select, textarea, [tabindex], .card, .slot):focus-visible {
  outline: 3px solid var(--hg-flame);
  outline-offset: 3px;
}

/* ---------- Insignias ---------- */
body:not(.game-tactics) :is(#screen, #modal) .badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.4em;
  font-family: var(--hg-text);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--hg-ink);
  background: var(--hg-ember);
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 0 0 2px rgba(42, 14, 3, 0.55);
}

/* ---------- Cabecera de las pantallas ---------- */
body:not(.game-tactics) #screen .screen { position: relative; }
body:not(.game-tactics) #screen .screen-head {
  padding-bottom: 0.65rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--hg-rope) 12%, var(--hg-rope) 88%, transparent) 1;
}

/* ---------- Paneles y tarjetas ---------- */
body:not(.game-tactics) :is(#screen, #modal) :is(
  .voc-picker, .upgrade-card, .inventory-wrap, .depot, .zone-card, .outfit-card, .dungeon-card, .arena-card,
  .mode-card, .shop-row, .forge-panel, .forge-item, .market-row, .market-sell, .mon-detail, .wiki-section, .addon-row
) {
  border-color: var(--panel-border);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 220, 170, 0.08);
}
body:not(.game-tactics) :is(#screen, #modal) :is(.voc-picker, .inventory-wrap, .depot, .forge-panel, .market-sell, .mon-detail) {
  background: var(--hg-panel-bg);
}
body:not(.game-tactics) :is(#screen, #modal) :is(.upgrade-card, .zone-card, .outfit-card, .dungeon-card, .arena-card, .mode-card, .shop-row, .forge-item, .market-row, .addon-row):hover {
  border-color: var(--panel-border-light);
}
body:not(.game-tactics) :is(#screen, #modal) :is(.mode-card, .outfit-card).is-selected,
body:not(.game-tactics) :is(#screen, #modal) .mode-card:hover {
  border-color: var(--hg-flame);
  box-shadow: 0 0 0 1px rgba(255, 211, 107, 0.35), 0 0 22px rgba(255, 140, 40, 0.3);
}
body:not(.game-tactics) :is(#screen, #modal) .mode-card h3 { color: var(--hg-flame); }

/* ---------- Pestañas y chips ---------- */
body:not(.game-tactics) :is(#screen, #modal) .tab {
  font-family: var(--hg-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--hg-cream-2);
  background: rgba(30, 20, 14, 0.75);
  border: 2px solid var(--panel-border);
  border-radius: 999px;
  padding-inline: 0.95rem;
}
body:not(.game-tactics) :is(#screen, #modal) .tab:hover { border-color: var(--panel-border-light); }
body:not(.game-tactics) :is(#screen, #modal) .tab.is-active {
  color: var(--hg-flame);
  background: var(--hg-wood);
  border-color: var(--hg-flame);
  box-shadow: 0 0 14px rgba(255, 140, 40, 0.3);
}
body:not(.game-tactics) :is(#screen, #modal) .tabs-small .tab { font-size: 0.92rem; }
body:not(.game-tactics) :is(#screen, #modal) .chip { background: rgba(30, 20, 14, 0.75); border-color: var(--panel-border); border-radius: 999px; }
body:not(.game-tactics) :is(#screen, #modal) .chip.is-active { color: var(--hg-flame); border-color: var(--hg-flame); background: rgba(80, 48, 26, 0.85); }

/* ---------- Campos de texto ---------- */
body:not(.game-tactics) :is(#screen, #modal) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  font-family: var(--hg-text);
  color: var(--hg-cream);
  background: rgba(12, 9, 10, 0.72);
  border: 2px solid var(--panel-border);
  border-radius: 0.55rem;
}
body:not(.game-tactics) :is(#screen, #modal) :is(input, select, textarea):focus { border-color: var(--hg-flame); }
body:not(.game-tactics) :is(#screen, #modal) :is(input, textarea)::placeholder { color: rgba(185, 171, 152, 0.7); }
body:not(.game-tactics) :is(#screen, #modal) :is(input[type="checkbox"], input[type="radio"], input[type="range"]) { accent-color: var(--hg-ember); }

/* ---------- Modales y ventanitas: tablón de madera oscuro ---------- */
body:not(.game-tactics) #modal .modal {
  background: radial-gradient(ellipse at 50% 110%, rgba(255, 110, 30, 0.16), transparent 60%), rgba(6, 8, 18, 0.78);
}
body:not(.game-tactics) #modal .modal-box {
  position: relative;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 170, 80, 0.1), transparent 70%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 22px, rgba(0, 0, 0, 0.1) 22px 24px),
    linear-gradient(180deg, #3b2617, #24170f 70%, #1d130d);
  border: 2px solid var(--hg-bark-dark);
  border-radius: 1rem;
  box-shadow: 0 0 0 2px rgba(160, 124, 82, 0.35), 0 18px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 220, 170, 0.15);
}

/* ---------- Avisos ---------- */
body:not(.game-tactics) #toasts .toast {
  color: var(--hg-cream);
  background: rgba(24, 16, 12, 0.94);
  border: 2px solid var(--hg-bark-2);
  border-radius: 999px;
  padding-inline: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 120, 30, 0.18);
}
body:not(.game-tactics) #toasts .toast-good { border-color: #6fbf5a; }
body:not(.game-tactics) #toasts .toast-bad { border-color: #d9583f; }
body:not(.game-tactics) #toasts .toast-boss { border-color: #c77dff; }

/* ---------- Barra de cuenta (todas las pantallas) ---------- */
body:not(.game-tactics) #screen :is(.account-chip, .premium-badge, .ticket-badge, .gold-badge, .sc-badge, .coin-badge) {
  min-height: 2.15rem;
  color: var(--hg-cream);
  background: var(--hg-glass);
  border: 1px solid var(--hg-glass-line);
  border-radius: 999px;
  box-shadow: none;
  text-shadow: none;
  font-family: var(--hg-text);
  font-size: 0.95rem;
}
body:not(.game-tactics) #screen .account-chip .btn {
  min-height: 1.6rem;
  padding: 0 0.6rem;
  font-family: var(--hg-text);
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  box-shadow: none;
  color: var(--hg-cream);
}
body:not(.game-tactics) #screen .account-chip .btn:hover { background: rgba(255, 180, 90, 0.25); }
body:not(.game-tactics) #screen .premium-badge { padding-inline: 0.9rem; font-weight: 800; color: var(--hg-ash); }
body:not(.game-tactics) #screen .premium-badge.is-premium { color: var(--hg-flame); }
body:not(.game-tactics) #screen .premium-badge:hover { background: rgba(255, 180, 90, 0.2); filter: none; }
body:not(.game-tactics) #screen .ticket-badge { padding: 0 0.25rem 0 0.55rem; gap: 0.3rem; }
body:not(.game-tactics) #screen .ticket-badge b { font-weight: 800; }
body:not(.game-tactics) #screen .badge-plus {
  width: 1.45rem;
  height: 1.45rem;
  margin-left: 0.15rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 160, 70, 0.2);
  color: var(--hg-flame);
  font-family: var(--hg-text);
  font-weight: 800;
}
body:not(.game-tactics) #screen .badge-plus:hover { background: var(--hg-ember); color: var(--hg-ink); }

/* =====================================================================================
   Menú principal: la hoguera
   ===================================================================================== */

/* Decorado fijo detrás del menú */
body:not(.game-tactics) .hg-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
body:not(.game-tactics) .hg-stars { position: absolute; left: 0; top: 0; width: 100%; height: 72%; }
body:not(.game-tactics) .hg-twinkle { animation: hg-twinkle 3.2s ease-in-out infinite alternate; }
@keyframes hg-twinkle { from { opacity: 0.35; } to { opacity: 1; } }
body:not(.game-tactics) .hg-moon {
  position: absolute; left: 46%; top: 10.5%;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  box-shadow: -0.75rem 0.5rem 0 0 #e9e2c8;
  opacity: 0.75;
  filter: drop-shadow(0 0 12px rgba(233, 226, 200, 0.35));
}
body:not(.game-tactics) .hg-trees { position: absolute; bottom: 6vh; width: clamp(16rem, 33vw, 30rem); line-height: 0; fill: #080d1a; opacity: 0.95; }
body:not(.game-tactics) .hg-trees svg { width: 100%; height: auto; display: block; }
body:not(.game-tactics) .hg-trees.is-left { left: -4rem; }
body:not(.game-tactics) .hg-trees.is-right { right: -5rem; transform: scaleX(-1); }
body:not(.game-tactics) .hg-ground {
  position: absolute; left: -10%; right: -10%; bottom: -16vh; height: 32vh; border-radius: 50%;
  background: radial-gradient(ellipse at 52% 30%, #3a2516, #1b120c 60%);
}

/* Rejilla del menú */
body:not(.game-tactics) .hg-menu {
  position: relative;
  z-index: 1;
  max-width: 84rem;
  min-height: 100%;
  padding: 0.6rem 1.8rem 1rem;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(19rem, 0.95fr) minmax(15rem, 1fr) minmax(17rem, 1.05fr);
  grid-template-areas:
    "head  head  head"
    "ev    ev    ev"
    "signs signs signs"
    "hero  camp  logs";
  grid-template-rows: auto auto auto 1fr;
  gap: 0.5rem 1.6rem;
  align-items: start;
}
body:not(.game-tactics) .hg-menu > .hg-head { grid-area: head; }
body:not(.game-tactics) .hg-menu > .event-bar { grid-area: ev; margin: 0; }
body:not(.game-tactics) .hg-menu > .hg-signs { grid-area: signs; }
body:not(.game-tactics) .hg-menu > .hg-hero { grid-area: hero; }
body:not(.game-tactics) .hg-menu > .hg-camp { grid-area: camp; }
body:not(.game-tactics) .hg-menu > .hg-logs { grid-area: logs; }

/* Cabecera: logo + cambio de juego a la izquierda, cuenta a la derecha */
body:not(.game-tactics) .hg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: nowrap; }
body:not(.game-tactics) .hg-brand { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
body:not(.game-tactics) .hg-menu .logo.logo-img { width: auto; }
body:not(.game-tactics) .hg-menu .logo.logo-img img { height: 7rem; filter: drop-shadow(0 0 18px rgba(255, 140, 40, 0.25)) drop-shadow(0 0.3rem 0.4rem rgba(0, 0, 0, 0.6)); }
body:not(.game-tactics) .hg-menu .logo-switch { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 1rem; }
body:not(.game-tactics) .hg-switch {
  padding: 0.25rem 0.75rem;
  font-family: var(--hg-text);
  font-size: 0.85rem;
  color: var(--hg-ash);
  background: rgba(10, 12, 26, 0.5);
  border: 1px solid rgba(246, 231, 204, 0.25);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
body:not(.game-tactics) .hg-switch:hover { color: var(--hg-cream); border-color: var(--hg-flame); }
body:not(.game-tactics) .hg-head .account-bar { padding-top: 0.6rem; justify-content: flex-end; gap: 0.4rem; row-gap: 0.4rem; min-width: 0; }
body:not(.game-tactics) .hg-head .ticket-bar { gap: 0.4rem; }

/* Secciones: carteles de madera colgados de una cuerda */
body:not(.game-tactics) .hg-signs {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 0.6rem;
  margin: -3.4rem 0 0 13rem;
  padding-top: 1.4rem;
  min-height: 5.6rem;
}
body:not(.game-tactics) .hg-signs::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 920 60' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q460 70 920 6' fill='none' stroke='%23a07c52' stroke-width='3'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
body:not(.game-tactics) .hg-sign {
  --d: 0.6rem; --r: -2deg;
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  margin-top: var(--d);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-family: var(--hg-head);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--hg-cream-2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  background: var(--hg-wood);
  border: 2px solid var(--hg-bark-dark);
  border-radius: 0.4rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 220, 170, 0.25);
  transform: rotate(var(--r));
  transform-origin: 50% -1.4rem;
  transition: transform 0.25s, box-shadow 0.2s;
  cursor: pointer;
}
body:not(.game-tactics) .hg-sign::before {
  content: "";
  position: absolute; left: 50%; top: calc(-1 * (var(--d) + 1rem)); width: 2px; height: calc(var(--d) + 1rem);
  background: var(--hg-rope);
}
body:not(.game-tactics) .hg-sign:nth-child(1) { --d: 1rem; --r: -3deg; }
body:not(.game-tactics) .hg-sign:nth-child(2) { --d: 1.8rem; --r: 2deg; }
body:not(.game-tactics) .hg-sign:nth-child(3) { --d: 2.2rem; --r: -1.5deg; }
body:not(.game-tactics) .hg-sign:nth-child(4) { --d: 1.8rem; --r: 2.5deg; }
body:not(.game-tactics) .hg-sign:nth-child(5) { --d: 1rem; --r: -2deg; }
body:not(.game-tactics) .hg-sign:hover { transform: rotate(0); box-shadow: 0 0 0 2px #ffb45a, 0 10px 22px rgba(255, 140, 40, 0.35); }
body:not(.game-tactics) .hg-sign:active { transform: rotate(0) translateY(3px); }
body:not(.game-tactics) .hg-sign img { width: 1.7rem; height: 1.7rem; image-rendering: pixelated; filter: drop-shadow(0 1px 1px #000); }
body:not(.game-tactics) .hg-sign i { font-style: normal; font-size: 0.9em; }
body:not(.game-tactics) .hg-sign span { overflow: hidden; text-overflow: ellipsis; }
body:not(.game-tactics) .hg-sign .badge { position: absolute; right: -0.55rem; top: -0.6rem; }

/* Personaje junto al fuego */
body:not(.game-tactics) .hg-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding-top: 0.6rem; }
body:not(.game-tactics) .hg-hero-top { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.15rem 0.8rem; width: 100%; }
body:not(.game-tactics) .hg-name {
  width: 100%;
  text-align: center;
  font-family: var(--hg-head);
  font-weight: 800;
  font-size: 3.9rem;
  line-height: 0.95;
  color: #ffdca4;
  text-shadow: 4px 0 22px rgba(255, 120, 30, 0.6), 0 3px 0 #3b1a0a;
  overflow-wrap: anywhere;
}
body:not(.game-tactics) .hg-power { display: inline-flex; align-items: baseline; gap: 0.35rem; color: var(--hg-ash); font-size: 1.05rem; }
body:not(.game-tactics) .hg-power img { width: 1.5rem; height: 1.5rem; align-self: center; image-rendering: pixelated; filter: drop-shadow(0 1px 0 #000); }
body:not(.game-tactics) .hg-power b { font-size: 1.6rem; font-weight: 800; color: var(--hg-flame); line-height: 1; }
body:not(.game-tactics) .hg-rarity {
  font-size: 0.8rem; font-weight: 800;
  color: var(--hg-ink);
  background: color-mix(in srgb, var(--rar) 55%, var(--hg-flame));
  padding: 0.18rem 0.65rem;
  border-radius: 0.6rem;
  transform: rotate(4deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
/* Escenario: el personaje sobre el suelo iluminado por la hoguera (y su ficha por detrás) */
body:not(.game-tactics) .hg-menu .hg-card {
  position: relative;
  width: min(100%, 21rem);
  padding: 0;
  margin-top: 0.2rem;
  border-radius: 1rem;
  background: none;
  box-shadow: none;
  perspective: 1400px;
}
body:not(.game-tactics) .hg-face { border-radius: 1rem; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
body:not(.game-tactics) .hg-front { position: relative; height: 14.2rem; display: grid; place-items: end center; }
body:not(.game-tactics) .hg-front::before {
  content: "";
  display: none; /* sin sombra en el suelo: el personaje queda sobre el fondo pintado */
}
body:not(.game-tactics) .hg-sprite {
  position: relative;
  margin-bottom: 0.9rem;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: none;
  cursor: pointer;
  transition: transform 0.2s;
}
body:not(.game-tactics) .hg-sprite:hover { transform: translateY(-3px) scale(1.03); }
body:not(.game-tactics) .hg-sprite .voc-sprite {
  display: block;
  width: 11.8rem; height: 11.8rem;
  image-rendering: pixelated;
  filter: drop-shadow(10px 0 14px rgba(255, 120, 30, 0.45)) drop-shadow(0 6px 4px rgba(0, 0, 0, 0.45));
}
body:not(.game-tactics) .hg-level {
  position: absolute; left: 0.4rem; bottom: 0.4rem;
  font-weight: 800; font-size: 0.95rem;
  padding: 0.15rem 0.65rem;
  color: var(--hg-cream);
  background: rgba(20, 12, 8, 0.72);
  border: 1px solid rgba(255, 190, 110, 0.4);
  border-radius: 999px;
}
body:not(.game-tactics) .hg-menu .hg-swap {
  position: absolute; right: -0.4rem; top: 1.6rem; z-index: 2;
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  padding: 0;
  font-size: 1.35rem; line-height: 1;
  color: var(--hg-flame);
  background: rgba(20, 12, 8, 0.6);
  border: 2px solid var(--hg-flame);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
body:not(.game-tactics) .hg-menu .hg-swap:hover { background: var(--hg-flame); color: var(--hg-ink); }
body:not(.game-tactics) .hg-menu .hg-swap:active { transform: scale(0.94); }
body:not(.game-tactics) .hg-menu .tcard.is-flipped .hg-swap { opacity: 0; pointer-events: none; }
/* Detrás: la ficha con las estadísticas, en un tablón */
body:not(.game-tactics) .hg-back {
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 0.55rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 22px, rgba(0, 0, 0, 0.12) 22px 24px), linear-gradient(#4a2e1b, #2c1b10);
  border: 2px solid var(--hg-bark-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 220, 170, 0.18);
}
body:not(.game-tactics) .hg-stats { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.18rem 0.35rem; align-content: start; }
body:not(.game-tactics) .hg-stats li { display: flex; flex-direction: column; gap: 0; padding: 0.1rem 0.5rem 0.12rem; border-radius: 0.45rem; background: rgba(0, 0, 0, 0.28); line-height: 1.12; min-width: 0; }
body:not(.game-tactics) .hg-stats li span { color: var(--hg-ash); font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(.game-tactics) .hg-stats li b { color: var(--hg-cream); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(.game-tactics) .hg-back-btn {
  align-self: center;
  padding: 0.1rem 0.8rem;
  font-family: var(--hg-text); font-size: 0.8rem; font-weight: 700;
  color: var(--hg-flame);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 211, 107, 0.4);
  border-radius: 999px;
  cursor: pointer;
}
body:not(.game-tactics) .hg-back-btn:hover { background: rgba(255, 160, 70, 0.2); }
/* Equipo / Outfit / Mejoras */
body:not(.game-tactics) .hg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; width: auto; margin-top: 0.7rem; }
body:not(.game-tactics) .hg-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.95rem;
  font-family: var(--hg-text); font-weight: 800; font-size: 1.05rem;
  color: var(--hg-cream-2);
  background: linear-gradient(var(--hg-bark-2), var(--hg-bark));
  border: 2px solid var(--hg-bark-dark);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--hg-bark-edge);
  cursor: pointer;
}
body:not(.game-tactics) .hg-pill:hover { filter: brightness(1.18); }
body:not(.game-tactics) .hg-pill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hg-bark-edge); }

/* La hoguera y el botón de jugar */
body:not(.game-tactics) .hg-camp {
  position: relative;
  align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 0.6rem;
  container-type: inline-size;
}
body:not(.game-tactics) .hg-camp::before {
  content: "";
  position: absolute; left: 50%; top: 52%; z-index: -1;
  width: 46rem; height: 34rem; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse closest-side, rgba(255, 128, 32, 0.4), rgba(255, 110, 30, 0.12) 55%, transparent 100%);
  pointer-events: none;
  animation: hg-glow 2.4s ease-in-out infinite alternate;
}
@keyframes hg-glow { from { opacity: 0.85; } to { opacity: 1; } }
body:not(.game-tactics) .hg-fire { width: 12rem; height: auto; aspect-ratio: 1; margin-bottom: -1.2rem; filter: drop-shadow(0 0 30px rgba(255, 140, 40, 0.55)); overflow: visible; }
body:not(.game-tactics) .hg-flame { transform-origin: 120px 200px; animation: hg-flicker 1.6s ease-in-out infinite alternate; }
body:not(.game-tactics) .hg-flame-core { transform-origin: 120px 190px; animation: hg-flicker 1.1s ease-in-out infinite alternate-reverse; }
@keyframes hg-flicker {
  0% { transform: scale(1, 1); }
  50% { transform: scale(1.04, 0.95) skewX(-2deg); }
  100% { transform: scale(0.97, 1.05) skewX(2deg); }
}
/* Chispas que suben */
body:not(.game-tactics) .hg-embers { position: absolute; left: 50%; bottom: 9rem; width: 9rem; height: 14rem; transform: translateX(-50%); pointer-events: none; }
body:not(.game-tactics) .hg-embers i {
  position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%;
  background: #ffcf6b; box-shadow: 0 0 6px 2px rgba(255, 140, 40, 0.7);
  opacity: 0;
  animation: hg-ember 3.4s linear infinite;
}
body:not(.game-tactics) .hg-embers i:nth-child(1) { left: 42%; animation-delay: 0s; }
body:not(.game-tactics) .hg-embers i:nth-child(2) { left: 55%; animation-delay: 0.6s; animation-duration: 2.8s; }
body:not(.game-tactics) .hg-embers i:nth-child(3) { left: 35%; animation-delay: 1.3s; animation-duration: 3.8s; }
body:not(.game-tactics) .hg-embers i:nth-child(4) { left: 62%; animation-delay: 1.9s; }
body:not(.game-tactics) .hg-embers i:nth-child(5) { left: 48%; animation-delay: 2.4s; animation-duration: 3s; }
body:not(.game-tactics) .hg-embers i:nth-child(6) { left: 58%; animation-delay: 2.9s; animation-duration: 4s; }
@keyframes hg-ember {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  60% { transform: translate(-10px, -9rem) scale(0.8); opacity: 0.8; }
  100% { transform: translate(8px, -14rem) scale(0.4); opacity: 0; }
}
body:not(.game-tactics) .hg-play {
  position: relative;
  width: min(100%, 19.5rem);
  min-height: 8rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  background: radial-gradient(ellipse at 50% 115%, #ffe17a 0, #ff8a22 38%, #b8370e 72%, #57190a 100%);
  border: 3px solid #2a0f07;
  box-shadow: 0 0 0 6px rgba(255, 140, 40, 0.18), 0 0 50px rgba(255, 120, 30, 0.55), inset 0 2px 0 rgba(255, 240, 200, 0.5);
  transition: box-shadow 0.2s, transform 0.1s;
}
body:not(.game-tactics) .hg-play:hover { box-shadow: 0 0 0 10px rgba(255, 160, 60, 0.25), 0 0 80px rgba(255, 140, 40, 0.8), inset 0 2px 0 rgba(255, 240, 200, 0.6); }
body:not(.game-tactics) .hg-play:active { transform: scale(0.97); }
body:not(.game-tactics) .hg-play-t {
  font-family: var(--hg-head); font-weight: 800;
  font-size: clamp(1.7rem, 11.5cqi, 2.45rem); line-height: 1;
  white-space: nowrap;
  color: #fff4dc;
  text-shadow: 0 2px 0 #5a1a06, 0 0 14px rgba(90, 20, 0, 0.6);
}
body:not(.game-tactics) .hg-play-s { margin-top: 0.3rem; font-size: 0.95rem; color: #ffe9c2; text-shadow: 0 1px 0 #5a1a06; }

/* Modos: troncos apilados a la derecha */
body:not(.game-tactics) .hg-logs { display: flex; flex-direction: column; gap: 0.65rem; padding-top: 0.5rem; }
body:not(.game-tactics) .hg-log {
  position: relative;
  min-height: 4rem;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0 1.3rem 0 0.35rem;
  font-family: var(--hg-head); font-weight: 600;
  font-size: 1.75rem;
  color: var(--hg-cream-2);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
  text-align: left;
  background:
    radial-gradient(ellipse 1.6rem 50% at 100% 50%, #6e4128 0 92%, transparent 96%),
    repeating-linear-gradient(180deg, #6a4026 0 6px, #5a341e 6px 11px, #734628 11px 14px);
  border: 2px solid #2a160b;
  border-radius: 999px;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.35), 0 6px 10px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
body:not(.game-tactics) .hg-log:nth-child(2) { margin-left: 1.6rem; }
body:not(.game-tactics) .hg-log:nth-child(3) { margin-left: 0.4rem; }
body:not(.game-tactics) .hg-log:nth-child(4) { margin-left: 2rem; }
body:not(.game-tactics) .hg-log:nth-child(5) { margin-left: 0.8rem; }
body:not(.game-tactics) .hg-log:hover { transform: translateX(-8px); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.35), -8px 0 26px rgba(255, 140, 40, 0.45); }
body:not(.game-tactics) .hg-log:active { transform: translateX(-8px) translateY(3px); }
body:not(.game-tactics) .hg-ring {
  flex: none;
  width: 3.45rem; height: 3.45rem;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: 'DejaVu Sans', 'Segoe UI Symbol', sans-serif;
  font-size: 1.55rem;
  color: #5a2e12;
  text-shadow: 0 1px 0 rgba(255, 230, 190, 0.5);
  background: repeating-radial-gradient(circle, #e8c08a 0 5px, #c9935a 5px 7px);
  box-shadow: inset 0 0 0 3px #8a5a32;
}
body:not(.game-tactics) .hg-log-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:not(.game-tactics) .hg-log .badge { margin-left: auto; font-size: 0.85rem; min-width: 1.5rem; height: 1.5rem; }

/* Pantalla mediana: personaje y hoguera arriba, troncos debajo en dos columnas */
@media (max-width: 68rem) and (min-width: 46.01rem) {
  body:not(.game-tactics) .hg-menu {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "head head" "ev ev" "signs signs" "hero camp" "logs logs";
    grid-template-rows: auto;
  }
  body:not(.game-tactics) .hg-signs { margin: 0.2rem 0 0; }
  body:not(.game-tactics) .hg-sign { flex: 0 1 auto; font-size: 1.12rem; padding-inline: 0.7rem; gap: 0.3rem; }
  body:not(.game-tactics) .hg-sign img { width: 1.4rem; height: 1.4rem; }
  body:not(.game-tactics) .hg-logs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.2rem; }
  body:not(.game-tactics) .hg-log { margin-left: 0 !important; }
  body:not(.game-tactics) .hg-log:last-child { grid-column: 1 / -1; justify-self: center; width: min(100%, 24rem); }
}

/* Móvil: una sola columna (cuenta, personaje, hoguera con jugar, troncos y al final los carteles) */
@media (max-width: 46rem) {
  body:not(.game-tactics) #screen:has(.hg-menu) {
    background: linear-gradient(var(--hg-night-1) 0%, #151b33 40%, #24190f 100%) fixed, var(--hg-night-1);
  }
  body:not(.game-tactics) .hg-trees, body:not(.game-tactics) .hg-moon, body:not(.game-tactics) .hg-ground { display: none; }
  body:not(.game-tactics) .hg-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.9rem;
    padding: 1rem 0.9rem 1.6rem;
  }
  body:not(.game-tactics) .hg-head { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  body:not(.game-tactics) .hg-brand { flex-direction: row; gap: 0.8rem; }
  body:not(.game-tactics) .hg-menu .logo.logo-img img { height: 5.8rem; }
  body:not(.game-tactics) .hg-head .account-bar { padding-top: 0; justify-content: flex-start; gap: 0.35rem; }
  body:not(.game-tactics) .hg-head .ticket-bar { justify-content: flex-start; gap: 0.35rem; }
  body:not(.game-tactics) .hg-head :is(.account-chip, .premium-badge, .ticket-badge, .gold-badge, .sc-badge, .coin-badge) { min-height: 1.9rem; font-size: 0.85rem; }
  body:not(.game-tactics) .hg-menu > .hg-hero { order: 3; }
  body:not(.game-tactics) .hg-menu > .hg-camp { order: 4; }
  body:not(.game-tactics) .hg-menu > .hg-logs { order: 5; }
  body:not(.game-tactics) .hg-menu > .hg-signs { order: 6; }
  body:not(.game-tactics) .hg-name { font-size: 3.3rem; }
  body:not(.game-tactics) .hg-menu .hg-card { width: min(100%, 18rem); }
  body:not(.game-tactics) .hg-front { height: 15.5rem; }
  body:not(.game-tactics) .hg-sprite .voc-sprite { width: 11rem; height: 11rem; }
  body:not(.game-tactics) .hg-menu .hg-swap { right: 0; top: 0.4rem; }
  body:not(.game-tactics) .hg-camp { padding-bottom: 0; }
  body:not(.game-tactics) .hg-camp::before { width: 26rem; height: 20rem; top: 40%; }
  body:not(.game-tactics) .hg-fire { width: 9.5rem; margin-bottom: -3.2rem; }
  body:not(.game-tactics) .hg-embers { bottom: 6rem; height: 9rem; }
  body:not(.game-tactics) .hg-play { width: 100%; min-height: 7rem; }
  body:not(.game-tactics) .hg-play-t { font-size: 2.2rem; }
  body:not(.game-tactics) .hg-camp { container-type: normal; }
  body:not(.game-tactics) .hg-logs { padding-top: 0; gap: 0.7rem; }
  body:not(.game-tactics) .hg-log { margin-left: 0 !important; min-height: 4rem; font-size: 1.55rem; }
  body:not(.game-tactics) .hg-ring { width: 3.3rem; height: 3.3rem; font-size: 1.3rem; }
  body:not(.game-tactics) .hg-signs { margin: 0.4rem 0 0; padding-top: 0.4rem; min-height: 0; flex-wrap: wrap; justify-content: center; gap: 0.8rem 0.6rem; }
  body:not(.game-tactics) .hg-signs::before, body:not(.game-tactics) .hg-sign::before { display: none; }
  body:not(.game-tactics) .hg-sign { flex: 0 0 auto; margin: 0; padding: 0.5rem 0.9rem; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.game-tactics) :is(.hg-flame, .hg-flame-core, .hg-twinkle) { animation: none !important; }
  body:not(.game-tactics) .hg-camp::before { animation: none !important; }
  body:not(.game-tactics) .hg-embers { display: none; }
  body:not(.game-tactics) :is(.hg-sign, .hg-log, .hg-play, .hg-sprite) { transition: none; }
}

/* ---------- Detalles de pantallas concretas ---------- */
body:not(.game-tactics) :is(#screen, #modal) :is(h2, h3) small { font-family: var(--hg-text); font-weight: 400; letter-spacing: 0; }
body:not(.game-tactics) :is(#screen, #modal) .pips i { background: rgba(255, 220, 170, 0.14); }
body:not(.game-tactics) :is(#screen, #modal) .pips i.on { background: var(--hg-flame); box-shadow: 0 0 4px rgba(255, 160, 60, 0.6); }
body:not(.game-tactics) :is(#screen, #modal) .acc-panel { border-radius: 0.8rem; box-shadow: 0 0 0 2px var(--hg-bark-dark), 0 8px 18px rgba(0, 0, 0, 0.45); }
body:not(.game-tactics) :is(#screen, #modal) .acc-tab,
body:not(.game-tactics) :is(#screen, #modal) .acc-caption b { font-family: var(--hg-head); font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 46rem) {
  body:not(.game-tactics) :is(#screen, #modal) .tab { font-size: 0.95rem; padding-inline: 0.75rem; }
  body:not(.game-tactics) #screen .screen-head h2 { font-size: 2rem; }
}

/* ---------- Fondo pintado (noche con hoguera, castillos y río) ---------- */
/* Menú: la imagen tal cual (ya trae cielo, luna y árboles: el decorado dibujado se oculta).
   Resto de pantallas: la misma imagen, oscurecida para que se lean bien los paneles. */
body:not(.game-tactics) #screen {
  background: linear-gradient(rgba(8, 10, 22, 0.72), rgba(10, 8, 6, 0.82)), url('../assets/ui/bg_survivor.webp') center bottom / cover no-repeat fixed, var(--hg-night-1);
}
/* En el menú la imagen se coloca para que su hoguera (39% de ancho, 86% de alto de la imagen) quede justo encima
   del botón "Jugar survival" (centrado al 48,7% del ancho y con su borde de arriba hacia el 78% del alto).
   Si por abajo sobra pantalla, se funde con el color de la hierba. */
body:not(.game-tactics) #screen:has(.hg-menu) {
  --bgH: max(100vh, 57.6vw);               /* alto de la imagen (proporción 1848×851); 57,6vw = ancho justo para llevar la hoguera al centro */
  background:
    linear-gradient(rgba(6, 8, 20, 0.3), rgba(6, 8, 20, 0) 30%, rgba(12, 18, 7, 0) 80%, #0c1207 calc(74vh + var(--bgH) * 0.14 - 2px)) fixed,
    url('../assets/ui/bg_survivor.webp') calc(48.7vw - var(--bgH) * 0.8469) calc(74vh - var(--bgH) * 0.86) / auto var(--bgH) no-repeat fixed,
    #0c1207;
  image-rendering: pixelated;
}
@media (max-width: 46rem) {
  body:not(.game-tactics) #screen:has(.hg-menu) {
    background: linear-gradient(rgba(6, 8, 20, 0.35), rgba(6, 8, 20, 0) 30%, rgba(10, 6, 4, 0) 70%, rgba(10, 6, 4, 0.35)), url('../assets/ui/bg_survivor.webp') 38% bottom / cover no-repeat fixed, var(--hg-night-1);
  }
}
body:not(.game-tactics) .hg-scene { display: none; }
body:not(.game-tactics) #screen .hg-fire, body:not(.game-tactics) #screen .hg-sparks { visibility: hidden !important; } /* la hoguera ya está pintada en el fondo */

/* ======================================================================================================
   Menú del campamento (campMenu.js): el dibujo entero es el menú y cada cosa dibujada es un botón.
   ====================================================================================================== */
body:not(.game-tactics) #screen:has(.camp-menu) { background: linear-gradient(#000514, #00133d); overflow: hidden; }
body:not(.game-tactics) .camp-menu { position: relative; max-width: none; width: 100%; height: 100%; margin: 0; padding: 0; zoom: 1; display: block; }
.camp-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.camp-head { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 0.8rem 1.2rem; pointer-events: none; zoom: var(--ui-scale, 1); }
.camp-head > * { pointer-events: auto; }
.camp-brand { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
body:not(.game-tactics) .camp-brand .logo.logo-img img { height: 6.2rem; filter: drop-shadow(0 0.3rem 0.5rem rgba(0, 0, 0, 0.7)); }
body:not(.game-tactics) .camp-brand .logo-switch { padding: 0; border: 0; background: none; cursor: pointer; }
.camp-events { position: absolute; z-index: 2; top: 0.9rem; left: 50%; transform: translateX(-50%); margin: 0; zoom: var(--ui-scale, 1); }
.camp-extra { position: absolute; z-index: 2; right: 1.2rem; bottom: 2.9rem; display: flex; gap: 0.5rem; zoom: var(--ui-scale, 1); }
body:not(.game-tactics) .camp-extra .hg-sign { transform: none; margin: 0; }
.camp-hint { position: absolute; z-index: 2; right: 1.2rem; bottom: 0.9rem; margin: 0; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.8rem;
  color: #f6e7cc; background: rgba(14, 10, 8, 0.6); pointer-events: none; zoom: var(--ui-scale, 1); }

/* Cada cosa: brillo blanco suave siempre; al pasar el ratón (o con el foco) se acerca, brilla del todo y sale su nombre */
.camp-hs { cursor: pointer; outline: none; transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.camp-glow { fill: none; stroke: #fff; stroke-width: 6; stroke-linejoin: round; opacity: 0.35; filter: url(#camp-blur); animation: camp-pulse 2.6s ease-in-out infinite; }
.camp-edge { fill: transparent; stroke: rgba(255, 255, 255, 0.8); stroke-width: 1.5; stroke-linejoin: round; }
.camp-hs:hover, .camp-hs:focus-visible { transform: scale(1.14); }
.camp-hs:hover .camp-glow, .camp-hs:focus-visible .camp-glow { opacity: 1; stroke-width: 12; animation: none; }
.camp-hs:hover .camp-edge, .camp-hs:focus-visible .camp-edge { stroke: #fff; stroke-width: 3; }
.camp-hs:active { transform: scale(1.08); }
@keyframes camp-pulse { 50% { opacity: 0.7; } }
.camp-badge circle { fill: #ff7a1a; stroke: #2a0e03; stroke-width: 3; }
.camp-badge text { font: 800 20px 'Alegreya Sans', sans-serif; fill: #2a0e03; }

.camp-lbl { opacity: 0; transition: opacity 0.2s; pointer-events: none; paint-order: stroke; stroke-linejoin: round; }
.camp-lbl.is-mob { display: none; }
.camp-hs:hover .camp-lbl.is-desk, .camp-hs:focus-visible .camp-lbl.is-desk { opacity: 1; }
.camp-lbl .t { font-size: 40px; stroke: #0b0805; stroke-width: 7px; }
.camp-lbl .s { font-family: 'Alegreya Sans', sans-serif; font-size: 17px; font-weight: 700; fill: #f6e7cc; stroke: #0b0805; stroke-width: 5px; }
.camp-lbl.is-fire .t { fill: url(#camp-fire); font-weight: 900; font-size: 48px; }
.camp-lbl.is-dark .t { fill: #d8c7ff; font-size: 46px; }
.camp-lbl.is-sea .t { fill: #bfe6ff; }
.camp-lbl.is-stone .t { fill: #e2ddd2; }
.camp-lbl.is-gold .t { fill: url(#camp-gold); font-weight: 900; }
.camp-lbl.is-big .t { font-size: 44px; }
.camp-lbl.is-arena .t { fill: #ffb08a; font-weight: 900; }
.camp-lbl.is-village .t { fill: #ffb08a; }
.camp-lbl.is-banner .t { fill: #ff7a6a; font-size: 34px; }
.camp-lbl.is-leather .t { fill: #e6b77a; font-weight: 800; }
.camp-lbl.is-steel .t { fill: #dfe7f0; }
.camp-lbl.is-wood .t { fill: #e8c48e; }

/* Móvil y pantallas táctiles: nombres siempre puestos (sin la frase), colocados para que no se pisen */
@media (hover: none), (max-width: 60rem) {
  .camp-lbl.is-desk { display: none; }
  .camp-lbl.is-mob { display: inline; opacity: 1; }
  .camp-lbl.is-mob .t { font-size: 44px; stroke-width: 8px; }
  .camp-lbl.is-mob.is-small .t { font-size: 34px; }
  body:not(.game-tactics) .camp-brand .logo.logo-img img { height: 3.6rem; }
  .camp-brand .hg-switch { display: none; }
  .camp-head { padding: 0.4rem 0.6rem; }
  .camp-head .account-bar { font-size: 0.72rem; }
  .camp-hint { display: none; }
  .camp-head .ticket-badge, .camp-head .premium-badge { display: none; }   /* en móvil: sólo cuenta, SC y gold */
  .camp-extra { bottom: 0.6rem; right: 0.6rem; }
  body:not(.game-tactics) .camp-extra .hg-sign { font-size: 0.8rem; padding: 0.25rem 0.6rem; }
}
/* Móvil en vertical: mejor girarlo */
@media (orientation: portrait) and (max-width: 46rem) {
  .camp-hint { display: block; left: 10%; right: 10%; bottom: auto; top: 40%; text-align: center; border-radius: 1rem; font-size: 0.9rem; }
  .camp-hint::before { content: "↻ Gira el móvil para verlo mejor. "; }
}
@media (prefers-reduced-motion: reduce) { .camp-hs, .camp-lbl { transition: none; } .camp-glow { animation: none; } }
