* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    width: 100%;
    max-width: 800px;
    min-height: 550px;
    position: relative;
    background: #ffffff;
    border: 3px solid #000000;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    grid-template-rows: auto 1fr auto;
    gap: 0;
}

/* 상단 타이틀 */
.top-panel {
    grid-column: 1 / -1;
    text-align: center;
    padding: 15px;
    border-bottom: 2px solid #000;
}

.top-panel h1 {
    font-size: 2em;
    font-weight: 900;
    color: #000000;
    letter-spacing: 2px;
}

/* 왼쪽 정보 패널 */
.left-panel {
    padding: 20px;
    border-right: 2px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
    line-height: 2;
}

.info-text p {
    margin-bottom: 5px;
}

/* 중앙 GPT 표시 */
.center-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.gpt-display {
    text-align: center;
    margin-bottom: 30px;
}

.gpt-model-name {
    font-size: 3em;
    font-weight: 900;
    color: #000000;
    margin-bottom: 10px;
}

.gpt-version {
    font-size: 5em;
    font-weight: 900;
    color: #000000;
    transition: all 0.2s;
}

.success-rate {
    font-size: 1.4em;
    font-weight: bold;
    color: #000000;
}

/* 오른쪽 버튼 패널 */
.right-panel {
    border-left: 2px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.circle-btn {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #555, #222);
    border: 4px solid #111;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 
        inset -4px -4px 8px rgba(0, 0, 0, 0.6),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        2px 2px 8px rgba(0, 0, 0, 0.3);
}

.circle-btn.big {
    width: 150px;
    height: 150px;
    font-size: 1.3em;
}

.circle-btn:hover:not(:disabled) {
    background: radial-gradient(circle at 35% 35%, #666, #333);
    transform: scale(1.05);
}

.circle-btn:active:not(:disabled) {
    transform: scale(0.96);
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.6),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1);
}

.circle-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* 하단 패널 */
.bottom-panel {
    grid-column: 1 / -1;
    border-top: 2px solid #000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-left {
    display: flex;
    align-items: center;
}

.reset-btn {
    background: none;
    border: 2px solid #000;
    padding: 8px 20px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    transition: all 0.15s;
}

.reset-btn:hover {
    background: #000;
    color: #fff;
}

.bottom-right {
    font-size: 2.2em;
    font-weight: 900;
    color: #000000;
}

/* 로그 패널 */
.log-panel {
    grid-column: 1 / 3;
    padding: 10px 20px;
    max-height: 120px;
    overflow: hidden;
}

.log-content {
    max-height: 100px;
    overflow-y: auto;
    font-size: 0.8em;
    color: #555;
}

.log-entry {
    padding: 3px 0;
    font-family: 'Malgun Gothic', sans-serif;
}

.log-success {
    color: #000000;
    font-weight: bold;
}

.log-fail {
    color: #999;
    font-weight: bold;
}

.log-info {
    color: #777;
}

/* 스크롤바 */
.log-content::-webkit-scrollbar {
    width: 4px;
}

.log-content::-webkit-scrollbar-track {
    background: transparent;
}

.log-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .game-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto;
        min-height: auto;
        max-width: 100%;
    }

    .top-panel {
        grid-column: 1;
    }

    .left-panel {
        border-right: none;
        border-bottom: 2px solid #000;
        padding: 15px;
    }

    .info-text {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 20px;
        font-size: 1em;
    }

    .center-panel {
        padding: 30px 20px;
    }

    .gpt-model-name {
        font-size: 2.2em;
    }

    .gpt-version {
        font-size: 3.5em;
    }

    .right-panel {
        border-left: none;
        border-top: 2px solid #000;
        flex-direction: row;
        justify-content: center;
        padding: 15px;
        gap: 12px;
    }

    .circle-btn {
        width: 100px;
        height: 100px;
        font-size: 0.9em;
    }

    .circle-btn.big {
        width: 110px;
        height: 110px;
        font-size: 1em;
    }

    .bottom-panel {
        grid-column: 1;
    }

    .bottom-right {
        font-size: 1.6em;
    }

    .log-panel {
        grid-column: 1;
        width: auto;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .top-panel h1 {
        font-size: 1.4em;
    }

    .info-text {
        font-size: 0.85em;
    }

    .gpt-model-name {
        font-size: 1.8em;
    }

    .gpt-version {
        font-size: 2.8em;
    }

    .success-rate {
        font-size: 1.1em;
    }

    .center-panel {
        padding: 20px 15px;
    }

    .right-panel {
        gap: 8px;
        padding: 12px;
    }

    .circle-btn {
        width: 80px;
        height: 80px;
        font-size: 0.75em;
        border-width: 3px;
    }

    .circle-btn.big {
        width: 90px;
        height: 90px;
        font-size: 0.85em;
    }

    .bottom-right {
        font-size: 1.3em;
    }

    .log-content {
        font-size: 0.75em;
    }
}
