/* Vyrelune's shop: Lady's look, with her fonts and colours */

.faire-page{
    --gold: #e2b85f;
    --card: #111315;
    --line: #181e23;
    --c: #976fff;
    max-width: 1490px;
}

.faire-page h1,
.faire-page h2{
    text-wrap: balance;
}

.faire-page a:focus-visible,
.faire-page button:focus-visible{
    outline: 2px solid #55f5ff;
    outline-offset: 2px;
}

/* Header: the secret page, with the cat welcoming from its door */
.faire-head{
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 20px 40px;
    align-items: center;
    min-height: 340px;
    padding: 36px 44px 0;
    border: 1px solid var(--line);
    background:
        radial-gradient(420px 320px at 84% 100%, rgba(123, 72, 252, .34), transparent 70%),
        #0d0d12;
}

/* Tiny lights, the same ones as on the banner */
.faire-head:before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 12% 18%, #e2b85f, transparent),
        radial-gradient(2px 2px at 31% 82%, #976fff, transparent),
        radial-gradient(1.5px 1.5px at 46% 26%, #fff, transparent),
        radial-gradient(2px 2px at 58% 12%, #976fff, transparent),
        radial-gradient(1.5px 1.5px at 66% 64%, #e2b85f, transparent),
        radial-gradient(2px 2px at 78% 20%, #fff, transparent),
        radial-gradient(2px 2px at 93% 44%, #e2b85f, transparent);
    pointer-events: none;
    animation: faire-twinkle 3.6s ease-in-out infinite alternate;
}

@keyframes faire-twinkle{
    from{ opacity: .35; }
    to{ opacity: 1; }
}

.faire-intro{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 36px;
}

.faire-game{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.faire-game img{
    display: block;
    width: 20px;
    height: 20px;
}

.faire-page #content-title{
    margin: 0;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
}

/* Violet to pink, like the cat's ears and the top bar's link */
.faire-page #content-title b{
    font-weight: 700;
    background: linear-gradient(90deg, #b79bff, #f3a3c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.faire-sub{
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--c);
}

/* His own words, with the line of Lady's menu */
.faire-page .faire-note{
    max-width: 620px;
    margin: 8px 0 0;
    padding-left: 16px;
    border-left: 2px solid var(--c);
    font-size: 15px;
    line-height: 1.6;
    color: #c3c3cc;
}

.faire-trust{
    display: block;
    margin-top: 8px;
    color: #fff;
}

/* The cat at its half-open door, its bubble on the left */
.faire-welcome{
    position: relative;
    align-self: end;
    height: 300px;
}

/* A magic door: a glowing violet edge, and a starry night deep inside */
.faire-door{
    position: absolute;
    right: 4px;
    bottom: 0;
    /* Its glow stops at the header's bottom edge */
    clip-path: inset(-120px -120px 0 -120px);
    width: 230px;
    height: 280px;
    border: 2px solid #cbb4ff;
    border-bottom: 0;
    border-radius: 115px 115px 0 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 45% at 50% 62%, rgba(123, 72, 252, .38), transparent 75%),
        #06050c;
    box-shadow:
        0 0 8px #b79bff,
        0 0 26px rgba(151, 111, 255, .85),
        0 0 70px rgba(123, 72, 252, .6),
        inset 0 0 22px rgba(151, 111, 255, .75);
    animation: faire-door-glow 3.2s ease-in-out infinite alternate;
}

@keyframes faire-door-glow{
    to{
        box-shadow:
            0 0 11px #cbb4ff,
            0 0 36px rgba(151, 111, 255, 1),
            0 0 90px rgba(123, 72, 252, .75),
            inset 0 0 30px rgba(151, 111, 255, .9);
    }
}

/* Its stars, twinkling */
.faire-door:before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1.5px 1.5px at 22% 18%, #fff, transparent),
        radial-gradient(1px 1px at 38% 9%, #fff, transparent),
        radial-gradient(2px 2px at 62% 14%, #e9dcff, transparent),
        radial-gradient(1px 1px at 78% 24%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 14% 36%, #cbb4ff, transparent),
        radial-gradient(1px 1px at 47% 30%, #fff, transparent),
        radial-gradient(2px 2px at 88% 42%, #fff, transparent),
        radial-gradient(1px 1px at 8% 54%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 92% 62%, #e9dcff, transparent),
        radial-gradient(1px 1px at 12% 74%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 86% 82%, #cbb4ff, transparent),
        radial-gradient(1px 1px at 30% 48%, #fff, transparent);
    animation: faire-twinkle 2.4s ease-in-out infinite alternate;
}

/* The cat's box with room around it: one shadow under the front paws, one
   under the back paw, which sits further away on the floor */
.faire-cat-shadow{
    position: absolute;
    right: -64px;
    bottom: -58px;
    clip-path: inset(0 0 58px 0);
    width: 392px;
    height: 310px;
    background:
        radial-gradient(ellipse 15% 4.4% at 65.4% 68.8%, rgba(0, 0, 0, .75), transparent),
        radial-gradient(ellipse 26% 6% at 37.5% 83%, rgba(0, 0, 0, .75), transparent);
    animation: faire-bubble-in .4s .3s ease-out both;
}

.faire-cat{
    position: absolute;
    right: 16px;
    z-index: 1;
    bottom: -18px;
    width: auto;
    height: 270px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55));
    animation: faire-cat-in .7s cubic-bezier(.2, .9, .3, 1.15) both;
}

@keyframes faire-cat-in{
    from{ opacity: 0; translate: 0 40px; }
}

.faire-bubble{
    position: absolute;
    left: 0;
    top: 6px;
    z-index: 1;
    width: 248px;
    margin: 0;
    padding: 12px 15px;
    border-radius: 14px;
    background: #fff;
    color: #1a1a22;
    font-size: 13.5px;
    line-height: 1.45;
    animation: faire-bubble-in .4s .55s ease-out both;
}

.faire-bubble b{
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
    color: #7b48fc;
}

.faire-bubble:after{
    content: "";
    position: absolute;
    right: -9px;
    top: 56%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 10px;
    border-color: transparent transparent transparent #fff;
}

@keyframes faire-bubble-in{
    from{ opacity: 0; scale: .9; }
}

@media (prefers-reduced-motion: reduce){
    .faire-head:before,
    .faire-door,
    .faire-door:before,
    .faire-cat,
    .faire-cat-shadow,
    .faire-bubble{
        animation: none;
    }
}

@media screen and (max-width: 1000px){
    .faire-head{
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 24px 0;
    }

    .faire-intro{
        padding-bottom: 0;
    }

    .faire-welcome{
        height: 340px;
    }

    .faire-door{
        right: calc(50% - 100px);
        width: 200px;
        height: 210px;
    }

    .faire-cat{
        right: calc(50% - 92px);
        height: 210px;
    }

    .faire-cat-shadow{
        right: calc(50% - 131px);
        bottom: -49px;
        clip-path: inset(0 0 49px 0);
        width: 305px;
        height: 241px;
    }

    .faire-bubble{
        left: 50%;
        width: min(100%, 320px);
        translate: -50% 0;
    }

    .faire-bubble:after{
        right: auto;
        left: calc(50% - 8px);
        top: 100%;
        border-width: 10px 8px 0;
        border-color: #fff transparent transparent;
    }
}

/* The transitions */
.faire-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
    gap: 24px;
    margin-top: 40px;
}

.faire-card{
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    background: var(--card);
    transition: border-color .18s ease;
}

.faire-card:hover{
    border-color: #2a323a;
}

.faire-card .im{
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1d1d22;
}

/* No time bar under these videos: they stay */
.faire-card .im:after{
    content: none;
}

.faire-card-body{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 18px 22px 20px;
}

.faire-card-info{
    min-width: 0;
    flex: 1 1 200px;
}

.faire-card-info h2{
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.faire-card-info h2 a{
    color: inherit;
}

.faire-card-info h2 a:hover{
    color: #b79bff;
}

.faire-card[hidden]{
    display: none;
}

.faire-tags{
    margin-top: 32px;
}

.faire-tags + .faire-grid{
    margin-top: 18px;
}

.faire-card-info p{
    margin: 4px 0 0;
    font-size: 13px;
    color: #9b9ba8;
}

.faire-card-buy{
    display: flex;
    align-items: center;
    gap: 16px;
}

.faire-card-buy .pk-prices{
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.faire-card-buy .pk-buy{
    min-height: 44px;
    padding: 0 26px;
    font-size: 14px;
}

.faire-empty{
    margin-top: 40px;
    padding: 40px;
    border: 1px dashed var(--line);
    border-radius: 0;
    text-align: center;
    color: #9b9ba8;
}

/* What comes with them */
.faire-perks{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px 32px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.faire-perks > div{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    align-items: start;
}

.faire-perks svg{
    grid-row: span 2;
    color: var(--c);
}

.faire-perks h3{
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
}

.faire-perks p{
    margin: 0;
    font-size: 13px;
    color: #9b9ba8;
}

/* Ordering an asset from Vyrelune */
.faire-order{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin-top: 56px;
    padding: 36px 44px;
    border: 1px solid var(--line);
    border-radius: 0;
}

.faire-order h2{
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.faire-order p{
    margin: 6px 0 0;
    font-size: 14.5px;
    color: #c3c3cc;
}

.faire-gold{
    background: #7b48fc;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 25px;
    font-size: 14.5px;
    font-weight: 600;
}

/* Questions, at the bottom of the page */
.faire-faq{
    margin-top: 48px;
}

.faire-faq h2{
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.faire-faq-list{
    max-width: 820px;
    border-top: 1px solid var(--line);
}

.faire-faq details{
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.faire-faq summary{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    list-style: none;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.faire-faq summary::-webkit-details-marker{
    display: none;
}

.faire-faq summary::after{
    content: "+";
    flex: none;
    color: var(--c);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.faire-faq details[open] summary::after{
    content: "\2212";
}

.faire-faq summary:hover{
    color: var(--c);
}

.faire-faq summary:focus-visible{
    outline: 2px solid #55f5ff;
    outline-offset: 4px;
}

.faire-faq p{
    max-width: 68ch;
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #c3c3cc;
}

.faire-faq p a{
    color: var(--c);
    text-decoration: underline;
}

.faire-gold:hover{
    background: #8a5dfc;
    color: #fff;
}

.faire-foot{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin: 40px 0 0;
    padding-top: 18px;
    border-top: 1px solid #1d1d22;
    font-size: 12.5px;
    color: #6c6c78;
}

/* An item's own page: its video, then what to know to buy it */
.faire-eyebrow{
    font-size: 13px;
    font-weight: 600;
    color: var(--c);
}

.faire-back{
    display: inline-flex;
    gap: 6px;
    font-size: 13px;
    color: #9b9ba8;
}

.faire-back:hover{
    color: var(--c);
}

.faire-item{
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 32px 40px;
    align-items: center;
    margin-top: 20px;
}

.faire-item .im{
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    background: #1d1d22;
}

.faire-item .im:after{
    content: none;
}

.faire-item-poster{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faire-item-side{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.faire-item-side .faire-card-buy{
    margin-top: 8px;
}

.faire-item-note{
    margin: 0;
    font-size: 12.5px;
    color: #6c6c78;
}

.faire-about{
    max-width: 720px;
    margin-top: 48px;
}

.faire-about h2,
.faire-more h2{
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.faire-about p{
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #c3c3cc;
}

.faire-more{
    margin-top: 48px;
}

.faire-more-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 16px;
}

.faire-more-card{
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    background: var(--card);
    color: #fff;
    transition: border-color .18s ease;
}

.faire-more-card:hover{
    border-color: #2a323a;
    color: #fff;
}

.faire-more-card img{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.faire-more-card span{
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
}

/* The cat in the corner of a product page: the header's door, smaller, and
   clicks go through it to the page under it */
.faire-corner{
    position: fixed;
    right: 110px; /* leaves the back to top button its corner */
    bottom: 0;
    z-index: 25;
    width: 242px;
    height: 300px;
    zoom: .7;
    pointer-events: none;
}

.faire-corner .faire-cat{
    bottom: 0;
}

.faire-corner .faire-cat-shadow{
    bottom: -40px;
}

.faire-corner .faire-bubble{
    left: auto;
    right: 256px;
    top: auto;
    bottom: 110px;
    width: max-content;
    padding: 18px 26px;
    border-radius: 18px;
    font-size: 20px;
}

@media screen and (max-width: 1000px){
    .faire-item{
        grid-template-columns: minmax(0, 1fr);
    }

    /* No room for it over the page */
    .faire-corner{
        display: none;
    }
}

/* Phones */
@media screen and (max-width: 760px){
    .faire-order{
        padding: 28px 24px;
    }
}

/* Before the shop opens: the date in place of the buy buttons */
.faire-opening{
    align-self: flex-start;
    margin: 6px 0 0;
    padding: 6px 14px;
    border: 1px solid #2a323a;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

.faire-soon{
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}
