/* Keep these overrides in one cascade layer above the older unlayered, important theme rules. */
@layer anxinAppearance {
  html[data-ax-appearance="pearl"] {
    --ap-bg:#f8f4eb; --ap-paper:#fffdf7; --ap-tint:#f1e9de; --ap-head:#fffdf7;
    --ap-ink:#322830; --ap-muted:#625860; --ap-action:#704674; --ap-rule:#d9cfc4; --ap-input:#998494;
  }
  html[data-ax-appearance="ice"] {
    --ap-bg:#eaf1fa; --ap-paper:#fbfdff; --ap-tint:#d9e7f9; --ap-head:#d9e6f8;
    --ap-ink:#1b2f51; --ap-muted:#475a74; --ap-action:#315b97; --ap-rule:#c5d5e9; --ap-input:#7b92af;
  }
  html[data-ax-appearance="classic"] {
    --ap-bg:#0b101b; --ap-paper:#151f30; --ap-ink:#eef3fc; --ap-muted:#c5d1e3; --ap-input:#637591;
  }
  .ax-appearance-row {
    display:flex!important; align-items:center; justify-content:flex-end; gap:9px;
    box-sizing:border-box; width:100%; max-width:1240px; margin:0 auto!important;
    padding:5px clamp(12px,3vw,40px); position:relative; z-index:2;
    color:var(--ap-muted)!important; font:600 14px/1.4 "Microsoft JhengHei",sans-serif!important;
  }
  .ax-appearance-row label {color:var(--ap-muted)!important; margin:0!important; font:inherit!important}
  .ax-appearance-row select {
    appearance:auto!important; box-sizing:border-box; margin:0!important; display:block!important;
    width:auto!important; min-width:105px; min-height:40px; padding:5px 10px!important;
    border:1px solid var(--ap-input)!important; border-radius:7px!important;
    background:var(--ap-paper)!important; color:var(--ap-ink)!important;
    font:600 16px/1.4 "Microsoft JhengHei",sans-serif!important; cursor:pointer;
  }
  .ax-appearance-row select:focus-visible {outline:2px solid currentColor; outline-offset:2px}
  .ax-appearance-row button {width:auto!important;min-height:40px;padding:5px 12px!important;background:var(--ap-paper)!important;color:var(--ap-ink)!important;border:1px solid var(--ap-input)!important;border-radius:7px;font:600 16px/1.4 sans-serif!important;cursor:pointer}
  @media(max-width:760px){.ax-appearance-row select{min-height:44px}}
  @media print{.ax-appearance-row{display:none!important}}

  html[data-ax-appearance]:not([data-ax-appearance="classic"]) {
    color-scheme:light!important; background:var(--ap-bg)!important; color:var(--ap-ink)!important;
    --ax-bg:var(--ap-bg)!important; --ax-text:var(--ap-ink)!important; --ax-title:var(--ap-ink)!important;
    --ax-border:var(--ap-rule)!important; --ax-panel:var(--ap-paper)!important; --ax-accent:var(--ap-action)!important;
    --bg:var(--ap-bg)!important; --paper:var(--ap-bg)!important; --panel:var(--ap-paper)!important; --text:var(--ap-ink)!important; --ink:var(--ap-ink)!important;
    --line:var(--ap-rule)!important; --muted:var(--ap-muted)!important; --accent:var(--ap-action)!important;
    --plum:var(--ap-action)!important; --fm-muted:var(--ap-muted)!important; --fm-accent:var(--ap-action)!important;
    --cyan:var(--ap-action)!important; --purple:var(--ap-action)!important;
    & .an-news {--news-bg:var(--ap-bg)!important;--news-panel:var(--ap-paper)!important;--news-line:var(--ap-rule)!important;--news-muted:var(--ap-muted)!important;--news-accent:var(--ap-action)!important}
    & :where(body,#warpper,.contain,.news-warp,.wiki-main,.wiki-directory,.wiki-guide,.wiki-other,.wiki-faq,.wiki-benefits,.an-news,.portal-editorial,.ax-activity-main,.wiki-contact,.section04,#anxin-trust,.ax-home-links) {background-color:var(--ap-bg)!important;color:var(--ap-ink)!important}
    & :where(#head .header,#head .neirong,.portal-quick-dock,.portal-quick-nav,.site-header,.news-top,.ax-activity-nav,.mobile-annual-bar,#foot .footer,.ax-footer-signature,.site-footer,.news-bottom,.ax-activity-footer,.mobile-action,.news-mobile-actions,.wiki-mobile-bar,.fm-menu) {background:var(--ap-head)!important;color:var(--ap-ink)!important;border-color:var(--ap-rule)!important}
    & :where(.navigation,.crumbs,.news-breadcrumb,.portal-quick-nav a,.wiki-section-head>a,.note,.news-tag,.news-state,.news-event-state,.guide-card-category,.axv-steps summary,.price-example,.mc-entry-benefits,.gift-status,.axv-paper,.news-facts,.anxin-trust-contact,.gift-note,.bp-rules-strip,.expiry-note) {background:var(--ap-tint)!important;color:var(--ap-ink)!important;border-color:var(--ap-rule)!important}
    & :where(.news-details,.wiki-section-head,.wiki-games-intro,.anxin-members-intro,.index-case li,.guide-card,.wiki-guide-grid>a,.wiki-benefit-grid>a,.anxin-trust-card,.inquiry-prep,.inquiry-prep li,.wiki-faq details,.wiki-contact,.news-card,.news-event,.news-info,.news-aside,.news-filter,.news-empty,.axv-panel,.axv-example,.axv-flow,.axv-film,.axv-answer,.axv-steps details,.axv-methods a,.axv-proofs a,.gift-card,.gift-intro,.gift-tools,.ag-note,.u-card,.u-note,.u-section,.u-stats,.article,.summary,.related,.panel,.fm-tile,.fm-shortcuts,.fm-row,.mc-membership,.mc-balance,.mc-reward-row,.mc-service,.mc-account-panel,.bp-coupon,.rules-section,.how-section,.ax-details,.ax-rule-note,.portal-carousel-controls button,.guide-controls,.guide-hub-intro,.news-article) {background:var(--ap-paper)!important;color:var(--ap-ink)!important;border-color:var(--ap-rule)!important}
    & :where(.news-text [style*="background"],.news-text details,.news-text summary,.news-text th,.news-text td,.news-text table,.news-text code) {background-color:var(--ap-tint)!important;color:var(--ap-ink)!important;border-color:var(--ap-rule)!important}
    & :where(#head .nav a,#head .neirong a,.site-header nav a,.news-nav a,.ax-activity-nav a,.news-text a,.news-warp a,.news-more,.news-nav a,.crumbs a,.navigation a,.site-footer a,.wiki-faq a,.guide-card-action,.axv-share,.axv-zoomhint,.news-card h2 a,.news-card h3 a,.news-event h2 a,#foot .ftcont a,.news-text summary,.summary a,.related a,.news-filter label,.quiet-link,.wiki-section-head>a,.guide-hub-link) {color:var(--ap-action)!important}
    & :where(.wiki-heading,.wiki-section-head,.wiki-games-intro,.anxin-members-intro,.anxin-trust-copy,.anxin-trust-card,.news-details,.index-case,.news-title,.wiki-faq,.wiki-benefits,.guide-grid,.inquiry-prep,.guide-home-head,.news-head,.news-card-body,.news-index-head,.news-article,.news-event,.article,.summary,.rules-list,.annual-copy,.panel,.mc-home,.site-footer,.ax-details) :where(h1,h2,h3,h4,strong,b,.h2,.h2 span,.title,summary,dt) {color:var(--ap-ink)!important}
    & :where(.news-text,.news-card-body,.news-title,.news-index-head,.news-event,.news-article,.wiki-section-head,.wiki-games-intro,.axv-panel,.wiki-guide,.wiki-faq,.wiki-benefit-grid,.guide-card,.anxin-trust-card,.anxin-trust-copy,.wiki-contact,.inquiry-prep,#foot,.news-bottom,.summary,.article,.panel,.mc-home,.rules-list,.annual-copy,.ax-details) :where(p,li,span:not([class]),dd,time,small,figcaption) {color:var(--ap-muted)!important}
    & :where(.wiki-kicker,.wiki-eyebrow,.wiki-inline-help,.guide-meta,.news-meta,.news-date,.news-lead,.news-breadcrumb,.game-directory-link .h2,.index-case a .h2 span,.fine-print,.max-note,.fm-label,.muted,.breadcrumb,.news-article th,#foot .ftcont,.wiki-search,.wiki-search label,.wiki-search span,.gift-region,.axv-grid figcaption) {color:var(--ap-muted)!important}
    & :where(input:not([type=checkbox],[type=radio],[type=hidden],[type=image],[type=submit]),select,textarea,.request) {background:var(--ap-paper)!important;color:var(--ap-ink)!important;border-color:var(--ap-input)!important}
    & ::placeholder {color:var(--ap-muted)!important;opacity:1}
    & :where(.portal-quick-nav a,.anxin-member-nav,.anxin-member-mobile,.member-button,.member-nav a,.member-nav summary,.copy,.news-tabs a,.axv-methods a,.axv-proofs a,.wiki-mobile-find,.guide-controls button,.gift-copy,.text-button,.axv-flow-link,.news-event-links a,.anxin-trust-action,.wiki-guide-grid>a,.wiki-benefit-grid>a) {background:var(--ap-tint)!important;color:var(--ap-action)!important;border-color:var(--ap-input)!important}
    & :where(.member-nav a[aria-current],.news-tabs [aria-current],.axv-methods [aria-selected=true],.axv-proofs [aria-selected=true],.primary,.button.plum,.bp-tabs .selected) {background:var(--ap-action)!important;color:white!important}
    & :where(.line-button,.axv-send,.line,.anxin-trust-line,.wiki-mobile-line,.inquiry-line,.wiki-line,.service-line,.news-line,.anxin-trust-action-line) {background:#176743!important;color:#fff!important;border-color:#176743!important}
    & :where(.axv-send,.line-button,.inquiry-line,.anxin-trust-line,.wiki-mobile-line) :where(span,b,strong) {color:white!important}
    & #head .btn-m-list span {background:var(--ap-ink)!important}
    & :where(.game-directory-link,.index-case .pic,.h2,.h2 span,.index-case li>a,.index-news,.index-news a) {background-color:transparent!important}
    & :where(.game-directory-link,.index-case li>a,.wiki-guide-grid>a,.wiki-benefit-grid>a):hover {background-color:var(--ap-tint)!important;color:var(--ap-ink)!important}
    & :where(.wiki-directory .index-case li,.index-case li>a,.wiki-guide-grid>a,.wiki-benefit-grid>a)::before {background-color:var(--ap-tint)!important}
    & :focus-visible {outline-color:var(--ap-action)!important}
    & .ax-appearance-row {background:var(--ap-bg)!important}
  }
  html[data-ax-appearance]:not([data-ax-appearance="classic"]) {
    & :is(#ax-ft,#ax-method-picker,.news-tracking,body>footer:not(.ax-activity-footer),body.spin-screen main,.spin-support,.member-nav details>div,.news-home-reminders) {background:var(--ap-bg)!important;color:var(--ap-ink)!important;border-color:var(--ap-rule)!important}
    & :is(.axv-first-notice,#ax-method-picker .ax-method,.guide-hub-link,#popular-service-links,.anxin-member-nav a,.member-nav a,.member-nav summary,.neirong-bd a,.ax-home-benefit,.guide-home-head a,.guide-home-more a) {background:var(--ap-tint)!important;color:var(--ap-action)!important;border-color:var(--ap-rule)!important}
    & :is(.axv-methods a[aria-current=true],.axv-proofs a[aria-current=true],.member-nav a[aria-current=page]) {background:var(--ap-action)!important;color:white!important}
    & :is(.quick-swipe-label span,.wiki-inline-help a,.anxin-trust-hours p,.anxin-trust-hours b,.anxin-trust-hour-value,.an-news .news-head a,.news-home-reminders a,.wiki-contact h2,.wiki-games-intro label,#popular-service-links summary,.news-title .date,.news-text,.axv-proofs,.axv-film-title,.index-news a,.tmain .h3,.ax-method-heading h1,.ax-method-heading p,.ax-flow-link,.ax-method-name,.news-tracking summary,.news-tracking p,.news-tracking li span,.footer-bottom span,.ax-entry-note,.ax-entry-note a,.news-home-reminders p) {color:var(--ap-ink)!important}
    & :is(.wiki-guide-grid,.wiki-benefit-grid) :is(b,span,em),& .anxin-trust-action:not(.anxin-trust-action-line) span {color:var(--ap-action)!important}
    & :is(.wiki-inline-help a[href*="lin.ee"],.wiki-contact a[href*="lin.ee"],#foot a[href*="lin.ee"],.cta-line,.anxin-trust-action-line,.anxin-trust-line-symbol) {background:#176743!important;color:white!important}
    & :is(.line,.axv-send,.inquiry-line,.line-button,.anxin-trust-line,.anxin-trust-action-line,.news-line) {background:#176743!important;color:white!important}
    & :is(.anxin-trust-action-line,.anxin-trust-line) span {color:white!important}
    & .ax-card-copy .ax-card-link {color:#f5e7d7!important}
    & :is(.spin-support,.ice-daily aside) :is(h1,h2,p,label,li) {color:var(--ap-ink)!important}
    & :is(.spin-support,.ice-daily aside) :is(details,summary) {background:var(--ap-tint)!important;color:var(--ap-ink)!important}
    & .price-example span {color:var(--ap-muted)!important}
    & :is(.ax-home-benefit-copy,.guide-home-head,.checkin,.side-content) :is(p,h1,h2,h3,strong,small,summary),& :is(.ax-home-benefit-link,.ax-home-benefit-link span,.ice-links a) {color:var(--ap-ink)!important}
    & :is(.side-content,.checkin,.ice-links a,.ax-method-name) {background:var(--ap-paper)!important;color:var(--ap-ink)!important;border-color:var(--ap-rule)!important}
    & :is(.anxin-trust-card .anxin-trust-action:not(.anxin-trust-action-line),.site-header .member-nav a,.site-header .member-nav summary,#head .neirong-bd a) {background:var(--ap-tint)!important;color:var(--ap-action)!important;border-color:var(--ap-rule)!important}
    & .annual-page .button.plum {background:var(--ap-action)!important;color:#fff!important}
    & :is(.guide-controls label,.gift-tools label,.ag-metrics,.ag-index,#gift-help h3,.u-date,.u-meta,.anxin-card-copy) {color:var(--ap-ink)!important}
    & :is(.u-link,.anxin-activity-link .anxin-card-copy,#gift-help .list-paddingleft-2 li) {background:var(--ap-paper)!important;color:var(--ap-ink)!important}
  }
}

@layer anxinAppearance {
  html[data-ax-appearance="pearl"] .ax-featured-carousel {--slide-wash:255,249,236}
  html[data-ax-appearance="ice"] .ax-featured-carousel {--slide-wash:237,246,255}
  html:is([data-ax-appearance="pearl"],[data-ax-appearance="ice"]) .ax-featured-carousel {
    background:var(--ap-tint)!important;
    color:var(--ap-ink)!important;
    & .portal-slides, & .portal-carousel-controls, & .portal-playback {background:transparent!important}
    & .portal-slide {
      background:var(--ap-paper)!important;
      border-color:var(--ap-input)!important;
    }
    & :is(#portal-prev,#portal-next,#portal-autoplay) {
      background:var(--ap-paper)!important;color:var(--ap-action)!important;
      border:1px solid var(--ap-input)!important;
    }
    & :is(#portal-prev,#portal-next,#portal-autoplay):hover {
      background:var(--ap-action)!important;color:white!important;
    }
    & #portal-dots button {background:transparent!important;border:0!important;box-shadow:none!important}
    & #portal-dots button::after {background:var(--ap-paper)!important;box-shadow:inset 0 0 0 2px var(--ap-input)!important}
    & #portal-dots button[aria-current="true"]::after {
      background:var(--ap-action)!important;
      box-shadow:0 0 0 2px var(--ap-paper),0 0 0 4px var(--ap-action)!important;
    }
    & .ax-phone-slide::before {
      content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
      background:linear-gradient(90deg,rgba(var(--slide-wash),.99) 0%,rgba(var(--slide-wash),.98) 36%,rgba(var(--slide-wash),.92) 47%,rgba(var(--slide-wash),.24) 59%,transparent 68%)!important;
    }
    & .ax-phone-slide .ax-promo-copy {z-index:2;text-shadow:none!important;background:transparent!important}
    & .ax-phone-slide :is(.ax-promo-title,.ax-promo-prize,.ax-promo-model,.ax-promo-lead) {color:var(--ap-ink)!important;text-shadow:none!important}
    & .ax-phone-slide :is(.ax-promo-dates,small) {color:var(--ap-muted)!important;text-shadow:none!important}
    & .ax-phone-slide .ax-promo-cta, & .ax-phone-slide .ax-promo-cta span {background:var(--ap-action)!important;color:white!important}
  }
}
