/* AI-generated for Claire Game 2026 */

:root {
    --pink: #FF8FAB;
    --pink-light: #FFD6E0;
    --purple: #C77DFF;
    --purple-light: #E9D5FF;
    --teal: #56CFE1;
    --teal-light: #C8F4FF;
    --yellow: #FFD166;
    --green: #06D6A0;
    --cream: #FFF8F0;
    --warm-white: #FFFDF9;
    --text-dark: #3D2B56;
    --text-mid: #6B5C8A;
    --card-bg: rgba(255,255,255,0.7);
    --shadow: 0 8px 32px rgba(61,43,86,0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Watercolor Background Blob Effect */
body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

body::before {
    background: var(--pink-light);
    top: -50px;
    left: -50px;
}

body::after {
    background: var(--teal-light);
    bottom: -50px;
    right: -50px;
}

h1, h2, h3, h4 {
    font-family: 'Baloo 2', cursive;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    padding: 20px;
}

.screen.active {
    display: flex;
}

/* Utilities */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }

/* Cards (Glassmorphism) */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.dark-card {
    background: rgba(61,43,86,0.8);
    color: white;
}

/* Buttons */
button {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    outline: none;
    width: 100%;
    margin-bottom: 12px;
}

button:active {
    transform: scale(0.97);
}

button:disabled {
    filter: grayscale(1) opacity(0.5);
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 143, 171, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--teal), #48b4c4);
    color: white;
    box-shadow: 0 4px 15px rgba(86, 207, 225, 0.4);
}

.btn-tertiary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--purple-light);
}

.btn-small {
    width: auto;
    padding: 8px 16px;
    font-size: 1.2rem;
    background: white;
    border-radius: 50px;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Splash Screen */
#screen-splash {
    background: white;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.splash-content h1 {
    font-size: 2rem;
    background: -webkit-linear-gradient(var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.splash-content p {
    color: var(--text-mid);
    text-align: center;
}

/* Main Menu */
#screen-main-menu {
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
}

.logo-container {
    text-align: center;
}

.game-title {
    font-size: 5rem;
    line-height: 1;
    background: -webkit-linear-gradient(135deg, var(--pink), var(--purple), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}

.game-subtitle {
    font-size: 1.5rem;
    color: var(--text-mid);
}

.menu-buttons {
    width: 100%;
    max-width: 300px;
}

/* Options */
#screen-options {
    justify-content: center;
}
.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    text-align: left;
}
.option-row label {
    font-weight: bold;
    color: var(--text-dark);
}
.lang-toggle {
    display: flex;
    gap: 10px;
}
.lang-btn {
    width: auto;
    padding: 5px 15px;
    margin-bottom: 0;
    background: var(--cream);
    color: var(--text-mid);
    border: 1px solid var(--text-mid);
}
.lang-btn.active {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
}
input[type=range] {
    accent-color: var(--pink);
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--card-bg);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Map Screen */
#screen-globe-map {
    padding: 10px;
}
.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.player-level {
    font-weight: 800;
    color: var(--purple);
}
.xp-bar-container {
    width: 100px;
    height: 10px;
    background: var(--purple-light);
    border-radius: 10px;
    overflow: hidden;
}
.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--green));
    width: 0%;
    transition: width 0.3s ease;
}
.map-title {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.map-container {
    flex: 1;
    position: relative;
    background: #eef9ff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    border: 2px solid white;
}
.map-pin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid var(--purple);
}
.map-pin:hover {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 10;
}
.map-pin.locked {
    filter: grayscale(1);
    border-color: #aaa;
    opacity: 0.7;
}
.map-pin.locked::after {
    content: '🔒';
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 0.8rem;
    background: white;
    border-radius: 50%;
}
.map-pin-label {
    position: absolute;
    bottom: -25px;
    white-space: nowrap;
    background: rgba(255,255,255,0.8);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-dark);
}

/* Camarim */
.energy-preview {
    font-weight: 800;
    color: var(--text-dark);
    background: var(--yellow);
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.camarim-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.npcs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}
.npc-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid var(--pink-light);
}
.npc-avatar.lisa-big {
    width: 80px;
    height: 80px;
    font-size: 3rem;
}
.selected-moves-bar {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 15px;
    min-height: 90px;
}
.selected-moves-bar h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.selected-moves-list {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.mini-move {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--purple-light);
}

.moves-catalog {
    flex: 1;
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 15px;
}
.moves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.move-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.move-card.selected {
    border-color: var(--purple);
    background: var(--purple-light);
}
.move-emoji {
    font-size: 2rem;
    margin-bottom: 5px;
}
.move-name {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 5px;
}
.move-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-mid);
}

/* Rehearsal */
#screen-rehearsal {
    justify-content: center;
}
.lisa-dialogue {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}
.speech-bubble {
    background: white;
    padding: 15px;
    border-radius: 20px;
    border-top-left-radius: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
}

/* Performance */
#screen-performance {
    padding: 0;
}
.performance-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: background 1s ease;
}
.hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.energy-bar-container {
    width: 60%;
    height: 25px;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
}
.energy-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--green), var(--teal));
    transition: width 0.3s ease, background-color 0.3s ease;
}
.energy-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.timer-container {
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.stage-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.claire-sprite {
    font-size: 6rem;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
}
.move-emoji-big {
    position: absolute;
    font-size: 8rem;
    opacity: 0.5;
    z-index: 0;
}
.move-queue {
    height: 100px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
    overflow-x: hidden;
}
.queue-item {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0.5;
    transition: all 0.3s;
}
.queue-item.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 15px white;
    border: 3px solid var(--pink);
}

/* Result & Nightmare */
#screen-result, #screen-nightmare {
    justify-content: center;
    z-index: 50;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}
.grade-letter {
    font-size: 6rem;
    font-family: 'Baloo 2', cursive;
    background: -webkit-linear-gradient(var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
    display: inline-block;
}
.stars-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 2.5rem;
    min-height: 50px;
}
.highlight {
    color: var(--teal);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(61,43,86,0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: opacity 0.3s;
}
