/* Artwork shown on the pages and overlays opened from the navigation. */
.trial-cherry {
    --cherry-notice-art: url("art/support.webp");
    --cherry-reward-art: url("art/menu.webp");
}
.cherry-page-art .cherry-scene--notice,
.cherry-board-art--notice {
    background: var(--cherry-notice-art) center 100% / 100% 400% no-repeat;
    background-color: #290813;
}
.cherry-page-banner:has(.cherry-scene--notice)::before {
    background: linear-gradient(90deg, #280a17 18%, #280a17d9 32%, transparent 60%);
}
.cherry-page-art .cherry-scene--notice { left: 40%; right: auto; width: 80%; aspect-ratio: 3; }
.cherry-scene--event,
.cherry-board-art--event {
    background: var(--cherry-reward-art) 100% 100% / 300% 200% no-repeat;
    background-color: #300b16;
}
.cherry-scene--rolling,
.cherry-scene--honors { background: url("art/hero-v12.webp") 72% center / cover no-repeat; }
.cherry-scene--tether,
.cherry-scene--payback { background-position: 0 100%; }
.cherry-scene--referral { background: url("art/support.webp") center 66.667% / 100% 400% no-repeat; }
.cherry-page-art .cherry-scene--referral { left: 40%; right: auto; width: 80%; aspect-ratio: 3; }
.cherry-page-banner:has(.cherry-scene--referral)::before {
    background: linear-gradient(90deg, #280a17 18%, #280a17d9 32%, transparent 60%);
}
.cherry-scene--mini { background: url("art/game-mini.webp") right center / cover no-repeat; }
.cherry-scene--virtual { background: url("art/game-virtual.webp") right center / cover no-repeat; }

.cherry-bulletin .cherry-board-art,
.cherry-board-fallback {
    display: block;
    width: 100%;
    min-height: 74px;
    aspect-ratio: 3;
}
.cherry-bulletin .cherry-board-art {
    border: 1px solid #8c354c;
    border-radius: 7px;
    margin: 8px 0 5px;
}
.cherry-bulletin .cherry-board-art:hover { border-color: #ffc6a9; }
.cherry-board-fallback { margin: 0; }
body.trial-cherry .notice-card-picture:has(.cherry-board-fallback) { width: 100%; }

.trial-cherry #weekly-reward-dialog {
    border-color: #ca6c7d;
    background: linear-gradient(145deg, #53192f, #240a17);
    color: #fff2ea;
}
.trial-cherry .cherry-weekly-art {
    height: 98px;
    margin: 0 0 17px;
    border: 1px solid #9b455b;
    border-radius: 8px;
    background: url("art/menu.webp") 0 100% / 300% 200% no-repeat;
}
.trial-cherry #weekly-reward-dialog[data-kind="referral"] .cherry-weekly-art {
    background: url("art/support.webp") center 66.667% / 100% 400% no-repeat;
}
.trial-cherry .wr-close { z-index: 1; }

body.trial-cherry .fox-rail-account #member-panel > .mw-member-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    gap: 8px;
}
.trial-cherry #member-panel .mw-panel-name { width: 100%; }
.trial-cherry #member-panel .mw-panel-tools { justify-self: end; gap: 8px; }
.trial-cherry #member-panel .mw-panel-tools > :is(a, button) { align-self: center; }

.trial-cherry .cherry-service {
    --cherry-title: #ffead6;
    --cherry-glint: #ffb67f;
    --cherry-copy-start: 50%;
}
.trial-cherry .cherry-service--telegram {
    --cherry-title: #e4f5ff;
    --cherry-glint: #7fd6ff;
}
.trial-cherry .cherry-service--kakao {
    --cherry-title: #fff0b8;
    --cherry-glint: #ffe182;
}
.trial-cherry .cherry-service--notice {
    --cherry-title: #ffe8d7;
    --cherry-glint: #ff927e;
}
.trial-cherry .cherry-service-copy > span { color: #f7d8ca; }
.trial-cherry .cherry-service-copy strong {
    position: relative;
    color: var(--cherry-title);
    background: none;
    animation: cherry-v14-title 2.65s var(--cherry-pulse-delay) ease-in-out infinite;
    text-shadow: 0 2px 2px #210511;
}
.trial-cherry .cherry-service-copy strong::after {
    content: attr(data-shine) / "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: #fffef9;
    clip-path: polygon(-28% 0, 0 0, -14% 100%, -42% 100%);
    animation: cherry-v14-sweep 2.65s var(--cherry-pulse-delay) ease-in-out infinite;
}
@keyframes cherry-v14-title {
    0%, 15%, 66%, 100% { text-shadow: 0 2px 2px #210511; }
    34%, 43% { text-shadow: 0 0 5px var(--cherry-glint), 0 0 12px var(--cherry-glint), 0 0 20px var(--cherry-glint); }
}
@keyframes cherry-v14-sweep {
    0%, 16% { clip-path: polygon(-28% 0, 0 0, -14% 100%, -42% 100%); }
    51%, 100% { clip-path: polygon(113% 0, 141% 0, 127% 100%, 99% 100%); }
}
.trial-cherry .cherry-service-copy .cherry-banner-cta {
    align-items: baseline;
    width: max-content;
    min-height: 0;
    margin-top: 4px;
    padding: 1px 1px 3px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #ba7773;
    background: none;
    color: #ffd7b7;
    line-height: 1;
    animation: cherry-v14-shortcut 2.65s var(--cherry-pulse-delay) ease-in-out infinite;
}
.trial-cherry .cherry-banner-cta > span {
    font-size: 1.15em;
    transition: transform .18s ease;
}
.trial-cherry .cherry-service:is(:hover, :focus-visible) .cherry-banner-cta > span { transform: translate(2px, -1px); }
@keyframes cherry-v14-shortcut {
    0%, 24%, 72%, 100% { border-color: #ba7773; text-shadow: 0 1px #270710; }
    45%, 54% { border-color: #ffe8c0; text-shadow: 0 0 9px #ffc28d, 0 0 4px #ffc28d; }
}

body.trial-cherry #auth-dialog .cherry-auth-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 88px;
    aspect-ratio: 3.2;
    padding: 0;
    margin-top: 16px;
    border: 1px solid #bc6c79;
    border-radius: 8px;
    background: #360b1a;
    color: #fff6ed;
    text-decoration: none;
}
body.trial-cherry #auth-dialog .cherry-auth-banner:is(:hover, :focus-visible) {
    background: #360b1a;
    border-color: #ffcaad;
}
.cherry-auth-contact-art {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("art/support.webp") center 66.667% / 100% 400% no-repeat;
}
.cherry-auth-banner.is-telegram .cherry-auth-contact-art { background-position: center 33.333%; }
.cherry-auth-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, transparent 42%, #360b1a66 51%, #3d1023 66%);
}
.cherry-auth-contact-copy {
    display: grid;
    gap: 6px;
    padding: 9px 7px 9px 0;
    margin-left: 52%;
}
.cherry-auth-contact-copy strong { font-size: clamp(15px, 2.8vw, 22px); line-height: 1.15; word-break: keep-all; letter-spacing: -.035em; }
.cherry-auth-contact-copy small { margin-left: 0; width: fit-content; padding-bottom: 2px; border-bottom: 1px solid #b77770; letter-spacing: .02em; }

@media (max-width: 760px) {
    .trial-cherry .cherry-service { --cherry-copy-start: 47%; }
    .cherry-page-art .cherry-scene--notice,
    .cherry-page-art .cherry-scene--referral { left: 34%; width: max(245px, 85%); }
}
@media (prefers-reduced-motion: reduce) {
    .trial-cherry .cherry-service-copy :is(strong, .cherry-banner-cta),
    .trial-cherry .cherry-service-copy strong::after { animation: none; }
    .trial-cherry .cherry-banner-cta > span { transition: none; }
}
