/* r947 — One Fbrkh family from the owner-approved r830 light homepage.
   Scope: PUBLIC SECONDARY PAGES ONLY. No games, gameplay, account or payment logic.
   Existing components remain present, interactive, and in document order. */
html[data-ui-mode="modern"]{
  --site-paper:#fffdfb;
  --site-canvas:#f9f6fc;
  --site-surface:#ffffff;
  --site-ink:#24113f;
  --site-copy:#3c3150;
  --site-muted:#5c5269;
  --site-purple:#6420d6;
  --site-purple-deep:#4e13ae;
  --site-purple-wash:#f1eafd;
  --site-gold:#eba83a;
  --site-stroke:#dfd4e9;
  --site-focus:#6930cf;
  --site-shadow:0 18px 42px rgba(55,27,95,.09);
}
html[data-ui-mode="modern"] body:is(
 .fbrkh-commerce-shell,.public-trust-page,.utility-legal,
 .utility-payment-result,.fbrkh-status-page,.utility-offline,.account-reset-page
){
  color:var(--site-ink)!important;
  color-scheme:light!important;
  background:radial-gradient(740px 400px at 92% -4%,rgba(229,198,252,.28),transparent 73%),
    radial-gradient(640px 360px at 2% 65%,rgba(250,219,169,.16),transparent 75%),
    var(--site-paper)!important;
  background-attachment:scroll!important;
  font-family:"Alexandria",Tahoma,"Segoe UI",Arial,sans-serif!important;
  overflow-x:clip;
}
html[data-ui-mode="modern"] body:is(
 .fbrkh-commerce-shell,.public-trust-page,.utility-legal,
 .utility-payment-result,.fbrkh-status-page,.utility-offline,.account-reset-page
) :is(h1,h2,h3,h4,strong,b,legend){
  color:var(--site-ink)!important;
  text-shadow:none!important;
}
html[data-ui-mode="modern"] body:is(
 .fbrkh-commerce-shell,.public-trust-page,.utility-legal,
 .utility-payment-result,.fbrkh-status-page,.utility-offline,.account-reset-page
) :is(p,li,small,.muted,.hint,.support-receipt-note,.checkout-security-note,.ticket-never-expires){
  color:var(--site-muted)!important;
  opacity:1!important;
  line-height:1.8;
  overflow-wrap:break-word;
}
html[data-ui-mode="modern"] body:is(
 .fbrkh-commerce-shell,.public-trust-page,.utility-legal,
 .utility-payment-result,.fbrkh-status-page,.utility-offline,.account-reset-page
) :is(a,button,input,select,textarea,summary){
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
html[data-ui-mode="modern"] body:is(
 .fbrkh-commerce-shell,.public-trust-page,.utility-legal,
 .utility-payment-result,.fbrkh-status-page,.utility-offline,.account-reset-page
) :is(a,button,input,select,textarea,summary):focus-visible{
  outline:3px solid var(--site-focus)!important;
  outline-offset:3px!important;
}
/* Header follows the actual approved light homepage. Keep its navigation visible. */
html[data-ui-mode="modern"] body:is(.fbrkh-commerce-shell,.utility-payment-result) > .topbar,
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal,.fbrkh-status-page) .fbrkh-site-header{
  color:var(--site-ink)!important;
  background:rgba(255,253,250,.97)!important;
  border-color:rgba(54,27,86,.12)!important;
  box-shadow:0 8px 28px rgba(57,34,71,.055)!important;
  backdrop-filter:blur(12px)!important;
}
html[data-ui-mode="modern"] body:is(.fbrkh-commerce-shell,.utility-payment-result) > .topbar{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  min-height:70px!important;
  padding:8px clamp(16px,4vw,60px)!important;
  border-radius:0!important;
  border-top:0!important;
  border-left:0!important;
  border-right:0!important;
}
html[data-ui-mode="modern"] body:is(.fbrkh-commerce-shell,.utility-payment-result) > .topbar .brand img{
  object-fit:contain!important;
  filter:none!important;
  max-height:60px!important;
  width:clamp(112px,12vw,154px)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell > .topbar nav a,
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal,.fbrkh-status-page) .fbrkh-site-nav a{
  color:var(--site-copy)!important;
  background:transparent!important;
  font-weight:850!important;
  min-height:44px!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell > .topbar nav a:is(:hover,:focus-visible),
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal,.fbrkh-status-page) .fbrkh-site-nav a:is(:hover,:focus-visible),
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal,.fbrkh-status-page) .fbrkh-site-nav a[aria-current="page"]{
  color:var(--site-purple)!important;
  border-color:#d5c5eb!important;
  background:#f2ecfb!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell > .topbar nav a{display:inline-flex!important}
/* Home-equivalent canvas and panels: warm white + modest purple + small gold. */
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(
 .store-hero,.games-library-head,.store-featured-section,.store-promo-card,
 .support-card,.store-card,.day-pass,.store-policy,
 .account-value-center,.library-toolbar,.library-card,
 .checkout-card,.checkout-promo,.store-pass-comparison,
 .store-auth-dialog,.support-dialog
),
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) :is(
 .legal-hero,.legal-section,.legal-form,.faq-list details,.trust-nav
),
html[data-ui-mode="modern"] body:is(.utility-payment-result,.fbrkh-status-page,.utility-offline,.account-reset-page) :is(
 .result-card,.payment-result-card,.status-card,.reset-card,.utility-offline-card
){
  color:var(--site-ink)!important;
  border:1px solid var(--site-stroke)!important;
  background:#fff!important;
  box-shadow:var(--site-shadow)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-hero,.games-library-head),
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .legal-hero{
  background:radial-gradient(620px 250px at 90% 5%,rgba(240,222,255,.47),transparent 72%),
    #fffdfb!important;
  text-align:right!important;
  padding:clamp(23px,4vw,46px)!important;
  max-width:none!important;
  border-radius:28px!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-hero,.games-library-head) :is(h1,h2),
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .legal-hero h1{
  font-size:clamp(1.85rem,4.8vw,3.3rem)!important;
  line-height:1.25!important;
  letter-spacing:-.035em!important;
  color:var(--site-ink)!important;
  overflow-wrap:normal;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-hero,.games-library-head) :is(p,span),
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .legal-hero p{
  color:var(--site-muted)!important;
  line-height:1.85!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-hero,.store-heading,.games-library-head) > span,
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .legal-hero > span{
  color:var(--site-purple)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-featured-section,.store-card,.store-promo-card,.support-card,.checkout-card),
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .legal-section{
  border-radius:clamp(18px,2vw,26px)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .store-card:is(:hover,:focus-within){
  transform:none!important;
  border-color:#bca8df!important;
  box-shadow:0 18px 45px rgba(81,38,134,.12)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(
 .store-card,.store-featured-section,.support-card,.store-promo-card,.checkout-card
) :is(p,small,span:not(.store-promo-icon)){
  color:var(--site-copy)!important;
  opacity:1!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-heading,.store-hero,.store-featured-section,.checkout-card) h2{
  color:var(--site-ink)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-card,.day-pass,.checkout-card) :is(.price,.store-price,.pass-price,[class*="price"]){
  color:var(--site-purple-deep)!important;
  font-weight:950!important;
}
/* Controls remain actionable. Explicit contrast ≥4.5:1 on main copy. */
html[data-ui-mode="modern"] body:is(.fbrkh-commerce-shell,.public-trust-page,.utility-legal,.utility-payment-result)
 :is(input:not([type="checkbox"]),textarea,select){
  box-sizing:border-box;
  max-width:100%!important;
  min-height:46px;
  font-size:max(16px,1rem)!important;
  color:var(--site-ink)!important;
  background:#fff!important;
  border:1px solid #b9a8cd!important;
  border-radius:13px!important;
}
html[data-ui-mode="modern"] body:is(.fbrkh-commerce-shell,.public-trust-page,.utility-legal,.utility-payment-result)
 :is(input,textarea)::placeholder{
  color:#665974!important;
  opacity:1!important;
}
html[data-ui-mode="modern"] body:is(.fbrkh-commerce-shell,.public-trust-page,.utility-legal,.utility-payment-result)
 :is(label,.legal-form label,.store-auth-dialog label,.support-dialog label){
  color:var(--site-ink)!important;
  opacity:1!important;
}
html[data-ui-mode="modern"] body:is(.fbrkh-commerce-shell,.public-trust-page,.utility-legal,.utility-payment-result)
 :is(.support-submit,.legal-button,#redeemUnifiedStoreCode,#openSupport,#startSupport,#applyCheckoutPromo,.store-buy-btn,.store-cta,.checkout-button){
  min-height:46px!important;
  border-radius:13px!important;
  color:#fff!important;
  background:var(--site-purple)!important;
  border:1px solid var(--site-purple-deep)!important;
  box-shadow:0 10px 26px rgba(100,32,214,.16)!important;
  font-weight:850!important;
}
html[data-ui-mode="modern"] body:is(.fbrkh-commerce-shell,.public-trust-page,.utility-legal,.utility-payment-result)
 :is(.support-submit,.legal-button,#redeemUnifiedStoreCode,#openSupport,#startSupport,#applyCheckoutPromo,.store-buy-btn,.store-cta,.checkout-button):is(:hover,:focus-visible){
  background:var(--site-purple-deep)!important;
  color:#fff!important;
}
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .trust-nav{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
  box-shadow:none!important;
  background:#faf7fd!important;
}
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .trust-nav a{
  color:var(--site-copy)!important;
  background:transparent!important;
  min-height:44px!important;
}
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .trust-nav a[aria-current="page"]{
  color:var(--site-purple-deep)!important;
  border-color:#d9c8ef!important;
  background:#efe8fa!important;
}
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .faq-list details{
  padding:clamp(12px,2vw,18px)!important;
  margin-bottom:9px!important;
}
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .faq-list summary{
  color:var(--site-ink)!important;
  font-weight:850!important;
  cursor:pointer;
}
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .legal-section :is(p,li,td,th),
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .faq-list details p{
  color:var(--site-copy)!important;
  line-height:1.9!important;
}
html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .legal-section a:not(.legal-button){
  color:var(--site-purple-deep)!important;
  text-decoration:underline;
  text-underline-offset:3px;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-auth-dialog,.support-dialog){
  color:var(--site-ink)!important;
  max-width:min(94vw,540px)!important;
  max-height:min(90dvh,820px)!important;
  overflow:auto!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-auth-dialog,.support-dialog)::backdrop{
  background:rgba(35,20,53,.58)!important;
  backdrop-filter:blur(3px);
}
/* Payment marks preserve their original SVG and accessible contrast. */
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .checkout-payment-marks img{
  object-fit:contain!important;
  background:#fff!important;
  border:1px solid #ece4f3!important;
}
@media(max-width:760px){
 html[data-ui-mode="modern"] body.fbrkh-commerce-shell > .topbar{
  min-height:62px!important;padding:7px 12px!important;
 }
 html[data-ui-mode="modern"] body.fbrkh-commerce-shell > .topbar nav{
  flex-wrap:nowrap;gap:4px;overflow-x:auto;min-width:0;
 }
 html[data-ui-mode="modern"] body.fbrkh-commerce-shell > .topbar nav a{
  display:inline-flex!important;font-size:.77rem!important;
  min-width:max-content;padding:9px!important;
 }
 html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-shell,.games-library,.checkout-shell){
  width:calc(100% - 24px)!important;margin-inline:auto!important;
 }
 html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-hero,.games-library-head){
  padding:23px 18px!important;margin-bottom:20px!important;
 }
 html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) :is(.legal-hero,.legal-section){
  padding:19px!important;
 }
 html[data-ui-mode="modern"] body:is(.public-trust-page,.utility-legal) .trust-nav{
  overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none;
 }
 html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-grid,.featured-store-grid){
  grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))!important;
  gap:12px!important;
 }
}
@media(max-width:420px){
 html[data-ui-mode="modern"] body.fbrkh-commerce-shell > .topbar nav a{
  display:inline-flex!important;
 }
 html[data-ui-mode="modern"] body.fbrkh-commerce-shell .store-hero h1{font-size:1.86rem!important}
 html[data-ui-mode="modern"] body.fbrkh-commerce-shell .games-library-head h2{font-size:1.9rem!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-ui-mode="modern"] body:is(.fbrkh-commerce-shell,.public-trust-page,.utility-legal) :is(button,a,.store-card){
  transition:none!important;animation:none!important;
 }
}

/* r947 account recovery — same premium light shell, retain all validation. */
html[data-ui-mode="modern"] body.account-reset-page .reset-card{
  color:var(--site-ink)!important;
  background:#fff!important;
  border:1px solid var(--site-stroke)!important;
  box-shadow:var(--site-shadow)!important;
  border-radius:26px!important;
}
html[data-ui-mode="modern"] body.account-reset-page .reset-kicker{
  color:var(--site-purple)!important;
}
html[data-ui-mode="modern"] body.account-reset-page #resetForm label{
  color:var(--site-ink)!important;
  opacity:1!important;
}
html[data-ui-mode="modern"] body.account-reset-page #resetForm input{
  box-sizing:border-box;
  min-height:48px!important;
  min-width:0!important;
  max-width:100%!important;
  font-size:16px!important;
  color:var(--site-ink)!important;
  background:#fff!important;
  border:1px solid #b9a8cd!important;
  border-radius:13px!important;
}
html[data-ui-mode="modern"] body.account-reset-page #resetForm .btn.primary{
  min-height:48px!important;
  color:#fff!important;
  background:var(--site-purple)!important;
  border:1px solid var(--site-purple-deep)!important;
  border-radius:13px!important;
}
html[data-ui-mode="modern"] body.account-reset-page #resetForm .btn.primary:hover{
  background:var(--site-purple-deep)!important;
}
/* Coming-soon is a brand page, not a second dark visual identity. */
html[data-ui-mode="modern"] body.public-coming-soon{
  color:var(--site-ink)!important;
  color-scheme:light!important;
  background:radial-gradient(680px 380px at 90% 0%,rgba(230,199,252,.29),transparent 72%),var(--site-paper)!important;
}
html[data-ui-mode="modern"] body.public-coming-soon main{
  color:var(--site-ink)!important;
  background:#fff!important;
  border:1px solid var(--site-stroke)!important;
  border-radius:clamp(20px,3vw,32px)!important;
  box-shadow:var(--site-shadow)!important;
}
html[data-ui-mode="modern"] body.public-coming-soon :is(h1,p){
  color:var(--site-ink)!important;
  text-shadow:none!important;
}
html[data-ui-mode="modern"] body.public-coming-soon p{
  color:var(--site-copy)!important;
  line-height:1.8!important;
}
html[data-ui-mode="modern"] body.public-coming-soon a:not(.secondary){
  color:#fff!important;
  background:var(--site-purple)!important;
  border:1px solid var(--site-purple-deep)!important;
}
html[data-ui-mode="modern"] body.public-coming-soon a.secondary{
  color:var(--site-purple-deep)!important;
  background:#f1eafd!important;
  border:1px solid #d5c5eb!important;
}
html[data-ui-mode="modern"] body.public-coming-soon :is(a,button):focus-visible{
  outline:3px solid var(--site-focus)!important;outline-offset:3px!important;
}

/* r947 detail pass — the old dark store/library CSS gave ghost text on white. */
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(
 .store-card.featured,.library-item,.library-complete,.library-tickets,
 .library-summary,.game-credit,.purchase-history-row,.pending-purchase,
 .resume-purchase-notice:not(.hidden),.library-notice:not(.hidden),
 .pending-purchase-notice:not(.hidden)
){
  color:var(--site-ink)!important;
  background:linear-gradient(145deg,#fff,#fcf9ff)!important;
  border:1px solid var(--site-stroke)!important;
  box-shadow:var(--site-shadow)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .store-card.featured{
  border-color:#c7a9e8!important;
  background:linear-gradient(160deg,#f6efff,#fffdfb)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .store-card.featured :is(h3,p,.price,.old-price){
  color:var(--site-ink)!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .store-card.featured .price{
  color:var(--site-purple-deep)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .store-card .tag{
  color:#4b3210!important;
  background:#fff0ce!important;
  border:1px solid #eacb8d!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .library-tabs{
  color:var(--site-ink)!important;
  border:1px solid var(--site-stroke)!important;
  background:#f5effb!important;
  border-radius:14px!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .library-tab,
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .store-auth-tabs button{
  min-height:44px!important;
  color:var(--site-copy)!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  background:transparent!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .library-tab.active,
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .store-auth-tabs button.active,
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .library-tab[aria-selected="true"]{
  color:#fff!important;
  border:1px solid var(--site-purple-deep)!important;
  background:var(--site-purple)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-card button,.store-promo-form button,.btn.primary){
  min-height:46px!important;
  border:1px solid var(--site-purple-deep)!important;
  border-radius:13px!important;
  color:#fff!important;
  background:var(--site-purple)!important;
  box-shadow:0 9px 24px rgba(100,32,214,.15)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-card button,.store-promo-form button,.btn.primary):is(:hover,:focus-visible){
  color:#fff!important;background:var(--site-purple-deep)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.library-item,.library-summary,.library-complete,.game-credit) :is(h2,h3,p,span,b,strong,small){
  color:var(--site-ink)!important;
  opacity:1!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.back-link,.checkout-promo-kicker,.store-auth-dialog > form > span){
  color:var(--site-purple-deep)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.support-error,.store-promo-status,.checkout-status,.checkout-promo-status){
  color:#63213d!important;
  opacity:1!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .store-auth-dialog .store-auth-tabs{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;
  padding:5px!important;border-radius:15px!important;background:#f5effb!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .support-dialog .support-amounts button{
  color:var(--site-ink)!important;
  border:1px solid #cfc0e1!important;
  background:#fff!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell .support-dialog .support-amounts button.selected{
  color:#fff!important;
  border-color:var(--site-purple-deep)!important;
  background:var(--site-purple)!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-grid,.featured-store-grid,.library-grid){
  min-width:0!important;
}
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(.store-card,.library-item,.library-complete){
  min-width:0!important;
  overflow-wrap:break-word!important;
}

/* r947: button text sometimes sits in a nested span with legacy dark label CSS. */
html[data-ui-mode="modern"] body.fbrkh-commerce-shell :is(
 .store-card button,.store-promo-form button,.btn.primary,.support-submit,
 #redeemUnifiedStoreCode,#openSupport,#startSupport,#applyCheckoutPromo
) :is(span,b,strong,small){
  color:#fff!important;
  opacity:1!important;
}

/* r1066: narrow phone legal/support navigation — show all four real links. */
@media (max-width:420px) {
 body.public-trust-page nav.trust-nav,
 html[data-ui-mode="modern"] body.public-trust-page nav.trust-nav {
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;align-items:stretch!important;justify-items:stretch!important;
  padding:6px!important;overflow:visible!important;
 }
 body.public-trust-page nav.trust-nav > a,
 html[data-ui-mode="modern"] body.public-trust-page nav.trust-nav > a {
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;width:100%!important;max-width:100%!important;
  padding:7px 4px!important;min-height:39px!important;
  white-space:normal!important;text-align:center!important;
  overflow-wrap:break-word!important;line-height:1.35!important;
 }
}
