/* Member theme overrides loaded after the existing panel styles. */
.trial-cherry .cherry-hero img { object-position:61% 50%; }
.trial-cherry .cherry-hero::before { background:linear-gradient(90deg,#2a0814fb,#3a0919a8 30%,transparent 77%); }

.trial-cherry .fox-header-controls > .cherry-event-nav {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:5px;
    min-width:0;
}
body.trial-cherry .fox-header-controls .cherry-event-nav > a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:31px;
    padding:4px 8px;
    border:1px solid #a34a5a;
    border-radius:4px;
    background:linear-gradient(#672039,#370d20);
    color:#fff0e3!important;
    font-size:11px;
    font-weight:825;
    white-space:nowrap;
    box-shadow:inset 0 1px #ffc2a42c;
}
body.trial-cherry .fox-header-controls .cherry-event-nav > a:is(:hover,:focus-visible) {
    background:#76203d;
    border-color:#ffc797;
    color:#fff5ee!important;
}
.cherry-event-nav .cherry-icon { width:14px;height:14px;color:#ffc09e; }

body.trial-cherry .fox-header-controls .mw-account-bar {
    gap:3px;
    padding:4px;
    border:1px solid #914257!important;
    border-radius:7px;
    background:linear-gradient(110deg,#371223,#55172d)!important;
}
body.trial-cherry .mw-account-bar > :is(.mw-name,.mw-stat,[data-partner-wallet]) {
    border-color:#a34e5f!important;
    background:#21091392!important;
    color:#ffe5d3!important;
}
body.trial-cherry .fox-header-controls [data-my-menu-trigger] {
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:linear-gradient(#ffd2a9,#d98383)!important;
    border-color:#ffcaa6!important;
    color:#3e0d21!important;
}
body.trial-cherry .fox-header-controls [data-my-menu-trigger] .cherry-icon { width:15px;height:15px; }

.cherry-desktop-games {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:7px;
}
.cherry-desktop-games > a {
    display:grid;
    overflow:hidden;
    min-width:0;
    border:1px solid #a64157;
    border-radius:8px;
    background:#4a1429;
    color:#fff3e7;
    box-shadow:inset 0 1px #f9b79438;
}
.cherry-desktop-games a:is(:hover,:focus-visible) { border-color:#ffd1a2; }
.cherry-desktop-games .cherry-scene { aspect-ratio:2.05; }
.cherry-desktop-games strong {
    display:flex;
    align-items:center;
    gap:6px;
    min-height:34px;
    padding:5px 7px;
    border-top:1px solid #b75665;
    background:linear-gradient(#69213c,#401323);
    font-size:clamp(11px,.95vw,14px);
    line-height:1.2;
    word-break:keep-all;
}
.cherry-desktop-games .cherry-icon { width:15px;height:15px;color:#ffc6a0; }

body.trial-cherry .fox-common-member-rail .fox-rail-account {
    border:1px solid #aa5166;
    border-radius:9px;
    background:linear-gradient(140deg,#43182b,#261018);
    box-shadow:0 4px 14px #14071074;
    overflow:hidden;
}
body.trial-cherry .fox-rail-account :is(.fox-rail-guest,.mw-member-panel) { border:0!important;border-radius:0!important;background:transparent!important; }
body.trial-cherry .fox-rail-account :is(.fox-rail-guest h2,.mw-member-heading) {
    display:flex;
    align-items:center;
    min-height:43px;
    gap:7px;
    color:#fff1e7!important;
    border-bottom:1px solid #9e4259!important;
    background:linear-gradient(102deg,#771e3a,#4e1530)!important;
}
.fox-rail-account h2 .cherry-icon { width:17px;height:17px;color:#ffc49d; }
body.trial-cherry .fox-rail-account .mw-member-panel dl  { display:grid;gap:4px;margin:0;padding:10px; }
body.trial-cherry .fox-rail-account .mw-member-panel dl > div  { padding:7px 8px;border:1px solid #81374e;background:#220b17!important;border-radius:5px;color:#f2bec5; }
body.trial-cherry .fox-rail-account .mw-member-panel dd { color:#ffe9d2!important;font-variant-numeric:tabular-nums; }
body.trial-cherry .fox-rail-account .mw-member-panel dd b { color:#ffc49e!important; }
body.trial-cherry .fox-rail-account .mw-wallet-actions { padding:0 10px 10px;gap:5px; }
body.trial-cherry .fox-rail-account .mw-wallet-actions .mw-button { background:linear-gradient(#7a213c,#481228)!important;border-color:#af5869!important; }
body.trial-cherry .fox-rail-account .mw-wallet-actions .mw-button:first-child { background:linear-gradient(#ffc7a5,#e88a88)!important;color:#431020!important; }

.trial-cherry .cherry-support { width:100%;gap:6px; }
.trial-cherry .cherry-service {
    width:100%;
    min-width:0;
    min-height:78px;
    aspect-ratio:2.62;
    container-type:inline-size;
    border-color:#ae5365;
    border-radius:7px;
}
.trial-cherry .cherry-service-art { inset:-1px; }
.trial-cherry .cherry-service::before { background:linear-gradient(90deg,transparent 24%,#30071465 43%,#2d0816cf 66%,#350d1b 100%); }
.trial-cherry .cherry-service-copy {
    justify-items:start;
    margin-left:44%;
    padding:5px 2px 4px 0;
    gap:1px;
    font-size:clamp(12px,7.8cqi,21px);
    line-height:1.04;
    letter-spacing:-.035em;
}
.trial-cherry .cherry-service-copy > :is(span,strong) { transform-origin:left center; }
.trial-cherry .cherry-service-copy > span { font-weight:900; }
.trial-cherry .cherry-service-copy strong {
    display:inline-block;
    font-size:clamp(16px,9.5cqi,27px);
    font-weight:950;
    color:var(--card-light);
    animation:cherry-banner-title 4.1s cubic-bezier(.24,.76,.3,1) infinite;
}
.trial-cherry .cherry-service--telegram .cherry-service-copy strong { animation-delay:.58s; }
.trial-cherry .cherry-service--kakao .cherry-service-copy strong { animation-delay:1.14s; }
.trial-cherry .cherry-service--notice .cherry-service-copy strong { animation-delay:1.7s; }
.trial-cherry .cherry-service-copy small { font-size:10px;margin-top:5px;padding:2px 5px; }
@keyframes cherry-banner-title {
    0%,13%,48%,100% { transform:none;text-shadow:0 1px 7px #210612; }
    23% { transform:translateX(3px) translateY(-2px) scale(1.08);text-shadow:0 0 8px var(--card-light),0 2px 3px #280817; }
    34% { transform:translateX(1px) scale(1.025);text-shadow:0 0 4px var(--card-light); }
}

.trial-cherry .cherry-game { min-height:88px; }
.trial-cherry .cherry-card-deal { inset:7px 9px 20px 9px; }
.trial-cherry :is(.cherry-deck,.cherry-dealt-card) { width:23px;height:32px; }
.trial-cherry .cherry-dealt-card { grid-template-rows:10px 1fr; }
.trial-cherry .cherry-dealt-card:nth-child(2) { --card-x:-38px;--card-y:24px; }
.trial-cherry .cherry-dealt-card:nth-child(3) { --card-x:-23px;--card-y:25px; }
.trial-cherry .cherry-dealt-card:nth-child(4) { --card-x:-8px;--card-y:22px; }
.trial-cherry .cherry-dealt-card b { font-size:8px; }
.trial-cherry .cherry-dealt-card i { font-size:15px; }
.trial-cherry .cherry-game--slot .cherry-game-image {
    background:linear-gradient(90deg,#210c17a9,#2c0b18c4),url("art/hero-v12.webp") 69% 54% / cover;
}
.cherry-slot-machine {
    position:absolute;
    top:8px;
    right:10px;
    display:grid;
    justify-items:center;
    align-content:center;
    width:64px;
    height:60px;
    gap:4px;
    border:1px solid #ffd1a1;
    border-radius:11px 11px 6px 6px;
    background:linear-gradient(134deg,#b87a61,#611c30 43%,#9c4c49 57%,#32101f);
    box-shadow:inset 0 0 0 2px #31101d81,0 3px 6px #13070b9e;
    pointer-events:none;
}
.cherry-slot-lamp { width:25px;height:4px;border-radius:4px;background:#f2a49b;box-shadow:0 0 6px #ffd4a1a8; }
.cherry-slot-machine .cherry-reel-case {
    position:static;
    width:54px;
    padding:2px;
    border-radius:4px;
    box-shadow:none;
}
.cherry-slot-tray { width:25px;height:5px;border:1px solid #bb7061;border-radius:2px;background:#2b0a17; }
.cherry-slot-lever { position:absolute;right:-6px;top:18px;width:5px;height:24px;border-radius:4px;background:#e1a081; }
.cherry-slot-lever::before { content:"";position:absolute;top:-3px;left:-1px;width:7px;height:7px;border-radius:50%;background:#ff8793; }

.trial-cherry .fox-provider-art.cherry-v12-dealer {
    aspect-ratio:1;
    transform:none;
    background:url("art/hosts-v12.webp") var(--cherry-x) var(--cherry-y) / 500% 200% no-repeat;
}
.trial-cherry .fox-provider-art.cherry-v12-dealer + .fox-provider-shade {
    background:linear-gradient(180deg,transparent 52%,#28091580 73%,#280915 95%);
}

.cherry-guide { min-width:0;color:#ffe7db;background:#2b0d1c; }
.cherry-guide-cover {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    min-height:87px;
    color:#fff3eb;
    background:#491326;
}
.cherry-guide-cover::before {
    content:"";
    position:absolute;
    z-index:-2;
    inset:0 0 0 25%;
    background:url("art/menu.webp") 0 100% / 300% 200%;
}
.cherry-guide-cover::after {
    content:"";
    position:absolute;
    z-index:-1;
    inset:0;
    background:linear-gradient(90deg,#481127 5%,#481127dc 44%,#26071418 100%);
}
.cherry-guide-cover--charge-check::before { background-position:50% 100%; }
.cherry-guide-cover--withdraw-method::before { background-position:100% 100%; }
.cherry-guide-cover--withdraw-check::before { background-position:50% 100%; }
.cherry-guide-cover--withdraw-check::after { background:linear-gradient(90deg,#3c0d22,#4b1429c2,#2d081250); }
.cherry-guide-cover strong { font-size:clamp(15px,1.55vw,22px);letter-spacing:-.04em;word-break:keep-all; }
.cherry-guide-glyph {
    display:grid;
    place-items:center;
    width:34px;height:34px;
    border:1px solid #de827f;
    border-radius:7px;
    background:#3d1025d9;
    color:#ffc29f;
}
.cherry-guide-steps { display:grid;gap:7px;margin:0;padding:12px 12px 12px 28px;color:#feded3;font-size:12px; }

body.trial-cherry #auth-dialog.cherry-auth {
    --ap-bg:#32101f;
    --ap-input:#250b17;
    --ap-border:#955268;
    --ap-muted:#e4b7bd;
    width:800px;
    background:#32101f;
    border:1px solid #b35e70;
    border-radius:12px;
    box-shadow:0 30px 96px #100610d9;
}
body.trial-cherry #auth-dialog.cherry-auth::backdrop { background:#180511d1; }
.cherry-auth .ap-shell { min-height:392px;grid-template-columns:36% minmax(0,1fr); }
body.trial-cherry .cherry-auth .cherry-auth-side { isolation:isolate;position:relative;display:grid;place-items:end center;min-width:0; }
body.trial-cherry .cherry-auth .cherry-auth-cover { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% center;z-index:-2; }
.cherry-auth .cherry-auth-side::after { content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(0deg,#2c091bcc,transparent 70%); }
.cherry-auth-brand { padding-bottom:28px; }
.cherry-auth-brand .cherry-wordmark { width:clamp(100px,15vw,160px); }
body.trial-cherry .cherry-auth .ap-main { background:linear-gradient(155deg,#41162c,#2a0b19 66%); }
body.trial-cherry .cherry-auth .ap-scroll { padding:clamp(18px,3.3vw,43px); }
body.trial-cherry .cherry-auth [data-auth-body] > h2 { text-align:left;color:#fff4e9;font-size:clamp(24px,3vw,32px);margin-bottom:17px;letter-spacing:-.045em; }
body.trial-cherry .cherry-auth :is(input:not([type="checkbox"]),select,textarea) { background:#260b1a;border-color:#804259;color:#fff0e5; }
body.trial-cherry .cherry-auth :is(input:not([type="checkbox"]),select,textarea):focus { border-color:#ffc09c; }
body.trial-cherry .cherry-auth :is(.ap-gray,.ap-small-link,.ap-close) { color:#f9ded0; }
body.trial-cherry .cherry-auth .ap-gray { background:#4f1c34;border:1px solid #905066; }
body.trial-cherry .cherry-auth .ap-red { background:linear-gradient(#ffca9f,#e18783);color:#461022;border:1px solid #ffba98;font-weight:825; }
body.trial-cherry .cherry-auth .ap-close { background:#4a152c;border:1px solid #935064; }
body.trial-cherry .cherry-auth .ap-hint { color:#e5b8c1; }
body.trial-cherry .cherry-auth :is(.is-error,.ap-errors,.ap-required) { color:#ffa0b6; }

@media(min-width:761px) and (max-width:1080px) {
    body.trial-cherry .fox-header-controls .cherry-event-nav > a { padding-inline:5px;font-size:10px; }
    .cherry-desktop-games strong { padding-inline:5px;gap:3px; }
    .trial-cherry .cherry-slot-machine { right:8px; }
}
@media(max-width:760px) {
    .trial-cherry .cherry-desktop-games,.trial-cherry .fox-header-controls .cherry-event-nav { display:none; }
    .trial-cherry .cherry-hero img { object-position:70% 50%; }
    .trial-cherry .cherry-service { min-height:71px; }
    .trial-cherry .cherry-service-copy { margin-left:42%; }
    .trial-cherry .cherry-service-copy small { margin-top:3px;font-size:8px; }
    body.trial-cherry #auth-dialog.cherry-auth { max-width:calc(100vw - 16px); }
    body.trial-cherry .cherry-auth .ap-shell { display:block;min-height:0; }
    body.trial-cherry .cherry-auth .cherry-auth-side { display:grid;place-items:center start;min-height:82px;padding:9px 16px; }
    .cherry-auth-brand { padding:0; }
    body.trial-cherry .cherry-auth .ap-scroll { padding:14px 15px 19px; }
}
@media(prefers-reduced-motion:reduce) {
    .trial-cherry .cherry-service-copy strong { animation:none; }
}

/* Legacy member branding assigns these shared auth colors with high priority. */
body.trial-cherry #auth-dialog.cherry-auth {
    --ap-bg:#32101f!important;
    --ap-input:#250b17!important;
    --ap-border:#955268!important;
    --ap-muted:#e4b7bd!important;
    background:#32101f!important;
    border-color:#b35e70!important;
    border-radius:12px!important;
}
body.trial-cherry #auth-dialog.cherry-auth .cherry-auth-side { background:#290c1c; }
body.trial-cherry #auth-dialog.cherry-auth :is(.ap-red,.ap-form-title) {
    background:linear-gradient(115deg,#ffca9f,#e18783)!important;
    color:#461022!important;
    border-color:#ffba98!important;
}
body.trial-cherry #auth-dialog.cherry-auth .ap-red:hover { background:linear-gradient(115deg,#ffd7af,#ee9990)!important; }
body.trial-cherry #auth-dialog.cherry-auth .ap-gray { background:#4f1c34!important;border-color:#905066!important;color:#fff2e6!important; }
.cherry-rail-profile {
    display:grid;
    place-items:center;
    width:27px;
    height:27px;
    border:1px solid #c57577;
    border-radius:50%;
    color:#ffd2ae;
    background:#521629;
    flex:none;
}
.cherry-rail-profile .cherry-icon { width:15px;height:15px; }
.cherry-auth-help { display:inline-flex;margin-top:12px;color:#ffc4a6;font-size:13px; }
