/* =========================================
   時計ゲーム専用スタイル（CSSカスタマイズ版）
   ========================================= */
#game-container {
    max-width: 500px;
    margin: 0 auto;
    user-select: none;
    touch-action: manipulation;
}

/* --- 時計本体のエリア --- */
.clock-area {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-face {
    width: 250px;
    height: 250px;
    border: 10px solid #444;
    border-radius: 50%;
    background: white;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 中心点 */
.clock-center {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #333;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* 針 */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 10px;
    z-index: 5;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hour-hand {
    width: 10px;
    height: 70px;
    background: #2196f3;
    margin-left: -5px;
}

.minute-hand {
    width: 6px;
    height: 110px;
    background: #ef5350;
    margin-left: -3px;
}

/* --- 数字の配置ロジック --- */
.clock-number,
.minute-number {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
}

/* 時の数字 (1-12) */
.clock-number {
    font-size: 1.5rem;
    color: #333;
}

.n1 {
    transform: translate(-50%, -50%) rotate(30deg) translateY(-95px) rotate(-30deg);
}

.n2 {
    transform: translate(-50%, -50%) rotate(60deg) translateY(-95px) rotate(-60deg);
}

.n3 {
    transform: translate(-50%, -50%) rotate(90deg) translateY(-95px) rotate(-90deg);
}

.n4 {
    transform: translate(-50%, -50%) rotate(120deg) translateY(-95px) rotate(-120deg);
}

.n5 {
    transform: translate(-50%, -50%) rotate(150deg) translateY(-95px) rotate(-150deg);
}

.n6 {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-95px) rotate(-180deg);
}

.n7 {
    transform: translate(-50%, -50%) rotate(210deg) translateY(-95px) rotate(-210deg);
}

.n8 {
    transform: translate(-50%, -50%) rotate(240deg) translateY(-95px) rotate(-240deg);
}

.n9 {
    transform: translate(-50%, -50%) rotate(270deg) translateY(-95px) rotate(-270deg);
}

.n10 {
    transform: translate(-50%, -50%) rotate(300deg) translateY(-95px) rotate(-300deg);
}

.n11 {
    transform: translate(-50%, -50%) rotate(330deg) translateY(-95px) rotate(-330deg);
}

.n12 {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-95px) rotate(0deg);
}

/* 分の数字 (0-55) */
.minute-number {
    font-size: 0.95rem;
    color: #ef5350;
}

.m0 {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-150px) rotate(0deg);
}

.m5 {
    transform: translate(-50%, -50%) rotate(30deg) translateY(-150px) rotate(-30deg);
}

.m10 {
    transform: translate(-50%, -50%) rotate(60deg) translateY(-150px) rotate(-60deg);
}

.m15 {
    transform: translate(-50%, -50%) rotate(90deg) translateY(-150px) rotate(-90deg);
}

.m20 {
    transform: translate(-50%, -50%) rotate(120deg) translateY(-150px) rotate(-120deg);
}

.m25 {
    transform: translate(-50%, -50%) rotate(150deg) translateY(-150px) rotate(-150deg);
}

.m30 {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-150px) rotate(-180deg);
}

.m35 {
    transform: translate(-50%, -50%) rotate(210deg) translateY(-150px) rotate(-210deg);
}

.m40 {
    transform: translate(-50%, -50%) rotate(240deg) translateY(-150px) rotate(-240deg);
}

.m45 {
    transform: translate(-50%, -50%) rotate(270deg) translateY(-150px) rotate(-270deg);
}

.m50 {
    transform: translate(-50%, -50%) rotate(300deg) translateY(-150px) rotate(-300deg);
}

.m55 {
    transform: translate(-50%, -50%) rotate(330deg) translateY(-150px) rotate(-330deg);
}

/* --- 回答・操作エリア --- */
.answer-zone {
    text-align: center;
    margin-bottom: 15px;
}

.answer-display-board {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: bold;
    background: #fafafa;
    border: 4px solid #eee;
    border-radius: 15px;
    padding: 5px 15px;
    min-width: 200px;
}

.ans-unit {
    font-size: 1.2rem;
    margin: 0 5px;
    color: #666;
}

.color-h {
    color: #2196f3;
}

.color-m {
    color: #ef5350;
}

.ans-box.empty {
    color: #ddd;
}

.selector-group {
    background: #fdfdfd;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 10px;
}

.selector-title {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
    font-size: 1rem;
}

.button-grid {
    display: grid;
    gap: 5px;
}

.grid-hour {
    grid-template-columns: repeat(6, 1fr);
}

.grid-minute {
    grid-template-columns: repeat(4, 1fr);
}

/* 5分刻み用に4列 */

.select-btn {
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.btn-hour {
    border-color: #bbdefb;
    color: #1976d2;
}

.btn-minute {
    border-color: #ffcdd2;
    color: #d32f2f;
}

.select-btn:active {
    background: #eee;
    transform: translateY(2px);
}

#reset-btn {
    width: 100%;
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}