:root {
    --primary: #D946EF; /* Vibrant Pink/Magenta for Wedding */
    --primary-glow: rgba(217, 70, 239, 0.4);
    --secondary: #F59E0B; /* Marigold Orange */
    --bg-dark: #1E1B4B; /* Deep Indigo */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #FFFFFF;
    --text-muted: #E2E8F0;
    --accent-red: #EF4444;
    --accent-green: #10B981;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-dark);
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-scene {
    width: 100%;
    max-width: 500px;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

#game-scene::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(30, 27, 75, 0.3) 0%, rgba(30, 27, 75, 0.8) 100%);
    pointer-events: none;
}

.stats {
    position: relative;
    z-index: 10;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.stat-item {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    position: relative;
}

.label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.meter-bg {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#respect-rank {
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    display: block;
    color: var(--secondary);
}

#dialogue-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(30, 27, 75, 0.9);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--primary);
    padding: 20px 20px 40px 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

#speaker-name {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

#dialogue-text {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
}

.word-wrapper {
    position: relative;
    display: inline-block;
}

.audio-phonetic-link {
    color: var(--secondary);
    cursor: help; /* Indicate translation available */
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
    padding: 0 4px;
    border-bottom: 2px dotted var(--secondary);
    transition: background 0.2s;
}

.audio-phonetic-link:hover {
    background: rgba(245, 158, 11, 0.2);
}

.tooltip {
    visibility: hidden;
    width: auto;
    min-width: 80px;
    background-color: #312E81; /* Dark indigo from theme */
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--primary);
    white-space: nowrap;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

.word-wrapper:hover .tooltip,
.word-wrapper.active .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

#choices-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0; /* Initial state, JS will show them */
}

.choice-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: -5px 0 15px var(--primary-glow);
}

.choice-num {
    background: var(--primary);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.choice-text {
    flex: 1;
    line-height: 1.4;
    word-wrap: break-word;
}

.scene-intro {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    background-image: radial-gradient(circle at center, rgba(217, 70, 239, 0.15), transparent);
}

.premium-text {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.scenario-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.7;
    max-height: 150px;
    overflow-y: auto;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 35px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: all 0.3s;
}

.primary-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.control-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 12px;
}

.feedback-text {
    font-style: italic;
    color: var(--secondary);
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.floating-feedback {
    position: absolute;
    font-weight: 900;
    font-size: 16px;
    pointer-events: none;
    animation: floatUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    white-space: nowrap;
    z-index: 100;
}

@keyframes floatUpFade {
    0% { transform: translateY(0); opacity: 0; }
    20% { transform: translateY(-10px); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

.positive { color: var(--accent-green); text-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
.negative { color: var(--accent-red); text-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }

.hidden { display: none !important; }

.score-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.score-item {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 12px;
}

.score-item .value {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    display: block;
}

.rank-slang {
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    margin: 10px 0;
}

.rank-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 400px) {
    .premium-text { font-size: 28px; }
    #dialogue-text { font-size: 15px; }
    .choice-btn { font-size: 14px; }
}
