.quick-cups[data-cup-view="room"],
.quick-cups[data-cup-view="final"] {
	isolation: isolate;
	justify-content: flex-start;
	background: linear-gradient(180deg, #dcab78 0%, #e5cb94 32%, #99ad86 67%, #6d7860 68%, #6a523b 100%);
}
.quick-cups[data-cup-view="room"]::before,
.quick-cups[data-cup-view="final"]::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: url("/assets/backgrounds/salt-ledger-flats/center.png") center bottom / cover no-repeat;
	opacity: .28;
	mix-blend-mode: multiply;
}
.quick-cups .quick-cup-meet-title h1 { margin: 0; color: #352b20; text-shadow: 0 2px #f5dfac; }
.quick-cups .quick-cup-kicker { display: block; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #644b32; }
.quick-cups .quick-cup-round-clock { margin-left: auto; padding: 8px 14px; background: #352b20; color: #fff1ce; border-radius: 5px; font-variant-numeric: tabular-nums; }
.quick-cups .quick-cup-room-tabs { display: flex; width: auto; margin: 2px auto 8px; }
.quick-cups .quick-cup-room-tabs [hidden] { display: none; }
.quick-cups .quick-cup-room {
	position: relative;
	width: min(1250px, 100%);
	flex: 1;
	height: auto;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	align-items: center;
	gap: 34px;
	padding: 12px 26px 28px;
	margin: 0;
	overflow: visible;
}
.quick-cups .quick-cup-room::before,
.quick-cups .quick-cup-room::after {
	content: "";
	position: absolute;
	pointer-events: none;
	z-index: -1;
	background: center / contain no-repeat;
}
.quick-cups .quick-cup-room::before { left: -40px; bottom: -12px; width: 170px; height: 142px; background-image: url("/assets/decorations/route-arrow-stand/picture.png"); transform: rotate(-5deg); }
.quick-cups .quick-cup-room::after { right: -40px; bottom: 14px; width: 134px; height: 188px; background-image: url("/assets/decorations/sleepy-signal/picture.png"); }
.quick-cups .quick-cup-room > * { position: relative; min-width: 0; }
.quick-cups .quick-cup-setup { grid-row: auto; padding: 0; overflow: visible; }
.quick-cups .quick-cup-people { display: flex; flex-direction: column; padding: 0; overflow: visible; border: 0; background: none; }
.quick-cups .quick-cup-people > h2 { align-self: center; padding: 9px 20px; margin: 0 0 16px; background: #f6e7b9; box-shadow: 0 4px 0 #503b28; transform: rotate(2deg); border-radius: 3px; font-size: 21px; }
.quick-cups .quick-cup-room[data-panel="route"] > .quick-cup-config,
.quick-cups .quick-cup-room[data-panel="route"] > .quick-cup-chat,
.quick-cups .quick-cup-room[data-panel="players"] > :not(.quick-cup-people),
.quick-cups .quick-cup-room[data-panel="chat"] > :not(.quick-cup-chat),
.quick-cups .quick-cup-room[data-panel="config"] > :not(.quick-cup-config) { display: none; }
.quick-cups .quick-cup-room:not([data-panel="route"]) { grid-template-columns: minmax(0, 1fr); }
.quick-cups .quick-cup-room:not([data-panel="route"]) > * { width: min(760px, 100%); margin-inline: auto; }
.quick-cups .quick-cup-room > .quick-cup-chat { min-height: 0; height: min(500px, 100%); display: flex; flex-direction: column; }
.quick-cups .quick-cup-room > .quick-cup-config { padding: 24px; max-height: 100%; overflow-y: auto; }
.quick-cups .quick-cup-config .quick-cup-setup-scroll { overflow: visible; }
.quick-cups .quick-cup-config .quick-cup-rules { border: 0; }
.quick-cups .quick-cup-meet-facts { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 15px; color: #332b21; font-size: 15px; }
.quick-cups .quick-cup-meet-facts svg { width: 23px; height: 23px; }
.quick-cups .quick-cup-route-show { position: relative; flex: none; }
.quick-cups .quick-cup-track-intro {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 15px;
	background: #f0dfb9;
	border: 8px solid #735434;
	border-radius: 6px;
	box-shadow: 0 6px 0 #453320, 0 12px 20px #32261838, inset 0 0 0 2px #fff0cf;
	text-align: left;
	transform: rotate(-1.4deg);
}
.quick-cups .quick-cup-track-intro::after { content: ""; position: absolute; top: -12px; left: calc(50% - 28px); width: 56px; height: 20px; background: #b8a47a99; transform: rotate(3deg); }
.quick-cups .quick-cup-track-intro .level-preview { width: 100%; height: 214px; object-fit: contain; background: #dce8ed; border: 1px solid #8c9a94; border-radius: 0; }
.quick-cups .quick-cup-track-credit { min-width: 0; margin-top: 13px; }
.quick-cups .quick-cup-track-credit .level-name { font-family: var(--display); font-size: clamp(25px, 3vw, 39px); white-space: normal; line-height: 1.05; margin-block: 5px; color: #332b21; }
.quick-cups .quick-cup-track-credit .level-author { font-size: 13px; }
.quick-cups .quick-cup-track-credit .name-tag { max-width: 100%; }
.quick-cups .quick-cup-route-tabs,
.quick-cups .quick-cup-roll-call-pages { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 15px; }
.quick-cups .quick-cup-route-tab,
.quick-cups .quick-cup-roll-call-tab { min-width: 34px; min-height: 34px; padding: 5px 9px; font-variant-numeric: tabular-nums; }
.quick-cups .quick-cup-route-tab.active,
.quick-cups .quick-cup-roll-call-tab.active { --face: #453320; color: #fff1ce; }
.quick-cups .quick-cup-roll-call-pages[hidden],
.quick-cups .quick-cup-result-pages[hidden] { display: none; }
.quick-cups .quick-cup-start-row { flex-wrap: nowrap; gap: 10px; margin-top: 24px; }
.quick-cups .quick-cup-start-row .quick-cup-start { width: auto; flex: 1; }
.quick-cups .quick-cup-start-row .icon-button { flex: 0 0 auto; }
.quick-cups .quick-cup-start-row .icon-button > span { display: none; }
.quick-cups .quick-cup-roll-call { min-height: 0; overflow: visible; }
.quick-cups .quick-cup-roll-call-page { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.quick-cups .quick-cup-roll-call-page[hidden] { display: none; }
.quick-cups .quick-cup-introduction {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0;
	min-width: 0;
	padding: 8px 0;
	border: 0;
	border-radius: 0;
	background: none;
	animation: cup-arrival .35s both;
}
.quick-cups .quick-cup-introduction::before { content: ""; position: absolute; left: -7%; top: 108px; width: 114%; height: 94px; background: url("/assets/decorations/spool-workbench/picture.png") center / contain no-repeat; pointer-events: none; }
.quick-cups .quick-cup-introduction .figure-box { width: 100% !important; height: 150px !important; position: relative; z-index: 1; }
.quick-cups .quick-cup-rider-portrait, .quick-cups .quick-cup-rider-picture { width: 100%; height: 100%; }
.quick-cups .quick-cup-rider-picture { object-fit: contain; }
.quick-cups .quick-cup-bib { position: absolute; z-index: 2; top: 2px; left: 5px; padding: 1px 8px; background: #f8dc68; color: #332b21; font-family: var(--display); font-size: 24px; transform: rotate(-5deg); box-shadow: 1px 2px #392f23; }
.quick-cups .quick-cup-rider-name { position: relative; z-index: 2; max-width: 100%; margin-top: 36px; padding: 5px 8px; background: #f6e7b9; border-radius: 3px; font-size: 14px; box-shadow: 0 3px #453320; }
.quick-cups .quick-cup-rider-name .name-tag-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.quick-cups .quick-cup-player-badges { justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 9px; min-height: 20px; }
.quick-cups .quick-cup-player .quick-cup-kick { position: relative; }
.quick-cups .quick-cup-empty-route { padding: 100px 30px; text-align: center; background: #f0dfb9; border: 8px solid #735434; }
.quick-cups[data-cup-view="final"] { overflow-y: auto; }
.quick-cups[data-cup-view="final"] .screen-heading { flex: none; position: relative; z-index: 4; }
.quick-cups[data-cup-view="final"] .screen-heading h1 { color: #352b20; text-shadow: 0 2px #f5dfac; }
.quick-cups .quick-cup-final { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); align-items: center; gap: 20px 35px; width: min(1240px, 100%); margin-block: auto; padding-block: 22px; }
.quick-cups .quick-cup-final > .quick-cup-kicker { display: none; }
.quick-cups .quick-cup-podium { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 28px 4px 35px; }
.quick-cups .quick-cup-podium::after { content: ""; position: absolute; inset: auto 0 -10px; height: 40px; border-radius: 50%; background: #29282026; filter: blur(10px); z-index: -1; }
.quick-cups .quick-cup-podium-step { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; flex: 1; min-width: 0; padding: 0; text-align: center; animation: cup-arrival .5s both; }
.quick-cups .quick-cup-podium-step.place-1 { flex: 1.35; }

.quick-cups .quick-cup-podium-step > .quick-cup-emblem { position: absolute; top: -32px; left: calc(50% - 25px); z-index: 3; }
.quick-cups .quick-cup-podium-rider { position: relative; flex: 1 1 100px; min-width: 0; }
.quick-cups .quick-cup-podium-step .figure-box { width: 100% !important; height: 140px !important; }
.quick-cups .quick-cup-podium-name { position: absolute; top: calc(100% + 6px); left: 0; z-index: 3; width: 100%; display: flex; justify-content: center; font-size: clamp(13px, 1.5vw, 19px); max-width: 100%; padding: 4px; background: #f7e6b9; border-radius: 3px; }
.quick-cups .quick-cup-podium-total { position: absolute; top: calc(100% + 33px); left: 0; z-index: 3; width: 100%; display: block; font-size: 12px; background: #f7e6b9; padding: 0 4px 5px; border-radius: 0 0 3px 3px; }
.quick-cups .quick-cup-podium-place { position: absolute; z-index: 2; bottom: 24px; left: calc(50% - 19px); width: 38px; height: 40px; background: #f4daa0; border: 2px solid #624326; transform: rotate(-3deg); color: #352b20; font-family: var(--display); font-size: 32px; line-height: 36px; }
.quick-cups .quick-cup-podium-step.place-1 .quick-cup-podium-place { bottom: 18px; background: #ffcf42; }
.quick-cups .quick-cup-podium-step.place-2 .quick-cup-podium-place { bottom: 14px; }
.quick-cups .quick-cup-final-board { margin: 0; padding: 6px; background: #f6e7c9; box-shadow: 0 5px 0 #604629; border: 3px solid #80603d; border-radius: 5px; text-align: left; }
.quick-cups .quick-cup-final-board .board-row { grid-template-columns: 30px minmax(0, 1fr) 74px; padding: 9px 7px; }
.quick-cups .quick-cup-final-board .board-name { min-width: 0; }
.quick-cups .quick-cup-total { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; text-transform: none; padding: 3px; gap: 2px; line-height: 1.05; }
.quick-cups .quick-cup-total strong { font-family: var(--display); font-size: 25px; }
.quick-cups .quick-cup-total span { font-family: var(--font); font-size: 10px; font-weight: 700; white-space: nowrap; }
.quick-cups .quick-cup-result-pages { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 14px; color: #352b20; font-weight: 800; }
.quick-cups .quick-cup-result-pages button { min-width: 40px; padding: 5px 12px; font-size: 25px; }
.quick-cups .quick-cup-finish-continue { grid-column: 1 / -1; justify-self: center; min-width: 230px; }
.quick-cups .quick-cup-final + .arcade-confetti { z-index: 2; pointer-events: none; }
.quick-cup-detail-dialog .quick-cup-track-result { display: grid; grid-template-columns: minmax(0,1fr) auto 30px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #81634666; }
.quick-cup-detail-dialog .quick-cup-track-results { margin-bottom: 15px; }
.quick-cup-detail-dialog .quick-cup-result-pages { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 15px 0; }
.quick-cup-detail-dialog .quick-cup-result-pages[hidden] { display: none; }
.quick-cups .quick-cup-run-result { width: min(800px, 100%); border-top: 8px solid var(--orange-deep); max-height: calc(100dvh - 100px); overflow: auto; }
.quick-cups .quick-cup-run-result .quick-cup-track-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px; margin-bottom: 20px; transform: none; border-width: 4px; }
.quick-cups .quick-cup-run-result .quick-cup-track-intro .level-preview { height: 100px; }
.quick-cups .quick-cup-run-result .level-name { font-size: 25px; }
.quick-cups .quick-cup-run-result h1 { font-size: 24px; margin-bottom: 4px; }
.quick-cups .quick-cup-run-result .result-time { font-size: clamp(36px, 7vw, 64px); }
.quick-cups .quick-cup-round-ceremony { margin: 18px auto; max-width: 520px; text-align: left; }
.quick-cups .quick-cup-round-board .quick-cup-kicker { padding: 9px 12px; margin: 0; }
@keyframes cup-arrival { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
	.quick-cups[data-cup-view="room"], .quick-cups[data-cup-view="final"] { padding: 16px 12px; }
	.quick-cups .quick-cup-room-tabs { width: 100%; gap: 5px; flex-wrap: nowrap; }
	.quick-cups .quick-cup-room-tabs .tab { flex: 1; font-size: 11px; padding: 7px 5px; white-space: nowrap; }
	.quick-cups .quick-cup-round-clock { font-size: 11px; padding: 6px; }
	.quick-cups .quick-cup-room { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; overflow-y: auto; gap: 32px; padding: 10px 10px 26px; }
	.quick-cups .quick-cup-room > * { width: 100%; flex: none; max-height: none; }
	.quick-cups .quick-cup-room[data-panel="route"] > .quick-cup-people { display: flex; }
	.quick-cups .quick-cup-room[data-panel="route"] > .quick-cup-setup { display: flex; }
	.quick-cups .quick-cup-room > .quick-cup-config { overflow: visible; }
	.quick-cups .quick-cup-room > .quick-cup-chat { min-height: 420px; }
	.quick-cups .quick-cup-room::before { width: 90px; height: 80px; left: -5px; bottom: 0; }
	.quick-cups .quick-cup-room::after { display: none; }
	.quick-cups .quick-cup-meet-facts { font-size: 12px; margin-bottom: 10px; }
	.quick-cups .quick-cup-track-intro { padding: 10px; border-width: 6px; }
	.quick-cups .quick-cup-track-intro .level-preview { height: 144px; }
	.quick-cups .quick-cup-track-credit { margin-top: 9px; }
	.quick-cups .quick-cup-track-credit .level-name { font-size: 28px; }
	.quick-cups .quick-cup-route-tabs { gap: 5px; margin-top: 12px; }
	.quick-cups .quick-cup-route-tab { min-width: 30px; min-height: 31px; padding: 4px 7px; }
	.quick-cups .quick-cup-start-row { margin-top: 15px; }
	.quick-cups .quick-cup-people > h2 { font-size: 18px; margin-bottom: 12px; }
	.quick-cups .quick-cup-introduction .figure-box { height: 115px !important; }
	.quick-cups .quick-cup-introduction::before { top: 85px; height: 68px; }
	.quick-cups .quick-cup-rider-name { margin-top: 22px; font-size: 12px; padding: 4px; }
	.quick-cups .quick-cup-bib { font-size: 20px; }
	.quick-cups .quick-cup-roll-call-pages { gap: 5px; }
	.quick-cups .quick-cup-player .quick-cup-kick { font-size: 10px; }
	.quick-cups .quick-cup-final { display: flex; flex-direction: column; gap: 20px; padding-top: 0; margin-top: 8px; }
	.quick-cups .quick-cup-podium { width: 100%; gap: 3px; padding-top: 25px; }
	.quick-cups .quick-cup-podium-step .figure-box { height: 105px !important; }
	.quick-cups .quick-cup-podium-rider { flex-basis: 85px; }
	.quick-cups .quick-cup-podium-name { font-size: 12px; padding: 3px; top: calc(100% + 1px); }
	.quick-cups .quick-cup-podium-total { font-size: 10px; top: calc(100% + 22px); }
	
	
	
	.quick-cups .quick-cup-podium-place { bottom: 12px; font-size: 26px; height: 33px; line-height: 28px; }
	.quick-cups .quick-cup-podium-step.place-1 .quick-cup-podium-place { bottom: 12px; }
	.quick-cups .quick-cup-podium-step.place-2 .quick-cup-podium-place { bottom: 9px; }
	.quick-cups .quick-cup-finish-ledger { width: 100%; }
	.quick-cups .quick-cup-final-board .board-row { grid-template-columns: 24px minmax(0, 1fr) 70px; padding: 8px 4px; }
	.quick-cups .quick-cup-final-board .board-name { font-size: 14px; }
	.quick-cups .quick-cup-finish-continue { width: 100%; min-height: 50px; }
	.quick-cups .quick-cup-run-result { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.quick-cups .quick-cup-introduction, .quick-cups .quick-cup-podium-step { animation: none; }
}

.quick-cups .quick-cup-podium-bench { display: block; width: 100%; flex: 0 0 100%; height: auto; margin-top: calc(-15% - 14px); pointer-events: none; }
.quick-cups .quick-cup-podium-step .quick-cup-podium-place,
.quick-cups .quick-cup-podium-step.place-1 .quick-cup-podium-place,
.quick-cups .quick-cup-podium-step.place-2 .quick-cup-podium-place { bottom: -32px; }
