/* Each cover uses one square from the Cherry illustration sheet. */
.trial-cherry .cherry-art {
    --art-x: 0%;
    --art-y: 0%;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: #3b0c19 url("art/cherry-v15-art.webp") var(--art-x) var(--art-y) / 300% 200% no-repeat;
}
.trial-cherry .cherry-art--tether,
.trial-cherry .cherry-art--event { --art-x: 50%; }
.trial-cherry .cherry-art--honors,
.trial-cherry .cherry-art--referral { --art-x: 100%; }
.trial-cherry :is(.cherry-art--notice,.cherry-art--event,.cherry-art--referral) { --art-y: 100%; }

.cherry-login-gate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 12px;
    color: #fff3e9;
    background: #592034;
    border: 1px solid #b25767;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
}
.cherry-login-gate a {
    flex: none;
    padding: 6px 11px;
    background: #ffc7aa;
    color: #481423;
    border-radius: 5px;
}
.cherry-login-gate a:is(:hover,:focus-visible) { background: #ffe2cd; }

.trial-cherry .cherry-home-list { align-self: start; }
.cherry-home-list ul { margin: 0; padding: 0; list-style: none; }
.cherry-bulletin .cherry-home-list .board-item { margin: 0; padding: 0; border-color: #a64b6059; }
.cherry-bulletin .cherry-home-list--event { --list-accent: #ffc28d; }
.cherry-bulletin .cherry-home-list--notice { --list-accent: #ff9caf; }
.cherry-home-list .board-item a {
    --star-size: 17px;
    display: grid;
    align-items: center;
    grid-template-columns: var(--star-size) minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 40px;
    padding: 7px 4px;
    color: #ffeade;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.cherry-home-list .board-item a:is(:hover,:focus-visible) {
    color: #fff8ed;
    background: #7a30474d;
}
.cherry-home-list :is(.cherry-list-star,.cherry-list-arrow) { color: var(--list-accent); font-size: 15px; }
.cherry-bulletin .cherry-home-list .cherry-list-empty { padding: 9px 4px; color: #e2b4bf; }

body.trial-cherry .cherry-board-card:is(.notice-card,.cm-event-card) {
    overflow: hidden;
    min-width: 0;
    border: 1px solid #924657 !important;
    border-radius: 9px !important;
    background: linear-gradient(#572032,#35101e) !important;
}
body.trial-cherry .cherry-board-card:is(:hover,:focus-visible) { border-color: #ffc3a8 !important; }
.trial-cherry .cherry-board-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #290c18;
}
.trial-cherry .cherry-board-thumbnail > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.trial-cherry .cherry-board-card .cherry-board-title {
    display: block;
    margin: 0;
    padding: 10px;
    line-height: 1.4;
    color: #fff0e5;
    text-align: left;
    overflow-wrap: anywhere;
}
.cherry-ranked-banner,
.cherry-board-cover {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(110px,37%);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #a3505c;
    border-radius: 10px;
    background: radial-gradient(ellipse at top left,#73304a,#310918 76%);
    color: #fff1e8;
}
.cherry-board-cover { margin-bottom: 16px; }
.cherry-ranked-copy,
.cherry-board-cover > div {
    display: grid;
    align-content: center;
    min-width: 0;
    padding: clamp(13px, 3.5vw, 46px);
}
.cherry-ranked-copy > img { width: clamp(48px, 8vw, 93px); height: auto; margin-bottom: 8px; }
.cherry-ranked-copy h1,
.cherry-board-cover h1 {
    margin: 0;
    color: #fff3ec;
    font-size: clamp(19px, 3.65vw, 43px);
    line-height: 1.18;
    letter-spacing: -.045em;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 8px #21040f;
}
.cherry-ranked-copy p,
.cherry-board-cover > div > span { margin: 6px 0 0; color: #ffc9ae; font-size: clamp(11px, 1.6vw, 16px); }
.cherry-board-cover > div > span { margin: 0 0 7px; }
.cherry-ranked-banner > .cherry-art,
.cherry-board-cover > .cherry-art { align-self: center; }
.cherry-ranked-custom-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.trial-cherry .cherry-ranked-banner--tether { border-color: #c18657; }
.trial-cherry .cherry-ranked-banner--honors { background: radial-gradient(ellipse at top left,#713443,#2b0812 74%); }
.trial-cherry .cherry-rankings { border-color: #743342; background: #2c0c1b; }
.trial-cherry .cherry-rankings :is(.lb-tables,.lb-card:not(.place-1,.place-2,.place-3)) {
    border-color: #733240;
    background: linear-gradient(#471526,#31101e);
}
.trial-cherry .cherry-rankings .lb-refresh { border-color: #b45867; background: #622236; color: #fff1e2; }
.trial-cherry .cherry-page-art .cherry-scene--honors {
    width: min(100%, 270px);
    background: #3b0c19 url("art/cherry-v15-art.webp") 100% 0 / 300% 200% no-repeat;
    aspect-ratio: 1;
}

.trial-cherry #weekly-reward-dialog.cherry-reward-dialog {
    width: min(425px, calc(100vw - 26px));
    max-height: calc(100dvh - 34px);
    margin: auto;
    padding: 0;
    overflow: auto;
    color: #ffefe5;
    background: #35101f;
    border: 1px solid #bc6579;
    border-radius: 14px;
    box-shadow: 0 20px 75px #160410c9;
}
.cherry-reward-dialog::backdrop { background: #180510cf; backdrop-filter: blur(4px); }
.cherry-reward-dialog [hidden] { display: none !important; }
.cherry-reward-dialog .wr-inner { position: relative; padding: 0 17px 18px; text-align: left; }
.cherry-reward-cover {
    display: grid;
    grid-template-columns: minmax(0,1fr) 37%;
    align-items: center;
    margin: 0 -17px 16px;
    overflow: hidden;
    border-bottom: 1px solid #b03f58;
    background: radial-gradient(ellipse at 10% 30%,#8b2443,#400b1b 73%);
}
.cherry-reward-cover > img { width: min(122px, 78%); height: auto; margin-inline: auto; }
.cherry-reward-dialog[data-kind="payback"] .cherry-art { --art-x: 50%; --art-y: 0%; }
.cherry-reward-dialog .wr-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border: 1px solid #d3818a;
    border-radius: 50%;
    background: #471327eb;
    color: #fff3e9;
    font-size: 22px;
    cursor: pointer;
}
.cherry-reward-dialog .wr-title { margin: 0 0 8px; font-size: 21px; line-height: 1.35; color: #fff1e5; }
.cherry-reward-dialog .wr-message { margin: 0 0 12px; color: #eec3c9; font-size: 13px; line-height: 1.65; white-space: pre-line; }
.cherry-reward-dialog .wr-details {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 7px 12px;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid #86455b;
    border-radius: 8px;
    background: #270a18;
    font-size: 12px;
}
.cherry-reward-dialog .wr-details dt { color: #f0b9c3; }
.cherry-reward-dialog .wr-details dd { margin: 0; font-weight: 750; }
.cherry-reward-dialog .wr-amount { margin: 8px 0; color: #ffc993; font-weight: 900; font-size: 25px; }
.cherry-reward-dialog .wr-footer { display: flex; justify-content: end; flex-wrap: wrap; gap: 7px; }
.cherry-reward-dialog .wr-footer :is(a,button) {
    padding: 8px 13px;
    border: 1px solid #db8c92;
    border-radius: 6px;
    background: #552039;
    color: #fff2e6;
    font-weight: 750;
    font-size: 13px;
    cursor: pointer;
}
.cherry-reward-dialog .wr-footer button { background: #ffc4a9; color: #451324; }
.cherry-reward-dialog .wr-spinner {
    width: 20px;
    height: 20px;
    margin: 10px 0;
    border: 2px solid #925368;
    border-top-color: #ffe2cb;
    border-radius: 50%;
    animation: cherry-reward-spin .8s linear infinite;
}
@keyframes cherry-reward-spin { to { transform: rotate(360deg); } }
.trial-cherry .mw-links a[aria-busy="true"] { opacity: .75; pointer-events: none; }

.trial-cherry .cherry-service-copy .cherry-banner-cta {
    display: inline-flex;
    min-height: 19px;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    padding: 2px 6px 3px;
    border: 1px solid #ed9a85;
    border-radius: 4px;
    background: #84243e;
    color: #fff3e9;
    text-shadow: none;
    animation: cherry-v15-cta 2.2s var(--cherry-pulse-delay) ease-in-out infinite;
}
.trial-cherry .cherry-service-copy .cherry-banner-cta > span:first-child { font-size: inherit; transform: none; }
.trial-cherry .cherry-cta-arrow { line-height: .75; }
@keyframes cherry-v15-cta {
    0%, 22%, 68%, 100% { background: #84243e; color: #fff3e9; box-shadow: 0 0 0 transparent; }
    37%, 52% { background: #ffcf9b; color: #461323; box-shadow: 0 0 4px #ffc692, 0 0 13px #ffb878; }
}

body.trial-cherry :is([data-fox-bet-cart],[data-virtual-bet-form]) {
    --cherry-cart-surface: #30101f;
    --cherry-cart-panel: #4a172b;
    --cherry-cart-line: #855064;
    --cherry-cart-text: #fff0e4;
    --cherry-cart-muted: #e3b4be;
    background: linear-gradient(150deg,#47182c,#260b18) !important;
    border: 1px solid var(--cherry-cart-line) !important;
    border-radius: 10px !important;
    color: var(--cherry-cart-text) !important;
    box-shadow: 0 10px 25px #19061361 !important;
}
body.trial-cherry :is([data-fox-bet-cart],[data-virtual-bet-form]) :is(.os-cart-bar, h2, .os-cart-actions) {
    border-color: #a24d63 !important;
    color: var(--cherry-cart-text) !important;
}
body.trial-cherry :is([data-fox-bet-cart],[data-virtual-bet-form]) :is(.os-stake-row, .os-picks, .mg-pick, .os-cart-summary, .os-cart-limits, dl) {
    background: var(--cherry-cart-surface) !important;
    border-color: var(--cherry-cart-line) !important;
    border-radius: 6px;
    color: var(--cherry-cart-text);
}
body.trial-cherry :is([data-fox-bet-cart],[data-virtual-bet-form]) :is(.os-picks p, dt, .os-cart-note, small) { color: var(--cherry-cart-muted) !important; }
body.trial-cherry :is([data-fox-bet-cart],[data-virtual-bet-form]) :is(.os-return,.mg-payout,.os-product,.mg-price) { color: #ffc68e !important; }
body.trial-cherry :is([data-fox-bet-cart],[data-virtual-bet-form]) :is(button:not(.os-submit,.mg-submit),input,.os-cart-actions a) {
    border-color: var(--cherry-cart-line) !important;
    background: var(--cherry-cart-panel) !important;
    color: var(--cherry-cart-text) !important;
}
body.trial-cherry :is([data-fox-bet-cart],[data-virtual-bet-form]) :is(input,button,a):focus-visible {
    outline: 2px solid #ffc894;
    outline-offset: 2px;
}
body.trial-cherry :is([data-fox-bet-cart],[data-virtual-bet-form]) :is(.os-submit,.mg-submit) {
    background: linear-gradient(#ffd0a8,#ec938e) !important;
    color: #401222 !important;
    border: 1px solid #ffb897 !important;
    border-radius: 7px !important;
    font-weight: 900;
}
body.trial-cherry :is([data-fox-bet-cart],[data-virtual-bet-form]) :is(.os-submit,.mg-submit):disabled {
    background: #633048 !important;
    border-color: #915268 !important;
    color: #f1c4ce !important;
}
body.trial-cherry :is(.fxm-panel#fxm-cart,.fxm-cart-button) {
    background: #3d1022 !important;
    border-color: #a65b71 !important;
    color: #fff4ec !important;
}
body.trial-cherry .fxm-cart-button.is-filled { background: #c04a68 !important; }
body.trial-cherry .fxm-cart-button :is(svg,b) { color: #ffcaaa !important; }

@media (max-width: 760px) {
    .trial-cherry #fxm-cart .mg-cart > h2 {
        justify-content: flex-end;
        font-size: 0;
    }
    .trial-cherry #fxm-cart .mg-cart > h2 button { font-size: 11px; }
    .trial-cherry .cherry-rankings { padding: 8px; }
    .cherry-ranked-banner,
    .cherry-board-cover { grid-template-columns: minmax(0, 1fr) minmax(105px, 42%); }
    .cherry-ranked-copy,
    .cherry-board-cover > div { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .trial-cherry .cherry-service-copy .cherry-banner-cta,
    .cherry-reward-dialog .wr-spinner { animation: none; }
}
