* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.announcement-banner.hidden {
    display: none;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
}

.announcement-text {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    flex: 1;
    text-align: center;
}

.announcement-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.8rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-shadow: none;
    flex-shrink: 0;
    border-radius: 50%;
    position: relative;
}

.announcement-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.announcement-close:active {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .announcement-text {
        font-size: 1.2rem;
    }
    
    .announcement-close {
        font-size: 1.6rem;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .announcement-banner {
        padding: 10px 15px;
    }
    
    .announcement-text {
        font-size: 1rem;
    }
    
    .announcement-close {
        font-size: 1.4rem;
        width: 28px;
        height: 28px;
    }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.horse {
    position: absolute;
    width: 80px;
    height: auto;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
    cursor: pointer;
    transition: transform 0.1s;
}

.horse.shake {
    animation: shake 0.5s;
}

.speech-bubble {
    position: absolute;
    z-index: 11;
    display: none;
    pointer-events: none;
    animation: bubblePop 0.4s ease-out;
}

.speech-bubble.show {
    display: block;
}

.speech-bubble-content {
    background: #ffffff;
    color: #000000;
    padding: 15px 20px;
    border-radius: 20px;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    font-weight: 400;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid #000000;
    position: relative;
    max-width: 450px;
    text-align: center;
    line-height: 1.4;
    white-space: normal;
}

.speech-bubble-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #000000;
}

.speech-bubble-content::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 13px solid #ffffff;
    z-index: 1;
}

@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-10px, -5px) rotate(-5deg); }
    20% { transform: translate(10px, 5px) rotate(5deg); }
    30% { transform: translate(-10px, 5px) rotate(-5deg); }
    40% { transform: translate(10px, -5px) rotate(5deg); }
    50% { transform: translate(-10px, -5px) rotate(-5deg); }
    60% { transform: translate(10px, 5px) rotate(5deg); }
    70% { transform: translate(-5px, -5px) rotate(-3deg); }
    80% { transform: translate(5px, 5px) rotate(3deg); }
    90% { transform: translate(-5px, 0) rotate(-2deg); }
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    font-family: 'VT323', monospace;
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    text-align: center;
    letter-spacing: 1px;
}

.btn-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-icon-telegram {
    width: 38px;
    height: 38px;
    transform: translateX(8px);
}

.btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.btn-disabled {
    cursor: default;
    opacity: 0.7;
}

.btn-disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-copyable {
    cursor: pointer !important;
}

.btn-copyable:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35) !important;
}

.copy-hint {
    font-size: 1.2rem;
    opacity: 0.8;
    font-style: italic;
    margin-left: 8px;
}

.btn-link {
    cursor: pointer;
}

@media (max-width: 768px) {
    .btn {
        font-size: 1.5rem;
        padding: 16px 35px;
        min-width: 240px;
    }
}

@media (max-width: 480px) {
    .btn {
        font-size: 1.2rem;
        padding: 14px 30px;
        min-width: 200px;
    }
    
    .content {
        gap: 20px;
    }
}
