/* lobby.css - Video Game Dashboard Style Lobby */

/* ========================================
   MAIN LOBBY CONTAINER
   ======================================== */

.lobby-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    user-select: none;
    -webkit-user-select: none;

    /* Full-screen layout - no container styling */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 1.5rem;
    box-sizing: border-box;

    /* Flexbox for vertical centering of content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5vh;

    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.lobby-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Top accent line - disabled for full-screen layout */
.lobby-container::before {
    display: none;
}

/* ========================================
   LOBBY HEADER
   ======================================== */

.lobby-header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    /* Space for fixed navigation toolbar */
    padding-top: 4rem;
}

.lobby-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    text-shadow:
        0 0 30px rgba(100, 180, 255, 0.5),
        0 0 60px rgba(100, 150, 255, 0.3);
}

.lobby-header p {
    color: rgba(150, 180, 220, 0.7);
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.05em;
}

/* ========================================
   SINGLE PLAYER SECTION
   ======================================== */

.single-player-section {
    text-align: center;
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    width: 100%;
    max-width: 1000px;
}

.single-player-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 15px rgba(100, 180, 255, 0.3);
}

/* Difficulty Buttons Grid */
#single-player-options .difficulty-toggles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
    margin: 1.25rem auto;
    max-width: 600px;
    width: 100%;
}

.difficulty-btn {
    padding: 1rem 1.25rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-align: center;

    /* Button styling */
    background: linear-gradient(180deg,
        rgba(45, 55, 80, 0.85) 0%,
        rgba(30, 40, 65, 0.9) 100%);
    border: 2px solid rgba(100, 150, 255, 0.2);
    border-radius: 10px;
    color: rgba(180, 200, 240, 0.9);
    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 3px 10px rgba(0, 0, 0, 0.2);

    transition: all 0.2s ease;
}

.difficulty-btn:hover {
    background: linear-gradient(180deg,
        rgba(60, 75, 110, 0.9) 0%,
        rgba(45, 60, 95, 0.9) 100%);
    border-color: rgba(100, 180, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(100, 150, 255, 0.15),
        0 6px 15px rgba(0, 0, 0, 0.25);
}

.difficulty-btn.active {
    background: linear-gradient(180deg,
        rgba(80, 120, 200, 0.9) 0%,
        rgba(60, 100, 180, 0.9) 100%);
    border-color: rgba(100, 180, 255, 0.6);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(150, 200, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 25px rgba(100, 150, 255, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   SEPARATOR
   ======================================== */

.separator {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.separator::before,
.separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(100, 150, 255, 0.25),
        rgba(100, 150, 255, 0.25));
}

.separator::before {
    left: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(100, 150, 255, 0.25));
}

.separator::after {
    right: 0;
    background: linear-gradient(270deg,
        transparent,
        rgba(100, 150, 255, 0.25));
}

.separator span {
    background: transparent;
    padding: 0 1.5rem;
    color: rgba(120, 150, 200, 0.5);
    font-size: 0.85rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* ========================================
   LOBBY FORM
   ======================================== */

.lobby-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Player Name Input */
.player-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    border-radius: 10px;
    border: 2px solid rgba(100, 150, 255, 0.2);
    background: linear-gradient(180deg,
        rgba(30, 40, 60, 0.8) 0%,
        rgba(20, 30, 50, 0.9) 100%);
    color: #ffffff;
    transition: all 0.2s ease;

    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

.player-input:focus {
    outline: none;
    border-color: rgba(100, 180, 255, 0.5);
    background: linear-gradient(180deg,
        rgba(35, 50, 75, 0.85) 0%,
        rgba(25, 40, 65, 0.9) 100%);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(100, 150, 255, 0.15);
}

.player-input::placeholder {
    color: rgba(150, 170, 200, 0.5);
}

/* Join Lobby Button */
.lobby-form .button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 10px;
    border: 2px solid rgba(100, 180, 255, 0.4);
    background: linear-gradient(180deg,
        rgba(80, 120, 200, 0.9) 0%,
        rgba(60, 100, 180, 0.9) 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;

    box-shadow:
        0 0 20px rgba(100, 150, 255, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lobby-form .button:hover {
    background: linear-gradient(180deg,
        rgba(100, 145, 230, 0.95) 0%,
        rgba(80, 125, 210, 0.95) 100%);
    border-color: rgba(120, 200, 255, 0.6);
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(100, 180, 255, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ========================================
   LOBBY SECTIONS (Available Games, Players)
   ======================================== */

.lobby-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(180deg,
        rgba(25, 35, 55, 0.6) 0%,
        rgba(18, 28, 48, 0.7) 100%);
    border: 2px solid rgba(100, 150, 255, 0.15);
    border-radius: 14px;
    position: relative;
}

/* Section accent line */
.lobby-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(100, 150, 255, 0.3),
        transparent);
}

.lobby-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(180, 200, 240, 0.9);
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

/* Section Header with Button */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-header h3 {
    margin-bottom: 0;
}

/* Host New Game Button */
.section-header .button.secondary,
#host-game-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    border: 2px solid rgba(100, 255, 150, 0.3);
    background: linear-gradient(180deg,
        rgba(50, 100, 70, 0.8) 0%,
        rgba(35, 80, 55, 0.85) 100%);
    color: #90ffc0;
    cursor: pointer;
    transition: all 0.2s ease;

    box-shadow:
        0 0 15px rgba(100, 255, 150, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-header .button.secondary:hover,
#host-game-button:hover {
    background: linear-gradient(180deg,
        rgba(65, 130, 90, 0.9) 0%,
        rgba(50, 110, 75, 0.9) 100%);
    border-color: rgba(100, 255, 150, 0.5);
    transform: translateY(-1px);
    box-shadow:
        0 0 25px rgba(100, 255, 150, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ========================================
   HOSTED GAMES CAROUSEL
   ======================================== */

.games-carousel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.hosted-games.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hosted-games.carousel-track .game-item {
    flex: 0 0 100%;
    min-width: 0;
}

/* Navigation Buttons */
.carousel-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(100, 150, 255, 0.3);
    background: linear-gradient(180deg,
        rgba(45, 55, 80, 0.9) 0%,
        rgba(30, 40, 65, 0.95) 100%);
    color: rgba(180, 200, 240, 0.9);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-nav:hover:not(:disabled) {
    background: linear-gradient(180deg,
        rgba(60, 80, 120, 0.95) 0%,
        rgba(45, 60, 95, 0.95) 100%);
    border-color: rgba(100, 180, 255, 0.5);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.2);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-counter {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(150, 180, 220, 0.8);
    letter-spacing: 0.05em;
}

/* Dot indicators (optional, for many games) */
.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(100, 150, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(100, 150, 255, 0.5);
}

.carousel-dot.active {
    background: rgba(100, 180, 255, 0.9);
    transform: scale(1.2);
}

/* Empty state */
.carousel-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(150, 180, 220, 0.6);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

/* Light theme carousel */
.theme-light .carousel-nav {
    background: linear-gradient(180deg,
        rgba(140, 172, 220, 0.95) 0%,
        rgba(125, 160, 212, 0.95) 100%);
    border-color: rgba(80, 120, 180, 0.3);
    color: rgba(30, 50, 90, 0.9);
}

.theme-light .carousel-nav:hover:not(:disabled) {
    background: linear-gradient(180deg,
        rgba(155, 185, 228, 0.98) 0%,
        rgba(140, 172, 220, 0.98) 100%);
    border-color: rgba(70, 110, 175, 0.5);
    color: #1a1a2e;
}

.theme-light .carousel-counter {
    color: rgba(40, 60, 100, 0.8);
}

.theme-light .carousel-dot {
    background: rgba(80, 120, 180, 0.3);
}

.theme-light .carousel-dot:hover {
    background: rgba(80, 120, 180, 0.5);
}

.theme-light .carousel-dot.active {
    background: rgba(70, 110, 175, 0.9);
}

.theme-light .carousel-empty {
    color: rgba(40, 60, 100, 0.6);
}

/* Game Item Card */
.game-item {
    background: linear-gradient(180deg,
        rgba(35, 45, 70, 0.8) 0%,
        rgba(25, 35, 60, 0.85) 100%);
    border: 2px solid rgba(100, 150, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(100, 150, 255, 0.3),
        rgba(100, 200, 255, 0.5),
        rgba(100, 150, 255, 0.3));
}

/* Remove hover effect from game card - only buttons/expand should highlight */
.game-item:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Ensure themes don't add hover backgrounds */
body.theme-light .game-item:hover,
body.theme-classic .game-item:hover,
body.theme-kokoro .game-item:hover {
    background: unset !important;
    border-color: unset !important;
    transform: none !important;
    box-shadow: none !important;
}

.game-name {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 0.25rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(100, 180, 255, 0.3);
}

.game-host {
    color: rgba(150, 180, 220, 0.7);
    font-size: 0.85rem;
    font-family: 'Rajdhani', sans-serif;
}

.game-details {
    margin: 0.75rem 0;
    font-size: 0.8rem;
    color: rgba(140, 170, 210, 0.7);
    line-height: 1.5;
    font-family: 'Rajdhani', sans-serif;
}

/* Icon-based game stats */
.game-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(200, 220, 255, 0.9);
    font-family: 'Rajdhani', sans-serif;
}

.stat-item.enabled {
    color: rgba(100, 255, 150, 0.9);
}

.game-win-condition {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: rgba(180, 200, 240, 0.8);
    font-family: 'Rajdhani', sans-serif;
}

.win-icon {
    font-size: 0.9rem;
}

.win-text {
    font-weight: 500;
}

/* Item quantities - icon based */
.qty-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}

.qty-category:last-child {
    margin-bottom: 0;
}

.qty-category-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(150, 180, 220, 0.7);
    margin-right: 0.35rem;
    font-family: 'Rajdhani', sans-serif;
}

.qty-item {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Theme styles for category labels */
.theme-light .qty-category-label {
    color: rgba(40, 60, 100, 0.7);
}

.theme-classic .qty-category-label {
    color: #808080;
}

.theme-kokoro .qty-category-label {
    color: #8a6a6a;
}

/* Light theme icon stats */
.theme-light .stat-item {
    color: rgba(30, 50, 90, 0.9);
}

.theme-light .stat-item.enabled {
    color: rgba(34, 139, 34, 0.9);
}

.theme-light .game-win-condition {
    color: rgba(40, 60, 100, 0.8);
}

/* Classic theme icon stats */
.theme-classic .stat-item {
    color: #000000;
}

.theme-classic .stat-item.enabled {
    color: #006400;
}

.theme-classic .game-win-condition {
    color: #000000;
}

/* Kokoro theme icon stats */
.theme-kokoro .stat-item {
    color: #5a3a3a;
}

.theme-kokoro .stat-item.enabled {
    color: #d4577a;
}

.theme-kokoro .game-win-condition {
    color: #5a3a3a;
}

/* Player Tags in Game Item */
.game-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.game-player {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(180deg,
        rgba(80, 120, 200, 0.4) 0%,
        rgba(60, 100, 180, 0.5) 100%);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 20px;
    color: #a0c0ff;
}

.game-player.ai-player {
    background: linear-gradient(180deg,
        rgba(180, 100, 60, 0.4) 0%,
        rgba(160, 80, 40, 0.5) 100%);
    border-color: rgba(255, 150, 100, 0.3);
    color: #ffb080;
}

/* Game Summary Row */
.game-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.game-difficulty {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid;
}

/* Difficulty badge colors */
.game-difficulty.beginner {
    background: linear-gradient(180deg,
        rgba(34, 197, 94, 0.3) 0%,
        rgba(22, 163, 74, 0.4) 100%);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
}

.game-difficulty.intermediate {
    background: linear-gradient(180deg,
        rgba(234, 179, 8, 0.3) 0%,
        rgba(202, 138, 4, 0.4) 100%);
    border-color: rgba(234, 179, 8, 0.5);
    color: #fcd34d;
}

.game-difficulty.expert {
    background: linear-gradient(180deg,
        rgba(239, 68, 68, 0.3) 0%,
        rgba(220, 38, 38, 0.4) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
}

.game-difficulty.custom {
    background: linear-gradient(180deg,
        rgba(139, 92, 246, 0.3) 0%,
        rgba(109, 40, 217, 0.4) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: #a78bfa;
}

.game-players-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(200, 220, 255, 0.95);
    font-family: 'Rajdhani', sans-serif;
}

/* Expand Settings Button */
.expand-settings-btn {
    margin-left: auto;
    width: 24px;
    height: 24px;
    background: rgba(100, 150, 255, 0.15);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 6px;
    color: rgba(150, 180, 220, 0.8);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-settings-btn:hover {
    background: rgba(100, 150, 255, 0.25);
    border-color: rgba(100, 180, 255, 0.5);
    color: #ffffff;
}

/* Item Quantities - Expandable for Custom Games */
.game-item-quantities {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(100, 150, 255, 0.15);
    border-radius: 8px;
}

.game-item-quantities.collapsed {
    display: none;
}

.item-quantities-title {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(150, 180, 220, 0.8);
    margin-bottom: 0.375rem;
}

.item-quantities-list {
    font-size: 0.75rem;
    color: rgba(140, 170, 210, 0.85);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.4;
}

/* Light theme item quantities */
.theme-light .game-item-quantities {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(80, 120, 180, 0.2);
}

.theme-light .item-quantities-title {
    color: rgba(40, 60, 100, 0.8);
}

.theme-light .item-quantities-list {
    color: rgba(50, 70, 110, 0.85);
}

/* Classic theme - item quantities */
.theme-classic .game-item-quantities {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.theme-classic .item-quantities-title {
    color: #000000;
}

.theme-classic .item-quantities-list {
    color: #000000;
}

.theme-classic .game-details {
    color: #000000;
}

/* Kokoro theme - item quantities */
.theme-kokoro .game-item-quantities {
    background: rgba(90, 58, 58, 0.08);
    border-color: rgba(90, 58, 58, 0.2);
}

.theme-kokoro .item-quantities-title {
    color: #5a3a3a;
}

.theme-kokoro .item-quantities-list {
    color: #5a3a3a;
}

.theme-kokoro .game-details {
    color: #5a3a3a;
}

.theme-kokoro .game-players-count {
    color: #5a3a3a;
}

/* Classic theme - players count */
.theme-classic .game-players-count {
    color: #000000;
}

/* Light theme adjustments */
.theme-light .game-difficulty.beginner {
    background: linear-gradient(180deg,
        rgba(34, 197, 94, 0.25) 0%,
        rgba(22, 163, 74, 0.35) 100%);
    color: #15803d;
}

.theme-light .game-difficulty.intermediate {
    background: linear-gradient(180deg,
        rgba(234, 179, 8, 0.25) 0%,
        rgba(202, 138, 4, 0.35) 100%);
    color: #a16207;
}

.theme-light .game-difficulty.expert {
    background: linear-gradient(180deg,
        rgba(239, 68, 68, 0.25) 0%,
        rgba(220, 38, 38, 0.35) 100%);
    color: #b91c1c;
}

.theme-light .game-difficulty.custom {
    background: linear-gradient(180deg,
        rgba(139, 92, 246, 0.25) 0%,
        rgba(109, 40, 217, 0.35) 100%);
    color: #6d28d9;
}

.theme-light .game-players-count {
    color: rgba(30, 50, 90, 1);
}

.theme-light .expand-settings-btn {
    background: rgba(80, 120, 180, 0.15);
    border-color: rgba(80, 120, 180, 0.3);
    color: rgba(40, 60, 100, 0.8);
}

.theme-light .expand-settings-btn:hover {
    background: rgba(80, 120, 180, 0.25);
    border-color: rgba(80, 120, 180, 0.5);
    color: #1a1a2e;
}

/* ========================================
   PLAYERS IN LOBBY
   ======================================== */

#players-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(180deg,
        rgba(35, 45, 70, 0.7) 0%,
        rgba(25, 35, 60, 0.8) 100%);
    border: 1px solid rgba(100, 150, 255, 0.15);
    border-radius: 10px;
    border-left: 3px solid rgba(100, 180, 255, 0.5);
}

.player-item .player-name {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    color: #ffffff;
}

/* Hosting Badge */
.player-item .hosting-badge,
.player-item .badge {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    background: linear-gradient(180deg,
        rgba(255, 180, 50, 0.3) 0%,
        rgba(230, 150, 30, 0.4) 100%);
    border: 1px solid rgba(255, 180, 50, 0.5);
    color: #ffc050;
    text-shadow: 0 0 8px rgba(255, 180, 50, 0.4);
}

/* ========================================
   POWER-UP AND ATTACK SELECTORS
   ======================================== */

.attack-selector-group,
.power-up-selector-group {
    margin-top: 1.25rem;
}

.power-up-selector,
.attack-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.power-up-option,
.attack-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(180deg,
        rgba(35, 45, 70, 0.7) 0%,
        rgba(25, 35, 60, 0.8) 100%);
    border: 2px solid rgba(100, 150, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.power-up-option:hover,
.attack-option:hover {
    background: linear-gradient(180deg,
        rgba(45, 60, 90, 0.8) 0%,
        rgba(35, 50, 80, 0.85) 100%);
    border-color: rgba(100, 150, 255, 0.25);
}

.power-up-option.selected,
.attack-option.selected {
    background: linear-gradient(180deg,
        rgba(60, 100, 160, 0.5) 0%,
        rgba(45, 85, 145, 0.6) 100%);
    border-color: rgba(100, 180, 255, 0.5);
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.2);
}

.power-up-icon,
.attack-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.power-up-name,
.attack-name {
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #ffffff;
    flex-grow: 1;
}

.power-up-count,
.attack-count {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.power-up-option.selected .power-up-count,
.attack-option.selected .attack-count {
    opacity: 1;
}

/* Clear Buttons */
.power-up-clear,
.attack-clear {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.power-up-option.selected .power-up-clear,
.attack-option.selected .attack-clear {
    display: flex;
}

.power-up-clear:hover,
.attack-clear:hover {
    background: linear-gradient(180deg, #f87171, #ef4444);
    transform: scale(1.1);
}

/* ========================================
   INPUT GROUPS
   ======================================== */

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(150, 180, 220, 0.8);
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hint {
    font-size: 0.8rem;
    color: rgba(150, 180, 220, 0.5);
    margin-top: 0.25rem;
}

/* ========================================
   DIALOG BUTTONS
   ======================================== */

.dialog-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ========================================
   LIGHT THEME
   ======================================== */

.theme-light .lobby-container {
    /* Full-screen layout - transparent background */
    background: transparent;
    border: none;
    box-shadow: none;
}

.theme-light .lobby-header h2 {
    color: #1a1a2e;
    text-shadow: none;
}

.theme-light .lobby-header p {
    color: rgba(40, 55, 90, 0.8);
}

.theme-light .single-player-section h3,
.theme-light .lobby-section h3 {
    color: #1a1a2e;
}

.theme-light .difficulty-btn {
    background: linear-gradient(180deg,
        rgba(140, 172, 220, 0.95) 0%,
        rgba(125, 160, 212, 0.95) 100%);
    border-color: rgba(80, 120, 180, 0.3);
    color: rgba(30, 50, 90, 0.95);
}

.theme-light .difficulty-btn:hover {
    background: linear-gradient(180deg,
        rgba(155, 185, 228, 0.98) 0%,
        rgba(140, 172, 220, 0.98) 100%);
    border-color: rgba(70, 110, 175, 0.5);
    color: #1a1a2e;
}

.theme-light .difficulty-btn.active {
    background: linear-gradient(180deg,
        rgba(70, 110, 180, 0.95) 0%,
        rgba(55, 95, 165, 0.95) 100%);
    color: #ffffff;
}

.theme-light .player-input {
    background: linear-gradient(180deg,
        rgba(170, 198, 238, 0.95) 0%,
        rgba(155, 185, 230, 0.95) 100%);
    border-color: rgba(80, 120, 180, 0.3);
    color: #1a1a2e;
}

.theme-light .lobby-section {
    background: linear-gradient(180deg,
        rgba(150, 180, 225, 0.7) 0%,
        rgba(138, 170, 218, 0.75) 100%);
    border-color: rgba(80, 120, 180, 0.25);
}

.theme-light .game-item {
    background: linear-gradient(180deg,
        rgba(120, 155, 205, 0.95) 0%,
        rgba(105, 145, 195, 0.95) 100%);
    border-color: rgba(70, 110, 170, 0.35);
}

.theme-light .game-name {
    color: #1a1a2e;
    text-shadow: none;
}

/* Light theme - AI player badge */
.theme-light .game-player.ai-player {
    background: linear-gradient(180deg,
        rgba(180, 100, 60, 0.5) 0%,
        rgba(160, 80, 40, 0.6) 100%);
    border-color: rgba(180, 100, 60, 0.5);
    color: #7c2d12;
}

/* Light theme - Join/action buttons in game cards */
.theme-light .game-item .button.secondary {
    background: linear-gradient(180deg,
        rgba(70, 110, 170, 0.9) 0%,
        rgba(55, 95, 155, 0.9) 100%);
    border-color: rgba(70, 110, 170, 0.5);
    color: #ffffff;
}

.theme-light .game-item .button.secondary:hover {
    background: linear-gradient(180deg,
        rgba(85, 125, 185, 0.95) 0%,
        rgba(70, 110, 170, 0.95) 100%);
    border-color: rgba(70, 110, 170, 0.7);
}

.theme-light .player-item {
    background: linear-gradient(180deg,
        rgba(155, 185, 228, 0.9) 0%,
        rgba(142, 174, 222, 0.9) 100%);
    border-color: rgba(80, 120, 180, 0.2);
}

.theme-light .player-item .player-name {
    color: #1a1a2e;
}

/* Mode toggle buttons - styles moved to vs-ai-mode.css */

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .lobby-container {
        padding: 1.5rem 1rem;
        padding-top: 3vh;
    }

    .lobby-header h2 {
        font-size: 2rem;
    }

    #single-player-options .difficulty-toggles {
        grid-template-columns: repeat(2, 1fr);
    }

    #players-container {
        grid-template-columns: 1fr;
    }

    /* Carousel responsive - smaller nav buttons */
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .games-carousel {
        gap: 0.5rem;
    }
}

/* Mobile: Adjust padding for two-row header (nav + theme/records) */
@media (max-width: 768px) {
    .lobby-header {
        padding-top: 5rem;
    }
}

@media (max-width: 480px) {
    .lobby-container {
        padding: 1rem 0.75rem;
        padding-top: 2vh;
    }

    .lobby-header h2 {
        font-size: 1.75rem;
        letter-spacing: 0.08em;
    }

    #single-player-options .difficulty-toggles {
        gap: 0.5rem;
    }

    #single-player-options .difficulty-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .lobby-section {
        padding: 1rem;
    }

    .power-up-selector,
    .attack-selector {
        grid-template-columns: 1fr;
    }

    /* Carousel responsive - even smaller */
    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .carousel-counter {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .lobby-container {
        padding: 0.75rem 0.5rem;
        padding-top: 1vh;
    }

    .lobby-header h2 {
        font-size: 1.5rem;
    }

    #single-player-options .difficulty-btn {
        padding: 0.625rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   SHARE BUTTON & MODAL
   ======================================== */

.share-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    border: 2px solid rgba(100, 200, 150, 0.3);
    background: linear-gradient(180deg,
        rgba(50, 120, 90, 0.8) 0%,
        rgba(35, 100, 70, 0.85) 100%);
    color: #90ffc0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        0 0 15px rgba(100, 200, 150, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.share-btn:hover {
    background: linear-gradient(180deg,
        rgba(65, 150, 110, 0.9) 0%,
        rgba(50, 130, 90, 0.9) 100%);
    border-color: rgba(100, 200, 150, 0.5);
    transform: translateY(-1px);
    box-shadow:
        0 0 25px rgba(100, 200, 150, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* Share Modal */
.share-modal-content {
    text-align: center;
    max-width: 420px;
}

.share-message {
    color: rgba(180, 200, 240, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.share-link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.share-link-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: 'Rajdhani', monospace;
    border-radius: 8px;
    border: 2px solid rgba(100, 150, 255, 0.2);
    background: linear-gradient(180deg,
        rgba(30, 40, 60, 0.8) 0%,
        rgba(20, 30, 50, 0.9) 100%);
    color: #ffffff;
}

.share-link-input:focus {
    outline: none;
    border-color: rgba(100, 180, 255, 0.5);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-social-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

.share-twitter {
    background: rgba(29, 155, 240, 0.2);
    border-color: rgba(29, 155, 240, 0.4);
    color: #1da1f2;
}

.share-twitter:hover {
    background: rgba(29, 155, 240, 0.4);
    border-color: rgba(29, 155, 240, 0.7);
    box-shadow: 0 0 20px rgba(29, 155, 240, 0.3);
}

.share-facebook {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.4);
    color: #1877f2;
}

.share-facebook:hover {
    background: rgba(24, 119, 242, 0.4);
    border-color: rgba(24, 119, 242, 0.7);
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.3);
}

.share-reddit {
    background: rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 69, 0, 0.4);
    color: #ff4500;
}

.share-reddit:hover {
    background: rgba(255, 69, 0, 0.4);
    border-color: rgba(255, 69, 0, 0.7);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}

/* Light theme share button */
.theme-light .share-btn {
    background: linear-gradient(180deg,
        rgba(70, 150, 110, 0.9) 0%,
        rgba(55, 130, 95, 0.9) 100%);
    border-color: rgba(60, 140, 100, 0.5);
    color: #ffffff;
}

.theme-light .share-btn:hover {
    background: linear-gradient(180deg,
        rgba(85, 165, 125, 0.95) 0%,
        rgba(70, 150, 110, 0.95) 100%);
}

.theme-light .share-link-input {
    background: linear-gradient(180deg,
        rgba(170, 198, 238, 0.95) 0%,
        rgba(155, 185, 230, 0.95) 100%);
    border-color: rgba(80, 120, 180, 0.3);
    color: #1a1a2e;
}

.theme-light .share-message {
    color: rgba(40, 60, 100, 0.8);
}

/* Classic theme share button */
.theme-classic .share-btn {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    color: #000000;
    box-shadow: none;
}

.theme-classic .share-btn:hover {
    background: #d4d4d4;
}

.theme-classic .share-btn:active {
    border-style: inset;
}

/* Kokoro theme share button */
.theme-kokoro .share-btn {
    background: linear-gradient(180deg,
        rgba(212, 87, 122, 0.8) 0%,
        rgba(180, 70, 100, 0.85) 100%);
    border-color: rgba(212, 87, 122, 0.5);
    color: #fff0f5;
}

.theme-kokoro .share-btn:hover {
    background: linear-gradient(180deg,
        rgba(230, 100, 140, 0.9) 0%,
        rgba(200, 85, 115, 0.9) 100%);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .share-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem;
    }

    .share-btn span {
        display: none;
    }

    .share-buttons {
        gap: 0.75rem;
    }

    .share-social-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .share-btn {
        bottom: 0.75rem;
        right: 0.75rem;
    }
}

/* ========================================
   ITCH.IO TAB & SECTION
   ======================================== */

/* Hide itch.io tab by default - only shown in itch.io builds */
.itchio-tab[data-itchio-enabled="false"] {
    display: none !important;
}

/* itch.io tab special styling */
.itchio-tab {
    background: linear-gradient(180deg,
        rgba(180, 120, 40, 0.85) 0%,
        rgba(150, 100, 30, 0.9) 100%) !important;
    border-color: rgba(255, 180, 50, 0.4) !important;
    color: #ffd700 !important;
}

.itchio-tab:hover {
    background: linear-gradient(180deg,
        rgba(200, 140, 50, 0.9) 0%,
        rgba(170, 120, 40, 0.95) 100%) !important;
    border-color: rgba(255, 180, 50, 0.6) !important;
}

.itchio-tab.active {
    background: linear-gradient(180deg,
        rgba(220, 160, 60, 0.95) 0%,
        rgba(190, 130, 45, 0.95) 100%) !important;
    border-color: rgba(255, 200, 100, 0.7) !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Multiplayer Section */
.multiplayer-section {
    text-align: center;
    padding: 0;
    width: 100%;
    max-width: 800px;
}

/* itch.io Section Panel */
.itchio-section {
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.itchio-section[data-itchio-enabled="false"] {
    display: none !important;
}

.itchio-content {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(180deg,
        rgba(35, 45, 70, 0.6) 0%,
        rgba(25, 35, 60, 0.7) 100%);
    border: 2px solid rgba(255, 180, 50, 0.25);
    border-radius: 16px;
    padding: 2rem;
}

.itchio-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.itchio-header .itchio-icon {
    font-size: 2rem;
}

.itchio-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.itchio-message {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: rgba(220, 230, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.itchio-message strong {
    color: #ffffff;
}

.itchio-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.itchio-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 180, 50, 0.1);
    border: 1px solid rgba(255, 180, 50, 0.2);
    border-radius: 10px;
    text-align: left;
    transition: all 0.2s ease;
}

.itchio-action:hover {
    background: rgba(255, 180, 50, 0.15);
    border-color: rgba(255, 180, 50, 0.35);
    transform: translateX(5px);
}

/* Clickable link actions */
a.itchio-action.itchio-link {
    text-decoration: none;
    cursor: pointer;
}

a.itchio-action.itchio-link:hover {
    background: rgba(255, 180, 50, 0.25);
    border-color: rgba(255, 180, 50, 0.5);
    box-shadow: 0 0 15px rgba(255, 180, 50, 0.2);
}

.itchio-action .action-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.itchio-action .action-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.itchio-action .action-text strong {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffd700;
}

.itchio-action .action-text span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: rgba(200, 210, 240, 0.8);
}

.itchio-footer {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 200, 100, 0.9);
    margin: 1.5rem 0 0 0;
    font-style: italic;
}

/* Light theme itch.io */
.theme-light .itchio-tab {
    background: linear-gradient(180deg,
        rgba(220, 160, 60, 0.9) 0%,
        rgba(200, 140, 50, 0.9) 100%) !important;
    color: #ffffff !important;
}

.theme-light .itchio-tab.active {
    background: linear-gradient(180deg,
        rgba(200, 140, 40, 0.95) 0%,
        rgba(180, 120, 30, 0.95) 100%) !important;
}

.theme-light .itchio-content {
    background: linear-gradient(180deg,
        rgba(255, 248, 230, 0.95) 0%,
        rgba(255, 245, 220, 0.95) 100%);
    border-color: rgba(180, 130, 40, 0.3);
}

.theme-light .itchio-header h3 {
    color: #b8860b;
    text-shadow: none;
}

.theme-light .itchio-message {
    color: rgba(40, 50, 80, 0.9);
}

.theme-light .itchio-message strong {
    color: #1a1a2e;
}

.theme-light .itchio-action {
    background: rgba(180, 130, 40, 0.1);
    border-color: rgba(180, 130, 40, 0.2);
}

.theme-light .itchio-action:hover {
    background: rgba(180, 130, 40, 0.15);
    border-color: rgba(180, 130, 40, 0.35);
}

.theme-light .itchio-action .action-text strong {
    color: #b8860b;
}

.theme-light .itchio-action .action-text span {
    color: rgba(60, 70, 100, 0.8);
}

.theme-light .itchio-footer {
    color: rgba(150, 110, 30, 0.9);
}

/* Classic theme itch.io */
.theme-classic .itchio-tab {
    background: #c0c0c0 !important;
    border: 2px outset #ffffff !important;
    color: #000080 !important;
}

.theme-classic .itchio-tab.active {
    border-style: inset !important;
    background: #a0a0a0 !important;
}

.theme-classic .itchio-content {
    background: #c0c0c0;
    border: 2px inset #ffffff;
}

.theme-classic .itchio-header h3 {
    color: #000080;
    text-shadow: none;
}

.theme-classic .itchio-message {
    color: #000000;
}

.theme-classic .itchio-action {
    background: #d4d4d4;
    border: 1px solid #808080;
}

.theme-classic .itchio-action .action-text strong {
    color: #000080;
}

.theme-classic .itchio-action .action-text span {
    color: #000000;
}

.theme-classic .itchio-footer {
    color: #000080;
}

/* Kokoro theme itch.io */
.theme-kokoro .itchio-tab {
    background: linear-gradient(180deg,
        rgba(212, 87, 122, 0.85) 0%,
        rgba(180, 70, 100, 0.9) 100%) !important;
    border-color: rgba(212, 87, 122, 0.4) !important;
    color: #fff0f5 !important;
}

.theme-kokoro .itchio-tab.active {
    background: linear-gradient(180deg,
        rgba(230, 100, 140, 0.95) 0%,
        rgba(200, 85, 115, 0.95) 100%) !important;
}

.theme-kokoro .itchio-content {
    background: linear-gradient(180deg,
        rgba(60, 40, 50, 0.7) 0%,
        rgba(50, 35, 45, 0.8) 100%);
    border-color: rgba(212, 87, 122, 0.3);
}

.theme-kokoro .itchio-header h3 {
    color: #ffb6c1;
}

.theme-kokoro .itchio-action {
    background: rgba(212, 87, 122, 0.15);
    border-color: rgba(212, 87, 122, 0.25);
}

.theme-kokoro .itchio-action:hover {
    background: rgba(212, 87, 122, 0.25);
}

.theme-kokoro .itchio-action .action-text strong {
    color: #ffb6c1;
}

.theme-kokoro .itchio-footer {
    color: #ff69b4;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .itchio-section {
        padding: 1rem;
    }

    .itchio-content {
        padding: 1.5rem;
    }

    .itchio-header h3 {
        font-size: 1.25rem;
    }

    .itchio-message {
        font-size: 0.9rem;
    }

    .itchio-action {
        padding: 0.85rem;
    }

    .itchio-action .action-icon {
        font-size: 1.3rem;
    }

    .itchio-action .action-text strong {
        font-size: 0.9rem;
    }

    .itchio-action .action-text span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .itchio-content {
        padding: 1.25rem;
    }

    .itchio-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   HOST GAME MODAL LAYOUT
   ======================================== */

/* Override modal width for host game */
#host-game-modal .modal-content {
    max-width: 600px;
    width: 95%;

    /* Custom scrollbar matching theme */
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 150, 255, 0.3) rgba(0, 0, 0, 0.2);
}

#host-game-modal .modal-content::-webkit-scrollbar {
    width: 8px;
}

#host-game-modal .modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#host-game-modal .modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(100, 150, 255, 0.4) 0%,
        rgba(80, 120, 200, 0.4) 100%);
    border-radius: 4px;
    border: 1px solid rgba(100, 150, 255, 0.2);
}

#host-game-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(100, 150, 255, 0.6) 0%,
        rgba(80, 120, 200, 0.6) 100%);
}

/* 3-column layout for Game Settings, Attacks, Power-ups */
.host-game-sections-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
    grid-column: 1 / -1; /* Span full width in grid layouts */
}

.host-game-sections-row .host-game-section {
    flex: 1 1 0;
    margin-bottom: 0;
    min-width: 0;
}

/* Settings column layout */
.host-settings-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Make modal wider to fit 3 columns */
#host-game-modal .modal-content {
    max-width: 720px;
}

/* Inside 3-column row, use single column grids */
.host-game-sections-row .host-attacks-grid {
    grid-template-columns: 1fr;
}

.host-game-sections-row .host-powerups-grid {
    grid-template-columns: 1fr;
    max-width: none;
}

/* Mobile: Stack sections vertically */
@media (max-width: 680px) {
    .host-game-sections-row {
        flex-direction: column;
    }

    #host-game-modal .modal-content {
        max-width: 450px;
    }

    .host-game-sections-row .host-attacks-grid,
    .host-game-sections-row .host-powerups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   HOST GAME MODAL SECTIONS (VS AI Style)
   ======================================== */

.host-game-section {
    background: linear-gradient(180deg,
        rgba(25, 35, 60, 0.4) 0%,
        rgba(18, 28, 50, 0.5) 100%);
    border: 1px solid rgba(100, 150, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.host-section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(100, 180, 255, 0.9);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.host-section-hint {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(150, 180, 220, 0.5);
    text-transform: none;
    letter-spacing: 0;
}

.host-section-desc {
    font-size: 0.75rem;
    color: rgba(150, 180, 220, 0.6);
    margin: 0 0 0.75rem 0;
}

/* Game Settings Row - Counter Style */
.host-settings-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.host-setting-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(100, 150, 255, 0.1);
    border-radius: 10px;
    min-width: 90px;
    transition: all 0.2s ease;
}

.host-setting-selector:hover {
    border-color: rgba(100, 150, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.host-setting-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.host-setting-label.setting-lives { color: #ff6b6b; }
.host-setting-label.setting-grenades { color: #ffd93d; }
.host-setting-label.setting-attacks { color: #6bcfff; }
.host-setting-label.setting-grace { color: #50fa7b; }

/* Grace Period Toggle */
.grace-period-selector {
    flex-direction: row;
    gap: 0.75rem;
}

.grace-period-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.grace-period-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.grace-period-toggle .toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: rgba(80, 80, 100, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    transition: all 0.3s ease;
}

.grace-period-toggle .toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    top: 2px;
    left: 3px;
    background: rgba(200, 200, 200, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.grace-period-toggle input:checked + .toggle-slider {
    background: rgba(80, 250, 123, 0.4);
    border-color: rgba(80, 250, 123, 0.5);
}

.grace-period-toggle input:checked + .toggle-slider::before {
    transform: translateX(16px);
    background: #50fa7b;
    box-shadow: 0 0 8px rgba(80, 250, 123, 0.5);
}

/* Grace period disabled state */
.grace-period-selector.disabled .host-setting-counter {
    opacity: 0.4;
    pointer-events: none;
}

.grace-period-selector.disabled .host-setting-label {
    opacity: 0.5;
}

.host-setting-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.host-setting-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 6px;
    background: rgba(60, 100, 180, 0.3);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.host-setting-btn:hover {
    background: rgba(80, 120, 200, 0.5);
    border-color: rgba(100, 150, 255, 0.5);
}

.host-setting-btn:active {
    transform: scale(0.95);
}

.host-setting-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    min-width: 24px;
    text-align: center;
}

/* Attacks Grid - compact for side column */
.host-attacks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

/* When in two-column layout, attacks need compact grid */
@media (min-width: 540px) {
    .host-attacks-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .host-settings-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .host-setting-selector {
        flex-direction: row;
        justify-content: space-between;
        min-width: 100%;
        padding: 0.5rem 0.75rem;
    }
}

/* Reset conflicting styles from other CSS files for host modal */
#host-game-form .host-attack-option.attack-option,
#host-game-form .host-powerup-option.power-up-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.4rem;
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(100, 150, 255, 0.15) !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: none !important;
    transform: none !important;
}

#host-game-form .host-attack-option.attack-option:hover,
#host-game-form .host-powerup-option.power-up-option:hover {
    background: rgba(60, 100, 180, 0.3) !important;
    border-color: rgba(100, 150, 255, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

#host-game-form .host-attack-option.attack-option.selected,
#host-game-form .host-powerup-option.power-up-option.selected {
    background: linear-gradient(180deg, rgba(60, 100, 180, 0.4), rgba(40, 80, 160, 0.4)) !important;
    border-color: rgba(100, 150, 255, 0.5) !important;
    box-shadow: 0 0 12px rgba(100, 150, 255, 0.15) !important;
}

#host-game-form .host-attack-option .attack-icon,
#host-game-form .host-powerup-option .power-up-icon {
    font-size: 1.3rem;
    width: auto;
    height: auto;
}

#host-game-form .host-attack-option .attack-name,
#host-game-form .host-powerup-option .power-up-name {
    font-size: 0.65rem;
    color: rgba(200, 220, 255, 0.8);
    text-align: center;
    flex-grow: 0;
}

#host-game-form .host-attack-option .attack-count,
#host-game-form .host-powerup-option .power-up-count {
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: auto !important;
    background: linear-gradient(180deg, #ef4444, #dc2626) !important;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: none !important;
}

#host-game-form .host-attack-option.selected .attack-count,
#host-game-form .host-powerup-option.selected .power-up-count {
    opacity: 1;
}

/* Hide clear buttons in host modal */
#host-game-form .attack-clear,
#host-game-form .power-up-clear {
    display: none !important;
}

/* Power-ups Grid - full width at bottom */
.host-powerups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

/* Powerups in full width row - centered and balanced */
@media (min-width: 540px) {
    .host-powerups-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 320px;
        margin: 0 auto;
    }

    /* Ensure both attack and powerup items have consistent minimum height */
    #host-game-form .host-attack-option.attack-option,
    #host-game-form .host-powerup-option.power-up-option {
        min-height: 60px;
    }
}

.host-powerup-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(100, 150, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.host-powerup-option:hover {
    background: rgba(60, 100, 180, 0.3);
    border-color: rgba(100, 150, 255, 0.4);
    transform: translateY(-2px);
}

.host-powerup-option.selected {
    background: linear-gradient(180deg, rgba(60, 100, 180, 0.5), rgba(40, 80, 160, 0.5));
    border-color: rgba(100, 150, 255, 0.6);
    box-shadow: 0 0 15px rgba(100, 150, 255, 0.2);
}

.host-powerup-option .power-up-icon {
    font-size: 1.5rem;
}

.host-powerup-option .power-up-name {
    font-size: 0.7rem;
    color: rgba(200, 220, 255, 0.8);
    text-align: center;
}

.host-powerup-option .power-up-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(180deg, #10b981, #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.host-powerup-option.selected .power-up-count {
    opacity: 1;
}

/* Preset locked styling */
.host-game-section.preset-locked {
    pointer-events: none;
}

.host-game-section.preset-locked .host-setting-selector,
.host-game-section.preset-locked .host-attack-option,
.host-game-section.preset-locked .host-powerup-option {
    opacity: 0.7;
}

.preset-locked-indicator {
    font-size: 0.65rem;
    color: rgba(150, 180, 220, 0.5);
    font-style: italic;
    margin-left: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .host-settings-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .host-setting-selector {
        flex-direction: row;
        justify-content: space-between;
        min-width: 100%;
    }

    .host-attacks-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .host-powerups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 400px) {
    .host-attacks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   GAME SHARE BUTTON (in game cards)
   ======================================== */

.game-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.75rem;
}

.game-share-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 6px;
    border: 1px solid rgba(100, 200, 150, 0.3);
    background: linear-gradient(180deg,
        rgba(50, 100, 80, 0.6) 0%,
        rgba(35, 80, 60, 0.7) 100%);
    color: #90ffc0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-share-btn:hover {
    background: linear-gradient(180deg,
        rgba(65, 130, 100, 0.75) 0%,
        rgba(50, 110, 80, 0.8) 100%);
    border-color: rgba(100, 200, 150, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(100, 200, 150, 0.15);
}

.game-share-btn svg {
    flex-shrink: 0;
}

/* Light theme game share button */
.theme-light .game-share-btn {
    background: linear-gradient(180deg,
        rgba(70, 150, 110, 0.8) 0%,
        rgba(55, 130, 95, 0.85) 100%);
    border-color: rgba(60, 140, 100, 0.4);
    color: #ffffff;
}

.theme-light .game-share-btn:hover {
    background: linear-gradient(180deg,
        rgba(85, 165, 125, 0.9) 0%,
        rgba(70, 150, 110, 0.9) 100%);
}

/* Classic theme game share button */
.theme-classic .game-share-btn {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    color: #000000;
    box-shadow: none;
}

.theme-classic .game-share-btn:hover {
    background: #d4d4d4;
    transform: none;
}

.theme-classic .game-share-btn:active {
    border-style: inset;
}

/* Kokoro theme game share button */
.theme-kokoro .game-share-btn {
    background: linear-gradient(180deg,
        rgba(212, 87, 122, 0.7) 0%,
        rgba(180, 70, 100, 0.75) 100%);
    border-color: rgba(212, 87, 122, 0.4);
    color: #fff0f5;
}

.theme-kokoro .game-share-btn:hover {
    background: linear-gradient(180deg,
        rgba(230, 100, 140, 0.85) 0%,
        rgba(200, 85, 115, 0.85) 100%);
}

/* Mobile: hide text, keep icon */
@media (max-width: 480px) {
    .game-share-btn span {
        display: none;
    }

    .game-share-btn {
        padding: 0.4rem 0.5rem;
    }
}

/* ========================================
   GAME SHARE MODAL
   ======================================== */

.game-share-modal-content {
    text-align: center;
    max-width: 400px;
    position: relative;
    padding: 2rem;
}

.game-share-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-share-close-btn:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.4);
    color: #ff6b6b;
}

.game-share-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.game-share-header svg {
    color: #90ffc0;
}

.game-share-header .modal-title {
    margin: 0;
}

.game-share-info {
    margin-bottom: 1.25rem;
}

.game-share-info p {
    color: rgba(180, 200, 240, 0.7);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.game-share-game-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 8px;
}

.share-game-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(100, 180, 255, 0.3);
}

.share-host-label {
    font-size: 0.85rem;
    color: rgba(150, 180, 220, 0.7);
}

.share-host-name {
    color: #a0c0ff;
    font-weight: 600;
}

.game-share-link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.game-share-link-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-family: 'Rajdhani', monospace;
    border-radius: 8px;
    border: 2px solid rgba(100, 150, 255, 0.2);
    background: linear-gradient(180deg,
        rgba(30, 40, 60, 0.8) 0%,
        rgba(20, 30, 50, 0.9) 100%);
    color: #ffffff;
}

.game-share-link-input:focus {
    outline: none;
    border-color: rgba(100, 180, 255, 0.5);
}

.game-share-copy-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    min-width: 70px;
}

.game-share-copy-btn.copied {
    background: linear-gradient(180deg,
        rgba(50, 150, 80, 0.9) 0%,
        rgba(35, 130, 65, 0.9) 100%) !important;
    border-color: rgba(100, 255, 150, 0.5) !important;
}

.game-share-native-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    background: linear-gradient(180deg,
        rgba(80, 120, 200, 0.8) 0%,
        rgba(60, 100, 180, 0.85) 100%);
    border: 2px solid rgba(100, 150, 255, 0.4);
}

.game-share-native-btn:hover {
    background: linear-gradient(180deg,
        rgba(100, 145, 230, 0.9) 0%,
        rgba(80, 125, 210, 0.9) 100%);
}

.game-share-hint {
    color: rgba(150, 180, 220, 0.6);
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

/* Light theme game share modal */
.theme-light .game-share-close-btn {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.6);
}

.theme-light .game-share-close-btn:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.theme-light .game-share-header svg {
    color: #228b22;
}

.theme-light .game-share-info p {
    color: rgba(40, 60, 100, 0.7);
}

.theme-light .game-share-game-details {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(80, 120, 180, 0.2);
}

.theme-light .share-game-name {
    color: #1a1a2e;
    text-shadow: none;
}

.theme-light .share-host-label {
    color: rgba(40, 60, 100, 0.7);
}

.theme-light .share-host-name {
    color: #3366cc;
}

.theme-light .game-share-link-input {
    background: linear-gradient(180deg,
        rgba(170, 198, 238, 0.95) 0%,
        rgba(155, 185, 230, 0.95) 100%);
    border-color: rgba(80, 120, 180, 0.3);
    color: #1a1a2e;
}

.theme-light .game-share-hint {
    color: rgba(40, 60, 100, 0.6);
}

/* Classic theme game share modal */
.theme-classic .game-share-close-btn {
    background: #c0c0c0;
    border: 2px outset #ffffff;
    color: #000000;
    border-radius: 0;
}

.theme-classic .game-share-header svg {
    color: #000080;
}

.theme-classic .game-share-game-details {
    background: #d4d4d4;
    border: 2px inset #ffffff;
}

.theme-classic .share-game-name {
    color: #000080;
    text-shadow: none;
}

.theme-classic .share-host-label,
.theme-classic .share-host-name {
    color: #000000;
}

.theme-classic .game-share-link-input {
    background: #ffffff;
    border: 2px inset #808080;
    color: #000000;
}

.theme-classic .game-share-hint {
    color: #000000;
}

/* Kokoro theme game share modal */
.theme-kokoro .game-share-close-btn {
    background: rgba(212, 87, 122, 0.2);
    border-color: rgba(212, 87, 122, 0.3);
    color: #ffb6c1;
}

.theme-kokoro .game-share-close-btn:hover {
    background: rgba(212, 87, 122, 0.35);
    color: #ff69b4;
}

.theme-kokoro .game-share-header svg {
    color: #ff69b4;
}

.theme-kokoro .game-share-game-details {
    background: rgba(90, 58, 58, 0.15);
    border-color: rgba(212, 87, 122, 0.25);
}

.theme-kokoro .share-game-name {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(212, 87, 122, 0.4);
}

.theme-kokoro .share-host-name {
    color: #ffb6c1;
}

/* ========================================
   JOIN GAME MODAL (from shared link)
   ======================================== */

.join-game-modal-content {
    text-align: center;
    max-width: 420px;
    padding: 2rem;
}

.join-game-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.join-game-icon {
    font-size: 3rem;
    line-height: 1;
}

.join-game-header .modal-title {
    margin: 0;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.join-game-message {
    color: rgba(180, 200, 240, 0.8);
    font-size: 0.95rem;
    margin: 0 0 1.25rem 0;
}

.join-game-details {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.join-game-name-row,
.join-game-host-row,
.join-game-players-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.join-game-name-row:not(:last-child),
.join-game-host-row:not(:last-child) {
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
}

.join-game-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(150, 180, 220, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.join-game-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

#join-game-name {
    color: #a0c0ff;
    text-shadow: 0 0 10px rgba(100, 180, 255, 0.3);
}

#join-game-host {
    color: #90ffc0;
}

#join-game-players {
    color: #ffd93d;
}

.join-game-form {
    margin-bottom: 1rem;
}

.join-game-form .input-group {
    margin-bottom: 1.25rem;
}

.join-game-form .input-group label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
}

.join-game-actions {
    display: flex;
    gap: 0.75rem;
}

.join-game-actions .button {
    flex: 1;
}

.join-game-actions .button.primary {
    background: linear-gradient(180deg,
        rgba(50, 150, 80, 0.9) 0%,
        rgba(35, 130, 65, 0.9) 100%);
    border-color: rgba(100, 255, 150, 0.4);
}

.join-game-actions .button.primary:hover {
    background: linear-gradient(180deg,
        rgba(65, 175, 100, 0.95) 0%,
        rgba(50, 155, 80, 0.95) 100%);
    border-color: rgba(100, 255, 150, 0.6);
}

.join-game-hint {
    font-size: 0.8rem;
    color: rgba(150, 180, 220, 0.5);
    margin: 0;
    font-style: italic;
}

/* Join game error state */
.join-game-error {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
    font-size: 0.9rem;
}

.join-game-error-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Light theme join game modal */
.theme-light .join-game-header .modal-title {
    color: #b8860b;
    text-shadow: none;
}

.theme-light .join-game-message {
    color: rgba(40, 60, 100, 0.8);
}

.theme-light .join-game-details {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(80, 120, 180, 0.2);
}

.theme-light .join-game-label {
    color: rgba(40, 60, 100, 0.7);
}

.theme-light .join-game-value {
    color: #1a1a2e;
}

.theme-light #join-game-name {
    color: #3366cc;
    text-shadow: none;
}

.theme-light #join-game-host {
    color: #228b22;
}

.theme-light #join-game-players {
    color: #b8860b;
}

.theme-light .join-game-hint {
    color: rgba(40, 60, 100, 0.5);
}

.theme-light .join-game-actions .button.primary {
    background: linear-gradient(180deg,
        rgba(34, 139, 34, 0.9) 0%,
        rgba(28, 120, 28, 0.9) 100%);
}

/* Classic theme join game modal */
.theme-classic .join-game-header .modal-title {
    color: #000080;
    text-shadow: none;
}

.theme-classic .join-game-message {
    color: #000000;
}

.theme-classic .join-game-details {
    background: #d4d4d4;
    border: 2px inset #ffffff;
}

.theme-classic .join-game-label,
.theme-classic .join-game-value {
    color: #000000;
}

.theme-classic #join-game-name,
.theme-classic #join-game-host,
.theme-classic #join-game-players {
    color: #000080;
    text-shadow: none;
}

.theme-classic .join-game-hint {
    color: #808080;
}

/* Kokoro theme join game modal */
.theme-kokoro .join-game-header .modal-title {
    color: #ff69b4;
}

.theme-kokoro .join-game-details {
    background: rgba(90, 58, 58, 0.15);
    border-color: rgba(212, 87, 122, 0.25);
}

.theme-kokoro #join-game-name {
    color: #ffb6c1;
}

.theme-kokoro #join-game-host {
    color: #98fb98;
}

.theme-kokoro #join-game-players {
    color: #ffd700;
}

.theme-kokoro .join-game-actions .button.primary {
    background: linear-gradient(180deg,
        rgba(212, 87, 122, 0.9) 0%,
        rgba(180, 70, 100, 0.9) 100%);
    border-color: rgba(212, 87, 122, 0.5);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .join-game-modal-content {
        padding: 1.5rem;
    }

    .join-game-icon {
        font-size: 2.5rem;
    }

    .join-game-actions {
        flex-direction: column;
    }
}

/* ========================================
   PENDING JOIN NOTIFICATION
   ======================================== */

.pending-join-notification {
    background: linear-gradient(180deg,
        rgba(50, 150, 80, 0.2) 0%,
        rgba(35, 130, 65, 0.25) 100%);
    border: 2px solid rgba(100, 255, 150, 0.4);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(100, 255, 150, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(100, 255, 150, 0.4);
    }
}

.pending-join-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pending-join-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pending-join-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #90ffc0;
    text-shadow: 0 0 10px rgba(100, 255, 150, 0.3);
}

/* Light theme */
.theme-light .pending-join-notification {
    background: linear-gradient(180deg,
        rgba(34, 139, 34, 0.15) 0%,
        rgba(28, 120, 28, 0.2) 100%);
    border-color: rgba(34, 139, 34, 0.5);
}

.theme-light .pending-join-text {
    color: #228b22;
    text-shadow: none;
}

/* Classic theme */
.theme-classic .pending-join-notification {
    background: #90ee90;
    border: 2px solid #228b22;
    animation: none;
}

.theme-classic .pending-join-text {
    color: #000000;
    text-shadow: none;
}

/* Kokoro theme */
.theme-kokoro .pending-join-notification {
    background: linear-gradient(180deg,
        rgba(212, 87, 122, 0.2) 0%,
        rgba(180, 70, 100, 0.25) 100%);
    border-color: rgba(212, 87, 122, 0.5);
}

.theme-kokoro .pending-join-text {
    color: #ffb6c1;
    text-shadow: 0 0 10px rgba(212, 87, 122, 0.3);
}

@media (max-width: 480px) {
    .pending-join-notification {
        padding: 0.85rem 1rem;
    }

    .pending-join-text {
        font-size: 0.9rem;
    }
}
