/* Trybya: fondo casi negro, un solo color vivo, titulares condensados en mayúsculas,
   etiquetas en placa y esquinas casi rectas. La mascota Yby aporta el color y el gesto. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/bc-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/bc-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/fonts/bc-800.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(/fonts/bc-800i.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/fonts/b-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/fonts/b-600.woff2) format("woff2"); }

:root {
  --bg: #131114;
  --panel: #1e1b21;
  --panel-2: #2a2630;
  --line: #332e38;
  --text: #fbfaf6;
  --mute: #a39eab;
  --ink: #131114;
  --accent: #ff4a1c;
  --on-accent: #ffffff;
  --good: #1fc46b;
  --on-good: #06240f;
  --bad: #ff5a52;
  --radius: 2px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, p { margin: 0; }
.muted { color: var(--mute); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Marca ---------- */

.logo { line-height: 0; }
.logo img { display: block; width: min(330px, 86%); height: auto; }
.logo.sm img { width: auto; height: 46px; }
.yby { display: block; width: auto; height: 150px; align-self: flex-start; max-width: 100%; object-fit: contain; }
.yby.sm { height: 84px; flex: none; }
.ybyrow { display: flex; align-items: center; gap: 12px; }
.ybyrow > :last-child { flex: 1; }

/* ---------- Botones y campos ---------- */

.btn {
  border: 0;
  border-radius: var(--radius);
  padding: 12px 20px 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); }
a.btn { display: inline-block; text-decoration: none; }

.field {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
}
.field::placeholder { color: #7d7887; }
.field:focus { outline: none; border-color: var(--accent); }
.field.sel { width: auto; padding: 6px 10px; font-size: 15px; }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px 1px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.msg { padding: 9px 12px; border-radius: var(--radius); font-weight: 600; }
.msg.ok { background: rgba(31, 196, 107, 0.16); color: #7fe6ae; }
.msg.err { background: rgba(255, 90, 82, 0.16); color: #ffa29d; }

/* ---------- Opciones de respuesta ---------- */

.opts { position: relative; display: grid; gap: 10px; }
.opt {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 66px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}
.opt:active:not(:disabled) { transform: translateX(3px); }
.opt:disabled { cursor: default; }
.opt .letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
}
.opt > span:nth-child(2) {
  align-self: center;
  padding: 8px 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.08;
}
.opt.dim { opacity: 0.38; }
.opt.picked { border-color: var(--text); background: var(--panel-2); opacity: 1; }
.opt.picked.dim { border-color: var(--bad); opacity: 0.75; }
.opt.picked.dim .letter { background: var(--bad); }
.opt.correct { border-color: var(--good); opacity: 1; }
.opt.correct .letter { background: var(--good); color: var(--on-good); }
.opt.correct::after {
  content: attr(data-tag);
  align-self: center;
  margin: 0 12px 0 auto;
  padding: 3px 7px 2px;
  background: var(--good);
  color: var(--on-good);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.opt .tail { margin-left: auto; align-self: center; }
.opt.wait { cursor: default; }
/* Opción trampa contra robots: existe en la página, pero queda fuera de la vista. */
.opt.trap { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; min-height: 0; border: 0; }

.timer { height: 10px; background: var(--panel-2); border-radius: var(--radius); overflow: hidden; }
.timer > div { height: 100%; background: var(--accent); transform-origin: left center; }

/* ---------- Clasificación ---------- */

.board { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--text); }
.board li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
}
.board .pos { flex: none; width: 1.5em; font-weight: 800; font-size: 1.15em; color: var(--mute); }
.board .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .pts { font-variant-numeric: tabular-nums; }
.board li.lead { background: var(--accent); color: var(--on-accent); border-bottom: 0; }
.board li.lead .pos { color: var(--on-accent); }

/* ---------- Jugador ---------- */

.player {
  max-width: 520px;
  min-height: 100%;
  margin: 0 auto;
  padding: 0 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 -16px;
  padding: 11px 16px;
  background: #000;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.topbar .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .score {
  padding: 2px 10px 0;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}
.vbtn, .langsw {
  padding: 2px 9px 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--mute);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.vbtn { margin-right: 10px; }
.vbtn.on { border-color: var(--text); color: var(--text); }
.langsw { border-color: var(--text); color: var(--text); }
.topbar .langsw { margin-right: 10px; }
.joinbar { display: flex; justify-content: flex-end; padding-top: 14px; }

.center { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hero {
  font-family: var(--display);
  font-weight: 800;
  font-size: 50px;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000, 2px 2px 0 #000, 3px 3px 0 #000, 4px 4px 0 #000, 5px 5px 0 #000;
}
.qmeta {
  align-self: flex-start;
  padding: 3px 11px 1px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.qtext { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.04; }
.banner {
  padding: 13px 16px 11px;
  background: var(--text);
  color: var(--ink);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
}
.banner.good { background: var(--good); color: var(--on-good); }
.banner.bad { background: var(--bad); color: #2b0503; }
.banner small {
  display: block;
  margin-top: 4px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  text-transform: none;
  opacity: 0.8;
}
.status {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  background: var(--bad);
  color: #2b0503;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.joinform { width: 100%; display: grid; gap: 12px; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--text); cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.joinform .chk { align-items: flex-start; font-weight: 500; line-height: 1.3; }
.joinform .chk input { flex: none; width: 22px; height: 22px; margin-top: 1px; }

/* Perfil del jugador */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: var(--radius); }
.stat { padding: 10px 12px; background: var(--panel); }
.stat .k { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.badge { display: grid; gap: 2px; padding: 10px 12px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); }
.badge strong { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; }
.badge span { font-size: 14px; line-height: 1.25; opacity: 0.92; }
.badge.off { background: var(--panel); color: var(--mute); box-shadow: inset 0 0 0 2px var(--line); }
.hists { display: grid; border-top: 3px solid var(--text); }
.hist { display: flex; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.hist .when { flex: none; width: 4.2em; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--mute); text-transform: uppercase; }
.hist .what { display: grid; font-size: 15px; color: var(--mute); }
.hist .what strong { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); }

/* ---------- Presentador ---------- */

.host { max-width: 1000px; margin: 0 auto; padding: 0 20px 48px; display: grid; gap: 20px; }
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 12px;
  border-bottom: 3px solid var(--text);
}
.mastr { display: flex; align-items: center; gap: 14px; }
.mastr > span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.card { padding: 12px 16px; background: var(--panel); }
.card .k, .lbl, .panel label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.card .v { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.panel { padding: 18px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 14px; }
.panel h2 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; }
.panel .chk, .panel label.chk { font-family: var(--body); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--text); }
.rows { display: grid; gap: 6px; }
.row {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 14px;
  background: var(--panel-2);
  border-radius: var(--radius);
  font-weight: 600;
  overflow: hidden;
}
.row .fill { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, 0.1); }
.row > span { position: relative; }
.row .letter { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--accent); }
.row .n { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.row.correct { box-shadow: inset 0 0 0 2px var(--good); }
.row.correct .letter { color: var(--good); }
.links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.links img { width: 124px; height: 124px; background: #fff; padding: 6px; border-radius: var(--radius); }

/* Revisión de jugadores sospechosos */
.rv { padding: 10px 0; border-top: 1px solid var(--line); }
.rv.out { opacity: 0.5; }
.rvh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.rvh strong { font-family: var(--display); font-weight: 700; font-size: 22px; }
.rvh .mini { margin-left: auto; }
.rvf { margin: 6px 0 0; padding-left: 20px; font-size: 15px; color: var(--mute); }

/* ---------- Editor de concursos ---------- */

.editor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .editor { grid-template-columns: 1fr; } }
.quizlist { display: grid; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.quiz {
  display: grid;
  gap: 2px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.quiz:last-child { border-bottom: 0; }
.quiz .qt { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.quiz .qs { font-size: 14px; color: var(--mute); }
.quiz.current { background: var(--panel-2); box-shadow: inset 4px 0 0 var(--accent); }
.qcard { display: grid; gap: 10px; padding: 14px 0 4px; border-top: 3px solid var(--line); }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qhead .qmeta { display: inline-block; }
.qhead .tag { margin-left: 8px; background: var(--text); color: var(--ink); }
.qtools { display: flex; gap: 6px; }
.mini {
  padding: 3px 10px 1px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.mini:hover:not(:disabled) { border-color: var(--text); }
.mini:disabled { opacity: 0.3; cursor: not-allowed; }
textarea.field { resize: vertical; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.optedit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 760px) { .optedit { grid-template-columns: 1fr; } }
.optrow { display: flex; align-items: stretch; gap: 0; }
.optrow input[type="radio"] { flex: none; width: 22px; height: 22px; margin: 0 10px 0 0; align-self: center; accent-color: var(--good); cursor: pointer; }
.optrow .letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
}
.optrow .field { border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; padding: 9px 12px; font-size: 17px; }
.optrow.iscorrect .letter { background: var(--good); color: var(--on-good); }
.optrow.iscorrect .field { border-color: var(--good); background: rgba(31, 196, 107, 0.12); }
.optrow .rspace { flex: none; width: 32px; }
.lblock { display: grid; gap: 8px; }
.ltag { justify-self: start; margin-left: 0; background: var(--panel-2); color: var(--text); }
.langrow { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.qfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.qfoot label { display: flex; align-items: center; gap: 8px; }

/* Ayuda de IA en el editor */
.aibox { display: grid; gap: 10px; padding: 14px; background: var(--panel-2); border-left: 6px solid var(--accent); border-radius: var(--radius); }
.airow { display: flex; flex-wrap: wrap; gap: 8px; }
.airow .field:first-child { flex: 1 1 260px; width: auto; font-size: 17px; padding: 9px 12px; }

/* ---------- Overlay para vMix (1920x1080, fondo transparente) ---------- */

body.overlay { background: transparent; overflow: hidden; }
body.overlay.solid { background: linear-gradient(135deg, #3a4048, #23272d); }
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3vw;
  font-size: 1.25vw;
}
.ov-panel {
  padding: 1.3em 1.8em 1.6em;
  background: #0b0a0c;
  color: var(--text);
  border-top: 0.5em solid var(--accent);
  display: grid;
  gap: 0.85em;
}
.ov-head {
  display: flex;
  align-items: center;
  gap: 1em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.ov-head .ov-yby { height: 2.6em; width: auto; margin: -0.4em 0; }
.ov-head .ov-tag { padding: 0.12em 0.6em 0.05em; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); }
.ov-head .ov-right { margin-left: auto; }
.ov-head .clock {
  margin-left: auto;
  min-width: 1.7em;
  padding: 0.05em 0.35em 0;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 2em;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ov-q { font-family: var(--display); font-weight: 700; font-size: 3em; line-height: 1.02; }
.ov-panel .timer { height: 0.6em; }
.ov-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.ov-opts .opt { min-height: 3.6em; cursor: default; border-width: 0.14em; }
.ov-opts .opt .letter { width: 2em; font-size: 2em; }
.ov-opts .opt > span:nth-child(2) { padding: 0.2em 0.6em; font-size: 2em; }
.ov-opts .opt .tail { padding-right: 0.8em; font-family: var(--display); font-weight: 800; font-size: 2em; }
.ov-opts .opt.correct::after { display: none; }
.ov-lobby { display: flex; align-items: center; gap: 2.2em; }
.ov-lobby .qr { width: 13em; height: 13em; background: #fff; padding: 0.6em; border-radius: var(--radius); }
.ov-lobby .ov-logo { display: block; height: 6.4em; width: auto; margin-bottom: 0.6em; }
.ov-lobby .big { font-family: var(--display); font-weight: 700; font-size: 1.8em; letter-spacing: 0.05em; text-transform: uppercase; }
.ov-lobby .url { font-family: var(--display); font-weight: 800; font-size: 4em; line-height: 1.05; color: var(--accent); }
.ov-lobby .muted { color: var(--mute); }
.ov-title { font-family: var(--display); font-weight: 800; font-size: 2.8em; line-height: 1; text-transform: uppercase; }
.ov-board .board { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 2.5em; }
.ov-board .board li { font-size: 2em; }

/* ---------- Portal: portada, creadores y gestión ---------- */

.navlink {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.navlink:hover { color: var(--accent); }
.site .mast a { display: block; }
.site .panel label:not(.chk) { display: grid; gap: 6px; }
.site .card p { margin-top: 6px; }

.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0 6px; }
.intro .hero { font-size: clamp(38px, 7vw, 68px); max-width: 15em; }
.intro .yby { flex: none; height: 170px; align-self: center; }
.lead { margin-top: 14px; font-size: 19px; line-height: 1.4; max-width: 34em; color: var(--mute); }

.block { display: grid; gap: 14px; }
.sech {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--text);
}

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.game {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.game h3 { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.game .btn { margin-top: auto; text-align: center; }
.gtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.tag {
  display: inline-block;
  padding: 2px 9px 1px;
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--mute);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}
.tag.live { background: var(--accent); color: var(--on-accent); }
.tag.open { background: var(--good); color: var(--on-good); }

.sponsor {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 9px 12px;
  border-left: 4px solid var(--accent);
  background: var(--panel-2);
  text-align: left;
}
.sponsor strong { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.sponsor > span:last-child { flex-basis: 100%; }

@media (max-width: 620px) {
  .intro .yby { display: none; }
  .mastr { gap: 10px; }
  .mastr > span { display: none; }
  .navlink { font-size: 15px; }
}

/* ---- Torneos */
.trounds { display: grid; gap: 8px; margin: 10px 0; }
.tround { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel-2); border-radius: var(--radius); }
.tround .tn { font-weight: 800; font-size: 20px; min-width: 26px; }
.tround .tq { flex: 1 1 220px; display: grid; }
.tround .tq small { opacity: 0.7; }
.tround .tact { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.tround select.field { flex: 1 1 220px; }
.tround a.mini { text-decoration: none; display: inline-flex; align-items: center; }
.trow { display: inline-flex; align-items: center; gap: 8px; }
.tstand { margin: 8px 0; padding-left: 26px; display: grid; gap: 4px; }
.tstand li > * { display: inline-block; }
.tstand li span:first-child { min-width: 180px; font-weight: 700; }
.tstand li strong { margin-left: 12px; }
.tline { font-weight: 800; margin: 4px 0; }
.tcard { padding: 12px; margin: 10px 0; background: var(--panel-2); border-left: 6px solid var(--accent); border-radius: var(--radius); }
.tcard .k { font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; font-size: 14px; }
.tlist { margin: 8px 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.tlist li { display: flex; justify-content: space-between; gap: 12px; }
.tlist li.done span:first-child { text-decoration: line-through; opacity: 0.6; }
.tlist li span:last-child { flex-shrink: 0; text-align: right; }

/* ---- Jugadores automáticos */
.board li.isbot { opacity: 0.72; }
.board li.isbot .tag { font-size: 0.55em; vertical-align: middle; }

/* ---- Torneo en el rótulo del directo */
.ov-head .ov-tour { max-width: 22em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.85; }
.ov-lobby .ov-tourline { color: var(--accent); font-size: 2.2em; line-height: 1.1; margin-bottom: 0.2em; }
.ov-sub { font-family: var(--display); font-weight: 700; font-size: 1.6em; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }

/* ---------- Portada: cuenta en la cabecera, registro y tarjetas de juego ---------- */

.btn.sm { padding: 8px 14px 6px; font-size: 16px; }
.site .mast a.btn.sm { display: inline-block; }
.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--mute);
  font-size: 15px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkbtn:hover { color: var(--text); }

.acct { position: relative; }
.acct summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.acct summary::-webkit-details-marker { display: none; }
.acct .av {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
}
.acct .an { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acctmenu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  min-width: 220px;
  display: grid;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}
.acctmenu a, .acctmenu button {
  display: block;
  padding: 12px 14px 10px;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.acctmenu > :last-child { border-bottom: 0; color: var(--mute); }
.acctmenu a:hover, .acctmenu button:hover { background: var(--panel-2); color: var(--text); }

.intro.withreg { align-items: flex-start; }
.intro.withreg > div:first-child { flex: 1 1 0; padding-top: 12px; }
.regcard { flex: 0 1 400px; border-color: var(--accent); scroll-margin-top: 16px; }

.games { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.game { padding: 0; gap: 0; overflow: hidden; border-color: var(--line); transition: transform 0.15s ease, border-color 0.15s ease; }
.game:hover { transform: translateY(-3px); border-color: var(--text); }
.game.islive { border-color: var(--accent); }
.game .cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 170px;
  padding: 14px 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 14px, transparent 14px 28px), linear-gradient(135deg, var(--c1), var(--c2));
}
.game .cover::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.game.c0 { --c1: #ff5a1f; --c2: #a31a06; }
.game.c1 { --c1: #7a4dff; --c2: #26157d; }
.game.c2 { --c1: #12b5a5; --c2: #064f5c; }
.game.c3 { --c1: #f0308f; --c2: #6e0d4b; }
.game.c4 { --c1: #f5a800; --c2: #a34a00; }
.ctop, .ctitle { position: relative; z-index: 1; }
.ctop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cover .tag { background: rgba(0, 0, 0, 0.55); color: #fff; }
.cover .tag.live { background: #fff; color: #c21d00; }
.cover .tag.open { background: var(--good); color: var(--on-good); }
.cover .dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #e32400; animation: livedot 1.2s ease-in-out infinite; }
@keyframes livedot { 50% { opacity: 0.25; } }
.cover .cnt { padding: 2px 9px 1px; border-radius: var(--radius); background: rgba(0, 0, 0, 0.55); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.ctitle { display: grid; gap: 2px; }
.ctitle .by { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }
.game .cover h3 { margin: 0; font-size: 36px; line-height: 0.95; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.game .cover .yby { position: absolute; right: 10px; bottom: -6px; height: 150px; z-index: 1; }
.gbody { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.gquiz { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 3px 9px 2px; border-radius: 999px; background: var(--panel-2); color: var(--mute); font-size: 14px; font-weight: 600; }
.chips .free { background: rgba(31, 196, 107, 0.16); color: #7fe6ae; }

@media (min-width: 760px) {
  .game.featured { grid-column: 1 / -1; flex-direction: row; }
  .game.featured .cover { flex: 1 1 55%; min-height: 260px; padding: 20px 24px; }
  .game.featured .cover h3 { font-size: clamp(38px, 4.6vw, 58px); }
  .game.featured .ctitle { max-width: calc(100% - 190px); }
  .game.featured .cover .yby { height: 200px; right: 14px; }
  .game.featured .gbody { flex: 1 1 45%; padding: 20px 22px; }
  .game.featured .gquiz { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .game { transition: none; }
  .cover .dot { animation: none; }
}

.crstrip { padding-top: 16px; border-top: 2px solid var(--line); color: var(--mute); font-size: 15px; }

/* ---------- Panel de gestión ---------- */

.stats.big { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat.hot .v { color: var(--accent); }
.dlist { display: grid; gap: 2px; }
.drow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px; background: var(--panel); border-radius: var(--radius); }
.drow .dmain { flex: 1 1 240px; display: grid; }
.drow .dmain strong { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.1; text-transform: uppercase; }
.drow .dmain .muted { font-size: 15px; }
.drow .dwhen { flex: 0 0 120px; font-size: 15px; }
.drow .dnum { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; }
.drow .dact { display: flex; gap: 14px; }

@media (max-width: 620px) {
  .intro.withreg { flex-direction: column; }
  .regcard { flex: none; width: 100%; }
  .acct .an { display: none; }
  .site .mast .navlink[href="/"] { display: none; }
  .mast .logo.sm img { height: 38px; }
}
