/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.game-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-header h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.the-small {
    font-size: 0.6em;
    font-weight: normal;
    opacity: 0.8;
}

.author {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 10px;
    font-style: italic;
}

.tagline {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
}

.room-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.room-id {
    background: #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    color: #4a5568;
}

/* Game Description */
.game-description {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-description h2 {
    color: #4a5568;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

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

.rule-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.rule-section h3 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.rule-section p, .rule-section li {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 8px;
}

.rule-section ul {
    padding-left: 20px;
}

/* Game Resources */
.game-resources {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-resources h2 {
    color: #4a5568;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.resource-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #38a169;
    text-align: center;
}

.resource-section h3 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.resource-section p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 15px;
}

.resource-section .btn {
    margin-top: 10px;
}

/* Action Cards */
.game-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.action-card h3 {
    color: #4a5568;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #3aa866, #2f8555);
    transform: translateY(-2px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Game Interface Styles */
.waiting-room {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.waiting-room h2 {
    color: #4a5568;
    font-size: 2rem;
    margin-bottom: 30px;
}

.players-list {
    margin-bottom: 30px;
}

.player-item {
    background: #f7fafc;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    font-weight: 600;
    color: #4a5568;
}

.player-count {
    color: #718096;
    font-style: italic;
    margin-top: 15px;
}

.waiting-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Game Interface */
.game-interface {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* Enhanced Turn Indicator */
.turn-indicator {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Your turn - active state */
.turn-indicator.your-turn {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.95), rgba(56, 161, 105, 0.95));
    color: white;
    box-shadow: 0 8px 32px rgba(72, 187, 120, 0.4), 0 0 20px rgba(72, 187, 120, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

.turn-indicator.your-turn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #48bb78, #38a169, #2f8555, #38a169);
    background-size: 400% 400%;
    border-radius: 17px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

/* Other player's turn - waiting state */
.turn-indicator.waiting-turn {
    background: linear-gradient(135deg, rgba(160, 174, 192, 0.95), rgba(113, 128, 150, 0.95));
    color: white;
    animation: breathe 3s ease-in-out infinite;
}

/* Final round indicator */
.turn-indicator.final-round {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.95), rgba(197, 48, 48, 0.95));
    color: white;
    box-shadow: 0 8px 32px rgba(229, 62, 62, 0.4), 0 0 20px rgba(229, 62, 62, 0.3);
    animation: urgentPulse 1.5s ease-in-out infinite;
}

.turn-indicator.final-round::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #e53e3e, #c53030, #9c2727, #c53030);
    background-size: 400% 400%;
    border-radius: 17px;
    z-index: -1;
    animation: gradientShift 2s ease infinite;
}

.turn-indicator span {
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    display: inline-block;
}

/* Turn indicator icons */
.turn-indicator .turn-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    animation: bounce 2s ease-in-out infinite;
}

.turn-indicator.your-turn .turn-icon {
    animation: spin 2s linear infinite;
}

.turn-indicator.final-round .turn-icon {
    animation: shake 0.5s ease-in-out infinite;
}

/* Keyframe animations */
@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(72, 187, 120, 0.4), 0 0 20px rgba(72, 187, 120, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 40px rgba(72, 187, 120, 0.6), 0 0 30px rgba(72, 187, 120, 0.5);
    }
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(229, 62, 62, 0.4), 0 0 20px rgba(229, 62, 62, 0.3);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 15px 45px rgba(229, 62, 62, 0.7), 0 0 35px rgba(229, 62, 62, 0.6);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.01);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

/* Tiles */
.tiles-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.tile {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.tile:hover {
    transform: scale(1.05);
}

.tile-white {
    background: #ffffff;
    color: #333;
    border: 2px solid #e2e8f0;
}

.tile-black {
    background: #2d3748;
    color: #ffffff;
}

.tile-green {
    background: #38a169;
    color: #ffffff;
}

.tile-hidden {
    background: #a0aec0;
    color: #ffffff;
}

/* Sections */
.your-tiles-section,
.center-tiles-section,
.other-players-section,
.questions-section,
.game-log-section,
.guess-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.your-tiles-section h3,
.center-tiles-section h3,
.other-players-section h3,
.questions-section h3,
.game-log-section h3,
.guess-section h3 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Questions */
.questions-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.question-card {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    line-height: 1.4;
}

.question-card:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.question-card.selected {
    background: #e6fffa;
    border-left-color: #38b2ac;
}

/* Ask Question Interface */
.ask-question-interface {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 15px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
}

.selected-question {
    background: #e6fffa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #38b2ac;
    font-weight: 500;
}

.question-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Game Log */
.game-log {
    max-height: 200px;
    overflow-y: auto;
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
}

.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
}

.log-entry:last-child {
    border-bottom: none;
}

/* Guess Interface */
.guess-builder {
    min-height: 80px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.available-tiles-section {
    margin: 20px 0;
}

.available-tiles-section h4,
.current-guess-section h4 {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
}

.available-tiles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.tile-button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tile-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tile-button.white {
    background: #ffffff;
    color: #333;
    border: 2px solid #e2e8f0;
}

.tile-button.black {
    background: #2d3748;
    color: #ffffff;
}

.tile-button.green {
    background: #38a169;
    color: #ffffff;
}

.current-guess-section {
    margin: 20px 0;
}

.guess-tile {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.guess-tile:hover::after {
    content: '✕';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.guess-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Scoreboard Styles */
.scoreboard-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scoreboard-section h3 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.scoreboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.score-item {
    background: #f7fafc;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: #4a5568;
    border-left: 4px solid #667eea;
    transition: background-color 0.3s ease;
}

.score-item:hover {
    background: #e2e8f0;
}

/* Status Messages - Popup Style */
.status-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    z-index: 1000;
    max-width: 90%;
    width: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Animation */
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.status-message:not(:empty) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.status-message.success {
    background: rgba(72, 187, 120, 0.95);
    color: white;
    border-left: 4px solid #38a169;
}

.status-message.error {
    background: rgba(229, 62, 62, 0.95);
    color: white;
    border-left: 4px solid #c53030;
}

.status-message.info {
    background: rgba(49, 130, 206, 0.95);
    color: white;
    border-left: 4px solid #2b77cb;
}

.status-message.warning {
    background: rgba(214, 158, 46, 0.95);
    color: white;
    border-left: 4px solid #b7791f;
}

/* Tile button selected state */
.tile-button[data-selected="true"] {
    background-color: #4299e1 !important;
    color: white !important;
    border: 2px solid #2b77cb !important;
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.tile-button[data-selected="true"]:hover {
    background-color: #3182ce !important;
}

/* Tile spacer for gaps between number groups */
.tile-spacer {
    width: 20px;
    height: 1px;
    background: transparent;
    grid-column: span 1;
}

/* Celebration Effects */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework 1.5s ease-out forwards;
}

@keyframes firework {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.flower {
    position: absolute;
    font-size: 2rem;
    animation: flower 2s ease-out forwards;
}

@keyframes flower {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

.star {
    position: absolute;
    font-size: 1.5rem;
    animation: star 2s ease-out forwards;
}

@keyframes star {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.celebration-message {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: celebrationMessage 3s ease-out forwards;
    z-index: 1001;
    pointer-events: none;
}

@keyframes celebrationMessage {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-interface {
        grid-template-columns: 1fr;
    }
    
    .game-actions {
        grid-template-columns: 1fr;
    }
    
    .rules {
        grid-template-columns: 1fr;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .waiting-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tiles-container {
        justify-content: flex-start;
    }
    
    .tile {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Status message mobile improvements */
    .status-message {
        top: 10px;
        max-width: 95%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Turn indicator mobile improvements */
    .turn-indicator {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .turn-indicator span {
        font-size: 1.1rem;
    }
    
    .turn-indicator .turn-icon {
        font-size: 1.3rem;
        margin-right: 8px;
    }
    
    /* Reduce animation intensity on mobile */
    .turn-indicator.your-turn {
        animation: pulseGlow 3s ease-in-out infinite;
    }
    
    .turn-indicator.final-round {
        animation: urgentPulse 2s ease-in-out infinite;
    }
}

@media (max-width: 480px) {
    .container, .game-container {
        padding: 10px;
    }
    
    .game-header {
        padding: 20px;
    }
    
    .action-card, .game-description {
        padding: 20px;
    }
    
    .ask-question-interface {
        padding: 20px;
        width: 95%;
    }
    
    .question-actions, .guess-actions {
        flex-direction: column;
    }
    
    /* Enhanced status message mobile styles */
    .status-message {
        top: 5px;
        max-width: 98%;
        padding: 10px 15px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    /* Turn indicator extra small screen improvements */
    .turn-indicator {
        padding: 15px 10px;
        margin-bottom: 10px;
    }
    
    .turn-indicator span {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .turn-indicator .turn-icon {
        font-size: 1.2rem;
        margin-right: 6px;
    }
    
    /* Minimal animations on very small screens */
    .turn-indicator.your-turn {
        animation: breathe 4s ease-in-out infinite;
    }
    
    .turn-indicator.final-round {
        animation: urgentPulse 2.5s ease-in-out infinite;
    }
}

/* Question formatting for bold green text */
.question-highlight {
    font-weight: bold;
    color: #38a169;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Question card enhanced styling */
.question-card {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    line-height: 1.4;
}

/* Number selection buttons for questions */
.number-buttons-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.number-button {
    width: 50px;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #4a5568;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-button:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.number-button.selected {
    background: #38a169;
    color: white;
    border-color: #2f8555;
    transform: scale(1.1);
}

.number-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
} 