.game-duck-count {
bottom: 6px;
right: 4px;
color: #fff;
padding: 4px 8px;
border-radius: 5px;
font-size: 0.7rem;
font-weight: 600;
text-align: center;
}

body.light .game-mode-display {
background: rgba(0, 0, 0, 0.7);
color: #fff;
}

.duck-wrapper {
position: absolute;
left: 0;
will-change: transform;
display: flex;
align-items: center;
z-index: 10;
}

.duck {
transition: none;
}

.duck-name {
position: absolute;
top: -18px;
left: 0;
color: white;
font-size: 0.65rem;
padding: 2px 5px;
border-radius: 3px;
font-weight: 500;
z-index: 20;
max-width: 80px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
transform: translateZ(0); 
}

.duck-name.winner {
background: linear-gradient(to right, #d97706, #facc15);
color: white;
font-weight: bold;
}

.start-line {
position: absolute;
top: -20px;
bottom: 0;
left: 40px; 
background-size: 16px 16px;
z-index: 5;
display: flex;
justify-content: center;
align-items: center;
color: yellow;
font-weight: bold;
font-size: 12px;
writing-mode: vertical-rl; 
text-orientation: mixed;
font-family: "Orbitron", sans-serif;
}

.start-line::after {
content: "START";
position: absolute;
top: 0;
left: 0;
color: #fff;
font-weight: 900;
font-size: 20px;
white-space: nowrap;
background: #0c28557a;
padding: 10px 4px;
height: 100%;
text-align: center;
}

.finish-line {
position: absolute;
top: -20px;
bottom: 0;
left: 40px; 
width: 10px;
background-image: linear-gradient(
45deg,
#fff 25%,
#000 25%,
#000 50%,
#fff 50%,
#fff 75%,
#000 75%,
#000
);
background-size: 25px 25px;
z-index: 5;
display: flex;
justify-content: center;
align-items: center;
color: yellow;
font-weight: bold;
font-size: 12px;
writing-mode: vertical-rl; 
text-orientation: mixed;
font-family: "Orbitron", sans-serif;
}

.effect-icon {
font-size: 1.4rem;
margin-left: 6px;
animation: popUp 0.8s ease-in-out forwards;
pointer-events: none;
will-change: transform, opacity;
}

@keyframes popUp {
0% {
transform: scale(0.5) translateY(0);
opacity: 0;
}

50% {
transform: scale(1.2) translateY(-8px);
opacity: 1;
}

100% {
transform: scale(1) translateY(-24px);
opacity: 0;
}
}

.duck-dance {
animation: dance 0.25s infinite alternate ease-in-out;
}

@keyframes dance {
from {
transform: rotate(6deg) translateY(-4px);
}

to {
transform: rotate(-6deg) translateY(-4px);
}
}

.duck-freeze {
filter: brightness(0.7) sepia(0.3) hue-rotate(180deg);
}

@keyframes freeze-shake {
from {
transform: translateX(-1.5px);
}

to {
transform: translateX(1.5px);
}
}

.duck-blackhole {
animation: blackhole-spin 0.5s linear infinite;
transition: transform 0.5s ease, opacity 0.5s ease;
}

@keyframes blackhole-spin {
from {
transform: rotate(0deg);
}

to {
transform: rotate(360deg);
}
}

.blackhole {
position: absolute;
width: 30px;
height: 30px;
background: radial-gradient(circle, #000 30%, transparent 70%);
border-radius: 50%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
z-index: 8;
animation: blackhole-pulse 1.5s infinite;
will-change: transform;
}

@keyframes blackhole-pulse {
0% {
transform: scale(1);
}

50% {
transform: scale(1.2);
}

100% {
transform: scale(1);
}
}

.countdown {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 900;
font-size: 8rem;
z-index: 60;
text-transform: uppercase;
letter-spacing: 2px;
color: #fff;
text-shadow: 0 0 10px rgba(255, 230, 0, 0.9), 0 0 30px rgba(255, 200, 0, 0.7),
0 0 60px rgba(255, 180, 0, 0.4);
animation: countdownPulse 1s ease-in-out forwards;
font-family: "Orbitron", sans-serif;
}

.shuffle-status {
text-transform: uppercase;
top: 50%;
left: 50%;
font-weight: 900;
letter-spacing: 2px;
color: #fff;
text-shadow: 0 0 10px rgba(255, 230, 0, 0.9), 0 0 30px rgba(255, 200, 0, 0.7),
0 0 60px rgba(255, 180, 0, 0.4);
font-family: "Orbitron", sans-serif;
}

@keyframes countdownPulse {
0% {
transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
opacity: 0;
text-shadow: 0 0 0 rgba(255, 230, 0, 0.5), 0 0 10px rgba(255, 180, 0, 0.2);
}

30% {
transform: translate(-50%, -50%) scale(1.3) rotate(10deg);
opacity: 1;
text-shadow: 0 0 20px rgba(255, 230, 0, 1), 0 0 40px rgba(255, 200, 0, 0.8),
0 0 80px rgba(255, 150, 0, 0.6);
}

70% {
transform: translate(-50%, -50%) scale(1) rotate(0deg);
opacity: 1;
}

100% {
transform: translate(-50%, -50%) scale(0.9);
opacity: 0;
text-shadow: 0 0 5px rgba(255, 230, 0, 0.3), 0 0 15px rgba(255, 180, 0, 0.1);
}
}

.death-message {
position: absolute;
top: 10px;
left: 50%;
transform: translateX(-50%);
background: rgba(255, 0, 0, 0.8);
color: white;
padding: 5px 10px;
border-radius: 5px;
font-size: 0.9rem;
z-index: 60;
animation: fadeOut 3s ease-in-out forwards;
}

@keyframes fadeOut {
0% {
opacity: 1;
}

80% {
opacity: 1;
}

100% {
opacity: 0;
}
}

.tooltip {
position: relative;
}

.tooltip:hover .tooltip-text,
.tooltip.active .tooltip-text {
visibility: visible;
opacity: 1;
}

.tooltip-text {
visibility: hidden;
opacity: 0;
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background: #1f2937;
color: white;
padding: 8px;
border-radius: 4px;
font-size: 0.8rem;
width: 200px;
text-align: center;
z-index: 100;
transition: opacity 0.2s ease-in-out;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.light .tooltip-text {
background: #e0e0e0;
color: #202124;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
.countdown {
font-size: 4rem;
}

.duck-name {
font-size: 0.55rem;
max-width: 60px;
}

.race-track {
padding: 0.75rem;
}

.death-message {
font-size: 0.75rem;
}

.tooltip-text {
width: 150px;
font-size: 0.7rem;
}

.game-mode-display,
.game-duck-count {
font-size: 0.7rem;
padding: 4px 8px;
}

.race-track:fullscreen .start-line {
width: 38px !important;
background-size: 16px 16px !important;
}

.race-track:fullscreen .finish-line {
width: 20px !important;
}

.race-track:fullscreen .duck-rank-badge {
left: -15px !important;
font-size: 25px !important;
}

.race-track:fullscreen .start-line:after {
font-size: 20px !important;
left: 0 !important;
}

.race-track:fullscreen .game-mode-display {
font-size: 0.8rem !important;
}

.race-track:fullscreen .game-duck-count {
font-size: 0.8rem !important;
bottom: 40px !important;
}

.race-track:fullscreen .duck-name {
font-size: 0.7rem !important;
padding: 0px 8px !important;
border-radius: 8px !important;
max-width: 150px !important;
top: -20px !important;
}

.race-track:fullscreen button {
font-size: 0.8rem !important;
padding: 10px 18px !important;
transform: scale(1.2) translate(-50%, -50%) !important;
font-weight: bold;
}

.race-track:fullscreen .timer {
font-size: 0.8rem !important;
top: 14px !important;
right: 75px !important;
width: 70px !important;
padding: 8px 10px !important;
}

.race-track:fullscreen .countdown {
font-size: 10rem !important;
font-weight: bold;
}

.race-track:fullscreen .duck img {
transform: scale(1.25);
transform-origin: left center;
}

.race-track:fullscreen .fullscreen {
right: -10px;
font-size: 0.8rem !important;
padding: 6px 10px !important;
}

.race-track:fullscreen .settings,
.race-track:fullscreen .custom-race,
.race-track:fullscreen .shuffle-name,
.race-track:fullscreen .sort-az,
.race-track:fullscreen .shuffle-skins {
right: -10px;
font-size: 0.8rem !important;
padding: 6px 10px !important;
}

.race-track:fullscreen .effect-icon {
font-size: 4rem;
margin-left: 10px;
animation: popUp 0.8s ease-in-out forwards;
pointer-events: none;
}

.race-track:fullscreen .death-message {
font-size: 1.3rem;
text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.race-track:fullscreen .blackhole {
transform: scale(1.5);
filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
transition: transform 0.3s ease;
}

.race-track:fullscreen .effect-icon {
font-size: 2rem !important;
transform: scale(1.5);
transition: transform 0.3s ease;
}

.race-track:fullscreen .stop svg,
.race-track:fullscreen .pause svg {
width: 30px;
height: 30px;
}

.race-track:fullscreen .stop,
.race-track:fullscreen .pause {
transform: scale(1.5);
top: 35px !important;
font-size: 0.8rem !important;
padding: 0px 6px !important;
}

.race-track:fullscreen .stop {
right: 132px !important;
}

.race-track:fullscreen .pause {
right: 190px !important;
}
}

.space-y-8 > * + * {
margin-top: 2rem;
}

.max-w-5xl {
max-width: 64rem;
}

.max-w-md {
max-width: 28rem;
}

.p-6 {
padding: 1.5rem;
}

.sm\:p-8 {
padding: 2rem;
}

.arrange-input {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}

.arrange-input input[type="text"] {
flex-grow: 1;
padding: 0.5rem;
border-radius: 0.25rem;
border: 1px solid #4b5563;
transition: background 0.3s ease, color 0.3s ease;
}

body.dark .arrange-input input[type="text"] {
background: #1f2937;
color: white;
}

body.light .arrange-input input[type="text"] {
background: #f5f7fa;
color: #202124;
}

.arrange-input input[type="text"]:disabled {
background: #2d3748;
cursor: not-allowed;
opacity: 0.5;
}

body.light .arrange-input input[type="text"]:disabled {
background: #d1d5db;
}

.arrange-input input[type="file"] {
width: 100px;
font-size: 0.75rem;
}

.arrange-input input[type="file"]:disabled {
cursor: not-allowed;
opacity: 0.5;
}

.arrange-input button {
padding: 0.5rem;
border-radius: 0.25rem;
border: 1px solid #4b5563;
transition: background 0.3s ease, color 0.3s ease;
}

body.dark .arrange-input button {
background: #374151;
color: white;
}

body.light .arrange-input button {
background: #e0e0e0;
color: #202124;
}

.arrange-input button:hover:not(:disabled) {
background: #4b5563;
}

.arrange-input button:disabled {
opacity: 0.5;
cursor: not-allowed;
}

.color-button {
width: 32px;
height: 32px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.375rem;
border: 1px solid #4b5563;
cursor: pointer;
transition: all 0.2s ease;
font-size: 1.1rem;
}

body.dark .color-button {
background: #374151;
}

body.light .color-button {
background: #e0e0e0;
}

.color-button:hover:not(:disabled) {
background: #4b5563;
transform: scale(1.1);
}

.color-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}

.color-input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}

.color-input:disabled {
cursor: not-allowed;
}

.timer {
position: absolute;
top: 5px;
right: 44px;
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 5px 10px;
border-radius: 5px;
font-size: 0.9rem;
font-weight: 600;
z-index: 50;
min-width: 60px;
width: 60px;
text-align: center;
}

body.light .timer {
background: rgba(0, 0, 0, 0.5);
color: #fff;
}

.hamburger {
cursor: pointer;
padding: 0.5rem;
margin-left: 0.5rem;
}

.dropdown {
position: absolute;
top: 100%;
right: 0;
background: #1f2937;
border-radius: 0.25rem;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
min-width: 150px;
z-index: 1000;
display: none;
}

body.light .dropdown {
background: #f5f7fa;
}

.dropdown.active {
display: block;
}

.dropdown-item {
padding: 0.5rem 1rem;
color: white;
cursor: pointer;
display: flex;
align-items: center;
}

body.light .dropdown-item {
color: #202124;
}

.dropdown-item:hover {
background: #374151;
}

body.light .dropdown-item:hover {
background: #e0e0e0;
}

.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 2000;
align-items: center;
justify-content: center;
}

.modal.active {
display: flex;
}

.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 9000;
animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

.modal-content {
background: white;
border-radius: 16px;
padding: 1.5rem;
max-width: 600px;
width: 90%;
max-height: 85vh;
overflow-y: auto;
animation: slideUp 0.3s ease;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body.dark .modal-content {
background: #1f2937a8;
color: #f9fafb;
}

.modal-content h2 {
font-size: 1.25rem;
margin-bottom: 1rem;
}

.modal-content table {
width: 100%;
border-collapse: collapse;
margin-bottom: 1rem;
}

.modal-content th,
.modal-content td {
padding: 0.5rem;
text-align: left;
border-bottom: 1px solid #4b5563;
}

body.light .modal-content th,
body.light .modal-content td {
border-bottom: 1px solid #d1d5db;
}

.modal-content .effect-buttons {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1rem;
}

.modal-content .effect-buttons button {
padding: 0.5rem 1rem;
border-radius: 0.25rem;
background: #4b5563;
color: white;
border: none;
cursor: pointer;
font-size: 0.9rem;
}

.modal-content .effect-buttons button:hover {
background: #374151;
}

.modal-content .effect-buttons button.active {
background: #facc15;
color: black;
}

.modal-content button.close {
width: 100%;
padding: 0.5rem 1rem;
border-radius: 0.25rem;
background: #dc2626;
color: white;
border: none;
cursor: pointer;
}

.modal-content button.close:hover {
background: #b91c1c;
}

@media (max-width: 640px) {
.modal-content {
width: 95%;
padding: 1rem;
}

.modal-content h2 {
font-size: 1.1rem;
}

.modal-content th,
.modal-content td {
font-size: 0.8rem;
padding: 0.4rem;
}

.modal-content .effect-buttons button {
font-size: 0.8rem;
padding: 0.4rem 0.8rem;
}
}

.effect-details-button {
cursor: pointer;
color: #facc15;
font-weight: bold;
padding: 0 4px;
}

.effect-details-button:hover {
color: #d97706;
}

.disabled-tab {
opacity: 0.5;
pointer-events: none;
}

nav button:disabled {
opacity: 0.5;
cursor: not-allowed;
}

textarea:disabled,
select:disabled,
input[type="range"]:disabled {
opacity: 0.5;
cursor: not-allowed;
}

.max-h-48 {
max-height: 20rem;
}

.arrange-input input[type="text"] {
min-width: 80px;
}

.color-picker-label {
transition: transform 0.3s ease;
}

.color-picker-label.rotate-180 {
transform: rotate(90deg);
}

.color-input {
z-index: 10;
}

.scrollbar-thin::-webkit-scrollbar {
width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
background: #9ca3af;
border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
background: #6b7280;
}

.dark .scrollbar-thin::-webkit-scrollbar-thumb {
background: #4b5563;
}

.dark .scrollbar-thin::-webkit-scrollbar-thumb:hover {
background: #6b7280;
}

@keyframes modalPop {
from {
transform: scale(1);
opacity: 0;
}

to {
transform: scale(1);
opacity: 1;
}
}

.animate-in {
animation: modalPop 0.25s ease-out;
}

.game-blurred {
filter: blur(4px);
pointer-events: none;
}

.race-title {
transition: all 0.2s ease;
}

.race-title:hover {
text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.modal-content {
animation: modalPop 0.25s ease-out;
}

.scrollbar-thin {
scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
background: #a0aec0;
border-radius: 3px;
}

.dark .scrollbar-thin::-webkit-scrollbar-thumb {
background: #4a5568;
}

.slider-green {
-webkit-appearance: none;
height: 6px;
border-radius: 3px;
outline: none;
cursor: pointer;
transition: all 0.2s;
}

body.light .slider-green {
background: #e5e7eb;
}

body.dark .slider-green {
background: #374151;
}

.slider-green:disabled {
opacity: 0.4;
cursor: not-allowed;
}

.slider-green::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px;
height: 18px;
background: #3b82f6; 
border-radius: 50%;
cursor: pointer;
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); 
transition: all 0.2s ease;
}

.slider-green:hover:not(:disabled)::-webkit-slider-thumb {
background: #2563eb; 
box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.3); 
transform: scale(1.15);
}

input[type="checkbox"],
input[type="radio"] {
accent-color: #3b82f6;
cursor: pointer;
transition: transform 0.2s;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
transform: scale(1.1);
}

button[title="Fullscreen"],
button[title="Exit fullscreen"] {
transition: transform 0.2s ease, background-color 0.2s ease;
}

.toast {
position: fixed;
bottom: 2rem;
right: 2rem;
background: #1f2937;
color: white;
padding: 0.5rem 1.5rem;
border-radius: 12px;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
z-index: 9999;
animation: toastSlide 0.3s ease;
font-weight: 500;
}

@keyframes toastSlide {
from {
transform: translateX(400px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}

.toast.success {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast.error {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 9000;
animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

/* Modal Content */
@keyframes popUp {
0% {
transform: scale(0.8);
opacity: 0;
}

100% {
transform: scale(1);
opacity: 1;
}
}

.modal-title {
font-size: 18px;
font-weight: 700;
margin-bottom: 10px;
}

.modal-desc {
font-size: 14px;
color: #555;
margin-bottom: 10px;
}

.share-input {
width: 100%;
padding: 8px;
border: 2px solid #ccc;
border-radius: 6px;
margin-bottom: 10px;
font-size: 13px;
text-align: center;
background: #f9f9f9;
}

.modal-note {
font-size: 12px;
color: #666;
margin-top: 6px;
}

.btn-copy {
background: #28a745;
color: white;
border: none;
padding: 8px 12px;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
width: 100%;
margin-bottom: 6px;
}

.btn-copy:hover {
background: #23963f;
}

.btn-close {
background: #007bff;
color: white;
border: none;
padding: 8px 12px;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
width: 100%;
}

.btn-close:hover {
background: #0069d9;
}

.race-track {
min-height: 300px !important;
}

.race-track:fullscreen {
width: 100vw !important;
height: 100vh !important;
max-width: none !important;
}

.race-track:fullscreen .finish-line,
.race-track:fullscreen .start-line {
width: 30px;
background-size: 50px 50px;
}

.race-track:fullscreen .start-line:after {
font-size: 35px;
left: 70px;
}

.race-track:fullscreen .game-mode-display {
bottom: 10px;
right: 10px;
font-size: 1.5rem;
}

.race-track:fullscreen .game-duck-count {
bottom: 60px;
right: 10px;
font-size: 1.5rem;
width: 125px;
}

.race-track:fullscreen .duck-name {
font-size: 1.1rem;
padding: 0px 8px;
border-radius: 8px;
max-width: 150px;
top: -30px;
left: 10px;
}

.race-track:fullscreen button {
font-size: 1.1rem;
padding: 6px 10px;
transform: scale(1.2) translate(-50%, -50%);
font-weight: bold;
}

.race-track:fullscreen .timer {
font-size: 1.5rem;
font-weight: bold;
top: 10px;
right: 80px;
width: 120px;
padding: 0px 10px;
}

.race-track:fullscreen .countdown {
font-size: 10rem;
font-weight: bold;
}

.race-track:fullscreen .duck img {
transform: scale(1.25);
transform-origin: left center;
}

.race-track:fullscreen .fullscreen {
top: 30px;
}

.race-track:fullscreen .settings {
top: 80px;
}

.race-track:fullscreen .custom-race {
top: 130px;
}

.race-track:fullscreen .shuffle-name {
top: 180px;
}

.race-track:fullscreen .sort-az {
top: 230px;
}

.race-track:fullscreen .shuffle-skins {
top: 280px;
}

.race-track:fullscreen .effect-icon {
font-size: 4rem;
margin-left: 10px;
animation: popUp 0.8s ease-in-out forwards;
pointer-events: none;
}

.race-track:fullscreen .death-message {
font-size: 1.3rem;
text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.race-track:fullscreen .blackhole {
transform: scale(1.5);
filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
transition: transform 0.3s ease;
}

.race-track:fullscreen .effect-icon {
font-size: 2rem !important;
transform: scale(1.5);
transition: transform 0.3s ease;
}

.race-track .stop,
.race-track .pause {
padding: 6px 10px;
top: 5px;
}

.race-track .stop {
right: 110px;
}

.race-track .pause {
right: 160px;
}

.race-track .stop svg,
.race-track .pause svg {
width: 20px;
height: 20px;
}

.race-track:fullscreen .stop,
.race-track:fullscreen .pause {
transform: scale(1.25);
top: 13px;
}

.race-track:fullscreen .stop {
right: 215px;
padding: 4px 10px;
}

.race-track:fullscreen .pause {
right: 275px;
padding: 4px 10px;
}

.badge-count {
position: absolute;
right: -4px;
color: #fff;
font-size: 10px;
font-weight: bold;
padding: 0px 8px;
border-radius: 12px;
top: 8px;
}

@keyframes shuffleBounce {
0% {
transform: translate(-50%, -50%) scale(0.5);
opacity: 0;
}
50% {
transform: translate(-50%, -50%) scale(1.3);
opacity: 1;
}
100% {
transform: translate(-50%, -50%) scale(1);
opacity: 0;
}
}

.animate-shuffle {
animation: shuffleBounce 0.7s ease forwards;
}

.toggle-btn {
position: fixed;
bottom: 1rem;
right: 1rem;
color: white;
padding: 0.5rem 1rem;
border-radius: 9999px;
box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
cursor: pointer;
transition: all 0.2s ease;
z-index: 40;
font-weight: 600;
font-size: 0.875rem;
display: flex;
align-items: center;
gap: 0.5rem;
border: none;
}

.toggle-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 10px rgba(59, 130, 246, 0.4);
}

.btn-primary {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
font-weight: 600;
border-radius: 8px;
border: none;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled),
.btn-slate:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled,
.btn-slate:disabled {
opacity: 0.5;
cursor: not-allowed;
}

.duck-rank-badge {
position: absolute;
left: -15px; 
top: 50%;
transform: translateY(-50%);
font-size: 25px;
display: flex;
align-items: center;
justify-content: center;
z-index: 50;
pointer-events: none;
}

.race-track:fullscreen .duck-rank-badge {
left: -25px;
font-size: 50px;
}

.transform-gpu {
transform: translateZ(0);
backface-visibility: hidden;
perspective: 1000;
}

.overflow-y-auto::-webkit-scrollbar {
width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.3);
border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.5);
}
