:root {
  --blue: #2f6ff0;
  --blue-d: #173a8a;
  --red: #e03434;
  --red-d: #7d1717;
  --fuel: #f4d23a;
  --bg: rgba(12, 14, 20, 0.86);
  --panel: rgba(14, 17, 24, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef1f6;
  --muted: #9aa3b2;
  --ok: #37d67a;
  --warn: #ffb020;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0d12; color: var(--text); font-family: Inter, system-ui, sans-serif; }
canvas#view { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------------------------------------------------------------- HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#scorebar {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: stretch; font-family: 'Barlow Condensed', sans-serif;
  border-radius: 10px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
#scorebar .team { display: flex; align-items: center; gap: 12px; padding: 0 18px; min-width: 150px; }
#scorebar .team.blue { background: linear-gradient(90deg, var(--blue-d), var(--blue)); justify-content: flex-start; }
#scorebar .team.red { background: linear-gradient(90deg, var(--red), var(--red-d)); justify-content: flex-end; }
#scorebar .lbl { font-weight: 700; font-size: 18px; letter-spacing: 2px; opacity: .85; }
#scorebar .pts { font-weight: 800; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
#scorebar .center { background: #10131a; padding: 6px 22px 8px; text-align: center; min-width: 210px; }
#phase { font-weight: 700; font-size: 16px; letter-spacing: 2px; color: var(--muted); }
#clock { font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
#hubs { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.hubpill { font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.hubpill.on.blue { background: var(--blue); color: #fff; border-color: transparent; }
.hubpill.on.red { background: var(--red); color: #fff; border-color: transparent; }
.hubpill.warn { animation: pulse .35s infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: .35; } }

#myhub {
  position: absolute; top: 118px; left: 50%; transform: translateX(-50%);
  font-family: 'Barlow Condensed', sans-serif; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px 6px;
}
#myhubState { font-size: 22px; font-weight: 800; letter-spacing: 1.5px; }
#myhubSub { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
#myhub.active #myhubState { color: var(--ok); }
#myhub.inactive #myhubState { color: #ff6b6b; }
#myhub.warning { animation: pulse .3s infinite alternate; }

#timeline { position: absolute; top: 186px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; font-family: 'Barlow Condensed', sans-serif; }
#timeline .seg { height: 18px; font-size: 11px; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); border-radius: 3px; position: relative; overflow: hidden; background: rgba(255,255,255,.08); }
#timeline .seg.mine { background: rgba(55, 214, 122, .35); }
#timeline .seg.theirs { background: rgba(255, 90, 90, .22); }
#timeline .seg .prog { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.22); }
#timeline .seg span { position: relative; }

.panel { position: absolute; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; backdrop-filter: blur(6px); font-size: 13px; }
#robotPanel { left: 14px; bottom: 14px; width: 270px; }
#hpPanel { right: 14px; bottom: 14px; width: 220px; }
#oppPanel { right: 14px; bottom: 214px; width: 220px; }
#oppPanel { width: 290px; bottom: auto; top: 48px; }
#oppStrat { font-size: 12px; margin-top: 4px; }
.orow { display: flex; align-items: center; gap: 7px; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12.5px; }
.orow .od { flex: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow .of { font-variant-numeric: tabular-nums; font-weight: 600; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; margin-right: 4px; }
.dot.blue { background: var(--blue); }
.dot.red { background: var(--red); }
.restable { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 4px; }
.restable th { text-align: left; color: var(--muted); font-weight: 600; padding: 3px 8px; border-bottom: 1px solid var(--line); }
.restable td { padding: 3px 8px; border-bottom: 1px solid rgba(255,255,255,.05); }
.restable td:nth-child(n+4), .restable th:nth-child(n+4) { text-align: right; font-variant-numeric: tabular-nums; }
#pinWarn { position: absolute; top: 212px; left: 50%; transform: translateX(-50%); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 5px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
#pinWarn .bad { color: #ff6b6b; font-weight: 800; }
#pinWarn .warn { color: var(--warn); font-weight: 800; }
#trainBadge { position: absolute; top: 14px; left: 16px; background: rgba(155, 48, 255, .22); border: 1px solid rgba(190, 120, 255, .6); color: #ecdcff; border-radius: 6px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; }
.winner .good { color: var(--ok); font-size: 20px; }
.winner .bad { color: #ff6b6b; font-size: 20px; }
.learnbox { background: rgba(155, 48, 255, .1); border: 1px solid rgba(190, 120, 255, .35); border-radius: 8px; padding: 8px 12px; font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.learnbox .chg { color: var(--muted); margin-top: 4px; }
.learnbox .chg b { color: var(--text); }
.tuStats { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tuStats b { color: var(--text); }
.tuHead, .tuRow { display: grid; grid-template-columns: 190px 1fr 250px; gap: 12px; align-items: center; }
.tuHead { font-size: 12px; color: var(--muted); padding: 0 10px 4px; }
.tuGroup { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; color: var(--muted); margin: 8px 0 3px; letter-spacing: .5px; }
.tuRow { padding: 4px 10px; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.03); margin-bottom: 3px; cursor: pointer; }
.tuRow.focus { border-color: var(--blue); background: rgba(47,111,240,.12); }
.tuLabel { font-size: 13px; }
.tuSlider { position: relative; height: 20px; background: rgba(255,255,255,.07); border-radius: 5px; overflow: hidden; }
.tuFill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(47,111,240,.45), rgba(47,111,240,.8)); }
.tuSlider i { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; }
.tuSlider i.mDef { background: #c7cdd8; }
.tuSlider i.mShip { background: var(--fuel); }
.tuSlider i.mYou { background: var(--ok); }
.tuSlider b { position: absolute; right: 6px; top: 1px; font-size: 12.5px; }
.tuRef { font-size: 12px; text-align: right; }
.you { color: var(--ok); }
.tuMsg { min-height: 20px; font-size: 13px; color: var(--ok); margin: 8px 0 4px; }
.tuBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tuBtns .btn { grid-column: auto; }
.ptitle { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .5px; margin-bottom: 6px; }
.ptitle.small { font-size: 15px; margin-top: 8px; margin-bottom: 2px; color: var(--muted); }
.rows > div { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.rows .k { color: var(--muted); }
.rows .v { font-weight: 600; text-align: right; }
.v.ok { color: var(--ok); }
.v.warn { color: var(--warn); }
.v.bad { color: #ff6b6b; }
.fuelbar { position: relative; height: 22px; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
#fuelFill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #d9b21c, var(--fuel)); transition: width .08s linear; }
#fuelText { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #111; text-shadow: 0 0 4px rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }

#toasts { position: absolute; top: 250px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toast { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--warn); padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; animation: tin .2s ease-out; max-width: 520px; }
.toast.foul { border-left-color: #ff4d4d; }
.toast.good { border-left-color: var(--ok); }
.toast.info { border-left-color: var(--blue); }
@keyframes tin { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
#camName { position: absolute; top: 14px; right: 16px; font-size: 12px; color: var(--muted); background: var(--panel); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); }
#hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); background: var(--panel); padding: 5px 12px; border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; }
#hint b { color: var(--text); }
#bigmsg { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); font-family: 'Barlow Condensed', sans-serif; font-size: 84px; font-weight: 800; letter-spacing: 3px; text-shadow: 0 4px 30px rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; }
#bigmsg.show { opacity: 1; }

/* ---------------------------------------------------------------- MENUS */
.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(10,12,18,.55), rgba(5,6,10,.9)); z-index: 10; }
.menuBox { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; width: min(980px, 94vw); max-height: 94vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.menuBox.small { width: 360px; }
.menuBox.wide { width: min(1400px, 97vw); }
/* Auto Editor: a fixed-height box so the controls bar at the bottom never scrolls away */
.edBox { height: 94vh; display: flex; flex-direction: column; overflow: hidden; padding: 16px 20px 12px; }
#edTop { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
#edTop .heading { margin: 0; font-size: 30px; }
.edName { font-weight: 700; font-size: 16px; color: var(--muted); flex: 1; min-width: 120px; }
.edTime { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.edBar { width: 180px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
.edBar div { height: 100%; background: var(--ok); }
.edTime.bad { color: #ff6b6b; }
.edTime.bad .edBar div { background: #ff6b6b; }
#edTop .btn.small { padding: 6px 14px; }
#edTop kbd, .edBtns kbd { margin-left: 6px; font-size: 11px; }
.edMain { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 330px; gap: 14px; }
.edField { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-radius: 10px; border: 2px solid transparent; padding: 2px; }
.edField.active, #edSide.active { border-color: rgba(47,111,240,.55); }
.edField canvas { display: block; border-radius: 8px; cursor: crosshair; }
#edLegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
#edLegend i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
#edLegend i.dash { background: repeating-linear-gradient(90deg, #ffe066 0 5px, transparent 5px 8px); }
#edLegend i.thick { height: 7px; background: #e8ecf3; }
#edLegend .red { color: #e03434; margin-right: 4px; }
#edSide { display: flex; flex-direction: column; gap: 4px; overflow: auto; padding: 4px 6px 4px 4px; border-radius: 10px; border: 2px solid transparent; }
#edSide .opt { padding: 6px 10px; }
#edSide .opt .ov { font-size: 13px; }
.edSec { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-top: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.edSec:first-child { margin-top: 0; }
.edSub { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 4px 0 0 2px; opacity: .8; }
.edNote { font-size: 13px; color: var(--muted); padding: 6px 4px; line-height: 1.45; }
.edBtns { display: flex; gap: 4px; padding: 2px; border-radius: 8px; border: 1px solid transparent; }
.edBtns.focus { border-color: var(--blue); }
.edBtns .btn.small { flex: 1; font-size: 13.5px; padding: 5px 2px; letter-spacing: .5px; }
.edBtns .btn.bfocus { border-color: #fff; }
.edPt { font-size: 12.5px; padding: 4px 8px; border-radius: 7px; border: 1px solid transparent; background: rgba(255,255,255,.03); cursor: pointer; }
.edPt.sel { background: rgba(255,255,255,.1); }
.edPt.focus { border-color: var(--blue); }
.edPt b { margin-right: 4px; }
.edPt .bad { color: #ff6b6b; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.edDesc { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; min-height: 36px; }
#edHelp { flex: none; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.edKeys { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.kchip { white-space: nowrap; }
.kchip kbd { margin-right: 6px; font-weight: 700; color: var(--text); background: rgba(255,255,255,.14); padding: 2px 7px; }
.edMouse { font-size: 12px; color: var(--muted); margin-top: 5px; }
.brand { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 44px; letter-spacing: 3px; }
.logo span { color: var(--fuel); margin-left: 8px; }
.tag { color: var(--muted); font-size: 14px; }
.heading { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px; }

/* menu pages: a two-column grid; sections, cards, tiles, slots and big buttons span both */
#options > .msec, #options > .cards, #options > .tiles, #options > .slot, #options > .toggle { grid-column: span 2; }
.msec { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
.msec:first-child { margin-top: 0; }
.crumb { font-size: 15px; font-weight: 700; letter-spacing: 1px; color: var(--muted); cursor: pointer; margin-right: 10px; vertical-align: middle; }
.crumb:hover { color: var(--text); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-radius: 14px; padding: 3px; }
.cards.focus { box-shadow: 0 0 0 3px rgba(47,111,240,.55); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-radius: 16px; padding: 3px; margin-bottom: 8px; }
.tiles.focus .tile.sel { border-color: var(--fuel); box-shadow: 0 0 0 3px rgba(47,111,240,.55); }
.tile { border: 2px solid var(--line); border-radius: 14px; padding: 22px 16px 18px; text-align: center; background: rgba(255,255,255,.03); cursor: pointer; transition: transform .12s, border-color .12s, background .12s; }
.tile:hover { background: rgba(255,255,255,.06); }
.tile.sel { border-color: rgba(244, 210, 58, .6); background: rgba(244, 210, 58, .07); transform: translateY(-2px); }
.ticon { font-size: 34px; line-height: 1; color: var(--fuel); margin-bottom: 8px; }
.tname { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 34px; letter-spacing: 2px; }
.tline { color: var(--muted); font-size: 13px; margin-top: 2px; }
.opt.sub { margin-left: 22px; border-left: 3px solid rgba(255,255,255,.12); border-radius: 0 8px 8px 0; }
.toggle { text-align: center; padding: 6px; border-radius: 8px; border: 1px solid transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.toggle.focus { border-color: var(--blue); background: rgba(47,111,240,.12); color: var(--text); }
.slot { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; border: 1px solid transparent; background: rgba(255,255,255,.03); cursor: pointer; border-left: 5px solid; }
.slot.blue { border-left-color: var(--blue); }
.slot.red { border-left-color: var(--red); }
.slot.focus { border-color: var(--blue); background: rgba(47,111,240,.12); border-left-width: 5px; }
.slot.red.focus { border-left-color: var(--red); }
.slot.open { background: rgba(255,255,255,.07); }
.slot .sn { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; width: 30px; }
.slot .sbody { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.slot .arr { color: var(--muted); font-size: 12px; padding: 0 2px; }
.slot .sedit { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stag { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.1); min-width: 78px; text-align: center; }
.stag.you { background: var(--fuel); color: #111; }
.stag.defense { background: rgba(255, 107, 107, .25); }
.stag.hybrid { background: rgba(190, 120, 255, .25); }
.stag.empty { opacity: .5; }
.rcard { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.03); cursor: pointer; transition: border-color .12s, transform .12s; }
.rcard.sel { border-color: var(--fuel); background: rgba(244, 210, 58, .07); }
.rcard.focus { box-shadow: 0 0 0 3px rgba(47,111,240,.55); }
.rcard .num { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; font-weight: 800; line-height: 1; }
.rcard .nm { font-weight: 600; margin: 2px 0 2px; }
.rcard .arch { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: rgba(255,255,255,.1); padding: 2px 8px; border-radius: 99px; margin-bottom: 6px; }
.rcard .desc { font-size: 12.5px; color: var(--muted); min-height: 52px; }
.rcard table { width: 100%; font-size: 12px; margin-top: 6px; border-collapse: collapse; }
.rcard td { padding: 1px 0; }
.rcard td:last-child { text-align: right; font-weight: 600; }

#options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.opt { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.03); cursor: pointer; user-select: none; }
.opt.focus { border-color: var(--blue); background: rgba(47,111,240,.12); }
.opt .ol { color: var(--muted); font-size: 13px; }
.opt .ov { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.opt .ov .arr { color: var(--muted); font-size: 12px; }
.opt .odesc { display: none; }
.btn { grid-column: span 2; text-align: center; padding: 12px; border-radius: 10px; background: var(--fuel); color: #111; font-weight: 800; font-family: 'Barlow Condensed', sans-serif; font-size: 24px; letter-spacing: 2px; cursor: pointer; border: 3px solid transparent; }
.btn.secondary { background: rgba(255,255,255,.08); color: var(--text); font-size: 18px; }
#options .btn.half { grid-column: span 1; }
.btn.small { font-size: 15px; padding: 6px; letter-spacing: 1px; grid-column: auto; }
.btn.focus { border-color: #fff; }
.optdesc { grid-column: span 2; color: var(--muted); font-size: 12.5px; min-height: 18px; padding: 0 4px; }
.menuFoot { margin-top: 12px; font-size: 13px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.list.horizontal { flex-direction: row; justify-content: center; margin-top: 16px; }
.list .btn { grid-column: auto; }

.resgrid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; margin-bottom: 10px; }
.rescol { padding: 12px 16px; border-radius: 10px; }
.rescol.blue { background: linear-gradient(135deg, var(--blue-d), rgba(47,111,240,.35)); }
.rescol.red { background: linear-gradient(225deg, var(--red-d), rgba(224,52,52,.35)); text-align: right; }
.rescol .big { font-family: 'Barlow Condensed', sans-serif; font-size: 64px; font-weight: 800; line-height: 1; }
.rescol table { width: 100%; font-size: 13px; margin-top: 6px; }
.rescol.red td:first-child { text-align: left; }
.vs { display: flex; align-items: center; padding: 0 16px; font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 800; color: var(--muted); }
.winner { text-align: center; font-family: 'Barlow Condensed', sans-serif; font-size: 30px; font-weight: 800; letter-spacing: 2px; margin: 6px 0 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.stat { background: rgba(255,255,255,.04); border-radius: 8px; padding: 8px 10px; }
.stat .sv { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 800; }
.stat .sk { color: var(--muted); font-size: 12px; }
.foullist { font-size: 13px; color: var(--muted); max-height: 110px; overflow: auto; }

.ctable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctable th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ctable td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.05); }
.ctable td:first-child { font-weight: 600; }
kbd { background: rgba(255,255,255,.1); border-radius: 4px; padding: 1px 6px; font-family: inherit; font-size: 12px; }
.loadmsg { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; letter-spacing: 2px; color: var(--muted); }

@media (max-width: 760px) {
  .cards, .tiles { grid-template-columns: 1fr; }
  #options { grid-template-columns: 1fr; }
  #options > .msec, #options > .cards, #options > .tiles, #options > .slot, #options > .toggle { grid-column: span 1; }
  .opt.sub { margin-left: 10px; }
  .btn, .optdesc { grid-column: span 1; }
  #hpPanel, #oppPanel { display: none; }
  .tuHead, .tuRow { grid-template-columns: 1fr; gap: 3px; }
  .tuBtns { grid-template-columns: 1fr; }
  .edMain { grid-template-columns: 1fr; }
}
