* {
    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;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nav-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn.active {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
}

main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

.view {
    display: none;
}

.view.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.game-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.game-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.game-card h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.3em;
}

.game-card p {
    color: #666;
    margin-bottom: 15px;
}

.play-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: #667eea;
}

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

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.game-item:hover {
    background: #e9ecef;
}

.game-title {
    font-weight: 600;
    font-size: 1.1em;
}

.settings-group {
    margin-bottom: 30px;
}

.settings-group h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.settings-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.settings-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.settings-group input[type="range"] {
    width: 200px;
    margin-left: 10px;
}

.game-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

#back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#back-btn:hover {
    background: #5a6268;
}

#game-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-board {
    text-align: center;
}

.tic-tac-toe-board {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 5px;
    margin: 20px auto;
    background: #333;
    padding: 5px;
    border-radius: 10px;
}

.tic-tac-toe-cell {
    background: white;
    border: none;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tic-tac-toe-cell:hover:not(:disabled) {
    background: #e9ecef;
}

.tic-tac-toe-cell:disabled {
    cursor: not-allowed;
}

.snake-canvas {
    border: 3px solid #333;
    border-radius: 10px;
    background: #f0f0f0;
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    grid-template-rows: repeat(4, 80px);
    gap: 10px;
    margin: 20px auto;
}

.memory-card {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: white;
}

.memory-card:hover {
    transform: scale(1.05);
}

.memory-card.flipped {
    background: white;
    color: #333;
    border: 2px solid #667eea;
}

.game-status {
    font-size: 1.2em;
    font-weight: 600;
    margin: 20px 0;
    text-align: center;
}

.game-controls {
    text-align: center;
    margin: 20px 0;
}

.game-controls button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.game-controls button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
}

body.dark-mode header {
    background: rgba(52, 73, 94, 0.95);
}

body.dark-mode header h1 {
    background: linear-gradient(45deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode main {
    background: rgba(52, 73, 94, 0.95);
    color: #ecf0f1;
}

body.dark-mode .game-card {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #ecf0f1;
}

body.dark-mode .game-card h4 {
    color: #ecf0f1;
}

body.dark-mode .game-card p {
    color: #bdc3c7;
}

body.dark-mode .search-bar input {
    background: #34495e;
    border-color: #4a6741;
    color: #ecf0f1;
}

body.dark-mode .search-bar input::placeholder {
    color: #7f8c8d;
}

body.dark-mode .game-item {
    background: #34495e;
    color: #ecf0f1;
}

body.dark-mode .game-item:hover {
    background: #2c3e50;
}

body.dark-mode #game-container {
    background: #34495e;
    color: #ecf0f1;
}

body.dark-mode .tic-tac-toe-cell {
    background: #2c3e50;
    color: #ecf0f1;
    border: 1px solid #4a6741;
}

body.dark-mode .tic-tac-toe-cell:hover:not(:disabled) {
    background: #34495e;
}

body.dark-mode .snake-canvas {
    border-color: #ecf0f1;
    background: #2c3e50;
}

body.dark-mode .memory-card {
    background: linear-gradient(45deg, #3498db, #9b59b6);
}

body.dark-mode .memory-card.flipped {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #3498db;
}

.tetris-canvas {
    border: 3px solid #333;
    border-radius: 10px;
    background: #000;
}

.pong-canvas {
    border: 3px solid #333;
    border-radius: 10px;
    background: #000;
}

.simon-board {
    display: grid;
    grid-template-columns: repeat(2, 100px);
    grid-template-rows: repeat(2, 100px);
    gap: 10px;
    margin: 20px auto;
    width: 210px;
}

.simon-button {
    width: 100px;
    height: 100px;
    border: 3px solid #333;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.simon-button:hover {
    opacity: 1;
    transform: scale(1.05);
}

.simon-button:active {
    transform: scale(0.95);
}

body.dark-mode .tetris-canvas {
    border-color: #ecf0f1;
}

body.dark-mode .pong-canvas {
    border-color: #ecf0f1;
}

body.dark-mode .simon-button {
    border-color: #ecf0f1;
}

/* Pizzaria Game Styles */
.pizzaria-game {
    width: 100%;
    max-width: 1000px;
}

.pizzaria-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin: 20px 0;
}

.customer-area {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.customer-display {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.customer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.customer-emoji {
    font-size: 2em;
}

.customer-name {
    font-weight: 600;
    font-size: 1.1em;
}

.patience-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.patience-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ffa502, #2ed573);
    transition: width 1s ease;
}

.order-display {
    margin-top: 10px;
}

.order-details h4 {
    margin-bottom: 8px;
    color: #333;
}

.order-details div {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.customer-queue {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.queued-customer {
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.kitchen-area {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.station-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.station-tab {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.station-tab.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.station-tab:hover:not(.active) {
    background: #5a6268;
}

.station-content {
    background: white;
    border-radius: 0 10px 10px 10px;
    padding: 20px;
    min-height: 400px;
}

.station {
    display: none;
}

.station.active {
    display: block;
}

.station h3 {
    margin-bottom: 20px;
    color: #333;
}

.pizza-workspace {
    margin-bottom: 20px;
}

.pizza-canvas {
    width: 150px;
    height: 150px;
    border: 3px dashed #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: #fff;
    position: relative;
}

.pizza-base {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #D2B48C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pizza-layer {
    position: absolute;
    font-size: 1.2em;
}

.pizza-layer.base {
    font-size: 2em;
}

.pizza-layer.sauce {
    top: 20%;
    left: 20%;
}

.pizza-layer.cheese {
    top: 20%;
    right: 20%;
}

.pizza-layer.topping {
    font-size: 1em;
}

.ingredient-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ingredient-category h4 {
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.ingredient-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ingredient-btn {
    background: #e9ecef;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.ingredient-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.ingredient-btn.selected {
    background: #667eea;
    color: white;
    border-color: #764ba2;
}

.action-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.action-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.oven-display {
    background: #2c3e50;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.oven-pizza {
    background: #34495e;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ecf0f1;
}

.pizza-in-oven {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.pizza-in-oven span {
    font-size: 1.2em;
}

.baking-progress {
    color: white;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #34495e;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid #ecf0f1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #27ae60);
    width: 0%;
    transition: width 0.3s ease;
}

#baking-status {
    font-weight: 600;
    font-size: 1.1em;
}

.cutting-board {
    background: #8B4513;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.finished-pizza {
    background: #D2B48C;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #654321;
}

.cutting-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.cut-btn {
    background: #f8f9fa;
    border: 2px solid #6c757d;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cut-btn:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.cut-btn.selected {
    background: #667eea;
    color: white;
    border-color: #764ba2;
}

/* Dark mode styles for pizzaria */
body.dark-mode .customer-area,
body.dark-mode .kitchen-area {
    background: #2c3e50;
}

body.dark-mode .customer-display,
body.dark-mode .station-content {
    background: #34495e;
    color: #ecf0f1;
}

body.dark-mode .order-details h4 {
    color: #ecf0f1;
}

body.dark-mode .station h3,
body.dark-mode .ingredient-category h4 {
    color: #ecf0f1;
}

body.dark-mode .ingredient-btn {
    background: #4a6741;
    color: #ecf0f1;
}

body.dark-mode .ingredient-btn:hover {
    background: #3498db;
}

body.dark-mode .cut-btn {
    background: #4a6741;
    color: #ecf0f1;
    border-color: #ecf0f1;
}

body.dark-mode .cut-btn:hover {
    background: #34495e;
}

body.dark-mode .queued-customer,
body.dark-mode .pizza-canvas,
body.dark-mode .finished-pizza {
    background: #34495e;
    border-color: #ecf0f1;
}

@media (max-width: 768px) {
    .pizzaria-layout {
        grid-template-columns: 1fr;
    }
    
    .ingredient-groups {
        grid-template-columns: 1fr;
    }
    
    .station-tabs {
        flex-wrap: wrap;
    }
    
    .cutting-options {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    nav {
        flex-wrap: wrap;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .tic-tac-toe-board {
        grid-template-columns: repeat(3, 60px);
        grid-template-rows: repeat(3, 60px);
    }
    
    .memory-board {
        grid-template-columns: repeat(4, 60px);
        grid-template-rows: repeat(4, 60px);
    }
}

/* Balatro Game Styles */
#balatro-game {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

#balatro-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

#balatro-stats div {
    text-align: center;
    font-size: 1.1em;
}

#balatro-jokers-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#balatro-jokers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.balatro-joker {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: 2px solid #FF8C00;
    border-radius: 8px;
    padding: 10px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.joker-name {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #8B4513;
}

.joker-description {
    font-size: 0.8em;
    color: #654321;
}

#balatro-hand-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#balatro-hand {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.balatro-card {
    width: 70px;
    height: 100px;
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.balatro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.balatro-card.selected {
    transform: translateY(-10px);
    border-color: #007bff;
    background: linear-gradient(45deg, #E3F2FD, #BBDEFB);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.card-rank {
    font-size: 14px;
    font-weight: bold;
    align-self: flex-start;
}

.card-suit {
    font-size: 24px;
    align-self: center;
    margin-top: -10px;
}

.card-chips {
    font-size: 10px;
    align-self: flex-end;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.red {
    color: #dc3545;
}

.black {
    color: #333;
}

#balatro-hand-info {
    background: rgba(240, 240, 240, 0.9);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

#balatro-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

#balatro-actions button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

#balatro-actions button:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#balatro-actions button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#discard-btn {
    background: linear-gradient(45deg, #dc3545, #fd7e14) !important;
}

#discard-btn:hover {
    background: linear-gradient(45deg, #c82333, #e66a00) !important;
}

/* Shop Styles */
#balatro-shop {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#balatro-shop h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

#balatro-shop-items {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.shop-joker {
    background: linear-gradient(45deg, #FFE4B5, #DEB887);
    border: 2px solid #D2691E;
    border-radius: 10px;
    padding: 15px;
    width: 180px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shop-joker-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #8B4513;
}

.shop-joker-description {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #654321;
}

.shop-joker-price {
    font-weight: bold;
    font-size: 1.1em;
    color: #2E8B57;
    margin-bottom: 10px;
}

.shop-joker button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.shop-joker button:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-1px);
}

.shop-joker button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

#balatro-shop > button {
    display: block;
    margin: 0 auto;
    background: linear-gradient(45deg, #007bff, #6f42c1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#balatro-shop > button:hover {
    background: linear-gradient(45deg, #0056b3, #5a359a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Game Over Styles */
#balatro-game-over {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#balatro-game-over h3 {
    color: #dc3545;
    font-size: 2em;
    margin-bottom: 15px;
}

#balatro-game-over p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

#balatro-game-over button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#balatro-game-over button:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Balatro */
@media (max-width: 768px) {
    #balatro-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    #balatro-hand {
        gap: 4px;
    }
    
    .balatro-card {
        width: 60px;
        height: 85px;
        padding: 3px;
    }
    
    .card-suit {
        font-size: 20px;
    }
    
    .card-rank {
        font-size: 12px;
    }
    
    .card-chips {
        font-size: 8px;
    }
    
    #balatro-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    #balatro-shop-items {
        flex-direction: column;
        align-items: center;
    }
    
    .shop-joker {
        width: 100%;
        max-width: 300px;
    }
}