/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-brown: #5D4037;
    --light-brown: #A1887F;
    --cream: #FFF8F0;
    --dark-cream: #F5E6D8;
    --white: #ffffff;
    --dark: #3E2723;
    --accent: #FFAB91;
    --accent-warm: #FF8A65;
    --accent-cool: #90CAF9;
    --shadow: rgba(62, 39, 35, 0.15);
    --shadow-strong: rgba(62, 39, 35, 0.25);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, var(--dark-cream) 100%);
    height: 100vh;
    overflow: hidden;
    color: var(--dark);
    position: relative;
}

/* Background Decorative Coffee Beans */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.coffee-bean-bg {
    position: absolute;
    opacity: 0.15;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Yavaş yüzen animasyon */
@keyframes floatBean {
    0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-8px) rotate(calc(var(--rotate, 0deg) + 5deg)); }
}

.coffee-bean-bg:nth-child(odd) {
    animation: floatBean 6s ease-in-out infinite;
}

.coffee-bean-bg:nth-child(even) {
    animation: floatBean 8s ease-in-out infinite reverse;
}

/* Farklı boyutlar, pozisyonlar ve animasyon gecikmeleri */
.coffee-bean-bg:nth-child(1) { top: 5%; left: 3%; width: 45px; --rotate: -15deg; animation-delay: 0s; }
.coffee-bean-bg:nth-child(2) { top: 12%; right: 5%; width: 35px; opacity: 0.12; --rotate: 25deg; animation-delay: -1s; }
.coffee-bean-bg:nth-child(3) { top: 35%; left: 2%; width: 30px; opacity: 0.1; --rotate: -45deg; animation-delay: -2s; }
.coffee-bean-bg:nth-child(4) { top: 60%; right: 3%; width: 40px; --rotate: 10deg; animation-delay: -3s; }
.coffee-bean-bg:nth-child(5) { bottom: 15%; left: 4%; width: 38px; opacity: 0.12; --rotate: 35deg; animation-delay: -1.5s; }
.coffee-bean-bg:nth-child(6) { bottom: 8%; right: 6%; width: 32px; opacity: 0.1; --rotate: -25deg; animation-delay: -2.5s; }
.coffee-bean-bg:nth-child(7) { top: 25%; right: 2%; width: 28px; opacity: 0.08; --rotate: 60deg; animation-delay: -0.5s; }
.coffee-bean-bg:nth-child(8) { bottom: 35%; left: 1%; width: 25px; opacity: 0.08; --rotate: -60deg; animation-delay: -3.5s; }

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 30px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
.header {
    text-align: center;
    padding: 8px 15px;
    flex-shrink: 0;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-brown);
    text-shadow: 2px 2px 4px var(--shadow);
    letter-spacing: 2px;
    display: inline-block;
}

/* Kahve Çekirdeği O harfleri - Sadece son 2 O */
.coffee-bean {
    display: inline-block;
    position: relative;
    width: 45px;
    height: 55px;
    background: radial-gradient(ellipse at 35% 35%,
        #a67c52 0%,
        #8b5a2b 25%,
        #5c3d2e 50%,
        #3d2817 75%,
        #2d1810 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 0 3px;
    vertical-align: middle;
    box-shadow:
        inset -4px -4px 8px rgba(0,0,0,0.5),
        inset 3px 3px 6px rgba(255,255,255,0.15),
        3px 4px 8px rgba(0,0,0,0.4);
    text-indent: -9999px;
    overflow: hidden;
}

/* Kahve çekirdeği ortasındaki çizgi */
.coffee-bean::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 38px;
    background: linear-gradient(to bottom,
        transparent 0%,
        #1a0f0a 15%,
        #0d0705 50%,
        #1a0f0a 85%,
        transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(0,0,0,0.6);
}

/* Parlaklık efekti */
.coffee-bean::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 8px;
    width: 12px;
    height: 12px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.5) 0%, transparent 70%);
    border-radius: 50%;
}

/* İlk çekirdek */
.logo .coffee-bean:nth-of-type(1) {
    transform: rotate(-12deg);
}

/* İkinci çekirdek */
.logo .coffee-bean:nth-of-type(2) {
    transform: rotate(8deg);
}

.tagline {
    font-size: 1.1rem;
    color: var(--light-brown);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    opacity: 0.5;
    white-space: nowrap;
    font-family: 'Georgia', 'Times New Roman', serif;
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    animation: wave-text 3s ease-in-out infinite;
}

@keyframes wave-text {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(-1deg);
    }
    25% {
        transform: translateX(-50%) translateY(-3px) rotate(0.5deg);
    }
    50% {
        transform: translateX(-50%) translateY(0) rotate(1deg);
    }
    75% {
        transform: translateX(-50%) translateY(3px) rotate(-0.5deg);
    }
}

/* ===== Sound Toggle Button ===== */
.sound-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 3px 12px var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.sound-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px var(--shadow);
}

.sound-toggle:active {
    transform: scale(0.95);
}

.sound-icon {
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

.sound-icon.sound-off {
    display: none;
}

/* Ses kapalıyken */
.sound-toggle.muted .sound-icon.sound-on {
    display: none;
}

.sound-toggle.muted .sound-icon.sound-off {
    display: block;
}

.sound-toggle.muted {
    background: var(--dark-cream);
}

/* ===== Main Content ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 10px 40px;
    max-width: 1600px;
    margin: 0 auto;
    flex: 1;
    min-height: 0;
    width: 100%;
}

/* 1280px altında: Mobil görünüm - tek sütun, view switching */
@media (max-width: 1279px) {
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 10px 20px;
        flex: 1;
    }

    /* Mobil View States - Başlangıçta seçim paneli görünür */
    .main-content .animation-area {
        display: none;
    }

    .main-content .selection-panel {
        display: flex;
    }

    /* Animasyon gösterildiğinde */
    .main-content.show-animation .selection-panel {
        display: none;
    }

    .main-content.show-animation .animation-area {
        display: flex;
        flex: 1;
    }
}

/* ===== Selection Panel ===== */
.selection-panel {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px var(--shadow), 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.selection-group {
    margin-bottom: 15px;
}

.selection-group.coffee-selection {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.selection-group.coffee-selection .coffee-types {
    flex: 1;
    overflow-y: auto;
    align-content: start;
}

.selection-group.size-selection {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.selection-group h2 {
    font-size: 0.9rem;
    color: var(--primary-brown);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

/* ===== Temperature Toggle ===== */
.temp-selection {
    margin-bottom: 30px !important;
}

.temp-toggle {
    display: flex;
    gap: 12px;
    background: transparent;
    padding: 0;
}

.temp-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-brown);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.temp-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.temp-btn.selected {
    transform: translateY(-1px);
}

.temp-btn.selected[data-temp="hot"] {
    background: linear-gradient(135deg, #FF7043 0%, #F4511E 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(244, 81, 30, 0.35);
}

.temp-btn.selected[data-temp="iced"] {
    background: linear-gradient(135deg, #4FC3F7 0%, #03A9F4 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(3, 169, 244, 0.35);
}

.temp-icon {
    font-size: 1rem;
}

/* ===== Category Tabs ===== */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: var(--white);
    color: var(--primary-brown);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.category-tab:hover {
    background: var(--cream);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-tab.active {
    background: linear-gradient(135deg, #5D4037 0%, #795548 100%);
    color: var(--white);
    box-shadow: 0 3px 12px rgba(93, 64, 55, 0.35);
}

/* Coffee Type Buttons */
.coffee-types {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding-right: 5px;
}

.coffee-types::-webkit-scrollbar {
    width: 6px;
}

.coffee-types::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 3px;
}

.coffee-types::-webkit-scrollbar-thumb {
    background: var(--light-brown);
    border-radius: 3px;
}

.coffee-btn.unavailable {
    opacity: 0.4;
    pointer-events: none;
}

.coffee-btn .unavailable-badge {
    display: none;
    font-size: 0.65rem;
    color: #999;
    margin-top: 2px;
}

.coffee-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: none;
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 90px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}

.coffee-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
}

.coffee-btn.selected {
    background: linear-gradient(145deg, #FFF8F0 0%, #FFE0B2 100%);
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.2), 0 2px 6px rgba(0,0,0,0.06);
}

.coffee-icon {
    font-size: 1.4rem;
    margin-bottom: 3px;
}

.coffee-icon-svg {
    width: 45px;
    height: 54px;
    min-width: 45px;
    min-height: 54px;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.coffee-btn:hover .coffee-icon-svg {
    transform: scale(1.05);
}

.coffee-btn.selected .coffee-icon-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(139, 90, 43, 0.3));
}

.coffee-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-brown);
}

/* ===== Size & Extras Row ===== */
.size-extras-row {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.size-extras-row .size-selection {
    flex: 1;
    margin-bottom: 0 !important;
    padding-right: 15px;
    border-right: 1px solid rgba(93, 64, 55, 0.1);
}

.size-extras-row .extras-selection {
    flex: 1;
    margin-bottom: 0 !important;
    padding-left: 15px;
}

/* ===== Extras Selection ===== */
.extras-selection {
    margin-bottom: 12px !important;
    flex-shrink: 0;
}

.extras-selection h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.extras-hint {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--light-brown);
    opacity: 0.8;
}

.extras-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.extras-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.extras-row.ice-row {
    display: none;
}

.extras-row.ice-row.visible {
    display: flex;
}

/* Straw Selection - içerde ekstralar gibi */
.straw-selection {
    display: none;
}

.straw-selection.visible {
    display: flex;
}

/* Straw row - single line like syrup */
.extras-row.straw-row .extras-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
}

/* Straw Color Buttons - syrup gibi küçük */
.extras-row.straw-row .straw-color-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    font-size: 0.65rem;
    white-space: nowrap;
}

.extras-row.straw-row .straw-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.15);
}

.straw-color-btn.selected {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE0B2 100%);
    color: var(--primary-brown);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.25);
}

.straw-color-btn.selected .straw-color-dot {
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2), 0 0 0 2px var(--accent);
}

.extras-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--light-brown);
    min-width: 55px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.extras-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.extras-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.extra-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    background: var(--white);
    color: var(--primary-brown);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.extra-btn:hover {
    background: var(--cream);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.extra-btn.selected {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--light-brown) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(93, 64, 55, 0.3);
}

/* Syrup buttons - toggle style */
.syrup-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
}

.syrup-btn .syrup-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

.syrup-btn.selected {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE0B2 100%);
    color: var(--primary-brown);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.25);
}

.syrup-btn.selected .syrup-color {
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2), 0 0 0 2px var(--accent);
}

/* Syrup row - single line */
.extras-row.syrup-row .extras-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
}

.extras-row.syrup-row .syrup-btn {
    padding: 5px 8px;
    font-size: 0.65rem;
    white-space: nowrap;
}

.extras-row.syrup-row .syrup-color {
    width: 10px;
    height: 10px;
}

/* Size Buttons */
.size-options {
    display: flex;
    gap: 12px;
    width: 100%;
}

.size-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(93, 64, 55, 0.1);
    border-radius: 14px;
    background: var(--cream);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.size-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
}

.size-btn.selected {
    background: linear-gradient(145deg, #FFF8F0 0%, #FFE0B2 100%);
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.2), 0 2px 6px rgba(0,0,0,0.06);
}

.cup-svg {
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.cup-svg.small {
    width: 36px;
    height: 45px;
}

.cup-svg.medium {
    width: 42px;
    height: 55px;
}

.cup-svg.large {
    width: 48px;
    height: 65px;
}

.size-btn:hover .cup-svg {
    transform: scale(1.05);
}

.size-btn.selected .cup-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(139, 90, 43, 0.3));
}

.size-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-brown);
}

.size-ml {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--light-brown);
    margin-top: 2px;
}

/* Brew Controls */
.brew-controls {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    flex-shrink: 0;
}

/* Brew Button */
.brew-btn {
    width: 85px;
    height: 85px;
    padding: 10px;
    border: 4px solid #5D4037;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #A1887F 0%, #8D6E63 40%, #6D4C41 100%);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 6px 0 #4E342E,
        0 8px 15px rgba(62, 39, 35, 0.5),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2),
        inset 0 3px 8px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Restart Button */
.restart-btn {
    width: 50px;
    height: 50px;
    padding: 8px;
    border: 3px solid #5D4037;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #A1887F 0%, #8D6E63 40%, #6D4C41 100%);
    color: var(--white);
    font-size: 0.45rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow:
        0 4px 0 #4E342E,
        0 6px 10px rgba(62, 39, 35, 0.4),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2),
        inset 0 2px 6px rgba(255, 255, 255, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.restart-btn.visible {
    display: flex;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #4E342E,
        0 8px 15px rgba(62, 39, 35, 0.5),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2),
        inset 0 2px 6px rgba(255, 255, 255, 0.15);
    background: radial-gradient(circle at 30% 30%, #B0978D 0%, #9D7B6F 40%, #7D5C50 100%);
}

.restart-btn:active {
    transform: translateY(3px);
    box-shadow:
        0 1px 0 #4E342E,
        0 2px 5px rgba(62, 39, 35, 0.4),
        inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.brew-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 8px 0 #4E342E,
        0 12px 20px rgba(62, 39, 35, 0.5),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2),
        inset 0 3px 8px rgba(255, 255, 255, 0.15);
    background:
        radial-gradient(circle at 30% 30%, #B0978D 0%, #9D7B6F 40%, #7D5C50 100%);
}

.brew-btn:disabled,
.brew-btn.not-ready {
    background: radial-gradient(circle at 30% 30%, #D7CCC8 0%, #BCAAA4 40%, #A1887F 100%);
    border-color: #A1887F;
    cursor: pointer;
    box-shadow:
        0 4px 0 #8D7B73,
        0 6px 10px rgba(0, 0, 0, 0.2),
        inset 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.brew-btn:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow:
        0 2px 0 #4E342E,
        0 3px 8px rgba(62, 39, 35, 0.4),
        inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Brew Button States */
.brew-btn.playing {
    background: radial-gradient(circle at 30% 30%, #FFD54F 0%, #FFB74D 40%, #FF9800 100%);
    border-color: #E65100;
    box-shadow:
        0 6px 0 #E65100,
        0 8px 15px rgba(230, 81, 0, 0.4),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2),
        inset 0 3px 8px rgba(255, 255, 255, 0.2);
}

.brew-btn.playing:hover:not(:disabled) {
    background: radial-gradient(circle at 30% 30%, #FFE082 0%, #FFC107 40%, #FFA000 100%);
}

.brew-btn.paused {
    background: radial-gradient(circle at 30% 30%, #A5D6A7 0%, #81C784 40%, #4CAF50 100%);
    border-color: #2E7D32;
    animation: pulse-btn 1.5s ease-in-out infinite;
    box-shadow:
        0 6px 0 #2E7D32,
        0 8px 15px rgba(46, 125, 50, 0.4),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2),
        inset 0 3px 8px rgba(255, 255, 255, 0.2);
}

.brew-btn.paused:hover:not(:disabled) {
    background: radial-gradient(circle at 30% 30%, #C8E6C9 0%, #A5D6A7 40%, #66BB6A 100%);
}

.brew-btn.completed {
    background: radial-gradient(circle at 30% 30%, #FFAB91 0%, #FF8A65 40%, #6D4C41 100%);
    border-color: #4E342E;
    box-shadow:
        0 6px 0 #3E2723,
        0 8px 15px rgba(62, 39, 35, 0.4),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2),
        inset 0 3px 8px rgba(255, 255, 255, 0.15);
}

@keyframes pulse-btn {
    0%, 100% {
        box-shadow:
            0 6px 0 #2E7D32,
            0 8px 15px rgba(46, 125, 50, 0.4),
            inset 0 -3px 8px rgba(0, 0, 0, 0.2),
            inset 0 3px 8px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 6px 0 #2E7D32,
            0 12px 25px rgba(46, 125, 50, 0.6),
            inset 0 -3px 8px rgba(0, 0, 0, 0.2),
            inset 0 3px 8px rgba(255, 255, 255, 0.3);
    }
}

/* ===== Animation Area ===== */
.animation-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--white) 0%, #FAFAFA 100%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px var(--shadow), 0 2px 8px rgba(0,0,0,0.04);
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.cup-container {
    position: relative;
    width: 280px;
    height: 360px;
}

.coffee-cup {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

/* Cup Size Variations */
.cup-container.small .coffee-cup {
    transform: scale(0.7);
}

.cup-container.medium .coffee-cup {
    transform: scale(0.85);
}

.cup-container.large .coffee-cup {
    transform: scale(1);
}

/* Layer Animations */
.layer {
    transition: all 0.8s ease-out;
}

/* Pour Animation */
.pour-animation {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 80px;
    opacity: 0;
    pointer-events: none;
}

.pour-stream {
    width: 8px;
    height: 0;
    background: linear-gradient(to bottom, #4a2c2a, #2d1810);
    margin: 0 auto;
    border-radius: 4px;
    transition: height 0.3s ease;
}

.pour-animation.active {
    opacity: 1;
}

.pour-animation.active .pour-stream {
    height: 80px;
    animation: pour-flow 0.5s ease-in-out infinite;
}

.pour-animation.milk .pour-stream {
    background: linear-gradient(to bottom, #fff8e7, #f5e6d3);
}

.pour-animation.chocolate .pour-stream {
    background: linear-gradient(to bottom, #5c3d2e, #3d2817);
    width: 5px;
}

.pour-animation.syrup .pour-stream {
    background: linear-gradient(to bottom, #D4A04A, #B8860B);
    width: 4px;
}

@keyframes pour-flow {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.3);
    }
}

/* Steam Animation */
.steam-container {
    transition: opacity 0.5s ease;
}

.steam {
    animation: steam-rise 2s ease-in-out infinite;
    opacity: 0.6;
}

.steam-1 {
    animation-delay: 0s;
}

.steam-2 {
    animation-delay: 0.5s;
}

.steam-3 {
    animation-delay: 1s;
}

@keyframes steam-rise {
    0% {
        opacity: 0;
        transform: translateY(0) scaleY(0.5);
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scaleY(1);
    }
}

/* Pouring Info */
.pouring-info {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.9), rgba(141, 110, 99, 0.9));
    padding: 5px 12px;
    border-radius: 15px;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    white-space: nowrap;
    z-index: 10;
}

.pouring-info.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pouring-label {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.9;
    display: inline;
}

.pouring-amount {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline;
    margin-left: 4px;
}

/* Animation Status */
.animation-status {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.status-text {
    font-size: 1rem;
    color: var(--light-brown);
    margin-bottom: 15px;
    min-height: 24px;
}

/* ===== Stir Button ===== */
.stir-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    margin: 10px auto 15px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #8D6E63 0%, #A1887F 50%, #BCAAA4 100%);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(109, 76, 65, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stir-btn:hover {
    background: linear-gradient(135deg, #6D4C41 0%, #8D6E63 50%, #A1887F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(109, 76, 65, 0.35);
}

.stir-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(109, 76, 65, 0.2);
}

.stir-btn .stir-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.stir-btn:hover .stir-icon {
    transform: rotate(-20deg);
}

.stir-btn.stirring .stir-icon {
    animation: stirAnimation 0.3s ease-in-out infinite alternate;
}

@keyframes stirAnimation {
    0% { transform: rotate(-30deg); }
    100% { transform: rotate(30deg); }
}

.stir-btn.stirred {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #81C784 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* ===== Step Timeline ===== */
.step-timeline {
    width: 100%;
    margin-top: 25px;
    padding: 0 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.step-timeline.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.timeline-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0.3) 100%);
    background-color: var(--dark-cream);
    border-radius: 3px;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6D4C41 0%, #8D6E63 50%, #C9A86C 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 1px 3px rgba(109, 76, 65, 0.4);
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #A5D6A7 0%, #81C784 50%, #66BB6A 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1B5E20;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.step-dot svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.step-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 108, 0.4) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: -1;
}

.timeline-step.active .step-dot {
    background: linear-gradient(145deg, #C9A86C 0%, #B8956A 100%);
    color: var(--white);
    transform: scale(1.15);
    box-shadow:
        0 4px 15px rgba(201, 168, 108, 0.5),
        0 2px 6px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.timeline-step.active .step-dot svg {
    transform: scale(1.1);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.timeline-step.active .step-dot::before {
    opacity: 1;
    transform: scale(1.5);
    animation: pulse-ring 1.5s ease-out infinite;
}

.timeline-step.completed .step-dot {
    background: linear-gradient(145deg, #81C784 0%, #66BB6A 50%, #4CAF50 100%);
    border: none;
    color: #1B5E20;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.timeline-step.completed .step-dot svg {
    opacity: 1;
    filter: none;
}

.timeline-step.completed .step-dot::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.step-label {
    font-size: 0.7rem;
    color: var(--light-brown);
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 65px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.timeline-step.active .step-label {
    color: var(--primary-brown);
    font-weight: 600;
    transform: scale(1.05);
}

.timeline-step.completed .step-label {
    color: var(--primary-brown);
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===== Recipe Tab (Corner Flap) ===== */
.recipe-tab {
    position: absolute;
    top: 20px;
    right: -15px;
    background: linear-gradient(135deg, var(--primary-brown), var(--light-brown));
    color: var(--white);
    padding: 12px 20px 12px 15px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: -3px 3px 10px var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.recipe-tab.visible {
    opacity: 1;
    pointer-events: auto;
    right: 0;
}

.recipe-tab:hover {
    padding-right: 25px;
    background: linear-gradient(135deg, var(--light-brown), var(--accent));
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Recipe Panel (Slide from Right) ===== */
.recipe-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: var(--white);
    border-radius: 0 20px 20px 0;
    box-shadow: -5px 0 30px var(--shadow);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.recipe-panel.open {
    transform: translateX(0);
}

.recipe-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary-brown), var(--light-brown));
    color: var(--white);
}

.recipe-panel-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.close-recipe {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-recipe:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.recipe-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

/* Modern Thin Scrollbar */
.recipe-panel-content::-webkit-scrollbar {
    width: 6px;
}

.recipe-panel-content::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 3px;
}

.recipe-panel-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--light-brown), var(--accent));
    border-radius: 3px;
}

.recipe-panel-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-brown), var(--light-brown));
}

.ingredients h4,
.steps h4 {
    font-size: 1.1rem;
    color: var(--light-brown);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ingredients h4::before {
    content: '🧾';
}

.steps h4::before {
    content: '👨‍🍳';
}

/* Recipe Image - Koyu arka plan için kahve içeriği belirgin */
.recipe-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #5D4037 0%, #3E2723 100%);
    border-radius: 12px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.1);
}

.recipe-cup-svg {
    width: 100px;
    height: 120px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.ingredients {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--dark-cream);
}

.ingredients ul {
    list-style: none;
}

.ingredients li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--dark);
    border-bottom: 1px solid var(--cream);
}

.ingredients li:last-child {
    border-bottom: none;
}

.ingredients li::before {
    content: "☕";
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.steps ol {
    list-style: none;
    counter-reset: step-counter;
}

.steps li {
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    color: var(--dark);
    line-height: 1.6;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 0;
}

.steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-brown), var(--light-brown));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Active step highlight in recipe */
.steps li.active-step {
    background: linear-gradient(90deg, rgba(201, 168, 108, 0.15), transparent);
    padding-left: 45px;
    margin-left: -5px;
}

.steps li.active-step::before {
    background: linear-gradient(135deg, var(--accent), #d4a84b);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(201, 168, 108, 0.3);
}

.steps li.completed-step {
    opacity: 0.6;
}

.steps li.completed-step::before {
    background: var(--light-brown);
}

@media (max-width: 600px) {
    .recipe-panel {
        width: 100%;
        border-radius: 20px 20px 0 0;
        height: 70%;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
    }

    .recipe-panel.open {
        transform: translateY(0);
    }
}

/* ===== Responsive Mobile (1280px altı) ===== */
@media (max-width: 1279px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .container {
        padding: 10px 20px;
        height: auto;
        min-height: 100vh;
        max-width: 800px;
        margin: 0 auto;
    }

    .header {
        padding: 10px;
    }

    .logo {
        font-size: 2.8rem;
    }

    .coffee-bean {
        width: 38px;
        height: 46px;
    }

    .coffee-bean::before {
        height: 30px;
        top: 7px;
    }

    .tagline {
        font-size: 0.8rem;
        position: static;
        transform: none;
        margin: 5px 0;
        animation: wave-text-mobile 3s ease-in-out infinite;
    }

    @keyframes wave-text-mobile {
        0%, 100% {
            transform: translateY(0) rotate(-0.5deg);
        }
        50% {
            transform: translateY(2px) rotate(0.5deg);
        }
    }

    /* Sound Toggle Mobile */
    .sound-toggle {
        width: 34px;
        height: 34px;
        top: 10px;
        right: 15px;
    }

    .sound-icon {
        font-size: 1rem;
    }

    .selection-panel {
        padding: 25px;
        border-radius: 18px;
        width: 100%;
    }

    .coffee-types {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }

    .brew-btn {
        width: 80px;
        height: 80px;
    }

    .restart-btn {
        width: 45px;
        height: 45px;
    }

    .selection-group {
        margin-bottom: 20px;
    }

    .selection-group h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .coffee-types {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .coffee-btn {
        padding: 8px 4px;
    }

    .coffee-icon {
        font-size: 1rem;
    }

    .coffee-icon-svg {
        width: 28px;
        height: 34px;
    }

    .coffee-name {
        font-size: 0.5rem;
    }

    .size-options {
        gap: 6px;
    }

    .size-btn {
        padding: 6px 10px;
        flex: 1;
    }

    /* Size & Extras Mobile */
    .size-extras-row {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }

    .size-extras-row .size-selection {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
        border-right: none;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(93, 64, 55, 0.15);
    }

    .size-extras-row .extras-selection {
        width: 100%;
        padding-left: 0;
    }

    /* Extras Mobile */
    .extras-selection {
        margin-bottom: 15px !important;
    }

    .extras-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .extras-label {
        font-size: 0.75rem;
        min-width: auto;
    }

    .extras-options {
        width: 100%;
    }

    .extra-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .syrup-btn {
        padding: 5px 8px;
        font-size: 0.65rem;
    }

    .syrup-btn .syrup-color {
        width: 10px;
        height: 10px;
    }

    .straw-color-btn {
        padding: 5px 8px;
        font-size: 0.65rem;
    }

    .straw-color-btn .straw-color-dot {
        width: 10px;
        height: 10px;
    }

    .cup-icon.small {
        width: 10px;
        height: 12px;
    }

    .cup-icon.medium {
        width: 12px;
        height: 16px;
    }

    .cup-icon.large {
        width: 14px;
        height: 20px;
    }

    .size-name {
        font-size: 0.65rem;
    }

    .size-ml {
        font-size: 0.55rem;
    }

    .brew-btn {
        width: 70px;
        height: 70px;
        padding: 8px;
        font-size: 0.6rem;
    }

    /* Animation Area Mobile */
    .animation-area {
        min-height: 450px;
        padding: 25px 20px;
        border-radius: 15px;
        position: relative;
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .cup-container {
        width: 240px;
        height: 310px;
    }

    /* Back Button for Mobile */
    .back-btn {
        position: absolute;
        top: 12px;
        left: 12px;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 6px 10px;
        background: var(--white);
        border: none;
        border-radius: 8px;
        color: var(--primary-brown);
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 2px 10px rgba(45, 24, 16, 0.15);
    }

    .back-btn:hover,
    .back-btn:active {
        background: var(--cream);
        box-shadow: 0 3px 12px rgba(45, 24, 16, 0.25);
    }

    .back-btn .back-icon {
        font-size: 0.9rem;
    }

    /* Timeline Mobile */
    .step-timeline {
        margin-top: 15px;
    }

    .step-dot {
        width: 30px;
        height: 30px;
        font-size: 0.65rem;
    }

    .step-dot svg {
        width: 14px;
        height: 14px;
    }

    .timeline-step.completed .step-dot::after {
        width: 12px;
        height: 12px;
        font-size: 0.5rem;
        bottom: -1px;
        right: -1px;
    }

    .step-label {
        font-size: 0.6rem;
        max-width: 50px;
    }

    /* Pouring Info Mobile */
    .pouring-info {
        padding: 4px 10px;
        top: 3px;
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
    }

    .pouring-info.visible {
        transform: translateX(-50%) translateY(0);
    }

    .pouring-label {
        font-size: 0.6rem;
    }

    .pouring-amount {
        font-size: 0.7rem;
    }

    /* Recipe Tab Mobile */
    .recipe-tab {
        top: 15px;
        padding: 10px 15px 10px 12px;
    }

    .tab-icon {
        font-size: 1rem;
    }

    .tab-text {
        font-size: 0.8rem;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        max-width: 700px;
    }

    .logo {
        font-size: 2.5rem;
    }

    .coffee-types {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .coffee-icon-svg {
        width: 32px;
        height: 38px;
    }

    .coffee-name {
        font-size: 0.55rem;
    }
}

/* Small tablet / Large mobile (600px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 10px 15px;
    }

    .logo {
        font-size: 2.2rem;
    }

    .coffee-bean {
        width: 32px;
        height: 38px;
    }

    .coffee-types {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .coffee-icon-svg {
        width: 28px;
        height: 34px;
    }

    .coffee-name {
        font-size: 0.5rem;
    }

    .brew-btn {
        width: 70px;
        height: 70px;
        font-size: 0.55rem;
    }

    .restart-btn {
        width: 40px;
        height: 40px;
        font-size: 0.4rem;
    }

    .cup-container {
        width: 220px;
        height: 280px;
    }
}

/* Small mobile (480px - 599px) */
@media (max-width: 599px) {
    .container {
        padding: 8px 12px;
    }

    .logo {
        font-size: 2rem;
    }

    .coffee-bean {
        width: 28px;
        height: 34px;
    }

    .coffee-types {
        grid-template-columns: repeat(4, 1fr);
    }

    .coffee-btn {
        padding: 6px 4px;
    }

    .coffee-icon-svg {
        width: 26px;
        height: 30px;
    }

    .coffee-name {
        font-size: 0.48rem;
    }

    .cup-container {
        width: 200px;
        height: 260px;
    }

    .size-extras-row {
        padding: 10px;
    }
}

/* Extra small screens (320px - 479px) */
@media (max-width: 479px) {
    .logo {
        font-size: 1.8rem;
    }

    .coffee-bean {
        width: 24px;
        height: 30px;
    }

    .coffee-types {
        grid-template-columns: repeat(3, 1fr);
    }

    .coffee-btn {
        padding: 6px 3px;
    }

    .coffee-icon-svg {
        width: 24px;
        height: 28px;
    }

    .coffee-name {
        font-size: 0.45rem;
    }

    .cup-container {
        width: 180px;
        height: 230px;
    }

    .brew-btn {
        width: 65px;
        height: 65px;
        font-size: 0.5rem;
    }

    .restart-btn {
        width: 38px;
        height: 38px;
        font-size: 0.38rem;
    }

    .size-options {
        flex-wrap: wrap;
    }

    .size-btn {
        min-width: calc(33% - 8px);
    }

    .selection-panel {
        padding: 15px;
    }
}

/* Recipe Modal for Mobile */
@media (max-width: 1279px) {
    .recipe-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .recipe-modal-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .recipe-modal {
        background: var(--white);
        border-radius: 20px;
        width: 100%;
        max-width: 400px;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        transform: scale(0.9) translateY(20px);
        transition: transform 0.3s ease;
        overflow: hidden;
    }

    .recipe-modal-overlay.open .recipe-modal {
        transform: scale(1) translateY(0);
    }

    .recipe-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
        background: linear-gradient(135deg, var(--primary-brown), var(--light-brown));
        color: var(--white);
    }

    .recipe-modal-header h3 {
        font-size: 1.2rem;
        margin: 0;
    }

    .close-modal {
        background: rgba(255,255,255,0.2);
        border: none;
        color: var(--white);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-modal:hover {
        background: rgba(255,255,255,0.3);
    }

    .recipe-modal-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }

    .recipe-modal-content::-webkit-scrollbar {
        width: 5px;
    }

    .recipe-modal-content::-webkit-scrollbar-track {
        background: var(--cream);
        border-radius: 3px;
    }

    .recipe-modal-content::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--light-brown), var(--accent));
        border-radius: 3px;
    }

    .recipe-modal-content .recipe-image {
        margin-bottom: 15px;
        padding: 12px;
        background: linear-gradient(135deg, #5D4037 0%, #3E2723 100%);
        border-radius: 12px;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
    }

    .recipe-modal-content .ingredients {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .recipe-modal-content .ingredients h4,
    .recipe-modal-content .steps h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .recipe-modal-content .ingredients li {
        padding: 8px 0;
        padding-left: 22px;
        font-size: 0.9rem;
    }

    .recipe-modal-content .steps li {
        padding: 10px 0;
        padding-left: 35px;
        font-size: 0.9rem;
    }

    .recipe-modal-content .steps li::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    /* Hide desktop recipe panel on mobile */
    .recipe-panel {
        display: none !important;
    }

    .recipe-tab {
        display: none !important;
    }
}

/* Desktop - hide mobile elements */
@media (min-width: 1280px) {
    .back-btn {
        display: none !important;
    }

    .recipe-modal-overlay {
        display: none !important;
    }
}

/* ===== Shake Animation for Cup ===== */
@keyframes cup-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

.cup-container.brewing .coffee-cup {
    animation: cup-shake 0.3s ease-in-out;
}

/* ===== Glow Effect ===== */
.coffee-cup.complete {
    filter: drop-shadow(0 0 20px rgba(201, 168, 108, 0.5));
}

/* ===== Ice Cubes Animation ===== */
.ice-cubes {
    transition: opacity 0.5s ease;
}

.ice-cube {
    animation: ice-float 3s ease-in-out infinite;
}

.ice-cube.ice-1 { animation-delay: 0s; }
.ice-cube.ice-2 { animation-delay: -0.5s; }
.ice-cube.ice-3 { animation-delay: -1s; }
.ice-cube.ice-4 { animation-delay: -1.5s; }
.ice-cube.ice-5 { animation-delay: -2s; }

@keyframes ice-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(2deg);
    }
}

/* Soğuk içecek efektleri */
.cup-container.iced .coffee-cup {
    filter: drop-shadow(0 5px 20px rgba(74, 144, 217, 0.2));
}

.cup-container.iced.complete .coffee-cup {
    filter: drop-shadow(0 0 20px rgba(74, 144, 217, 0.4));
}

/* Soğuk bardak: Kulpu gizle, kapağı göster */
.cup-container.iced .hot-cup-handle {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cup-container.iced .iced-cup-lid {
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}

/* Soğuk bardak: Şeffaf plastik görünümü */
.cup-container.iced .cup-body {
    fill: url(#cupGradient);
    opacity: 0.85;
}

/* Sıcak bardak: Kapağı gizle */
.cup-container:not(.iced) .iced-cup-lid {
    opacity: 0;
}

.cup-container:not(.iced) .hot-cup-handle {
    opacity: 1;
}

/* Buz ekleme animasyonu */
@keyframes ice-drop {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    60% {
        transform: translateY(5px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.ice-cube.dropping {
    animation: ice-drop 0.4s ease-out forwards;
}

/* Matcha yeşili için özel */
.cup-container.matcha .espresso-layer {
    fill: #7cb342 !important;
}

/* Chai için özel */
.cup-container.chai .espresso-layer {
    fill: #a1887f !important;
}

/* ===== Kawaii Cup Face - Alive! ===== */
.cup-face {
    transition: all 0.3s ease;
}

/* Göz elementleri */
.eyes {
    transition: opacity 0.2s ease;
}

/* Normal göz kırpma animasyonu */
.eye {
    transform-origin: center;
}

.cup-face.idle .left-eye,
.cup-face.idle .right-eye {
    animation: idle-blink 4s ease-in-out infinite;
}

@keyframes idle-blink {
    0%, 45%, 55%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.1);
    }
}

/* Nervous yüz - ter damlası animasyonu */
.sweat-drop {
    animation: sweat-drip 1.5s ease-in-out infinite;
}

@keyframes sweat-drip {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(5px);
        opacity: 0.6;
    }
}

/* Nervous shake */
.cup-face.nervous {
    animation: nervous-shake 0.5s ease-in-out infinite;
}

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

/* Happy yüz - sabit, animasyon yok */
.cup-face.happy .blush {
    opacity: 0.7;
}

/* Wink animasyonu */
.cup-face.winking #eyesNormal {
    opacity: 0;
}

.cup-face.winking #eyesWink {
    opacity: 1 !important;
}

/* Yanak pembeliği */
.blush {
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Ağız geçişleri */
.mouth {
    transition: opacity 0.2s ease;
}

/* ===== Whipped Cream Animation ===== */
.whipped-cream-group {
    transition: opacity 0.5s ease;
}

.whipped-cream-group ellipse {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Krem şanti parıldama efekti */
.whipped-cream-shine1,
.whipped-cream-shine2 {
    animation: cream-shimmer 3s ease-in-out infinite;
}

.whipped-cream-shine2 {
    animation-delay: -1.5s;
}

@keyframes cream-shimmer {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.95;
    }
}

/* Krem şanti hafif sallanma */
.cup-container.complete .whipped-cream-group {
    animation: cream-wobble 4s ease-in-out infinite;
}

@keyframes cream-wobble {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-0.5px) rotate(-0.3deg);
    }
    75% {
        transform: translateX(0.5px) rotate(0.3deg);
    }
}
