@font-face {
    font-family: 'Oldschool Grotesk';
    src: url('/fonts/OldschoolGroteskCompressed_W-Regular.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: 'PP Right Grotesk Mono';
    src: url('/fonts/PPRightGroteskMono-Medium.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: 'PP Right Grotesk Mono';
    src: url('/fonts/PPRightGroteskMono-Bold.woff2') format('woff2');
    font-weight: bold;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

button:focus,
a:focus {
    outline: none;
}

button:active,
a:active {
    -webkit-tap-highlight-color: transparent;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html,
body,
#root {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #b3b395;
    font-family: 'PP Right Grotesk Mono', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
}

.background {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.stars {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
}

/* Noise grain */

.cloud-blur {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    z-index: 2;
    pointer-events: none;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 40%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 40%, black 100%);
    transition: backdrop-filter 1.2s ease 0.3s, -webkit-backdrop-filter 1.2s ease 0.3s;
}

.cloud-blur--visible {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Preloader */

.preloader {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    transition: opacity 0.6s ease;
}

.preloader__bar {
    width: 120px;
    height: 2px;
    background: rgba(246, 247, 224, 0.4);
    border-radius: 1px;
    transform-origin: left center;
    transition: transform 0.3s ease;
}

/* Overlay */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
}

/* Edition toggle */

.edition-toggle {
    pointer-events: auto;
    position: relative;
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}

.edition-toggle__pill {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 62px;
    height: 44px;
    border-radius: 100px;
    background: rgba(246, 247, 224, 0.02);
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.25);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.edition-toggle__pill.is-night {
    transform: translateX(calc(62px + 4px));
}

.edition-toggle__btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 44px;
    border: none;
    border-radius: 100px;
    background: transparent;
    color: #f6f7e0;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.4s ease;
    padding: 0;
}

.edition-toggle__btn.is-active {
    opacity: 1;
    cursor: default;
}

/* Edition info */

.edition-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 50px;
}

.logo-wrap {
    position: relative;
    height: 61px;
    transition: transform 0.6s ease;
    transform: translateX(28px);
}

.logo-wrap--night {
    transform: translateX(0);
}

.logo-wrap__bg {
    height: 61px;
    width: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.logo-wrap--night .logo-wrap__bg {
    opacity: 1;
}

.logo-wrap__fg {
    position: absolute;
    top: 0;
    left: 0;
    height: 61px;
    width: auto;
    transition: opacity 0.6s ease;
}

.logo-wrap--night .logo-wrap__fg {
    opacity: 0;
}

.edition-info__details {
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
}

.edition-info__date {
    margin: 0;
    color: #f6f7e0;
}

.edition-info__location {
    margin: 4px 0 0;
    color: rgba(246, 247, 224, 0.6);
}

/* Action buttons */

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.action-buttons--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-tickets {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    background: #d792cb;
    box-shadow: inset -1px 2px 8px #ffd2f7;
    text-decoration: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.btn-tickets--hidden {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

.btn-tickets:hover {
    opacity: 0.85;
}

.btn-tickets__text {
    font-family: 'Oldschool Grotesk', sans-serif;
    font-size: 26px;
    line-height: 0.84;
    color: #f6f7e0;
    padding-bottom: 4px;
}

.btn-faq {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 100px;
    background: rgba(246, 247, 224, 0.02);
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.75);
    font-family: 'PP Right Grotesk Mono', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    color: #f6f7e0;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.5s ease;
}

.btn-faq:hover {
    opacity: 0.85;
}

/* Footer */

.footer {
    pointer-events: auto;
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 14px;
}

.footer__signup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 348px;
}

.footer__label {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    color: #f6f7e0;
    text-align: center;
}

.footer__form {
    display: flex;
    gap: 6px;
    width: 100%;
    height: 44px;
}

.footer__input-wrap {
    position: relative;
    flex: 1;
    height: 44px;
    border-radius: 100px;
    background: rgba(246, 247, 224, 0.02);
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.footer__input {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    border: none;
    border-radius: 100px;
    background: transparent;
    color: #f6f7e0;
    font-family: 'PP Right Grotesk Mono', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    outline: none;
}

.footer__input::placeholder {
    color: rgba(246, 247, 224, 0.5);
}

.footer__submit {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 100px;
    background: #d792cb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset -1px 2px 8px #ffd2f7;
    transition: opacity 0.2s ease;
}

.footer__submit:hover {
    opacity: 0.85;
}

.footer__submit:disabled {
    opacity: 0.65;
    cursor: default;
}

.footer__state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #f6f7e0;
}

.footer__state--error,
.footer__state--success {
    background-color: #f6f7e0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.footer__state--error {
    -webkit-mask-image: url('/icons/newsletter-error.svg');
    mask-image: url('/icons/newsletter-error.svg');
}

.footer__state--success {
    -webkit-mask-image: url('/icons/newsletter-success.svg');
    mask-image: url('/icons/newsletter-success.svg');
}

.footer__state--loading {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(246, 247, 224, 0.35);
    border-top-color: #f6f7e0;
    animation: footer-spin 0.8s linear infinite;
}

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

.footer__socials {
    display: flex;
    gap: 6px;
    align-items: center;
    order: 2;
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28.8px;
    height: 17.6px;
    transition: opacity 0.2s ease;
}

.footer__socials a:hover {
    opacity: 0.7;
}

.footer__legal {
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
    color: #f6f7e0;
    text-align: center;
    order: 3;
}

.footer__legal a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer__legal a:hover {
    opacity: 0.7;
}

.footer__signup {
    order: 1;
}

/* Desktop */

@media (min-width: 768px) {
    .edition-info {
        margin-top: 12vh;
    }

    .action-buttons {
        position: fixed;
        top: 31px;
        left: 32px;
        right: 32px;
        justify-content: space-between;
        margin-top: 0;
        pointer-events: none;
    }

    .btn-tickets,
    .btn-faq {
        pointer-events: auto;
    }

    .btn-tickets {
        height: 50px;
        padding: 0 32px;
    }

    .btn-faq {
        height: 50px;
        width: 82px;
    }

    .footer {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: end;
        padding: 0 32px 37px;
        gap: 0;
    }

    .footer__legal {
        order: 1;
        text-align: left;
        justify-self: start;
    }

    .footer__signup {
        order: 2;
        justify-self: center;
        width: 348px;
    }

    .footer__socials {
        order: 3;
        justify-self: end;
    }
}

/* FAQ Overlay */

.faq-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.4s ease;
}

.faq-backdrop--active {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.faq {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    width: 680px;
    max-width: calc(100% - 32px);
    height: 655px;
    max-height: calc(100dvh - 32px);
    background: #f6f7e0;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.faq--active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) translateY(0);
}

.faq::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(246, 247, 224, 0) 0%, #f6f7e0 100%);
    border-radius: 0 0 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.faq__canvas {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    scrollbar-width: none;
}

.faq__canvas::-webkit-scrollbar {
    display: none;
}

.faq__body {
    padding: 48px;
}

.faq__title {
    font-family: 'Oldschool Grotesk', sans-serif;
    font-weight: normal;
    font-size: 42px;
    line-height: 0.74;
    color: #000;
    margin: 0 0 24px;
    padding-top: 12px;
    text-align: center;
}

.faq__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 32px;
}

.faq__category {
    padding: 8px 16px;
    border-radius: 100px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    font-family: 'PP Right Grotesk Mono', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq__category--active {
    background: #000;
    color: #f6f7e0;
}

.faq__questions {
    display: flex;
    flex-direction: column;
}

.faq__question {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.faq__q-text {
    font-family: 'PP Right Grotesk Mono', sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    color: #000;
}

.faq__q-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: transform 0.25s ease;
}

.faq__question--open .faq__q-icon {
    transform: rotate(45deg);
}

.faq__a {
    display: none;
    padding-bottom: 16px;
}

.faq__question--open .faq__a {
    display: block;
}

.faq__answer-text {
    font-family: 'PP Right Grotesk Mono', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.6);
    margin: 0 0 16px;
}

.faq__answer-text:last-child {
    margin-bottom: 0;
}

.faq__answer-text strong {
    color: #000;
    font-weight: bold;
}

.faq__answer-text a {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .faq {
        width: calc(100% - 32px);
        height: 80dvh;
    }

    .faq__body {
        padding: 32px 24px;
    }

    .faq__title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .faq__categories {
        margin-bottom: 24px;
    }

    .faq__category {
        font-size: 12px;
        padding: 8px 12px;
    }

    .action-buttons {
        --mobile-ticket-width: 110px;
        --mobile-faq-width: 60px;
        --mobile-gap: 8px;
        gap: var(--mobile-gap);
        margin-top: 2px;
    }

    .btn-tickets {
        width: var(--mobile-ticket-width);
        padding: 14px 0;
    }

    .btn-faq {
        width: var(--mobile-faq-width);
        transform: translateX(0);
    }

    .btn-tickets--hidden + .btn-faq {
        transform: translateX(calc((var(--mobile-ticket-width) + var(--mobile-gap)) / -2));
    }
}
