/* brainistry-site-appearance.css */
/* Shared decorative screen palette. Puzzle marks, feedback states and printed
   pages retain their own meaning. No JavaScript repaint is needed for a skin. */
@media screen {
html[data-br-skin] {
  --br-ui-ink:var(--br-ink);
  --br-ui-muted:color-mix(in srgb,var(--br-ink) 78%,white);
  --br-ui-soft:color-mix(in srgb,var(--br-accent) 7%,white);
  --br-ui-soft-2:color-mix(in srgb,var(--br-accent-2) 10%,white);
  --br-ui-shadow:color-mix(in srgb,var(--br-accent) 14%,transparent);
  --br-ui-shadow-strong:color-mix(in srgb,var(--br-accent-2) 22%,transparent);
}
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header {
  background:linear-gradient(110deg,var(--br-accent),var(--br-accent-2))!important;
  box-shadow:0 7px 25px var(--br-ui-shadow)!important;
}
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header>nav {
  background:color-mix(in srgb,var(--br-accent-2) 90%,black)!important;
  box-shadow:0 3px 12px var(--br-ui-shadow-strong);
}
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header>nav a,
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header>nav a:hover,
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header>nav a:focus-visible {
  color:#fff!important;
}
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header>nav a[aria-current=page] {
  background:var(--br-accent)!important;color:#fff!important;
  box-shadow:inset 0 0 0 1px #ffffffaa,0 3px 10px var(--br-ui-shadow-strong)!important;
}
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header>nav a:focus-visible {
  outline-color:#fff!important;
}
html[data-br-skin] body.br-hybrid .br-compact-header .br-account-menu>.br-account-links {
  border-color:var(--br-skin-line)!important;box-shadow:0 12px 30px var(--br-ui-shadow-strong)!important;
}
html[data-br-skin] body.br-hybrid .br-compact-header .br-account-links>a {
  color:var(--br-accent)!important;
}
html[data-br-skin] body.br-hybrid .br-compact-header .br-account-links>a:hover {
  background:var(--br-tint)!important;
}

/* Text links include Learn to Play; filled action links keep white text. */
html[data-br-skin] body.br-hybrid :is(main,#mainContent) a:not(:where(.br-button,.br-play-action,.ease-play,.primary,[role=button],#pages *,svg *)) {
  color:var(--br-accent)!important;text-decoration-color:currentColor;
}
html[data-br-skin] body.br-hybrid :is(main,#mainContent) a:not(:where(.br-button,.br-play-action,.ease-play,.primary,[role=button],#pages *,svg *)):hover {
  color:var(--br-accent-2)!important;
}
html[data-br-skin] body.br-hybrid :is(.br-outline-button,.br-text-link,.br-watch-demo,.br-card-number,.br-way-arrow,.br-category-symbol,.br-hero h1 em) {
  color:var(--br-accent)!important;
}
html[data-br-skin] body.br-hybrid :is(.br-learning-actions a.primary,.br-play-action,.br-button.primary) {
  background:var(--br-gradient)!important;color:#fff!important;border-color:var(--br-accent)!important;
}
html[data-br-skin] body.br-hybrid.br-minimal .br-daily-feature .br-light-button {
  color:var(--br-accent)!important;background:#fff!important;
}
html[data-br-skin] body.br-hybrid :is(.br-pagehead,.br-section-heading,.br-gradient-hero,.br-card,.br-account-page) :is(h1,h2,h3) {
  color:var(--br-ui-ink);
}
html[data-br-skin] body.br-hybrid :is(main,#mainContent) :is(h1,h2,h3,summary):not(:where(#pages *,svg *,.br-daily-feature *)) {
  color:var(--br-ui-ink)!important;
}
html[data-br-skin] body.br-hybrid :is(.br-toolbar label,.br-toolbar input,.br-toolbar select,.ease-puzzle-name,.br-category strong,.br-card h3,.br-puzzle-card h3) {
  color:var(--br-ui-ink)!important;
}

/* Learn coverage counts, card accents, panel shading and shadows. */
html[data-br-skin] body.br-hybrid .br-gradient-hero {
  background:linear-gradient(119deg,var(--br-ui-soft),var(--br-page) 54%,var(--br-ui-soft-2))!important;
  border-color:var(--br-skin-line)!important;box-shadow:0 12px 32px var(--br-ui-shadow)!important;
}
html[data-br-skin] body.br-hybrid .br-learning-stats>div {
  border-color:var(--br-skin-line);box-shadow:0 3px 12px var(--br-ui-shadow);
}
html[data-br-skin] body.br-hybrid .br-learning-stats strong {color:var(--br-accent)!important}
html[data-br-skin] body.br-hybrid .br-learning-stats span {color:var(--br-ui-muted)}
html[data-br-skin] body.br-hybrid :is(.br-card,.ease-panel,.br-customize,.br-rank-panel,.panel.controls,.br-account-page section,.br-preview-card,.br-action,.br-category,.ease-choice,.br-puzzle-card) {
  border-color:var(--br-skin-line)!important;box-shadow:0 7px 22px var(--br-ui-shadow)!important;
}
html[data-br-skin] body.br-hybrid .br-card {
  border-top-color:var(--br-accent-2)!important;
}
html[data-br-skin] body.br-hybrid .br-card[data-category] {
  background:linear-gradient(170deg,white 55%,var(--br-ui-soft))!important;
}
html[data-br-skin] body.br-hybrid :is(.br-card,.ease-choice,.br-category,.br-preview-card,.br-puzzle-card):hover {
  box-shadow:0 12px 26px var(--br-ui-shadow-strong)!important;
}
html[data-br-skin] body.br-hybrid :is(.br-card p,.br-gradient-hero>p:not(.br-ribbon)) {color:var(--br-ui-muted)}
html[data-br-skin] body.br-hybrid :is(.br-ribbon,.br-pill) {
  background:var(--br-tint);color:var(--br-accent);border-color:var(--br-skin-line);
}
html[data-br-skin] body.br-hybrid :is(.br-tabbar,.br-hands-tabs,.br-board-tabs,.br-guide,.br-player-help,.br-learn-size,.br-puzzle-howto) {
  background:var(--br-ui-soft-2);border-color:var(--br-skin-line);
}
html[data-br-skin] body.br-hybrid .br-callout:not(.br-warning):not(.br-good) {
  background:var(--br-ui-soft);border-left-color:var(--br-accent-2);
}
html[data-br-skin] body.br-hybrid :is(.ease-guide,.br-layout-notes,.panel.preview,.br-lesson-video) {
  border-color:var(--br-skin-line);background-color:var(--br-ui-soft);
}
html[data-br-skin] body.br-hybrid .br-site-control[aria-selected=true] {
  --br-control-bg:linear-gradient(110deg,var(--br-accent),var(--br-accent-2));--br-control-fg:#fff;
}
html[data-br-skin] body.br-hybrid :is(.br-tabbar,.br-hands-tabs,.br-board-tabs) [aria-selected=true] {
  color:#fff!important;background:var(--br-gradient)!important;border-color:var(--br-accent)!important;
}
html[data-br-skin] body.br-hybrid :is(.br-site-control,.br-button,.ease-play,.br-play-action) {
  box-shadow:0 4px 12px var(--br-ui-shadow)!important;
}
html[data-br-skin] body.br-hybrid .br-site-control:is([aria-pressed=true],[aria-selected=true]) {
  box-shadow:inset 0 0 0 2px #fff,0 0 0 2px var(--br-accent)!important;
}
html[data-br-skin] body.br-hybrid .br-site-control:disabled {box-shadow:none!important}
html[data-br-skin] body.br-hybrid :is(a,.br-site-control,summary,.br-toolbar input,.br-toolbar select):focus-visible {
  outline-color:var(--br-accent-2)!important;
}
html[data-br-skin] body.br-hybrid :is(.br-toolbar input,.br-toolbar select,.br-account-page select) {
  border-color:var(--br-skin-line);accent-color:var(--br-accent);
}
html[data-br-skin] body.br-hybrid .br-hero-tiles {box-shadow:0 18px 55px var(--br-ui-shadow-strong)}
html[data-br-skin] body.br-hybrid .br-hero-tiles span {
  background:var(--br-ui-soft);color:var(--br-accent);border-color:var(--br-skin-line);
}
html[data-br-skin] body.br-hybrid :is(.br-hybrid-footer,.br-footer) p {color:#fff}
}

/* Generate Controls 01: native checked states use the selected site palette. */
@media screen {
html[data-br-skin] body.br-hybrid input:is([type=checkbox],[type=radio]):not(:where(#pages *)) {
  accent-color:var(--br-accent);
}
html[data-br-skin] body.br-hybrid input:is([type=checkbox],[type=radio]):focus-visible {
  outline-color:var(--br-accent-2)!important;
}
html[data-br-skin] body.br-hybrid .controls label.br-howto-option {
  display:grid!important;grid-template-columns:22px minmax(0,1fr) 44px;
  align-items:center;gap:10px;width:100%;box-sizing:border-box;
  min-height:48px;margin:14px 0;line-height:1.4;
}
html[data-br-skin] body.br-hybrid .controls .br-howto-option>input {
  grid-column:1;grid-row:1;position:static!important;transform:none!important;
  width:22px!important;height:22px;min-height:22px;margin:0!important;
}
html[data-br-skin] body.br-hybrid .controls .br-howto-option>.br-howto-text {
  grid-column:2;grid-row:1;min-width:0;white-space:normal;overflow-wrap:normal;
}
html[data-br-skin] body.br-hybrid .controls .br-howto-option>.br-info {
  grid-column:3;grid-row:1;position:static!important;float:none!important;
  transform:none!important;margin:0!important;width:44px!important;
  height:44px!important;min-width:44px!important;min-height:44px!important;
  padding:10px!important;display:grid;place-items:center;justify-self:end;
}
}

@media screen {
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header>nav,
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header>nav a,
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header>nav a[aria-current=page]{background:transparent!important;box-shadow:none!important;color:#fff!important}
html[data-br-skin] body.br-hybrid .br-site-header.br-compact-header>nav a[aria-current=page]{text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:3px}
:root[data-br-skin=halloween]{--br-accent:#ff7900;--br-accent-2:#572477;--br-page:#fff7ed;--br-tint:#ffead0;--br-ink:#482b24;--br-skin-line:#d9b58a}
:root[data-br-skin=berry]{--br-accent:#893555;--br-accent-2:#59357c;--br-page:#fff6fb;--br-tint:#f4deeb;--br-ink:#482b44;--br-skin-line:#dbadc8}
:root[data-br-skin=coastal]{--br-accent:#155e63;--br-accent-2:#365f8c;--br-page:#f2fbf9;--br-tint:#dbf0ea;--br-ink:#214b51;--br-skin-line:#a4ccc5}
#openGuide[hidden],#playGuide[hidden],#selectionGuide[hidden]{display:none!important}
.br-puzzle-howto #rules{margin:12px 0;background:transparent}
#values .br-cipher-keyboard{display:none}
}

@media screen {
/* Bright pumpkin surfaces; purple text keeps small labels readable. */
html[data-br-skin=halloween] body.br-hybrid :is(main,#mainContent) a:not(:where(.br-button,.br-play-action,.ease-play,.primary,[role=button],#pages *,svg *)),
html[data-br-skin=halloween] body.br-hybrid :is(.br-outline-button,.br-text-link,.br-watch-demo,.br-card-number,.br-way-arrow,.br-category-symbol,.br-hero h1 em,.br-learning-stats strong,.br-account-links>a) {
 color:var(--br-accent-2)!important;
}
/* Retain white lettering over orange with a dark-purple edge. */
html[data-br-skin=halloween] body.br-hybrid :is(.br-site-header,.br-site-footer,footer,.br-button,.br-play-action,.ease-play,button.primary,#generate,#new,#check,#create,#findOpponent,.br-site-control.primary) {
 text-shadow:-1px -1px 0 #38164e,1px -1px 0 #38164e,-1px 1px 0 #38164e,1px 1px 0 #38164e;
}
}

@media screen{
:root[data-br-skin=sunset]{--br-accent:#a64c27;--br-accent-2:#6a386e;--br-page:#fff8f0;--br-tint:#f6e2d4;--br-ink:#4e302b;--br-skin-line:#d6b4a5}
:root[data-br-skin=arctic]{--br-accent:#266983;--br-accent-2:#33497d;--br-page:#f2faff;--br-tint:#dceef7;--br-ink:#203c59;--br-skin-line:#a6c8dc}
:root[data-br-skin=lavender]{--br-accent:#6c4a96;--br-accent-2:#465b9b;--br-page:#faf7ff;--br-tint:#eae2f8;--br-ink:#393053;--br-skin-line:#c4b8de}
}

/* Test13: prevent browser scroll anchoring during cell replacement. */
@media screen{html,body,main,.br-player-frame{overflow-anchor:none}.br-view-tools{display:flex;flex-wrap:wrap;justify-content:center;align-items:center}.br-view-percent[hidden]{display:none!important}.br-sudoku-pad{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;margin:8px auto}.br-sudoku-pad button{min-width:30px;padding:8px}.br-sudoku-pad .br-number-used{opacity:.4}.br-puzzle-thumb svg{max-width:100%}}

@media screen{
.br-dark-switch{display:flex!important;align-items:center;gap:12px;cursor:pointer}.br-dark-switch input{position:absolute;opacity:0;width:1px;height:1px}.br-switch-track{display:block;width:48px;height:28px;border-radius:30px;background:#7c8798;position:relative}.br-switch-track:after{content:'';position:absolute;width:22px;height:22px;left:3px;top:3px;border-radius:50%;background:#fff}.br-dark-switch input:checked+.br-switch-track{background:var(--br-accent)}.br-dark-switch input:checked+.br-switch-track:after{left:23px}.br-dark-switch input:focus-visible+.br-switch-track{outline:3px solid #8ec8ff;outline-offset:3px}
html[data-br-puzzle-appearance=dark]{color-scheme:dark;--br-ink:#f4f5fa;--br-ui-ink:#f4f5fa;--br-ui-muted:#d3d8e1;--br-ui-soft:color-mix(in srgb,var(--br-accent) 15%,#161a23);--br-ui-soft-2:color-mix(in srgb,var(--br-accent-2) 20%,#161a23);--br-control-bg:color-mix(in srgb,var(--br-accent) 22%,#17202a);--br-control-fg:#fff;--br-tint:#252a35;--br-skin-line:#656576}
html[data-br-puzzle-appearance=dark] body.br-hybrid{background:linear-gradient(135deg,color-mix(in srgb,var(--br-accent) 12%,#10151e),color-mix(in srgb,var(--br-accent-2) 15%,#12131b))!important;color:#f4f5fa!important}
html[data-br-puzzle-appearance=dark] body.br-hybrid :is(main,#mainContent) :is(section,article,details,summary,.card,.game-surface,.round-result,.br-memory-review,.preview-tile,select,input,.br-view-viewport,.br-unified-game){background-color:var(--br-ui-soft)!important;color:#f4f5fa!important;border-color:#626c7e!important}
html[data-br-puzzle-appearance=dark] body.br-hybrid :is(main,#mainContent) :is(h1,h2,h3,h4,p,label,small,li,strong,span,a){color:#f4f5fa!important}
html[data-br-puzzle-appearance=dark] body.br-hybrid :is(button,.primary,.br-play-action){color:#fff!important;-webkit-text-stroke:0!important;text-shadow:none!important}
html[data-br-puzzle-appearance=dark] body.br-hybrid :is(button.primary,.br-play-action,.br-site-header.br-compact-header){background:linear-gradient(110deg,color-mix(in srgb,var(--br-accent) 45%,#171923),color-mix(in srgb,var(--br-accent-2) 50%,#171923))!important}
html[data-br-puzzle-appearance=dark] .banana-cell.black{background:#634634!important}html[data-br-puzzle-appearance=dark] .banana-cell.white{background:#6a591e!important}
html[data-br-puzzle-appearance=dark] .logic-cell.logic-white{background:#54616d!important}html[data-br-puzzle-appearance=dark] .logic-cell.logic-black{background:#060a10!important}html[data-br-puzzle-appearance=dark] .logic-cell.logic-fixed{background:#3c4a58!important}
}

.br-brand-picture{display:block;width:min(230px,48vw)!important;height:auto!important;object-fit:contain}.br-footer-brand .br-brand-picture{background:#243351;border-radius:8px;padding:6px}

#board .br-same-number{background:#6baeff55!important}#board .br-hint-entry{background:#61c78688!important;box-shadow:inset 0 0 0 3px #238347!important}#keypad{display:flex;justify-content:center;flex-wrap:wrap;gap:5px}#keypad .br-number-used{opacity:.4}
@media screen{
html[data-br-puzzle-appearance=dark] body.br-hybrid .br-site-control{--br-control-bg:color-mix(in srgb,var(--br-accent) 22%,#17202a);--br-control-fg:#fff}
html[data-br-puzzle-appearance=dark] body.br-hybrid .br-site-control:is(.primary,[aria-pressed=true],#new,#newMine,#generate,#start,#startGame){--br-control-bg:linear-gradient(110deg,color-mix(in srgb,var(--br-accent) 45%,#171923),color-mix(in srgb,var(--br-accent-2) 50%,#171923));--br-control-fg:#fff}
html[data-br-puzzle-appearance=dark] .br-success-overlay{background:linear-gradient(110deg,color-mix(in srgb,var(--br-accent) 45%,#171923),color-mix(in srgb,var(--br-accent-2) 50%,#171923))!important}
}

@media screen {
 button,[role="button"],input[type="button"],input[type="submit"]{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none}
 .br-success-overlay{min-width:0;max-width:calc(100% - 16px);box-sizing:border-box}
 .br-success-overlay button{background:var(--br-control-bg,#fff0db)!important;color:var(--br-control-fg,#a84a00)!important}
 #verifiedPalette,#sashiPalette{display:none!important}
 .logic-cell.logic-fixed{display:flex;align-items:center;justify-content:center;gap:.2em;text-align:center}
 .sashi-cell{position:relative}.sashi-cell strong{position:absolute;left:12%;bottom:10%;font-size:clamp(18px,5vw,30px)}
 .sashi-cell small{position:absolute;right:8%;top:7%;font-size:clamp(20px,5vw,32px);line-height:1.1}
 #routeBoard{width:max-content;max-width:100%;margin-inline:auto}.route-cell:disabled{opacity:1!important}
 .route-board,.route-clues{justify-content:center}.route-row{justify-content:center}
 #psBoard{border:4px solid var(--br-text,#243a53);box-sizing:border-box}
}

@media screen {
 body:has(script[src="families/norinori/play.js"]) label:has(#mode){display:none!important}
 .br-color-palette{display:flex;flex-wrap:nowrap;gap:7px;justify-content:center;margin:10px auto;max-width:100%}
 .br-color-palette button{width:38px!important;height:38px!important;min-width:0!important;min-height:0!important;border-radius:5px!important;padding:0!important;flex:0 1 38px}
 #board[data-paint-color] .spatial-grid .painted,#board[data-paint-color] .spatial-grid .current{background:var(--br-paint-color)!important;color:white!important}
 #board[data-paint-color] .spatial-grid .current{box-shadow:inset 0 0 0 4px #fff8;outline:2px solid #243a53}
 .br-picture-grid.br-picture-solved{gap:0!important;border-radius:12px;overflow:hidden}
 .br-picture-grid.br-picture-solved .br-picture-tile{border:0!important;border-radius:0!important;opacity:1!important}
 .br-picture-solved .br-tile-number{display:none}
 .br-search-targets{display:flex;flex-wrap:wrap;list-style:none;padding:4px;gap:8px;justify-content:center;font-size:16px}
 .br-search-targets .found{text-decoration:line-through;opacity:.5}
}

@media screen {#mineBoard .mine-hit{font-size:clamp(22px,4vw,38px)}#mineBoard button{font-size:clamp(18px,3.5vw,30px)}.br-mine-modes{display:flex;gap:10px;justify-content:center;margin:10px 0}.br-mine-modes[hidden]{display:none!important}}

/* Color identity remains visible on the full-size palette and the zoomed board. */
@media screen {
 body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color0{background:#7bb7ed!important;color:#102e4d!important;opacity:1!important}
 body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color1{background:#e89079!important;color:#472019!important;opacity:1!important}
 body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color2{background:#91be83!important;color:#203d21!important;opacity:1!important}
 body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color3{background:#e5c05a!important;color:#493600!important;opacity:1!important}
 body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color4{background:#bb94dd!important;color:#352046!important;opacity:1!important}
 body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color5{background:#adb4bd!important;color:#202832!important;opacity:1!important}
 .br-color-palette button:disabled{box-shadow:inset 0 0 0 3px #fff,0 0 0 2px #26334c!important}
}

@media screen {
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color0{background:#285785!important;color:#fff!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color1{background:#813d31!important;color:#fff!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color2{background:#365e39!important;color:#fff!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color3{background:#796021!important;color:#fff!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color4{background:#61447e!important;color:#fff!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-color-palette,.spatial-grid) button.color5{background:#4e5967!important;color:#fff!important}
}

/* Test17: readable catalog labels and compact, theme-aware board surrounds. */
@media screen {
 html[data-br-skin] body.br-hybrid :is(.br-puzzle-card,.ease-puzzle,.preview-tile) :is(h2,h3,.ease-puzzle-name){text-shadow:none!important;-webkit-text-stroke:0!important;-webkit-text-fill-color:currentColor!important}
 html[data-br-skin] body.br-hybrid :is(#reference,#scrollBoard,.br-grid-scroll,.br-view-viewport){background:transparent!important}
 html[data-br-skin] body.br-hybrid :is(#reference,#scrollBoard){padding:4px!important;margin-block:4px!important;border-radius:4px;min-height:0}
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-puzzle-card,.br-puzzle-thumb,.preview-tile){background:#202b3b!important;color:#f4f5fa!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-puzzle-card,.preview-tile) :is(h2,h3,.ease-puzzle-name){color:#f4f5fa!important;opacity:1!important}
 /* Only catalog illustrations: keep playable white/black cell meanings intact. */
 html[data-br-puzzle-appearance=dark] .br-puzzle-thumb svg{background:#202b3b!important}
 html[data-br-puzzle-appearance=dark] .br-puzzle-thumb svg :is([fill="white"],[fill="#fff"],[fill="#ffffff"],[fill="#FFFFFF"],[fill="#f0f6ff"],[fill="#eef5ed"]){fill:#34445b!important}
 html[data-br-puzzle-appearance=dark] .br-puzzle-thumb svg text{fill:#f4f5fa!important;stroke:none!important}
 html[data-br-puzzle-appearance=dark] #offlineStatus{background:#202b3b!important;color:#f4f5fa!important;border-color:#626c7e!important}
}
@media screen {
 html[data-br-skin] body.br-hybrid .ease-choice .ease-puzzle-name{text-shadow:none!important;-webkit-text-stroke:0!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid .ease-choice{background:#202b3b!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid .ease-choice .ease-puzzle-name{--br-control-bg:#202b3b!important;--br-control-fg:#f4f5fa!important;background:#202b3b!important;color:#f4f5fa!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid .ease-choice [id^=favorite-]{--br-control-bg:#34445b!important;--br-control-fg:#fff!important}
}
@media screen {
 html[data-br-puzzle-appearance=dark] .br-puzzle-thumb svg :is([fill="#dae6fa"],[fill="#f5f7fb"],[fill="#f8fafc"],[fill="#f4f6fb"]){fill:#34445b!important}
 html[data-br-puzzle-appearance=dark] .br-puzzle-thumb svg text[fill]{fill:#f4f5fa!important;stroke:none!important}
}
@media screen {html[data-br-puzzle-appearance=dark] .br-puzzle-thumb{--br-thumb-paper:#34445b}}

/* Test18: match account typography and footer branding to the selected skin. */
@media screen {
 html[data-br-skin] body.br-hybrid .br-footer-brand .br-brand-picture{background:linear-gradient(110deg,var(--br-accent),var(--br-accent-2))!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid .br-footer-brand .br-brand-picture{background:linear-gradient(110deg,color-mix(in srgb,var(--br-accent) 45%,#171923),color-mix(in srgb,var(--br-accent-2) 50%,#171923))!important}
 html[data-br-skin] body.br-hybrid .br-account-links>a,
 html[data-br-skin] body.br-hybrid .br-account-menu>summary,
 html[data-br-skin] body.br-hybrid .br-appearance summary{font-family:inherit!important;font-weight:400!important;text-decoration:none!important;text-shadow:none!important;-webkit-text-stroke:0!important;letter-spacing:normal!important}
}

/* Test19: footer is one surface; Home previews follow the same dark palette. */
@media screen {
 html[data-br-skin] body.br-hybrid :is(.br-hybrid-footer,.br-footer){background:linear-gradient(110deg,var(--br-accent),var(--br-accent-2))!important}
 html[data-br-skin] body.br-hybrid .br-footer-brand,
 html[data-br-skin] body.br-hybrid .br-footer-brand .br-brand-picture{background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-hybrid-footer,.br-footer){background:linear-gradient(110deg,color-mix(in srgb,var(--br-accent) 45%,#171923),color-mix(in srgb,var(--br-accent-2) 50%,#171923))!important;border-color:#626c7e!important;color:#f4f5fa!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-preview-card,.br-preview-card>div,.br-hero-tiles,.br-hero-tiles>*){background:#202b3b!important;border-color:#626c7e!important;color:#f4f5fa!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid .br-preview-card svg{background:#202b3b!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid .br-preview-card svg :is([fill="white"],[fill="#fff"],[fill="#ffffff"],[fill="#fffefa"],[fill="#f8fafc"],[fill="#f0f6ff"]){fill:#34445b!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid .br-preview-card svg text{fill:#f4f5fa!important;stroke:none!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid .br-preview-controls button{background:#34445b!important;color:#fff!important;border-color:#626c7e!important}
}
@media screen {
 html[data-br-puzzle-appearance=dark] body.br-hybrid .br-outline-button{background:#34445b!important;color:#f4f5fa!important;border-color:#626c7e!important}
 html[data-br-puzzle-appearance=dark] body.br-hybrid .br-preview-card svg [stroke="#174c87"]{stroke:#9abbe0!important}
}

/* Test20: Home links and Learn panels must replace light background images too. */
@media screen {
 html[data-br-skin][data-br-puzzle-appearance=dark]{--br-page:#171f2d;--br-surface:#202b3b}
 html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-category,.br-action,.br-card,.br-card[data-category],.br-learning-stats>div,.br-walkthrough-step,.br-gif-stage,.br-trial-surface){background:var(--br-ui-soft,#202b3b)!important;color:#f4f5fa!important;border-color:#626c7e!important}
 html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .br-gradient-hero{background:linear-gradient(119deg,var(--br-ui-soft),#171f2d 54%,var(--br-ui-soft-2))!important}
 html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-ribbon,.br-pill,.br-trial-feedback){background:#34445b!important;color:#f4f5fa!important;border-color:#879bb7!important}
 html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-category,.br-action,.br-learning-viewer,.br-gradient-hero,.br-card[data-category]) :is(h1,h2,h3,p,strong,span,small,a){color:#f4f5fa!important;text-shadow:none!important;-webkit-text-stroke:0!important;-webkit-text-fill-color:currentColor!important}
 html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-lesson-scope,.br-trial-progress,.br-trial-caption){color:#d3d8e1!important}
}
@media screen {
 html[data-br-skin][data-br-puzzle-appearance=dark]{background:#171f2d!important;color-scheme:dark}
 html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-account-links,.br-appearance-panel,.br-account-settings){background:#202b3b!important;color:#f4f5fa!important;border-color:#626c7e!important}
 html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .br-compact-header :is(.br-account-links>a,.br-account-settings,.br-appearance summary,.br-appearance-panel label,.br-appearance-panel p){color:#f4f5fa!important;-webkit-text-fill-color:currentColor!important}
 html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .br-compact-header .br-account-links>a:hover{background:#34445b!important}
 html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .br-appearance-panel :is(input,select,button){background:#34445b!important;color:#f4f5fa!important;border-color:#879bb7!important}
}
@media screen {
 html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid:is(.br-minimal,[data-br-page="dashboard"]) .br-compact-header .br-account-menu>.br-account-links{background:#202b3b!important;color:#f4f5fa!important;border-color:#626c7e!important}
}

/* Test21: both marks share the selected accents; lighten for contrast in dark mode. */
.br-brand-picture .br-logo-start{stop-color:var(--br-accent,#2464ce)}
.br-brand-picture .br-logo-end{stop-color:var(--br-accent-2,#7650ce)}
html[data-br-puzzle-appearance=dark] .br-brand-picture .br-logo-start{stop-color:color-mix(in srgb,var(--br-accent,#2464ce) 65%,white)}
html[data-br-puzzle-appearance=dark] .br-brand-picture .br-logo-end{stop-color:color-mix(in srgb,var(--br-accent-2,#7650ce) 65%,white)}

/* Test22: game surrounds are transparent; semantic boards retain their own palettes. */
@media screen {
 html[data-br-skin][data-br-puzzle-appearance] body.br-hybrid :is(main,#mainContent) :is(.br-view-viewport,.game-surface,.exp-game-surface,.br-spatial-workspace,#pieceTray){background:transparent!important;box-shadow:none!important}
 body.br-hybrid :is(#hintText,#recordStatus,#resultBanner,#status,#message,.br-check-feedback):empty{display:none!important}
 body.br-hybrid [hidden]{display:none!important}
 .br-basic-player{overflow-anchor:none}
 .br-basic-player :is(button,[role=button]){touch-action:manipulation}
 .br-move-counter{margin-top:0;font-size:20px;min-width:110px;box-sizing:border-box}
 .br-move-counter small{font:600 11px/1.2 system-ui;letter-spacing:.1em}
 html[data-br-puzzle-appearance=dark] body.br-hybrid :is(.br-check-dialog,.br-check-feedback,#hintText,.exp-hint){color:#f4f5fa!important;background:#202b3b!important}
 html[data-br-puzzle-appearance=dark] .br-check-dialog p{color:#f4f5fa!important;-webkit-text-fill-color:#f4f5fa!important;text-shadow:none!important}
 html[data-br-puzzle-appearance=dark] .br-escape-board{background-color:#263342!important;background-image:linear-gradient(#70819855 1px,transparent 1px),linear-gradient(90deg,#70819855 1px,transparent 1px)!important;border-color:#8d9bb0!important}
 html[data-br-puzzle-appearance=dark] .br-wood-board{background:repeating-linear-gradient(4deg,#3c281e 0,#3c281e 4px,#493024 5px,#563a29 8px,#332219 12px)!important;border-color:#2b1c15!important;box-shadow:0 6px 0 #1e140f!important}
 html[data-br-puzzle-appearance=dark] .exp-peg.br-peg-filled::after{background:radial-gradient(ellipse at 30% 18%,#7299b6 0,#27577e 25%,#193d5c 62%,#102c45 100%)!important}
 html[data-br-puzzle-appearance=dark] .exp-peg::before{background:radial-gradient(ellipse,#140e0a 40%,#302015 60%,#75543a 65%)!important}
 html[data-br-puzzle-appearance=dark] .route-grid[data-kind=tracks]{background:#263342!important;border-color:#9aaac0!important}
 html[data-br-puzzle-appearance=dark] .route-grid[data-kind=tracks] .route-cell{background:#263342!important;color:#f4f5fa!important;border-color:#8191a6!important;opacity:1!important}
 html[data-br-puzzle-appearance=dark] .route-grid[data-kind=tracks] .route-cell.fixed{background:#354451!important}
 html[data-br-puzzle-appearance=dark] .route-grid[data-kind=tracks] :is(.route-clue,.route-row-clue,.route-corner){background:#202b3b!important;color:#f4f5fa!important}
 body.br-hybrid .br-puzzle-thumb{display:grid!important;place-items:center;padding:12px!important;box-sizing:border-box;aspect-ratio:1/1!important;height:auto!important}
 body.br-hybrid .br-puzzle-thumb svg{width:100%!important;height:100%!important;max-height:100%!important;background:transparent!important;object-fit:contain}
}

/* Separate Account and Appearance menus, with shared site typography. */
.br-appearance-menu{position:relative}.br-appearance-menu .br-appearance-panel{min-width:min(280px,85vw);padding:18px;display:grid;gap:12px}.br-appearance-menu:not([open])>.br-appearance-panel{display:none}.br-appearance-panel select{width:100%;font:inherit}.br-appearance-panel p:empty{display:none}
@media(max-width:600px){.br-appearance-menu summary{font-size:14px;padding:10px!important}.br-appearance-menu .br-appearance-panel{right:0;left:auto}}

/* Test24: settings, status cleanup and stable puzzle geometry. */
html[data-br-skin] body.br-hybrid .br-manual-backup,
html[data-br-skin] body.br-hybrid .br-hint-original{display:none!important}
html[data-br-skin] body.br-hybrid :is(#hintText,#status,#message,#recordStatus,#resultBanner,#saveStatus,#saveNote,#logicSaveNote,#wordStorage,#completion):empty{display:none!important}
html[data-br-skin] body.br-hybrid .br-hint-info{position:absolute;z-index:20;top:8px;left:8px;right:8px;max-height:calc(100% - 16px);overflow:auto;box-sizing:border-box;background:#fff8e8!important;color:#172e46!important;border:2px solid var(--br-accent);border-radius:14px;padding:14px;box-shadow:0 4px 18px #0004;font-size:16px;line-height:1.45;text-align:left}
.br-hint-info p{margin:0 0 10px}.br-hint-info label{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:14px}.br-hint-info input{width:20px!important;height:20px!important;flex:none}.br-hint-info button{min-height:40px}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .br-hint-info{background:#243247!important;color:#f4f5fa!important}
html[data-br-skin] body.br-hybrid #settings{scroll-margin-top:20px}
html[data-br-skin] body.br-hybrid #settings label{display:flex;align-items:center;gap:10px}
html[data-br-skin] body.br-hybrid #settings input[type=checkbox]{width:22px;height:22px}
html[data-br-skin] body.br-hybrid .br-basic-player .br-success-overlay{font-size:clamp(18px,5vw,28px);padding:18px;width:calc(100% - 16px);max-width:520px;box-sizing:border-box}
html[data-br-skin] body.br-hybrid .br-basic-player .br-success-overlay button{font-size:clamp(14px,4vw,20px);padding:10px;margin:5px;min-height:44px}
html[data-br-skin] body.br-hybrid .br-basic-player .br-success-stars{font-size:30px}
/* Neutral board hosts must not inherit the original Sudoku #board grid. */
html[data-br-skin] body.br-hybrid #board:has(>.spatial-grid-wrapper,>.br-escape-board,>.game-surface){display:block!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;grid-template-columns:none!important;background:transparent!important;padding:0!important}
html[data-br-skin] body.br-hybrid .br-block-fill .spatial-grid{display:grid!important;width:100%!important;max-width:100%!important;grid-template-rows:repeat(var(--grid-rows),minmax(0,1fr))!important;aspect-ratio:var(--grid-cols)/var(--grid-rows);height:auto!important;gap:0!important;background:var(--br-fill-board)!important;border:5px solid var(--br-fill-rim)!important;box-sizing:border-box}
html[data-br-skin] body.br-hybrid .br-block-fill .spatial-grid>button{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;aspect-ratio:1;padding:0!important;margin:0!important;border-radius:0!important;background:var(--br-fill-slot)!important;border-color:var(--br-fill-rim)!important}
html[data-br-skin] body.br-hybrid .br-block-fill{--br-fill-board:#d0ad81;--br-fill-rim:#937046;--br-fill-slot:#b3946c;--br-fill-piece:#e2bd8c}
html[data-br-skin] body.br-hybrid .br-block-fill .spatial-grid>button.occupied{background:repeating-linear-gradient(4deg,var(--br-fill-piece),var(--br-fill-piece) 6px,#8f623b44 7px,transparent 8px),var(--br-fill-piece)!important}
html[data-br-skin] body.br-hybrid .br-block-fill .piece-pick{color:var(--br-fill-piece)!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .br-block-fill{--br-fill-board:#513a2c;--br-fill-rim:#241910;--br-fill-slot:#35261e;--br-fill-piece:#956b45}
html[data-br-skin] body.br-hybrid .br-escape-block{border:1px solid #375371!important;background:linear-gradient(135deg,#89a2b7 0%,#385c7b 30%,#6787a1 48%,#29455d 53%,#496a84 100%)!important;box-shadow:inset 0 1px 3px #e4efff77,inset 0 -2px 3px #0005!important}
html[data-br-skin] body.br-hybrid .br-escape-block.gold{background:linear-gradient(135deg,#f7dc91,#b08330 32%,#daba64 49%,#917024 53%,#d1a64c)!important;border-color:#8b6827!important}
html[data-br-skin] body.br-hybrid #logicBoard .logic-grid{display:grid!important;width:100%!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr));aspect-ratio:1;height:auto!important;box-sizing:border-box}
html[data-br-skin] body.br-hybrid #logicBoard .logic-cell{width:100%!important;height:100%!important;min-height:0!important;min-width:0!important;aspect-ratio:1;padding:0!important;box-sizing:border-box}
html[data-br-skin] body.br-hybrid .araf-grid{width:100%;grid-template-columns:repeat(4,minmax(0,1fr))!important}
html[data-br-skin] body.br-hybrid .araf-cell{position:relative;width:100%!important;height:auto!important;aspect-ratio:1;min-width:0!important;padding:4px!important}
html[data-br-skin] body.br-hybrid .araf-cell small:not(.araf-empty-clue){display:block!important;visibility:visible!important;position:absolute;top:5px;right:5px;font-size:clamp(18px,5vw,28px)!important;line-height:1.2!important;height:auto!important;color:#18243a!important;background:#fff0b8!important;padding:2px}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid :is(.logic-cell,.banana-cell,.araf-cell,.brain-grid button,.brain-grid .preview-tile,.study-values span,.br-review-token){color:#f4f5fa!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid :is(.brain-grid button,.brain-grid .preview-tile,.study-values span,.br-review-token){background:#304359!important;border-color:#8599af!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .brain-grid :is(.painted,.matched){background:#28644a!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .brain-grid .path{background:#4c526f!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .brain-grid .revealed{background:#61532b!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid :is(.study-string,.preview-note,.round-instructions){color:#f4f5fa!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .banana-cell.white{background:#b29a36!important;color:#fff!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .banana-cell.black{background:#4a2d21!important;color:#fff!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #bananaGrid{background:transparent!important}
html[data-br-skin] body.br-hybrid .br-memory-review{padding:12px!important;max-width:100%;box-sizing:border-box}
html[data-br-skin] body.br-hybrid .br-review-items{width:100%;flex-wrap:wrap;justify-content:center}
html[data-br-skin] body.br-hybrid .br-review-token{min-width:0;padding:3px;overflow-wrap:anywhere;font-size:clamp(13px,3.8vw,18px)}
html[data-br-skin] body.br-hybrid .br-memory-review .brain-grid>div:after{width:auto!important;height:auto!important;border-radius:0!important;inset:0!important;display:grid;place-items:center;text-shadow:none!important;background:transparent!important;font-weight:900!important}
html[data-br-skin] body.br-hybrid .brain-grid .br-memory-shape{width:85%;height:85%;max-width:none;max-height:none;margin:auto}
html[data-br-skin] body.br-hybrid .game-surface>.round-instructions{display:block;font-size:16px;line-height:1.4}
/* An emptied legacy configuration panel must not leave a white capsule. */
.game-config:not(:has(button:not([hidden]):not(.br-retired-control),label:not([hidden]):not(.br-retired-control),input:not([hidden]),select:not([hidden]):not(.br-retired-control))){display:none!important}
.game-config:has(>label[hidden]):not(:has(>button)){background:transparent!important;border:0!important;padding:0!important;min-height:0!important}
html[data-br-puzzle-appearance=dark] #entry,html[data-br-puzzle-appearance=dark] #entry input,html[data-br-puzzle-appearance=dark] .cw-clue-column{background:#25354b!important;color:#f4f6fa!important}
/* Native region boards use separate readable light/dark surfaces. */
html[data-br-puzzle-appearance=dark]{--br-room-border:#c2cede}
html[data-br-puzzle-appearance=dark] body:is([data-br-page=lits],[data-br-page=magnets],[data-br-page=norinori],[data-br-page=logicgrid]) #grid{background:#172534!important;color:#f4f6fa!important}
html[data-br-puzzle-appearance=dark] body:is([data-br-page=lits],[data-br-page=magnets],[data-br-page=norinori],[data-br-page=logicgrid]) #grid .cell{background:#465568!important;color:#fff!important}
html[data-br-puzzle-appearance=dark] body:is([data-br-page=lits],[data-br-page=norinori]) #grid .cell.shaded{background:#090e16!important;color:#fff!important}
html[data-br-puzzle-appearance=dark] #grid :is(.clue,.label){color:#f4f6fa!important;background:transparent!important}
html[data-br-puzzle-appearance=dark] .lg-pair{background:#25354b!important;color:#f4f6fa!important}
html[data-br-puzzle-appearance=dark] .logic-cell{color:#fff!important;border-color:#b0bfd1!important}
html[data-br-puzzle-appearance=dark] .logic-cell.br-cave-sight{box-shadow:inset 0 0 0 4px #8ad5ac!important}
.dosun-cell svg{width:85%;height:85%;display:block;margin:auto;pointer-events:none}
.double-cell.white{background:#f2f0e8!important;color:#202838!important}
.double-cell.gray{background:#738296!important;color:white!important}
html[data-br-puzzle-appearance=dark] .double-cell.white{background:#b7c2cf!important;color:#121c2b!important}
html[data-br-puzzle-appearance=dark] .double-cell.gray{background:#354458!important;color:#fff!important}
html[data-br-puzzle-appearance=dark] .dosun-cell{background:#334458!important;color:#fff!important}
#doublePalette[hidden]{display:none!important}
body:is([data-br-page=lits],[data-br-page=magnets],[data-br-page=norinori],[data-br-page=logicgrid]) #session>.toolbar>#level{display:none!important}
[data-memory-kind=pattern] .br-pattern-correct,[data-memory-kind=ultimate] .br-pattern-correct{color:#29ad6d!important;font-size:clamp(24px,8vw,60px)!important;line-height:1}
.brain-grid button:not(.revealed):not(.matched)[aria-label$=", hidden"]{background:repeating-linear-gradient(45deg,#32455c 0 8px,#26384d 8px 16px)!important;color:#d4e5ef!important}
.study-string{overflow-wrap:anywhere;word-break:break-word;max-width:100%;line-height:1.4}
.br-memory-shape{flex-shrink:0}
/* Word players share a readable palette in dark mode, including editable letters. */
html[data-br-puzzle-appearance=dark] :is(.word-cell,.word-char,.word-quote-char,.word-droplet,.word-clue-row,.word-letter){background:#34465d!important;color:#f5f7fc!important;border-color:#9cacc3!important}
html[data-br-puzzle-appearance=dark] :is(.word-cell,.word-char,.word-quote-char,.word-clue-row) :is(input,small,strong){background:transparent!important;color:#f5f7fc!important}
html[data-br-puzzle-appearance=dark] .word-block{background:#080e18!important;border-color:#080e18!important}
html[data-br-puzzle-appearance=dark] :is(.word-cell,.word-char)[aria-pressed=true]{background:#465c79!important;outline:2px solid #a7c5f3}
html[data-br-puzzle-appearance=dark] :is(.word-notice,.word-clue-row small){color:#e0e8f7!important}
.word-char.fixed{background:transparent!important}
#wordMoves:empty,#wordBest{display:none!important}
[data-memory-phase=completed] .br-memory-review{margin:8px 0;padding:12px!important}
[data-memory-phase=completed] .round-result{padding:12px!important;margin-bottom:12px!important}
[data-memory-phase=completed] h3{margin:8px 0!important;font-size:1.3rem!important}
[data-memory-phase=completed] .br-review-items{display:flex;flex-wrap:wrap;max-width:100%;width:auto;gap:4px}
[data-memory-phase=completed] .br-review-token{min-width:24px;max-width:100%;padding:5px;overflow-wrap:anywhere}

/* Test24E: native board surfaces retain their semantic colors in dark mode. */
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #board svg[aria-label="Aquarium board"],
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #board svg[aria-label="Renban Sudoku board"]{background:#26384b!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #board svg[aria-label="Aquarium board"] text,
html[data-br-skin][data-br-puzzle-appearance=dark] #board svg[aria-label="Renban Sudoku board"] text{fill:#f5f7fc!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #board svg[aria-label="Aquarium board"] line{stroke:#aebed0!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #board svg[aria-label="Aquarium board"] rect{fill:#337ca8!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #board svg[aria-label="Renban Sudoku board"] line[stroke-width="10"]{stroke:#736787!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #board svg[aria-label="Renban Sudoku board"] line:not([stroke-width="10"]){stroke:#aebed0!important}
html[data-br-skin][data-br-puzzle-appearance=dark] .jp-board-wrap{background:transparent!important;border-color:#74869c!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #jpBoard .jp-cell{background:#304359!important;color:#f5f7fc!important;border-color:#8599af!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #jpBoard .jp-cell.fixed{background:#454765!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #jpBoard .jp-cell.selected{box-shadow:inset 0 0 0 3px #c7afff!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #jpBoard .jp-clue{color:#f5f7fc!important}
body.br-hybrid[data-br-page="japanese-sums"] #jpProgress,
body.br-hybrid[data-br-page="japanese-sums"] #jpBest{display:none!important}

body.br-hybrid[data-br-page="japanese-sums"] #jpSelected,
body.br-hybrid[data-br-page="japanese-sums"] .jp-help{display:none!important}
body.br-hybrid[data-br-page="japanese-sums"] #jpStorage:empty,
body.br-hybrid[data-br-page="japanese-sums"] #jpMessage:empty{display:none!important}
body.br-hybrid[data-br-page="japanese-sums"] #jpKeypad{justify-content:center;margin:10px auto}

html[data-br-skin][data-br-puzzle-appearance=dark] #jpBoard .jp-cell{--br-control-bg:#304359;--br-control-fg:#f5f7fc;--br-accent:#8599af}
html[data-br-skin][data-br-puzzle-appearance=dark] #jpBoard .jp-cell.fixed{--br-control-bg:#454765}

/* Shading boards: control styling must not erase dark/light puzzle states. */
html[data-br-skin] #logicBoard .logic-black{--br-control-bg:#242047;--br-control-fg:#fff}
html[data-br-skin] #logicBoard .logic-white{--br-control-bg:#fff;--br-control-fg:#25305c}
html[data-br-skin] #logicBoard .logic-fixed{--br-control-bg:#ffe9bd;--br-control-fg:#382b55}
html[data-br-skin] #logicBoard .br-kurotto-clue{display:grid;place-items:center;width:1.8em;height:1.8em;border:2px solid currentColor;border-radius:50%;font-size:1.1em;line-height:1;background:transparent}
html[data-br-skin][data-br-puzzle-appearance=dark] #logicBoard .logic-grid{background:transparent!important;border-color:#8599af!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #logicBoard .logic-black{--br-control-bg:#080f19;--br-control-fg:#f5f7fc;background:#080f19!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #logicBoard .logic-white,
html[data-br-skin][data-br-puzzle-appearance=dark] #logicBoard .logic-unknown{--br-control-bg:#52677e;--br-control-fg:#fff;background:#52677e!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #logicBoard .logic-fixed{--br-control-bg:#52677e;--br-control-fg:#fff;background:#52677e!important}
html[data-br-skin][data-br-puzzle-appearance=dark] #logicBoard .br-cave-sight{--br-control-bg:#32695a;background:#32695a!important}

html[data-br-skin] #logicBoard .logic-cell.logic-fixed{opacity:1!important;filter:none!important}
html[data-br-skin] #logicBoard .br-kurotto-clue{font-size:clamp(18px,4vw,28px)}

html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #wordBoard input.br-word-native{background:transparent!important;color:#f5f7fc!important;box-shadow:none!important;border:0!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #wordBoard input.br-word-native:focus-visible{outline:2px solid #c7afff;outline-offset:-2px}

/* Do not leave an empty colored strip after obsolete counters are hidden. */
html[data-br-skin] body.br-hybrid .session-strip:has(>#progress:empty):has(>#moves[hidden]):has(>#records[hidden]){display:none!important}

/* Araf clues remain legible independently of the selected region letter. */
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #arafGrid .araf-cell{background:#26384b!important;border-color:#94a9bf!important;color:#f5f7fc!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #arafGrid .araf-cell.marked{background:#36594f!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #arafGrid .araf-cell small:not(.araf-empty-clue){background:#54472b!important;color:#fff2bd!important}

/* Memory pictures fill their cards without changing the grid's track sizing. */
html[data-br-skin] body.br-hybrid .brain-grid> :is(button,.preview-tile){position:relative}
html[data-br-skin] body.br-hybrid .brain-grid> :is(button,.preview-tile)>.br-memory-shape{position:absolute;inset:7.5%;width:85%;height:85%;margin:0}
html[data-br-skin] body.br-hybrid :is(.game-surface,.game-input,.br-review-sequence,.study-values,.token-tray){box-sizing:border-box;max-width:100%;min-width:0}
html[data-br-skin] body.br-hybrid .token-tray button{max-width:100%;overflow-wrap:anywhere;white-space:normal}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid :is(.token-tray button,.game-input){background:#304359!important;color:#f5f7fc!important;border-color:#8599af!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .token-tray button[aria-pressed=true]{background:#365f51!important;border-color:#9de5bd!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .study-string{color:#f5f7fc!important}

/* Test24 K: distinct Choco Banana states with readable clue contrast. */
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #bananaGrid .banana-cell.white{background:#b29a36!important;color:#171d26!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #bananaGrid .banana-cell.black{background:#4a2d21!important;color:#fff3d5!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #bananaGrid .banana-cell:not(.white):not(.black){background:#29384d!important;color:#f5f7fc!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #bananaGrid .banana-clue{color:inherit!important;background:transparent!important;transform:none!important}

/* Test25 J: stable native-cell geometry and distinct dark-mode rooms. */
.dosun-grid{grid-auto-rows:minmax(70px,auto);align-items:stretch}
.dosun-cell{box-sizing:border-box;min-width:0;min-height:70px;height:100%;padding:4px;overflow:hidden}
.dosun-cell svg{flex-shrink:0;max-height:52px}
.double-cell,.sashi-cell{position:relative;box-sizing:border-box;flex-shrink:0;padding:3px}
.double-cell strong,.sashi-cell strong{position:absolute;inset:0;display:grid;place-items:center;margin:0;line-height:1}
.double-cell small,.sashi-cell small{position:absolute;top:2px;right:3px;line-height:1.1;padding:1px 3px;z-index:1}
.sashi-cell small{font-size:1rem}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .dosun-grid{--br-room-border:#b8c9de}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .dosun-cell.room-a{background:#293949!important;color:#f5f7fb!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .dosun-cell.room-b{background:#514837!important;color:#fff3d2!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .sashi-cell{background:#26384a!important;color:#f5f7fb!important;border-color:#94abc3!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .sashi-cell.marked{background:#364c60!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .sashi-cell small{background:#554b30!important;color:#ffedb2!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .double-cell.gray{background:#35465b!important;color:#f5f7fb!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .double-cell.white{background:#7d8994!important;color:#101a25!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .double-cell small{background:#d6bd7b!important;color:#172333!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .exp-pipe{background:#233547!important;color:#c8ecfa!important;border-color:#8095ab!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid .br-picture-tile.exp-gap{background:#14202e!important;border-color:#6d8199!important}
.br-abc-board .exp-cell,.br-abc-board .exp-count{display:grid;place-items:center;min-width:0;text-align:center}

/* Test25 L: native Minesweeper uses square, compact cells and readable clue digits. */
#mineBoard{min-width:0!important;margin-inline:auto;align-items:stretch;justify-items:stretch}
#mineBoard button{width:100%;height:auto;min-width:0;min-height:0;box-sizing:border-box;line-height:1;aspect-ratio:1}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #mineBoard button{background:#3d526b!important;color:#f5f7fc!important;border-color:#91a4bb!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #mineBoard .mine-open{background:#202f40!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #mineBoard .mine-hit{background:#62313c!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #mineBoard .mine-open[data-adjacent="1"]{color:#9ccaff!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #mineBoard .mine-open[data-adjacent="2"]{color:#8de0a7!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #mineBoard .mine-open[data-adjacent="3"]{color:#ffb0b2!important}
html[data-br-skin][data-br-puzzle-appearance=dark] body.br-hybrid #mineBoard .mine-open[data-adjacent="4"]{color:#cbb7ff!important}

/* Test25 M: native verified and route boards. */
html[data-br-puzzle-appearance=dark] body[data-verified-kind=tapaLoop] #verifiedBoard .br-cell{background:#50647e!important;color:#f4f6fa!important;border-color:#a6b8d0!important}
html[data-br-puzzle-appearance=dark] body[data-verified-kind=tapaLoop] #verifiedBoard .br-shaded{background:#0b1421!important}
html[data-br-puzzle-appearance=dark] body[data-verified-kind=tapaLoop] #verifiedBoard .br-given{background:#2d3e55!important;color:#fff!important;opacity:1!important}
html[data-br-puzzle-appearance=dark] body[data-verified-kind=tapaLoop] #verifiedBoard .br-target{outline:3px solid #8df0ae!important;outline-offset:-3px}
html[data-br-puzzle-appearance=dark] .route-grid[data-kind=signpost] .route-cell{background:#34465f!important;color:#f4f6fa!important;border-color:#99aec8!important}
html[data-br-puzzle-appearance=dark] .route-grid[data-kind=signpost] .route-cell.visited{background:#466b6a!important}
html[data-br-puzzle-appearance=dark] .route-grid[data-kind=signpost] .route-cell.current{outline:3px solid #94e4c4!important;outline-offset:-3px}
html[data-br-puzzle-appearance=dark] .route-grid[data-kind=signpost] .route-cell :is(small,.route-symbol){color:#f4f6fa!important}

/* Test25 N: preserve actual game information; hide only truly empty status shells. */
body.br-hybrid :is(#status,#roundFeedback,#recordStatus,#saveNote,#hintText,#selection,#completion):empty{display:none!important;padding:0!important;margin:0!important;border:0!important;min-height:0!important}
html[data-br-puzzle-appearance=dark] #psBoard{background:#1b2a3d!important;--br-ps-wall:#cad8e9;--br-ps-grid:#63778f;--br-ps-unknown:#dcaf74}
html[data-br-puzzle-appearance=dark] #psBoard .ps-cell{background:#34465c!important;color:#f5f7fb!important;opacity:1!important}
html[data-br-puzzle-appearance=dark] #psBoard .ps-cell.selected{background:#506b8d!important}
html[data-br-puzzle-appearance=dark] .br-picture-tile .br-tile-number{background:#101b2e!important;color:#fff!important;text-shadow:none!important;border:1px solid #aabbd3;border-radius:4px;padding:2px 5px;opacity:1!important}
html[data-br-puzzle-appearance=dark] [data-br-preview-family=expansion-peg] svg rect[fill="#b57c45"]{fill:#493021;stroke:#291b14}
html[data-br-puzzle-appearance=dark] [data-br-preview-family=expansion-peg] svg path[stroke="#e1b67c"]{stroke:#795336}
html[data-br-puzzle-appearance=dark] [data-br-preview-family=expansion-peg] svg circle[fill="#4285ba"],html[data-br-puzzle-appearance=dark] [data-br-preview-family=expansion-peg] svg circle[fill="#ca5651"]{fill:#27577e}

@media screen {html[data-br-puzzle-appearance=dark] .br-puzzle-thumb{--br-thumb-ink:#f1f5fb;--br-thumb-line:#b8c9de}}

/* brainistry-puzzle-appearance.css */
/* Screen-only, opt-in puzzle appearance. Semantic state colors are not inverted. */
@media screen {
html[data-br-puzzle-appearance="dark"][data-br-puzzle-player="true"] :is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"],#board:has(.br-yin-board)){background-color:#172234!important;border-color:#687991!important}
html[data-br-puzzle-appearance="dark"] .br-yin-board .exp-cell{background:#25354b!important;border-color:#708198!important}
html[data-br-puzzle-appearance="dark"] .br-yin-board .exp-unknown .br-yin-stone{border-color:#b2c3d9}
/* Native numeric entries live inside a shadow root. Only Sudoku families opt in. */
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) {--br-sudoku-paper:#202e43;--br-sudoku-ink:#f0f4fb;--br-sudoku-line:#a1b1c6;--br-sudoku-entry:#9ccfff;--br-sudoku-peer:#324963;color:var(--br-sudoku-ink)!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) :is(table,td){background-color:var(--br-sudoku-paper);color:var(--br-sudoku-ink);border-color:var(--br-sudoku-line)!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) td.br-peer{background-color:var(--br-sudoku-peer,#e0efff)!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) .br-native-cell{color:var(--br-sudoku-entry,#1555a2)!important;-webkit-text-fill-color:var(--br-sudoku-entry,#1555a2)!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) .br-native-notes{color:var(--br-sudoku-entry,#1555a2)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) svg.variant-sudoku-svg{background-color:var(--br-sudoku-paper)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) svg.variant-sudoku-svg text{fill:var(--br-sudoku-ink)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) svg.variant-sudoku-svg rect[fill="white"],:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) svg.variant-sudoku-svg rect[fill="#fff"]{fill:var(--br-sudoku-paper)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) svg.variant-sudoku-svg :is(line,path)[stroke="#111"],:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) svg.variant-sudoku-svg rect[stroke="#111"]{stroke:var(--br-sudoku-line)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) .br-cell-input:not(.br-native-cell){color:var(--br-sudoku-ink)!important}
:host([data-br-puzzle-appearance="dark"][data-br-numeric-family="thermo"]) svg :is(polyline,circle){stroke:#53657a}
:host([data-br-puzzle-appearance="dark"][data-br-numeric-family="thermo"]) svg circle{fill:#53657a}
:host([data-br-puzzle-appearance="dark"][data-br-numeric-family="kropki"]) svg circle{stroke:#c1cedf;stroke-width:2.5}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) .br-peers rect{fill:#41638a;opacity:.2}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="sudoku"],[data-br-numeric-family="mini"],[data-br-numeric-family="diagonal"],[data-br-numeric-family="irregular"],[data-br-numeric-family="killer"],[data-br-numeric-family="thermo"],[data-br-numeric-family="arrow"],[data-br-numeric-family="kropki"],[data-br-numeric-family="sandwich"])) .br-svg-cell rect[fill="#d5eaff77"]{fill:#41638a44}
}

/* Work pass 10: number-entry boards; no inversion of semantic game colors. */
@media screen {
html[data-br-puzzle-appearance="dark"][data-br-puzzle-player="true"] :is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"]){background-color:#202e43!important;border-color:#687991!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])){--br-number-paper:#202e43;--br-number-ink:#f0f4fb;--br-number-entry:#9ccfff;--br-number-line:#a1b1c6;background:#202e43!important;color:#f0f4fb!important;border-color:#687991!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) :is(table,td){background-color:var(--br-number-paper)!important;color:var(--br-number-ink)!important;border-color:var(--br-number-line)!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) td.br-peer{background-color:#324963!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) .br-cell-input:not(.br-native-cell){color:var(--br-number-ink)!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) .br-native-cell{color:var(--br-number-entry)!important;-webkit-text-fill-color:var(--br-number-entry)!important;caret-color:var(--br-number-entry)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) .br-native-notes{color:var(--br-number-entry)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) :is(.cage,.magic-target,.missing-rule,.missing-number-line){color:var(--br-number-ink)!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) .br-native-cell:is(:focus,.selected){background:#9ccfff22!important;outline-color:#9ccfff!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) .br-cell-input:is(:focus-visible,.selected){outline-color:#9ccfff!important}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) svg{background-color:var(--br-number-paper)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) svg text{fill:var(--br-number-ink)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) svg rect:is([fill="white"],[fill="#fff"]){fill:var(--br-number-paper)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) svg :is(line,path,polyline,rect):is([stroke="#111"],[stroke="#000"],[stroke="black"],[stroke="#222"],[stroke="#17324f"]){stroke:var(--br-number-line)}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) svg rect:is([stroke="#777"],[stroke="#999"]){stroke:#687991}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) .br-peers rect{fill:#9ccfff;opacity:.15}
:host([data-br-puzzle-appearance="dark"]:is([data-br-numeric-family="kenken"],[data-br-numeric-family="hidato"],[data-br-numeric-family="takuzu"],[data-br-numeric-family="magicsquare"],[data-br-numeric-family="futoshiki"],[data-br-numeric-family="skyscrapers"],[data-br-numeric-family="fillomino"],[data-br-numeric-family="kakuro"],[data-br-numeric-family="missingnumber"],[data-br-numeric-family="suguru"],[data-br-numeric-family="ripple"])) .br-svg-cell rect[fill="#d5eaff77"]{fill:#9ccfff22}
:host([data-br-puzzle-appearance="dark"][data-br-numeric-family="kakuro"]) .kakuro td.block{background:#080f1b!important}
:host([data-br-puzzle-appearance="dark"][data-br-numeric-family="kakuro"]) .kakuro td.clue{background:linear-gradient(to top right,transparent 49%,#a1b1c6 49.5%,#a1b1c6 50.5%,transparent 51%),#34445b!important;color:#f0f4fb!important}
:host([data-br-puzzle-appearance="dark"][data-br-numeric-family="kakuro"]) .kakuro .clue span{color:#f0f4fb!important}
}

/* Test25 D: hint emphasis without moving or resizing cells. */
@keyframes br-hint-border{0%,100%{outline-color:#36c779}50%{outline-color:#ffe078}}
.br-hint-cell,.br-hint-entry{outline:3px solid #36c779!important;outline-offset:-3px!important;animation:br-hint-border 1.2s ease-in-out 3}
@media(prefers-reduced-motion:reduce){.br-hint-cell,.br-hint-entry{animation:none}}

:host([data-br-numeric-family=ripple][data-br-puzzle-appearance=dark]) .br-ripple-wall{stroke:#c0d3ec!important}

/* Retained HTML Ripple renderer uses the same public room boundaries. */
:host([data-br-numeric-family=ripple]) .rpcell[style*="border-top-width:3px"]{border-top-width:4px!important}
:host([data-br-numeric-family=ripple]) .rpcell[style*="border-right-width:3px"]{border-right-width:4px!important}
:host([data-br-numeric-family=ripple]) .rpcell[style*="border-bottom-width:3px"]{border-bottom-width:4px!important}
:host([data-br-numeric-family=ripple]) .rpcell[style*="border-left-width:3px"]{border-left-width:4px!important}

/* Pencil tips rotate without changing their type or the surrounding board. */
.br-pencil-cell{position:relative;min-width:0;aspect-ratio:1}
.br-pencil-cell>.br-cell{width:100%;height:100%;margin:0!important}
.br-pencil-cell>.br-pencil-rotate{position:absolute;right:1px;top:1px;width:24px;height:24px;min-width:24px;min-height:24px;padding:0!important;margin:0!important;line-height:1;border-radius:6px;font-size:19px;background:var(--br-surface,#f6f1e6);color:var(--br-text,#192f40);border:1px solid currentColor;z-index:2}

/* Renban has one aligned 9×9 surface; translucent input states keep full lines visible. */
#board[data-puzzle-family=renban]{width:min(100%,560px)!important;aspect-ratio:1;background:var(--br-surface,#fff)!important;overflow:visible}
#board[data-puzzle-family=renban]>.cells{inset:0!important;width:100%!important;height:100%!important}
#board[data-puzzle-family=renban]>.cells>*{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;min-width:0;min-height:0;line-height:1;font-size:clamp(17px,4.5vw,27px)}
#board[data-puzzle-family=renban]>.cells>*:focus{background:#9378b222!important}
#board[data-puzzle-family=renban] .br-renban-line{stroke:#b6adca!important;stroke-width:10!important;opacity:1!important}
#board[data-puzzle-family=renban] .br-renban-grid{stroke:#607187!important}
#board[data-puzzle-family=renban] .br-renban-box{stroke:#243d59!important;stroke-width:2.5!important}
html[data-br-puzzle-appearance="dark"] #board[data-puzzle-family=renban] .br-renban-line{stroke:#746184!important}
html[data-br-puzzle-appearance="dark"] #board[data-puzzle-family=renban] .br-renban-grid{stroke:#687b91!important}
html[data-br-puzzle-appearance="dark"] #board[data-puzzle-family=renban] .br-renban-box{stroke:#c1cbd7!important}
html[data-br-puzzle-appearance="dark"] #board[data-puzzle-family=renban] .br-renban-given{fill:#f2f5fa!important}

html[data-br-puzzle-appearance="dark"] #board[data-puzzle-family=renban]{background:#202e43!important}
html[data-br-puzzle-appearance="dark"] #board[data-puzzle-family=renban]>.cells>.br-native-number{color:#b9d8ff!important;-webkit-text-fill-color:#b9d8ff!important}

/* brainistry-puzzle-view.css */
@media screen {
 .br-puzzle-view{position:relative;width:100%;max-width:620px;min-width:0;margin:0 auto;box-sizing:border-box}
 .br-view-tools{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;margin:8px 0}
 .br-view-tools .br-view-button{min-width:44px;min-height:44px;margin:0;padding:8px 12px;font:inherit;touch-action:manipulation}
 .br-view-tools .br-view-button[aria-pressed="true"]{outline:3px solid var(--br-accent,#1555a2);outline-offset:2px}
 .br-view-percent{min-width:4ch;text-align:center;font-variant-numeric:tabular-nums}
 .br-view-help{font:14px/1.4 Arial,sans-serif;text-align:center;margin:6px 0 10px}
 .br-view-viewport{position:relative;width:100%;max-width:100%;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;border-radius:8px}
 .br-view-viewport:focus-visible{outline:3px solid var(--br-accent,#1555a2);outline-offset:2px}
 .br-view-stage{position:relative;min-width:100%;overflow:hidden}
 .br-view-content .br-grid-scroll,.br-view-content .route-board-container,.br-view-content .spatial-grid-wrapper,.br-view-content .word-scroll,.br-view-content .exp-grid-wrap{overflow:visible;max-width:none}
 .br-view-content .spatial-grid{overflow:visible;max-width:none}
 .br-view-content{position:absolute;left:0;top:0;transform-origin:0 0}
 .br-puzzle-view[data-moving="true"] .br-view-viewport{touch-action:none;cursor:grab;user-select:none}
 .br-puzzle-view[data-moving="true"] .br-view-viewport:active{cursor:grabbing}
 .br-puzzle-view[data-moving="true"] .br-view-content{pointer-events:none}
}
@media print {
 .br-view-tools,.br-view-help{display:none!important}
 .br-view-viewport,.br-view-stage,.br-view-content{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;transform:none!important}
}

/* brainistry-refresh50.css */
.br-run-start[hidden]{display:none!important}
/* Shared presentation; never recolor semantic puzzle cells. */
@media screen {
.br-pagehead h1,main>h1,.br-player-basics,.br-player-title,.br-player-difficulty{text-align:center!important}
.br-customize>h2{white-space:nowrap;font-size:clamp(1rem,4.4vw,1.6rem);text-align:center}
#puzzleResults.ease-results{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
@media(min-width:1000px){#puzzleResults.ease-results{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
#discovery .ease-filters{display:flex;flex-wrap:wrap;justify-content:center;align-items:end;gap:16px}
#discovery .ease-filters>label{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;min-width:0}
#discovery .ease-filters>label:first-child{flex-basis:100%}
#puzzleSearch{width:min(100%,420px);box-sizing:border-box;text-align:center}
#puzzleCategory,#puzzleSort{text-align:center;max-width:100%}
#discoveryStatus{text-align:center}
#puzzleResults .ease-choice{min-width:0;overflow:hidden;border-radius:18px;padding:12px;background:var(--br-panel,#fff);box-shadow:0 7px 22px #14233b12;border:1px solid #889eb344}
#puzzleResults .ease-puzzle-name{font-size:clamp(.85rem,2.9vw,1.1rem);overflow-wrap:anywhere}
#puzzleResults .br-puzzle-thumb{width:100%!important;max-width:none!important;aspect-ratio:1;box-sizing:border-box;padding:12px;border-radius:14px;background:linear-gradient(145deg,#8cd7ff18,#b79be920);margin:8px auto!important}
.br-correct-heading{display:flex;align-items:center;justify-content:center;gap:14px;width:100%}
.br-correct-title{font-size:clamp(1.5rem,5vw,2.4rem);font-weight:800;text-align:center}
.br-correct-heading .br-success-stars{color:#ffcf55;font-size:2.1rem;text-shadow:0 2px #9b6518,0 0 12px #f3b63e66;margin:0;filter:drop-shadow(0 2px 2px #0004)}
.br-success-overlay{align-items:center;text-align:center}
.br-success-overlay>button{display:block;margin:8px auto!important;align-self:center}
#rankFamily{width:100%;min-width:210px;max-height:210px;overflow:auto}
#rankSearch{width:100%;box-sizing:border-box;margin-bottom:6px}
.br-run-start{min-height:280px;display:grid;place-content:center;text-align:center;border:1px solid #8796aa;border-radius:18px;padding:24px;background:var(--br-panel,#edf2fa)}
.br-run-start p{max-width:36ch}
html[data-br-puzzle-appearance="dark"]{color-scheme:dark}
html[data-br-puzzle-appearance="dark"] body.br-hybrid{background:#101927!important;color:#e9f0fb!important}
html[data-br-puzzle-appearance="dark"] :is(.br-rank-panel,.table-scroll,.br-rank-panel table,.br-rank-panel th,.br-rank-panel td,.br-run-start){background:#192638!important;color:#e9f0fb!important;border-color:#50627b!important}
html[data-br-puzzle-appearance="dark"] :is(body[data-br-page="privacy"],body[data-br-page="terms"]) main{background:#192638!important;color:#e9f0fb!important;border-radius:18px;padding:24px}
html[data-br-puzzle-appearance="dark"] :is(#rankingPanel input,#rankingPanel select,#clear,#qc){background:#25364e!important;color:#f2f6ff!important;border-color:#7088a6!important}
html[data-br-puzzle-appearance="dark"] :is(body[data-br-page="privacy"],body[data-br-page="terms"]) main a{color:#9ed9ff!important}
html[data-br-puzzle-appearance="dark"] #puzzleResults .ease-choice{background:#1c2a3d!important;border-color:#4a5e79!important}
.br-rampage-description{margin:0 0 18px;font-size:.94rem}
}

.br-success-stars svg{display:block;width:44px;height:50px}.br-correct-heading .br-success-stars{letter-spacing:0}
/* Timed run starts cover clues without detaching native boards or input listeners. */
.br-timed-stage{position:relative;min-height:240px}
.br-timed-start{position:absolute;z-index:25;inset:0;background:#edf3fb;color:#17273d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;text-align:center;border:1px solid #748da9;border-radius:16px;box-sizing:border-box}
.br-timed-start p{max-width:34ch;margin:0}.br-timed-start button{min-width:140px;min-height:48px}
.br-timed-clock{display:block;text-align:center;font-size:1.15rem;font-variant-numeric:tabular-nums;margin:10px}
html[data-br-puzzle-appearance=dark] .br-timed-start{background:#182638;color:#eff5ff}
.br-timed-waiting .br-timed-stage>:not(.br-timed-start){visibility:hidden}

.br-timed-active :is(#timer,#time,#mineTime,.br-digital-clock){display:none!important}
html[data-br-reduced-motion=on] *,html[data-br-reduced-motion=on] *::before,html[data-br-reduced-motion=on] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-br-large-controls=on] :is(.br-puzzle-actions,.br-generate-row,.br-check-row,.br-view-tools,.br-success-overlay,.br-timed-start) button{min-height:52px!important;font-size:1.05rem!important;padding:12px 18px!important}

/* brainistry-refresh60.css */
/* Brainistry Expansion 60: Play presentation only. No grader or save-state changes. */
@media screen {
  :root[data-br-skin="harvest"] { --br-control-bg:#713614; --br-control-fg:#fff7e5; --br-control-line:#d18b4c; }
  :root[data-br-skin="harvest"] body.br-hybrid {
    background:radial-gradient(1200px 520px at 50% 0%,#d4833c15,transparent 72%),var(--br-page,#fff6e9)!important;
  }
  html[data-br-skin="harvest"] body.br-hybrid .br-site-header {
    background:linear-gradient(118deg,#502713 0%,#98421d 51%,#c36c29 100%)!important;
    border-bottom-color:#d9a46075!important;
  }
  html[data-br-skin="harvest"] body.br-hybrid .br-button,
  html[data-br-skin="harvest"] body.br-hybrid .primary {
    background:linear-gradient(120deg,#7e3618,#ba6429)!important;color:#fff8eb!important;
  }
  html[data-br-skin="harvest"] body.br-hybrid .br-card,
  html[data-br-skin="harvest"] body.br-hybrid .ease-panel {
    background:linear-gradient(165deg,#fffaf2,#fff1dd)!important;
  }
  /* The header/footer visually dissolve into the page without changing positioning. */
  body.br-hybrid .br-site-header { position:relative;isolation:isolate; }
  body.br-hybrid .br-site-header:after {
    content:"";position:absolute;left:0;right:0;bottom:-16px;height:16px;
    background:linear-gradient(to bottom,color-mix(in srgb,var(--br-accent,#1d5487) 17%,transparent),transparent);
    pointer-events:none;z-index:-1;
  }
  body.br-hybrid :is(.br-site-footer,.br-hybrid-footer) { position:relative;isolation:isolate; }
  body.br-hybrid :is(.br-site-footer,.br-hybrid-footer):before {
    content:"";position:absolute;left:0;right:0;top:-22px;height:22px;
    background:linear-gradient(to top,color-mix(in srgb,var(--br-accent,#1d5487) 12%,transparent),transparent);
    pointer-events:none;z-index:-1;
  }
  /* Consistent illustrated-card framing. Each frame retains the real 108 native preview SVGs. */
  :is(#puzzleResults,#puzzleFunResults) {gap:clamp(12px,2vw,20px)!important;}
  :is(#puzzleResults,#puzzleFunResults) .ease-choice {
    position:relative;border-radius:24px!important;padding:10px!important;min-width:0;
    background:var(--br-panel,#fff)!important;display:flex;flex-direction:column;
    box-shadow:0 5px 0 #26303d1e,0 12px 22px #1a2d4810!important;
  }
  :is(#puzzleResults,#puzzleFunResults) .ease-choice .br60-cover {
    order:-1;position:relative;isolation:isolate;display:flex;align-items:flex-end;justify-content:center;
    margin:0 auto 8px!important;min-width:0;aspect-ratio:1/1.08!important;width:100%!important;
    border:6px solid #252a31!important;border-radius:23px!important;overflow:hidden;cursor:pointer;
    background:linear-gradient(155deg,#34a6e6,#75cdeb)!important;padding:66px 5% 10px!important;
  }
  :is(#puzzleResults,#puzzleFunResults) [data-br-cover-tone="1"] .br60-cover{background:linear-gradient(145deg,#e7564f,#fa9480)!important}
  :is(#puzzleResults,#puzzleFunResults) [data-br-cover-tone="2"] .br60-cover{background:linear-gradient(145deg,#3c985c,#94d55a)!important}
  :is(#puzzleResults,#puzzleFunResults) [data-br-cover-tone="3"] .br60-cover{background:linear-gradient(145deg,#6550a2,#bd77da)!important}
  :is(#puzzleResults,#puzzleFunResults) [data-br-cover-tone="4"] .br60-cover{background:linear-gradient(145deg,#1e416f,#4589b1)!important}
  :is(#puzzleResults,#puzzleFunResults) [data-br-cover-tone="5"] .br60-cover{background:linear-gradient(145deg,#d37829,#f3bf4a)!important}
  :is(#puzzleResults,#puzzleFunResults) .br60-cover :is(svg,img) {
    display:block;max-height:100%;height:100%;width:100%;object-fit:contain;
    filter:drop-shadow(0 3px 4px #101b2a44);pointer-events:none;
  }
  :is(#puzzleResults,#puzzleFunResults) .br60-cover-title {
    position:absolute;top:12px;left:clamp(10px,3vw,20px);right:9px;z-index:3;
    display:block;max-width:calc(100% - 20px);color:#fff;line-height:1.04;
    text-shadow:0 2px 2px #0005;font-weight:900;letter-spacing:.015em;text-transform:uppercase;
    font-size:clamp(16px,2.8vw,25px);overflow-wrap:normal;word-break:normal;
  }
  :is(#puzzleResults,#puzzleFunResults) .br60-cover-title:after {
    content:"";display:block;width:38%;height:5px;border-radius:4px;margin-top:9px;background:currentColor;opacity:.8;
  }
  :is(#puzzleResults,#puzzleFunResults) .ease-puzzle-name {font-weight:700!important;line-height:1.25!important;min-height:44px;}
  :is(#puzzleResults,#puzzleFunResults) .ease-play {margin-top:auto;}
  /* Only the topic/length box disappears; a single New crossword action remains. */
  body[data-br-page="crosswords"] #topic-generator {display:flex;justify-content:center;margin:16px auto 24px;border:0;background:transparent;box-shadow:none;padding:0;}
  body[data-br-page="crosswords"] #topic-generator>label {display:none!important;}
  body[data-br-page="crosswords"] #generate-topic {min-height:48px;min-width:min(100%,260px);font-weight:800;border-radius:14px;}
  .br60-fun {margin:24px 0;padding:clamp(14px,2vw,24px);border:1px solid var(--br-skin-line,#c5d8e5);border-radius:20px;background:var(--br-panel,#fff)}
  .br60-fun h2 {margin:0 0 2px;font-size:clamp(24px,4vw,35px)}
  .br60-fun p {margin:0 0 18px;color:var(--br-muted,#53657a)}
  #puzzleFunResults {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
  #puzzleResults[data-columns=two] {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #puzzleResults[data-columns=one] {grid-template-columns:1fr!important;}
  @media(max-width:950px) {#puzzleFunResults{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
  @media(max-width:600px) {
    #puzzleFunResults,#puzzleResults[data-columns=two] {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
    :is(#puzzleResults,#puzzleFunResults) .ease-choice{padding:6px!important;border-radius:17px!important}
    :is(#puzzleResults,#puzzleFunResults) .ease-choice .br60-cover {border-width:4px!important;border-radius:17px!important;padding:55px 3% 6px!important;}
    :is(#puzzleResults,#puzzleFunResults) .br60-cover-title {font-size:clamp(14px,3.8vw,19px);top:9px;left:10px;right:7px;}
    :is(#puzzleResults,#puzzleFunResults) .br60-cover-title:after{height:4px;margin-top:5px}
  }
  /* Hint cards are small, translucent and always have Apply (left), Close (right). */
  .br26-hint-overlay {background:rgba(6,12,24,.18)!important;backdrop-filter:none!important;}
  .br26-hint-card {
    
    background:rgba(17,32,54,.87)!important;border:1.5px solid rgba(231,241,254,.88)!important;
    box-shadow:0 8px 30px #0b182766!important;backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);border-radius:18px!important;
    padding:14px!important;display:flex;flex-direction:column;gap:6px;
    font-size:clamp(13px,2.8vw,15px)!important;line-
  }
  .br26-hint-card>strong {font-size:1.08em;color:#fff6d8;}
  .br26-hint-card p {margin:4px 0 8px!important;font-weight:550;}
  .br60-hint-actions {margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:8px;}
  .br26-hint-card .br60-hint-actions button {margin:0!important;flex:1 1 0;min-width:0;min-height:44px;border-radius:10px;padding:9px 8px!important;}
  .br26-hint-card .br60-hint-actions button:last-child {background:#26384f!important;color:#f9fcff!important}
  /* The result card stays within narrow boards and the actions never bunch up. */
  .br-success-overlay,
  .br-success-overlay.br-success-compact {
    inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;
    width:min(94%,440px)!important;max-width:440px!important;
    padding:clamp(12px,3vw,19px)!important;max-height:94%!important;overflow:auto!important;
    border-radius:20px!important;font-size:clamp(18px,4vw,25px)!important;
    background:linear-gradient(135deg,#244a79,#4a367b)!important;
  }
  html[data-br-skin="harvest"] .br-success-overlay {background:linear-gradient(135deg,#6f321b,#aa5921)!important;}
  .br-correct-heading {display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;}
  .br-success-stars svg {width:clamp(22px,5vw,35px);height:auto;}
  .br-success-overlay .br60-success-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;}
  .br-success-overlay .br60-success-actions button,
  .br-success-overlay.br-success-compact .br60-success-actions button {
    display:flex!important;align-items:center;justify-content:center;
    width:100%;margin:0!important;min-width:0;min-height:44px!important;
    padding:9px 5px!important;font-size:clamp(13px,3.2vw,17px)!important;border-radius:12px!important;
  }
  .br-success-overlay .br60-success-actions button:first-child {background:#edf4ff!important;color:#1b3560!important;}
  .br-success-overlay .br60-success-actions button:last-child {background:#ffe5ae!important;color:#48320f!important;}
  /* Keep the one authoritative difficulty picker above New puzzle centered. */
  .br-basic-player .br-next-difficulty {display:flex!important;flex-direction:column;text-align:center;align-items:center;margin:14px auto!important;gap:5px;max-width:260px;}
  .br-basic-player .br-next-difficulty select {max-width:250px;margin:0 auto!important;text-align:center;}
  .br60-duplicate-difficulty,.br60-retired-control,.br60-obsolete-note{display:none!important}
  /* Puzzle boards share a clear light outline without changing cell hit targets. */
  body.br-clean-play :is(#arafGrid,#bananaGrid,#sashiGrid,#doubleGrid,#dosunGrid,#verifiedBoard,#psBoard,#jpBoard,#routeBoard,#logicBoard,#wordBoard,.br-view-viewport) {
    outline:2px solid rgba(240,249,255,.9);outline-offset:4px;border-radius:12px;
  }
  /* Araf: respect four CSS tracks; text is contained in its own cell. */
  body.br-clean-play #arafGrid {grid-template-columns:repeat(4,minmax(0,1fr))!important;width:min(100%,380px);gap:6px!important;padding:2px;}
  body.br-clean-play #arafGrid .araf-cell {
    width:100%!important;height:auto!important;min-width:0;min-height:0;aspect-ratio:1/.95!important;
    box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;
    padding:3px!important;border-radius:9px;font-size:clamp(15px,4vw,23px)!important;line-height:1.02;
  }
  body.br-clean-play #arafGrid .araf-cell strong{font-size:clamp(16px,4.5vw,25px);max-width:100%;line-height:1;}
  body.br-clean-play #arafGrid .araf-cell small{font-size:clamp(10px,2.2vw,13px);max-width:100%;padding:1px 3px;line-height:1.05;}
  /* Block Fill dark palette retains readable, distinct piece colors. */
  html[data-br-puzzle-appearance="dark"] body.br-hybrid .spatial-grid .floor {background:#314359!important;color:#f3f9ff!important;}
  html[data-br-puzzle-appearance="dark"] body.br-hybrid .spatial-grid .occupied {background:#6477aa!important;color:#fff!important;}
  html[data-br-puzzle-appearance="dark"] body.br-hybrid .piece-pick {background:#34445e!important;color:#f2f6ff!important;}
  .br60-removing-piece {background:#db4749!important;border-color:#ff9b9c!important;color:#fff!important;box-shadow:inset 0 0 0 2px #ffb2b2!important;}
  .br60-word-rope {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:1;}
  #tray.wheel button {z-index:2;}
  .br60-word-draft {cursor:text!important;outline-offset:-4px;}
  #keyboard[hidden]{display:none!important;}
  .br60-autocascade{display:block;margin:12px auto!important;min-height:44px;}
}
@media(prefers-reduced-motion:reduce){.br60-cover,.br-success-overlay{animation:none!important;transition:none!important}}

@media screen { :is(#puzzleResults,#puzzleFunResults) .br60-cover:focus-visible { outline:4px solid #f7c765!important;outline-offset:3px; } }

@media screen{.br60-block-ghost{position:fixed!important;left:0;top:0;transform:translate(-50%,-50%);pointer-events:none!important;z-index:10001;opacity:.9;background:#213a5866;border:2px solid #fff;border-radius:12px;box-shadow:0 12px 30px #0005;filter:drop-shadow(0 2px 8px #1119);}}

/* brainistry-refresh62.css */
/* Brainistry Expansion62 — shared puzzle shell and gameplay visual polish. */
@media screen {
  body.br-clean-play .br-basic-player {
    width:min(100%,900px)!important;
    margin-inline:auto!important;
  }
  body.br-clean-play .br-player-basics {
    align-items:center!important;
    text-align:center!important;
    gap:10px!important;
    margin-bottom:18px!important;
  }
  body.br-clean-play .br-player-basics .br-player-title,
  body.br-clean-play .br-player-basics .br-player-difficulty {
    width:100%;
    text-align:center!important;
  }
  body.br-clean-play .br-player-basics .br-puzzle-howto {
    width:min(100%,760px)!important;
    margin-inline:auto!important;
    text-align:left!important;
    border-radius:16px!important;
  }
  body.br-clean-play .br-digital-clock {
    margin:8px auto 12px!important;
  }

  /* One clear play-area edge across native and standalone players. */
  body.br-clean-play :is(
    #reference,#board,#arafGrid,#bananaGrid,#sashiGrid,#doubleGrid,#dosunGrid,
    #verifiedBoard,#psBoard,#jpBoard,#jpBoardWrap,#routeBoard,#logicBoard,#wordBoard,
    #mineBoard,#grid,.spatial-grid-wrapper,.br-view-viewport
  ) {
    border-radius:15px!important;
    box-shadow:0 0 0 2px rgba(255,255,255,.96),0 0 0 5px rgba(19,42,66,.18)!important;
  }
  html[data-br-puzzle-appearance="dark"] body.br-clean-play :is(
    #reference,#board,#arafGrid,#bananaGrid,#sashiGrid,#doubleGrid,#dosunGrid,
    #verifiedBoard,#psBoard,#jpBoard,#jpBoardWrap,#routeBoard,#logicBoard,#wordBoard,
    #mineBoard,#grid,.spatial-grid-wrapper,.br-view-viewport
  ) {
    box-shadow:0 0 0 2px rgba(255,255,255,.92),0 0 0 5px rgba(113,154,190,.24),0 12px 28px rgba(0,0,0,.18)!important;
  }

  /* Direct-entry games should feel like one board, not a two-column form. */
  body[data-br-page="play-all"] .family-layout.direct-entry {
    display:block!important;
    width:100%!important;
    max-width:760px!important;
    margin-inline:auto!important;
  }
  body[data-br-page="play-all"] .family-layout.direct-entry #clueSection {
    width:100%!important;
    max-width:760px!important;
    margin-inline:auto!important;
  }
  body[data-br-page="play-all"] .family-layout.direct-entry #entryHeading,
  body[data-br-page="play-all"] .family-layout.direct-entry #modeLabel,
  body[data-br-page="play-all"] .family-layout.direct-entry label:has(>#field),
  body[data-br-page="play-all"] .family-layout.direct-entry #values,
  body[data-br-page="play-all"] .family-layout.direct-entry #decoded {
    display:none!important;
  }
  body[data-br-page="play-all"] .family-layout.direct-entry #entrySection {
    width:100%!important;
    max-width:760px!important;
    margin:0 auto!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body[data-br-page="play-all"] .family-layout.direct-entry #entrySection>.actions:empty {
    display:none!important;
  }

  /* Consistent primary action geometry. */
  body.br-clean-play :is(.br-check-row,.br-puzzle-actions,.br-generate-row,.br-restart-row) {
    width:min(100%,760px)!important;
    margin-inline:auto!important;
  }
  body.br-clean-play .br-puzzle-actions {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:9px!important;
  }
  body.br-clean-play :is(.br-check-row,.br-puzzle-actions,.br-generate-row,.br-restart-row) button {
    min-height:46px!important;
    border-radius:12px!important;
  }

  /* Keep retired controls retired even if a legacy renderer rebuilds them later. */
  body.br-clean-play :is(
    #pause,#download,#backup,#backupSession,#backupCurrent,#exportCurrent,#exportMine,
    #downloadSpatialRecovery,#restoreSpatialRecovery
  ),
  body.br-clean-play label.restore,
  body.br-clean-play .br62-retired-control {
    display:none!important;
  }

  /* Quiet status areas: errors remain visible, repetitive instructions do not. */
  body.br-clean-play .br62-obsolete-note {display:none!important;}

  /* Battleships shell gets a little extra breathing room around the radar board. */
  body[data-br-active-puzzle="battleships"] #reference {
    padding:8px!important;
    background:linear-gradient(180deg,rgba(16,58,82,.10),rgba(20,94,117,.05))!important;
  }

  /* Compact completion card remains readable on narrow boards. */
  .br-success-overlay.br-success-compact {
    width:min(92vw,420px)!important;
    padding:16px!important;
  }
  .br-success-overlay .br60-success-actions {
    gap:10px!important;
  }
}

@media (max-width:560px){
  body.br-clean-play .br-puzzle-actions{gap:7px!important}
  body.br-clean-play .br-puzzle-actions button{font-size:14px!important;padding-inline:4px!important}
  body.br-clean-play :is(.br-check-row,.br-puzzle-actions,.br-generate-row,.br-restart-row){width:100%!important}
}

/* brainistry-refresh64.css */
/* Brainistry Expansion64: compact victory, side hints and final shared-player polish. Presentation only. */
@media screen {
  /* Keep solved boards visible. The success card floats above the edge instead of blanketing the puzzle. */
  .br-success-stage { position:relative!important; }
  .br-success-overlay,
  .br-success-overlay.br-success-compact {
    inset:auto 12px 12px auto!important;
    transform:none!important;
    width:min(330px,calc(100% - 24px))!important;
    max-width:330px!important;
    max-height:none!important;
    overflow:visible!important;
    padding:13px 14px!important;
    border:1.5px solid rgba(255,255,255,.78)!important;
    border-radius:18px!important;
    background:linear-gradient(145deg,rgba(24,55,92,.94),rgba(64,46,102,.94))!important;
    box-shadow:0 12px 30px rgba(3,12,26,.34)!important;
    backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);
    font-size:16px!important;
  }
  html[data-br-skin="harvest"] .br-success-overlay {
    background:linear-gradient(145deg,rgba(101,45,19,.96),rgba(169,86,30,.94))!important;
  }
  .br-success-overlay .br-correct-heading {justify-content:flex-start!important;gap:8px!important;white-space:normal!important;}
  .br-success-overlay .br-success-stars {display:none!important;}
  .br-success-overlay .br-correct-title {font-size:23px!important;font-weight:900!important;line-height:1!important;letter-spacing:.01em;}
  .br-success-overlay .br-correct-title:before {content:"✓";display:inline-grid;place-items:center;width:31px;height:31px;margin-right:9px;border-radius:50%;background:#dff7dd;color:#185c38;font-size:20px;vertical-align:middle;box-shadow:inset 0 0 0 2px #fff8;}
  .br-success-overlay .br64-success-note {margin:5px 0 0 40px;color:#eef5ff;font-size:13px;font-weight:650;opacity:.92;}
  .br-success-overlay>i {display:none!important;}
  .br-success-overlay .br60-success-actions {display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:10px!important;}
  .br-success-overlay .br60-success-actions button {min-height:40px!important;padding:7px 8px!important;font-size:14px!important;border-radius:10px!important;}

  /* Small translucent hint card; the board remains readable behind it. */
  .br26-hint-overlay {background:rgba(4,10,20,.10)!important;}
  .br26-hint-card {
    
    
    
    padding:12px!important;border-radius:16px!important;
    background:rgba(18,34,57,.82)!important;
    border:1.5px solid rgba(239,247,255,.9)!important;
    backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
    font-size:14px!important;line-
  }
  .br26-hint-card>strong {font-size:15px!important;}
  .br26-hint-card p {margin:3px 0 6px!important;}
  .br26-hint-card .br40-hint-key {display:none!important;}
  .br26-hint-card .br60-hint-actions {gap:7px!important;}
  .br26-hint-card .br60-hint-actions button {min-height:40px!important;padding:7px 8px!important;font-size:13px!important;}
  /* Only the target gets the strong solid ring; supporting cells stay quiet. */
  .br26-support {outline:0!important;box-shadow:inset 0 0 0 2px rgba(244,205,100,.55)!important;}
  .br29-support {border:0!important;box-shadow:inset 0 0 0 2px rgba(244,205,100,.58)!important;animation:none!important;}

  /* Finish the white-outline language across remaining shared board containers. */
  body.br-clean-play :is(#grid,#board,#mineBoard,#reference,#entryBoard,.spatial-grid,.banana-grid,.araf-grid,.dosun-grid,.double-grid,.sashi-grid) {
    outline:2px solid rgba(240,249,255,.88);outline-offset:4px;border-radius:12px;
  }
  html[data-br-puzzle-appearance="light"] body.br-clean-play :is(#grid,#board,#mineBoard,#reference,#entryBoard,.spatial-grid,.banana-grid,.araf-grid,.dosun-grid,.double-grid,.sashi-grid) {
    outline-color:rgba(54,83,116,.5);
  }
  /* Hidden retired import/export controls must not leave orphan labels/gaps. */
  .br64-retired-row:empty,.br64-retired-row[hidden]{display:none!important;}

  @media (max-width:620px){
    .br-success-overlay,.br-success-overlay.br-success-compact {
      position:absolute!important;left:50%!important;right:auto!important;bottom:8px!important;
      transform:translateX(-50%)!important;width:min(94%,330px)!important;
    }
    .br26-hint-card {}
  }
}
@media(prefers-reduced-motion:reduce){.br-success-overlay,.br26-hint-card{transition:none!important;animation:none!important}}
@media screen {
  /* Spot the Difference uses its own completion surface; keep that compact too. */
  .br-spot-complete {background:rgba(4,10,20,.12)!important;backdrop-filter:none!important;}
  .br-spot-complete-card {width:min(330px,calc(100vw - 24px))!important;padding:14px!important;border-radius:18px!important;background:rgba(20,42,69,.93)!important;border:1.5px solid rgba(255,255,255,.8)!important;box-shadow:0 12px 30px #06122655!important;}
  .br-spot-complete-card>strong {font-size:23px!important;}
  .br-spot-actions {display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;}
  .br-spot-actions button {min-height:40px!important;padding:7px 8px!important;font-size:14px!important;}
  .br-spot-frame {outline:2px solid rgba(240,249,255,.86);outline-offset:3px;border-radius:16px;}
  /* Endless/casual completion is a compact result card, not a large stacked banner. */
  body:has(#complete) #complete:not(.br-spot-complete) {max-width:420px;margin:12px auto!important;padding:12px 14px!important;border-radius:16px!important;box-shadow:0 8px 22px #06122622;}
  body:has(#complete) #complete:not(.br-spot-complete) h2 {font-size:21px!important;margin:0 0 5px!important;}
  body:has(#complete) #complete:not(.br-spot-complete) p {margin:4px 0 8px!important;}
}

/* Puzzle identity is separate from the existing verified completion trigger. */
.br-success-overlay .br71-completion-name{font-size:clamp(16px,3vw,22px);font-weight:800;margin:4px 0 10px;color:var(--br-accent,#245bb6);overflow-wrap:anywhere}
.br-success-overlay.br71-akari-completion{background:linear-gradient(125deg,#fffbea,#fff0ad)!important;border:2px solid #d4a426!important}
.br-success-overlay.br71-akari-completion .br71-completion-name{color:#594000!important}

html[data-br-reduced-motion=on]{--br71-motion:paused}

/* brainistry-refresh65.css */
/* Brainistry Expansion65: shared game-symbol art, mobile controls and final player normalization. */
@media screen {
  /* Original vector symbols replace platform-dependent emoji in puzzle surfaces. */
  #mineBoard button.br65-mine,
  #mineBoard button.br65-flag,
  #board .cell.br65-star,
  #board .cell.br65-x { position:relative; color:transparent!important; }
  #mineBoard button.br65-mine::before,
  #mineBoard button.br65-flag::before,
  #board .cell.br65-star::before,
  #board .cell.br65-x::before {
    content:""; position:absolute; inset:14%; background-position:center; background-repeat:no-repeat; background-size:contain; pointer-events:none;
  }
  #mineBoard button.br65-mine::before { background-image:url('./assets/symbols65/mine.svg'); inset:10%; }
  #mineBoard button.br65-flag::before { background-image:url('./assets/symbols65/flag.svg'); inset:11%; }
  #board .cell.br65-star::before { background-image:url('./assets/symbols65/star.svg'); inset:12%; filter:drop-shadow(0 2px 2px rgba(55,35,8,.28)); }
  #board .cell.br65-x::before { background-image:url('./assets/symbols65/x.svg'); inset:24%; opacity:.74; }
  #board .cell.given.br65-star::after { content:""; position:absolute; inset:7%; border:2px solid rgba(255,255,255,.9); border-radius:50%; pointer-events:none; }

  /* Remaining player screens use the same centered information stack and generous touch targets. */
  body.br-clean-play main>h1,
  body.br-hybrid main>h1 { text-align:center; text-wrap:balance; }
  body.br-clean-play main>h1 + p,
  body.br-hybrid main>h1 + p { max-width:760px; margin-inline:auto; text-align:center; }
  body.br-clean-play main>label:has(select),
  body.br-hybrid main>label:has(select) { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; margin:10px auto; }
  body.br-clean-play select,
  body.br-hybrid select { min-height:44px; border-radius:11px; }
  body.br-clean-play :is(button,[role="button"]),
  body.br-hybrid :is(button,[role="button"]) { min-height:44px; }
  body.br-clean-play :is(.mine-tools,.game-actions,.br-toolbar,.controls),
  body.br-hybrid :is(.mine-tools,.game-actions,.br-toolbar,.controls) { justify-content:center; }

  /* Keep symbols/pictures large enough to read without overwhelming the board. */
  .br61-memory-symbol { width:min(72%,58px); height:min(72%,58px); }
  .token-tray .br61-memory-symbol { width:38px; height:38px; }
  .study-string .br61-memory-symbol,.study-values .br61-memory-symbol { width:52px; height:52px; margin:2px 5px; }
  #mineBoard button { border-radius:7px!important; }
  #mineBoard .mine-open { box-shadow:inset 0 0 0 1px rgba(60,82,105,.12); }

  /* Hint target remains easy to compare to the board on narrow phones. */
  .br26-hint-card { margin-inline:auto!important; }
  @media (min-width:900px){
    body.br-clean-play .br26-hint-overlay,
    body.br-hybrid .br26-hint-overlay { align-items:flex-start!important; justify-content:flex-end!important; padding:90px 18px 18px!important; }
    body.br-clean-play .br26-hint-card,
    body.br-hybrid .br26-hint-card { margin:0!important; }
  }
  @media (max-width:520px){
    body.br-clean-play main,body.br-hybrid main { padding-inline:max(12px,env(safe-area-inset-left))!important; }
    body.br-clean-play :is(button,[role="button"]),body.br-hybrid :is(button,[role="button"]) { min-height:46px; }
    .br61-memory-symbol { width:min(76%,52px); height:min(76%,52px); }
  }
}
@media(prefers-reduced-motion:reduce){#board .cell.br65-star::before,#mineBoard button::before{transition:none!important;animation:none!important}}

/* brainistry-refresh66.css */
/* Brainistry Expansion66: remaining game-symbol, How-To and legacy-control normalization. */
@media screen {
  /* Ranked Star Battle Arcade: state is still numeric; art is presentation-only. */
  #board button.br66-star,
  #board button.br66-x {
    position:relative;
    color:transparent!important;
  }
  #board button.br66-star::before,
  #board button.br66-x::before {
    content:"";
    position:absolute;
    pointer-events:none;
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
  }
  #board button.br66-star::before {
    inset:11%;
    background-image:url('./assets/symbols65/star.svg');
    filter:drop-shadow(0 2px 2px rgba(55,35,8,.24));
  }
  #board button.br66-x::before {
    inset:24%;
    background-image:url('./assets/symbols65/x.svg');
    opacity:.76;
  }

  /* Text/icon chooser cards use one authored visual language instead of platform emoji. */
  .br66-game-heading {
    display:flex;
    align-items:center;
    gap:10px;
  }
  .br66-game-heading::before {
    content:"";
    flex:0 0 34px;
    width:34px;
    height:34px;
    border-radius:10px;
    display:inline-grid;
    place-items:center;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.86),0 4px 12px rgba(18,39,60,.14);
    background:
      linear-gradient(145deg,rgba(255,255,255,.22),transparent 55%),
      linear-gradient(145deg,#315f86,#17364f);
  }
  .br66-codeword::before { content:"A1"; color:#fff; font:800 13px/34px system-ui,sans-serif; text-align:center; }
  .br66-dropquotes::before { content:"“ ”"; color:#fff; font:800 15px/34px Georgia,serif; text-align:center; }
  .br66-acrostic::before { content:"A↘"; color:#fff; font:800 13px/34px system-ui,sans-serif; text-align:center; }
  .br66-signpost::before { content:"→"; color:#fff; font:900 20px/34px system-ui,sans-serif; text-align:center; }
  .br66-tracks::before {
    background:
      linear-gradient(90deg,transparent 20%,#eff8ff 20% 28%,transparent 28% 72%,#eff8ff 72% 80%,transparent 80%),
      repeating-linear-gradient(0deg,transparent 0 5px,#eff8ff 5px 8px,transparent 8px 13px),
      linear-gradient(145deg,#315f86,#17364f);
  }

  /* Truly retire obsolete controls from pointer, keyboard and accessibility flow. */
  .br66-retired-control { display:none!important; }
  body.br-clean-play :is(.br-puzzle-actions,.br-check-row,.br-generate-row,.br-restart-row,.mine-tools,.game-actions,.controls) {
    align-items:stretch;
    justify-content:center;
    flex-wrap:wrap;
  }
  body.br-clean-play :is(.br-puzzle-actions,.br-check-row,.br-generate-row,.br-restart-row,.mine-tools,.game-actions,.controls) > :is(button,a,[role="button"]) {
    min-width:112px;
  }
  body.br-clean-play :is(#status,#message,#completion,#mineStatus,#logicStatus,#wordStatus,#routeStatus,#jpStatus) {
    max-width:760px;
    margin-inline:auto;
    text-align:center;
  }

  /* Keep How-To panels readable and visually aligned with the shared shell. */
  body.br-clean-play .br-puzzle-howto,
  body.br-clean-play .br-simple-guide {
    width:min(100%,760px);
    margin-inline:auto;
    border-radius:16px;
  }

  @media(max-width:520px){
    .br66-game-heading::before{flex-basis:30px;width:30px;height:30px;border-radius:9px}
    .br66-codeword::before,.br66-dropquotes::before,.br66-acrostic::before,.br66-signpost::before{line-height:30px}
    body.br-clean-play :is(.br-puzzle-actions,.br-check-row,.br-generate-row,.br-restart-row,.mine-tools,.game-actions,.controls) > :is(button,a,[role="button"]) {
      min-width:0;
      flex:1 1 42%;
    }
  }
}
@media(prefers-reduced-motion:reduce){
  #board button.br66-star::before,#board button.br66-x::before{transition:none!important;animation:none!important}
}

/* Expansion71 Draft04: game-native artwork parity; presentation only. */
body[data-br-endless-kind=blocks] #board.grid,body[data-br-endless-kind=word] #board.grid{padding:10px;border:5px solid #292a40;border-radius:20px;background:#191b2b;box-sizing:border-box;gap:3px;box-shadow:inset 0 3px 4px #ffffff35,0 6px 12px #080a1933}
body[data-br-endless-kind=blocks] #board .cell,body[data-br-endless-kind=word] #board .cell{background:#252739;border:1px solid #10121f;border-radius:clamp(3px,1vw,8px);box-shadow:inset 0 3px 7px #08091588;color:#fff}
body[data-br-endless-kind=blocks] #board .cell.br71-filled,body[data-br-endless-kind=blocks] #tray .piece b,body[data-br-endless-kind=blocks] .br60-block-ghost b{background-image:linear-gradient(180deg,#ffffff66,#ffffff0d 24%,#00000000 70%,#00000038)!important;border-radius:5px;box-shadow:inset 0 2px 2px #ffffff55,inset 0 -2px 2px #0003}
body[data-br-endless-kind=blocks] #tray{padding:12px;border-radius:16px;background:#222437}
body[data-br-endless-kind=blocks] #tray .piece{background:transparent;border:0;border-radius:8px}
body[data-br-endless-kind=blocks] #tray .piece[aria-pressed=true]{outline:3px solid #ffdc34;outline-offset:2px}
body[data-br-endless-kind=word] #board .cell.correct{background:#50a76d;color:#fff}
body[data-br-endless-kind=word] #board .cell.present{background:#dfb640;color:#172238}
body[data-br-endless-kind=word] #board .cell.absent{background:#636e7e;color:#fff}
body[data-br-endless-kind=word] #board .cell.correct,body[data-br-endless-kind=word] #board .cell.present,body[data-br-endless-kind=word] #board .cell.absent{background-image:linear-gradient(#ffffff33,#ffffff00 65%,#0002);box-shadow:inset 0 2px 2px #fff4}
body[data-br-endless-kind=wheel] #tray.wheel{background:#383050;border:6px solid #807099;box-sizing:border-box;max-width:90vw}
body[data-br-endless-kind=wheel] #tray.wheel button{border-radius:50%;background:#ffdc34;color:#222437;border:2px solid #fff8;box-shadow:inset 0 3px 3px #fff7}
body[data-br-endless-kind=wheel] #tray.wheel button.selected{background:#fff1a0;outline:3px solid #fff;outline-offset:2px}
body[data-br-endless-kind=wheel] #board .cell:not(.hole){background:#f5f7fd;color:#222437;border:2px solid #bbc4da;border-radius:5px}
body[data-br-endless-kind=sand] #board canvas{background:#222437;border:5px solid #42445c;border-radius:16px;box-sizing:border-box}
body[data-memory-game] .game-surface .brain-grid{padding:8px;background:#222437;border-radius:16px;box-sizing:border-box;gap:5px}
body[data-memory-game] .game-surface .brain-grid :is(button,.preview-tile):not(.painted):not(.matched):not(.revealed):not(.br61-memory-card-back):not(.br-review-error):not(.br-review-correct){background:#f5f7fd;color:#222437;border-color:#dde3f1;border-radius:9px}
body[data-memory-game] .study-values>span,body[data-memory-game] .br71-sequence-study>.br71-study-token{background:#f5f7fd;color:#222437;border:2px solid #dde3f1;border-radius:12px;padding:14px;box-shadow:0 3px 5px #16213722}
body[data-memory-game] .br71-sequence-study,body[data-memory-game] .br71-digits{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;max-width:100%;padding:12px;box-sizing:border-box}
body[data-memory-game] .br71-sequence-study>.br71-study-token{position:relative;display:inline-grid;place-items:center;min-width:54px;min-height:54px}
body[data-memory-game] .br71-study-token[data-order]:before{content:attr(data-order);position:absolute;left:-5px;top:-5px;width:21px;height:21px;border-radius:50%;background:#222437;color:#fff;font:800 12px/21px system-ui;text-align:center}
body[data-memory-game] .br71-digits{background:#222437;border-radius:16px;width:fit-content;margin-inline:auto}
body[data-memory-game] .br71-digits>.br71-study-token{display:inline-grid;place-items:center;min-width:36px;min-height:50px;padding:4px 8px;border-radius:8px;background:linear-gradient(#fff5,#fff0 30%,#0002),#ffdc34;color:#222437;font-variant-numeric:tabular-nums;box-shadow:inset 0 2px 2px #fff9}
body[data-memory-game] .game-surface[data-memory-accent="0"]{--memory-accent:#529eff;--memory-soft:#529eff}
body[data-memory-game] .game-surface .brain-grid .painted{box-shadow:inset 0 2px 2px #fff5,inset 0 -2px 2px #0002}
.exp-graph{border:4px solid #222437;border-radius:20px;background:#f5f7fd;box-sizing:border-box}
#dosunGrid .dosun-cell.room-a{background:#e4e8fb;color:#222437}
#dosunGrid .dosun-cell.room-b{background:#fff0cd;color:#222437}
#dosunGrid .dosun-cell{border-radius:5px}
@media(max-width:380px){body[data-br-endless-kind=blocks] #board.grid,body[data-br-endless-kind=word] #board.grid{padding:6px;border-width:4px}body[data-memory-game] .br71-digits{gap:5px}body[data-memory-game] .br71-digits>.br71-study-token{min-width:26px;padding:3px 5px}}

/* Expansion71 Draft05: readable, in-flow completion banners with real controls. */
body .br-success-overlay[data-br-completion71="1"],.br-success-overlay.br71-akari-completion[data-br-completion71="1"]{position:relative!important;inset:auto!important;transform:none!important;display:block!important;grid-column:1/-1!important;width:min(440px,100%)!important;max-width:440px!important;min-width:0!important;box-sizing:border-box;margin:16px auto 8px!important;padding:16px!important;border:2px solid var(--br-accent,#326ad4)!important;border-radius:22px!important;background:linear-gradient(135deg,#ffffff,#f0f4fc)!important;color:#1b2940!important;box-shadow:0 8px 24px #11234522!important;backdrop-filter:none!important;text-align:left;animation:br71-banner-in .3s ease-out}
body .br-success-overlay[data-br-completion71="1"] .br71-completion-art{display:block;aspect-ratio:12/5;max-height:150px;margin:0 0 10px;background:linear-gradient(115deg,color-mix(in srgb,var(--br-accent,#326ad4) 12%,transparent),color-mix(in srgb,var(--br-accent-2,#7650ce) 10%,transparent));border-radius:14px;overflow:hidden}
body .br-success-overlay[data-br-completion71="1"] .br71-completion-art img{display:block;width:100%;height:100%;object-fit:contain}
body .br-success-overlay[data-br-completion71="1"] .br71-completion-name{font-size:clamp(19px,4vw,26px)!important;line-height:1.2!important;font-weight:850!important;color:inherit!important;margin:0 0 5px!important;overflow-wrap:anywhere}
body .br-success-overlay[data-br-completion71="1"] .br-correct-title{font-size:12px!important;line-height:1.4!important;letter-spacing:.08em;text-transform:uppercase;color:var(--br-accent,#245bb6)!important}
body .br-success-overlay[data-br-completion71="1"] .br-correct-title:before{content:none!important;display:none!important}
body .br-success-overlay[data-br-completion71="1"] .br71-completion-note{font-size:15px;line-height:1.5;margin:9px 0 14px;color:inherit}
body .br-success-overlay[data-br-completion71="1"] .br60-success-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
body .br-success-overlay[data-br-completion71="1"] .br60-success-actions button{min-height:44px!important;min-width:0!important;white-space:normal!important;line-height:1.25!important;border-radius:12px!important;padding:10px!important;border:1px solid var(--br-accent,#326ad4)!important;background:#fff!important;color:#20324c!important;box-shadow:none!important}
body .br-success-overlay[data-br-completion71="1"] .br60-success-actions button:last-child{background:var(--br-accent,#326ad4)!important;color:#fff!important}
body .br-success-overlay[data-br-completion71="1"] .br60-success-actions button:focus-visible{outline:3px solid #e3aa22!important;outline-offset:3px!important}
body .br-success-overlay[data-br-completion71="1"] .br60-success-actions button:disabled{opacity:.5;cursor:not-allowed}
html[data-br-puzzle-appearance="dark"] body .br-success-overlay[data-br-completion71="1"],html[data-br-puzzle-appearance="dark"] .br-success-overlay.br71-akari-completion[data-br-completion71="1"]{background:linear-gradient(135deg,#172238,#232d48)!important;color:#f1f5ff!important;box-shadow:0 8px 24px #0006!important}
html[data-br-puzzle-appearance="dark"] body .br-success-overlay[data-br-completion71="1"] .br-correct-title{color:#aecdff!important}
html[data-br-puzzle-appearance="dark"] body .br-success-overlay[data-br-completion71="1"] .br60-success-actions button:first-child{background:#24344d!important;color:#f1f5ff!important}
@keyframes br71-banner-in{from{opacity:0}to{opacity:1}}
html[data-br-reduced-motion="on"] body .br-success-overlay[data-br-completion71="1"]{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){body .br-success-overlay[data-br-completion71="1"]{animation:none!important;transition:none!important}}
@media(max-width:380px){body .br-success-overlay[data-br-completion71="1"]{padding:12px!important;margin-top:12px!important}body .br-success-overlay[data-br-completion71="1"] .br71-completion-art{max-height:118px}}
/* Native rule boards retain semantic fills, marks and all interaction geometry. */
body.br-hybrid .br-board>button:not([style*="background-image"]),body.br-hybrid .exp-grid>.exp-cell:not(.exp-invalid):not(.exp-gap){border-radius:4px}

/* brainistry-refresh72.css */
/* Expansion72: readable guides, calmer boards, clear primary actions. */
body .br-preview-card img{display:block;max-height:330px;object-fit:contain;background:var(--br-accent,#2855a3);border-radius:20px}
body :is(#puzzleResults,#puzzleFunResults) .ease-choice .br-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body :is(#puzzleResults,#puzzleFunResults) .ease-choice a.br-button,body :is(#puzzleResults,#puzzleFunResults) .ease-choice a.primary{min-height:50px!important;min-width:100px!important;padding:12px 20px!important;font-size:17px!important;line-height:1.4!important;flex:1 1 100px!important}
body :is(#puzzleResults,#puzzleFunResults) a[href*="tutorial"],body :is(#puzzleResults,#puzzleFunResults) a[href*="guide"]{min-height:44px!important;padding:7px 10px!important;font-size:13px!important;flex:0 1 auto!important}
html[data-br-puzzle-appearance="dark"] :is(.learn-card,.guide-card,.br-guide,details,#rules,.br-howto,.br-written-guide){background:#243248!important;color:#e7eef8!important;border-color:#61758d!important}
html[data-br-puzzle-appearance="dark"] :is(.learn-card,.guide-card,.br-guide,details,.br-howto,.br-written-guide) :is(p,li,h2,h3,h4,summary){color:#e7eef8!important;background:transparent!important}
html[data-br-puzzle-appearance="dark"] :is(#board,.br-board,.np-board) svg{background:#c4ceda!important}
html[data-br-puzzle-appearance="dark"] :is(#board,.br-board,.np-board) svg rect:is([fill="white"],[fill="#fff"],[fill="#ffffff"],[fill="#fffefa"]){fill:#c4ceda!important}
html[data-br-puzzle-appearance="dark"] :is(#board,.br-board) button:not([style*="background"]){background-color:#c4ceda;color:#172b42}
.br-player-frame{max-width:100%;overflow-anchor:none}
@media(prefers-reduced-motion:reduce){.br72-bubble,.br72-water{animation:none!important}}

html[data-br-skin] body.br-hybrid :is(#puzzleResults,#puzzleFunResults) .ease-choice>.ease-play{width:auto!important;min-width:0!important;min-height:52px!important;height:auto!important;padding:12px 14px!important;font-size:18px!important;line-height:1.4!important;white-space:normal!important;overflow:visible!important}
html[data-br-skin] body.br-hybrid :is(#puzzleResults,#puzzleFunResults) .ease-choice>.ease-rules{min-height:52px!important;height:auto!important;padding:12px!important;line-height:1.4!important}
html[data-br-puzzle-appearance="dark"] :is(.br-rules-dialog,.br-simple-guide,.br-puzzle-howto){background:#243248!important;color:#e7eef8!important}

.exp-pipe{padding:0!important;background:#182b40!important;border:1px solid #607b94!important;overflow:hidden}.exp-pipe svg{display:block;width:100%;height:100%}@keyframes br72current{to{stroke-dashoffset:-28}}@media(prefers-reduced-motion:no-preference){.br72-current{animation:br72current 1.8s linear infinite}}

/* RC2: viewport completion portal, full artwork and accessible green/crème. */
@media screen {
html[data-br-skin="green-creme"] {--br-accent:#245c42;--br-accent-2:#35664d;--br-page:#fff4df;--br-tint:#e3ecd9;--br-ink:#243c2c;--br-skin-line:#a7c4a0;--br-control-bg:#245c42;--br-control-fg:#ffffff;}
html body .br-success-overlay[data-br-completion71="1"][data-br-completion-portal="1"] {position:fixed!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;margin:0!important;z-index:2147483000!important;width:min(440px,calc(100vw - 24px))!important;max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;}
html .br-brand-picture .br-logo-start {stop-color:#e7f8ec!important;}
html .br-brand-picture .br-logo-end {stop-color:#fff4df!important;}
html .br-brand-picture {filter:drop-shadow(0 0 1px #183a2a) drop-shadow(0 1px 1px #183a2a);}
html[data-br-puzzle-appearance="dark"][data-br-skin="green-creme"] {--br-page:#17271e;--br-tint:#243b2b;--br-ink:#f6f0df;--br-skin-line:#759781;}
}

/* RC4: Akari's real completed board is the celebration. No bitmap UI or stock decoration. */
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-completion-portal="1"] {
 --ak-bg:#f9f3df;--ak-ink:#214332;--ak-muted:#49634b;--ak-line:#8b9e69;
 width:min(720px,calc(100vw - 24px))!important;max-width:720px!important;box-sizing:border-box;padding:28px 36px 30px!important;
 border:1px solid var(--ak-line)!important;border-radius:30px!important;background:radial-gradient(ellipse at 50% 14%,#e9db9c55,transparent 65%),var(--ak-bg)!important;color:var(--ak-ink)!important;
 box-shadow:0 20px 80px #00180f55!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;animation:none!important;isolation:isolate;
}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br71-completion-art {order:0;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;flex-shrink:0!important;margin:0 auto 14px!important;width:100%!important;max-width:none!important;display:flex!important;justify-content:center;overflow:visible!important;}
.br72-akari-grid {display:block;width:auto!important;height:min(28vh,240px)!important;max-width:100%!important;overflow:visible;filter:drop-shadow(0 0 20px #edc65b33);}
.br72-akari-grid rect {fill:#ffe5a0;stroke:#bc974e;stroke-width:.5;}
.br72-akari-grid .br72-wall rect {fill:#143d2a;stroke:#39603c;}
.br72-akari-grid text {fill:#fff2bd;font:700 19px system-ui,sans-serif;}
.br72-akari-grid .br72-source rect {fill:#ffe999;filter:drop-shadow(0 0 5px #ffd65c);}
.br72-akari-grid .br72-spark {fill:#fffdf0;filter:drop-shadow(0 0 3px #fff5ad);}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br71-completion-name {order:1!important;font:700 13px/1.5 system-ui,sans-serif!important;letter-spacing:.38em!important;margin:0 0 8px!important;color:var(--ak-muted)!important;}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br-correct-heading {order:2;display:block!important;margin:0!important;}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br-correct-title {font:500 clamp(48px,7vw,80px)/1.05 Georgia,serif!important;color:var(--ak-ink)!important;letter-spacing:-.035em!important;text-transform:none!important;}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br71-completion-note {order:3;font:400 clamp(17px,2.5vw,24px)/1.4 Georgia,serif!important;letter-spacing:.06em;color:var(--ak-muted)!important;margin:10px 0 24px!important;}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br-success-stars,html body .br72-akari-grand>i {display:none!important;}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br60-success-actions {order:4;display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;width:100%!important;margin:0!important;}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br60-success-actions button {min-height:52px!important;min-width:0!important;width:100%!important;padding:12px!important;border-radius:16px!important;font:600 18px/1.3 system-ui,sans-serif!important;color:var(--ak-ink)!important;border:1px solid var(--ak-line)!important;background:transparent!important;box-shadow:none!important;}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br60-success-actions button:last-child {background:#ffe8a1!important;color:#153b28!important;border-color:#f5d789!important;}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] button:focus-visible {outline:3px solid #4c94cf!important;outline-offset:4px!important;}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] button:disabled {opacity:.5;cursor:not-allowed;}
html[data-br-puzzle-appearance="dark"] body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-completion-portal="1"] {--ak-bg:#052617;--ak-ink:#ffe9a5;--ak-muted:#eadba4;--ak-line:#82996c;box-shadow:0 20px 80px #0009!important;}
@media(prefers-color-scheme:dark){html:not([data-br-puzzle-appearance="light"]) body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-completion-portal="1"] {--ak-bg:#052617;--ak-ink:#ffe9a5;--ak-muted:#eadba4;--ak-line:#82996c;}}
@media(max-width:480px){html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-completion-portal="1"]{padding:22px 18px!important;border-radius:24px!important}.br72-akari-grid{height:min(30vh,200px)!important;}html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br60-success-actions{gap:10px!important;}html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br60-success-actions button{font-size:16px!important;}}
@media(prefers-reduced-motion:no-preference){html:not([data-br-reduced-motion="on"]) .br72-akari-grand .br72-lit{animation:br72-light-arrive 1s ease-out both;animation-delay:var(--br72-delay);}html:not([data-br-reduced-motion="on"]) .br72-akari-grand .br72-spark{animation:br72-light-spark 1.8s ease-in-out 2;animation-delay:var(--br72-delay);}}
@keyframes br72-light-arrive{from{opacity:.4}to{opacity:1}}
@keyframes br72-light-spark{0%,100%{opacity:.65}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.br72-akari-grand,.br72-akari-grand *{animation:none!important;transition:none!important;}}
html[data-br-reduced-motion="on"] .br72-akari-grand,html[data-br-reduced-motion="on"] .br72-akari-grand *{animation:none!important;transition:none!important;}

/* Expansion73: luminous Aquarium, paired copy and finite, optional motion. */
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br-correct-title {font-size:clamp(34px,5vw,64px)!important;overflow-wrap:normal!important;}
html body .br-success-overlay.br73-aquarium-grand[data-br-completion71="1"][data-br-completion-portal="1"] {--ak-bg:#eaf7f1;--ak-ink:#123d40;--ak-muted:#386064;--ak-line:#7eaaa8;background:radial-gradient(ellipse at 50% 20%,#6ce9df55,transparent 65%),var(--ak-bg)!important;}
html[data-br-puzzle-appearance="dark"] body .br-success-overlay.br73-aquarium-grand[data-br-completion71="1"][data-br-completion-portal="1"] {--ak-bg:#03272e;--ak-ink:#fff0cb;--ak-muted:#e1eedd;--ak-line:#91bcb5;}
@media(prefers-color-scheme:dark){html:not([data-br-puzzle-appearance="light"]) body .br-success-overlay.br73-aquarium-grand[data-br-completion71="1"][data-br-completion-portal="1"] {--ak-bg:#03272e;--ak-ink:#fff0cb;--ak-muted:#e1eedd;--ak-line:#91bcb5;}}
html body .br-success-overlay.br73-aquarium-grand[data-br-completion71="1"][data-br-actual-board="1"] .br60-success-actions button:last-child {background:#9cebe0!important;color:#083c42!important;border-color:#ccfff5!important;}
.br73-aquarium-grid {height:min(32vh,280px);width:auto;max-width:100%;overflow:visible;filter:drop-shadow(0 0 12px #40d6cb44);}
.br73-glass-back{fill:#073d48;stroke:#91dbd9;stroke-width:2;}
.br73-cell-guide{fill:none;stroke:#c4fff1;stroke-opacity:.13;stroke-width:.6;}
.br73-tank-edge{fill:none;stroke:#d3fff1;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 2px #84edff);}
.br73-surface{fill:none;stroke:#d6fff4;stroke-width:1.8;filter:drop-shadow(0 0 3px #b9fff7);}
.br73-bubble{fill:#a5ffff25;stroke:#bffff1;stroke-width:.7;}
.br73-total{fill:var(--ak-ink);font:600 12px system-ui,sans-serif;}
@media(prefers-reduced-motion:no-preference){html:not([data-br-reduced-motion="on"]) .br73-bubble{animation:br73-rise 4s linear 3;animation-delay:var(--delay);animation-fill-mode:both;}html:not([data-br-reduced-motion="on"]) .br73-surface{animation:br73-settle 1.4s ease-out 1;}}
@keyframes br73-rise{0%{transform:translateY(0);opacity:0}15%{opacity:.9}85%{opacity:.65}100%{transform:translateY(var(--rise));opacity:0}}
@keyframes br73-settle{0%{opacity:.4}35%{opacity:1}65%{opacity:.6}100%{opacity:1}}
@media(max-width:480px){.br73-aquarium-grid{height:min(29vh,210px);}html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br71-completion-note{letter-spacing:.015em!important;}}
@media(max-height:500px){html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-completion-portal="1"]{max-height:calc(100dvh - 20px)!important;overflow-y:auto!important;}.br73-aquarium-grid,.br72-akari-grid{height:110px!important;}}

/* Single-word celebrations: no subtitle, on every completion card. */
html body .br-success-overlay[data-br-completion71="1"] .br71-completion-note{display:none!important;}
html body .br-success-overlay.br72-akari-grand[data-br-completion71="1"][data-br-actual-board="1"] .br-correct-heading{margin-bottom:26px!important;}

/* Expansion74: full catalog celebrations. Native buttons and outcome semantics stay intact. */
html body .br-success-overlay.br74-grand[data-br-completion71="1"][data-br-completion-portal="1"]{
 --br74-bg:#fbf7ed;--br74-ink:#203b39;--br74-muted:#546663;--br74-line:#aebbb0;
 box-sizing:border-box;width:min(680px,calc(100vw - 24px))!important;max-width:680px!important;
 padding:22px 30px 28px!important;border:1px solid var(--br74-line)!important;border-radius:28px!important;
 background:var(--br74-bg)!important;color:var(--br74-ink)!important;box-shadow:0 22px 90px #092b3455!important;
 display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;text-align:center!important;
 isolation:isolate;animation:none!important;
}
html body .br74-grand[data-br-completion71="1"] .br71-completion-art{
 order:0!important;display:block!important;width:100%!important;max-width:none!important;height:auto!important;
 max-height:none!important;aspect-ratio:auto!important;flex-shrink:0!important;margin:0 0 12px!important;
 background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;
}
html body .br74-grand[data-br-completion71="1"] .br71-completion-art[hidden]{display:none!important;}
html body .br74-grand[data-br-completion71="1"] .br71-completion-art img{
 display:block!important;width:100%!important;height:auto!important;max-height:min(34vh,310px)!important;
 object-fit:contain!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
}
html body .br74-grand[data-br-completion71="1"] .br71-completion-name{
 order:1!important;color:var(--br74-muted)!important;font:700 12px/1.5 system-ui,sans-serif!important;
 text-transform:uppercase!important;letter-spacing:.17em!important;margin:0 0 8px!important;overflow-wrap:anywhere;
}
html body .br74-grand[data-br-completion71="1"] .br-correct-heading{order:2!important;display:block!important;margin:0 0 24px!important;}
html body .br74-grand[data-br-completion71="1"] .br-correct-title{
 color:var(--br74-ink)!important;font:500 clamp(30px,5.8vw,62px)/1.12 Georgia,serif!important;
 text-transform:none!important;letter-spacing:-.035em!important;overflow-wrap:anywhere;
}
html body .br74-grand[data-br-completion71="1"] :is(.br-success-stars,.br71-completion-note),html body .br74-grand[data-br-completion71="1"]>i{display:none!important;}
html body .br74-grand[data-br-completion71="1"] .br60-success-actions{
 order:4!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 width:100%!important;gap:12px!important;margin:0!important;
}
html body .br74-grand[data-br-completion71="1"] .br60-success-actions button{
 box-sizing:border-box;min-width:0!important;min-height:48px!important;width:100%!important;height:auto!important;
 padding:12px 10px!important;border:1px solid var(--br74-line)!important;border-radius:14px!important;
 color:var(--br74-ink)!important;background:transparent!important;box-shadow:none!important;
 font:600 16px/1.35 system-ui,sans-serif!important;white-space:normal!important;
}
html body .br74-grand[data-br-completion71="1"] .br60-success-actions button:last-child{
 background:var(--br-accent,#245c42)!important;color:var(--br-control-fg,#fff)!important;border-color:transparent!important;
}
html body .br74-grand[data-br-completion71="1"] button:focus-visible{outline:3px solid #528bc5!important;outline-offset:3px!important;}
html body .br74-grand[data-br-completion71="1"] button:disabled{opacity:.5!important;cursor:not-allowed;}
html[data-br-puzzle-appearance="dark"] body .br74-grand[data-br-completion71="1"][data-br-completion-portal="1"]{
 --br74-bg:#132b30;--br74-ink:#fff0c7;--br74-muted:#c2d3d0;--br74-line:#617d7c;box-shadow:0 22px 90px #0009!important;
}
@media(prefers-color-scheme:dark){html:not([data-br-puzzle-appearance="light"]) body .br74-grand[data-br-completion71="1"][data-br-completion-portal="1"]{--br74-bg:#132b30;--br74-ink:#fff0c7;--br74-muted:#c2d3d0;--br74-line:#617d7c;}}
@media(max-width:480px){html body .br74-grand[data-br-completion71="1"][data-br-completion-portal="1"]{padding:16px 16px 20px!important;border-radius:22px!important;}html body .br74-grand[data-br-completion71="1"] .br60-success-actions{gap:8px!important;}html body .br74-grand[data-br-completion71="1"] .br-correct-heading{margin-bottom:18px!important;}}
@media(max-height:500px){html body .br74-grand[data-br-completion71="1"] .br71-completion-art img{max-height:110px!important;}html body .br74-grand[data-br-completion71="1"] .br-correct-title{font-size:30px!important;}}
@keyframes br74-arrive{from{opacity:.2}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){html:not([data-br-reduced-motion="on"]) .br74-grand .br71-completion-art img{animation:br74-arrive .65s ease-out 1;}}
@media(prefers-reduced-motion:reduce){.br74-grand,.br74-grand *{animation:none!important;transition:none!important;}}
html[data-br-reduced-motion="on"] .br74-grand,html[data-br-reduced-motion="on"] .br74-grand *{animation:none!important;transition:none!important;}

/* brainistry-refresh75.css */
/* Expansion75: viewport-safe, artwork-free celebrations and lightweight controls. */
.br75-celebration-layer{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:16px;box-sizing:border-box;pointer-events:none;overflow:hidden;background:rgb(12 20 40 / .22)}
html body .br75-celebration-layer .br-success-overlay.br74-grand.br75-celebration-card[data-br-completion71="1"][data-br-completion-portal="1"]{position:relative!important;inset:auto!important;transform:none!important;margin:0!important;max-height:calc(100vh - 32px)!important;max-height:calc(100dvh - 32px)!important;max-width:min(560px,100%)!important;width:100%!important;overflow:auto!important;pointer-events:auto;box-sizing:border-box;padding:28px 20px!important;isolation:isolate;border-radius:28px!important;background:var(--br-panel,#fffdf6)!important;color:var(--br-ink,#243345)!important}
.br75-celebration-card .br71-completion-art,.br75-celebration-card .br74-grand-art,.br75-celebration-card .br72-grand-art{display:none!important}
.br75-celebration{height:110px;position:relative;overflow:hidden;pointer-events:none}
.br75-celebration i{position:absolute;left:var(--x);color:var(--tone);font-style:normal}
.br75-celebration-card .br-correct-title{position:relative;isolation:isolate;overflow:visible!important;z-index:1}
.br75-star{position:absolute;left:50%;top:50%;width:28px;height:28px;background:#e5ad36;clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%);pointer-events:none;z-index:-1;opacity:0;animation:br75-shoot 1.8s ease-out 1 both}
.br75-star-left{--dx:clamp(-130px,-25vw,-80px);--dy:-105px;--turn:-25deg}
.br75-star-up{--dx:0px;--dy:-135px;--turn:0deg}
.br75-star-right{--dx:clamp(80px,25vw,130px);--dy:-105px;--turn:25deg}
@keyframes br75-shoot{0%{transform:translate(-50%,-50%) scale(.2);opacity:0}12%{opacity:1}75%{opacity:1}100%{transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(var(--turn)) scale(1);opacity:0}}
@media(prefers-reduced-motion:reduce){.br75-celebration-card .br75-star{display:none!important}}
html[data-br-reduced-motion="on"] .br75-celebration-card .br75-star{display:none!important}

.br75-confetti{top:0;width:8px;height:14px;background:var(--tone);border-radius:2px;animation:br75-fall 3s ease-out 2;animation-delay:calc(var(--i)*-.12s)}
.br75-firework{bottom:6px;width:6px;height:6px;border-radius:50%;background:var(--tone);animation:br75-burst 2.5s ease-out 2;animation-delay:calc(var(--i)*-.65s)}
@keyframes br75-pop{0%{transform:scale(.15) rotate(-25deg);opacity:0}25%{transform:scale(1.3);opacity:1}65%{transform:scale(1) rotate(15deg);opacity:1}100%{transform:translateY(-45px) scale(.6);opacity:0}}
@keyframes br75-fall{0%{transform:translateY(-20px) rotate(0deg);opacity:0}15%{opacity:1}100%{transform:translateY(120px) rotate(240deg);opacity:0}}
@keyframes br75-burst{0%{transform:translateY(25px);box-shadow:0 10px var(--tone);opacity:0}20%{opacity:1}45%{transform:translateY(-65px);box-shadow:0 8px var(--tone)}70%,90%{transform:translateY(-65px);background:transparent;box-shadow:0 -30px var(--tone),22px -22px var(--tone),30px 0 var(--tone),22px 22px var(--tone),0 30px var(--tone),-22px 22px var(--tone),-30px 0 var(--tone),-22px -22px var(--tone);opacity:1}100%{transform:translateY(-60px);opacity:0}}
html[data-br-puzzle-appearance="dark"] .br75-celebration-card{background:#253248!important;color:#f4f1e8!important}
.br75-word-error{display:block!important;padding:12px 16px;border:2px solid #ad4055;border-radius:12px;background:#fff0ed;color:#7b2034;font-weight:750;min-height:24px}
html[data-br-puzzle-appearance="dark"] .br75-word-error{background:#492a38;color:#ffe7dc;border-color:#ee98aa}
#arafGrid{grid-template-columns:repeat(var(--araf-columns,4),minmax(0,1fr));width:min(100%,640px)}
#arafGrid .araf-cell{aspect-ratio:1;min-width:0;min-height:40px;background:var(--region-color,#e7e8e4)!important;color:#172539!important;border:1px solid #65707d;position:relative}
#arafGrid .araf-cell small{font-size:clamp(15px,3vw,24px);color:#172539!important;background:rgb(255 255 255 / .75);border-radius:50%;padding:3px;min-width:1.1em}
#arafGrid .araf-empty-clue{visibility:hidden}
#arafPalette{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
#arafPalette button{background:var(--region-color,#f0f1ee);color:#172539;min-width:44px;min-height:44px;border:2px solid #71808d}
#arafPalette button[aria-pressed="true"]{outline:3px solid var(--br-accent,#315cb1);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.br75-celebration i{animation:none!important}.br75-firework{display:none}.br75-star{transform:none;opacity:1}.br75-confetti{top:70%}}
html[data-br-reduced-motion="on"] .br75-celebration i{animation:none!important}

.br-play-shortcuts{text-align:center;display:flex;justify-content:center}

/* Shared aquarium water treatment, including the retained quick-play adapter. */
.br75-aqua-tile{position:relative;overflow:hidden;padding:0!important;background:#07677c!important}.br75-aqua-tile-art{position:absolute;inset:0;pointer-events:none}.br75-aqua-tile-art svg{display:block;width:100%;height:100%}

.br75-network-lamp{display:flex;justify-content:center;margin:0 auto 10px;pointer-events:none}.br75-network-lamp svg{width:140px;height:158px;max-width:40vw}

/* Explicit paired palette prevents inherited grand-banner theme collisions. */
html body .br75-celebration-layer .br-success-overlay.br74-grand.br75-celebration-card[data-br-completion71="1"][data-br-completion-portal="1"]{--br75-bg:#fffdf6;--br75-ink:#243345;--br75-heading:#805600;--br75-muted:#435950;background:var(--br75-bg)!important;color:var(--br75-ink)!important}
html[data-br-puzzle-appearance="dark"] body .br75-celebration-layer .br-success-overlay.br74-grand.br75-celebration-card[data-br-completion71="1"][data-br-completion-portal="1"]{--br75-bg:#253248;--br75-ink:#f4f1e8;--br75-heading:#ffe099;--br75-muted:#d2e2da}
html body .br75-celebration-layer .br-success-overlay.br74-grand.br75-celebration-card[data-br-completion71="1"][data-br-completion-portal="1"] .br-correct-title{color:var(--br75-heading)!important;background:none!important;-webkit-text-fill-color:var(--br75-heading)!important;text-shadow:none!important}
html body .br75-celebration-layer .br-success-overlay.br74-grand.br75-celebration-card[data-br-completion71="1"][data-br-completion-portal="1"] .br71-completion-name{color:var(--br75-muted)!important}

/* Expansion76: controls stay above artwork; native Aquarium input stays above water. */
html body.br-hybrid .br-site-header{position:relative!important;z-index:1000!important;overflow:visible!important;isolation:isolate}
html body.br-hybrid .br-account-menu{position:relative;z-index:1001;overflow:visible!important}
html body.br-hybrid .br-account-menu[open]>.br-account-links{z-index:1002!important}
html body.br-hybrid #arafPalette button{background:var(--region-color,#edf1f5)!important;color:#172539!important}
#board[data-puzzle-family="aquarium"]>.cells{z-index:2;pointer-events:auto}
#board[data-puzzle-family="aquarium"]>.cells>button{width:100%;height:100%;touch-action:manipulation;pointer-events:auto}
#board[data-puzzle-family="aquarium"]>svg{z-index:0;pointer-events:none!important}
#board[data-puzzle-family="aquarium"]>svg *{pointer-events:none!important}
.br75-celebration-card:not([data-br-motion-ready="1"]) .br75-star,.br75-celebration-card:not([data-br-motion-ready="1"]) .br75-celebration i{animation-play-state:paused!important}
.br75-celebration-card[data-br-motion-ready="1"] .br75-star{animation:br75-shoot 2.6s ease-out 1 both}
.br75-celebration-card .br75-celebration{flex-shrink:0;min-height:110px}

/* Expansion79: content-sized recommendations, accessible actions and consistent surfaces. */
html[data-br-skin] body.br-hybrid #homePreviewRail .br-preview-card{height:auto!important;min-width:0;overflow:visible!important;display:flex!important;flex-direction:column;gap:10px}
html[data-br-skin] body.br-hybrid #homePreviewRail .br-preview-card img{display:block;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
html[data-br-skin] body.br-hybrid .br79-card-action{display:flex!important;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-height:48px;padding:12px;border:2px solid currentColor;border-radius:12px;font-weight:800;text-decoration:none}
html[data-br-skin] body.br-hybrid .br-block-fill .spatial-grid button[data-piece-id]{background:linear-gradient(145deg,#ffffff55,transparent 45%,#0002),var(--br-fill-piece-color)!important;box-shadow:inset 0 3px 0 #ffffff66,inset 0 -3px 0 #0002!important}
html[data-br-skin] body.br-hybrid [data-memory-kind="match"] .brain-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:520px!important;gap:8px!important;margin-inline:auto!important}
html[data-br-skin] body.br-hybrid [data-memory-kind="match"] .brain-grid button{min-width:0!important;min-height:44px!important;aspect-ratio:1;padding:6px!important}
html[data-br-skin] body.br-hybrid #arafPalette{position:static!important;display:flex!important;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px auto}
html[data-br-skin] body.br-hybrid .br-generate-row{justify-content:center!important;margin-inline:auto!important;max-width:100%;flex-wrap:wrap!important}
html[data-br-reduced-motion=on] :is(.br29-target,.br29-support){animation:none!important}

.br79-line-clear{outline:3px solid #ffd85a;outline-offset:-3px;animation:br79-line-clear .6s ease-out both}
@keyframes br79-line-clear{from{background:#ffe59c;box-shadow:inset 0 0 20px #fff}to{box-shadow:inset 0 0 0 transparent}}
@media(prefers-reduced-motion:reduce){.br79-line-clear{animation:none}}
html[data-br-reduced-motion=on] .br79-line-clear{animation:none}

/* Expansion79 Draft5: the navigation anchor must not occupy a form grid cell. */
html[data-br-skin] body.br-hybrid .br-customize{grid-template-columns:minmax(0,1fr)!important;justify-items:center}
html[data-br-skin] body.br-hybrid .br-customize>h2{width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere}
html[data-br-skin] body.br-hybrid .br-customize>#pickPuzzle{justify-self:center}
html[data-br-skin] body.br-hybrid .br-customize>.setup{width:100%;min-width:0;box-sizing:border-box;grid-template-columns:repeat(2,minmax(0,1fr));scroll-margin-top:90px}
html[data-br-skin] body.br-hybrid .br-customize .br-selection-actions{width:100%;justify-content:center;flex-wrap:wrap}
html[data-br-skin] body.br-hybrid .br-customize .br-selection-actions>button{box-sizing:border-box;min-width:0;flex:1 1 180px;min-height:48px;white-space:normal}
@media(max-width:600px){html[data-br-skin] body.br-hybrid .br-customize>.setup{grid-template-columns:minmax(0,1fr)}html[data-br-skin] body.br-hybrid .br-customize .br-selection-actions{flex-direction:column}html[data-br-skin] body.br-hybrid .br-customize .br-selection-actions>button{flex:auto;width:100%}}

/* Recommendation artwork must reserve its full portrait height. Legacy hybrid
   wrappers used 165/140px, allowing the image to cover the action links. */
html body.br-hybrid #homePreviewRail .br-preview-card > div {
  height:auto!important;min-height:0;flex:0 0 auto;box-sizing:border-box;
  display:block;overflow:hidden;
}
html body.br-hybrid #homePreviewRail .br-preview-card > div > img {
  display:block;width:100%!important;height:auto!important;max-height:none!important;
  aspect-ratio:3/4;object-fit:contain;
}
html body.br-hybrid #homePreviewRail .br-preview-card > a {
  flex:0 0 auto;position:relative;box-sizing:border-box;margin-top:0;
}

