:root {
    /* --- PALETA BASE --- */
    --bg-color: #F5F9FC;
    --text-color: #002355;
    --prussian-blue: #002355;
    --malibu: #2E86AB;
    --eminence: #bf0ad9;
    --white: #ffffff;
    --accent-pink: rgba(221, 36, 128, 0.8);
    --accent-yellow: #fddc33;

    /* Vidrio Claro */
    --glass-bg: linear-gradient(to right,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.85) 20%,
            rgba(255, 255, 255, 0.65) 60%,
            rgba(255, 255, 255, 0.70) 100%);
    --glass-border: rgba(0, 35, 85, 0.1);
    --card-shadow: 0 20px 50px -10px rgba(0, 35, 85, 0.15);
    --blur-strength: 25px;
}

/* --- MODO OSCURO --- */
body.dark-mode {
    --bg-color: #002355;
    --text-color: #ffffff;
    --malibu: #8AD3F4;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(138, 211, 244, 0.2);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: transparent;
    color: var(--text-color);
    min-height: 100dvh;
    overscroll-behavior: none;
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.2s ease;
}

.hidden {
    display: none !important;
}

/* --- ORBES DE FONDO --- */
.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

.orb {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    will-change: transform;
    mix-blend-mode: multiply;
    opacity: 0.5;
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark-mode .orb {
    mix-blend-mode: screen;
    opacity: 0.4;
}

.orb-1,
.orb-2 {
    width: 75vmin;
    height: 75vmin;
    margin-top: -37.5vmin;
    margin-left: -37.5vmin;
}

.orb-1 {
    background: radial-gradient(circle, var(--accent-pink) 0%, rgba(255, 255, 255, 0) 65%);
    animation: ovalOrbit 90s linear infinite;
}

.orb-2 {
    background: radial-gradient(circle, var(--malibu) 0%, rgba(255, 255, 255, 0) 65%);
    animation: ovalOrbit 90s linear infinite;
    animation-delay: -45s;
}

body.loading-mode .orb {
    opacity: 0;
}

@keyframes ovalOrbit {
    0% {
        transform: translate(0, -42vh) scale(1.2);
    }

    25% {
        transform: translate(42vw, 0) scale(1.8);
    }

    50% {
        transform: translate(0, 42vh) scale(1.8);
    }

    75% {
        transform: translate(-42vw, 0) scale(1.8);
    }

    100% {
        transform: translate(0, -42vh) scale(1.2);
    }
}

/* --- PANTALLA DE CARGA --- */
.startup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s;
    backdrop-filter: blur(3px);
    background: rgba(100, 100, 200, 0.85);
}

body.dark-mode .startup-overlay {
    background: #002355;
}

.startup-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

#loaderCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #F5F9FC;
}

body.dark-mode #loaderCanvas {
    background-color: #002355;
}

.glass-loader-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 35, 85, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
}

body.dark-mode .glass-loader-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.startup-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--prussian-blue);
    margin: 0;
    min-width: 100px;
}

body.dark-mode .startup-text {
    color: white;
}

/* --- TOP CONTROLS (Escritorio) --- */
.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 100;
}

.glass-island {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 6px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 35, 85, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

body.dark-mode .glass-island {
    background: rgba(0, 35, 85, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.separator {
    width: 1px;
    height: 24px;
    background: rgba(0, 35, 85, 0.1);
    margin: 0 2px;
}

body.dark-mode .separator {
    background: rgba(255, 255, 255, 0.1);
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    color: var(--prussian-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.dark-mode .control-btn {
    color: white;
}

.control-btn svg {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .control-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

#settingsBtn:hover svg,
#sideSettingsBtn:hover svg {
    transform: rotate(180deg);
}

#themeToggle:hover svg,
#sideThemeBtn:hover svg {
    animation: spin-slow 1s ease-in-out;
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#changeProfileBtn:hover svg,
#sideProfileBtn:hover svg {
    transform: translateY(-2px) scale(1.1);
}

/* --- WRAPPER --- */
.app-wrapper {
    width: 100%;
    max-width: 1100px;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    overflow-x: hidden;
}

#headerTop.hidden,
#headerCenter.hidden {
    display: none;
}

#headerCenter .logo.big {
    font-size: clamp(2rem, 5vw, 2.8rem);
    transition: all 0.5s ease;
    animation-delay: 5s;
}

.main-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

.logo {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--text-color);
}

.highlight {
    color: var(--prussian-blue);
    background: linear-gradient(120deg, rgba(253, 220, 51, 0.85) 0%, rgba(253, 220, 51, 0.41) 100%);
    padding: 0 8px;
    border-radius: 4px;
}

body.dark-mode .highlight {
    color: var(--accent-yellow);
    background: none;
    padding: 0;
}

.dedication-badge {
    margin-top: 15px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.dark-mode .dedication-badge {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dedication-badge span:first-child {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-color);
    opacity: 0.7;
    text-transform: uppercase;
}

body.dark-mode .dedication-badge span:first-child {
    color: #ffffff;
    opacity: 0.9;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.dedication-badge .name {
    font-family: 'Dancing Script', cursive;
    text-transform: none;
    font-size: 1.1rem;
    color: #9b14b0;
    margin-left: 5px;
}

body.dark-mode .dedication-badge .name {
    color: var(--malibu);
    font-size: 1.4rem;
    font-weight: 700;
    margin-left: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

/* --- LAYOUT --- */
.game-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

.container {
    width: 100%;
    max-width: 550px;
    margin: 0;
    flex-shrink: 0;
}

.sidebar-left {
    position: relative;
    top: auto;
    width: 180px;
    height: 41vh;
    padding: 20px 10px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0.95) 25%, rgba(255, 255, 255, 0.5) 65%, rgba(255, 255, 255, 0) 100%);
}

.word-list-mask {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.word-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    position: relative;
    padding-top: 60px;
}

.word-list::after {
    content: "";
    display: block;
    height: 150px;
    width: 100%;
}

.word-list::-webkit-scrollbar {
    display: none;
}

.word-item {
    padding: 12px 15px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.7;
    box-sizing: border-box;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease, background 0.2s ease;
    will-change: transform;
}

.word-item:hover {
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 1;
    transform: translateX(10px);
}

body.dark-mode .word-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* PANELES */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid white;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.5s ease;
}

body.dark-mode .glass-panel {
    border: 1px solid var(--glass-border);
}

.search-box {
    display: flex;
    padding: 8px;
    margin: 30px 0;
    position: relative;
    z-index: 20;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-box:focus-within {
    border-color: var(--malibu);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(138, 211, 244, 0.4);
    transform: scale(1.02);
}

body.dark-mode .search-box:focus-within {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(138, 211, 244, 0.3);
}

input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--prussian-blue);
    font-size: 1.1rem;
    padding: 12px;
    outline: none;
}

body.dark-mode input {
    color: white;
}

input::placeholder {
    color: rgba(0, 35, 85, 0.4);
}

body.dark-mode input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    background: var(--prussian-blue);
    border: none;
    border-radius: 18px;
    width: 48px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.dark-mode .search-btn {
    background: var(--malibu);
    color: var(--prussian-blue);
}

.search-btn:hover {
    background: var(--accent-pink);
    transform: scale(1.05);
}

body.dark-mode .search-btn:hover {
    background: white;
}

.search-btn svg {
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-btn:hover svg {
    transform: scale(1.15) rotate(-15deg);
}

.search-btn:active svg {
    transform: scale(0.9) rotate(-15deg);
}

/* RESULT CARD */
.result-card {
    padding: 25px;
    text-align: left;
    margin-top: 10px;
    animation: slideUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* --- NUEVO CONTENEDOR DE ACCIONES SUPERIORES --- */
.top-right-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    /* Separación entre el botón Render y Practice Mode */
    z-index: 10;
}

/* --- BOTONES CON BORDES SVG ANIMADOS --- */
.btn-draw {
    position: relative;
    width: auto;
    height: auto;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
}

.draw-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.draw-line {
    fill: transparent;
    stroke: var(--prussian-blue);
    stroke-width: 1;
    stroke-dasharray: 150 400;
    stroke-dashoffset: 150;
    transition: all 0.8s ease-in-out;
}

.btn-draw span {
    color: var(--prussian-blue);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    transition: all 0.8s ease-in-out;
}

/* ESTADO HOVER PARA AMBOS BOTONES */
.btn-draw:hover .draw-line {
    stroke-dashoffset: -400;
    fill: var(--accent-pink);
    stroke: var(--accent-pink);
}

.btn-draw:hover span {
    color: white;
}

/* MODO OSCURO PARA AMBOS BOTONES */
body.dark-mode .btn-draw .draw-line {
    stroke: white;
}

body.dark-mode .btn-draw span {
    color: white;
}

body.dark-mode .btn-draw:hover .draw-line {
    fill: var(--malibu);
    stroke: var(--malibu);
}

body.dark-mode .btn-draw:hover span {
    color: var(--prussian-blue);
}

/* --- RESTO DE LA TARJETA --- */
.word-group-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.word-main-row {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 15px;
    margin-bottom: 5px;
}

.word-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin: 0;
    text-transform: none;
    color: var(--text-color);
}

.phonetic-style {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: var(--eminence);
    opacity: 0.8;
    margin-right: 10px;
    font-weight: 500;
}

body.dark-mode .phonetic-style {
    color: var(--malibu);
    font-weight: 300;
}

.mini-audio-btn {
    background: var(--accent-pink);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(221, 36, 128, 0.3);
}

.mini-audio-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 20px rgba(221, 36, 128, 0.4);
}

.mini-audio-btn.small {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.sentence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.sentence-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(0, 35, 85, 0.2);
    color: var(--prussian-blue);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

body.dark-mode .action-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.action-btn:hover {
    background: var(--prussian-blue);
    color: white;
}

body.dark-mode .action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--malibu);
}

.action-btn.outline {
    width: 100%;
    justify-content: center;
    margin-top: 15px;
    padding: 10px;
    font-size: 0.9rem;
}

.tag {
    font-size: 0.7rem;
    color: var(--eminence);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

body.dark-mode .tag {
    color: var(--malibu);
}

.definition-box {
    margin-top: 20px;
    margin-bottom: 25px;
}

.definition-box p {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    color: #2c3e50;
}

body.dark-mode .definition-box p {
    color: white;
}

.sentence-text {
    font-style: italic;
    color: #405068;
    border-left: 3px solid var(--accent-pink);
    padding-left: 15px;
    margin: 0;
    font-size: 1rem;
}

body.dark-mode .sentence-text {
    color: rgba(255, 255, 255, 0.9);
}

.voice-controls {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 35, 85, 0.1);
}

body.dark-mode .voice-controls {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    margin-top: 0;
    background: transparent;
}

body.dark-mode .app-footer {
    background: linear-gradient(to top, var(--prussian-blue), transparent);
}

.app-footer p {
    margin: 4px 0;
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.7;
    color: #121317;
}

body.dark-mode .app-footer p {
    color: var(--text-color);
}

.app-footer .dev-credit {
    font-weight: 600;
    opacity: 1;
}

.loader {
    margin-top: 40px;
    text-align: center;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 3px solid rgba(0, 35, 85, 0.1);
    border-left-color: var(--prussian-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

body.dark-mode .spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--malibu);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.fade-in-up {
    animation: slideUp 0.6s ease-out;
}

/* FOCUS MODE MODAL */
.focus-modal-content {
    width: 95%;
    height: 95%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    border: 1px solid white;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.modal-overlay.active .focus-modal-content {
    opacity: 1;
    transform: scale(1);
}

body.dark-mode .focus-modal-content {
    background: rgba(0, 35, 85, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-focus-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    line-height: 0.5;
    opacity: 1;
    transition: 0.2s;
}

.close-focus-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: var(--accent-pink);
}

.focus-header {
    text-align: center;
    opacity: 1;
    margin-bottom: 20px;
}

.logo-small {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
}

.focus-badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--eminence);
}

body.dark-mode .focus-badge {
    color: var(--malibu);
}

.focus-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    width: 100%;
}

.focus-word-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#focusWord {
    font-size: clamp(3rem, 8vw, 5rem);
    margin: 0;
    line-height: 1.3;
    color: var(--prussian-blue);
}

body.dark-mode #focusWord {
    color: white;
}

.mini-audio-btn.large {
    width: 60px;
    height: 60px;
    border-radius: 20px;
}

#focusPhonetic {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.8;
}

.focus-definition {
    font-size: 1.5rem;
    max-width: 80%;
    color: var(--text-color);
    line-height: 1.4;
}

.focus-sentence {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .focus-sentence {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

#focusSentence {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
}

.focus-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
    padding: 0 20px;
}

.focus-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    opacity: 0.8;
    cursor: pointer;
    transition: 0.3s;
    padding: 10px;
}

body.dark-mode .focus-nav-btn {
    color: white;
}

.focus-nav-btn:hover {
    opacity: 1;
    transform: scale(1.2);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

body.dark-mode .focus-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- OTROS --- */
.mobile-menu-btn {
    display: none;
    position: absolute;
    left: 20px;
    top: 115px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    z-index: 101;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    color: var(--prussian-blue);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

body.dark-mode .mobile-menu-btn {
    color: white;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 100, 200, 0.4);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    background: var(--bg-color);
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-header,
.add-word-row,
.manage-list-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.modal-overlay.active .modal-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.modal-overlay.active .add-word-row {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.modal-overlay.active .manage-list-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-pink);
}

.add-word-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-word-row input {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.manage-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.manage-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
    animation: fadeInItem 0.4s ease forwards;
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.delete-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes blurInUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.blur-in-up {
    animation: blurInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.badge-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
    height: 24px;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.5s ease;
}

.badge-official {
    background: rgba(253, 220, 51, 0.2);
    color: #b58900;
    border: 1px solid rgba(253, 220, 51, 0.5);
}

body.dark-mode .badge-official {
    color: #fddc33;
    background: rgba(253, 220, 51, 0.1);
}

.badge-archive {
    background: rgba(0, 35, 85, 0.05);
    color: var(--prussian-blue);
    border: 1px solid rgba(0, 35, 85, 0.1);
}

body.dark-mode .badge-archive {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.save-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pin-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.pin-input {
    width: 100px;
    text-align: center;
    letter-spacing: 5px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
}

body.dark-mode .pin-input {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.primary {
    background-color: var(--prussian-blue);
    color: white;
    border: none;
}

.action-btn.primary:hover {
    background-color: var(--malibu);
}

.save-message {
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 20px;
}

.msg-error {
    color: #dc2626;
}

.msg-success {
    color: #16a34a;
}

.manage-item input.edit-input {
    background: rgba(255, 255, 255, 0);
    border: none;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--prussian-blue);
    width: 100%;
}

body.dark-mode .manage-item input.edit-input {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.footer-navigation {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 35, 85, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    position: relative;
}

body.dark-mode .footer-navigation {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-controls-compact {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 8px;
}

.voice-info {
    font-size: 0.75rem;
    color: rgba(0, 35, 85, 0.5);
    margin-bottom: 4px;
    font-weight: 500;
}

body.dark-mode .voice-info {
    color: rgba(255, 255, 255, 0.5);
}

#btnChangeVoice {
    background-color: #002355;
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 35, 85, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
}

#btnChangeVoice:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 35, 85, 0.3);
    background-color: #003380;
}

#btnChangeVoice:active {
    transform: scale(0.95);
}

body.dark-mode #btnChangeVoice {
    background-color: #8AD3F4;
    color: #002355;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode #btnChangeVoice:hover {
    background-color: #ffffff;
}

.nav-arrow {
    background: transparent;
    border: 1px solid rgba(0, 35, 85, 0.1);
    color: var(--prussian-blue);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    height: 44px;
    padding: 0 12px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 140px;
}

body.dark-mode .nav-arrow {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-arrow:hover {
    opacity: 1;
    background: rgba(0, 35, 85, 0.05);
    transform: scale(1.05);
}

body.dark-mode .nav-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    visibility: hidden;
}

.nav-word-label {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 8ch;
}

.anim-wrapper {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    will-change: transform, opacity;
}

.slide-out-left {
    transform: translateX(-40px);
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(40px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-out-right {
    transform: translateX(40px);
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.profile-card {
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.5s ease-out;
    background: rgba(255, 255, 255, 0.8);
}

body.dark-mode .profile-card {
    background: rgba(0, 35, 85, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-card h2 {
    color: var(--prussian-blue);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

body.dark-mode .profile-card h2 {
    color: white;
}

.profile-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    text-align: left;
}

body.dark-mode .grade-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--malibu);
    box-shadow: 0 0 10px rgba(138, 211, 244, 0.2);
}

body.dark-mode .profile-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-btn:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .profile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.grade-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(46, 134, 171, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grade-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--prussian-blue);
}

body.dark-mode .grade-label {
    color: var(--malibu);
}

.sidebar-toolbar {
    display: none;
}

/* MEDIA QUERIES (MÓVIL) */
@media (max-width: 950px) {
    .top-controls {
        display: none !important;
    }

    .sidebar-toolbar {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        background: rgba(255, 255, 255, 0.4);
        border: 1px solid var(--glass-border);
        border-radius: 18px;
        margin-bottom: 15px;
        padding: 5px;
        width: 100%;
        box-sizing: border-box;
    }

    body.dark-mode .sidebar-toolbar {
        background: rgba(0, 35, 85, 0.3);
        border-color: var(--glass-border);
    }

    .sidebar-left {
        position: fixed;
        top: 2.5dvh;
        left: 0;
        height: 95dvh;
        width: 50%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 252, 0.95) 100%);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
        transform: translateX(-105%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
        padding: 20px 10px;
        border-radius: 0 24px 24px 0;
    }

    body.dark-mode .sidebar-left {
        background: linear-gradient(135deg, rgba(0, 35, 85, 0.98) 0%, rgba(0, 35, 85, 0.9) 100%);
    }

    .sidebar-left.active {
        transform: translateX(0);
    }

    .game-layout {
        display: block;
        margin-top: 0px;
    }

    .app-wrapper {
        gap: 20px;
    }

    .container {
        margin: 0 auto;
    }

    .mobile-menu-btn {
        display: flex;
    }

    #headerCenter .logo.big {
        margin-top: 20px;
    }

    .main-header {
        margin-bottom: 0px;
    }

    .search-box {
        margin-top: 0px;
    }

    .word-main-row,
    .displayWord,
    .phonetic-style,
    .mini-audio-btn {
        display: inline;
    }

    .phonetic-style {
        white-space: nowrap;
    }

    .nav-word-label {
        display: none;
    }

    .focus-word-row {
        gap: 10px;
    }

    #focusWord {
        font-size: 3rem;
    }

    .focus-definition {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .focus-sentence {
        flex-direction: column;
        text-align: center;
    }

    .focus-modal-content {
        padding: 15px;
    }

    .close-focus-btn {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }
}

/* =========================================
   NUEVO DISEÑO MODAL PRACTICE (PREMIUM)
   ========================================= */

.focus-modal-content.glass-premium {
    width: 90%;
    max-width: 700px;
    height: auto;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 40px 80px rgba(0, 35, 85, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

body.dark-mode .focus-modal-content.glass-premium {
    background: rgba(0, 35, 85, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.close-focus-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.close-focus-btn:hover {
    background: var(--accent-pink);
    color: white;
    transform: rotate(90deg);
}

.focus-header {
    margin-bottom: 20px;
}

.focus-badge-pill {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--eminence);
    background: rgba(221, 36, 128, 0.1);
    padding: 6px 16px;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid rgba(221, 36, 128, 0.15);
}

body.dark-mode .focus-badge-pill {
    color: var(--malibu);
    background: rgba(46, 134, 171, 0.15);
    border-color: rgba(46, 134, 171, 0.3);
}

.focus-hero-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0px;
    position: relative;
}

.hero-word {
    font-size: clamp(3.5rem, 8vw, 5rem);
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, var(--prussian-blue) 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    line-height: 1.3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

body.dark-mode .hero-word {
    background: linear-gradient(135deg, #ffffff 0%, var(--malibu) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.audio-orb-btn {
    border: none;
    cursor: pointer;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 20px rgba(221, 36, 128, 0.2);
}

.main-orb {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-pink), #bf0ad9);
    color: white;
}

.main-orb:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(221, 36, 128, 0.4);
}

.small-orb {
    width: 44px;
    height: 44px;
    background: white;
    color: var(--prussian-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .small-orb {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.small-orb:hover {
    transform: scale(1.1);
    background: var(--malibu);
    color: white;
}

.focus-phonetic-pill {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: var(--malibu);
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 1px;
    display: none;
}

.focus-definition-container {
    max-width: 85%;
    margin: 0 auto 10px auto;
}

#focusDefinition {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.5;
    font-weight: 400;
    opacity: 0.9;
}

.focus-sentence-island {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid white;
    border-radius: 24px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 35, 85, 0.03);
    width: 85%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

body.dark-mode .focus-sentence-island {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    font-family: serif;
    color: var(--prussian-blue);
    opacity: 0.05;
    pointer-events: none;
}

body.dark-mode .quote-icon {
    color: white;
}

.sentence-content {
    text-align: left;
    flex: 1;
    z-index: 2;
}

#focusSentence {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.focus-navigation-bar {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-round-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .nav-round-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-round-btn:hover {
    background: var(--prussian-blue);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 35, 85, 0.2);
}

body.dark-mode .nav-round-btn:hover {
    background: white;
    color: var(--prussian-blue);
}

.nav-dots-decoration span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    margin: 0 3px;
}

body.dark-mode .nav-dots-decoration span {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .focus-modal-content.glass-premium {
        padding: 25px 20px;
        min-height: auto;
        height: 95%;
    }

    .hero-word {
        font-size: 3rem;
    }

    .focus-sentence-island {
        flex-direction: column;
        text-align: center;
    }

    .main-orb {
        width: 50px;
        height: 50px;
    }

    .focus-navigation-bar {
        padding-top: 15px;
    }

    /* FIX: SUPERPOSICIÓN EN MÓVIL Y AJUSTE DEL NUEVO CONTENEDOR */
    .badge-container {
        margin-top: 40px;
        margin-bottom: 10px;
        height: auto;
        justify-content: left;
        padding: 0 10px;
    }

    .status-badge {
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        font-size: 0.75rem;
        max-width: 100%;
    }

    /* Ajuste para que los botones Render y Practice no choquen en móvil */
    .top-right-actions {
        top: 15px;
        right: 15px;
        transform: scale(0.9);
        transform-origin: top right;
    }
}

/* =========================================
   TOAST NOTIFICATIONS (Notificaciones flotantes)
   ========================================= */
.toast-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    color: var(--prussian-blue);
    padding: 12px 28px;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        toastFadeOut 0.5s ease 2.5s forwards;
}

body.dark-mode .toast {
    color: white;
    background: rgba(0, 35, 85, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}