:root {
  --bg: #0d0f13; --panel: #161a21; --panel2: #1f252e; --line: #2a323d;
  --text: #e9edf2; --muted: #8b97a7; --accent: #ff3d2e; --accent2: #ffb400; --green: #2ecc71; --purple: #b36bff;
  --gold: #f5c542; --silver: #c8d0da; --bronze: #d08a4c;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { background: radial-gradient(1200px 500px at 70% -10%, #2a1414 0%, transparent 60%), var(--bg); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--panel2); border-radius: 8px; padding: 8px 14px; }
button:hover { border-color: #46546a; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
button.warn { background: var(--accent2); color: #111; border-color: var(--accent2); font-weight: 700; }
button.danger { background: #4d1717; border-color: #8a2b2b; }
button.ghost { background: transparent; }
button.small, .small { font-size: 12.5px; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { background: #0a0c10; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
input[type=range] { padding: 0; accent-color: var(--accent); height: 28px; background: transparent; border: 0; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
label { display: grid; gap: 5px; font-size: 13.5px; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
legend { color: var(--muted); padding: 0 6px; }
h1 { font-size: 22px; margin: 6px 0 14px; letter-spacing: .3px; }
h2 { font-size: 16.5px; margin: 0 0 8px; }
h3 { font-size: 14.5px; margin: 4px 0 8px; }
.muted { color: var(--muted); }
.error { color: #ff7b7b; min-height: 1em; margin: 0; font-size: 14px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.grid2.top { align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.scrollX { overflow-x: auto; }
kbd { background: #0a0c10; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 11.5px; margin: 0 1px; }
.tag { white-space: nowrap; align-self: center; flex: none; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); }
.tag.race { background: #17432a; border-color: var(--green); }
.tag.countdown { background: #4d1717; border-color: var(--accent); }
.tag.paused, .tag.heatEnd { background: #4d3a00; border-color: var(--accent2); }
.tag.done { background: #17432a; border-color: var(--green); }
.tag.pend { background: var(--panel2); }

/* ───── marca ───── */
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; transform: skewX(-12deg);
  background: linear-gradient(135deg, var(--accent), #9c1208); color: #fff; font-weight: 900; font-size: 20px; font-style: italic;
  box-shadow: 0 2px 10px #ff3d2e55; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brandTxt { display: grid; line-height: 1; }
.brandTxt b { font-size: 16px; letter-spacing: 2px; font-style: italic; }
.brandTxt small { font-size: 9.5px; letter-spacing: 3.2px; color: var(--accent2); }
.bigLogo { display: flex; align-items: center; gap: 14px; }
.bigLogo .logo { width: 56px; height: 56px; font-size: 32px; }
.bigLogo b { font-size: 26px; letter-spacing: 3px; font-style: italic; display: block; }
.bigLogo small { color: var(--accent2); letter-spacing: 4px; font-size: 11px; }

#topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 8px 16px;
  border-bottom: 1px solid var(--line); background: #10131aee; backdrop-filter: blur(6px); }
#mainNav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
#mainNav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); white-space: nowrap; font-size: 14.5px; }
#mainNav a.on { color: var(--text); background: var(--panel2); box-shadow: inset 0 -2px 0 var(--accent); }
.userBox { display: flex; gap: 4px; flex: none; }

.view { padding: 16px; max-width: 1500px; margin: 0 auto; }
.center { min-height: 100vh; display: grid; place-items: center; }
.login { width: min(400px, 100%); display: grid; gap: 14px; padding: 24px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 24px; }
.cards.small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cards .card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cards canvas { width: 100%; aspect-ratio: 1200/760; border-radius: 8px; display: block; }
.cards p { margin: 0; }
.cards .grow { flex: 1; }

/* ───── pista ───── */
.raceView { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; padding: 12px; max-width: none; }
.stage { position: relative; background: #13261a; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  align-self: start; justify-self: center; width: 100%; max-width: calc((100vh - 90px) * 1200 / 760); }
.stage:fullscreen { max-width: none; border-radius: 0; display: grid; place-items: center; background: #000; }
#cv { display: block; width: 100%; aspect-ratio: 1200 / 760; touch-action: none; user-select: none; -webkit-user-select: none; }
.stage:fullscreen #cv { width: min(100vw, calc(100vh * 1200 / 760)); }
.stageBtns { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.stageBtns button { background: #000a; padding: 4px 9px; font-size: 16px; }
.stageBtns button.on { background: var(--accent); }
.side { display: grid; gap: 0; align-content: start; }
.circuitRow { margin: 4px 0 8px; }
.circuitRow select { width: auto; max-width: 60%; }
.eventBanner { background: linear-gradient(90deg, #3a1210, #2a1c05); border: 1px solid #7a2a1d; border-radius: 8px; padding: 7px 10px; font-size: 13px; margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 6px 5px; border-bottom: 1px solid #20262f; }
.swatch { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #111; font-weight: 800; font-size: 12px; flex: none; }
tr.me td { background: #2a1a17; }
td.purple, .purple { color: var(--purple); font-weight: 700; }
.sitBtn { padding: 3px 10px; font-size: 12.5px; }
.kick { padding: 0 6px; font-size: 12px; margin-left: 4px; }
.offline { opacity: .5; }
.cfgBox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ctlBtns button { flex: 1; min-width: 110px; }
#eventLoadBox { margin-bottom: 10px; flex-wrap: nowrap; }
.slider { color: var(--text); margin-bottom: 6px; }
.slider span { display: flex; justify-content: space-between; }
.slider small { font-size: 11.5px; }
.presets { margin: 4px 0 10px; }
.keys { margin: 8px 0; }

.lights { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; padding: 10px 16px; background: #000c; border-radius: 12px; }
.lights i { width: 30px; height: 30px; border-radius: 50%; background: #311; border: 2px solid #222; }
.lights i.r { background: #ff2a2a; box-shadow: 0 0 16px #f00; }
.lights i.g { background: #2dff6a; box-shadow: 0 0 16px #0f0; }
.banner { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: #000c; padding: 6px 16px; border-radius: 10px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.overlay { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: #000a; gap: 8px; font-size: 15px; }
.overlay b { font-size: 34px; letter-spacing: 2px; }
.overlay.pause b { color: var(--accent2); }
.hud { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; right: 10px; pointer-events: none; }
.hud div { background: #000b; border-radius: 10px; padding: 5px 10px; display: grid; min-width: 66px; }
.hud b { font-size: 20px; font-variant-numeric: tabular-nums; }
.hud small { color: var(--muted); font-size: 10.5px; }
.hud .wide { min-width: 90px; }
#hudThr { display: block; height: 10px; margin: 6px 0 5px; background: #333; border-radius: 5px; overflow: hidden; }
.rotateHint { display: none; }
@media (orientation: portrait) and (pointer: coarse) { body.hasBar .rotateHint { display: block; text-align: center; font-size: 12px; margin: 4px 0; } }
#hudThr i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--accent2), var(--accent)); }

/* barra móvil */
.mobileBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; align-items: stretch; gap: 8px;
  padding: 8px 10px calc(8px + var(--safe-b)); background: #0d0f13f2; border-top: 1px solid var(--line); }
.mobileBar > button { display: grid; place-items: center; font-size: 20px; padding: 4px 10px; min-width: 64px; }
.mobileBar > button small { font-size: 10px; color: var(--muted); }
.trigger { position: relative; flex: 1; min-height: 110px; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, #ff7a5e, #b01d10); border: 3px solid #5c0d06; color: #fff; font-weight: 900; font-size: 20px; letter-spacing: 3px;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.trigger span { position: relative; z-index: 1; text-shadow: 0 2px 4px #0008; }
.trigger i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #ffd24a88; }
.trigger.on { border-color: var(--accent2); filter: brightness(1.15); }
.mobileBar.left { flex-direction: row-reverse; }
.mobileBar.analog .trigger { min-height: 170px; }
.mobileBar.analog .trigger span::after { content: "\A deslizá ↑"; white-space: pre; font-size: 10px; letter-spacing: 1px; }

/* ───── torneos / récords ───── */
.board td, .board th { text-align: center; }
.board td:nth-child(2), .board th:nth-child(2) { text-align: left; }
.board .tot { font-weight: 800; font-size: 15px; color: var(--accent2); }
.board .ev small { display: block; color: var(--muted); font-size: 10.5px; }
.board tr.p1 td:first-child { color: var(--gold); font-weight: 800; }
.board tr.p2 td:first-child { color: var(--silver); font-weight: 800; }
.board tr.p3 td:first-child { color: var(--bronze); font-weight: 800; }
.events td { white-space: nowrap; }
.events.edit input, .events.edit select { padding: 4px 6px; font-size: 13px; min-width: 70px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips button { font-size: 12.5px; padding: 5px 10px; }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips button i { font-style: normal; background: #0006; border-radius: 99px; padding: 0 6px; margin-left: 4px; }
.recGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 12px; }
.recGrid .card { margin: 0; }
.recGrid canvas { width: 100%; aspect-ratio: 1200/760; border-radius: 6px; margin-bottom: 6px; }
.recList { list-style: none; padding: 0; margin: 0; }
.recList li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #20262f; font-size: 13.5px; }
.recList li:first-child b { color: var(--gold); }
.recList .muted { font-size: 11.5px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; background: transparent; }
.seg button.on { background: var(--accent); color: #fff; }
.history tr { cursor: pointer; }
.history tr:hover td { background: #1b2029; }
.champ { font-size: 34px; }

/* podio */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 10px 0 16px; }
.podium .step { width: min(150px, 30%); text-align: center; }
.podium .block { border-radius: 8px 8px 0 0; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #111; }
.podium .p1 .block { height: 120px; background: linear-gradient(var(--gold), #b58a17); }
.podium .p2 .block { height: 85px; background: linear-gradient(var(--silver), #7b8591); }
.podium .p3 .block { height: 60px; background: linear-gradient(var(--bronze), #8a4f1f); }
.podium .who { font-weight: 800; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .who small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.podium .crown { font-size: 26px; animation: bounce 1s infinite alternate; }
@keyframes bounce { to { transform: translateY(-6px); } }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; width: min(560px, calc(100% - 24px)); padding: 18px; max-height: calc(100vh - 24px); }
dialog.wide { width: min(900px, calc(100% - 24px)); }
dialog::backdrop { background: #000b; }
dialog.sheet { margin: auto auto 0; border-radius: 16px 16px 0 0; width: 100%; max-width: 560px; padding-bottom: calc(18px + var(--safe-b)); }
.users td:last-child { text-align: right; white-space: nowrap; }
.users button, .events button { padding: 3px 8px; font-size: 12.5px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); background: #000e; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
body.hasBar .toast { bottom: calc(150px + var(--safe-b)); }

/* ───── responsive ───── */
@media (max-width: 1000px) {
  .raceView { grid-template-columns: 1fr; padding: 6px; }
  .stage { max-width: none; }
  body.hasBar .raceView { padding-bottom: calc(140px + var(--safe-b)); }
  body.hasBar.analogBar .raceView { padding-bottom: calc(200px + var(--safe-b)); }
}
@media (max-width: 700px) {
  #topbar { flex-wrap: wrap; gap: 6px; padding: 6px 10px; }
  #mainNav { order: 3; flex-basis: 100%; }
  .brandTxt small { display: none; }
  .view { padding: 10px; }
  .hud { left: 4px; bottom: 4px; gap: 3px; }
  .hud b { font-size: 13px; }
  .hud div { min-width: 0; padding: 2px 7px; border-radius: 7px; }
  .hud small { font-size: 9px; }
  .hud .wide { display: none; }
  .stageBtns button { font-size: 13px; padding: 2px 7px; }
  .lights i { width: 20px; height: 20px; }
  .banner { font-size: 13px; }
  .overlay b { font-size: 24px; }
  .cfgBox { grid-template-columns: 1fr 1fr; }
  table { font-size: 12.5px; }
  th, td { padding: 5px 3px; }
}
/* celular apaisado: pista + barra lateral */
@media (max-height: 500px) and (orientation: landscape) {
  #topbar { display: none !important; }
  .raceView { padding: 0; }
  .stage { max-width: calc(100vw - 150px); max-height: 100vh; }
  #cv { max-height: 100vh; width: auto; height: 100vh; margin: 0 auto; }
  body.hasBar .raceView { padding: 0 150px 0 0; }
  .mobileBar { left: auto; top: 0; width: 150px; flex-direction: column; padding: 6px; border-top: 0; border-left: 1px solid var(--line); }
  .mobileBar.left { left: 0; right: auto; }
  body.hasBar.leftHand .raceView { padding: 0 0 0 150px; }
  .mobileBar > button { min-height: 44px; }
  .hud { left: 4px; bottom: 4px; gap: 3px; }
  .hud b { font-size: 13px; }
  .hud div { min-width: 0; padding: 2px 7px; border-radius: 7px; }
  .hud small { font-size: 9px; }
  .hud .wide { display: none; }
  .trigger { min-height: 0; }
  body.hasBar .toast { bottom: 12px; }
}

/* ───── v3: auto, boxes, chat, comisarios ───── */
.gauges { display: grid; gap: 6px; margin: 6px 0 10px; }
.gauges > div { display: grid; grid-template-columns: 52px 1fr 42px; align-items: center; gap: 8px; font-size: 13px; }
.gauges b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 10px; background: #2a2f38; border-radius: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #e53935, #ffb400 40%, #2ecc71); transition: width .3s; }
.bar.dmg i { background: linear-gradient(90deg, #ffb400, #e53935); width: 0; }
.pitSign { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: #ffb400; color: #111; font-weight: 900; font-size: 26px; padding: 8px 22px; border-radius: 10px; letter-spacing: 2px; box-shadow: 0 4px 20px #0008; }
.marshalHint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: #000c; padding: 5px 12px; border-radius: 8px; font-size: 12.5px; white-space: nowrap; pointer-events: none; }
.chatList { height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; font-size: 13px; background: #0b0d11; border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; }
.chatList .msg b { color: var(--accent2); }
.chatList .msg.visor b { color: #7fb3ff; }
.chatList .msg.sys { color: var(--muted); font-style: italic; }
.chatForm { flex-wrap: nowrap; }
.emojis button { padding: 2px 6px; font-size: 16px; }
.carList { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 14px; }
.carList .card { margin: 0; display: grid; gap: 6px; }
.carList .card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.carList canvas { width: 100%; height: auto; background: #1b1f27; border-radius: 8px; }
.garageTop { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 14px; margin-bottom: 12px; align-items: center; }
.garageTop canvas { width: 100%; background: #1b1f27; border-radius: 10px; }
.garage input[type=color] { height: 38px; padding: 2px; }
.stats { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0; max-width: 760px; }
.stat { display: grid; grid-template-columns: 140px 1fr 110px; gap: 8px; align-items: center; font-size: 13px; }
.stat .bar i { background: linear-gradient(90deg, #7a1d12, var(--accent), var(--accent2)); }
.stat b { text-align: right; font-variant-numeric: tabular-nums; }
.help { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.help li { margin: 4px 0; }
.help summary { cursor: pointer; color: var(--text); }
.tagVisor { font-size: 11px; background: #1d3557; border: 1px solid #3d6aa8; border-radius: 99px; padding: 1px 7px; margin-left: 6px; }
.carMini { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; border: 1px solid #0006; }
@media (max-width: 700px) { .garageTop { grid-template-columns: 1fr; } .stat { grid-template-columns: 90px 1fr 60px; } }

/* ───── modo demo ───── */
.demoRow { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.demoRow p { margin: 4px 0 0; }
.switch { position: relative; display: inline-block; width: 52px; height: 28px; flex: none; margin-top: 2px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #2a313c; border-radius: 99px; transition: .2s; cursor: pointer; border: 1px solid var(--line); }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(24px); }
.demoBanner { background: linear-gradient(90deg, #12324d, #1b1f27); border: 1px solid #2f6aa3; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }

/* ───── conectados ───── */
.onlinePill b { font-variant-numeric: tabular-nums; }
.online td { vertical-align: top; }
@media (max-width: 700px) { .onlinePill { padding: 6px 8px; } }
@media (max-width: 700px) { #btnInstall { padding: 6px 8px; } .installLbl { display: none; } }

/* ───── ayuda, tooltips y guía ───── */
.loginHelp { font-size: 14px; color: var(--muted); }
.loginHelp summary { cursor: pointer; color: var(--accent2); }
.loginHelp li { margin: 6px 0; color: var(--text); }
.tip { position: fixed; z-index: 60; max-width: 280px; background: #0b0d11f5; border: 1px solid var(--accent); color: var(--text);
  padding: 8px 11px; border-radius: 9px; font-size: 13px; line-height: 1.35; pointer-events: none; box-shadow: 0 6px 24px #000a; }
.tip b { color: var(--accent2); }
.tourSpot { position: fixed; z-index: 70; border-radius: 10px; box-shadow: 0 0 0 4px var(--accent2), 0 0 0 9999px rgba(0,0,0,.66);
  transition: all .25s ease; pointer-events: none; }
.tourSpot.center { left: 50% !important; top: 40% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(0,0,0,.66); }
.tourBox { position: fixed; z-index: 71; width: min(360px, calc(100vw - 24px)); background: var(--panel); border: 1px solid var(--accent2);
  border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 40px #000c; transition: top .25s, left .25s; }
.tourBox h3 { margin: 4px 0 6px; font-size: 17px; }
.tourBox p { margin: 6px 0; font-size: 14px; }
.tourStep { font-size: 11.5px; color: var(--accent2); letter-spacing: 1px; text-transform: uppercase; }
.tourBox .row.between { margin-top: 10px; }
@media (max-width: 700px) { .tourBox { left: 12px !important; right: 12px; bottom: calc(12px + var(--safe-b)); top: auto !important; width: auto; } }
.help h2 { margin-top: 4px; }
.helpHero { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.helpHero .card { margin: 0; }
.helpHero .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; margin-right: 8px; }
.help details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.help details summary { cursor: pointer; font-weight: 700; font-size: 15.5px; }
.help details[open] summary { margin-bottom: 8px; }
.help details p, .help details li { font-size: 14px; line-height: 1.45; }
.help table { margin: 8px 0; }
.inviteBox { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.inviteBox textarea { font-size: 13px; resize: vertical; }

/* ───── boxes: volver a la sala ───── */
.garageBack { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-color: var(--green); }
.garageBack.locked { border-color: var(--accent2); }
.garageBack p { margin: 4px 0 0; }

/* ───── niveles de bots ───── */
.botLevels { border-top: 1px solid var(--line); padding-top: 10px; margin: 6px 0 12px; }
.botLevels p { margin: 6px 0 10px; }
.botRows { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; }
.botRow { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); font-size: 14px; }
.botRow select { width: 150px; }

/* ───── copyright ───── */
.copy { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0 0; }
footer.copy { padding: 18px 16px calc(18px + var(--safe-b)); border-top: 1px solid var(--line); margin-top: 20px; }
footer.copy b { color: var(--text); }

.wallsChk { color: var(--text); align-self: end; padding-bottom: 8px; }

.kick.unplug { font-size: 11.5px; white-space: nowrap; }

/* ───── logos ───── */
.logoImg { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; box-shadow: 0 2px 10px #ff3d2e44; }
.loginLogo { background: #fff; border-radius: 12px; padding: 10px 14px; display: grid; place-items: center; }
.loginLogo img { width: 100%; max-width: 330px; height: auto; display: block; }
