/* L1 (SIMPLIFY audit, R-93/R-93b): the last word on the pairs the audit measured. Loaded LAST in index.html. Primary buttons use the one token pair (white on #1a70dc = 4.78:1); muted text uses --text-muted. */
.createMain,.qSend,.ffBtnPrimary,.ffComposeSend{background:var(--btn-primary-bg)!important;color:var(--btn-primary-fg)!important}
.createMain:hover,.qSend:hover,.ffBtnPrimary:hover{background:var(--btn-primary-bg-hover)!important}
.createMain:active,.qSend:active,.ffBtnPrimary:active{background:var(--btn-primary-bg-active)!important}
.createMain:focus-visible,.qSend:focus-visible,.ffBtnPrimary:focus-visible{outline:2px solid var(--btn-primary-ring);outline-offset:2px}
.nav .ffNavLabel,.bnav .ffNavLabel{color:var(--text-muted)!important}
.nav.active .ffNavLabel,.bnav.active .ffNavLabel,.nav:hover .ffNavLabel{color:var(--text-main)!important}
.createMain .ffNavLabel{color:var(--btn-primary-fg)!important}
.ffBrandTagline,.leftHint,.ffCreator .fc-sub,.ffCreator small{color:var(--text-muted)!important}
.ffCreator small,.fc-choices small{font-size:var(--fs-secondary)!important}
/* mobile card quick-comment Send */
.mQuick button{background:var(--btn-primary-bg)!important;color:var(--btn-primary-fg)!important}
.mQuick input::placeholder,input::placeholder{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
/* a post page: the bottom bar never covers its last lines (Discussion, the share / save / gift row); a long unbroken word (a number, a link) wraps instead of running out of the card */
@media(max-width:760px){#viewerScroll{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}}
.cardTitle,.cardDesc,.mTitle,.mDesc,.detailPost h1,.detailPost h2,.detailPost p,.homeComment span,.libItem b,.libItem small,.ffProfile2 .ffpCardBody b,.ffProfile2 .ffpCardBody small,.ffProfile2 .ffpWorkCardBody b,.ffProfile2 .ffpWorkCardBody small,.ffProfile2 .ffpName,.ffProfile2 .ffpBio{overflow-wrap:anywhere;word-break:normal}
.detailCategoryV18 .crumbSep,.detailPost .detailCategoryV18 .crumbSep{color:var(--text-muted)!important}
.ffBootTag{font-size:12px!important}  /* same as the head CSS: the splash slogan never changes size */
/* a game on a phone: a long press never selects text or opens the iOS callout / magnifier over it, and the FocFoc frame and its buttons never flash on a tap */
.gameHolder,.gameHolder *,.gameFocusHint,.gameToggle,.gameOpenFull,.gamePlayerShell button{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-tap-highlight-color:transparent}
iframe.gameFrame{touch-action:manipulation}
.gameHolder.gameFallbackFull .ffGameExit{position:absolute;z-index:995;top:env(safe-area-inset-top,0px);right:4px;width:var(--tap-min-mobile,48px);height:var(--tap-min-mobile,48px);border-radius:999px;border:1px solid rgba(255,255,255,.55);background:rgba(8,14,26,.72);color:#fff;font-size:20px;line-height:1;display:grid;place-items:center;padding:0}
.gameHolder:not(.gameFallbackFull):not(.nativeFullscreen):not(:fullscreen) .ffGameExit{display:none}
/* MA012 (iPhone: no web full screen, so this fallback IS the full screen): the game shell lives inside the post viewer, whose own stacking keeps the viewer's top bar (Back / Home) above the
   fixed game holder, right where the game's Exit button is: a tap on Exit pressed Home and threw the player out. While the game is in its full-window mode the viewer's top bar is not drawn
   (the game's own bar keeps ← Back and Full view, and Exit leaves the mode). */
#viewer:has(.gameHolder.gameFallbackFull) .viewerTop{visibility:hidden!important;pointer-events:none!important}
.gameHolder:fullscreen .ffGameExit,.gameHolder.nativeFullscreen .ffGameExit{position:absolute;z-index:995;top:env(safe-area-inset-top,0px);right:4px;width:var(--tap-min-mobile,48px);height:var(--tap-min-mobile,48px);border-radius:999px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.55);background:rgba(8,14,26,.72);color:#fff;font-size:20px;line-height:1}
/* the FocFoc bar (← Back, Full view) is never hidden by the game: in full-window mode it floats above the frame as two small buttons (48 px), the rest of the bar lets touches through to the game */
.gamePlayerShell:has(.gameHolder.gameFallbackFull) .gamePrimaryBar{position:fixed!important;z-index:996;top:calc(env(safe-area-inset-top,0px) + 8px);left:8px;right:64px;margin:0!important;padding:0!important;background:none!important;border:0!important;pointer-events:none}
.gamePlayerShell:has(.gameHolder.gameFallbackFull) .gamePrimaryBar button{pointer-events:auto;min-height:48px;min-width:48px;background:rgba(8,14,26,.72);color:#fff;border:1px solid rgba(255,255,255,.55);border-radius:999px;padding:0 14px;font-size:16px}
/* A game in full-window / full-screen mode on a phone fills the screen: the post page's own height cap (screen − 96px) no longer applies (sideways it left the game at 75% of the screen). */
#viewer .gameHolder.gameFallbackFull iframe.gameFrame,#viewer .gameHolder:fullscreen iframe.gameFrame,#viewer .gameHolder.nativeFullscreen iframe.gameFrame{max-height:none!important;height:calc(100vh - 48px - env(safe-area-inset-top,0px))!important;height:calc(100dvh - 48px - env(safe-area-inset-top,0px))!important}   /* MA041: the holder keeps its 48 px header band (index.html: padding-top: safe-area + 48px); a frame as tall as the whole screen stuck out under the screen by that band (844x390 landscape: frame y100..490 in a 390 window, the game's tray cut off) */
/* B-NEW4: keep the fullscreen reader's measured 58 px single-row toolbar on phones. The
   previous two-row workaround consumed 27 px of comic page height at 390 px. If the controls
   do not all fit, the controls strip scrolls horizontally; its targets remain independently
   reachable. The visible controls stay 32 px and their touch hit areas are grown separately. */
@media(max-width:560px){
 .readerShell{grid-template-rows:58px minmax(0,1fr) 52px}
 .readerTop{flex-wrap:nowrap;gap:6px;padding:0 8px;height:58px;min-height:58px;overflow:hidden}
 .readerTop .readerIdentity{flex:1 1 48px;min-width:32px;overflow:hidden}
 .readerTop .readerIdentity b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .readerTop .readerControls{flex:0 1 auto;order:0;justify-content:flex-start;flex-wrap:nowrap;margin-left:auto;gap:16px;max-width:70%;height:48px;min-height:48px;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;padding:0 14px;scroll-padding-inline:14px;scrollbar-width:none;overscroll-behavior-x:contain}
 .readerTop .readerControls::-webkit-scrollbar{display:none}
 .readerTop .readerControls button{font-size:12px;padding:0 7px;white-space:nowrap;flex:0 0 auto}
 .readerTop .readerControls span{font-size:12px;flex:0 0 auto}
 .readerTop .readerControls i{display:none}
}

/* MA040: in the game viewer header (52-58 px) the title block (work name + level line) was squeezed to ~72 px by the buttons beside it, so both lines wrapped into a 105 px block that stuck out above and below the bar. Up to 560 px: the block takes the room that is left, each line is ONE line cut with an ellipsis, and the bar paints nothing outside itself. */
@media(max-width:560px){
 .gameViewerTop{overflow:hidden}
 .gameViewerTop>div:not(.gameViewerPartNav){flex:1 1 0;min-width:0}
 .gameViewerTop b,.gameViewerTop small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
}
/* MA051: on a phone the native audio control sat in the 199 px column beside the cover, so its time line collapsed to 0 px (only the knob showed). Up to 480 px the cover and the title keep the first two rows and the audio control, the Listen / Lyrics tabs and the lyrics take the FULL width under them. */
@media(max-width:480px){
 .musicPlayerCard{grid-template-columns:92px minmax(0,1fr)!important;align-items:center!important}
 .musicPlayerCard>img,.musicPlayerCard>.musicCoverV18{grid-column:1!important;grid-row:1/3!important}
 .musicPlayerMeta{display:contents!important}
 .musicPlayerMeta>b{grid-column:2;grid-row:1;align-self:end}
 .musicPlayerMeta>small{grid-column:2;grid-row:2;align-self:start;margin-bottom:0!important}
 .musicPlayerMeta>audio{grid-column:1/-1;grid-row:3;width:100%!important;margin-top:8px}
 .musicPlayerMeta>.musicInlineTabs{grid-column:1/-1}
 .musicPlayerCard>.inlineLyricsV18{grid-column:1/-1}
}
