.race-winner-app,
.race-winner-manager,
.race-winner-dashboard {
    --rw-bg: #eff8fb;
    --rw-panel: #fff;
    --rw-panel-warm: #ffd8cd;
    --rw-mint: #a8ead7;
    --rw-blue: #5da5f5;
    --rw-blue-dark: #335fc8;
    --rw-text: #192331;
    --rw-muted: #647085;
    --rw-camera: 0px;
    --rw-speed: 0px;
    --rw-bg-image: none;
    --rw-cloud-image: none;
    --rw-cloud-scale: 100%;
    --rw-cloud-opacity: 0.85;
    --rw-ground-top: #74bf58;
    --rw-ground-bottom: #4e963e;
    --rw-ground-line: 255, 255, 255;
    --rw-ground-shadow: rgba(30, 99, 38, 0.22);
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(100%, 1280px);
    margin: 0 auto;
    color: var(--rw-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.admin-bar:has(.race-winner-app.rw-game-only),
body.admin-bar:has(.race-winner-manager),
html.rw-fullscreen-race-page body.admin-bar,
html.rw-setup-page body.admin-bar {
    padding-top: 0 !important;
}

html:has(.race-winner-app.rw-game-only),
html:has(.race-winner-manager),
html.rw-fullscreen-race-page,
html.rw-setup-page {
    margin-top: 0 !important;
}

html.rw-fullscreen-race-page,
html.rw-fullscreen-race-page body,
body:has(.race-winner-app.rw-game-only) {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden !important;
    overscroll-behavior: none;
}

body:has(.race-winner-app.rw-game-only) #wpadminbar,
body:has(.race-winner-manager) #wpadminbar,
html.rw-fullscreen-race-page #wpadminbar,
html.rw-setup-page #wpadminbar {
    display: none !important;
}

.race-winner-app *,
.race-winner-manager *,
.race-winner-dashboard * {
    box-sizing: border-box;
}

.rw-panel {
    border: 1px solid rgba(38, 50, 66, 0.12);
    border-radius: 8px;
    background: var(--rw-panel);
    padding: 14px;
    box-shadow: 0 12px 28px rgba(34, 62, 92, 0.08);
}

.race-winner-signup,
.race-winner-dashboard {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.race-winner-signup {
    max-width: 460px;
}

.race-winner-dashboard {
    display: grid;
    gap: 16px;
}

.rw-dashboard-panel {
    display: grid;
    gap: 14px;
    background:
        linear-gradient(135deg, rgba(168, 234, 215, 0.62), rgba(255, 255, 255, 0.96)),
        #fff;
}

.rw-dashboard-copy {
    margin: 0;
    color: #40505d;
    font-size: 14px;
    font-weight: 750;
}

.rw-share-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
    gap: 10px;
    align-items: end;
}

.rw-share-box .rw-field {
    margin-bottom: 0;
}

.rw-share-box-private input {
    border-color: rgba(25, 35, 49, 0.16);
    background: #f6fafb;
}

.rw-setup {
    display: grid;
    gap: 14px;
    align-items: start;
    background: linear-gradient(135deg, #fff7f0 0%, #e9fbf5 100%);
}

.race-winner-manager {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    width: 100%;
}

.race-winner-manager .rw-audit-fold {
    grid-column: 1 / -1;
}

.rw-titlebar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rw-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #247ba0;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.rw-manager-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 14px;
    align-items: stretch;
}

.rw-manager-side {
    display: grid;
    gap: 12px;
}

.rw-manager-card {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(26, 37, 52, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 12px;
}

.rw-roster-card {
    min-height: 100%;
}

.rw-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.rw-card-head h3,
.rw-save-card h3 {
    margin: 5px 0 0;
    color: #273244;
    font-size: 16px;
    line-height: 1.1;
}

.rw-step {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ffd144;
    color: #172436;
    font-size: 13px;
    font-weight: 950;
}

.rw-titlebar h2,
.rw-audit summary {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: 0;
    cursor: pointer;
}

.rw-source {
    font-size: 12px;
    font-weight: 850;
    color: #145f4e;
    background: #c6f5e4;
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
}

.rw-field {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 850;
    color: #4b5362;
}

.rw-field input,
.rw-field textarea,
.rw-field select {
    width: 100%;
    border: 1px solid rgba(26, 37, 52, 0.2);
    border-radius: 6px;
    background: #fff;
    color: var(--rw-text);
    font: 650 14px/1.35 inherit;
    padding: 9px 10px;
}

.rw-field select {
    appearance: none;
}

.rw-field textarea {
    resize: vertical;
    min-height: 300px;
    line-height: 1.42;
}

.rw-participant-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
    color: #244151;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 8px;
    text-align: center;
}

.rw-participant-count.is-warning {
    background: #fff0c2;
    color: #7b4b00;
}

.rw-grid-2,
.rw-import-row,
.rw-upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
}

.rw-import-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rw-button,
.rw-file span {
    border: 0;
    border-radius: 6px;
    min-height: 40px;
    padding: 0 14px;
    font: 900 13px/1 inherit;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.12;
    white-space: normal;
    overflow-wrap: anywhere;
}

.rw-button-primary {
    width: 100%;
    min-height: 48px;
    color: #fff;
    background: var(--rw-blue);
    box-shadow: 0 7px 0 #3d7fd1;
    text-transform: uppercase;
}

.rw-button-primary:disabled {
    cursor: wait;
    filter: grayscale(0.25);
    opacity: 0.75;
}

.rw-button-muted,
.rw-file span {
    background: var(--rw-mint);
    color: #244151;
}

.rw-file input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.rw-upload-file {
    display: block;
}

.rw-section-label {
    margin: 0 0 8px;
    color: #526071;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.rw-visibility-toggle {
    align-self: end;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
}

.rw-sprite-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
}

.rw-sprite-choice {
    border: 2px solid transparent;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.74);
    padding: 7px 4px;
    cursor: pointer;
    min-height: 64px;
}

.rw-sprite-choice.is-selected {
    border-color: var(--rw-blue-dark);
    background: #fff;
}

.rw-sprite-choice .rw-sprite-icon {
    display: grid;
    place-items: center;
    font-size: 27px;
    line-height: 1;
    min-height: 32px;
}

.rw-sprite-choice .rw-sprite-icon img {
    width: 44px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 4px 5px rgba(31, 47, 66, 0.24));
}

.rw-sprite-choice .rw-sprite-label {
    display: block;
    margin-top: 5px;
    color: #4f55c6;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rw-upload-preview {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
    padding: 8px;
    color: #40505d;
    font-size: 12px;
    font-weight: 800;
}

.rw-upload-preview small {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
}

.rw-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #40505d;
    font-size: 12px;
    font-weight: 850;
}

.rw-toggle input {
    width: 17px;
    height: 17px;
}

.rw-upload-preview img {
    width: 54px;
    height: 42px;
    object-fit: contain;
}

.rw-status {
    min-height: 20px;
    color: #673f38;
    font-size: 13px;
    font-weight: 800;
}

.rw-manager-fold {
    border: 1px solid rgba(26, 37, 52, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    overflow: hidden;
}

.rw-manager-fold summary {
    cursor: pointer;
    padding: 13px 14px;
    color: #273244;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.rw-fold-content {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.rw-race-stage {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: clamp(520px, 68svh, 760px);
    background:
        var(--rw-bg-image),
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.9) 0 7%, transparent 17%),
        radial-gradient(circle at 74% 23%, rgba(255, 255, 255, 0.72) 0 5%, transparent 15%),
        linear-gradient(180deg, #9ce4f4 0%, #eafcff 48%, #cbefff 100%);
    background-repeat: repeat-x, no-repeat, no-repeat, no-repeat;
    background-size: auto 100%, auto, auto, auto;
    background-position:
        calc(var(--rw-speed, 0px) * -0.34) bottom,
        0 0,
        0 0,
        0 0;
    box-shadow: inset 0 0 0 1px rgba(61, 92, 120, 0.15), 0 18px 42px rgba(31, 62, 95, 0.12);
}

.rw-game-only .rw-race-stage {
    min-height: 100svh;
    height: 100svh;
}

.race-winner-app.is-racing .rw-race-stage,
.race-winner-app.is-finished .rw-race-stage {
    min-height: 100svh;
}

.race-winner-app.rw-game-only {
    position: fixed;
    inset: 0;
    z-index: 999999;
    width: 100vw;
    width: 100dvw;
    max-width: none;
    height: 100svh;
    height: 100dvh;
    margin: 0;
    gap: 0;
    background: #9ce4f4;
}

.race-winner-app.rw-game-only .rw-race-stage {
    border-radius: 0;
}

.rw-race-stage::before,
.rw-race-stage::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.rw-start-overlay {
    position: absolute;
    z-index: 10;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 13px;
    padding: 28px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
}

.rw-start-overlay[hidden] {
    display: none;
}

.rw-start-overlay h2 {
    margin: 0;
    color: #172436;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rw-race-summary {
    min-height: 22px;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #40505d;
    font-size: 14px;
    font-weight: 900;
    padding: 8px 14px;
}

.rw-race-start {
    width: min(360px, 92vw);
    min-height: 58px;
    font-size: 16px;
}

.rw-game-only.is-prepping .rw-start-overlay,
.rw-game-only.is-racing .rw-start-overlay,
.rw-game-only.is-finished .rw-start-overlay {
    display: none;
}

.rw-race-stage::before {
    left: -20%;
    right: -20%;
    bottom: 58px;
    height: 230px;
    background:
        linear-gradient(135deg, transparent 0 20%, var(--rw-ground-shadow) 21% 34%, transparent 35% 100%),
        linear-gradient(45deg, transparent 0 16%, var(--rw-ground-shadow) 17% 30%, transparent 31% 100%);
    transform: translateX(calc((var(--rw-camera) * -0.08) - (var(--rw-speed) * 0.16)));
}

.rw-parallax-mid {
    position: absolute;
    z-index: 2;
    left: -35%;
    right: -35%;
    top: 0;
    bottom: 0;
    min-height: 100%;
    pointer-events: none;
    opacity: var(--rw-cloud-opacity, 0.84);
    overflow: visible;
    background:
        var(--rw-cloud-image),
        radial-gradient(ellipse at 7% 58%, rgba(255, 255, 255, 0.9) 0 13%, rgba(255, 255, 255, 0.54) 18%, transparent 34%),
        radial-gradient(ellipse at 23% 45%, rgba(255, 255, 255, 0.72) 0 14%, rgba(255, 255, 255, 0.38) 21%, transparent 36%),
        radial-gradient(ellipse at 45% 61%, rgba(255, 255, 255, 0.84) 0 15%, rgba(255, 255, 255, 0.42) 22%, transparent 38%),
        radial-gradient(ellipse at 69% 43%, rgba(255, 255, 255, 0.68) 0 13%, rgba(255, 255, 255, 0.34) 20%, transparent 35%),
        radial-gradient(ellipse at 91% 59%, rgba(255, 255, 255, 0.82) 0 15%, rgba(255, 255, 255, 0.42) 22%, transparent 38%);
    background-repeat: repeat-x;
    background-size: auto var(--rw-cloud-scale, 100%), 560px 130px, 620px 126px, 590px 140px, 640px 124px, 600px 132px;
    background-position:
        calc(var(--rw-speed) * -1.12) center,
        calc(var(--rw-speed) * -0.92) 24px,
        calc(var(--rw-speed) * -1.18) 4px,
        calc(var(--rw-speed) * -1.02) 42px,
        calc(var(--rw-speed) * -1.28) 10px,
        calc(var(--rw-speed) * -1.08) 50px;
    transform: translateX(calc(var(--rw-camera) * -0.04));
}

.rw-race-stage.rw-has-custom-clouds .rw-parallax-mid {
    background: var(--rw-cloud-image);
    background-repeat: repeat-x;
    background-size: auto var(--rw-cloud-scale, 100%);
    background-position: calc(var(--rw-speed) * -1.12) center;
    inset: 0 -35%;
    min-height: 100%;
}

.rw-race-stage.rw-has-custom-clouds .rw-parallax-mid::before,
.rw-race-stage.rw-has-custom-clouds .rw-parallax-mid::after {
    display: none;
}

.rw-parallax-mid::before,
.rw-parallax-mid::after {
    content: "";
    position: absolute;
    inset: -34px -12% -22px;
    pointer-events: none;
    background-repeat: repeat-x;
    filter: blur(2px);
}

.rw-parallax-mid::before {
    opacity: 0.76;
    background:
        radial-gradient(ellipse at 9% 55%, rgba(255, 255, 255, 0.86) 0 10%, rgba(255, 255, 255, 0.6) 16%, transparent 31%),
        radial-gradient(ellipse at 19% 50%, rgba(255, 255, 255, 0.82) 0 9%, rgba(255, 255, 255, 0.48) 15%, transparent 29%),
        radial-gradient(ellipse at 31% 58%, rgba(255, 255, 255, 0.78) 0 11%, rgba(255, 255, 255, 0.44) 18%, transparent 34%),
        radial-gradient(ellipse at 68% 48%, rgba(255, 255, 255, 0.78) 0 10%, rgba(255, 255, 255, 0.45) 17%, transparent 32%),
        radial-gradient(ellipse at 81% 56%, rgba(255, 255, 255, 0.86) 0 12%, rgba(255, 255, 255, 0.5) 19%, transparent 35%);
    background-size: 760px 142px, 760px 142px, 760px 142px, 820px 136px, 820px 136px;
    background-position:
        calc(var(--rw-speed) * -1.36) 24px,
        calc(var(--rw-speed) * -1.36) 34px,
        calc(var(--rw-speed) * -1.36) 42px,
        calc(var(--rw-speed) * -1.54) 18px,
        calc(var(--rw-speed) * -1.54) 40px;
}

.rw-parallax-mid::after {
    opacity: 0.48;
    filter: blur(4px);
    background:
        radial-gradient(ellipse at 13% 52%, rgba(255, 255, 255, 0.68) 0 12%, rgba(255, 255, 255, 0.32) 20%, transparent 37%),
        radial-gradient(ellipse at 55% 62%, rgba(255, 255, 255, 0.62) 0 14%, rgba(255, 255, 255, 0.3) 23%, transparent 40%),
        radial-gradient(ellipse at 86% 46%, rgba(255, 255, 255, 0.7) 0 13%, rgba(255, 255, 255, 0.34) 21%, transparent 38%);
    background-size: 980px 170px, 1060px 178px, 940px 160px;
    background-position:
        calc(var(--rw-speed) * -0.74) 16px,
        calc(var(--rw-speed) * -0.82) 42px,
        calc(var(--rw-speed) * -0.68) 8px;
}

.rw-backfield-racers {
    position: absolute;
    z-index: 4;
    left: 180px;
    top: 88px;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(calc((var(--rw-camera, 0px) * -1) + (var(--rw-speed, 0px) * 0.035)), 0, 0);
    transform-origin: left top;
    will-change: transform;
}

.rw-huge-ready .rw-backfield-racers,
.rw-huge-race .rw-backfield-racers {
    opacity: 0.84;
}

.rw-race-stage::after {
    left: 0;
    right: 0;
    bottom: -18px;
    height: 160px;
    background:
        repeating-linear-gradient(90deg, rgba(var(--rw-ground-line), 0.16) 0 12px, transparent 12px 40px),
        repeating-linear-gradient(90deg, var(--rw-ground-shadow) 0 6px, transparent 6px 34px),
        linear-gradient(180deg, var(--rw-ground-top) 0%, var(--rw-ground-bottom) 100%);
    box-shadow: inset 0 22px 0 rgba(255, 255, 255, 0.16);
    background-position: 0 0, calc(var(--rw-speed) * -0.95) 0, calc(var(--rw-speed) * -1.55) 22px;
    transform: none;
}

.rw-stage-toolbar {
    position: absolute;
    z-index: 8;
    top: 8px;
    left: auto;
    right: 8px;
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
    border-radius: 999px;
    background: rgba(18, 31, 45, 0.24);
    padding: 3px;
    backdrop-filter: blur(4px);
}

.rw-stage-toolbar > * {
    pointer-events: auto;
}

.rw-timer-wrap {
    order: 3;
    display: grid;
    position: relative;
    gap: 0;
    justify-items: center;
}

.rw-icon-button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    flex: 0 0 30px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #244151;
    background: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(36, 65, 81, 0.12);
}

.rw-icon-button[data-rw-pause] {
    order: 1;
}

.rw-reset-button {
    order: 2;
}

.rw-reset-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    flex-basis: 30px;
    padding: 0;
    border-radius: 999px;
    font-size: 0 !important;
    text-transform: uppercase;
}

.rw-reset-icon {
    display: block;
    width: 18px;
    height: 18px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rw-timer {
    min-width: 58px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(45, 78, 88, 0.74);
    color: #fff;
    font-weight: 950;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.rw-viewers {
    position: absolute;
    top: 34px;
    right: 0;
    min-width: 70px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #244151;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    padding: 4px 6px;
    text-align: center;
    box-shadow: 0 5px 12px rgba(36, 65, 81, 0.1);
}

.rw-hide-viewers .rw-viewers {
    display: none;
}

.rw-live-ranking {
    position: absolute;
    z-index: 7;
    top: 74px;
    left: 16px;
    width: min(190px, calc(100% - 32px));
    border-radius: 8px;
    background: rgba(25, 35, 49, 0.62);
    backdrop-filter: blur(8px);
    padding: 10px;
}

.rw-live-ranking .rw-section-label {
    color: rgba(255, 255, 255, 0.82);
}

.rw-live-ranking ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 5px;
}

.rw-live-ranking li {
    border-radius: 4px;
    background: color-mix(in srgb, var(--sprite-color, #fff) 70%, rgba(255, 255, 255, 0.22));
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    padding: 6px 8px;
}

.rw-hide-ranking .rw-live-ranking {
    display: none;
}

.rw-background-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.rw-custom-background-field {
    display: none;
}

.rw-background-choice {
    min-height: 94px;
    border: 2px solid rgba(68, 86, 103, 0.15);
    border-radius: 6px;
    background: #fff;
    color: #273244;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    text-align: left;
}

.rw-background-choice span {
    display: block;
    height: 58px;
    background-color: #daf4ff;
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: cover;
}

.rw-background-choice strong {
    display: block;
    padding: 7px 8px;
    font-size: 11px;
    line-height: 1.15;
}

.rw-background-choice.is-selected {
    border-color: #247ba0;
    box-shadow: 0 0 0 2px rgba(36, 123, 160, 0.16);
}

.rw-empty-note {
    margin: 0;
    border-radius: 6px;
    background: #f6fafb;
    color: #586878;
    font-size: 12px;
    font-weight: 800;
    padding: 10px;
}

.rw-random-background-toggle {
    border: 1px solid rgba(36, 123, 160, 0.18);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    padding: 10px 12px;
}

.rw-music-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.rw-music-choice {
    min-height: 44px;
    border: 2px solid rgba(68, 86, 103, 0.15);
    border-radius: 7px;
    background: linear-gradient(135deg, #172436, #247ba0);
    color: #fff;
    cursor: pointer;
    padding: 8px 10px;
    text-align: left;
}

.rw-music-choice strong {
    font-size: 12px;
    line-height: 1.15;
}

.rw-music-choice.is-selected {
    border-color: #ffd144;
    box-shadow: 0 0 0 2px rgba(255, 209, 68, 0.28);
}

.rw-racers {
    position: absolute;
    inset: 88px 0 64px 180px;
    z-index: 5;
    will-change: transform;
    contain: layout style;
    overflow: visible;
}

.rw-mobile-race.rw-huge-race .rw-racers::before {
    content: none;
}

.rw-racer {
    position: absolute;
    left: 0;
    top: 0;
    width: 136px;
    height: 76px;
    transform: translate3d(0, 0, 0);
    transition: filter 0.2s ease;
    will-change: transform;
    contain: layout style;
    overflow: visible;
}

.rw-huge-race .rw-racer {
    transition: none;
}

.rw-huge-race .rw-racer:not(.is-winner) {
    filter: none;
}

.rw-huge-race .rw-sprite-visual,
.rw-huge-race.rw-hide-bubbles .rw-sprite-visual {
    filter:
        hue-rotate(var(--racer-hue, 0deg))
        saturate(var(--racer-saturation, 1.14))
        brightness(var(--racer-brightness, 1)) !important;
}

.rw-huge-race .rw-live-ranking {
    backdrop-filter: none;
}

.rw-huge-race .rw-racer:not(.is-winner) .rw-racer-name {
    display: none;
}

.rw-huge-race .rw-racer.has-label .rw-racer-name {
    display: block;
}

.rw-huge-race .rw-racer .rw-racer-body {
    animation: rw-huge-racer-sway 0.72s ease-in-out infinite alternate;
}

.rw-huge-race .rw-racer .rw-racer-sprite-img {
    animation: none;
}

.rw-huge-race .rw-thrust,
.rw-huge-race .rw-thrust::before {
    filter: none !important;
}

.rw-huge-race .rw-thrust::after {
    display: none;
}

.rw-mobile-race.rw-huge-race .rw-thrust {
    width: 42px;
    height: 20px;
    opacity: 0.32;
    animation: none;
    transform: translate(-34px, -50%) scaleX(0.82);
    background:
        radial-gradient(ellipse at 78% 50%, rgba(255, 238, 150, 0.72) 0 18%, transparent 42%),
        radial-gradient(ellipse at 34% 50%, rgba(255, 129, 72, 0.46) 0 28%, transparent 66%);
}

.rw-mobile-race.rw-huge-race .rw-thrust::before,
.rw-mobile-race.rw-huge-race .rw-thrust::after {
    display: none;
}

.rw-thrust {
    position: absolute;
    z-index: 1;
    left: -12px;
    top: 27px;
    width: 58px;
    height: 30px;
    transform: translate(-42px, -50%) scaleX(var(--rw-thrust-scale, 1));
    transform-origin: right center;
    opacity: var(--rw-thrust-opacity, 0.55);
    filter: blur(0.2px) saturate(1.15);
    background:
        radial-gradient(ellipse at 82% 50%, rgba(255, 241, 119, 0.95) 0 18%, transparent 44%),
        radial-gradient(ellipse at 52% 50%, rgba(255, 125, 50, 0.88) 0 22%, transparent 58%),
        radial-gradient(ellipse at 16% 50%, rgba(96, 117, 132, 0.34) 0 30%, transparent 68%);
    clip-path: polygon(100% 20%, 22% 0, 0 48%, 24% 100%, 100% 78%);
    animation: rw-thrust-flicker 0.2s linear infinite;
}

.rw-propulsion-plasma .rw-thrust {
    width: 70px;
    background:
        radial-gradient(ellipse at 82% 50%, rgba(214, 255, 255, 0.95) 0 16%, transparent 42%),
        radial-gradient(ellipse at 50% 50%, rgba(52, 211, 255, 0.9) 0 24%, transparent 60%),
        radial-gradient(ellipse at 12% 50%, rgba(93, 95, 239, 0.42) 0 30%, transparent 70%);
}

.rw-propulsion-smoke .rw-thrust {
    width: 64px;
    opacity: calc(var(--rw-thrust-opacity, 0.55) * 0.8);
    background:
        radial-gradient(ellipse at 78% 50%, rgba(255, 255, 255, 0.42) 0 18%, transparent 45%),
        radial-gradient(ellipse at 48% 48%, rgba(116, 128, 138, 0.58) 0 26%, transparent 62%),
        radial-gradient(ellipse at 12% 54%, rgba(55, 65, 75, 0.34) 0 34%, transparent 76%);
}

.rw-propulsion-sparkle .rw-thrust {
    width: 66px;
    background:
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.95) 0 7%, transparent 13%),
        radial-gradient(circle at 57% 35%, rgba(255, 231, 92, 0.9) 0 8%, transparent 15%),
        radial-gradient(circle at 38% 63%, rgba(255, 106, 193, 0.85) 0 7%, transparent 14%),
        radial-gradient(circle at 16% 44%, rgba(113, 211, 255, 0.78) 0 8%, transparent 16%);
    clip-path: none;
}

.rw-racer.is-done .rw-thrust,
.race-winner-app.is-finished .rw-thrust {
    display: none;
}

.rw-thrust::before,
.rw-thrust::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.rw-thrust::before {
    inset: 4px 18px 5px 4px;
    background:
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.8) 0 11%, transparent 24%),
        radial-gradient(ellipse at 44% 50%, rgba(255, 207, 48, 0.96) 0 28%, transparent 62%),
        radial-gradient(ellipse at 10% 50%, rgba(255, 92, 36, 0.82) 0 26%, transparent 74%);
    animation: rw-thrust-core 0.16s ease-in-out infinite alternate;
}

.rw-thrust::after {
    left: -12px;
    top: 7px;
    width: 28px;
    height: 17px;
    background:
        radial-gradient(circle at 72% 50%, rgba(105, 130, 142, 0.34) 0 26%, transparent 60%),
        radial-gradient(circle at 28% 50%, rgba(60, 83, 96, 0.2) 0 22%, transparent 62%);
    animation: rw-smoke-puff 0.42s ease-out infinite;
}

@keyframes rw-thrust-flicker {
    0% {
        filter: blur(0.1px) saturate(1.05);
        transform: translate(-40px, -50%) scaleX(calc(var(--rw-thrust-scale, 1) * 0.9)) scaleY(0.92);
    }
    50% {
        filter: blur(0.8px) saturate(1.35);
        transform: translate(-50px, -50%) scaleX(calc(var(--rw-thrust-scale, 1) * 1.16)) scaleY(1.08);
    }
    100% {
        filter: blur(0.1px) saturate(1.05);
        transform: translate(-40px, -50%) scaleX(calc(var(--rw-thrust-scale, 1) * 0.9)) scaleY(0.92);
    }
}

@keyframes rw-thrust-core {
    from {
        transform: translateX(4px) scaleX(0.78);
        opacity: 0.74;
    }
    to {
        transform: translateX(-3px) scaleX(1.18);
        opacity: 1;
    }
}

@keyframes rw-smoke-puff {
    0% {
        transform: translateX(10px) scale(0.5);
        opacity: 0.42;
    }
    100% {
        transform: translateX(-22px) scale(1.35);
        opacity: 0;
    }
}

.rw-racer-body {
    display: grid;
    position: relative;
    z-index: 2;
    place-items: center;
    width: 78px;
    height: 54px;
    margin-inline: auto;
    border-radius: 46% 54% 44% 56%;
    background: var(--sprite-color, #ef6b58);
    box-shadow: inset -8px -10px 0 rgba(0, 0, 0, 0.12), 0 8px 14px rgba(20, 43, 67, 0.16);
    font-size: 35px;
    transform-origin: 50% 82%;
    animation: rw-racer-run 0.32s ease-in-out infinite;
}

.rw-hide-bubbles .rw-racer-body {
    width: 78px;
    height: 54px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.rw-hide-bubbles .rw-sprite-visual {
    filter:
        hue-rotate(var(--racer-hue, 0deg))
        saturate(var(--racer-saturation, 1.14))
        brightness(var(--racer-brightness, 1))
        drop-shadow(0 4px 4px color-mix(in srgb, var(--sprite-color, #ef6b58) 72%, rgba(0, 0, 0, 0.25)));
}

.rw-racer:nth-child(2n) .rw-racer-body {
    animation-delay: -0.11s;
}

.rw-racer:nth-child(3n) .rw-racer-body {
    animation-duration: 0.27s;
}

@keyframes rw-racer-run {
    0%,
    100% {
        transform: translateY(calc(var(--rw-hop, 2px) * 0.28)) rotate(calc(var(--rw-lean, 0deg) - 3deg));
    }
    50% {
        transform: translateY(calc(var(--rw-hop, 2px) * -0.55)) rotate(calc(var(--rw-lean, 0deg) + 4deg));
    }
}

@keyframes rw-huge-racer-sway {
    from {
        transform: translateY(-1.5px) rotate(-1.2deg);
    }
    to {
        transform: translateY(1.5px) rotate(1.2deg);
    }
}

.rw-racer-name {
    display: block;
    position: relative;
    z-index: 3;
    max-width: 112px;
    margin-top: -2px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--sprite-color, #ef6b58) 72%, white);
    color: #fff;
    text-align: center;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.1;
    padding: 4px 5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rw-racer-sprite-img {
    display: block;
    width: 86px;
    height: 60px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform-origin: 50% 80%;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--sprite-color, #ef6b58) 70%, white));
    animation: rw-sprite-wiggle 0.24s ease-in-out infinite alternate;
}

.rw-huge-race .rw-racer-sprite-img {
    filter: none;
}

.rw-sprite-visual {
    display: grid;
    place-items: center;
    filter:
        hue-rotate(var(--racer-hue, 0deg))
        saturate(var(--racer-saturation, 1.14))
        brightness(var(--racer-brightness, 1));
    transform-origin: center;
}

.rw-flip-sprites .rw-sprite-visual {
    transform: scaleX(-1);
}

.rw-upload-preview img.rw-flip-preview {
    transform: scaleX(-1);
}

.rw-light-effects {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(var(--rw-bolt-angle, 112deg), transparent 0 48%, rgba(255, 255, 255, 0.96) 48.4% 49.2%, transparent 49.8% 100%),
        linear-gradient(calc(var(--rw-bolt-angle, 112deg) - 32deg), transparent 0 51%, rgba(190, 242, 255, 0.92) 51.2% 52%, transparent 52.5% 100%),
        linear-gradient(calc(var(--rw-bolt-angle, 112deg) + 38deg), transparent 0 55%, rgba(255, 255, 255, 0.82) 55.3% 56%, transparent 56.6% 100%),
        radial-gradient(circle at var(--rw-flash-x, 73%) var(--rw-flash-y, 28%), rgba(255, 255, 255, 0.85) 0 2.8%, rgba(128, 227, 255, 0.55) 3% 12%, transparent 24%),
        rgba(255, 255, 255, 0.14);
    background-size:
        28% 92%,
        22% 58%,
        19% 44%,
        100% 100%,
        100% 100%;
    background-position:
        var(--rw-flash-x, 73%) var(--rw-flash-y, 28%),
        calc(var(--rw-flash-x, 73%) - 7%) calc(var(--rw-flash-y, 28%) + 14%),
        calc(var(--rw-flash-x, 73%) + 9%) calc(var(--rw-flash-y, 28%) + 29%),
        center,
        center;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 12px rgba(180, 239, 255, 0.9));
}

.rw-lightning-on.rw-light-flash .rw-light-effects {
    animation: rw-lightning-flash 0.18s linear;
}

.rw-lightning-on.rw-light-flash .rw-race-stage {
    animation: rw-screen-shock 0.18s steps(2, end);
}

@keyframes rw-lightning-flash {
    0% {
        opacity: 0;
    }
    18% {
        opacity: 0.95;
    }
    42% {
        opacity: 0.18;
    }
    70% {
        opacity: 0.72;
    }
    100% {
        opacity: 0;
    }
}

@keyframes rw-screen-shock {
    0% {
        transform: translate3d(0, 0, 0);
    }
    30% {
        transform: translate3d(-4px, 2px, 0);
    }
    65% {
        transform: translate3d(4px, -2px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes rw-sprite-wiggle {
    from {
        transform: rotate(-3deg);
    }
    to {
        transform: rotate(4deg);
    }
}

.rw-finish-line {
    position: absolute;
    z-index: 4;
    top: 90px;
    left: 0;
    bottom: 78px;
    width: 10px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(180deg, #fff 0 16px, #1d2630 16px 32px);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.4);
    opacity: 0;
}

.rw-finish-line::before {
    content: "FINISH";
    position: absolute;
    top: auto;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #ffd144;
    color: #172436;
    font-size: 11px;
    font-weight: 950;
    padding: 6px 10px;
}

.rw-finish-line.is-visible {
    opacity: 1;
}

.rw-countdown {
    position: absolute;
    z-index: 9;
    inset: 0;
    display: none;
    place-items: center;
    color: #ffd144;
    font-size: clamp(62px, 10vw, 118px);
    font-weight: 950;
    text-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
}

.rw-countdown.is-active {
    display: grid;
}

.rw-log {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    max-height: 420px;
    overflow: auto;
}

.rw-log-entry {
    border-left: 4px solid #67c5b0;
    background: #f6fafb;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.35;
}

.rw-log-entry strong {
    display: block;
    margin-bottom: 3px;
    color: #273244;
    font-size: 12px;
}

.rw-finish-modal {
    position: absolute;
    z-index: 11;
    top: 50%;
    left: 50%;
    width: min(560px, calc(100% - 34px));
    transform: translate(-50%, -50%);
    border-radius: 8px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 245, 174, 0.95) 0 17%, transparent 42%),
        linear-gradient(160deg, #fff7cf 0%, #ffd8cd 44%, #b8edcf 100%);
    padding: 28px 24px 24px;
    box-shadow: 0 28px 90px rgba(17, 31, 48, 0.32);
    text-align: center;
    animation: rw-finish-pop 0.46s cubic-bezier(0.2, 0.92, 0.28, 1.18);
}

.rw-finish-modal h3 {
    margin: 2px 0 10px;
    color: #172436;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 0.96;
    letter-spacing: 0;
    text-transform: uppercase;
    animation: rw-winner-pulse 1.1s ease-in-out infinite alternate;
}

.rw-win-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #335fc8;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    padding: 0 12px;
    text-transform: uppercase;
}

.rw-win-proof {
    margin: 0 auto 16px;
    color: #40505d;
    font-size: 13px;
    font-weight: 850;
}

.rw-podium {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.rw-podium li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    min-height: 42px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.76);
    color: #2f4d48;
    font-weight: 950;
    text-align: left;
    padding: 6px 10px 6px 6px;
    opacity: 0;
    transform: translateY(12px);
    animation: rw-podium-rise 0.34s ease forwards;
}

.rw-podium li:nth-child(1) {
    animation-delay: 0.08s;
}

.rw-podium li:nth-child(2) {
    animation-delay: 0.16s;
}

.rw-podium li:nth-child(3) {
    animation-delay: 0.24s;
}

.rw-podium li:nth-child(4) {
    animation-delay: 0.32s;
}

.rw-podium li:nth-child(5) {
    animation-delay: 0.4s;
}

.rw-podium li.is-first {
    background: #172436;
    color: #fff;
}

.rw-podium span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ffd144;
    color: #172436;
}

.rw-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

@keyframes rw-finish-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -44%) scale(0.86) rotate(-1.5deg);
    }
    62% {
        opacity: 1;
        transform: translate(-50%, -51%) scale(1.035) rotate(0.8deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes rw-winner-pulse {
    from {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 209, 68, 0);
    }
    to {
        transform: scale(1.025);
        text-shadow: 0 4px 18px rgba(255, 209, 68, 0.42);
    }
}

@keyframes rw-podium-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rw-confetti span {
    position: absolute;
    top: -18px;
    left: calc((var(--i) * 5.7%) + 1%);
    width: 9px;
    height: 18px;
    border-radius: 2px;
    background: hsl(calc(var(--i) * 29), 82%, 57%);
    animation: rw-confetti-drop 1.8s calc(var(--i) * -0.09s) ease-in-out infinite;
}

@keyframes rw-confetti-drop {
    0% {
        transform: translate3d(0, -30px, 0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        transform: translate3d(calc((var(--i) - 8) * 8px), 330px, 0) rotate(440deg);
        opacity: 0;
    }
}

.race-winner-notice {
    border: 1px solid #d7a24c;
    border-radius: 6px;
    background: #fff7df;
    padding: 12px 14px;
    color: #583f0a;
    font-weight: 700;
}

@media (max-width: 980px) {
    .race-winner-manager {
        grid-template-columns: 1fr;
    }

    .rw-setup,
    .rw-manager-main {
        grid-template-columns: 1fr;
    }

    .rw-sprite-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rw-share-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .race-winner-dashboard,
    .race-winner-manager {
        width: 100%;
        min-height: 100svh;
        gap: 12px;
    }

    .race-winner-manager {
        align-content: stretch;
    }

    .race-winner-manager .rw-setup {
        min-height: calc(100svh - 74px);
    }

    .rw-panel {
        padding: 12px;
    }

    .rw-titlebar {
        align-items: flex-start;
    }

    .race-winner-dashboard .rw-source,
    .race-winner-manager .rw-source {
        max-width: 45%;
        white-space: normal;
        text-align: center;
    }

    .rw-card-head {
        display: grid;
    }

    .rw-participant-count {
        justify-content: flex-start;
    }

    .rw-field textarea {
        min-height: 240px;
    }

    .rw-import-row {
        grid-template-columns: 1fr 1fr;
    }

    .rw-upload-row,
    .rw-grid-2 {
        grid-template-columns: 1fr;
    }

    .rw-background-presets {
        grid-template-columns: 1fr 1fr;
    }

    .race-winner-app {
        width: 100%;
        gap: 0;
    }

    .rw-game-only .rw-race-stage,
    .rw-race-stage {
        height: 100svh;
        min-height: 100svh;
        max-height: none;
        border-radius: 0;
    }

    .rw-live-ranking {
        top: 62px;
        left: 8px;
        right: auto;
        bottom: auto;
        width: 82px;
        transform: none;
        padding: 6px;
        border-radius: 8px;
        background: rgba(25, 35, 49, 0.48);
        backdrop-filter: blur(5px);
    }

    .rw-live-ranking .rw-section-label {
        display: none;
    }

    .rw-live-ranking ol {
        display: grid;
        gap: 4px;
        padding: 0;
        margin: 0;
        overflow: visible;
        list-style: none;
    }

    .rw-live-ranking li {
        max-width: none;
        padding: 4px 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .rw-live-ranking li:nth-child(n+5) {
        display: none;
    }

    .rw-racers {
        inset: 92px 0 58px 152px;
    }

    .rw-backfield-racers {
        left: 152px;
        top: 92px;
    }

    .rw-stage-toolbar {
        top: 7px;
        left: auto;
        right: 7px;
    }

    .rw-icon-button {
        width: 29px;
        height: 29px;
        min-width: 29px;
        flex-basis: 29px;
    }

    .rw-reset-button {
        min-width: 29px;
        height: 29px;
        flex-basis: 29px;
        font-size: 0 !important;
    }

    .rw-timer {
        min-width: 56px;
        height: 29px;
        font-size: 13px;
    }

    .rw-sprite-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .race-winner-app {
        width: 100%;
        max-width: none;
        margin: 0;
        gap: 0;
    }

    .rw-game-only .rw-race-stage,
    .rw-race-stage {
        height: 100svh;
        min-height: 100svh;
        max-height: none;
        border-radius: 0;
    }

    .race-winner-app.is-racing .rw-race-stage,
    .race-winner-app.is-finished .rw-race-stage {
        min-height: 100svh;
        height: 100svh;
    }

    .rw-stage-toolbar {
        top: 18px;
        left: auto;
        right: 6px;
    }

    .rw-icon-button {
        width: 28px;
        height: 28px;
        min-width: 28px;
        flex-basis: 28px;
        font-size: 12px;
    }

    .rw-reset-button {
        min-width: 28px;
        height: 28px;
        flex-basis: 28px;
        padding: 0;
        font-size: 0 !important;
    }

    .rw-timer {
        min-width: 54px;
        height: 28px;
        font-size: 13px;
    }

    .rw-live-ranking {
        top: 50px;
        left: 7px;
        width: 74px;
        padding: 5px;
        background: rgba(25, 35, 49, 0.5);
    }

    .rw-live-ranking .rw-section-label {
        display: none;
    }

    .rw-live-ranking ol {
        padding: 0;
        margin: 0;
        list-style: none;
        gap: 4px;
    }

    .rw-live-ranking li {
        padding: 4px 5px;
        font-size: 9px;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rw-live-ranking li:nth-child(n+5) {
        display: none;
    }

    .rw-racers {
        inset: 62px 0 40px 128px;
    }

    .rw-backfield-racers {
        left: 128px;
        top: 62px;
    }

    .rw-racer {
        transform-origin: left center;
    }

    .rw-parallax-mid {
        inset: 0 -35%;
        min-height: 100%;
    }

    .rw-race-stage::before {
        bottom: 32px;
        height: 126px;
    }

    .rw-race-stage::after {
        height: 86px;
        bottom: -12px;
    }

    .rw-start-overlay {
        padding: 12px 88px;
        gap: 8px;
    }

    .rw-start-overlay h2 {
        font-size: clamp(30px, 8vw, 56px);
    }

    .rw-source,
    .rw-race-summary {
        font-size: 11px;
        padding: 5px 9px;
    }

    .rw-race-start {
        width: min(300px, 76vw);
        min-height: 42px;
        font-size: 13px;
    }

    .rw-finish-modal {
        width: min(430px, calc(100% - 112px));
        max-height: calc(100% - 28px);
        padding: 10px 12px 9px;
        overflow: auto;
    }

    .rw-finish-modal h3 {
        margin-bottom: 6px;
        font-size: clamp(26px, 6vw, 42px);
    }

    .rw-win-kicker {
        min-height: 22px;
        font-size: 10px;
        padding: 0 8px;
    }

    .rw-win-proof {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .rw-podium {
        gap: 4px;
        margin-bottom: 8px;
    }

    .rw-podium li {
        grid-template-columns: 26px 1fr;
        min-height: 26px;
        padding: 3px 8px 3px 3px;
        font-size: 10px;
    }

    .rw-podium span {
        width: 22px;
        height: 22px;
    }

    .rw-confetti span {
        height: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rw-racer,
    .rw-confetti span {
        transition: none;
        animation: none;
    }
}
