/* Dust Duel - page, stage and menus. Logical units: the #ui layer is W x H and scaled to fit by js/main.js. */
:root { --ink: #101114; --panel: rgba(16, 17, 21, 0.88); --or: #ff7a1a; --sand: #e8c38a; --yel: #ffd400; --wh: #f4f1ea; --mute: #9aa3ad; --gr: #4ade80; --red: #ff5a4a;
  --head: Impact, "Arial Black", "Trebuchet MS", sans-serif; --body: "Trebuchet MS", Verdana, Arial, sans-serif; }
html, body { margin: 0; height: 100%; background: #07080a; overflow: hidden; }
body { display: flex; align-items: center; justify-content: center; font-family: var(--body); color: var(--wh); }
#stage { position: relative; overflow: hidden; background: #111; }
#gl, #hud { position: absolute; left: 0; top: 0; display: block; }
#hud { pointer-events: none; touch-action: none; }
#ui { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
#home { display: none; position: fixed; left: 8px; bottom: 6px; z-index: 3; font: bold 12px var(--body); color: var(--or); text-decoration: none;
  background: rgba(10, 11, 14, 0.85); border: 2px solid var(--or); border-radius: 8px; padding: 2px 8px; }
#home:hover { background: var(--or); color: #111; }
noscript { color: #fff; }

/* mobile mode (?m=1) */
html.m, html.m body { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
html.m body { 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); }
html.m #home { display: none !important; }
html.m * { -webkit-touch-callout: none; }
#mrot { display: none; }
@media (orientation: portrait) { html.m #mrot { display: flex; position: fixed; inset: 0; z-index: 9; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: #0d0e11; color: var(--or); font: bold 22px var(--body); text-align: center; padding: 24px; } }
#mrot svg { width: 96px; height: 96px; animation: mrot 2.4s ease-in-out infinite; }
#mrot small { font-size: 16px; color: var(--wh); font-weight: normal; }
@keyframes mrot { 0%, 25% { transform: rotate(0); } 50%, 75% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }

/* ---------- screens ---------- */
.scr { position: absolute; inset: 0; box-sizing: border-box; padding: 14px 18px; display: flex; flex-direction: column; font-size: 15px; }
.scr.menu-scr { background: linear-gradient(90deg, rgba(8, 9, 12, 0.9), rgba(8, 9, 12, 0.72)); }
.scr.dim { background: rgba(8, 9, 12, 0.74); }
.scr.title-scr { background: linear-gradient(90deg, rgba(8, 9, 12, 0.78), rgba(8, 9, 12, 0.15) 55%, rgba(8, 9, 12, 0)); }
.scr.results-scr { background: linear-gradient(0deg, rgba(8, 9, 12, 0.86), rgba(8, 9, 12, 0.55)); }
h2, h3, h4 { font-family: var(--head); font-weight: normal; letter-spacing: 0.5px; margin: 0; font-style: italic; }
h2 { font-size: 28px; } h3 { font-size: 22px; margin-bottom: 4px; } h4 { font-size: 15px; color: var(--sand); margin: 0 0 6px; letter-spacing: 1px; }
h4.more { margin-top: 10px; color: var(--mute); }
p { margin: 6px 0; line-height: 1.32; }
.small { font-size: 12px; color: var(--mute); } .lead { font-size: 17px; } .tip { font-size: 12px; color: #cfd6e0; font-style: italic; }
.gold { color: var(--yel) !important; } .dim { color: var(--mute); }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 0; }
.center.wide { justify-content: flex-start; }
.scroll { overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--or) transparent; touch-action: pan-y; }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.top h2 { flex: 1; text-align: center; font-size: 24px; }
.topr { display: flex; align-items: center; gap: 8px; }

/* buttons */
.btn { font-family: var(--head); font-size: 18px; letter-spacing: 0.5px; color: #fff; border: none; cursor: pointer; padding: 8px 18px; min-height: 40px;
  background: linear-gradient(180deg, #ff9442, #e25a06); border-radius: 4px; transform: skewX(-10deg); box-shadow: 0 3px 0 #7a2c00, 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s, filter 0.08s; font-style: italic; }
.btn:hover:not(:disabled) { filter: brightness(1.12); transform: skewX(-10deg) translateY(-1px); }
.btn:active:not(:disabled) { transform: skewX(-10deg) translateY(2px); box-shadow: 0 1px 0 #7a2c00; }
.btn:disabled { filter: grayscale(0.9) brightness(0.6); cursor: default; }
.btn.alt { background: linear-gradient(180deg, #4a5160, #2c313b); box-shadow: 0 3px 0 #15181d, 0 4px 12px rgba(0, 0, 0, 0.35); }
.btn.ghost { background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.btn.big { font-size: 24px; padding: 10px 26px; min-height: 50px; }
.btn.small { font-size: 18px; padding: 2px 12px; min-height: 32px; min-width: 40px; }
.btn.icon { min-width: 40px; padding: 4px 8px; font-style: normal; transform: none; font-family: var(--body); }
.btn.icon:hover { transform: none; }
.btn.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 3px 0 #7a2c00, 0 0 0 4px rgba(255, 212, 0, 0.55); } }
.btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.chip { font: bold 13px var(--body); color: #dfe4ea; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 18px; padding: 5px 12px; cursor: pointer; margin: 2px; min-height: 32px; }
.chip.on { background: var(--or); border-color: #ffbe8a; color: #fff; }
.chips, .tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.tabs { margin-bottom: 8px; }

/* title */
.title-wrap { position: relative; flex: 1; display: flex; flex-direction: column; }
.logo { font-family: var(--head); font-style: italic; font-size: 78px; line-height: 0.9; color: #fff; text-shadow: 4px 4px 0 #000, 0 0 30px rgba(255, 122, 26, 0.45); transform: skewX(-8deg); margin: 10px 0 0 8px; }
.logo b { font-weight: normal; color: var(--or); margin-left: 12px; }
.logo small { display: block; font-size: 14px; letter-spacing: 3px; color: var(--sand); text-shadow: 2px 2px 0 #000; margin-top: 8px; font-family: var(--body); font-weight: bold; font-style: normal; }
.menu { display: flex; flex-direction: column; gap: 10px; width: 280px; margin: 26px 0 0 14px; }
.menu .btn { text-align: left; }
.row2 { display: flex; gap: 8px; } .row2 .btn { flex: 1; font-size: 15px; padding: 8px 6px; text-align: center; }
.title-foot { position: absolute; left: 130px; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: #dfe4ea; }
.title-foot > span:first-child { flex: 1; text-shadow: 1px 1px 0 #000; }
.loading h3 { font-size: 30px; margin-top: 14px; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, 0.15); border-top-color: var(--or); animation: spin 0.8s linear infinite; margin: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* setup screens */
.cols3 { display: grid; grid-template-columns: 1.05fr 1fr 0.95fr; gap: 12px; flex: 1; min-height: 0; }
.cols2 { display: flex; gap: 14px; }
.col { background: var(--panel); border-radius: 10px; padding: 10px; min-height: 0; display: flex; flex-direction: column; }
.col.grow { flex: 1; } .col.side { align-items: stretch; gap: 6px; text-align: center; overflow-y: auto; scrollbar-width: thin; touch-action: pan-y; }
.col.side > * { flex: none; }
.col.side > .showcase { flex: 0 1 auto; min-height: 96px; } /* gives way so the side column fits without scrolling */
.list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.list > * { flex: none; }
.list.short { max-height: 190px; flex: none; }
.trkcard, .carcard { display: flex; gap: 8px; align-items: center; text-align: left; background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 5px 8px; color: var(--wh); cursor: pointer; font: 13px var(--body); min-height: 44px; }
.trkcard canvas { flex: none; border-radius: 4px; background: rgba(0, 0, 0, 0.35); }
.trkcard > span { display: flex; flex-direction: column; gap: 2px; }
.trkcard.on, .carcard.on { border-color: var(--or); background: rgba(255, 122, 26, 0.18); }
.carcard { flex-direction: column; align-items: stretch; gap: 2px; }
.carcard b { font-size: 14px; }
.stat { display: flex; align-items: center; gap: 6px; font-size: 11px; } .stat em { width: 42px; color: var(--mute); font-style: normal; }
.bar { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; display: block; } .bar i { display: block; height: 100%; border-radius: 3px; }
.carname { color: var(--or); font-size: 22px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; text-align: left; font-size: 12px; background: rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 6px 8px; }
.specs div { display: flex; flex-direction: column; } .specs span { color: var(--mute); font-size: 11px; } .specs b { font-size: 13px; }
.paints { display: flex; justify-content: center; gap: 6px; min-height: 30px; align-items: center; }
.paint { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.3); cursor: pointer; }
.paint.on { border-color: #fff; box-shadow: 0 0 0 2px var(--or); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.stepper span { width: 46px; text-align: right; color: var(--mute); } .stepper b { font: 20px var(--head); width: 30px; }
.card { background: var(--panel); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.card.box { text-align: center; padding: 18px 26px; max-width: 560px; }
.settings { display: flex; flex-direction: column; gap: 8px; min-width: 460px; max-height: 100%; box-sizing: border-box; overflow-y: auto; touch-action: pan-y; scrollbar-width: thin; }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.tog input[type=range] { width: 200px; accent-color: var(--or); }
.pausebox { display: flex; flex-direction: column; gap: 9px; min-width: 300px; } .pausebox h2 { margin-bottom: 6px; }
.help { flex: 1; } .help .col { padding: 12px 16px; text-align: left; }

/* results */
h2.result { font-size: 38px; margin: 4px 0 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td { padding: 3px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); white-space: nowrap; }
.tbl td.nm { width: 99%; white-space: normal; text-align: left; } .tbl td.car { color: var(--mute); font-size: 12px; } .tbl td.r { text-align: right; } .tbl td.pos { font-family: var(--head); font-size: 17px; color: var(--yel); width: 24px; }
.tbl td.sw i { display: inline-block; width: 6px; height: 14px; vertical-align: middle; border-radius: 2px; }
.tbl tr.me td { background: rgba(255, 122, 26, 0.3); font-weight: bold; }
.tblwrap { width: min(700px, 100%); background: var(--panel); border-radius: 10px; padding: 6px 10px; text-align: left; flex: 0 1 auto; }
.nat { font-size: 10px; color: var(--mute); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 3px; padding: 0 3px; margin-left: 5px; vertical-align: middle; }
.nat:empty { display: none; }

/* the 3D car preview box (filled by the renderer) and the panels beside it */
.col.side.clear { background: none; padding: 0; gap: 6px; }
.col.side.clear > .panel { background: var(--panel); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.showcase { flex: none; height: 150px; border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12); }
.showcase canvas { display: block; width: 100%; height: 100%; border-radius: 10px; }
.garage .showcase { height: 190px; }
html.m .showcase { height: 96px; } html.m .garage .showcase { height: 110px; }
/* shared career bits */
.btn small { display: block; font: bold 11px var(--body); letter-spacing: 0.5px; opacity: 0.85; font-style: normal; margin-top: 1px; }
.cash { font: 18px var(--head); font-style: italic; color: var(--yel); background: rgba(0, 0, 0, 0.5); border: 2px solid rgba(255, 212, 0, 0.4); border-radius: 6px; padding: 3px 10px; white-space: nowrap; }
.flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); flex: none; }
.ico { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.cup.c1 { color: #ffd400; } .cup.c2 { color: #cfd6e0; } .cup.c3 { color: #d08a4a; }
.chip.locked { opacity: 0.55; cursor: default; }
.lockline { text-align: center; margin-top: 10px; }
.warn { color: var(--red); font-size: 13px; }
.bad { color: var(--red); }
.tag { display: inline-block; font: bold 10px var(--body); letter-spacing: 0.5px; color: #111; background: var(--sand); border-radius: 3px; padding: 0 4px; margin-top: 2px; width: max-content; }
.tag.f { background: #22d3ee; }
.sw { display: inline-block; width: 12px; height: 18px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
em.up { font-style: normal; color: var(--gr); font-size: 11px; }

/* career map */
.cmap { flex: 1; display: flex; align-items: stretch; gap: 4px; min-height: 0; }
.cmap .arrow { align-self: center; color: var(--or); font-style: normal; font-size: 16px; flex: none; }
.tier { flex: 1; min-width: 0; background: var(--panel); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 5px; text-align: center; }
.tier h4 { margin: 0; } .tier .cname { font: 17px var(--head); font-style: italic; line-height: 1.05; }
.tier.live, .tier.new { border-color: var(--or); box-shadow: 0 0 18px rgba(255, 122, 26, 0.25); }
.tier.retry { border-color: var(--red); }
.tier.locked { opacity: 0.55; }
.tier.locked canvas { filter: grayscale(1) brightness(0.7); }
.tier .btn { margin-top: auto; font-size: 16px; }
.rounds4 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; justify-items: center; margin: 4px 0; }
.rd { position: relative; display: block; border-radius: 5px; background: rgba(0, 0, 0, 0.35); border: 2px solid transparent; }
.rd canvas { display: block; }
.rd em { position: absolute; right: 2px; bottom: 0; font: 13px var(--head); color: #fff; text-shadow: 1px 1px 0 #000; font-style: normal; }
.rd.next { border-color: var(--or); } .rd.pod em { color: var(--yel); } .rd.done em { color: var(--mute); }
.tier .cars { min-height: 28px; }
.stat0 { font-size: 13px; margin: 2px 0; }
.carlist { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: #cfd6e0; } .carlist i { font-style: normal; } .carlist i.own { color: var(--gr); } .carlist i.f { color: #7dd3fc; }
.tier.locked .carlist { color: var(--mute); }
html.m .carlist { display: none; }
.cfoot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #dfe4ea; }
.cfoot > span { flex: 1; } .cfoot b { color: var(--yel); }

/* new career, regions */
.newc { max-width: 680px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lvls, .regs { display: flex; gap: 10px; }
.lvl, .regcard { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 8px; cursor: pointer; text-align: center; color: var(--wh);
  background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(255, 255, 255, 0.15); font: 13px var(--body); min-height: 44px; }
.lvl b, .regcard b { font: 20px var(--head); font-style: italic; }
.lvl.on { border-color: var(--or); background: rgba(255, 122, 26, 0.2); }
.regs { width: min(760px, 100%); } .regcard { padding: 16px; gap: 8px; } .regcard b { font-size: 30px; color: var(--or); }
.regcard:hover { border-color: var(--or); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }

/* championship hub */
.cols3.champ { grid-template-columns: 1fr 1.25fr 0.95fr; }
.rdrow { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 2px solid transparent; }
.rdrow canvas { flex: none; border-radius: 4px; background: rgba(0, 0, 0, 0.35); }
.rdrow > span { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 13px; min-width: 0; }
.rdrow > em { font: 16px var(--head); font-style: normal; color: var(--mute); }
.rdrow.next { border-color: var(--or); background: rgba(255, 122, 26, 0.12); } .rdrow.next > em { color: var(--or); font-size: 13px; }
.pips { display: flex; flex-direction: column; gap: 3px; font-size: 11px; background: rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 6px 8px; }
.pips span { display: flex; align-items: center; gap: 3px; } .pips em { font-style: normal; color: var(--mute); width: 52px; text-align: left; }
.pips i, .lv i { display: inline-block; width: 18px; height: 7px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.pips i.on, .lv i.on { background: var(--or); }
.tbl.st td { padding: 2px 5px; }
.tbl td.mv { width: 10px; font-size: 9px; padding: 0; } .tbl td.upm { color: var(--gr); } .tbl td.dn { color: var(--red); }
.tbl td.fl { width: 18px; padding-right: 0; } .tbl td.pts { font: 16px var(--head); color: #fff; }
.tbl td.car { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* garage */
.cols3.garage { grid-template-columns: 1fr 1.05fr 0.95fr; }
.badge { align-self: flex-start; font: bold 10px var(--body); letter-spacing: 0.5px; border-radius: 3px; padding: 1px 5px; margin-top: 2px; background: rgba(255, 255, 255, 0.15); }
.badge.loan { background: #2f6fd6; } .badge.owned { background: #2f7d4f; } .badge.shop { color: var(--yel); background: rgba(0, 0, 0, 0.45); }
.price { font: 34px var(--head); font-style: italic; color: var(--yel); margin: 6px 0; }
.upgs { display: flex; flex-direction: column; gap: 6px; }
.upg { display: flex; align-items: center; gap: 6px; text-align: left; background: rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 5px 7px; }
.upg > span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.upg .small { font-size: 10.5px; } .upg .btn.small { font-size: 14px; padding: 2px 8px; white-space: nowrap; }
.upgs.off { opacity: 0.5; } .col.side h4.more { margin-top: 8px; }
.max { font: 16px var(--head); color: var(--gr); font-style: normal; padding: 0 8px; }

/* podium, results */
.scr.podium-scr { background: linear-gradient(180deg, rgba(8, 9, 12, 0.7), rgba(8, 9, 12, 0) 26%, rgba(8, 9, 12, 0) 62%, rgba(8, 9, 12, 0.8)); }
.podtop { text-align: center; } .podtop h2 { font-size: 34px; color: var(--yel); text-shadow: 3px 3px 0 #000; } .podtop .lead { text-shadow: 2px 2px 0 #000; margin: 2px; }
.plates { margin-top: auto; display: flex; justify-content: center; align-items: flex-end; gap: 10px; }
.plate { width: 210px; background: var(--panel); border-radius: 8px; border-top: 4px solid #cfd6e0; padding: 6px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; text-align: left; }
.plate em { font: 26px var(--head); font-style: italic; color: #cfd6e0; } .plate b { font-size: 15px; flex: 1; min-width: 0; } .plate .small { width: 100%; }
.plate.p1 { border-top-color: var(--yel); padding-bottom: 14px; } .plate.p1 em { color: var(--yel); } .plate.p3 { border-top-color: #d08a4a; } .plate.p3 em { color: #d08a4a; }
.plate.me { background: rgba(255, 122, 26, 0.35); }
.podbtn { display: flex; justify-content: flex-end; margin-top: 10px; }
.resc { width: min(920px, 100%); min-height: 0; flex: 0 1 auto; } .resc .col { flex: 1; min-width: 0; text-align: left; }
.endtext { max-width: 720px; }
.ghostbox { display: flex; flex-direction: column; gap: 2px; background: rgba(34, 211, 238, 0.12); border: 2px solid rgba(34, 211, 238, 0.4); border-radius: 8px; padding: 6px 8px; }
.ghostbox b { color: #7dd3fc; font: 15px var(--head); font-style: italic; }

/* phones: bigger targets */
/* 50 logical px stay at 44 CSS px or more down to a 375 px tall phone (the stage is 420 logical px tall) */
html.m .btn { min-height: 50px; } html.m .btn.small { min-height: 50px; min-width: 50px; }
html.m .chip { min-height: 50px; padding: 6px 14px; }
html.m .trkcard, html.m .carcard { min-height: 52px; }
html.m .paint { width: 50px; height: 50px; flex: none; } html.m .paints { flex-wrap: wrap; }
html.m .btn.icon { min-width: 50px; }
html.m .logo { font-size: 64px; }
html.m .settings { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; min-width: 0; width: 100%; max-width: none; padding: 10px 16px; }
html.m .settings > p, html.m .settings > .btn, html.m .settings .cams { grid-column: 1 / -1; } html.m .settings > p { display: none; }
html.m .settings .tog input[type=range] { width: 150px; height: 50px; margin: 0; } html.m .settings .chip { padding: 6px 10px; }
html.m .scr { padding-top: 10px; }
html.m .tier { padding: 6px; gap: 3px; } html.m .tier .cname { font-size: 15px; } html.m .tier .cars { display: none; } html.m .stat0 { font-size: 12px; }
html.m .tier .btn { font-size: 15px; padding: 6px 8px; }
html.m .cfoot { margin-top: 4px; } html.m .plate { width: 190px; } html.m .podtop h2 { font-size: 28px; }
html.m .regcard { padding: 10px; } html.m .regcard b { font-size: 24px; }
html.m .lvl { padding: 8px; }
html.m .results-scr h2.result { font-size: 30px; margin: 0; } html.m .results-scr .lead { font-size: 15px; margin: 2px 0; } html.m .results-scr .btns { margin-top: 4px; }
html.m .champ .pips { display: none; } html.m .resc td.car { display: none; } html.m .champ .panel .small { font-size: 11px; }

/* ?debug=1 overlay */
#dbg { position: fixed; left: 6px; bottom: 34px; z-index: 20; font: 12px/1.35 monospace; color: #e5e7eb; background: rgba(0, 0, 0, 0.72); padding: 6px 8px; border-radius: 6px; max-width: 300px; }
#dbg .ok { color: #4ade80; } #dbg .bad { color: #ff5a4a; } #dbg label { display: block; margin: 2px 0; } #dbg select, #dbg input[type=number] { max-width: 190px; }
#dbg summary { cursor: pointer; color: var(--or); }
