/* ODD Racing channel, lobby, race overlays, and results. */
body.racing-active, body.racing-active.custom-pointer { cursor: default; }
body.racing-active.custom-pointer .wii-pointer { display: none !important; }
body.racing-active.custom-pointer button, body.racing-active.custom-pointer a { cursor: pointer; }
body.racing-active.custom-pointer input { cursor: text; }
#racing-view {
  --mr-ink: #2c5368;
  --mr-muted: #73909e;
  --mr-line: #d9e7eb;
  --mr-blue: #269bbb;
  --mr-coral: #ef8e7c;
  position: absolute;
  inset: 0;
  z-index: 15;
  isolation: isolate;
  background: #f4f9fb;
  color: var(--mr-ink);
  font: 14px/1.45 "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  text-align: left;
  overflow: hidden;
}
#racing-view *, #racing-view *::before, #racing-view *::after { box-sizing: border-box; }
#racing-view [hidden] { display: none !important; }
#racing-view h1, #racing-view h2, #racing-view h3, #racing-view p { margin: 0; }
#racing-view button, #racing-view input, #racing-view select, #racing-view a { font: inherit; }
#racing-view button, #racing-view a { -webkit-tap-highlight-color: transparent; }
#racing-view button { touch-action: manipulation; }
#racing-view button:disabled { cursor: default; opacity: .46; }
#racing-view button:focus-visible, #racing-view input:focus-visible, #racing-view a:focus-visible, #racing-view [tabindex="0"]:focus-visible { outline: 3px solid #218bb0; outline-offset: 4px; }
#racing-view [tabindex="-1"]:focus { outline: none; }
#racing-view [inert] { pointer-events: none; }
#racing-view kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; border: 1px solid #c5dce5; border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; color: #517c91; background: #ffffffc9; font: 10px/1.2 Arial, sans-serif; }
.mr-shell { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.mr-header { display: grid; grid-template-columns: 1fr auto 1fr; flex: 0 0 77px; align-items: center; gap: 25px; padding: 12px 4vw; border-bottom: 1px solid var(--mr-line); background: linear-gradient(#fff, #fbfdfd); position: relative; z-index: 5; }
.mr-icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.mr-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 19px; border: 1px solid #c5dee6; border-radius: 24px; background: #fff; color: #4c7d91; font-size: 12px !important; font-weight: 600 !important; text-decoration: none; transition: background .17s, border-color .17s, box-shadow .17s, transform .17s; }
.mr-button:hover:not(:disabled) { background: #f1fafc; border-color: #72b6ca; box-shadow: 0 3px 10px #3b8a9e14; transform: translateY(-1px); }
.mr-button:active:not(:disabled) { transform: translateY(1px); }
.mr-button .mr-icon { width: 16px; height: 16px; }
.mr-button.mr-primary { border-color: #2996b4; color: white; background: linear-gradient(160deg, #53bad1, #2398b8); box-shadow: inset 0 1px 0 #ffffff70, 0 5px 12px #2686a31b; }
.mr-button.mr-primary:hover:not(:disabled) { border-color: #1286a9; background: linear-gradient(160deg, #60c6db, #269dbc); box-shadow: 0 5px 16px #2686a331; }
.mr-home-button { justify-self: start; padding: 8px 17px; min-height: 38px; }
.mr-brand { display: flex; align-items: center; gap: 10px; transform: skew(-7deg); }
.mr-brand > .mr-icon { width: 34px; height: 38px; stroke-width: 1.3; color: #62b5c8; transform: rotate(-7deg); }
.mr-brand > span { display: flex; align-items: center; gap: 10px; }
.mr-brand b { font-size: 31px; line-height: 1; font-weight: 400; letter-spacing: -2.5px; color: #7f9aa5; }
.mr-brand strong { font-size: 17px; letter-spacing: 1.9px; font-weight: 900; color: #3e839e; }
.mr-header-tools { justify-self: end; display: flex; align-items: center; gap: 11px; }
.mr-icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 50%; color: #7e9ba9; background: transparent; transition: background .15s, color .15s; }
.mr-icon-button:hover { background: #edf7fa; color: #3095b5; }
.mr-icon-button > .mr-icon { width: 18px; height: 18px; }
.mr-guide-button { min-height: 35px; padding: 7px 14px; font-size: 11px !important; }
.mr-guide-button > .mr-icon { width: 15px; height: 15px; }
.mr-scroll { overflow-y: auto; min-height: 0; flex: 1; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c4dce5 transparent; background: radial-gradient(ellipse at 65% 0%, #eaf8fa 0, transparent 45%), #f5f9fb; }
.mr-home { width: min(1160px, 100%); margin: 0 auto; padding: 27px 32px 20px; }
.mr-hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 25px; min-height: 238px; margin-bottom: 29px; padding: 0 25px 0 18px; }
.mr-eyebrow { display: inline-block; color: #85a4b0; font-size: 8px; line-height: 1.6; letter-spacing: 2.2px; font-weight: 700; }
.mr-hero-copy h1 { font-size: clamp(39px, 4vw, 57px); line-height: 1.06; letter-spacing: -2px; color: #3a6479; margin: 12px 0 14px !important; font-weight: 600; }
.mr-hero-copy h1 em { color: #36a5c0; font-style: normal; }
.mr-hero-copy > p { font-size: 12px; line-height: 1.7; color: #829ba8; }
.mr-hero-facts { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 19px; color: #6991a3; font-size: 9px; }
.mr-hero-facts > span { display: flex; align-items: center; gap: 5px; }
.mr-hero-facts .mr-icon { width: 13px; height: 13px; color: #61b1c6; }
.mr-hero-stage { height: 237px; position: relative; isolation: isolate; }
.mr-stage-ring { position: absolute; inset: 4% 0 0 0; border: 1px solid #c5e7ed; border-radius: 50%; transform: rotate(-12deg); background: radial-gradient(ellipse, #e1f4f77c, transparent 67%); }
.mr-stage-ring::after { content: ''; position: absolute; inset: 11%; border: 1px dashed #cce8ee; border-radius: 50%; }
.mr-hero-kart { width: 370px; height: 237px; max-width: 100%; position: absolute; left: 50%; top: -6%; transform: translateX(-50%) rotate(-5deg); }
.mr-kart-art { display: block; width: 100%; height: 100%; overflow: visible; }
.mr-kart-float { transform-origin: 180px 120px; }
.mr-hero-kart > .mr-kart-art .mr-kart-float { animation: mr-kart-hover 4.6s ease-in-out infinite; }
.mr-kart-driver { position: absolute; top: 6%; left: 41%; width: 20%; height: 33%; transform: rotate(3deg); animation: mr-driver-hover 4.6s ease-in-out infinite; }
.mr-kart-driver > svg { width: 100%; height: 100%; }
.mr-stage-tag { position: absolute; bottom: 0; right: 6%; color: #88b2bf; font-size: 7px; letter-spacing: 2.3px; font-weight: 700; }
.mr-checker { background-color: #b7d9e2; background-image: conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0); background-size: 12px 12px; }
.mr-hero-checker { position: absolute; width: 42px; height: 27px; top: 14%; right: 5%; border-radius: 3px; transform: rotate(9deg); box-shadow: 0 6px 13px #7ab0c223; }
.mr-setup { display: grid; grid-template-columns: 219px minmax(0, 1fr); border: 1px solid #d7e6eb; border-radius: 24px; background: white; box-shadow: 0 8px 24px #54798608; overflow: hidden; }
.mr-driver-panel { display: flex; flex-direction: column; align-items: center; background: linear-gradient(145deg, #eef8fa, #f8fcfc); padding: 27px 22px 25px; border-right: 1px solid #dfebef; text-align: center; }
.mr-driver-panel > .mr-eyebrow { font-size: 7px; letter-spacing: 1.4px; }
.mr-driver-portrait { height: 137px; width: 132px; padding: 9px; margin: 23px 0 8px; position: relative; isolation: isolate; }
.mr-driver-portrait::before { content: ''; position: absolute; inset: 6px 4px 3px; z-index: -1; border-radius: 50%; background: #dceff4; box-shadow: 0 0 0 10px #e8f5f7; }
.mr-driver-portrait > svg { height: 100%; width: 100%; }
.mr-driver-panel h2 { font-size: 24px; font-weight: 600; letter-spacing: -.6px; overflow-wrap: anywhere; margin-bottom: 7px !important; }
.mr-driver-panel > p { font-size: 10px; line-height: 1.6; color: #7d9ca9; max-width: 160px; }
.mr-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 0; color: #428ba5; border: 0; background: none; font-size: 11px !important; text-decoration: none; transition: color .15s; }
.mr-text-button:hover { color: #147a9e; }
.mr-text-button > .mr-icon { width: 14px; height: 14px; }
.mr-driver-panel > .mr-text-button { margin-top: 14px; }
.mr-driver-name { margin-top: 16px; text-align: left; width: 100%; }
.mr-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mr-field > span { color: #63899d; font-size: 10px; font-weight: 600; }
.mr-field input { width: 100%; min-width: 0; height: 43px; padding: 10px 12px; font-size: 12px !important; background: white; color: #385f73; border: 1px solid #cbdfe7; border-radius: 10px; }
.mr-field input::placeholder { color: #9aafb8; }
.mr-driver-name input { height: 38px; font-size: 11px !important; }
.mr-driver-paint { padding-top: 25px; border-top: 1px solid #dcebef; margin-top: auto; width: 100%; }
.mr-driver-panel > .mr-text-button + .mr-driver-paint { margin-top: 35px; }
.mr-driver-paint > span { display: block; font-size: 7px; letter-spacing: 1.8px; color: #82a0ad; margin-bottom: 12px; }
.mr-palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.mr-color { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--mr-paint); box-shadow: 0 0 0 1px #bed5e066; color: white; }
.mr-color .mr-icon { width: 13px; height: 13px; opacity: 0; stroke-width: 3; }
.mr-color[aria-pressed="true"] { box-shadow: 0 0 0 2px #62a2b6; }
.mr-color[aria-pressed="true"] .mr-icon { opacity: 1; }
.mr-options { min-width: 0; padding: 26px 28px 24px; }
.mr-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.mr-section-heading > div { display: flex; align-items: center; gap: 9px; }
.mr-section-heading h2 { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.mr-section-heading > span { font-size: 9px; color: #a0b2bb; }
.mr-step { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #edf7fa; color: #72a5b7; font-size: 9px; }
.mr-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.mr-course { min-width: 0; padding: 0; border: 2px solid #e0e9ec; border-radius: 14px; overflow: hidden; background: #fff; text-align: left; transition: border-color .16s, box-shadow .16s, transform .16s; }
.mr-course:hover { border-color: #acd1df; transform: translateY(-2px); }
.mr-course[aria-pressed="true"] { border-color: #55b0c9; box-shadow: 0 0 0 3px #5ab7ce17; }
.mr-course-art { display: block; height: 97px; position: relative; overflow: hidden; }
.mr-course-art > svg { width: 100%; height: 100%; }
.mr-course-number { position: absolute; left: 9px; top: 8px; width: 21px; height: 21px; display: grid; place-items: center; background: #ffffffbf; border-radius: 7px; color: #537d8b; font-size: 8px; font-weight: 700; }
.mr-course-check { position: absolute; bottom: 8px; right: 8px; width: 21px; height: 21px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #46aeca; color: #fff; opacity: 0; }
.mr-course-check .mr-icon { width: 12px; height: 12px; stroke-width: 3; }
.mr-course[aria-pressed="true"] .mr-course-check { opacity: 1; }
.mr-course-info { display: flex; flex-direction: column; padding: 12px 12px 10px; }
.mr-course-info > strong { color: #44697c; font-size: 12px; font-weight: 600; letter-spacing: -.2px; white-space: nowrap; }
.mr-course-info > small { font-size: 9px; color: #98adb6; margin-top: 3px; }
.mr-course-best { display: flex; align-items: center; gap: 4px; margin-top: 11px; padding-top: 9px; border-top: 1px solid #eff3f4; color: #8aa5b3; font-size: 8px; font-variant-numeric: tabular-nums; }
.mr-course-best .mr-icon { width: 11px; height: 11px; }
.mr-kart-heading { margin-top: 24px; }
.mr-kart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.mr-kart-choice { display: flex; flex-direction: column; position: relative; min-width: 0; border: 2px solid #e5edf0; border-radius: 13px; background: #fcfefe; text-align: left; padding: 12px 12px 13px; transition: border-color .16s, box-shadow .16s, background .16s; }
.mr-kart-choice:hover { border-color: #adcfdc; background: #f5fbfd; }
.mr-kart-choice[aria-pressed="true"] { border-color: #5bb3cb; background: #f1fafc; box-shadow: 0 0 0 3px #5ab7ce12; }
.mr-kart-mini { display: block; align-self: center; width: 107px; height: 67px; margin: -10px -10px 1px; }
.mr-kart-description { display: block; }
.mr-kart-description > strong { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; }
.mr-kart-description > strong .mr-icon { color: #58a8c0; width: 14px; height: 14px; stroke-width: 2.5; }
.mr-kart-description > small { display: block; color: #97adb8; font-size: 8px; margin-top: 2px; white-space: nowrap; }
.mr-kart-stats { display: grid; gap: 5px; margin-top: 12px; width: 100%; }
.mr-kart-stats > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mr-kart-stats small { color: #91aab6; font-size: 7px; }
.mr-kart-stats > span > span { display: flex; gap: 3px; }
.mr-kart-stats i { height: 4px; width: 9px; border-radius: 2px; background: #e2edf1; }
.mr-kart-stats i.mr-stat-on { background: #8bbecf; }
.mr-kart-choice[aria-pressed="true"] .mr-kart-stats i.mr-stat-on { background: #50adc6; }
.mr-race-options { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; margin-top: 24px; }
.mr-race-options fieldset, .mr-room-visibility { border: 0; padding: 0; margin: 0; min-width: 0; }
.mr-race-options legend, .mr-room-visibility legend { font-size: 9px; color: #7596a7; padding: 0; margin-bottom: 8px; }
.mr-segmented { display: flex; padding: 3px; gap: 2px; background: #f0f6f8; border: 1px solid #e0ecf0; border-radius: 10px; }
.mr-segmented button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 31px; min-width: 0; padding: 7px 8px; border: 1px solid transparent; border-radius: 7px; color: #8aa4b2; font-size: 10px !important; background: transparent; white-space: nowrap; }
.mr-segmented button .mr-icon { width: 12px; height: 12px; }
.mr-segmented button[aria-pressed="true"] { background: #fff; border-color: #d4e5ec; box-shadow: 0 1px 4px #2b6f8610; color: #3987a2; }
.mr-segmented button:hover:not([aria-pressed="true"]) { background: #e6f1f6; }
.mr-start-row { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e8f0f3; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.mr-start-row > p { font-size: 10px; line-height: 1.7; color: #8aa3b0; }
.mr-start-button { min-width: 195px; min-height: 46px; justify-content: space-between; padding: 12px 21px; border-radius: 12px; font-size: 14px !important; }
.mr-start-button > .mr-icon { width: 19px; height: 19px; }
.mr-online-section { margin-top: 24px; background: #fff; border: 1px solid #dae8ed; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 20px #54798604; }
.mr-online-heading { padding: 24px 28px 0; }
.mr-online-heading > div:first-child { display: grid; grid-template-columns: 1fr auto; gap: 5px 20px; align-items: end; }
.mr-online-heading .mr-eyebrow { grid-column: 1; font-size: 7px; letter-spacing: 1.6px; }
.mr-online-heading h2 { grid-column: 1; display: flex; gap: 9px; align-items: center; color: #548194; font-size: 21px; font-weight: 600; letter-spacing: -.5px; }
.mr-online-heading h2 > .mr-icon { color: #77b5c6; width: 23px; height: 23px; }
.mr-online-heading p { grid-column: 2; grid-row: 1/3; font-size: 10px; line-height: 1.7; color: #97acb7; max-width: 245px; padding-bottom: 2px; }
.mr-online-tabs { display: flex; align-items: center; gap: 27px; padding-top: 16px; border-bottom: 1px solid #e2ecf1; }
.mr-online-tabs > button { min-height: 45px; display: flex; align-items: center; gap: 7px; position: relative; border: 0; padding: 9px 1px 12px; background: none; color: #9bb0ba; font-size: 11px !important; }
.mr-online-tabs > button .mr-icon { width: 14px; height: 14px; }
.mr-online-tabs > button[aria-selected="true"] { color: #4692af; }
.mr-online-tabs > button[aria-selected="true"]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; border-radius: 3px; background: #67b2c9; }
#mr-online-panel { padding: 22px 28px 24px; }
.mr-online-form { display: grid; grid-template-columns: 1.1fr 1.2fr auto; align-items: end; gap: 24px; }
.mr-online-form .mr-button { min-width: 157px; min-height: 43px; border-radius: 11px; justify-content: space-between; padding-left: 18px; padding-right: 16px; }
.mr-online-form > p { padding-bottom: 4px; color: #94abb7; font-size: 11px; line-height: 1.7; }
.mr-online-form .mr-room-visibility .mr-segmented { height: 43px; }
.mr-online-footnote { color: #99adb8; font-size: 9px; margin-top: 13px !important; }
.mr-online-note { display: flex; align-items: center; gap: 10px; padding: 13px 15px; margin-bottom: 18px !important; border: 1px solid #dcebf0; border-radius: 10px; background: #f5fbfd; color: #7197a9; font-size: 11px; line-height: 1.6; }
.mr-online-note > .mr-icon { width: 17px; height: 17px; }
.mr-online-note > .mr-button { margin-left: auto; white-space: nowrap; }
.mr-online-note.mr-error { border-color: #efd6cb; background: #fff6f1; color: #ac7766; }
#mr-online-notice { margin-top: 16px !important; margin-bottom: 0 !important; }
.mr-room-browser-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: -9px; margin-bottom: 9px; }
.mr-room-browser-head > span { font-size: 10px; color: #8da9b6; }
.mr-room-browser-head .mr-text-button { font-size: 10px !important; }
.mr-room-list { display: grid; gap: 9px; }
.mr-room-empty { text-align: center; padding: 21px 12px; background: #f7fbfc; border: 1px dashed #d7e7ed; border-radius: 12px; color: #6c93a7; line-height: 1.9; font-size: 12px; }
.mr-room-empty > span { color: #9ab1bb; font-size: 10px; }
.mr-room-card { display: flex; align-items: center; gap: 15px; border: 1px solid #e1edf1; border-radius: 12px; padding: 10px; }
.mr-room-card-art { display: block; width: 84px; height: 48px; overflow: hidden; border-radius: 7px; flex: 0 0 auto; }
.mr-room-card-art > svg { width: 100%; height: 100%; }
.mr-room-card > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mr-room-card > div > strong { font-size: 12px; overflow-wrap: anywhere; }
.mr-room-card > div > span { font-size: 9px; color: #92aab8; }
.mr-room-card > .mr-button { margin-left: auto; font-size: 11px !important; min-height: 34px; padding: 7px 15px; }
.mr-home-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 20px; padding: 0 4px; color: #9eb1bc; font-size: 8px; }
.mr-home-footer > span:first-child { display: flex; align-items: center; gap: 5px; }
.mr-home-footer .mr-icon { width: 11px; height: 11px; }
.mr-storage-note { border: 1px solid #f0d9c9; border-radius: 10px; background: #fff9ef; padding: 10px 13px; margin-top: 15px !important; color: #ae8c70; font-size: 10px; line-height: 1.7; }
.mr-spinner { display: inline-block; vertical-align: middle; width: 13px; height: 13px; border: 2px solid #c3e1e9; border-top-color: #49a5bc; border-radius: 50%; animation: mr-spin 1s linear infinite; flex: 0 0 auto; }
.mr-room-empty > .mr-spinner { margin-right: 8px; }

/* Connected room. */
.mr-waiting { width: min(1070px, 100%); margin: 0 auto; padding: 40px 35px 25px; }
.mr-waiting-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 31px; }
.mr-waiting-heading h1 { font-size: clamp(28px, 3.5vw, 38px); line-height: 1.2; letter-spacing: -1px; font-weight: 600; margin: 10px 0 9px !important; overflow-wrap: anywhere; }
.mr-waiting-heading p { font-size: 12px; color: #8ba4b2; }
.mr-player-count { display: flex; align-items: center; gap: 9px; border: 1px solid #d9e9ee; border-radius: 14px; padding: 16px; background: #fbfeff; color: #9cb5c0; white-space: nowrap; }
.mr-player-count > b { color: #548aa2; }
.mr-player-count > .mr-icon { color: #75b4c5; }
.mr-waiting-grid { display: grid; grid-template-columns: 295px minmax(0, 1fr); gap: 22px; }
.mr-invite-card, .mr-roster-card { border: 1px solid #d8e8ed; border-radius: 21px; padding: 25px; background: #fff; box-shadow: 0 8px 24px #49798d05; }
.mr-invite-card { display: flex; flex-direction: column; align-items: center; background: linear-gradient(#fff, #f3fafc); overflow: hidden; }
.mr-room-course { width: calc(100% + 50px); height: 145px; position: relative; margin: -25px -25px 25px; overflow: hidden; }
.mr-room-course > svg { width: 100%; height: 100%; }
.mr-room-course > span { position: absolute; bottom: 11px; left: 14px; padding: 5px 9px; background: #ffffffd9; color: #467a8d; border-radius: 7px; font-size: 10px; }
.mr-invite-card > .mr-eyebrow { font-size: 7px; }
.mr-big-code { font: 600 34px/1.2 "Trebuchet MS", Arial, sans-serif; letter-spacing: 6px; color: #3f91ad; margin: 15px 0 23px; padding-left: 6px; }
.mr-invite-card > .mr-button { width: 100%; border-radius: 11px; }
.mr-invite-card > .mr-text-button { font-size: 9px !important; margin-top: 8px; }
.mr-invite-card > p { text-align: center; color: #92acb9; font-size: 9px; line-height: 1.8; margin-top: 16px !important; }
.mr-room-rules { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 12px; width: 100%; border-top: 1px solid #dfeef3; padding-top: 18px; margin-top: 22px; font-size: 9px; color: #82a0ae; }
.mr-room-rules > span { display: flex; align-items: center; gap: 5px; }
.mr-room-rules .mr-icon { width: 12px; height: 12px; }
.mr-roster-card { display: flex; flex-direction: column; padding: 28px; }
.mr-roster-card .mr-section-heading { padding-bottom: 13px; border-bottom: 1px solid #e5eff3; margin-bottom: 0; }
.mr-roster-player { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid #edf3f5; }
.mr-roster-avatar { width: 48px; height: 50px; border: 1px solid #d9e9ef; border-radius: 16px; padding: 4px; background: #f0f8fa; }
.mr-roster-avatar > svg { width: 100%; height: 100%; }
.mr-roster-player > div { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mr-roster-player strong { display: flex; gap: 8px; align-items: center; font-size: 13px; overflow-wrap: anywhere; }
.mr-roster-player strong > small, .mr-result-driver > small { flex: 0 0 auto; font-size: 6px; letter-spacing: .7px; font-weight: 600; padding: 3px 5px; border-radius: 4px; color: #82a2b2; background: #edf7f9; }
.mr-roster-player > div > span { font-size: 9px; color: #96aeba; }
.mr-ready { display: flex; align-items: center; gap: 4px; color: #84ac89; font-size: 9px; }
.mr-ready > .mr-icon { width: 13px; height: 13px; }
.mr-computer-row { display: flex; align-items: center; gap: 12px; padding: 19px 0; color: #a0b7c3; font-size: 10px; }
.mr-computer-row > .mr-icon { width: 19px; height: 19px; color: #b2c9d1; }
.mr-room-start { padding-top: 22px; margin-top: auto; }
.mr-room-start > .mr-button { width: 100%; border-radius: 12px; min-height: 46px; font-size: 13px !important; }
.mr-room-start > p { text-align: center; color: #9bb1bd; font-size: 9px; margin-top: 12px !important; }
.mr-wait-for-host { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border: 1px solid #deedf1; border-radius: 11px; color: #709eaf !important; background: #f2f9fb; font-size: 11px !important; }
.mr-connection-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 3px 0; color: #9bb2bf; font-size: 9px; }
.mr-connection-footer > span:first-child { color: #7c9dad; }

/* Live race information stays clear of the touch controls. */
.mr-shell-race { background: #83bbc9; }
.mr-race-header { flex-basis: 63px; padding-top: 8px; padding-bottom: 8px; background: #fafffff5; }
.mr-race-header .mr-brand b { font-size: 26px; }
.mr-race-header .mr-brand strong { font-size: 14px; }
.mr-race-header .mr-brand > .mr-icon { width: 27px; height: 30px; }
.mr-race { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #89c8d7; }
.mr-game-mount { position: absolute; inset: 0; overflow: hidden; outline: none !important; }
.mr-race-top-hud { position: absolute; top: 18px; left: 23px; display: flex; align-items: center; gap: 10px; pointer-events: none; z-index: 3; }
.mr-position { display: flex; align-items: baseline; justify-content: center; min-width: 112px; padding: 6px 14px 8px; border: 1px solid #ffffffb8; border-radius: 18px; background: #ffffffea; box-shadow: 0 4px 15px #224a6816; color: #408dad; text-shadow: 0 1px 0 #fff; }
.mr-position > b { font-size: 43px; font-weight: 700; line-height: 1.1; letter-spacing: -3px; }
.mr-position > span { font-size: 16px; margin-left: 3px; }
.mr-position > small { color: #9cbbc8; font-size: 10px; margin-left: 11px; }
.mr-lap-pill, .mr-time-pill { display: flex; flex-direction: column; justify-content: center; min-height: 61px; padding: 9px 15px; border: 1px solid #ffffff9c; border-radius: 16px; background: #ffffffdf; box-shadow: 0 4px 15px #224a6811; }
.mr-lap-pill > span, .mr-time-pill > span { color: #8cabb9; font-size: 7px; font-weight: 700; letter-spacing: 1.4px; }
.mr-lap-pill > strong, .mr-time-pill > strong { font-size: 20px; color: #4e8198; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.mr-lap-pill > strong > small { font-size: 12px; color: #9bb7c3; }
.mr-time-pill { min-width: 111px; }
.mr-time-pill > strong { font-size: 19px; }
.mr-race-course { position: absolute; right: 23px; top: 26px; display: flex; flex-direction: column; align-items: end; color: #fff; text-shadow: 0 1px 6px #23506b75; gap: 3px; pointer-events: none; z-index: 3; }
.mr-race-course > strong { font-size: 15px; letter-spacing: -.2px; }
.mr-race-course > span { font-size: 9px; letter-spacing: .5px; }
.mr-countdown { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; z-index: 4; color: white; text-shadow: 0 5px 0 #c7675780, 0 11px 35px #713e4929; }
.mr-countdown > span { padding: 6px 11px; border-radius: 20px; background: #344f6387; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-shadow: none; }
.mr-countdown > b { display: grid; place-items: center; height: 126px; min-width: 126px; border: 5px solid #fff9; border-radius: 43%; padding: 8px 19px; background: linear-gradient(150deg, #ffb18c, #f1837d); box-shadow: 0 10px 0 #ca716048, 0 19px 50px #355d7640; font-size: 81px; line-height: 1; }
.mr-countdown.mr-go > b { font-size: 64px; background: linear-gradient(150deg, #86d2c0, #40afba); text-shadow: 0 5px 0 #257f9350; box-shadow: 0 10px 0 #328aa048, 0 19px 50px #355d7640; }
.mr-race-message { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 16px; border: 3px solid #fff; border-radius: 24px; padding: 18px 26px; background: #ffffffed; box-shadow: 0 10px 45px #27557130; white-space: nowrap; color: #3987a2; pointer-events: none; z-index: 5; }
.mr-race-message > .mr-icon { width: 29px; height: 29px; }
.mr-race-message > strong { font-size: 31px; letter-spacing: -.7px; }
.mr-race-message > span { font-size: 17px; color: #86a8b9; font-variant-numeric: tabular-nums; }
.mr-minimap { position: absolute; left: 23px; bottom: 36px; width: 138px; height: 138px; padding: 5px; border: 1px solid #ffffff9c; border-radius: 27px; background: #ffffffa3; box-shadow: 0 5px 20px #27557115; pointer-events: none; z-index: 3; }
.mr-minimap > svg { width: 100%; height: 100%; }
.mr-driving-hud { position: absolute; bottom: 37px; right: 23px; display: flex; align-items: center; gap: 17px; padding: 13px 19px 13px 15px; border: 1px solid #ffffffb8; border-radius: 20px; background: #ffffffec; box-shadow: 0 4px 16px #285a731c; pointer-events: none; z-index: 3; }
.mr-speed { display: flex; align-items: baseline; gap: 3px; min-width: 83px; }
.mr-speed > strong { font-size: 33px; letter-spacing: -1.8px; color: #438aa7; line-height: 1; font-variant-numeric: tabular-nums; }
.mr-speed > span { color: #89a9b7; font-size: 8px; }
.mr-meters { width: 184px; padding-left: 17px; border-left: 1px solid #d8e9ef; }
.mr-meter-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.mr-meter-line > span { display: flex; align-items: center; gap: 4px; font-size: 7px; letter-spacing: 1px; font-weight: 700; color: #69a3b7; }
.mr-meter-line .mr-icon { width: 12px; height: 12px; }
.mr-meter-line kbd { padding: 1px 3px !important; min-width: 0 !important; font-size: 7px !important; border-color: #cee2e8 !important; color: #8db0bf !important; margin-left: 3px; letter-spacing: 0; }
.mr-meter-line > strong { font-size: 8px; color: #85a8b7; font-weight: 400; }
.mr-meter { height: 7px; border-radius: 5px; background: #d8eaf0; overflow: hidden; }
.mr-meter > i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #72c8d4, #3fadc7); transition: width .12s linear; }
.mr-drift-line { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: 6px; }
.mr-drift-line > span:first-child { font-size: 6px; color: #99b0bc; white-space: nowrap; }
.mr-drift-meter { height: 3px; background: #f4e6da; border-radius: 3px; width: 30px; flex: 0 0 auto; overflow: hidden; }
.mr-drift-meter > i { display: block; background: #eca484; height: 100%; width: 0; }
.mr-race-key-hint { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; color: #ffffffe6; text-shadow: 0 1px 3px #23536c90; font-size: 8px; pointer-events: none; white-space: nowrap; z-index: 3; }
.mr-race-key-hint > kbd { font-size: 7px !important; min-width: 0 !important; padding: 2px 4px !important; text-shadow: none; background: #ffffffcf !important; }
.mr-touch-mode .mr-minimap, .mr-touch-mode .mr-race-key-hint { display: none; }
.mr-touch-mode .mr-driving-hud { bottom: 21px; left: 50%; right: auto; transform: translateX(-50%); padding: 8px 11px; gap: 8px; border-radius: 15px; }
.mr-touch-mode .mr-speed { min-width: 61px; }
.mr-touch-mode .mr-speed > strong { font-size: 25px; }
.mr-touch-mode .mr-meters { width: 130px; padding-left: 8px; }
.mr-touch-mode .mr-meter-line kbd, .mr-touch-mode .mr-drift-line { display: none; }

/* A personal finish line and a live room result list. */
.mr-results { max-width: 920px; margin: 0 auto; padding: 38px 32px 25px; }
.mr-results-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 35px; min-height: 265px; padding: 0 18px; margin-bottom: 24px; }
.mr-result-copy h1 { margin: 13px 0 12px !important; font-size: clamp(29px, 3.5vw, 41px); line-height: 1.14; letter-spacing: -1.2px; font-weight: 600; color: #4f7c90; }
.mr-result-copy > p { color: #91aab7; font-size: 12px; line-height: 1.7; }
.mr-result-metrics { display: flex; gap: 29px; margin-top: 23px; }
.mr-result-metrics > div { display: flex; flex-direction: column; gap: 5px; }
.mr-result-metrics > div > span { color: #9bb3bf; font-size: 7px; letter-spacing: 1.6px; }
.mr-result-metrics > div > strong { color: #469ab6; font-size: 29px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.6px; font-weight: 600; }
.mr-best-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #eddfb9; border-radius: 8px; color: #b49a57; background: #fffbee; font-size: 10px; margin-top: 18px; }
.mr-best-badge > .mr-icon { width: 16px; height: 16px; }
.mr-result-art { position: relative; height: 256px; isolation: isolate; }
.mr-result-sun { position: absolute; inset: 0 13% 8%; background: #e4f2f6; border-radius: 50%; border: 1px solid #daecf2; box-shadow: 0 0 0 14px #eaf5f83c; }
.mr-result-art > .mr-kart-art { position: absolute; top: -1%; left: -6%; width: 110%; height: 99%; z-index: 1; }
.mr-result-portrait { position: absolute; top: 4%; left: 38%; width: 24%; height: 33%; z-index: 2; }
.mr-result-portrait > svg { width: 100%; height: 100%; }
.mr-podium-label { position: absolute; left: 50%; bottom: -1%; transform: translateX(-50%); width: 71px; height: 47px; display: grid; place-items: center; color: #78adc1; background: #dceff5; border: 1px solid #cee6f0; border-radius: 14px 14px 6px 6px; box-shadow: inset 0 2px 0 #fff; z-index: 3; }
.mr-podium-label > b { font-size: 25px; line-height: 1; }
.mr-podium-label > .mr-icon { width: 24px; height: 24px; }
.mr-results-table { border: 1px solid #dae8ef; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 8px 22px #4e779404; }
.mr-results-table > .mr-section-heading { margin: 0; padding: 21px 24px 16px; border-bottom: 1px solid #e6eff3; }
.mr-results-table .mr-section-heading h2 { font-size: 15px; }
.mr-result-row { display: flex; align-items: center; gap: 15px; min-height: 58px; padding: 14px 25px; border-bottom: 1px solid #edf3f5; }
.mr-result-row:last-child { border: 0; }
.mr-result-row.mr-result-self { background: linear-gradient(90deg, #eaf8fa, #f2fbfd); }
.mr-result-place { color: #9bb5c3; font-size: 15px; width: 26px; flex: 0 0 auto; }
.mr-result-self .mr-result-place { color: #3f9fbb; }
.mr-result-driver { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.mr-result-driver > strong { overflow-wrap: anywhere; font-size: 12px; color: #668b9f; }
.mr-result-self .mr-result-driver > strong { color: #428aa6; }
.mr-result-driver > small { font-size: 5px; letter-spacing: .5px; }
.mr-result-dot { width: 10px; height: 10px; background: var(--mr-paint); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #cfe2e8; flex: 0 0 auto; }
.mr-result-kart { width: 82px; flex: 0 0 auto; font-size: 9px; color: #a0b3be; }
.mr-result-time { min-width: 80px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; color: #88a7b7; font-weight: 400; }
.mr-result-self .mr-result-time { color: #468caa; font-weight: 600; }
.mr-result-actions { display: flex; align-items: center; justify-content: center; gap: 15px; padding-top: 26px; }
.mr-result-actions > .mr-button { min-width: 181px; min-height: 44px; }
.mr-result-actions > span { max-width: 300px; font-size: 10px; line-height: 1.7; color: #91adbc; }
.mr-result-footer { text-align: center; font-size: 9px; color: #a1b7c3; margin-top: 18px !important; }

/* Dialogs and messages. */
.mr-toast { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 36px); border: 1px solid #6e9daf55; padding: 13px 20px; border-radius: 13px; background: #38677deb; color: #f6fdff; box-shadow: 0 7px 30px #244e7124; z-index: 1100; text-align: center; line-height: 1.6; font-size: 12px; pointer-events: none; }
.mr-toast-error { background: #9c7264ee; border-color: #ddb3a86b; }
.mr-dialog-backdrop { position: absolute; inset: 0; background: #173b546e; backdrop-filter: blur(7px); display: flex; align-items: center; justify-content: center; padding: 25px; overflow-y: auto; overscroll-behavior: contain; z-index: 1000; }
.mr-dialog { width: min(412px, 100%); padding: 29px; border: 1px solid #dbeff7; border-radius: 24px; background: #fcffff; box-shadow: 0 17px 65px #163c6150; color: #688a9d; max-height: 100%; overflow: auto; scrollbar-width: thin; }
.mr-dialog-symbol { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 17px; background: #e8f6f9; border-radius: 15px; color: #70b3c8; }
.mr-dialog-symbol > .mr-icon { height: 23px; width: 23px; }
.mr-dialog h2 { font-size: 26px; letter-spacing: -.8px; line-height: 1.2; color: #4c829a; font-weight: 600; margin-bottom: 14px !important; }
.mr-dialog > p { color: #85a1b1; font-size: 12px; line-height: 1.8; margin-bottom: 17px !important; }
.mr-dialog-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 23px; }
.mr-dialog-actions > .mr-button { width: 100%; flex: 1 1 100%; }
.mr-dialog-actions > .mr-text-button { flex: 1; min-width: 120px; margin-top: 4px; }
.mr-dialog > p.mr-dialog-note { font-size: 10px; padding: 11px 13px; border-radius: 9px; background: #f2f8fb; color: #7298ab; }
.mr-controls-dialog { width: min(480px, 100%); }
.mr-control-grid { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 0 12px; padding-top: 5px; }
.mr-control-grid > span { min-height: 34px; padding: 7px 0; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid #edf3f5; color: #8aa7b6; font-size: 11px; }
.mr-control-grid > span:nth-child(even) { justify-content: end; font-size: 9px; }
.mr-control-tip { display: flex; align-items: start; gap: 10px; padding: 13px 14px; margin: 18px 0 14px; border: 1px solid #f2e1c4; border-radius: 11px; background: #fffaf1; color: #b19469; }
.mr-control-tip > .mr-icon { width: 19px; height: 19px; margin-top: 1px; }
.mr-control-tip > p { font-size: 10px; line-height: 1.8; }
.mr-dialog p.mr-controller-note { font-size: 9px; line-height: 1.9; margin-bottom: 9px !important; color: #9bb1bd; }
.mr-controller-note > strong { color: #7096a9; font-weight: 600; }
.mr-copy-field { display: block; width: 100%; padding: 11px 13px; background: #f3f9fc; border: 1px solid #d5e7ef; color: #4988a3; border-radius: 9px; font-size: 11px !important; }
@keyframes mr-spin { to { transform: rotate(360deg); } }
@keyframes mr-kart-hover { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-5px) rotate(.8deg); } }
@keyframes mr-driver-hover { 0%, 100% { translate: 0 0; rotate: -.5deg; } 50% { translate: 0 -5px; rotate: .8deg; } }

@media (max-width: 1000px) {
  .mr-home { padding-left: 25px; padding-right: 25px; }
  .mr-setup { grid-template-columns: 185px minmax(0, 1fr); }
  .mr-driver-panel { padding-left: 17px; padding-right: 17px; }
  .mr-palette { gap: 4px; }
  .mr-color { width: 21px; height: 21px; }
  .mr-options { padding: 24px 21px; }
  .mr-course-grid, .mr-kart-grid { gap: 9px; }
  .mr-course-art { height: 88px; }
  .mr-course-info { padding: 11px 9px 9px; }
  .mr-course-info > strong { font-size: 11px; }
  .mr-kart-choice { padding-left: 9px; padding-right: 9px; }
  .mr-kart-stats > span { gap: 5px; }
  .mr-kart-stats i { width: 7px; }
  .mr-kart-description > small { font-size: 7px; }
  .mr-race-options { gap: 12px; }
  .mr-segmented button { font-size: 9px !important; padding-left: 6px; padding-right: 6px; }
  .mr-section-heading > span { font-size: 8px; }
  .mr-online-form { gap: 18px; }
}
@media (max-width: 760px) {
  .mr-header { flex-basis: 65px; padding: 10px 22px; gap: 12px; }
  .mr-brand { gap: 5px; }
  .mr-brand > .mr-icon { height: 29px; width: 26px; }
  .mr-brand > span { gap: 7px; }
  .mr-brand b { font-size: 26px; }
  .mr-brand strong { font-size: 13px; letter-spacing: 1.2px; }
  .mr-home-button { font-size: 10px !important; min-height: 34px; padding: 7px 12px; }
  .mr-home-button .mr-icon { width: 13px; height: 13px; }
  .mr-guide-button { padding: 8px; min-height: 31px; }
  .mr-guide-button > span { display: none; }
  .mr-header-tools { gap: 5px; }
  .mr-icon-button { height: 31px; width: 29px; }
  .mr-home { padding: 23px 20px 19px; }
  .mr-hero { padding: 0 5px; min-height: 193px; margin-bottom: 23px; gap: 10px; }
  .mr-hero-copy h1 { font-size: 38px; letter-spacing: -1.3px; margin-top: 10px !important; margin-bottom: 11px !important; }
  .mr-hero-copy > .mr-eyebrow { font-size: 6px; letter-spacing: 1.5px; }
  .mr-hero-copy > p { font-size: 10px; }
  .mr-hero-facts { gap: 9px; font-size: 7px; margin-top: 14px; }
  .mr-hero-facts .mr-icon { width: 11px; height: 11px; }
  .mr-hero-facts > span:last-child { display: none; }
  .mr-hero-stage { height: 182px; }
  .mr-hero-kart { height: 183px; width: 280px; max-width: 112%; top: -5px; }
  .mr-stage-tag { font-size: 5px; letter-spacing: 1.5px; bottom: 1px; right: 0; }
  .mr-hero-checker { width: 30px; height: 20px; top: 4%; right: 1%; background-size: 10px 10px; }
  .mr-setup { grid-template-columns: 1fr; border-radius: 20px; }
  .mr-driver-panel { display: grid; grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; gap: 0 17px; text-align: left; padding: 20px 22px; border-right: 0; border-bottom: 1px solid #dfebef; }
  .mr-driver-panel > .mr-eyebrow { display: none; }
  .mr-driver-portrait { grid-column: 1; grid-row: 1/4; height: 69px; width: 64px; padding: 2px; margin: 0; }
  .mr-driver-portrait::before { inset: 1px -1px; box-shadow: 0 0 0 5px #e8f5f7; }
  .mr-driver-panel h2 { grid-column: 2; grid-row: 1; align-self: end; font-size: 20px; margin-bottom: 3px !important; }
  .mr-driver-panel > p { display: none; }
  .mr-driver-panel > .mr-text-button { grid-column: 2; grid-row: 2; align-self: start; justify-self: start; font-size: 9px !important; margin: 0; padding: 4px 0; }
  .mr-driver-panel > .mr-driver-name { grid-column: 2; grid-row: 2; margin-top: 3px; width: 150px; }
  .mr-driver-name > span { display: none; }
  .mr-driver-name input { height: 32px; padding: 5px 9px; font-size: 10px !important; }
  .mr-driver-panel > .mr-driver-name + .mr-text-button { grid-row: 3; margin-top: 3px; }
  .mr-driver-panel > .mr-text-button + .mr-driver-paint { grid-column: 3; grid-row: 1/4; padding: 0; border: 0; margin: 0; align-self: center; }
  .mr-driver-paint > span { font-size: 6px; letter-spacing: 1.4px; text-align: center; margin-bottom: 9px; }
  .mr-palette { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .mr-color { width: 22px; height: 22px; }
  .mr-options { padding: 23px; }
  .mr-course-art { height: 104px; }
  .mr-course-info > strong { font-size: 12px; }
  .mr-course-info { padding: 11px 11px 10px; }
  .mr-course-grid, .mr-kart-grid { gap: 12px; }
  .mr-kart-choice { padding-left: 12px; padding-right: 12px; }
  .mr-kart-description > small { font-size: 8px; }
  .mr-kart-stats i { width: 9px; }
  .mr-race-options { gap: 17px; }
  .mr-segmented button { font-size: 10px !important; }
  .mr-online-heading { padding: 23px 24px 0; }
  .mr-online-heading > div:first-child { grid-template-columns: 1fr; gap: 5px; }
  .mr-online-heading p { grid-column: 1; grid-row: 3; max-width: none; font-size: 9px; }
  .mr-online-tabs { gap: 25px; padding-top: 11px; }
  .mr-online-tabs > button { font-size: 10px !important; min-height: 40px; }
  #mr-online-panel { padding: 21px 24px 23px; }
  .mr-online-form { grid-template-columns: 1fr 1.1fr; gap: 17px; }
  .mr-online-form > .mr-button { grid-column: 1/3; width: 100%; justify-content: center; }
  .mr-online-form > .mr-button .mr-icon { margin-left: 7px; }
  .mr-online-footnote { font-size: 8px; }
  .mr-home-footer { font-size: 7px; }
  .mr-home-footer > span:last-child { display: none; }
  .mr-waiting { padding: 28px 22px 21px; }
  .mr-waiting-heading { margin-bottom: 23px; gap: 15px; }
  .mr-waiting-heading h1 { font-size: 28px; }
  .mr-waiting-heading p { font-size: 10px; line-height: 1.7; }
  .mr-waiting-heading .mr-eyebrow { font-size: 6px; }
  .mr-player-count { padding: 12px; font-size: 12px; gap: 6px; }
  .mr-player-count .mr-icon { width: 16px; height: 16px; }
  .mr-waiting-grid { grid-template-columns: 1fr; gap: 16px; }
  .mr-invite-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 20px 23px; border-radius: 17px; }
  .mr-room-course { grid-column: 1/3; height: 100px; width: calc(100% + 46px); margin: -20px -23px 18px; }
  .mr-invite-card > .mr-eyebrow { grid-column: 1; grid-row: 2; font-size: 6px; }
  .mr-big-code { grid-column: 1; grid-row: 3; font-size: 30px; letter-spacing: 4px; margin: 9px 0 0; padding-left: 0; }
  .mr-invite-card > .mr-button { grid-column: 2; grid-row: 2/4; font-size: 11px !important; padding: 9px 10px; white-space: nowrap; }
  .mr-invite-card > .mr-text-button { grid-column: 2; grid-row: 4; margin-top: 4px; }
  .mr-invite-card > p { grid-column: 1/3; font-size: 8px; text-align: left; margin-top: 11px !important; }
  .mr-room-rules { grid-column: 1/3; margin-top: 13px; padding-top: 13px; justify-content: start; font-size: 8px; }
  .mr-roster-card { padding: 23px; }
  .mr-roster-player { padding: 12px 0; }
  .mr-connection-footer { font-size: 8px; }
  .mr-connection-footer > span:last-child { display: none; }
  .mr-race-header { flex-basis: 55px; }
  .mr-race-top-hud { top: 14px; left: 14px; gap: 7px; }
  .mr-position { min-width: 88px; padding: 7px 10px; border-radius: 14px; }
  .mr-position > b { font-size: 32px; letter-spacing: -2px; }
  .mr-position > span { font-size: 12px; }
  .mr-position > small { font-size: 8px; margin-left: 8px; }
  .mr-lap-pill, .mr-time-pill { min-height: 51px; padding: 7px 11px; border-radius: 13px; }
  .mr-lap-pill > span, .mr-time-pill > span { font-size: 6px; letter-spacing: 1px; }
  .mr-lap-pill > strong { font-size: 18px; }
  .mr-time-pill { min-width: 95px; }
  .mr-time-pill > strong { font-size: 17px; }
  .mr-race-course { top: 23px; right: 15px; }
  .mr-race-course > strong { font-size: 11px; }
  .mr-race-course > span { font-size: 7px; }
  .mr-minimap { width: 110px; height: 110px; left: 16px; bottom: 32px; border-radius: 21px; }
  .mr-driving-hud { right: 16px; bottom: 32px; gap: 12px; padding: 11px 14px; border-radius: 17px; }
  .mr-meters { width: 162px; padding-left: 12px; }
  .mr-speed { min-width: 69px; }
  .mr-speed > strong { font-size: 29px; }
  .mr-results { padding: 28px 22px 24px; }
  .mr-results-hero { gap: 12px; padding: 0 3px; min-height: 220px; margin-bottom: 21px; }
  .mr-result-copy h1 { font-size: 31px; margin-top: 9px !important; }
  .mr-result-copy > .mr-eyebrow { font-size: 6px; letter-spacing: 1.3px; }
  .mr-result-copy > p { font-size: 10px; }
  .mr-result-metrics { gap: 24px; margin-top: 17px; }
  .mr-result-metrics > div > strong { font-size: 25px; }
  .mr-result-art { height: 204px; }
  .mr-best-badge { font-size: 8px; padding: 6px 9px; margin-top: 14px; }
  .mr-best-badge > .mr-icon { width: 14px; height: 14px; }
  .mr-podium-label { width: 60px; height: 38px; }
  .mr-podium-label > b { font-size: 22px; }
  .mr-result-kart { width: 61px; }
  .mr-result-row { gap: 10px; padding: 12px 20px; min-height: 53px; }
  .mr-results-table > .mr-section-heading { padding: 18px 20px 15px; }
}
@media (max-width: 500px) {
  .mr-header { padding-left: 16px; padding-right: 16px; gap: 9px; }
  .mr-home-button { padding: 7px 10px; gap: 6px; font-size: 9px !important; }
  .mr-brand > .mr-icon { display: none; }
  .mr-brand > span { flex-direction: column; align-items: center; gap: 2px; }
  .mr-brand b { font-size: 23px; line-height: .9; padding-right: 2px; }
  .mr-brand strong { font-size: 8px; letter-spacing: 1.7px; }
  .mr-header-tools { gap: 2px; }
  .mr-icon-button { width: 27px; }
  .mr-home { padding: 19px 15px; }
  .mr-hero { min-height: 182px; gap: 0; padding: 0 3px; grid-template-columns: 1fr .9fr; margin-bottom: 19px; }
  .mr-hero-copy h1 { font-size: 34px; }
  .mr-hero-copy > .mr-eyebrow { font-size: 5px; letter-spacing: 1.05px; }
  .mr-hero-copy > p { font-size: 9px; }
  .mr-hero-facts { gap: 7px; font-size: 6px; }
  .mr-hero-facts > span { gap: 3px; }
  .mr-hero-facts .mr-icon { width: 9px; height: 9px; }
  .mr-hero-stage { height: 163px; margin-left: -16px; margin-right: -2px; }
  .mr-hero-kart { width: 235px; max-width: 125%; height: 157px; top: 5px; }
  .mr-stage-ring { inset: 14% -4% 2%; }
  .mr-stage-tag { bottom: 0; font-size: 4px; letter-spacing: 1px; right: 1%; }
  .mr-hero-checker { right: 3%; top: 9%; width: 24px; height: 17px; background-size: 8px 8px; }
  .mr-driver-panel { grid-template-columns: 51px 1fr auto; gap: 0 13px; padding: 18px; }
  .mr-driver-portrait { width: 50px; height: 57px; }
  .mr-driver-panel h2 { font-size: 18px; }
  .mr-driver-panel > .mr-driver-name { width: 133px; }
  .mr-driver-panel > .mr-text-button { font-size: 8px !important; }
  .mr-driver-panel > .mr-text-button .mr-icon { width: 12px; height: 12px; }
  .mr-driver-paint > span { font-size: 5px; letter-spacing: .8px; }
  .mr-palette { gap: 5px; }
  .mr-color { width: 20px; height: 20px; }
  .mr-color .mr-icon { width: 11px; height: 11px; }
  .mr-options { padding: 20px 16px; }
  .mr-section-heading { gap: 10px; margin-bottom: 12px; }
  .mr-section-heading > span { display: none; }
  .mr-section-heading h2 { font-size: 14px; }
  .mr-step { width: 21px; height: 21px; font-size: 8px; border-radius: 7px; }
  .mr-course-grid { grid-template-columns: 1fr; gap: 10px; }
  .mr-course { display: grid; grid-template-columns: 107px 1fr; align-items: stretch; border-radius: 12px; }
  .mr-course-art { height: 93px; }
  .mr-course-info { padding: 12px 14px 11px; }
  .mr-course-info > strong { font-size: 13px; }
  .mr-course-info > small { font-size: 9px; margin-top: 2px; }
  .mr-course-best { font-size: 8px; margin-top: 9px; padding-top: 7px; }
  .mr-course-check { width: 19px; height: 19px; right: 6px; bottom: 6px; }
  .mr-course-number { top: 6px; left: 6px; height: 19px; width: 19px; font-size: 7px; }
  .mr-kart-heading { margin-top: 22px; }
  .mr-kart-grid { gap: 7px; }
  .mr-kart-choice { padding: 10px 7px; border-radius: 11px; }
  .mr-kart-mini { width: 90px; height: 58px; margin: -9px -12px 0; }
  .mr-kart-description > strong { font-size: 10px; }
  .mr-kart-description > strong .mr-icon { width: 11px; height: 11px; }
  .mr-kart-description > small { white-space: normal; min-height: 22px; font-size: 6px; line-height: 1.7; }
  .mr-kart-stats { gap: 5px; margin-top: 9px; }
  .mr-kart-stats > span { gap: 4px; }
  .mr-kart-stats small { font-size: 6px; }
  .mr-kart-stats > span > span { gap: 2px; }
  .mr-kart-stats i { width: 5px; height: 3px; }
  .mr-race-options { grid-template-columns: 1fr; gap: 15px; margin-top: 20px; }
  .mr-race-options legend { font-size: 9px; margin-bottom: 7px; }
  .mr-segmented button { min-height: 31px; font-size: 10px !important; }
  .mr-start-row { flex-direction: column; align-items: stretch; padding-top: 16px; margin-top: 19px; gap: 13px; }
  .mr-start-row > p { font-size: 9px; line-height: 1.6; text-align: center; }
  .mr-start-row > p > br { display: none; }
  .mr-start-button { min-height: 45px; padding-left: 19px; font-size: 13px !important; }
  .mr-online-section { border-radius: 18px; margin-top: 20px; }
  .mr-online-heading { padding: 21px 19px 0; }
  .mr-online-heading .mr-eyebrow { font-size: 6px; letter-spacing: 1.3px; }
  .mr-online-heading h2 { font-size: 20px; gap: 7px; }
  .mr-online-heading h2 > .mr-icon { height: 20px; width: 20px; }
  .mr-online-heading p { font-size: 9px; line-height: 1.7; }
  .mr-online-tabs { gap: 0; justify-content: space-between; padding-top: 11px; }
  .mr-online-tabs > button { gap: 5px; font-size: 9px !important; min-height: 43px; }
  .mr-online-tabs > button > .mr-icon { width: 12px; height: 12px; }
  #mr-online-panel { padding: 20px 19px; }
  .mr-online-form { grid-template-columns: 1fr; gap: 15px; }
  .mr-online-form > .mr-button { grid-column: 1; }
  .mr-online-form .mr-room-visibility .mr-segmented { height: 42px; }
  .mr-online-form > p { font-size: 10px; padding-bottom: 0; }
  .mr-online-form > p > br { display: none; }
  .mr-online-note { font-size: 10px; padding: 11px 12px; flex-wrap: wrap; }
  .mr-online-note > .mr-button { margin-left: 0; }
  .mr-room-browser-head > span { max-width: 182px; font-size: 8px; }
  .mr-room-card { gap: 10px; }
  .mr-room-card-art { width: 54px; height: 47px; }
  .mr-room-card > div > strong { font-size: 11px; }
  .mr-room-card > div > span { font-size: 8px; }
  .mr-room-card > .mr-button { padding: 7px 11px; font-size: 10px !important; gap: 4px; }
  .mr-room-card .mr-button .mr-icon { width: 12px; height: 12px; }
  .mr-home-footer { margin-top: 17px; font-size: 7px; }
  .mr-waiting { padding: 24px 17px 20px; }
  .mr-waiting-heading { gap: 11px; align-items: start; }
  .mr-waiting-heading h1 { font-size: 25px; }
  .mr-waiting-heading .mr-eyebrow { font-size: 5px; letter-spacing: 1.3px; }
  .mr-waiting-heading p { font-size: 9px; }
  .mr-player-count { padding: 9px; font-size: 10px; gap: 4px; border-radius: 11px; margin-top: 17px; }
  .mr-player-count > .mr-icon { display: none; }
  .mr-invite-card { padding: 19px; gap: 0 10px; }
  .mr-room-course { width: calc(100% + 38px); margin: -19px -19px 18px; }
  .mr-big-code { font-size: 26px; letter-spacing: 3px; }
  .mr-invite-card > .mr-button { font-size: 10px !important; gap: 5px; padding: 9px 8px; }
  .mr-invite-card > .mr-button > .mr-icon { width: 13px; height: 13px; }
  .mr-roster-card { padding: 19px; border-radius: 17px; }
  .mr-roster-player { gap: 10px; }
  .mr-roster-avatar { width: 40px; height: 43px; border-radius: 13px; }
  .mr-roster-player strong { font-size: 12px; gap: 6px; }
  .mr-ready { font-size: 8px; gap: 3px; }
  .mr-computer-row { font-size: 9px; padding-bottom: 13px; }
  .mr-room-start { padding-top: 15px; }
  .mr-race-header .mr-brand > span { gap: 2px; }
  .mr-race-header .mr-brand b { font-size: 22px; }
  .mr-race-header .mr-brand strong { font-size: 7px; }
  .mr-race-top-hud { top: 12px; left: 12px; gap: 6px; }
  .mr-race-course { top: 76px; left: 15px; right: auto; align-items: start; }
  .mr-race-course > strong { font-size: 10px; }
  .mr-race-course > span { font-size: 7px; }
  .mr-race-course > span { display: none; }
  .mr-position { min-width: 86px; }
  .mr-lap-pill { min-width: 72px; }
  .mr-time-pill { min-width: 95px; }
  .mr-countdown > span { font-size: 8px; letter-spacing: 1.4px; }
  .mr-countdown > b { height: 106px; min-width: 106px; font-size: 67px; border-width: 4px; }
  .mr-countdown.mr-go > b { font-size: 52px; }
  .mr-minimap { display: none; }
  .mr-driving-hud { left: 50%; right: auto; transform: translateX(-50%); bottom: 33px; min-width: 268px; gap: 13px; }
  .mr-race-key-hint { font-size: 6px; gap: 4px; bottom: 12px; }
  .mr-race-key-hint > kbd { font-size: 6px !important; padding: 2px 3px !important; }
  .mr-touch-mode .mr-driving-hud { bottom: 121px; min-width: 0; padding: 8px 13px; gap: 9px; }
  .mr-touch-mode .mr-speed { min-width: 64px; }
  .mr-touch-mode .mr-meters { width: 136px; }
  .mr-race-message { padding: 15px 19px; gap: 10px; border-radius: 19px; }
  .mr-race-message > strong { font-size: 24px; }
  .mr-race-message > span { font-size: 13px; }
  .mr-race-message > .mr-icon { height: 23px; width: 23px; }
  .mr-results { padding: 24px 17px 22px; }
  .mr-results-hero { grid-template-columns: 1fr; text-align: center; gap: 17px; padding: 0 5px; }
  .mr-result-copy h1 { font-size: 32px; }
  .mr-result-copy > p { font-size: 11px; }
  .mr-result-copy > .mr-eyebrow { font-size: 7px; }
  .mr-result-metrics { justify-content: center; }
  .mr-result-art { width: 236px; height: 177px; margin: 0 auto 5px; }
  .mr-result-art > .mr-kart-art { left: -2%; width: 104%; }
  .mr-result-portrait { left: 39%; }
  .mr-podium-label { width: 60px; height: 35px; }
  .mr-results-table { border-radius: 16px; }
  .mr-results-table > .mr-section-heading { padding: 17px 16px 14px; gap: 8px; }
  .mr-results-table > .mr-section-heading > span { display: block; font-size: 7px; max-width: 120px; text-align: right; }
  .mr-results-table > .mr-section-heading h2 { font-size: 13px; }
  .mr-result-row { padding: 12px 15px; gap: 7px; min-height: 50px; }
  .mr-result-place { width: 17px; font-size: 13px; }
  .mr-result-driver { gap: 6px; }
  .mr-result-driver > strong { font-size: 10px; }
  .mr-result-driver > small { font-size: 4px; padding: 3px 4px; letter-spacing: .1px; }
  .mr-result-dot { width: 8px; height: 8px; }
  .mr-result-kart { display: none; }
  .mr-result-time { font-size: 10px; min-width: 61px; }
  .mr-result-actions { gap: 11px; padding-top: 21px; flex-wrap: wrap; }
  .mr-result-actions > .mr-button { min-width: 0; flex: 1; font-size: 11px !important; padding-left: 12px; padding-right: 12px; }
  .mr-result-actions > .mr-button > .mr-icon { height: 14px; width: 14px; }
  .mr-result-actions > span { font-size: 9px; text-align: center; }
  .mr-result-footer { font-size: 8px; line-height: 1.7; }
  .mr-dialog-backdrop { padding: 18px; }
  .mr-dialog { padding: 24px; border-radius: 21px; }
  .mr-dialog h2 { font-size: 25px; }
  .mr-dialog > p { font-size: 11px; }
  .mr-control-grid { gap: 0 9px; }
  .mr-control-grid > span { font-size: 10px; }
  .mr-control-grid > span:nth-child(even) { font-size: 8px; }
  .mr-control-grid kbd { min-width: 20px !important; font-size: 9px !important; }
  .mr-control-tip { gap: 8px; padding: 12px; }
  .mr-control-tip > p { font-size: 9px; }
  .mr-control-tip > .mr-icon { height: 17px; width: 17px; }
  .mr-dialog p.mr-controller-note { font-size: 8px; }
  .mr-toast { bottom: 18px; font-size: 11px; padding: 12px 16px; }
}
@media (pointer: coarse) {
  .mr-minimap, .mr-race-key-hint { display: none; }
  .mr-driving-hud { bottom: 127px; left: 50%; right: auto; transform: translateX(-50%); padding: 9px 14px; gap: 11px; }
  .mr-driving-hud .mr-speed { min-width: 70px; }
  .mr-driving-hud .mr-speed > strong { font-size: 28px; }
  .mr-driving-hud .mr-meters { width: 139px; padding-left: 10px; }
  .mr-driving-hud .mr-drift-line, .mr-driving-hud .mr-meter-line kbd { display: none; }
}
@media (max-height: 650px) and (min-width: 761px) {
  .mr-header { flex-basis: 61px; padding-top: 8px; padding-bottom: 8px; }
  .mr-brand b { font-size: 27px; }
  .mr-brand strong { font-size: 14px; }
  .mr-brand > .mr-icon { width: 28px; height: 31px; }
  .mr-home { padding-top: 20px; }
  .mr-hero { min-height: 176px; margin-bottom: 20px; }
  .mr-hero-copy h1 { font-size: 40px; margin-top: 7px !important; margin-bottom: 8px !important; }
  .mr-hero-copy > p { font-size: 10px; }
  .mr-hero-facts { margin-top: 12px; }
  .mr-hero-stage { height: 178px; }
  .mr-hero-kart { width: 284px; height: 178px; }
  .mr-stage-tag { bottom: -2px; }
  .mr-waiting { padding-top: 27px; }
  .mr-waiting-heading { margin-bottom: 24px; }
  .mr-waiting-heading h1 { font-size: 31px; }
  .mr-room-course { height: 117px; margin-bottom: 20px; }
  .mr-invite-card, .mr-roster-card { padding-top: 22px; padding-bottom: 22px; }
  .mr-big-code { font-size: 31px; margin-top: 10px; margin-bottom: 18px; }
  .mr-invite-card > p { margin-top: 11px !important; }
  .mr-room-rules { margin-top: 16px; padding-top: 14px; }
  .mr-results { padding-top: 26px; }
  .mr-results-hero { min-height: 215px; }
  .mr-result-art { height: 216px; }
  .mr-result-copy h1 { font-size: 33px; }
  .mr-result-metrics { margin-top: 18px; }
}
@media (max-height: 500px) and (min-width: 501px) {
  .mr-race-header { flex-basis: 47px; padding: 5px 18px; }
  .mr-race-header .mr-home-button { min-height: 31px; padding-top: 5px; padding-bottom: 5px; font-size: 9px !important; }
  .mr-race-header .mr-brand > .mr-icon { width: 22px; height: 24px; }
  .mr-race-header .mr-brand b { font-size: 23px; }
  .mr-race-header .mr-brand strong { font-size: 12px; }
  .mr-race-top-hud { top: 10px; left: 13px; gap: 6px; }
  .mr-position { min-width: 77px; padding: 4px 10px; border-radius: 12px; }
  .mr-position > b { font-size: 28px; }
  .mr-position > span { font-size: 11px; }
  .mr-position > small { font-size: 7px; margin-left: 6px; }
  .mr-lap-pill, .mr-time-pill { padding: 5px 10px; min-height: 42px; border-radius: 11px; }
  .mr-time-pill { min-width: 91px; }
  .mr-lap-pill > strong, .mr-time-pill > strong { font-size: 16px; }
  .mr-race-course { top: 15px; right: 14px; }
  .mr-race-course > strong { font-size: 10px; }
  .mr-countdown { gap: 8px; }
  .mr-countdown > span { font-size: 7px; letter-spacing: 1px; }
  .mr-countdown > b { height: 86px; min-width: 86px; font-size: 54px; border-width: 3px; }
  .mr-countdown.mr-go > b { font-size: 42px; }
  .mr-minimap { width: 89px; height: 89px; left: 14px; bottom: 22px; border-radius: 17px; }
  .mr-driving-hud { bottom: 23px; padding: 8px 12px; gap: 10px; border-radius: 13px; }
  .mr-speed { min-width: 64px; }
  .mr-speed > strong { font-size: 27px; }
  .mr-meters { width: 147px; padding-left: 10px; }
  .mr-race-key-hint { font-size: 6px; bottom: 5px; gap: 4px; }
  .mr-race-key-hint > kbd { font-size: 6px !important; padding: 1px 3px !important; }
  .mr-touch-mode .mr-driving-hud { bottom: 17px; }
  .mr-touch-mode .mr-driving-hud .mr-speed { min-width: 62px; }
  .mr-touch-mode .mr-driving-hud .mr-meters { width: 124px; }
  .mr-race-message { padding: 11px 19px; gap: 10px; }
  .mr-race-message > strong { font-size: 26px; }
  .mr-race-message > span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #racing-view *, #racing-view *::before, #racing-view *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.mr-reduced-motion *, .mr-reduced-motion *::before, .mr-reduced-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:root:not(.motion-enabled) #racing-view * { animation: none !important; transition: none !important; }
