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

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --text-light: #eee;
    --text-muted: #888;
    --hunger-color: #ff6b6b;
    --happiness-color: #ffd93d;
    --health-color: #6bcb77;
    --energy-color: #4d96ff;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f0f23 100%);
    min-height: 100vh;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 400px;
}

/* Pixel Title */
.pixel-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #ffd93d;
    text-shadow: 2px 2px 0 #ff6b6b;
}

/* Screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

.hidden {
    display: none !important;
}

/* Tamagotchi Frame */
.tamagotchi-frame {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Auth Forms */
.auth-container {
    max-width: 300px;
    margin: 0 auto;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light);
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #333;
    border-radius: 10px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-form p {
    text-align: center;
    margin-top: 15px;
    color: var(--text-muted);
}

.auth-form a {
    color: var(--secondary-color);
    cursor: pointer;
    text-decoration: none;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #43a047;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #555;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-large {
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header .pixel-title {
    margin-bottom: 0;
}

/* Pets Grid */
.pets-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 10px;
}

.no-pets {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-pets p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.no-pets p:first-child {
    color: var(--text-light);
    font-weight: 600;
}

.pet-card {
    background: var(--bg-dark);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.pet-card:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.pet-card-icon {
    font-size: 2.5rem;
}

.pet-card-info {
    flex: 1;
}

.pet-card-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.pet-card-stage {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.pet-card-shared {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

/* Create Pet Form */
.create-pet-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.create-pet-form input[type="text"] {
    padding: 12px 15px;
    border: 2px solid #333;
    border-radius: 10px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 1rem;
}

.species-selector label,
.color-selector label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.species-options {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.species-btn {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid #333;
    background: var(--bg-dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.species-btn.selected {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.2);
}

.color-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-selector input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
}

.button-row {
    display: flex;
    gap: 15px;
}

.button-row .btn {
    flex: 1;
}

/* Tamagotchi Device */
.tamagotchi-device {
    background: linear-gradient(145deg, #e8d5b7 0%, #d4c4a8 100%);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.device-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
}

.pet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
}

.btn-back {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

.pet-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #ffd93d;
}

.pet-stage {
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    background: rgba(255, 217, 61, 0.2);
    padding: 3px 8px;
    border-radius: 5px;
}

/* Pet Display */
.pet-display {
    background: linear-gradient(135deg, #2d2d44 0%, #1f1f35 100%);
    border-radius: 10px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 217, 61, 0.3);
}

.pet-sprite {
    font-size: 4rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pet-mood {
    font-size: 0.8rem;
    color: #ffd93d;
    margin-top: 5px;
    text-transform: capitalize;
}

.sleep-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    border-radius: 10px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Stats */
.stats-container {
    display: grid;
    gap: 8px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 1rem;
    width: 25px;
    text-align: center;
}

.stat-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.stat-fill.hunger { background: var(--hunger-color); }
.stat-fill.happiness { background: var(--happiness-color); }
.stat-fill.health { background: var(--health-color); }
.stat-fill.energy { background: var(--energy-color); }

.stat-value {
    font-size: 0.75rem;
    color: #fff;
    width: 30px;
    text-align: right;
    font-weight: 700;
}

/* Action Buttons */
.device-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
    gap: 10px;
}

.action-btn {
    background: linear-gradient(145deg, #c9b896 0%, #b8a785 100%);
    border: none;
    border-radius: 15px;
    padding: 15px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn span {
    font-size: 1.5rem;
}

.action-btn small {
    font-size: 0.65rem;
    color: #666;
    font-weight: 600;
}

/* Share Section */
.share-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.share-section h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.share-section input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
}

.caretaker-results {
    margin-top: 10px;
}

.caretaker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 8px;
    margin-top: 5px;
}

.current-caretakers {
    margin-top: 10px;
}

.current-caretakers span {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 2px;
}

/* Death Screen */
.death-frame {
    text-align: center;
}

.death-frame .pixel-title {
    font-size: 3rem;
    margin-bottom: 30px;
}

.death-frame p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* Food Picker Modal */
.food-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.food-picker-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 217, 61, 0.3);
}

.food-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: #ffd93d;
    font-weight: 700;
    font-size: 0.95rem;
}

.food-picker-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}

.food-picker-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.food-picker-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.food-option-btn {
    background: var(--bg-dark);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
    color: var(--text-light);
    font-size: 1rem;
    text-align: left;
    width: 100%;
}

.food-option-btn:hover,
.food-option-btn:focus {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.15);
    transform: translateX(4px);
    outline: none;
}

.food-option-btn:active {
    transform: translateX(0);
}

.food-option-emoji {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.food-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.food-option-name {
    font-weight: 700;
}

.food-option-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Love Note Display */
.love-note {
    background: linear-gradient(135deg, #2d1f3d, #1a1a2e);
    border: 2px solid #ff6b9d;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
    text-align: center;
}

.love-note-header {
    color: #ff6b9d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.love-note-text {
    color: #fff;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 8px;
}

.love-note-heart {
    font-size: 1.5rem;
    animation: heartPulse 1.5s ease-in-out infinite;
}

.love-note-dismiss {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
}

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

/* Love Button */
.love-btn {
    background: rgba(255, 107, 157, 0.2);
    border: 2px solid #ff6b9d;
}

/* Love Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid #ff6b9d;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-card h3 {
    color: #ff6b9d;
    text-align: center;
    font-size: 1.1rem;
}

.modal-card textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #333;
    border-radius: 10px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    resize: none;
}

.modal-card textarea:focus {
    outline: none;
    border-color: #ff6b9d;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -10px;
}

/* Responsive */
@media (max-width: 450px) {
    body {
        padding: 10px;
    }
    
    .tamagotchi-frame,
    .tamagotchi-device {
        padding: 15px;
    }
    
    .pixel-title {
        font-size: 1rem;
    }
    
    .action-btn {
        padding: 10px 5px;
    }
    
    .action-btn span {
        font-size: 1.2rem;
    }
}

/* ============================================
   Gerry's Arcade — Modern Home Screen
   ============================================ */
#arcade-home {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    min-height: 100vh;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Break out of #app max-width constraint */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.arcade-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.arcade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.arcade-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.logo-text {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin: 0;
}

.arcade-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 16px 8px 10px;
}

.arcade-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    font-size: 1.3rem;
}

.user-name {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero Section */
.arcade-hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero-title {
    font-size: 2.2rem;
    color: #f8fafc;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.hero-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin: 0;
}

/* Games Section */
.games-section {
    flex-grow: 1;
}

/* Game Grid - Desktop First */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Game Card */
.game-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover, .game-card:active {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

.game-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    opacity: 0.12;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-glow {
    opacity: 0.25;
}

.pets-glow {
    background: linear-gradient(180deg, #22c55e, transparent);
}

.shooter-glow {
    background: linear-gradient(180deg, #ef4444, transparent);
}

.pulgosos-glow {
    background: linear-gradient(180deg, #8b5cf6, transparent);
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 10;
}

.dev-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 10;
    letter-spacing: 0.5px;
}

.game-card-content {
    position: relative;
    padding: 32px 28px;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pets-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.shooter-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pulgosos-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.game-icon {
    font-size: 2rem;
}

.game-name {
    color: #f8fafc;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.game-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 50px;
}

.game-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.game-play-btn:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: scale(1.02);
}

.game-play-btn svg {
    transition: transform 0.2s ease;
}

.game-card:hover .game-play-btn svg {
    transform: translateX(4px);
}

/* Footer */
.arcade-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arcade-user-info {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* Logout Button (Header) */
.arcade-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.arcade-logout-btn:hover {
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.05);
}

.arcade-logout-btn svg {
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.5s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }

/* Tablet (2 columns) */
@media (max-width: 900px) {
    .arcade-container {
        padding: 20px 24px;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .game-card.featured {
        grid-column: span 2;
    }
    
    .game-card.featured .game-card-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 0 20px;
        align-items: start;
    }
    
    .game-card.featured .game-icon-wrapper {
        grid-row: span 3;
        margin-bottom: 0;
    }
    
    .game-card.featured .game-name {
        grid-column: 2;
        margin-bottom: 4px;
    }
    
    .game-card.featured .game-desc {
        grid-column: 2;
        margin-bottom: 8px;
    }
    
    .game-card.featured .game-tags {
        grid-column: 2;
        margin-bottom: 0;
    }
    
    .game-card.featured .game-play-btn {
        grid-column: 3;
        grid-row: span 3;
        width: auto;
        height: fit-content;
        align-self: center;
    }
}

/* Mobile (1 column) */
@media (max-width: 600px) {
    .arcade-container {
        padding: 16px 12px;
    }
    
    .arcade-header {
        margin-bottom: 24px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        font-size: 1.6rem;
    }
    
    .arcade-hero {
        margin-bottom: 28px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .game-card.featured {
        grid-column: span 1;
    }
    
    .game-card.featured .game-card-content {
        display: flex;
        flex-direction: column;
    }
    
    .game-card.featured .game-icon-wrapper {
        margin-bottom: 20px;
    }
    
    .game-card.featured .game-play-btn {
        width: 100%;
    }
    
    .game-card-content {
        padding: 24px 20px;
    }
    
    .game-icon-wrapper {
        width: 52px;
        height: 52px;
    }
    
    .game-icon {
        font-size: 1.6rem;
    }
    
    .game-name {
        font-size: 1.2rem;
    }
    
    .game-desc {
        font-size: 0.9rem;
    }
    
    .arcade-footer {
        margin-top: 32px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    /* Compact header for mobile */
    .arcade-header-right {
        gap: 8px;
    }
    
    .arcade-user-badge {
        padding: 6px 10px 6px 8px;
    }
    
    .user-name {
        display: none;
    }
    
    .arcade-logout-btn {
        width: 36px;
        height: 36px;
    }
    
    .arcade-logout-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Back button shared style */
.btn-arcade-back {
    background: none;
    border: none;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 10px;
    font-family: 'Nunito', sans-serif;
}
