/* DunceAI - Fruit Picker Styles */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --orange: #FF6B35;
    --blue: #3D5A80;
    --cream: #FFF8E7;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, #FFE4C4 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow), 0 0 0 4px var(--orange);
    width: 100%;
    max-width: 780px;
    padding: 20px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.logo { font-size: 1.4rem; font-weight: bold; }
.logo-dunce { color: var(--orange); }
.logo-ai { color: var(--blue); }

.game-header h1 { color: #2C3E50; font-size: 1.3rem; }

.back-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}
.back-link:hover { text-decoration: underline; }

/* Instruction bar */
.instruct-bar {
    background: #ffff99;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #990000;
    margin-bottom: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main 3-column layout */
.game-area {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    justify-content: center;
}

/* Button columns */
.btn-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding-top: 10px;
    min-width: 100px;
}

.col-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #444;
    text-align: center;
    margin-bottom: 4px;
}

.rot-btn {
    width: 90px;
    padding: 7px 4px;
    font-size: 0.95rem;
    font-weight: bold;
    border: 2px solid #000;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    color: #0000cc;
    transition: all 0.15s ease;
}

.rot-btn:hover {
    background: #e8e8ff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,200,0.2);
}

.rot-btn:active { transform: translateY(1px); }

.rot-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Canvas */
.canvas-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#gameCanvas {
    border: 2px solid #ccc;
    border-radius: 8px;
    display: block;
}

/* Basket row */
.basket-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 6px 14px;
    width: 100%;
    justify-content: space-between;
}

.basket-label {
    font-size: 1rem;
    font-weight: bold;
    color: #0000cc;
    white-space: nowrap;
}

.basket-apples {
    display: flex;
    gap: 4px;
}

.basket-apple {
    font-size: 1.4rem;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.basket-apple.visible {
    opacity: 1;
}

.btn-next {
    background: linear-gradient(135deg, var(--blue), #2C4A6E);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61,90,128,0.4);
}

@media (max-width: 600px) {
    .game-area { flex-direction: column; align-items: center; }
    .btn-column { flex-direction: row; flex-wrap: wrap; justify-content: center; min-width: auto; }
    .col-label { display: none; }
}
