/* ============================================================
   TÁCTICA — rebrand.css
   Visual override layer loaded AFTER css/brand.css.
   Adds: hero image treatment, premium nav, gold gilt panels,
   faction sigil integration, and polish across all shared components.
   Does NOT touch any JS hooks or IDs — purely presentational.
   ============================================================ */

/* Fuentes (Cinzel + Rajdhani): se cargan con <link> desde el HTML, no desde acá; importarlas desde la hoja encadena la descarga detrás del CSS. */

/* ============================================================
   1. TOKENS (additions / reinforcements)
   ============================================================ */
:root {
  /* Ensure both naming conventions resolve */
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-ui:      'Rajdhani', 'Arial Narrow', sans-serif;

  /* Container cap for bold moods */
  --container-bold-max: 1200px;
  --container-pad: clamp(16px, 5vw, 48px);

  /* Ancho de contenido de los 5 hubs (perfil, dashboard, online, evento, casa) y de la topbar (E5.3, 2026-10-26).
     UNA sola definicion: los hubs median 760 / 900 / 1100 / 1120 / 1200 y la topbar 1200, asi que el contenido saltaba de
     ancho al pasar de una pagina a otra mientras la barra de arriba no se movia. Vive aca porque rebrand.css es el unico CSS
     que cargan las cinco paginas Y que ya trae el token global de layout (--container-pad); los --tr-* viven scopeados en
     ui-resumen.css y los --tb-* en ui-banner.css, que perfil, dashboard y evento no cargan. Guardian: server/hubs-ancho.test.js. */
  --tac-hub-w: 1200px;
}

/* ============================================================
   2. BODY — obsidian ambient atmosphere
   ============================================================ */
body {
  background-color: var(--obsidian, #1B1E24);
  background-image:
    radial-gradient(ellipse 1200px 700px at 72% -12%, #2a2f3a 0%, rgba(27,30,36,0) 60%),
    radial-gradient(ellipse 900px 500px at 10% 110%, #20242b 0%, rgba(27,30,36,0) 55%);
  font-family: var(--font-ui);
  color: var(--text, #D7D2C7);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display, .hero h1, .sec-head h2 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: 0.03em;
  color: var(--ivory, #D7D2C7);
}

/* ============================================================
   3. NAV — fixed topbar with gold accent line
   ============================================================ */

/* Live index.html uses <nav> directly */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(27,30,36,.95);
  border-bottom: 1px solid var(--border, #3a4048);
  box-shadow: inset 0 -1px 0 rgba(200,155,60,.18), 0 4px 20px rgba(0,0,0,.4);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Brand mark */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--gold-hi, #E6C879);
}

.brand .mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(160deg, var(--gold-hi, #E6C879), var(--gold, #C89B3C) 45%, var(--gold-lo, #8a6a22));
  clip-path: polygon(50% 0, 100% 16%, 100% 62%, 50% 100%, 0 62%, 0 16%);
  box-shadow: 0 0 16px rgba(200,155,60,.4), inset 0 0 0 2px rgba(0,0,0,.25);
  flex-shrink: 0;
}

/* Crest in nav (perfil.html uses .crest) */
nav .crest {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  clip-path: polygon(50% 0, 100% 16%, 100% 62%, 50% 100%, 0 62%, 0 16%);
  box-shadow: 0 0 12px rgba(200,155,60,.35), inset 0 0 0 2px rgba(0,0,0,.25);
  display: inline-block;
}

/* Tag badge */
.tag {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,155,60,.4);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Logout / nav buttons */
nav .btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2, #4a525c);
  color: var(--text);
  padding: 8px 16px;
  font-size: .85rem;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  min-height: 44px;
}
nav .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   4. BUTTONS — reinforce gold + stone with premium feel
   ============================================================ */
.btn, a.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  padding: 13px 26px;
  font-size: 1rem;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  position: relative;
  white-space: nowrap;
  min-height: 44px;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi, #E6C879) 0%, var(--gold, #C89B3C) 52%, var(--gold-lo, #8a6a22) 100%);
  color: #1a1206;
  border: 1px solid var(--gold-lo, #8a6a22);
  box-shadow: 0 6px 18px rgba(200,155,60,.28),
              inset 0 1px 0 rgba(255,255,255,.45),
              inset 0 -2px 4px rgba(0,0,0,.25);
}
.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(200,155,60,.45), inset 0 1px 0 rgba(255,255,255,.5);
  filter: brightness(1.06);
}
.btn-gold:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.btn-stone {
  background: linear-gradient(180deg, #3b424c, #262b32);
  color: var(--ivory, #D7D2C7);
  border: 1px solid #1a1e23;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 4px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.3);
}
.btn-stone:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--gold-lo);
  color: #fff;
}
.btn-stone:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-sm { padding: 9px 18px; font-size: .82rem; letter-spacing: 1px; min-height: 44px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   5. PANELS — gilt-top obsidian stone panels
   ============================================================ */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--obsidian-2, #23272f), var(--obsidian, #1B1E24));
  border: 1px solid var(--border, #3a4048);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 0 40px rgba(0,0,0,.35),
    0 18px 50px rgba(0,0,0,.45);
  overflow: hidden;
}

/* gilt: gold hairline at top */
.panel.gilt {
  border-top-color: var(--gold-lo, #8a6a22);
  box-shadow:
    inset 0 1px 0 rgba(200,155,60,.25),
    inset 0 0 40px rgba(0,0,0,.35),
    0 18px 50px rgba(0,0,0,.45);
}
.panel.gilt::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold, #C89B3C), transparent);
  opacity: .65;
  pointer-events: none;
}

.panel-pad { padding: 24px; }

/* Panel head tablilla style */
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ivory);
  font-size: .95rem;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   6. CARDS (features grid)
   ============================================================ */
.card {
  background: rgba(35,39,47,.72);
  border: 1px solid var(--border, #3a4048);
  border-radius: 10px;
  padding: 26px;
  transition: transform .15s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,155,60,.3), transparent);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,155,60,.4);
}
.card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.card.gold h3 { color: var(--gold, #C89B3C); }
.card.blue h3 { color: #6090d0; }
.card p { color: var(--muted, #9aa0a8); font-size: 1rem; }
.card .ico { font-size: 1.6rem; margin-bottom: 12px; display: block; }

/* ============================================================
   7. STEPS list (how it works)
   ============================================================ */
.steps li {
  background: rgba(35,39,47,.72);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
.steps li::before {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #1a1206;
}

/* ============================================================
   8. STATUS columns (done / next)
   ============================================================ */
.status .col {
  background: rgba(35,39,47,.72);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.status .col::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,155,60,.25), transparent);
}

/* ============================================================
   9. CTA BAND
   ============================================================ */
.band {
  text-align: center;
  background: linear-gradient(180deg, rgba(35,39,47,.5), rgba(27,30,36,.2));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  position: relative;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 350px at 50% 50%, rgba(200,155,60,.05) 0%, transparent 70%);
  pointer-events: none;
}
.band h2 { font-family: var(--font-display); }

/* ============================================================
   10. FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: var(--obsidian);
  color: var(--dim, #6b727b);
  font-size: .85rem;
  text-align: center;
}
footer .nm { color: var(--muted); font-family: var(--font-display); letter-spacing: .06em; }

/* ============================================================
   11. SECTION HEADINGS
   ============================================================ */
.sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}
.sec-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.sec-head p { color: var(--muted); margin-top: 12px; }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold, #C89B3C);
}

/* ============================================================
   12. HERO IMAGE WRAPPER (index.html additive)
       .rb-hero-img-bg — full-bleed art background layer
   ============================================================ */
.rb-hero-img-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.rb-hero-img-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.rb-hero-img-bg .rb-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(27,30,36,.82) 0%,
    rgba(27,30,36,.52) 45%,
    rgba(27,30,36,.12) 100%
  );
}
/* Bottom gradient so content below hero transitions smoothly */
.rb-hero-img-bg .rb-scrim-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, var(--obsidian, #1B1E24) 0%, transparent 100%);
}

/* Hero section elevation for image hero */
header.hero.rb-hero-photo {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

/* Hero content sits above bg layer */
header.hero.rb-hero-photo .hero-grid,
header.hero.rb-hero-photo > .wrap {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 72px;
}

/* Hero headline styles */
header.hero.rb-hero-photo h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

header.hero.rb-hero-photo h1 .accent {
  background: linear-gradient(135deg, var(--gold-hi, #E6C879) 0%, var(--gold, #C89B3C) 55%, var(--gold-lo, #8a6a22) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Kicker pill above headline */
.rb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(200,155,60,.1);
  border: 1px solid rgba(200,155,60,.28);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-hi, #E6C879);
  margin-bottom: 22px;
  margin-top: 14px;
}

/* Lead paragraph */
header.hero.rb-hero-photo p.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(215,210,199,.8);
  max-width: 38ch;
  line-height: 1.65;
}

/* Stats row */
.stats .n { font-family: var(--font-display); color: var(--gold-hi, #E6C879); }
.stats .l { font-size: .78rem; color: var(--dim); text-transform: uppercase; letter-spacing: 1.5px; }

/* Preview frame */
.frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--obsidian-2);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(200,155,60,.08);
  aspect-ratio: 4/3;
}
.frame::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,155,60,.3), transparent);
  pointer-events: none;
}

/* ============================================================
   13. INPUTS + FORM FIELDS
   ============================================================ */
.input, .field-label, input.input {
  width: 100%;
  background: rgba(15,17,21,.7);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, input.input:focus {
  border-color: var(--gold-lo);
  box-shadow: 0 0 0 3px rgba(200,155,60,.12);
}
.field-label {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--dim);
  margin: 14px 0 6px;
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 0;
  width: auto;
}
.hint { font-size: .78rem; color: var(--dim); margin-top: 6px; min-height: 1.1em; }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--bad); }

/* ============================================================
   14. PERFIL — emblem (faction crest on profile card)
   The sigil SVG (renderSigil) already carries its own hex outline +
   glyph. The .emblem container must NOT add a competing clip-path
   hexagon or gradient fill — those create the double-hex bug.
   ============================================================ */
.emblem {
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  position: relative;
  /* NO clip-path, NO gradient fill — sigil SVG is the visual */
  background: none;
  clip-path: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Gold ring wrapper — thin gold rim only (no solid hex behind it) */
#pcard .pcard-emblem-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  /* No drop-shadow — glyph-only render needs no background halo */
}
/* Removed ::before hex ring — it was the second hexagon.
   The sigil's own hex outline (faction-colored stroke) is the boundary. */
#pcard .pcard-emblem-wrap .emblem {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Faction coloring: only glow (no gradient fill — sigil has its own dark fill) */
.emblem.fac-orden     { box-shadow: none; }
.emblem.fac-caos      { box-shadow: none; }
.emblem.fac-naturaleza{ box-shadow: none; }

/* Emblem initial letter */
.emblem span#initials {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--ivory);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* username */
.uname {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ivory);
  margin-bottom: 8px;
  word-break: break-word;
}

/* ============================================================
   15. FACTION CHIPS
   ============================================================ */
.fac-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid;
}
.fac-orden     { --fac: var(--royal, #2E5F9B); }
.fac-naturaleza{ --fac: var(--forest, #56704D); }
.fac-caos      { --fac: var(--crimson, #8F2F2F); }
.fac-chip {
  color: var(--fac, var(--iron));
  border-color: color-mix(in srgb, var(--fac, var(--iron)) 50%, transparent);
  background: color-mix(in srgb, var(--fac, var(--iron)) 12%, transparent);
}
.fac-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fac, var(--iron));
  box-shadow: 0 0 8px var(--fac, var(--iron));
  flex-shrink: 0;
}

/* ============================================================
   16. MODAL
   ============================================================ */
.ov {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8,9,12,.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ov.open { display: flex; }
.modal {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 26px;
  animation: rb-pop .28s ease;
}
@keyframes rb-pop {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.modal h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.x {
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px;
  min-width: 32px;
  min-height: 32px;
}
.x:hover { color: var(--ivory); }
.divider {
  height: 1px;
  background: var(--border);
  margin-block: 20px;
}
.formerr { margin-top: 12px; color: var(--bad); font-weight: 600; min-height: 1.1em; font-size: .92rem; }
.formok  { margin-top: 12px; color: var(--ok);  font-weight: 600; min-height: 1.1em; font-size: .92rem; }

/* ============================================================
   17. FACTION PICKER (in modal)
   ============================================================ */
.fac-pick {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.fac-opt {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 6px;
  text-align: center;
  background: rgba(15,17,21,.5);
  transition: border-color .15s, background .15s;
  min-height: 44px;
}
.fac-opt:hover { border-color: var(--border-2); }
.fac-opt.sel {
  border-color: var(--fac, var(--gold));
  background: color-mix(in srgb, var(--fac, var(--gold)) 14%, transparent);
  box-shadow: 0 0 0 1px var(--fac, var(--gold)) inset;
}
.fac-opt .fdot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: var(--fac, var(--border-2));
  box-shadow: 0 0 8px var(--fac, transparent);
}
.fac-opt .fname {
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ivory);
}

/* ============================================================
   18. SQUAD CHIPS + GRID
   ============================================================ */
.sq-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(15,17,21,.5);
  font-size: .85rem;
  color: var(--ivory);
}
.sq-opt {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  position: relative;
  background: rgba(15,17,21,.5);
  transition: border-color .15s, background .15s;
}
.sq-opt:hover { border-color: var(--border-2); }
.sq-opt.sel {
  border-color: var(--gold);
  background: rgba(200,155,60,.1);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.sq-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,.04);
  color: var(--ivory);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .12s, background .12s, opacity .12s;
  padding: 0;
  min-width: 28px;
  min-height: 28px;
}
.sq-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(200,155,60,.15);
}
.sq-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ============================================================
   19. VISION CARDS (próximamente)
   ============================================================ */
.vcard {
  padding: 18px;
  border-radius: var(--r, 6px);
  min-height: 104px;
  position: relative;
  overflow: hidden;
}
.vcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 8px,
    rgba(255,255,255,.012) 8px, rgba(255,255,255,.012) 9px
  );
  pointer-events: none;
}
.vcard h4 { font-family: var(--font-display); font-size: .95rem; color: var(--ivory); margin-bottom: 6px; }
.vcard p  { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.locked { opacity: .62; filter: saturate(.65); }
.lock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(27,30,36,.85);
  border: 1px solid rgba(200,155,60,.35);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ============================================================
   20. SCROLL REVEAL (keep behaviour, improve defaults)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   21. PERFIL — hero-line heading
   ============================================================ */
.hero-line { padding: 34px 0 8px; }
.hero-line h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-family: var(--font-display);
}
.hero-line .eyebrow { margin-bottom: 8px; }
.gold { color: var(--gold); }

/* ============================================================
   22. SQUAD SIGIL TARGET (rebrand-sigils.js injects here)
   ============================================================ */
[data-sigil] canvas,
[data-sigil] svg {
  display: block;
  margin: auto;
}

/* ============================================================
   23. CONTAINER helper
   ============================================================ */
.wrap {
  max-width: var(--tac-hub-w, 1200px);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   24. GLOBAL UTILITIES
   ============================================================ */
.row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   25. RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  header.hero.rb-hero-photo p.lead { max-width: none; }
  header.hero.rb-hero-photo .hero-grid { padding-bottom: 52px; }
}
@media (max-width: 520px) {
  header.hero.rb-hero-photo { min-height: 100svh; }
  .rb-hero-img-bg img { object-position: 65% 20%; }
  .rb-hero-img-bg .rb-scrim {
    background: linear-gradient(180deg,
      rgba(27,30,36,.72) 0%,
      rgba(27,30,36,.45) 60%,
      rgba(27,30,36,.12) 100%
    );
  }
}

/* ============================================================
   26. ONLINE LOBBY — premium overrides (online.html)
   ============================================================ */

/* La barra superior (.topbar, .topbar-in, .brandline y su escudo .crest) vive en css/topbar.css (Tanda A2,
   2026-10-17): una sola fuente para las 6 pantallas. No volver a declararla acá ni en un <style> de página;
   lo impide server/topbar-ids.test.js. */

/* Hero heading on lobby */
.hl h1 {
  font-family: var(--font-display, 'Cinzel', serif);
  font-weight: 700;
  color: var(--ivory, #D7D2C7);
}
.hl .eyebrow {
  font-family: var(--font-ui, 'Rajdhani', sans-serif);
}

/* Connection status dot glow */
.conn.on .cdot {
  box-shadow: 0 0 10px var(--ok, #4caf72), 0 0 4px var(--ok, #4caf72);
}

/* Filter pill group */
.filters {
  background: rgba(10,12,16,.6);
  border: 1px solid var(--border, #3a4048);
  border-radius: 4px;
  padding: 4px;
  gap: 4px;
}
.filters button {
  font-family: var(--font-ui, 'Rajdhani', sans-serif);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .76rem;
  border-radius: 3px;
  min-height: 36px;
  padding: 6px 14px;
  transition: background .14s, color .14s;
}
.filters button.active {
  background: linear-gradient(180deg, var(--gold-hi, #E6C879), var(--gold, #C89B3C));
  color: #1a1206;
  box-shadow: 0 2px 8px rgba(200,155,60,.3);
}

/* Segmented room visibility picker */
.seg {
  background: rgba(10,12,16,.6);
  border-color: var(--border, #3a4048);
  border-radius: 4px;
}
.seg button {
  font-family: var(--font-ui, 'Rajdhani', sans-serif);
  font-weight: 700;
  letter-spacing: 1px;
  min-height: 38px;
  border-radius: 3px;
}
.seg button.active {
  background: linear-gradient(180deg, var(--gold-hi, #E6C879), var(--gold, #C89B3C));
  color: #1a1206;
  box-shadow: 0 2px 8px rgba(200,155,60,.28);
}

/* Player list rows — premium stone surface */
ul.players li {
  background: linear-gradient(180deg, rgba(44,49,58,.65), rgba(27,30,36,.65));
  border: 1px solid var(--border, #3a4048);
  border-radius: 4px;
  padding: 12px 16px;
  transition: border-color .15s, background .15s;
  position: relative;
  overflow: hidden;
}
ul.players li::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,155,60,.18), transparent);
  pointer-events: none;
}
ul.players li:hover {
  border-color: rgba(200,155,60,.35);
  background: linear-gradient(180deg, rgba(50,56,66,.75), rgba(30,34,42,.75));
}

/* Player name Cinzel */
.pl-name {
  font-family: var(--font-display, 'Cinzel', serif);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ivory, #D7D2C7);
}

/* Player status label */
.pl-state {
  font-family: var(--font-ui, 'Rajdhani', sans-serif);
  font-weight: 600;
  letter-spacing: .8px;
}

/* Player sigil placeholder — small faction crest beside name */
.pl-sigil {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .72;
}

/* Block button */
.pl-block {
  font-family: var(--font-ui, 'Rajdhani', sans-serif);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .8px;
  border-radius: 3px;
  min-height: 36px;
  padding: 6px 10px;
  transition: border-color .15s, color .15s;
}

/* Room rows */
.room-row {
  background: linear-gradient(180deg, rgba(44,49,58,.55), rgba(27,30,36,.55));
  border-color: var(--border, #3a4048);
  border-radius: 4px;
  transition: border-color .15s;
  position: relative;
  overflow: hidden;
}
.room-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,155,60,.14), transparent);
  pointer-events: none;
}
.room-row:hover {
  border-color: rgba(200,155,60,.3);
}

/* Room name Cinzel */
.room-name {
  font-family: var(--font-display, 'Cinzel', serif);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ivory, #D7D2C7);
}

/* Shareable room code — gold engraved box */
.code-box {
  font-family: var(--font-display, 'Cinzel', serif);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 6px;
  color: var(--gold, #C89B3C);
  text-align: center;
  background: rgba(10,12,16,.7);
  border: 1px solid rgba(200,155,60,.35);
  border-radius: 4px;
  padding: 14px;
  box-shadow:
    inset 0 0 24px rgba(200,155,60,.06),
    0 0 0 1px rgba(200,155,60,.1);
  text-shadow: 0 0 18px rgba(200,155,60,.5);
}

/* Chat log */
.chat-log {
  background: rgba(10,12,16,.35);
  border-radius: 4px;
  padding: 10px 14px 14px;
}
.msg .who {
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: .82rem;
  font-weight: 700;
}

/* Panel head icons — remove emoji reliance, use font */
.panel-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(200,155,60,.1);
  border: 1px solid rgba(200,155,60,.22);
  border-radius: 3px;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Countdown bar — gold pulse */
.cd-bar {
  background: linear-gradient(90deg, var(--gold-lo, #8a6a22), var(--gold, #C89B3C), var(--gold-hi, #E6C879));
}
.cd-num {
  font-family: var(--font-display, 'Cinzel', serif);
  font-weight: 700;
  color: var(--gold, #C89B3C);
}

/* Accept toggle track — gold when on */
.switch .track { border-radius: 999px; }

/* Blocked panel link */
.blocked-link {
  font-family: var(--font-ui, 'Rajdhani', sans-serif);
  font-weight: 600;
  letter-spacing: .5px;
}

/* Toast — premium feel */
#toast {
  background: var(--obsidian-2, #23272f);
  border: 1px solid var(--border, #3a4048);
  border-radius: 4px;
  font-family: var(--font-ui, 'Rajdhani', sans-serif);
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
}

/* Rooms panel vertical spacing */
.rooms { margin-top: 20px; }
.chat  { margin-top: 20px; }

/* Lobby main spacing */
.main { padding-top: 28px; }

/* ============================================================
   28. PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}
