/* Colors */
:root {
    --black: black;
    --color-1: #2d9fff;
    --color-1-dark: rgba(45, 159, 255, 0.4);
    --color-1-dark-2: rgba(45, 159, 255, 0.6);
    --color-2: #2dffb5;
    --color-3: #ff2ddb;
    --grey: darkgrey;
    --white: #ffffff;
    --white-2: #e0e0e0;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

/* Floating background */
.floating-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    will-change: transform;
}

.floating-circle:nth-child(1) {
    background: radial-gradient(circle, var(--color-1) 10%, transparent 70%);
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation: float1 25s infinite linear;
    opacity: 0.3;
}

.floating-circle:nth-child(2) {
    background: radial-gradient(circle, var(--color-2) 10%, transparent 70%);
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation: float2 30s infinite linear;
    opacity: 0.2;
}

.floating-circle:nth-child(3) {
    background: radial-gradient(circle, var(--color-3) 10%, transparent 70%);
    width: 400px;
    height: 400px;
    top: 30%;
    left: 50%;
    animation: float3 35s infinite linear;
    opacity: 0.15;
}

.floating-circle:nth-child(4) {
    background: radial-gradient(circle, var(--color-1-dark) 30%, transparent 70%);
    width: 150px;
    height: 150px;
    top: 80%;
    left: 20%;
    animation: float4 20s infinite linear;
    opacity: 0.25;
}

.floating-circle:nth-child(5) {
    background: radial-gradient(circle, var(--color-1-dark-2) 30%, transparent 70%);
    width: 250px;
    height: 250px;
    top: 5%;
    right: 30%;
    animation: float5 28s infinite linear;
    opacity: 0.2;
}

@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -50px) scale(1.1); }
    50% { transform: translate(200px, 100px) scale(0.9); }
    75% { transform: translate(-50px, 150px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-150px, 100px) scale(0.8); }
    66% { transform: translate(-80px, -120px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float3 {
    0% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(-200px, 50px) scale(1.1); }
    40% { transform: translate(-100px, -100px) scale(0.9); }
    60% { transform: translate(150px, -50px) scale(1.05); }
    80% { transform: translate(100px, 120px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float4 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(300px, -200px) scale(1.3); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float5 {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-100px, 80px) scale(0.9); }
    50% { transform: translate(50px, 150px) scale(1.1); }
    75% { transform: translate(-200px, 50px) scale(0.85); }
    100% { transform: translate(0, 0) scale(1); }
}

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


/* Hide the body content until fonts are loaded */
body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.fonts-loaded {
    opacity: 1;
}

body.fonts-loaded .loading-spinner {
    display: none;
}

/* Add a loading indicator */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: sans-serif;
    color: var(--white);
}

.hidden {
    display: none;
}

/* Typography */
h1 {
  font-family: 'Pacifico', cursive;
  font-display: block;
  font-size: 5rem;
  margin-bottom: 0.5rem;
  color: var(--color-1);
  text-shadow: 0 0 1px var(--color-3);
}

h2 {
  font-weight: 300;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 4rem auto;
  color: var(--white-2);
}

/* Container layout */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  position: relative;
}

/* Vertical divider */
.container::after {
  content: '';
  position: absolute;
  height: 120px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-1), transparent);
  left: 50%;
  transform: translateX(-50%);
}

/* Section styling */
.section {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Button styling */
.button {
  /*background: linear-gradient(45deg, #2d9fff, #4f9eff);*/
  background: linear-gradient(45deg, var(--color-1), var(--color-3));
  border: none;
  border-radius: 30px;
  color: var(--white);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--color-1-dark);
}

.button.disabled {
    background: var(--grey);
}

.button.disabled:hover {
  transform: none;
  box-shadow: none;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--color-1-dark-2);
}

.button:active {
  transform: translateY(1px);
}

.big-margin-top {
    margin-top: 4rem;
}

.small-margin-top {
    margin-top: 1rem;
}

/* Hamburger menu container */
.hamburger-container {
    position: fixed;
    left: 15px;
    top: 15px;
    z-index: 999;
    transition: top 0.3s ease-out;
}

.hamburger-container.status-bar-showing {
    top: 45px;
}

/* Hamburger menu button */
.hamburger-menu {
    width: 30px;
    height: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hamburger-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: -1;
}

.hamburger-menu .line {
    width: 100%;
    height: 3px;
    background-color: var(--color-1);
    transition: 0.3s;
}

/* Hamburger animation when active */
.hamburger-menu.active .line:nth-child(1) {
    transform: rotate(45deg) translate(7.5px, 7.5px);
    z-index: 1003;
}

.hamburger-menu.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(7.5px, -7.5px);
    z-index: 1003;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 35px;
    left: 0;
    background: linear-gradient(135deg, rgba(45, 159, 255, 0.15), rgba(45, 255, 181, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 159, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1002;
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 4px 8px;
}

.dropdown-menu a:hover {
    background-color: rgba(45, 159, 255, 0.2);
    transform: translateX(5px);
}

.profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    background-color: rgba(45, 159, 255, 0.2);
    border: 2px solid var(--color-1);
    position: relative;
    overflow: hidden;
}

.profile-image .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.profile-image .avatar-initial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--white);
    background: transparent;
    border-radius: 50%;
}

/* Logout */
.logout {
    position: absolute;
    right: 15px;
    top: 5px;
}

.logout a {
    color: red;
}

/* Join game section */
.join-game {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Input styling */
input, select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-1);
  border-radius: 30px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 200px;
  transition: all 0.3s ease;
  outline: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px var(--color-1-dark);
}

input.create-game {
  max-width: 100px;
}

input.error {
    border: 2px solid red;
    background-color: darkred;
}

select {
  max-width: 250px;
}

/* How to play section */
.how-to-play {
    margin-top: 4rem;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--color-1);
}

/* Passcode display - improved centering for large viewports */
.passcode-display {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.how-to-play h3 {
    color: var(--color-2);
    margin-bottom: 1rem;
}

.how-to-play p {
    color: var(--white-2);
    line-height: 1.6;
}

/* Search tune modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: var(--color-1-dark-2);
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    background-color: var(--color-1-dark);
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
}

.close {
    color: var(--white-2);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.modal-body {
    padding: 20px;
}

/* Search result styles */
.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.search-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.track-info {
    flex: 1;
}

.track-name {
    color: var(--white-2);
    font-weight: bold;
    margin-bottom: 4px;
}

.artist-name {
    color: var(--white-2);
    font-size: 0.9em;
}

.track-artwork {
    width: 60px;
    height: 60px;
    margin-right: 12px;
    flex-shrink: 0;
}

.track-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--white-2);
    border-radius: 4px;
}

.add-button {
    background-color: var(--color-2);
    color: var(--black);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    min-width: 80px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-button:hover {
    background-color: var(--color-1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.add-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Lobby Styles */
.lobby {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.lobby h1 {
    text-align: center;
    color: var(--color-1);
    margin-bottom: 10px;
    font-size: 2.5em;
}

.game-info {
    text-align: center;
    color: var(--white-2);
    margin-bottom: 30px;
    font-size: 1.1em;
    opacity: 0.8;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
}

.user-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lobby-avatar-container {
    position: relative;
    margin-bottom: 8px;
}

.lobby-avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--color-1);
    display: block;
    object-fit: cover;
}

.lobby-avatar-initial {
    background-color: rgba(45, 159, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-1);
}

.lobby-avatar-creator .lobby-avatar-image {
    border-color: #FFD700;
}

.user-name {
    margin-top: 2px;
    color: var(--white-2);
    font-weight: 600;
    font-size: 14px;
}

.creator-badge {
    margin-top: 4px;
    background-color: var(--color-2);
    color: var(--black);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.game-container {
    min-height: 100vh;
    background: var(--background-gradient);
}

/* Error Messages */
.error-message {
    background-color: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 8px;
}

.error-message p {
    margin: 0;
}

.lobby-error {
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* Error Banner */
.notification-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    min-width: 200px;
}

.notification-banner.good {
    background-color: rgba(76, 175, 80, 0.95);
}

.notification-banner.bad {
    background-color: rgba(244, 67, 54, 0.95);
}

.notification-banner.neutral {
    background-color: rgba(158, 158, 158, 0.95);
}

/* Notification avatar styles */
.notification-with-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-avatar-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-avatar-initial {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.notification-text {
    flex-grow: 1;
}

/* Legacy support - redirect to bad notification */
.error-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: rgba(244, 67, 54, 0.95);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    min-width: 200px;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Lock Control */
.lock-control {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px 0;
}

/* Start Game Section */
.start-game-section {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Game Rules Section */
.game-rules-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(45, 159, 255, 0.3);
    border-radius: 25px;
    padding: 30px;
    margin-top: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rules-header {
    text-align: center;
    margin-bottom: 30px;
}

.rules-header h2 {
    color: var(--color-2);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(45, 255, 181, 0.3);
}

.rules-subtitle {
    color: var(--white-2);
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.rule-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-1), var(--color-2), var(--color-3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rule-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(45, 159, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.rule-card:hover::before {
    opacity: 1;
}

.rule-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.rule-card h3 {
    color: var(--color-1);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.rule-card ul {
    list-style: none;
    padding: 0;
}

.rule-card li {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.point-badge {
    background: linear-gradient(45deg, var(--color-2), var(--color-1));
    color: var(--black);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(45, 255, 181, 0.3);
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.point-badge.bonus {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: var(--black);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    animation: bonus-pulse 2s infinite;
}

@keyframes bonus-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
        transform: scale(1.05);
    }
}

/* Start Tune Section */
.start-tune-section {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.lock-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 15px;
}

.lock-checkbox {
    display: none;
}

.lock-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.lock-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lock-checkbox:checked + .lock-slider {
    background-color: var(--color-2);
}

.lock-checkbox:checked + .lock-slider::before {
    transform: translateX(30px);
}

.lock-label {
    color: var(--white-2);
    font-weight: 600;
    font-size: 16px;
}


.fa-trash-can {
    color: red;
    cursor: pointer;
}

.fa-down-long {
    cursor: pointer;
}

.fa-up-long {
    cursor: pointer;
}


/* SCOREBOARD STYLING */
.scoreboard {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.scoreboard h1 {
    text-align: center;
    color: var(--color-1);
    margin-bottom: 30px;
    font-size: 2.5em;
}

.scoreboard-content {
    padding: 20px 0;
}

.game-progress {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(45, 159, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.progress-info {
    margin-bottom: 15px;
}

.progress-text {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--white);
}

.progress-bar-container {
    width: 100%;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-2), var(--color-1));
    border-radius: 8px;
    transition: width 0.5s ease-out;
    min-width: 0;
}

.scoreboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scoreboard-player {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(45, 159, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.scoreboard-player:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-1);
    transform: translateY(-2px);
}

.player-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.player-rank {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-2);
    min-width: 60px;
}

.player-avatar-container {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.scoreboard-avatar-container {
    position: relative;
}

.scoreboard-avatar-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--color-1);
    display: block;
    object-fit: cover;
}

.scoreboard-avatar-initial {
    background-color: rgba(45, 159, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-1);
}

.scoreboard-avatar-creator .scoreboard-avatar-image {
    border-color: #FFD700;
}

.player-details {
    flex: 1;
    margin: 0 15px;
}

.player-name {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--white);
}

.player-points {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--color-1);
    min-width: 80px;
    text-align: right;
}


/* PLAYING TRACK STYLING */
.playing-track {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.playing-track h1 {
    color: var(--color-1);
    font-size: 3em;
    margin-bottom: 40px;
}

.track-info {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(45, 159, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    max-width: 600px;
    width: 100%;
}

.track-title {
    color: var(--white);
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.track-player {
    color: var(--white-2);
    font-size: 1.1em;
    opacity: 0.8;
}

.countdown {
    margin: 40px 0;
}

.countdown-number {
    font-size: 8em;
    font-weight: bold;
    color: var(--color-2);
    text-shadow: 0 0 20px var(--color-2);
    animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
    0% { 
        transform: scale(0.8); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.2); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.playing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.playing-animation {
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-1);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.playing-indicator p {
    font-size: 1.4em;
    color: var(--white);
    font-weight: 600;
}

/* GAME STYLING */
.game-status {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    transition: height 0.3s ease-out;
}

.game-status-connected {
    height: 3px;
    background-color: darkgreen;
}

.game-status-connected.hiding {
    height: 0;
}

.game-status-disconnected {
    height: 30px;
    background-color: red;
    padding-top: 5px;
    font-size: 10pt;
}

.game-status-disconnected > a {
    cursor: pointer;
    text-decoration: underline;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .container {
        flex-direction: column;
        gap: 2rem;
    }

    .container::after {
        height: 2px;
        width: 80%;
        left: 50%;
        top: calc(50% - 30px);
        transform: translate(-50%, -50%);
        background: linear-gradient(to right, transparent, var(--color-1), transparent);
    }

    .dropdown-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(45, 159, 255, 0.1));
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        border: none;
    }

    .dropdown-menu.show {
        transform: translateX(0);
    }

    .dropdown-menu ul {
        text-align: center;
        padding: 0;
    }

    .dropdown-menu li {
        margin: 20px 0;
    }

    .dropdown-menu a {
        font-size: 24px;
        padding: 20px;
        justify-content: center;
        border-radius: 8px;
        margin: 0 20px;
    }

    .dropdown-menu a:hover {
        background-color: rgba(45, 159, 255, 0.2);
        transform: translateX(5px);
    }

    .profile-image {
        width: 40px;
        height: 40px;
        margin-right: 16px;
    }

    /* Hamburger menu larger clickable area on mobile */
    .hamburger-menu::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }

    /* Add more spacing between sections on mobile */
    .section {
        padding: 1.5rem;
    }

    /* Add more space for the join game section */
    .join-game {
        margin-top: 1rem;
    }
    
    /* Scoreboard mobile adjustments */
    .scoreboard {
        padding: 15px;
    }
    
    .scoreboard h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .game-progress {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .progress-text {
        font-size: 1em;
    }
    
    .progress-bar-container {
        height: 12px;
    }
    
    .scoreboard-player {
        padding: 15px;
    }
    
    .player-info {
        margin-bottom: 12px;
    }
    
    .player-rank {
        font-size: 1.5em;
        min-width: 50px;
    }
    
    .player-avatar-container {
        margin: 0 10px;
    }
    
    .scoreboard-avatar-image {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
    
    .scoreboard-avatar-initial {
        font-size: 16px;
    }
    
    .player-details {
        margin: 0 10px;
    }
    
    .player-name {
        font-size: 1.1em;
    }
    
    .player-points {
        font-size: 1.2em;
        min-width: 70px;
    }
    
    /* Playing track mobile adjustments */
    .playing-track {
        padding: 15px;
        min-height: 70vh;
    }
    
    .playing-track h1 {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    
    .track-info {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .track-title {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    
    .track-player {
        font-size: 1em;
    }
    
    .countdown {
        margin: 30px 0;
    }
    
    .countdown-number {
        font-size: 5em;
    }
    
    .playing-animation {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .playing-indicator p {
        font-size: 1.2em;
    }

    /* Guess grid mobile adjustments */
    .my-tune-button {
        padding: 15px 30px;
        font-size: 1.2em;
        margin-bottom: 30px;
    }
    
    .guess-grid {
        gap: 15px;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .guess-player {
        padding: 15px;
        min-height: 120px;
    }
    
    .guess-avatar-container {
        margin-bottom: 15px;
    }
    
    .guess-avatar-image {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .guess-avatar-initial {
        font-size: 20px;
    }
    
    .guess-player-name {
        font-size: 0.95em;
    }
    
    /* Guess result mobile adjustments */
    .guess-result {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .guess-feedback {
        padding: 20px 25px;
        border-radius: 15px;
    }
    
    .result-icon {
        font-size: 3em;
        margin-bottom: 15px;
    }
    
    .result-text {
        font-size: 1.1em;
    }
    
    /* Final results mobile adjustments */
    .final-results {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .final-results-container {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .final-results-container h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .correct-answer h3 {
        font-size: 1.6em;
    }
    
    .track-info p {
        font-size: 1em;
    }
    
    .points-earned {
        padding: 15px;
        border-radius: 12px;
    }
    
    .points-icon {
        font-size: 2em;
        margin-bottom: 8px;
    }
    
    .points-text {
        font-size: 1.2em;
    }
    
    .total-points {
        font-size: 1.1em;
    }
    
    /* Guessing timer mobile adjustments */
    .guessing-timer {
        margin: 15px 0;
    }
    
    .timer-text {
        font-size: 1em;
    }
    
    .timer-number {
        font-size: 2em;
    }
    
    /* Game Rules mobile adjustments */
    .game-rules-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .rules-header h2 {
        font-size: 1.5rem;
    }
    
    .rules-subtitle {
        font-size: 1rem;
    }
    
    .rules-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .rule-card {
        padding: 20px;
    }
    
    .rule-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .rule-card h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .rule-card li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .point-badge {
        font-size: 0.8rem;
        padding: 3px 6px;
        min-width: 25px;
    }
}

/* Guess grid styling */
.my-tune-button {
    background: linear-gradient(45deg, var(--color-1), var(--color-3));
    border: none;
    color: white;
    padding: 20px 40px;
    border-radius: 25px;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 5px 15px var(--color-1-dark);
}

.my-tune-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--color-1-dark-2);
}

.my-tune-button:active {
    transform: translateY(1px);
}

.guess-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.guess-player {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 140px;
    justify-content: center;
}

.guess-player:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.guess-player.selected {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.guess-player.selected:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.guess-avatar-container {
    margin-bottom: 12px;
}

.guess-avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.guess-player:hover .guess-avatar-image {
    border-color: rgba(255, 255, 255, 0.6);
}

.guess-player.selected .guess-avatar-image {
    border-color: white;
}

.guess-avatar-initial {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.guess-player:hover .guess-avatar-initial {
    border-color: rgba(255, 255, 255, 0.6);
}

.guess-player.selected .guess-avatar-initial {
    border-color: white;
}

.guess-player-name {
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.guess-player:hover .guess-player-name {
    color: white;
}

.guess-player.selected .guess-player-name {
    color: white;
}

/* Guess result styling */
.guess-result {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Artist and Song Guess Component */
.artist-song-guess {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    max-width: 500px;
    width: 100%;
}

.artist-song-guess h3 {
    color: var(--color-2);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.artist-song-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.input-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group label {
    color: var(--white-2);
    font-weight: 500;
    font-size: 0.9rem;
}

.result-checkbox {
    font-size: 1.2rem;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: bold;
}

.result-checkbox.correct {
    background-color: rgba(45, 255, 181, 0.2);
    color: var(--color-2);
}

.result-checkbox.incorrect {
    background-color: rgba(255, 45, 219, 0.2);
    color: var(--color-3);
}

.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group input {
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    flex: 1;
}

.input-group input.correct {
    border-color: var(--color-2);
    background-color: rgba(45, 255, 181, 0.15);
    box-shadow: 0 0 15px rgba(45, 255, 181, 0.3);
}

.input-group input.incorrect {
    border-color: var(--color-3);
    background-color: rgba(255, 45, 219, 0.15);
    box-shadow: 0 0 15px rgba(255, 45, 219, 0.3);
}

.input-group input.pending-red {
    border-color: var(--color-3);
    background-color: rgba(255, 45, 219, 0.1);
    box-shadow: 0 0 10px rgba(255, 45, 219, 0.2);
}

.check-individual-button {
    background: linear-gradient(45deg, var(--color-2), var(--color-1));
    color: var(--black);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
}

.check-individual-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 255, 181, 0.4);
}

.check-individual-button:disabled {
    background: var(--grey);
    color: var(--white-2);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.check-artist-song-button {
    background: linear-gradient(45deg, var(--color-2), var(--color-1));
    color: var(--black);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.check-artist-song-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 255, 181, 0.4);
}

.check-artist-song-button:disabled {
    background: var(--grey);
    color: var(--white-2);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.artist-song-result {
    margin-top: 15px;
    text-align: center;
}

.result-summary {
    margin-bottom: 15px;
}

.points-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.points-earned {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-2);
    text-shadow: 0 0 10px rgba(45, 255, 181, 0.5);
}

.points-detail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.point-item {
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.point-item.correct {
    background-color: rgba(45, 255, 181, 0.2);
    color: var(--color-2);
    border: 1px solid var(--color-2);
}

.point-item.incorrect {
    background-color: rgba(255, 45, 219, 0.2);
    color: var(--color-3);
    border: 1px solid var(--color-3);
}

.point-item.bonus {
    background-color: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
    animation: bonus-glow 1.5s infinite alternate;
}

@keyframes bonus-glow {
    from {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
}

.perfect-score {
    color: var(--color-2);
    font-weight: 600;
    font-size: 1.1rem;
}

.partial-score {
    color: var(--white-2);
    font-weight: 500;
    font-size: 1rem;
}

.correct-answer {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.9rem;
    color: var(--white-2);
}

.guess-feedback {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    text-align: center;
    border: 3px solid;
    animation: resultAppear 0.5s ease-out;
}

.guess-feedback.correct {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.guess-feedback.incorrect {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

.result-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.result-text {
    font-size: 1.3em;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

@keyframes resultAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Final results styling */
.final-results {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.final-results-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    text-align: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: resultAppear 0.5s ease-out;
}

.final-results-container h2 {
    font-size: 2.5em;
    color: #ff6b6b;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.correct-answer {
    margin-bottom: 20px;
}

.correct-answer p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.correct-answer h3 {
    font-size: 2em;
    color: #4CAF50;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.track-info {
    margin-bottom: 30px;
}

.track-info p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.user-result {
    margin-bottom: 20px;
}

.points-earned {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid;
    margin-bottom: 15px;
}

.points-earned.correct {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.points-earned.incorrect {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.points-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.points-text {
    font-size: 1.4em;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.total-points {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
}

.redirect-message {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Guessing timer styling */
.guessing-timer {
    margin: 20px 0;
    text-align: center;
}

.timer-text {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.timer-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.timer-number.urgent {
    color: #ff6b6b;
    animation: urgentPulse 0.5s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Create Game Form Styling */
.create-game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.create-game-form {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(45, 159, 255, 0.3);
    border-radius: 25px;
    padding: 3rem;
    margin-top: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-section {
    margin-bottom: 3rem;
    text-align: center;
}

.form-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-2);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Song Count Section */
.song-count-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.song-count-input {
    width: 100px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--color-1);
    border-radius: 15px;
    color: var(--white);
    outline: none;
    transition: all 0.3s ease;
}

.song-count-input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px var(--color-1-dark);
    transform: scale(1.05);
}

.input-label {
    font-size: 1.2rem;
    color: var(--white-2);
    font-weight: 500;
}

/* Category Selection */
.category-selection {
    width: 100%;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.category-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--white);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 1.2rem 1.5rem;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}

.category-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-option.selected {
    background: linear-gradient(135deg, var(--color-2), var(--color-1));
    border-color: var(--color-2);
    color: var(--black);
    font-weight: 600;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 255, 181, 0.4);
}


/* Custom Category Option in Grid */
.custom-category-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 120px;
    justify-content: center;
    grid-column: 1 / -1; /* Span both columns */
}

.custom-category-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.custom-category-option.active {
    background: linear-gradient(135deg, var(--color-2), var(--color-1));
    border-color: var(--color-2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 255, 181, 0.4);
}

.custom-category-label {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.5rem;
}

.custom-category-option.active .custom-category-label {
    color: var(--black);
    font-weight: 600;
}

.custom-category-input {
    width: 100%;
    max-width: none;
    height: 40px;
    font-size: 0.95rem;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: var(--white);
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    box-sizing: border-box;
}

.custom-category-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.custom-category-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.custom-category-option.active .custom-category-input {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
    color: var(--black);
}

.custom-category-option.active .custom-category-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.custom-category-option.active .custom-category-input:focus {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Create Game Button */
.create-game-button {
    background: linear-gradient(45deg, var(--color-1), var(--color-3));
    border: none;
    border-radius: 35px;
    color: var(--white);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--color-1-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0 auto;
    outline: none;
}

.create-game-button:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--color-1-dark-2);
}

.create-game-button:active:not(:disabled) {
    transform: translateY(-2px);
}

.create-game-button:disabled {
    background: var(--grey);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.button-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .create-game-container {
        padding: 1rem;
    }
    
    .create-game-form {
        padding: 2rem;
        margin-top: 1rem;
    }
    
    .form-label {
        font-size: 1.2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .custom-category-input {
        font-size: 0.9rem;
        height: 35px;
    }
    
    .custom-category-option {
        min-height: 100px;
        padding: 1rem;
    }
    
    .create-game-button {
        width: 100%;
        max-width: 300px;
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}

/* Disconnected player styles */
.disconnected {
    opacity: 0.5;
    filter: grayscale(80%);
}

.scoreboard-player.disconnected {
    border-color: var(--grey);
    background: rgba(128, 128, 128, 0.1);
}

.scoreboard-player.disconnected .player-name {
    color: var(--grey);
}

.scoreboard-avatar-container.disconnected,
.guess-avatar-container.disconnected {
    opacity: 0.6;
}

.scoreboard-avatar-image.disconnected,
.guess-avatar-image.disconnected,
.guess-avatar-initial.disconnected {
    filter: grayscale(100%);
    border-color: var(--grey) !important;
}

.guess-player.disconnected {
    background: rgba(128, 128, 128, 0.1);
    border-color: var(--grey);
}

.guess-player.disconnected .guess-player-name {
    color: var(--grey);
}

.guess-player.disconnected:hover {
    background: rgba(128, 128, 128, 0.15);
    border-color: var(--grey);
    transform: none;
    box-shadow: none;
}

/*!* Desktop hover behavior *!*/
/*@media (min-width: 769px) {*/
/*    .hamburger-container:hover .dropdown-menu {*/
/*        opacity: 1;*/
/*        visibility: visible;*/
/*        transform: translateY(0);*/
/*    }*/

/*    .hamburger-container:hover .hamburger-menu .line:nth-child(1) {*/
/*        transform: rotate(45deg) translate(7.5px, 7.5px);*/
/*    }*/

/*    .hamburger-container:hover .hamburger-menu .line:nth-child(2) {*/
/*        opacity: 0;*/
/*    }*/

/*    .hamburger-container:hover .hamburger-menu .line:nth-child(3) {*/
/*        transform: rotate(-45deg) translate(7.5px, -7.5px);*/
/*    }*/
/*}*/

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}


.loading-message {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* tsParticles confetti container - styles handled by library */

/* Winner celebration styles */
.winner-celebration {
    position: relative;
    animation: celebrate 2s ease-in-out;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.05); }
}

/* Final game message animation and styling */
.final-game-message {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(45, 159, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    animation: slideInUp 1s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.game-complete {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-2);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.winner-announcement {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.winner-announcement.winner-celebration {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    font-weight: bold;
}

.winner-announcement.winner-celebration::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500);
    border-radius: 15px;
    z-index: -1;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
