/* ========================================================
   CHEF'S RUSH: KITCHEN FRENZY - UI SCREENS & MODALS
   Main Menu, Level Select, Intro, Victory, Defeat, Upgrade Shop.
======================================================== */

.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 13, 20, 0.88);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ui-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: linear-gradient(180deg, #242D42 0%, #1A2132 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 90%;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ui-overlay.active .modal-card {
    transform: scale(1);
}

.modal-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 6px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* ========================================================
   MAIN MENU SCREEN
======================================================== */
.main-menu-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    animation: floatLogo 2s ease-in-out infinite alternate;
}

@keyframes floatLogo {
    from { transform: translateY(0) rotate(-3deg); }
    to { transform: translateY(-10px) rotate(3deg); }
}

.logo-text {
    font-size: 38px;
    font-weight: 900;
    color: var(--color-gold);
    text-shadow: 0 4px 14px rgba(255, 209, 102, 0.4);
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 240px;
}

/* ========================================================
   LEVEL SELECT SCREEN
======================================================== */
.levels-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 620px;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
    margin-bottom: 20px;
}

.level-card {
    width: 86px;
    height: 98px;
    background: #2D374E;
    border: 2px solid #3E4B6A;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.level-card:hover:not(.locked) {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--color-primary);
}

.level-card.locked {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.level-num {
    font-size: 26px;
    font-weight: 900;
    color: #FFF;
}

.level-stars-row {
    display: flex;
    gap: 2px;
    margin-top: 6px;
}

.star-mini {
    width: 14px;
    height: 14px;
}

/* ========================================================
   VICTORY & DEFEAT SCREENS
======================================================== */
.stars-reveal-container {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.reveal-star {
    width: 52px;
    height: 52px;
    opacity: 0;
    transform: scale(0.3) rotate(-30deg);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-star.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.stats-summary-box {
    display: flex;
    justify-content: space-around;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    padding: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.stat-value {
    font-size: 20px;
    font-weight: 900;
    color: #FFF;
}

/* ========================================================
   UPGRADE SHOP SCREEN
======================================================== */
.shop-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 20px;
}

.upgrade-card {
    background: rgba(43, 53, 76, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.upgrade-info {
    text-align: left;
}

.upgrade-name {
    font-size: 15px;
    font-weight: 800;
    color: #FFF;
}

.upgrade-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.upgrade-level-dots {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.level-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: #3B4662;
}

.level-dot.filled {
    background: var(--color-mint);
}

/* ========================================================
   SETTINGS MODAL & AUDIO CONTROLS
======================================================== */
.settings-modal {
    width: 480px;
    max-width: 95%;
}

.settings-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.setting-card {
    background: rgba(36, 45, 66, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.setting-label {
    font-size: 15px;
    font-weight: 800;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 800;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-switch-btn.active {
    background: linear-gradient(180deg, #4EE2D5 0%, #2EC4B6 100%);
    color: #033E39;
    border-color: #2EC4B6;
    box-shadow: 0 0 12px var(--color-mint-glow);
}

.toggle-switch-btn.inactive {
    background: rgba(230, 57, 70, 0.2);
    color: #FFA5AB;
    border-color: rgba(230, 57, 70, 0.4);
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: var(--radius-full);
    background: #1C2333;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(180deg, #FFE082 0%, #FFD166 100%);
    border: 2px solid #FFF;
    cursor: pointer;
    box-shadow: 0 0 8px var(--color-gold-glow);
    transition: transform 0.1s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: #FFD166;
    border: 2px solid #FFF;
    cursor: pointer;
}

.slider-val-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-gold);
    width: 38px;
    text-align: right;
}

.lang-picker-group {
    display: flex;
    gap: 10px;
}

.lang-btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 800;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(180deg, #FF7552 0%, #FF5E36 100%);
    color: #FFF;
    border-color: #FF5E36;
    box-shadow: 0 0 16px var(--color-primary-glow);
}

/* ========================================================
   HOW TO PLAY MODAL & RECIPE GUIDE
======================================================== */
.how-to-modal {
    width: 560px;
    max-width: 95vw;
    max-height: 88vh;
    padding: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.how-tabs-bar {
    display: flex;
    width: 100%;
    gap: 8px;
    margin: 12px 0 16px 0;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: var(--radius-md);
}

.how-tab-btn {
    flex: 1;
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.how-tab-btn:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.08);
}

.how-tab-btn.active {
    background: var(--color-mint);
    color: #033E39;
    box-shadow: 0 2px 8px rgba(46, 196, 182, 0.4);
}

.how-tab-pane {
    display: none;
    width: 100%;
    overflow-y: auto;
    max-height: 52vh;
    padding-right: 4px;
}

.how-tab-pane.active {
    display: block;
}

.how-steps-list {
    text-align: left;
    font-size: 13.5px;
    line-height: 1.6;
    color: #CBD5E1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.how-steps-list p {
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--color-mint);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Recipes Guide List */
.recipes-guide-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.recipe-guide-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.recipe-guide-card:hover {
    transform: translateX(4px);
    border-color: rgba(46, 196, 182, 0.4);
}

.recipe-guide-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.recipe-guide-icon svg {
    width: 100%;
    height: 100%;
}

.recipe-guide-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.recipe-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recipe-guide-name {
    font-size: 14px;
    font-weight: 800;
    color: #FFF;
}

.recipe-guide-price {
    font-size: 13px;
    font-weight: 900;
    color: var(--color-gold);
    background: rgba(255, 209, 102, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.recipe-ingredients-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.recipe-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    padding: 2px 6px;
    border-radius: 4px;
}

.recipe-tag-plus {
    font-size: 11px;
    font-weight: 900;
    color: var(--color-mint);
}

.recipe-tag-arrow {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-gold);
}

.recipe-guide-tip {
    font-size: 11.5px;
    color: var(--color-text-muted);
    margin: 2px 0 0 0;
    line-height: 1.35;
}

/* ========================================================
   DIFFICULTY PICKER IN SETTINGS
======================================================== */
.diff-picker-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.diff-btn {
    flex: 1;
    padding: 8px 6px;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-align: center;
}

.diff-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.diff-btn.active[data-diff="easy"] {
    background: linear-gradient(180deg, #4EE2D5 0%, #2EC4B6 100%);
    color: #033E39;
    border-color: #2EC4B6;
    box-shadow: 0 0 12px var(--color-mint-glow);
}

.diff-btn.active[data-diff="normal"] {
    background: linear-gradient(180deg, #FFE082 0%, #FFD166 100%);
    color: #4A3500;
    border-color: #FFD166;
    box-shadow: 0 0 12px var(--color-gold-glow);
}

.diff-btn.active[data-diff="hard"] {
    background: linear-gradient(180deg, #FF6B6B 0%, #E63946 100%);
    color: #FFF;
    border-color: #E63946;
    box-shadow: 0 0 14px var(--color-crimson-glow);
}

.diff-btn.active[data-diff="expert"] {
    background: linear-gradient(180deg, #D946EF 0%, #8B5CF6 100%);
    color: #FFF;
    border-color: #D946EF;
    box-shadow: 0 0 16px rgba(217, 70, 239, 0.6);
    animation: expertGlowPulse 1.5s ease-in-out infinite alternate;
}

@keyframes expertGlowPulse {
    0% { box-shadow: 0 0 10px rgba(217, 70, 239, 0.4); }
    100% { box-shadow: 0 0 20px rgba(217, 70, 239, 0.85); }
}

.diff-desc-box {
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    line-height: 1.4;
    text-align: left;
}

/* ========================================================
   TUTORIAL LEVEL 0 & NEW MECHANICS STYLES
======================================================== */

/* Dedicated Tutorial Level Banner in Level Select */
.tutorial-level-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 620px;
    background: linear-gradient(135deg, rgba(78, 226, 213, 0.15) 0%, rgba(255, 209, 102, 0.12) 100%);
    border: 2px solid rgba(78, 226, 213, 0.4);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 14px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tutorial-level-banner:hover {
    transform: translateY(-2px);
    border-color: var(--color-mint);
}

.tut-banner-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tut-banner-badge {
    font-size: 11px;
    font-weight: 900;
    color: var(--color-mint);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tut-banner-title {
    font-size: 15px;
    font-weight: 800;
    color: #FFF;
    margin: 0;
}

.tut-banner-sub {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
}

/* Level Card Mini Mechanic Badge */
.level-card.has-new-mech {
    border-color: rgba(255, 209, 102, 0.5);
}

.level-mech-icon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 15px;
    background: #1C2333;
    border: 1.5px solid var(--color-gold);
    border-radius: var(--radius-full);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: bounceMini 2s infinite ease-in-out;
}

@keyframes bounceMini {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
}

/* Intro Screen New Mechanic Highlight Box */
.intro-new-mechanic-box {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.16) 0%, rgba(255, 94, 54, 0.12) 100%);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 16px;
    text-align: left;
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.25);
    animation: goldPulseBox 2s infinite alternate ease-in-out;
}

@keyframes goldPulseBox {
    0% { border-color: rgba(255, 209, 102, 0.6); box-shadow: 0 0 10px rgba(255, 209, 102, 0.2); }
    100% { border-color: rgba(255, 209, 102, 1); box-shadow: 0 0 22px rgba(255, 209, 102, 0.45); }
}

.mech-badge-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    color: #4A3500;
    background: var(--color-gold);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mech-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mech-card-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.mech-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mech-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #FFF;
}

.mech-card-desc {
    font-size: 12.5px;
    color: #E2E8F0;
    margin: 0;
    line-height: 1.4;
}

/* In-Game Real-Time Alert Banner (Callout) */
.gameplay-mechanic-callout {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 9999;
    width: 90%;
    max-width: 580px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.gameplay-mechanic-callout.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.callout-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    border: 2px solid var(--color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 209, 102, 0.35);
}

.gameplay-mechanic-callout.thief .callout-inner {
    border-color: #EF4444;
    background: rgba(26, 12, 16, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.55);
    animation: thiefAlertPulse 1.2s infinite alternate ease-in-out;
}

@keyframes thiefAlertPulse {
    0% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.7); }
    100% { box-shadow: 0 0 28px rgba(239, 68, 68, 0.9); border-color: rgba(239, 68, 68, 1); }
}

.gameplay-mechanic-callout.breakdown .callout-inner {
    border-color: #F59E0B;
    background: rgba(28, 20, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.5);
}

.gameplay-mechanic-callout.sink .callout-inner {
    border-color: #2EC4B6;
    background: rgba(10, 26, 26, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(46, 196, 182, 0.5);
}

.callout-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.callout-body {
    flex: 1;
    text-align: left;
}

.callout-title {
    font-size: 14px;
    font-weight: 900;
    color: #FFF;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.callout-desc {
    font-size: 12.5px;
    color: #E2E8F0;
    line-height: 1.35;
}

.callout-dismiss-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: #FFF;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.callout-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Interactive Tutorial Guidance Bar (Level 0) */
.tutorial-guide-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(78, 226, 213, 0.2) 0%, rgba(255, 209, 102, 0.15) 100%);
    border: 1.5px solid var(--color-mint);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    margin: 4px 16px 8px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: guideGlow 2s infinite alternate ease-in-out;
}

@keyframes guideGlow {
    0% { border-color: rgba(78, 226, 213, 0.5); }
    100% { border-color: rgba(78, 226, 213, 1); box-shadow: 0 0 14px var(--color-mint-glow); }
}

.tut-guide-step-badge {
    background: var(--color-mint);
    color: #033E39;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.tut-guide-text {
    font-size: 13px;
    font-weight: 700;
    color: #FFF;
    text-align: left;
    line-height: 1.4;
}

/* How to Play Tab 3: Mechanics Guide List */
.mechanics-guide-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.mech-guide-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.mech-guide-card:hover {
    transform: translateX(3px);
    border-color: rgba(255, 209, 102, 0.4);
}

.mech-guide-card.highlight-thief {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.08);
}

.mech-guide-card.highlight-thief:hover {
    border-color: rgba(239, 68, 68, 0.85);
}

.mech-guide-icon {
    font-size: 26px;
    line-height: 1;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
}

.mech-guide-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mech-guide-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #FFF;
}

.mech-guide-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.mech-guide-desc strong {
    color: #FFF;
}

/* ========================================================
   DISH-BY-DISH INTERACTIVE STEPPER GUIDE
======================================================== */
.dish-stepper-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
    scrollbar-width: thin;
}

.dish-stepper-nav::-webkit-scrollbar {
    height: 4px;
}

.dish-stepper-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

.dish-pill-btn {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dish-pill-btn:hover {
    color: #FFF;
    border-color: rgba(78, 226, 213, 0.4);
    background: rgba(78, 226, 213, 0.1);
    transform: translateY(-1px);
}

.dish-pill-btn.active {
    background: linear-gradient(135deg, #2EC4B6 0%, #1A7F77 100%);
    color: #FFF;
    border-color: #2EC4B6;
    box-shadow: 0 2px 10px rgba(46, 196, 182, 0.4);
}

.dish-guide-detail-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    backdrop-filter: blur(8px);
}

.dish-detail-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dish-hero-icon-box {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.2) 0%, rgba(0, 0, 0, 0.4) 80%);
    border: 1.5px solid rgba(255, 209, 102, 0.3);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dish-hero-icon-box svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.dish-hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dish-hero-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dish-hero-name {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #FFF;
    letter-spacing: 0.3px;
}

.dish-hero-badges {
    display: flex;
    gap: 6px;
}

.dish-badge {
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.dish-badge.price {
    background: rgba(255, 209, 102, 0.2);
    color: var(--color-gold);
    border: 1px solid rgba(255, 209, 102, 0.4);
}

.dish-badge.score {
    background: rgba(78, 226, 213, 0.18);
    color: var(--color-mint);
    border: 1px solid rgba(78, 226, 213, 0.35);
}

.dish-hero-diff {
    font-size: 11.5px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.dish-ingredients-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.dish-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    color: #E2E8F0;
}

.dish-tag-plus, .dish-tag-arrow {
    font-size: 11px;
    font-weight: 900;
    color: var(--color-gold);
}

.dish-steps-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dish-steps-header {
    font-size: 12px;
    font-weight: 900;
    color: var(--color-mint);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dish-steps-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dish-step-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    transition: all 0.15s ease;
}

.dish-step-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(78, 226, 213, 0.3);
}

.dish-step-badge {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-mint);
    color: #033E39;
    font-size: 12px;
    font-weight: 900;
    border-radius: 50%;
    margin-top: 1px;
}

.dish-step-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dish-step-action {
    font-size: 12.5px;
    font-weight: 800;
    color: #FFF;
}

.dish-step-desc {
    font-size: 11.5px;
    color: #CBD5E1;
    line-height: 1.35;
}

.dish-pro-tip-box {
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dish-pro-tip-header {
    font-size: 11px;
    font-weight: 900;
    color: var(--color-gold);
    letter-spacing: 0.5px;
}

.dish-pro-tip-text {
    font-size: 11.5px;
    color: #FEF3C7;
    line-height: 1.35;
}

.dish-stepper-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dish-stepper-indicator {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-text-muted);
}

.dish-nav-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
}

/* ========================================================
   MOBILE MODALS & OVERLAYS OPTIMIZATIONS
======================================================== */
@media (max-width: 640px), (max-height: 520px) {
    .modal-card {
        padding: 16px;
        max-width: 95vw;
        max-height: 92dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .modal-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .main-menu-logo {
        margin-bottom: 14px;
        gap: 4px;
    }

    .logo-icon {
        width: 52px;
        height: 52px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-subtext {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .menu-actions {
        gap: 10px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .levels-grid {
        gap: 8px;
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    }

    .level-card {
        padding: 8px;
    }

    .shop-items-container {
        max-height: 50vh;
        gap: 8px;
    }

    .shop-item-card {
        padding: 10px;
    }
}

/* ========================================================
   DIFFICULTY SELECTION MODAL & LEVEL SELECT DIFF BAR
======================================================== */
.diff-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin: 12px 0;
}

@media (max-width: 600px) {
    .diff-cards-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        max-height: 52vh;
        overflow-y: auto;
        padding-right: 4px;
    }
}

.diff-card-item {
    background: rgba(26, 33, 50, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s ease, box-shadow 0.18s ease, background 0.15s ease;
    position: relative;
    user-select: none;
}

.diff-card-item:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(35, 45, 68, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.diff-card-item:active {
    transform: scale(0.97);
}

.diff-card-item.active {
    border-color: var(--color-gold) !important;
    background: linear-gradient(180deg, rgba(46, 58, 88, 0.95) 0%, rgba(26, 33, 50, 0.98) 100%) !important;
    box-shadow: 0 0 24px rgba(255, 209, 102, 0.35), inset 0 0 16px rgba(255, 209, 102, 0.12) !important;
}

.diff-card-item.active::after {
    content: '✓ ĐÃ CHỌN';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 9px;
    font-weight: 900;
    color: #12151E;
    background: var(--color-gold);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.diff-card-icon {
    font-size: 28px;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.diff-card-badge {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #FFF;
    margin-bottom: 6px;
}

.diff-card-item[data-diff="easy"] .diff-card-badge { color: #34D399; }
.diff-card-item[data-diff="normal"] .diff-card-badge { color: var(--color-gold); }
.diff-card-item[data-diff="hard"] .diff-card-badge { color: #FB923C; }
.diff-card-item[data-diff="expert"] .diff-card-badge { color: #F43F5E; }

.diff-card-desc {
    font-size: 11px;
    line-height: 1.4;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    flex-grow: 1;
}

.diff-card-perks {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    letter-spacing: 0.3px;
}

/* Level Select Diff Bar */
.level-select-diff-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    margin-bottom: 14px;
}

.diff-bar-label {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.diff-bar-badge {
    font-size: 12px;
    font-weight: 900;
    color: var(--color-gold);
    letter-spacing: 0.5px;
}

.diff-bar-btn {
    background: rgba(255, 209, 102, 0.15);
    border: 1px solid rgba(255, 209, 102, 0.4);
    color: var(--color-gold);
    border-radius: var(--radius-full);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.diff-bar-btn:hover {
    background: var(--color-gold);
    color: #12151E;
}



