/* Web oficial de Drafter: el estilo de la app (oscuro y dorado, tipo cliente de LoL). */
@font-face {
  font-family: 'Cinzel';
  src: url('/fonts/cinzel-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/cinzel-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #0a0e13;
  --bg-2: #0d131a;
  --panel: #111922;
  --panel-2: #16202b;
  --line: #223140;
  --line-2: #2c3e50;
  --text: #ece6d6;
  --muted: #9aa6b2;
  --faint: #66737f;
  --gold: #c8aa6e;
  --gold-hi: #f0e6d2;
  --gold-lo: #785a28;
  --hex: #0ac8b9;
  --good: #3ddc97;
  --radius: 10px;
  --wrap: 1180px;
  --gutter: 24px;
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --display: 'Cinzel', Constantia, Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-color: rgba(200, 170, 110, .4); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--hex); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: .01em; color: var(--gold-hi); margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 4.3vw, 52px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
p { margin: 0 0 1em; }
code { font: .92em 'Cascadia Mono', Consolas, monospace; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
mark.todo { background: rgba(245, 182, 66, .18); color: #f5b642; border: 1px dashed #f5b642; padding: 0 4px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.small { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.anchor { position: relative; top: -70px; }
[id] { scroll-margin-top: 80px; }

/* ---------- botones (como los del cliente: borde dorado y degradado) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; min-height: 44px;
  font: 700 14px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border-radius: 4px; border: 1px solid; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: 12px; }
.btn-gold {
  color: #1a1408; border-color: #e5cf9a;
  background: linear-gradient(180deg, #f0dba5 0%, #c8aa6e 55%, #a7884b 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 6px 24px rgba(200, 170, 110, .25), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover { color: #1a1408; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 10px 34px rgba(200, 170, 110, .4), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { color: var(--gold-hi); border-color: var(--gold-lo); background: rgba(10, 14, 19, .6); }
.btn-ghost:hover { color: #fff; border-color: var(--gold); background: rgba(200, 170, 110, .1); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* ---------- cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 19, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 170, 110, .18);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-hi); text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.brand:hover { color: #fff; }
.brand .logo { width: 26px; height: 26px; color: var(--gold); }
.brand-sm { font-size: 18px; }
.brand-sm .logo { width: 22px; height: 22px; }
.nav { display: flex; gap: 26px; margin-left: 16px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav a:hover { color: var(--gold-hi); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-grid; place-items: center; width: 40px; height: 36px;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .06em;
  border: 1px solid var(--line-2); border-radius: 4px;
}
.lang:hover { color: var(--gold-hi); border-color: var(--gold-lo); }

/* ---------- portada ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(10, 200, 185, .10), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(200, 170, 110, .12), transparent 60%),
    linear-gradient(180deg, #0c1219 0%, var(--bg) 100%);
}
.hero::before {
  /* Rejilla de rombos muy tenue, como el fondo del cliente. */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(45deg, rgba(200, 170, 110, .05) 1px, transparent 1px), linear-gradient(-45deg, rgba(200, 170, 110, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.eyebrow { color: var(--hex); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: 18px; color: #cfd5da; max-width: 60ch; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.meta svg { width: 16px; height: 16px; color: var(--faint); }
.meta .ver::before { content: '·'; margin-right: 8px; }

.frame {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(200, 170, 110, .45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 24px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(200, 170, 110, .08);
  background: var(--panel);
}
.zoom { display: block; cursor: zoom-in; }
.zoom img { transition: transform .35s var(--ease); }
.zoom:hover img { transform: scale(1.015); }
.frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.hero-img { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; width: 112%; }
.frame-tall {
  margin: 0 auto; max-width: 360px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(200, 170, 110, .45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 24px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(10, 200, 185, .08);
}

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 22px 18px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { font: 700 16px/1.3 var(--display); color: var(--gold-hi); letter-spacing: .03em; }
.fact span { color: var(--muted); font-size: 14px; }

.intro { padding: 96px 0 24px; text-align: center; }
.intro p { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 auto; }

.feat { padding: 64px 0; }
.feat-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feat.flip .feat-txt { order: 2; }
.feat.tall .feat-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat.tall.flip .feat-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feat.tall .feat-img { max-height: 640px; }
.feat.tall .frame-tall img { width: 100%; }
.feat-txt > p:not(.kicker) { color: #c4cbd1; }
.kicker { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.kicker::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 10px 2px 0; background: var(--gold); transform: rotate(45deg); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 18px; height: 18px; color: var(--good); flex: none; margin-top: 3px; }

.steps { padding: 96px 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); text-align: center; }
.steps-list { list-style: none; counter-reset: s; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.steps-list li {
  counter-increment: s; position: relative; padding: 26px 22px 22px 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px;
}
.steps-list li::before {
  content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px;
  font: 700 18px/1 var(--display); color: #1a1408;
  background: linear-gradient(180deg, #f0dba5, #a7884b); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.steps-list b { font: 700 19px/1.3 var(--display); color: var(--gold-hi); }
.steps-list span { color: var(--muted); }
.steps .cta { margin-top: 40px; }
.steps .small { margin-top: 14px; }

.faq { padding: 80px 0; }
.faq h2 { text-align: center; margin-bottom: 32px; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 10px; }
details[open] { border-color: rgba(200, 170, 110, .35); }
summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative;
  font-weight: 700; color: var(--gold-hi); min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s var(--ease);
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { padding: 0 20px 18px; margin: 0; color: #c4cbd1; }

.community { padding: 0 0 96px; }
.community-in {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 44px; border-radius: 14px;
  background: radial-gradient(600px 240px at 0% 0%, rgba(88, 101, 242, .22), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(200, 170, 110, .3);
}
.community-in h2 { margin-bottom: 8px; }
.community-in p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- páginas legales ---------- */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(32px, 4.2vw, 46px); }
.legal .updated { color: var(--faint); font-size: 14px; }
.legal .lead { margin-top: 18px; }
.legal h2 { font-size: 24px; margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.legal section:first-of-type h2 { border-top: 0; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 10px; color: #cfd5da; }
.legal li::marker { color: var(--gold); }
.legal p { color: #cfd5da; }
.legal b { color: var(--text); }
.toc { margin: 32px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { text-decoration: none; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: var(--panel); }
tr:last-child td { border-bottom: 0; }
td { color: #cfd5da; }

.nf { padding: 120px 0; }
.nf p { color: var(--muted); }

/* ---------- pie ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 28px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--gold-hi); }
.riot { margin: 24px 0 8px; color: var(--faint); font-size: 12.5px; max-width: 100ch; }
.copy { margin: 0; color: var(--faint); font-size: 12.5px; }

/* ---------- tamaños ---------- */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-img { transform: none; width: 100%; }
  .feat-in, .feat.tall .feat-in, .feat.tall.flip .feat-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feat.flip .feat-txt { order: 0; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps-list { grid-template-columns: minmax(0, 1fr); }
  .community-in { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hero { padding: 44px 0 40px; }
  .lead { font-size: 17px; }
  .cta .btn { width: 100%; justify-content: center; }
  .meta .ver:not([hidden]) { flex-basis: 100%; padding-left: 24px; }
  .meta .ver::before { content: none; }
  .top-act .btn span { display: none; }
  .top-act .btn { padding: 7px 10px; }
  .feat { padding: 44px 0; }
  .intro, .steps { padding-top: 64px; }
  .fact { padding: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}

/* ---------- Mi cuenta ---------- */
.top-act .btn.on { border-color: var(--gold); color: #fff; }
.acct-page { padding: 64px 0 96px; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200, 170, 110, .08), transparent 70%); }
.acct-wrap { max-width: 560px; }
.acct-page h1 { margin-bottom: .3em; }
.acct-lead { color: var(--muted); margin-bottom: 28px; }
.acct-lead b { color: var(--text); }
.acct-box {
  position: relative; padding: 28px; border-radius: var(--radius);
  border: 1px solid rgba(200, 170, 110, .28);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(240, 230, 210, .05);
}
.acct-box::before { content: ''; position: absolute; inset: -1px -1px auto; height: 2px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.acct-view { display: flex; flex-direction: column; gap: 16px; }
.acct-view[hidden] { display: none; }
.acct-view h2 { font-size: 24px; margin: 0; }
.acct-view h3 { font: 700 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 10px 0 -4px; }
.acct-wait { flex-direction: row; align-items: center; justify-content: center; color: var(--muted); padding: 24px 0; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.acct-off { align-items: center; text-align: center; color: var(--muted); }
.acct-off svg { width: 40px; height: 40px; color: var(--gold); }
.acct-off p { margin: 0; }
.btn.wide { width: 100%; justify-content: center; }
.btn-google { width: 100%; justify-content: center; color: #1f1f1f; background: #f4f1ea; border-color: #f4f1ea; text-transform: none; letter-spacing: .01em; font-size: 15px; }
.btn-google:hover { color: #000; background: #fff; border-color: var(--gold); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.field > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field small { color: var(--faint); font-size: 12.5px; }
.field input {
  font: 16px var(--font); color: var(--text); background: var(--bg); padding: 11px 13px; border-radius: 6px;
  border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 170, 110, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--gold); flex: none; }
.acct-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.acct-links a { text-decoration: none; }
.acct-links a:hover { text-decoration: underline; }
.fine { margin: 0; font-size: 12.5px; color: var(--faint); }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.acct-view > .hint[data-f] { padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 6px; }
.acct-msg { margin: 0; padding: 11px 14px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.acct-msg.bad { color: #f3b1b1; background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .35); }
.acct-msg.ok { color: #bfeedd; background: rgba(61, 220, 151, .07); border: 1px solid rgba(61, 220, 151, .3); }
.busy { opacity: .7; }
.busy [type=submit] { cursor: progress; }
.me { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 8px; border: 1px solid rgba(125, 155, 190, .17); background: linear-gradient(180deg, rgba(26, 38, 51, .97), rgba(14, 21, 30, .97)); }
.me-av {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font: 700 20px/1 var(--font); color: var(--gold-hi); background: radial-gradient(circle at 35% 30%, #273646, #111922);
  box-shadow: 0 0 0 2px var(--rk, var(--gold)), 0 0 16px color-mix(in srgb, var(--rk, var(--gold)) 35%, transparent);
}
.me-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.me-who b { color: var(--gold-hi); font-size: 17px; }
.me-who b[hidden] { display: none; }
.me-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-who small { color: var(--faint); font-size: 13px; }
.rank {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rk, var(--muted));
  border: 1px solid color-mix(in srgb, var(--rk, var(--muted)) 60%, transparent); background: color-mix(in srgb, var(--rk, var(--muted)) 12%, transparent);
}
.rank[hidden] { display: none; }
.rank svg { width: 15px; height: 15px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.row[hidden] { display: none; }
.row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.row small { color: var(--faint); font-size: 13px; line-height: 1.45; }
.uses { white-space: nowrap; color: var(--muted); }
.uses b { font-size: 20px; color: var(--gold-hi); }
.acct-riot { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acct-riot[hidden] { display: none; }
.acct-riot li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 6px; background: rgba(255, 255, 255, .032); border: 1px solid rgba(255, 255, 255, .065); }
.acct-riot .rid { flex: 1; font-weight: 600; }
.acct-riot .rid i { font-style: normal; font-weight: 400; color: var(--faint); }
.acct-riot .rreg { color: var(--faint); font-size: 12.5px; letter-spacing: .04em; }
.acct-riot .ruse { color: var(--muted); font-size: 13.5px; min-width: 64px; text-align: right; }
.acct-riot li > [hidden] { display: none; }
.acct-riot .unlink { border-color: transparent; background: transparent; color: var(--faint); }
.acct-riot .unlink:hover { border-color: var(--gold-lo); color: var(--gold-hi); }
.acct-riot .runlink { display: inline-flex; align-items: center; gap: 8px; color: #f0c9c9; font-size: 13.5px; }
.acct-feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acct-feat[hidden] { display: none; }
.acct-feat li { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: 6px; background: rgba(255, 255, 255, .032); border: 1px solid rgba(255, 255, 255, .065); border-left: 2px solid var(--gold); }
.acct-feat b { color: var(--gold-hi); }
.acct-feat span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.acct-view h3[hidden], .acct-view .hint[hidden] { display: none; }
.btn-danger { color: #f3a5a5; border-color: rgba(255, 107, 107, .45); background: transparent; }
.btn-danger:hover { color: #fff; border-color: #ff6b6b; background: rgba(255, 107, 107, .12); }
.btn-danger.solid { color: #fff; background: #8e2a33; border-color: #b8414b; }
.danger { padding: 14px 16px; border-radius: 8px; border: 1px solid rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .06); }
.danger[hidden] { display: none; }
.danger p { margin: 0 0 12px; font-size: 14px; color: #f0c9c9; }
.danger b { color: #fff; }
.danger-act { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.acct-foot { margin: 20px 0 0; font-size: 13.5px; color: var(--faint); text-align: center; }
@media (max-width: 560px) {
  .acct-page { padding: 36px 0 64px; }
  .acct-box { padding: 20px 16px; }
  .me { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .me .rank { grid-column: 1 / -1; justify-self: start; }
  .row { flex-direction: column; align-items: stretch; gap: 10px; }
  .row .btn { justify-content: center; }
  .acct-riot .rreg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spin { animation-duration: 2.4s; }
}

/* ---------- Panel de administración (/admin/) ---------- */
:root {
  /* Gráficas: la serie única en el dorado de la marca; las de varias, los tres primeros colores de la paleta
     categórica para fondo oscuro (comprobados con el validador de daltonismo y contraste sobre --panel). */
  --viz-gold: #c8aa6e;
  --viz-1: #3987e5;
  --viz-2: #d95926;
  --viz-3: #199e70;
  --viz-muted: #4a5866;
  --viz-grid: #1d2a37;
}
.adm-page { padding: 36px 0 88px; background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(200, 170, 110, .06), transparent 70%); }
.adm-wrap, body[data-page=admin] .top .wrap, body[data-page=admin] .foot .wrap { max-width: 1320px; }
.adm-view[hidden], .adm-pane[hidden], .adm-pager[hidden], .viz-tip[hidden] { display: none; }
.adm-wait { padding: 48px 0; }
.adm-gate {
  max-width: 560px; margin: 32px auto; padding: 32px 28px; text-align: center; border-radius: var(--radius);
  border: 1px solid rgba(200, 170, 110, .28); background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.adm-gate h1 { font-size: clamp(26px, 3vw, 34px); }
.adm-gate p { color: var(--muted); }
.adm-gate b { color: var(--text); }
.adm-gate .cta { justify-content: center; margin-top: 18px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-head h1 { font-size: clamp(28px, 3vw, 38px); margin: 0; }
.adm-head .eyebrow { margin-bottom: 8px; }
.adm-me { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; min-width: 0; }
.adm-me-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.adm-page .rank { font-size: 11.5px; padding: 3px 10px 3px 8px; }
.adm-page .rank svg { width: 13px; height: 13px; }
.adm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
  color: var(--muted); font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 15px 14px 13px; min-height: 44px;
}
.adm-tab:hover { color: var(--gold-hi); }
.adm-tab.on { color: var(--gold-hi); border-bottom-color: var(--gold); }
.adm-pane > .acct-msg, .adm-view > .acct-msg { margin-bottom: 14px; }
.adm-page .busy { opacity: .6; transition: opacity .15s; }

/* Campos */
.adm-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.adm-field > span { font-weight: 600; }
.adm-field small { color: var(--faint); font-size: 12px; line-height: 1.4; }
.adm-page input[type=search], .adm-page input[type=text], .adm-page input[type=email], .adm-page input[type=number], .adm-page input:not([type]), .adm-page select, .adm-page textarea {
  font: 15px/1.3 var(--font); color: var(--text); background: var(--bg); padding: 9px 11px; min-height: 40px; max-width: 100%;
  border: 1px solid var(--line-2); border-radius: 6px; transition: border-color .15s, box-shadow .15s;
}
.adm-page textarea { resize: vertical; min-height: 76px; }
.adm-page input:focus, .adm-page select:focus, .adm-page textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 170, 110, .18); }
.adm-page input[readonly] { color: var(--faint); }
.adm-page input:disabled, .adm-page select:disabled { opacity: .55; }
.adm-page input[type=color] { width: 56px; height: 40px; padding: 3px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); cursor: pointer; }
.adm-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-inline > input, .adm-inline > select { flex: 1 1 160px; min-width: 0; }
.adm-form { display: flex; flex-direction: column; gap: 12px; }
.adm-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.adm-actions.start { justify-content: flex-start; }
.adm-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.adm-checks .check, .adm-field .check { align-items: center; color: var(--text); }
.adm-checks .check input, .adm-field .check input { margin-top: 0; }
.adm-checks small { color: var(--faint); }

/* Piezas */
.adm-sub { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.adm-note { margin: 12px 0 0; font-size: 13px; color: var(--faint); max-width: 92ch; line-height: 1.55; }
.adm-note code, .adm-item code, .adm-feats code { font-size: 12px; }
.adm-empty { margin: 0; color: var(--faint); font-size: 14px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 6px; }
.adm-faint { color: var(--faint); }
.adm-chip {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line-2);
}
.adm-chip.bad { color: #f3b1b1; border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .08); }
.adm-chip.ok { color: #bfeedd; border-color: rgba(61, 220, 151, .35); background: rgba(61, 220, 151, .07); }
.adm-chip.gold { color: var(--gold-hi); border-color: var(--gold-lo); background: rgba(200, 170, 110, .08); }
.adm-card, .adm-stat, .adm-item, .viz {
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); min-width: 0;
}
.adm-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.adm-card h2 { font: 700 12px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.adm-stat { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.adm-stat > span { color: var(--muted); font-size: 13px; }
.adm-stat > b { font: 600 28px/1.15 var(--font); color: var(--gold-hi); }
.adm-stat > small { color: var(--faint); font-size: 12.5px; line-height: 1.4; }
.adm-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.adm-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.adm-mini .adm-stat { padding: 12px; background: rgba(255, 255, 255, .025); }
.adm-mini .adm-stat > b { font-size: 21px; }
.adm-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 12px; margin-top: 12px; }

/* Gráficas */
.viz { margin: 0; padding: 16px 16px 12px; position: relative; }
.adm-card .viz { padding: 0; border: 0; background: none; }
.viz figcaption { display: flex; flex-direction: column; margin-bottom: 14px; }
.viz figcaption b { color: var(--text); font-size: 15px; }
.viz figcaption span { color: var(--faint); font-size: 13px; }
.viz-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 132px auto; column-gap: 8px; }
.viz-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; line-height: 1; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.viz-y span:first-child { transform: translateY(-45%); }
.viz-y span:last-child { transform: translateY(45%); }
.viz-area { position: relative; }
.viz-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.viz-grid i { height: 1px; background: var(--viz-grid); }
.viz-cols { position: absolute; inset: 0; display: flex; gap: 2px; }
.viz-col { flex: 1 1 0; min-width: 0; appearance: none; background: none; border: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; cursor: default; border-radius: 3px; }
.viz-col i { display: block; width: 100%; max-width: 24px; height: var(--h); background: var(--viz-gold); border-radius: 4px 4px 0 0; }
.viz-col.zero i { display: none; }
.viz-col:hover i, .viz-col:focus-visible i { background: var(--gold-hi); }
.viz-col:focus-visible { outline: 2px solid var(--hex); outline-offset: 1px; }
.viz-tip {
  position: absolute; left: var(--x); top: -8px; transform: translate(-50%, -100%); z-index: 3; pointer-events: none; white-space: nowrap;
  display: flex; gap: 6px; align-items: baseline; padding: 6px 10px; border-radius: 6px; font-size: 12.5px;
  background: #0b1118; border: 1px solid var(--line-2); box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
}
.viz-tip.left { transform: translate(-88%, -100%); }
.viz-tip b { color: var(--text); font-size: 14px; }
.viz-tip span { color: var(--muted); }
.viz-x { grid-column: 2; display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--faint); }
.viz-table { border: 0; background: none; margin: 8px 0 0; }
.viz-table[open] { border: 0; }
.viz-table summary { padding: 4px 0; min-height: 0; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.viz-table summary::after { content: none; }
.viz-table summary:hover { color: var(--gold-hi); }
.viz-table .table { max-height: 240px; overflow: auto; margin-top: 6px; }
.viz-table th, .viz-table td { padding: 6px 10px; font-size: 13px; }
.viz-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.viz-bars li { display: grid; grid-template-columns: minmax(84px, 40%) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.viz-bars-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.viz-bars-t { height: 10px; }
.viz-bars-t i { display: block; height: 100%; width: var(--w); min-width: 2px; background: var(--c); border-radius: 0 4px 4px 0; }
.viz-bars li > b { min-width: 3ch; text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.viz-seg { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line); }
.viz-seg i { width: var(--w); background: var(--c); }
.viz-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; }
.viz-legend li { display: flex; align-items: center; gap: 6px; }
.viz-legend li i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.viz-legend li span { color: var(--muted); }
.viz-legend li b { color: var(--text); font-weight: 600; }
.viz-legend li small { color: var(--faint); }

/* Usuarios */
.adm-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.adm-filters .adm-field { flex: 0 1 180px; }
.adm-filters .adm-search { flex: 1 1 260px; }
.adm-count { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.adm-users table { font-size: 14px; }
.adm-users th { white-space: nowrap; }
.adm-users td { vertical-align: middle; padding: 10px 12px; }
.adm-users tbody tr { cursor: pointer; }
.adm-users tbody tr:hover td { background: rgba(200, 170, 110, .045); }
.adm-users .n { text-align: right; font-variant-numeric: tabular-nums; }
.adm-who { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; max-width: 100%; }
.adm-who > span:last-child { min-width: 0; }
.adm-who b { display: block; color: var(--gold-hi); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.adm-who small { display: block; color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.adm-who:hover b { text-decoration: underline; }
.me-av.sm { width: 32px; height: 32px; font-size: 13px; box-shadow: 0 0 0 2px var(--rk, var(--gold)); }
.adm-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0 42px; }
.adm-flags:empty { display: none; }
.adm-riot { display: inline-block; margin-right: 10px; white-space: nowrap; }
.adm-riot i { font-style: normal; color: var(--faint); }
.adm-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Ficha */
.adm-back { display: inline-block; margin-bottom: 14px; font-size: 14px; text-decoration: none; }
.adm-user-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; border-radius: var(--radius);
  border: 1px solid rgba(125, 155, 190, .17); background: linear-gradient(180deg, rgba(26, 38, 51, .97), rgba(14, 21, 30, .97));
}
.adm-user-head .me-who { flex: 1 1 260px; }
.adm-id { font: 12px 'Cascadia Mono', Consolas, monospace; color: var(--faint); user-select: all; overflow-wrap: anywhere; }
.adm-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; margin: 16px 0; }
.adm-facts dt { color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.adm-facts dd { margin: 3px 0 0; color: var(--text); font-size: 14.5px; overflow-wrap: anywhere; }
.adm-facts dd small { display: block; color: var(--faint); font-size: 12.5px; }
.adm-facts dd a { text-decoration: none; }
.adm-facts.compact { margin: 2px 0 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.adm-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: start; }
.adm-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adm-pane[data-pane=user] > .adm-card { margin-top: 12px; }
.adm-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.adm-feats li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, .032); border: 1px solid rgba(255, 255, 255, .065); }
.adm-feats li > div { display: flex; flex-direction: column; min-width: 0; }
.adm-feats b { color: var(--gold-hi); font-weight: 600; }
.adm-feats small { color: var(--faint); font-size: 12.5px; }
.adm-feats select { max-width: 52%; }
.adm-riots li { flex-wrap: wrap; }
.adm-riots .rid small { display: block; font-weight: 400; color: var(--faint); font-size: 12.5px; }
.adm-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.adm-history li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-table-wrap h3 { font: 700 12px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.adm-table-wrap th, .adm-table-wrap td { padding: 8px 10px; font-size: 13px; white-space: nowrap; }

/* Rangos y funciones */
.adm-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-bar .adm-note { margin: 0; flex: 1 1 420px; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 12px; }
.adm-item { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.adm-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-item-head h3 { margin: 0; font: 700 17px/1.3 var(--font); color: var(--gold-hi); letter-spacing: 0; }
.adm-item-head > .btn { margin-left: auto; }
.adm-editor { grid-column: 1 / -1; border-color: rgba(200, 170, 110, .45); }
.adm-pane > .adm-editor { margin-bottom: 12px; }
.adm-preview { margin-left: auto; }
.adm-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px 18px; }
.adm-badgepick { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-badgepick label { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; color: var(--muted); }
.adm-badgepick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adm-badgepick svg { width: 20px; height: 20px; }
.adm-badgepick label:hover { color: var(--gold-hi); }
.adm-badgepick label:has(input:checked) { border-color: var(--gold); color: var(--gold-hi); background: rgba(200, 170, 110, .1); }
.adm-badgepick label:has(input:focus-visible) { outline: 2px solid var(--hex); outline-offset: 2px; }
.adm-delete, .adm-sub-block { border-top: 1px dashed var(--line-2); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.adm-delete h4, .adm-sub-block h4 { margin: 0; font: 700 12px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.adm-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.adm-people { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.adm-people a { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; text-decoration: none; }
.adm-people-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-people-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0; }
.adm-people-list li a { overflow: hidden; text-overflow: ellipsis; }
.adm-people-list li .btn { margin-left: auto; }

/* Registro */
.adm-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.adm-log li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.adm-log li:last-child { border-bottom: 0; }
.adm-log-when { color: var(--faint); font-size: 13px; }
.adm-log-what { color: var(--text); overflow-wrap: anywhere; }
.adm-log-what b { color: var(--gold-hi); font-weight: 600; }
.adm-log-what small { display: block; color: var(--faint); font-size: 12.5px; }
.adm-pane[data-pane=log] > .adm-log { margin-top: 14px; padding: 6px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.adm-pane[data-pane=log] > .adm-actions { margin-top: 12px; }

@media (max-width: 1100px) {
  .adm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .adm-page { padding-top: 24px; }
  .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-stat > b { font-size: 24px; }
  .adm-me-mail { display: none; }
  .adm-users table, .adm-users tbody, .adm-users tr, .adm-users td { display: block; width: 100%; }
  .adm-users thead { display: none; }
  .adm-users tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .adm-users tbody tr:last-child { border-bottom: 0; }
  .adm-users td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .adm-users td::before { content: attr(data-label); color: var(--faint); font-size: 12.5px; text-align: left; }
  .adm-users td.who { display: block; padding-bottom: 8px; text-align: left; }
  .adm-users td.who::before { content: none; }
  .adm-users tbody tr:hover td { background: none; }
  .adm-feats li { flex-direction: column; align-items: stretch; }
  .adm-feats select { max-width: none; }
  .adm-log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .adm-filters .adm-field { flex: 1 1 calc(50% - 10px); }
  .adm-filters .adm-search { flex-basis: 100%; }
}
