/* ベースと背景 */
body {
    background-color: #1a1a2e; /* ダークで深みのある背景 */
    color: #f0f0f0; /* 明るいテキスト */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* モダンなフォント */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* ポーカーテーブルのスタイル */
.poker-table {
    background: #2c0f1b; /* 深いボルドーや紫のイメージ */
    border: 10px solid #5a0c3b; /* テーブルのエッジ */
    border-radius: 15px; /* やや丸み */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(255, 255, 255, 0.1); /* 奥行き */
    padding: 40px;
    text-align: center;
    min-width: 800px;
}

.game-title {
    color: #ffcc00; /* ゴールド系のハイライト */
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
    margin-bottom: 30px;
    font-size: 2.5em;
}

/* カードコンテナ */
.hand-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    min-height: 150px;
    margin-bottom: 30px;
}

/* 個々のカードのスタイル */
.card {
    width: 100px;
    height: 140px;
    background-color: #ffffff;
    border: 1px solid #000;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

/* 赤いスートのスタイル */
.card.red {
    color: #ff0000;
}
/* 黒いスートのスタイル */
.card.black {
    color: #000000;
}

/* カードの保持 (ホールド) 状態 */
.card.held {
    transform: translateY(-20px) rotate(2deg); /* 持ち上げられた感じ */
    border: 3px solid #00ff00; /* ホールドの視覚的強調 */
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.5);
}

/* ボタンのスタイル */
.action-button {
    background-color: #5a0c3b;
    color: #ffcc00;
    border: 2px solid #ffcc00;
    padding: 10px 20px;
    margin: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.1s;
}

.action-button:hover:not(:disabled) {
    background-color: #7d1c5a;
    transform: scale(1.05);
}

.action-button:disabled {
    background-color: #333;
    border-color: #555;
    color: #888;
    cursor: not-allowed;
}

/* メッセージ/スコアボックス */
.message-box, .score-box {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.message-box {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.score-box {
    background-color: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
}