:root {
    --bg-color: #121212;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.1);
    --accent-color: #00d2ff;
    --text-color: #ffffff;
    --secondary-text: #aaaaaa;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);

    --season-spring: #ff7eb3;
    --season-summer: #4facfe;
    --season-autumn: #f09819;
    --season-winter: #a8edea;

    --pref-safety: #4caf50;
    --pref-pleasure: #e91e63;
    --pref-growth: #2196f3;
    --pref-efficiency: #ff9800;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    position: relative;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

h1 {
    font-size: 24px;
    margin: 0;
    letter-spacing: 0.1em;
    background: linear-gradient(45deg, #ffffff, #aaaaaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.season-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.season-badge.spring {
    background: linear-gradient(45deg, var(--season-spring), #ff758c);
    color: #fff;
}

.season-badge.summer {
    background: linear-gradient(45deg, var(--season-summer), #00f2fe);
    color: #fff;
}

.season-badge.autumn {
    background: linear-gradient(45deg, var(--season-autumn), #edde5d);
    color: #fff;
}

.season-badge.winter {
    background: linear-gradient(45deg, var(--season-winter), #d299c2);
    color: #000;
}

.score-board {
    display: flex;
    gap: 40px;
    align-items: center;
}

.score-unit {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 200px;
}

.score-unit .score-label {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.score-gauge-bg {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.score-gauge-fill {
    height: 100%;
    width: 0%;
    /* JS updates this */
    transition: width 0.5s ease-out;
}

#p-score-gauge {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    box-shadow: 0 0 10px #4caf50;
}

#r-score-gauge {
    background: linear-gradient(90deg, #f44336, #ff9800);
    box-shadow: 0 0 10px #f44336;
}

#bgm-toggle {
    background: none;
    border: 1px solid var(--secondary-text);
    color: var(--secondary-text);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
}

#bgm-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Main Layout */
main {
    flex: 1;
    display: grid;
    grid-template-columns: 350px 1fr 350px;
    /* Log is absolute */
    gap: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Areas */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    font-size: 16px;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    overflow-y: auto;
    padding-right: 5px;
    max-height: 60vh;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    /* Change column to row to separate left/right */
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.card-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    color: var(--secondary-text);
}

.card-info-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 5px;
    border-radius: 3px;
    margin-bottom: 2px;
}

.card:hover {
    background: var(--card-hover);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.card-name {
    font-weight: bold;
    font-size: 16px;
}

.card-badges {
    display: flex;
    gap: 5px;
    font-size: 11px;
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.badge-season {
    background: gold;
    color: black;
    box-shadow: 0 0 5px gold;
}

.badge-match {
    background: #ff4081;
    color: white;
    box-shadow: 0 0 5px #ff4081;
}

.badge-power {
    background-color: #ffd700;
    color: #000;
    border: 1px solid #b8860b;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.badge-weak {
    background-color: #e0e0e0;
    color: #666;
    border: 1px solid #ccc;
    font-size: 0.8em;
}

/* Center Area */
.center-area {
    justify-content: center;
    position: relative;
}

#customer-scene {
    width: 100%;
    height: 60%;
    border-radius: 20px;
    /* background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 70%); */
    margin-bottom: 20px;
}

.customer-info {
    text-align: center;
    z-index: 10;
}

.customer-label {
    font-size: 12px;
    color: var(--secondary-text);
    margin-bottom: 5px;
}

.preference-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Message Box */
.message-box {
    margin-top: 20px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.6);
    border: var(--glass-border);
    border-radius: 10px;
    text-align: center;
    min-height: 1.5em;
    font-size: 16px;
    color: #fff;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

/* Controls */
.controls {
    margin-top: 20px;
    width: 100%;
}

.action-btn {
    width: 100%;
    padding: 10px;
    /* Further reduced padding */
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Log */
#battle-log {
    position: absolute;
    top: 54px;
    /* Exact alignment with header border */
    /* Header padding is 10px + 32px content + 10px = 52px. Border is 1px. 53-54px. */
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 80px;
    /* Compact */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
    z-index: 50;
    pointer-events: auto;
    /* Allow clicking button */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#battle-log.expanded {
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    border: 2px solid var(--accent-color);
}

#battle-log.expanded #log-content {
    overflow-y: auto;
    font-size: 14px;
}

.log-toggle-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    pointer-events: auto;
}

.log-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

#battle-log h3 {
    display: none;
    /* Turn off title */
}

#log-content {
    flex: 1;
    overflow-y: hidden;
    font-size: 11px;
    line-height: 1.3;
    display: flex;
    flex-direction: column-reverse;
    text-shadow: 1px 1px 2px black;
}

.log-entry {
    margin-bottom: 5px;
    color: #ccc;
}

.log-entry.turn-header {
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 10px;
}

.log-entry.player-action {
    color: #81c784;
}

.log-entry.rival-action {
    color: #e57373;
}

.log-entry.system {
    color: #ffd54f;
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Rival Card Hidden */
/* Rival Card Hidden (Default) */
#rival-hand .card {
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1) 20px);
    cursor: default;
    color: #666;
}

#rival-hand .card-left,
#rival-hand .card-right {
    opacity: 0.1;
    /* Almost hidden */
}

/* Rival Card Revealed */
#rival-hand.reveal .card {
    background: var(--card-bg);
    color: var(--text-color);
}

#rival-hand.reveal .card-left,
#rival-hand.reveal .card-right {
    opacity: 1;
}

/* Avatar CSS */
.avatar-group {
    position: relative;
    width: 100px;
    height: 150px;
    transform-style: preserve-3d;
    animation: avatarIdle 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-head {
    width: 60px;
    height: 60px;
    background: #ffe0bd;
    border-radius: 50%;
    margin-bottom: -10px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Eyes */
.avatar-head::before,
.avatar-head::after {
    content: '';
    position: absolute;
    top: 25px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.avatar-head::before {
    left: 18px;
}

.avatar-head::after {
    right: 18px;
}

.avatar-body {
    width: 70px;
    height: 90px;
    background: #4caf50;
    border-radius: 20px 20px 10px 10px;
    z-index: 5;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.avatar-arms {
    position: absolute;
    top: 55px;
    /* Shoulder height */
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 4;
}

.avatar-arm {
    width: 20px;
    height: 70px;
    background: #333;
    border-radius: 10px;
}

.avatar-arm.left {
    transform: translateX(-15px) rotate(10deg);
}

.avatar-arm.right {
    transform: translateX(15px) rotate(-10deg);
}

/* Animations */
@keyframes avatarIdle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes avatarHappy {
    0% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-5deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    75% {
        transform: scale(1.1) rotate(-5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.anim-happy {
    animation: avatarHappy 0.5s ease;
}

/* Start Screen */
#start-screen,
#mode-select-screen,
#difficulty-select-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2a2a3e 0%, #000000 100%);
    display: flex;
    flex-direction: row;
    z-index: 200;
    color: white;
}

/* ... existing ... */

/* Rival Card Hidden (Default / Hard Mode) */
#rival-hand .card {
    background: #000;
    /* Pitch black */
    cursor: default;
}

#rival-hand .card>* {
    opacity: 0;
    visibility: hidden;
}

/* Rival Card Revealed (Easy / Normal) */
#rival-hand.reveal .card {
    background: var(--card-bg);
    color: var(--text-color);
}

#rival-hand.reveal .card>* {
    opacity: 1;
    visibility: visible;
}

#rival-hand.reveal .card-info-item,
#rival-hand.reveal .card-badges {
    display: block;
    /* Ensure visible */
}

/* Sidebar */
.start-sidebar {
    width: 300px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
}

.start-sidebar h2 {
    font-size: 24px;
    letter-spacing: 0.2em;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin: 0;
}

.legend-section h3 {
    font-size: 16px;
    color: var(--secondary-text);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 16px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.icon {
    font-size: 20px;
    width: 20px;
    text-align: center;
}

/* Main Area */
.start-main {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.start-main h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
    letter-spacing: 0.1em;
}

.start-main p {
    color: var(--secondary-text);
    margin-bottom: 30px;
    font-size: 18px;
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2em;
}

.start-cards {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    overflow-y: visible;
    max-height: none;
    width: 100%;
    max-width: 1000px;
}

.start-cards .card {
    width: 180px;
    height: 100px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: scale(1);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.start-cards .card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Selected State */
.start-cards .card.selected {
    border-color: var(--accent-color);
    background: rgba(0, 210, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.start-cards .card.selected::after {
    content: '✔';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: black;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.start-btn {
    width: 300px;
    padding: 20px;
    font-size: 24px;
    letter-spacing: 0.1em;
    background: var(--accent-color);
    color: black;
    margin-top: auto;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.start-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Title Screen */
#title-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
    color: white;
}

.title-content {
    text-align: center;
    animation: fadeIn 1s ease;
}

.main-title {
    font-size: 80px;
    margin: 0;
    letter-spacing: 0.5em;
    font-weight: bold;
    background: linear-gradient(45deg, #ffffff, #aaaaaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.sub-title {
    font-size: 24px;
    color: var(--secondary-text);
    letter-spacing: 0.8em;
    margin-top: 10px;
    margin-bottom: 60px;
    text-transform: uppercase;
    margin-left: 0.8em;
    /* Offset for letter spacing */
}

.title-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
    margin: 0 auto;
}

.title-btn {
    padding: 20px;
    font-size: 18px;
    letter-spacing: 0.1em;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.title-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: scale(1.05);
}

.title-btn.secondary {
    font-size: 16px;
    opacity: 0.8;
}

.title-btn.secondary:hover {
    opacity: 1;
}

/* Tutorial Overlay */
#tutorial-overlay {
    position: fixed;
    top: 100px;
    /* Below header */
    left: 0;
    width: 100%;
    pointer-events: none;
    /* Let clicks pass through to game */
    z-index: 150;
    display: flex;
    justify-content: center;
}

.tutorial-box {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--accent-color);
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
    pointer-events: auto;
    /* Allow interaction if needed */
    max-width: 600px;
    animation: slideDown 0.5s ease;
}

.tutorial-box h2 {
    color: var(--accent-color);
    margin: 0 0 10px 0;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tutorial-box p {
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    color: white;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Score Popup Effect */
.score-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 900;
    color: #ffeb3b;
    /* Yellow */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 235, 59, 0.5);
    z-index: 200;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    60% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes popBump {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Stock Icons */
.stock-icon {
    display: inline-block;
    font-size: 20px;
    margin-left: 2px;
    opacity: 0.2;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.stock-icon.active {
    opacity: 1;
    filter: grayscale(0%);
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
}

.center-area {
    position: relative;
    /* Anchor for popup */
}

/* Bonus Legend */
.stock-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.bonus-legend {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 5px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.x4-label {
    color: #ff0055;
    font-weight: bold;
    animation: pulse 1s infinite;
}

/* Satisfaction Gauge */
.satisfaction-container {
    width: 100%;
    margin-top: 10px;
}

.satisfaction-label {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 3px;
    text-align: left;
}

.satisfaction-bar-bg {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}

.satisfaction-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.5s ease;
}

.satisfaction-text {
    font-size: 12px;
    text-align: right;
    margin-top: 2px;
    color: #ddd;
}

/* Dynamic Customer Layout */
.customers-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.customer-unit {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 250px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    border: 2px solid transparent;
    /* Reserve space for border */
}

.customer-unit.selectable {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulseBorder 1.5s infinite;
}

.customer-unit.selectable:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
    border-color: var(--accent-color);
}

@keyframes pulseBorder {
    0% {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    50% {
        border-color: var(--accent-color);
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    }

    100% {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Adjustments for multiple gauges */
.customer-unit .satisfaction-container {
    margin-top: 15px;
    width: 100%;
}

.customer-unit .avatar-group {
    transform: scale(0.8);
    /* Scale down slightly for multi-view */
}

/* Customer Animations */
@keyframes jumpSmall {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes jumpMed {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-20px) rotate(-5deg);
    }

    60% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes jumpBig {
    0% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-30px) scale(1.1);
    }

    40% {
        transform: translateY(0);
    }

    60% {
        transform: translateY(-15px) scale(1.1);
    }

    100% {
        transform: translateY(0);
    }
}

.anim-happy {
    animation: jumpSmall 0.5s ease;
}

.anim-joy {
    animation: jumpMed 0.6s ease;
}

.anim-ecstasy {
    animation: jumpBig 0.8s ease;
}

/* Disabled Cards (Stronger Visual) */
.card.disabled {
    pointer-events: none;
    opacity: 0.3 !important;
    filter: grayscale(100%);
}

/* Match Target Overlay */
.match-indicator-overlay {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4081;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 0 10px #ff4081;
    animation: bounce 0.5s infinite alternate;
    z-index: 20;
}

@keyframes bounce {
    from {
        transform: translateX(-50%) translateY(0);
    }

    to {
        transform: translateX(-50%) translateY(-5px);
    }
}