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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h1 {
    font-size: 2rem;
    color: #e75480;
    text-shadow: 2px 2px 0 #fff;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8rem;
    color: #e75480;
    margin-bottom: 20px;
}

.screen {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none !important;
}

.description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 154, 158, 0.5);
}

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

.btn-line {
    background: #06c755;
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.4);
}

.btn-line:hover {
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.5);
}

/* ゲーム画面 */
.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.time, .score {
    background: #fff5f5;
    padding: 10px 20px;
    border-radius: 15px;
    color: #e75480;
    font-weight: bold;
}

.time span:first-child,
.score span:first-child {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

#timer, #score {
    font-size: 1.5rem;
}

/* ゲームボード */
.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px;
}

.hole {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: linear-gradient(180deg, #8b4513 0%, #654321 100%);
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.hole::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
}

.mole {
    position: absolute;
    bottom: -80%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 70%;
    background: linear-gradient(180deg, #a0522d 0%, #8b4513 100%);
    border-radius: 50% 50% 45% 45%;
    transition: bottom 0.1s ease-out;
    z-index: 1;
}

.mole::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30%;
    background: #deb887;
    border-radius: 50%;
}

.mole::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 15%;
    height: 15%;
    background: #000;
    border-radius: 50%;
    box-shadow:
        calc(100% - 10px) 0 0 #000,
        2px -2px 0 2px #fff,
        calc(100% - 8px) -2px 0 2px #fff;
}

.hole.active .mole {
    bottom: 10%;
}

.hole.hit .mole {
    background: linear-gradient(180deg, #ffb6c1 0%, #ff69b4 100%);
}

.hole.hit .mole::before {
    background: #fff0f5;
}

/* 結果画面 */
.result-score {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.final-score {
    font-size: 3rem;
    color: #e75480;
    font-weight: bold;
    margin-bottom: 20px;
}

.result-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.buttons .btn {
    width: 100%;
}

/* アニメーション */
@keyframes pop {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

.hole.active .mole {
    animation: pop 0.3s ease-in-out;
}
