
:root {
  --bg: #f4f3ef; --card: #ffffff; --ink: #17171a; --muted: #6b6b73; --line: #e2e0d9;
  --ok: #1f9d55; --warn: #d97706; --bad: #c0392b;
  --radius: 10px; --font: 'Roboto Flex', 'Roboto', system-ui, sans-serif; --narrow: 'Roboto Flex', 'Roboto', system-ui, sans-serif; --display: 'Oswald', 'Roboto Flex', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 var(--font); color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1 { font: 800 28px/1.15 var(--font); letter-spacing: -.01em; margin: 0 0 14px; }
h2 { font: 700 15px/1.2 var(--narrow); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
h3 { font: 600 13px var(--narrow); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.ok { color: var(--ok); font-weight: 600; } .warn { color: var(--warn); font-weight: 600; } .danger { color: var(--bad) !important; }
.strong { font-weight: 800; } .dim { opacity: .5; }
code { background: #0000000d; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* Botones y formularios */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 9px 14px; font: 600 14px var(--font); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.big { padding: 14px 22px; font-size: 17px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; }
label.check-inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: end; }
.grid2 .full, .grid2 h2 { grid-column: 1 / -1; }
.grid2 h2 { margin-top: 10px; }
.stack { display: flex; flex-direction: column; gap: 8px; } .stack.narrow { max-width: 360px; }
.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
form.inline { margin: 0; }
.grow { flex: 1; min-width: 240px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* Badges */
.badge { display: inline-block; font: 700 11px var(--narrow); letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px;
  background: color-mix(in srgb, var(--g) 18%, transparent); color: color-mix(in srgb, var(--g) 75%, #000); border: 1px solid color-mix(in srgb, var(--g) 45%, transparent); }
.status { font: 600 12px var(--narrow); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.status.live { color: var(--bad); animation: pulse 1.6s infinite; } .status.reg { color: var(--ok); } .status.cancel { color: var(--bad); text-decoration: line-through; }
@keyframes pulse { 50% { opacity: .55; } }
.pill { font-size: 11px; padding: 2px 6px; border-radius: 99px; background: #0000000f; }
.pill.new { background: #1f9d5522; color: var(--ok); } .pill.warn { background: #d9770622; color: var(--warn); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.chips a { padding: 5px 11px; border-radius: 99px; text-decoration: none; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--line); }
.chips a.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chips .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }

/* Tablas */
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.tbl th { font: 600 12px var(--narrow); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; padding: 9px 10px; border-bottom: 1.5px solid var(--line); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.error td { color: var(--bad); } .tbl tr.warn td { color: var(--warn); }
.bar { display: inline-block; min-width: 60px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent) var(--w), transparent var(--w)); padding: 0 4px; }

/* Admin */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: var(--ink); color: #fff; }
.topbar .brand { font: 800 17px var(--font); text-decoration: none; color: #fff; }
.topbar .brand small { font: 600 12px var(--narrow); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-left: 6px; }
.userbox { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 13px; }
.userbox a, .userbox button { color: #ddd; } .userbox form { margin: 0; }
.navtoggle { display: none; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
.shell { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 48px); }
.sidenav { padding: 18px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.sidenav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.sidenav a.on { background: var(--card); box-shadow: inset 3px 0 0 var(--accent); }
.content { padding: 24px 28px 60px; max-width: 1200px; min-width: 0; }
.panel { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; border: 1px solid var(--line); }
.panel.live { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .cols > .panel { margin-bottom: 0; } .cols { margin-bottom: 18px; }
.flash { background: #1f9d551a; border: 1px solid #1f9d5555; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.flash.err { background: #c0392b14; border-color: #c0392b55; color: var(--bad); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; } .actions form { margin: 0; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; min-width: 120px; }
.stats b { display: block; font: 800 24px var(--font); } .stats span { color: var(--muted); font-size: 12px; }
.list { list-style: none; margin: 0; padding: 0; } .list li { padding: 8px 0; border-bottom: 1px solid var(--line); } .list li:last-child { border: 0; }
.liverow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 8px 0; }
.pending { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 10px; }
.pend { background: #d9770612; border: 1px solid #d9770644; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.pend em { color: var(--muted); font-style: normal; margin: 0 4px; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.check li span { flex: 1; } .check li.done span { text-decoration: line-through; color: var(--muted); }
.check form { margin: 0; }
.tick { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ok); font-weight: 800; padding: 0; }
.x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; } .x:hover { color: var(--bad); }
.tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 8px; }
.tplbtn { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius); text-decoration: none; background: color-mix(in srgb, var(--g) 7%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--g) 35%, transparent); transition: transform .1s; }
.tplbtn:hover { transform: translateY(-2px); color: inherit; border-color: var(--g); }
.tplbtn strong { font-size: 16px; } .tplbtn small { color: var(--muted); }
.qrout { display: flex; gap: 16px; align-items: center; margin-top: 14px; } .qrout img { width: 180px; }
.qrgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.qritem { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .qritem img { width: 100%; max-width: 160px; }
canvas.preview { width: 100%; max-width: 432px; height: auto; display: block; margin-top: 14px; border-radius: 8px; box-shadow: 0 6px 30px #0003; }
details { border-top: 1px solid var(--line); padding: 10px 0; } details summary { cursor: pointer; font-weight: 600; }
details ol { margin: 8px 0 0; padding-left: 22px; } details li { margin-bottom: 4px; }

/* Login */
body.login { display: grid; place-items: center; min-height: 100vh; background: var(--ink); }
.loginbox { background: var(--card); padding: 30px; border-radius: 14px; width: min(360px, 92vw); display: flex; flex-direction: column; gap: 12px; }
.loginbox h1 { margin: 0; } .loginbox p { margin: 0 0 6px; }

/* Público · estilo Júpiter Juegos */
body.public {
  --bg: #f4f4f4; --card: #fff; --ink: #1a1a1a; --muted: #777; --line: rgba(0,0,0,.1);
  --accent: #f47700; --naranja: #f47700; --naranja2: #ee6600; --negro: #1a1a1a;
  --font: 'Roboto Flex', 'Roboto', system-ui, sans-serif; --narrow: 'Roboto Flex', 'Roboto', system-ui, sans-serif;
  font: 300 17px/1.5 var(--font);
}
body.public h1, body.public h2, body.public h3 { font-family: var(--display); letter-spacing: .2px; }
body.public a { text-decoration: none; }
body.public b, body.public strong { font-weight: 500; }
.jstrip { background: #000; color: #fff; font: 400 14px var(--font); display: flex; justify-content: space-between; gap: 12px; padding: 8px 20px; }
.jstrip a { color: #fff; } .jstrip a:hover { color: var(--naranja); }
.jhead { background: var(--negro); display: flex; align-items: center; gap: 28px; padding: 18px 20px; border-top: 1px solid #333; }
.jlogo { display: flex; align-items: center; flex: none; } .jlogo img { height: 58px; width: auto; display: block; }
.jlogo span { font: 500 28px var(--display); color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.jnav { display: flex; gap: 4px; border: 1px solid #555; border-radius: 999px; padding: 8px 14px; background: #222; }
.jnav a { color: #fff; font: 300 17px var(--display); padding: 5px 10px; text-transform: uppercase; white-space: nowrap; }
.jnav a:hover { color: var(--naranja); }
.jside { margin-left: auto; display: flex; flex-direction: column; gap: 4px; font: 400 15px var(--font); text-align: left; }
.jside a, .jside span { color: var(--naranja); } .jside a:hover { color: var(--naranja3, #ff8918); }
.pub { max-width: 1240px; margin: 0 auto; padding: 34px 20px 70px; }
.jfoot { background: var(--negro); color: #ccc; padding: 34px 20px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.jfoot b { display: block; font: 400 22px var(--display); color: #fff; } .jfoot a { color: var(--naranja); }
body.public .sec { font: 300 28px var(--display); color: #000; text-transform: none; letter-spacing: .2px; margin: 0 0 18px; }
.sec-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
body.public section { margin-bottom: 44px; }
.jbtn-outline { display: inline-flex; align-items: center; gap: 8px; color: #6b6b6b !important; border: 1px solid #777; border-radius: 10px; padding: 9px 20px;
  font: 500 15px var(--font); background: transparent; white-space: nowrap; }
.jbtn-outline:hover { color: var(--naranja) !important; border-color: var(--naranja); }
.jbtn { display: inline-flex; align-items: center; justify-content: center; background: var(--naranja); color: #fff !important; border-radius: 3px;
  font: 400 17px var(--display); padding: 10px 18px; white-space: nowrap; border: 0; cursor: pointer; }
.jbtn:hover { background: var(--naranja2); } .jbtn.big { font-size: 20px; padding: 13px 26px; }
.jbadge { display: inline-block; background: rgba(0,0,0,.667); color: #fff; font: 700 12px var(--font); padding: 7px 13px; border-radius: 5px; text-transform: uppercase; letter-spacing: .3px; }
.jbadge.live { background: var(--naranja); animation: pulse 1.6s infinite; }
body.public .chips a { background: #fff; box-shadow: inset 0 0 0 1px #ccc; font: 400 15px var(--display); padding: 6px 16px; }
body.public .chips a.on { background: var(--negro); color: #fff; }
body.public .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tcard { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: #000; transition: box-shadow .15s, transform .15s; }
.tcard:hover { color: #000; box-shadow: 0 8px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.tcard-media { position: relative; height: 150px; border-radius: 8px; background: #eee center / cover no-repeat; margin-bottom: 6px; }
.tcard-media.art > span, .thead-media.art > span { position: absolute; left: 14px; bottom: 10px; font: 500 26px/1 var(--display); color: #fff;
  text-transform: uppercase; letter-spacing: 1.5px; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.thead-media { position: relative; }
.tcard-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; } .tcard-badges.static { position: static; margin-bottom: 10px; }
.tcard-date { color: var(--naranja); font: 400 14px var(--font); } .tcard-date::first-letter, .tdate::first-letter { text-transform: uppercase; }
.tcard-name { font: 400 20px/1.2 var(--display); color: #000; flex: 1; }
.tcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #eee; padding-top: 10px; margin-top: 4px; }
.tcard-foot .jbtn { margin-left: auto; }
.tcard-price { font: 700 22px var(--display); color: var(--naranja); } .tcard-price.big { font-size: 30px; }
.thead { display: grid; grid-template-columns: 340px 1fr; gap: 26px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 34px; }
.thead-media { border-radius: 8px; background: #eee center / cover no-repeat; min-height: 220px; }
.thead-info { padding: 10px 6px; display: flex; flex-direction: column; }
.thead h1 { font: 300 36px/1.15 var(--display); margin: 0 0 8px; }
.tdate { color: var(--naranja); font: 400 17px var(--font); margin: 0 0 4px; }
.tmeta { color: #555; margin: 0 0 18px; font-size: 15px; }
.thead-cta { display: flex; align-items: center; gap: 18px; margin-top: auto; flex-wrap: wrap; }
.round-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.timer { font: 500 34px var(--display); font-variant-numeric: tabular-nums; } .timer.over { color: var(--bad); }
body.public .search { width: 100%; padding: 15px 18px; font: 300 18px var(--font); border-radius: 10px; margin: 0 0 16px; border: 1px solid #ccc; background: #fff; }
body.public .search:focus { border-color: var(--naranja); outline: 3px solid rgba(244,119,0,.18); }
.mine { margin-bottom: 18px; padding: 18px 20px; border-radius: 12px; background: #fff4e8; border: 1.5px solid var(--naranja); }
.mine .big { font: 500 30px var(--display); color: #000; }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.pair { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; background: #fff; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.pair .tn { font: 500 26px var(--display); text-align: center; color: var(--naranja); }
.pair .names { display: flex; flex-direction: column; font-size: 16px; } .pair .names span.w { font-weight: 500; } .pair .res { color: var(--muted); font-size: 13px; }
.pair.hl { border-color: var(--naranja); background: #fff4e8; } .pair.done { opacity: .6; }
body.public .tbl { border: 1px solid var(--line); border-radius: 12px; }
body.public .tbl th { font: 400 14px var(--display); color: #6b6b6b; letter-spacing: .5px; }
body.public .tbl td { font-size: 16px; } body.public .tbl .strong { color: var(--naranja); font-weight: 700; }
body.public .tbl tr.hlrow td { background: #fff4e8; }
.mesa-card { background: #fff; border: 1px solid var(--line); padding: 26px; border-radius: 12px; text-align: center; margin: 0 auto 16px; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.vs { display: flex; flex-direction: column; gap: 4px; font: 400 30px/1.2 var(--display); } .vs em { font: 300 16px var(--font); color: var(--muted); }
body.public h1.center { font: 300 40px var(--display); }
.cpods { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
body.public .cpod { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
body.public .cpod.hl { border-color: var(--naranja); background: #fff4e8; }
body.public .cpod-h b { font: 500 22px var(--display); color: var(--naranja); }
body.public .cseat { font-size: 16px; padding: 4px 0; border-top: 1px solid #f1f1f1; } body.public .cseat.win { color: var(--naranja); font-weight: 500; }

/* TV */
body.tv { --accent: #f47700; --bg: #111;  --ink: #f6f4ee; --muted: #8d8c95; --line: #26262c; --card: #16161a; background: var(--bg); color: var(--ink); overflow: hidden; height: 100vh; }
#tv { height: 100vh; display: flex; flex-direction: column; padding: 2.2vh 2.5vw; }
.tv-head { display: flex; align-items: center; gap: 2vw; padding-bottom: 1.6vh; border-bottom: 3px solid var(--g, var(--accent)); }
.tv-title { font: 800 4.2vh/1.1 var(--font); flex: 1; } .tv-title small { display: block; font: 600 2.2vh var(--narrow); color: var(--g, var(--accent)); text-transform: uppercase; letter-spacing: .1em; }
.tv-clock { font: 800 8vh/1 var(--font); font-variant-numeric: tabular-nums; } .tv-clock.over { color: #ff5b4d; animation: pulse 1s infinite; }
.tv-clock small { display: block; font: 600 1.8vh var(--narrow); color: var(--muted); text-align: right; text-transform: uppercase; letter-spacing: .1em; }
.tv-qr { height: 17vh; background: #fff; padding: .6vh; border-radius: .8vh; }
.tv-body { flex: 1; overflow: hidden; padding-top: 2vh; }
.tv-sub { font: 700 2.6vh var(--narrow); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1.4vh; display: flex; justify-content: space-between; }
.tv-pairs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 1vh 2vw; }
.tv-pair { display: grid; grid-template-columns: 9vh 1fr auto; align-items: center; gap: 1.6vw; background: var(--card); border-radius: 1vh; padding: 1.1vh 1.4vw; font-size: 3vh; }
.tv-pair .tn { font: 800 4.2vh var(--font); color: var(--g, var(--accent)); text-align: center; }
.tv-pair .who { display: flex; flex-direction: column; line-height: 1.2; } .tv-pair .who em { font-size: 1.8vh; color: var(--muted); font-style: normal; }
.tv-pair .st { font: 700 2vh var(--narrow); color: var(--muted); text-transform: uppercase; } .tv-pair.done { opacity: .5; } .tv-pair.done .st { color: #3ecf8e; }
.tv-stand { width: 100%; border-collapse: collapse; font-size: 3vh; }
.tv-stand td, .tv-stand th { padding: .9vh 1vw; border-bottom: 1px solid var(--line); text-align: left; }
.tv-stand th { font: 600 1.9vh var(--narrow); text-transform: uppercase; color: var(--muted); }
.tv-stand .num { text-align: right; font-variant-numeric: tabular-nums; } .tv-stand tr.top td:first-child { color: var(--g, var(--accent)); font-weight: 800; }
.tv-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; }
.tv-up > div { background: var(--card); border-radius: 1.4vh; padding: 2.4vh; border-top: .7vh solid var(--g); display: flex; flex-direction: column; gap: 1vh; }
.tv-up b { font: 800 3.2vh/1.15 var(--font); } .tv-up span { color: var(--muted); font-size: 2.3vh; } .tv-up img { width: 22vh; background: #fff; padding: .6vh; border-radius: .8vh; margin-top: auto; }
.tv-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 1.8vh; padding-top: 1vh; }
.tv-dots span { display: inline-block; width: 1vh; height: 1vh; border-radius: 50%; background: var(--line); margin-left: .6vh; } .tv-dots span.on { background: var(--ink); }

/* Cartel y QR de mesas (impresión) */
body.poster, body.tableqr { background: #ddd; }
.noprint.bar { display: flex; gap: 8px; padding: 12px; justify-content: center; }
.sheet { width: 210mm; min-height: 297mm; margin: 0 auto 30px; background: #fff; color: #111; padding: 18mm 16mm; display: flex; flex-direction: column; align-items: center; text-align: center;
  border-top: 10mm solid var(--g); }
.p-store { font: 800 22px var(--font); display: flex; align-items: center; gap: 10px; } .p-store img { height: 44px; }
.p-game { margin-top: 18mm; font: 700 18px var(--narrow); letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--g) 80%, #000); }
.p-name { font: 800 52px/1.05 var(--font); margin: 6mm 0; } .p-date { font: 600 24px var(--font); } .p-date::first-letter { text-transform: uppercase; }
.p-price { font: 700 20px var(--font); margin-top: 4mm; padding: 6px 16px; border: 2px solid #111; border-radius: 99px; }
.p-qr { width: 110mm; margin-top: 10mm; } .p-cta { font: 700 20px var(--font); margin-top: 6mm; } .p-addr { margin-top: auto; color: #555; }
.tqgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; width: 210mm; margin: 0 auto; background: #fff; padding: 10mm; }
.tq { border: 1.5px dashed #999; border-radius: 4mm; padding: 5mm; text-align: center; color: #111; break-inside: avoid; }
.tq-n { font: 800 30px var(--font); } .tq img { width: 100%; } .tq-s { font-size: 11px; color: #444; }
@media print {
  .noprint { display: none !important; } body.poster, body.tableqr { background: #fff; }
  .sheet { margin: 0; width: auto; min-height: 100vh; } .tqgrid { width: auto; padding: 0; }
  @page { size: A4; margin: 8mm; }
}

/* Responsive */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { display: none; position: fixed; inset: 48px 0 auto 0; background: var(--bg); z-index: 9; border-bottom: 1px solid var(--line); max-height: calc(100vh - 48px); overflow: auto; }
  body.navopen .sidenav { display: flex; }
  .navtoggle { display: block; }
  .userbox a:not(:last-of-type) { display: none; }
  .content { padding: 18px 16px 60px; }
  .cols, .grid2 { grid-template-columns: 1fr; }
  h1 { font-size: 23px; }
}
.tbl tr.hlrow td { background: color-mix(in srgb, var(--accent) 18%, transparent); }

/* Commander */
.pods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 10px 0; }
.pod { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--card); }
.pod.reported { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.pod-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; } .pod-head .muted { font-size: 12px; flex: 1; }
.pod-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.seat { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff;
  font: 600 15px var(--font); cursor: pointer; color: var(--ink); }
.seat:hover { border-color: var(--accent); } .seat.win { background: #1f9d5518; border-color: var(--ok); }
.seatn { min-width: 30px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }
.pod-actions { display: flex; gap: 6px; } .btn.on { box-shadow: inset 0 0 0 2px var(--ok); color: var(--ok); }
.swapform { margin-top: 8px; } .swapform select { max-width: 220px; }
.round-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.cmdst td, .cmdst th { white-space: nowrap; }
.cpods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.cpod { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cpod.hl { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card)); } .cpod.done { opacity: .7; }
.cpod-h { display: flex; justify-content: space-between; margin-bottom: 6px; } .cpod-h b { color: var(--accent); font-size: 18px; } .cpod-h span { color: var(--muted); font-size: 12px; }
.cseat { display: flex; gap: 8px; padding: 3px 0; } .cseat span { color: var(--muted); width: 22px; } .cseat.win { font-weight: 800; }
.tv-pods { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4vh 2vw; }
.tv-pod { display: grid; grid-template-columns: 10vh 1fr; gap: 1.4vw; background: var(--card); border-radius: 1.2vh; padding: 1.4vh 1.4vw; align-items: center; }
.tv-pod .tn { font: 800 6vh var(--font); color: var(--g, var(--accent)); text-align: center; }
.tv-pod .who { display: grid; grid-template-columns: 1fr 1fr; gap: .6vh 1.2vw; font-size: 2.7vh; }
.tv-pod .who i { font-style: normal; color: var(--muted); font-size: 2vh; margin-right: .8vw; } .tv-pod .who .win { color: #3ecf8e; font-weight: 800; }
.tv-pod.done { opacity: .5; }
body.printsheet { background: #fff; color: #111; } .ps { padding: 10mm; } .ps h1 { font-size: 22px; }
.ps-pods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; } .ps-pod { border: 1px solid #999; border-radius: 3mm; padding: 3mm; font-size: 14px; } .ps-pod b { display: block; font-size: 18px; }
.ps-names { width: 100%; border-collapse: collapse; font-size: 13px; } .ps-names td { border-bottom: 1px solid #ddd; padding: 2px 6px; }
@media print { .ps-pods { break-after: page; } }

/* TV con tipografía Júpiter */
body.tv .tv-title, body.tv .tv-clock, body.tv .tn, body.tv .tv-up b { font-family: var(--display); font-weight: 400; }
body.tv .tv-sub, body.tv .tv-title small, body.tv .tv-stand th { font-family: var(--display); font-weight: 300; }
body.tv { font-family: 'Roboto', sans-serif; font-weight: 300; }

@media (max-width: 860px) {
  .jstrip span { display: none; } .jhead { flex-wrap: wrap; gap: 14px; padding: 14px 16px; }
  .jlogo img { height: 44px; } .jside { display: none; }
  .jnav { order: 3; width: 100%; overflow-x: auto; padding: 6px 10px; }
  .pub { padding: 22px 16px 50px; }
  .thead { grid-template-columns: 1fr; } .thead-media { min-height: 150px; }
  .thead h1 { font-size: 28px; } body.public .sec { font-size: 24px; }
}

/* ===== Vistas de información (torneo, Commander, portada) ===== */
.livebar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto auto 1fr; gap: 22px; align-items: center;
  background: var(--negro, #1a1a1a); color: #fff; border-radius: 12px; padding: 14px 20px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.lb-round { font: 300 22px var(--display); white-space: nowrap; } .lb-round b { font-weight: 500; color: var(--naranja, #f47700); font-size: 30px; }
.lb-timer { font: 500 38px/1 var(--display); font-variant-numeric: tabular-nums; } .lb-timer.warn { color: #ffb347; } .lb-timer.over { color: #ff5b4d; animation: pulse 1s infinite; }
.lb-prog-t { display: flex; justify-content: space-between; font-size: 13px; color: #bbb; margin-bottom: 6px; }
.lb-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; } .lb-bar i { display: block; height: 100%; background: var(--naranja, #f47700); border-radius: 99px; transition: width .4s; }
.me-card { background: #fff; border: 1.5px solid var(--naranja, #f47700); border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; box-shadow: 0 8px 28px rgba(244,119,0,.10); }
.me-card.empty { border-style: dashed; box-shadow: none; }
.me-head { display: flex; justify-content: space-between; font-size: 14px; color: #6b6b6b; margin-bottom: 8px; } .me-head b { color: #000; font-weight: 500; }
.me-main { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.me-table { display: flex; flex-direction: column; align-items: center; background: var(--negro, #1a1a1a); color: #fff; border-radius: 12px; padding: 8px 20px; min-width: 110px; }
.me-table span { font: 300 14px var(--display); text-transform: uppercase; letter-spacing: 2px; color: #bbb; }
.me-table b { font: 500 64px/1 var(--display); color: var(--naranja, #f47700); }
.me-vs { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .me-vs small { color: #6b6b6b; font-size: 14px; }
.me-vs strong { font: 400 28px/1.15 var(--display); } .me-vs em { font-style: normal; color: #6b6b6b; font-size: 14px; }
.me-rivals { display: flex; flex-direction: column; gap: 2px; font-size: 16px; } .me-rivals b { font-weight: 500; } .me-rivals em { color: #6b6b6b; font-style: normal; font-size: 13px; margin-left: 4px; }
.me-big { font: 500 40px var(--display); } .me-big.ok { color: #1f9d55; } .me-sub { color: #6b6b6b; }
.me-stats { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-top: 1px solid #eee; margin-top: 14px; padding-top: 12px; font-size: 14px; color: #555; }
.me-stats b { font: 500 18px var(--display); color: #000; }
.who label { display: block; font: 400 22px var(--display); margin-bottom: 8px; color: #000; }
.who-row { display: flex; gap: 10px; } .who-row input { flex: 1; padding: 13px 16px; font: 300 17px var(--font); border: 1px solid #ccc; border-radius: 10px; }
.who-row input.bad { border-color: #c0392b; }
.chip { display: inline-block; font: 500 13px var(--font); padding: 4px 10px; border-radius: 99px; background: #eee; color: #555; width: fit-content; }
.chip.sm { font-size: 11px; padding: 3px 8px; } .chip.live { background: #fff1e3; color: #c85f00; } .chip.win { background: #e3f6ea; color: #17803f; }
.chip.loss { background: #fdeaea; color: #b3261e; } .chip.draw { background: #fff6d6; color: #8a6d00; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e2e2; margin: 6px 0 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 18px; font: 400 18px var(--display); color: #6b6b6b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button.on { color: #000; border-bottom-color: var(--naranja, #f47700); }
.ctrl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: #e9e9e9; border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: 400 15px var(--display); color: #555; cursor: pointer; }
.seg button.on { background: #fff; color: #000; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.filter { flex: 1; min-width: 180px; padding: 9px 14px; border: 1px solid #ccc; border-radius: 10px; font: 300 16px var(--font); }
.tgl { flex-direction: row; align-items: center; gap: 6px; font: 400 14px var(--font); color: #555; }
.plist { display: flex; flex-direction: column; gap: 6px; }
.prow { display: grid; grid-template-columns: 58px 1fr 92px 1fr; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.prow.me { border-color: var(--naranja, #f47700); background: #fff7ef; box-shadow: inset 4px 0 0 var(--naranja, #f47700); }
.ptab { font: 500 24px var(--display); color: var(--naranja, #f47700); text-align: center; } .ptab.bye { font-size: 15px; letter-spacing: 1px; }
.pp { display: flex; flex-direction: column; min-width: 0; } .pp span { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp em { font-style: normal; font-size: 12px; color: #6b6b6b; } .pp.r { text-align: right; }
.pp.w span { font-weight: 500; color: #17803f; } .pp.l span { color: #6b6b6b; } .pp.d span { color: #8a6d00; }
.pscore { text-align: center; font: 500 22px var(--display); } .pscore i { color: #bbb; margin: 0 4px; font-style: normal; }
.prow.done { opacity: .85; }
.azlist { columns: 3 240px; column-gap: 14px; }
.az { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.az span { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .az b { font: 500 17px var(--display); color: var(--naranja, #f47700); }
.az em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: #6b6b6b; } .az.me { border-color: var(--naranja, #f47700); background: #fff7ef; }
.form { display: inline-flex; gap: 3px; } .form i { font: 600 11px var(--font); font-style: normal; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; display: grid; place-items: center; background: #eee; color: #6b6b6b; }
.form i.f-W { background: #1f9d55; color: #fff; } .form i.f-L { background: #e5e5e5; color: #6b6b6b; } .form i.f-D { background: #f2c94c; color: #5a4600; } .form i.f-\? { background: #fff; border: 1px dashed #ccc; }
.me-stats .form i { min-width: auto; padding: 0 7px; }
body.public .tbl.stand tr.me td { background: #fff7ef; } body.public .tbl.stand tr.me td:first-child { box-shadow: inset 4px 0 0 var(--naranja, #f47700); }
.tbl.stand .rk { font: 500 18px var(--display); color: #6b6b6b; width: 44px; } .tbl.stand tr:nth-child(-n+3) .rk { color: var(--naranja, #f47700); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.podium > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.podium .pod-1 { order: 2; border-color: var(--naranja, #f47700); padding: 22px 14px; } .podium .pod-2 { order: 1; } .podium .pod-3 { order: 3; }
.podium .pm { font-size: 30px; } .podium b { font: 500 20px var(--display); } .podium small { color: #6b6b6b; }
.chips.rchips button { border: 0; background: #fff; box-shadow: inset 0 0 0 1px #ccc; border-radius: 99px; padding: 6px 14px; font: 400 15px var(--display); cursor: pointer; }
.chips.rchips button.on { background: var(--negro, #1a1a1a); color: #fff; box-shadow: none; }
.podgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.podc { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.podc.me, .podc.hit { border-color: var(--naranja, #f47700); box-shadow: 0 6px 18px rgba(244,119,0,.12); }
.podc-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fafafa; border-bottom: 1px solid #eee; }
.podc-h b { font: 500 22px var(--display); color: var(--naranja, #f47700); white-space: nowrap; } .podc-h span { font-size: 12px; color: #6b6b6b; flex: 1; white-space: nowrap; }
.podc-p { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; padding: 8px 14px; border-bottom: 1px solid #f3f3f3; font-size: 16px; }
.podc-p:last-child { border-bottom: 0; } .podc-p i { font: 500 14px var(--display); font-style: normal; color: #6b6b6b; }
.podc-p:first-of-type i { color: var(--naranja, #f47700); } .podc-p em { font-style: normal; font-size: 13px; color: #6b6b6b; }
.podc-p.win { background: #effaf3; } .podc-p.win span { font-weight: 500; color: #17803f; } .podc-p.me span { font-weight: 500; }
.roster .rgrid { display: flex; flex-wrap: wrap; gap: 8px; } .roster .rgrid span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 15px; }
/* Portada */
.gamechips { margin-bottom: 26px; } .gamechips a i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--g); margin-right: 7px; }
.gamechips a.on i { box-shadow: 0 0 0 2px #fff; }
.dot-live { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--naranja, #f47700); margin-right: 10px; animation: pulse 1.4s infinite; vertical-align: middle; }
.ltiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ltile { display: flex; flex-direction: column; gap: 10px; background: var(--negro, #1a1a1a); color: #fff !important; border-radius: 14px; padding: 18px 20px;
  background-image: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--g) 45%, transparent), transparent 60%); transition: transform .15s; }
.ltile:hover { transform: translateY(-2px); }
.lt-top { display: flex; gap: 6px; align-items: center; } .lt-clock { margin-left: auto; } .lt-clock .lb-timer { font-size: 28px; }
.lt-name { font: 400 26px/1.15 var(--display); } .lt-meta { color: #bbb; font-size: 15px; } .lt-meta b { color: #fff; font-weight: 500; }
.lt-foot { display: flex; justify-content: space-between; align-items: center; color: #bbb; font-size: 14px; }
.agenda { display: flex; flex-direction: column; gap: 10px; }
.arow { display: grid; grid-template-columns: 78px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: #000;
  box-shadow: inset 4px 0 0 var(--g); transition: box-shadow .15s; }
.arow:hover { color: #000; box-shadow: inset 4px 0 0 var(--g), 0 8px 22px rgba(0,0,0,.08); }
.dtile { display: flex; flex-direction: column; align-items: center; background: #f6f6f6; border-radius: 10px; padding: 6px 0; line-height: 1.1; }
.dtile span { font: 400 13px var(--display); text-transform: uppercase; color: #6b6b6b; letter-spacing: 1px; } .dtile b { font: 500 32px var(--display); color: var(--naranja, #f47700); }
.a-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .a-name { font: 400 21px/1.2 var(--display); margin: 2px 0; } .a-meta { font-size: 14px; color: #6b6b6b; }
.a-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .4px; color: #444; }
.gchip i { width: 9px; height: 9px; border-radius: 50%; background: var(--g); display: inline-block; }
.results { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rrow { display: grid; grid-template-columns: 80px 120px 1fr minmax(120px, auto) 70px 20px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; color: #000; }
.rrow:last-child { border-bottom: 0; } .rrow:hover { background: #fafafa; color: #000; }
.r-date { color: #6b6b6b; font-size: 14px; } .r-name { font: 400 18px var(--display); } .r-win b { font-weight: 500; } .r-pl { color: #6b6b6b; font-size: 13px; text-align: right; } .r-go { color: var(--naranja, #f47700); }
/* TV extra */
.tv-prog { width: 22vw; } .tv-prog small { display: block; font-size: 1.7vh; color: var(--muted); margin-bottom: .6vh; text-align: right; }
.tv-az { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: column; gap: .8vh 2vw; }
.tv-az div { display: flex; align-items: baseline; gap: 1vw; background: var(--card); border-radius: .8vh; padding: .9vh 1.2vw; font-size: 2.6vh; }
.tv-az span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tv-az b { font: 400 3vh var(--display); color: var(--accent); } .tv-az em { font-style: normal; color: var(--muted); font-size: 2vh; }
@media (max-width: 860px) {
  .livebar { grid-template-columns: 1fr auto; gap: 10px 16px; padding: 12px 14px; } .lb-prog { grid-column: 1 / -1; } .lb-timer { font-size: 30px; }
  .me-table b { font-size: 52px; } .me-vs strong { font-size: 22px; }
  .prow { grid-template-columns: 44px 1fr 64px 1fr; padding: 8px; } .pp span { font-size: 14px; } .pscore { font-size: 18px; }
  .tbl.stand .opt { display: none; }
  .arow { grid-template-columns: 62px 1fr; } .a-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .rrow { grid-template-columns: 1fr auto; } .r-date, .r-pl, .r-go { display: none; } .rrow .gchip { grid-row: 1; } .r-name { grid-column: 1 / -1; } .r-win { grid-column: 1 / -1; font-size: 14px; }
  .podium { grid-template-columns: 1fr; } .podium .pod-1, .podium .pod-2, .podium .pod-3 { order: 0; }
  .ltiles { grid-template-columns: 1fr; } .tabs button { padding: 10px 12px; font-size: 16px; }
  .who-row { flex-direction: column; }
}
.infobox { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: -12px 0 26px; }
.infobox h2 { font: 400 20px var(--display); margin: 0 0 6px; } .infobox p { margin: 0 0 8px; font-size: 16px; } .infobox a { color: var(--naranja, #f47700); text-decoration: underline; }
.pod.proposed { border-color: #2a9df4; box-shadow: 0 0 0 3px #2a9df422; }
.proposal { background: #eaf5ff; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.seat > span:last-child { display: flex; flex-direction: column; } .seat .deck, .deck { font-size: 11px; color: var(--muted); font-weight: 400; }
.deckform { display: flex; gap: 6px; margin-top: 4px; } .deckform input { padding: 3px 8px; font-size: 12px; width: 180px; }
.report { flex-basis: 100%; background: #f5f5f5; border-radius: 14px; padding: 14px; }
.report-h { font-size: 14px; color: #555; margin-bottom: 8px; } .report-b { display: flex; flex-wrap: wrap; gap: 6px; }
.report-b button { border: 1px solid #ccc; background: #fff; border-radius: 8px; padding: 9px 14px; font: 400 15px var(--font); cursor: pointer; }
.report-b button:hover { border-color: var(--naranja, #f47700); color: var(--naranja, #f47700); } .report-b button.draw { color: #8a6d00; }
.report-msg { color: #c0392b; font-size: 13px; margin-top: 6px; }
.deckrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid #eee; margin-top: 12px; padding-top: 12px; }
.deckrow label { font: 400 15px var(--display); flex-direction: row; } .deckrow input { flex: 1; min-width: 180px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 8px; font: 300 15px var(--font); }
.podc-p span { display: flex; flex-direction: column; } .tbl small.deck { display: block; }
.phead { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--negro, #1a1a1a); color: var(--naranja, #f47700); display: grid; place-items: center; font: 500 34px var(--display); flex: none; }
.phead h1 { font: 300 38px var(--display); margin: 0; }
.ptiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 30px; }
.ptiles div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ptiles b { display: block; font: 500 30px var(--display); color: var(--naranja, #f47700); } .ptiles span { color: #6b6b6b; font-size: 14px; }
.pgames { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pgames div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: inset 4px 0 0 var(--g); display: flex; flex-direction: column; gap: 4px; }
.pgames b { font: 500 28px var(--display); } .pgames small { color: #6b6b6b; }
a.plink { color: inherit; text-decoration: none; border-bottom: 1px dotted #bbb; } a.plink:hover { color: var(--naranja, #f47700); border-color: var(--naranja, #f47700); }
.tcard-media.logo, .thead-media.logo, .gimg-prev.logo { background-color: #1d1d1f; background-size: auto 58%, cover; background-position: center, center; background-repeat: no-repeat; }
.thead-media.logo { background-size: auto 50%, cover; } .tcard-media.cover, .thead-media.cover { background-size: cover; background-position: center; }
.gimgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gimg { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.gimg-prev { height: 110px; border-radius: 8px; background: #1d1d1f center / cover no-repeat; }
.gimg input[type=file] { font-size: 12px; } .gimg input, .gimg select { font-size: 13px; padding: 6px 8px; }
/* Liga pública */
.lhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 24px; box-shadow: inset 5px 0 0 var(--g); }
.lhead h1 { font: 300 34px var(--display); margin: 4px 0 2px; } .lhead p { margin: 0; }
.lrules { display: flex; gap: 8px; flex-wrap: wrap; } .lrules span { background: #f4f4f4; border-radius: 99px; padding: 6px 12px; font-size: 13px; color: #555; }
.lrules b { font: 500 15px var(--display); color: var(--naranja, #f47700); margin-right: 3px; }
.lgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.lside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.lbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.lbox h3 { font: 400 18px var(--display); color: #000; text-transform: none; letter-spacing: .2px; margin: 0 0 10px; }
.lrow { display: grid; grid-template-columns: 54px 1fr 16px; gap: 12px; align-items: center; padding: 8px 4px; border-top: 1px solid #f0f0f0; color: #000; }
.lrow:first-of-type { border-top: 0; } .lrow:hover { color: #000; background: #fafafa; }
.lrow .dtile { padding: 3px 0; } .lrow .dtile b { font-size: 22px; } .lrow .dtile span { font-size: 11px; }
.lname { font: 400 16px/1.25 var(--display); display: flex; flex-direction: column; } .lname small { font: 300 13px var(--font); color: #6b6b6b; margin-top: 2px; }
@media (max-width: 860px) { .lgrid { grid-template-columns: 1fr; } .lside { position: static; } .lhead h1 { font-size: 28px; } }
.tbl.stand td, .tbl.stand th { white-space: nowrap; }
@media (max-width: 860px) {
  .lgrid .podium { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .lgrid .podium > div { padding: 10px 6px; } .lgrid .podium .pod-1 { order: 2; padding: 14px 6px; } .lgrid .podium .pod-2 { order: 1; } .lgrid .podium .pod-3 { order: 3; }
  .lgrid .podium b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; } .lgrid .podium small { font-size: 11px; } .lgrid .podium .pm { font-size: 22px; }
  .lgrid .tbl.stand th, .lgrid .tbl.stand td { padding: 8px 6px; font-size: 14px; }
}
/* Valor de mazo */
.vhead h1 { font: 300 36px var(--display); margin: 0 0 4px; } .vhead { margin-bottom: 20px; }
.vgrid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
.vform { position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.vform textarea { width: 100%; font: 400 14px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid #ccc; border-radius: 8px; padding: 10px; resize: vertical; }
.vactions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin: 10px 0 6px; flex-wrap: wrap; } .vfile { cursor: pointer; }
.vwait { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.vwait b { font: 400 22px var(--display); } .vwait.err b { color: #c0392b; }
.lb-bar.light { background: #eee; }
.vtotal { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--negro, #1a1a1a); color: #fff; border-radius: 14px; padding: 20px 24px; margin-bottom: 14px;
  background-image: radial-gradient(120% 120% at 100% 0%, rgba(244,119,0,.35), transparent 60%); }
.vtotal span { font: 300 14px var(--display); text-transform: uppercase; letter-spacing: 2px; color: #bbb; display: block; }
.vtotal b { font: 500 52px/1.1 var(--display); color: var(--naranja, #f47700); display: block; } .vtotal small { color: #bbb; }
.vcmd { display: flex; align-items: center; gap: 10px; } .vcmd img { height: 110px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.4); } .vcmd span { font: 400 16px var(--display); letter-spacing: 0; text-transform: none; color: #fff; max-width: 160px; }
.vsave { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fff; border: 1.5px solid var(--naranja, #f47700); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.vsave .who { flex: 1; } .vsave .who label { font-size: 16px; }
.vwarn { background: #fff6d6; color: #6b5500; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.vh { font: 400 20px var(--display); color: #000; text-transform: none; letter-spacing: .2px; margin: 18px 0 10px; }
.vtop { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.vcard { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: #000; font-size: 13px; }
.vcard:hover { color: #000; border-color: var(--naranja, #f47700); } .vcard img, .vcard .noimg { width: 100%; aspect-ratio: 488 / 680; border-radius: 6px; background: #eee; object-fit: cover; }
.vcard b { font: 500 18px var(--display); color: var(--naranja, #f47700); } .vcard small { color: #6b6b6b; }
.vtable tr.cmdrow td { background: #fff7ef; } .vtable a { color: inherit; }
@media (max-width: 860px) { .vgrid { grid-template-columns: 1fr; } .vform { position: static; } .vtotal b { font-size: 40px; } .vcmd img { height: 80px; } }
.budgetrules { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; background: #0000000a; border-radius: 8px; padding: 10px 12px; }
.budgetrules b { font-size: 13px; } .budgetpanel.warnp { border-color: #d9770688; } .budgetpanel.okp { border-color: #1f9d5566; }
.budgetpanel .stats { margin-bottom: 8px; } a.pill { text-decoration: none; } .tbl tr.cmdrow td { background: #fff7ef; }
.budgetline { background: #fff4e8; border-radius: 8px; padding: 8px 12px; font-size: 15px; margin: 0 0 14px; } .budgetline a { color: var(--naranja, #f47700); text-decoration: underline; }
.vsave .warn { color: #c0392b; }

/* Vincular jugadores */
.notice { background: #d977061a; border: 1px solid #d9770655; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.notice.small { font-size: 13px; padding: 8px 12px; margin: 0 0 10px; }
a.plain { text-decoration: none; } a.plain:hover { text-decoration: underline; }
.ppick { position: relative; display: block; flex: 1; min-width: 200px; }
.ppick input { width: 100%; }
.ppick input.picked { box-shadow: inset 0 0 0 2px var(--ok); }
.ppick-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px #0000001f; list-style: none; margin: 0; padding: 4px; max-height: 320px; overflow: auto; }
.ppick-list li { padding: 7px 9px; border-radius: 6px; cursor: pointer; display: grid; gap: 1px; }
.ppick-list li small { color: var(--muted); font-size: 12px; }
.ppick-list li.on, .ppick-list li:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ppick-list li.newp { border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; color: var(--muted); }
.addone, .joinform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.duplist { display: grid; gap: 10px; }
.dup { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.dupwhy { display: grid; justify-items: center; text-align: center; color: var(--muted); max-width: 130px; }
.dupwhy span { font-size: 20px; color: var(--ink); }
.dupbtns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .dupbtns form { margin: 0; }
.pcell { display: grid; gap: 2px; min-width: 0; } .pcell a { text-decoration: none; }
.pcell .badge { font-size: 10px; }
@media (max-width: 760px) { .dup { grid-template-columns: 1fr; } .dupwhy { justify-items: start; max-width: none; display: flex; gap: 8px; } .dupbtns { justify-content: flex-start; } }
.askwho { display: grid; gap: 10px; max-width: 720px; margin-bottom: 16px; }
.whoopt { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; }
.whoopt > div { display: grid; gap: 2px; } .whoopt.new { border-style: dashed; }
.panel form.stack > .btn { align-self: flex-start; }
.ppick textarea { width: 100%; }
.budgetchip { font-size: 12px; font-weight: 700; background: #fff4e8; color: #b45309; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.budgetbox { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 0; border-radius: 12px; overflow: hidden; margin: 0 0 22px; background: #fff; border: 1px solid #f3d9bd; }
.budgetbox .bb-amount { background: linear-gradient(160deg, #f47700, #c2410c); color: #fff; padding: 20px; display: grid; align-content: center; gap: 4px; }
.budgetbox .bb-amount span { font: 600 12px var(--narrow); text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.budgetbox .bb-amount b { font: 700 44px/1 var(--display); }
.budgetbox .bb-amount small { opacity: .9; font-size: 13px; }
.budgetbox .bb-rules { padding: 16px 20px; }
.budgetbox .bb-rules h2 { margin: 0 0 8px; font-size: 14px; }
.budgetbox ul { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; }
@media (max-width: 640px) { .budgetbox { grid-template-columns: 1fr; } .budgetbox .bb-amount { padding: 16px; } .budgetbox .bb-amount b { font-size: 36px; } }
.pmenu { display: inline-block; position: relative; vertical-align: middle; border: 0; padding: 0; }
.tbl:has(.pmenu) { overflow: visible; }
.pmenu > summary { list-style: none; cursor: pointer; padding: 0 8px; border-radius: 6px; font-weight: 800; color: var(--muted); }
.pmenu > summary::-webkit-details-marker { display: none; }
.pmenu[open] > summary { background: #0000000f; color: var(--ink); }
.pmenu > div { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px #0000001f; padding: 10px 12px; display: grid; gap: 8px; width: 260px; white-space: normal; }
.pmenu > div form { margin: 0; display: grid; gap: 2px; justify-items: start; }
.acttbl td { font-size: 12px; padding: 4px 6px; }
.pmenu > div button.link { text-align: left; padding: 0; }
/* Puntuación de Commander */
fieldset.scoring { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; margin: 0; }
fieldset.scoring legend { font: 700 13px var(--narrow); text-transform: uppercase; letter-spacing: .06em; padding: 0 6px; }
fieldset.scoring > label:first-of-type, fieldset.scoring .full { grid-column: 1 / -1; }
fieldset.scoring .sc-size, fieldset.scoring .sc-places { display: contents; }
fieldset.scoring[data-mode="size"] .sc-places, fieldset.scoring[data-mode="places"] .sc-size { display: none; }
.seat .ptsgot { margin-left: auto; font-style: normal; font-weight: 800; color: var(--ok); font-size: 13px; }
.seatp { cursor: pointer; } .seatp select { margin-left: auto; width: auto; padding: 4px 6px; }
.seatp .ptsgot + select { margin-left: 8px; }
.seatp.placed { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.report-b + .report-b { margin-top: 8px; }
.report-b button.on { border-color: var(--naranja, #f47700); background: #fff4e8; }
.report-b button.on b { color: var(--naranja, #f47700); }
.report-b button.send { background: var(--naranja, #f47700); color: #fff; border-color: transparent; font-weight: 600; }
/* Meta público */
.metasum { padding: 8px 14px; background: color-mix(in srgb, var(--g, #f47700) 9%, #fff); border-radius: 12px; }
.msec { margin-top: 22px; }
.mlist { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mrow { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) minmax(120px, 220px) 70px; gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid #eee; }
.mrow:first-child { border-top: 0; }
.mlist:not(:has(.m-img)) .mrow { grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 220px) 70px; }
.m-pos { font: 500 16px var(--display); color: #6b6b6b; text-align: right; }
.m-img { display: block; width: 48px; aspect-ratio: 5 / 7; border-radius: 4px; overflow: hidden; background: #eee; }
.m-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-img.noimg { background: repeating-linear-gradient(135deg, #eee 0 6px, #e4e4e4 6px 12px); }
.m-name { display: grid; min-width: 0; font: 400 18px/1.2 var(--display); }
.m-name a { text-decoration: none; color: inherit; } .m-name a:hover { color: var(--naranja, #f47700); }
.m-name small { font: 400 12px var(--font); color: #6b6b6b; }
.m-bar { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px; padding-bottom: 8px; }
.m-bar span { position: absolute; left: 0; bottom: 0; height: 5px; border-radius: 99px; background: var(--naranja, #f47700); }
.m-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 99px; background: #0000000d; }
.m-bar b { font: 500 18px var(--display); } .m-bar small, .m-top small { font-size: 11px; color: #6b6b6b; }
.m-top { display: grid; justify-items: end; text-align: right; } .m-top b { font: 500 16px var(--display); }
@media (max-width: 640px) {
  .mrow { grid-template-columns: 22px 42px minmax(0, 1fr) 64px; gap: 10px; padding: 8px 10px; }
  .mlist:not(:has(.m-img)) .mrow { grid-template-columns: 22px minmax(0, 1fr) 64px; }
  .m-bar { grid-column: 3; grid-row: 2; } .mlist:not(:has(.m-img)) .m-bar { grid-column: 2; }
  .m-top { grid-row: 1 / span 2; grid-column: -2; } .m-img { grid-row: 1 / span 2; }
  .m-pos { grid-row: 1 / span 2; } .m-name { font-size: 16px; }
}
.cardtip { position: fixed; z-index: 100; width: 280px; pointer-events: none; filter: drop-shadow(0 14px 30px #0008); }
.cardtip img { width: 100%; display: block; border-radius: 12px; }

/* Selector de mazos preconstruidos */
.precon { position: relative; margin-bottom: 10px; --pc-accent: var(--naranja, var(--accent, #f47700)); }
.pc-trigger { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1px solid #0000001a; background: linear-gradient(135deg, #fff, #fff7ef); box-shadow: 0 1px 2px #0000000d, 0 8px 24px -12px #f4770040; font: inherit; color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.pc-trigger:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--pc-accent) 45%, transparent); box-shadow: 0 1px 2px #0000000d, 0 12px 30px -12px #f4770066; }
.pc-art { flex: none; min-width: 52px; height: 46px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 0 0, #ffb36b, var(--pc-accent) 55%, #7a2d00); color: #fff; }
.pc-trigger.picked .pc-art { background: #f4f1ec; box-shadow: inset 0 0 0 1px #0000000f; }
.pc-ico { font-size: 22px; line-height: 1; }
.pc-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pc-txt b { font-weight: 700; font-size: 15px; } .pc-txt small { color: #6b6b6b; font-size: 12.5px; }
.pc-go { flex: none; padding: 7px 14px; border-radius: 999px; background: #111; color: #fff; font-size: 13px; font-weight: 600; }
.pc-trigger.picked .pc-go { background: #fff; color: #111; box-shadow: inset 0 0 0 1px #0000002a; }
.pc-msg { font-size: 13px; color: #6b6b6b; margin: 6px 2px 0; }
.pc-msg:empty { display: none; }
.pc-loading { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #ddd; border-top-color: var(--pc-accent); animation: pcspin .8s linear infinite; vertical-align: -2px; }
@keyframes pcspin { to { transform: rotate(360deg); } }
.pc-panel { position: absolute; z-index: 60; left: 0; top: calc(100% + 8px); width: min(720px, calc(100vw - 48px)); border-radius: 20px; padding: 14px;
  background: color-mix(in srgb, #fff 90%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid #ffffffb0; box-shadow: 0 30px 80px -20px #0000004d, 0 0 0 1px #0000000f; animation: pcin .18s ease-out; }
@keyframes pcin { from { opacity: 0; transform: translateY(-6px) scale(.99); } }
.pc-head { display: flex; gap: 8px; align-items: center; }
.pc-search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 46px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #0000001a; }
.pc-search:focus-within { box-shadow: inset 0 0 0 2px var(--pc-accent); }
.pc-search span { font-size: 20px; color: #6b6b6b; }
.pc-search input { flex: 1; border: 0 !important; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 0 !important; box-shadow: none !important; min-width: 0; }
.pc-close { width: 40px; height: 40px; border-radius: 12px; border: 0; background: #0000000d; cursor: pointer; font-size: 14px; }
.pc-filters { display: flex; align-items: center; gap: 6px; margin: 10px 0 10px; flex-wrap: wrap; }
.pc-filters button { width: 36px; height: 36px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px #0000001a; cursor: pointer; display: grid; place-items: center; opacity: .45; filter: grayscale(.6); transition: .15s; }
.pc-filters button:hover { opacity: .8; filter: none; }
.pc-filters button.on { opacity: 1; filter: none; box-shadow: inset 0 0 0 2px #111; transform: scale(1.06); }
.pc-filters .mana { width: 22px; height: 22px; }
.pc-count { margin-left: auto; font-size: 12px; color: #6b6b6b; }
.mana { width: 17px; height: 17px; vertical-align: middle; border-radius: 50%; box-shadow: 0 1px 1px #0003; }
.pc-mana { display: inline-flex; gap: 2px; } .pc-mana.big .mana { width: 20px; height: 20px; }
.pc-grid { display: flex; flex-direction: column; max-height: min(60vh, 520px); overflow: auto; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #0000000f; scroll-padding: 6px; }
.pc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 10px 14px; border: 0; background: transparent;
  border-top: 1px solid #0000000d; cursor: pointer; font: inherit; color: inherit; transition: background .1s; }
.pc-row:first-child { border-top: 0; }
.pc-row:hover, .pc-row.on { background: color-mix(in srgb, var(--pc-accent) 10%, #fff); }
.pc-row.on { box-shadow: inset 3px 0 0 var(--pc-accent); }
.pc-meta { display: grid; gap: 1px; min-width: 0; }
.pc-meta b { font-size: 15px; line-height: 1.25; } .pc-meta small { font-size: 12.5px; color: #6b6b6b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-tags { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #6b6b6b; }
.pc-tags em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; background: #0000000d; color: #555; }
.pc-empty { color: #6b6b6b; text-align: center; padding: 30px 0; margin: 0; }
@media (max-width: 640px) {
  .pc-panel { position: fixed; inset: auto 0 0 0; top: 8vh; width: auto; border-radius: 22px 22px 0 0; padding: 14px 12px; display: flex; flex-direction: column; }
  .pc-grid { max-height: none; flex: 1; }
  .pc-row { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .pc-row .mana { width: 15px; height: 15px; } .pc-tags span { display: none; }
  .pc-trigger small { display: none; }
}
.cmdnote { display: grid; gap: 4px; } .cmdnote ul { margin: 4px 0 0; padding-left: 18px; }
.cmdnote.doubt { border-color: #d97706; background: #fff4e5; }
.cmdnote code { background: #0000000d; padding: 1px 5px; border-radius: 4px; }
.brbox { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: start; }
.brbox .brn { display: grid; justify-items: center; text-align: center; padding: 12px; border-radius: 12px; background: #f4f1ec; }
.brbox .brn span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6b6b6b; } .brbox .brn b { font-size: 40px; line-height: 1.1; } .brbox .brn small { color: #6b6b6b; }
.brbox.over .brn { background: #fdecea; color: var(--bad); }
.brbox ul { margin: 0 0 8px; padding-left: 18px; }
@media (max-width: 640px) { .brbox { grid-template-columns: 1fr; } }
.bb-amount b.bb-sub { font-size: 22px !important; }
.vbracket { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line, #e2e0d9); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; font-size: 14px; }
.vbracket ul { margin: 0 0 6px; padding-left: 18px; } .vbracket p { margin: 0 0 4px; }
.vb-n { display: grid; justify-items: center; text-align: center; padding: 8px; border-radius: 10px; background: #eef6ee; }
.vb-n span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6b6b6b; } .vb-n b { font: 500 34px/1.1 var(--display); } .vb-n small { font-size: 11px; color: #6b6b6b; }
.vbracket.b3 .vb-n { background: #fff4e5; } .vbracket.b4 .vb-n, .vbracket.b5 .vb-n { background: #fdecea; }
@media (max-width: 640px) { .vbracket { grid-template-columns: 1fr; } }
.vlegal { border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.vlegal.ok { background: #eaf6ec; color: #1d6b35; } .vlegal.bad { background: #fdecea; color: #8a1f14; }
.vlegal ul, ul.legal { margin: 6px 0 0; padding-left: 18px; }
/* Check-in */
.checkinpanel .ck-bar { height: 8px; border-radius: 99px; background: #0000000f; overflow: hidden; margin: 4px 0 10px; }
.checkinpanel .ck-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.ckin { max-width: 520px; margin: 10px auto 30px; text-align: center; }
.ckin-k, .ckp-k { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: #6b6b6b; margin: 0; }
.ckin h1 { margin: 4px 0 18px; }
.ckin-ok { display: grid; justify-items: center; gap: 6px; padding: 26px; border-radius: 18px; background: #eaf6ec; color: #1d6b35; }
.ckin-ok span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: #1f9d55; color: #fff; }
.ckin-me { display: grid; justify-items: center; gap: 10px; }
.checkin-print .ckp { text-align: center; padding: 40px 20px; } .checkin-print .ckp h1 { font-size: 40px; margin: 6px 0; }
.checkin-print .ckp img { width: min(460px, 80vw); margin: 18px auto; display: block; }
.ckp-s { font-size: 22px; } .ckp-u { font-size: 12px; color: #6b6b6b; word-break: break-all; } .ckp-f { font-size: 18px; }
.tgbtn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: #229ED9; color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.tgbtn:hover { background: #1c8cc2; }

/* =====================================================================
   Júpiter 2026 — naranja y negro de la tienda, pensado primero para el móvil
   ===================================================================== */
body.public, body.admin, body.tv {
  --naranja: #f47700; --naranja2: #db6a00; --naranja-ink: #b25200; --naranja-tint: #fff3e6;
  --negro: #121212; --negro2: #1e1e1e; --accent: #f47700;
  --bg: #f2f2f2; --card: #fff; --ink: #141414; --muted: #6e6e6e; --line: #e4e4e4;
  --r: 16px; --r-sm: 12px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px -10px rgba(0,0,0,.16);
  --head-h: 64px; --tab-h: 0px;
}
body.public { background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-tap-highlight-color: transparent; }
body.public b, body.public strong { font-weight: 600; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--naranja) 55%, transparent); outline-offset: 2px; }

/* Cabecera */
.jhead { position: sticky; top: 0; z-index: 40; height: var(--head-h); padding: 0 max(20px, calc((100vw - 1240px) / 2 + 20px)); gap: 20px;
  background: color-mix(in srgb, var(--negro) 94%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.jlogo img { height: 40px; }
.jword { font: 600 26px/1 var(--display); color: #fff; text-transform: uppercase; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.jword::before { content: ""; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 30%, #ffb15c 0 18%, var(--naranja) 48%, #a84800 100%); box-shadow: 0 0 0 3px rgba(244,119,0,.18); }
.jnav { background: none; border: 0; padding: 0; gap: 2px; margin-left: auto; }
.jnav a { font: 400 16px/1 var(--display); text-transform: none; letter-spacing: .3px; color: #cfcfcf; padding: 10px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.jnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.jnav a[aria-current] { color: var(--negro); background: var(--naranja); }
.jcal { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 400 15px var(--display); padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.jcal:hover { color: var(--naranja); box-shadow: inset 0 0 0 1px var(--naranja); }
.jcal svg, .tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Barra inferior (solo móvil) */
.tabbar { display: none; }

.pub { padding: 28px 20px 72px; }
.jfoot { background: var(--negro); color: #a8a8a8; padding: 30px max(20px, calc((100vw - 1240px) / 2 + 20px)); font-size: 14px; }
.jfoot b { font: 500 20px var(--display); }

/* Títulos */
body.public .sec { font: 500 24px/1.2 var(--display); letter-spacing: .2px; margin: 0 0 14px; }
body.public section { margin-bottom: 36px; }
body.public h1.center, .phead h1, .lhead h1, .vhead h1, .thead h1 { font-weight: 500; letter-spacing: .2px; }

/* Botones */
.jbtn { min-height: 44px; border-radius: 999px; padding: 10px 22px; font: 500 16px var(--display); letter-spacing: .3px; background: var(--naranja); color: #fff !important;
  box-shadow: 0 6px 16px -8px rgba(244,119,0,.7); transition: background .15s, transform .1s; }
.jbtn:hover { background: var(--naranja2); } .jbtn:active { transform: scale(.98); }
.jbtn.big { font-size: 19px; padding: 13px 28px; min-height: 52px; }
.jbtn-outline { min-height: 44px; border-radius: 999px; color: var(--ink) !important; border: 0; box-shadow: inset 0 0 0 1.5px #cfcfcf; background: #fff; font: 400 16px var(--display); }
.jbtn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--naranja); color: var(--naranja-ink) !important; }
body.public .btn { border-radius: 999px; min-height: 40px; background: var(--naranja); }
body.public .btn.ghost { background: #fff; }
.jbadge { border-radius: 999px; font: 600 11px var(--font); letter-spacing: .4px; padding: 5px 11px; background: rgba(18,18,18,.78); backdrop-filter: blur(6px); }
.jbadge.live { background: var(--naranja); color: #fff; }

/* Chips de filtro: una fila deslizable */
body.public .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; padding: 2px 2px 4px; margin-bottom: 18px; scroll-snap-type: x proximity; }
body.public .chips::-webkit-scrollbar { display: none; }
body.public .chips a, .chips.rchips button { flex: none; min-height: 40px; display: inline-flex; align-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 999px; font: 400 15px var(--display); letter-spacing: .2px; padding: 8px 16px; color: var(--ink); scroll-snap-align: start; }
body.public .chips a:hover { box-shadow: inset 0 0 0 1.5px var(--naranja); }
body.public .chips a.on, .chips.rchips button.on { background: var(--negro); color: #fff; box-shadow: none; }
.gamechips a.on i { box-shadow: 0 0 0 2px var(--negro), 0 0 0 3.5px var(--g); }

/* Superficies */
.tcard, .thead, .arow, .results, .lbox, .lhead, .infobox, .ptiles div, .pgames div, .podium > div, .podc, .prow, .az, .vform, .vwait, .vcard, .vsave, .vbracket,
body.public .tbl, body.public .cpod, .pair, .mesa-card, .me-card, .roster .rgrid span, .budgetbox, body.public .panel {
  border-radius: var(--r); border-color: var(--line); box-shadow: var(--shadow); }
.tcard { padding: 10px; gap: 6px; }
.tcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 34px -16px rgba(0,0,0,.3); }
.tcard-media { border-radius: 12px; height: 160px; }
.tcard-name { font: 500 19px/1.2 var(--display); }
.tcard-date, .tdate { color: var(--naranja-ink); font-weight: 500; }
.tcard-price { color: var(--ink); font-weight: 500; }
.tcard-foot { border-top-color: #f0f0f0; }
.thead { padding: 12px; }
.thead-media { border-radius: 12px; }

/* Agenda: la fecha como marcador */
.arow { grid-template-columns: 64px 1fr auto; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); }
.arow:hover { box-shadow: inset 4px 0 0 var(--g), 0 16px 30px -18px rgba(0,0,0,.35); }
.dtile { background: var(--negro); border-radius: 12px; padding: 7px 0 6px; }
.dtile span { color: #a8a8a8; font-weight: 400; font-size: 12px; } .dtile b { color: var(--naranja); font-size: 30px; line-height: 1; }
.lrow .dtile b { font-size: 21px; }
.a-name { font: 500 19px/1.2 var(--display); }
.rrow:hover, .lrow:hover { background: #fafafa; }
.r-go { color: var(--naranja-ink); }

/* En directo */
.ltile { background: var(--negro); border-radius: 20px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); position: relative; overflow: hidden; }
.ltile::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,119,0,.32), transparent 65%); pointer-events: none; }
.lt-name { font-weight: 500; }
.livebar { top: calc(var(--head-h) + 8px); z-index: 20; border-radius: var(--r); background: color-mix(in srgb, var(--negro) 96%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.6); }
.lb-bar i { background: var(--naranja); }

/* Mi mesa */
.me-card { border: 0; box-shadow: inset 0 0 0 1.5px var(--naranja), 0 18px 40px -24px rgba(244,119,0,.55); border-radius: 20px; }
.me-card.empty { box-shadow: inset 0 0 0 1.5px #d5d5d5; }
.me-table { border-radius: 16px; padding: 10px 18px; min-width: 96px; }
.me-table b { font-size: 60px; }
.me-vs strong { font-weight: 500; }

/* Pestañas: control segmentado fijo */
.tabs { gap: 4px; border: 0; margin: 4px 0 18px; padding: 4px; background: #e6e6e6; border-radius: 999px; width: fit-content; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 42px; padding: 8px 18px; margin: 0; border: 0; border-radius: 999px; font: 400 16px var(--display); color: var(--muted); background: transparent; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: #fff; background: var(--negro); border: 0; }
.seg { background: #e6e6e6; border-radius: 999px; padding: 4px; }
.seg button { border-radius: 999px; min-height: 36px; }
.filter, body.public .search, .who-row input { border-radius: 14px; border: 1px solid #d6d6d6; background: #fff; min-height: 48px; font-weight: 400; }
body.public .search:focus, .filter:focus, .who-row input:focus { border-color: var(--naranja); outline: 3px solid rgba(244,119,0,.2); }

/* Emparejamientos */
.prow { border-radius: 14px; padding: 10px 12px; }
.prow.me, .az.me, .pair.hl, body.public .cpod.hl, .podc.me, .podc.hit { background: var(--naranja-tint); border-color: var(--naranja); }
.pp.w span { color: #137a3a; font-weight: 600; }
.podc-h { background: #fafafa; }
.podc-h b, .ptab, .az b, .pair .tn, body.public .cpod-h b { color: var(--naranja-ink); }
.ptiles b, .lrules b, .vcard b { color: var(--naranja-ink); }
.tbl.stand tr:nth-child(-n+3) .rk { color: var(--naranja-ink); }
body.public .tbl { overflow: hidden; }
body.public .tbl th { font: 500 13px var(--display); letter-spacing: .4px; color: var(--muted); background: #fafafa; }
body.public .tbl .strong { color: var(--naranja-ink); }
body.public .tbl tr.hlrow td, body.public .tbl.stand tr.me td, .tbl tr.cmdrow td { background: var(--naranja-tint); }
.chip.live { background: var(--naranja-tint); color: var(--naranja-ink); }

/* Valor de mazo y presupuesto */
.vtotal { border-radius: 20px; background: var(--negro); }
.vtotal b { color: var(--naranja); }
.vsave { box-shadow: inset 0 0 0 1.5px var(--naranja), var(--shadow); border: 0; }
.vform textarea { border-radius: 12px; border-color: #d6d6d6; }
.budgetline { background: var(--naranja-tint); border-radius: 12px; } .budgetline a, .infobox a { color: var(--naranja-ink); }
.vb-n, .brbox .brn { background: #eef6ef; } .vbracket.b3 .vb-n { background: var(--naranja-tint); }
.pc-trigger { border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.pc-art { background: var(--negro); color: var(--naranja); }
.pc-go { background: var(--naranja); }
.pc-filters button.on { box-shadow: inset 0 0 0 2px var(--naranja); }

/* Ficha de jugador */
.avatar { background: var(--negro); color: var(--naranja); }
a.plink:hover { color: var(--naranja-ink); border-color: var(--naranja); }

/* Vista previa de cartas */
#cardtip { border-radius: 14px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.55); }

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
  body.public { --head-h: 56px; --tab-h: 64px; font-size: 16px; }
  .jhead { flex-wrap: nowrap; padding: 0 16px; gap: 10px; }
  .jlogo img { height: 34px; } .jword { font-size: 22px; } .jword::before { width: 22px; height: 22px; }
  .jnav { display: none; }
  .jcal { margin-left: auto; padding: 8px; } .jcal span { display: none; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--negro) 96%, transparent);
    backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 -1px 0 rgba(255,255,255,.06); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 14px; color: #9b9b9b; font: 400 11.5px/1 var(--font); letter-spacing: .1px; min-height: 52px; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a[aria-current] { color: var(--naranja); }
  .tabbar a[aria-current] svg { stroke-width: 2.1; filter: drop-shadow(0 0 8px rgba(244,119,0,.45)); }
  .pub { padding: 18px 14px calc(var(--tab-h) + 40px + env(safe-area-inset-bottom)); }
  .jfoot { padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); flex-direction: column; gap: 8px; }
  body.public .sec { font-size: 22px; margin-bottom: 12px; }
  body.public section { margin-bottom: 28px; }
  body.public .grid { grid-template-columns: 1fr; gap: 12px; }
  .tcard { display: grid; grid-template-columns: 104px 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 12px; row-gap: 2px; padding: 8px; }
  .tcard-media { grid-row: 1 / -1; height: auto; min-height: 112px; margin: 0; border-radius: 10px; }
  .tcard-media.art > span { font-size: 15px; left: 8px; bottom: 7px; }
  .tcard-badges { top: 6px; left: 6px; } .tcard-badges .jbadge { font-size: 9.5px; padding: 3px 7px; }
  .tcard-name { font-size: 17px; }
  .tcard-foot { border: 0; padding: 4px 0 0; margin: 0; }
  .tcard-foot .jbtn { min-height: 38px; padding: 7px 16px; font-size: 15px; }
  .tcard-price { font-size: 18px; }
  .arow { grid-template-columns: 54px 1fr; padding: 9px 12px 9px 9px; gap: 12px; }
  .arow .a-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .dtile b { font-size: 25px; } .dtile span { font-size: 11px; }
  .a-name { font-size: 17px; } .a-meta { font-size: 13.5px; }
  .ltiles { grid-template-columns: 1fr; gap: 12px; } .ltile { padding: 16px; border-radius: 18px; } .lt-name { font-size: 22px; }
  .rrow { grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; }
  .rrow > * { grid-column: 1; } .rrow .r-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; } .r-pl { text-align: left; }
  .livebar { grid-template-columns: auto 1fr; gap: 6px 14px; padding: 10px 14px; border-radius: 14px; top: calc(var(--head-h) + 6px); }
  .livebar > :nth-child(3) { grid-column: 1 / -1; }
  .lb-round { font-size: 18px; } .lb-round b { font-size: 24px; } .lb-timer { font-size: 30px; justify-self: end; }
  .me-card { padding: 14px; border-radius: 18px; }
  .me-main { gap: 12px 14px; flex-wrap: wrap; align-items: flex-start; }
  .me-table { justify-content: center; min-width: 84px; padding: 8px 12px; align-self: stretch; max-height: 132px; } .me-table b { font-size: 50px; }
  .me-vs { flex: 1; } .me-rivals span { display: block; }
  .report { padding: 12px; } .report-b button { flex: 1 1 40%; min-height: 48px; }
  .me-vs strong { font-size: 22px; }
  .tabs { margin: 0 0 14px; }
  .ctrl { gap: 8px; } .ctrl .filter { flex-basis: 100%; }
  .prow { grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; row-gap: 2px; padding: 10px 12px; }
  .prow .ptab { grid-row: 1 / -1; font-size: 22px; }
  .prow .pp.r { text-align: left; } .prow .pscore { text-align: left; font-size: 17px; }
  .pairs, .cpods, .podgrid, .pgames { grid-template-columns: 1fr; }
  .azlist { columns: 1; }
  .podium { gap: 8px; } .podium > div { padding: 10px 6px; } .podium b { font-size: 16px; } .podium .pm { font-size: 24px; }
  .thead { padding: 8px; gap: 12px; } .thead-info { padding: 4px 6px 8px; }
  .thead-cta .jbtn { flex: 1; }
  .lgrid, .vgrid { grid-template-columns: 1fr; } .lside, .vform { position: static; }
  .lhead { padding: 16px; } .lhead h1 { font-size: 28px; }
  .vtotal { padding: 16px 18px; border-radius: 18px; } .vtotal b { font-size: 42px; }
  .phead { gap: 12px; } .phead h1 { font-size: 28px; } .avatar { width: 56px; height: 56px; font-size: 26px; }
  .ptiles { grid-template-columns: repeat(2, 1fr); gap: 8px; } .ptiles b { font-size: 26px; }
  body.public .tablewrap { margin: 0 -14px; padding: 0 14px; }
  body.public .tbl td { font-size: 15px; padding: 9px 8px; }
  .who-row { flex-direction: column; } .who-row .jbtn { width: 100%; }
  .ckin { margin-top: 0; }
  #cardtip { display: none !important; }
}

/* ---------- Administración ---------- */
body.admin { background: var(--bg); }
.topbar { background: var(--negro); height: 56px; padding: 0 18px; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.topbar .brand { font: 500 20px var(--display); letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
.topbar .brand::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffb15c 0 18%, var(--naranja) 48%, #a84800 100%); }
.topbar .brand small { font: 400 13px var(--display); color: var(--naranja); letter-spacing: .5px; text-transform: none; }
.userbox a, .userbox button { color: #bdbdbd; } .userbox a:hover, .userbox button:hover { color: #fff; }
.shell { grid-template-columns: 220px 1fr; min-height: calc(100vh - 56px); }
.sidenav { background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow: auto; }
.sidenav a { padding: 10px 14px; border-radius: 12px; font-weight: 500; color: #3a3a3a; }
.sidenav a:hover { background: #f4f4f4; color: var(--ink); }
.sidenav a.on { background: var(--naranja-tint); color: var(--naranja-ink); box-shadow: inset 3px 0 0 var(--naranja); }
.navgrp { margin-top: 6px; }
.navgrp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 14px 6px; font: 600 12px var(--font); letter-spacing: .04em; color: #8a8a8a; border-radius: 8px; user-select: none; }
.navgrp > summary::-webkit-details-marker { display: none; }
.navgrp > summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border: solid #aaa; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.navgrp[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.navgrp > summary:hover { color: var(--ink); }
.navgrp[open] > summary .navbadge.sum { display: none; }
.navgrp > div { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; margin-left: 14px; border-left: 1px solid var(--line); }
.navgrp > div a { padding: 8px 12px; }
body.admin h1 { font: 500 30px/1.15 var(--display); letter-spacing: .2px; }
body.admin h2 { font: 500 17px var(--display); letter-spacing: .3px; text-transform: none; }
.panel { border-radius: var(--r); box-shadow: var(--shadow); border-color: var(--line); }
body.admin .btn { border-radius: 999px; min-height: 38px; padding: 8px 16px; }
body.admin .btn.small { min-height: 32px; padding: 5px 12px; }
body.admin input, body.admin select, body.admin textarea { border-radius: 10px; border-width: 1px; border-color: #d4d4d4; min-height: 40px; }
body.admin textarea { min-height: 0; }
body.admin .tbl { border-radius: var(--r); box-shadow: var(--shadow); }
body.admin .tbl th { background: #fafafa; }
.chips a.on { background: var(--negro); color: #fff; }
.pod { border-radius: 14px; } .seat { border-radius: 12px; min-height: 48px; }
.seatn { background: var(--negro); }
.flash { border-radius: 12px; }
.stats > div { border-radius: 14px; box-shadow: var(--shadow); } .stats b { font: 500 28px/1.1 var(--display); }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .panel { min-width: 0; } body.admin textarea { width: 100%; }
  body.admin .tbl:not(.tablewrap .tbl) { display: block; overflow-x: auto; }
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; } .stats > div { min-width: 0; padding: 10px 12px; }
  .topbar { height: 52px; padding: 0 12px; gap: 10px; } .topbar .brand small { display: none; }
  .navtoggle { font-size: 22px; width: 44px; height: 44px; }
  .sidenav { position: fixed; inset: 52px 0 0 0; top: 52px; height: auto; max-height: none; z-index: 30; padding: 12px; gap: 4px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
  .sidenav a { padding: 14px 16px; font-size: 16px; } .navgrp > div a { padding: 12px 14px; } .navgrp > summary { font-size: 13px; padding: 12px 16px 8px; }
  .content { padding: 16px 12px 70px; }
  body.admin h1 { font-size: 24px; }
  .panel { padding: 14px; }
  body.admin .tablewrap { margin: 0 -12px; padding: 0 12px; }
  .pods { grid-template-columns: 1fr; }
}

/* ---------- TV ---------- */
body.tv { --bg: #0d0d0d; --card: #1a1a1a; --line: #2a2a2a; --ink: #f4f4f4; --muted: #8e8e8e; }
.tv-head { border-bottom-color: var(--naranja); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.report-b button { border-radius: 12px; border-color: #d6d6d6; min-height: 44px; }
.report-b button.on { border-color: var(--naranja); background: var(--naranja-tint); color: var(--naranja-ink); }
.report-b button.send { background: var(--naranja); border-color: var(--naranja); color: #fff; font-weight: 500; }
.tgbtn { border-radius: 999px; min-height: 46px; }

/* =====================================================================
   Pulido tras la revisión (contraste, modo mesa, reporte, estados)
   ===================================================================== */
body.public, body.admin { --ok: #15803d; --warn: #b45309; --shadow: none; --lift: 0 12px 28px -18px rgba(0,0,0,.45); }
[hidden] { display: none !important; }
::selection { background: rgba(244,119,0,.28); }
body.public { min-height: 100dvh; display: flex; flex-direction: column; } body.public .pub { flex: 1; width: 100%; }

/* Naranja con texto negro: contraste 6,7:1 */
.jbtn, body.public .btn, body.admin .btn:not(.ghost):not(.danger-ghost), .pc-go, .report-b button.send { color: var(--negro) !important; }
.jbtn, body.admin .btn:not(.ghost):not(.danger-ghost) { background: var(--naranja); box-shadow: none; font-weight: 600; }
.jbtn:hover, body.admin .btn:not(.ghost):not(.danger-ghost):hover { background: #ff8a1f; filter: none; }
.jbadge.live { color: var(--negro); animation: none; }
.chip.live { color: #8a3f00; }
.ltile::after { display: none; }
.jword::before { background: linear-gradient(transparent 40%, rgba(18,18,18,.55) 40% 52%, transparent 52% 62%, rgba(18,18,18,.3) 62% 68%, transparent 68%), var(--naranja); box-shadow: none; }
.topbar .brand::before { background: linear-gradient(transparent 40%, rgba(18,18,18,.55) 40% 52%, transparent 52% 62%, rgba(18,18,18,.3) 62% 68%, transparent 68%), var(--naranja); }

/* Una sola elevación: borde en las superficies, sombra solo en lo que flota */
.me-card { box-shadow: inset 0 0 0 2px var(--naranja), var(--lift); }
.livebar, .vtotal, .ltile { box-shadow: var(--lift); }
.tcard:hover { box-shadow: var(--lift); }

/* Pestañas legibles y a todo el ancho en el móvil */
.tabs button { color: #474747; }
.tabs button.on { color: #fff; }

/* Iconos propios en vez de emojis */
.ico-tr, .ico-tg { width: 1.05em; height: 1.05em; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-tr { color: var(--naranja-ink); }
.tgbtn .ico-tg { width: 20px; height: 20px; }
.podium .pm { font: 500 26px/1 var(--display); color: var(--naranja-ink); }
.podium .pod-1 .pm { color: var(--negro); background: var(--naranja); border-radius: 999px; padding: 4px 12px; align-self: center; }

/* ¿Quién eres? con mensaje visible */
.who-msg { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #fff4e5; color: #6b3500; font-size: 15px; }
.who-sug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.who-sug button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px #e8c9a5; font: 500 15px var(--font); color: var(--ink); cursor: pointer; }
.who-sug button small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.who-sug button:hover { box-shadow: inset 0 0 0 2px var(--naranja); }
.who-row input.bad { border-color: #c0392b; }

/* Barra de ronda: reloj con etiqueta y frescura de datos */
.lb-clock { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.lb-tl { font: 400 12px var(--font); color: #a8a8a8; margin-top: 3px; }
.lb-age { color: #a8a8a8; } .lb-age.off { color: #ffb347; font-weight: 600; }

/* Mi mesa */
.me-head { align-items: center; }
.me-head .link { min-height: 44px; padding: 0 4px 0 12px; color: var(--naranja-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.me-card { scroll-margin-top: calc(var(--head-h) + 120px); }
.me-more { border-top: 1px solid #eee; margin-top: 12px; padding-top: 4px; }
.me-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font: 500 16px var(--display); color: var(--ink); list-style: none; }
.me-more summary::-webkit-details-marker { display: none; }
.me-more summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.me-more[open] summary::after { transform: rotate(-135deg); }
.me-more .deckrow:first-of-type { border-top: 0; margin-top: 0; }

/* Reporte de Commander: huecos 1º-4º que se rellenan */
.report-sent { background: #eaf6ec; color: #14532d; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; }
.report-h { color: #3d3d3d; font-size: 15px; }
.slots { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.slots li { display: grid; grid-template-columns: 40px 1fr; align-items: center; min-height: 48px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e1e1e1; padding: 0 6px 0 0; }
.slots li > b { font: 500 20px var(--display); text-align: center; color: #9a9a9a; }
.slots li > span { color: #b0b0b0; }
.slots li.set > b { color: var(--naranja-ink); }
.slots li.next { box-shadow: inset 0 0 0 2px var(--naranja); }
.slots li button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; border: 0; background: none; font: 600 16px var(--font); color: var(--ink); cursor: pointer; text-align: left; padding: 0 8px; }
.slots li button span { color: var(--muted); font-size: 20px; font-weight: 400; }
.report-b button { color: var(--ink); background: #fff; }
.report-b button.on { border-color: var(--naranja); background: var(--naranja); color: var(--negro); }
.report-go { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.report-go .jbtn { width: 100%; }
.linkbtn { background: none; border: 0; min-height: 44px; font: 500 15px var(--font); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.report-msg:empty { display: none; }
.report-msg { color: #b42318; font-weight: 500; }

/* Leyenda de la clasificación */
.legend { font-size: 13.5px; color: var(--muted); margin: 10px 2px 0; line-height: 1.5; }
.legend b { color: var(--ink); font-weight: 600; }

.melee-out { text-align: center; margin: 28px 0 0; }
.infobox.after { margin: 24px 0 0; }

/* Admin */
.panel.live { border-color: color-mix(in srgb, var(--naranja) 55%, transparent); }
.actions .push-end { margin-left: auto; }
.btn.danger-ghost { background: #fff; color: #b42318; box-shadow: inset 0 0 0 1.5px #f3c4bf; }
.btn.danger-ghost:hover { background: #fdecea; color: #b42318; filter: none; }
.actions-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -6px 0 18px; font-size: 14px; }
.actions-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.actions-links a:hover { color: var(--naranja-ink); }
details.panel.fold > summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; }
details.panel.fold > summary::-webkit-details-marker { display: none; }
details.panel.fold > summary h2 { margin: 0; }
details.panel.fold > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; align-self: center; }
details.panel.fold[open] > summary { margin-bottom: 14px; } details.panel.fold[open] > summary::before { transform: rotate(45deg); }
.danger-zone { border-color: #f3c4bf; }
.danger-zone h2 { color: #b42318; }
.undo-toast { position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px;
  background: var(--negro); color: #fff; border-radius: 999px; box-shadow: 0 16px 36px -14px rgba(0,0,0,.6); font-size: 15px; width: max-content; animation: toastin .25s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 24px); }
.undo-toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo-toast button { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--naranja); color: var(--negro); font: 600 15px var(--font); cursor: pointer; }
.undo-toast a { color: #a8a8a8; font-size: 22px; padding: 0 8px; text-decoration: none; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px); } }
body.admin .status.live { color: var(--naranja-ink); }

@media (min-width: 861px) { .melee-out { display: none; } }
@media (max-width: 860px) {
  /* Modo mesa: cabecera de una línea mientras se juega */
  .thead.is-live { grid-template-columns: 1fr; padding: 12px 14px; margin-bottom: 12px; gap: 0; }
  .thead.is-live .thead-media, .thead.is-live .tdate, .thead.is-live .tmeta, .thead.is-live .thead-cta, .thead.is-live .budgetline { display: none; }
  .thead.is-live .thead-info { padding: 0; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
  .thead.is-live .tcard-badges { margin: 0; order: 2; }
  .thead.is-live h1 { font-size: 20px; margin: 0; flex: 1 1 auto; order: 1; }
  .jbadge, .tcard-badges .jbadge { font-size: 11px; padding: 4px 9px; }
  .tabs { width: 100%; display: flex; } .tabs button { flex: 1; padding: 8px 6px; }
  .livebar { grid-template-columns: 1fr auto; }
  .lb-clock { align-items: flex-end; }
  .lb-prog-t { font-size: 12.5px; }
  .actions .push-end { margin-left: 0; }
  .undo-toast { bottom: 12px; }
}
.budgetbox { border-color: var(--line); }
.budgetbox .bb-amount { background: var(--negro); color: #fff; }
.budgetbox .bb-amount b { color: var(--naranja); font-weight: 500; }
.budgetbox .bb-amount span, .budgetbox .bb-amount small { opacity: 1; color: #c9c9c9; }
.prow.done { opacity: 1; background: #fafafa; }
.dot-live { animation: none; }
body.public p, body.public li { text-wrap: pretty; }
body.public h1, body.public h2 { text-wrap: balance; }
.m-name { line-height: 1.3; }
/* Tarjetas sin imagen del juego */
.tcard.nomedia { padding: 14px 16px; gap: 6px; }
.tcard.nomedia .tcard-badges.static { margin: 0 0 2px; }
.tcard.nomedia .jbadge:first-child { background: color-mix(in srgb, var(--g) 16%, #fff); color: color-mix(in srgb, var(--g) 55%, #000); }
.thead.nomedia { grid-template-columns: 1fr; padding: 18px 22px; }
.thead.nomedia .jbadge:first-child, .thead.nomedia .tcard-badges .jbadge:not(.live) { background: color-mix(in srgb, var(--g) 16%, #fff); color: color-mix(in srgb, var(--g) 55%, #000); }
@media (max-width: 860px) {
  .tcard.nomedia { display: flex; padding: 12px 14px; }
  .thead.nomedia { padding: 14px 16px; }
}
/* Logo oficial */
.jlogo img { height: 50px; width: auto; display: block; }
.topbar .brand img { height: 30px; width: auto; display: block; }
.topbar .brand::before { display: none; }
@media (max-width: 860px) { .jlogo img { height: 36px; } .topbar .brand img { height: 26px; } }
/* Lista de torneos de Commander */
.listbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.stfilter { display: flex; gap: 6px; flex-wrap: wrap; }
.stpill { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 0; cursor: pointer; font: 500 14px var(--font); background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.stpill span { font-variant-numeric: tabular-nums; opacity: .7; margin-left: 2px; }
.stpill.on { background: var(--negro); color: #fff; box-shadow: none; }
.evlist { display: grid; gap: 8px; margin-bottom: 18px; }
.evrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 10px 16px; }
.evmain { display: grid; gap: 2px; text-decoration: none; min-width: 0; color: var(--ink); }
.evmain b { font: 500 18px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .evmain:hover b { color: var(--naranja-ink); }
.evmain small { color: var(--muted); }
.stchip { font: 600 12px var(--font); padding: 4px 10px; border-radius: 999px; background: #eee; color: #444; white-space: nowrap; }
.stchip.st-running { background: var(--naranja); color: var(--negro); } .stchip.st-setup { background: #e6f2ea; color: #14532d; }
.evact { display: flex; gap: 6px; } .evact form { margin: 0; }
@media (max-width: 860px) {
  .evrow { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
  .evact { grid-column: 1 / -1; } .evact .btn { flex: 1; justify-content: center; min-height: 40px; } .evact form { flex: 1; display: flex; }
  .listbar .btn { width: 100%; justify-content: center; }
}
/* Meta: pestañas Más jugadas / Win rate */
.tabs a { flex: none; min-height: 42px; display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; font: 400 16px var(--display); color: #474747; text-decoration: none; }
.tabs a.on { background: var(--negro); color: #fff; }
.metatabs { margin: 6px 0 14px; }
.wrnote { max-width: 70ch; margin: 0 0 14px; }
.wrbar span { z-index: 1; background: #6b6b6b; } .wrbar.up span { background: #15803d; } .wrbar.down span { background: #b42318; }
.wrbar i { position: absolute; z-index: 2; bottom: -3px; width: 2px; height: 11px; background: var(--negro); border-radius: 1px; }
.m-top b.pos { color: #15803d; } .m-top b.neg { color: #b42318; }
@media (max-width: 860px) { .metatabs { width: 100%; display: flex; } .metatabs a { flex: 1; justify-content: center; } }
.m-deck { font: 500 17px/1.25 var(--display); }
.mlist:has(.m-deck) .mrow { grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 220px) 70px; }
.wrfew { margin-top: 14px; } .wrfew summary { cursor: pointer; color: var(--muted); min-height: 40px; display: flex; align-items: center; }
@media (max-width: 860px) {
  .mlist:has(.m-deck) .mrow { grid-template-columns: 22px minmax(0, 1fr) 64px; }
  .mlist:has(.m-deck) .m-bar { grid-column: 2; }
  .metatabs a { padding: 8px 6px; font-size: 14px; text-align: center; line-height: 1.15; }
}
.barsel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.barsel label { font: 500 16px var(--display); flex-direction: row; }
.barsel select { min-height: 44px; border-radius: 12px; border: 1px solid #d6d6d6; padding: 8px 12px; font: 400 15px var(--font); background: #fff; max-width: 100%; flex: 1 1 260px; }
a.m-deck { color: var(--ink); text-decoration: underline; text-decoration-color: #d0d0d0; text-underline-offset: 3px; } a.m-deck:hover { color: var(--naranja-ink); text-decoration-color: currentColor; }
.metasum a, .wrnote a { color: var(--naranja-ink); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   Cuentas de jugador, inscripción y pagos
   ===================================================================== */
.jacc { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 400 15px var(--display); padding: 8px 14px 8px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); white-space: nowrap; }
.jacc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.jacc:hover { color: var(--naranja); box-shadow: inset 0 0 0 1px var(--naranja); }
.jacc.in { background: var(--naranja); color: var(--negro); box-shadow: none; }
.jacc.in:hover { background: #ff8a1f; color: var(--negro); }
.jcal { margin-left: 0; }
@media (max-width: 860px) {
  .jacc { margin-left: auto; padding: 7px 12px 7px 9px; font-size: 14px; } .jacc span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .jcal { margin-left: 0; }
}

.acct { max-width: 760px; margin: 0 auto; }
.authcard { max-width: 460px; margin: 8px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; }
.authcard h1 { font: 500 30px/1.15 var(--display); margin: 0 0 6px; }
.aform { display: grid; gap: 14px; margin: 18px 0 12px; }
.aform label { font: 500 15px var(--font); gap: 6px; }
.aform input[type=email], .aform input[type=password], .aform input:not([type]), .aform input[type=text] { min-height: 48px; border-radius: 12px; border: 1px solid #d6d6d6; padding: 10px 14px; font: 400 16px var(--font); }
.aform input:focus { border-color: var(--naranja); outline: 3px solid rgba(244,119,0,.2); }
.aform .check-inline { font-weight: 400; font-size: 14px; color: #3d3d3d; align-items: flex-start; } .aform .check-inline input { margin-top: 3px; }
.aform .jbtn { width: 100%; }
.aform.inline2 { grid-template-columns: 1fr auto; align-items: end; margin: 6px 0 12px; }
.aalt { text-align: center; margin: 8px 0; } .aalt a, .acard a:not(.jbtn):not(.jbtn-outline):not(.tgbtn), .signbox a:not(.jbtn) { color: var(--naranja-ink); text-decoration: underline; text-underline-offset: 3px; }
.aflash { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; }
.aflash.ok { background: #eaf6ec; color: #14532d; } .aflash.err { background: #fdecea; color: #8a1f14; }
.ahead { display: flex; gap: 14px; align-items: center; margin: 4px 0 18px; } .ahead h1 { font: 500 30px var(--display); margin: 0; } .ahead p { margin: 0; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; }
.acard h2 { font: 500 21px var(--display); margin: 0 0 10px; } .acard h3 { font: 500 16px var(--display); margin: 16px 0 8px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.acard details summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--naranja-ink); }
.arow2 { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; margin-top: 10px; }
.dangerz summary { color: #b42318 !important; }
.myev { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f0f0; }
.myev:first-child { border-top: 0; }
.myev > a { display: grid; gap: 2px; color: var(--ink) !important; text-decoration: none !important; min-width: 0; }
.myev > a b { font: 500 17px var(--display); } .myev > a small { color: var(--muted); }
.myev form { margin: 0; }
.mystate { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stchip.st-paid { background: #e6f2ea; color: #14532d; } .stchip.st-unpaid { background: #fff1e0; color: #8a3f00; } .stchip.st-wait { background: #ececf4; color: #3b3b63; }
.sugs { display: grid; gap: 8px; margin: 10px 0 16px; }
.sug { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; background: #fafafa; border: 1px solid var(--line); border-radius: 14px; margin: 0; }
.sug span { display: grid; gap: 2px; min-width: 0; } .sug small { color: var(--muted); } .sug.taken { opacity: .7; }
.claimsearch { margin: 8px 0 4px; } .claimsearch label { font: 500 15px var(--font); margin-bottom: 6px; }
.claimlist { margin: 8px 0 12px; }
.payrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid #f0f0f0; }
.payrow:first-child { border-top: 0; } .payrow form { margin: 0; }
.mydeck { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 8px; }
.mydeck label { font: 500 16px var(--display); } .mydeck a { color: var(--naranja-ink); text-decoration: underline; }
.mdpick { margin-bottom: 10px; font: 500 15px var(--font); gap: 6px; } .mdpick select { min-height: 44px; border-radius: 12px; }

/* Caja de inscripción en la página del torneo */
.signbox { background: var(--negro); color: #fff; border-radius: 20px; padding: 18px 20px; margin: 0 0 22px; box-shadow: var(--lift); }
.signbox.is-in { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--naranja); }
.sb-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sb-info h2 { font: 500 24px var(--display); margin: 0 0 4px; } .sb-info p { margin: 4px 0 0; color: inherit; opacity: .9; } .sb-info b { color: var(--naranja); font-weight: 600; }
.signbox.is-in .sb-info b { color: var(--naranja-ink); }
.sb-act { display: grid; justify-items: center; gap: 6px; } .sb-act form { margin: 0; } .sb-act small { color: #bdbdbd; } .signbox.is-in .sb-act small { color: var(--muted); }
.signbox .sb-act a:not(.jbtn) { color: #fff; } .signbox.is-in .sb-act a:not(.jbtn) { color: var(--naranja-ink); }
@media (max-width: 860px) { .sb-act, .sb-act form, .sb-act .jbtn { width: 100%; } .signbox { padding: 16px; } }

/* Admin: pagos, lista de espera, cuentas */
.paypill { border: 0; cursor: pointer; font: 600 12px var(--font); padding: 5px 10px; border-radius: 999px; background: #fff1e0; color: #8a3f00; box-shadow: inset 0 0 0 1px #f3c99a; }
.paypill.on { background: #e6f2ea; color: #14532d; box-shadow: inset 0 0 0 1px #b6dcc1; }
.paybtns { display: flex; gap: 6px; flex-wrap: wrap; }
.paylist { margin: 8px 0; }
.waitbox { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); } .waitbox h3 { margin: 0 0 6px; }
.stats .warnstat b { color: #b45309; }
.navbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--naranja); color: var(--negro); font: 700 12px var(--font); margin-left: 4px; }
.claims { display: grid; gap: 10px; }
.claim { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.claimbtns { display: flex; gap: 6px; flex-wrap: wrap; } .claimbtns form { margin: 0; }
code.copyable { display: block; margin-top: 8px; padding: 10px 12px; background: #fff; border-radius: 8px; user-select: all; word-break: break-all; font-size: 13px; }
.signupset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.signupset legend { font: 500 15px var(--display); padding: 0 6px; }
@media (max-width: 860px) { .signupset { grid-template-columns: 1fr; } .myev { grid-template-columns: 1fr auto; } .myev .mystate { grid-column: 1 / -1; justify-content: flex-start; } }
.acard h2, .signbox h2, .authcard h1 { text-transform: none; letter-spacing: .2px; }
.pmenu > div { z-index: 70; max-height: calc(100vh - 16px); overflow: auto; }
.aform.two { grid-template-columns: 1fr 1fr auto; align-items: end; margin: 6px 0 12px; } @media (max-width: 860px) { .aform.two { grid-template-columns: 1fr; } }
.deckitem { border-top: 1px solid var(--line); padding: 8px 0; } .deckitem summary { cursor: pointer; }
.sb-deck { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.08); }
.sb-deck p { margin: 0 0 8px; }
.sb-deckact { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sb-pick { margin: 0; } .sb-pick select { min-height: 44px; border-radius: 999px; border: 1px solid #d6d6d6; padding: 0 14px; font: 400 15px var(--font); background: #fff; max-width: 100%; }
a.stchip { text-decoration: none !important; }
.signbox a.jbtn-outline { text-decoration: none !important; color: var(--ink) !important; }
/* Jugadores: pestañas Fichas · Cuentas web · Duplicados · Staff */
.ptabs { margin: 0 0 16px; }
.ptabs a { gap: 6px; }
.ptabs a .navbadge { margin: 0; }
.pill.acc { text-decoration: none; background: #fff3e6; color: #8a3d00; box-shadow: inset 0 0 0 1px #f8c79a; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 860px) { .ptabs { width: 100%; display: flex; } .ptabs a { flex: 1; justify-content: center; padding: 8px 4px; font-size: 14px; } }
.ptabs a { white-space: nowrap; }
/* TV: celebración al reportar una mesa de Commander */
.cel { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, #2a1200 0, #000 70%); opacity: 0; transition: opacity .35s ease; }
.cel.on { opacity: 1; } .cel.off { opacity: 0; transition-duration: .6s; }
.cel-rays { position: absolute; left: 50%; top: 42%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax; opacity: .5;
  background: repeating-conic-gradient(from 0deg, #f4770055 0 9deg, transparent 9deg 18deg); animation: cel-spin 22s linear infinite; mask: radial-gradient(circle, #000 0, transparent 55%); }
.cel.draw .cel-rays { background: repeating-conic-gradient(from 0deg, #ffffff22 0 9deg, transparent 9deg 18deg); }
.cel-in { position: relative; text-align: center; color: #fff; padding: 0 6vw; }
.cel-kick { font: 600 2.6vh var(--narrow, var(--font)); letter-spacing: .14em; text-transform: uppercase; color: #f47700; animation: cel-up .5s ease .8s both; }
.cel-name { font: 900 11vh/1 var(--display, var(--font)); letter-spacing: -.02em; margin: 1.2vh 0; text-wrap: balance; animation: cel-slam .6s cubic-bezier(.2, 1.5, .4, 1) 1s both; text-shadow: 0 .6vh 0 #f47700; }
.cel-sub { font: 700 4.2vh var(--font); animation: cel-up .5s ease 1.4s both; } .cel-sub b { display: block; font-weight: 500; font-size: 3vh; color: #ffd23f; margin-top: .6vh; }
.cel-vs { font: 500 2.6vh var(--font); color: #bdbdbd; margin-top: 2vh; animation: cel-up .5s ease 1.7s both; }
.cel-confetti { position: absolute; inset: 0; pointer-events: none; }
.cel-confetti i { position: absolute; top: -6vh; border-radius: 2px; animation: cel-fall linear both; }
@keyframes cel-spin { to { transform: rotate(360deg); } }
@keyframes cel-slam { from { transform: scale(2.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cel-up { from { transform: translateY(3vh); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cel-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--x), 112vh) rotate(var(--r)); opacity: 0; } }
.cel.still *, .cel.still { animation: none !important; }
.cel-in { z-index: 2; } .cel-confetti { z-index: 1; }


/* Mogudeck: cae con gravedad, aplasta al tocar el suelo y bota con anticipación; orejas y brazos siguen el movimiento con retraso */
.cel-jupi { width: 42vh; height: auto; display: block; margin: 0 auto .5vh; overflow: visible; }
.mg-enter { transform-origin: 130px 272px; animation: mg-enter .95s both; }
.mg-hop { transform-origin: 130px 272px; animation: mg-hop 1.25s 1.05s infinite; }
.mg-shadow { transform-origin: 130px 272px; animation: mg-sh-in .95s both, mg-sh 1.25s 1.05s infinite; }
.mg-arm.l { transform-origin: 84px 204px; animation: mg-wave .42s ease-in-out 1s infinite alternate; }
.mg-arm.r { transform-origin: 176px 204px; animation: mg-pump 1.25s 1.05s infinite; }
.mg-fan { transform-origin: 214px 150px; animation: mg-fan .5s cubic-bezier(.3, 1.6, .5, 1) .75s both; }
.cel-eyes { transform-origin: 130px 172px; animation: mg-blink 3.4s 1.8s infinite; }
.mg-dust circle { fill: #f4e3cf; transform-box: fill-box; transform-origin: center; opacity: 0; }
.mg-dust.in circle { animation: mg-dust .7s ease-out .6s forwards; }
.mg-dust.hop circle { animation: mg-dust-hop 1.25s ease-out 1.05s infinite; }
.mg-dust circle:nth-child(odd) { --dx: -26px; } .mg-dust circle:nth-child(even) { --dx: 26px; }
@keyframes mg-enter {
  0% { transform: translateY(-460px) scale(.94, 1.08); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  62% { transform: translateY(0) scale(.9, 1.14); animation-timing-function: ease-out; }
  70% { transform: translateY(0) scale(1.24, .74); animation-timing-function: ease-out; }
  84% { transform: translateY(0) scale(.94, 1.07); }
  100% { transform: none; } }
@keyframes mg-sh-in { 0% { transform: scale(.25); opacity: 0; } 62% { transform: scale(1.05); opacity: .55; } 70% { transform: scale(1.2, 1); } 100% { transform: none; opacity: .55; } }
@keyframes mg-hop {
  0% { transform: none; animation-timing-function: ease-out; }
  14% { transform: scale(1.12, .86); animation-timing-function: ease-out; }
  24% { transform: translateY(-10px) scale(.9, 1.12); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  46% { transform: translateY(-70px) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  66% { transform: translateY(-6px) scale(.94, 1.08); animation-timing-function: linear; }
  71% { transform: translateY(0) scale(1.16, .82); animation-timing-function: ease-out; }
  84% { transform: scale(.97, 1.04); }
  100% { transform: none; } }
@keyframes mg-sh { 0%, 14% { transform: scale(1.06, 1); opacity: .55; } 46% { transform: scale(.62); opacity: .22; } 71% { transform: scale(1.12, 1); opacity: .6; } 100% { transform: none; opacity: .55; } }
@keyframes mg-ear-in { 0% { transform: rotate(calc(var(--s, 1) * 30deg)); } 62% { transform: rotate(calc(var(--s, 1) * 26deg)); } 72% { transform: rotate(calc(var(--s, 1) * -24deg)); } 86% { transform: rotate(calc(var(--s, 1) * 10deg)); } 100% { transform: none; } }
@keyframes mg-ear {
  0% { transform: none; } 14% { transform: rotate(calc(var(--s, 1) * -6deg)); } 26% { transform: rotate(calc(var(--s, 1) * -22deg)); }
  48% { transform: rotate(calc(var(--s, 1) * 12deg)); } 68% { transform: rotate(calc(var(--s, 1) * 24deg)); } 76% { transform: rotate(calc(var(--s, 1) * -18deg)); }
  88% { transform: rotate(calc(var(--s, 1) * 6deg)); } 100% { transform: none; } }
@keyframes mg-pump { 0%, 14% { transform: rotate(6deg); } 46% { transform: rotate(-14deg); } 71% { transform: rotate(8deg); } 100% { transform: rotate(6deg); } }
@keyframes mg-wave { from { transform: rotate(10deg); } to { transform: rotate(-22deg); } }
@keyframes mg-fan { from { transform: scale(.2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mg-blink { 0%, 93%, 100% { transform: none; } 96% { transform: scaleY(.1); } }
@keyframes mg-dust { 0% { opacity: .9; transform: translateX(0) scale(.4); } 100% { opacity: 0; transform: translateX(var(--dx)) translateY(-8px) scale(1.8); } }
@keyframes mg-dust-hop { 0%, 70% { opacity: 0; transform: scale(.3); } 73% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: translateX(var(--dx)) translateY(-6px) scale(1.6); } }
.cel.draw .mg-hop, .cel.draw .mg-shadow, .cel.draw .mg-tuft, .cel.draw .mg-arm, .cel.draw .mg-dust.hop { animation: none; }
.mg-tuft { transform-origin: 132px 104px; animation: mg-ear-in .95s both, mg-ear 1.25s 1.05s infinite; --s: .8; }
/* Torneos (admin): pills de juego con su color */
.gchips a { display: inline-flex; align-items: center; gap: 6px; }
.gchips a i { width: 9px; height: 9px; border-radius: 50%; background: var(--g); }
.gchips a small { opacity: .6; font-variant-numeric: tabular-nums; }
.gchips a.on i { box-shadow: 0 0 0 2px #fff; }
@media (max-width: 860px) { .content .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .content .chips a { flex: none; } }
/* Analizar mazo: interruptores «Sin tierras básicas» / «Sin comandante» */
.vswitches { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: -4px 0 14px; }
.vsw { position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font: 400 16px var(--display); user-select: none; }
.vsw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vsw i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #cfcfcf; transition: background .18s ease; }
.vsw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0004; transition: transform .18s ease; }
.vsw input:checked + i { background: var(--naranja, #f47700); }
.vsw input:checked + i::after { transform: translateX(18px); }
.vsw input:focus-visible + i { outline: 2px solid var(--negro, #1a1a1a); outline-offset: 2px; }
.vcmd.off { opacity: .45; } .vcmd.off span { text-decoration: line-through; }
.vtable tr.vout td { opacity: .45; } .vtable tr.vout td.strong { text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { .vsw i, .vsw i::after { transition: none; } }
/* Próximos torneos: paginación */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 14px; }
.pager > :last-child { justify-self: end; } .pager .jbtn-outline { min-height: 44px; display: inline-flex; align-items: center; }
.pg-n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
#proximos { scroll-margin-top: 90px; }

/* ================= Comunidad ================= */
.comm h1 { font: 300 40px var(--display); margin: 0 0 10px; }
.commtabs { margin: 4px 0 18px; }
.empty { background: #fff; border: 1px dashed #cfcfcf; border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); }
.loginhint { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.loginhint p { margin: 0 auto 0 0; flex: 1 1 260px; }
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.ctile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: #000; text-decoration: none; min-height: 132px; transition: box-shadow .15s ease, transform .15s ease; }
.ctile:hover { box-shadow: inset 4px 0 0 var(--naranja), 0 14px 26px -18px rgba(0,0,0,.4); color: #000; }
.ctile b { font: 500 21px var(--display); } .ctile span { color: #555; font-size: 14px; line-height: 1.45; }
.ctile em { margin-top: auto; font-style: normal; font-weight: 700; font-size: 13px; color: var(--naranja-ink, #a34d00); }

/* Nivel e insignias */
.lvlwrap { display: block; color: inherit; text-decoration: none; margin: 0 0 18px; }
.lvl { display: flex; gap: 16px; align-items: center; background: var(--negro, #141414); color: #fff; border-radius: 18px; padding: 16px 20px; }
.lvl-n { flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--naranja); color: var(--negro); }
.lvl-n b { font: 600 32px/1 var(--display); } .lvl-n span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.lvl-main { flex: 1; min-width: 0; }
.lvl-t { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .lvl-t b { font: 500 22px var(--display); } .lvl-t span { color: #ffb066; font-weight: 700; font-variant-numeric: tabular-nums; }
.lvl-bar { height: 10px; border-radius: 99px; background: #3a3a3a; margin: 8px 0 6px; overflow: hidden; } .lvl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f47700, #ffb347); border-radius: 99px; }
.lvl small { color: #bdbdbd; }
.lvl.compact { padding: 12px 16px; } .lvl.compact .lvl-n { width: 58px; height: 58px; } .lvl.compact .lvl-n b { font-size: 26px; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 12px 0 24px; }
.ach { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.ach > div { min-width: 0; flex: 1; } .ach b { display: block; font-size: 15px; } .ach b small { font-weight: 700; color: var(--naranja-ink, #a34d00); font-size: 12px; margin-left: 4px; }
.ach span { display: block; font-size: 12.5px; color: #666; line-height: 1.35; } .ach > div > small { font-size: 12px; color: #666; font-variant-numeric: tabular-nums; }
.ach.lock { background: #fafafa; } .ach.lock b { color: #777; }
.medal { flex: none; } .ach.lock .medal { opacity: .65; }
.bbar { height: 6px; background: #eee; border-radius: 99px; margin: 6px 0 3px; overflow: hidden; } .bbar i { display: block; height: 100%; background: var(--naranja); }
.xphelp { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 22px; } .xphelp summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; } .xphelp li { margin: 6px 0; line-height: 1.45; }
.newbadges { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; background: #fff7ed; border: 2px solid var(--naranja); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; animation: nbpop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.newbadges b { font: 500 20px var(--display); } .newbadges span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@keyframes nbpop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.qchip { padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: #000; text-decoration: none; font-size: 14px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.qchip.hot { background: var(--naranja); border-color: var(--naranja); color: var(--negro); }
.prank { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prank li { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
.prank li:last-child { border-bottom: 0; } .prank li.me { background: #fff7ed; }
.prank .pos { font: 600 18px var(--display); color: #888; text-align: center; } .prank li:nth-child(-n+3) .pos { color: var(--naranja-ink, #a34d00); }
.prank em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; } .prank a { color: inherit; }
@media (max-width: 600px) { .prank li { grid-template-columns: 30px 1fr auto; } .prank li > span.small { grid-column: 2; grid-row: 2; } }

/* Cara a cara y rivales */
.vsform { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.vsx { font: 500 20px var(--display); color: var(--muted); }
.pubpick { position: relative; display: block; } .pubpick input { width: 100%; padding: 12px 14px; border: 1px solid #ccc; border-radius: 10px; font: 400 16px var(--font); }
.pp-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.3); overflow: hidden; }
.pp-list button { display: block; width: 100%; text-align: left; padding: 11px 14px; border: 0; background: none; font: inherit; cursor: pointer; } .pp-list button.on, .pp-list button:hover { background: #fff3e6; }
@media (max-width: 700px) { .vsform { grid-template-columns: 1fr; } .vsx { text-align: center; } }
.vshead { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; background: var(--negro); color: #fff; border-radius: 18px; padding: 20px; margin: 8px 0 8px; }
.vsp { display: flex; flex-direction: column; gap: 4px; } .vsp.r { text-align: right; } .vsp a { color: #fff; font: 500 22px var(--display); text-decoration: none; } .vsp b { font: 600 56px/1 var(--display); color: var(--naranja); font-variant-numeric: tabular-nums; }
.vsmid { text-align: center; } .vsmid span { font: 300 26px var(--display); color: #aaa; } .vsmid small { display: block; color: #bbb; font-size: 12px; }
.vsbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 0 0 12px; } .vsbar i { background: var(--naranja); } .vsbar span { background: #bbb; } .vsbar em { background: var(--negro); }
.nemtag { background: #fff7ed; border-left: 4px solid var(--naranja); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.vsrow { grid-template-columns: 80px 110px 1fr auto 20px; }
.vsres { font-weight: 700; font-size: 14px; white-space: nowrap; } .vsres.win { color: #15803d; } .vsres.loss { color: #b42318; } .vsres.draw, .vsres.other { color: #777; }
.nemcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.nemcard { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: #fff; background: var(--negro); }
.nemcard.vic { background: #fff; color: #000; border: 1px solid var(--line); }
.nemcard small { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; opacity: .75; } .nemcard b { font: 500 22px var(--display); } .nemcard span { font-size: 13px; opacity: .8; }
.nemcard.nem b { color: var(--naranja); }
.rivrow { grid-template-columns: 1fr auto auto 20px; }
@media (max-width: 700px) { .vsrow { grid-template-columns: 1fr auto; } .vsrow .r-date, .vsrow .gchip, .vsrow .r-go { display: none; } .vsp b { font-size: 42px; } .vsp a { font-size: 17px; } }

/* Se busca */
.wanted { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 10px 0 26px; }
.poster { position: relative; background: #f3e3c3; background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 60%); border: 2px solid #5a3b17; border-radius: 6px; padding: 18px 16px 14px; text-align: center; color: #3b250c; box-shadow: 0 14px 26px -16px rgba(0,0,0,.5); transform: rotate(-1deg); }
.poster:nth-child(even) { transform: rotate(1.2deg); }
.p-top { display: block; font: 800 30px/1 Georgia, 'Times New Roman', serif; letter-spacing: .06em; text-transform: uppercase; }
.p-face { width: 96px; height: 96px; margin: 12px auto; border: 3px solid #5a3b17; background: #e5cfa3; display: grid; place-items: center; font: 800 44px Georgia, serif; }
.poster h2 { margin: 0; font: 700 22px Georgia, serif; } .poster h2 a { color: inherit; }
.p-note { font-size: 14px; margin: 6px 0 0; }
.p-reward { margin: 12px 0 8px; border-top: 2px dashed #5a3b17; border-bottom: 2px dashed #5a3b17; padding: 8px 0; } .p-reward small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; } .p-reward b { font: 700 22px Georgia, serif; }
.p-foot { font-size: 12px; opacity: .8; }
.brow { grid-template-columns: 80px 1fr auto 20px; }
.commstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 0 0 22px; }
.commstrip a { display: flex; flex-direction: column; gap: 2px; border-radius: 14px; padding: 12px 16px; text-decoration: none; }
.cs-wanted { background: #f3e3c3; border: 2px solid #5a3b17; color: #3b250c; } .cs-wanted b { font: 800 18px Georgia, serif; text-transform: uppercase; letter-spacing: .06em; } .cs-wanted em { font-style: normal; font-weight: 700; font-size: 13px; }
.cs-porra { background: var(--negro); color: #fff; } .cs-porra b { font: 500 18px var(--display); color: var(--naranja); } .cs-porra span, .cs-wanted span { font-size: 14px; }

/* Porra */
.ptiles.small3 { grid-template-columns: repeat(3, 1fr); }
.pevent { margin: 0 0 26px; } .pevent .sec { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pwin { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; display: grid; gap: 8px; }
.pwin select { flex: 1; padding: 11px 12px; border: 1px solid #ccc; border-radius: 10px; font: 400 16px var(--font); min-width: 0; }
.ph3 { font: 400 18px var(--display); margin: 14px 0 8px; }
.ptables { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ptable { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; scroll-margin-top: 90px; } .ptable.locked { background: #fafafa; }
.pt-h { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .pt-h small { color: var(--muted); }
.pk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pk { flex: 1 1 calc(50% - 6px); min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid #d6d6d6; background: #fff; font: 600 14px var(--font); cursor: pointer; text-align: center; }
.pk:hover:not(:disabled) { border-color: var(--naranja); } .pk.on { background: var(--naranja); border-color: var(--naranja); color: var(--negro); } .pk:disabled { cursor: default; color: #888; } .pk.on:disabled { color: var(--negro); opacity: .8; }
.pst { margin-left: auto; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: #eee; } .pst.win { background: #dcfce7; color: #15803d; } .pst.lose { background: #fee2e2; color: #b42318; }

/* Tengo / Busco */
.tboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 26px; } @media (max-width: 800px) { .tboxes { grid-template-columns: 1fr; } }
.tbox { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; } .tbox h3 { margin: 0 0 8px; font: 500 22px var(--display); }
.tlist { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; } .tlist li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f2f2f2; } .tlist li span { flex: 1; min-width: 0; } .tlist form { margin: 0; }
.tadd select, .tadd textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 10px; font: 400 15px var(--font); }
.tmatches { display: grid; gap: 10px; margin-bottom: 20px; }
.tmatch { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--naranja); border-radius: 12px; padding: 12px 14px; } .tmatch p { margin: 6px 0 0; line-height: 1.5; }
.tm-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .tm-h b { font-size: 17px; }
.tk { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; margin-right: 4px; } .tk.have { background: #dcfce7; color: #14532d; } .tk.want { background: #fff1db; color: #8a3d00; }
.tfil { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; } .tfil input { flex: 1 1 200px; padding: 11px 12px; border: 1px solid #ccc; border-radius: 10px; font: 400 16px var(--font); } .tfil select { padding: 11px 12px; border: 1px solid #ccc; border-radius: 10px; font: 400 15px var(--font); }
.tbrowse { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.trow { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid #f2f2f2; } .trow:last-child { border-bottom: 0; } .tc { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .trow { grid-template-columns: auto 1fr; } .trow .gchip { display: none; } .trow > .small { grid-column: 2; } }

/* Préstamos */
.ldecks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.ldeck { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--g); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ldeck h3 { margin: 2px 0 0; font: 500 21px var(--display); } .ldeck p { margin: 0; } .ld-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dlist { white-space: pre-wrap; font: 13px/1.45 ui-monospace, monospace; max-height: 260px; overflow: auto; background: #f7f7f7; padding: 10px; border-radius: 8px; }
.lask summary { list-style: none; display: inline-flex; cursor: pointer; margin-top: 6px; } .lask summary::-webkit-details-marker { display: none; }
.lreq { grid-template-columns: 1fr auto; } .lreq small { display: block; } .lbtns { display: flex; gap: 8px; align-items: center; grid-column: 1 / -1; } .lbtns form { margin: 0; }
.stchip.st-pending { background: #fff1db; color: #8a3d00; } .stchip.st-accepted { background: #dcfce7; color: #14532d; } .stchip.st-rejected, .stchip.st-cancelled { background: #f1f1f1; color: #666; } .stchip.st-returned { background: #e0ecff; color: #1e3a8a; }

/* Momentos */
.momform input[type=file] { padding: 12px; border: 2px dashed #ccc; border-radius: 12px; background: #fff; }
#momprev { max-width: 100%; max-height: 50vh; border-radius: 12px; object-fit: contain; background: #111; }
.momgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .momgrid figure { margin: 0; } .momgrid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; } .momgrid figcaption { font-size: 13px; color: var(--muted); }

/* Precio del meta */
.mpcmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; } .mpcmp div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mpcmp small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; color: var(--muted); } .mpcmp b { display: block; font: 500 28px var(--display); color: var(--naranja-ink, #a34d00); } .mpcmp span { font-size: 13px; color: #555; }
.mpnote { background: #fff7ed; border-left: 4px solid var(--naranja); padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 0 0 20px; }
.mprow { grid-template-columns: 30px 1fr auto auto; }
@media (max-width: 600px) { .mprow { grid-template-columns: 24px 1fr auto; } .mprow .r-win { display: none; } .mpcmp { grid-template-columns: 1fr; } }

/* Admin: comunidad */
.modq { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.modi { margin: 0; background: #fafafa; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .modi img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #111; }
.modi figcaption { padding: 10px; display: grid; gap: 4px; font-size: 14px; } .modi .inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sugb { display: inline-block; margin: 0 6px 6px 0; } .xpadmin { margin: 0; padding-left: 20px; line-height: 1.8; }

/* TV: comunidad */
.tv-tag { display: inline-block; align-self: center; font: 800 1.5vh var(--font); letter-spacing: .08em; text-transform: uppercase; padding: .3vh .8vh; border-radius: 99px; margin-left: 1vh; }
.tv-tag.rm { background: var(--accent, #f47700); color: #111; } .tv-tag.wd { background: #f3e3c3; color: #3b250c; }
.tv-hot { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2vh 2vw; margin-top: 2vh; }
.hot { display: flex; gap: 2vh; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 1.6vh; padding: 2vh; }
.hot .tn { flex: none; width: 8vh; height: 8vh; border-radius: 1.2vh; background: var(--g, var(--accent)); color: #111; display: grid; place-items: center; font: 800 4vh var(--font); }
.hot p { margin: .6vh 0 1.2vh; font-size: 2.4vh; line-height: 1.35; } .hk { display: inline-block; font: 800 2vh var(--font); text-transform: uppercase; letter-spacing: .08em; padding: .4vh 1vh; border-radius: 99px; }
.hk.rm { background: var(--accent, #f47700); color: #111; } .hk.wd { background: #f3e3c3; color: #3b250c; }
.tv-wanted { display: flex; justify-content: center; gap: 4vw; margin-top: 3vh; }
.tv-poster { width: 26vw; max-width: 46vh; background: #f3e3c3; color: #3b250c; border: .4vh solid #5a3b17; border-radius: .6vh; padding: 3vh 2vh; text-align: center; transform: rotate(-1.5deg); }
.tv-poster:nth-child(even) { transform: rotate(1.5deg); }
.tv-poster > span { display: block; font: 800 5vh/1 Georgia, serif; text-transform: uppercase; letter-spacing: .06em; }
.tv-poster .pf { width: 16vh; height: 16vh; margin: 2.4vh auto; border: .5vh solid #5a3b17; background: #e5cfa3; display: grid; place-items: center; font: 800 8vh Georgia, serif; }
.tv-poster b { display: block; font: 700 4vh Georgia, serif; } .tv-poster p { font-size: 2.2vh; margin: 1vh 0 0; }
.tv-poster em { display: block; font-style: normal; margin-top: 2vh; border-top: .3vh dashed #5a3b17; padding-top: 1.4vh; text-transform: uppercase; letter-spacing: .1em; font-size: 1.8vh; font-weight: 700; }
.tv-poster em strong { display: block; font: 700 3.6vh Georgia, serif; text-transform: none; letter-spacing: 0; }
.tv-hint { text-align: center; color: var(--muted); font-size: 2.4vh; margin-top: 3vh; }
.tv-moment { position: fixed; inset: 0; background: #000; display: grid; place-items: center; }
.tv-moment > img { width: 100vw; height: 100vh; object-fit: contain; }
.tvm-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6vh 4vw 4vh; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }
.tvm-cap b { display: block; font: 800 4.6vh var(--font); } .tvm-cap span { font-size: 2.6vh; color: #ddd; }
.tvm-qr { position: absolute; top: 3vh; right: 3vw; background: #fff; border-radius: 1.4vh; padding: 1vh; text-align: center; color: #111; } .tvm-qr img { width: 14vh; height: 14vh; display: block; } .tvm-qr small { font-weight: 700; font-size: 1.6vh; }
.cel.bounty .cel-kick { color: #ffd23f; }
.tbox h3, .ldeck h3, .comm .acard h3 { text-transform: none; letter-spacing: 0; color: #000; }
.podkills { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 8px; color: #444; }

/* ================= Contador de vidas ================= */
body.lifep { margin: 0; background: #0d0d0d; color: #fff; height: 100dvh; overflow: hidden; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.lf { position: relative; display: flex; flex-direction: column; width: var(--vw, 100vw); height: var(--vh, 100dvh); }
#life.turn .lf { position: fixed; top: 0; left: 100vw; transform-origin: 0 0; transform: rotate(90deg); }
.lf-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 10px; height: 44px; box-sizing: border-box; background: #000; }
.lf-bar a { color: #fff; text-decoration: none; font-size: 22px; min-width: 36px; min-height: 36px; display: grid; place-items: center; }
.lf-bar span { flex: 1; font: 600 15px var(--font); color: #ddd; }
.lf-bar button, .lf-menu button, .lf-who button { background: #1f1f1f; color: #fff; border: 1px solid #333; border-radius: 99px; padding: 8px 14px; font: 600 14px var(--font); min-height: 36px; cursor: pointer; }
.lf-menu { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px; background: #111; border-bottom: 1px solid #222; } .lf-menu .danger { color: #ff8a80; border-color: #5a2a2a; }
.lf-who { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; background: #2a1600; color: #ffcf99; font-size: 14px; } .lf-who span { width: 100%; }
.lf-err { padding: 8px 12px; background: #5a1a1a; color: #fff; font-size: 14px; }
.lf-grid { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 4px; min-height: 0; }
.lf-r { flex: 1; display: flex; gap: 4px; min-height: 0; }
.lf-p { --c: #f47700; position: relative; flex: 1; min-width: 0; border-radius: 16px; overflow: hidden; background: var(--c); color: #111; min-height: 0; }
.lf-p.c1 { --c: #7b5ea7; color: #fff; } .lf-p.c2 { --c: #1e9e8f; color: #fff; } .lf-p.c3 { --c: #e6b422; } .lf-p.c4 { --c: #d64550; color: #fff; } .lf-p.c5 { --c: #2a7de1; color: #fff; }
/* Fondo con la ilustración del comandante */
.lf-p.art { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15) 40%, rgba(0,0,0,.55)), var(--art) center / cover no-repeat, var(--c); color: #fff; box-shadow: inset 0 0 0 3px var(--c); }
.lf-p.art .lf-life b, .lf-p.art header { text-shadow: 0 2px 12px rgba(0,0,0,.8), 0 0 2px #000; }
.lf-p.art .lf-in footer button { background: rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.lf-p.out.art { filter: grayscale(1) brightness(.6); }
.lf-in header b i { font-style: normal; font-size: 11px; background: rgba(0,0,0,.35); padding: 1px 6px; border-radius: 99px; margin-left: 4px; vertical-align: middle; }
.lf-live { width: 8px; height: 8px; border-radius: 50%; background: #666; } #life.pushing .lf-live { background: #22c55e; box-shadow: 0 0 0 3px #22c55e33; }
.lf-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.lf-arts button { position: relative; border: 3px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; background: #eee; cursor: pointer; aspect-ratio: 626 / 457; }
.lf-arts button.on { border-color: var(--naranja, #f47700); } .lf-arts img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-arts span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-noart { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid #ddd; background: #f4f4f4; font: 600 15px var(--font); } .lf-noart.on { border-color: var(--naranja); }
.lf-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8px 10px; }
.lf-p.rot .lf-in { transform: rotate(180deg); }
.lf-in header { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.15; } .lf-in header b { font: 700 16px var(--font); } .lf-in header small { font-size: 11px; opacity: .8; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-life { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lf-life b { font: 800 clamp(48px, calc(min(var(--vw, 100vw), var(--vh, 100vh)) * .2), 150px)/1 var(--display, var(--font)); font-variant-numeric: tabular-nums; pointer-events: none; z-index: 1; }
.lf-life em { position: absolute; top: 6%; font-style: normal; font: 800 22px var(--font); padding: 2px 10px; border-radius: 99px; background: rgba(0,0,0,.25); color: #fff; z-index: 2; pointer-events: none; }
.lz { position: absolute; top: 0; bottom: 0; width: 50%; background: transparent; border: 0; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; padding: 0 6%; font: 300 34px var(--font); opacity: .55; }
.lz.minus { left: 0; justify-content: flex-start; } .lz.plus { right: 0; justify-content: flex-end; } .lz:active { background: rgba(0,0,0,.12); }
.lf-in footer { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.lf-in footer button { background: rgba(0,0,0,.22); color: inherit; border: 0; border-radius: 99px; padding: 6px 12px; font: 600 13px var(--font); min-height: 34px; cursor: pointer; }
.lf-in footer button i { font-style: normal; background: #000; color: #fff; border-radius: 99px; padding: 0 6px; margin-left: 4px; } .lf-in footer .ghost { background: transparent; text-decoration: underline; }
.lf-p.out { background: #2a2a2a; color: #aaa; }
.lf-out { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; } .lf-out b { font: 700 28px var(--font); color: #fff; }
.lf-out button, .lf-kill .link { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; min-height: 36px; cursor: pointer; }
.lf-p.dying { background: #1a1a1a; color: #fff; box-shadow: inset 0 0 0 3px var(--c); }
.lf-kill { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; overflow: auto; } .lf-kill b { font-size: 16px; }
.lf-kill div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lf-kill div button { background: var(--c); color: #111; border: 0; border-radius: 12px; padding: 10px 14px; font: 700 15px var(--font); min-height: 44px; cursor: pointer; } .lf-kill div .ghost { background: #333; color: #fff; }
.lf-sheet { position: absolute; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; z-index: 30; }
.lf-sh-in { background: #fff; color: #111; width: 100%; max-height: 85dvh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.lf-sh-in h2 { margin: 0 0 6px; font: 600 20px var(--display, var(--font)); } .lf-sh-in h3 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #777; }
.lf-row { display: grid; grid-template-columns: 1fr 52px 56px 52px; gap: 8px; align-items: center; padding: 4px 0; }
.lf-row button { height: 48px; border-radius: 12px; border: 1px solid #ddd; background: #f4f4f4; font: 700 24px var(--font); cursor: pointer; } .lf-row b { text-align: center; font: 800 26px var(--font); font-variant-numeric: tabular-nums; } .lf-row b.lethal { color: #c0392b; }
.lf-sh-in .jbtn { width: 100%; margin-top: 14px; }
.lf-end { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #141414; border-top: 3px solid var(--naranja, #f47700); }
.lf-end b { font: 700 20px var(--font); color: var(--naranja, #f47700); } .lf-end span { font-size: 14px; color: #ddd; } .lf-end small { color: #aaa; } .lf-end a { color: #fff; }
.lf-end .jbtn { min-width: 240px; } .lf-end .link { background: none; border: 0; color: #ccc; text-decoration: underline; min-height: 36px; }
.lf-fin { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .lf-fin button { background: #262626; color: #fff; border: 1px solid #444; border-radius: 12px; padding: 10px 14px; font: 600 15px var(--font); min-height: 44px; }
.lf-pick { max-width: 560px; margin: 0 auto; padding: 24px 16px; } .lf-pick h1 { font: 300 32px var(--display, var(--font)); margin: 0 0 4px; } .lf-pick p { color: #bbb; }
.lf-pods { display: grid; gap: 8px; } .lf-pods a { display: flex; flex-direction: column; gap: 2px; background: #1a1a1a; border: 1px solid #333; border-radius: 12px; padding: 12px 14px; color: #fff; text-decoration: none; } .lf-pods a span { color: #aaa; font-size: 14px; } .lf-pods a.done { opacity: .5; }
.lf-note { background: #2a1600; color: #ffcf99 !important; padding: 10px 12px; border-radius: 10px; } .lf-back { display: inline-block; margin-top: 18px; color: #fff; }
/* Botón para abrir el contador desde la mesa */
.lifebtn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 4px; background: var(--negro, #111); color: #fff; border-radius: 14px; padding: 12px 16px; font: 700 16px var(--font); text-decoration: none; min-height: 48px; }
.lifebtn:hover { color: #fff; } .lifebtn b { color: var(--naranja); }
.tv-pod .who span em.hp { font-style: normal; margin-left: auto; padding-left: 1vh; font-weight: 800; color: var(--accent, #f47700); font-variant-numeric: tabular-nums; }
.tv-pod .who span.ko { text-decoration: line-through; opacity: .55; }
.lf .jbtn { display: inline-flex; align-items: center; justify-content: center; background: var(--naranja, #f47700); color: #111; border: 0; border-radius: 999px; padding: 14px 26px; font: 800 18px var(--font); min-height: 52px; cursor: pointer; }
.podc-p.ko span { text-decoration: line-through; opacity: .55; } .podc-p .hp { color: var(--naranja-ink, #a34d00); font-size: 16px; }
.podc-live { display: block; margin-top: 8px; text-align: center; padding: 8px; border-radius: 10px; background: #111; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; } .podc-live:hover { color: var(--naranja); }
.tv-toast { position: fixed; left: 50%; bottom: 6vh; transform: translate(-50%, 4vh); opacity: 0; z-index: 90; background: #111; border: .3vh solid var(--accent, #f47700); border-radius: 99px; padding: 1.6vh 3vw; font: 600 3vh var(--font); color: #ddd; box-shadow: 0 2vh 5vh rgba(0,0,0,.6); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1), opacity .3s; white-space: nowrap; }
.tv-toast.on { transform: translate(-50%, 0); opacity: 1; } .tv-toast b { color: var(--accent, #f47700); margin-right: 1.4vw; } .tv-toast span { color: #fff; font-weight: 800; }
/* Contador: el número se adapta al tamaño de cada panel (cabecera, vidas y botones nunca se pisan) */
.lf-in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; container-type: size; }
.lf-life b { font-size: clamp(34px, 46cqh, 150px); }
.lf-in header b { font-size: clamp(12px, 7cqh, 18px); } .lf-in header small { font-size: clamp(10px, 5cqh, 12px); }
.lf-in footer button { padding: 4px 10px; min-height: 30px; font-size: clamp(11px, 6cqh, 13px); }
@container (max-height: 170px) { .lf-in header small { display: none; } .lf-in footer button { min-height: 26px; padding: 2px 8px; } }
.lf-kill b, .lf-out b { font-size: clamp(13px, 9cqh, 28px); } .lf-kill div button { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.lf-who { flex-wrap: nowrap; overflow-x: auto; padding: 6px 10px; } .lf-who span { width: auto; white-space: nowrap; } .lf-who button { flex: none; min-height: 32px; padding: 4px 12px; }
/* Contador: muerte súbita */
.lf-bar button.hot { background: #5a1010; border-color: #b42318; color: #fff; }
.lf.is-sudden .lf-bar { background: #3a0808; }
.lf.is-sudden .lf-p:not(.out) { box-shadow: inset 0 0 0 3px #e11d48; }
.lf-sudden { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 0; text-align: center; }
.lf-sudden > b { font: 800 clamp(22px, 22cqh, 60px)/1 var(--display, var(--font)); opacity: .55; }
.lf-sudden span { font-size: clamp(11px, 7cqh, 15px); font-weight: 700; }
.lf-sudden div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lf-sudden div button { background: #e11d48; color: #fff; border: 0; border-radius: 12px; padding: 6px 12px; font: 700 14px var(--font); min-height: 36px; cursor: pointer; }
.lf-end.sudden { border-top-color: #e11d48; } .lf-end.sudden b { color: #ff6b81; }
.lf-end.sudden { flex-direction: row; justify-content: center; gap: 12px; padding: 6px 12px; } .lf-end.sudden span { font-size: 13px; } .lf-end.sudden b { font-size: 13px; display: inline; } .lf-end.sudden .link { min-height: 28px; font-size: 13px; }
.lf.is-sudden .lf-in footer:empty { display: none; }
.lf.is-sudden .lf-in { grid-template-rows: auto minmax(0, 1fr); }
/* Contador: historial */
.lf-hist { list-style: none; margin: 8px 0; padding: 0; max-height: 55vh; overflow: auto; border: 1px solid #eee; border-radius: 12px; }
.lf-hist li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.lf-hist li:last-child { border-bottom: 0; } .lf-hist time { font-variant-numeric: tabular-nums; color: #888; font-size: 12px; }
.lf-hist li small { color: #888; } .lf-hist li.undone span { text-decoration: line-through; color: #999; }
.lf-hist li.k-kill, .lf-hist li.k-finish { background: #fff4e5; font-weight: 600; } .lf-hist li.k-undo, .lf-hist li.k-reset { color: #666; font-style: italic; }
.lf-hist button { border: 1px solid #ddd; background: #f4f4f4; border-radius: 99px; padding: 6px 12px; font: 600 13px var(--font); cursor: pointer; }
.lf-sh-in { max-height: 92%; } .lf-hist { max-height: none; }
.lf-sh-in h2 { text-transform: none; letter-spacing: 0; }
.lf-hist li { grid-template-columns: auto 1fr auto auto; } .lf-hist .by { color: #999; font-size: 12px; text-align: right; white-space: nowrap; }
.lf-hist li { grid-template-columns: auto 1fr auto 92px; } .lf-hist li > button { justify-self: end; }

/* Contador: turnos, colocar jugadores, ±10 */
.lf-p.turn { box-shadow: inset 0 0 0 4px #fff, 0 0 0 3px #f47700; }
.lf-p.turn.art { box-shadow: inset 0 0 0 4px #fff, 0 0 0 3px #f47700; }
.lf-tt { margin-top: 2px; font: 700 clamp(11px, 6cqh, 14px) var(--font); background: #000; color: #fff; border-radius: 99px; padding: 1px 10px; font-variant-numeric: tabular-nums; }
.lf-in footer .lf-pass { background: #000; color: #fff; padding-inline: 16px; }
.lf-p.art .lf-in footer .lf-pass { background: #f47700; color: #000; backdrop-filter: none; }
.lf-bar button.go { background: #f47700; border-color: #f47700; color: #000; }
.lf-tip { position: absolute; bottom: 2%; left: 0; right: 0; text-align: center; font: 600 clamp(10px, 5cqh, 12px) var(--font); opacity: .75; pointer-events: none; }
.lf-p.arr { cursor: pointer; background: #1b1b1b; color: #fff; box-shadow: inset 0 0 0 3px var(--c); }
.lf-p.arr.picked { background: var(--c); color: #000; }
.lf-arr { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 6px; }
.lf-arr b { font: 800 clamp(16px, 14cqh, 30px) var(--font); }
.lf-arr span { font-size: clamp(11px, 6cqh, 14px); opacity: .85; }
.lf-arr button { background: rgba(255,255,255,.12); color: inherit; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 6px 14px; font: 600 13px var(--font); min-height: 34px; cursor: pointer; }
.lf-p.arr.picked .lf-arr button { border-color: rgba(0,0,0,.4); background: rgba(0,0,0,.12); }
.lf.is-arr .lf-in { display: block; }
.lf-arrtip { flex: none; padding: 6px 12px; background: #f47700; color: #000; font: 600 13px var(--font); text-align: center; }
.lf-turns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.lf-turns button { flex: 1 1 40%; min-height: 48px; border-radius: 12px; border: 1px solid #ddd; background: #f4f4f4; font: 700 16px var(--font); cursor: pointer; }
.lf-turns button.on { background: #f47700; border-color: #f47700; }
.lf-hist .tn { display: block; color: #999; font-size: 11px; }
.lf-menu p.small { flex-basis: 100%; margin: 2px 4px 0; color: #999; font-size: 12px; }
.lf-clock { font: 700 15px var(--font); font-variant-numeric: tabular-nums; color: #fff; background: #1f1f1f; border: 1px solid #333; border-radius: 99px; padding: 6px 12px; }
.lf-clock.over { background: #b42318; border-color: #b42318; }
.lf-combo { margin-top: 2px; font: 700 clamp(10px, 5cqh, 12px) var(--font); border-radius: 99px; padding: 1px 8px; }
.lf-combo.no { background: #b42318; color: #fff; } .lf-combo.ok { background: #1e9e5a; color: #fff; }
.lf-ts { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.lf-ts th { font-size: 12px; color: #888; font-weight: 600; text-align: right; } .lf-ts td { padding: 4px 0; border-top: 1px solid #eee; text-align: right; } .lf-ts td:first-child { text-align: left; font-weight: 600; }
.lf-tts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 2px; } .lf-tts .lf-tt, .lf-tts .lf-combo { margin-top: 0; }
.lf-tt.slow { background: #b42318; animation: lfslow 1.2s ease-in-out infinite alternate; }
@keyframes lfslow { to { background: #e11d48; } }
@media (prefers-reduced-motion: reduce) { .lf-tt.slow { animation: none; } }
.tv-toast.slow { bottom: 16vh; border-color: #e11d48; } .tv-toast.slow b { color: #ff6b81; }
/* Contador casual: preparar la partida */
.lf-setup { height: 100dvh; overflow: auto; box-sizing: border-box; -webkit-user-select: text; user-select: text; }
.lf-setup form { display: grid; gap: 14px; margin-top: 14px; }
.lf-seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lf-seg legend { float: left; width: 84px; color: #bbb; font: 600 14px var(--font); padding: 0; }
.lf-seg label { position: relative; } .lf-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lf-seg b { display: grid; place-items: center; min-width: 48px; min-height: 44px; border-radius: 12px; background: #1f1f1f; border: 1px solid #333; font: 700 17px var(--font); }
.lf-seg input:checked + b { background: #f47700; border-color: #f47700; color: #000; }
.lf-seg input:focus-visible + b { outline: 2px solid #fff; outline-offset: 2px; }
.lf-names { display: grid; gap: 8px; } .lf-name { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; } .lf-name[hidden] { display: none; }
.lf-setup input[type=text], .lf-setup .lf-name input, .lf-cmdr input { min-height: 44px; border-radius: 10px; border: 1px solid #333; background: #161616; color: #fff; padding: 0 12px; font: 400 16px var(--font); min-width: 0; -webkit-user-select: text; user-select: text; }
.lf-cmdr input { background: #fff; color: #111; border-color: #ddd; flex: 1; }
.lf-cmdr { display: flex; gap: 8px; margin: 6px 0 10px; } .lf-cmdr button { min-height: 44px; border-radius: 10px; border: 0; background: #f47700; color: #000; font: 700 15px var(--font); padding: 0 16px; }
.lf-chk { display: flex; gap: 10px; align-items: flex-start; color: #ccc; font-size: 14px; } .lf-chk input { width: 20px; height: 20px; margin: 0; accent-color: #f47700; flex: none; }
.lf-endb { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lf-setup .lf-chk { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-weight: 400; }
.lf-setup .jbtn { width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: #f47700; color: #000 !important; font: 700 17px var(--font); cursor: pointer; }
.lf-name { grid-template-columns: 1fr 1.3fr; }
.lf-out { min-height: 0; overflow: hidden; gap: 2px; }
@container (max-height: 200px) { .lf-out span { display: none; } }
.lf-seg { flex-wrap: nowrap; } .lf-seg legend { float: none; width: auto; margin-bottom: 6px; }
.lf-seg label { flex: 1 1 0; min-width: 0; } .lf-seg b { min-width: 0; width: 100%; box-sizing: border-box; }
.lf-cerr { margin: 4px 0 0; font-size: 13px; color: #b42318; grid-column: 1 / -1; } .lf-setup .lf-cerr { color: #ff8a80; }
.lf-sugs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lf-sugs button { border: 1px solid #ddd; background: #f4f4f4; color: #111; border-radius: 99px; padding: 6px 12px; min-height: 36px; font: 600 13px var(--font); cursor: pointer; }
.lf-setup .lf-sugs button { background: #1f1f1f; border-color: #444; color: #fff; }
.lf-sh-in h3 { margin: 14px 0 4px; }
/* Daño de comandante y veneno: botones de 1 y de 5 */
.lf-row { grid-template-columns: minmax(0, 1fr) repeat(2, 48px) 48px repeat(2, 48px); gap: 6px; }
.lf-row button { font-size: 17px; padding: 0; }
.lf-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 400px) { .lf-row { grid-template-columns: minmax(0, 1fr) repeat(2, 42px) 40px repeat(2, 42px); gap: 4px; } }
/* Barra: que quepa siempre (el título se recorta y, si aun así no cabe, se desliza) */
.lf-bar { overflow-x: auto; scrollbar-width: none; gap: 6px; } .lf-bar::-webkit-scrollbar { display: none; }
.lf-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-bar button, .lf-bar .lf-clock { flex: none; white-space: nowrap; }
.lf-bar button { padding: 6px 12px; font-size: 13.5px; }
.lf-menu button.hot { background: #5a1010; border-color: #b42318; }
.lf-ask { align-items: center; justify-content: center; z-index: 40; }
.lf-ask .lf-sh-in { max-width: 420px; margin: 0 auto; border-radius: 18px; } .lf-ask p { font: 600 17px/1.4 var(--font); margin: 0 0 14px; color: #111; }
.lf-ask .lf-endb .jbtn { flex: 1 1 0; border: 0; min-height: 48px; border-radius: 12px; font: 700 16px var(--font); cursor: pointer; }
.lf-ask .ghost { background: #f0f0f0; color: #111 !important; }
.lf-ask .lf-endb { flex-direction: column; } .lf-ask .lf-endb .jbtn { flex: none; width: 100%; }
.lf-ask .alt { background: #111; color: #fff !important; }
/* Contador: contadores extra, sorteo, dados, turnos extra, juez */
.lf-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 2px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.lf-tags span { font: 700 clamp(10px, 5cqh, 12px) var(--font); background: rgba(0,0,0,.45); color: #fff; border-radius: 99px; padding: 1px 8px; }
.lf-tags span.hold { background: #f2c94c; color: #000; }
.lf-p.raffle { box-shadow: inset 0 0 0 6px #fff, 0 0 0 4px #f47700, 0 0 40px rgba(244,119,0,.8); transform: scale(1.02); transition: transform .08s; z-index: 2; }
.lf-raf { width: 100%; margin: 6px 0 4px; border: 0; min-height: 48px; border-radius: 12px; background: #f47700; color: #000 !important; font: 700 16px var(--font); cursor: pointer; }
.lf-dice .lf-dres { font: 800 96px/1.1 var(--display, var(--font)); text-align: center; margin: 8px 0 12px; color: #111; font-variant-numeric: tabular-nums; }
.lf-dice .lf-dres.rolling { color: #f47700; }
.lf-exl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.lf-exl .lf-chk { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; color: #111; font: 600 15px var(--font); }
.lf-exl .lf-chk input { width: 22px; height: 22px; accent-color: #f47700; margin: 0; }
.lf-combo.ot { background: #f2c94c; color: #000; }
.lf-bar button.dn { background: #1b2a4a; border-color: #2f4f8f; }
.judgepanel { border: 2px solid #b42318; background: #fff4f2; } .judgepanel h2 { color: #b42318; }
/* Contador casual: salas compartidas y liga */
.lf-code { font: 800 64px/1 var(--display, var(--font)); letter-spacing: .15em; text-align: center; color: #111; margin: 8px 0; }
.lf-qr { display: block; width: min(220px, 60vw); height: auto; margin: 8px auto 12px; background: #fff; }
.lf-roomsh p { color: #333; }
.lf-join { margin-top: 18px; } .lf-join label { display: grid; gap: 6px; color: #bbb; font: 600 14px var(--font); }
.lf-join span { display: flex; gap: 8px; } .lf-join input { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid #333; background: #161616; color: #fff; padding: 0 12px; font: 700 20px var(--font); letter-spacing: .2em; text-transform: uppercase; -webkit-user-select: text; user-select: text; }
.lf-join button { min-height: 44px; border-radius: 10px; border: 0; background: #f47700; color: #000; font: 700 15px var(--font); padding: 0 18px; cursor: pointer; }
/* Comunidad: busco mesa y liga casual */
.lfg { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 10px 0 20px; }
.lfgc { border: 1px solid var(--line, #ddd); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.lfgc header { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.lfgc.full { opacity: .7; } .lfgc p { margin: 0; }
.lfgform { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-items: end; } .lfgform .wide { grid-column: 1 / -1; }
.cconf { list-style: none; padding: 0; display: grid; gap: 8px; } .cconf li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line, #ddd); border-radius: 12px; padding: 10px 12px; }
.cconf li.ok { border-color: #1e9e5a; } .cconf li span { display: grid; } .cconf li small { color: #777; } .cconf li em { font-style: normal; color: #1e9e5a; font-weight: 600; }
.clist { padding-left: 18px; }
.lf-svr { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee; flex-wrap: wrap; }
.lf-svr span { display: grid; color: #111; } .lf-svr small { color: #777; }
.lf-seg2 { display: flex; gap: 4px; } .lf-seg2 button { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #ddd; background: #f4f4f4; font: 600 14px var(--font); cursor: pointer; }
.lf-seg2 button.on { background: #f47700; border-color: #f47700; color: #000; }
/* TV: mesas en directo, resumen de la noche, busco mesa, juez y cuenta atrás */
.tv-livet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4vh 2vw; margin-top: 2vh; }
.tv-livet .lt { background: #161616; border-radius: 2vh; padding: 2vh 2vw; border: .3vh solid #2a2a2a; }
.tv-livet .lt.close { border-color: #f47700; }
.lt-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.4vh; } .lt-h b { font: 800 3.6vh var(--font); color: #fff; } .lt-h span { font: 700 2.2vh var(--font); color: #f47700; text-transform: none; }
.lt-p { display: grid; grid-template-columns: 26% 1fr 9%; align-items: center; gap: 1vw; margin: 1vh 0; font: 600 2.6vh var(--font); color: #ddd; }
.lt-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-p i { display: block; height: 2.2vh; border-radius: 99px; background: linear-gradient(90deg, #f47700 var(--w), #262626 var(--w)); }
.lt-p b { font: 800 3vh var(--font); color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.lt-p.ko { opacity: .4; }
.tv-night { display: grid; grid-template-columns: repeat(auto-fit, minmax(28vw, 1fr)); gap: 2.4vh 2vw; margin-top: 3vh; }
.tv-night .nt { background: #161616; border-radius: 2vh; padding: 3vh 2vw; border-left: .8vh solid #f47700; display: grid; gap: .8vh; }
.tv-night small { font: 700 2.2vh var(--font); color: #f47700; } .tv-night b { font: 800 5vh/1.1 var(--font); color: #fff; } .tv-night span { font: 500 2.4vh var(--font); color: #aaa; }
.tv-lfg { display: grid; grid-template-columns: repeat(auto-fit, minmax(26vw, 1fr)); gap: 2vh 2vw; margin-top: 3vh; }
.tv-lfg div { background: #161616; border-radius: 2vh; padding: 3vh 2vw; display: grid; gap: 1vh; } .tv-lfg b { font: 800 6vh var(--font); color: #f47700; } .tv-lfg span { font: 600 2.8vh var(--font); color: #fff; } .tv-lfg em { font: 500 2.2vh var(--font); color: #aaa; font-style: normal; }
.tv-judge { position: fixed; top: 2vh; left: 50%; transform: translate(-50%, -150%); opacity: 0; z-index: 95; display: flex; align-items: center; gap: 1.4vw; background: #b42318; color: #fff; border-radius: 99px; padding: 1.4vh 2.4vw; font: 700 3vh var(--font); box-shadow: 0 1.6vh 4vh rgba(0,0,0,.6); transition: transform .4s; }
.tv-judge.on { opacity: 1; transform: translate(-50%, 0); animation: tvj 1.4s ease-in-out infinite alternate; }
.tv-judge b { background: #fff; color: #b42318; border-radius: 99px; padding: .2vh 1.2vw; } .tv-judge span { font-weight: 800; } .tv-judge em { font-style: normal; font-weight: 500; }
@keyframes tvj { to { background: #e11d48; } }
.tv-bigclock { position: fixed; right: 3vw; bottom: 8vh; z-index: 85; background: #111; border: .5vh solid #f47700; border-radius: 3vh; padding: 1.4vh 2.4vw 2vh; font: 800 13vh/1 var(--display, var(--font)); color: #fff; font-variant-numeric: tabular-nums; display: none; text-align: center; box-shadow: 0 2vh 6vh rgba(0,0,0,.7); }
.tv-bigclock.on { display: block; } .tv-bigclock.over { border-color: #e11d48; color: #ff6b81; }
.tv-bigclock small { display: block; font: 700 2.2vh var(--font); color: #f47700; margin-bottom: .6vh; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-flash { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; background: rgba(244,119,0,.92); opacity: 0; transition: opacity .5s; pointer-events: none; }
.tv-flash.over { background: rgba(180,35,24,.94); }
.tv-flash b { font: 800 14vh/1 var(--display, var(--font)); color: #000; text-align: center; transform: scale(.8); transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.tv-flash.over b { color: #fff; } .tv-flash.on { opacity: 1; } .tv-flash.on b { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .tv-judge.on { animation: none; } .tv-flash b { transition: none; } }
.lf-bar button:disabled { opacity: .45; cursor: not-allowed; }
/* «Pasar turno» grande en el centro de la mesa */
.lf-grid { position: relative; }
.lf-cpass { position: absolute; left: 50%; top: 50%; z-index: 6; width: clamp(92px, 24vmin, 150px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 5px solid #0d0d0d; background: #f47700; color: #000; display: grid; place-content: center; gap: 2px; text-align: center; cursor: pointer; padding: 6px;
  box-shadow: 0 0 0 3px #f47700, 0 8px 24px rgba(0,0,0,.6); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lf-cpass.rot { transform: translate(-50%, -50%) rotate(180deg); }
.lf-cpass b { font: 800 clamp(14px, 4.2vmin, 22px)/1.05 var(--font); }
.lf-cpass small { font: 600 clamp(10px, 2.6vmin, 13px)/1.1 var(--font); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-cpass:active { filter: brightness(.9); }
.lf.is-arr .lf-cpass { display: none; }
/* Impuesto de comandante junto al nombre */
.lf-nm { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.lf-nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-tax { flex: none; border: 0; border-radius: 99px; background: rgba(0,0,0,.45); color: #fff; font: 700 clamp(11px, 5.5cqh, 14px) var(--font); padding: 3px 10px; min-height: 28px; cursor: pointer; touch-action: manipulation; }
.lf-tax:active { background: #000; }
.lf-p:not(.art) .lf-tax { background: rgba(0,0,0,.28); }
.lf-dual { margin: 6px 0 4px; } .lf-dual summary { cursor: pointer; color: #555; font: 600 14px var(--font); padding: 6px 0; }
.lf-cpass.start { background: #111; color: #fff; box-shadow: 0 0 0 3px #f47700, 0 8px 24px rgba(0,0,0,.6); }
.lf-name .lf-c2 { display: none; grid-column: 2; } form.pairs .lf-name .lf-c2 { display: block; }
/* Insignias especiales */
.spchips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; vertical-align: middle; }
.spchip { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--c) 14%, transparent); color: inherit; border: 1.5px solid var(--c); border-radius: 99px; padding: 2px 10px 2px 3px; font: 700 13px var(--font); }
.spchip i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font: 800 12px var(--font); font-style: normal; }
.spchips.sm .spchip { padding: 1px; border-width: 0; background: none; } .spchips.sm .spchip i { width: 18px; height: 18px; font-size: 10px; }
.ach.special { border-color: currentColor; } .ach.special small { color: #777; }
.ach.secret span { font-style: italic; }
.spadm { border-bottom: 1px solid var(--line, #eee); padding: 8px 0; } .spadm > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.splist { margin: 6px 0; } .splist li { margin: 2px 0; }
.poster .p-how { font: 600 13px/1.3 var(--font); margin: 4px 0 8px; color: #6b4a1f; }
.tv-poster .how { display: block; font: 600 2vh/1.3 var(--font); color: #aaa; margin: .6vh 0 1vh; }
/* Calendario de la web de la tienda */
.thead.nomedia { grid-template-columns: 1fr; }
.calbox-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 6px; }
.calinfo summary { cursor: pointer; color: var(--naranja); font-weight: 600; padding: 8px 0; }
.calhtml { line-height: 1.55; overflow-wrap: anywhere; } .calhtml h3, .calhtml h4 { margin: 1em 0 .4em; } .calhtml ul, .calhtml ol { padding-left: 1.3em; }
.calhtml a { color: var(--naranja); }
.caldates { list-style: none; padding: 0; margin: 0; } .caldates li { padding: 7px 0; border-bottom: 1px solid var(--line); } .caldates li.on { font-weight: 700; color: var(--naranja); }
.calimg img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 0 auto; }
.calfield { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); } .calfield.edited { border-left: 3px solid var(--naranja); padding-left: 10px; }
.calfield textarea, .calfield select { width: 100%; border-radius: 12px; border: 1px solid #d6d6d6; padding: 10px 14px; font: 400 15px/1.5 var(--font); }
.calfield select { min-height: 48px; }
.calfield .check-inline { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 14px; } .calfield .check-inline input { margin: 0; width: 18px; height: 18px; flex: none; }
.caldts { color: var(--muted); } .caldts span:not(:last-child)::after { content: ' · '; color: var(--muted); font-weight: 400; } .caldts span.on { color: var(--ok); } .caldts b { font-weight: 600; }
.callinks { display: grid; gap: 8px; margin: 10px 0 18px; padding: 12px; border-radius: 12px; background: #f6f6f6; } .callinks h3 { margin: 0; font-size: 17px; }
.callinks label { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; font-size: 14px; } .callinks select { min-height: 40px; border-radius: 10px; border: 1px solid #d6d6d6; padding: 6px 10px; max-width: 100%; }
@media (max-width: 600px) { .callinks label { grid-template-columns: 1fr; gap: 4px; } }
.callinks .btn { justify-self: start; }
/* Editor de texto con formato */
.richbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.richbar button { min-height: 36px; padding: 4px 12px; border-radius: 8px; border: 1px solid #d6d6d6; background: #fff; font: 500 14px var(--font); cursor: pointer; color: var(--ink); }
.richbar button:hover { border-color: var(--naranja); color: var(--naranja); }
.richbar .richtoggle { margin-left: auto; } .richbar .richtoggle.on { background: var(--naranja); color: #fff; border-color: var(--naranja); }
.richprev { border: 1px dashed #d6d6d6; border-radius: 12px; padding: 10px 14px; background: #fff; margin-top: 6px; font-weight: 400; }
.calhtml p { margin: 0 0 .7em; } .calhtml li { margin: .2em 0; }
.calhtml h3, .infobox .calhtml h3 { font: 700 18px/1.3 var(--font); color: var(--ink); text-transform: none; letter-spacing: 0; margin: 1em 0 .4em; }
.calhtml h4, .infobox .calhtml h4 { font: 700 16px/1.3 var(--font); color: var(--ink); text-transform: none; letter-spacing: 0; margin: .9em 0 .35em; }
.calhtml > :first-child { margin-top: 0; }
/* Agenda por días, con los semanales juntos */
.aday { font: 500 15px var(--display); color: var(--muted); margin: 18px 0 8px; letter-spacing: .2px; }
.aday:first-of-type { margin-top: 4px; }
.agenda { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 1000px) { .agenda { grid-template-columns: 1fr 1fr; } }
.arow { position: relative; grid-template-columns: 62px 1fr 128px; align-items: center; cursor: pointer; }
.a-time { align-self: stretch; display: grid; place-items: center; background: var(--negro); color: var(--naranja); border-radius: 12px; font: 500 19px/1 var(--display); min-height: 58px; }
.a-link { color: inherit !important; text-decoration: none; display: block; } .a-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.a-link:focus-visible { outline: none; } .arow:has(.a-link:focus-visible) { outline: 3px solid rgba(244,119,0,.45); outline-offset: 2px; }
.a-meta .warn { color: var(--warn); font-weight: 600; }
.a-bar { height: 4px; border-radius: 4px; background: #eee; margin: 6px 0 2px; max-width: 220px; overflow: hidden; } .a-bar i { display: block; height: 100%; background: var(--g); }
.a-next { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 7px; font-size: 13px; color: var(--muted); }
.a-next a { padding: 3px 9px; border-radius: 99px; background: #f3f3f3; color: var(--ink) !important; text-decoration: none; font-weight: 500; }
.a-next a:hover { background: color-mix(in srgb, var(--g) 18%, #fff); }
.arow .a-side { align-items: stretch; text-align: right; } .arow .a-side .jbtn { justify-content: center; width: 100%; }
.arow .tcard-price:empty { display: none; }
@media (max-width: 700px) {
  .arow { grid-template-columns: 54px 1fr; }
  .a-time { font-size: 16px; min-height: 48px; align-self: start; }
  .arow .a-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .arow .a-side .jbtn { width: auto; min-width: 128px; margin-left: auto; }
}
h3.aday { text-transform: none; letter-spacing: 0; font: 600 17px var(--display); color: var(--ink); margin: 20px 0 8px; }
/* Próximos torneos: un bloque por día */
.sched { display: grid; gap: 14px; }
.dcard { display: grid; grid-template-columns: 108px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dcard-h { background: var(--negro, #141414); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 16px 10px; text-align: center; }
.dh-rel { font: 500 14px var(--font); color: #c9c9c9; }
.dh-num { font: 500 46px/1 var(--display); color: var(--naranja); }
.dh-mon { font: 400 14px var(--font); color: #c9c9c9; }
.dcard-list { min-width: 0; }
.ev { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px 18px 20px; transition: background .15s; }
.ev + .ev { border-top: 1px solid var(--line); }
.ev::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--g); }
.ev:hover { background: #faf9f7; }
.ev:hover .ev-name { color: var(--naranja-ink, #b35500); }
.ev-time { font: 500 21px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ev-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.ev-game { font-weight: 700; color: color-mix(in srgb, var(--g) 70%, #000); }
.ev-chip { background: #fff2e3; color: #9a4a00; padding: 2px 9px; border-radius: 99px; font-weight: 600; font-size: 12px; }
.ev-name { margin: 4px 0 3px; font: 500 22px/1.2 var(--display); color: var(--ink); transition: color .15s; }
.ev-name .a-link { color: inherit !important; text-decoration: none; }
.ev-meta { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.ev-meta .full { color: var(--warn); font-weight: 600; }
.ev-bar { width: 84px; height: 5px; border-radius: 5px; background: #ecebe8; overflow: hidden; } .ev-bar i { display: block; height: 100%; background: var(--g); border-radius: inherit; }
.ev-next { position: relative; z-index: 1; margin: 7px 0 0; font-size: 13.5px; color: var(--muted); }
.ev-next a { color: var(--ink) !important; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--g) 60%, transparent); text-underline-offset: 3px; }
.ev-next a:hover { color: var(--naranja-ink, #b35500) !important; }
.ev-side { display: flex; align-items: center; gap: 18px; }
.ev-price { font: 500 23px/1 var(--display); color: var(--ink); white-space: nowrap; }
.ev-cta { display: inline-flex; align-items: center; justify-content: center; min-width: 126px; min-height: 44px; padding: 8px 18px; border-radius: 99px; background: var(--naranja); color: #141414; font: 500 17px var(--display); letter-spacing: .2px; transition: transform .15s, box-shadow .15s; }
.ev:hover .ev-cta { box-shadow: 0 8px 18px -10px rgba(244,119,0,.9); }
.ev-cta.alt { background: #fff; color: #141414; box-shadow: inset 0 0 0 1.5px var(--naranja); }
.ev:hover .ev-cta.alt { background: #fff6ec; }
.ev .a-link::after { content: ""; position: absolute; inset: 0; }
.ev:has(.a-link:focus-visible) { outline: 3px solid rgba(244,119,0,.5); outline-offset: -3px; }
@media (max-width: 700px) {
  .dcard { grid-template-columns: 1fr; border-radius: 14px; }
  .dcard-h { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px; padding: 10px 16px; }
  .dh-rel { font: 500 17px var(--display); color: #fff; } .dh-num { font-size: 17px; } .dh-mon { font-size: 15px; color: var(--naranja); }
  .ev { grid-template-columns: 50px minmax(0, 1fr); gap: 4px 12px; padding: 14px 14px 14px 16px; align-items: start; }
  .ev-time { font-size: 18px; padding-top: 3px; }
  .ev-name { font-size: 19px; }
  .ev-side { grid-column: 2; justify-content: space-between; margin-top: 8px; }
  .ev-price { font-size: 20px; } .ev-side:not(:has(.ev-price)) { justify-content: flex-end; }
  .ev-cta { min-height: 40px; font-size: 16px; }
}
@media (min-width: 701px) { .dcard-h { justify-content: flex-start; padding-top: 20px; } }
/* TV: con muchas mesas, cada una en una línea para que quepan todas */
.tv-pairs.dense { gap: .8vh 1.6vw; }
.tv-pairs.dense .tv-pair { padding: .7vh 1.2vw; font-size: 2.6vh; grid-template-columns: 7vh 1fr auto; }
.tv-pairs.dense .tv-pair .tn { font-size: 3.4vh; }
.tv-pairs.dense .tv-pair .who { flex-direction: row; flex-wrap: wrap; gap: 0 .8vw; align-items: baseline; min-width: 0; }
.tv-pairs.dense .tv-pair .who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tv-pairs.dense .tv-pair .who > span + span::before { content: "vs "; color: var(--muted); font-size: .8em; margin-right: .4vw; }
/* Avisos de sincronización (Inicio del admin) */
.syncwarn ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.syncwarn li { padding: 8px 12px 8px 14px; border-radius: 10px; border-left: 4px solid var(--warn); background: #fff7ed; font-size: 14px; }
.syncwarn li.sw-err { border-left-color: var(--bad, #c0392b); background: #fdecea; }
.syncwarn li.sw-info { border-left-color: #9ca3af; background: #f5f5f5; color: var(--muted); }
.syncwarn li a { color: inherit; }
/* TV: clasificación de 16 por pantalla */
.tv-stand.dense { font-size: 2.45vh; } .tv-stand.dense td, .tv-stand.dense th { padding: .5vh 1vw; } .tv-stand.dense th { font-size: 1.7vh; }
/* Autocompletar comandantes */
.cmdac { position: absolute; z-index: 1000; list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid #ddd; border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.3); max-height: 320px; overflow: auto; }
.cmdac li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; color: #141414; }
.cmdac li:hover, .cmdac li.on { background: #fff3e6; color: #b25200; }
/* Cuadro de la eliminatoria (top 8…) */
.bracket { display: grid; grid-template-columns: repeat(var(--cols), minmax(180px, 1fr)); gap: 0 28px; overflow-x: auto; padding: 4px 2px 10px; }
.bk-col { display: flex; flex-direction: column; min-width: 0; }
.bk-h { font: 500 15px var(--display); color: var(--muted); margin-bottom: 10px; }
.bk-ms { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.bk-m { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: visible; }
.bk-m.live { border-color: var(--naranja); box-shadow: 0 0 0 2px rgba(244,119,0,.15); }
.bk-m.tbd { border-style: dashed; background: transparent; }
.bk-m.tbd .bk-p span { color: var(--muted); font-style: italic; }
.bk-col:not(:last-child) .bk-m::after { content: ""; position: absolute; right: -15px; top: 50%; width: 14px; border-top: 2px solid var(--line); }
.bk-col:not(:first-child) .bk-m::before { content: ""; position: absolute; left: -15px; top: 50%; width: 14px; border-top: 2px solid var(--line); }
.bk-p { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; font-size: 15px; }
.bk-p + .bk-p { border-top: 1px solid var(--line); }
.bk-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-p b { font: 600 17px var(--display); min-width: 1ch; text-align: right; }
.bk-p.win { font-weight: 700; } .bk-p.win b { color: var(--naranja-ink, #b25200); }
.bk-p.lose { color: var(--muted); }
.bk-p.me { background: #fff6ec; }
.bk-m small { position: absolute; left: 12px; bottom: -18px; font-size: 12px; color: var(--naranja-ink, #b25200); }
.bk-champ { text-align: center; font: 500 20px var(--display); margin: 4px 0 16px; }
@media (max-width: 700px) { .bracket { grid-template-columns: repeat(var(--cols), 72vw); scroll-snap-type: x mandatory; } .bk-col { scroll-snap-align: start; } }
/* En la TV */
.bracket.tv { gap: 0 3vw; overflow: hidden; height: 100%; grid-template-columns: repeat(var(--cols), 1fr); }
.bracket.tv .bk-h { font-size: 2.4vh; margin-bottom: 1.5vh; }
.bracket.tv .bk-ms { gap: 2vh; }
.bracket.tv .bk-m { background: var(--card); border-color: var(--line); border-radius: 1vh; }
.bracket.tv .bk-m.live { border-color: var(--naranja); }
.bracket.tv .bk-m.tbd { background: transparent; }
.bracket.tv .bk-p { font-size: 2.8vh; padding: 1.1vh 1.2vw; color: var(--ink); }
.bracket.tv .bk-p.lose { color: var(--muted); }
.bracket.tv .bk-p b { font-size: 3vh; }
.bracket.tv .bk-p.win b { color: #3ecf8e; }
.bracket.tv .bk-m small { font-size: 1.8vh; bottom: -2.6vh; }
.bracket.tv .bk-col:not(:last-child) .bk-m::after, .bracket.tv .bk-col:not(:first-child) .bk-m::before { width: 1.5vw; border-color: #3a3a3a; }
.bracket.tv .bk-col:not(:last-child) .bk-m::after { right: -1.5vw; } .bracket.tv .bk-col:not(:first-child) .bk-m::before { left: -1.5vw; }
.bk-m small { position: static; display: block; padding: 0 12px 8px; } .bracket.tv .bk-m small { position: static; padding: 0 1.2vw .8vh; }
/* Contador: deshacer / rehacer */
.lf-bar button.ur { min-width: 40px; padding: 6px 10px; font: 700 19px/1 var(--font); }
.lf-bar button.ur:disabled { opacity: .35; cursor: default; }
/* Auditoría del contador */
.audfil { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.tbl.aud td { vertical-align: top; font-size: 14px; } .tbl.aud tr.err td { background: #fdecea; }
.audch { margin: 0; padding-left: 16px; } .audch li { margin: 2px 0; } .audch s { color: var(--muted); }
/* Deshacer (rojo) y rehacer (verde) a los lados del botón del centro */
.lf-grid { --cw: clamp(92px, 24vmin, 150px); --uw: clamp(42px, 11vmin, 58px); }
.lf-cur { position: absolute; z-index: 6; width: var(--uw); aspect-ratio: 1; border-radius: 50%; border: 4px solid #0d0d0d; color: #fff; font: 800 clamp(20px, 5.5vmin, 28px)/1 var(--font);
  display: grid; place-content: center; cursor: pointer; padding: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.lf-cur.undo { background: #d92d20; box-shadow: 0 0 0 2px #d92d20, 0 6px 16px rgba(0,0,0,.5); transform: translate(calc(-50% - var(--cw) / 2 - var(--uw) / 2 - 10px), -50%); }
.lf-cur.redo { background: #1f9d55; box-shadow: 0 0 0 2px #1f9d55, 0 6px 16px rgba(0,0,0,.5); transform: translate(calc(-50% + var(--cw) / 2 + var(--uw) / 2 + 10px), -50%); }
.lf-cur:disabled { background: #2b2b2b; color: #777; box-shadow: 0 0 0 2px #3a3a3a; cursor: default; }
.lf-cur:not(:disabled):active { filter: brightness(.9); }
.lf.is-arr .lf-cur { display: none; }
/* Sorteo de sobres: admin */
.rf-top .rf-big { font: 600 28px var(--display); color: var(--naranja-ink, #b25200); }
.rf-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 6px; }
.rf-rule { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 6px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rf-n { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); } .rf-n input { width: 70px; min-height: 40px; }
.rf-tk { display: flex; gap: 8px; align-items: center; justify-content: flex-end; } .rf-tk input[type=number] { width: 80px; min-height: 36px; border-radius: 8px; border: 1px solid #d6d6d6; padding: 4px 8px; }
.rf-wins li { padding: 4px 0; }
@media (max-width: 700px) { .rf-rule { grid-template-columns: 1fr; } }
/* Sorteo de sobres: pantalla de la ruleta (estilo ruleta de nombres: fondo claro, colores vivos, flecha a la derecha). Fuentes servidas desde aquí para que funcione sin internet en la tele. */
@font-face { font-family: 'RF Cinzel'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(fonts/cinzel-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'RF Barlow'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/barlow-condensed-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'RF Barlow'; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'RF Barlow'; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
body.rfbody { --rf-f: 'RF Barlow', 'Barlow Condensed', 'Roboto Flex', system-ui, sans-serif; --rf-d: 'RF Cinzel', Georgia, serif; --rf-dw: 800; --rf-fw: 700;
  overflow: hidden; color: #1d1d1d; font-family: var(--rf-f);
  background: radial-gradient(120vh 90vh at 30% 55%, #fff 0%, #f3f1ee 55%, #e9e6e1 100%); }
#rf { height: 100vh; display: flex; flex-direction: column; padding: 2.6vh 3.2vw; box-sizing: border-box; }
.rf-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 2vw; margin-bottom: 1.6vh; }
.rf-h small { display: block; color: #f47700; font: 600 2.3vh/1 var(--rf-f); letter-spacing: .02em; }
.rf-h h1 { margin: .6vh 0 0; font: var(--rf-dw) 5.6vh/1 var(--rf-d); text-transform: uppercase; letter-spacing: .01em; color: #141414; }
.rf-dots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8vh; max-width: 45vw; padding-bottom: .6vh; }
.rf-dots i { width: 3.4vh; height: 4.6vh; border-radius: .7vh; background: #fff; box-shadow: inset 0 0 0 2px #d9d4cc; transition: background .4s, box-shadow .4s, transform .4s; }
.rf-dots i.on { background: linear-gradient(160deg, #ff9a2e, #f47700 60%, #c95f00); box-shadow: 0 .4vh 1vh rgba(244,119,0,.35); }
.rf-dots i.new { animation: rfDot .7s cubic-bezier(.3,1.6,.5,1); }
.rf-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 3.2vw; align-items: center; min-height: 0; }
.rf-wheel { position: relative; aspect-ratio: 1; max-height: 80vh; width: 100%; justify-self: center; }
.rf-wheel.can { cursor: pointer; }
.rf-wheel canvas { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 1.6vh 4vh rgba(60,40,10,.22), 0 .3vh .8vh rgba(0,0,0,.12); }
.rf-arrow { position: absolute; right: -2.2vh; top: 50%; width: 7.5vh; height: 5vh; transform-origin: 80% 50%; transform: translateY(-50%); z-index: 2; filter: drop-shadow(0 .4vh .6vh rgba(0,0,0,.35)); pointer-events: none; }
.rf-side { display: flex; flex-direction: column; gap: 2vh; min-height: 0; max-height: 80vh; }
.rf-card { background: rgba(255,255,255,.92); border-radius: 1.6vh; box-shadow: 0 .4vh 2vh rgba(60,40,10,.1); padding: 2.2vh 1.8vw; display: flex; flex-direction: column; gap: 1.4vh; min-height: 0; }
.rf-card:first-child { flex: 1; }
.rf-tabs { display: flex; justify-content: space-between; align-items: baseline; gap: 1vw; border-bottom: 2px solid #efebe5; padding-bottom: 1.2vh; }
.rf-tabs b { font: 600 2.6vh var(--rf-f); } .rf-tabs em { font-style: normal; color: #f47700; }
.rf-tabs span { color: #8a847b; font: 500 2.1vh var(--rf-f); }
.rf-go { position: relative; overflow: hidden; background: #f47700; color: #fff; border: 0; border-radius: 1.2vh; font: 700 3vh var(--rf-f); letter-spacing: .06em; text-transform: uppercase; padding: 1.6vh 2vw;
  cursor: pointer; box-shadow: 0 .5vh 0 #c45f00, 0 1vh 2vh rgba(244,119,0,.3); transition: transform .12s, box-shadow .12s, background .2s; }
.rf-go:hover { background: #ff8410; } .rf-go:active { transform: translateY(.4vh); box-shadow: 0 .1vh 0 #c45f00, 0 .5vh 1vh rgba(244,119,0,.3); }
.rf-go:focus-visible { outline: 3px solid #3369e8; outline-offset: 3px; }
.rf-go:not(:disabled)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-100%); animation: rfShine 3.2s ease-in-out infinite 1s; }
.rf-go:disabled { background: #e3ded6; color: #8a847b; box-shadow: none; cursor: default; }
.rf-done { margin: 0; font: 600 2.8vh var(--rf-f); color: #009925; text-align: center; }
.rf-entries, .rf-results { list-style: none; margin: 0; padding: 0; overflow: auto; min-height: 0; }
.rf-entries li, .rf-results li { display: flex; justify-content: space-between; gap: 1vw; padding: .85vh .3vw; border-bottom: 1px solid #f2eee8; font: 500 2.3vh var(--rf-f); }
.rf-entries b { color: #8a847b; font-weight: 400; white-space: nowrap; }
.rf-card > b { font: 600 2.5vh var(--rf-f); }
.rf-results { max-height: 26vh; } .rf-results span { color: #8a847b; font-weight: 400; } .rf-results b { font-weight: 600; }
.rf-results li.new { animation: rfNew 1.6s ease; }
.rf-tot { margin: 0; color: #9a948a; font: 400 1.9vh var(--rf-f); }
@media (max-aspect-ratio: 1/1) {
  body.rfbody { overflow: auto; } #rf { height: auto; min-height: 100vh; padding: 16px; }
  .rf-h { flex-direction: column; align-items: flex-start; } .rf-h small { font-size: 15px; } .rf-h h1 { font-size: 27px; }
  .rf-dots { justify-content: flex-start; max-width: none; } .rf-dots i { width: 22px; height: 30px; border-radius: 5px; }
  .rf-main { grid-template-columns: 1fr; gap: 20px; } .rf-wheel { max-height: none; width: min(calc(100% - 24px), 62vh); justify-self: start; }
  .rf-arrow { right: -26px; width: 48px; height: 32px; } .rf-side { max-height: none; }
  .rf-card { padding: 16px; border-radius: 14px; } .rf-tabs b, .rf-card > b { font-size: 18px; } .rf-tabs span { font-size: 15px; }
  .rf-entries li, .rf-results li { font-size: 16px; padding: 8px 2px; } .rf-go { font-size: 20px; padding: 12px; border-radius: 10px; } .rf-tot { font-size: 13px; } .rf-results { max-height: none; }
}
/* Ventana del ganador */
.rfm { position: fixed; inset: 0; background: rgba(20,14,6,.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; animation: rfmIn .3s ease; font-family: var(--rf-f); }
.rfm.out { animation: rfmOut .25s ease forwards; }
.rfm-conf { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.rfm-box { position: relative; background: #fff; border-radius: 2vh; overflow: hidden; width: min(92vw, 78vh); box-shadow: 0 3vh 8vh rgba(0,0,0,.4); animation: rfmPop .6s cubic-bezier(.2,1.5,.4,1); }
.rfm-h { padding: 2.2vh 2.4vw; font: var(--rf-dw) 3.4vh/1.1 var(--rf-d); text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.rfm-b { padding: 3.6vh 2.4vw 3.4vh; text-align: center; color: #1d1d1d; }
.rfm-b small { display: block; color: #8a847b; font: 500 2.4vh var(--rf-f); }
.rfm-name { display: block; font: var(--rf-dw) 8.6vh/1.1 var(--rf-d); margin: 1.4vh 0 1.6vh; word-break: break-word; color: #141414; }
.rfm-name span { display: inline-block; animation: rfLetter .55s cubic-bezier(.2,1.6,.4,1) both; }
.rfm-b p { margin: 0 0 3vh; color: #6f6a62; font: 400 2.2vh var(--rf-f); }
.rfm-ok { background: #141414; color: #fff; border: 0; border-radius: 1.2vh; font: 600 2.6vh var(--rf-f); padding: 1.4vh 4vw; cursor: pointer; transition: transform .12s, background .2s; }
.rfm-ok:hover { background: #f47700; } .rfm-ok:active { transform: scale(.96); } .rfm-ok:focus-visible { outline: 3px solid #3369e8; outline-offset: 3px; }
@media (max-aspect-ratio: 1/1) { .rfm-h { font-size: 24px; padding: 16px; } .rfm-b { padding: 22px 18px; } .rfm-b small { font-size: 15px; } .rfm-name { font-size: 46px; } .rfm-b p { font-size: 15px; } .rfm-ok { font-size: 18px; padding: 10px 30px; } }
@keyframes rfmIn { from { opacity: 0; } } @keyframes rfmOut { to { opacity: 0; } }
@keyframes rfmPop { 0% { transform: scale(.4) rotate(-4deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes rfLetter { 0% { transform: translateY(.6em) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes rfShine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes rfDot { 0% { transform: scale(.4); } 100% { transform: none; } }
@keyframes rfNew { 0% { background: #ffe2c2; transform: translateX(-1vw); } 100% { background: transparent; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rfm, .rfm-box, .rfm-name span, .rf-dots i.new, .rf-results li.new, .rf-go::after { animation: none !important; } }
.aform .rf-n { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.aform .rf-n input { width: 70px; flex: none; }
.rf-rule .check-inline { margin: 0; }
.aform.rf-add { grid-template-columns: 1fr 110px auto; align-items: end; } @media (max-width: 700px) { .aform.rf-add { grid-template-columns: 1fr 90px; } }
/* Contador en Dos Cabezas: franja de color por pareja y «con X» bajo el nombre */
.lf-p.team::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tm); z-index: 3; pointer-events: none; }
.lf-p.team.rot::after { top: auto; bottom: 0; }
.lf-p.team.t0 { --tm: #3369e8; } .lf-p.team.t1 { --tm: #d50f25; }
.lf-mate { font-size: .72em; opacity: .8; font-weight: 500; white-space: nowrap; }
/* Commander: modalidad (todos contra todos / Dos Cabezas) */
.fmtpick { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 0; }
.fmtpick legend { font: 700 13px var(--narrow); text-transform: uppercase; letter-spacing: .06em; padding: 0 6px; }
.fmtopt { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 400 !important; }
.fmtopt:has(input:checked) { border-color: var(--naranja); background: var(--naranja-tint, #fff4e8); }
.fmtopt input { margin-top: 3px; } .fmtopt b { display: block; } .fmtopt small { color: var(--muted); }
.cmdform[data-fmt="2hg"] .ffa-only, .cmdform[data-fmt="ffa"] .hg-only { display: none !important; }
.hg-only fieldset, fieldset.hg-only { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; }
/* Mesas de Dos Cabezas */
.pod2 .pod-form { display: grid; gap: 6px; }
.team2 { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.team2:hover:not(:disabled) { border-color: var(--naranja); }
.team2 > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.team2 b { font-weight: 600; } .team2 .deck { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.team2.win { border-color: #1f9d55; background: #eaf7ef; }
.vs2 { text-align: center; font-size: 12px; color: var(--muted); }
.pod.bye .team2 { cursor: default; }
.teamspanel .teamlist { display: grid; gap: 6px; }
.teamrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.teamrow > div { display: flex; flex-direction: column; } .teamrow.clash { border-color: #d97706; background: #fff8eb; }
.looselist { margin: 4px 0 10px; padding-left: 18px; }
.teamform select { max-width: 260px; }
.teamspanel.warnp { border-color: #d9770688; } .teamspanel.okp { border-color: #1f9d5566; }
.sb-form { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.sb-matein { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; } .sb-matein small { font-weight: 400; color: var(--muted); }
.sb-matein input { min-height: 44px; border: 1px solid #ccc; border-radius: 8px; padding: 8px 10px; font: inherit; }
.sb-mate { margin: 6px 0; }
.podc-p.team i { font-style: normal; }
/* Guardar sin recargar: aviso abajo y estado «enviando» */
.xtoast { position: fixed; left: 50%; top: 68px; transform: translate(-50%, -30px); z-index: 200; max-width: min(92vw, 560px); padding: 12px 18px; border-radius: 12px;
  background: #141414; color: #fff; font: 600 15px var(--font); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s ease, opacity .25s; opacity: 0; pointer-events: none; }
.xtoast.on { transform: translate(-50%, 0); opacity: 1; }
.xtoast.err { background: #b42318; }
.xtoast:not(.err)::before { content: '✓ '; color: #4ade80; }
@media (max-width: 860px) { .xtoast { top: 60px; } }
@media (prefers-reduced-motion: reduce) { .xtoast { transition: none; } }
form.sending { opacity: .7; cursor: progress; } form.sending button { cursor: progress; }
/* Contador casual: modo Dos Cabezas */
.lf-setup form:not(.hg) .lf-hgnote, .lf-setup form:not(.hg) .lf-team, .lf-setup form.hg .lf-ffa { display: none !important; }
.lf-hgnote { margin: 0; font-size: 13px; color: #ccc; line-height: 1.4; }
.lf-team { display: block; font: 700 11px var(--font); letter-spacing: .06em; text-transform: uppercase; color: #f47700; margin-bottom: 2px; }
.lf-setup form.hg .lf-name[data-i="2"] { margin-top: 10px; }
.lf-name .lf-team { grid-column: 1 / -1; } .lf-setup .lf-name[data-i="1"] .lf-team, .lf-setup .lf-name[data-i="3"] .lf-team { display: none !important; }
/* ---------- Selector visual de comandante (cmdpick.js) ---------- */
.cpick { --cp-bg: #fff; --cp-ink: #141414; --cp-mut: #6b6b6b; --cp-line: #ddd; --cp-hi: #fff4e8; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; width: 100%; position: relative; }
.cpick.dark { --cp-bg: #1d1d1f; --cp-ink: #f3f3f3; --cp-mut: #a3a3a3; --cp-line: #3a3a3c; --cp-hi: #3a2a18; }
.cp-card { position: relative; flex: 1 1 220px; min-width: 0; min-height: 76px; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end;
  background: #2a2a2a; color: #fff; border: 1px solid var(--cp-line); }
.cp-card.art { background: var(--art) center 30% / cover no-repeat, #2a2a2a; }
.cp-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.78) 100%); }
.cp-info { position: relative; padding: 10px 40px 9px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cp-info b { font: 700 15px/1.2 var(--font); text-shadow: 0 1px 3px rgba(0,0,0,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .cp-meta small { font-size: 11px; opacity: .85; margin-left: 4px; }
.cp-pip { width: 13px; height: 13px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1.5px rgba(0,0,0,.35); }
.cp-pip.pW { background: #f6f1d4; } .cp-pip.pU { background: #3b82c4; } .cp-pip.pB { background: #3a3238; } .cp-pip.pR { background: #d9412b; } .cp-pip.pG { background: #2f8f4e; } .cp-pip.pC { background: #b8b4ad; }
.cp-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font: 700 18px/1 var(--font); cursor: pointer; }
.cp-x:hover { background: #b42318; }
.cp-plus { align-self: center; font: 700 20px var(--font); color: var(--cp-mut); }
.cp-add { flex: 1 1 200px; min-height: 76px; border-radius: 12px; border: 2px dashed var(--cp-line); background: transparent; color: var(--cp-ink); font: 600 15px var(--font); cursor: pointer; padding: 8px 12px; }
.cp-add:hover { border-color: #f47700; color: #f47700; } .cp-add.ghost { opacity: .7; }
.cp-search { flex: 1 1 240px; min-width: 0; position: relative; }
.cp-q { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--cp-line); background: var(--cp-bg); color: var(--cp-ink); padding: 10px 14px; font: 500 16px var(--font); box-sizing: border-box; }
.cp-q:focus { outline: 2px solid #f47700; outline-offset: 1px; }
.cp-list { list-style: none; margin: 6px 0 0; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--cp-line); background: var(--cp-bg); max-height: 340px; overflow-y: auto; }
.cp-list:empty { display: none; }
.cp-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; cursor: pointer; color: var(--cp-ink); min-height: 52px; }
.cp-list li + li { border-top: 1px solid var(--cp-line); }
.cp-list li.on, .cp-list li:hover { background: var(--cp-hi); }
.cp-th { flex: none; width: 64px; height: 46px; border-radius: 8px; background: #3a3a3a center 30% / cover no-repeat; display: grid; place-items: center; }
.cp-th i { width: 18px; height: 24px; border-radius: 3px; background: #6b6b6b; }
.cp-nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .cp-nm b { font: 600 15px/1.2 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-nm small { color: var(--cp-mut); font-size: 11px; margin-left: 4px; }
.cp-free { color: var(--cp-mut) !important; font-size: 14px; }
/* En tablas del admin: más bajo */
.cpick.compact .cp-card { flex-basis: 180px; min-height: 48px; border-radius: 10px; }
.cpick.compact .cp-info { padding: 6px 34px 6px 10px; } .cpick.compact .cp-info b { font-size: 13px; }
.cpick.compact .cp-x { width: 24px; height: 24px; font-size: 15px; top: 50%; transform: translateY(-50%); }
.cpick.compact .cp-add { min-height: 48px; font-size: 13px; flex-basis: 140px; }
.cpick.compact .cp-q { min-height: 40px; font-size: 14px; }
.cpick.compact .cp-list { position: absolute; left: 0; right: 0; z-index: 20; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.deckform:has(.cpick) { display: block; margin-top: 6px; max-width: 520px; }
@media (max-width: 600px) { .cp-card, .cp-add, .cp-search { flex-basis: 100%; } .cp-plus { display: none; } }
.lf-name .lf-cp { grid-column: 1 / -1; }
.lf-setup .cpick .cp-card { min-height: 64px; } .lf-setup .cpick .cp-add { min-height: 52px; }
.lf-name:has(.lf-cp) { grid-template-columns: 1fr; }
.cp-addin { position: absolute; top: 6px; right: 42px; z-index: 1; border: 0; border-radius: 99px; padding: 6px 12px; min-height: 30px; background: #f47700; color: #141414; font: 700 13px var(--font); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); white-space: nowrap; }
.cp-addin:hover { background: #ff8a1f; }
.cp-card.has-add .cp-info { padding-top: 40px; }
.cpick.compact .cp-addin { top: 50%; transform: translateY(-50%); padding: 4px 10px; min-height: 26px; font-size: 12px; right: 36px; }
.cpick.compact .cp-card.has-add .cp-info { padding-top: 6px; padding-right: 130px; }
.cpick.compact .cp-card.has-add { flex-basis: 320px; }
.cpick.compact .cp-card { align-items: center; }
.cpick.compact .cp-addin { position: relative; top: auto; right: auto; transform: none; order: 2; margin-right: 36px; flex: none; }
.cpick.compact .cp-card.has-add .cp-info { padding-right: 8px; flex: 1; order: 1; }
/* Contador (versión de pruebas): ⚔ para arrastrar daño, hoja de efectos y resumen */
.lf-arrowsvg { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; overflow: visible; }
.lf-arrowsvg path.f { animation: lfflow .6s linear infinite; }
.lf-arrowsvg circle.s { animation: lfpulse 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lf-arrowsvg.lfhot path.m { stroke-width: 10; } .lf-arrowsvg.lfhot path.h { fill: #ff8a1f; }
@keyframes lfflow { to { stroke-dashoffset: -20; } }
@keyframes lfpulse { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .lf-arrowsvg path.f, .lf-arrowsvg circle.s { animation: none; } }
.lf-dragging .lf-p { transition: box-shadow .1s; }
.lf-p.lf-drop { box-shadow: inset 0 0 0 5px #f47700, 0 0 0 4px rgba(244,119,0,.5) !important; }
.lf-dropall .lf-grid::after { content: 'A todos los rivales'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20; background: #f47700; color: #141414; font: 800 16px var(--font); padding: 14px 18px; border-radius: 99px; box-shadow: 0 0 0 8px rgba(244,119,0,.3); pointer-events: none; }
.lf-grid { position: relative; }
.lf-fx .lf-fxrow { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: start; margin: 8px 0; }
.lf-fx .lf-fxrow > span { color: #aaa; font: 600 13px var(--font); padding-top: 10px; }
.lf-fx .lf-turns button small { opacity: .7; }
.lf-fx .lf-fxtypes button[disabled] { opacity: .35; }
.lf-fxn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 8px; }
.lf-fxn b { font: 800 56px/1 var(--font); min-width: 2.2ch; text-align: center; color: #f47700; }
.lf-fxn button { min-width: 56px; min-height: 52px; border-radius: 12px; border: 1px solid #444; background: #222; color: #fff; font: 700 18px var(--font); }
.lf-fxq { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.lf-fxq button { min-width: 46px; min-height: 42px; border-radius: 10px; border: 1px solid #444; background: #1b1b1b; color: #ddd; font: 600 16px var(--font); }
.lf-fxq button.on { background: #f47700; color: #141414; border-color: #f47700; }
.lf-fxpv { list-style: none; margin: 6px 0 12px; padding: 10px 12px; background: #161616; border-radius: 10px; display: grid; gap: 6px; font-size: 14px; }
.lf-fxpv li span { display: inline-block; min-width: 90px; color: #aaa; }
.lf-fxpv:empty { display: none; }
.lf-kill button.sug { outline: 3px solid #f47700; } .lf-kill button small { display: block; font-size: 10px; opacity: .8; }
.lf-sum .lf-chart { width: 100%; height: auto; background: #141414; border-radius: 10px; }
.lf-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 12px; font-size: 13px; } .lf-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lf-mx td, .lf-mx th { text-align: center; } .lf-mx td:first-child { text-align: left; }
.lf-sumb { display: block; margin: 4px auto; }
.lf-fx .lf-turns { display: flex !important; flex-wrap: wrap; gap: 6px; grid-template-columns: none !important; }
.lf-fx .lf-turns button { flex: none; width: auto; min-height: 40px; padding: 6px 12px; font-size: 14px; }
.lf-fx h2 { margin-bottom: 4px; }
@media (min-width: 640px) { .lf-fxcols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; } .lf-fxn { margin-top: 4px; } }
.lf-sum .lf-chart { max-height: 42vh; }
.lf-fxpv { background: #f2f0ec; color: #222; } .lf-fxpv li span { color: #666; }
.lf-beta .lf-p { touch-action: none; }
/* Contador (pruebas): pausa, valoración, rápidas, animaciones */
.lf-pausebox { position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(0,0,0,.72); text-align: center; padding: 20px; }
.lf-pausebox b { font: 800 34px var(--font); color: #f47700; } .lf-pausebox span { color: #ddd; max-width: 420px; }
.lf-stars { display: flex; align-items: center; gap: 4px; } .lf-stars button { font-size: 34px; background: none; border: 0; color: #ccc; cursor: pointer; padding: 2px; }
.lf-stars button.on { color: #f4a300; } .lf-stars small { margin-left: 10px; color: #666; }
.lf-rin { width: 100%; box-sizing: border-box; border: 1px solid #ccc; border-radius: 10px; padding: 10px 12px; font: 500 15px var(--font); }
.lf-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lf-quick span { display: inline-flex; border-radius: 99px; overflow: hidden; border: 1px solid #f47700; }
.lf-quick button { border: 0; background: #fff4e8; color: #8a4100; font: 700 13px var(--font); padding: 7px 12px; cursor: pointer; }
.lf-quick button + button { background: #f47700; color: #141414; padding: 7px 10px; }
.lf-qsave { display: block; margin: 8px auto 0; }
.lf-fxhint { display: block; margin-top: 4px; color: #888; font-size: 12px; }
.lf-sumacts { margin: 10px 0; }
.lf-exadd { display: flex; gap: 6px; margin: 10px 0; } .lf-exadd input { flex: 1; min-height: 42px; border-radius: 10px; border: 1px solid #ccc; padding: 6px 10px; font: inherit; } .lf-exadd button { border-radius: 10px; border: 0; background: #f47700; font-weight: 700; padding: 0 14px; }
.lf-p.lf-hit { animation: lfhit .55s ease-out; } .lf-p.lf-heal { animation: lfheal .6s ease-out; }
.lf-p.lf-ko { animation: lfko .9s ease-out; }
@keyframes lfhit { 0% { box-shadow: inset 0 0 0 0 rgba(213,15,37,0); } 25% { box-shadow: inset 0 0 0 999px rgba(213,15,37,.45); } 100% { box-shadow: inset 0 0 0 0 rgba(213,15,37,0); } }
@keyframes lfheal { 0% { box-shadow: inset 0 0 0 0 rgba(0,153,37,0); } 30% { box-shadow: inset 0 0 0 999px rgba(0,180,60,.38); } 100% { box-shadow: inset 0 0 0 0 rgba(0,153,37,0); } }
@keyframes lfko { 0% { filter: none; transform: none; } 40% { transform: scale(.97); } 100% { filter: grayscale(1) brightness(.6); } }
.lf-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 120; }
@media (prefers-reduced-motion: reduce) { .lf-p.lf-hit, .lf-p.lf-heal, .lf-p.lf-ko { animation: none; } }
/* Tablas del resumen: cabeceras que pueden partirse y desplazamiento lateral si no caben */
.lf-tsw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 10px; }
.lf-tsw .lf-ts { margin: 0; min-width: 100%; }
.lf-tsw .lf-ts th { white-space: normal; line-height: 1.15; vertical-align: bottom; padding: 0 0 4px 10px; }
.lf-tsw .lf-ts td { padding-left: 10px; white-space: nowrap; }
.lf-tsw .lf-ts td:first-child, .lf-tsw .lf-ts th:first-child { padding-left: 0; position: sticky; left: 0; background: #fff; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
.lf-nosigns .lz span { visibility: hidden; }
/* Márgenes seguros del iPhone (esquinas redondeadas, barra de inicio, isla): nada del contador queda tapado ni recortado */
body.lifep .lf { box-sizing: border-box; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
/* Girado 90º: el borde de arriba de la pantalla es el izquierdo del contador, el de abajo el derecho, etc. */
body.lifep #life.turn .lf { padding: env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) env(safe-area-inset-top); }
/* Antes de empezar los turnos: el contador se ve pero no se toca (salvo mulligans) */
.lf-wait .lf-p .lz, .lf-wait .lf-p .lf-tax, .lf-wait .lf-p .lf-tags, .lf-wait .lf-p footer button:not([data-mull]):not([data-art]) { pointer-events: none; opacity: .35; }
.lf-wait .lf-p .lf-life b { opacity: .6; }
/* Abierta como app desde la pantalla de inicio del iPhone: el menú de abajo se aparta de la barra de inicio */
@media (max-width: 860px) and (display-mode: standalone) {
  .tabbar { padding-bottom: calc(6px + max(env(safe-area-inset-bottom), 24px)); }
  .pub { padding-bottom: calc(var(--tab-h) + 64px + env(safe-area-inset-bottom)); }
  .jfoot { padding-bottom: calc(var(--tab-h) + 48px + env(safe-area-inset-bottom)); }
}
/* ---------- Contador casual: preparar la partida como una página más de la web (claro, con cabecera y menú) ---------- */
body.lifep .jhead, body.lifep .tabbar { display: none !important; }
body.lifep .lf-main { padding: 0; margin: 0; max-width: none; }
body.public.lfcas .lf-setup { height: auto; overflow: visible; padding: 0; max-width: 620px; }
body.public.lfcas .lf-setup h1 { font: 500 32px/1.15 var(--display); color: var(--ink); margin: 0 0 6px; }
body.public.lfcas .lf-setup p, body.public.lfcas .lf-hgnote, body.public.lfcas .lf-chk { color: var(--muted, #6b6b6b); }
body.public.lfcas .lf-seg legend, body.public.lfcas .lf-join label { color: var(--ink); font: 500 15px var(--display); letter-spacing: .2px; }
body.public.lfcas .lf-seg b { background: #fff; border: 1px solid #d6d6d6; color: var(--ink); }
body.public.lfcas .lf-seg input:checked + b { background: var(--naranja, #f47700); border-color: var(--naranja, #f47700); color: #000; }
body.public.lfcas .lf-seg input:focus-visible + b { outline-color: var(--negro, #141414); }
body.public.lfcas .lf-setup input[type=text], body.public.lfcas .lf-setup .lf-name input, body.public.lfcas .lf-join input { background: #fff; color: var(--ink); border: 1px solid #d6d6d6; border-radius: 12px; }
body.public.lfcas .lf-setup input:focus, body.public.lfcas .lf-join input:focus { border-color: var(--naranja); outline: 3px solid rgba(244,119,0,.2); }
body.public.lfcas .lf-name { background: #fff; border: 1px solid var(--line, #e5e5e5); border-radius: 14px; padding: 10px; }
body.public.lfcas .lf-note { background: var(--naranja-tint, #fff4e8); color: var(--naranja-ink, #8a3c00) !important; }
body.public.lfcas .lf-setup .lf-cerr { color: #b42318; }
body.public.lfcas .lf-setup .lf-sugs button { background: #f4f4f4; border-color: #ddd; color: #111; }
body.public.lfcas .lf-setup .jbtn { border-radius: 999px; font: 500 19px var(--display); letter-spacing: .3px; }
body.public.lfcas .lf-join { border-top: 1px solid var(--line, #e5e5e5); padding-top: 16px; }
body.public.lfcas .lf-join button { border-radius: 999px; }
body.public.lfcas .lf-join input { min-width: 0; width: 100%; } body.public.lfcas .lf-join span { min-width: 0; }
/* Meta de Commander: como el de Cyberpunk, con la carta del comandante */
.cmrow .m-top b svg { width: 20px; height: 20px; color: var(--naranja); vertical-align: -3px; }
.cmrow .m-name a { font-weight: 500; }
/* Aviso del truco de la versión de pruebas (7 toques en el título) */
.lf-egg { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); z-index: 200; background: #141414; color: #fff; border: 1px solid #f47700;
  padding: 10px 16px; border-radius: 999px; font: 500 15px var(--font); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
.lf-egg.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .lf-egg { transition: none; } }
#life [data-egg] { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; } /* en iOS, sin cursor: pointer un toque en un título no lanza «click» */
/* Hoja de daño/efectos: se adapta al tamaño real del contador (también girado, donde los @media miran la pantalla sin girar) */
.lf-sheet { container: lfs / size; }
.lf-fx .lf-turns button { color: #141414; -webkit-text-fill-color: currentColor; }
.lf-fx .lf-turns button.on { color: #141414; }
@container lfs (min-width: 600px) {
  .lf-fxcols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
  .lf-fxn { margin-top: 4px; }
}
@container lfs (max-height: 560px) {
  .lf-fx .lf-sh-in { padding: 10px 14px 12px; max-height: 96%; }
  .lf-fx h2 { font-size: 17px; margin: 0 0 2px; }
  .lf-fx .lf-fxrow { grid-template-columns: 58px 1fr; gap: 6px; margin: 4px 0; }
  .lf-fx .lf-fxrow > span { font-size: 12px; padding-top: 7px; }
  .lf-fx .lf-turns { gap: 4px; }
  .lf-fx .lf-turns button { min-height: 32px; padding: 4px 10px; font-size: 13px; border-radius: 9px; }
  .lf-fxn { gap: 6px; margin: 2px 0 6px; } .lf-fxn b { font-size: 38px; }
  .lf-fxn button { min-width: 44px; min-height: 40px; font-size: 16px; }
  .lf-fxq { gap: 4px; margin-bottom: 6px; } .lf-fxq button { min-width: 36px; min-height: 34px; font-size: 14px; }
  .lf-fxpv { margin: 4px 0 8px; padding: 6px 10px; font-size: 13px; gap: 3px; }
  .lf-fx .lf-endb .jbtn { min-height: 42px; margin-top: 0; font-size: 15px; }
  .lf-fx .lf-qsave { font-size: 13px; margin-top: 4px; }
  .lf-fx .lf-sh-in > p.small, .lf-fx .lf-fxhint { display: none; }
  .lf-fx .lf-quick { margin-bottom: 4px; }
}
/* Tocar el fondo de una hoja la cierra (en iOS, sin cursor: pointer un toque en un div no lanza «click») */
.lf-sheet { cursor: pointer; } .lf-sheet > * { cursor: auto; }
/* Márgenes seguros (isla dinámica, esquinas, barra de inicio): las hojas y avisos tampoco se meten debajo */
body.lifep .lf { --sa-t: env(safe-area-inset-top); --sa-r: env(safe-area-inset-right); --sa-b: env(safe-area-inset-bottom); --sa-l: env(safe-area-inset-left);
  padding: var(--sa-t) var(--sa-r) var(--sa-b) var(--sa-l); }
body.lifep #life.turn .lf { --sa-t: env(safe-area-inset-right); --sa-r: env(safe-area-inset-bottom); --sa-b: env(safe-area-inset-left); --sa-l: env(safe-area-inset-top); }
body.lifep .lf-sheet, body.lifep .lf-pausebox { inset: var(--sa-t) var(--sa-r) var(--sa-b) var(--sa-l); }
body.lifep .lf-sh-in { padding-bottom: 14px; }
/* Preparar la partida (página de la web con viewport-fit=cover): la cabecera y los lados respetan la isla y las esquinas */
@media (max-width: 860px) {
  body.public.lfcas .jhead { box-sizing: content-box; padding-top: env(safe-area-inset-top); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  body.public.lfcas .pub { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  body.public.lfcas .tabbar { padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
}
body.lifep #life:not(.turn) .lf { position: fixed; top: 0; left: 0; } /* fijo arriba a la izquierda: tras girar el iPhone la página no queda desplazada */
/* Portada: un cartel «Se busca» pequeño por cada caza (en fila, se desliza si no caben) */
.commstrip:has(.cs-posters) { grid-template-columns: 1fr; }
.cs-posters { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 10px; margin: 0 -4px; scrollbar-width: thin; }
.commstrip a.cs-poster { flex: 0 0 156px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 10px 12px;
  background: #f3e3c3 radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 60%); border: 2px solid #5a3b17; border-radius: 5px; color: #3b250c;
  box-shadow: 0 8px 16px -12px rgba(0,0,0,.6); transform: rotate(-1deg); transition: transform .15s; }
.commstrip a.cs-poster:nth-child(even) { transform: rotate(1deg); }
.commstrip a.cs-poster:hover { transform: rotate(0) translateY(-2px); }
.csp-top { font: 800 15px/1 Georgia, 'Times New Roman', serif; letter-spacing: .08em; text-transform: uppercase; }
.csp-face { width: 46px; height: 46px; margin: 4px 0 2px; border: 2px solid #5a3b17; background: #e5cfa3; display: grid; place-items: center; font: 800 24px Georgia, serif; }
.csp-name { font: 700 15px/1.2 Georgia, serif; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.csp-rew { font: 600 12px/1.25 var(--font); border-top: 1px dashed #5a3b17; padding-top: 5px; margin-top: 2px; width: 100%; }
.csp-rew small { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
@media (max-width: 600px) { .commstrip a.cs-poster { flex-basis: 136px; } }
@media (prefers-reduced-motion: reduce) { .commstrip a.cs-poster { transition: none; } }
/* Sorteo: tickets por puesto y tickets pendientes */
.rf-places { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rf-places label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.rf-places input { width: 56px; }
.rf-inh { margin-top: 10px; align-items: flex-start; }
.rf-give { display: grid; grid-template-columns: minmax(200px, 1.4fr) 110px minmax(160px, 1.6fr) auto; gap: 10px; align-items: end; margin-bottom: 14px; }
@media (max-width: 760px) { .rf-give { grid-template-columns: 1fr 1fr; } .rf-give > label:first-child, .rf-give > label:nth-child(3) { grid-column: 1 / -1; } }
