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

html {
    min-height: 100%;
    background: linear-gradient(180deg, #1a2969 0%, #2d4596 50%, #4565c9 100%);
    background-attachment: fixed;
}

body {
    font-family: 'Lilita One', cursive;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: 0;
    width: 100vw;
    height: 200vh;
    background-image: url('images/brawl_stars_pattern_transparent.png');
    background-repeat: repeat;
    background-size: 400px auto;
    opacity: 0.15;
    animation: scrollPattern 120s linear infinite;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

@keyframes scrollPattern {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
}

.content-box {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.2);
}

.title {
    font-size: 32px;
    color: #000000;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    gap: 10px;
    transition: all 0.15s ease;
    box-shadow:
        0 5px 0 #BBBBBB,
        0 6px 15px rgba(0, 0, 0, 0.2);
}

.input-wrapper:focus-within {
    box-shadow:
        0 5px 0 #999999,
        0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.hashtag {
    font-size: 28px;
    color: #000000;
    font-weight: bold;
}

.player-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Lilita One', cursive;
    font-size: 24px;
    color: #000000;
    outline: none;
    text-transform: uppercase;
}

.player-input::placeholder {
    color: #CCCCCC;
}

.info-button {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.info-button:hover {
    transform: scale(1.1);
}

.info-button:active {
    transform: scale(0.95);
}

.info-button.pulse-glow {
    animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 208, 77, 0.6));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 15px rgba(255, 208, 77, 1)) drop-shadow(0 0 25px rgba(255, 168, 0, 0.8));
    }
}

.submit-button {
    background: linear-gradient(180deg, #FFD84D 0%, #FFA800 100%);
    border: none;
    border-radius: 12px;
    padding: 18px 45px;
    font-family: 'Lilita One', cursive;
    font-size: 26px;
    color: #FFFFFF;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.1s ease;
    box-shadow:
        0 6px 0 #CC7A00,
        0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    top: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.submit-button:hover {
    background: linear-gradient(180deg, #FFE270 0%, #FFB520 100%);
    transform: translateY(-2px);
    box-shadow:
        0 8px 0 #CC7A00,
        0 10px 25px rgba(0, 0, 0, 0.4);
}

.submit-button:active {
    transform: translateY(4px);
    box-shadow:
        0 2px 0 #CC7A00,
        0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    background: #000000;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 95%;
    max-height: 95%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.close-video {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: auto;
    cursor: pointer;
    transition: all 0.15s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    z-index: 10;
}

.close-video:hover {
    transform: scale(1.1);
}

.close-video:active {
    transform: scale(0.95);
}

#tutorial-video {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    border: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Welcome section */
.welcome-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
    justify-content: center;
}

.brawler-avatar {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.speech-bubble {
    background: white;
    border: 4px solid #000000;
    border-radius: 20px;
    padding: 12px 18px;
    position: relative;
    width: 380px;
    min-height: 70px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 15px solid #000000;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid white;
}

.speech-bubble p {
    margin: 0;
    font-size: 20px;
    color: #000000;
    line-height: 1.4;
    width: 100%;
    text-align: left;
}

.inline-gem-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 3px;
    position: relative;
    top: -1px;
}

/* Responsive design */
@media (max-width: 768px) {
    .logo {
        max-width: 220px;
    }

    .title {
        font-size: 26px;
    }

    .player-input {
        font-size: 20px;
    }

    .hashtag {
        font-size: 24px;
    }

    .submit-button {
        font-size: 22px;
        padding: 15px 40px;
    }

    .content-box {
        padding: 30px 20px;
    }

    .brawler-avatar {
        width: 90px;
        height: 90px;
        border-radius: 16px;
    }

    .speech-bubble {
        width: 320px;
        min-height: 85px;
    }

    .speech-bubble p {
        font-size: 18px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 180px;
    }

    .logo-container {
        margin-bottom: 25px;
    }

    .title {
        font-size: 22px;
    }

    .player-input {
        font-size: 18px;
    }

    .hashtag {
        font-size: 20px;
    }

    .submit-button {
        font-size: 18px;
        padding: 14px 35px;
    }

    .hint {
        font-size: 14px;
    }

    .input-wrapper {
        padding: 10px 20px;
    }

    .welcome-section {
        gap: 10px;
        margin-top: 20px;
    }

    .brawler-avatar {
        width: 70px;
        height: 70px;
        border-radius: 12px;
    }

    .speech-bubble {
        width: 260px;
        min-height: 60px;
        padding: 10px 14px;
    }

    .speech-bubble p {
        font-size: 15px;
        text-align: left;
    }
}
