/* BoardRaid's warm charcoal and gold, with Minecraft's raised rims and inset slots. */
.mc-panel { background: #1b1812; border: 2px solid #756a55; box-shadow: inset 2px 2px #b1a18433, inset -2px -2px #0009, 0 4px #0008; }
.mc-button { font: 14px var(--font-display); color: var(--title); background: #38352e; border: 2px solid #827767; box-shadow: inset 2px 2px #ffffff25, inset -2px -2px #0009, 0 2px #000; min-height: 40px; padding: 8px 14px; cursor: pointer; text-shadow: 1px 2px #000; }
.mc-button:hover { border-color: var(--gold); background: #4c4330; }
.mc-button:active { transform: translateY(1px); box-shadow: inset 2px 2px #0006; }
.mc-button:is([aria-pressed="true"], [aria-selected="true"]) { color: var(--gold); background: #493c21; border-color: var(--gold-2); }
.mc-button:disabled { opacity: .35; cursor: default; }
.br-text-button { color: var(--gold); background: transparent; border: 0; padding: 6px 4px; font: 12px var(--font-display); cursor: pointer; }
.br-text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
:is(.mc-button,.br-text-button,.rp-cell,.rp-event,.br-task-window):focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.statement-band .statement + .statement { font-size: 16px; line-height: 1.9; color: var(--dim); margin-top: 24px; }
.feature-row:has([data-game-demo]) { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 44px; }
.feature-row:has([data-game-demo]) .feature-title { font-size: clamp(27px, 3.1vw, 42px); line-height: 1.45; }
.feature-row:has([data-game-demo]) .feature-title > span { display: block; }
.feature-row:has([data-game-demo]) .feature-sub, .feature-row:has([data-game-demo]) .bullets { font-size: 16px; }
[data-game-demo] { min-width: 0; }
.br-showcase--ready > .boardcard { display: none; }
.br-task-art { display: inline-grid; place-items: center; width: 100%; height: 100%; position: relative; image-rendering: pixelated; vertical-align: middle; }
.br-task-art > img { width: 85%; height: 85%; object-fit: contain; filter: drop-shadow(2px 3px 0 #0007); image-rendering: pixelated; }
.br-task-art.is-vanilla { background: url('/assets/tasks/adv_frame_goal.png') center / 94% 94% no-repeat; }
.br-task-art.is-vanilla > img { width: 67%; height: 67%; }
.br-task-art.is-missing::before { content: '?'; font: 20px var(--font-display); opacity: .5; }
.br-task-art__badge { position: absolute; top: 0; left: 0; font-size: 13px; color: #fff; text-shadow: 1px 1px #000; line-height: 1; }
.br-task-art__badge--b { left: auto; right: 0; color: #f77669; }
.br-task-art__count { position: absolute; bottom: 1px; right: 2px; font: 13px var(--font-display); color: #fff; text-shadow: 2px 2px #222; }
.br-windowbar { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 2px solid #080806; background: #252015; color: var(--gold); font: 12px var(--font-display); }
.br-status-light { width: 7px; height: 7px; background: #ffd15c; box-shadow: 0 0 9px #ffd15c55; }
.br-demo-label { margin-left: auto; font-size: 10px; color: #aaa18d; border: 1px solid #5d513a; padding: 3px 5px; }
.br-demo { width: 100%; transform: rotate(-.4deg); }
.br-demo__screen { position: relative; height: 510px; background: #10170f; overflow: hidden; isolation: isolate; }
.br-demo__landscape { position: absolute; inset: -20px; z-index: -2; background: linear-gradient(#10150c66,#070b0788), url('/assets/brand/hero.jpg') 54% 45% / cover; image-rendering: pixelated; animation: br-world-camera 16s ease-in-out infinite alternate paused; }
.br-demo.is-motion-active:not(.is-paused) .br-demo__landscape { animation-play-state: running; }
.br-demo__screen::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0004,transparent 25%,#0009); pointer-events: none; }
.br-demo__status { position: absolute; left: 16px; top: 16px; margin: 0; padding: 8px 12px; background: #315529; border: 1px solid #88a56d; color: #fff; font: 13px var(--font-display); text-shadow: 1px 1px #000; max-width: calc(100% - 32px); }
.br-demo[data-stage="draft"][data-picker="b"] .br-demo__status { background: #63372a; border-color: #b97761; }
.br-demo__draft { position: absolute; left: 50%; top: 76px; width: 70%; transform: translateX(-50%); }
.br-demo__offer { position: relative; display: flex; justify-content: space-around; gap: 24px; background: #b6b4aa; border: 4px solid #28271f; box-shadow: inset 3px 3px #fff9, inset -3px -3px #555; padding: 10px 24px; }
.br-demo__option { display: block; height: 55px; width: 55px; background: #77786e; box-shadow: inset 2px 2px #494a42, inset -2px -2px #e1dfcb; }
.br-demo__option.is-selected { outline: 2px solid #fff; outline-offset: 1px; background: #878c75; }
.br-demo__cursor { position: absolute; color: #d6ffff; left: 30%; top: 46px; text-shadow: 2px 0 #316c6a,-2px 0 #316c6a,0 2px #316c6a; font-size: 26px; transform: translate(60px,-16px) rotate(-40deg); transition: transform .24s ease, opacity .16s; }
.br-demo[data-pointed="true"] .br-demo__cursor { transform: translate(-12px,0) rotate(-40deg); }
.br-demo[data-pressed="true"] .br-demo__cursor { transform: translate(-12px,0) rotate(-40deg) scale(.85); }
.br-demo__tooltip { background: #190a25ed; color: #fff; border: 2px solid #59258a; box-shadow: 0 0 0 2px #09030e; width: max-content; max-width: 100%; font: 12px/1.5 var(--font-display); padding: 5px 9px; position: relative; margin: 8px auto 0; }
.br-demo__board { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; width: 218px; padding: 9px; position: absolute; left: 50%; top: 224px; transform: translateX(-50%); border: 3px solid #2a2a23; background: #aaa99f; box-shadow: inset 3px 3px #ecebdc, inset -3px -3px #66665b, 4px 5px #0007; transition: transform .35s, opacity .35s; }
.br-demo-cell { display: grid; aspect-ratio: 1; min-width: 0; background: #68685f; box-shadow: inset 2px 2px #404039, inset -2px -2px #d0d0bb; }
.br-demo-cell > .br-task-art { opacity: 0; transform: scale(.75); transition: opacity .15s, transform .2s; }
.br-demo-cell.is-revealed > .br-task-art { opacity: 1; transform: none; }
.br-demo-cell.is-next { outline: 2px solid var(--gold); outline-offset: -2px; }
.br-demo-cell.is-a { background: #3d852d; }
.br-demo-cell.is-b { background: #a44133; }
.br-demo-cell.is-both { background: #978a30; }
.br-demo__race { display: none; position: absolute; inset: 0; pointer-events: none; }
.br-demo__crosshair { position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%); font: 36px monospace; color: #fff9; text-shadow: 1px 1px #000; }
.br-demo__toast { position: absolute; right: 12px; top: 65px; width: 190px; display: flex; align-items: center; gap: 8px; color: #e6f6d5; background: #192511eb; border: 2px solid #657245; padding: 8px; font: 11px/1.7 var(--font-display); }
.br-demo__toast > .br-task-art { width: 32px; height: 32px; flex: 0 0 32px; }
.br-demo__hotbar { position: absolute; bottom: 58px; left: 12%; right: 12%; display: grid; grid-template-columns: repeat(9,1fr); background: #37372ce6; border: 2px solid #bbb99f; padding: 2px; }
.br-demo__hotbar > span { aspect-ratio: 1; background: #78796b8c; box-shadow: inset 2px 2px #0005; }
.br-demo__hotbar > span:first-child { outline: 2px solid #f2ebc6; }
.br-demo__hearts { position: absolute; bottom: 100px; left: 12%; font-size: 13px; letter-spacing: 0; color: #f45440; text-shadow: 1px 1px #310000; }
.br-demo__victory { display: none; position: absolute; top: 38%; left: 0; right: 0; padding: 22px 12px; text-align: center; background: #101008e6; border-block: 1px solid #eac65860; }
.br-demo__victory span { display: block; color: #cfbf8e; font: 11px var(--font-display); }
.br-demo__victory strong { display: block; margin: 12px 0; font: 35px var(--font-display); color: var(--gold); text-shadow: 3px 3px #453411; }
.br-demo__score { position: absolute; bottom: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #0b0e0be6; font: 12px var(--font-display); border-top: 1px solid #c2b47755; }
.br-demo__clock { color: var(--title); font-size: 15px; }
.br-demo[data-stage="race"] .br-demo__board, .br-demo[data-stage="win"] .br-demo__board { transform: translateX(0); left: 14px; top: 128px; width: 165px; padding: 5px; gap: 2px; background: #1e211cd9; border-color: #ccc9b5; }
.br-demo:not([data-stage="draft"]) .br-demo__draft { display: none; }
.br-demo[data-stage="race"] .br-demo__race, .br-demo[data-stage="win"] .br-demo__race { display: block; }
.br-demo[data-stage="win"] .br-demo__victory { display: block; }
.br-demo[data-stage="win"] .br-demo__board { opacity: .35; }
.br-demo__stages { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding: 10px; border-top: 2px solid #080806; }
.br-demo__footer { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 0 12px 10px; }
.br-demo__footer p { flex: 1 1 100%; margin: 0; font-size: 11px; color: var(--dim); }
@keyframes br-world-camera { from { transform: scale(1.06) translate(-6px,0); } to { transform: scale(1.12) translate(9px,4px); } }
.br-modes { padding-block: 58px 90px; border-block: 1px solid var(--line); }
.br-section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.br-section-head h2 { font: 28px var(--font-display); color: var(--title); margin: 0; }
.br-section-head p { margin: 10px 0 0; color: var(--dim); }
.br-mode-queues { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.br-mode { min-width: 0; position: relative; padding: 26px; overflow: hidden; transition: border-color .2s, background .2s; }
.br-mode > h3 { margin: 0 0 12px; font: 22px var(--font-display); color: var(--gold); }
.br-mode__description { color: var(--text); font-size: 15px; line-height: 1.8; min-height: 54px; }
.br-mode__meta { font: 11px var(--font-display); color: var(--dim); padding-block: 14px; border-block: 1px solid var(--line-2); }
.br-mode__preview { display: grid; grid-template-columns: 140px minmax(0,1fr); align-items: center; gap: 25px; margin: 24px 0; }
.br-mini-board { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; background: #0c0b08; border: 2px solid #7e7563; padding: 4px; box-shadow: 3px 3px #0008; }
.br-mini-board .br-task-art__count { font-size: 8px; }
.br-mini-board .br-task-art__badge { font-size: 9px; }
.br-mode__note { font: 12px/1.8 var(--font-display); color: var(--dim); }
.br-mode.is-previewing { border-color: var(--gold-2); background: #292318; }
.br-mode.is-previewing .br-mode__note { color: var(--gold); }
.br-mode__action { margin-top: 8px; }
.br-lobbies { margin-top: 24px; padding: 22px; }
.br-lobbies > h3 { margin: 0; color: var(--title); font: 23px var(--font-display); }
.br-lobbies > p { color: var(--dim); font-size: 14px; }
.br-lobby-grid { display: flex; gap: 16px; margin-top: 22px; }
.br-lobby-grid .br-mode { flex: 1 1 0; transition: flex-grow .35s ease, border-color .2s, background .2s; text-align: center; padding: 22px 16px; }
.br-lobby-grid .br-mode.is-previewing { flex-grow: 1.45; }
.br-lobby-grid .br-mode > h3 { font-size: 19px; }
.br-lobby-grid .br-mode__preview { display: flex; flex-direction: column; gap: 12px; }
.br-lobby-grid .br-mini-board { width: 136px; }
.br-lobby-grid .br-mode__description { min-height: 70px; font-size: 14px; }
.br-task-marquee { margin: 28px 0 36px; border-block: 1px solid var(--line-2); background: #15130e; padding-top: 12px; }
.br-task-window { position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; min-height: 76px; }
.br-task-window:active { cursor: grabbing; }
.br-task-track { display: flex; width: max-content; will-change: transform; }
.br-task-reel-item { display: block; flex: 0 0 68px; width: 68px; height: 68px; padding: 9px; }
.br-task-marker { position: absolute; left: 50%; top: 0; bottom: 8px; width: 68px; transform: translateX(-50%); border: 2px solid var(--gold); box-shadow: 0 0 14px #ffd15c20; pointer-events: none; }
.br-marquee-controls { display: flex; justify-content: center; gap: 18px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); min-height: 58px; }
.br-marquee-name { flex: 1; margin: 0; font: 14px/1.5 var(--font-display); color: var(--title); }
.br-install { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 36px; align-items: start; padding-block: 36px 80px; }
.br-install-nav { position: sticky; top: 88px; padding: 18px; min-width: 0; }
.br-install-nav > p { font: 14px var(--font-display); color: var(--title); margin: 0 0 18px; }
.br-install-nav a { display: flex; gap: 10px; align-items: center; padding: 12px 8px; margin-bottom: 7px; background: #29271f; border: 1px solid #5b5344; box-shadow: inset 1px 1px #ffffff18,inset -1px -1px #0008; text-decoration: none; font: 12px/1.5 var(--font-display); }
.br-install-nav a b { display: grid; place-items: center; width: 26px; height: 26px; background: #908a79; color: #161510; border: 2px solid #c2bba7; flex: 0 0 26px; }
.br-install-nav a[aria-current] { color: var(--gold); border-color: var(--gold-2); background: #42371f; }
.br-install-nav small { display: block; padding-top: 13px; color: var(--dim); font-size: 11px; line-height: 1.8; }
.br-install__content { min-width: 0; }
body[data-page="download"] .br-install__content > .section { margin-bottom: 22px; padding: 28px; background: #1c1913; border: 2px solid #746a57; box-shadow: inset 2px 2px #d0bd8d18,inset -2px -2px #0009; scroll-margin-top: 88px; }
.br-install__content > .section > .wrap { width: 100%; max-width: none !important; padding: 0; }
.br-install__content .section__title { font-size: clamp(23px,2.4vw,32px); line-height: 1.5; }
.br-install__content .section__lead { font-size: 14px; }
.br-install__content .step { display: block; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.br-install__content .step__text { margin-bottom: 20px; }
.br-install__content .step__shot { width: 100%; max-width: 660px; margin-inline: auto; background: #10100d; border: 3px solid #77715f; padding: 5px; box-shadow: inset 2px 2px #000a; }
.br-install__content .qa { background: #12110e; }
.rp-workbench { margin-block: 20px 28px; width: 100%; min-width: 0; color: var(--text); }
#replay-root { display: block; }
.rp-list { overflow-x: auto; }
.rp-match-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-bottom: 2px solid #74654b; background: #201b12; }
.rp-contender { display: flex; align-items: center; gap: 10px; font: 15px/1.5 var(--font-display); min-width: 0; flex: 1; flex-wrap: wrap; }
.rp-contender:last-child { justify-content: flex-end; text-align: right; }
.rp-avatar { image-rendering: pixelated; box-shadow: 2px 2px #000a; }
.rp-contender strong { overflow-wrap: anywhere; }
.rp-contender__score { font-size: 25px; }
.rp-result { text-align: center; flex: 0 1 42%; }
.rp-result strong { display: block; font: 13px/1.6 var(--font-display); color: var(--gold); }
.rp-result > span { display: block; font-size: 11px; color: var(--dim); margin-top: 4px; }
.rp-result .rp-rating { color: var(--emerald); }
.rp-match-info { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.rp-workbench__body { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
.rp-display { padding: 24px; min-width: 0; background: linear-gradient(#17160fdd,#11120cdd); display: flex; align-items: center; flex-direction: column; }
.rp-moment { min-height: 42px; margin-bottom: 20px; border: 2px solid #7f7258; box-shadow: inset 2px 2px #ffffff16,inset -2px -2px #0008; padding: 10px 15px; color: var(--gold); text-align: center; font: 13px/1.6 var(--font-display); max-width: 100%; overflow-wrap: anywhere; }
.rp-workbench .rp-board { display: grid; gap: 4px; width: 100%; max-width: 420px; padding: 5px; background: #120f0ce8; border: 1px solid #d9a23a; border-top-color: #ffdb86; border-left-color: #b48b48; box-shadow: inset 1px 1px #7a6440,3px 3px #0009; margin: 0; }
.rp-workbench .rp-cell { display: block; position: relative; min-width: 0; width: 100%; aspect-ratio: 1; padding: 3px; border: 2px solid #60606090; background: #000000c0; box-shadow: none; cursor: pointer; }
.rp-workbench .rp-cell .br-task-art { opacity: 1; }
.rp-missing-art { display: grid; place-items: center; width: 100%; height: 100%; color: var(--dim); font: 22px var(--font-display); }
.rp-workbench .rp-cell.is-unrevealed .br-task-art { opacity: .08; }
.rp-workbench .rp-cell.is-a { background: #006000c0; border-color: #55ff55; }
.rp-workbench .rp-cell.is-b { background: #600000c0; border-color: #ff5555; }
.rp-workbench .rp-cell.is-both { background: #606000c0; border-color: #ffff55; }
.rp-workbench .rp-cell.is-selected { outline: 3px solid var(--gold); outline-offset: -3px; }
.rp-cell__mark { position: absolute; bottom: 2px; right: 3px; font: 12px var(--font-display); color: #fff; text-shadow: 1px 1px #222; }
.rp-board-clock { color: var(--title); font: 24px var(--font-display); margin: 23px 0 10px; }
.rp-legend { font-size: 11px; margin: 0; color: var(--dim); text-align: center; }
.rp-record-note { margin: 0; padding: 11px 20px; color: var(--dim); background: #15130e; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.rp-board-progress { display: grid; gap: 9px; margin-top: 18px; width: 100%; max-width: 420px; }
.rp-progress-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(60px,1fr); gap: 10px; align-items: center; font-size: 11px; }
.rp-progress-row > span:first-child { overflow-wrap: anywhere; }
.rp-progress-track { height: 7px; border: 1px solid #7a6440; background: #0009; }
.rp-progress-track > span { display: block; height: 100%; box-shadow: inset 0 1px #fff5; }
.rp-progress-track > .is-a { background: #55ff55; } .rp-progress-track > .is-b { background: #ff5555; }
.p-both { color: #ffff55; }
.rp-event-controls[hidden] { display: none; }
.rp-offers { display: flex; gap: 12px; margin-bottom: 22px; width: 100%; }
.rp-offers[hidden] { display: none; }
.rp-offer { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 8px; border: 2px solid #60594b; background: #24251c; opacity: .45; font-size: 11px; }
.rp-offer > .br-task-art { width: 40px; height: 40px; flex: 0 0 40px; }
.rp-offer.is-picked { border-color: var(--gold); opacity: 1; background: #42391f; }
.rp-history { display: flex; flex-direction: column; padding: 16px; min-width: 0; border-left: 2px solid #71644c; }
.rp-phase-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rp-history__hint { color: var(--dim); font-size: 11px; margin: 12px 2px; }
.rp-event-list { list-style: none; margin: 0; padding: 0; height: 460px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #8c7950 #16140f; scrollbar-width: thin; }
.rp-event-list > li { padding: 0; margin: 0 0 4px; }
.rp-event { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid transparent; text-align: left; background: #14130f; color: var(--text); cursor: pointer; }
.rp-event > .br-task-art { width: 34px; height: 34px; flex: 0 0 34px; }
.rp-event__text { display: grid; gap: 5px; flex: 1; min-width: 0; }
.rp-event__text strong { font: 11px/1.5 var(--font-display); }
.rp-event__text > span { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-event__time { font: 10px var(--font-display); color: var(--dim); white-space: nowrap; }
.rp-event:hover { background: #29251b; border-color: #6b6049; }
.rp-event[aria-current] { background: #38301c; border-color: var(--gold); box-shadow: inset 3px 0 var(--gold); }
.rp-event-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); margin-top: 12px; }
.rp-event-controls .mc-button { font-size: 11px; padding-inline: 9px; }
.rp-event-count { color: var(--dim); font: 10px var(--font-display); }
.rp-empty { color: var(--dim); font-size: 14px; padding: 25px 10px !important; }
.mdb__replayView { display: block; grid-template-columns: none; }
.has-replay > .mdb__grid { margin-top: 16px; }
.p-a { color: var(--emerald); } .p-b { color: var(--redstone); }
@media (max-width: 1050px) {
  .feature-row:has([data-game-demo]) { gap: 26px; }
  .br-demo__screen { height: 480px; }
  .br-demo__board { width: 208px; top: 212px; }
  .br-demo__toast { width: 165px; font-size: 10px; }
  .br-demo[data-stage="race"] .br-demo__board { width: 140px; }
  .br-mode__preview { grid-template-columns: 110px minmax(0,1fr); gap: 16px; }
  .br-install { grid-template-columns: 200px minmax(0,1fr); gap: 22px; }
  .rp-match-summary { padding: 14px; gap: 8px; }
  .rp-contender { font-size: 12px; gap: 6px; } .rp-avatar { width: 28px; height: 28px; }
}
@media (max-width: 800px) {
  .feature-row:has([data-game-demo]) { grid-template-columns: 1fr; }
  .br-demo { max-width: 570px; margin-inline: auto; transform: none; }
  .br-demo__screen { height: 500px; }
  .br-mode-queues { gap: 14px; } .br-mode { padding: 20px; }
  .br-mode__preview { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .br-mode__preview .br-mini-board { width: 130px; }
  .br-lobby-grid { flex-direction: column; }
  .br-lobby-grid .br-mode { text-align: left; padding: 22px; }
  .br-lobby-grid .br-mode__preview { float: right; margin: 0 0 10px 18px; }
  .br-lobby-grid .br-mode__description { min-height: 0; }
  .br-install { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .br-install-nav { position: static; padding: 14px; }
  .br-install-nav > p, .br-install-nav small { display: none; }
  .br-install-nav nav { display: flex; overflow-x: auto; gap: 8px; }
  .br-install-nav a { flex: 0 0 auto; margin: 0; padding: 6px 8px; }
  body[data-page="download"] .br-install__content > .section { padding: 24px; }
  .rp-workbench__body { grid-template-columns: 1fr; }
  .rp-display { padding: 24px; } .rp-history { border-left: 0; border-top: 2px solid #71644c; }
  .rp-event-list { height: 320px; } .rp-result { flex-basis: 35%; }
}
@media (max-width: 480px) {
  .br-section-head { display: block; } .br-section-head h2 { font-size: 24px; }
  .br-mode-queues { grid-template-columns: 1fr; } .br-mode__preview { grid-template-columns: 125px minmax(0,1fr); }
  .br-lobbies { padding: 14px; } .br-lobby-grid .br-mode { padding: 18px 12px; }
  .br-lobby-grid .br-mode__preview { float: none; margin: 18px 0; flex-direction: row; justify-content: space-between; }
  .br-lobby-grid .br-mode__preview .br-mini-board { width: 112px; }
  .br-demo__screen { height: 490px; } .br-demo__board { top: 224px; } .br-demo__stages { padding: 8px; }
  .br-demo__stages .mc-button { padding: 8px 4px; font-size: 12px; }
  .br-demo__offer { padding-inline: 16px; } .br-demo__option { width: 48px; height: 48px; }
  .br-demo__status { font-size: 11px; } .br-demo__score { font-size: 10px; padding-inline: 5px; }
  .br-demo__toast { width: 148px; top: 64px; right: 8px; }
  .br-demo__hearts { font-size: 11px; bottom: 93px; }
  .br-marquee-controls { flex-wrap: wrap; gap: 8px 20px; } .br-marquee-name { flex-basis: 100%; text-align: center; font-size: 12px; }
  body[data-page="download"] .br-install__content > .section { padding: 20px 16px; }
  .rp-match-summary { flex-wrap: wrap; } .rp-result { flex: 1 1 100%; order: 3; padding-top: 10px; border-top: 1px solid var(--line-2); }
  .rp-contender { font-size: 11px; } .rp-contender__score { font-size: 21px; }
  .rp-display { padding: 20px 12px; } .rp-history { padding: 12px; }
  .rp-moment { font-size: 11px; } .rp-offers { gap: 7px; } .rp-offer { display: block; text-align: center; padding: 6px; }
  .rp-offer > .br-task-art { display: grid; margin: auto auto 6px; }
  .rp-workbench .rp-board { gap: 3px; padding: 6px; } .rp-cell__mark { font-size: 10px; }
}
/* Client parity: DraftUnifiedLayout, BoardArt.paint and GuiColors. Logical px are scaled as a unit. */
.br-client-viewport { width: 100%; position: relative; overflow: hidden; background: #17130e; }
.br-client-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: url('../client/home_background_blur.png') center/cover; color: #ddd; font: 10px/1.2 var(--font-display); text-shadow: 1px 1px #000; }
.br-demo[data-stage="race"] .br-client-canvas { background-image: url('../client/home_background.png'); }
.br-client-canvas [hidden] { display: none !important; }
.br-client-title { position: absolute; inset: 8px 0 auto; margin: 0; text-align: center; color: #ffd866; font: 18px/1.2 var(--font-display); }
.br-client-panel { position: absolute; box-sizing: border-box; background: #6e5a4599; border: 1px solid #d9a23a; clip-path: polygon(2px 0,calc(100% - 2px) 0,calc(100% - 2px) 1px,calc(100% - 1px) 1px,calc(100% - 1px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 1px) calc(100% - 2px),calc(100% - 1px) calc(100% - 1px),calc(100% - 2px) calc(100% - 1px),calc(100% - 2px) 100%,2px 100%,2px calc(100% - 1px),1px calc(100% - 1px),1px calc(100% - 2px),0 calc(100% - 2px),0 2px,1px 2px,1px 1px,2px 1px); }
.br-client-profile { padding: 6px; display: grid; grid-template-columns: 24px 1fr; gap: 4px 6px; align-content: center; font-size: 10px; }
.br-client-profile img { width: 24px; height: 24px; image-rendering: pixelated; grid-row: span 2; }
.br-client-profile strong { color: #ffd866; } .br-client-profile span { font-size: 8px; }
.br-client-status { padding: 6px 10px; text-align: center; }
.br-client-status > span, .br-client-status > strong { display: block; font-size: 10px; line-height: 12px; }
.br-client-status > strong { font-weight: normal; }
.br-client-countdown { height: 4px; position: absolute; bottom: 5px; left: 20px; right: 20px; background: #0009; border: 1px solid #7a6440; }
.br-client-countdown > span { display: block; height: 100%; background: #ffd866; }
.br-client-choices { box-shadow: 3px 3px #0006; }
.br-client-or { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #ffd866; }
.br-client-board { position: absolute; display: grid; gap: 0; padding: 3px; box-sizing: content-box; border: 1px solid #d9a23a; border-top-color: #ffdb86; border-left-color: #b48b48; background: #120f0ccc; box-shadow: inset 1px 1px #7a6440,inset -1px -1px #d9a23a,2px 2px #0a0c10c0; }
.br-client-cell { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; box-sizing: border-box; background: #6e5a4599; border: 1px solid #7a6440; box-shadow: inset 0 1px #00000045,inset 1px 0 #00000030,inset 0 -1px #fff1c622,0 -1px #fff1c660; }
.br-client-cell > .br-task-art { display: block; width: 75%; height: 75%; opacity: 0; }
.br-client-cell.is-filled > .br-task-art, .br-client-offer > .br-task-art, .br-client-hotbar .br-task-art, .br-client-task-tile > .br-task-art { opacity: 1; }
.br-client-cell.is-system { outline: 1px solid #d9a23a; outline-offset: -2px; }
.br-client-cell.is-placement { outline: 1px solid #fff; outline-offset: -1px; background: #ffd70088; }
.br-client-cell.is-placement > .br-task-art { opacity: .6; }
.br-client-cell.is-a { background: #00600066; border-color: #55ff55; }
.br-client-cell.is-b { background: #60000066; border-color: #ff5555; }
.br-client-cell.is-both { background: #60600066; border-color: #ffff55; }
.br-client-cell.is-selected { outline: 1px solid #ffd866; outline-offset: -1px; }
.br-client-cell.is-dimmed::after { content: ''; position: absolute; inset: 0; background: #0009; }
.br-client-offer { position: absolute; }
.br-client-cursor { position: absolute; width: 17px; height: 23px; z-index: 20; background: #fff; clip-path: polygon(0 0,0 94%,29% 67%,49% 100%,67% 89%,48% 59%,91% 59%); filter: drop-shadow(1px 1px #000); pointer-events: none; transform-origin: 0 0; }
.br-client-cursor.is-clicking { transform: scale(.8); }
.br-client-tooltip { position: absolute; z-index: 21; padding: 5px 7px; max-width: 250px; font-size: 10px; background: #100010f0; border: 1px solid #5000aa; box-shadow: 0 0 0 1px #100010; }
.br-client-menu { position: absolute; display: grid; place-items: center; color: #ddd; background: #282a2de6; border: 1px solid #7a6440; box-shadow: inset 1px 1px #fff1c634,inset -1px -1px #0008; font-size: 10px; }
.br-client-toast { right: 12px; top: 10px; width: 205px; display: flex; align-items: center; gap: 8px; padding: 7px; font-size: 10px; }
.br-client-toast > .br-task-art { flex: 0 0 24px; height: 24px; }
.br-client-crosshair { position: absolute; left: 50%; top: 48%; font: 22px monospace; color: #fffc; }
.br-client-hotbar { position: absolute; bottom: 32px; width: 182px; height: 22px; left: 229px; display: grid; grid-template-columns: repeat(9,1fr); border: 1px solid #aaa; background: #2229; }
.br-client-hotbar .br-client-cell { border-color: #aaa; background: #2228; }
.br-client-hotbar .br-client-cell:first-child { outline: 1px solid #fff; z-index: 1; }
.br-client-hearts { position: absolute; left: 229px; bottom: 56px; color: #ff5555; font-size: 10px; }
.br-client-score { position: absolute; left: 12px; bottom: 8px; right: 12px; display: flex; justify-content: space-between; background: #120f0ccc; padding: 6px; font-size: 11px; }
.br-client-result-title { position: absolute; top: 48px; left: 0; right: 0; text-align: center; font: 25px var(--font-display); margin: 0; color: #ffd866; }
.br-client-rating { position: absolute; top: 108px; left: 140px; width: 360px; display: flex; gap: 8px; }
.br-client-rating-plate { position: relative; flex: 1; height: 48px; padding: 5px 6px; }
.br-client-rating-plate small { display: block; color: #ddd; font-size: 8px; }
.br-client-rating-plate strong { display: inline-block; font-size: 15px; margin-top: 2px; }
.br-client-rating-plate b { margin-left: 9px; font-size: 10px; }
.br-client-rating-track { height: 5px; margin-top: 3px; background: #0009; border: 1px solid #2a2a2a; }
.br-client-rating-track > span { display: block; height: 100%; background: #ffd866; }
.br-custom-intro { max-width: 800px; margin-bottom: 34px; }
.br-custom-deck { display: flex; gap: 18px; align-items: stretch; }
.br-custom-card { flex: 1 1 0; min-width: 0; padding: 20px 16px; transition: flex-grow .35s ease,border-color .2s; }
.br-custom-card.is-previewing { flex-grow: 1.6; border-color: #d9a23a; }
.br-custom-card h3 { color: var(--gold); font: 20px var(--font-display); margin: 0 0 12px; }
.br-custom-card > p { font-size: 14px; line-height: 1.7; color: var(--dim); }
.br-custom-card > p:first-of-type { min-height: 48px; }
.br-custom-surface { margin: 20px -8px 0; border: 1px solid #7a6440; position: relative; padding-top: 30px; background: #120f0c; }
.br-custom-rule-tabs { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; }
.br-custom-rule-tabs button { flex: 1; min-width: 0; font: 10px var(--font-display); background: #29231a; color: #ddd; border: 1px solid #7a6440; cursor: pointer; }
.br-custom-rule-tabs button:hover, .br-custom-rule-tabs button:focus-visible { color: #ffd866; background: #453824; }
.br-custom-info { position: absolute; top: 33px; left: 0; right: 0; text-align: center; font-size: 10px; margin: 0; }
.br-custom-surface .br-client-board { gap: 4px; transition: width .25s,height .25s,left .25s; }
.br-client-picker { position: absolute; left: 32px; top: 54px; width: 416px; bottom: 34px; display: grid; grid-template-columns: repeat(4,104px); grid-auto-rows: 46px; align-content: start; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.br-client-task-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 102px; height: 42px; gap: 2px; }
.br-client-task-tile > .br-task-art { width: 16px; height: 16px; flex-shrink: 0; }
.br-client-task-tile > span:last-child { font-size: 8px; line-height: 9px; max-height: 18px; overflow: hidden; text-align: center; padding-inline: 3px; }
.br-client-task-tile > small { color: #999; font-size: 8px; }
.br-custom-back { width: 90px; height: 18px; left: 140px; bottom: 8px; }
.br-custom-clear { width: 90px; height: 18px; left: 250px; bottom: 8px; }
.br-custom-note { min-height: 48px; }
.br-custom-complete { position: absolute; left: 0; right: 0; margin: 0; text-align: center; color: #ffd866; font-size: 14px; }
.br-client-click-pulse { position: absolute; z-index: 19; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid #ffd866; box-shadow: 0 0 10px #ffd86688; border-radius: 50%; pointer-events: none; }
.br-demo-hud { position: absolute; border: 1px solid #d9a23a; background: #120f0ce8; box-shadow: inset 1px 1px #ffdb8633,3px 3px #0008; }
.br-demo-hud.is-draft { border: 0; background: transparent; box-shadow: none; }
.br-demo-hud__head { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.br-demo-hud__head b { color: #ffd866; }
.br-demo-hud__head span { color: #ccc; font-size: 9px; }
.br-demo-hud__scores { position: absolute; bottom: 9px; left: 10px; right: 10px; display: grid; gap: 8px; }
.br-demo-hud__progress { display: grid; grid-template-columns: 100px 1fr; gap: 7px; align-items: center; font-size: 11px; }
.br-demo-hud__track { height: 7px; border: 1px solid #7a6440; background: #0009; }
.br-demo-hud__track > span { display: block; height: 100%; box-shadow: inset 0 1px #fff5; }
.br-demo-hud__track .is-a { background: #55ff55; } .br-demo-hud__track .is-b { background: #ff5555; }
.br-client-race-board .br-client-cell { background: #000000c0; border-color: #60606090; border-width: calc(var(--hud-scale,3) * 1px); box-shadow: none; }
.br-client-race-board .br-client-cell > .br-task-art { width: 100%; height: 100%; }
.br-client-race-board .is-a, .br-custom-surface .br-client-cell.is-a { border-color: #55ff55; background: #006000c0; }
.br-client-race-board .is-b, .br-custom-surface .br-client-cell.is-b { border-color: #ff5555; background: #600000c0; }
.br-client-race-board .is-both, .br-custom-surface .br-client-cell.is-both { border-color: #ffff55; background: #606000c0; }
.br-client-race-board .br-client-cell:not(.is-a):not(.is-b):not(.is-both) > .br-task-art { filter: brightness(.65); }
.br-custom-action { font-size: 12px; }
@media (max-width: 800px) {
  .br-custom-deck { flex-direction: column; }
  .br-custom-card { padding: 22px; }
  .br-custom-card > p:first-of-type, .br-custom-note { min-height: 0; }
  .br-custom-surface { max-width: 560px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .br-demo *, .br-mode, .br-demo-cell > .br-task-art { animation: none !important; transition: none !important; }
  .br-task-track { will-change: auto; }
  .br-client-cursor, .br-custom-card, .br-custom-surface .br-client-board { transition: none; }
  .br-motion-toggle { display: none; }
}
