/* ========================================
   SETUP SCREEN
======================================== */
.setup-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.setup-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10 L60 40 L90 40 L65 60 L75 90 L50 70 L25 90 L35 60 L10 40 L40 40 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

.setup-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 2;
    /* animation: slideUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); */
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.setup-header {
    background: linear-gradient(135deg, #10B981, #3B82F6);
    color: white;
       padding: 10px 9px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.setup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

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

.setup-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.setup-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.setup-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.setup-body {
    padding: 50px 40px;
}

.child-info {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #F9FAFB, #E8F5FF);
    border-radius: 25px;
    margin-bottom: 40px;
}

.child-avatar-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10B981, #3B82F6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 20px;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.child-info h3 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
}

.child-stats-inline {
    display: flex;
    gap: 30px;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gray);
}

.child-stats-inline strong {
    color: #10B981;
    font-size: 1.3rem;
}

.form-section {
    margin-bottom: 35px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}

.section-label i {
    color: #10B981;
}

.form-select-custom {
    width: 100%;
    padding: 18px 25px;
    border: 3px solid #E5E7EB;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    background: white;
    transition: all 0.3s ease;
}

.form-select-custom:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.verse-range {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.range-input {
    flex: 1;
}

.range-input label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 10px;
}

.range-input .form-control {
    padding: 15px 20px;
    border: 3px solid #E5E7EB;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.range-input .form-control:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.range-divider {
    font-size: 2rem;
    color: #10B981;
    font-weight: 900;
    margin-top: 25px;
}

.verse-count {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 600;
    padding: 15px;
    background: #F3F4F6;
    border-radius: 15px;
}

.verse-count strong {
    color: #10B981;
    font-size: 1.5rem;
}

.difficulty-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.difficulty-option {
    padding: 25px 15px;
    background: white;
    border: 3px solid #E5E7EB;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.difficulty-option:hover {
    transform: translateY(-5px);
    border-color: #10B981;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.difficulty-option.selected {
    background: linear-gradient(135deg, #10B981, #3B82F6);
    color: white;
    border-color: #10B981;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.difficulty-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.difficulty-option i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.difficulty-option span {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.difficulty-option small {
    font-size: 0.85rem;
    opacity: 0.9;
}

.difficulty-option .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.btn-start-game {
    width: 100%;
    padding: 25px;
    background: linear-gradient(135deg, #10B981, #3B82F6);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-start-game:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-start-game:not(:disabled):hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.5);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-start-game:not(:disabled):hover .btn-glow {
    left: 100%;
}

.btn-back {
    display: block;
    text-align: center;
    color: var(--gray);
    text-decoration: none;
    font-weight: 700;
    padding: 15px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: #10B981;
}

/* ========================================
   GAME SCREEN
======================================== */
.game-screen {
    min-height: 100vh;
    /* background: linear-gradient(180deg, #F9FAFB 0%, #E8F5FF 100%); */
    padding-top: 100px;
    position: relative;
}

.game-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 100;
}

.game-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10B981, #3B82F6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.student-info strong {
    font-size: 1.3rem;
    color: var(--dark);
    display: block;
}

.stars-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F59E0B;
    font-weight: 700;
    font-size: 1.1rem;
}

.game-progress {
    flex: 1;
    max-width: 400px;
}

.progress-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 10px;
}

.progress-label i {
    color: #10B981;
}

.progress-bar-custom {
    width: 100%;
    height: 12px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #3B82F6);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 0%;
}

.btn-end-game {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-end-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.game-container {
    padding: 100px 0 150px;
}

.game-title {
    text-align: center;
    margin-bottom: 10px;
}

.game-title h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 10px;
}

.game-title p {
    font-size: 1rem;
    color: var(--gray);
}

/* ========================================
   MATCHING GRID
======================================== */
.matching-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.matching-column {
    position: relative;
    z-index: 2;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.column-header i {
    color: #10B981;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.match-card {
    background: white;
    padding: 7px;
    border-radius: 20px;
    border: 3px solid #E5E7EB;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    font-family: 'Amiri', serif;
    line-height: 1.8;
    text-align: center;
    position: relative;
    user-select: none;
}

.match-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #10B981;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
}

.match-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.match-card.selected {
    border-color: #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.match-card.matched {
    background: linear-gradient(135deg, #10B981, #3B82F6);
    color: white;
    border-color: #10B981;
    animation: matchSuccess 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes matchSuccess {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2) rotate(5deg);
    }
}

.match-card.wrong {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.match-card.hint-highlight {
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }
}

.match-card .card-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
}

/* Canvas for connections */
.connections-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   HINT SECTION
======================================== */
.hint-section {
    text-align: center;
    margin-top: 40px;
}

.btn-hint {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.btn-hint:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}

.btn-hint:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    box-shadow: none;
}

.hint-count {
    background: white;
    color: #F59E0B;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
}

/* ========================================
   ENCOURAGEMENT PANEL
======================================== */
/* .encouragement-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 99;
}

.encouragement-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-encourage {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-encourage:hover {
    transform: translateY(-5px) scale(1.1);
}

.btn-encourage.clap {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
}

.btn-encourage.star {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.btn-encourage.heart {
    background: linear-gradient(135deg, #EC4899, #EF4444);
}

.btn-encourage.trophy {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
}

.btn-encourage.excellent {
    background: linear-gradient(135deg, #10B981, #3B82F6);
}

.btn-encourage i {
    font-size: 1.5rem;
} */



/* ========================================
   ENCOURAGEMENT PANEL
======================================== */
.encouragement-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    z-index: 99;
}

.encouragement-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-encourage {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-encourage:hover {
    transform: translateY(-5px) scale(1.1);
}

.btn-encourage.clap {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
}

.btn-encourage.star2 {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.btn-encourage.heart {
    background: linear-gradient(135deg, #EC4899, #EF4444);
}

.btn-encourage.trophy {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
}

.btn-encourage.excellent {
    background: linear-gradient(135deg, #10B981, #3B82F6);
}

.btn-encourage i {
    font-size: 1.5rem;
}


/* ========================================
   CELEBRATION OVERLAY
======================================== */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}

#confettiCanvas {
    width: 100%;
    height: 100%;
}

.celebration-character {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 15rem;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.celebration-character.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}


/* ========================================
   COMPLETION SCREEN
======================================== */
.completion-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.completion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.completion-card {
    position: relative;
    background: white;
    border-radius: 30px;
    padding: 60px 50px;
    max-width: 700px;
    width: 90%;
    text-align: center;
    position: absolute;
    top: 25%;
    left: 30%;
    transform: translate(-50%, -50%) scale(0);
    animation: scaleIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

@keyframes scaleIn {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.completion-icon {
    font-size: 10rem;
    margin-bottom: 30px;
    animation: celebrate 1s ease-in-out infinite;
}

@keyframes celebrate {
    0%, 100% {
        transform: rotate(-10deg) scale(1);
    }

    50% {
        transform: rotate(10deg) scale(1.1);
    }
}

.completion-card h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 30px;
}

.completion-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    padding: 20px;
    background: linear-gradient(135deg, #F9FAFB, #E8F5FF);
    border-radius: 20px;
}

.stat-item i {
    font-size: 2.5rem;
    color: #10B981;
    margin-bottom: 10px;
}

.stat-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 5px;
}

.stat-item small {
    font-size: 0.9rem;
    color: var(--gray);
}

.completion-message {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.completion-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-play-again,
.btn-back-dashboard {
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.btn-play-again {
    background: linear-gradient(135deg, #10B981, #3B82F6);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.btn-play-again:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.5);
}

.btn-back-dashboard {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    box-shadow: 0 15px 40px rgba(107, 114, 128, 0.4);
}

.btn-back-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(107, 114, 128, 0.5);
}

/* ========================================
   CELEBRATION OVERLAY
======================================== */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}

#confettiCanvas {
    width: 100%;
    height: 100%;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .setup-header h1 {
        font-size: 1.5rem;
    }

    .matching-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .completion-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .completion-actions {
        flex-direction: row;
    }

    .difficulty-options {
        grid-template-columns: 1fr;
    }

    .verse-range {
        flex-direction: row;
    }

    .range-divider {
        transform: rotate(90deg);
    }
}


@media(max-width:991px) {
    .completion-card {
        top: 25%;
        left: 2%;
        width: 95%;
        padding: 30px 17px;
    }

    .completion-icon {
        font-size: 5rem;
    }

    .completion-card h2 {
        font-size: 2rem;
    }

    .btn-play-again, .btn-back-dashboard {
        padding: 11px 25px;
        font-size: .9rem;
    }

    .encouragement-buttons {
        display: flex;
        gap: 3px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-encourage {
        padding: 6px 14px;
        gap: 5px;
        font-size: .9rem;
    }

    .btn-encourage i {
        font-size: 13px;
    }

    .student-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .game-info-bar {
        gap: 5px;
    }

    .game-progress {
        width: 60px;
    }

    .btn-end-game {
        padding: 7px 10px;
        font-size: .7rem;
    }

    .progress-label {
        font-size: .7rem;
    }

    .student-info strong {
        font-size: .9rem;
    }

    .stars-display {
        gap: 3px;
        font-size: .8rem;
    }

    .game-container {
        padding: 50px 0 150px;
    }

    .game-title h2 {
        font-size: 1rem;
    }

    .game-title p {
        font-size: .8rem;
    }

    .match-card {
        font-size: .8rem;
        padding: 5px;
    }

    .column-header {
        padding: 5px;
    }

    .setup-screen {
        padding: 90px 0px 60px
    }

    .setup-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .setup-header {
        padding: 20px;
    }

    .setup-header p {
        font-size: .9rem;
        margin: 2px;
    }

    .setup-body {
        padding: 20px 6px;
    }

    .section-label {
        gap: 9px;
        font-size: 1rem;
    }

    .form-select-custom {
        padding: 10px 10px;
        font-size: 1rem;
    }

    .theme-option {
        padding: 4px !important;
        font-size: 12px !important;
    }
    .btn-start-game{
        padding: 10px;
        font-size: 1rem;
    }
    .theme-icon{
        font-size: 2rem !important;
    }
    .theme-grid{
        gap: 1px !important;
    }
}

/* ========================================
   GAME CONTROLS (Fullscreen & Share)
======================================== */
.game-controls {
    display: flex !important;
    gap: 10px;
    margin: 0 15px;
}

.btn-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    padding: 0 !important;
}

.btn-control:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-control i {
    font-size: 16px;
}

/* ========================================
   FULLSCREEN MODE STYLES
======================================== */
.game-screen:fullscreen {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 0;
    overflow: auto;
}

.game-screen:fullscreen .game-header {
    position: fixed;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 100;
}

/* ========================================
   SHARE MODAL - BASE STYLES
======================================== */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.share-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.share-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.share-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.share-subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 14px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    border-color: #667eea;
    background: #f8f9fa;
    transform: translateY(-3px);
}

.share-btn i {
    font-size: 24px;
}

.share-btn.whatsapp { color: #25d366; }
.share-btn.facebook { color: #1877f2; }
.share-btn.twitter { color: #1da1f2; }
.share-btn.copy { color: #6c757d; }

.share-btn span {
    font-size: 12px;
    font-weight: 500;
    color: #2c3e50;
}

.share-link-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.share-link-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    direction: ltr;
    text-align: left;
}

.share-link-copy {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.share-link-copy:hover {
    transform: scale(1.05);
}

.share-close {
    margin-top: 20px;
    padding: 12px 30px;
    background: #e9ecef;
    color: #6c757d;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.share-close:hover {
    background: #dee2e6;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
