/* Yokocho Games - Japanese Indie Arcade Aesthetic */

:root {
    --bg-cream: #FAF8F5;
    --bg-warm: #F5F0E8;
    --text-dark: #3D3D3D;
    --text-soft: #6B6B6B;
    --accent-coral: #E8A598;
    --accent-sage: #A8C5A8;
    --accent-sky: #A8C5D8;
    --accent-lavender: #C5A8D8;
    --shadow-soft: rgba(61, 61, 61, 0.08);
    --shadow-medium: rgba(61, 61, 61, 0.12);
    --border-radius: 12px;
    --transition-smooth: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main container */
.arcade-container {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
}

/* Header with navigation */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-warm);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.game-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

/* Navigation arrows */
.nav-arrow {
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px var(--shadow-soft);
    transition: all var(--transition-smooth);
    color: var(--text-dark);
}

.nav-arrow:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 4px 12px var(--shadow-medium);
    background: var(--accent-coral);
    color: white;
}

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

.arrow-icon {
    font-size: 1.4rem;
    line-height: 1;
}

/* Game viewport */
.game-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.game-frame {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--shadow-medium);
    overflow: hidden;
    position: relative;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Welcome screen */
.welcome-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
}

.welcome-content {
    text-align: center;
    padding: 40px;
}

.welcome-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.welcome-content p {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.welcome-hint {
    margin-top: 24px;
    padding: 12px 24px;
    background: white;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

/* Footer with indicators */
.game-footer {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.game-indicators {
    display: flex;
    gap: 10px;
    align-items: center;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-soft);
    opacity: 0.3;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.indicator-dot:hover {
    opacity: 0.6;
    transform: scale(1.2);
}

.indicator-dot.active {
    opacity: 1;
    background: var(--accent-coral);
    transform: scale(1.3);
}

/* Loading state */
.game-frame.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--bg-warm);
    border-top-color: var(--accent-coral);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Fade transition for game changes */
.game-frame.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.game-frame.fade-in {
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .arcade-container {
        padding: 12px;
        gap: 12px;
    }

    .game-header {
        padding: 10px 16px;
    }

    .game-title {
        font-size: 1.1rem;
    }

    .nav-arrow {
        width: 38px;
        height: 38px;
    }

    .welcome-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 0.95rem;
    }

    .nav-arrow {
        width: 34px;
        height: 34px;
    }

    .arrow-icon {
        font-size: 1.1rem;
    }
}
