/* ============================================
   RETAIL MINIGAMES STYLES
   Shared scaffolding (.retail-game) + per-game styles
   ============================================ */

.retail-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px;
    max-width: 720px;
    margin: 0 auto;
    color: #FBF4E8;
    font-family: 'Poppins', sans-serif;
}

.retail-game .rt-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 560px;
    background: rgba(55, 32, 18, 0.8);
    border: 1px solid rgba(231, 111, 44, 0.45);
    border-radius: 12px;
    padding: 10px 18px;
}

.retail-game .rt-timer {
    font-weight: 700;
    font-size: 1.05rem;
}

.retail-game .rt-timer .timer-warning {
    color: #FF5252;
    animation: rt-pulse 0.6s infinite alternate;
}

@keyframes rt-pulse {
    from { opacity: 1; }
    to { opacity: 0.45; }
}

.retail-game .rt-progress,
.retail-game .rt-lives {
    font-weight: 600;
    color: #F6C544;
}

.retail-game .rt-instruction {
    text-align: center;
    font-size: 1rem;
    max-width: 540px;
    margin: 0;
}

.retail-game .rt-feedback {
    min-height: 28px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.retail-game .rt-feedback.success { color: #4ADE80; }
.retail-game .rt-feedback.error { color: #FF6B6B; }

.retail-game .rt-btn {
    background: linear-gradient(135deg, #E76F2C, #B84E15);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(231, 111, 44, 0.4);
}

.retail-game .rt-btn:hover { transform: translateY(-2px); }

.retail-game .rt-btn-small {
    background: rgba(231, 111, 44, 0.25);
    border: 1px solid rgba(231, 111, 44, 0.6);
    color: #FBF4E8;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.retail-game .rt-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 560px;
}

.retail-game .rt-options-column {
    flex-direction: column;
    width: 100%;
}

.retail-game .rt-option {
    background: rgba(72, 44, 24, 0.92);
    border: 2px solid rgba(231, 111, 44, 0.5);
    color: #FBF4E8;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 0.98rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-align: center;
}

.retail-game .rt-options-column .rt-option { text-align: left; }

.retail-game .rt-option:hover {
    background: rgba(231, 111, 44, 0.35);
    transform: translateY(-1px);
}

.retail-game .rt-option.correct {
    background: #2E7D32;
    border-color: #4ADE80;
}

.retail-game .rt-option.wrong {
    background: #8E2A2A;
    border-color: #FF6B6B;
}

.retail-game .shake-wrong {
    animation: rt-shake 0.4s;
}

@keyframes rt-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ----- Checkout Rush ----- */
.checkout-belt {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 260px;
    background: repeating-linear-gradient(
        90deg,
        #26292E 0px, #26292E 44px,
        #33373D 44px, #33373D 48px
    );
    border: 4px solid #556070;
    border-radius: 14px;
    overflow: hidden;
}

.belt-item {
    position: absolute;
    font-size: 2.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(246, 197, 68, 0.6);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: transform 0.12s;
    animation: belt-pop 0.25s ease-out;
}

@keyframes belt-pop {
    from { transform: scale(0.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.belt-item:hover { transform: scale(1.12); }

.belt-item.scanned {
    background: rgba(74, 222, 128, 0.4);
    border-color: #4ADE80;
    transform: scale(1.2);
    opacity: 0;
    transition: all 0.25s;
}

.belt-item.missed {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.3s;
}

/* ----- Making Change ----- */
.change-receipt {
    width: 100%;
    max-width: 380px;
    background: #FDFBF4;
    color: #26292E;
    border-radius: 8px;
    padding: 14px 20px;
    font-family: monospace;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 1.02rem;
}

.receipt-row.highlight {
    border-top: 2px dashed #26292E;
    margin-top: 6px;
    padding-top: 8px;
    font-size: 1.15rem;
    color: #B84E15;
}

.change-tray {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(72, 44, 24, 0.92);
    border: 2px solid rgba(246, 197, 68, 0.55);
    border-radius: 10px;
    padding: 10px 20px;
}

.change-tray strong {
    font-size: 1.3rem;
    color: #F6C544;
    font-family: monospace;
    min-width: 80px;
}

.change-denoms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.denom-btn {
    background: linear-gradient(135deg, #3E7C4F, #2C5E3A);
    color: white;
    border: 2px solid #67B26F;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: transform 0.1s;
}

.denom-btn:hover { transform: translateY(-2px) scale(1.05); }

/* ----- Shelf Stocking ----- */
.stocking-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(72, 44, 24, 0.92);
    border: 2px solid rgba(246, 197, 68, 0.55);
    border-radius: 14px;
    padding: 16px 40px;
}

.stocking-icon { font-size: 3rem; }

.stocking-item strong { font-size: 1.15rem; }

.stocking-shelves {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.shelf-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    min-width: 100px;
    transition: transform 0.12s;
    color: white;
    font-weight: 600;
}

.shelf-btn span { font-size: 0.8rem; }

.shelf-btn:hover { transform: translateY(-3px); }

.shelf-btn.dairy { background: #23678A; border-color: #7ED6F0; }
.shelf-btn.produce { background: #2C5E3A; border-color: #67B26F; }
.shelf-btn.bakery { background: #8A5A24; border-color: #E9C46A; }
.shelf-btn.cleaning { background: #5B3E8A; border-color: #B79CE8; }
.shelf-btn.frozen { background: #1D4F73; border-color: #4FB7FF; }

/* ----- Price Check ----- */
.price-tag {
    background: #FDFBF4;
    color: #26292E;
    border-radius: 10px;
    padding: 18px 34px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    position: relative;
}

.price-item { font-size: 1.5rem; font-weight: 700; }

.price-original {
    font-size: 1.05rem;
    color: #6B7178;
    margin-top: 6px;
}

.price-discount {
    display: inline-block;
    background: #E94F37;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 8px;
    padding: 4px 16px;
    margin-top: 8px;
    transform: rotate(-3deg);
}

/* ----- Bagging ----- */
.bagging-counter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 560px;
}

.bagging-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: rgba(72, 44, 24, 0.92);
    border: 2px solid rgba(246, 197, 68, 0.55);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    color: #FBF4E8;
    transition: transform 0.12s;
    min-width: 96px;
}

.bagging-item:hover { transform: translateY(-3px); }

.bagging-item-icon { font-size: 2.2rem; }

.bagging-item-name { font-size: 0.8rem; font-weight: 600; }

.bagging-item.bagged {
    opacity: 0.35;
    transform: scale(0.85);
    pointer-events: none;
    border-color: #4ADE80;
}

.bagging-bag {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F6C544;
}

.bagging-bag span { font-size: 1rem; }

/* ----- Inventory Ordering ----- */
.inventory-sheet,
.reconcile-drawer {
    width: 100%;
    max-width: 420px;
    background: rgba(72, 44, 24, 0.92);
    border: 2px solid rgba(246, 197, 68, 0.5);
    border-radius: 12px;
    padding: 14px 20px;
}

.inv-row,
.drawer-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(246, 197, 68, 0.18);
}

.inv-row:last-child,
.drawer-row:last-child { border-bottom: none; }

.inv-row.inv-title,
.drawer-row.drawer-title {
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #F6C544;
}

.drawer-row.highlight strong,
.inv-row strong { color: #F6C544; }

.rt-instruction em {
    display: block;
    font-size: 0.85rem;
    color: #D9B98F;
    font-style: normal;
    margin-top: 4px;
}

/* ----- Shift Scheduling ----- */
.schedule-layout {
    display: flex;
    gap: 18px;
    width: 100%;
    max-width: 620px;
    justify-content: center;
    flex-wrap: wrap;
}

.schedule-employees,
.schedule-shifts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 220px;
}

.schedule-emp,
.schedule-shift {
    background: rgba(72, 44, 24, 0.92);
    border: 2px solid rgba(231, 111, 44, 0.5);
    color: #FBF4E8;
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background 0.15s;
}

.schedule-emp:hover,
.schedule-shift:hover { background: rgba(231, 111, 44, 0.3); }

.schedule-emp strong { font-size: 1rem; }

.schedule-emp span {
    font-size: 0.8rem;
    color: #D9B98F;
}

.schedule-emp.selected {
    border-color: #F6C544;
    background: rgba(246, 197, 68, 0.25);
}

.schedule-emp.assigned {
    opacity: 0.4;
    pointer-events: none;
    border-color: #4ADE80;
}

.schedule-shift span { font-size: 0.92rem; font-weight: 600; }

.schedule-shift .shift-assignee {
    font-size: 0.8rem;
    color: #D9B98F;
    font-style: normal;
}

.schedule-shift.filled {
    border-color: #4ADE80;
    background: rgba(46, 125, 50, 0.4);
    pointer-events: none;
}

.schedule-shift.filled .shift-assignee { color: #4ADE80; font-weight: 700; }

/* ----- Planogram ----- */
.plano-grid {
    display: grid;
    grid-template-columns: repeat(3, 92px);
    gap: 10px;
}

.plano-cell {
    width: 92px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    background: rgba(72, 44, 24, 0.92);
    border: 2px solid rgba(246, 197, 68, 0.55);
    border-radius: 12px;
    color: #D9B98F;
    font-family: 'Poppins', sans-serif;
}

.plano-cell.empty {
    cursor: pointer;
    font-size: 1.6rem;
    transition: background 0.15s;
}

.plano-cell.empty:hover { background: rgba(231, 111, 44, 0.3); }

.plano-cell.cell-right { border-color: #4ADE80; background: rgba(46, 125, 50, 0.4); }
.plano-cell.cell-wrong { border-color: #FF6B6B; background: rgba(142, 42, 42, 0.5); }

.plano-palette {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.plano-product {
    font-size: 1.8rem;
    background: rgba(72, 44, 24, 0.92);
    border: 2px solid rgba(231, 111, 44, 0.5);
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: transform 0.1s;
}

.plano-product:hover { transform: translateY(-2px); }

.plano-product.selected {
    border-color: #F6C544;
    background: rgba(246, 197, 68, 0.3);
}

/* ----- Customer Service ----- */
.service-bubble {
    background: #FDFBF4;
    color: #26292E;
    border-radius: 16px;
    padding: 18px 24px;
    max-width: 540px;
    font-size: 1.02rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.service-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 44px;
    border-width: 12px 12px 0;
    border-style: solid;
    border-color: #FDFBF4 transparent transparent;
}
