/* Shared navigation, restricted to trusted platform mounts. */
body.barae-game-platform{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
.barae-game-platform .header-actions,.barae-game-platform .ac-tools,.barae-game-platform .tools{display:none!important}
.barae-game-platform .db-bottom-dock,.barae-game-platform .ad-dock,.barae-game-platform .tv-ad-dock{bottom:calc(74px + env(safe-area-inset-bottom))!important}
.barae-game-platform .barae-pilot-nav{font-family:system-ui,sans-serif;--pilot-accent:var(--game-nav-accent,#b83268)}
body.barae-game-menu{margin:0;background:#faf7f0;color:#252b2c;font:16px/1.5 system-ui,sans-serif;padding-bottom:110px}
.barae-game-menu header,.barae-game-menu main{max-width:620px;margin:auto;padding:24px}
.barae-game-menu header img{width:150px;height:auto}.barae-game-menu h1{font:700 36px/1.15 Georgia,serif;margin:0 0 28px}
.barae-game-menu .barae-pilot-menu-heading{font-size:23px;margin:22px 18px 8px}
.barae-game-menu .barae-pilot-menu-link>span:first-child{font-size:21px;color:#687574}
.barae-game-menu a{color:inherit}

.barae-game-platform .app-shell{height:calc(var(--app-height) - var(--ad-height) - 74px - env(safe-area-inset-bottom))}.barae-game-platform .brand-studio{display:none!important}.barae-game-platform .brand-game{display:flex!important}

:root{--barae-nav-height:74px}
/* Quel verset: keep the banner above the nav on every document page.
   Reserve its full row even though the dock is fixed, and let only workspace scroll.
   The bottom navigation already includes the phone's safe-area padding. */
body.barae-game-platform:has(.workspace){padding-bottom:0!important}
body.barae-game-platform:has(.workspace)>.app{height:calc(100dvh - var(--barae-nav-height));min-height:0;grid-template-rows:auto minmax(0,1fr) 74px}
.barae-game-platform:has(.workspace) .ad-dock{position:fixed;left:0;right:0;bottom:var(--barae-nav-height)!important;height:74px;min-height:74px;padding:3px 0 5px;flex:none}
.barae-game-platform:has(.workspace) .masthead{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto;gap:10px;align-items:center}
.barae-game-platform:has(.workspace) .masthead h1{grid-column:1;grid-row:1}
.barae-game-platform:has(.workspace) .masthead .date-group{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;margin:0;gap:4px;min-width:0}
.barae-game-platform:has(.workspace) .game:not(.is-page):not(.is-finished):not(.is-unavailable){grid-template-rows:auto minmax(90px,1fr) auto auto;min-height:490px}
body.barae-game-platform #croisee-finale{height:calc(var(--db-viewport-height,100dvh) - var(--barae-nav-height));min-height:0}
.barae-game-platform #croisee-finale .ac-game-meta{display:none}
.barae-game-platform #croisee-finale .ac-topbar{min-height:62px;padding-block:12px 8px}
.barae-game-platform #croisee-finale .ac-topbar .ac-issue{font-size:12px;white-space:nowrap;flex:none}
.barae-game-platform #croisee-finale .ac-ad-area{bottom:auto!important;flex:none}
.barae-game-platform .ac-ad-area [data-preferences],.barae-game-platform .ad-dock [data-preferences],.barae-game-platform .ac-ad-area .privacy-shortcut{display:none!important}
@media(max-width:370px){.barae-game-platform:has(.workspace) .masthead h1>span,.barae-game-platform:has(.workspace) .masthead h1 strong{font-size:21px}.barae-game-platform #croisee-finale .ac-title{font-size:29px}}

/* TMC home already has its main logo: remove the duplicate header and metadata. */
body.barae-game-platform[data-view="home"]:has(.app-shell) .topbar,
body.barae-game-platform[data-view="home"]:has(.app-shell) .home-meta{display:none!important}
body.barae-game-platform[data-view="home"]:has(.app-shell) .app-shell{grid-template-rows:minmax(0,1fr)}

/* TMC Culture and Bible: the common bottom nav replaces the top game header. */
body.barae-game-platform:is([data-mode="culture"],[data-mode="bible"])>.app-shell>.topbar{display:none!important}
body.barae-game-platform:is([data-mode="culture"],[data-mode="bible"])>.app-shell{grid-template-rows:minmax(0,1fr)}


/* BARAE 2026-10-18: omit our visible banner heading, keep the real ad region.
   These selectors never enter advertising iframes or target Google's labels. */
.barae-game-platform .ad-dock > .ad-label,
.barae-game-platform .tv-ad-dock > .ad-label,
.barae-game-platform .db-ad-area > .db-ad-label,
.barae-game-platform .ac-ad-area > .ac-ad-label,
.barae-game-platform .lc-ad-dock > span:first-child,
.barae-game-platform .bg-ad-dock > .bg-ad-label{display:none!important}
