/* Beasties: Accessibility page (inc/beasties-accessibility.php, assets/js/beasties-accessibility.js).
 * The app's look: night stage 30226A → 1C1640 → 120F24, sticker outline #0e0b1a, panel #241e45, well #1a1533,
 * ink #ede7ff, muted #8f86b8, zap #ffd400. Colour symbols = ColourCue (white with a dark outline). */

.bax-scene, .bax-hero, .section-head .bax-new {
	--ink: #ede7ff; --muted-app: #8f86b8; --panel: #241e45; --well: #1a1533; --outline: #0e0b1a; --zap: #ffd400;
	--f0: #2ec4b0; --f1: #ff6fb5; --f2: #ff9f40; --f3: #4d9cff; --f4: #5ccf5c; --f5: #9b6bff; --f6: #ff5a5f; --f7: #ffd23f; --f8: #dcd6f0; --f9: #3fd3e8;
}
.bax-i { width: 1em; height: 1em; flex: none; }

/* "New in 1.4.6" chip above a section's eyebrow */
.section-head p.bax-new { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--zap); color: #120f24; font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .02em; line-height: 1.5; transform: rotate(-2deg); box-shadow: 0 0 0 2px var(--outline); }
.section-head p.bax-new + .eyebrow { margin-top: 4px; }

/* ---------- stage (board) ---------- */
.bax-board { position: relative; isolation: isolate; max-width: 460px; margin: 0 auto; border-radius: 28px; overflow: hidden; color: var(--ink); container-type: inline-size;
	background: radial-gradient(90% 55% at 50% 8%, rgba(106, 63, 224, .5), rgba(106, 63, 224, .14) 55%, transparent 80%), linear-gradient(180deg, #30226a, #1c1640 55%, #120f24);
	box-shadow: 0 30px 70px -24px rgba(18, 15, 36, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.bax-board-in { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px 18px; }

/* ---------- monster tiles + colour symbols ---------- */
.bax-grid { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; }
.bax-tile { position: relative; display: block; aspect-ratio: 1; }
.bax-tile > img { display: block; width: 100%; height: auto; border-radius: 18%; }
.bax-cue { position: absolute; right: -8%; top: -8%; width: 40%; height: 40%; overflow: visible; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.bax-cue path { fill: #fff; stroke: var(--outline); stroke-width: 13; stroke-linejoin: round; paint-order: stroke; }
.is-cues .bax-cue, .bax-tile.is-dot .bax-cue { opacity: 1; transform: none; }
.bax-tile.is-plain .bax-cue { display: none; }

/* the VoiceOver cursor: a thick black frame with a white inner line */
.bax-ring { position: absolute; z-index: 4; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; box-shadow: 0 0 0 3px #000, inset 0 0 0 2px #fff, 0 0 0 5px rgba(255, 255, 255, .9); opacity: 0; pointer-events: none;
	transition: left .28s cubic-bezier(.3, 1.2, .5, 1), top .28s cubic-bezier(.3, 1.2, .5, 1), width .28s, height .28s, opacity .2s; }
.bax-ring.is-on { opacity: 1; }

/* what VoiceOver says (caption panel) */
.bax-say { display: flex; align-items: flex-start; gap: 8px; min-height: 3.2em; margin: 0; padding: 10px 12px; border-radius: 14px; background: #0b0918; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.bax-say .bax-i { margin-top: .12em; font-size: 1.05em; color: var(--zap); }
.bax-say span:empty::after, .bax-say span.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--zap); animation: bax-blink 1s steps(1) infinite; }
@keyframes bax-blink { 50% { opacity: 0; } }

/* the app's capsule choices (SettingsSheet.choiceRow) */
.bax-choice { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bax-choice > small { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: .92rem; color: var(--ink); line-height: 1.2; }
.bax-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.bax-seg b { display: grid; place-items: center; min-width: 0; min-height: 32px; padding: 0 6px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--panel) 88%, #fff); color: var(--ink); font-weight: 800; font-size: .78rem; line-height: 1.1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s; }
.bax-seg b.is-on { background: var(--zap); color: var(--outline); box-shadow: inset 0 0 0 2px var(--outline); }
.bax-seg b.is-press { transform: scale(.92); }
.bax-opts { display: flex; flex-direction: column; gap: 10px; }

/* ---------- phone ---------- */
.bax-hero { max-width: 340px; margin: 0 auto; }
.bax-hero .bst-phone { max-width: 320px; }
.bax-phone .bax-gx { position: relative; isolation: isolate; container-type: inline-size; overflow: hidden;
	background: radial-gradient(110% 45% at 50% 10%, rgba(106, 63, 224, .5), transparent 75%), linear-gradient(180deg, #30226a, #1c1640 55%, #120f24); }
.bax-phone .gx-status, .bax-phone .gx-home { position: relative; z-index: 3; }
.bax-game { --u: calc(100cqi / 402); display: flex; flex-direction: column; gap: calc(var(--u) * 12); padding: calc(var(--u) * 6) calc(var(--u) * 4) 0; }
.bax-gh { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.bax-gb { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 2px var(--outline); color: var(--ink); font-size: 15px; }
.bax-lv { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.bax-lv small { font-size: .66rem; font-weight: 700; color: var(--muted-app); }
.bax-lv b { font-family: var(--display); font-weight: 800; font-size: .95rem; }
.bax-stars { display: flex; gap: 2px; margin-top: 2px; color: var(--zap); font-size: 13px; }
.bax-grid.is-m3 { gap: calc(var(--u) * 5); padding: calc(var(--u) * 8); border-radius: calc(var(--u) * 20); background: rgba(14, 11, 26, .45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06); }
.bax-grid.is-m3 .bax-tile > img { border-radius: 16%; }
.bax-phone .bax-say.is-panel { position: relative; z-index: 2; margin: auto calc(100cqi / 402 * 4) 10px; font-size: .78rem; min-height: 4.2em; }

/* settings sheet */
.bax-sheet { --u: calc(100cqi / 402); position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 12); padding: calc(var(--u) * 16) calc(var(--u) * 12) 0; margin: calc(var(--u) * 4) calc(var(--u) * -12) 0;
	border-radius: calc(var(--u) * 34) calc(var(--u) * 34) 0 0; background: rgba(48, 34, 106, .55); overflow: hidden; color: var(--ink); }
.bax-top { display: flex; justify-content: space-between; align-items: center; padding: 0 calc(var(--u) * 6); }
.bax-sticker { display: inline-block; padding: 0 calc(var(--u) * 10); border-radius: 4px; background: var(--zap); color: var(--outline); border: calc(var(--u) * 2.2) solid #fff; font-family: var(--display); font-weight: 800; font-size: calc(var(--u) * 26); text-transform: uppercase; line-height: 1.15; transform: rotate(-3deg); }
.bax-x { display: grid; place-items: center; width: calc(var(--u) * 40); height: calc(var(--u) * 40); border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 2px var(--outline); font-size: calc(var(--u) * 16); }
.bax-scroll { min-height: 0; overflow: hidden; }
.bax-card { display: flex; flex-direction: column; gap: calc(var(--u) * 13); padding: calc(var(--u) * 16); border-radius: calc(var(--u) * 24); background: var(--panel); box-shadow: inset 0 0 0 2px var(--outline), 0 4px 0 var(--outline); }
.bax-ch { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--display); font-weight: 800; font-size: calc(var(--u) * 17); line-height: 1.15; }
.bax-ch .bax-i { font-size: 1.1em; }
.bax-card .bax-choice { gap: calc(var(--u) * 6); }
.bax-card .bax-choice > small { font-size: calc(var(--u) * 14.5); gap: calc(var(--u) * 8); }
.bax-card .bax-seg { gap: calc(var(--u) * 7); }
.bax-card .bax-seg b { min-height: calc(var(--u) * 34); font-size: calc(var(--u) * 13.5); }
.bax-div { display: block; height: 1px; background: color-mix(in srgb, var(--panel) 85%, #fff); }
.bax-sample { margin: 0; padding: calc(var(--u) * 8) calc(var(--u) * 11); border-radius: calc(var(--u) * 12); background: var(--well); color: var(--muted-app); font-weight: 700; font-size: calc(var(--u) * 13); line-height: 1.3; min-height: calc(var(--u) * 52); transition: color .2s; }
.bax-sample.is-flash { color: var(--ink); }
.bax-dots { position: relative; display: inline-block; flex: none; width: calc(var(--u) * 36); height: calc(var(--u) * 26); }
.bax-tile.is-dot { position: absolute; width: calc(var(--u) * 17); height: calc(var(--u) * 17); border-radius: 50%; overflow: visible; }
.bax-tile.is-dot > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--outline); }
.bax-tile.is-dot:nth-child(1) { left: 0; top: 7px; }
.bax-tile.is-dot:nth-child(2) { left: 30%; top: 0; }
.bax-tile.is-dot:nth-child(3) { left: 58%; top: 7px; }
.bax-tile.is-dot .bax-cue { inset: 12%; width: 76%; height: 76%; opacity: 0; transform: scale(.4); }
.bax-dots.is-cues .bax-cue { opacity: 1; transform: none; }
.bax-mo { font-size: calc(var(--u) * 20); color: var(--ink); }
.bax-mo.is-calm, [data-k="motion"].is-calm .bax-mo { display: none; }
[data-k="motion"].is-calm .bax-mo.is-calm { display: block; color: var(--zap); }
.bax-tap { position: absolute; z-index: 5; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); opacity: 0; transform: scale(.6); transition: left .5s cubic-bezier(.4, 0, .2, 1), top .5s cubic-bezier(.4, 0, .2, 1), opacity .2s, transform .15s; pointer-events: none; }
.bax-tap.is-on { opacity: 1; transform: none; }
.bax-tap.is-down { transform: scale(.75); background: rgba(255, 255, 255, .8); }

/* ---------- VoiceOver on boards ---------- */
.bax-grid.is-four { gap: 8px; padding: 10px; border-radius: 20px; background: rgba(14, 11, 26, .45); }

/* ---------- results log ---------- */
.bax-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bax-msg { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 2px var(--outline); opacity: .35; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.bax-msg.is-on { opacity: 1; transform: none; }
.bax-msg.is-muted { opacity: .35; }
.bax-msg-pic { flex: none; width: 52px; height: 52px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 2px var(--outline); }
.bax-msg > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bax-msg small { font-size: .72rem; font-weight: 700; color: var(--muted-app); }
.bax-msg b { display: flex; gap: 6px; align-items: flex-start; font-size: .9rem; line-height: 1.3; min-height: 2.6em; }
.bax-msg b .bax-i { margin-top: .15em; color: var(--zap); }
.bax-msg b i { font-style: normal; }
.bax-msg b i.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--zap); animation: bax-blink 1s steps(1) infinite; }

/* ---------- actions + rotor: a Sudoku with the cursor ---------- */
.bax-sdkwrap { position: relative; }
.bax-sdkwrap .sdk { border-radius: 12px; }
.bax-sdkwrap .bax-ring { border-radius: 4px; }
.bax-act { position: relative; }
.bax-menu { position: absolute; z-index: 5; right: 4%; top: 18%; width: 46%; padding: 10px 12px 12px; border-radius: 18px; background: rgba(14, 11, 26, .92); box-shadow: 0 16px 34px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .14); color: #fff; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .25s, transform .25s; }
.bax-menu.is-on { opacity: 1; transform: none; }
.bax-menu p { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .74rem; font-weight: 800; color: var(--zap); }
.bax-menu ol { list-style: none; margin: 0; padding: 0; height: 7.8em; overflow: hidden; position: relative; font-size: .9rem; font-weight: 700; }
.bax-menu li { height: 1.95em; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; color: rgba(255, 255, 255, .55); transition: transform .25s, background-color .2s, color .2s; transform: translateY(calc(var(--off, 0) * -1.95em)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bax-menu li.is-on { background: var(--zap); color: var(--outline); }
.bax-pane { display: none; }
.bax-pane.is-on { display: block; animation: bax-in .35s ease-out; }
@keyframes bax-in { from { opacity: 0; transform: scale(.97); } }
.bax-rot { position: relative; }
.bax-dial { position: absolute; z-index: 5; left: 50%; bottom: 6%; width: 52%; aspect-ratio: 1; transform: translateX(-50%); display: grid; place-items: center; border-radius: 50%; background: rgba(14, 11, 26, .86); box-shadow: 0 16px 34px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .16); color: #fff; text-align: center; opacity: 0; transition: opacity .25s; }
.bax-dial.is-on { opacity: 1; }
.bax-dial b { position: relative; z-index: 1; max-width: 70%; font-family: var(--display); font-weight: 800; font-size: clamp(.9rem, 5.2cqi, 1.3rem); line-height: 1.1; }
.bax-dial-ring { position: absolute; inset: 8%; border-radius: 50%; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.bax-dial-ring i { position: absolute; left: 50%; top: 0; width: 9%; aspect-ratio: 1; margin-left: -4.5%; border-radius: 50%; background: rgba(255, 255, 255, .5); transform-origin: 50% 555%; }
.bax-dial-ring i:first-child { background: var(--zap); }
.bax-dial-ring i:nth-child(2) { transform: rotate(60deg); } .bax-dial-ring i:nth-child(3) { transform: rotate(120deg); } .bax-dial-ring i:nth-child(4) { transform: rotate(180deg); } .bax-dial-ring i:nth-child(5) { transform: rotate(240deg); } .bax-dial-ring i:nth-child(6) { transform: rotate(300deg); }
.bax-hgrid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bax-hg { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.bax-hg img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20%; box-shadow: 0 0 0 2px var(--outline), 0 4px 0 var(--outline); }
.bax-hg small { font-size: .7rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.2; overflow-wrap: anywhere; }

/* ---------- Frostfest cards ---------- */
.bax-fcards { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 8px 4px; }
.bax-fslot { position: relative; }
.bax-fcards .bax-ring { border-radius: 14px; }

/* ---------- colours ---------- */
.bax-grid.is-nine { gap: 12px; padding: 12px 14px 14px 12px; border-radius: 22px; background: rgba(14, 11, 26, .45); }
.bax-legend { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.bax-key { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--outline); }
.bax-key .bax-cue { position: static; width: 72%; height: 72%; opacity: 1; transform: none; }

/* ---------- motion ---------- */
.bax-mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bax-mpanel { display: flex; flex-direction: column; gap: 8px; padding: 12px 10px; border-radius: 20px; background: rgba(14, 11, 26, .45); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06); }
.bax-mh { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .74rem; font-weight: 700; color: var(--muted-app); line-height: 1.2; }
.bax-mh b { color: var(--ink); }
.bax-mh .bax-i { color: var(--zap); font-size: 1.1em; }
.bax-mstage { position: relative; aspect-ratio: 1 / 1.05; display: grid; place-items: end center; overflow: hidden; }
.bax-mmon { display: block; width: 74%; }
.bax-mmon img { display: block; width: 100%; height: auto; }
.bax-msticker { position: absolute; left: 50%; top: 10%; padding: 1px 10px; border-radius: 4px; background: var(--zap); border: 2.5px solid #fff; color: var(--outline); font-family: var(--display); font-weight: 800; font-size: clamp(.9rem, 5cqi, 1.3rem); text-transform: uppercase; white-space: nowrap; transform: translateX(-50%) rotate(-5deg); opacity: 0; }
.bax-mstars { position: absolute; left: 0; right: 0; top: 34%; display: flex; justify-content: center; gap: 4px; color: var(--zap); font-size: clamp(14px, 6cqi, 26px); opacity: 0; }
.is-motion.is-play .is-busy .bax-mmon { animation: bax-hop 2.6s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.is-motion.is-play .is-busy .bax-msticker { animation: bax-popin 2.6s cubic-bezier(.3, 1.6, .5, 1) infinite; }
.is-motion.is-play .is-busy .bax-mstars { animation: bax-burst 2.6s ease-out infinite; }
.is-motion.is-play .is-calm .bax-msticker { animation: bax-fade 2.6s ease-in-out infinite; }
.is-motion.is-play .is-calm .bax-mstars { animation: bax-fade 2.6s ease-in-out infinite; }
@keyframes bax-hop { 0%, 100% { transform: translateY(0); } 10% { transform: translateY(-16%) rotate(-4deg); } 20% { transform: translateY(0); } 30% { transform: translateY(-9%) rotate(4deg); } 40% { transform: translateY(0); } 55% { transform: translateX(-6%); } 70% { transform: translateX(6%); } }
@keyframes bax-popin { 0%, 8% { opacity: 0; transform: translateX(-50%) rotate(-5deg) scale(.2); } 18% { opacity: 1; transform: translateX(-50%) rotate(-12deg) scale(1.3); } 28%, 85% { opacity: 1; transform: translateX(-50%) rotate(-5deg) scale(1); } 100% { opacity: 0; transform: translateX(-50%) rotate(-5deg) scale(1); } }
@keyframes bax-burst { 0%, 14% { opacity: 0; transform: scale(.3) translateY(30%); } 26% { opacity: 1; transform: scale(1.25) translateY(-10%); } 40%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bax-fade { 0%, 10% { opacity: 0; } 30%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- text size + contrast ---------- */
.bax-txt { display: flex; flex-direction: column; gap: 14px; }
.bax-paper { position: relative; height: 236px; overflow: hidden; padding: 16px; border-radius: 20px; background: rgba(36, 30, 69, .55); box-shadow: inset 0 0 0 2px var(--outline); transition: background-color .4s; }
.bax-paper::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; transition: opacity .4s;
	background: radial-gradient(circle at 25% 30%, rgba(255, 212, 0, .35) 0 8%, transparent 9%) 0 0 / 46px 46px, radial-gradient(circle at 75% 70%, rgba(155, 107, 255, .5) 0 10%, transparent 11%) 0 0 / 46px 46px; }
.bax-paper { isolation: isolate; }
.bax-paper p { margin: 0; transition: font-size .45s cubic-bezier(.3, 1.2, .5, 1), color .4s; }
.bax-tt { font-family: var(--display); font-weight: 800; font-size: calc(1.5rem * var(--kt, 1)); line-height: 1.1; color: var(--ink); }
.bax-tb { margin-top: 8px !important; font-weight: 700; font-size: calc(1rem * var(--k)); line-height: 1.3; color: var(--ink); }
.bax-tm { margin-top: 6px !important; font-weight: 600; font-size: calc(.86rem * var(--k)); line-height: 1.35; color: color-mix(in srgb, var(--muted-app) 75%, transparent); }
.bax-txt.is-contrast .bax-tm { color: #cfc8ee; }
.bax-txt.is-solid .bax-paper { background: var(--panel); }
.bax-txt.is-solid .bax-paper::before { opacity: 0; }
.bax-size { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 2px var(--outline); }
.bax-size .bax-i.is-small { font-size: 14px; }
.bax-size .bax-i.is-big { font-size: 24px; }
.bax-track { position: relative; flex: 1; display: flex; justify-content: space-between; align-items: center; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--panel) 70%, #fff); }
.bax-track i { width: 2px; height: 10px; border-radius: 1px; background: color-mix(in srgb, var(--panel) 50%, #fff); }
.bax-knob { position: absolute; left: calc(var(--step, 0) * 25%); top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: left .45s cubic-bezier(.3, 1.2, .5, 1); }
.bax-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.bax-flags span { padding: 5px 12px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--panel) 88%, #fff); font-size: .78rem; font-weight: 800; color: var(--muted-app); transition: background-color .25s, color .25s; }
.bax-flags span.is-on { background: var(--zap); color: var(--outline); box-shadow: inset 0 0 0 2px var(--outline); }

/* ---------- pace ---------- */
.bax-pace { display: flex; flex-direction: column; gap: 14px; }
.bax-noclock { position: relative; padding: 12px; border-radius: 20px; background: rgba(14, 11, 26, .45); }
.bax-clock { position: absolute; right: 58px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; color: var(--muted-app); font-size: 20px; transition: color .3s, transform .3s; }
.bax-clock.is-hi { color: var(--zap); transform: scale(1.2); }
.bax-card.is-pace { gap: 14px; padding: 16px; border-radius: 22px; }
.bax-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bax-rl { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; font-size: .88rem; line-height: 1.2; }
.bax-rl .bax-i { font-size: 1.15em; color: var(--ink); }
.bax-slider { position: relative; flex: none; width: 42%; height: 6px; border-radius: 6px; background: var(--well); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.bax-slider i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: 6px; background: var(--zap); transition: width .6s cubic-bezier(.3, 1.2, .5, 1); }
.bax-slider b { position: absolute; left: calc(var(--v) * 100%); top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .4); transition: left .6s cubic-bezier(.3, 1.2, .5, 1); }
.bax-switch { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--panel) 80%, #fff); transition: background-color .25s; }
.bax-switch b { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.bax-switch.is-on { background: var(--zap); box-shadow: inset 0 0 0 2px var(--outline); }
.bax-switch.is-on b { transform: translateX(20px); }

@media (max-width: 420px) {
	.bax-board-in { padding: 16px 12px; gap: 12px; }
	.bax-say { font-size: .84rem; }
	.bax-seg b { font-size: .72rem; min-height: 30px; padding: 0 4px; }
	.bax-grid.is-nine { gap: 9px; }
	.bax-menu { width: 52%; }
	.bax-menu ol { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
	.bax-ring, .bax-cue, .bax-msg, .bax-menu li, .bax-dial-ring, .bax-knob, .bax-slider i, .bax-slider b, .bax-switch b, .bax-paper p, .bax-tap { transition: none !important; }
	.bax-say span::after, .bax-msg b i::after { animation: none !important; }
}
.bax-fcards .bax-fslot { --w: min(108px, 25cqi); justify-self: center; }
.bax-grid.is-four, .bax-grid.is-nine { width: 100%; max-width: 330px; margin-inline: auto; box-sizing: border-box; }
.bax-dial { left: auto; right: 3%; bottom: 3%; width: 40%; transform: none; }
.bax-paper { height: 206px; }
.bax-sdkwrap, .bax-hgrid { max-width: 380px; margin-inline: auto; }
.bax-mh { align-items: flex-start; }
.bax-mh span { flex: 1; min-width: 0; }
.bax-mh b { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--panel) 80%, #fff); }
.is-calm .bax-mh b { background: var(--zap); color: var(--outline); box-shadow: inset 0 0 0 1.5px var(--outline); }
.bax-mh .bax-i { margin-top: .1em; }
/* the chip inside FAQ answers about 1.4.6 features */
.wp-block-details p.bax-new { display: inline-block; margin: 4px 0 0; padding: 2px 9px; border-radius: 999px; background: var(--zap); color: #120f24; font-family: var(--display); font-weight: 800; font-size: .74rem; line-height: 1.5; box-shadow: 0 0 0 2px #0e0b1a; }
