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

body {
    font-family: 'Noto Sans', sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 100%;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.info {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.info select {
    font-size: 1.1rem;
    padding: 5px 10px;
    border: 2px solid #2196F3;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    margin-left: 10px;
}

.race-area {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 30px;
}

.lane {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #444;
}

.building {
    width: 200px;
    height: 400px;
    border: 3px solid #333;
    border-radius: 8px;
    position: relative;
    background: linear-gradient(to bottom, #e3f2fd 0%, #fff 100%);
    margin-bottom: 20px;
    overflow: hidden;
}

.floors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.floor {
    flex: 1;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.8rem;
    color: #999;
}

.player {
    position: absolute;
    font-size: 2rem;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.3s ease;
    z-index: 10;
}

.elevator-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 5;
}

.action-button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background: #2196F3;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.start-button {
    display: block;
    margin: 0 auto 20px auto;
    padding: 20px 60px;
    font-size: 1.3rem;
}

.action-button:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

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

.action-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.progress {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.reset-button {
    display: block;
    margin: 0 auto;
    padding: 12px 40px;
    font-size: 1rem;
    border: 2px solid #333;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-button:hover {
    background: #333;
    color: white;
}

.result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.result.show {
    background: #4CAF50;
    color: white;
    animation: celebrate 0.5s ease;
}

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

@media (max-width: 768px) {
    .race-area {
        flex-direction: column;
        gap: 30px;
    }
    
    .building {
        width: 150px;
        height: 350px;
    }
}

.stairs-building:hover {
    background: linear-gradient(to bottom, #bbdefb 0%, #fff 100%);
}

.stairs-building:active {
    transform: scale(0.98);
}