/* ===== MuForex: tema "fantasía oscura" (carbón + dorado + azul hielo + naranja del logo) ===== */
:root {
  --bg: #0b0a0d;
  --bg2: #14131a;
  --panel: #1a1920;
  --panel2: #121116;
  --line: #3a3540;
  --gold: #3f7fb0;
  --gold-hi: #bfe3ff;
  --gold-dim: rgba(79,151,199,.35);
  --text: #ebe7de;
  --muted: #a09b90;
  --accent: #4fc7ff;
  --accent-hover: #8fe0ff;
  --accent-ink: #0b1a27;
  --accent2: #e8722a;
  --ok: #2ecc71;
  --danger: #d9483a;
  --serif: "Rajdhani", "Segoe UI", sans-serif;
  --display: "Orbitron", "Rajdhani", sans-serif;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: transparent; /* el fondo lo dibuja .site-bg (más abajo) */
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ----- Cabecera: banner + menú ----- */
.site-head {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(5,7,13,.94) 0%, rgba(7,10,18,.78) 62%, rgba(7,10,18,.30) 100%);
}
.banner {
  position: relative; text-align: center; padding: 30px 16px 24px; overflow: hidden;
  background: radial-gradient(520px 170px at 50% 38%, rgba(79,199,255,.10), transparent 72%);
}
/* línea fina de acento al pie de la cabecera (azul hielo → naranja del logo → azul hielo) */
.banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(79,199,255,.55) 22%, rgba(232,114,42,.75) 50%, rgba(79,199,255,.55) 78%, transparent 100%);
}
.brand { position: relative; display: inline-block; line-height: 0; }
.logo-stage {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: clamp(150px, 36vw, 230px); height: clamp(110px, 26vw, 172px); margin: 0 auto;
}
.logo-energy { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.logo-aura {
  position: absolute; left: 50%; top: 54%; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 2; pointer-events: none; filter: blur(14px); will-change: transform, opacity;
  background: radial-gradient(circle, rgba(0,220,255,.42) 0%, rgba(0,120,255,.16) 30%, rgba(0,80,255,.06) 48%, transparent 72%);
  animation: logoCorePulse 2.4s ease-in-out infinite;
}
.brand-logo {
  position: relative; z-index: 3; display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.65)) drop-shadow(0 0 22px rgba(0,150,255,.5));
  transition: filter .2s ease;
  user-select: none; -webkit-user-drag: none;
}
.logo-scan {
  position: absolute; left: 10%; right: 10%; top: 30%; height: 2px; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(130,240,255,.85), transparent);
  opacity: 0; will-change: transform, opacity; animation: logoScan 5.5s ease-in-out infinite;
}
.brand:hover .brand-logo { filter: drop-shadow(0 6px 10px rgba(0,0,0,.65)) drop-shadow(0 0 34px rgba(0,190,255,.8)); }
.brand:hover .logo-aura { animation-duration: 1.4s; }
@keyframes logoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }
@keyframes logoCorePulse { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes logoScan { 0%, 12% { transform: translateY(0); opacity: 0; } 25% { opacity: .8; } 55% { transform: translateY(calc(clamp(110px, 26vw, 172px) * .58)); opacity: .2; } 70%, 100% { transform: translateY(calc(clamp(110px, 26vw, 172px) * .68)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .brand-logo, .logo-aura, .logo-scan { animation: none !important; }
  .logo-energy { display: none; }
}
.banner-tag {
  position: relative; margin: 10px 0 0; display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold-hi); font-family: var(--serif); letter-spacing: 4px; font-size: .78rem; font-weight: 600; text-transform: uppercase; opacity: .92;
}
.banner-tag::before, .banner-tag::after {
  content: ""; width: clamp(24px, 9vw, 80px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143,224,255,.65));
}
.banner-tag::after { transform: scaleX(-1); }
@media (max-width: 560px) {
  .banner-tag { letter-spacing: 2px; font-size: .72rem; }
  .banner-tag::before, .banner-tag::after { display: none; }
}
.online-pill {
  position: absolute; top: 12px; right: 14px; display: flex; align-items: center; gap: 8px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text);
  background: rgba(8,10,16,.55); border: 1px solid rgba(143,224,255,.22);
}
.online-pill b { color: var(--ok); font-size: .95rem; letter-spacing: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.page { max-width: 1320px; width: 100%; margin: 0 auto; padding: 28px 16px 56px; flex: 1; display: flex; gap: 24px; align-items: flex-start; }
main { flex: 1; min-width: 0; }
.foot { border-top: 1px solid var(--gold-dim); color: var(--muted); font-size: .85rem; background: #0d0c10; }
.foot .in { max-width: 1320px; margin: 0 auto; padding: 32px 16px; letter-spacing: .5px; }
.footgrid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; text-align: left; padding-bottom: 8px; }
.footcol { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.footcol h4 { margin: 0 0 3px; color: var(--gold-hi); font-family: var(--serif); font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; }
.footcol a { color: var(--muted); }
.footcol a:hover { color: var(--gold-hi); text-decoration: none; }
.footbrand-name { font-family: var(--serif); color: var(--gold-hi); font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; }
.footbrand p { margin: 6px 0 0; }
.footbottom { border-top: 1px solid rgba(79,151,199,.16); padding-top: 18px; margin-top: 18px; text-align: center; font-size: .8rem; }
@media (max-width: 800px) {
  .footgrid { grid-template-columns: 1fr 1fr; text-align: center; }
  .footcol { align-items: center; }
  .footbrand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footgrid { grid-template-columns: 1fr; } }

/* ----- Evento destacado, eventos con cuenta regresiva, comandos ----- */
.feature-event { border-color: var(--accent2); }
.feature-event h2 { border-bottom-color: rgba(232,114,42,.4); }
.feature-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.chip.tag { border-color: var(--accent2); color: var(--accent2); font-family: var(--serif); letter-spacing: 1px; text-transform: uppercase; font-size: .72rem; }
.eventgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.eventcard {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--gold-dim); border-radius: var(--radius-md);
  background: rgba(0,0,0,.2);
}
.eventcard b { color: var(--gold-hi); font-family: var(--serif); letter-spacing: .5px; }
.eventtime, .countdown { color: var(--accent); font-weight: 700; font-family: var(--display); font-size: 1rem; letter-spacing: .5px; }
.eventnote { font-style: italic; }
.prose { line-height: 1.7; white-space: pre-line; }

/* ----- Títulos ----- */
h1 { margin: 0 0 18px; font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: #eaf4ff; letter-spacing: 1px; text-transform: uppercase; }
h2 {
  margin: 28px 0 14px; padding: 0 0 8px; font-family: var(--display); font-size: 1.1rem; font-weight: 800; color: var(--gold-hi); letter-spacing: 1px;
  text-transform: uppercase; border-bottom: 1px solid var(--gold-dim); position: relative;
}
h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 2px; background: linear-gradient(90deg, var(--accent2), transparent); }
h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 700; letter-spacing: .5px; }

/* ----- Paneles ----- */
.card {
  position: relative; max-width: 440px; padding: 24px; border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(24,44,66,.85) 0%, rgba(13,18,26,.96) 100%);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(79,199,255,.05);
}
.card.wide { max-width: none; overflow-x: auto; }
.card h2:first-child, .card h2.first { margin-top: 0; }

label { display: block; margin: 14px 0 6px; font-size: .9rem; color: var(--muted); }
input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
  border: 1px solid #47404f; background: #0f0e13; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(79,151,199,.2); }
label.inline { display: inline; margin: 0; color: var(--text); font-size: 1rem; }

.btn, button {
  display: inline-block; margin-top: 18px; padding: 10px 22px; border: 1px solid #bfe3ff; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #0f4d78);
  color: #04141f; font-family: var(--serif); font-size: .9rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.35);
  transition: box-shadow .15s ease, transform .15s ease, filter .15s ease;
}
.btn:hover, button:hover {
  filter: brightness(1.1); text-decoration: none; color: #04141f; transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(79,199,255,.18), 0 6px 18px rgba(0,150,255,.28);
}
.btn.ghost { background: rgba(79,151,199,.06); border: 1px solid var(--gold); color: var(--gold-hi); box-shadow: none; }
.btn.ghost:hover { background: rgba(79,151,199,.16); color: #fff; filter: none; }
.btn.small { padding: 5px 12px; font-size: .75rem; margin: 0; }
button.link { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; color: var(--text); font-family: inherit; font-weight: 400; font-size: .95rem; letter-spacing: 0; text-transform: none; }
button.link:hover { color: var(--accent); filter: none; box-shadow: none; transform: none; }
button.small { padding: 4px 10px; font-size: .75rem; margin: 0; }

.msg { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; }
.msg.error { background: #341819; border: 1px solid #6b2a2a; border-left: 4px solid var(--danger); }
.msg.ok { background: #14291c; border: 1px solid #245a37; border-left: 4px solid var(--ok); }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* ----- Tablas ----- */
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(79,151,199,.15); }
th { color: var(--gold); font-family: var(--serif); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
tbody tr:hover { background: rgba(79,151,199,.06); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.grid > * { min-width: 0; }
.stat b { overflow-wrap: anywhere; word-break: break-word; }
.grid.stats { margin-top: 8px; }
.stat { background: rgba(0,0,0,.25); border: 1px solid rgba(79,151,199,.22); border-radius: var(--radius-md); padding: 12px 14px; }
.stat b { display: block; font-size: 1.3rem; color: #fff; }
.stat span { color: var(--muted); font-size: .8rem; letter-spacing: .5px; text-transform: uppercase; }
.online { color: var(--ok); }
.offline { color: var(--muted); }

/* ----- Menú de secciones (panel, rankings, admin) ----- */
.menu { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.menu a {
  display: block; padding: 8px 16px; border: 1px solid rgba(79,151,199,.3); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #1f1e26, #15141a); color: var(--text); font-size: .92rem;
}
.menu a:hover { text-decoration: none; border-color: var(--gold); color: var(--gold-hi); }
.menu a.current { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: var(--gold-hi); color: #04141f; font-weight: 700; }
.menu li form { margin: 0; }
.menu li .link { padding: 8px 4px; }

/* ----- Portada ----- */
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 0 0 26px; }
.cta .btn { margin: 0; padding: 14px 30px; font-size: 1rem; }
.cta .btn.big { min-width: 230px; text-align: center; }
.infogrid { margin: 0 0 26px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.infogrid .stat { border-top: 2px solid var(--accent2); text-align: center; }
.infogrid .stat b { color: var(--gold-hi); font-family: var(--serif); }

.cols { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.news { margin-bottom: 16px; display: flex; gap: 16px; align-items: flex-start; }
.news .date {
  flex: none; width: 58px; text-align: center; padding: 6px 0; border: 1px solid var(--gold-dim); border-radius: var(--radius-sm);
  background: rgba(0,0,0,.35); font-family: var(--serif); line-height: 1.1;
}
.news .date b { display: block; font-size: 1.5rem; color: var(--gold-hi); }
.news .date span { font-size: .72rem; color: var(--muted); letter-spacing: 1px; }
.news .body { min-width: 0; }
.news h3 { color: var(--accent); font-size: 1.1rem; }
.news p { margin: 8px 0 0; overflow-wrap: anywhere; }
.rank { font-weight: 700; color: var(--muted); }
.rank.r1 { color: #f2c94c; }
.rank.r2 { color: #c9d3dc; }
.rank.r3 { color: #d98b4a; }
.req { margin: 8px 0; padding-left: 20px; }
.req li { margin: 4px 0; }

/* ----- Rankings ----- */
.mark { display: block; width: 24px; height: 24px; }
.home-stats { margin: 24px 0 8px; max-width: 320px; }

/* ----- AdminCP ----- */
.inline-form { display: inline; margin: 0; }
.inline-form button { margin: 0; }
.searchform { display: flex; gap: 8px; flex-wrap: wrap; }
.searchform input { flex: 1 1 220px; }
.searchform button { margin: 0; }
.rowform { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rowform input, .rowform select { flex: 1 1 160px; width: auto; }
.rowform button { margin: 0; }
table.log td { font-size: .82rem; word-break: break-word; }
button.small.ghost { background: transparent; border: 1px solid var(--gold); color: var(--gold-hi); box-shadow: none; }
.inline-form { margin-right: 4px; }

/* ----- Editor de items: cuadrículas ----- */
.mu-wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.mu-box h3 { margin: 0 0 8px; font-size: 1rem; color: #fff; }
.mu-grid, .mu-eq { display: grid; gap: 0; background: var(--panel2); border: 1px solid var(--line); padding: 0; position: relative; }
.mu-grid { grid-template-columns: repeat(8, 36px); grid-auto-rows: 36px; }
.mu-eq { grid-template-columns: repeat(6, 44px); grid-auto-rows: 44px; }
.mu-cell { grid-row-end: span 1; }
.mu-it, .mu-slot { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 1px; background: #2a2629; border: 1px solid #4a4348; }
.mu-slot { color: var(--muted); font-size: .7rem; text-align: center; background: rgba(255,255,255,.02); border-style: dashed; }
.mu-it img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mu-it b { position: absolute; right: 2px; bottom: 0; font-size: .7rem; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.mu-it.exc { border-color: #2ecc71; box-shadow: inset 0 0 8px rgba(46,204,113,.5); }
.mu-it.anc { border-color: #3d7bff; box-shadow: inset 0 0 8px rgba(61,123,255,.5); }
.mu-it.bad { border-color: var(--danger); }
.c1 { grid-column-start: 1; } .r1 { grid-row-start: 1; } .w1 { grid-column-end: span 1; } .h1 { grid-row-end: span 1; }
.c2 { grid-column-start: 2; } .r2 { grid-row-start: 2; } .w2 { grid-column-end: span 2; } .h2 { grid-row-end: span 2; }
.c3 { grid-column-start: 3; } .r3 { grid-row-start: 3; } .w3 { grid-column-end: span 3; } .h3 { grid-row-end: span 3; }
.c4 { grid-column-start: 4; } .r4 { grid-row-start: 4; } .w4 { grid-column-end: span 4; } .h4 { grid-row-end: span 4; }
.c5 { grid-column-start: 5; } .r5 { grid-row-start: 5; } .w5 { grid-column-end: span 5; } .h5 { grid-row-end: span 5; }
.c6 { grid-column-start: 6; } .r6 { grid-row-start: 6; } .w6 { grid-column-end: span 6; } .h6 { grid-row-end: span 6; }
.c7 { grid-column-start: 7; } .r7 { grid-row-start: 7; } .w7 { grid-column-end: span 7; } .h7 { grid-row-end: span 7; }
.c8 { grid-column-start: 8; } .r8 { grid-row-start: 8; } .w8 { grid-column-end: span 8; } .h8 { grid-row-end: span 8; }
.c9 { grid-column-start: 9; } .r9 { grid-row-start: 9; } .w9 { grid-column-end: span 9; } .h9 { grid-row-end: span 9; }
.q8 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.q2 { grid-column: 3 / span 2; grid-row: 1 / span 2; }
.q7 { grid-column: 5 / span 2; grid-row: 1 / span 2; }
.q0 { grid-column: 1 / span 2; grid-row: 3 / span 4; }
.q9 { grid-column: 3 / span 2; grid-row: 3 / span 1; }
.q3 { grid-column: 3 / span 2; grid-row: 4 / span 3; }
.q1 { grid-column: 5 / span 2; grid-row: 3 / span 4; }
.q10 { grid-column: 3 / span 1; grid-row: 7 / span 1; }
.q11 { grid-column: 4 / span 1; grid-row: 7 / span 1; }
.q5 { grid-column: 1 / span 2; grid-row: 8 / span 2; }
.q4 { grid-column: 3 / span 2; grid-row: 8 / span 2; }
.q6 { grid-column: 5 / span 2; grid-row: 8 / span 2; }
.mu-ico { width: 40px; height: 40px; object-fit: contain; display: block; }
.mu-grid.rows4 { grid-template-rows: repeat(4, 36px); }
.mu-grid.rows8 { grid-template-rows: repeat(8, 36px); }
.mu-grid { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px; }
.mu-box { margin-bottom: 8px; }
pre.hexdump { background: var(--panel2); border: 1px solid var(--line); padding: 10px; overflow-x: auto; font-size: .8rem; }
a.mu-it { text-decoration: none; color: inherit; }
.mu-it.sel { outline: 2px solid var(--accent2); outline-offset: -2px; }
.itemlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 12px 0; }
.itembtn { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel2); color: var(--text); }
.itembtn:hover { border-color: var(--accent); text-decoration: none; }
.itembtn .mu-ico { width: 36px; height: 36px; flex: none; }

/* ===== Adaptación a celulares y tablets (panel de administración y editor de items) ===== */
.mu-wrap { --cell: clamp(30px, calc((100vw - 76px) / 8), 42px); }
.mu-grid { grid-template-columns: repeat(8, var(--cell)); grid-auto-rows: var(--cell); background-size: var(--cell) var(--cell); }
.mu-grid.rows4 { grid-template-rows: repeat(4, var(--cell)); }
.mu-grid.rows8 { grid-template-rows: repeat(8, var(--cell)); }
.mu-eq { grid-template-columns: repeat(6, calc(var(--cell) * 1.2)); grid-auto-rows: calc(var(--cell) * 1.2); }
.mu-box details { margin: 0 0 12px; }
.mu-box summary { cursor: pointer; font-weight: 600; color: #fff; padding: 6px 0; }
.mu-box details > .mu-grid { margin-top: 6px; }
details.tech { margin-top: 20px; }
details.tech > summary { cursor: pointer; font-size: 1.1rem; font-weight: 600; color: #fff; padding: 8px 0; }
.jumps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.jumps a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; }
.card.wide { max-width: none; }

@media (max-width: 720px) {
  .page { padding: 16px 12px 40px; }
  h1 { font-size: 1.4rem; }
  .card { padding: 16px; max-width: none; }
  .menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .menu a { text-align: center; padding: 11px 6px; }
  .menu li:last-child { grid-column: 1 / -1; text-align: center; }
  .menu li:last-child .link { padding: 10px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .rowform > *, .searchform > * { flex: 1 1 100%; }
  .rowform button, .searchform button { width: 100%; }
  .rowform select, .rowform input { width: 100%; }
  .itemlist { grid-template-columns: 1fr 1fr; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 10px; padding: 6px 12px; background: var(--panel2); }
  table.stack tbody tr:hover { background: var(--panel2); }
  table.stack td { border: 0; padding: 5px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; overflow-wrap: anywhere; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .4px; text-align: left; flex: none; max-width: 42%; }
  table.stack td:empty { display: none; }
  table.stack td form, table.stack td .inline-form { margin: 0; }
  pre.hexdump { font-size: .7rem; }
}
@media (max-width: 400px) {
  .itemlist { grid-template-columns: 1fr; }
}
@media (pointer: coarse) {
  .btn, button { min-height: 44px; }
  button.small, .btn.small { min-height: 38px; }
  input[type=text], input[type=password], input[type=email], input[type=number], select, textarea { min-height: 44px; }
  input[type=checkbox] { width: 20px; height: 20px; vertical-align: middle; }
  .menu a { padding: 10px 14px; }
}
.charlist { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.charlist .itembtn { justify-content: space-between; padding: 12px 14px; }
@media (max-width: 720px) { .charlist { grid-template-columns: 1fr; } }
.menu a.accent { border-color: var(--accent2); color: #fff; font-weight: 600; }
.menu a.accent:hover { color: var(--accent2); }
.gap { margin-top: 16px; }
h2.first { margin-top: 0; }

/* ----- Cabecera en celulares: el menú se ve completo, sin deslizar ----- */
@media (max-width: 720px) {
  .banner { padding: 28px 12px 24px; }
  .brand { letter-spacing: 3px; }
  .online-pill { position: static; margin: 0 auto 14px; width: max-content; }
  .news { flex-direction: column; gap: 10px; }
  .news .date { width: auto; display: flex; gap: 8px; align-items: baseline; padding: 4px 12px; }
  .cta .btn.big { width: 100%; min-width: 0; }
}
.grid + .card, .grid + h2 + .grid { margin-top: 16px; }

/* Editor: panel de edición arriba; en pantallas anchas al lado del inventario */
.ed-layout { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.ed-panel { min-width: 0; }
.ed-panel:empty { display: none; }
.ed-inv { min-width: 0; }
@media (min-width: 1500px) {
  .ed-layout { flex-direction: row; align-items: flex-start; }
  .ed-panel { order: 2; flex: 1 1 380px; max-width: 480px; position: sticky; top: 12px; }
  .ed-inv { order: 1; flex: 0 0 auto; }
}

/* ----- Columna derecha: cuenta y menú en cajas ----- */
.side { flex: 0 0 250px; width: 250px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 12px; }
.sidebox {
  position: relative; background: linear-gradient(155deg, rgba(24,44,66,.85), rgba(13,18,26,.96)); border: 1px solid var(--gold-dim);
  border-radius: var(--radius-md); padding: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.sidebox h3 {
  margin: 0 0 12px; padding: 0 0 8px; font-family: var(--serif); font-size: 1rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-hi); text-align: center; border-bottom: 1px solid var(--gold-dim);
}
.sidebox .who { margin: 0 0 12px; color: var(--muted); font-size: .85rem; text-align: center; overflow-wrap: anywhere; }
.sidebox .who b { color: #fff; }
.accountbox form { margin: 0; }
.side-btn { display: block; width: 100%; text-align: center; margin: 0 0 8px; }
.accountbox .side-btn:last-child { margin-bottom: 0; }
.sidenav a {
  display: block; padding: 11px 12px; margin: 0 0 4px; color: var(--text); font-family: var(--serif); font-size: .85rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; border-left: 3px solid transparent; border-radius: 2px;
}
.sidenav a:hover { background: rgba(79,151,199,.1); color: var(--gold-hi); text-decoration: none; border-left-color: var(--gold); }
.sidenav a.current { background: rgba(79,151,199,.14); color: var(--gold-hi); border-left-color: var(--gold); }
@media (max-width: 900px) {
  .page { flex-direction: column; gap: 16px; align-items: stretch; }
  .side { order: -1; width: 100%; flex: none; position: static; }
  .sidenav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .sidenav h3 { grid-column: 1 / -1; margin-bottom: 4px; }
  .sidenav a { margin: 0; text-align: center; border: 1px solid rgba(79,151,199,.2); padding: 13px 6px; }
  .sidenav a.current { border-color: var(--gold); }
  .accountbox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .accountbox h3, .accountbox .who { grid-column: 1 / -1; margin: 0; }
  .accountbox .side-btn { margin: 0; }
}
.side-btn.ghost { background: rgba(79,151,199,.06); border: 1px solid var(--gold); color: var(--gold-hi); box-shadow: none; }
.side-btn.ghost:hover { background: rgba(79,151,199,.16); color: #fff; filter: none; }

/* Ingresar / registro: centrados */
.auth-title { max-width: 440px; margin-left: auto; margin-right: auto; text-align: center; }
.card.auth { margin-left: auto; margin-right: auto; }
main:has(> .card.auth) { display: flex; flex-direction: column; }
main:has(> .card.auth) > .card.auth { width: 100%; }
main:has(> .card.auth) > .auth-title { width: 100%; }
.card.auth .msg { text-align: left; }
/* Mi cuenta: datos compactos */
.grid.acc { grid-template-columns: 1fr 1fr; max-width: 560px; }
.grid.acc .full { grid-column: 1 / -1; }
.stat b.mail { font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }

/* Formulario de item */
.itemform .ifbar { display: flex; gap: 8px; margin: 0 0 4px; }
.itemform .ifbar button { margin: 0; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0; }
label.chk { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: .95rem; cursor: pointer; }
label.chk input { width: auto; flex: none; }
.excbox { margin: 12px 0; padding: 12px; border: 1px solid var(--gold-dim); border-radius: var(--radius-md); background: rgba(0,0,0,.2); }
.exchead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.exchead b { color: var(--gold-hi); font-family: var(--serif); letter-spacing: 1px; }
.excgrid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.excgrid label.chk { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel2); }
.excgrid label.chk:hover { border-color: var(--gold); }
.ifsum { margin: 8px 0 0; color: var(--gold-hi); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { padding: 6px 12px; border: 1px solid var(--gold-dim); border-radius: 999px; font-size: .85rem; color: var(--gold-hi); }
.chip:hover { background: rgba(79,151,199,.14); text-decoration: none; }
.searchform select { flex: 0 1 240px; }
@media (max-width: 720px) { .searchform select { flex: 1 1 100%; } }
details.found > summary { cursor: pointer; color: var(--gold-hi); font-weight: 600; padding: 6px 0; }
.vipbox { border-color: var(--gold); box-shadow: inset 0 0 0 3px #0e0d12, inset 0 0 0 4px rgba(79,151,199,.16), 0 0 22px rgba(79,151,199,.12); }
.vipbox .side-btn { margin-bottom: 0; }

.feature-event { position: relative; overflow: hidden; }
.feature-event .fe-char {
  position: absolute; right: -18px; top: -10px; width: 320px; max-width: 46%; height: 100%;
  object-fit: cover; object-position: left top; pointer-events: none; z-index: 0;
  opacity: .85;
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent 96%);
  mask-image: linear-gradient(to left, black 55%, transparent 96%);
}
.feature-event > *:not(.fe-char) { position: relative; z-index: 1; }

.castle-section { margin-bottom: 22px; }
.castle-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--gold-dim);
  min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 22px 26px; box-shadow: 0 12px 32px rgba(0,0,0,.5);
  background:
    linear-gradient(100deg, rgba(4,8,14,.94) 0%, rgba(4,8,14,.62) 48%, rgba(4,8,14,.32) 100%),
    url('/assets/brand/bg-hero.jpg') center 35% / cover no-repeat;
}
.castle-hero-owner { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; min-width: 0; }
.castle-hero-crest {
  flex: none; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-dim); border-radius: var(--radius-sm); background: rgba(0,0,0,.45);
  box-shadow: inset 0 0 0 1px rgba(79,199,255,.1);
}
.castle-hero-crest .mark { width: 48px; height: 48px; }
.castle-hero-crest-fallback { font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 0 8px rgba(79,199,255,.5)); }
.castle-hero-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.castle-hero-label {
  color: var(--accent2); text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem;
  font-family: var(--serif); font-weight: 600;
}
.castle-hero-name {
  font-family: var(--display); font-weight: 900; font-size: clamp(1.3rem, 3vw, 2rem); color: #fff;
  text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.7); letter-spacing: .5px; overflow-wrap: anywhere;
}
.castle-hero-sub { color: var(--accent2); font-family: var(--serif); font-weight: 600; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }
.castle-hero-master { color: #d8e6f0; font-size: .82rem; }
.castle-hero-countdown { position: relative; z-index: 1; text-align: right; }
.castle-hero-countdown-label {
  display: block; color: #cfe6fa; font-family: var(--serif); font-weight: 600; font-size: .78rem;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px;
}
.castle-hero-digits { display: flex; gap: 6px; justify-content: flex-end; font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1; }
.castle-hero-digits .cd-seg { text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.castle-hero-digits .cd-seg:nth-child(odd) { color: #fff; }
.castle-hero-digits .cd-seg:nth-child(even) { color: var(--accent2); }
.castle-hero-digits.done { opacity: .6; }
@media (max-width: 640px) {
  .castle-hero { flex-direction: column; align-items: flex-start; padding: 18px; min-height: auto; }
  .castle-hero-countdown { text-align: left; width: 100%; }
  .castle-hero-digits { justify-content: flex-start; }
  .castle-hero-crest { width: 56px; height: 56px; }
  .castle-hero-crest .mark { width: 36px; height: 36px; }
  .castle-hero-crest-fallback { font-size: 1.6rem; }
}

/* ----- Tarjetas grandes de acción (registro, descargas, tienda, discord) ----- */
.promo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 26px; }
.promo-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px;
  min-height: 78px; padding: 10px 12px; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--gold-dim); box-shadow: 0 8px 20px rgba(0,0,0,.4);
  background-size: cover; background-position: center; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.promo-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.5); text-decoration: none; }
.promo-tile::before { content: ""; position: absolute; inset: 0; background: var(--tile-overlay); z-index: 0; }
.promo-tile > * { position: relative; z-index: 1; }
.promo-icon { font-size: .95rem; margin-bottom: 1px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.promo-eyebrow { color: #f0f6fb; font-family: var(--serif); font-weight: 600; font-size: .6rem; letter-spacing: .8px; text-transform: uppercase; opacity: .92; line-height: 1.25; }
.promo-title { color: #fff; font-family: var(--display); font-size: 1.05rem; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,.65); }
.promo-tile.tile-register { background-image: url('/assets/brand/character-emblem.jpg'); background-position: 30% 20%; --tile-overlay: linear-gradient(100deg, rgba(232,114,42,.55), rgba(6,10,16,.86) 65%); }
.promo-tile.tile-download { background-image: url('/assets/brand/bg-hero.jpg'); background-position: 55% 25%; --tile-overlay: linear-gradient(100deg, rgba(63,127,176,.55), rgba(6,10,16,.86) 65%); }
.promo-tile.tile-shop { background-image: url('/assets/brand/bg-hero.jpg'); background-position: 15% 65%; --tile-overlay: linear-gradient(100deg, rgba(191,227,255,.4), rgba(6,10,16,.88) 65%); }
.promo-tile.tile-discord { background-image: url('/assets/brand/character-emblem.jpg'); background-position: 75% 35%; --tile-overlay: linear-gradient(100deg, rgba(88,101,242,.55), rgba(6,10,16,.86) 65%); }
.promo-tile.tile-forum { background-image: url('/assets/brand/bg-hero.jpg'); background-position: 80% 10%; --tile-overlay: linear-gradient(100deg, rgba(46,204,113,.5), rgba(6,10,16,.86) 65%); }

/* ----- Página de Invasiones y Bosses ----- */
.inv-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--gold-dim);
  padding: 26px; margin-bottom: 18px; text-align: center; box-shadow: 0 12px 32px rgba(0,0,0,.5);
  background:
    linear-gradient(180deg, rgba(4,8,14,.75) 0%, rgba(4,8,14,.92) 100%),
    url('/assets/brand/bg-hero.jpg') center 30% / cover no-repeat;
}
.inv-hero-title { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.2rem); color: #fff; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.inv-hero-sub { margin: 6px 0 16px; color: #cfe6fa; font-size: .95rem; }
.inv-clock { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 22px; border: 1px solid var(--gold-dim); border-radius: var(--radius-sm); background: rgba(0,0,0,.4); }
.inv-clock-time { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--accent2); letter-spacing: 1px; }

.inv-stats { margin-bottom: 18px; }

.inv-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.inv-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-chip {
  padding: 7px 14px; border: 1px solid var(--gold-dim); border-radius: 999px; background: rgba(0,0,0,.25);
  color: var(--text); font-family: var(--serif); font-weight: 600; font-size: .82rem; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.inv-chip:hover { border-color: var(--gold); color: var(--gold-hi); }
.inv-chip.is-active { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: var(--gold-hi); color: #04141f; }
.inv-search {
  flex: 1 1 240px; max-width: 320px; padding: 9px 14px; border-radius: var(--radius-sm); font-size: .9rem;
  border: 1px solid #47404f; background: #0f0e13; color: var(--text);
}
.inv-search:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(79,151,199,.2); }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 10px; }
.inv-card {
  border-radius: var(--radius-md); border: 1px solid var(--gold-dim); overflow: hidden;
  background: linear-gradient(155deg, rgba(24,44,66,.85) 0%, rgba(13,18,26,.96) 100%);
  box-shadow: 0 8px 20px rgba(0,0,0,.4); display: flex; flex-direction: column;
}
.inv-media {
  position: relative; height: 110px; background-size: cover; background-position: center;
  display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 12px;
}
.inv-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,8,14,.35), rgba(4,8,14,.88)); }
.inv-media-empty { background: linear-gradient(155deg, rgba(63,127,176,.28), rgba(6,10,16,.9)); display: flex; align-items: center; justify-content: center; }
.inv-media-icon { position: relative; z-index: 1; font-size: 2.4rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); margin: auto; }
.inv-type-badge, .inv-state-badge {
  position: relative; z-index: 1; padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; font-family: var(--serif);
}
.inv-type-badge { background: rgba(0,0,0,.5); border: 1px solid var(--gold-dim); color: var(--gold-hi); }
.inv-state-badge { background: rgba(0,0,0,.5); border: 1px solid var(--muted); color: var(--muted); }
.inv-state-badge.is-on { border-color: var(--ok); color: var(--ok); }
.inv-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.inv-name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: .3px; text-transform: uppercase; color: var(--gold-hi); }
.inv-next { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(0,0,0,.25); }
.inv-next-label { color: var(--muted); font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; }
.inv-next-value { font-family: var(--display); font-weight: 700; color: #fff; }
.inv-next-value.is-running { color: var(--ok); }
.inv-countdown { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: .95rem; margin-left: auto; }
.inv-row { display: flex; flex-direction: column; gap: 4px; }
.inv-row-label { color: var(--muted); font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; }
.inv-chipsrow { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-chipsrow .chip { padding: 3px 10px; font-size: .74rem; }
.chip.reward.is-chance { border-color: var(--accent2); color: var(--accent2); }
.inv-meta { margin: 4px 0 0; }
.inv-footnote { text-align: center; margin: 6px 0 0; }
@media (max-width: 640px) {
  .inv-toolbar { flex-direction: column; align-items: stretch; }
  .inv-search { flex: none; width: 100%; max-width: none; }
  .inv-grid { grid-template-columns: 1fr; }
}

/* ---------- Panel de cuenta (UCP): sidebar con retrato, saldo y menú ---------- */
.ucp-shell { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; width: 100%; }
.ucp-main { min-width: 0; }
.ucp-side {
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid rgba(79,151,199,.22); border-radius: var(--radius-lg); padding: 14px;
  position: sticky; top: 12px;
}
.ucp-portrait {
  aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(79,151,199,.25), rgba(0,0,0,.35));
  border: 1px solid rgba(79,151,199,.3); display: flex; align-items: center; justify-content: center;
}
.ucp-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ucp-portrait-fallback { font-family: var(--display); font-weight: 900; font-size: 2.6rem; color: var(--accent2); }
.ucp-id { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(79,151,199,.22); border-radius: var(--radius-sm); background: rgba(0,0,0,.22); }
.ucp-flag { font-size: 1.1rem; line-height: 1; }
.ucp-name { font-family: var(--display); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: .92rem; color: #fff; overflow-wrap: anywhere; }
.ucp-coin { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(232,114,42,.4); border-radius: var(--radius-sm); background: rgba(232,114,42,.08); color: var(--accent2); font-weight: 700; font-size: .88rem; }
.ucp-coin-icon { font-size: 1rem; }
.ucp-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ucp-nav a {
  display: block; text-align: center; padding: 11px 10px; border-radius: var(--radius-sm);
  border: 1px solid rgba(79,151,199,.22); background: rgba(0,0,0,.2); color: var(--text);
  font-weight: 700; letter-spacing: .3px; text-transform: uppercase; font-size: .76rem; text-decoration: none;
}
.ucp-nav a:hover { border-color: var(--gold); color: var(--gold-hi); }
.ucp-nav a.current { background: linear-gradient(135deg, var(--danger), #b8362b); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(217,72,58,.35); }

/* Encabezado "Mi cuenta": retrato grande + bienvenida */
.ucp-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.ucp-hero-portrait { width: 92px; height: 92px; flex: 0 0 auto; border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(79,151,199,.3); background: radial-gradient(circle at 50% 20%, rgba(79,151,199,.25), rgba(0,0,0,.35)); display: flex; align-items: center; justify-content: center; }
.ucp-hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ucp-hero-portrait .ucp-portrait-fallback { font-size: 1.8rem; }
.ucp-hero-text h1 { margin: 0 0 4px; }
.ucp-hero-meta { margin: 0; color: var(--muted); font-size: .85rem; }
.ucp-hero-meta b { color: var(--text); }

@media (max-width: 760px) {
  .ucp-shell { grid-template-columns: 1fr; }
  .ucp-side { position: static; }
  .ucp-hero { flex-direction: column; text-align: center; }
}

/* Estado de la cuenta / sistema de karma */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; border: 1px solid transparent; }
.badge.tone-ok { background: rgba(46,204,113,.12); border-color: rgba(46,204,113,.4); color: var(--ok); }
.badge.tone-warn { background: rgba(232,114,42,.12); border-color: rgba(232,114,42,.4); color: var(--accent2); }
.badge.tone-danger { background: rgba(217,72,58,.14); border-color: rgba(217,72,58,.45); color: var(--danger); }
.karma-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.karma-eyebrow { color: var(--muted); font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; }
.karma-points { margin: 10px 0 8px; font-size: 1rem; }
.karma-points b { font-family: var(--display); font-size: 1.4rem; color: #fff; }
.karma-bar { height: 8px; border-radius: 999px; background: rgba(0,0,0,.35); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.karma-bar-fill { height: 100%; border-radius: 999px; background: var(--ok); }
.karma-bar-fill.tone-warn { background: var(--accent2); }
.karma-bar-fill.tone-danger { background: var(--danger); }
.karma-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; margin-top: 6px; }
.karma-clean { color: var(--ok); font-size: .88rem; margin: 12px 0 0; }
.karma-details { margin-top: 14px; border-top: 1px solid rgba(79,151,199,.18); padding-top: 10px; }
.karma-details summary { cursor: pointer; font-weight: 700; color: var(--gold-hi); }
.karma-details p { color: var(--muted); font-size: .85rem; }
.karma-history { margin-top: 10px; }
.karma-plus { color: var(--danger); font-weight: 700; }
.karma-minus { color: var(--ok); font-weight: 700; }
.rowform-inline { display: inline; margin: 0; }

/* Invasión destacada en la portada (resumen de /invasiones) */
.home-inv { margin-bottom: 22px; }
.home-inv-hero { margin-bottom: 14px; padding: 20px; }
.home-inv-current { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.home-inv-current-icon {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: var(--radius-md); font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(63,127,176,.28), rgba(6,10,16,.9)); border: 1px solid var(--gold-dim);
}
.home-inv-current-body { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.home-inv-current-body .inv-name { margin: 0; }
.home-inv-cta { margin: 0; flex: 0 0 auto; }
@media (max-width: 640px) {
  .home-inv-current { flex-direction: column; align-items: stretch; text-align: center; }
  .home-inv-current-icon { margin: 0 auto; }
  .home-inv-cta { width: 100%; text-align: center; }
}

/* Botón de música de fondo (esquina inferior derecha) */
.music-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(24,44,66,.92), rgba(13,18,26,.96));
  border: 1px solid var(--gold-dim); color: var(--gold-hi);
  box-shadow: 0 6px 18px rgba(0,0,0,.4); cursor: pointer; margin: 0;
}
.music-toggle:hover { filter: none; transform: translateY(-1px); border-color: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.music-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.fx-toggle { bottom: 72px; }
.fx-toggle[aria-pressed="false"] { color: var(--muted); }
.fx-toggle[aria-pressed="false"] svg { opacity: .55; }
/* Modo "sin efectos" (botón de la esquina, o automático si la PC no da abasto): quita todo lo animado del fondo y del logo */
html.fx-off .bg-embers, html.fx-off .logo-energy { display: none; }
html.fx-off .brand-logo, html.fx-off .logo-aura, html.fx-off .logo-scan { animation: none !important; }

/* Botón de sugerencias (panel de Cuenta) + modal */
.suggest-side-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #5865f2; border: 1px solid rgba(88,101,242,.55); color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.suggest-side-btn:hover {
  background: #6b74f5; filter: none; color: #fff;
  box-shadow: 0 0 0 3px rgba(88,101,242,.25), 0 6px 18px rgba(88,101,242,.28);
}
.suggest-fab-icon { width: 20px; height: 20px; fill: #fff; flex: none; }
.suggest-side-btn .suggest-fab-icon { width: 16px; height: 16px; }
.suggest-modal {
  position: fixed; inset: 0; z-index: 70; background: rgba(6,5,8,.72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.suggest-modal[hidden] { display: none; }
.suggest-modal-panel {
  position: relative; width: 100%; max-width: 440px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
}
.suggest-modal-panel h3 { margin: 0 0 6px; }
.suggest-modal-panel form label:first-of-type { margin-top: 14px; }
.suggest-modal-close {
  position: absolute; top: 8px; right: 10px; background: none; border: 0;
  color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.suggest-modal-close:hover { color: var(--text); }
.suggest-modal-panel button[type=submit] { margin-top: 16px; }
.suggest-text { white-space: pre-wrap; max-width: 420px; }

/* Mini-formulario de baneo inline por personaje (tabla de Personajes en la ficha de cuenta) */
.char-ban-form { display: inline-flex !important; gap: 6px; align-items: center; flex-wrap: wrap; }
.char-ban-form select, .char-ban-form input[type=text] { width: auto; min-width: 90px; }
.char-ban-form input[type=text] { min-width: 120px; }

/* Checkbox de términos (registro) y preferencias de cookies */
.check-line {
  display: flex; align-items: flex-start; gap: 8px; margin: 14px 0;
  color: var(--muted); font-size: .85rem; text-transform: none; letter-spacing: normal;
  font-family: inherit; font-weight: 400;
}
.check-line input[type=checkbox] { width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.check-line a { color: var(--gold-hi); }

/* Widget de verificación (Cloudflare Turnstile) en registro/login */
.cf-turnstile { margin: 14px 0; }

/* Aviso de cookies (banner inferior + modal de preferencias) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: rgba(10,9,13,.97); border-top: 1px solid var(--gold-dim);
  box-shadow: 0 -6px 18px rgba(0,0,0,.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: .85rem; }
.cookie-banner-text p { margin: 0; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cookie-banner-actions .btn { margin: 0; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}
.cookie-modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(6,5,8,.72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-panel {
  position: relative; width: 100%; max-width: 420px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
}
.cookie-modal-panel h3 { margin: 0 0 14px; }
.cookie-modal-panel .btn { margin-top: 4px; }

/* Foro */
.forum-modbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.forum-modbar .inline-form { margin: 0; }
.forum-modbar .btn { margin: 0; }

/* Portada: categorías como tarjetas */
.forum-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 8px; }
.forum-cat-card {
  display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; transition: transform .15s ease, border-color .15s ease;
}
.forum-cat-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.forum-cat-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; background: rgba(79,151,199,.14);
}
.forum-cat-icon.cat-anuncios { background: rgba(232,114,42,.16); }
.forum-cat-icon.cat-soporte  { background: rgba(217,72,58,.14); }
.forum-cat-icon.cat-general  { background: rgba(46,204,113,.14); }
.forum-cat-icon.cat-comercio { background: rgba(63,127,176,.22); }
.forum-cat-body { flex: 1; min-width: 0; }
.forum-cat-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.forum-cat-desc { color: var(--muted); font-size: .82rem; margin: 0 0 10px; }
.forum-cat-stats { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.forum-cat-stats b { color: var(--text); }
.forum-cat-last { display: flex; align-items: center; gap: 8px; font-size: .82rem; border-top: 1px solid var(--line); padding-top: 10px; }

/* Avatar circular (inicial de la cuenta, color fijo según el nombre; o una foto subida, ver .forum-avatar img) */
.forum-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-family: var(--display); color: #04141f; font-size: .95rem;
  overflow: hidden;
}
.forum-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.forum-avatar.sm { width: 26px; height: 26px; font-size: .7rem; }
.forum-avatar.lg { width: 56px; height: 56px; font-size: 1.3rem; margin: 0 auto; }
.forum-avatar.xl { width: 96px; height: 96px; font-size: 2rem; margin: 0 auto; }
.forum-avatar.c0 { background: #9b59b6; }
.forum-avatar.c1 { background: #4fc7ff; }
.forum-avatar.c2 { background: #e8722a; }
.forum-avatar.c3 { background: #2ecc71; }
.forum-avatar.c4 { background: #d9483a; }
.forum-avatar.c5 { background: #6fa8dc; }
.forum-avatar.c6 { background: #f0c419; }
.forum-avatar.c7 { background: #16a596; }

/* Lista de temas de una categoría */
.forum-topics { display: flex; flex-direction: column; gap: 10px; }
.forum-topic-row {
  display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 16px; transition: border-color .15s ease, transform .15s ease;
}
.forum-topic-row:hover { border-color: var(--gold); transform: translateX(2px); }
.forum-topic-main { flex: 1; min-width: 0; }
.forum-topic-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.forum-topic-title:hover { color: var(--gold-hi); }
.forum-topic-meta { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.forum-topic-stats { flex: none; text-align: center; min-width: 70px; }
.forum-topic-stats b { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--accent); }
.forum-topic-stats span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* Tema abierto: mensajes con avatar al costado */
.forum-msgs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.forum-msg { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.forum-msg-side { flex: none; width: 78px; text-align: center; }
.forum-msg-name { font-size: .78rem; font-weight: 700; color: var(--gold-hi); margin-top: 6px; word-break: break-word; }
.forum-msg-body { flex: 1; min-width: 0; }
.forum-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.forum-msg-text { white-space: pre-line; line-height: 1.6; overflow-wrap: anywhere; }
.forum-msg-del { text-align: right; margin-top: 10px; }

/* Caja de respuesta compacta (avatar + textarea + botón en una fila) */
.forum-reply-box { display: flex; gap: 10px; align-items: flex-end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.forum-reply-box textarea { flex: 1; width: auto; margin: 0; min-height: 46px; resize: vertical; }
.forum-reply-box button { margin: 0; flex: none; }

@media (max-width: 560px) {
  .forum-reply-box { flex-direction: column; align-items: stretch; }
  .forum-msg { flex-direction: column; }
  .forum-msg-side { width: auto; display: flex; align-items: center; gap: 10px; text-align: left; }
  .forum-msg-name { margin: 0; }
  .forum-msg-del { text-align: left; }
}

/* Chat en vivo (widget del inicio + página /chat) */
.chat-widget-section { margin-bottom: 8px; }
.chat-widget-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.chat-widget-head h2 { margin: 0; }
.chat-box { display: flex; flex-direction: column; gap: 10px; }
.chat-messages {
  display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding-right: 4px;
  height: 260px; scroll-behavior: smooth;
}
.chat-box-full .chat-messages { height: 480px; }
.chat-messages:empty::after { content: "Todavía no hay mensajes. ¡Escribí el primero!"; color: var(--muted); font-size: .85rem; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.chat-msg-name { font-weight: 700; }
.chat-msg-time { color: var(--muted); font-size: .72rem; }
.chat-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.chat-msg-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.chat-msg-del,
.chat-msg-mute,
.chat-msg-kick { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .72rem; padding: 0; text-decoration: underline; }
.chat-msg-del:hover { color: var(--danger); }
.chat-msg-mute:hover { color: var(--accent2); }
.chat-msg-kick:hover { color: var(--danger); }
.chat-status { min-height: 1.1em; }
.chat-status.is-error { color: var(--danger); }

/* Insignia de rol junto al nombre (admin / moderador) */
.chat-role-badge {
  display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .6rem; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase; vertical-align: middle;
}
.chat-role-badge.admin { background: rgba(232,114,42,.16); border: 1px solid rgba(232,114,42,.5); color: var(--accent2); }
.chat-role-badge.mod   { background: rgba(46,204,113,.14); border: 1px solid rgba(46,204,113,.45); color: var(--ok); }
.chat-role-badge.rank  { background: rgba(191,227,255,.14); border: 1px solid var(--gold-dim); color: var(--gold-hi); }

/* Nombre y avatar del chat, clickeables al perfil público de esa cuenta */
a.chat-msg-name,
a.forum-avatar { text-decoration: none; }
a.chat-msg-name:hover { text-decoration: underline; }
a.forum-avatar:hover { filter: brightness(1.12); }

/* Perfil público de chat (/chat/perfil?u=cuenta) */
.chat-profile-card { padding: 22px; }
.chat-profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.chat-profile-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.chat-profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.chat-profile-bio { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); white-space: pre-wrap; word-break: break-word; }

.chat-form { display: flex; flex-direction: column; gap: 8px; position: relative; }
.chat-input-row { display: flex; gap: 8px; align-items: center; }
.chat-input-row input[type=text] { flex: 1; margin: 0; }
.chat-input-row button { margin: 0; flex: none; }
.chat-emoji-toggle {
  flex: none; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm);
  background: var(--panel2); border: 1px solid var(--line); font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.chat-emoji-toggle:hover { border-color: var(--gold); }
.chat-emoji-toggle.is-active { border-color: var(--accent); background: rgba(79,151,199,.16); }
.chat-emoji-panel {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 10px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-md);
  max-height: 220px; overflow-y: auto;
  /* Flota como una solapa arriba del cuadro de texto, en vez de empujar el chat hacia abajo. */
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 5;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
/* Sin esto, el "hidden" del HTML no alcanza: la regla de arriba (display: grid) le gana al estilo
   por defecto del navegador para [hidden], y el panel queda siempre abierto en vez de desplegarse
   recién al apretar el botón de emoticones. */
.chat-emoji-panel[hidden] { display: none; }
@media (max-width: 560px) { .chat-emoji-panel { max-height: 180px; } }
.chat-emoji-panel button {
  margin: 0; padding: 4px; background: transparent; border: none; border-radius: var(--radius-sm);
  font-size: 1.15rem; cursor: pointer; line-height: 1.4;
}
.chat-emoji-panel button:hover { background: rgba(79,151,199,.16); }
@media (max-width: 560px) { .chat-emoji-panel { grid-template-columns: repeat(6, 1fr); } }

/* Fuentes: solo pilas de fuentes genéricas del sistema, nunca fuentes externas */
.chat-font-serif  { font-family: Georgia, "Times New Roman", serif; }
.chat-font-mono   { font-family: "Courier New", Consolas, monospace; }
.chat-font-cursive{ font-family: "Comic Sans MS", cursive; }

/* Efectos de nombre, solo con CSS (sin imágenes ni scripts externos) */
.chat-effect-glow { text-shadow: 0 0 6px currentColor, 0 0 12px currentColor; }
.chat-effect-rainbow {
  background-image: linear-gradient(90deg, #ff5e5e, #ffb347, #f5e663, #6fe36f, #4fc7ff, #b06fe3, #ff5e5e);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chat-rainbow 4s linear infinite;
}
@keyframes chat-rainbow { from { background-position: 0% 0; } to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .chat-effect-rainbow { animation: none; } }

/* "Letras en movimiento": cada letra es su propio span con un retraso escalonado (ver app.js) */
.chat-effect-wave .wave-letter { display: inline-block; animation: chat-wave 1s ease-in-out infinite; }
@keyframes chat-wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .chat-effect-wave .wave-letter { animation: none; } }

/* "Neón flúo": brillo pulsante bien llamativo, pensado para usarse con colores flúo */
.chat-effect-neon { animation: chat-neon-pulse 1.6s ease-in-out infinite; }
@keyframes chat-neon-pulse {
  0%, 100% { text-shadow: 0 0 4px currentColor, 0 0 10px currentColor; }
  50%      { text-shadow: 0 0 11px currentColor, 0 0 22px currentColor, 0 0 32px currentColor; }
}
@media (prefers-reduced-motion: reduce) { .chat-effect-neon { animation: none; text-shadow: 0 0 8px currentColor; } }

/* "Letras con rebote": como "wave" pero con un salto más marcado (ver app.js) */
.chat-effect-bounce .bounce-letter { display: inline-block; animation: chat-bounce 0.9s ease-in-out infinite; }
@keyframes chat-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30%      { transform: translateY(-7px) scale(1.12); }
  55%      { transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .chat-effect-bounce .bounce-letter { animation: none; } }

/* Emoticones con movimiento (picker y ya escritos en los mensajes) */
.chat-emoji-anim { display: inline-block; animation: chat-emoji-bob 1.4s ease-in-out infinite; }
@keyframes chat-emoji-bob {
  0%, 100%  { transform: translateY(0) rotate(0deg); }
  25%       { transform: translateY(-3px) rotate(-9deg); }
  75%       { transform: translateY(-1px) rotate(9deg); }
}
@media (prefers-reduced-motion: reduce) { .chat-emoji-anim { animation: none; } }

/* Paleta rápida de colores flúo para /chat/perfil (además del selector de color libre) */
.chat-neon-swatches { display: flex; gap: 7px; flex-wrap: wrap; margin: 6px 0 12px; }
.chat-neon-swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3);
  cursor: pointer; padding: 0; box-shadow: 0 0 6px 0 currentColor;
}
.chat-neon-swatch:hover, .chat-neon-swatch:focus-visible { border-color: #fff; transform: scale(1.12); }

/* Vista previa en /chat/perfil */
.chat-preview-box { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); }
.chat-preview-box .forum-avatar { margin: 0; }

/* Foto de perfil en /chat/perfil: círculo grande + formulario de subida, arriba del resto del formulario */
.chat-avatar-box {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 20px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.chat-avatar-form { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 320px; }
.chat-avatar-form input[type=file] { width: 100%; }
.chat-avatar-remove { margin: 0; }
.chat-avatar-remove button { background: transparent; border: 1px solid var(--line); color: var(--muted); }

@media (max-width: 560px) {
  .chat-widget-head { flex-direction: column; align-items: flex-start; }
  .chat-messages { height: 220px; }
  .chat-box-full .chat-messages { height: 380px; }
}

/* ===== Fondo ambiental: noche de tormenta (nubes + humo con luz de fuego + relámpagos + brasas) ===== */
.site-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); contain: strict; }
.site-bg > * { position: absolute; }
.bg-sky {
  inset: 0;
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(232,114,42,.55) 0%, rgba(160,60,30,.28) 28%, transparent 62%),
    radial-gradient(80% 50% at 80% 30%, rgba(63,127,176,.28), transparent 70%),
    linear-gradient(180deg, #06070d 0%, #0b1020 38%, #1a1426 66%, #3a1c1c 88%, #5a2512 100%);
}
.bg-gl { inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease; }
.site-bg.gl-ok .bg-gl { opacity: 1; }
.site-bg.gl-ok .bg-sky { display: none; }
.bg-embers { inset: 0; width: 100%; height: 100%; }
.bg-veil {
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(11,10,13,0) 0%, rgba(11,10,13,.35) 100%),
    linear-gradient(180deg, rgba(11,10,13,.4) 0%, rgba(11,10,13,.12) 45%, rgba(11,10,13,.25) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .bg-embers { display: none; }
}
