/* =========================================================
   PLAY GAME SECTION (order confirmation screen)
========================================================= */

.tezmenu-oc-game-section {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(135deg, #fff6e8, #ffedd2) !important;
    border: 1px solid #f0dfc0 !important;
    border-radius: 16px !important;
    padding: 14px 14px !important;
    margin-bottom: 16px !important;
}

.tezmenu-oc-game-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(180,140,60,0.18) !important;
    flex-shrink: 0 !important;
}

.tezmenu-oc-game-copy {
    flex: 1 !important;
    min-width: 0 !important;
}

.tezmenu-oc-game-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #4a3626 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.tezmenu-oc-game-text {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #8a7458 !important;
    line-height: 1.3 !important;
    margin: 1px 0 0 !important;
}

.tezmenu-oc-game-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    background: #fff !important;
    color: #f4711f !important;
    border: 1.5px solid #f4711f !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 9px 14px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.tezmenu-oc-game-btn:hover,
.tezmenu-oc-game-btn:focus {
    background: #fff7f0 !important;
    color: #f4711f !important;
}

.tezmenu-oc-game-btn:active {
    transform: scale(0.98);
}

.tezmenu-oc-game-btn svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
}

/* =========================================================
   GAME OVERLAY — premium restaurant theme
========================================================= */

.tezmenu-game-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999999;
    background: #fbf1e6;
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

/* ===== Top bar ===== */

.tezmenu-game-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
    flex-shrink: 0;
}

.tezmenu-game-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    flex-shrink: 0;
}

.tezmenu-game-logo-tez {
    font-size: 17px;
    font-weight: 900;
    color: #f4711f;
    letter-spacing: .5px;
}

.tezmenu-game-logo-menu {
    font-size: 10.5px;
    font-weight: 800;
    color: #4a3626;
    letter-spacing: .5px;
    white-space: nowrap;
}

.tezmenu-game-hud {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #f0e0cc;
    border-radius: 14px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(120,80,30,0.08);
}

.tezmenu-game-hud-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tezmenu-game-hud-label {
    font-size: 10px;
    font-weight: 800;
    color: #9a8a76;
    letter-spacing: .4px;
}

.tezmenu-game-hud-value {
    font-size: 17px;
    font-weight: 900;
    color: #3a2c1e;
}

.tezmenu-game-hud-score { color: #f4911f; }

.tezmenu-game-coin-icon { font-size: 15px; }

.tezmenu-game-hud-divider {
    width: 1px;
    height: 20px;
    background: #eee0cc;
}

.tezmenu-game-round-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1.5px solid #f0e0cc !important;
    color: #4a3626 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
    box-shadow: 0 2px 8px rgba(120,80,30,0.08) !important;
}

.tezmenu-game-round-btn svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex-shrink: 0 !important;
}
.tezmenu-game-mute-icon { font-size: 18px; line-height: 1; }

/* ===== Kitchen backdrop + canvas ===== */

.tezmenu-game-canvas-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    margin: 0 10px 10px;
    border-radius: 20px;
    overflow: hidden;
    touch-action: none;
    background-image: linear-gradient(rgba(0,0,0,0.24), rgba(0,0,0,0.24)), url('../images/order-game-bg.jpg');
    background-size: cover, cover;
    background-position: center center, center center;
    background-color: #4a2d19;
    box-shadow: inset 0 0 0 1px rgba(120,80,30,0.08);
}

.tezmenu-game-canvas-wrap.tezmenu-game-shake {
    animation: tezmenu-game-shake-kf 0.4s ease;
}

@keyframes tezmenu-game-shake-kf {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-6px, 2px); }
    40% { transform: translate(5px, -2px); }
    60% { transform: translate(-4px, 1px); }
    80% { transform: translate(3px, -1px); }
}

#tezmenu-game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    position: relative;
    z-index: 2;
}

/* ===== Tap hint ===== */

.tezmenu-game-tap-hint {
    position: absolute;
    top: 16%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.tezmenu-game-tap-hint-pill {
    background: rgba(58,44,30,0.88);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    animation: tezmenu-game-hint-pulse 1.6s ease-in-out infinite;
}

.tezmenu-game-tap-hint-icon {
    font-size: 22px;
    animation: tezmenu-game-hint-bounce 1.1s ease-in-out infinite;
}

@keyframes tezmenu-game-hint-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes tezmenu-game-hint-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===== Pause overlay ===== */

.tezmenu-game-pause-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,20,10,0.45);
}

.tezmenu-game-pause-card {
    background: #fffaf3;
    border-radius: 20px;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    min-width: 220px;
}

.tezmenu-game-pause-title {
    font-size: 19px;
    font-weight: 900;
    color: #3a2c1e;
    margin-bottom: 4px;
}

/* ===== Shared buttons ===== */

.tezmenu-game-primary-btn {
    width: 100%;
    background: linear-gradient(180deg, #ff9d3d, #f4711f);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 800;
    padding: 13px 30px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 16px rgba(244,113,31,0.35);
}

.tezmenu-game-secondary-btn {
    width: 100%;
    background: none;
    color: #8a7a66;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Game over ===== */

.tezmenu-game-over {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,20,10,0.5);
}

.tezmenu-game-over-card {
    background: #fffaf3;
    border-radius: 22px;
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    box-shadow: 0 14px 44px rgba(0,0,0,0.28);
    animation: tezmenu-game-over-pop 0.35s cubic-bezier(.34,1.56,.64,1);
}

@keyframes tezmenu-game-over-pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.tezmenu-game-over-title {
    font-size: 23px;
    font-weight: 900;
    color: #d64545;
    letter-spacing: .5px;
}

.tezmenu-game-new-best {
    background: linear-gradient(90deg, #ffcf6b, #f4911f);
    color: #4a2d19;
    font-size: 13px;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 4px;
    animation: tezmenu-game-new-best-pop 0.5s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 4px 12px rgba(244,145,31,0.4);
}

@keyframes tezmenu-game-new-best-pop {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.tezmenu-game-over-stats {
    display: flex;
    gap: 24px;
    margin: 6px 0;
}

.tezmenu-game-over-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tezmenu-game-over-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #9a8a76;
}

.tezmenu-game-over-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: #3a2c1e;
}

.tezmenu-game-over-best {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff2df;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 800;
    color: #a9741f;
    margin-bottom: 8px;
}

/* ===== Bottom bar ===== */

.tezmenu-game-bottombar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 14px 16px;
    flex-shrink: 0;
}

.tezmenu-game-bottombar-spacer {
    width: 40px;
    flex-shrink: 0;
}

.tezmenu-game-best-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #3a2c1e;
    color: #fff;
    border-radius: 999px;
    padding: 10px 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.tezmenu-game-best-trophy { font-size: 15px; }
.tezmenu-game-best-label { font-size: 11px; font-weight: 700; color: #c9b89e; }
.tezmenu-game-best-value { font-size: 16px; font-weight: 900; color: #ffcf6b; }
