.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    animation: fadeInOverlay 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 200000;
}

.welcome-message {
    position: relative;
    max-width: 900px;
    width: 90%;
    height: 80vh;
    background: linear-gradient(145deg,
        rgba(20, 20, 20, 0.9) 0%,
        rgba(40, 40, 40, 0.8) 50%,
        rgba(20, 20, 20, 0.9) 100%);
    border-radius: var(--border-radius-custom);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-section {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at 30% 70%, rgba(255, 145, 0, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 70% 30%, rgba(0, 150, 255, 0.08) 0%, transparent 50%);
}

.mascot-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: floatCharacter 4s ease-in-out infinite;
    pointer-events: none;
}

.mascot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mascot-img.speaking {
    transform: scale(1.05);
}

.dialogue-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 60%,
        transparent 100%);
    padding: 40px;
    border-radius: var(--border-radius-custom);
    animation: slideInFromBottom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.mascot-name {
    display: inline-block;
    font-family: var(--my-font);
    font-size: 24px;
    font-weight: 600;
    color: #ff9100;
    background: linear-gradient(135deg, #ff9100, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    padding: 8px 20px;
    background-color: rgba(255, 145, 0, 0.1);
    border-left: 3px solid rgba(255, 145, 0, 0.2);
    text-shadow: 0 0 20px rgba(255, 145, 0, 0.5);
    animation: glow 3s ease-in-out infinite alternate;
}

.dialogue-text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    min-height: 60px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-custom);
    border: var(--border-thin);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    position: relative;
    overflow: hidden;
}

.dialogue-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 145, 0, 0.1) 50%,
        transparent 100%);
    animation: textShimmer 3s ease-in-out infinite;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #ff9100;
    margin-left: 2px;
    animation: blink 1s infinite;
    opacity: 0;
}

.dialogue-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.dialogue-options button {
    background: linear-gradient(135deg,
        rgba(255, 145, 0, 0.1) 0%,
        rgba(255, 145, 0, 0.05) 100%);
    color: #ff9100;
    border: 2px solid rgba(255, 145, 0, 0.3);
    padding: 14px 28px;
    border-radius: var(--border-radius-custom);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    min-width: 120px;
}

.dialogue-options button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 145, 0, 0.2) 50%,
        transparent 100%);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dialogue-options button:hover {
    background: linear-gradient(135deg,
        rgba(255, 145, 0, 0.8) 0%,
        rgba(255, 145, 0, 0.9) 100%);
    color: #000;
    border-color: #ff9100;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
      0 10px 25px rgba(255, 145, 0, 0.4),
      0 0 30px rgba(255, 145, 0, 0.2);
}

.dialogue-options button:hover::before {
    left: 100%;
}

.dialogue-options button:active {
    transform: translateY(-1px) scale(1.02);
}

.close-wm {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: var(--border-thin);
    border-radius: var(--border-radius-rounded);
    color: var(--accent-color);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    z-index: 1;
}

.close-wm:hover {
    transform: rotate(360deg) scale(1.1);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 145, 0, 0.6);
    border-radius: var(--border-radius-custom);
    animation: particleFloat 8s linear infinite;
}

@keyframes fadeInOverlay {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
}

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

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

@keyframes slideInFromBottom {
    from {
      opacity: 0;
      transform: translateY(100px);
    }

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

@keyframes floatCharacter {

    0%,
    100% {
      transform: translateY(0px) rotate(0deg);
    }

    25% {
      transform: translateY(-8px) rotate(1deg);
    }

    50% {
      transform: translateY(0px) rotate(0deg);
    }

    75% {
      transform: translateY(-5px) rotate(-1deg);
    }
}

@keyframes speakingPulse {

    0%,
    100% {
      transform: scale(1.05);
      box-shadow: 0 0 30px rgba(255, 145, 0, 0.3);
    }

    50% {
      transform: scale(1.08);
      box-shadow: 0 0 40px rgba(255, 145, 0, 0.5);
    }
}

@keyframes glow {
    0% {
      text-shadow: 0 0 20px rgba(255, 145, 0, 0.5);
    }

    100% {
      text-shadow: 0 0 30px rgba(255, 145, 0, 0.8);
    }
}

@keyframes textShimmer {
    0% {
      left: -100%;
    }

    100% {
      left: 100%;
    }
}

@keyframes blink {

    0%,
    50% {
      opacity: 1;
    }

    51%,
    100% {
      opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
      transform: translateY(100vh) rotate(0deg);
      opacity: 0;
    }

    10% {
      opacity: 0.6;
    }

    90% {
      opacity: 0.6;
    }

    100% {
      transform: translateY(-10vh) rotate(360deg);
      opacity: 0;
    }
}

@media (max-width: 768px) {
    .welcome-message {
      width: 95%;
      height: 90vh;
      border-radius: var(--border-radius-custom);
    }

    .dialogue-section {
      padding: 20px;
    }

    .mascot-name {
      font-size: 20px;
    }

    .dialogue-text {
      font-size: 16px;
      padding: 15px;
    }

    .dialogue-options button {
      padding: 12px 20px;
      font-size: 14px;
      min-width: 100px;
    }
}

.cookie-popup {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--secondary-bgc);
    color: var(--text-color-default);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    z-index: 100;
    display: none;
    animation: slideInFromBottom 0.4s ease;
}

.cookie-popup p {
    margin: 0;
    padding: 0 0 10px 0;
    text-align: center;
}

.cookie-popup a {
    transition: 0.3s ease;
}

.cookie-popup button {
    color: var(--accent-color);
    border: var(--border-thick);
    padding: 12px 30px;
    border-radius: var(--border-radius-custom);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cookie-popup button:hover {
    background: var(--accent-overlay);
    border: 2px solid var(--accent-color);
    transform: translateY(-2px);
}