/* ---- Blast Crew ----
   The page's own styles; the title screen and the wipe are the shared game shell's (gameShell.css). The site
   is a canvas drawn by BlastCrew.js that fills the page's content area, and everything else lies over it:
   the level name, the dynamite count, the status line, the power-ups and the buttons, the result card, the
   title screen's menu, and the Levels, Store and How to play panels (The scene, at the end, is where they
   are all put in place). */
/* ---- The app version has no header bar ----
   In the app version (.app - body[data-mode="spa"]) the site's header bar is left out: the scene runs from the
   very top of the window, and what the bar held - the account and the theme - is in the game's Settings panel
   (BlastCrew.js, Settings). The bar is still in the page there, moved into the scene by the game shell and
   hidden here, because Settings works through it. The browser version keeps the site's header as it is on
   every other page; the scene starts under it. */
#bcWrapper header.gs-card-header { display: none !important; }

/* The page's backdrop. The scene fills the page now, so all that shows of the backdrop is what the site's header
   bar lets through at the top - and a picture there fought with the scene under it. It's the scene's own sky
   instead, day or night, so the header reads as part of the same sky. (This stylesheet is only loaded on the
   Blast Crew page.) */
body .body-background { background-image: none; background-color: #9fd3f2; }
body[data-theme="Dark"] .body-background { background-image: none; background-color: #081229; }
#bcWrapper { --bc-accent: #d8402f; --bc-star: #e8a70c; --bc-line: rgba(127, 127, 127, 0.35); }
/* The game pages' tabletop look (gameShell.css, Tabletop) reads its colours from each game's wrapper: the
   same wood and cream as the other games, a slate felt, and the dynamite's red for the Play key. */
#bcWrapper {
    --tt-wood: linear-gradient(160deg, #4D6682 0%, #1D2A3A 52%, #3C5470 100%);
    --tt-wood-hi: rgba(255, 255, 255, 0.26);
    --tt-felt: #24323D;
    --tt-tray: #17232C;
    --tt-felt-shade: 0.45;
    --tt-drop: 0.5;
    --tt-cream: #F4E9D8;
    --tt-cream-hover: #FBF3E6;
    --tt-cream-edge: #B99A74;
    --tt-cream-text: #3A2716;
    --tt-cream-soft: #6B5440;
    --tt-action: #D8402F;
    --tt-action-edge: #8E2418;
}
body[data-theme="Default"] #bcWrapper {
    --tt-wood: linear-gradient(160deg, #C6D6E6 0%, #8FA8C2 52%, #B4C8DC 100%);
    --tt-wood-hi: rgba(255, 255, 255, 0.65);
    --tt-felt: #EEF1F4;
    --tt-tray: #DCE2E8;
    --tt-felt-shade: 0.12;
    --tt-drop: 0.22;
}

.bc-panel > .section-item { box-sizing: border-box; max-width: 880px; margin-left: auto; margin-right: auto; }

#go-back, #go-to-top { display: none !important; }
.help-section img.logo { max-width: 100%; margin: 0 auto; display: block; clear: both; margin-bottom: 10px; }
.bc-stars { color: var(--bc-star); letter-spacing: 2px; white-space: nowrap; }
    .bc-stars i { font-style: normal; opacity: 0.28; }

#bcSite { overflow: hidden; line-height: 0; }
    /* A drag on the site mustn't scroll the page out from under a tap: touch-action is off, as it is in 3D. */
    #bcCanvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: default; }
    #bcResult { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); box-sizing: border-box; min-width: 230px; max-width: calc(100% - 24px); padding: 12px 18px 14px 18px; border-radius: 14px; line-height: 1.4; text-align: center; color: var(--bc-ink); background: var(--bc-card); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); animation: bcResultIn .3s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
        .bc-result-title { font-size: 20px; font-weight: 800; color: var(--bc-pass); }
            .bc-result-title.bc-result-fail { color: var(--bc-fail); }
        #bcResult .bc-stars { display: block; font-size: 26px; line-height: 1.2; }
        .bc-result-note { margin-top: 2px; font-size: 13px; color: var(--bc-ink-soft); }
        .bc-result-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
        /* The card is white in both themes, so its buttons take dark text whatever the theme's text colour is -
           written with the wrapper's id so it outranks the general button rule further down. */
        #bcWrapper #bcResult .bc-btn { color: var(--bc-ink); border-color: var(--bc-card-edge); }
            #bcWrapper #bcResult .bc-btn.bc-btn-go { color: #FFF; border-color: var(--bc-accent); }
@keyframes bcResultIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.94); }
    to { opacity: 1; transform: translateX(-50%); }
}

#bcWrapper .bc-btn { cursor: pointer; width: auto; min-width: 0; margin: 0; padding: 8px 20px; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 18px; border-radius: 19px; border: 1.5px solid var(--bc-line); box-shadow: none; color: #34363E; color: var(--body-text-color); background: transparent; transition: transform .12s ease-in-out, opacity .12s ease-in-out; }
    #bcWrapper .bc-btn:hover:not(:disabled) { transform: translateY(-1px); }
    #bcWrapper .bc-btn:active:not(:disabled) { transform: scale(0.96); }
    #bcWrapper .bc-btn.bc-btn-go { color: #FFF; border-color: var(--bc-accent); background: var(--bc-accent); }
    #bcWrapper .bc-btn:disabled { cursor: default; opacity: 0.4; }
    #bcWrapper .bc-btn:focus-visible { outline: 2px solid var(--bc-accent); outline-offset: 2px; }

/* ---- 3D Sites (blastCrew3d.js) ----
   The second mode: the same overlays as Classic's, over a 3D view the player can turn. touch-action is off
   on the view because a drag there looks around instead of scrolling. */
#bc3dSite { overflow: hidden; line-height: 0; cursor: grab; touch-action: none; background: #bfe2f5; }
    #bc3dSite canvas { display: block; width: 100%; height: 100%; }
    #bc3dResult { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); box-sizing: border-box; min-width: 230px; max-width: calc(100% - 24px); padding: 12px 18px 14px 18px; border-radius: 14px; line-height: 1.4; text-align: center; cursor: default; color: var(--bc-ink); background: var(--bc-card); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); animation: bcResultIn .3s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
        #bc3dResult .bc-stars { display: block; font-size: 26px; line-height: 1.2; }
        #bcWrapper #bc3dResult .bc-btn { color: var(--bc-ink); border-color: var(--bc-card-edge); }
            #bcWrapper #bc3dResult .bc-btn.bc-btn-go { color: #FFF; border-color: var(--bc-accent); }
/* Its ticket on the title screen is greyed out where 3D can't be drawn. */
#gsTitleScreen .gs-title-mode.bc-title-mode-locked { cursor: default; opacity: 0.55; }
    #gsTitleScreen .gs-title-mode.bc-title-mode-locked:hover { transform: none; }
@media screen and (max-width: 560px) {
    #bc3dResult { padding: 8px 12px 10px 12px; }
        #bc3dResult .bc-stars { font-size: 21px; }
        #bc3dResult .bc-btn { padding: 6px 14px; font-size: 13px; }
}

/* Levels and How to play */
/* Back to game, on the Levels and How to play panels - the same chip the other games use (gameButtons.css,
   which this page doesn't load): frosted glass, with the arrow in its own accent disc that slides left on hover. */
#bcWrapper { --gs-back-ground: rgba(255, 255, 255, 0.78); --gs-back-ground-hover: rgba(255, 255, 255, 0.96); }
body[data-theme="Dark"] #bcWrapper { --gs-back-ground: rgba(255, 255, 255, 0.07); --gs-back-ground-hover: rgba(118, 107, 255, 0.18); }
.bc-back { --gs-back-accent: var(--input-button-background-color, #766BFF); cursor: pointer; display: inline-flex; align-items: center; gap: 9px; user-select: none; vertical-align: middle; margin: 0 0 14px 0; padding: 5px 16px 5px 5px; line-height: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; color: #34363E; color: var(--body-text-color, #34363E); border: 1px solid color-mix(in srgb, var(--gs-back-accent) 22%, transparent); border-radius: 999px; background: var(--gs-back-ground); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.08); transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
    .bc-back::before { content: ""; flex: none; display: block; width: 26px; height: 26px; border-radius: 50%; background-color: var(--gs-back-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H6M11.5 6.5 6 12l5.5 5.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 15px; box-shadow: 0 2px 6px color-mix(in srgb, var(--gs-back-accent) 45%, transparent); transition: transform .2s ease; }
    .bc-back:hover { border-color: color-mix(in srgb, var(--gs-back-accent) 45%, transparent); background: var(--gs-back-ground-hover); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 22px color-mix(in srgb, var(--gs-back-accent) 22%, transparent); }
        .bc-back:is(:hover, :active)::before { transform: translateX(-3px); }
    .bc-back:active { transform: scale(0.96); }
    .bc-back:focus-visible { outline: 2px solid var(--gs-back-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .bc-back, .bc-back::before { transition: none; }
}
#bcLevelsSummary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px 0; font-size: 14px; }
    .bc-meter-note { opacity: 0.8; }
/* The map (BlastCrew.js, The map): a road winding down a patch of country with a building site at each stop.
   The script places the sites and draws the road for the panel's width; the colours are here, a daytime set
   and a night one. */
#bcWrapper { --bc-map-ground: #E1EBD3; --bc-map-edge: #C5D4B2; --bc-map-road: #5B646D; --bc-map-road-line: #F2C230; --bc-map-plan: rgba(70, 80, 90, 0.5); --bc-map-tree: #7FA866; --bc-map-tree-top: #A0C688; --bc-map-dirt: #CBAE86; --bc-map-label: rgba(255, 255, 255, 0.9); --bc-map-text: #2B3138; --bc-map-done: #1F8A4C; }
body[data-theme="Dark"] #bcWrapper { --bc-map-ground: #1D2A27; --bc-map-edge: #2C3D38; --bc-map-road: #4E5B66; --bc-map-road-line: #D9AB1F; --bc-map-plan: rgba(170, 185, 195, 0.45); --bc-map-tree: #2E4A39; --bc-map-tree-top: #3F6349; --bc-map-dirt: #6E5C46; --bc-map-label: rgba(16, 23, 27, 0.88); --bc-map-text: #E6ECEF; --bc-map-done: #2AA35C; }
#bcMapTabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px 0; }
    #bcWrapper .bc-map-tab { cursor: pointer; width: auto; min-width: 0; margin: 0; padding: 6px 16px; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 18px; border-radius: 16px; border: 1.5px solid var(--bc-line); box-shadow: none; color: #34363E; color: var(--body-text-color); background: transparent; }
        #bcWrapper .bc-map-tab.bc-map-tab-on { color: #FFF; border-color: var(--bc-accent); background: var(--bc-accent); }
        #bcWrapper .bc-map-tab:focus-visible { outline: 2px solid var(--bc-accent); outline-offset: 2px; }
.bc-map { position: relative; overflow: hidden; border-radius: 14px; background: var(--bc-map-ground); box-shadow: inset 0 0 0 1.5px var(--bc-map-edge); }
    .bc-map-roads { position: absolute; left: 0; top: 0; display: block; }
        .bc-map-road { fill: none; stroke: var(--bc-map-road); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
        .bc-map-road-line { fill: none; stroke: var(--bc-map-road-line); stroke-width: 1.6; stroke-dasharray: 7 7; }
        .bc-map-road-plan { fill: none; stroke: var(--bc-map-plan); stroke-width: 3; stroke-dasharray: 1 9; stroke-linecap: round; }
        .bc-map-tree { fill: var(--bc-map-tree); }
            .bc-map-tree-top { fill: var(--bc-map-tree-top); }
    .bc-map-dirt { fill: var(--bc-map-dirt); }
    #bcWrapper .bc-site { cursor: pointer; position: absolute; display: flex; flex-direction: column; align-items: center; width: 100px; min-width: 0; height: auto; margin: 0 0 0 -50px; padding: 0; font-family: inherit; line-height: 1.25; border: 0; border-radius: 10px; box-shadow: none; opacity: 1; color: var(--bc-map-text); background: transparent; }
        #bcWrapper .bc-site:focus-visible { outline: 2px solid var(--bc-accent); outline-offset: 2px; }
        .bc-site-plot { position: relative; display: block; width: 72px; height: 52px; transition: transform .12s ease-in-out; }
            .bc-site-plot svg { display: block; overflow: visible; }
            #bcWrapper .bc-site:hover:not(:disabled) .bc-site-plot { transform: translateY(-3px); }
        .bc-site-num { position: absolute; left: -5px; top: -3px; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; border-radius: 10px; color: #FFF; background: var(--bc-accent); box-shadow: 0 0 0 2px var(--bc-map-ground); }
            /* Rubble is low, so its number comes down to sit by the heap. */
            .bc-site-done .bc-site-num { top: 12px; background: var(--bc-map-done); }
        .bc-site-label { display: flex; flex-direction: column; align-items: center; box-sizing: border-box; max-width: 100%; margin-top: 6px; padding: 2px 7px 3px 7px; border-radius: 9px; background: var(--bc-map-label); }
            .bc-site-name { font-size: 12px; font-weight: 700; text-align: center; }
            .bc-site-label .bc-stars { font-size: 12px; letter-spacing: 1px; }
            .bc-site-lock { font-size: 11px; opacity: 0.75; }
        /* A site the road hasn't reached: there, but washed out. */
        #bcWrapper .bc-site.bc-site-locked { cursor: default; }
            .bc-site-locked .bc-site-plot svg { filter: grayscale(1); opacity: 0.5; }
            .bc-site-locked .bc-site-num { background: #8A9299; }
            .bc-site-locked .bc-site-label { opacity: 0.75; }
        /* The pin over the next site to do. */
        .bc-site-pin { position: absolute; left: 50%; top: -22px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50% 50% 50% 0; background: var(--bc-accent); box-shadow: 0 0 0 2px var(--bc-map-ground); transform: rotate(-45deg); animation: bcPin 1.1s ease-in-out infinite alternate; }
            .bc-site-pin::after { content: ""; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: #FFF; }
@keyframes bcPin {
    from { transform: translateY(0) rotate(-45deg); }
    to { transform: translateY(-5px) rotate(-45deg); }
}
#bcWrapper .help-section { margin-bottom: 22px; }
#bcWrapper .help-section-title { margin-bottom: 8px; padding-bottom: 4px; font-size: 15px; font-weight: bold; border-bottom: 1px solid #EEE; border-bottom: 1px solid var(--top-search-border-color); }
#bcWrapper .help-section p { margin: 0 0 8px; font-size: 14px; line-height: 1.7; }
#bcWrapper .help-section ul { margin-left: 20px; line-height: 1.7; }
#bcWrapper .help-section li { margin-bottom: 3px; font-size: 14px; }

/* ---- Settings ----
   The account, the theme, sound and starting again (BlastCrew.js, Settings). Each is a heading over a row. */
#bcWrapper { --bc-ico-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E"); }
/* The gear is shown larger than the other icons: on the round button beside the site, and on the title screen. */
#bcWrapper .bc-side button.bc-ico-settings::before { width: 23px; height: 23px; }
#bcWrapper .gs-title-option[data-title-action="settings"]::before { width: 18px; height: 18px; }
@media screen and (max-width: 560px) {
    #bcWrapper .bc-side button.bc-ico-settings::before { width: 21px; height: 21px; }
}
#bcWrapper .gs-title-option[data-title-action="settings"], #bcWrapper .bc-ico-settings { --bc-ico: var(--bc-ico-settings); }
/* For a guest in the app version, where signing in is: a line under the title screen's options that opens
   Settings, and a red dot on the gear beside the site. Neither shows for a signed-in player, nor in the browser
   version - its Sign in is in the site's header. */
#bcWrapper .bc-title-signin { cursor: pointer; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; width: auto; min-width: 0; margin: 0; padding: 6px 15px; font-family: inherit; font-size: 12.5px; line-height: 1.3; border: 0; border-radius: 999px; color: var(--bc-plate-text); background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); transition: transform .12s ease-in-out, background-color .2s ease-in-out; }
    #bcWrapper .bc-title-signin:hover { background: var(--bc-plate-hover); transform: translateY(-1px); }
    .bc-title-signin span { opacity: 0.75; }
    .bc-title-signin strong { font-weight: 700; color: var(--bc-accent); }
        .bc-title-signin strong::after { content: " →"; }
body[data-theme="Dark"] .bc-title-signin strong { color: #FF8A75; }
body[data-mode="spa"] #bcWrapper[data-guest="true"] .bc-side .bc-ico-settings { position: relative; }
    body[data-mode="spa"] #bcWrapper[data-guest="true"] .bc-side .bc-ico-settings::after { content: ""; position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--bc-accent); box-shadow: 0 0 0 2px var(--bc-plate-solid); }
.bc-set .bc-shop-title:first-child { margin-top: 6px; }
.bc-set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
    .bc-set-pic { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
    .bc-set-who { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; font-size: 13px; line-height: 1.4; }
        .bc-set-who strong { font-family: Fredoka, "Open Sans", sans-serif; font-size: 17px; font-weight: 600; }
        .bc-set-who span { opacity: 0.8; }
    #bcWrapper .bc-set-row a.bc-btn { display: inline-flex; align-items: center; text-decoration: none; }
    #bcWrapper .bc-set-row .bc-btn { padding: 7px 16px; font-size: 13px; }
/* Reset my progress, in Settings, and the second question it opens. */
.bc-reset { margin: 8px 0 0 0; text-align: left; }
    #bcWrapper .bc-reset .bc-btn { padding: 6px 15px; font-size: 13px; }
    .bc-reset [hidden] { display: none !important; }
    .bc-reset-ask { padding: 12px 14px; border-radius: 12px; background: rgba(216, 64, 47, 0.1); box-shadow: inset 0 0 0 1px rgba(216, 64, 47, 0.35); }
        .bc-reset-ask p { margin: 0 0 10px 0; font-size: 13.5px; line-height: 1.5; }
        .bc-reset-ask .bc-btn { margin: 0 3px; }

/* The short description of the game, at the end of How to play: its first line carries the page's <h1>, set
   as ordinary text. */
.bc-about-lede, .bc-about-lede h1 { display: block; font-size: 14px; line-height: 1.7; font-weight: normal; }
    .bc-about-lede h1 { display: inline-block; margin: 0; }
.bc-about-lede { margin-bottom: 8px; }

@media screen and (max-width: 480px) {
    #bcResult { padding: 8px 12px 10px 12px; }
        .bc-result-title { font-size: 17px; }
        #bcResult .bc-stars { font-size: 21px; }
        .bc-result-note { font-size: 12px; }
        .bc-result-buttons { margin-top: 7px; }
        #bcResult .bc-btn { padding: 6px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    #bcResult { animation: none; }
    #bcWrapper .bc-btn, .bc-site-plot { transition: none; }
    .bc-site-pin { animation: none; }
}

/* ---- Icons on Levels, How to play and Sound ----
   A small line icon ahead of each: on the title screen's options (keyed off data-title-action) and on the
   same three links under both game cards (.bc-ico). The same drawings the other games' title options use
   (gameButtons.css, which this page doesn't load), plus a folded map for Levels. Each is a mask filled with
   currentColor, so it takes the text colour of whatever it sits in; the speaker is crossed out when muted. */
#bcWrapper {
    --bc-ico-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5l6-2.5 6 2.5 6-2.5v13.5l-6 2.5-6-2.5-6 2.5z'/%3E%3Cpath d='M9 4v13.5'/%3E%3Cpath d='M15 6.5V20'/%3E%3C/svg%3E");
    --bc-ico-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M9.4 9.3a2.7 2.7 0 0 1 5.2 1c0 1.8-2.6 2.3-2.6 3.9'/%3E%3Cpath d='M12 17.3h.01'/%3E%3C/svg%3E");
    --bc-ico-sound: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z'/%3E%3Cpath d='M15.5 9a4 4 0 0 1 0 6'/%3E%3Cpath d='M18.2 6.4a7.6 7.6 0 0 1 0 11.2'/%3E%3C/svg%3E");
    --bc-ico-muted: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z'/%3E%3Cpath d='m16 9.5 5 5'/%3E%3Cpath d='m21 9.5-5 5'/%3E%3C/svg%3E");
}
#bcWrapper .gs-title-option[data-title-action], #bcWrapper .bc-ico { display: inline-flex; align-items: center; gap: 6px; }
    #bcWrapper .gs-title-option[data-title-action]::before, #bcWrapper .bc-ico::before { content: ""; flex: none; width: 15px; height: 15px; background-color: currentColor; -webkit-mask: var(--bc-ico) center / contain no-repeat; mask: var(--bc-ico) center / contain no-repeat; transition: transform .2s ease; }
    #bcWrapper .gs-title-option[data-title-action]:hover::before, #bcWrapper .bc-ico:hover::before { transform: scale(1.12); }
#bcWrapper .gs-title-option[data-title-action="levels"], #bcWrapper .bc-ico-map { --bc-ico: var(--bc-ico-map); }
#bcWrapper .gs-title-option[data-title-action="howto"], #bcWrapper .bc-ico-help { --bc-ico: var(--bc-ico-help); }
#bcWrapper .gs-title-option[data-title-action="sound"], #bcWrapper .bc-ico-sound { --bc-ico: var(--bc-ico-sound); }
#bcWrapper .gs-title-option[data-title-action="sound"][aria-pressed="false"], #bcWrapper .bc-ico-sound[data-muted="true"] { --bc-ico: var(--bc-ico-muted); }
/* The Transitions setting: a burst, struck through when they are off. */
#bcWrapper { --bc-ico-wipes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l2.1 5.2 5-2.2-2.2 5 5.2 2.1-5.2 2.1 2.2 5-5-2.2-2.1 5.2-2.1-5.2-5 2.2 2.2-5L1.9 12.6l5.2-2.1-2.2-5 5 2.2z'/%3E%3C/svg%3E"); --bc-ico-wipes-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l2.1 5.2 5-2.2-2.2 5 5.2 2.1-5.2 2.1 2.2 5-5-2.2-2.1 5.2-2.1-5.2-5 2.2 2.2-5L1.9 12.6l5.2-2.1-2.2-5 5 2.2z'/%3E%3Cpath d='M3.5 3.5l17 17'/%3E%3C/svg%3E"); }
#bcWrapper .bc-ico-wipes { --bc-ico: var(--bc-ico-wipes); }
#bcWrapper .bc-ico-wipes[data-off="true"] { --bc-ico: var(--bc-ico-wipes-off); }
@media (prefers-reduced-motion: reduce) {
    #bcWrapper .gs-title-option[data-title-action]::before, #bcWrapper .bc-ico::before { transition: none; }
    #bcWrapper .gs-title-option[data-title-action]:hover::before, #bcWrapper .bc-ico:hover::before { transform: none; }
}

/* ---- The wipe ----
   The shell's screen-covering wipe, as an explosion (BlastCrew.js, The wipe), in the order a real one goes:
   a white flash at the middle; a fireball that rolls outward from it - each of the shell's cells is a soft-
   edged puff, a different size and knocked off its grid square so no two line up, white-hot as it arrives,
   then yellow, then its own shade of orange or red (--c), cooling to smoke; a shock ring and a scatter of
   debris thrown out ahead of the fire; and then smoke over everything, which is what the screen is covered
   with while the page changes underneath. On the way out the smoke thins from the middle and lifts away.
   --s is a puff's size and --ox / --oy how far it sits off its square; the script sets them, with --d and --c. */
#gsTitleWipe.gs-wipe-blast { gap: 0; padding: 0; }
    #gsTitleWipe.gs-wipe-blast::before { background: radial-gradient(ellipse at 50% 50%, #4a423b 0%, #2f2a26 60%, #211d1a 100%); }
.gs-wipe-blast .gs-wipe-cell { overflow: visible; border-radius: 50%; background-color: var(--c); background-image: none; text-shadow: none;
    -webkit-mask: radial-gradient(circle, #000 0 42%, rgba(0, 0, 0, 0.55) 58%, transparent 72%); mask: radial-gradient(circle, #000 0 42%, rgba(0, 0, 0, 0.55) 58%, transparent 72%);
    transform: translate(var(--ox, 0), var(--oy, 0)) scale(0); animation: bcBlastIn .26s cubic-bezier(.15, .8, .3, 1) var(--d) both; }
    #gsTitleWipe.gs-wipe-out.gs-wipe-blast .gs-wipe-cell { animation: bcBlastOut .2s ease-in var(--d) both; }
@keyframes bcBlastIn {
    0% { transform: translate(var(--ox, 0), var(--oy, 0)) scale(0); background-color: var(--hot1, #FFFBE6); }
    22% { transform: translate(var(--ox, 0), var(--oy, 0)) scale(calc(var(--s) * 0.9)); background-color: var(--hot2, #FFE27A); }
    48% { transform: translate(var(--ox, 0), var(--oy, 0)) scale(calc(var(--s) * 1.12)); background-color: var(--c); }
    100% { transform: translate(var(--ox, 0), var(--oy, 0)) scale(var(--s)); background-color: color-mix(in srgb, var(--c) 7%, #3b3835); }
}
@keyframes bcBlastOut {
    0% { transform: translate(var(--ox, 0), var(--oy, 0)) scale(var(--s)); opacity: 1; background-color: color-mix(in srgb, var(--c) 7%, #3b3835); }
    100% { transform: translate(var(--ox, 0), calc(var(--oy, 0px) - 46px)) scale(calc(var(--s) * 1.35)); opacity: 0; background-color: #8a8580; }
}
/* Debris: thrown out fast, slowing, tumbling, and dropping a little as it goes. */
.bc-wipe-chip { position: absolute; left: 50%; top: 50%; height: 9px; margin: -4px 0 0 -9px; border-radius: 2px; pointer-events: none; opacity: 0; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); animation: bcBlastChip .5s cubic-bezier(.1, .75, .3, 1) both; }
@keyframes bcBlastChip {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.4); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translate(var(--x), calc(var(--y) + 60px)) rotate(var(--r)) scale(1); opacity: 0; }
}
/* What a particular blast throws: coins (round, with a rim), sparks (thin streaks, fast, that don't tumble or
   drop), and - closing in for the Main Menu - debris pulled back to the middle instead of thrown from it. */
.bc-wipe-chip.bc-wipe-coin { border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(150, 100, 0, 0.55), inset 0 0 0 4px rgba(255, 244, 196, 0.5); }
.bc-wipe-chip.bc-wipe-spark { border-radius: 2px; box-shadow: 0 0 8px rgba(170, 220, 255, 0.9); animation: bcBlastSpark .34s cubic-bezier(.05, .7, .2, 1) both; }
@keyframes bcBlastSpark {
    0% { transform: translate(0, 0) rotate(var(--r)) scaleX(0.3); opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scaleX(1); opacity: 0; }
}
.bc-wipe-chip.bc-wipe-chip-in { animation: bcBlastChipIn .45s cubic-bezier(.6, 0, .9, .4) both; }
@keyframes bcBlastChipIn {
    0% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 0; }
    25% { opacity: 1; }
    100% { transform: translate(0, 0) rotate(0deg) scale(0.4); opacity: 0; }
}
#gsTitleWipe.gs-wipe-blast .gs-wipe-label { color: #3A2716; background: #FFF6DC; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 5px #23282C, 0 0 0 10px #F2C230; }

/* ---- The stars count ----
   On the title screen and over the map (BlastCrew.js, starMeter): a pill holding a gold star, the number
   earned in large figures with the total small beside it, and a slim bar filled as far as the player has
   got. It takes its text colour from where it sits, so it works on the felt and on the card in both themes. */
#bcWrapper .gs-title-best { opacity: 1; }
.bc-meter { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 6px; border-radius: 999px; line-height: 1; font-variant-numeric: tabular-nums; background: rgba(127, 127, 127, 0.16); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.18); }
    .bc-meter-star { flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(145deg, #FFD65A 0%, #E8A70C 100%); box-shadow: 0 2px 6px rgba(232, 167, 12, 0.45); position: relative; }
        .bc-meter-star::before { content: ""; position: absolute; left: 5px; top: 5px; width: 16px; height: 16px; background: #FFF; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.5.9-4.7 4.6 1.1 6.5L12 17.5l-5.8 3.1 1.1-6.5L2.6 9.5l6.5-.9z' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.5.9-4.7 4.6 1.1 6.5L12 17.5l-5.8 3.1 1.1-6.5L2.6 9.5l6.5-.9z' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
    .bc-meter-count { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
        .bc-meter-count strong { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; }
        .bc-meter-count span { font-size: 12px; font-weight: 600; opacity: 0.65; }
    .bc-meter-bar { flex: none; width: 45px; height: 6px; overflow: hidden; border-radius: 3px; background: rgba(127, 127, 127, 0.3); }
        .bc-meter-bar i { display: block; height: 100%; min-width: 0; border-radius: 3px; background: linear-gradient(90deg, #F2C230 0%, #E8A70C 100%); transition: width .4s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .bc-meter-bar i { transition: none; }
}

/* ---- The title screen's menu ----
   Blast Crew's own menu, over the shell's (gameShell.css): each mode is a job ticket - a blueprint tile with
   a drawing of the building it opens on, the Play / Continue line, the mode's name, where the player is in
   it, and a round go button - with a strip of hazard tape along the bottom edge. Classic's go button is the
   dynamite's red, 3D Sites' the tape's yellow. The options under them sit together in one bar. Written with
   the wrapper's id so these outrank the shell's title rules. */
#bcWrapper { --bc-job-bg: #FFFFFF; --bc-job-text: #23282C; --bc-job-soft: #5C6870; --bc-job-edge: rgba(35, 40, 44, 0.14); --bc-job-plan: #E3EDF6; --bc-job-grid: rgba(60, 110, 160, 0.17); --bc-job-label: #C2331F; }
body[data-theme="Dark"] #bcWrapper { --bc-job-bg: #14202A; --bc-job-text: #F2F5F7; --bc-job-soft: #A9B6BF; --bc-job-edge: rgba(255, 255, 255, 0.12); --bc-job-plan: #1A3145; --bc-job-grid: rgba(140, 190, 235, 0.15); --bc-job-label: #FF7A66; }
#bcWrapper #gsTitleScreen::before { background: radial-gradient(ellipse 55% 60% at 50% 45%, rgba(216, 64, 47, 0.16), transparent 70%), radial-gradient(ellipse 35% 45% at 20% 70%, rgba(242, 194, 48, 0.12), transparent 70%), radial-gradient(ellipse 35% 45% at 82% 68%, rgba(240, 138, 60, 0.12), transparent 70%); }
#bcWrapper #gsTitleScreen .gs-title-modes { margin-top: -2px; }
#bcWrapper #gsTitleScreen #gsTitlePlayBtn, #bcWrapper #gsTitleScreen .gs-title-mode {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 84px minmax(0, 1fr) 44px; align-items: center; gap: 12px; flex: none; box-sizing: border-box; width: min(100%, 380px); min-width: 0; max-width: none; margin: 0; padding: 10px 14px 15px 10px; font-family: inherit; text-align: left; border: 0; border-radius: 16px; color: var(--bc-job-text); background: var(--bc-job-bg); box-shadow: 0 0 0 1px var(--bc-job-edge), 0 10px 24px rgba(0, 0, 0, 0.26); transition: transform .15s ease-in-out, box-shadow .15s ease-in-out, opacity .25s ease-in;
}
    #bcWrapper #gsTitleScreen #gsTitlePlayBtn::after, #bcWrapper #gsTitleScreen .gs-title-mode::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(-45deg, #F2C230 0 10px, #23282C 10px 20px); }
    #bcWrapper #gsTitleScreen #gsTitlePlayBtn:hover, #bcWrapper #gsTitleScreen .gs-title-mode:hover:not(:disabled) { transform: translateY(-2px); background: var(--bc-job-bg); box-shadow: 0 0 0 1px var(--bc-job-edge), 0 16px 30px rgba(0, 0, 0, 0.32); }
    #bcWrapper #gsTitleScreen #gsTitlePlayBtn:active, #bcWrapper #gsTitleScreen .gs-title-mode:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 0 0 1px var(--bc-job-edge), 0 4px 10px rgba(0, 0, 0, 0.26); }
    #bcWrapper #gsTitleScreen #gsTitlePlayBtn:focus-visible, #bcWrapper #gsTitleScreen .gs-title-mode:focus-visible { outline: 2px solid var(--bc-accent); outline-offset: 3px; }
.bc-job-plan { display: flex; align-items: flex-end; justify-content: center; box-sizing: border-box; width: 84px; height: 62px; padding-bottom: 3px; border-radius: 10px; background-color: var(--bc-job-plan); background-image: linear-gradient(var(--bc-job-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bc-job-grid) 1px, transparent 1px); background-size: 12px 12px; background-position: 5px 1px; box-shadow: inset 0 0 0 1px var(--bc-job-grid); }
    .bc-job-plan svg { display: block; overflow: visible; }
.bc-job-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
    #bcWrapper .bc-job-text .gs-title-play-label, .bc-job-label { font-family: inherit; font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: 0.9px; text-transform: uppercase; color: var(--bc-job-label); }
    #bcWrapper #gsTitleScreen .bc-job-name { font-family: Fredoka, "Open Sans", sans-serif; font-size: 21px; font-weight: 600; line-height: 1.15; color: var(--bc-job-text); }
    #bcWrapper #gsTitleScreen .bc-job-text .gs-title-play-sub, #bcWrapper #gsTitleScreen .bc-job-text .gs-title-mode-status { overflow: hidden; margin: 1px 0 0 0; font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; opacity: 1; color: var(--bc-job-soft); }
.bc-job-go { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--bc-accent); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.32), 0 4px 0 #8E2418; transition: transform .15s ease-in-out; }
    .bc-job-go::before { content: ""; position: absolute; left: 17px; top: 13px; width: 14px; height: 18px; background: #FFF; -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%); clip-path: polygon(0 0, 100% 50%, 0 100%); }
    .bc-job-3d .bc-job-go { background: #F2C230; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 4px 0 #B58A12; }
        .bc-job-3d .bc-job-go::before { background: #23282C; }
    .bc-job:hover:not(:disabled) .bc-job-go { transform: scale(1.08); }
/* The options: one bar, three keys. */
#bcWrapper #gsTitleScreen .gs-title-options { gap: 2px; padding: 3px; border-radius: 20px; background: rgba(127, 127, 127, 0.14); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.18); }
    #bcWrapper #gsTitleScreen .gs-title-option { padding: 6px 13px; font-weight: 600; border-radius: 17px; opacity: 1; }
        #bcWrapper #gsTitleScreen .gs-title-option:hover { background-color: rgba(127, 127, 127, 0.24); }
@media screen and (max-width: 400px) {
    #bcWrapper #gsTitleScreen #gsTitlePlayBtn, #bcWrapper #gsTitleScreen .gs-title-mode { grid-template-columns: 72px minmax(0, 1fr) 40px; gap: 10px; padding-right: 10px; }
    .bc-job-plan { width: 72px; }
    .bc-job-go { width: 40px; height: 40px; }
        .bc-job-go::before { left: 15px; top: 11px; }
    #bcWrapper #gsTitleScreen .gs-title-option { padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) {
    #bcWrapper #gsTitleScreen #gsTitlePlayBtn, #bcWrapper #gsTitleScreen .gs-title-mode, .bc-job-go { transition: none; }
}

/* ---- Icons on the game buttons ----
   Restart (an arrow coming round), Reset view (a frame's corners round a dot), Clear (a crossed circle) and
   Detonate (a burst), drawn the same way as the icons on Levels, How to play and Sound above. */
#bcWrapper {
    --bc-ico-restart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12a7.5 7.5 0 1 0 2.4-5.5'/%3E%3Cpath d='M4 3.8v4.4h4.4'/%3E%3C/svg%3E");
    --bc-ico-view: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V5.5A1.5 1.5 0 0 1 5.5 4H9'/%3E%3Cpath d='M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9'/%3E%3Cpath d='M20 15v3.5a1.5 1.5 0 0 1-1.5 1.5H15'/%3E%3Cpath d='M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3C/svg%3E");
    --bc-ico-clear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m8.8 8.8 6.4 6.4'/%3E%3Cpath d='m15.2 8.8-6.4 6.4'/%3E%3C/svg%3E");
    --bc-ico-blast: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l1.9 5.2 4.8-2.8-1.6 5.3 5.4 1.4-5 2.5 2.8 4.8-5.3-1.5L12 22l-1.9-4.6-5.3 1.5 2.8-4.8-5-2.5L8 10.2 6.4 4.9l4.8 2.8z'/%3E%3C/svg%3E");
}
#bcWrapper .bc-ico-restart { --bc-ico: var(--bc-ico-restart); }
#bcWrapper .bc-ico-view { --bc-ico: var(--bc-ico-view); }
#bcWrapper .bc-ico-clear { --bc-ico: var(--bc-ico-clear); }
#bcWrapper .bc-ico-blast { --bc-ico: var(--bc-ico-blast); }
#bcWrapper .bc-btn.bc-ico { padding-left: 15px; }
    #bcWrapper .bc-btn.bc-ico:disabled::before { transform: none; }

/* ---- The top bar ----
   Over the site in both modes (BlastCrew.js, levelHeader and stickRow), each end on a pale plate. On the left
   the level: its number on a red tile, the mode and how far through it in small capitals, and the name in
   the game's display face with the stars it has earned. On the right the dynamite in hand, in a pill: a
   drawn stick for each one left, a dashed outline for each one planted, and the count. */
#bcLevelName, #bc3dLevelName { display: flex; align-items: center; gap: 11px; min-width: 0; text-align: left; }
    .bc-lvl-num { flex: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 42px; height: 42px; padding: 0 8px; font-family: Fredoka, "Open Sans", sans-serif; font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; border-radius: 13px; color: #FFF; background: linear-gradient(150deg, #EC5A45 0%, #C2331F 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #8E2418, 0 6px 12px rgba(216, 64, 47, 0.3); }
    .bc-lvl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
        .bc-lvl-kind { font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: 0.9px; text-transform: uppercase; opacity: 0.65; }
        .bc-lvl-name { font-family: Fredoka, "Open Sans", sans-serif; font-size: 21px; font-weight: 600; line-height: 1.15; }
            .bc-lvl-name .bc-stars { margin-left: 4px; font-size: 15px; letter-spacing: 1px; vertical-align: 2px; }
#bcStock, #bc3dStock { display: flex; align-items: center; gap: 10px; padding: 3px 15px 5px 12px; font-size: 14px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; border-radius: 999px; background: rgba(127, 127, 127, 0.14); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.18); }
    #bcSticks, #bc3dSticks { display: flex; align-items: flex-end; gap: 3px; }
    .bc-stick { display: block; overflow: visible; width: 19px; height: 43px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
        .bc-stick.bc-stick-used { filter: none; opacity: 0.45; }
    #bcStockText:empty, #bc3dStockText:empty { display: none; }
@media screen and (max-width: 480px) {
    .bc-lvl-num { min-width: 36px; height: 36px; font-size: 19px; border-radius: 11px; }
    .bc-lvl-name { font-size: 18px; }
}

/* ---- Standalone App / Browser Version and Game List ----
   The same pills the other games have: the switch between the browser and app versions, and in the app
   version the way back to the game list. They're in Settings, under a heading of their own. */
.bc-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.bc-link { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: 12px; line-height: 18px; text-decoration: none; border-radius: 15px; color: #34363E; color: var(--body-text-color); background: rgba(127, 127, 127, 0.14); transition: background-color .2s ease-in-out, transform .12s ease-in-out; }
    .bc-link:hover { text-decoration: none; background: rgba(127, 127, 127, 0.28); }
    .bc-link:active { transform: scale(0.94); }
    .bc-link::before { content: ""; flex: none; width: 18px; height: 18px; background-size: contain; background-repeat: no-repeat; background-position: center center; }
    .bc-link-version[data-type="browser"]::before { background-image: url(../../Assets/icons/desktopview.png); }
    .bc-link-version[data-type="app"]::before { background-image: url(../../Assets/icons/appview.png); }
    .bc-link-list::before { background-image: url(../../Assets/Games/Logos/GamesApp.png); }

/* ---- The tab bar ----
   The shell's dock (gameShell.css, Dock): Menu, then Classic, 3D Sites and Levels. The bubble behind the
   active tab takes that tab's colour - the dynamite's red, the hazard tape's amber, the map's green. On
   narrow screens the browser version's bar sits in #bcModeHolder along the foot of the scene (The scene). */
/* Menu, at the front of the bar: a little house in colour like the tabs beside it, in place of the shell's
   one-colour outline. */
#bcWrapper #gsDock .gs-dock-menu::before { width: 26px; height: 26px; background-color: transparent; background-image: url(../../Assets/Games/Images/BlastCrew/menu.svg); background-position: center; background-size: contain; background-repeat: no-repeat; -webkit-mask: none; mask: none; }
#gsDockBubble[data-mode="classic"] { background: linear-gradient(135deg, #EC5A45, #C2331F); box-shadow: 0 6px 16px rgba(216, 64, 47, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
#gsDockBubble[data-mode="3d"] { background: linear-gradient(135deg, #F2A93A, #D9741F); box-shadow: 0 6px 16px rgba(232, 140, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
#gsDockBubble[data-mode="levels"] { background: linear-gradient(135deg, #4FB06B, #1F8A4C); box-shadow: 0 6px 16px rgba(31, 138, 76, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

/* ---- Icons on the result card's buttons ----
   Play again / Try again take Restart's arrow and Levels the map, both in front of the word. Next level /
   Next site gets an arrow after it, pointing the way on. */
#bcWrapper { --bc-ico-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12.5 6.500 18 12l-5.500 5.500'/%3E%3C/svg%3E"); }
#bcWrapper .bc-ico-next { --bc-ico: var(--bc-ico-next); flex-direction: row-reverse; }
    #bcWrapper .bc-btn.bc-ico.bc-ico-next { padding-left: 20px; padding-right: 15px; }
    #bcWrapper .bc-btn.bc-ico-next:hover::before { transform: translateX(3px); }
#bcWrapper .bc-result-buttons .bc-btn.bc-ico { vertical-align: middle; }
@media screen and (max-width: 480px) {
    #bcWrapper #bcResult .bc-btn.bc-ico, #bcWrapper #bc3dResult .bc-btn.bc-ico { padding-left: 11px; }
    #bcWrapper #bcResult .bc-btn.bc-ico-next, #bcWrapper #bc3dResult .bc-btn.bc-ico-next { padding-left: 14px; padding-right: 11px; }
}

/* ---- The store ----
   Coins, the tray of power-ups under each mode's site, the store panel, and the coins line on a result card
   (BlastCrew.js, The store). A coin is a gold disc with a darker rim and a pale ring. */
#bcWrapper { --bc-ico-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h16l-1.5 10.5a1.5 1.5 0 0 1-1.5 1.3H7a1.5 1.5 0 0 1-1.5-1.3z'/%3E%3Cpath d='M8.5 9V7a3.5 3.5 0 0 1 7 0v2'/%3E%3C/svg%3E"); }
#bcWrapper .gs-title-option[data-title-action="store"], #bcWrapper .bc-ico-store { --bc-ico: var(--bc-ico-store); }
.bc-coin { flex: none; display: inline-block; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; border: 2px solid #C98A0A; background: radial-gradient(circle at 35% 30%, #FFE99A 0 18%, #F2C230 45%, #E0A20C 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 244, 196, 0.75), 0 1px 2px rgba(0, 0, 0, 0.25); }
.bc-coins { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 6px; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; border-radius: 999px; background: rgba(127, 127, 127, 0.16); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.18); }
    .bc-coins .bc-coin { width: 22px; height: 22px; vertical-align: 0; }
    .bc-coins strong { font-family: Fredoka, "Open Sans", sans-serif; font-weight: 600; }
    /* Whose coins, where both modes' are shown side by side. */
    .bc-coins em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; opacity: 0.65; }
.bc-shop-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px 0; }
/* On the title screen the coins sit beside the stars count, as a pill of the same height, on one line. */
#bcWrapper #bcTitleStars { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
#bcTitleCoins { display: flex; gap: 8px; }
    #bcTitleCoins .bc-coins { box-sizing: border-box; height: 36px; padding: 0 14px 0 5px; gap: 8px; font-size: 16px; }
        #bcTitleCoins .bc-coins .bc-coin { width: 26px; height: 26px; }

/* The tray. */
.bc-tray { display: flex; }
    #bcWrapper .bc-tray button { cursor: pointer; width: auto; min-width: 0; height: auto; margin: 0; font-family: inherit; line-height: 1; border: 0; box-shadow: none; color: #34363E; color: var(--body-text-color); transition: transform .12s ease-in-out, background-color .2s ease-in-out; -webkit-tap-highlight-color: transparent; }
    #bcWrapper .bc-tray button:active { transform: scale(0.96); }
    #bcWrapper .bc-tray button:focus-visible { outline: 2px solid var(--bc-accent); outline-offset: 2px; }
    #bcWrapper .bc-coins-btn { padding: 5px 13px 5px 6px; font-size: 14px; background: rgba(127, 127, 127, 0.16); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.18); }
        #bcWrapper .bc-coins-btn:hover { background: rgba(127, 127, 127, 0.28); }
        .bc-coins-btn span { font-size: 12px; font-weight: 700; opacity: 0.7; }
    #bcWrapper .bc-power { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; font-size: 13px; font-weight: 700; border-radius: 999px; background: rgba(127, 127, 127, 0.14); box-shadow: inset 0 0 0 1.5px rgba(127, 127, 127, 0.2); backdrop-filter: blur(10px); }
        #bcWrapper .bc-power:hover { background: rgba(127, 127, 127, 0.26); }
        .bc-power svg { flex: none; width: 24px; height: 24px; }
        .bc-power b { min-width: 20px; padding: 3px 6px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; border-radius: 999px; color: #FFF; background: #5B646D; }
        #bcWrapper .bc-power.bc-power-on { color: #FFF; background: var(--bc-accent); box-shadow: 0 3px 10px rgba(216, 64, 47, 0.4), inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
            .bc-power.bc-power-on b { color: var(--bc-accent); background: #FFF; }
        .bc-power.bc-power-none span, .bc-power.bc-power-none svg { opacity: 0.5; }
        .bc-power.bc-power-none b { background: rgba(127, 127, 127, 0.5); }
    /* Mid-blast and on a result, the power-ups can't be switched. */
    .bc-tray.bc-tray-idle .bc-power { opacity: 0.45; pointer-events: none; }

/* A pass's score on its result card: the number, large; the level's three marks as chips, lit where the
   score reached them; and what the score was made of. */
.bc-result-score { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 2px; line-height: 1; color: var(--bc-ink); }
    .bc-result-score strong { font-family: Fredoka, "Open Sans", sans-serif; font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
    .bc-result-score span { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--bc-ink-soft); }
.bc-goals { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 7px; }
    .bc-goal { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; font-size: 12px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; border-radius: 999px; color: var(--bc-ink-soft); background: var(--bc-chip); box-shadow: inset 0 0 0 1px var(--bc-chip-edge); }
        .bc-goal i { font-style: normal; letter-spacing: 1px; color: var(--bc-chip-edge); }
        .bc-goal.bc-goal-met { color: var(--bc-gold-ink); background: var(--bc-gold); box-shadow: inset 0 0 0 1px #F2C230; }
            .bc-goal.bc-goal-met i { color: var(--bc-star); }
.bc-result-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; margin-top: 8px; max-width: 340px; }
    .bc-result-parts b { font-weight: 700; color: var(--bc-ink); font-variant-numeric: tabular-nums; }

/* ---- The result's show ----
   A pass (BlastCrew.js, playResult): three stars that light as the score passes each of the level's marks,
   the score counting up, a meter filling along with it - the marks are the notches on it - and the pieces
   of the score coming in one at a time. While it plays (bc-result-playing) the coins and the buttons wait;
   when it's done (bc-result-played) they come in. A level not passed (bc-result-lost) drops in and shakes. */
.bc-show-stars { display: flex; justify-content: center; gap: 6px; margin: 2px 0 0 0; font-size: 38px; line-height: 1; }
    .bc-show-star { color: var(--bc-chip-edge); transition: color .15s ease-out; }
    .bc-show-star.bc-show-star-on { color: var(--bc-star); text-shadow: 0 2px 8px rgba(232, 167, 12, 0.5); }
        .bc-result-playing .bc-show-star.bc-show-star-on { animation: bcStarPop .5s cubic-bezier(.3, 1.7, .5, 1); }
        .bc-show-star:nth-child(2) { font-size: 46px; margin-top: -5px; }
.bc-show-meter { position: relative; height: 10px; margin: 8px auto 0 auto; max-width: 300px; border-radius: 5px; background: var(--bc-chip); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); }
    .bc-show-meter i { display: block; height: 100%; min-width: 0; border-radius: 5px; background: linear-gradient(90deg, #F2C230 0%, #E8A70C 60%, #D8402F 100%); }
    .bc-show-meter b { position: absolute; top: -3px; width: 2px; height: 16px; margin-left: -1px; border-radius: 1px; background: var(--bc-ink); opacity: 0.55; }
.bc-part { white-space: nowrap; }
    .bc-result-playing .bc-part { opacity: 0; transform: translateY(6px); }
    .bc-result-playing .bc-part.bc-part-in { opacity: 1; transform: none; transition: opacity .2s ease-out, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.bc-result-playing .bc-result-score strong { color: var(--bc-fail); }
.bc-result-playing .bc-result-coins, .bc-result-playing .bc-result-buttons { visibility: hidden; }
.bc-result-playing { cursor: pointer; }
.bc-result-played .bc-result-coins, .bc-result-played .bc-result-buttons { animation: bcShowIn .35s ease-out both; }
.bc-result-played .bc-result-score strong { animation: bcScoreLand .45s cubic-bezier(.3, 1.6, .5, 1); }
#bcResult.bc-result-lost, #bc3dResult.bc-result-lost { animation: bcResultLost .7s cubic-bezier(.3, 1.2, .5, 1) both; }
@keyframes bcStarPop {
    0% { transform: scale(0.3) rotate(-30deg); }
    60% { transform: scale(1.45) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@keyframes bcShowIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes bcScoreLand {
    0% { transform: scale(1); }
    45% { transform: scale(1.22); }
    100% { transform: scale(1); }
}
@keyframes bcResultLost {
    0% { opacity: 0; transform: translateX(-50%) translateY(-60px) rotate(-3deg); }
    35% { opacity: 1; transform: translateX(-50%) translateY(6px) rotate(1.5deg); }
    50% { transform: translateX(calc(-50% - 9px)) rotate(-1.5deg); }
    65% { transform: translateX(calc(-50% + 7px)) rotate(1deg); }
    80% { transform: translateX(calc(-50% - 4px)); }
    100% { opacity: 1; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .bc-show-star, .bc-result-played .bc-result-coins, .bc-result-played .bc-result-buttons, .bc-result-played .bc-result-score strong { animation: none; transition: none; }
    #bcResult.bc-result-lost, #bc3dResult.bc-result-lost { animation: none; }
}

/* The coins line on a result card. */
.bc-result-coins { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 7px; font-size: 13px; line-height: 1.2; color: var(--bc-ink-soft); }
    .bc-result-coins strong { color: var(--bc-ink); font-variant-numeric: tabular-nums; }
    .bc-result-earned { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; font-weight: 800; font-variant-numeric: tabular-nums; border-radius: 999px; color: var(--bc-gold-ink); background: var(--bc-gold); box-shadow: inset 0 0 0 1px #F2C230; }
        .bc-result-earned .bc-coin { vertical-align: 0; }
    .bc-result-earned.bc-result-none { padding: 3px 10px; font-weight: 600; color: var(--bc-ink-soft); background: var(--bc-chip); box-shadow: inset 0 0 0 1px var(--bc-chip-edge); }

/* Something just bought (BlastCrew.js, celebrate): the card flashes gold, its drawing jumps, the upgrade's
   newest pip pulses, sparks fly from the drawing and a label rises off it. */
.bc-shop-card { position: relative; }
.bc-shop-card.bc-shop-won { animation: bcShopWon 1.2s ease-out; }
    .bc-shop-won .bc-shop-ico { animation: bcShopJump .6s cubic-bezier(.3, 1.6, .5, 1); }
    .bc-shop-pips i.bc-pip-new { animation: bcShopPip .5s ease-out 3; }
.bc-shop-rise { position: absolute; left: 40px; top: 6px; z-index: 2; padding: 3px 10px; transform: translateX(-50%); font-family: Fredoka, "Open Sans", sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; pointer-events: none; border-radius: 999px; color: #5A3A00; background: linear-gradient(180deg, #FFE27A, #F2C230); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); animation: bcShopRise 1.4s ease-out both; }
.bc-shop-spark { position: absolute; left: 40px; top: 40px; z-index: 1; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none; opacity: 0; animation: bcShopSpark .7s ease-out both; }
@keyframes bcShopWon {
    0% { box-shadow: inset 0 0 0 2px #F2C230, 0 0 0 0 rgba(242, 194, 48, 0.8); background-color: rgba(242, 194, 48, 0.35); }
    60% { box-shadow: inset 0 0 0 2px #F2C230, 0 0 0 14px rgba(242, 194, 48, 0); }
    100% { box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.2), 0 0 0 0 rgba(242, 194, 48, 0); }
}
@keyframes bcShopJump {
    0% { transform: scale(1); }
    40% { transform: scale(1.28) rotate(-6deg); }
    100% { transform: scale(1); }
}
@keyframes bcShopPip {
    0%, 100% { transform: scaleY(1); filter: none; }
    50% { transform: scaleY(2.2); filter: brightness(1.4); }
}
@keyframes bcShopRise {
    0% { opacity: 0; transform: translate(-50%, 14px) scale(0.6); }
    18% { opacity: 1; transform: translate(-50%, -6px) scale(1.1); }
    70% { opacity: 1; transform: translate(-50%, -22px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -34px) scale(1); }
}
@keyframes bcShopSpark {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.3); }
}
@media (prefers-reduced-motion: reduce) {
    .bc-shop-card.bc-shop-won { animation: none; box-shadow: inset 0 0 0 2px #F2C230; }
    .bc-shop-won .bc-shop-ico, .bc-shop-pips i.bc-pip-new { animation: none; }
    .bc-shop-rise { animation: none; top: -10px; }
}

/* The card the player was sent to the store for (a power-up they'd run out of): a red ring that pulses a few
   times and stays, so it's still marked once the scrolling has stopped. */
.bc-shop-card.bc-shop-point { box-shadow: inset 0 0 0 2px var(--bc-accent), 0 0 0 4px rgba(216, 64, 47, 0.25); animation: bcShopPoint .7s ease-in-out 4; }
@keyframes bcShopPoint {
    0%, 100% { box-shadow: inset 0 0 0 2px var(--bc-accent), 0 0 0 0 rgba(216, 64, 47, 0.6); background-color: rgba(216, 64, 47, 0.06); }
    50% { box-shadow: inset 0 0 0 2px var(--bc-accent), 0 0 0 10px rgba(216, 64, 47, 0); background-color: rgba(216, 64, 47, 0.22); }
}
@media (prefers-reduced-motion: reduce) {
    .bc-shop-card.bc-shop-point { animation: none; }
}

/* The ways into the store flash while the next site suggests more upgrades than the player has (BlastCrew.js, syncStoreFlash): the
   round Store button over the site, and the Store option on the title screen. */
#bcWrapper.bc-store-flash .bc-side .bc-ico-store, #bcWrapper.bc-store-flash .gs-title-option[data-title-action="store"] { color: #FFF; background: var(--bc-accent); animation: bcStoreFlash 1.1s ease-in-out infinite; }
@keyframes bcStoreFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(216, 64, 47, 0.7); transform: scale(1); }
    50% { box-shadow: 0 0 0 9px rgba(216, 64, 47, 0); transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    #bcWrapper.bc-store-flash .bc-side .bc-ico-store, #bcWrapper.bc-store-flash .gs-title-option[data-title-action="store"] { animation: none; box-shadow: 0 0 0 3px rgba(216, 64, 47, 0.4); }
}

/* The panel. */
.bc-shop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 2px 0 4px 0; }
    .bc-shop-head .bc-coins { padding: 6px 16px 6px 7px; font-size: 20px; }
        .bc-shop-head .bc-coins .bc-coin { width: 28px; height: 28px; }
    .bc-shop-note { font-size: 13px; line-height: 1.5; opacity: 0.8; }
.bc-shop-title { margin: 22px 0 0 0; font-family: Fredoka, "Open Sans", sans-serif; font-size: 19px; font-weight: 600; line-height: 1.2; }
.bc-shop-sub { margin: 3px 0 10px 0; font-size: 13px; line-height: 1.5; opacity: 0.75; }
.bc-shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 10px; }
.bc-shop-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 14px; background: rgba(127, 127, 127, 0.1); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.2); }
    .bc-shop-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 13px; background: #F7EFD9; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
        .bc-shop-ico svg { width: 42px; height: 42px; }
    .bc-shop-text { flex: 1 1 auto; min-width: 0; text-align: left; }
        .bc-shop-name { font-family: Fredoka, "Open Sans", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.2; }
        .bc-shop-desc { margin-top: 3px; font-size: 12.5px; line-height: 1.45; opacity: 0.8; }
        .bc-shop-pips { display: flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 11px; font-weight: 700; }
            .bc-shop-pips i { width: 11px; height: 6px; border-radius: 3px; background: rgba(127, 127, 127, 0.3); }
            .bc-shop-pips i.bc-pip-on { background: linear-gradient(90deg, #F2C230, #E8A70C); }
            .bc-shop-pips span { margin-left: 5px; opacity: 0.7; }
        .bc-shop-have { margin-top: 6px; font-size: 12px; opacity: 0.85; }
    .bc-shop-act { flex: none; text-align: right; }
        #bcWrapper .bc-shop-buy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; white-space: nowrap; }
            .bc-shop-buy .bc-coin { vertical-align: 0; }
        .bc-shop-max { display: inline-block; max-width: 96px; font-size: 12px; font-weight: 700; line-height: 1.3; opacity: 0.7; }
@media screen and (max-width: 480px) {
    .bc-shop-grid { grid-template-columns: minmax(0, 1fr); }
    .bc-shop-card { flex-wrap: wrap; }
        .bc-shop-act { flex: 1 1 100%; margin-left: 68px; text-align: left; }
    #bcWrapper .bc-power { padding-right: 9px; font-size: 12px; }
    /* The coins button drops its word so the tray stays on one row; a card's words keep beside its drawing. */
    .bc-coins-btn span { display: none; }
    .bc-tray { gap: 5px; }
    .bc-shop-text { flex: 1 1 0; }
}

/* ---- The tutorial ----
   The card a new player gets over the site (BlastCrew.js, makeCoach): pale, at the top of the site, with the
   step's words, a dot for each step, Skip and - where the step isn't waiting on the player - Next. The last
   one sits at the bottom so the result card has the top. Where they sit is set with the rest of the
   overlays (The scene). */
.bc-coach { position: absolute; z-index: 4; left: 50%; box-sizing: border-box; width: max-content; max-width: min(430px, calc(100% - 24px)); padding: 11px 14px 10px 14px; transform: translateX(-50%); line-height: 1.45; text-align: left; cursor: default; touch-action: auto; border-radius: 14px; color: var(--bc-ink); background: var(--bc-card); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 2px #F2C230; animation: bcCoachIn .28s ease-out; }
    .bc-coach-text { font-size: 14px; }
        .bc-coach-text em { font-style: normal; font-weight: 700; color: var(--bc-pass); }
    .bc-coach-row { display: flex; align-items: center; gap: 10px; min-height: 22px; margin-top: 8px; }
    .bc-coach-dots { display: flex; gap: 4px; margin-right: auto; }
        .bc-coach-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--bc-card-edge); }
        .bc-coach-dots i.bc-coach-dot-on { width: 18px; border-radius: 4px; background: var(--bc-accent); }
    #bcWrapper .bc-coach-skip { cursor: pointer; width: auto; min-width: 0; margin: 0; padding: 4px 6px; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; border: 0; box-shadow: none; color: var(--bc-ink-soft); background: transparent; }
        #bcWrapper .bc-coach-skip:hover { color: var(--bc-ink); text-decoration: underline; }
    #bcWrapper .bc-coach .bc-btn { padding: 6px 16px; font-size: 13px; }
@keyframes bcCoachIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%); }
}
#bcWrapper .bc-tutorial-again { float: right; padding: 6px 15px; font-size: 13px; }
@media screen and (max-width: 560px) {
    .bc-coach { padding: 9px 12px 8px 12px; }
    .bc-coach-text { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .bc-coach { animation: none; }
}

/* Ten levels of an upgrade: the pips keep their size in a row of their own, with "Level n of 10" under them. */
.bc-shop-pips { flex-wrap: wrap; gap: 2px; }
    .bc-shop-pips i { flex: none; width: 7px; }
    .bc-shop-pips span { flex: 1 1 100%; margin: 3px 0 0 0; white-space: nowrap; }

/* ---- The scene ----
   The game is one scene the size of the page's content area: #bcScene, as tall as the window has room for
   (BlastCrew.js sets --bc-h; until it has, the height allows for the site's header bar). Each mode's site
   fills it edge to edge, and everything else is laid over the site:
     top left      the level, on a pale plate          top right     the dynamite, with Store, How to play
     under them    the status line (top centre on a                  and Mute as round buttons below it
                   wide screen), the tutorial's cards   left edge     coins and the power-ups, in a column
                   and the result card                               (a row above the buttons on a phone)
     bottom left   Restart, Reset view and Clear        bottom right  Detonate
   The tab bar floats at the bottom centre as it always did; 775px and under the browser version's lies along
   the foot of the scene (#bcModeHolder) and the app version's is the layout's own bar, under the scene.
   The plates' colours are fixed: they sit on the sky, whatever the site's theme.
   Three lengths say how much room the rest must leave: --bc-top for the app version's header bar inside the
   scene, --bc-dock for what the buttons must clear at the bottom, and --bc-foot for what a panel must.
   Nothing follows the scene, so the page doesn't scroll: the About text and the footer links are at the end
   of How to play. */
body #main-container .inner-container { max-width: none; min-height: 0; padding: 0 !important; }
/* The app version's layout leaves an empty footer after the content, as room for its tab bar; the scene
   allows for that bar itself, so here it would only make the page scroll. */
#main-container > footer { display: none; }
#bcWrapper { position: relative; }
/* What lies over the site takes its colours from here: pale plates and white cards by day, dark ones at night
   (the site's dark theme, when the scene itself turns to night - BlastCrew.js, Day and night). */
#bcWrapper {
    --bc-plate: rgba(255, 255, 255, 0.7); --bc-plate-solid: rgba(255, 255, 255, 0.92); --bc-plate-hover: #FFF; --bc-plate-text: #23282C; --bc-plate-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); --bc-plate-edge: rgba(0, 0, 0, 0.12);
    --bc-card: rgba(255, 255, 255, 0.7); --bc-card-edge: #C9CFD3; --bc-ink: #23282C; --bc-ink-soft: #5C6870; --bc-pass: #1F8A4C; --bc-fail: #B8481A;
    --bc-chip: #EEF1F3; --bc-chip-edge: #D5DADE; --bc-gold: #FFF1C2; --bc-gold-ink: #7A5200; --bc-glow: rgba(255, 255, 255, 0.62); --bc-sky: #bfe2f5;
}
body[data-theme="Dark"] #bcWrapper {
    --bc-plate: rgba(16, 24, 36, 0.7); --bc-plate-solid: rgba(22, 32, 46, 0.94); --bc-plate-hover: #2A3A50; --bc-plate-text: #F2F5F7; --bc-plate-shadow: 0 3px 12px rgba(0, 0, 0, 0.5); --bc-plate-edge: rgba(255, 255, 255, 0.16);
    --bc-card: rgba(20, 29, 41, 0.7); --bc-card-edge: #46566A; --bc-ink: #F2F5F7; --bc-ink-soft: #A9B6C4; --bc-pass: #5AD893; --bc-fail: #FF9A5C;
    --bc-chip: #283548; --bc-chip-edge: #3D4C61; --bc-gold: #4A3B10; --bc-gold-ink: #FFD873; --bc-glow: rgba(10, 20, 44, 0.55); --bc-sky: #0b1730;
}
#bcScene { position: relative; overflow: hidden; height: calc(100vh - 62px); height: var(--bc-h, calc(100dvh - 62px)); min-height: 320px; background: var(--bc-sky); --bc-top: 0px; --bc-dock: 4px; --bc-foot: 92px; }
#bcGameHolder, #bc3dHolder, .bc-stage, #bcSite, #bc3dSite { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

/* The top bar's two plates. */
#bcTopBar, #bc3dTopBar { position: absolute; z-index: 2; top: calc(var(--bc-top) + 10px); left: 10px; right: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
#bcLevelName, #bc3dLevelName { gap: 9px; padding: 5px 14px 5px 5px; border-radius: 16px; color: var(--bc-plate-text); background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); }
#bcStock, #bc3dStock { flex: none; color: var(--bc-plate-text); background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); }

/* The status line. */
#bcStatus, #bc3dStatus { position: absolute; z-index: 2; top: calc(var(--bc-top) + 14px); left: 50%; box-sizing: border-box; width: max-content; max-width: min(470px, calc(100% - 620px)); padding: 7px 15px; transform: translateX(-50%); font-size: 13px; line-height: 1.45; text-align: center; pointer-events: none; border-radius: 14px; color: var(--bc-plate-text); background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); }
    #bcStatus:empty, #bc3dStatus:empty, .bc-coaching > #bcStatus, .bc-coaching > #bc3dStatus { display: none; }
#bc3dHint { position: absolute; z-index: 2; left: 50%; bottom: 84px; width: max-content; max-width: calc(100% - 24px); padding: 4px 12px; transform: translateX(-50%); font-size: 12px; line-height: 1.4; text-align: center; pointer-events: none; border-radius: 12px; color: var(--bc-plate-text); background: var(--bc-plate); }
#bcWrapper #bcResult, #bcWrapper #bc3dResult, #bcWrapper .bc-coach { top: calc(var(--bc-top) + 12px); }
    #bcWrapper .bc-coach.bc-coach-low { top: auto; bottom: calc(var(--bc-dock) + 72px); }

/* Store, How to play and Mute. */
.bc-side { position: absolute; z-index: 2; top: calc(var(--bc-top) + 74px); right: 10px; display: flex; flex-direction: column; gap: 7px; }
    #bcWrapper .bc-side button { cursor: pointer; justify-content: center; gap: 0; width: 40px; min-width: 0; height: 40px; margin: 0; padding: 0; font-size: 0; border: 0; border-radius: 50%; color: var(--bc-plate-text); background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); transition: transform .12s ease-in-out, background-color .2s ease-in-out; -webkit-tap-highlight-color: transparent; }
        #bcWrapper .bc-side button::before { width: 19px; height: 19px; }
        #bcWrapper .bc-side button:hover { background: var(--bc-plate-hover); }
        #bcWrapper .bc-side button:active { transform: scale(0.94); }
        #bcWrapper .bc-side button:focus-visible { outline: 2px solid var(--bc-accent); outline-offset: 2px; }

/* Coins and the power-ups. */
.bc-tray { position: absolute; z-index: 2; top: calc(var(--bc-top) + 74px); left: 10px; flex-direction: column; align-items: flex-start; gap: 6px; }
    #bcWrapper .bc-tray button { color: var(--bc-plate-text); }
    #bcWrapper .bc-coins-btn, #bcWrapper .bc-power { background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); }
        #bcWrapper .bc-coins-btn:hover, #bcWrapper .bc-power:hover { background: var(--bc-plate-hover); }
        #bcWrapper .bc-power.bc-power-on, #bcWrapper .bc-power.bc-power-on:hover { color: #FFF; background: var(--bc-accent); }

/* The buttons: round icons on the left, Detonate with its name on the right. */
#bcButtons, #bc3dButtons { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: calc(12px + var(--bc-dock)); display: flex; align-items: center; gap: 8px; pointer-events: none; }
    #bcWrapper .bc-stage .bc-btn { pointer-events: auto; color: var(--bc-plate-text); border-color: var(--bc-plate-edge); background: var(--bc-plate-solid); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); }
    #bcWrapper #bcButtons .bc-btn:not(.bc-btn-go), #bcWrapper #bc3dButtons .bc-btn:not(.bc-btn-go) { flex: none; justify-content: center; gap: 0; width: 44px; height: 44px; padding: 0; font-size: 0; border-radius: 50%; }
        #bcWrapper #bcButtons .bc-btn:not(.bc-btn-go)::before, #bcWrapper #bc3dButtons .bc-btn:not(.bc-btn-go)::before { width: 20px; height: 20px; }
    #bcWrapper .bc-stage .bc-btn.bc-btn-go { color: #FFF; border-color: rgba(255, 255, 255, 0.75); background: var(--bc-accent); }
    #bcWrapper #bcButtons .bc-btn.bc-btn-go, #bcWrapper #bc3dButtons .bc-btn.bc-btn-go { margin-left: auto; height: 44px; padding: 0 22px 0 16px; font-size: 15px; border-radius: 22px; }
    #bcWrapper .bc-stage .bc-btn:disabled { opacity: 0.55; }

/* The tab bar and the app version's header bar, where they sit inside the scene. */
#bcWrapper #bcModeHolder.gs-mode-holder { position: absolute; z-index: 6; left: 8px; right: 8px; bottom: 8px; max-width: 520px; margin: 0 auto !important; }
    #bcWrapper.gs-title-open #bcModeHolder.gs-mode-holder { display: none !important; }
#bcScene > .bc-app-head { position: absolute; z-index: 7; top: 0; left: 0; right: 0; padding: 0 !important; pointer-events: none; }

#bcWrapper header.gs-card-header { margin: 0; }

/* The title screen: the logo and the menu over the site, with a soft light behind them and nothing else -
   no card. The smaller things that used to take the card's text colour sit on plates of their own. */
#bcWrapper.gs-title-open #gsTitleScreen { position: absolute; z-index: 8; top: 0; left: 0; right: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; box-sizing: border-box; height: calc(100vh - 62px); height: var(--bc-h, calc(100dvh - 62px)); min-height: 320px; background: radial-gradient(ellipse 62% 72% at 50% 46%, var(--bc-glow), transparent 74%); }
#bcWrapper #gsTitleScreen::before { display: none; }
#bcWrapper #gsTitleScreen .gs-title-inner { width: 100%; margin: auto; box-sizing: border-box; }
#bcWrapper #gsTitleScreen .gs-title-logo { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); width: min(100%, 425px); }
#bcWrapper #gsTitleScreen .gs-title-tagline { padding: 6px 15px; font-weight: 600; border-radius: 14px; opacity: 1; color: var(--bc-plate-text); background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); }
#bcWrapper #gsTitleScreen .bc-meter, #bcWrapper #gsTitleScreen .bc-coins { color: var(--bc-plate-text); background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); backdrop-filter: blur(10px); }
#bcWrapper #gsTitleScreen .gs-title-options { background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); }
    #bcWrapper #gsTitleScreen .gs-title-option { color: var(--bc-plate-text); backdrop-filter: blur(10px); }
        #bcWrapper #gsTitleScreen .gs-title-option:hover { background-color: rgba(127, 127, 127, 0.22); }
/* Under the title screen, and under an open panel, only the site itself shows. */
#bcWrapper.gs-title-open .bc-stage > :not(#bcSite):not(#bc3dSite), #bcWrapper.bc-panel-open .bc-stage > :not(#bcSite):not(#bc3dSite),
#bcWrapper.gs-title-open #bcSite > :not(canvas), #bcWrapper.bc-panel-open #bcSite > :not(canvas),
#bcWrapper.gs-title-open #bc3dSite > :not(canvas), #bcWrapper.bc-panel-open #bc3dSite > :not(canvas),
#bcWrapper.gs-title-open .bc-panel { display: none !important; }

/* Panels: Levels, the store and How to play, each a card over the dimmed site. The panel scrolls, not the
   page, and leaves the tab bar's room at the bottom. */
.bc-panel { position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; left: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: calc(var(--bc-top) + 14px) 12px var(--bc-foot) 12px; background: rgba(20, 28, 36, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: bcPanelIn .2s ease-out; }
@keyframes bcPanelIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .bc-panel { animation: none; }
    #bcWrapper .bc-side button { transition: none; }
}

/* Where the floating tab bar would run into the buttons, they sit above it. */
@media screen and (max-width: 1240px) {
    #bcScene { --bc-dock: 72px; }
    #bc3dHint { display: none; }
}
@media screen and (max-width: 1500px) {
    body.pin-sidebar-menu #bcScene { --bc-dock: 72px; }
    body.pin-sidebar-menu #bc3dHint { display: none; }
}
/* Not wide enough for the status line between the plates: it goes under them, as do the cards. */
@media screen and (max-width: 1100px) {
    #bcStatus, #bc3dStatus { top: calc(var(--bc-top) + 74px); max-width: min(470px, calc(100% - 150px)); }
    #bcWrapper #bcResult, #bcWrapper #bc3dResult, #bcWrapper .bc-coach:not(.bc-coach-low) { top: calc(var(--bc-top) + 74px); }
    .bc-coach { max-width: min(430px, calc(100% - 150px)); }
}
/* The power-ups lose their names here: a drawing and a count each (the names are still there for screen
   readers and as the chips' hints, and the status line says what each one does as it's switched on). */
@media screen and (max-width: 900px) {
    .bc-tray .bc-power span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    #bcWrapper .bc-tray .bc-power { gap: 5px; padding: 4px 9px 4px 6px; }
    .bc-coins-btn span { display: none; }
}
@media screen and (max-width: 775px) {
    #bcScene { --bc-dock: 62px; --bc-foot: 78px; }
    body[data-mode="spa"] #bcScene { --bc-dock: 0px; --bc-foot: 16px; }
}
/* Phones: smaller plates, and the power-ups in a row above the buttons so the sides stay clear. */
@media screen and (max-width: 560px) {
    #bcTopBar, #bc3dTopBar { top: calc(var(--bc-top) + 8px); left: 8px; right: 8px; }
    #bcLevelName, #bc3dLevelName { gap: 8px; padding: 5px 12px 5px 5px; border-radius: 15px; }
        .bc-stage .bc-lvl-num { min-width: 34px; height: 34px; font-size: 18px; border-radius: 11px; }
        .bc-stage .bc-lvl-kind { font-size: 9.5px; letter-spacing: 0.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .bc-stage .bc-lvl-name { font-size: 16px; }
            .bc-stage .bc-lvl-name .bc-stars { font-size: 12px; vertical-align: 1px; }
    #bcStock, #bc3dStock { gap: 7px; padding: 3px 11px 4px 9px; font-size: 13px; }
        .bc-stage .bc-stick { width: 15px; height: 34px; }
    .bc-side { top: calc(var(--bc-top) + 60px); right: 8px; gap: 6px; }
        #bcWrapper .bc-side button { width: 36px; height: 36px; }
            #bcWrapper .bc-side button::before { width: 17px; height: 17px; }
    #bcStatus, #bc3dStatus { top: calc(var(--bc-top) + 60px); left: 8px; max-width: calc(100% - 60px); padding: 6px 12px; transform: none; font-size: 12.5px; text-align: left; }
    #bcWrapper #bcResult, #bcWrapper #bc3dResult, #bcWrapper .bc-coach:not(.bc-coach-low) { top: calc(var(--bc-top) + 60px); }
    .bc-coach { max-width: calc(100% - 20px); }
    /* A tutorial card runs the width of a phone, so the round buttons it would cover step aside for it. */
    .bc-coaching > .bc-side { display: none; }
    .bc-tray { top: auto; left: 6px; right: 6px; bottom: calc(var(--bc-dock) + 64px); flex-direction: row; align-items: center; justify-content: center; gap: 4px; }
        #bcWrapper .bc-tray .bc-power { gap: 3px; padding: 3px 6px 3px 4px; }
            .bc-tray .bc-power svg { width: 22px; height: 22px; }
            .bc-tray .bc-power b { min-width: 16px; padding: 3px 5px; }
        #bcWrapper .bc-tray .bc-coins-btn { gap: 5px; padding: 4px 9px 4px 5px; }
    #bcWrapper .bc-coach.bc-coach-low { bottom: calc(var(--bc-dock) + 108px); }
    #bcButtons, #bc3dButtons { left: 10px; right: 10px; bottom: calc(10px + var(--bc-dock)); }
    .bc-panel { padding-left: 6px; padding-right: 6px; }
}

/* ---- Icons in colour ----
   Levels, Store, How to play and Settings on the title screen, and the round buttons beside the site (Store,
   How to play, Settings and the speaker), are small pictures in their own colours rather than one-colour
   outlines: a green map with a pin, an orange bag with a coin, a blue question mark, a grey gear, a teal
   speaker. The one-colour masks above are still what every other icon uses - and what the Store button goes
   back to, in white, while it's flashing red. */
#bcWrapper {
    --bc-pic-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6.5l6-2.5v13.5l-6 2.5z' fill='%237CC36A'/%3E%3Cpath d='M9 4l6 2.5V20l-6-2.500z' fill='%23F4E9C8'/%3E%3Cpath d='M15 6.5l6-2.5v13.5l-6 2.5z' fill='%237CC36A'/%3E%3Cpath d='M3 6.5l6-2.5 6 2.5 6-2.5v13.5l-6 2.5-6-2.500-6 2.500z' fill='none' stroke='%232F6B3A' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M12 13.6c-1.500-2-2.300-3.200-2.300-4.300a2.300 2.300 0 0 1 4.600 0c0 1.100-.800 2.300-2.300 4.300z' fill='%23D8402F' stroke='%238E2418' stroke-width='.8'/%3E%3C/svg%3E");
    --bc-pic-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h16l-1.500 10.500a1.500 1.500 0 0 1-1.500 1.300H7a1.500 1.500 0 0 1-1.500-1.300z' fill='%23F2A93A' stroke='%239A5A12' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M8.500 9V7a3.500 3.500 0 0 1 7 0v2' fill='none' stroke='%239A5A12' stroke-width='1.800' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='14.700' r='2.700' fill='%23FFE27A' stroke='%23C98A0A' stroke-width='1.200'/%3E%3C/svg%3E");
    --bc-pic-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%233F8FD8' stroke='%231F5E9C' stroke-width='1.600'/%3E%3Cpath d='M9.400 9.300a2.700 2.700 0 0 1 5.200 1c0 1.800-2.600 2.300-2.600 3.900' fill='none' stroke='%23fff' stroke-width='2.200' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.400' r='1.300' fill='%23fff'/%3E%3C/svg%3E");
    --bc-pic-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z' fill='%2393A0B2' stroke='%234A5568' stroke-width='1.400' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3.400' fill='%23EEF2F6' stroke='%234A5568' stroke-width='1.400'/%3E%3C/svg%3E");
    --bc-pic-sound: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9.500h3.500L12 5.500v13l-4.500-4H4z' fill='%2335B3A6' stroke='%2317695F' stroke-width='1.600' stroke-linejoin='round'/%3E%3Cpath d='M15.500 9a4 4 0 0 1 0 6M18.200 6.400a7.600 7.600 0 0 1 0 11.200' fill='none' stroke='%231E8A7E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --bc-pic-muted: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9.500h3.500L12 5.500v13l-4.500-4H4z' fill='%23A5AEB8' stroke='%235B646D' stroke-width='1.600' stroke-linejoin='round'/%3E%3Cpath d='M16 9.500l5 5M21 9.500l-5 5' fill='none' stroke='%23D8402F' stroke-width='2.200' stroke-linecap='round'/%3E%3C/svg%3E");
}
#bcWrapper .gs-title-option[data-title-action="levels"] { --bc-pic: var(--bc-pic-map); }
#bcWrapper .gs-title-option[data-title-action="store"], #bcWrapper .bc-side .bc-ico-store { --bc-pic: var(--bc-pic-store); }
#bcWrapper .gs-title-option[data-title-action="howto"], #bcWrapper .bc-side .bc-ico-help { --bc-pic: var(--bc-pic-help); }
#bcWrapper .gs-title-option[data-title-action="settings"], #bcWrapper .bc-side .bc-ico-settings { --bc-pic: var(--bc-pic-settings); }
#bcWrapper .bc-side .bc-ico-sound { --bc-pic: var(--bc-pic-sound); }
#bcWrapper .bc-side .bc-ico-sound[data-muted="true"] { --bc-pic: var(--bc-pic-muted); }
#bcWrapper .gs-title-option[data-title-action]::before, #bcWrapper .bc-side .bc-ico::before { background-color: transparent; background-image: var(--bc-pic); background-position: center; background-size: contain; background-repeat: no-repeat; -webkit-mask: none; mask: none; }
#bcWrapper .gs-title-option[data-title-action]::before { width: 18px; height: 18px; }
#bcWrapper .bc-side .bc-ico::before { width: 22px; height: 22px; }
/* Flashing red, the Store button is a white outline again - an orange bag doesn't read on red. */
#bcWrapper.bc-store-flash .bc-side .bc-ico-store::before, #bcWrapper.bc-store-flash .gs-title-option[data-title-action="store"]::before { background-image: none; background-color: currentColor; -webkit-mask: var(--bc-ico) center / contain no-repeat; mask: var(--bc-ico) center / contain no-repeat; }
@media screen and (max-width: 560px) {
    #bcWrapper .bc-side .bc-ico::before { width: 20px; height: 20px; }
}

/* ---- The materials ---- */
/* How to play's list of materials: a block of each beside what it does, in place of the bullet. */
#bcWrapper ul.bc-mats { list-style: none; margin: 8px 0 0; padding: 0; }
    #bcWrapper ul.bc-mats li { display: flex; align-items: center; margin: 0 0 10px; padding: 0; }
        #bcWrapper ul.bc-mats li::before, #bcWrapper ul.bc-mats li::marker { content: none; }
        #bcWrapper ul.bc-mats li > span { flex: 1; min-width: 0; }
    #bcWrapper .bc-mat-pic { flex: none; width: 64px; height: 40px; margin-right: 12px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.25)); }
@media (max-width: 480px) {
    #bcWrapper .bc-mat-pic { width: 52px; height: 33px; margin-right: 10px; }
}

/* ---- How the dynamite looks ---- */
/* Under each upgrade in the Store: every level's look in a row (it scrolls sideways where there isn't room).
   The levels owned are lit, the one in use has a gold ring, and the ones still to buy are faded. */
#bcWrapper .bc-shop-card[data-card="power"], #bcWrapper .bc-shop-card[data-card="radius"] { flex-wrap: wrap; }
    #bcWrapper .bc-shop-card[data-card="power"] .bc-shop-text, #bcWrapper .bc-shop-card[data-card="radius"] .bc-shop-text { flex: 1 1 0; min-width: 120px; }
#bcWrapper .bc-looks { flex: 0 0 100%; box-sizing: border-box; display: flex; margin: 2px 0 0; padding: 2px 0 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    #bcWrapper .bc-look { flex: none; display: flex; flex-direction: column; align-items: center; width: 31px; margin-right: 3px; padding: 3px 0 4px; border-radius: 9px; background: #F7EFD9; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); color: #4a4034; opacity: 0.5; }
        #bcWrapper .bc-look svg { width: 29px; height: 32px; }
        #bcWrapper .bc-look b { font-size: 11px; font-weight: 700; line-height: 1.1; }
        #bcWrapper .bc-look span { font-size: 9.5px; line-height: 1.2; opacity: 0.75; }
    #bcWrapper .bc-look.bc-look-had { opacity: 1; }
    #bcWrapper .bc-look.bc-look-now { opacity: 1; box-shadow: inset 0 0 0 2px #E8A70C, 0 1px 4px rgba(232, 167, 12, 0.5); }
#bcWrapper .bc-shop-ico svg { max-width: 46px; max-height: 50px; }

/* ---- One plate for the tray ---- */
/* The tray beside the site (coins and the power-ups) is one plate: the colour and shadow are the tray's, and
   the buttons in it are plain until pointed at - except a power-up that's switched on, which keeps its red. */
#bcWrapper .bc-tray { box-sizing: border-box; padding: 6px; gap: 8px; border-radius: 20px; }
    #bcWrapper .bc-tray:empty { display: none; }
    #bcWrapper .bc-tray .bc-coins-btn, #bcWrapper .bc-tray .bc-power { align-self: stretch; background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .2s ease; }
        /* Pointed at: a clear grey wash with a ring round it - the plate's own hover colour is almost the plate's. */
        #bcWrapper .bc-tray .bc-coins-btn:hover, #bcWrapper .bc-tray .bc-power:hover { transform: scale(1.05); }
        body[data-theme="Dark"] #bcWrapper .bc-tray .bc-coins-btn:hover, body[data-theme="Dark"] #bcWrapper .bc-tray .bc-power:not(.bc-power-on):hover { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
        #bcWrapper .bc-tray .bc-power.bc-power-on, #bcWrapper .bc-tray .bc-power.bc-power-on:hover { color: #FFF; background: var(--bc-accent); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
@media (max-width: 560px) {
    /* Along the bottom on a phone: the plate is only as wide as what's in it, and centred. */
    #bcWrapper .bc-tray { width: -moz-fit-content; width: fit-content; max-width: calc(100% - 12px); margin-left: auto; margin-right: auto; padding: 4px 6px; border-radius: 999px; }
        #bcWrapper .bc-tray .bc-coins-btn, #bcWrapper .bc-tray .bc-power { align-self: center; }
}
/* A Stronger charge level that cracks concrete has a small grey block in the corner of its picture. */
#bcWrapper .bc-look { position: relative; }
    #bcWrapper .bc-look-crack { position: absolute; top: 2px; right: 2px; width: 9px; height: 7px; border-radius: 1.5px; background: linear-gradient(135deg, #c9cdcb 0 45%, #6d7472 45% 55%, #b4b8b6 55%); box-shadow: 0 0 0 1px #7d8482; }

/* ---- The Builder ---- */
/* Its option on the title screen, and its bar beside the site (where the tray is in a level): one plate holding
   small buttons in rows - materials, shapes and tools while building; what to plant, the Tremor, the charge and
   the way back while blasting. The button in use is filled red, like a power-up that is switched on. */
#bcWrapper { --bc-ico-build: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='14' width='8' height='6' rx='1'/%3E%3Crect x='13' y='14' width='8' height='6' rx='1'/%3E%3Crect x='8' y='7' width='8' height='6' rx='1'/%3E%3C/svg%3E"); --bc-pic-build: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='14' width='8' height='6' rx='1' fill='%23B8573F' stroke='%237D3526' stroke-width='1.4'/%3E%3Crect x='13' y='14' width='8' height='6' rx='1' fill='%23B8573F' stroke='%237D3526' stroke-width='1.4'/%3E%3Crect x='8' y='7' width='8' height='6' rx='1' fill='%23C58F55' stroke='%238A5C2C' stroke-width='1.4'/%3E%3Cpath d='M17.500 3.500v5M15 6h5' stroke='%231F8A4C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
#bcWrapper .gs-title-option[data-title-action="builder"] { --bc-ico: var(--bc-ico-build); --bc-pic: var(--bc-pic-build); }
#bcWrapper .bc-build-bar { position: absolute; z-index: 2; top: calc(var(--bc-top) + 74px); left: 10px; box-sizing: border-box; max-width: 236px; padding: 7px; border-radius: 18px; background: var(--bc-plate); color: var(--bc-plate-text); box-shadow: var(--bc-plate-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
    #bcWrapper .bc-build-row { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 5px; }
        #bcWrapper .bc-build-row:last-child { margin-bottom: 0; }
    #bcWrapper .bc-build-btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 34px; height: 32px; margin: 0 4px 4px 0; padding: 0 9px; border: 0; border-radius: 10px; font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1; color: inherit; background: rgba(127, 127, 127, 0.16); box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s ease; }
        #bcWrapper .bc-build-btn:hover { transform: scale(1.05); }
        #bcWrapper .bc-build-btn:focus-visible { outline: 2px solid var(--bc-accent); outline-offset: 2px; }
        #bcWrapper .bc-build-btn[disabled] { opacity: 0.4; cursor: default; }
        #bcWrapper .bc-build-btn.bc-build-on, #bcWrapper .bc-build-btn.bc-build-on:hover { color: #FFF; background: var(--bc-accent); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
    #bcWrapper .bc-build-swatch { flex: none; width: 13px; height: 13px; margin-right: 6px; border-radius: 3px; border: 1.5px solid; box-sizing: border-box; }
    #bcWrapper .bc-build-shape { flex: none; border: 1.5px solid; border-radius: 2px; box-sizing: border-box; }
    #bcWrapper .bc-build-charge span { margin: 0 8px 4px 2px; font-size: 12.5px; font-weight: 700; }
    #bcWrapper .bc-build-charge b { min-width: 22px; margin: 0 4px 4px 0; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
    #bcWrapper .bc-build-bar .bc-build-go { width: auto; margin: 2px 0 0; padding: 8px 16px; font-size: 14px; }
@media screen and (max-width: 560px) {
    /* Along the bottom on a phone, above the round buttons, as the tray is. */
    #bcWrapper .bc-build-bar { top: auto; left: 6px; right: 6px; bottom: calc(var(--bc-dock) + 10px); max-width: none; display: flex; flex-wrap: wrap; justify-content: center; padding: 6px; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
        #bcWrapper .bc-build-row { margin: 0 6px 0 0; justify-content: center; }
    #bcWrapper .bc-build-btn { height: 30px; padding: 0 7px; font-size: 12px; background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
        #bcWrapper .bc-build-btn .bc-build-swatch + span { display: none; }
        #bcWrapper .bc-build-swatch { margin-right: 0; width: 16px; height: 16px; }
}

/* ---- Each title option is its own plate ---- */
/* The row of options under the title screen's tickets (Levels, Builder, Store...) was one long plate with the
   buttons plain inside it. Now the row has nothing of its own, and each button is a small plate - so a row
   that wraps onto two lines on a phone is two lines of buttons, not a lopsided slab. */
#bcWrapper #gsTitleScreen .gs-title-options { gap: 6px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
    #bcWrapper #gsTitleScreen .gs-title-option { background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); }
        #bcWrapper #gsTitleScreen .gs-title-option:hover { background: var(--bc-plate-hover); transform: translateY(-1px); }
    #bcWrapper.bc-store-flash #gsTitleScreen .gs-title-option[data-title-action="store"] { background: var(--bc-accent); }
@media (prefers-reduced-motion: reduce) {
    #bcWrapper #gsTitleScreen .gs-title-option:hover { transform: none; }
}

/* ---- The builder's buttons have icons ---- */
/* A small picture before the word on each of the builder bar's buttons (the material buttons have their swatch,
   and the flat builder's shape buttons are pictures already). Drawn in the button's own text colour, so they turn
   white with it when the button is on. */
#bcWrapper .bc-build-btn[data-build="erase"]::before, #bcWrapper .bc-build-btn[data-build="undo"]::before, #bcWrapper .bc-build-btn[data-build="clear"]::before, #bcWrapper .bc-build-btn[data-build="line"]::before, #bcWrapper .bc-build-btn[data-build="turn"]::before, #bcWrapper .bc-build-btn[data-build="flat"]::before, #bcWrapper .bc-build-btn[data-build="3d"]::before, #bcWrapper .bc-build-btn[data-build="stick"]::before, #bcWrapper .bc-build-btn[data-build="bomb"]::before, #bcWrapper .bc-build-btn[data-build="quake"]::before, #bcWrapper .bc-build-btn[data-build="rebuild"]::before, #bcWrapper .bc-build-btn[data-build="edit"]::before, #bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:storey"]::before, #bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:post"]::before, #bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:floor"]::before, #bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:beam"]::before, #bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:block"]::before, #bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:brick"]::before { content: ""; flex: none; width: 15px; height: 15px; margin-right: 5px; background-color: currentColor; -webkit-mask: var(--bi) center / contain no-repeat; mask: var(--bi) center / contain no-repeat; }
#bcWrapper .bc-build-btn[data-build="erase"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 19.5h11M5 15.5l8.500-8.500a2 2 0 0 1 2.800 0l2.700 2.700a2 2 0 0 1 0 2.800l-7 7H8l-3-3a1.400 1.400 0 0 1 0-2z'/%3E%3Cpath d='M10.500 9.500l5.500 5.500'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="undo"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.500 5.500L4 10l4.500 4.500'/%3E%3Cpath d='M4 10h10a5.500 5.500 0 0 1 0 11h-3'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="clear"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.500 7h15M9.500 7V4.500h5V7M6.500 7l1 12.500h9l1-12.500M10.500 11v5M13.500 11v5'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="line"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18' stroke-dasharray='3.500 3'/%3E%3Cpath d='M12 12v8M8.500 16.500L12 20l3.500-3.500'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="turn"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.500 12a7.500 7.500 0 1 1-2.400-5.500'/%3E%3Cpath d='M19.500 3.500v4h-4'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="flat"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='12' rx='1'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="3d"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.500v9L12 21l-8-4.500v-9z'/%3E%3Cpath d='M4 7.500l8 4.500 8-4.500M12 12v9'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="stick"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='8' width='7' height='13' rx='1'/%3E%3Cpath d='M12 8V6c0-1.500 1-2.500 3-2.500'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="bomb"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='14' r='7'/%3E%3Cpath d='M16 9l2.500-2.500M19 4l.5.500'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="quake"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.500 13h4l2-6 3.500 12 3-9 1.500 3h5'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="rebuild"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.500 12a7.500 7.500 0 0 1 13-5M19.500 12a7.500 7.500 0 0 1-13 5'/%3E%3Cpath d='M17.500 3v4h-4M6.500 21v-4h4'/%3E%3C/svg%3E"); }
#bcWrapper .bc-build-btn[data-build="edit"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4.500L15.500 5l3.500 3.500L8.500 19z'/%3E%3Cpath d='M13.500 7l3.500 3.500'/%3E%3C/svg%3E"); }
#bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:storey"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18M3 11h18M6 11v9M18 11v9'/%3E%3C/svg%3E"); }
#bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:post"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='3' width='4' height='18' rx='1'/%3E%3C/svg%3E"); }
#bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:floor"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14l5-5h13l-5 5zM3 14v2.500h13V14M16 16.500l5-5V9'/%3E%3C/svg%3E"); }
#bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:beam"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='10' width='19' height='4' rx='1'/%3E%3C/svg%3E"); }
#bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:block"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='6' width='14' height='12' rx='1'/%3E%3C/svg%3E"); }
#bcWrapper #bc3dBuildBar .bc-build-btn[data-build="shape:brick"] { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7.5' y='8.5' width='9' height='7' rx='1'/%3E%3C/svg%3E"); }

/* ---- Four tabs on a phone ---- */
/* With the Builder tab the bar holds four. On a narrow screen their names stay on one line - "3D Sites" was
   breaking in two - by making the tabs a little tighter and their pictures a little smaller. */
#gsDock .gs-dock-tab span { white-space: nowrap; }
@media screen and (max-width: 480px) {
    #gsDock .gs-dock-tab { padding-left: 7px; padding-right: 8px; gap: 4px; font-size: 12.5px; }
        #gsDock .gs-dock-tab img { width: 20px; height: 20px; }
    #gsDock .gs-dock-divider { margin-left: 4px; margin-right: 4px; }
}
/* The builder's Clear asks first: the question and its two answers, in place of the row of tools. */
#bcWrapper .bc-build-ask span { flex: 1 1 100%; margin: 0 0 5px 2px; font-size: 12.5px; font-weight: 700; }
/* A builder hint that has had its few seconds fades out before it goes. */
#bcStatus, #bc3dStatus { transition: opacity .5s ease; }
    #bcStatus.bc-status-out, #bc3dStatus.bc-status-out { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    #bcStatus, #bc3dStatus { transition: none; }
}

/* ---- Chapters on the map ---- */
/* The road is in chapters. A small flag over the first stop of each gives its name, and the last stop of each -
   its hardest - wears a red tag. */
#bcWrapper .bc-site-chapter { position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; white-space: nowrap; font-family: Fredoka, "Open Sans", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.2px; color: #FFF; background: #2F6FB0; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); pointer-events: none; }
    #bcWrapper .bc-site-chapter::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: #2F6FB0; border-bottom: 0; }
#bcWrapper .bc-site-hard { position: absolute; right: -6px; top: -6px; padding: 2px 6px; border-radius: 999px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; color: #FFF; background: var(--bc-accent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); pointer-events: none; }
    #bcWrapper .bc-site-locked .bc-site-hard { background: #7d8482; }

/* ---- Restart and Reset view, under the sound button ---- */
/* They moved from the foot of the site to the column of round buttons on the right, below Sound, with a small
   gap above them so they read as a pair of their own. Like the four above them they have coloured pictures: an orange arrow
   going round for Restart, and a blue frame with a gold dot in it for Reset view. */
#bcWrapper .bc-side .bc-side-tool { margin-top: 8px; }
/* Six buttons are a tall column. Where the site isn't tall enough for it - a phone on its side - the column
   stops short of the Detonate button and carries on in a second column to its left. */
#bcWrapper .bc-side { flex-wrap: wrap-reverse; align-content: flex-start; max-height: calc(var(--bc-h, 100vh) - var(--bc-top) - 74px - var(--bc-dock) - 72px); }
@media screen and (max-width: 900px) {
    #bcWrapper .bc-side { max-height: calc(var(--bc-h, 100vh) - var(--bc-top) - 60px - var(--bc-dock) - 70px); }
}
#bcWrapper { --bc-pic-restart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12a7 7 0 1 0 2.300-5.200M4.500 3.500v4h4' stroke='%238A3A12' stroke-width='4.600'/%3E%3Cpath d='M5 12a7 7 0 1 0 2.300-5.200M4.500 3.500v4h4' stroke='%23F28A3C' stroke-width='2.400'/%3E%3C/svg%3E"); --bc-pic-view: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V5.500A1.500 1.500 0 0 1 5.500 4H9M15 4h3.500A1.500 1.500 0 0 1 20 5.500V9M20 15v3.500a1.500 1.500 0 0 1-1.500 1.500H15M9 20H5.500A1.500 1.500 0 0 1 4 18.500V15' stroke='%231E4E86' stroke-width='4.600'/%3E%3Cpath d='M4 9V5.500A1.500 1.500 0 0 1 5.500 4H9M15 4h3.500A1.500 1.500 0 0 1 20 5.500V9M20 15v3.500a1.500 1.500 0 0 1-1.500 1.500H15M9 20H5.500A1.500 1.500 0 0 1 4 18.500V15' stroke='%234A9BE8' stroke-width='2.400'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23F2C230' stroke='%23A8780A' stroke-width='1.300'/%3E%3C/svg%3E"); }
#bcWrapper .bc-side .bc-ico-restart { --bc-pic: var(--bc-pic-restart); }
#bcWrapper .bc-side .bc-ico-view { --bc-pic: var(--bc-pic-view); }
/* Clear (take back all the dynamite planted) is there too: a red disc with a white cross. It is faded while
   there is nothing planted to clear. */
#bcWrapper { --bc-pic-clear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.500' fill='%23E8503E' stroke='%238A1F14' stroke-width='1.600'/%3E%3Cpath d='M8.700 8.700l6.600 6.600M15.300 8.700l-6.600 6.600' stroke='%23FFF' stroke-width='2.400'/%3E%3C/svg%3E"); }
#bcWrapper .bc-side .bc-ico-clear { --bc-pic: var(--bc-pic-clear); }
#bcWrapper .bc-side button[disabled] { opacity: 0.45; cursor: default; }
    #bcWrapper .bc-side button[disabled]:hover { background: var(--bc-plate); }
    #bcWrapper .bc-side button[disabled]:active { transform: none; }

/* ---- The left-hand column ---- */
/* On a wide screen the tray of power-ups, the builder's bar and the Detonate button are one column down the
   left of the site (.bc-left), in that order - so Detonate sits under whichever of the other two is showing,
   however tall it is. The column is placed; the three in it just follow one another.
   On a phone there is no column: the tray and the builder's bar are along the bottom, above the tabs, as they
   were, and Detonate is at the top left under the level's name - with the hint line and the tutorial card
   stepping down to make room for it. */
@media screen and (min-width: 561px) {
    .bc-left { position: absolute; z-index: 2; top: calc(var(--bc-top) + 74px); left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
        .bc-left > * { pointer-events: auto; }
        #bcWrapper .bc-left > .bc-tray, #bcWrapper .bc-left > .bc-build-bar, #bcWrapper .bc-left > #bcButtons, #bcWrapper .bc-left > #bc3dButtons { position: static; top: auto; right: auto; bottom: auto; left: auto; margin-left: 0; margin-right: 0; }
        #bcWrapper .bc-left > #bcButtons, #bcWrapper .bc-left > #bc3dButtons { pointer-events: none; }
}
#bcWrapper #bcButtons .bc-btn.bc-btn-go, #bcWrapper #bc3dButtons .bc-btn.bc-btn-go { margin-left: 0; pointer-events: auto; }
@media screen and (max-width: 560px) {
    /* The column is only a wrapper here: the three place themselves on the site. */
    .bc-left { display: contents; }
    #bcButtons, #bc3dButtons { top: calc(var(--bc-top) + 60px); bottom: auto; left: 8px; right: auto; }
    #bcStatus, #bc3dStatus { top: calc(var(--bc-top) + 112px); }
    #bcWrapper .bc-coach:not(.bc-coach-low) { top: calc(var(--bc-top) + 112px); }
    #bcWrapper .bc-tray, #bcWrapper .bc-build-bar { bottom: calc(var(--bc-dock) + 10px); }
}
/* In the tray, each power-up's count sits at the far right of its button, so the counts line up in a column. */
#bcWrapper .bc-tray .bc-power b { margin-left: auto; }
/* And the word Store, on the coins button above them, sits at the far right in the same way. */
#bcWrapper .bc-tray .bc-coins-btn span { margin-left: auto; }

/* ---- The builder bar's buttons fill it ---- */
/* On a wide screen, where the bar is a panel beside the site, each of its rows is filled from edge to edge: the
   buttons share the row's width between them (a row that wraps fills each of its lines), instead of sitting at
   their own widths with space left over. The bar is a fixed width there, so it doesn't change size as the rows
   change. On a phone the bar runs along the bottom and its buttons stay their own small size, as they were. */
@media screen and (min-width: 561px) {
    #bcWrapper .bc-build-bar { width: 240px; max-width: 240px; }
    #bcWrapper .bc-build-row { gap: 4px; margin-bottom: 4px; }
        #bcWrapper .bc-build-btn { flex: 1 1 auto; margin: 0; }
        /* The rows with a number to step up and down stay on one line: the name takes the room, the steppers keep their size. */
        #bcWrapper .bc-build-charge { flex-wrap: nowrap; }
        #bcWrapper .bc-build-charge span { flex: 1 1 auto; margin: 0 4px 0 2px; }
        #bcWrapper .bc-build-charge b { flex: 0 0 auto; margin: 0; min-width: 34px; }
        #bcWrapper .bc-build-charge .bc-build-btn[data-build$="-"], #bcWrapper .bc-build-charge .bc-build-btn[data-build$="+"] { flex: 0 0 36px; padding: 0; }
        #bcWrapper .bc-build-ask span { margin: 0 0 1px 2px; }
        #bcWrapper .bc-build-bar .bc-build-go { flex: 1 1 auto; justify-content: center; margin: 2px 0 0; }
}
/* even rows in the 3D bar: its six shapes sit three to a line and its four tools two to a line, rather than a
   line of three or four with one left over underneath. */
@media screen and (min-width: 561px) {
    #bcWrapper #bc3dBuildBar .bc-build-btn[data-build^="shape:"] { flex: 1 1 30%; padding: 0 4px; }
    #bcWrapper #bc3dBuildBar .bc-build-btn[data-build="turn"], #bcWrapper #bc3dBuildBar .bc-build-btn[data-build="erase"], #bcWrapper #bc3dBuildBar .bc-build-btn[data-build="undo"], #bcWrapper #bc3dBuildBar .bc-build-btn[data-build="clear"] { flex: 1 1 40%; }
}
/* On a phone the hint line sits under the Detonate button, and when all it has to say is the level's score
   marks ("Score 590 for two stars...") it isn't shown: the marks are on the result card after the blast. A real
   hint - how to plant, a power-up switched on - still shows. */
@media screen and (max-width: 560px) {
    #bcStatus.bc-status-goals, #bc3dStatus.bc-status-goals { display: none; }
}

/* ---- A phone on its side ---- */
/* A screen that is wide but short - a phone held sideways - got the wide layout: the tray of power-ups and the
   builder's bar as tall panels down the left, which there ran off the bottom of the screen behind the tabs.
   It is laid out like an upright phone instead: the tray and the builder's bar in rows along the bottom, just
   above the tabs, with small buttons, and Detonate at the top left under the level's name. */
@media screen and (min-width: 561px) and (max-height: 520px) {
    .bc-left { position: static; display: contents; }
    #bcWrapper .bc-left > .bc-tray, #bcWrapper .bc-left > .bc-build-bar, #bcWrapper .bc-left > #bcButtons, #bcWrapper .bc-left > #bc3dButtons { position: absolute; }
    #bcWrapper .bc-left > #bcButtons, #bcWrapper .bc-left > #bc3dButtons { top: calc(var(--bc-top) + 60px); left: 8px; right: auto; bottom: auto; }
    #bcWrapper .bc-left > .bc-tray { top: auto; left: 6px; right: 6px; bottom: calc(var(--bc-dock) + 8px); flex-direction: row; align-items: center; justify-content: center; gap: 4px; width: -moz-fit-content; width: fit-content; max-width: calc(100% - 12px); margin-left: auto; margin-right: auto; padding: 4px 6px; border-radius: 999px; }
        #bcWrapper .bc-left > .bc-tray .bc-coins-btn, #bcWrapper .bc-left > .bc-tray .bc-power { align-self: center; }
        #bcWrapper .bc-left > .bc-tray .bc-power span, #bcWrapper .bc-left > .bc-tray .bc-coins-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
        #bcWrapper .bc-left > .bc-tray .bc-power b { margin-left: 0; }
    #bcWrapper .bc-left > .bc-build-bar { top: auto; left: 6px; right: 6px; bottom: calc(var(--bc-dock) + 8px); width: auto; max-width: none; display: flex; flex-wrap: wrap; justify-content: center; padding: 5px; }
        #bcWrapper .bc-build-row { flex-wrap: wrap; gap: 0; margin: 0 8px 0 0; justify-content: center; }
        #bcWrapper .bc-build-btn { flex: 0 0 auto; height: 28px; margin: 0 3px 3px 0; padding: 0 7px; font-size: 12px; }
        #bcWrapper .bc-build-btn .bc-build-swatch + span { display: none; }
        #bcWrapper .bc-build-swatch { margin-right: 0; width: 15px; height: 15px; }
        #bcWrapper #bc3dBuildBar .bc-build-btn[data-build] { flex: 0 0 auto; padding: 0 7px; }
        #bcWrapper .bc-build-charge span { flex: 0 0 auto; margin: 0 6px 3px 2px; }
        #bcWrapper .bc-build-charge b { min-width: 26px; margin: 0 3px 3px 0; }
        #bcWrapper .bc-build-charge .bc-build-btn[data-build$="-"], #bcWrapper .bc-build-charge .bc-build-btn[data-build$="+"] { flex: 0 0 30px; }
        #bcWrapper .bc-build-bar .bc-build-go { flex: 0 0 auto; margin: 0 0 3px; padding: 5px 13px; font-size: 13px; }
}

/* ---- The builder's material buttons show the material ---- */
/* A little block of the material itself in place of a plain square of its colour - bigger where the button has
   no name beside it (a phone, upright or on its side), since the picture is then all there is to go by. The
   chosen material's button is red, so its picture has a pale edge to stand off it. */
#bcWrapper .bc-build-swatch.bc-build-mat { width: 26px; height: 18px; margin-right: 6px; border: 0; border-radius: 0; }
#bcWrapper .bc-build-on .bc-build-mat { filter: drop-shadow(0 0 1.5px #FFF) drop-shadow(0 0 1px #FFF); }
@media screen and (max-width: 560px) {
    #bcWrapper .bc-build-swatch.bc-build-mat { width: 32px; height: 22px; margin-right: 0; }
    #bcWrapper .bc-build-btn[data-build^="mat:"] { padding: 0 6px; }
}
@media screen and (min-width: 561px) and (max-height: 520px) {
    #bcWrapper .bc-build-swatch.bc-build-mat { width: 30px; height: 20px; margin-right: 0; }
    #bcWrapper .bc-build-btn[data-build^="mat:"] { padding: 0 6px; }
}

/* ---- Getting about, without a tab bar (2026-11-23) ----
   The dock is gone, and with it the room kept for it at the foot of the scene. In its place, at the top of
   each site: its name (a button: the map of levels) and a Menu button. The menu is a panel like the others,
   of big buttons. (The same as Tower Wardens and Bridge Works.) */
#bcWrapper #bcScene, body[data-mode="spa"] #bcWrapper #bcScene, body.pin-sidebar-menu #bcWrapper #bcScene { --bc-dock: 4px; --bc-foot: 16px; }
#bcWrapper {
    --bc-ico-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4.2' width='18' height='3.6' rx='1.8'/%3E%3Crect x='3' y='10.2' width='18' height='3.6' rx='1.8'/%3E%3Crect x='3' y='16.2' width='18' height='3.6' rx='1.8'/%3E%3C/svg%3E");
    --bc-ico-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.500 11.500 12 4l8.500 7.500'/%3E%3Cpath d='M6 10v9.500h12V10'/%3E%3Cpath d='M10 19.500v-5h4v5'/%3E%3C/svg%3E");
}
#bcWrapper .bc-ico-menu { --bc-ico: var(--bc-ico-menu); }
#bcWrapper .bc-ico-home { --bc-ico: var(--bc-ico-home); }
.bc-top-left { display: flex; align-items: center; gap: 8px; min-width: 0; pointer-events: none; }
    .bc-top-left > * { pointer-events: auto; }
#bcWrapper .bc-level-btn { cursor: pointer; transition: background .15s ease; }
    #bcWrapper .bc-level-btn:hover { background: var(--bc-plate-hover); }
    #bcWrapper .bc-level-btn::after { content: ""; flex: none; width: 9px; height: 9px; margin: -4px 2px 0 1px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; border-radius: 1px; opacity: 0.55; transform: rotate(45deg); }
#bcWrapper .bc-nav-btn { position: relative; flex: none; cursor: pointer; display: block; width: 52px; height: 52px; margin: 0; padding: 0; border: 0; border-radius: 16px; color: var(--bc-plate-text); background: var(--bc-plate); box-shadow: var(--bc-plate-shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .15s ease, transform .1s ease; }
    #bcWrapper .bc-nav-btn:hover { background: var(--bc-plate-hover); }
    #bcWrapper .bc-nav-btn:active { transform: scale(0.94); }
    #bcWrapper .bc-nav-btn.bc-ico::before { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; }
#bcWrapper .bc-level-btn:focus-visible, #bcWrapper .bc-nav-btn:focus-visible, #bcWrapper .bc-menu-item:focus-visible { outline: 2px solid #864cff; outline-offset: 2px; }
#bcWrapper .bc-menu-title { margin: 14px 0 12px; }
.bc-menu { display: flex; flex-wrap: wrap; gap: 10px; }
#bcWrapper .bc-menu-item { position: relative; flex: 1 1 240px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 64px; cursor: pointer; margin: 0; padding: 10px 14px 10px 62px; box-sizing: border-box; border: 2px solid transparent; border-radius: 16px; font-family: inherit; text-align: left; color: inherit; background: rgba(127, 127, 127, 0.13); transition: background .15s ease, transform .1s ease; }
    #bcWrapper .bc-menu-item:hover { background: rgba(127, 127, 127, 0.24); }
    #bcWrapper .bc-menu-item:active { transform: scale(0.98); }
    #bcWrapper .bc-menu-item b { font-family: Fredoka, "Open Sans", sans-serif; font-size: 17px; font-weight: 600; }
    #bcWrapper .bc-menu-item span { font-size: 12.5px; opacity: 0.75; }
    #bcWrapper .bc-menu-item.bc-ico::before { position: absolute; top: 50%; left: 17px; width: 28px; height: 28px; margin-top: -14px; opacity: 0.85; }
    #bcWrapper .bc-menu-item.bc-menu-go { flex-basis: 100%; color: #fff; background: linear-gradient(135deg, #EC5A45, #C2331F); box-shadow: 0 4px 0 #8f2416; }
        #bcWrapper .bc-menu-item.bc-menu-go:hover { filter: brightness(1.07); }
        #bcWrapper .bc-menu-item.bc-menu-go span { opacity: 0.9; }
        #bcWrapper .bc-menu-item.bc-menu-go.bc-ico::before { opacity: 1; }
@media screen and (max-width: 775px) {
    .bc-top-left { gap: 6px; }
    #bcWrapper .bc-nav-btn { width: 44px; height: 44px; border-radius: 13px; }
}
@media screen and (max-width: 560px) {
    /* A phone has no room for the name beside the dynamite: the number alone stands for the site there. */
    #bcWrapper .bc-level-btn .bc-lvl-text { display: none; }
    #bcWrapper .bc-level-btn { padding-right: 9px; }
    #bcWrapper .bc-menu-item { flex-basis: 100%; min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) { #bcWrapper .bc-nav-btn, #bcWrapper .bc-level-btn, #bcWrapper .bc-menu-item { transition: none; } }

/* The Builder's picture in the menu: a few blocks, stacked. (.bc-ico-build has no outline picture of its own.) */
#bcWrapper { --bc-ico-blocks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='3' y='13' width='8' height='7.500' rx='1'/%3E%3Crect x='13' y='13' width='8' height='7.500' rx='1'/%3E%3Crect x='8' y='3.500' width='8' height='7.500' rx='1'/%3E%3C/svg%3E"); }
#bcWrapper .bc-menu-item.bc-ico-build { --bc-ico: var(--bc-ico-blocks); }
