/* FBRKH r859 | premium design family inspired by the approved homepage.
   This is a visibly new PAGE DESIGN, not just changed tokens.
   r843 wordmark and r830/r855 home visuals are immutable.
   Never style interactive stage/board/canvas/answer/score/QR coordinates. */
html[data-fbrkh-page-family="r859"]:not([data-fbrkh-ui="home"]){
 --p859-cream:#fffaf3;
 --p859-paper:#f4eafa;
 --p859-ink:#2d1945;
 --p859-violet:#7225bb;
 --p859-deep:#311648;
 --p859-soft:#ae78de;
 --p859-gold:#f7c66f;
 --p859-copper:#b97c42;
 --p859-muted:#705f7b;
 --p859-border:rgba(98,51,138,.16);
 --p859-shadow:0 22px 65px rgba(39,16,67,.13);
 --p859-radius:clamp(18px,2.1vw,28px);
 font-synthesis:none;
}
html[data-fbrkh-page-family="r859"]:not([data-fbrkh-ui="home"]) body{
 font-family:"Alexandria",Tahoma,Arial,sans-serif;
 -webkit-font-smoothing:antialiased;
}
html[data-fbrkh-page-family="r859"]:not([data-fbrkh-ui="home"]) :is(a,button,input,select,textarea,summary,[role="button"]):focus-visible{
 outline:3px solid var(--p859-gold)!important;
 outline-offset:3px!important;
}
html[data-fbrkh-page-family="r859"]:not([data-fbrkh-ui="home"]) :is(button,a,[role="button"]){
 -webkit-tap-highlight-color:transparent;
}
@media(hover:hover){
 html[data-fbrkh-page-family="r859"]:not([data-fbrkh-ui="home"]) :is(button,a):not(:disabled):active{
  filter:brightness(.97);
 }
}
/* Shared premium site header: same architecture and brand artwork as home,
   without moving existing account, session, or accessibility controls. */
html[data-fbrkh-page-family="r859"]:not([data-fbrkh-ui="home"]) body :is(
 .topbar,.q-nav,.k-top,.t10-nav,.participant-top,.fbrkh-site-header
){
 background:linear-gradient(115deg,#452168 0%,#2d154a 55%,#24103d 100%)!important;
 border:1px solid rgba(255,224,185,.19)!important;
 color:#fffaf6!important;
 box-shadow:0 16px 42px rgba(29,12,49,.23)!important;
}
html[data-fbrkh-page-family="r859"]:not([data-fbrkh-ui="home"]) body :is(
 .topbar a,.q-nav a,.k-top a,.t10-nav a,.participant-top a,.fbrkh-site-header a
){text-decoration:none;}
html[data-fbrkh-page-family="r859"]:not([data-fbrkh-ui="home"]) body :is(
 .topbar,.q-nav,.k-top,.t10-nav,.participant-top
) :is(button,a):not(.primary):not(.btn-primary):not(.danger):not(.button-danger):focus-visible{
 outline-color:var(--p859-gold)!important;
}
/* A contained cream/purple background connects secondary screens with
   the approved off-white homepage without making any game board light. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body:is(
 .fbrkh-commerce-shell,.public-v2,.utility-payment-result,.utility-legal
){
 background:
 radial-gradient(ellipse at 86% 5%,rgba(218,190,246,.30),transparent 26rem),
 radial-gradient(ellipse at 8% 45%,rgba(255,217,159,.14),transparent 32rem),
 linear-gradient(160deg,#251239 0%,#120c25 55%,#1e1030 100%)!important;
 background-attachment:scroll!important;
}
/* Editorial hero motif: quiet luxury, legible content, NO textual embellishment. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(
 .store-hero,.games-library-head,.legal-hero
){
 position:relative!important;
 isolation:isolate;
 overflow:hidden;
 border:1px solid rgba(129,89,155,.18)!important;
 border-radius:clamp(22px,3vw,34px)!important;
 background:
 radial-gradient(ellipse at 10% 80%,rgba(221,191,244,.46),transparent 34%),
 radial-gradient(ellipse at 96% 18%,rgba(246,198,112,.22),transparent 37%),
 linear-gradient(130deg,#fffaf4,#f3ebf9 85%)!important;
 box-shadow:0 18px 65px rgba(16,5,37,.18)!important;
 padding:clamp(22px,3.3vw,42px)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(
 .store-hero,.games-library-head,.legal-hero
)::after{
 content:"";
 position:absolute;
 left:-54px;bottom:-90px;
 width:clamp(175px,23vw,330px);aspect-ratio:1;
 border:clamp(22px,4vw,46px) solid rgba(116,52,176,.065);
 border-radius:50%;
 pointer-events:none;
 z-index:-1;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(
 .store-hero h1,.games-library-head h1,.games-library-head h2,.legal-hero h1
){
 color:var(--p859-ink)!important;
 -webkit-text-fill-color:var(--p859-ink)!important;
 text-shadow:none!important;
 font-weight:900;
 letter-spacing:-.025em;
 line-height:1.4;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(
 .store-hero p,.games-library-head p,.legal-hero p
){
 color:#6c527b!important;
 -webkit-text-fill-color:#6c527b!important;
 text-shadow:none!important;
 line-height:1.85;
 max-width:66ch;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(
 .store-hero>span,.legal-hero>span,.section-heading>span
){
 display:inline-flex;
 width:fit-content;
 border-radius:999px;
 padding:7px 13px;
 background:rgba(114,37,187,.09)!important;
 color:#69269e!important;
 -webkit-text-fill-color:#69269e!important;
 border:1px solid rgba(114,37,187,.16);
 font-size:.79rem;
 font-weight:800;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(
 .legal-shell,.store-shell,.games-library
){max-width:1200px;}
/* Design rhythm for shop: clear grouping, warm paper island and violet cards. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body .store-shell > :is(
 .store-featured-section,.store-promo-card,.support-card,.store-payment-methods,.purchase-history
){
 border-radius:var(--p859-radius)!important;
 border:1px solid rgba(222,195,250,.19)!important;
 background:linear-gradient(145deg,rgba(60,27,86,.94),rgba(28,14,47,.97))!important;
 box-shadow:var(--p859-shadow)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(
 .store-promo-card,.store-featured-section,.checkout-card,.account-value-center
)::before{
 border-radius:inherit;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(
 .store-grid>*,.featured-store-grid>*,.library-grid>*
){
 border-radius:20px!important;
 overflow:hidden;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(
 .store-heading h2,.store-heading h3,.library-toolbar label
){
 color:#fffaf6!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body .store-shell :is(
 .store-promo-form input,.store-auth-dialog input,.checkout-promo-controls input
){border-radius:15px;}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(
 .store-shell,.checkout-shell,.games-library
) :is(button,a):not(:disabled){touch-action:manipulation;}
/* FAQ/legal pages are designed as a readable article series: cream cards,
   intentional ink typography, purple section headings. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body.public-v2 .legal-section,
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body.utility-legal .legal-section{
 position:relative;
 border:1px solid rgba(127,85,156,.18)!important;
 border-radius:var(--p859-radius)!important;
 background:linear-gradient(145deg,#fffdfa,#f5edf9)!important;
 color:var(--p859-ink)!important;
 box-shadow:var(--p859-shadow)!important;
 padding:clamp(18px,2.6vw,34px)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body:is(.public-v2,.utility-legal) .legal-section :is(
 h2,h3,strong,summary,label,li
){color:var(--p859-ink)!important;-webkit-text-fill-color:var(--p859-ink)!important;}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body:is(.public-v2,.utility-legal) .legal-section :is(p,small){
 color:#675373!important;-webkit-text-fill-color:#675373!important;line-height:1.9;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body:is(.public-v2,.utility-legal) .legal-section a:not(.legal-button){
 color:#7225bb!important;-webkit-text-fill-color:#7225bb!important;text-decoration:underline;
 text-underline-offset:3px;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body .legal-section details{
 border-color:rgba(110,59,151,.16)!important;
 border-radius:16px;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body .legal-section details[open]{
 background:rgba(130,78,181,.035);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body .trust-nav{
 border:1px solid rgba(224,193,252,.18);
 border-radius:17px;
 padding:6px;
 background:rgba(54,26,78,.64);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body .trust-nav a[aria-current="page"]{
 background:#fff0d6!important;color:#512474!important;border-radius:12px;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body:is(.public-v2,.utility-legal) .legal-section :is(input,textarea,select){
 background:#fff!important;color:var(--p859-ink)!important;
 border:1px solid rgba(102,60,139,.29)!important;
 border-radius:14px;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body:is(.public-v2,.utility-legal) .legal-section :is(input,textarea)::placeholder{
 color:#82738d!important;opacity:1;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(.legal-button,.checkout-promo-controls button){
 border-radius:14px;
}
/* Individual game visual signatures — shared DNA, not interchangeable skins.
   Restrict the large entrance treatments to pre-game static surfaces. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand]{
 --p859-game-accent:var(--fbrkh-master-accent,#9d63da);
 --p859-game-glow:var(--fbrkh-master-accent-glow,rgba(160,97,210,.25));
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"]{
 --p859-game-accent:#b88cfa;--p859-game-glow:rgba(184,140,250,.24);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="qadha"]{
 --p859-game-accent:#f8b568;--p859-game-glow:rgba(248,181,104,.24);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="khaltaha"]{
 --p859-game-accent:#ed80bc;--p859-game-glow:rgba(237,128,188,.24);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="top10"]{
 --p859-game-accent:#7eb8f7;--p859-game-glow:rgba(126,184,247,.24);
}
/* Premium Fbrkha opening: generous typography and true action hierarchy.
   The actual room/game is not affected when the app replaces home-shell. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"]:has(#app.home-shell.public-screen){
 background:radial-gradient(ellipse at 88% 0%,rgba(121,64,184,.23),transparent 35rem),
 linear-gradient(155deg,#1c0d35 0%,#0d0821 100%)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"] #app.home-shell.public-screen{
 width:min(1100px,calc(100% - 28px))!important;
 max-width:1100px!important;
 margin:clamp(20px,3vw,42px) auto!important;
 padding:clamp(16px,2.3vw,28px)!important;
 border:1px solid rgba(230,202,255,.17);
 border-radius:clamp(24px,3vw,36px);
 background:
 radial-gradient(ellipse at 2% 14%,rgba(248,193,104,.09),transparent 42%),
 linear-gradient(135deg,rgba(56,24,88,.92),rgba(22,11,43,.96));
 box-shadow:0 30px 90px rgba(6,2,21,.25);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"] #app.home-shell .brand-hero{
 background:transparent!important;
 border:0!important;
 box-shadow:none!important;
 padding:clamp(12px,2vw,28px)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"] #app.home-shell .brand-tagline{
 font-size:clamp(1.9rem,4vw,3.4rem)!important;
 line-height:1.35!important;
 color:#fff9fa!important;
 text-shadow:none!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"] #app.home-shell .brand-subtitle{
 color:#e8d6f3!important;
 line-height:1.95!important;
 max-width:660px;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"] #app.home-shell .home-actions{
 gap:clamp(10px,1.5vw,16px);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"] #app.home-shell .home-action{
 border:1px solid rgba(223,200,246,.25)!important;
 border-radius:20px!important;
 background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.035))!important;
 box-shadow:0 12px 30px rgba(9,3,28,.15)!important;
 color:#fff9fc!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"] #app.home-shell #createPageBtn{
 background:linear-gradient(135deg,#ffc976,#edaa55)!important;
 color:#2e183d!important;
 border-color:rgba(255,228,182,.5)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"] #app.home-shell #createPageBtn :is(b,small){
 color:#2e183d!important;-webkit-text-fill-color:#2e183d!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"] #app.home-shell .home-features>div{
 background:rgba(255,255,255,.045)!important;
 border:1px solid rgba(240,220,255,.14)!important;
 border-radius:16px!important;
}
/* Qadha landing: championship invitation. Preserve all question-board layout. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="qadha"] #qApp>.qadha-initial-home{
 position:relative;
 overflow:hidden;
 isolation:isolate;
 border:1px solid rgba(255,226,188,.19)!important;
 border-radius:clamp(24px,3vw,36px)!important;
 background:
 radial-gradient(ellipse at 18% 90%,rgba(247,197,117,.12),transparent 43%),
 linear-gradient(130deg,rgba(62,27,88,.98),rgba(26,14,53,.97))!important;
 box-shadow:0 28px 78px rgba(10,4,28,.23)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="qadha"] #qApp>.qadha-initial-home :is(h1,h1 span){
 color:#fffaf6!important;-webkit-text-fill-color:#fffaf6!important;
 text-shadow:none!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="qadha"] #qApp>.qadha-initial-home p{
 color:#e7d9ec!important;line-height:1.95;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="qadha"] #qApp>.qadha-initial-home .pill{
 background:rgba(247,198,111,.13)!important;color:#ffe1a7!important;
 border-color:rgba(255,226,167,.30)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="qadha"] #qApp>.qadha-initial-home .hero-panel{
 background:radial-gradient(ellipse,rgba(255,200,112,.17),transparent 69%)!important;
 border-radius:30px;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="qadha"] #qApp>.qadha-initial-home #qInitialNewGame{
 color:#2e1b3f!important;-webkit-text-fill-color:#2e1b3f!important;
 background:linear-gradient(135deg,#ffdfab,#f4b85f)!important;
 border-color:rgba(255,236,199,.4)!important;
 box-shadow:0 13px 35px rgba(231,174,91,.20)!important;
}
/* Khaltaha: rose-violet game entrance. Only the entrance hero and mode setup
   are recolored, not the host/participant round views. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="khaltaha"] #kApp :is(.k-hero,.k-home-hero){
 position:relative;
 border:1px solid rgba(251,201,229,.20)!important;
 border-radius:clamp(24px,3vw,34px)!important;
 background:
 radial-gradient(ellipse at 10% 10%,rgba(255,151,204,.17),transparent 46%),
 linear-gradient(130deg,rgba(73,30,86,.96),rgba(29,15,49,.96))!important;
 box-shadow:0 24px 68px rgba(13,5,31,.21)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="khaltaha"] #kApp .k-hero :is(h1,p){
 color:#fff7fc!important;-webkit-text-fill-color:#fff7fc!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="khaltaha"] #kApp :is(.mode-toggle,.k-home-card){
 border-radius:19px!important;border:1px solid rgba(239,189,225,.17)!important;
 background:linear-gradient(145deg,rgba(72,33,87,.55),rgba(32,18,52,.82))!important;
 box-shadow:0 10px 32px rgba(11,3,28,.12);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="khaltaha"] #kApp .mode-toggle:has(input:checked){
 border-color:rgba(249,161,203,.6)!important;
 box-shadow:0 0 0 1px rgba(247,155,200,.15),0 12px 38px rgba(165,56,112,.16);
}
/* Top10: a clear blue-violet design vocabulary on setup, not question grid. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="top10"] #app :is(
 .top10-initial-shell,#authView,#errorView,.setup-hero
){
 border:1px solid rgba(207,219,255,.20)!important;
 border-radius:clamp(22px,3vw,34px)!important;
 background:
 radial-gradient(ellipse at 88% 15%,rgba(132,167,250,.17),transparent 45%),
 linear-gradient(135deg,rgba(53,30,89,.95),rgba(21,18,52,.97))!important;
 box-shadow:0 25px 65px rgba(7,5,24,.20)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="top10"] #app .setup-view .setup-card{
 border:1px solid rgba(196,185,231,.22)!important;
 border-radius:23px!important;
 background:linear-gradient(145deg,rgba(50,28,79,.97),rgba(24,18,51,.97))!important;
 box-shadow:0 16px 38px rgba(10,6,32,.13)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="top10"] #app .setup-view .section-title>span{
 color:#ffe4ae!important;border-radius:12px;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="top10"] #app .setup-hero p{
 color:#e2d8ef!important;line-height:1.85;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="top10"] #app .setup-view :is(
 .round-option,.timer-options button,.segmented button
){border-radius:13px;}
/* Shared inner navigation and statuses, never game-stage geometry. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body :is(
 .q-nav,.k-top,.t10-nav,.participant-top
){border-radius:0 0 20px 20px;}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body .participant-top{
 border-bottom:1px solid rgba(255,208,138,.23)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body :is(
 .game-status-loading,.game-status-connection
){border-radius:15px;}
/* Branded party foyer. Live party components keep their original structure. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body{
 background:radial-gradient(ellipse at 90% 0%,rgba(125,61,194,.22),transparent 32rem),
 linear-gradient(155deg,#1c0d34 0%,#100920 65%,#1d0f30 100%)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body .party-shell>.topbar{
 border-radius:18px!important;padding:10px 16px;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body .party-shell :is(.hero,.entry-card){
 border:1px solid rgba(229,196,255,.20);
 border-radius:26px;
 box-shadow:0 20px 60px rgba(8,3,24,.20);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body .party-shell .hero{
 padding:clamp(25px,5vw,58px);
 background:
 radial-gradient(ellipse at 15% 20%,rgba(255,221,162,.14),transparent 40%),
 linear-gradient(135deg,rgba(60,26,87,.96),rgba(32,18,56,.96));
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body .party-shell .hero h1 span{
 background:linear-gradient(100deg,#fffaf2,#fcd493 65%,#d5aff5)!important;
 -webkit-background-clip:text!important;background-clip:text!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body .party-shell .entry-card{
 background:linear-gradient(145deg,rgba(56,30,80,.95),rgba(26,17,49,.98))!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body .party-shell .entry-card.primary{
 border-color:rgba(249,205,145,.37);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body .party-shell .btn-primary{
 background:linear-gradient(135deg,#ffdda2,#efb961)!important;
 color:#2a153e!important;
}
/* TV foyer: same identity, large type, high legibility; no changes to
   .screen, .stage-card, answer graphics, clocks, or score layout. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="presenter"] body .presenter-ambient{
 background:radial-gradient(ellipse at 87% 9%,rgba(128,75,186,.23),transparent 37%),
 radial-gradient(ellipse at 9% 80%,rgba(255,208,131,.13),transparent 37%),
 linear-gradient(145deg,#1d0d37,#0d0b20 68%,#221036)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="presenter"] body .presenter-entry{
 padding:clamp(24px,5vw,66px)!important;
 border:1px solid rgba(245,213,173,.20)!important;
 border-radius:clamp(24px,3vw,40px)!important;
 background:linear-gradient(145deg,rgba(57,29,81,.92),rgba(22,14,45,.96))!important;
 box-shadow:0 35px 90px rgba(5,3,19,.3);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="presenter"] body .presenter-entry h1{
 color:#fff9fa!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="presenter"] body .presenter-entry>span{
 color:#ffdf9f!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="presenter"] body .presenter-entry button{
 background:linear-gradient(135deg,#ffe3ab,#efb859)!important;
 color:#2b153e!important;
}
/* Administrator visual system: richer masthead/cards but NEVER auth controls,
   permissions, telemetry colors or destructive-button meanings. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="admin"] body{
 background:radial-gradient(ellipse at 90% 0%,rgba(126,68,186,.22),transparent 39rem),
 linear-gradient(155deg,#201034,#0d091c 65%,#1b0e2e)!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="admin"] body :is(
 .login-card,.hero,.system-card,.game-card,.panel,.admin-card
){
 border-radius:clamp(19px,2.4vw,28px)!important;
 border-color:rgba(235,203,255,.19)!important;
 box-shadow:0 20px 55px rgba(8,4,22,.20);
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="admin"] body :is(.login-card,.hero,.system-card){
 background:linear-gradient(135deg,rgba(59,31,86,.97),rgba(24,15,43,.98))!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="admin"] body .eyebrow{
 color:#ffdb95!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="admin"] body :is(.tabs,.top-actions){
 border-radius:16px;
}
@media(max-width:760px){
 html[data-fbrkh-page-family="r859"]:not([data-fbrkh-ui="home"]){--p859-radius:18px}
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body :is(.store-hero,.legal-hero,.games-library-head){
  padding:22px!important;border-radius:22px!important;
 }
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="fbrkha"] #app.home-shell.public-screen{
  width:calc(100% - 16px)!important;
  padding:13px!important;margin:12px auto!important;border-radius:22px!important;
 }
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body[data-game-brand="qadha"] #qApp>.qadha-initial-home{
  border-radius:22px!important;
 }
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="game"] body :is(.q-nav,.k-top,.t10-nav,.participant-top){
  border-radius:0 0 14px 14px;
 }
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="presenter"] body .presenter-entry{
  padding:24px 16px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-fbrkh-page-family="r859"]:not([data-fbrkh-ui="home"]) *{
  scroll-behavior:auto!important;
 }
}

/* r859 narrow-screen protection: wrap actual controls rather than clip them. */
@media(max-width:360px){
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body .party-shell>.topbar{
  flex-wrap:wrap!important;justify-content:center!important;gap:10px!important;
 }
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body .party-shell>.topbar .brand{
  min-width:0;max-width:100%;
 }
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="party"] body .party-shell>.topbar .top-actions{
  width:100%;min-width:0;flex-wrap:wrap;justify-content:center;
 }
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="presenter"] body .presenter-entry{
  min-width:0!important;max-width:100%!important;width:100%!important;
  box-sizing:border-box!important;
 }
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="presenter"] body .presenter-entry form{
  flex-wrap:wrap!important;width:100%!important;min-width:0!important;
 }
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="presenter"] body .presenter-entry form input{
  flex:1 1 100%!important;min-width:0!important;
 }
 html[data-fbrkh-page-family="r859"][data-fbrkh-ui="presenter"] body .presenter-entry form button{
  flex:1 1 100%;
 }
}

/* Accessible warm editorial panels must retain ink headings even if the
   user's saved theme is light: r857 theme selectors are more specific. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"][data-theme="light"] body :is(
 .store-hero h1,.games-library-head h1,.games-library-head h2,.legal-hero h1
){
 color:#2d1945!important;-webkit-text-fill-color:#2d1945!important;text-shadow:none!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"][data-theme="light"] body :is(
 .store-hero p,.games-library-head p,.legal-hero p
){
 color:#6c527b!important;-webkit-text-fill-color:#6c527b!important;
}

/* Legacy store-specific white typography has higher specificity than r857.
   Give the cream hero explicit ink foreground at the final cascade layer. */
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body.fbrkh-commerce-shell main.store-shell > section.store-hero h1{
 color:#2d1945!important;
 -webkit-text-fill-color:#2d1945!important;
 text-shadow:none!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body.fbrkh-commerce-shell main.store-shell > section.store-hero p{
 color:#6c527b!important;
 -webkit-text-fill-color:#6c527b!important;
 text-shadow:none!important;
}
html[data-fbrkh-page-family="r859"][data-fbrkh-ui="secondary"] body.fbrkh-commerce-shell main.store-shell > section.store-hero > span{
 color:#69269e!important;
 -webkit-text-fill-color:#69269e!important;
}
