/* --- ベース設定 --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333333;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    overflow: hidden;
    touch-action: manipulation;
}

/* ステータスバー */
#status-bar {
    background-color: #ffffff;
    color: #888;
    text-align: center;
    font-size: 11px;
    padding: 4px;
    height: 24px;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* 全体レイアウト */
.container {
    height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    gap: 20px;
}

/* --- セクション共通 --- */
.control-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 4px 8px rgba(0,0,0,0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: visible;
}

.section-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #999;
    letter-spacing: 2px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
}

/* グリッドレイアウト */
.grid-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    flex: 1;
    padding-bottom: 5px;
}

/* --- ボタン共通デザイン --- */
.action-btn {
    border: none;
    cursor: pointer;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    font-size: 2.0rem;
    transition: transform 0.1s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}


/* =========================================
   エリア1: リアクション用 (変更なし)
   ========================================= */
.reaction-type {
    border-radius: 30px;
    background: #ffffff;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.reaction-type:active {
    transform: translateY(4px) scale(0.96);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    filter: brightness(0.95);
}

#btn-question { color: #fbc02d; border-color: #fff9c4; background: linear-gradient(to bottom right, #ffffff, #fffde7); }
#btn-clap     { color: #ff9800; border-color: #ffe0b2; background: linear-gradient(to bottom right, #ffffff, #fff3e0); }
#btn-surprise { color: #ff5252; border-color: #ffcdd2; background: linear-gradient(to bottom right, #ffffff, #ffebee); }
#btn-okay     { color: #4caf50; border-color: #c8e6c9; background: linear-gradient(to bottom right, #ffffff, #e8f5e9); }

.corner-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.9;
    transition: transform 0.2s;
}

.reaction-type:active .corner-icon {
    transform: rotate(-15deg) scale(1.4);
}


/* =========================================
   エリア2: テキスト用 (背景なし・画像小さめ)
   ========================================= */
.text-type {
    /* 背景・枠・影を完全に消す */
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    
    /* 余白なし（中央揃えはflexで制御） */
    padding: 0;
    border-radius: 0; 
    overflow: visible;
}

/* CSSのしっぽ削除 */
.text-type::after {
    content: none;
}

/* ★画像の設定（サイズ調整） */
.center-icon {
    /* ここで画像の大きさを調整できます (85%くらいがバランス良いです) */
    width: 100%;
    height: 100%; 
    
    object-fit: contain;
    pointer-events: none;
    
    /* 任意：画像が背景に埋もれる場合は、以下のコメントアウトを外して
       ドロップシャドウをつけると浮き上がって見えます */
    /* filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); */
}

/* ★押した時の動き */
.text-type:active {
    /* グッと沈んで縮む */
    transform: translateY(6px) scale(0.95);
    filter: brightness(0.9);
}