﻿body {
    background-color: #ffe4e1;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

h1 {
    color: #ff6eb4;
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.visual-area {
    margin: 30px 0;
}

.emoji-display img {
    width: 150px;
    height: 150px;
    animation: bounce 2s infinite;
}

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

.main-btn {
    background: #ff6eb4;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 0 #d65a98;
    transition: 0.2s;
    width: 100%;
}

.main-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #d65a98;
}

#result-area {
    display: none;
}

.luck-rank {
    font-size: 3rem;
    font-weight: 900;
    color: #ff4500;
    display: block;
}

.total-score-badge {
    background: #eee;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin: 10px 0;
}

.scores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.score-card {
    background: #fff0f5;
    padding: 10px;
    border-radius: 15px;
}

.score-label { font-size: 0.8rem; display: block; }
.score-value { font-size: 1.2rem; font-weight: bold; }

.message-card, .item-card {
    background: #fdf5e6;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.item-name {
    font-weight: bold;
    color: #ff6eb4;
}

.retry-btn {
    background: #aaa;
    box-shadow: 0 5px 0 #888;
}