:root {
    --bg-color: #f0ebe3;
    --desk-color: #5d4037;
    --text-color: #2c3e50;
    --accent-color: #e67e22;
    --danger-color: #c0392b;
    --success-color: #27ae60;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Special Elite', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.screen {
    text-align: center;
    padding: 2rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.full-screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0;
}

.menu-screen h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.intro-box {
    background: #f9f9f9;
    padding: 20px;
    border: 2px dashed var(--accent-color);
    margin: 20px 0;
    font-size: 1.1rem;
    max-width: 500px;
}

.game-container {
    width: 100vw;
    height: 100vh;
    background: url('https://rosebud.ai/assets/office_bg.webp?B61G') center/cover;
    position: relative;
    overflow: hidden;
}

.hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.9);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 10;
    border: 2px solid #333;
}

.office-scene {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.customer-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 40px;
}

.customer-container {
    position: relative;
    text-align: center;
}

.customer-type-tag {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
}

.customer-sprite {
    height: 50vh;
    max-height: 500px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.shaking {
    animation: shake 0.2s infinite;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.product-display {
    background: white;
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    margin-top: 10px;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid #333;
}

.desk {
    height: 420px;
    width: 100%;
    background: #4e342e;
    border-top: 12px solid #3e2723;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    z-index: 5;
    position: absolute;
    bottom: 0;
    box-sizing: border-box;
}

.anger-meter {
    width: 300px;
    position: absolute;
    top: -60px;
    right: 50px;
}

.anger-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px black;
    margin-bottom: 5px;
}

.bar-bg {
    height: 20px;
    background: #333;
    border: 3px solid #555;
    border-radius: 12px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.speech-bubble {
    background: white;
    padding: 20px;
    border-radius: 15px;
    min-height: 80px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    font-size: 1.1rem;
    border: 4px solid #333;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    box-sizing: border-box;
    width: 100%;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid #333;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

button {
    padding: 12px 20px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    background: #ecf0f1;
    border: 3px solid #333;
    transition: all 0.2s;
    font-size: 0.95rem;
}

button:hover {
    background: var(--accent-color);
    color: white;
}

.option-btn {
    text-align: left;
    background: white;
}

.option-btn:hover {
    background: #f1c40f;
    color: #333;
    transform: translateX(5px);
}

.next-btn {
    align-self: center;
    background: var(--success-color);
    color: white;
    font-size: 1.3rem;
    width: 100%;
    max-width: 400px;
}

.typing {
    font-style: italic;
    color: #888;
}

.stats {
    margin: 20px 0;
    text-align: left;
    background: #f9f9f9;
    padding: 25px;
    border: 2px dashed #ccc;
    font-size: 1.2rem;
}

.credits {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}
