/* FoxLand site presentation. Color variables are shared with all palette presets. */
.fox-logo-mini img,.fox-footer-logo img { object-fit:contain !important; object-position:center; }
.fox-logo-mini img { width:56px; height:56px; }
.fox-footer-logo img { width:64px; height:64px; }

.fox-rules-page .fox-site-wide-banner { height:clamp(260px,45vw,530px); min-height:clamp(260px,45vw,530px); aspect-ratio:auto; }
.fox-rules-page .fox-site-wide-banner > img { width:100%; height:100%; object-fit:fill; object-position:center; }
.fox-rules-page .fox-site-wide-banner:hover > img { transform:none; }
@media(max-width:768px){
    .fox-rules-page .fox-site-wide-banner { height:auto; min-height:0; aspect-ratio:33/14; }
}

.fox-main--access-gate { display:flex; justify-content:center; align-items:center; min-height:clamp(380px,57vh,620px); padding-block:40px; }
.fox-main--access-gate .fox-access-path { display:contents !important; }
.fox-main--access-gate [hidden] { display:none !important; }
.fox-access-gate {
    --fox-access-glow:rgba(var(--fox-accent-rgb,174,99,237),.32);
    position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:28px; width:min(560px,calc(100% - 16px)); min-height:230px; margin:0; padding:38px 34px;
    border:1px solid rgba(var(--fox-accent-rgb,174,99,237),.68); border-radius:20px;
    background:linear-gradient(145deg,rgba(var(--fox-accent-rgb,174,99,237),.10),rgba(9,6,18,.82) 65%);
    box-shadow:inset 0 1px rgba(255,255,255,.08),0 0 24px var(--fox-access-glow),0 18px 48px rgba(0,0,0,.3);
    text-align:center; animation:fox-access-breathe 5s ease-in-out infinite;
}
.fox-access-gate::before {
    content:""; position:absolute; z-index:-1; inset:5px; border:1px solid rgba(var(--fox-accent-rgb,174,99,237),.17);
    border-radius:15px; pointer-events:none;
}
.fox-access-gate p { max-width:440px; margin:0; color:var(--fox-accent-light,#e5caff); font-size:clamp(17px,2.4vw,21px); font-weight:600; line-height:1.55; }
.fox-access-login,.fox-site-confirm__button,.fox-notice-page .fox-notice-clear {
    display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:10px 24px;
    border:1px solid rgba(var(--fox-accent-rgb,174,99,237),.65); border-radius:11px;
    background:linear-gradient(135deg,rgba(var(--fox-accent-rgb,174,99,237),.18),rgba(9,6,18,.45));
    color:var(--fox-accent-light,#e7cbff); font-family:inherit; font-size:14px; font-weight:600; line-height:1.3; cursor:pointer; touch-action:manipulation;
    box-shadow:inset 0 1px rgba(255,255,255,.08); transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.fox-access-login { min-width:160px; }
.fox-access-login:hover,.fox-site-confirm__button:hover,.fox-notice-page .fox-notice-clear:hover:not(:disabled) {
    border-color:var(--fox-accent-light,#dab4ff); box-shadow:0 0 17px rgba(var(--fox-accent-rgb,174,99,237),.24);
}
.fox-access-login:focus-visible,.fox-site-confirm__button:focus-visible,.fox-notice-clear:focus-visible { outline:2px solid var(--fox-accent-light,#dab4ff); outline-offset:3px; }
@keyframes fox-access-breathe { 50% { border-color:var(--fox-accent-light,#dab4ff); box-shadow:inset 0 1px rgba(255,255,255,.08),0 0 36px rgba(var(--fox-accent-rgb,174,99,237),.43),0 18px 48px rgba(0,0,0,.3); } }

.fox-stats-page.fox-stats-page--unified > .fox-stats-frame {
    padding:clamp(15px,2.4vw,28px); border:1px solid rgba(var(--fox-accent-rgb,174,99,237),.38); border-radius:18px;
    background:linear-gradient(155deg,rgba(var(--fox-accent-rgb,174,99,237),.065),transparent 55%),var(--fox-tone-ts2l1,#0e0a18);
    box-shadow:0 16px 42px rgba(0,0,0,.26),inset 0 1px rgba(255,255,255,.04);
}
.fox-stats-page.fox-stats-page--unified .fox-stats-page__header { margin:0 0 20px; }
.fox-stats-page.fox-stats-page--unified .fox-stats-page__title-frame { padding:7px 16px; border:0; background:none; box-shadow:none; }
.fox-stats-page.fox-stats-page--unified .fox-stats-card { padding:0; border:0; background:none; box-shadow:none; }
.fox-stats-page.fox-stats-page--unified .fox-stats-card__head { padding-top:6px; }
.fox-stats-neon-divider { width:100%; height:1px; margin:0 0 24px; background:linear-gradient(90deg,transparent,rgba(var(--fox-accent-rgb,174,99,237),.6) 20%,var(--fox-accent-light,#dab4ff) 50%,rgba(var(--fox-accent-rgb,174,99,237),.6) 80%,transparent); box-shadow:0 0 13px rgba(var(--fox-accent-rgb,174,99,237),.5); }
.fox-stats-page.fox-stats-page--unified .fox-stats-motivation { margin-bottom:0; }

.fox-notice-toolbar .fox-notice-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; min-width:0; }
.fox-notice-toolbar .fox-notice-actions form { margin:0; }
.fox-notice-page .fox-notice-clear { flex:0 0 auto; padding:10px 16px; }
.fox-notice-clear svg { width:17px; height:17px; flex:0 0 auto; }
.fox-notice-page .fox-notice-clear:disabled,.fox-site-confirm__button:disabled { opacity:.4; cursor:default; }
.fox-site-confirm { width:min(470px,calc(100% - 28px)); max-height:calc(100dvh - 40px); margin:auto; padding:28px; overflow:auto; border:1px solid rgba(var(--fox-accent-rgb,174,99,237),.62); border-radius:18px; color:var(--fox-accent-light,#e5ceff); background:linear-gradient(145deg,rgba(var(--fox-accent-rgb,174,99,237),.12),transparent 75%),#0c0815; box-shadow:0 20px 70px rgba(0,0,0,.6),0 0 30px rgba(var(--fox-accent-rgb,174,99,237),.18); }
.fox-site-confirm[hidden] { display:none; }
.fox-site-confirm::backdrop { background:rgba(4,2,10,.75); backdrop-filter:blur(6px); }
.fox-site-confirm h2 { margin:0 0 13px; font-size:22px; line-height:1.3; color:inherit; }
.fox-site-confirm p { margin:0 0 22px; color:var(--fox-tone-as1l15,#c3b3d5); line-height:1.55; }
.fox-site-confirm__actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; }
.fox-site-confirm__error { color:#ffb9c4 !important; }

.fox-account-profile .fox-service-card--girl { --fox-card-art:url('../img/fox/profile-service-girl-v2.webp'); }
.fox-account-profile .fox-service-card--moder { --fox-card-art:url('../img/fox/profile-service-admin-v1.webp'); }
.fox-account-profile .fox-service-card--models { --fox-card-art:url('../img/fox/profile-service-models-v2.webp'); }
.fox-account-profile .fox-service-card--weapons { --fox-card-art:url('../img/fox/profile-service-weapons-v2.webp'); }
.fox-account-profile .fox-service-card--boost { --fox-card-art:url('../img/fox/profile-service-boost-v2.webp'); }
.fox-account-profile .fox-service-card--silence { --fox-card-art:url('../img/fox/profile-service-silence-v2.webp'); }
.fox-account-profile .fox-service-card--damage { --fox-card-art:url('../img/fox/profile-service-damage-v2.webp'); }
.fox-account-profile .fox-service-card--unban { --fox-card-art:url('../img/fox/profile-service-unban-v2.webp'); }
.fox-account-profile .fox-service-card--resources { --fox-card-art:url('../img/fox/profile-service-resources-v2.webp'); }
.fox-account-profile .fox-service-card--custom { --fox-card-art:url('../img/fox/profile-service-custom-v2.webp'); }
.fox-account-profile .fox-service-card--girl::before,.fox-account-profile .fox-service-card--models::before,.fox-account-profile .fox-service-card--weapons::before,.fox-account-profile .fox-service-card--boost::before,.fox-account-profile .fox-service-card--silence::before,.fox-account-profile .fox-service-card--damage::before,.fox-account-profile .fox-service-card--unban::before,.fox-account-profile .fox-service-card--resources::before,.fox-account-profile .fox-service-card--custom::before { background-position:center; }
@media(max-width:600px){
    .fox-access-gate { gap:24px; padding:30px 22px; border-radius:17px; }
    .fox-notice-toolbar .fox-notice-actions { justify-content:flex-start; width:100%; }
    .fox-site-confirm { padding:23px 20px; }
}
@media(prefers-reduced-motion:reduce){
    .fox-access-gate { animation:none; }
    .fox-access-login,.fox-site-confirm__button,.fox-notice-page .fox-notice-clear { transition:none; }
}

.fox-site-confirm[open]:not(:modal) { position:fixed; z-index:1055; inset:0; }

/* Statistics search sits above the one framed content area. */
.fox-stats-page.fox-stats-page--unified { padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
.fox-stats-page .fox-stats-searchbar { margin:0 0 16px; }
.fox-stats-page > .fox-stats-frame { min-width:0; }
.fox-stats-page .fox-stats-pagination { margin-top:20px; }

/* Only the artwork layer takes the service tone; text, previews and states stay sharp. */
.fox-account-profile .fox-profile-privileges .fox-service-card::before {
    background-image:linear-gradient(rgb(var(--fox-service-rgb)),rgb(var(--fox-service-rgb))),var(--fox-card-art);
    background-blend-mode:color,normal;
    background-size:cover; filter:none;
}
.fox-chat-panel #fox-chat-sticker-toggle .fox-chat-smile { width:23px; height:23px; display:block; }

/* The shared toolbar no longer places the action wrapper in an implicit grid cell. */
#fox-notice-page .fox-notice-toolbar { grid-template-columns:minmax(0,1fr); gap:14px; }
#fox-notice-page #fox-notice-title { grid-column:1; grid-row:1; justify-self:center; }
#fox-notice-page .fox-notice-actions { grid-column:1; grid-row:2; justify-self:end; display:flex; flex-wrap:nowrap; align-items:stretch; gap:10px; max-width:100%; }
#fox-notice-page .fox-notice-actions .fox-notice-mode-form { display:flex; grid-column:auto; justify-self:auto; margin:0; max-width:none; }
#fox-notice-page .fox-notice-actions button { min-height:44px; margin:0; transform:none; white-space:nowrap; }
#fox-notice-page .fox-notice-actions .fox-notice-clear { font-size:12px; }
#fox-notice-page .fox-notice-mode-form--setup { flex-wrap:wrap; }

/* Access screen fills the space between navigation and the footer. */
body.fox-page--access-gate { display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; }
body.fox-page--access-gate > .fox-navbar { flex:0 0 auto; }
body.fox-page--access-gate main.fox-main--access-gate { display:flex; flex:1 0 auto; min-height:320px; align-items:center; justify-content:center; padding:40px 16px; }
body.fox-page--access-gate .fox-footer { flex:0 0 auto; margin-top:0; }
body.fox-page--access-gate .fox-access-gate { width:min(660px,100%); min-height:270px; padding:44px 40px; gap:30px; }
body.fox-page--access-gate .fox-access-gate p { max-width:550px; font-size:clamp(19px,2vw,24px); }

.fox-fast-pagination { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:7px; width:100%; min-width:0; margin-top:18px; }
.fox-fast-pagination[hidden] { display:none!important; }
.fox-fast-pagination button { display:inline-flex; align-items:center; justify-content:center; min-width:40px; min-height:40px; padding:7px 11px; border:1px solid rgba(var(--fox-accent-rgb,174,99,237),.36); border-radius:10px; color:var(--fox-accent-light,#d8b7ff); background:linear-gradient(145deg,rgba(var(--fox-accent-rgb,174,99,237),.10),#100b1b); font-family:inherit; font-size:12px; font-weight:650; cursor:pointer; transition:border-color .2s,box-shadow .2s; }
.fox-fast-pagination button[aria-current=page] { border-color:var(--fox-accent-light,#d8b7ff); background:linear-gradient(135deg,rgba(var(--fox-accent-rgb,174,99,237),.65),rgba(var(--fox-accent-rgb,174,99,237),.28)); box-shadow:0 0 14px rgba(var(--fox-accent-rgb,174,99,237),.23); color:#fff; }
.fox-fast-pagination button:disabled { cursor:default; opacity:.4; }
.fox-fast-pagination button:hover:not(:disabled) { border-color:var(--fox-accent-light,#d8b7ff); box-shadow:0 0 12px rgba(var(--fox-accent-rgb,174,99,237),.22); }
.fox-fast-pagination button:focus-visible { outline:2px solid var(--fox-accent-light,#d8b7ff); outline-offset:3px; }
.fox-fast-pagination__gap { padding:0 3px; }
.fox-admin-grid > [hidden],.fox-profile-friends__list > [hidden],.fox-users-grid > [hidden] { display:none!important; }
.fox-admin-grid,.fox-profile-friends__list.fox-client-paged { max-height:none!important; overflow:visible!important; }

/* Renewal: artwork from the chosen card, with the same service-colored frame. */
body.fox-renew-open { overflow:hidden; }
.fox-account-profile #fox-renew-dialog { --fox-renew-rgb:174,99,237; position:fixed; inset:0; z-index:1080; display:flex; align-items:center; justify-content:center; padding:20px; overflow:auto; background:rgba(4,2,10,.78); backdrop-filter:blur(8px); }
.fox-account-profile #fox-renew-dialog[hidden] { display:none!important; }
.fox-account-profile .fox-renew-dialog__panel { position:relative; isolation:isolate; width:min(540px,100%); max-height:calc(100dvh - 40px); overflow:auto; margin:auto; padding:28px; border:1px solid rgba(var(--fox-renew-rgb),.65); border-radius:20px; background:#0c0814; box-shadow:0 24px 80px #0009,0 0 32px rgba(var(--fox-renew-rgb),.2),inset 0 1px #ffffff12; color:#eee7fa; }
.fox-account-profile .fox-renew-dialog__panel::before { content:""; position:absolute; z-index:-1; inset:0; border-radius:inherit; pointer-events:none; background-image:linear-gradient(180deg,#0c081440,#0c0814f2 68%),linear-gradient(rgb(var(--fox-renew-rgb)),rgb(var(--fox-renew-rgb))),var(--fox-renew-art,none); background-blend-mode:normal,color,normal; background-size:cover; background-position:center; opacity:.7; }
.fox-account-profile .fox-renew-dialog__head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 22px; padding:0 0 18px; border-bottom:1px solid rgba(var(--fox-renew-rgb),.28); }
.fox-account-profile .fox-renew-dialog__head h2 { margin:0; color:#f0e7ff; font-size:24px; line-height:1.25; }
.fox-account-profile .fox-renew-dialog__close { flex:0 0 40px; width:40px; height:40px; margin:0; border:1px solid rgba(var(--fox-renew-rgb),.4); border-radius:11px; background:#0b07166b; color:#e9dbfa; font-size:26px; line-height:1; cursor:pointer; }
.fox-account-profile .fox-renew-dialog__service { margin:0 0 22px; padding:11px 14px; border-left:2px solid rgba(var(--fox-renew-rgb),.7); background:rgba(var(--fox-renew-rgb),.09); color:#f3ebff; font-size:17px; font-weight:650; overflow-wrap:anywhere; }
.fox-account-profile .fox-renew-dialog__panel > label { display:block; margin:0 0 9px; color:#c5b6d4; font-size:12px; }
.fox-renew-choice { position:relative; }
.fox-renew-choice[hidden],.fox-renew-options[hidden] { display:none!important; }
.fox-renew-choice__toggle { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; min-height:48px; padding:12px 14px; border:1px solid rgba(var(--fox-renew-rgb),.5); border-radius:12px; color:#efe7fa; background:#10091dcc; text-align:left; font-family:inherit; font-size:13px; cursor:pointer; }
.fox-renew-choice__toggle svg { width:17px; height:17px; flex:0 0 17px; transition:transform .2s; }
.fox-renew-choice__toggle[aria-expanded=true] { border-color:rgb(var(--fox-renew-rgb)); box-shadow:0 0 14px rgba(var(--fox-renew-rgb),.16); }
.fox-renew-choice__toggle[aria-expanded=true] svg { transform:rotate(180deg); }
.fox-renew-choice__toggle:disabled { opacity:.6; cursor:default; }
.fox-renew-options { display:grid; gap:6px; max-height:220px; margin:8px 0 0; padding:8px; overflow:auto; border:1px solid rgba(var(--fox-renew-rgb),.4); border-radius:12px; background:#100a1af2; list-style:none; scrollbar-width:thin; }
.fox-renew-options li { margin:0; padding:0; list-style:none; }
.fox-renew-options button { display:flex; width:100%; min-height:44px; padding:10px 12px; border:1px solid transparent; border-radius:8px; background:transparent; color:#dcd0eb; font-family:inherit; font-size:13px; text-align:left; cursor:pointer; }
.fox-renew-options button:hover,.fox-renew-options button[aria-selected=true] { border-color:rgba(var(--fox-renew-rgb),.45); background:rgba(var(--fox-renew-rgb),.13); color:#fff; }
.fox-renew-choice button:focus-visible,.fox-account-profile #fox-renew-dialog button:focus-visible { outline:2px solid rgba(var(--fox-renew-rgb),.9); outline-offset:3px; }
.fox-account-profile .fox-renew-dialog__feedback { min-height:22px; margin:16px 0; color:#d8c9e7; font-size:12px; line-height:1.55; }
.fox-account-profile .fox-renew-dialog__actions { display:flex; align-items:stretch; gap:12px; margin-top:20px; }
.fox-account-profile .fox-renew-dialog__actions button { flex:1; min-height:46px; padding:11px 16px; border:1px solid rgba(var(--fox-renew-rgb),.48); border-radius:11px; color:#f2eaff; background:rgba(var(--fox-renew-rgb),.10); font-family:inherit; font-size:13px; font-weight:650; cursor:pointer; }
.fox-account-profile .fox-renew-dialog__actions .fox-renew-dialog__submit { background:linear-gradient(130deg,rgba(var(--fox-renew-rgb),.4),rgba(var(--fox-renew-rgb),.15)); box-shadow:0 0 18px rgba(var(--fox-renew-rgb),.13); }
.fox-account-profile .fox-renew-dialog__actions button:disabled { opacity:.45; cursor:default; }
@media(max-width:600px){
 #fox-notice-page .fox-notice-actions { justify-self:stretch; gap:7px; }
 #fox-notice-page .fox-notice-actions > * { flex:1 1 0; min-width:0; }
 #fox-notice-page .fox-notice-actions button { width:100%; padding:9px 8px; font-size:clamp(10.5px,3vw,12px); gap:5px; }
 #fox-notice-page .fox-notice-actions .fox-notice-clear svg { width:15px; height:15px; }
 body.fox-page--access-gate .fox-access-gate { padding:32px 24px; min-height:270px; }
 .fox-account-profile #fox-renew-dialog { padding:12px; }
 .fox-account-profile .fox-renew-dialog__panel { max-height:calc(100dvh - 24px); padding:22px 18px; }
 .fox-account-profile .fox-renew-dialog__head h2 { font-size:21px; }
 .fox-account-profile .fox-renew-dialog__actions { gap:8px; }
}
@media(prefers-reduced-motion:reduce){.fox-fast-pagination button,.fox-renew-choice__toggle svg{transition:none;}}

.fox-users-grid.fox-client-paged ~ .fox-users-pagination { display:none!important; }
