/* 画面全体の設定 */
body { 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    background: radial-gradient(circle, #2c0e1a, #000); 
    font-family: 'Arial Rounded MT Bold', sans-serif; 
    color: white; 
    touch-action: manipulation;
    overflow-x: hidden;
}

/* スマホ用メインコンテナ */
#slot-container {
    background: rgba(15, 15, 15, 0.98); 
    padding: 20px; 
    border-radius: 20px; 
    border: 5px solid #ffb6c1; 
    width: 95vw; 
    max-width: 500px; 
    text-align: center; 
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
}

/* タイトルとヘッダー */
#slot-title {
    font-size: 1.0em; /* 以前より小さく（0.8emなどでお好み調整） */
    color: #cccccc; /* 真っ白より少し落ち着いた色に */
    margin-bottom: 5px; /* 下の要素との隙間を少し詰める */
    font-weight: normal;
}
#top-bar { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.9em; padding: 0 10px; }
#balance {
    margin-top: 5px;
}

#balance-amount {
    font-size: 2.2em; /* ドカンと大きく！ */
    font-weight: bold;
    color: #ffd700; /* ゴールド色でリッチ感を演出 */
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6); /* ふんわり光らせる */
    display: block; /* 独立して大きく見せる */
}
/* スロットグリッド（スマホ向けに調整） */
.grid-3x5 { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); /* 6を5に変更 */
    gap: 8px; 
    background: #000; 
    padding: 10px; 
    border-radius: 15px; 
}
.cell { 
    aspect-ratio: 1 / 1; 
    font-size: 2.0em; /* 絵柄を少し大きく */
}
/* 当たり時の強調 */
.win-highlight { 
    background: #fff9c4 !important; 
    border: 3px solid #f1c40f !important; 
    box-shadow: 0 0 15px #f1c40f !important; 
}

/* 当たりラインの線 */
.payline-path { 
    fill: none; 
    stroke-width: 6; 
    stroke-linecap: round; 
    stroke: #ff0; 
    filter: drop-shadow(0 0 5px #ff0); 
}

/* 操作パネル */
.controls { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
#bet-select { padding: 10px; font-size: 1.2em; border-radius: 8px; }
#spin-btn { background: #ff69b4; padding: 15px; font-size: 1.5em; border-radius: 10px; border: none; color: white; cursor: pointer; }
#close-btn { background: #555; padding: 10px; font-size: 1em; border-radius: 10px; border: none; color: white; cursor: pointer; }

#message { font-size: 1.2em; margin: 10px 0; height: 30px; font-weight: bold; }