[data-chavito-link][hidden],.chv-page [hidden]{display:none!important}
.chv-page .section-head{flex-wrap:wrap}
.chv-page .section-head img{width:44px;height:auto;margin-right:10px;vertical-align:middle}
.chv-page h3{margin:26px 0 8px}
.chv-status{margin:14px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#100e18;font-weight:700;color:var(--text)}
.chv-status.is-ok{border-color:#50e3c255;background:#50e3c20f}
.chv-status.is-warn{border-color:#ffc94f66;background:#ffc94f12}
.chv-status.is-off{border-color:#ff637488;background:#ff637414}
.chv-switch{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0b1017}
.chv-switch label{display:flex;align-items:center;gap:8px;color:var(--text);font-size:13px}
.chv-switch small{flex-basis:100%;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.chv-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin-top:14px}
.chv-card{display:grid;align-content:start;gap:4px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:#100e18}
.chv-card.is-off{opacity:.62}
.chv-card.is-ok{border-color:#50e3c255}
.chv-card.is-warn{border-color:#ffc94f66}
.chv-card.is-down{border-color:#ff637488;background:#ff63740f}
.chv-card.is-down strong{color:#ffb3bf}
.chv-card span{color:var(--text);font-size:14px;font-weight:800}
.chv-card strong{margin-top:4px;font-size:26px;line-height:1.05;color:var(--text);font-variant-numeric:tabular-nums}
.chv-card small{color:var(--muted);font-size:12px}
.chv-page td small{display:block;color:var(--muted);font-size:11px}
.chv-page td .mini+.mini{margin-left:6px}
.chv-flag{display:inline-block;margin:1px 4px 1px 0;padding:1px 7px;border:1px solid #ff637488;border-radius:999px;color:#ffb3bf;font-size:11px;font-weight:800}
.chv-plus{color:#8ee6a6}.chv-minus{color:#ffb3bf}
.chv-user{padding:0;border:0;background:none;color:#a9dcff;font-weight:800;text-decoration:underline;cursor:pointer}
.chv-report{display:grid;gap:8px;margin-top:10px}
.chv-report dl{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:4px 14px;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0b1017;font-size:13px}
.chv-report dt{color:var(--muted)}
.chv-report dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.chv-report h4{margin:6px 0 0;font-size:13px;text-transform:uppercase}
.chv-row{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.chv-row label{min-width:170px}
.chv-dialog{width:min(520px,calc(100vw - 24px));padding:0;border:1px solid var(--line);border-radius:16px;background:#0e141d;color:var(--text)}
.chv-dialog::backdrop{background:#01030cd6}
.chv-dialog-body{display:grid;gap:12px;padding:20px}
.chv-dialog-body h2{margin:0;font-size:19px}
.chv-dialog-body textarea{width:100%;min-height:90px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#090d13;color:var(--text);font:inherit}
.chv-amount{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;padding:12px;border:1px solid #ffc94f66;border-radius:12px;background:#ffc94f0d}
.chv-amount p{grid-column:1/-1;margin:0;font-size:12px}
.chv-amount input{width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#090d13;color:var(--text);font:inherit;font-variant-numeric:tabular-nums}
.chv-dialog-actions{display:flex;flex-wrap:wrap;gap:8px}
.chv-dialog-actions .danger{background:#ff637422;border:1px solid #ff637488;color:#ffb3bf}
@media(max-width:560px){.chv-card strong{font-size:22px}.chv-row label{min-width:0;flex:1}}
.chv-pause{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin-top:12px;padding:12px 14px;border:1px solid #ff637488;border-radius:12px;background:#ff637414}
.chv-pause p{margin:0;flex:1 1 280px;color:#ffd6dc;font-weight:700}
/* v32 · «En vivo» (primer bloque de #chavito, lo arma chavito-admin.js): tarjetas, por juego, jugadores, bono y estado. */
.chv-live{display:grid;gap:12px;margin:14px 0 4px;padding:16px;border:1px solid #50e3c244;border-radius:16px;background:linear-gradient(160deg,#0c191b 0%,#100e18 60%)}
.chv-live h4{margin:8px 0 0;color:var(--muted);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.chv-live-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.chv-page .chv-live-head h3{display:flex;align-items:center;gap:9px;margin:0;font-size:18px}
.chv-live-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#50e3c2;animation:chv-live-pulse 2s ease-out infinite}
.chv-live:is([data-state=loading],[data-state=retrying],[data-state=limited]) .chv-live-dot{background:#ffc94f;animation:none}
.chv-live:is([data-state=idle],[data-state=stopped]) .chv-live-dot{background:#ff6374;animation:none}
@keyframes chv-live-pulse{0%{box-shadow:0 0 0 0 #50e3c299}70%{box-shadow:0 0 0 9px #50e3c200}100%{box-shadow:0 0 0 0 #50e3c200}}
.chv-live-meta{display:flex;flex:1 1 240px;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;margin:0;font-size:13px}
.chv-live-head .chv-live-refresh{margin-left:auto}
.chv-live-state{padding:3px 10px;border:1px solid var(--line);border-radius:999px;font-weight:800}
.chv-live-state.is-ok{border-color:#50e3c266;color:#8ff0d6}
.chv-live-state.is-warn{border-color:#ffc94f66;color:#ffe199}
.chv-live-state.is-off{border-color:#ff637488;color:#ffb3bf}
.chv-live-age{color:var(--muted);font-variant-numeric:tabular-nums}
.chv-live-age:not(:empty)::before{content:"· "}
.chv-live-day{margin:0;color:var(--muted);font-size:12px}
.chv-live-notes{display:grid;gap:6px}
.chv-live-note{margin:0;padding:9px 12px;border:1px solid #ffc94f66;border-radius:10px;background:#ffc94f12;color:#ffe199;font-size:13px;font-weight:700}
.chv-live .chv-cards{margin-top:0}
.chv-live-kpis{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.chv-kpi.is-main{border-color:#ffc94f88;background:linear-gradient(150deg,#221a08,#100e18)}
.chv-kpi strong.is-plus{color:#8ee6a6}
.chv-kpi strong.is-minus{color:#ffb3bf}
.chv-kpi strong.is-nodata{color:var(--muted);font-size:18px;font-weight:700}
.chv-kpi-line{display:grid;gap:1px;margin-top:4px}
.chv-kpi-line strong{margin-top:0;font-size:21px}
.chv-live .table-wrap{margin-top:0}
.chv-live-table{min-width:560px}
.chv-live-table td{font-variant-numeric:tabular-nums}
.chv-live-table td.is-plus,.chv-live-table td.chv-yes{color:#8ee6a6}
.chv-live-table td.is-minus{color:#ffb3bf}
.chv-live-table td.is-nodata,.chv-live-table td.muted{color:var(--muted)}
.chv-live-table td.chv-warn{color:#ffe199;font-weight:800}
.chv-live-summary{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#0b1017;font-weight:700}
.chv-live-summary.is-ok{border-color:#50e3c255}
.chv-live-summary.is-warn{border-color:#ffc94f66;background:#ffc94f12}
.chv-live-summary.is-off{border-color:#ff637488;background:#ff637414;color:#ffd6dc}
.chv-live-games{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.chv-live-game{display:grid;gap:2px;min-width:160px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#0b1017}
.chv-live-game strong{font-size:13px}
.chv-live-game small{color:var(--muted);font-size:12px;font-weight:700}
.chv-live-game.is-ok{border-color:#50e3c255}.chv-live-game.is-ok small{color:#8ff0d6}
.chv-live-game.is-warn{border-color:#ffc94f66}.chv-live-game.is-warn small{color:#ffe199}
.chv-live-game.is-down{border-color:#ff637488;background:#ff63740f}.chv-live-game.is-down small{color:#ffb3bf}
.chv-live-game.is-off{opacity:.7}
@media(max-width:560px){
  .chv-live{padding:12px}
  .chv-live-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .chv-live .chv-kpi{padding:12px}
  .chv-live .chv-kpi span{font-size:12px}
  .chv-live .chv-kpi strong{font-size:19px}
  .chv-live .chv-kpi strong.is-nodata{font-size:15px}
  .chv-live .chv-kpi.is-main{grid-column:1/-1}
  .chv-live-head .chv-live-refresh{min-height:44px}
  .chv-live-head .chv-live-meta{order:3;flex-basis:100%}
  /* Las tablas del bloque pasan a tarjetas: cada dato con su título (data-label); los encabezados quedan para lectores. */
  .chv-page .chv-live .table-wrap{overflow:visible;border:0;border-radius:0;background:transparent}
  .chv-page .chv-live .table-wrap::after{content:none}
  .chv-live-table{display:block;width:100%;min-width:0}
  .chv-live-table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
  .chv-live-table tbody{display:grid;gap:8px}
  .chv-live-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;padding:4px 12px;border:1px solid var(--line);border-radius:12px;background:#100e18}
  .chv-live-table td{display:block;min-width:0;padding:7px 0;border:0;border-bottom:1px solid #ffffff12;white-space:normal;overflow-wrap:anywhere}
  .chv-live-table td:is(:first-child,[colspan]){grid-column:1/-1;font-weight:800}
  .chv-live-table td:last-child{border-bottom:0}
  .chv-live-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:2px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
  .chv-live-game{flex:1 1 calc(50% - 8px);min-width:0}
}
@media(prefers-reduced-motion:reduce){.chv-live-dot{animation:none}}
