/* Blue Serif Christmas Cracker – "The Case of the Missing Star" concept v2 (our light blue).
   Colours and fonts are CSS variables so Elementor controls can override them. */

@font-face { font-family: "Work Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/work-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/work-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/work-sans-latin-600-normal.woff2) format("woff2"); }
/* Martel, as used on blueserif.co.uk. Included so the plugin does not depend on the theme loading it. */
@font-face { font-family: "Martel"; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/martel-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Martel"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/martel-latin-400-normal.woff2) format("woff2"); }

.bsc, .bsc-modal {
	--bsc-bg: #232d62;        /* navy */
	--bsc-text: #ffffff;
	--bsc-primary: #4b74c2;   /* our light blue */
	--bsc-sky: #8fc3ea;       /* ribbon blue */
	--bsc-accent: #e9185c;    /* cracker pink-red */
	--bsc-pink: #f1989b;
	--bsc-mint: #66cbb3;
	--bsc-deep: #2f3b82;      /* toy circle */
	--bsc-panel: #fafafb;     /* letter */
	--bsc-ink: #232d62;
	--bsc-radius: 14px;
	--bsc-pad: clamp(18px, 4vw, 64px);
	--bsc-display: "Martel", Georgia, "Times New Roman", serif;
	--bsc-sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-family: var(--bsc-sans);
}
.bsc {
	background: var(--bsc-bg); color: var(--bsc-text);
	padding: clamp(28px, 5vw, 64px) var(--bsc-pad);
	font-size: 17px; line-height: 1.6; letter-spacing: .01em;
	max-width: none; width: 100%; margin: 0 auto; position: relative; overflow: hidden; box-sizing: border-box; text-align: center;
}
.bsc *, .bsc *::before, .bsc *::after, .bsc-modal * { box-sizing: border-box; }
.bsc h2, .bsc h3, .bsc h4 { color: inherit; margin: 0; }
.bsc p { margin: 0 0 .8em; }
.bsc img { max-width: 100%; height: auto; }

/* Full browser width: breaks out of a boxed Elementor container. JS sets the exact width and offset;
   the vw values are the fallback before it runs. */
.bsc--full { width: var(--bsc-vw, 100vw); max-width: none; margin-left: calc(50% - var(--bsc-vw, 100vw) / 2); margin-right: 0; }

/* Shared type styles */
.bsc-caps { font-family: var(--bsc-sans); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; line-height: 1.35; }
.bsc-disp { font-family: var(--bsc-display); font-weight: 300; letter-spacing: -.01em; line-height: 1.12; }
.bsc em, .bsc i, .bsc-modal em, .bsc-modal i { font-style: normal; } /* no italics anywhere */

/* ---------- Header ---------- */
.bsc-head { max-width: 720px; margin: 0 auto 26px; }
.bsc .bsc-welcome { font-size: clamp(18px, 2.2vw, 26px); margin-bottom: 10px; }
.bsc .bsc-reminder { font-size: 15px; line-height: 1.45; margin: 0; opacity: .95; }

/* ---------- Test toolbar ---------- */
.bsc-test { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; text-align: left; background: #fff3cd; color: #5c4100;
	border: 2px dashed var(--bsc-accent); border-radius: 10px; padding: 10px 14px; margin-bottom: 28px; font-size: 14px; }
.bsc-test strong { background: var(--bsc-accent); color: #fff; padding: 2px 8px; border-radius: 4px; letter-spacing: .05em; }
.bsc-test select { font-size: 14px; padding: 4px; }
.bsc-test-note { flex-basis: 100%; opacity: .8; }

/* ---------- 12 day circles ---------- */
.bsc-cal { list-style: none; margin: 0 auto 30px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(6px, 1.2vw, 14px); max-width: 1000px; }
.bsc .bsc-tile, .bsc .bsc-tile:focus { width: clamp(38px, 5.2vw, 64px); height: clamp(38px, 5.2vw, 64px); border-radius: 50%; border: 0; padding: 0; min-width: 0;
	background: rgba(255,255,255,.2); color: rgba(255,255,255,.75); font-family: var(--bsc-sans); font-weight: 600; font-size: clamp(16px, 2.2vw, 28px); line-height: 1;
	cursor: pointer; position: relative; transition: transform .15s, background .15s; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; }
.bsc .bsc-tile:hover:not(:disabled), .bsc .bsc-tile:focus-visible { background: rgba(255,255,255,.34); color: #fff; transform: translateY(-2px); outline: none; }
.bsc .bsc-tile:focus-visible { box-shadow: 0 0 0 3px var(--bsc-sky); }
.bsc .bsc-tile:disabled, .bsc .bsc-tile:disabled:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.35); cursor: not-allowed; transform: none; }
.bsc .bsc-tile.is-selected, .bsc .bsc-tile.is-selected:hover:not(:disabled) { background: var(--bsc-primary); color: #fff; }
.bsc .bsc-tile.is-today:not(.is-selected) { box-shadow: inset 0 0 0 2px var(--bsc-sky); }
.bsc-tile.is-entered::after { content: ''; position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--bsc-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3 3 7-7' stroke='%23232d62' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- "day one" ---------- */
.bsc .bsc-dayname { font-size: 50px; line-height: 1.2; margin: 0; }
.bsc-dayrow { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 44px); flex-wrap: wrap; }

/* ---------- The cracker ---------- */
.bsc-rig { position: relative; container-type: inline-size; aspect-ratio: 1672 / 500; margin: 6px max(calc(var(--bsc-pad) * -1), calc((100% - 2400px) / 2)) 0; }
.bsc-rig img { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.bsc-ck-closed, .bsc-ck-l, .bsc-ck-r { left: 0; top: 2%; width: 100%; }
.bsc-ck-closed { transform-origin: 50% 50%; }
/* The two halves are the same picture, torn down the middle with a zigzag. */
.bsc-ck-l, .bsc-ck-r { opacity: 0; will-change: transform; }
.bsc-ck-l { clip-path: polygon(0 0, 50% 0, 51.2% 12%, 48.8% 22%, 51.2% 32%, 48.8% 42%, 51.2% 52%, 48.8% 62%, 51.2% 72%, 48.8% 82%, 51.2% 92%, 50% 100%, 0 100%); transform-origin: 0 50%; }
.bsc-ck-r { clip-path: polygon(100% 0, 50% 0, 51.2% 12%, 48.8% 22%, 51.2% 32%, 48.8% 42%, 51.2% 52%, 48.8% 62%, 51.2% 72%, 48.8% 82%, 51.2% 92%, 50% 100%, 100% 100%); transform-origin: 100% 50%; }

.bsc .bsc-pullzone, .bsc .bsc-pullzone:hover, .bsc .bsc-pullzone:focus, .bsc .bsc-pullzone:active {
	position: absolute; inset: 0; z-index: 10; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
	color: #fff !important; cursor: pointer; touch-action: pan-y; border-radius: 0; text-transform: none; }
.bsc .bsc-pullzone:focus-visible .bsc-click { box-shadow: 0 0 0 4px var(--bsc-sky); }

/* CLICK circle */
.bsc-click { position: absolute; left: 50%; top: 50%; --d: clamp(128px, 12.5cqw, 250px); width: var(--d); height: var(--d); transform: translate(-50%, -50%); border-radius: 50%;
	background: var(--bsc-primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--d) * .08);
	transition: transform .25s cubic-bezier(.3,1.5,.5,1), opacity .25s; animation: bsc-pulse 2.4s ease-in-out infinite; }
.bsc-click svg { width: calc(var(--d) * .16); height: auto; margin-bottom: 2px; flex: none; }
.bsc-click-text { display: block; max-width: calc(var(--d) * .8); font-family: var(--bsc-sans); font-weight: 500; font-style: normal; text-transform: uppercase;
	letter-spacing: .05em; font-size: calc(var(--d) * .084); line-height: 1.28; text-wrap: balance; overflow-wrap: normal; }
.bsc-pullzone:hover .bsc-click, .bsc-env:hover .bsc-click { transform: translate(-50%, -50%) scale(1.07); }
@keyframes bsc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(143,195,234,.55); } 60% { box-shadow: 0 0 0 18px rgba(143,195,234,0); } }

/* 1. Tension */
.bsc-scene.is-tension .bsc-click { opacity: 0; transform: translate(-50%, -50%) scale(.6); animation: none; }
.bsc-scene.is-tension .bsc-ck-closed { animation: bsc-strain .75s ease-in forwards; }
@keyframes bsc-strain { 0% { transform: none; } 20% { transform: scaleX(1.012) translateY(1px); } 35% { transform: scaleX(1.008) translateY(-1px) rotate(.2deg); } 55% { transform: scaleX(1.024) translateY(2px) rotate(-.3deg); } 70% { transform: scaleX(1.02) translateY(-2px) rotate(.3deg); } 100% { transform: scaleX(1.045); } }

/* 2. Bang */
.bsc-scene.is-open .bsc-ck-closed { opacity: 0; }
.bsc-scene.is-open .bsc-ck-l, .bsc-scene.is-open .bsc-ck-r { opacity: 1; transition: transform .9s cubic-bezier(.18,1.4,.4,1), opacity .05s; }
.bsc-scene.is-open .bsc-ck-l { transform: translateX(-12cqw) rotate(-4deg); }
.bsc-scene.is-open .bsc-ck-r { transform: translateX(12cqw) rotate(4deg); }
.bsc-scene.is-bang .bsc-rig { animation: bsc-shake .45s linear; }
@keyframes bsc-shake { 10%, 50%, 90% { translate: -7px 3px; } 30%, 70% { translate: 7px -3px; } 100% { translate: 0 0; } }
.bsc-flash { position: absolute; left: 50%; top: 50%; width: 26cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; z-index: 5; pointer-events: none;
	background: radial-gradient(circle, #fff 0%, rgba(214,235,255,.9) 25%, rgba(143,195,234,.35) 50%, rgba(143,195,234,0) 70%); opacity: 0; transform: scale(0); }
.bsc-scene.is-bang .bsc-flash { animation: bsc-flash .6s ease-out forwards; }
@keyframes bsc-flash { 0% { opacity: 1; transform: scale(.2); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(2.6); } }

/* Sparks and confetti */
.bsc-fx { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 7; pointer-events: none; }
.bsc-spark { position: absolute; left: -1.5px; top: -8px; width: 3px; height: 16px; border-radius: 3px; background: var(--c);
	box-shadow: 0 0 6px var(--c), 0 0 14px var(--c); opacity: 0; animation: bsc-spark var(--life) cubic-bezier(.1,.75,.3,1) var(--delay) forwards; }
.bsc-spark.is-small { height: 8px; top: -4px; width: 2px; }
@keyframes bsc-spark { 0% { opacity: 1; transform: translate(0, 0) rotate(var(--rot)) scaleY(1.8); } 70% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 40px)) rotate(var(--rot)) scaleY(.2); } }
.bsc-confetti { position: absolute; left: -5px; top: -7px; width: 10px; height: 14px; background: var(--c); border-radius: 1px; opacity: 0;
	animation: bsc-confetti var(--life) cubic-bezier(.15,.6,.4,1) var(--delay) forwards; }
.bsc-confetti:nth-child(3n) { width: 6px; height: 22px; border-radius: 3px; }
@keyframes bsc-confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); }
	45% { opacity: 1; transform: translate(var(--dx), calc(var(--dy) - 30px)) rotate(calc(var(--spin) * .5)); }
	100% { opacity: 0; transform: translate(calc(var(--dx) * 1.15), calc(var(--dy) + 180px)) rotate(var(--spin)); } }

/* 3. Toy circle */
.bsc-toyc { --d: clamp(170px, 21cqw, 280px); width: var(--d); height: var(--d); border-radius: 50%; background: var(--bsc-deep); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--d) * .07) calc(var(--d) * .1) calc(var(--d) * .1); text-align: center; overflow: hidden; }
.bsc-toyc .bsc-toy-img { display: block; width: calc(var(--d) * .6); height: calc(var(--d) * .46); object-fit: contain; position: static; margin-bottom: calc(var(--d) * .03); flex: none;
	filter: drop-shadow(0 0 calc(var(--d) * .05) rgba(255,255,255,.4)); /* lifts the dark toys off the navy */ }
.bsc-toyc .bsc-toy-img svg { width: 100%; height: 100%; }
.bsc-toyc strong { font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(12px, 1.35cqw, 17px); line-height: 1.2; }
.bsc-toyc span.bsc-toy-desc { font-size: clamp(11px, 1.1cqw, 14px); line-height: 1.3; margin-top: calc(var(--d) * .03); opacity: .92; }
.bsc-rig .bsc-toyc { position: absolute; left: 50%; top: 52%; translate: -50% -50%; z-index: 6; opacity: 0; transform: scale(0); }
.bsc-scene.is-toy .bsc-rig .bsc-toyc { animation: bsc-toy .9s cubic-bezier(.2,1.5,.4,1) forwards; }
@keyframes bsc-toy { 0% { opacity: 1; transform: scale(.1) rotate(-40deg); } 60% { opacity: 1; transform: scale(1.1) rotate(5deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.bsc-toyc.is-badge { --d: clamp(124px, 12vw, 152px); flex: none; }
.bsc-toyc.is-badge strong { font-size: 10px; }
.bsc-toyc.is-badge span.bsc-toy-desc { font-size: 8.5px; }
.bsc-skip { margin: 6px 0 0; font-size: 14px; opacity: .8; min-height: 1.6em; }

/* ---------- Letter state ---------- */
.bsc-letter { animation: bsc-fadeup .6s ease-out both; }
.bsc-letter.is-static { animation: none; }
@keyframes bsc-fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bsc .bsc-env, .bsc .bsc-env:hover, .bsc .bsc-env:focus { display: block; position: relative; width: min(100%, 400px); aspect-ratio: 1000 / 614; margin: 46px auto 0; padding: 0 !important; border: 0 !important;
	background: transparent !important; box-shadow: none !important; cursor: pointer; border-radius: 0; text-transform: none; overflow: visible; perspective: 900px;
	transition: transform .25s; animation: bsc-nudge 4.5s ease-in-out 1.5s infinite; }
.bsc .bsc-env:hover { transform: translateY(-4px) rotate(-1.5deg); animation: none; }
.bsc .bsc-env:focus-visible { outline: 3px solid var(--bsc-sky); outline-offset: 8px; }
@keyframes bsc-nudge { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-2deg); } 94% { transform: rotate(2deg); } 97% { transform: rotate(-1deg); } }
.bsc-env > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; filter: drop-shadow(0 14px 24px rgba(0,0,0,.28)); transition: opacity .15s; z-index: 5; }
/* Drawn envelope underneath the photo: it takes over when the flap needs to open. */
.bsc-env-v { position: absolute; inset: 0; opacity: 0; filter: drop-shadow(0 14px 24px rgba(0,0,0,.28)); }
.bsc-env-v > * { position: absolute; inset: 0; }
.bsc-env-inside { background: #d9d2c3; }
.bsc-env-paper { inset: 6% 5% 4% !important; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05); z-index: 2; transform: translateY(0); }
.bsc-env-paper::before { content: ''; position: absolute; left: 12%; right: 12%; top: 16%; height: 46%;
	background: repeating-linear-gradient(#c9cce0 0 2px, transparent 2px 13px); opacity: .9; }
.bsc-env-pocket { z-index: 3; width: 100%; height: 100%; }
.bsc-env-flap { z-index: 4; transform-origin: 50% 0; background: linear-gradient(#f3eee4, #e9e2d5); clip-path: polygon(0 0, 100% 0, 49.5% 58%); }
.bsc-env-seal { z-index: 6; inset: auto !important; left: 49.5%; top: 55%; width: 13%; aspect-ratio: 1; translate: -50% -50%; border-radius: 46% 54% 50% 50%;
	background: radial-gradient(circle at 35% 30%, #34479a, #1c2a66 70%); color: #8fa0dc; font: 400 20px/1 Georgia, serif; display: flex; align-items: center; justify-content: center; }

.bsc-env.is-opening { animation: none; cursor: default; transform: none !important; }
.bsc-env.is-opening > img { opacity: 0; }
.bsc-env.is-opening .bsc-env-v { opacity: 1; }
.bsc-env.is-opening .bsc-env-seal { animation: bsc-seal .28s ease-in forwards; }
.bsc-env.is-opening .bsc-env-flap { animation: bsc-flap .5s cubic-bezier(.4,0,.3,1) .16s forwards; }
.bsc-env.is-opening .bsc-env-paper { animation: bsc-paper .55s cubic-bezier(.2,.9,.3,1) .55s forwards; }
@keyframes bsc-seal { to { transform: scale(1.5) rotate(25deg); opacity: 0; } }
@keyframes bsc-flap { 0% { transform: rotateX(0); z-index: 4; filter: none; } 49% { z-index: 4; } 50% { transform: rotateX(-90deg); z-index: 1; } 100% { transform: rotateX(-180deg); z-index: 1; filter: brightness(.93); } }
@keyframes bsc-paper { to { transform: translateY(-62%); } }

/* Clue */
.bsc-q { max-width: 760px; margin: clamp(24px, 3vw, 40px) auto 0; }
.bsc-level { display: inline-block; background: var(--bsc-primary); color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.bsc .bsc-question { font-family: var(--bsc-sans); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.9; margin: 0; }
.bsc .bsc-question.is-sub { font-size: clamp(16px, 1.8vw, 21px); }
.bsc .bsc-question.is-long { text-transform: none; letter-spacing: .01em; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; font-weight: 400; margin-bottom: .5em; }
.bsc .bsc-question.is-code { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: .08em; margin: .2em 0 .4em; }
.bsc-blank { display: inline-block; width: 3.8em; height: 1.55em; vertical-align: -.38em; margin: 0 .12em; }
.bsc-blank.c0 { background: var(--bsc-primary); } .bsc-blank.c1 { background: var(--bsc-pink); } .bsc-blank.c2 { background: var(--bsc-mint); } .bsc-blank.c3 { background: #fff; }
.bsc-nb { white-space: nowrap; margin: 0 .5em; }
.bsc-clue-img { display: block; max-width: min(100%, 560px); max-height: 560px; width: auto; margin: 18px auto; border-radius: var(--bsc-radius); }
.bsc .bsc-prize { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--bsc-sky); margin: 16px 0 0; }
.bsc .bsc-answer { display: inline-block; background: var(--bsc-mint); color: var(--bsc-ink); padding: 8px 18px; border-radius: 999px; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.bsc-note { opacity: .8; font-size: 15px; }

/* Form */
.bsc-form { max-width: 560px; margin: 22px auto 0; text-align: left; }
.bsc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .bsc-row { grid-template-columns: 1fr; } }
.bsc-field { margin: 0 0 12px !important; }
.bsc-field label { display: block; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.bsc .bsc-field input { width: 100%; padding: 13px 16px; border: 2px solid transparent; border-radius: 8px; font: 400 17px var(--bsc-sans); color: var(--bsc-ink); background: #fff; box-shadow: none; }
.bsc .bsc-field input:focus { border-color: var(--bsc-sky); outline: none; }
.bsc .bsc-field--answer input { text-align: center; font-size: 20px; font-weight: 500; letter-spacing: .04em; padding: 16px; }
.bsc-check { font-size: 14px; }
.bsc-check input { width: 18px; height: 18px; vertical-align: -3px; }
.bsc-legal { font-size: 13px; }
.bsc-legal a { color: var(--bsc-sky); }
.bsc-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.bsc-actions { text-align: center; margin-top: 18px; }

/* Outlined pill buttons */
.bsc .bsc-btn, .bsc .bsc-btn:focus { display: inline-block; background: transparent; color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 14px 34px;
	font: 500 clamp(16px, 1.6vw, 22px)/1.2 var(--bsc-sans); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s; box-shadow: none; }
.bsc .bsc-btn:hover, .bsc .bsc-btn:focus-visible { background: #fff; color: var(--bsc-ink); transform: translateY(-1px); outline: none; }
.bsc .bsc-btn:disabled { opacity: .6; cursor: wait; }
.bsc .bsc-link, .bsc .bsc-link:hover, .bsc .bsc-link:focus { background: none; border: 0; padding: 0; color: var(--bsc-sky); text-decoration: underline; cursor: pointer; font: inherit; text-transform: none; box-shadow: none; }
.bsc .bsc-test-reset, .bsc .bsc-test-reset:hover, .bsc .bsc-test-reset:focus { background: #fff; color: #5c4100; border: 1px solid #5c4100; border-radius: 6px; padding: 4px 10px; font-size: 14px; cursor: pointer; text-transform: none; letter-spacing: 0; }

.bsc-msg { margin: 14px auto 0; font-weight: 500; max-width: 560px; }
.bsc-msg:empty { display: none; }
.bsc-msg.is-ok { background: var(--bsc-mint); color: var(--bsc-ink); padding: 14px 18px; border-radius: var(--bsc-radius); }
.bsc-msg.is-miss { background: var(--bsc-pink); color: var(--bsc-ink); padding: 14px 18px; border-radius: var(--bsc-radius); }
.bsc-msg.is-err { color: #ffc2cd; }
.bsc-banner { background: var(--bsc-primary); color: #fff; border-radius: var(--bsc-radius); padding: 12px 18px; margin: 0 auto 24px; max-width: 720px; }
.bsc-loading { opacity: .8; padding: 40px 0; }
.bsc-error { background: var(--bsc-pink); color: var(--bsc-ink); border-radius: var(--bsc-radius); padding: 14px 16px; max-width: 560px; margin: 0 auto; }

/* Countdown / locked */
.bsc-pre .bsc-caps { font-size: clamp(16px, 1.8vw, 22px); }
.bsc-count { display: flex; justify-content: center; gap: clamp(8px, 2vw, 22px); margin: 22px 0; }
.bsc-count span { background: var(--bsc-primary); color: #fff; border-radius: 50%; width: clamp(70px, 11vw, 130px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bsc-count b { font: 300 clamp(30px, 5vw, 62px)/1 var(--bsc-display); font-variant-numeric: lining-nums tabular-nums; }
.bsc-count small { font-size: clamp(9px, 1vw, 12px); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- The letter (modal) ---------- */
.bsc-modal { position: fixed; inset: 0; z-index: 999999; background: rgba(35,45,98,.82); display: flex; align-items: center; justify-content: center; padding: 20px; animation: bsc-fade .25s ease-out; }
@keyframes bsc-fade { from { opacity: 0; } }
.bsc-modal-box { position: relative; background: var(--bsc-panel); color: var(--bsc-ink); width: min(100%, 720px); max-height: calc(100vh - 60px); border-radius: 2px; animation: bsc-letter .45s cubic-bezier(.2,1.2,.4,1); }
@keyframes bsc-letter { from { opacity: 0; transform: translate(var(--from-x, 0), var(--from-y, 40px)) scale(.3) rotate(-2deg); } }
.bsc-modal-scroll { overflow-y: auto; max-height: calc(100vh - 60px); padding: clamp(32px, 6vw, 60px) clamp(22px, 6vw, 66px); text-align: center; font: 400 17px/1.65 var(--bsc-sans); }
.bsc-modal-scroll p { margin: 0 0 1.15em; }
.bsc-modal-scroll p.bsc-chap-first { font-weight: 500; }
.bsc-modal .bsc-chap-kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--bsc-accent); margin-bottom: 1.4em; }
.bsc-modal .bsc-chap-end { margin: 1.6em 0 0; }
.bsc-modal .bsc-btn--ink, .bsc-modal .bsc-btn--ink:focus { display: inline-block; background: transparent; color: var(--bsc-ink); border: 2px solid var(--bsc-ink); border-radius: 999px; padding: 11px 26px;
	font: 500 15px/1.2 var(--bsc-sans); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.bsc-modal .bsc-btn--ink:hover { background: var(--bsc-ink); color: #fff; }
.bsc-modal .bsc-x, .bsc-modal .bsc-x:hover, .bsc-modal .bsc-x:focus { position: absolute; top: -18px; right: -18px; width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0; background: var(--bsc-primary); cursor: pointer; z-index: 2; box-shadow: none; }
.bsc-modal .bsc-x::before, .bsc-modal .bsc-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 24px; height: 2.5px; background: var(--bsc-ink); border-radius: 2px; }
.bsc-modal .bsc-x::before { transform: translate(-50%, -50%) rotate(45deg); } .bsc-modal .bsc-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.bsc-modal .bsc-x:focus-visible { outline: 3px solid #fff; }
@media (max-width: 600px) { .bsc-modal .bsc-x, .bsc-modal .bsc-x:hover, .bsc-modal .bsc-x:focus { top: -12px; right: -8px; width: 44px; height: 44px; } }

/* ---------- Holding page (public while test mode is on). Postcard content, stacked in one column. ---------- */
.bsc-hold { --hold-navy: #002169; --hold-blue: #2a7de1; --hold-pink: #ed1467; --hold-stripe: #f29094; --hold-mint: #40beac;
	background: var(--hold-navy); padding: 0; text-align: center; }
.bsc-hold-team { margin: 0 !important; padding: 10px 16px; background: #fff3cd; color: #5c4100; font-size: 14px; text-align: center; }
.bsc-hold-team strong { background: #ed1467; color: #fff; padding: 2px 8px; border-radius: 4px; margin-right: 6px; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.bsc-hold-team a { color: #002169; font-weight: 600; margin-left: 6px; }
.bsc-test a { color: #002169; font-weight: 600; }
.bsc-hold-left { padding: clamp(36px, 6vw, 90px) 0 0; overflow: hidden; }
.bsc .bsc-hold-title { color: var(--hold-blue); font-size: clamp(30px, 5vw, 76px); line-height: 1.12; position: relative; z-index: 1; padding: 0 20px; }
.bsc-hold-title span { display: block; }
.bsc-hold-title .l3 { color: #f1ede4; font-size: 2.7em; line-height: .98; letter-spacing: .01em; }
/* Hands reach both edges of the window, as in the game. */
.bsc-hold-cracker { display: block; position: relative; z-index: 2; width: min(100%, 1900px); max-width: none !important; margin: clamp(-70px, -4vw, -10px) auto 0; pointer-events: none; }
.bsc-hold-right { background: linear-gradient(var(--hold-navy) 0%, var(--hold-blue) 30%, var(--hold-blue) 55%, var(--hold-navy) 100%);
	padding: clamp(36px, 5vw, 72px) 20px clamp(40px, 5vw, 72px); display: flex; flex-direction: column; align-items: center; gap: clamp(26px, 3vw, 44px); }
.bsc .bsc-hold-lines { font-size: clamp(17px, 2vw, 30px); font-weight: 400; letter-spacing: .08em; line-height: 1.45; margin: 0; }
.bsc-hold-lines span { display: block; }
.bsc-hold-lines strong { font-weight: 600; }
.bsc .bsc-hold-circle, .bsc .bsc-hold-circle:hover, .bsc .bsc-hold-circle:focus { position: relative; --d: clamp(230px, 24vw, 340px); width: var(--d); height: var(--d); border-radius: 50%; background: var(--hold-pink); color: #fff; text-decoration: none;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: transform .2s; }
.bsc .bsc-hold-circle:hover { transform: scale(1.03); }
.bsc .bsc-hold-circle:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.bsc-hold-circle .bsc-disp { font-size: calc(var(--d) * .12); line-height: 1.25; }
.bsc-hold-circle small { font-size: calc(var(--d) * .052); margin-top: calc(var(--d) * .03); }
.bsc-squiggle { color: var(--hold-mint); }
.bsc-hold-circle .bsc-squiggle { position: absolute; right: 4%; bottom: -4%; width: calc(var(--d) * .2); }
.bsc-hold-body { padding: clamp(36px, 5vw, 80px) 20px clamp(44px, 6vw, 90px); }
.bsc-hold-copy { max-width: 720px; margin: 0 auto; }
.bsc-hold-copy h3 { font-size: clamp(24px, 2.9vw, 40px); font-weight: 400; line-height: 1.3; letter-spacing: 0; margin-bottom: .7em; text-wrap: balance; }
.bsc-hold-copy p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; margin: 0 auto 1em; max-width: 36em; }
.bsc-hold-copy strong { font-weight: 600; }
.bsc-hold-form { max-width: 460px; margin: clamp(32px, 4vw, 56px) auto 0; padding-top: clamp(28px, 3.5vw, 48px); border-top: 2px solid rgba(255,255,255,.3); }
.bsc .bsc-hold-formhead { font: 400 clamp(22px, 2vw, 28px)/1.25 var(--bsc-sans); letter-spacing: .04em; margin-bottom: 10px; display: inline-flex; align-items: flex-start; gap: 14px; }
.bsc-hold-formhead .bsc-squiggle { flex: none; width: 40px; margin-top: 2px; color: var(--hold-blue); }
.bsc-hold .bsc-signup { margin-top: 18px; text-align: left; }
.bsc-hold .bsc-actions, .bsc-hold .bsc-signup .bsc-legal { text-align: center; }
.bsc-hold .bsc-btn, .bsc-hold .bsc-btn:focus { background: var(--hold-pink); border-color: var(--hold-pink); }
.bsc-hold .bsc-btn:hover, .bsc-hold .bsc-btn:focus-visible { background: #fff; border-color: #fff; color: var(--hold-navy); }
.bsc-hold .bsc-legal a { color: var(--hold-mint); }
.bsc-hold-stripe { height: clamp(40px, 6vw, 86px); background: repeating-linear-gradient(90deg, var(--hold-stripe) 0 7.69%, var(--hold-pink) 7.69% 15.38%); }
.bsc-signup-only { text-align: left; max-width: 520px; }
.bsc-signup-only .bsc-signup { max-width: 420px; margin-top: 16px; }
.bsc-signup-only .bsc-actions { text-align: left; }
.bsc-signup-only .bsc-msg { margin-left: 0; }
@media (max-width: 700px) {
	.bsc-hold-cracker { width: 170%; margin: -8px 0 0 -35%; }
}

/* ---------- Intro / landing widget ---------- */
.bsc-intro { padding-bottom: clamp(40px, 6vw, 80px); }
.bsc-doodle { position: absolute; width: clamp(110px, 17vw, 240px); opacity: .9; pointer-events: none; z-index: 0; }
.bsc-intro > section { position: relative; z-index: 1; }
.bsc-hero { position: relative; }
.bsc-hero .d1 { left: 3%; top: 8%; } .bsc-hero .d2 { right: 3%; top: 8%; }
.bsc-how .d1 { left: 2%; top: 4%; } .bsc-how .d2 { right: 2%; top: 4%; } .bsc-how .d3 { left: -2%; bottom: 14%; } .bsc-how .d4 { right: 0; bottom: 10%; }
@media (max-width: 900px) { .bsc-doodle { opacity: .45; } .bsc-how .d3, .bsc-how .d4 { display: none; } }
.bsc .bsc-title { font-size: clamp(38px, 7.6vw, 104px); line-height: 1.1; color: var(--bsc-primary); position: relative; z-index: 1; }
.bsc-title span { display: block; }
.bsc-title .l3 { color: #f5f2ea; font-size: 1.25em; letter-spacing: .02em; line-height: 1; }
.bsc-hero .bsc-rig { margin-top: clamp(-40px, -2.5vw, -8px); z-index: 2; }
.bsc-hero-text { max-width: 620px; margin: 0 auto; opacity: 0; transform: translateY(14px); transition: opacity .7s .5s, transform .7s .5s; }
.bsc-hero.is-open .bsc-hero-text, .bsc-hero.is-static .bsc-hero-text { opacity: 1; transform: none; }
.bsc-hero.is-open .bsc-rig, .bsc-hero.is-static .bsc-rig { margin-bottom: clamp(-150px, -9vw, -30px); }
.bsc-hero.is-open .bsc-ck-l { transform: translateX(-27cqw) rotate(-4deg); } .bsc-hero.is-open .bsc-ck-r { transform: translateX(27cqw) rotate(4deg); }
.bsc-hero.is-static .bsc-ck-closed { opacity: 0; } .bsc-hero.is-static .bsc-ck-l { opacity: 1; transform: translateX(-27cqw); } .bsc-hero.is-static .bsc-ck-r { opacity: 1; transform: translateX(27cqw); }
.bsc .bsc-strap { font-size: clamp(18px, 2.2vw, 26px); margin-bottom: 14px; }

.bsc-win { margin: clamp(30px, 5vw, 70px) auto 0; }
.bsc-win-circle { --d: min(100%, 420px); width: clamp(290px, 34vw, 420px); height: clamp(290px, 34vw, 420px); max-width: none; margin: 0 auto; border-radius: 50%; background: var(--bsc-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px; }
.bsc-win-circle .bsc-disp { font-size: clamp(64px, 8vw, 100px); letter-spacing: -.02em; }
.bsc-win-circle .bsc-caps { font-size: clamp(13px, 1.35vw, 17px); margin: 8px 0 10px; }
.bsc-win-circle em { font: normal 300 clamp(16px, 1.6vw, 21px)/1.25 var(--bsc-display); max-width: 78%; text-wrap: balance; }
.bsc-win-circle .bsc-caps { max-width: 86%; text-wrap: balance; }
.bsc-cta { display: flex; align-items: flex-end; justify-content: center; gap: 0; margin-top: clamp(10px, 2vw, 30px); margin-bottom: calc(clamp(40px, 6vw, 80px) * -1 + 10px); flex-wrap: wrap; }
.bsc-cta .bsc-sheriff { width: clamp(200px, 30vw, 380px); display: block; }
.bsc-cta a.bsc-tag { display: block; width: clamp(170px, 24vw, 300px); margin: 0 0 clamp(30px, 6vw, 90px) -4%; transition: transform .25s; transform-origin: 0 50%; }
.bsc-cta a.bsc-tag:hover, .bsc-cta a.bsc-tag:focus-visible { transform: rotate(-4deg) scale(1.04); }
.bsc-cta a.bsc-tag img { display: block; width: 100%; }

.bsc-how { margin-top: 0; padding-top: clamp(50px, 7vw, 100px); }
.bsc-how > :not(.bsc-doodle) { position: relative; z-index: 1; }
.bsc-how .bsc-caps.h { font-size: clamp(18px, 2.2vw, 26px); margin-bottom: 14px; }
.bsc-how-text { max-width: 620px; margin: 0 auto; }
.bsc-steps { list-style: none; padding: 0; margin: clamp(26px, 4vw, 56px) auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); max-width: 780px; text-align: left; }
@media (max-width: 760px) { .bsc-steps { grid-template-columns: repeat(2, 1fr); } }
.bsc-steps li { border-radius: var(--bsc-radius); padding: 18px 18px 22px; color: var(--bsc-ink); font-size: 13.5px; line-height: 1.35; }
.bsc-steps li:nth-child(1) { background: var(--bsc-primary); color: #fff; } .bsc-steps li:nth-child(2) { background: var(--bsc-pink); }
.bsc-steps li:nth-child(3) { background: var(--bsc-mint); } .bsc-steps li:nth-child(4) { background: #fff; }
.bsc-steps .n { display: block; font: normal 300 72px/1 var(--bsc-display); font-variant-numeric: lining-nums; margin-bottom: 14px; }
.bsc-steps .bsc-caps { display: block; font-size: 19px; margin-bottom: 8px; }

@media (max-width: 700px) {
	.bsc-rig { margin-left: calc(var(--bsc-pad) * -1 - 34%); margin-right: calc(var(--bsc-pad) * -1 - 34%); margin-top: 0; }
	.bsc-hero .bsc-rig { margin-top: -10px; }
	.bsc-click { --d: 136px; }
	.bsc-rig .bsc-toyc { --d: 172px; }
	.bsc-toyc strong { font-size: 12px; } .bsc-toyc span.bsc-toy-desc { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.bsc *, .bsc *::before, .bsc *::after, .bsc-modal, .bsc-modal * { animation: none !important; transition-duration: .01ms !important; }
}
