/* =========================
   GLOBAL SHARED STYLES
========================= */

* {
    box-sizing: border-box;
}

/* =========================
   UI COMPONENTS
========================= */

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #1e293b;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
}

.history-btn:hover {
    background: #334155;
}

/* =========================
   GAME BOX
========================= */

.game-box {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    min-height: 500px;
    overflow: hidden;
    background: #1e293b;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.image-container {
    width: 50%;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #0f172a;
}

.image-container img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    background: black;
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =========================
   STORY
========================= */

.story-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.story-title {
    margin-bottom: 14px;
    font-size: 30px;
}

.story-text {
    font-size: 18px;
    line-height: 1.7;
    color: #dbeafe;
}

/* =========================
   CHOICES
========================= */

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
    background: #0f172a;
    border-top: 2px solid #334155;
}

.choice-btn {
    flex: 1;
    min-width: 180px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.choice-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE (SHARED)
========================= */

@media (max-width: 1400px) {
    .game-box { max-width: 1000px; }
    .image-container { width: 45%; min-width: 45%; }
}

@media (max-width: 1100px) {
    .game-box { flex-direction: column; max-width: 800px; }
    .image-container { width: 100%; min-width: 100%; padding: 20px; }
    .image-container img { width: 100%; max-width: 450px; }
    .story-content { padding: 20px; }
    .story-title { font-size: 26px; }
    .story-text { font-size: 17px; }
}

@media (max-width: 850px) {
    .game-box { border-radius: 16px; margin: 12px; width: auto; }
    .image-container { padding: 14px; }
    .image-container img { max-width: 320px; }
    .story-content { padding: 18px; }
    .story-title { font-size: 24px; }
    .story-text { font-size: 16px; line-height: 1.6; }
    .choices { flex-direction: column; padding: 16px; }
    .choice-btn { width: 100%; min-width: unset; }
}

@media (max-width: 600px) {
    .game-box { border-radius: 12px; margin: 8px; }
    .image-container { padding: 10px; }
    .image-container img { max-width: 100%; border-radius: 12px; }
    .story-content { padding: 14px; }
    .story-title { font-size: 22px; }
    .story-text { font-size: 15px; }
    .choices { gap: 10px; padding: 12px; }
    .choice-btn { padding: 16px; font-size: 16px; }
    .history-btn { padding: 14px; font-size: 15px; }
}
