/* Baker Bash: what every page under this roof shares. The curtain between pages
   (js/suite.js closes it, js/curtain.js paints it on arrival) and the "back to Baker Bash" button. */

/* the curtain between pages */
.suite-curtain { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; opacity: 0; transition: opacity 0.42s ease; }
.suite-curtain.in { opacity: 1; }
/* grown from the thing that was pressed */
.suite-curtain.iris { opacity: 1; clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%)); transition: clip-path 0.52s cubic-bezier(0.6, 0, 0.3, 1); }
.suite-curtain.iris.in { clip-path: circle(150vmax at var(--cx, 50%) var(--cy, 50%)); }
.sc-name { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 20px; text-align: center; color: #fff; font-family: 'Luckiest Guy', 'Nunito', system-ui, sans-serif; transform: scale(0.92); opacity: 0; transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) 0.08s, opacity 0.3s 0.08s; }
.suite-curtain.in .sc-name { transform: none; opacity: 1; }
.sc-name span { font-size: 54px; line-height: 1.1; }
.sc-name b { font-size: clamp(34px, 8vw, 56px); font-weight: 900; font-synthesis: none; letter-spacing: 0.03em; line-height: 1; }
.sc-name.dark { color: #2a2440; }
/* Baker Bash's own curtain */
.suite-curtain.hub .sc-name b { color: #ffd23c; text-transform: uppercase; letter-spacing: 0.04em; text-shadow: 0 0.05em 0 #ff7a1f, 0 0.1em 0 #d9305f, 0 0.22em 0.4em rgba(0, 0, 0, 0.5); }

/* back to Baker Bash: on every game's title screen */
.bb-home { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 16px 5px 9px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 24px; background: rgba(14, 8, 24, 0.72); color: #fff; font: 800 13px/1 'Nunito', system-ui, sans-serif; cursor: pointer; pointer-events: auto; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); -webkit-tap-highlight-color: transparent; transition: transform 0.18s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.2s, border-color 0.2s; }
.bb-home svg { width: 22px; height: 22px; flex: none; padding: 5px; box-sizing: content-box; border-radius: 50%; background: linear-gradient(180deg, #ffe08a, #ffc93c); color: #2a1240; transition: transform 0.18s cubic-bezier(0.3, 1.5, 0.5, 1); }
.bbh-t { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; white-space: nowrap; }
.bbh-t b { font: 900 17px/1 'Luckiest Guy', 'Nunito', system-ui, sans-serif; font-synthesis: none; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 2px; }
.bbh-t b i { font-style: normal; color: #ffc93c; }
.bbh-t small { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.bb-home:hover { background: rgba(30, 16, 52, 0.85); border-color: rgba(255, 255, 255, 0.34); }
.bb-home:hover svg { transform: translateX(-3px); }
.bb-home:active { transform: scale(0.95); }
.bb-home:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bb-home.light { background: rgba(255, 255, 255, 0.82); border-color: rgba(42, 36, 64, 0.12); color: #2a2440; box-shadow: 0 6px 18px rgba(60, 40, 120, 0.14); }
.bb-home.light:hover { background: #fff; border-color: rgba(42, 36, 64, 0.26); }
.bb-home.light .bbh-t b i { color: #e0407a; }
.bb-home.light:focus-visible { outline-color: #2f7dff; }
body.theme-horror .bb-home { background: rgba(10, 4, 4, 0.78); border-color: rgba(255, 120, 120, 0.2); }

@media (prefers-reduced-motion: reduce) {
  .suite-curtain, .suite-curtain.iris, .sc-name, .bb-home, .bb-home svg { transition: none; }
  .suite-curtain.iris { clip-path: none; }
}
