: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('assets/reclamationbackground.png') center/cover;
    position: relative;
    overflow: hidden;
    transition: background-image 0.5s ease-in-out;
}

.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;
}

.clerk-stage {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 110px 0 0;
    box-sizing: border-box;
}

.clerk-container {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: min(48vw, 720px);
    height: 100%;
}

.full-clerk-view {
    overflow: visible;
}

.clerk-sprite {
    filter: drop-shadow(0 18px 36px rgba(0,0,0,0.55));
    object-fit: contain;
    object-position: bottom center;
}

.full-body-clerk {
    max-width: 100%;
}

.customer-panel {
    position: absolute;
    top: 90px;
    right: 24px;
    width: min(22vw, 320px);
    min-width: 220px;
    background: rgba(255,255,255,0.95);
    border: 3px solid #333;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.28);
    z-index: 12;
    overflow: hidden;
}

.customer-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #f8efe3 0%, #ece1d1 100%);
    border-bottom: 2px solid #333;
}

.customer-panel-title {
    font-size: 0.8rem;
    font-weight: bold;
    color: #4b352b;
    letter-spacing: 1px;
}

.customer-panel-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.customer-sprite {
    height: min(20vh, 200px);
    max-width: 100%;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
    object-fit: contain;
    object-position: bottom center;
}

.clerk-label {
    background: var(--accent-color);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 10px;
    border: 2px solid #333;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.customer-type-tag {
    background: #333;
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: bold;
    z-index: 2;
}

.customer-product-display {
    margin-top: 0;
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 8px 10px;
}

.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); }
}

.desk {
    height: 330px;
    width: 100%;
    background: #4e342e;
    border-top: 12px solid #3e2723;
    padding: 15px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    z-index: 15;
    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: 15px 25px;
    border-radius: 18px;
    min-height: 70px;
    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: 8px;
    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;
    transform: translateY(-2px);
}

.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;
}
