/* 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;
}

