@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;900&display=swap');

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

body {
    background: #000000;
    color: #dbd7d2;
    font-family: 'Montserrat', 'GothamPro', 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Текстурированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(219, 215, 210, 0.03) 2px,
            rgba(219, 215, 210, 0.03) 4px
        );
    z-index: -1;
    opacity: 0.5;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Логотип */
.logo {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: #dbd7d2;
    text-transform: uppercase;
}

.album-title {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: #8a8580;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Описание */
.description {
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease-out;
}

.description p {
    font-size: 1rem;
    color: #dbd7d2;
    line-height: 1.6;
    font-weight: 500;
}

/* Canvas wrapper */
.canvas-wrapper {
    position: relative;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 0;
    padding: 20px;
    margin: 30px auto;
    animation: fadeIn 2s ease-out;
    max-width: 100%;
}

#drawingCanvas {
    display: block;
    margin: 0 auto;
    background-color: #1a1a1a;
    border-radius: 0;
    cursor: crosshair;
    touch-action: none;
    max-width: 100%;
    border: 1px solid #222;
}

/* Согласие на использование рисунка */
.consent-note {
    max-width: 480px;
    margin: 0 auto;
    animation: fadeIn 2s ease-out;
}

.consent-note p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #8a8580;
    font-weight: 400;
}

/* Кнопки управления */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 40px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', 'GothamPro', 'Arial', sans-serif;
}

.btn-primary {
    background: #741413;
    color: #dbd7d2;
}

.btn-primary:hover {
    background: #8a1a18;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #3a3a3a;
    color: #666;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: #dbd7d2;
    border: 1px solid #dbd7d2;
}

.btn-secondary:hover {
    background: rgba(219, 215, 210, 0.1);
}

/* Секция билетов */
.tickets-section {
    margin: 40px 0;
}

.btn-tickets {
    display: inline-block;
    padding: 16px 50px;
    font-size: 0.95rem;
    font-weight: 700;
    background: #741413;
    color: #dbd7d2;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', 'GothamPro', 'Arial', sans-serif;
}

.btn-tickets:hover {
    background: #8a1a18;
    transform: translateY(-1px);
}

/* Статус сообщений */
.status-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 0;
    font-size: 0.9rem;
    min-height: 20px;
    animation: fadeIn 0.3s ease-out;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.status-message.success {
    background-color: rgba(116, 20, 19, 0.2);
    border: 1px solid #741413;
    color: #dbd7d2;
}

.status-message.error {
    background-color: rgba(116, 20, 19, 0.3);
    border: 1px solid #741413;
    color: #dbd7d2;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .album-title {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .description p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 35px;
        font-size: 0.85rem;
    }

    .btn-tickets {
        padding: 14px 40px;
        font-size: 0.9rem;
    }

    .canvas-wrapper {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .album-title {
        font-size: 0.75rem;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .btn-tickets {
        width: 100%;
        max-width: 250px;
    }
}
