@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Outfit:wght@300;500;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --secondary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-mesh: 
        radial-gradient(at 0% 0%, rgba(255, 107, 107, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(78, 205, 196, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 230, 109, 0.15) 0, transparent 50%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #1e272e;
    --text-muted: #485460;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8faff;
    background-image: var(--bg-mesh);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    /* Removed overflow: hidden to allow scrolling on mobile if needed */
}

.kiosk-container {
    width: 100%;
    max-width: 650px;
    min-height: 90vh;
    margin: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    position: relative;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Typography */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 8vw, 3rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

p.subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    color: var(--text-muted);
    font-weight: 300;
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: clamp(20px, 5vh, 50px);
}

/* Main Content Area */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* PREMIUM INPUT DISPLAY */
.input-display-container {
    position: relative;
    margin-bottom: 20px;
}

.input-display {
    width: 100%;
    height: clamp(60px, 10vh, 90px);
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 4px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

/* PREMIUM NUMPAD */
.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 2vw, 20px);
}

.num-btn {
    height: clamp(60px, 8vh, 90px);
    font-size: clamp(1.2rem, 5vw, 2rem);
    font-weight: 600;
    color: var(--text-main);
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.num-btn:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.num-btn:active {
    transform: scale(0.92);
}

.num-btn.special {
    background: rgba(0,0,0,0.03);
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: var(--text-muted);
}

/* MISSION CARD STEP 2 */
.mission-card {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 230, 109, 0.5);
    padding: clamp(20px, 5vw, 50px) 20px;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(255, 230, 109, 0.1);
}

.verse-text {
    font-size: clamp(1.2rem, 5vw, 2rem);
    line-height: 1.5;
    font-weight: 700;
    margin: 15px 0;
    color: #2d3436;
}

/* VOICE WAVE ANIMATION */
.voice-wave {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 40px;
    margin-bottom: 10px;
}

.voice-wave.active {
    display: flex;
}

.wave-bar {
    width: 4px;
    height: 10px;
    background: var(--secondary-gradient);
    border-radius: 10px;
    animation: wave 1s infinite ease-in-out;
}

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.5); }
    70% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.transcript-container {
    transition: all 0.3s ease;
}

.score-badge span {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.btn-check.active {
    opacity: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
    background: var(--secondary-gradient) !important;
}

/* RAMEN GRID STEP 3 */
.ramen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(15px, 3vw, 25px);
}

.ramen-item {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: clamp(15px, 4vw, 25px);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ramen-item:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.ramen-item.selected {
    border-color: #FF6B6B;
    background: #fffafa;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15);
}

.ramen-item img {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* BUTTONS */
.btn-primary {
    width: 100%;
    padding: clamp(15px, 3vh, 25px);
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    font-weight: 700;
    color: white;
    background: var(--primary-gradient);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.5);
}

.btn-secondary {
    background: var(--secondary-gradient);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.4);
}

/* PROGRESS BAR */
footer {
    padding-top: 20px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: var(--secondary-gradient);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Media Queries for extra small devices */
@media (max-width: 480px) {
    .kiosk-container {
        padding: 30px 20px;
        border-radius: 30px;
        margin: 10px;
        min-height: calc(100vh - 20px);
    }
    
    .ramen-grid {
        gap: 10px;
    }
    
    .ramen-item {
        padding: 10px;
    }
    
    .mission-card {
        padding: 20px 15px;
    }
}
