:root {
    --bg-cream: #FFFDF0;
    --card-bg: #FFFFFF;
    --border-black: #1E1E1E;
    --brand-pink: #FF758C;
    --brand-yellow: #FFD24C;
}

* { 
    box-sizing: border-box; 
    font-family: 'Montserrat', sans-serif; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent;
}

body { 
    background-color: var(--bg-cream);
    background-image: 
        radial-gradient(#FF758C 15%, transparent 16%),
        radial-gradient(#FFD24C 15%, transparent 16%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh;
    min-height: 100dvh; /* Динамична височина за iOS */
    padding: 0;
    overflow: hidden; /* Спира ненужния скрол */
}

.mobile-frame {
    background: transparent;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    height: 100dvh; /* Динамична височина */
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Header & Бутони в горната част */
.app-header {
    padding: 10px 15px 0px 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.left-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-btn {
    text-decoration: none; 
    color: #1E1E1E; 
    background-color: #f8729f; 
    border: 2px solid #1E1E1E; 
    border-radius: 12px; 
    padding: 6px 10px; 
    font-weight: 900; 
    font-size: 10px; 
    box-shadow: 2px 2px 0px #1E1E1E; 
    display: inline-block;
    cursor: pointer;
    text-align: center;
    transition: transform 0.1s ease;
}

.header-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #1E1E1E;
}

.menu-btn {
    background-color: var(--brand-yellow);
}

.lang-btn {
    background: var(--brand-yellow);
    border: 2px solid var(--border-black);
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: 2px 2px 0px var(--border-black);
    color: var(--border-black);
    font-weight: 900;
    font-size: 10px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.lang-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--border-black);
}

.app-body {
    padding: 5px 15px 15px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; /* Равномерно разпределение */
    flex-grow: 1;
}

.main-title { 
    font-size: 20px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: -0.5px; 
}

.notice-badge { 
    background: #FF0000; 
    color: #FFF;
    border: 2px solid var(--border-black); 
    border-radius: 10px; 
    padding: 6px 14px; 
    font-size: 11px; 
    font-weight: 800; 
    box-shadow: 2px 2px 0px var(--border-black);
}

.wheel-wrapper { 
    position: relative; 
    width: 72vw; 
    height: 72vw; 
    max-width: 290px; 
    max-height: 290px; 
    margin: 2px auto; 
    border-radius: 50%; 
    border: 4px solid var(--border-black); 
    box-shadow: 5px 5px 0px var(--border-black); 
    background: #FFF;
}

#pizzaWheelContainer {
    width: 100%; 
    height: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.15, 0.9, 0.2, 1);
}

#pizzaWheelImage { width: 100%; height: 100%; object-fit: cover; display: block; }

.wheel-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: var(--brand-pink);
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
    z-index: 30;
}

.pre-spin-container {
    width: 100%;
    max-width: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.misstop-input { 
    width: 100%; 
    padding: 10px; 
    border: 3px solid var(--border-black); 
    border-radius: 12px; 
    margin: 0; 
    font-weight: 700; 
    font-size: 12px;
    text-align: center;
}

.misstop-btn { 
    background: var(--brand-yellow); 
    border: 3px solid var(--border-black); 
    box-shadow: 3px 3px 0px var(--border-black); 
    border-radius: 50px; 
    padding: 12px 18px; 
    font-size: 16px; 
    font-weight: 900; 
    cursor: pointer; 
    width: 100%; 
}

.misstop-btn.secondary { background: #FFF; margin-top: 10px; width: 100%; }

.modal-overlay { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(3px);
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 100; 
    padding: 15px;
}

.modal-card { 
    background: var(--bg-cream); 
    border: 4px solid var(--border-black); 
    box-shadow: 6px 6px 0px var(--border-black); 
    border-radius: 24px; 
    padding: 22px 18px; 
    width: 100%; 
    max-width: 330px; 
    text-align: center; 
    position: relative;
}

.modal-card.menu-card {
    max-width: 405px;
    padding: 40px 10px;
}

.close-icon {
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--brand-pink);
    border: 2px solid var(--border-black);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-weight: 700;
    cursor: pointer;
}

.menu-modal-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 10px;
}

.menu-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#menuImage {
    width: 100%;
    max-height: 58vh;
    object-fit: contain;
    border: 3px solid var(--border-black);
    border-radius: 12px;
    background: #fff;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-yellow);
    border: 2px solid var(--border-black);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--border-black);
    z-index: 10;
}

#prevMenuBtn { left: -8px; }
#nextMenuBtn { right: -8px; }

.menu-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border: 1px solid var(--border-black);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--brand-pink);
    width: 12px;
    height: 12px;
}

.coupon-ticket { 
    background: #FFF; 
    border: 3px dashed var(--border-black); 
    border-radius: 14px; 
    padding: 12px; 
    margin-top: 10px; 
}

.ticket-header { font-size: 11px; font-weight: 800; color: var(--brand-pink); }
.ticket-prize { font-size: 18px; font-weight: 900; margin: 5px 0; }
.ticket-code { 
    background: var(--brand-yellow); 
    border: 2px solid var(--border-black); 
    padding: 6px; 
    font-size: 16px; 
    font-weight: 900; 
    letter-spacing: 2px; 
    border-radius: 8px; 
}
.ticket-note { font-size: 10px; margin-top: 5px; font-weight: 700; }

.ticket-details {
    margin: 8px 0;
    font-size: 11px;
    color: #333;
    text-align: center;
}

.ticket-details strong {
    color: #d9534f;
}

.ticket-terms {
    font-size: 9px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    background: #1E1E1E;
    color: #FFF;
    padding: 8px 12px;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-btn {
    background: var(--brand-yellow);
    border: none;
    padding: 6px 10px;
    font-weight: 900;
    font-size: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    white-space: nowrap;
}

.idle-spinning {
    animation: rotateContinuous 20s linear infinite;
}

@keyframes rotateContinuous {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.misstop-btn.disabled-btn {
    background-color: #A0A0A0 !important;
    color: #666666 !important;
    border-color: #4A4A4A !important;
    box-shadow: 2px 2px 0px #4A4A4A !important;
    cursor: not-allowed;
    opacity: 0.8;
}