body.login.spw-on { align-items: start !important; align-content: start !important; }
/* SPARK welcome 1.0.0 (SPARK plugin 2.1.0): the signed-out sign-in page. Skills Pad purple #3C0075, yellow #FFC72C,
   teal #2EAFAF, coral #EF5B6D. Atkinson Hyperlegible where the site has it. */
.spw-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 56px); width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0; box-sizing: border-box; min-height: 100vh; font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; }
.spw-layout > #login { margin: 0 !important; position: relative; z-index: 2; }
.spw-skip { position: absolute; left: 16px; top: 8px; z-index: 50; transform: translateY(-140%); background: #FFC72C; color: #1E0A3C; font-weight: 700; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.spw-skip:focus { transform: none; outline: 3px solid #1E0A3C; outline-offset: 2px; }
.spw [hidden], .spw-layout [hidden].spw-role { display: none !important; }
.spw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spw { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 20px; align-items: start; color: #fff; background: rgba(26, 6, 58, .9); border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px; padding: 26px 28px 22px; box-shadow: 0 24px 60px rgba(10, 0, 30, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.spw > .spw-name, .spw > .spw-bubble, .spw > .spw-tools, .spw > .spw-panel { grid-column: 2; }
.spw-figure { position: relative; grid-row: 1 / span 3; width: 220px; height: 240px; }
.spw-pose { position: absolute; inset: 0; transform-origin: 50% 85%; will-change: transform; }
.spw-stage { position: absolute; inset: 0; }
.spw-stage .spk-rig { position: absolute; inset: 0; }
.spw-stage .spk-rig img, .spw-stage .spk-rig svg, .spw-stage .spk-rig canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.spw-stage .spk-rig img { object-fit: contain; filter: drop-shadow(0 14px 18px rgba(10, 0, 30, .45)); }
.spw-figure.spw-glow .spk-rig img { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 10px #7DF5EC) drop-shadow(0 14px 18px rgba(10, 0, 30, .45)); }
.spw-prop { position: absolute; right: 2px; top: 34px; font-size: 34px; line-height: 1; opacity: 0; transform: scale(.6) rotate(-8deg); transition: opacity 180ms ease, transform 240ms cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.spw-prop.is-on { opacity: 1; transform: none; }
.spw-name { margin: 6px 0 0; font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; color: #fff; }
.spw-name span { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 600; letter-spacing: .01em; color: #FFE38A; }
.spw-bubble { position: relative; background: #fff; color: #1E0A3C; border-radius: 18px; padding: 14px 18px; box-shadow: 0 14px 36px rgba(10, 0, 30, .35); border-top: 4px solid #3C0075; min-height: 72px; }
.spw-bubble::before { content: ""; position: absolute; left: -7px; top: 26px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
.spw-text { margin: 0; font-size: 17px; line-height: 1.5; }
.spw-text .spk-w { opacity: .72; } .spw-text .spk-w.on { opacity: 1; }
.spw-badge { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 3px 10px; border-radius: 999px; background: #F3ECFB; color: #3C0075; font-size: 13.5px; font-weight: 700; }
.spw-badge[hidden] { display: none; }
.spw-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-height: 40px; }
.spw-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55) !important; background: rgba(30, 10, 60, .35) !important; color: #fff !important; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: none !important; }
.spw-tool[hidden] { display: none; }
.spw-tool[aria-pressed="true"] { background: #fff !important; color: #3C0075 !important; }
.spw-tool.spw-hear { background: #FFC72C !important; color: #1E0A3C !important; border-color: #FFC72C !important; }
.spw-panel { margin-top: 12px; min-height: 152px; }
.spw-panel[hidden] { display: none; }
.spw-panel h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #fff; }
.spw-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spw-actions.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spw-btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 2px solid transparent !important; background: #fff !important; color: #3C0075 !important; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.25; cursor: pointer; box-shadow: 0 6px 18px rgba(10, 0, 30, .25) !important; text-decoration: none; transition: transform 120ms ease, background-color 120ms ease; }
.spw-btn:hover { background: #F3ECFB !important; }
.spw-btn:active { transform: translateY(1px); }
.spw-btn.is-primary { background: #FFC72C !important; color: #1E0A3C !important; }
.spw-btn.is-quiet { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .7) !important; box-shadow: none !important; }
.spw-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.spw .spw-btn[aria-pressed="true"], .spw .spw-btn[aria-pressed="true"]:hover { background: #3C0075 !important; color: #fff !important; border-color: #FFC72C !important; opacity: 1; }
.spw-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 2px; border: 0 !important; background: none !important; color: #fff !important; font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none !important; }
.spw-row { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.spw-note { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #fff; }
.spw-note a { color: #FFE38A; font-weight: 700; }
.spw-card { background: rgba(255, 255, 255, .96); color: #1E0A3C; border-radius: 16px; padding: 14px 16px; margin-top: 4px; }
.spw-card p, .spw-card li { font-size: 15px; line-height: 1.5; margin: 0 0 6px; }
.spw-card ul { margin: 6px 0 8px 18px; padding: 0; }
.spw-card a { color: #3C0075; font-weight: 700; }
.spw-full { margin-top: 10px; } .spw-full summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: #fff; }
.spw-full .spw-card p { margin-bottom: 8px; }
.spw-role { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #F3ECFB; color: #3C0075; font-weight: 700; font-size: 14.5px; }
.spw-role[hidden] { display: none; }
.spw :focus-visible, .spw-skip:focus-visible { outline: 3px solid #FFC72C !important; outline-offset: 3px !important; }
.spw .spw-btn:focus-visible { outline-color: #FFC72C !important; }
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 18px 0 32px; min-height: 0; }
  .spw { width: min(560px, 100%); grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; padding: 16px; border-radius: 20px; box-sizing: border-box; }
  .spw > .spw-name { grid-column: 2; align-self: center; }
  .spw-figure { width: 120px; height: 132px; grid-row: 1 / span 2; }
  .spw-name { font-size: 20px; } .spw-name span { font-size: 13px; }
  .spw > .spw-bubble, .spw > .spw-tools, .spw > .spw-panel { grid-column: 1 / -1; } .spw-bubble::before { display: none; }
  .spw-panel { min-height: 0; }
  .spw-text { font-size: 16px; }
  .spw-prop { font-size: 26px; top: 14px; }
}
@media (max-width: 480px) {
  .spw-actions { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .spw-actions.is-3row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spw-actions.is-3row .spw-btn { font-size: 14px; padding: 8px 6px; min-height: 48px; }
  .spw-btn { min-height: 48px; font-size: 15.5px; }
  .spw { grid-template-columns: 96px minmax(0, 1fr); } .spw-figure { width: 96px; height: 106px; }
}
@media (prefers-reduced-motion: reduce) { .spw-prop, .spw-btn, .spw-text .spk-w { transition: none; } .spw-pose { will-change: auto; } }
.spw-layout.is-still .spw-prop { transition: none; }
@media (forced-colors: active) { .spw-btn, .spw-tool { border: 2px solid ButtonText !important; } .spw-bubble { border: 2px solid CanvasText; } }
/* BuddyBoss colours every link on the sign-in page; inside SPARK's dark card they must stay light. */
body.login .spw-layout .spw a.spw-link, body.login .spw-layout .spw a.spw-link:visited { color: #fff !important; }
body.login .spw-layout .spw .spw-note a, body.login .spw-layout .spw .spw-note a:visited { color: #FFE38A !important; }
body.login .spw-layout .spw .spw-card a, body.login .spw-layout .spw .spw-card a:visited { color: #3C0075 !important; }
body.login .spw-layout .spw a:hover { text-decoration-thickness: 2px; }

.spw-setup { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #FFE38A; }
body.login .spw-layout .spw .spw-card a:focus-visible { outline: 3px solid #3C0075 !important; outline-offset: 2px !important; }

/* ---------- 1.1.0 ---------- */
.spw-more { position: relative; }
.spw-more > summary { list-style: none; } .spw-more > summary::-webkit-details-marker { display: none; }
.spw-more > summary::after { content: "\25BE"; margin-left: 2px; font-size: 12px; }
.spw-more[open] > summary { background: #fff !important; color: #3C0075 !important; }
.spw-more-box { margin-top: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25); display: grid; gap: 8px; }
.spw-more-h { display: block; width: 100%; font-size: 13.5px; font-weight: 700; color: #FFE38A; margin-bottom: 2px; }
.spw-speed { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.spw-closed { padding: 8px 10px; border-radius: 10px; background: #FFF4D6; color: #1E0A3C; font-weight: 700; }
.spw-jotd { display: inline-block; margin: 0 0 8px; padding: 3px 10px; background: #FFC72C; color: #1E0A3C; font-size: 13.5px; font-weight: 800; }
.spw-jotd[hidden] { display: none; }
.spw-tip strong { color: #FFE38A; }
.spw-guide { margin-top: 10px; } .spw-guide ul { margin: 0 0 0 18px; }
.spw-guide[hidden] { display: none; }
.spw-caps { margin: -8px 0 12px; padding: 6px 10px; border-radius: 8px; background: #FFF4D6; color: #6B3A00; font-weight: 700; font-size: 14px; }
.spw-caps[hidden] { display: none; }
.spw-figure.is-busy .spw-stage { animation: spw-busy 1.1s ease-in-out infinite; }
@keyframes spw-busy { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@media (prefers-reduced-motion: reduce) { .spw-figure.is-busy .spw-stage { animation: none; } }
.spw-layout.is-still .spw-figure.is-busy .spw-stage { animation: none; }
.spw-layout.is-slow .spw-text { font-style: italic; }
/* Easy read: bigger, more spaced text. */
.spw-layout.is-easy .spw-text { font-size: 19px; line-height: 1.65; }
.spw-layout.is-easy .spw-note, .spw-layout.is-easy .spw-card p, .spw-layout.is-easy .spw-card li { font-size: 17px; line-height: 1.65; }
/* High contrast: black and white with yellow focus, thicker borders. */
.spw-layout.is-hc .spw { background: #000; border: 2px solid #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.spw-layout.is-hc .spw-bubble { background: #fff; color: #000; border: 3px solid #000; border-top-width: 6px; }
.spw-layout.is-hc .spw-bubble::before { background: #fff; }
.spw-layout.is-hc .spw-name span, .spw-layout.is-hc .spw-setup, .spw-layout.is-hc .spw-tip strong, .spw-layout.is-hc .spw-more-h { color: #FFE600; }
.spw-layout.is-hc .spw-btn { background: #fff !important; color: #000 !important; border: 3px solid #000 !important; box-shadow: 0 0 0 2px #fff !important; }
.spw-layout.is-hc .spw-btn.is-primary { background: #FFE600 !important; }
.spw-layout.is-hc .spw-tool { background: #000 !important; border: 2px solid #fff !important; }
.spw-layout.is-hc .spw-tool[aria-pressed="true"], .spw-layout.is-hc .spw-more[open] > summary { background: #FFE600 !important; color: #000 !important; border-color: #FFE600 !important; }
.spw-layout.is-hc .spw-card { background: #fff; color: #000; border: 2px solid #fff; }
.spw-layout.is-hc .spw-more-box { background: #000; border: 2px solid #fff; }
.spw-layout.is-hc .spw :focus-visible { outline: 4px solid #FFE600 !important; }
body.login .spw-layout.is-hc .spw .spw-note a { color: #FFE600 !important; }
@media (max-width: 480px) { .spw-speed .spw-tool { flex: 1 1 0; justify-content: center; } }

.spw-tool[aria-checked="true"] { background: #fff !important; color: #3C0075 !important; }
.spw-layout.is-hc .spw-tool[aria-checked="true"] { background: #FFE600 !important; color: #000 !important; border-color: #FFE600 !important; }
.spw-layout.is-hc .spw .spw-btn[aria-pressed="true"], .spw-layout.is-hc .spw .spw-btn[aria-pressed="true"]:hover { background: #000 !important; color: #FFE600 !important; border: 3px solid #FFE600 !important; box-shadow: 0 0 0 2px #fff !important; }

/* ---------- 1.2.0 design (Rana 6 Nov): SPARK is the focus; no card behind him; icon tools; stacked actions;
   the form or the account help pops out beside him only when asked for. Applied only once the script has run. ---------- */
.spw-layout.is-focus { grid-template-columns: minmax(0, 760px); justify-content: center; align-content: center; transition: none; }
.spw-layout.is-focus > #login, .spw-layout.is-focus > .spw-side { display: none !important; }
.spw-layout.is-focus.is-open { grid-template-columns: minmax(0, 700px) minmax(0, 440px); gap: clamp(24px, 3vw, 48px); }
.spw-layout.is-focus.is-open-login > #login, .spw-layout.is-focus.is-open-account > .spw-side { display: block !important; animation: spw-pop 260ms cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes spw-pop { from { opacity: 0; transform: translateX(-28px) scale(.96); } to { opacity: 1; transform: none; } }
/* No background behind SPARK. */
.spw-layout.is-focus .spw { background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; grid-template-columns: 280px minmax(0, 1fr); gap: 10px 28px; }
.spw-layout.is-focus .spw-figure { width: 280px; height: 310px; grid-row: 1 / span 4; align-self: center; }
.spw-layout.is-focus .spw-name { text-shadow: 0 2px 10px rgba(20, 0, 50, .55); }
.spw-layout.is-focus .spw-panel h3, .spw-layout.is-focus .spw-note { text-shadow: 0 1px 6px rgba(20, 0, 50, .5); }
/* Four equal icon buttons. */
.spw-layout.is-focus .spw-tools { gap: 10px; align-items: center; }
.spw-tool.spw-ico { width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 50%; flex: 0 0 48px; background: rgba(30, 10, 60, .55) !important; }
.spw-tool.spw-ico svg { width: 24px; height: 24px; display: block; }
.spw-more > summary.spw-ico::after { content: none; }
.spw-tool.spw-ico[aria-pressed="true"], .spw-more[open] > summary.spw-ico { background: #fff !important; color: #3C0075 !important; }
.spw-ico .spw-ico-off { display: none; } .spw-ico[aria-pressed="true"] .spw-ico-off { display: inline; } .spw-ico[aria-pressed="true"] .spw-ico-on { display: none; }
.spw-tool.spw-ico:hover { background: rgba(255, 255, 255, .18) !important; }
.spw-tool.spw-hear { order: 5; }
.spw-more-box { position: absolute; z-index: 20; left: 0; top: 56px; width: max-content; max-width: 340px; background: #1E0A3C; box-shadow: 0 16px 40px rgba(10, 0, 30, .5); }
/* The three actions: stacked, the width of the speech bubble, one line each. */
.spw-actions.is-stack { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.spw-actions.is-stack .spw-btn { min-height: 52px; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; padding: 10px 16px; }
@media (max-width: 1200px) { .spw-actions.is-stack .spw-btn { font-size: 15px; } }
/* The pop-out cards. */
.spw-layout.is-focus > #login, .spw-side { position: relative; }
.spw-side { background: #fff; color: #1E0A3C; border-radius: 26px; padding: 30px 30px 26px; box-shadow: 0 24px 60px rgba(10, 0, 30, .45); font-family: inherit; }
.spw-side h3 { margin: 0 40px 10px 0; font-size: 22px; font-weight: 800; color: #1E0A3C; }
.spw-side .spw-card { background: transparent; padding: 0; margin: 0; }
.spw-side .spw-card p, .spw-side .spw-card li { font-size: 16px; }
.spw-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0 !important; background: #F3ECFB !important; color: #3C0075 !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none !important; padding: 0; }
.spw-close svg { width: 22px; height: 22px; }
.spw-close:hover { background: #E6DAF6 !important; }
.spw-close:focus-visible { outline: 3px solid #3C0075 !important; outline-offset: 2px; }
.spw-layout:not(.is-focus) .spw-close { display: none; }
body.login .spw-layout .spw-side a, body.login .spw-layout .spw-side a:visited { color: #3C0075 !important; font-weight: 700; }
/* High contrast keeps working without the card. */
.spw-layout.is-focus.is-hc .spw { background: #000; padding: 22px; border: 2px solid #fff; }
.spw-layout.is-hc .spw-tool.spw-ico { background: #000 !important; }
.spw-layout.is-hc .spw-tool.spw-ico[aria-pressed="true"], .spw-layout.is-hc .spw-more[open] > summary.spw-ico { background: #FFE600 !important; color: #000 !important; }
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout.is-focus, .spw-layout.is-focus.is-open { grid-template-columns: minmax(0, 1fr); }
  .spw-layout.is-focus .spw { grid-template-columns: 120px minmax(0, 1fr); }
}

/* 1.2.0 (round 2): one controls button beside SPARK's head; the four pop out over the empty space beside him.
   The roles pop out under Log in. Nothing in the bubble, buttons or form moves. */
.spw-layout.is-focus .spw { position: relative; }
.spw-layout.is-focus .spw > .spw-tools { position: absolute; z-index: 30; grid-column: auto; margin: 0; min-height: 0; display: block; width: 48px; }
.spw-tools-menu { position: absolute; left: 0; top: 58px; display: flex; flex-direction: column; gap: 10px; padding: 10px; margin: -10px; border-radius: 34px; background: rgba(30, 10, 60, .82); box-shadow: 0 14px 34px rgba(10, 0, 30, .45); }
.spw-tools-menu[hidden] { display: none; }
.spw-tools-toggle[aria-expanded="true"] { background: #fff !important; color: #3C0075 !important; }
.spw-layout.is-focus .spw-more { position: static; }
.spw-layout.is-focus .spw-more-box { left: 70px; top: auto; bottom: 0; margin: 0; }
.spw-bubble .spw-hear { margin-top: 10px; }
/* Role choice: a pop-out under Log in, the three on one line. */
.spw-layout.is-focus [data-panel="home"] { position: relative; }
.spw-layout.is-focus .spw-rolepop { position: absolute; left: -12px; right: -12px; top: 60px; z-index: 25; margin: 0; min-height: 0; padding: 16px 16px 6px; border-radius: 20px; background: #1E0A3C; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 22px 50px rgba(10, 0, 30, .6); }
@keyframes spw-drop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .spw-layout.is-focus .spw-rolepop { animation: none; } }
.spw-layout.is-still .spw-rolepop { animation: none; }
.spw-layout.is-focus .spw-rolepop[hidden] { display: none; }
.spw-layout.is-focus .spw-rolepop h3 { text-shadow: none; }
.spw-actions.is-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.spw-actions.is-row .spw-btn { min-height: 48px; white-space: nowrap; }
.spw-layout.is-hc .spw-tools-menu, .spw-layout.is-hc .spw-rolepop { background: #000; border: 2px solid #fff; }
.spw-layout.is-hc .spw-tools-toggle[aria-expanded="true"] { background: #FFE600 !important; color: #000 !important; }

/* 1.2.0 (round 3): SPARK never moves. The form / account help slides in at the right as a floating card,
   and SPARK sits a little left of centre so the card never covers him (widths of 1400 px and up). */
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-layout.is-focus, .spw-layout.is-focus.is-open { display: block; width: auto; margin: 0; padding: 0; min-height: 100vh; }
  .spw-layout.is-focus .spw { top: 50%; left: max(24px, min(calc(50% - 382px), calc(100% - 424px - 684px - 32px))); grid-template-columns: 240px minmax(0, 1fr); gap: 10px 24px; }
  .spw-layout.is-focus > #login, .spw-layout.is-focus > .spw-side { position: fixed !important; right: 24px; top: 50%; max-height: calc(100vh - 48px); overflow: auto; margin: 0 !important; z-index: 40; box-sizing: border-box; }
}
@keyframes spw-slide { from { opacity: 0; transform: translate(40px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@media (prefers-reduced-motion: reduce) { .spw-layout.is-focus.is-open-login > #login, .spw-layout.is-focus.is-open-account > .spw-side { animation: none !important; } }
.spw-layout.is-still.is-open-login > #login, .spw-layout.is-still.is-open-account > .spw-side { animation: none !important; }
/* Controls button tucked in beside SPARK's head. */
.spw-layout.is-focus .spw > .spw-tools { left: 6px; top: 118px; }
/* Role pills: all three fit on one line. */
.spw-actions.is-row .spw-btn { font-size: 14px; padding: 6px 6px; letter-spacing: 0; }
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-layout.is-focus .spw { left: max(24px, min(calc(50vw - 382px), calc(100vw - 424px - 684px - 32px))); }
}

/* 1.2.0 (round 4): Motion springs replace the CSS pop animations; centring uses the separate translate property
   so Motion's transforms never fight it. S.P.A.R.K title; the full name on one line. Transparent pills. */
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-layout.is-focus .spw { top: max(24px, calc(50vh - 230px)); transform: none; }
  .spw-layout.is-focus > #login, .spw-layout.is-focus > .spw-side { transform: none; translate: 0 -50%; width: 400px !important; max-width: 400px !important; }
  .spw-layout.is-focus.is-open-login > #login, .spw-layout.is-focus.is-open-account > .spw-side { animation: none !important; }
}
.spw-layout.is-focus .spw-rolepop { animation: none; }
.spw-name { white-space: nowrap; }
.spw-name-t { letter-spacing: .06em; }
.spw-name .spw-name-d { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: #FFE38A; white-space: nowrap; }
/* Pills: transparent; another colour on hover; yellow when chosen. */
.spw .spw-btn, .spw .spw-btn.is-primary { background: rgba(255, 255, 255, .06) !important; color: #fff !important; border: 2px solid rgba(255, 255, 255, .78) !important; box-shadow: none !important; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.spw .spw-btn.is-selected, .spw .spw-btn.is-selected:hover, .spw .spw-btn[aria-pressed="true"], .spw .spw-btn[aria-pressed="true"]:hover { background: #FFC72C !important; border-color: #FFC72C !important; color: #1E0A3C !important; }
.spw .spw-btn:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #1E0A3C !important; }
.spw .spw-btn[aria-disabled="true"] { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .spw .spw-btn { transition: none; } }
/* High contrast: solid black pills with white borders; yellow when chosen. */
.spw-layout.is-hc .spw .spw-btn { background: #000 !important; color: #fff !important; border: 3px solid #fff !important; }
.spw-layout.is-hc .spw .spw-btn:hover { background: #fff !important; color: #000 !important; }
.spw-layout.is-hc .spw .spw-btn.is-selected, .spw-layout.is-hc .spw .spw-btn[aria-pressed="true"] { background: #FFE600 !important; color: #000 !important; border-color: #FFE600 !important; }
.spw-name .spw-name-t { display: inline; margin: 0; font-size: inherit; font-weight: 800; color: #fff; }
@media (min-width: 1061px) and (min-height: 640px) { .spw-layout.is-focus .spw { top: max(24px, calc(50vh - 175px)); } }
.spw-layout.is-focus .spw-rate .spw-btn { font-size: 14px; white-space: nowrap; padding: 6px 6px; min-height: 48px; }

/* 1.2.0 (round 5): the sign-in inputs live inside SPARK's panel; the portal's form card is not shown. */
.spw-layout.is-focus > #login { display: none !important; }
.spw .spw-formslot { margin-top: 12px; }
.spw .spw-formslot form { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; width: auto !important; max-width: none !important; }
.spw .spw-formslot form > p, .spw .spw-formslot .user-pass-wrap { margin: 0 0 12px !important; }
.spw .spw-formslot label { color: #fff !important; font-size: 14.5px !important; font-weight: 700 !important; margin: 0 0 6px !important; display: block; }
.spw .spw-formslot .forgetmenot label { display: inline; margin: 0 0 0 8px !important; font-weight: 600 !important; }
.spw .spw-formslot input.input, .spw .spw-formslot input[type="text"], .spw .spw-formslot input[type="password"], .spw .spw-formslot input[type="email"] {
  width: 100% !important; box-sizing: border-box; min-height: 50px !important; margin: 0 !important; padding: 10px 16px !important; border-radius: 14px !important; font-size: 16px !important; box-shadow: none !important; }
.spw .spw-formslot input.input:focus { outline: 3px solid #FFC72C !important; outline-offset: 2px !important; }
.spw .spw-formslot .wp-pwd { position: relative; }
.spw .spw-formslot .wp-hide-pw { position: absolute !important; right: 6px; top: 50%; transform: translateY(-50%); background: transparent !important; border: 0 !important; color: #3C0075 !important; box-shadow: none !important; min-height: 40px; }
.spw .spw-formslot .forgetmenot { display: flex; align-items: center; color: #fff; }
.spw .spw-formslot .forgetmenot input[type="checkbox"] { width: 20px; height: 20px; margin: 0 !important; accent-color: #FFC72C; }
.spw .spw-formslot .wp-tooltip__toggle { color: #fff !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.spw .spw-formslot .lostmenot { margin: -4px 0 12px !important; text-align: right; }
body.login .spw-layout .spw .spw-formslot .lostmenot a, body.login .spw-layout .spw .spw-formslot a { color: #FFE38A !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.spw .spw-formslot .submit { margin: 4px 0 0 !important; padding: 0 !important; float: none !important; }
.spw .spw-formslot #wp-submit, .spw .spw-formslot input[type="submit"] { width: 100% !important; min-height: 52px !important; border-radius: 14px !important; border: 2px solid #FFC72C !important; background: #FFC72C !important; color: #1E0A3C !important; font-size: 16px !important; font-weight: 800 !important; box-shadow: none !important; text-shadow: none !important; cursor: pointer; float: none !important; }
.spw .spw-formslot #wp-submit:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; }
.spw .spw-formslot .spw-role { background: rgba(255, 255, 255, .12); color: #fff; }
.spw .spw-formslot #login_error, .spw .spw-formslot .message, .spw .spw-formslot .notice { margin: 0 0 12px !important; padding: 10px 14px !important; border-radius: 12px !important; background: #fff !important; color: #1E0A3C !important; border-left: 5px solid #EF5B6D !important; box-shadow: none !important; }
.spw .spw-formslot .message { border-left-color: #2EAFAF !important; }
.spw .spw-formslot .sp-vcard, .spw .spw-formslot .indicator-hint, .spw .spw-formslot .pw-weak { color: #fff; }
.spw .spw-formslot .sp-vcard { display: none !important; } /* The certificate check is its own pill on the welcome. */
.spw .spw-roles { margin-bottom: 4px; }
/* Funder logos: fade in with SPARK's funders line. */
.spw-funders { align-items: center; margin-top: 14px; }
.spw-funders[hidden] { display: none; }
.spw-funders img { display: block; width: auto; }
/* Terms and privacy, moved from the old card. */
.spw .spw-legal { grid-column: 2; margin-top: 14px; font-size: 13.5px; color: #fff; }
.spw .spw-legal .privacy-policy-page-link { margin: 0; padding: 0; color: #fff; text-align: left; }
body.login .spw-layout .spw .spw-legal a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
/* The pills in the welcome now include Check a certificate (a link). */
.spw a.spw-btn { text-decoration: none; }
/* Rana: SPARK a little larger on desktop. */
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-layout.is-focus .spw { grid-template-columns: 300px minmax(0, 1fr); width: 744px; left: max(24px, min(calc(50vw - 412px), calc(100vw - 744px - 48px))); }
  .spw-layout.is-focus .spw-figure { width: 300px; height: 350px; }
}

/* 1.2.0 (round 6) */
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-layout.is-focus .spw { top: max(24px, calc(50vh - 340px)); }
  .spw-layout.is-focus .spw-figure { align-self: start; margin-top: 96px; }
  .spw-layout.is-focus .spw > .spw-tools { top: 150px; }
}
/* Hover: darker teal so white text is readable (5:1 contrast). */
.spw .spw-btn:hover, .spw .spw-btn.is-primary:hover { background: #17797A !important; border-color: #17797A !important; color: #fff !important; }
.spw .spw-formslot #wp-submit:hover { background: #17797A !important; border-color: #17797A !important; color: #fff !important; }
/* Inputs: room for the portal's icons inside the boxes. */
.spw .spw-formslot input.input, .spw .spw-formslot input[type="text"], .spw .spw-formslot input[type="password"] { padding-left: 46px !important; }
.spw .spw-formslot form > p, .spw .spw-formslot .user-pass-wrap { margin-bottom: 10px !important; }
/* SPARK's bubble and the chosen pill already say the role; the extra note inside the form isn't needed here. */
.spw .spw-formslot .spw-role { display: none !important; }
.spw .spw-formslot .submit { margin-top: 2px !important; }
/* Funder logos on their own line under Meet SPARK. */
.spw-funders { display: flex; width: max-content; }

/* 1.2.0 (round 7, Rana): every input and button the same: a see-through dark pill with white writing. */
.spw .spw-formslot input.input, .spw .spw-formslot input[type="text"], .spw .spw-formslot input[type="password"], .spw .spw-formslot input[type="email"] {
  background: rgba(10, 0, 30, .38) !important; color: #fff !important; border: 2px solid rgba(255, 255, 255, .78) !important; caret-color: #FFC72C; }
.spw .spw-formslot input::placeholder { color: rgba(255, 255, 255, .78) !important; opacity: 1; }
.spw .spw-formslot input:-webkit-autofill { -webkit-text-fill-color: #fff !important; -webkit-box-shadow: 0 0 0 40px #2A0A55 inset !important; transition: background-color 9999s; }
.spw .spw-formslot .wp-pwd .wp-hide-pw, .spw .spw-formslot .wp-hide-pw .dashicons { color: #fff !important; }
.spw .spw-formslot form p::before, .spw .spw-formslot .user-pass-wrap::before, .spw .spw-formslot label::before { color: #fff !important; } /* the portal's icons */
.spw .spw-formslot input.input:focus { border-color: #FFC72C !important; background: rgba(10, 0, 30, .5) !important; }
.spw .spw-btn, .spw .spw-btn.is-primary, .spw .spw-formslot #wp-submit, .spw .spw-formslot input[type="submit"] { background: rgba(10, 0, 30, .38) !important; color: #fff !important; border: 2px solid rgba(255, 255, 255, .78) !important; }
.spw .spw-formslot #wp-submit:hover, .spw .spw-btn:hover { background: #17797A !important; color: #fff !important; }
.spw .spw-btn.is-selected, .spw .spw-btn[aria-pressed="true"] { background: #FFC72C !important; color: #1E0A3C !important; }

/* 1.2.0 (round 8, Rana): white logos on a see-through black pill; Meet SPARK as a soft yellow see-through pill. */
.spw-funders { background: rgba(0, 0, 0, .42); gap: 22px; }
.spw-funders img { height: 34px; }
.spw .spw-link[data-spw="meet"] { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; border: 2px solid rgba(255, 199, 44, .85) !important; color: #fff !important; text-decoration: none; font-weight: 700; transition: background-color 160ms ease; }
.spw .spw-link[data-spw="meet"]:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; }
.spw-layout.is-hc .spw-funders { background: #000; border-color: #fff; }
.spw-layout.is-hc .spw .spw-link[data-spw="meet"] { background: #000 !important; border-color: #FFE600 !important; }

/* 1.2.0 (round 9, Rana): one border only. Focus and typing show a single yellow border (no second ring). */
.spw .spw-formslot input.input:focus, .spw .spw-formslot input[type="text"]:focus, .spw .spw-formslot input[type="password"]:focus, .spw .spw-formslot input:focus-visible {
  outline: none !important; box-shadow: none !important; border: 2px solid #FFC72C !important; }
.spw .spw-formslot form p:focus-within, .spw .spw-formslot .user-pass-wrap:focus-within, .spw .spw-formslot .wp-pwd:focus-within { outline: none !important; box-shadow: none !important; }
.spw .spw-btn:focus, .spw .spw-btn:focus-visible, .spw .spw-formslot #wp-submit:focus, .spw .spw-formslot #wp-submit:focus-visible, .spw .spw-tool:focus-visible, .spw .spw-link[data-spw="meet"]:focus-visible {
  outline: none !important; box-shadow: none !important; border-color: #FFC72C !important; }
.spw .spw-btn:focus-visible, .spw .spw-formslot #wp-submit:focus-visible { border-width: 2px !important; }

/* 1.2.0 (round 10, Rana): every pill the same button shape: 14 px corners, 2 px border, 52 px tall. */
.spw-funders { border-radius: 14px; border: 2px solid rgba(255, 255, 255, .78); min-height: 52px; box-sizing: border-box; padding: 8px 20px; }
.spw .spw-link[data-spw="meet"] { border-radius: 14px; min-height: 52px; padding: 0 24px !important; }
.spw-jotd { border-radius: 14px; }

/* 1.2.0 (round 11, Rana): Meet SPARK sits under SPARK's feet (desktop). Still part of the welcome panel for keyboard order. */
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-layout.is-focus [data-panel="home"] { position: static; }
  .spw-layout.is-focus [data-panel="home"] > .spw-link[data-spw="meet"] { position: absolute; margin: 0; transform: translateX(-50%); }
  .spw-layout.is-focus .spw-funders { margin-top: 16px; }
}
@media (min-width: 1061px) and (min-height: 640px) { .spw-layout.is-focus [data-panel="home"] > .spw-link[data-spw="meet"] { left: 88px; top: 414px; } }
/* Over the stripes the see-through yellow vanished: a soft yellow tint on solid purple keeps it readable anywhere. */
.spw .spw-link[data-spw="meet"]:hover { background: linear-gradient(rgba(255, 199, 44, .4), rgba(255, 199, 44, .4)), #3C0075 !important; }

/* 1.2.0 (round 12, Rana): crisp, even borders on every pill. A solid border colour (no see-through border over a
   see-through fill, which made corners look faded) and the fill kept inside the border. */
.spw .spw-btn, .spw .spw-btn.is-primary, .spw .spw-formslot #wp-submit, .spw .spw-formslot input[type="submit"],
.spw .spw-formslot input.input, .spw .spw-formslot input[type="text"], .spw .spw-formslot input[type="password"], .spw-funders {
  border-color: #D4C7E0 !important; background-clip: padding-box !important; -webkit-appearance: none; appearance: none; }
.spw .spw-btn:hover, .spw .spw-formslot #wp-submit:hover { border-color: #17797A !important; }
.spw .spw-btn.is-selected, .spw .spw-btn[aria-pressed="true"] { border-color: #FFC72C !important; }
.spw .spw-formslot input.input:focus, .spw .spw-formslot input[type="text"]:focus, .spw .spw-formslot input[type="password"]:focus,
.spw .spw-btn:focus-visible, .spw .spw-formslot #wp-submit:focus-visible { border-color: #FFC72C !important; }
/* The portal gives the form rounded, clipped corners, which shaved the Log In button's bottom corners. */
.spw .spw-formslot form { overflow: visible !important; border-radius: 0 !important; }
.spw .spw-formslot .submit { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* 1.2.0 (round 13, Rana): funders box the full width of the pills, roomier, logos centred. */
.spw-layout.is-focus .spw-funders { display: flex; width: 100%; box-sizing: border-box; justify-content: center; align-items: center; padding: 14px 24px; min-height: 64px; gap: 28px; }
/* Stripes that move; SPARK stands clear of them so he can pop out of them. */
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-layout.is-focus .spw { left: max(24px, min(calc(50vw - 200px), calc(100vw - 744px - 48px))); }
  .spw-layout.is-focus .spw-figure { position: relative; z-index: 4; will-change: transform; }
  .spw-sw-front { position: fixed; inset: 0; z-index: 6 !important; pointer-events: none; overflow: hidden; }
}
.spw-sw-front { display: none; }
@media (min-width: 1061px) and (min-height: 640px) { .spw-sw-front { display: block; } }
@media (min-width: 1061px) and (min-height: 640px) { .spw-layout.is-focus .spw > .spw-tools { left: 52px; } }

/* 1.2.0 (round 14): soft, slight, continuous motion. Transform/opacity only; nothing with reduced motion or Stop moving. */
@keyframes spw-sway { 0%, 100% { transform: skewX(-24deg) translateX(0); } 50% { transform: skewX(-24deg) translateX(12px); } }
.sp-sw.spw-sway i { animation: spw-sway 12s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
/* The speech bubble floats very slightly. */
@keyframes spw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.spw-layout.is-focus .spw-bubble { animation: spw-float 6s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
/* The main next step breathes: Log in on the welcome, Log In once both boxes are filled. A ring that fades, no size change. */
@keyframes spw-ring { 0%, 100% { opacity: 0; } 50% { opacity: .9; } }
.spw .spw-btn { position: relative; }
.spw-layout.is-focus [data-panel="home"] [data-spw="login"]::after { content: ""; position: absolute; inset: -2px; border-radius: 14px; border: 2px solid #FFC72C; opacity: 0; pointer-events: none; animation: spw-ring 3.2s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
.spw-layout.is-focus [data-panel="home"] [data-spw="login"]:hover::after, .spw-layout.is-focus [data-panel="home"] [data-spw="login"].is-selected::after { animation: none; opacity: 0; }
@keyframes spw-ready { 0%, 100% { border-color: #D4C7E0; } 50% { border-color: #FFC72C; } }
.spw .spw-formslot form.spw-ready #wp-submit:not(:hover):not(:focus-visible) { animation: spw-ready 2.6s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
/* Press feedback: quick and small. */
.spw .spw-btn, .spw .spw-tool, .spw .spw-formslot #wp-submit { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.spw .spw-btn:active, .spw .spw-tool:active, .spw .spw-formslot #wp-submit:active, .spw .spw-link[data-spw="meet"]:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .sp-sw.spw-sway i, .spw-layout.is-focus .spw-bubble, .spw-layout.is-focus [data-panel="home"] [data-spw="login"]::after, .spw .spw-formslot form.spw-ready #wp-submit { animation: none !important; }
  .spw .spw-btn:active, .spw .spw-tool:active, .spw .spw-formslot #wp-submit:active { transform: none; }
}
html.spw-still .sp-sw i, .spw-layout.is-still .spw-bubble, .spw-layout.is-still [data-panel="home"] [data-spw="login"]::after, .spw-layout.is-still .spw-formslot form.spw-ready #wp-submit { animation: none !important; }
.spw-sw-front.spw-sway i { animation: spw-sway 12s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
.spw-actions.is-stack .spw-btn { overflow: visible; }

/* "Volume up to hear me": a small, quiet note beside the name. */
.spw-name .spw-vol { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 3px 10px 3px 8px; vertical-align: middle; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .25); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0; line-height: 1.4; white-space: nowrap; }
.spw-name .spw-vol svg { width: 14px; height: 14px; flex: none; }
.spw-layout.is-muted .spw-name .spw-vol { display: none; }

/* ---------- Luton Youth Hub (1.2.0 round 14, Rana) ---------- */
.spw-lyh-logo { display: none; }
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-layout.is-focus .spw-figure { pointer-events: none; } /* Decorative; lets the logo behind him be pressed. */
  /* Behind SPARK: half hidden behind his head, a little see-through, floating gently. */
  .spw-layout.is-focus .spw-lyh-logo { display: block; position: absolute; left: 50px; top: 238px; width: 128px; z-index: 3; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; opacity: .9; transform: rotate(-10deg); transform-origin: 50% 50%; transition: opacity 200ms ease, filter 200ms ease; border-radius: 10px; }
  .spw-layout.is-focus .spw-lyh-logo img { display: block; width: 100%; height: auto; animation: spw-lyh-bob 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; filter: drop-shadow(0 0 26px rgba(255, 255, 255, .45)) drop-shadow(0 0 10px rgba(255, 255, 255, .2)); }
  .spw-layout.is-focus .spw-lyh-logo:focus-visible { outline: 3px solid #FFC72C; outline-offset: 4px; opacity: 1; }
  /* Presented: out from behind him, above his head, full colour. */
  .spw-layout.is-focus.is-lyh .spw-lyh-logo { left: 46px; top: -50px; width: 220px; z-index: 7; opacity: 1; transform: rotate(-4deg); cursor: default; pointer-events: none; }
  .spw-layout.is-focus.is-lyh .spw-lyh-logo img { animation: none; filter: drop-shadow(0 0 30px rgba(255, 255, 255, .45)) drop-shadow(0 0 12px rgba(255, 255, 255, .2)); }
}
@media (min-width: 1061px) and (min-height: 640px) and (max-height: 780px) {
  .spw-layout.is-focus.is-lyh .spw-lyh-logo { width: 168px; top: -22px; left: 72px; }
}
@media (min-width: 1061px) and (min-height: 640px) and (hover: hover) and (pointer: fine) {
  .spw-layout.is-focus:not(.is-lyh) .spw-lyh-logo:hover { opacity: .95; }
}
/* A small, soft bounce now and then: up, down, a tiny second hop, then rest. */
@keyframes spw-lyh-bounce { 0%, 54%, 100% { transform: translateY(0); } 18% { transform: translateY(-9px); } 34% { transform: translateY(0); } 44% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .spw-lyh-logo img { animation: none !important; } }
html.spw-still .spw-lyh-logo img, .spw-layout.is-still .spw-lyh-logo img { animation: none !important; }
html.spw-pre .spw-lyh-logo { opacity: 0 !important; }

/* The questions: a see-through box of pills, the same shape as every other pill. */
.spw-faq { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 2px solid #D4C7E0; border-radius: 14px; background: rgba(10, 0, 30, .38); background-clip: padding-box; }
.spw .spw-faq .spw-btn { min-height: 40px; padding: 8px 40px; font-size: 15px; position: relative; width: 100%; margin: 0; }
.spw .spw-faq .spw-faq-q::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-65%) rotate(45deg); opacity: .8; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.spw .spw-faq .spw-faq-q.is-open::after { transform: translateY(-35%) rotate(-135deg); }
.spw .spw-faq .spw-faq-q.is-open, .spw .spw-faq .spw-faq-q.is-open:hover { background: #FFC72C !important; border-color: #FFC72C !important; color: #1E0A3C !important; }
.spw .spw-faq .spw-faq-q.is-contact:not(.is-open) { border-color: #FFC72C !important; }
.spw .spw-faq .spw-faq-back { margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.spw .spw-faq .spw-faq-back svg { width: 18px; height: 18px; flex: none; }
/* An answer pops out over the list beside its question; nothing underneath moves. */
.spw-faq-a { position: absolute; left: 14px; right: 14px; z-index: 12; margin: 0; padding: 16px 48px 16px 18px; border: 2px solid #FFC72C; border-radius: 14px; background: #24083F; color: #fff; font-size: 15px; line-height: 1.5; text-align: left; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transform-origin: 50% 0; }
.spw-faq-a.is-up { transform-origin: 50% 100%; }
.spw-faq-a::before { content: ""; position: absolute; left: 50%; top: -8px; width: 12px; height: 12px; margin-left: -6px; background: #24083F; border-left: 2px solid #FFC72C; border-top: 2px solid #FFC72C; transform: rotate(45deg); }
.spw-faq-a.is-up::before { top: auto; bottom: -8px; transform: rotate(225deg); }
.spw-faq-a p { margin: 0 0 8px; color: #fff; } .spw-faq-a p:last-child { margin-bottom: 0; }
.spw-faq-a ul { margin: 0; padding-left: 20px; } .spw-faq-a li { margin: 2px 0; color: #fff; }
.spw .spw-faq-a a, .spw .spw-faq-a a:visited { color: #FFC72C !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.spw-faq-a a:focus-visible { outline: 2px solid #FFC72C; outline-offset: 2px; }
.spw-faq-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.spw-faq-x svg { width: 20px; height: 20px; display: block; }
.spw-faq-x:hover { background: rgba(255, 255, 255, .12); } .spw-faq-x:focus-visible { outline: 2px solid #FFC72C; }
.spw-layout.is-hc .spw-faq-a, .spw-layout.is-hc .spw-faq-a::before { background: #000; border-color: #FFE600; }
/* The open answer floats above everything below it (the Terms line included). */
.spw-layout.is-focus .spw-panel[data-panel="lyh"] { position: relative; z-index: 8; }
.spw-faq { z-index: 1; }
/* Slow, soft bob behind SPARK. */
@keyframes spw-lyh-bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------- Phone (1.2.0 phone round 1): SPARK top left in front of a corner of stripes; everything else on plain
   purple so every pill reads clearly. ---------- */
@media (max-width: 1060px), (max-height: 639px) {
  body.login.spw-on { overflow-x: clip; }
  body.login.spw-on .sp-sw { position: absolute !important; height: 300px !important; width: 100% !important; overflow: hidden; transform: translateX(-220px); -webkit-mask-image: linear-gradient(#000 45%, transparent 100%); mask-image: linear-gradient(#000 45%, transparent 100%); }
  .spw-layout.is-focus { width: calc(100% - 32px); padding: 16px 0 28px; }
  .spw-layout.is-focus .spw { width: 100%; grid-template-columns: 112px minmax(0, 1fr); }
  .spw-layout.is-focus .spw > .spw-name { display: flex; flex-direction: column; gap: 4px; }
  .spw-layout.is-focus .spw-name .spw-name-t { font-size: 26px !important; line-height: 1.1; }
  .spw-layout.is-focus .spw-name .spw-name-d { display: block; line-height: 1.35; }
  .spw-name .spw-vol { margin: 4px 0 0; order: 3; }
  .spw-layout.is-focus .spw > .spw-bubble { margin: 0; }
  .spw-layout.is-focus .spw-bubble::before { display: none; }
  .spw-layout.is-focus .spw-text { font-size: 16.5px; }
  .spw-layout.is-focus .spw > .spw-panel { grid-column: 1 / -1; }
  /* Controls: a smaller round button at the top of SPARK's corner; the four open over the space under it. */
  .spw-layout.is-focus .spw > .spw-tools { width: 40px; }
  .spw-layout.is-focus .spw-more-box { max-width: calc(100vw - 110px); }
  /* Pills: full width, 48 px tall for thumbs. */
  .spw-actions.is-stack .spw-btn { min-height: 50px; font-size: 16px; }
  .spw-layout.is-focus [data-panel="home"] > .spw-link[data-spw="meet"] { position: static; transform: none; display: flex; width: 100%; justify-content: center; margin: 10px 0 0; box-sizing: border-box; }
  .spw-layout.is-focus .spw-funders { margin-top: 12px; }
  .spw-legal { text-align: center; }
  .spw-roles .spw-btn { font-size: 14.5px !important; padding: 8px 4px !important; }
  /* Luton Youth Hub: peeks from behind SPARK's left side; pressed, it takes the name's place beside him. */
  .spw-layout.is-focus .spw-lyh-logo { display: block; padding: 0; border: 0; background: none; opacity: .95; transform: rotate(-10deg); cursor: pointer; }
  .spw-layout.is-focus .spw-lyh-logo img { display: block; width: 100%; height: auto; animation: spw-lyh-bob 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  .spw-layout.is-focus .spw-figure { pointer-events: none; }
  .spw-layout.is-focus.is-lyh .spw-lyh-logo { transform: rotate(-4deg); pointer-events: none; }
  .spw-layout.is-focus.is-lyh .spw-lyh-logo img { animation: none; }
  .spw-faq { padding: 12px; }
  .spw .spw-faq .spw-btn { padding: 8px 36px; font-size: 15px; }
  .spw-faq-a { left: 8px; right: 8px; }
}
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout.is-focus .spw > .spw-legal { grid-column: 1 / -1; justify-self: center; text-align: center; margin-top: 8px; }
}

/* ---------- Phone round 2 (Rana): everything centred, styled as desktop; SPARK sits behind the speech bubble's top
   right corner, peeking over it as if holding it. Name row, then one shared cell for SPARK, his controls, the Luton Youth
   Hub logo and the bubble (they overlap on purpose). ---------- */
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout.is-focus .spw { grid-template-columns: minmax(0, 1fr); gap: 12px 0; justify-items: stretch; }
  .spw-layout.is-focus .spw > .spw-name { grid-column: 1; padding-right: 0; }
  .spw-layout.is-focus .spw-name .spw-name-d { font-size: 12.5px !important; }
  .spw-layout.is-focus .spw-figure { grid-column: 1; grid-row: 2; justify-self: end; align-self: start; margin: 0 4px 0 0; z-index: 4; }
  .spw-layout.is-focus .spw > .spw-bubble { grid-column: 1; grid-row: 2; position: relative; z-index: 5; }
  .spw-layout.is-focus .spw > .spw-tools { position: relative; left: auto; right: auto; top: auto; grid-column: 1; grid-row: 2; align-self: start; z-index: 30; }
  .spw-layout.is-focus .spw-more-box { top: 0; bottom: auto; }
  .spw-layout.is-focus .spw > .spw-panel, .spw-layout.is-focus .spw > .spw-legal { grid-column: 1; }
  .spw-layout.is-focus .spw-panel h3 { text-align: center; }
  .spw-layout.is-focus .spw-panel .spw-row { justify-content: center; }
  /* Luton Youth Hub: peeks out behind SPARK and the bubble; pressed, it sits over the bubble's top left corner. */
  .spw-layout.is-focus .spw-lyh-logo { position: relative; left: auto; top: auto; grid-column: 1; grid-row: 2; justify-self: end; align-self: start; z-index: 3; }
  .spw-layout.is-focus.is-lyh .spw-lyh-logo { left: auto; top: auto; justify-self: start; z-index: 7; }
}

/* ---------- Phone round 3 (Rana): text at 8pt to fit; SPARK bigger over the bubble; controls at the bubble's top left.
   The sign-in boxes stay at 16px: iPhones zoom the whole page into any box with smaller text. ---------- */
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout.is-focus .spw-figure { width: 150px; height: 176px; }
  .spw-layout.is-focus .spw > .spw-bubble { margin-top: 96px; }
  .spw-layout.is-focus.is-lyh .spw > .spw-bubble { margin-top: 96px; }
  /* 8pt text. */
  .spw-layout.is-focus .spw-name .spw-name-d, .spw-layout.is-focus .spw-text, .spw .spw-btn, .spw .spw-actions.is-stack .spw-btn,
  .spw .spw-faq .spw-btn, .spw-faq-a, .spw-faq-a p, .spw-faq-a li, .spw-layout.is-focus .spw-panel h3, .spw-layout.is-focus .spw-note,
  .spw .spw-link, .spw-legal, .spw-legal a, .spw-name .spw-vol, .spw .spw-formslot label, .spw .spw-formslot #wp-submit,
  .spw .spw-formslot p, .spw .spw-formslot a, .spw .spw-roles .spw-btn { font-size: 8pt !important; }
  .spw-layout.is-focus .spw-text { line-height: 1.5; }
  .spw .spw-actions.is-stack .spw-btn, .spw .spw-faq .spw-btn, .spw .spw-formslot #wp-submit, .spw-layout.is-focus [data-panel="home"] > .spw-link[data-spw="meet"] { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
  .spw .spw-roles .spw-btn { min-height: 40px; }
  .spw .spw-formslot input.input, .spw .spw-formslot input[type="text"], .spw .spw-formslot input[type="password"] { font-size: 16px !important; min-height: 44px; }
  .spw-name .spw-vol svg { width: 11px; height: 11px; }
}
@media (max-width: 1060px), (max-height: 639px) {
  html { overflow-x: clip; }
  .spw-layout.is-focus .spw > .spw-bubble { min-height: 0 !important; }
  .spw-layout.is-focus .spw-bubble .spw-text { min-height: 0 !important; }
  .spw-layout.is-focus .spw-lyh-logo { margin-right: 86px; }
}

/* ---------- Phone round 4 (Rana): the name on the left over two lines, in the space above the bubble; SPARK on the right;
   a smaller controls button on the right of his head. ---------- */
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout.is-focus .spw > .spw-name { grid-row: 2; justify-self: start; align-self: start; align-items: flex-start; text-align: left; margin: 14px 0 0 2px; z-index: 6; }
  .spw-layout.is-focus .spw-name .spw-name-d { white-space: normal !important; }
  .spw-layout.is-focus .spw > .spw-tools { justify-self: end; margin: 2px -2px 0 0; }
  .spw-layout.is-focus .spw-tools .spw-tools-toggle { width: 32px; height: 32px; min-height: 32px; flex-basis: 32px; }
  .spw-layout.is-focus .spw-tools .spw-tools-toggle svg { width: 18px; height: 18px; }
  .spw-layout.is-focus .spw-tools-menu { left: auto; top: 42px; }
  .spw-layout.is-focus .spw-more-box { left: auto; right: 64px; }
  .spw-layout.is-focus .spw-figure { margin-right: 18px; }
  .spw-layout.is-focus .spw-lyh-logo { width: 80px; margin: 52px 112px 0 0; }
  .spw-layout.is-focus.is-lyh .spw-lyh-logo { width: 132px; margin: 0 0 0 4px; }
  .spw-layout.is-focus.is-lyh .spw > .spw-name { visibility: hidden; }
}
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout.is-focus .spw > .spw-name, .spw-layout.is-focus .spw-figure, .spw-layout.is-focus .spw > .spw-bubble,
  .spw-layout.is-focus .spw > .spw-tools, .spw-layout.is-focus .spw-lyh-logo { grid-row: 1; }
  .spw-layout.is-focus .spw > .spw-panel { grid-row: 2; }
}
@media (max-width: 1060px), (max-height: 639px) {
  /* Only the part of SPARK above the bubble ever shows (short lines no longer reveal his feet underneath). */
  .spw-layout.is-focus .spw-figure { clip-path: inset(-30px -30px 52px -30px); }
  .spw-layout.is-focus .spw-tools-menu { right: 0; }
  /* Log in and Create an account side by side; the rest full width. Smaller pills. */
  .spw-layout.is-focus [data-panel="home"] > .spw-actions.is-stack { grid-template-columns: 1fr 1fr; gap: 8px; }
  .spw-layout.is-focus [data-panel="home"] > .spw-actions.is-stack > .spw-btn:nth-child(n+3) { grid-column: 1 / -1; }
  .spw .spw-actions.is-stack .spw-btn, .spw-layout.is-focus [data-panel="home"] > .spw-link[data-spw="meet"] { min-height: 36px; padding: 5px 10px; }
  .spw-layout.is-focus [data-panel="home"] > .spw-link[data-spw="meet"] { margin-top: 8px; min-height: 36px; }
}
@media (max-width: 1060px), (max-height: 639px) { .spw-layout.is-focus .spw-figure { margin-bottom: -60px; } .spw-layout.is-focus .spw-lyh-logo { margin-bottom: -40px; } }
@media (max-width: 1060px), (max-height: 639px) {
  /* Sound on: room for the "Volume up to hear me" pill under the name; SPARK and the logo move down with the bubble. */
  .spw-layout.is-focus .spw-bubble .spw-hear { font-size: 8pt !important; min-height: 30px; padding: 4px 12px; margin-top: 8px; }
}

/* ---------- Phone round 5 (Rana): the name on a dark see-through purple panel (no text shadow); the volume note becomes
   a small icon under the controls button; the Luton Youth Hub logo gets a white outline so it stands out. ---------- */
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout.is-focus .spw > .spw-name { position: static; border-radius: 14px; margin-top: 8px; box-sizing: border-box; }
  .spw-layout.is-focus .spw-name .spw-name-t, .spw-layout.is-focus .spw-name .spw-name-d { text-shadow: none !important; }
  .spw-layout.is-focus .spw-name .spw-vol { position: absolute; z-index: 29; width: 32px; height: 32px; margin: 0; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(30, 10, 60, .55); }
  .spw-layout.is-focus .spw-name .spw-vol svg { width: 16px; height: 16px; }
  .spw-layout.is-focus .spw-name .spw-vol .spw-vol-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* The note no longer needs its own line, so the bubble sits at the same height with sound on or off. */
  .spw-layout.is-focus:not(.is-muted) .spw > .spw-bubble { margin-top: 96px; }
  .spw-layout.is-focus:not(.is-muted) .spw-figure { margin-top: 0; }
  .spw-layout.is-focus:not(.is-muted):not(.is-lyh) .spw-lyh-logo { margin-top: 52px; }
  .spw-layout.is-focus:not(.is-muted).is-lyh .spw-lyh-logo { margin-top: 0; }
  .spw-layout.is-focus .spw-lyh-logo img { filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 0 14px rgba(255, 255, 255, .35)); }
  .spw-layout.is-focus.is-lyh .spw-lyh-logo img { filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff); }
}
@media (max-width: 1060px), (max-height: 639px) { .spw-layout.is-focus .spw-bubble .spw-tool.spw-hear { font-size: 8pt !important; min-height: 28px !important; height: auto !important; padding: 4px 12px !important; } }

/* ---------- Phone round 6 (Rana): one dark see-through purple panel behind the whole top section (name, SPARK, his
   buttons and the logo), a fixed height so it never moves; a smaller logo. ---------- */
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout.is-focus .spw::before { position: absolute; left: 0; right: 0; top: 0; height: 116px; z-index: 0; border-radius: 14px; background: rgba(20, 0, 45, .62); pointer-events: none; }
  .spw-layout.is-focus .spw > .spw-name { background: none; }
  .spw-layout.is-focus:not(.is-lyh) .spw-lyh-logo { width: 62px; margin: 58px 112px 0 0; }
}

/* ---------- Phone round 7 (Rana): the see-through card behind the whole welcome, with equal space all round, as in
   the version that's live now. ---------- */
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout.is-focus .spw::before { content: none; }
  .spw-layout.is-focus .spw { background: rgba(26, 6, 58, .9); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 16px; box-shadow: 0 24px 60px rgba(10, 0, 30, .45); box-sizing: border-box; }
  .spw-layout.is-focus .spw-name .spw-vol { right: 14px; top: 58px; }
}
@media (max-width: 1060px), (max-height: 639px) { .spw-layout.is-focus .spw > .spw-name { padding: 6px 0 0 2px; max-width: 50%; } }
@media (max-width: 1060px), (max-height: 639px) { .spw-layout.is-focus:not(.is-lyh) .spw-lyh-logo { margin-right: 86px; } }

/* ---------- Tablet (601-1060px): the approved phone design in a centred card, at desktop text sizes. ---------- */
@media (min-width: 601px) and (max-width: 1060px), (min-width: 601px) and (max-height: 639px) {
  .spw-layout.is-focus { width: min(600px, calc(100% - 64px)); padding: 48px 0; }
  .spw-layout.is-focus .spw { padding: 24px; }
  .spw-layout.is-focus .spw-figure { width: 190px; height: 222px; clip-path: inset(-30px -30px 66px -30px); margin-bottom: -80px; }
  .spw-layout.is-focus .spw > .spw-bubble, .spw-layout.is-focus:not(.is-muted) .spw > .spw-bubble, .spw-layout.is-focus.is-lyh .spw > .spw-bubble { margin-top: 124px; }
  .spw-layout.is-focus .spw > .spw-name { margin-top: 14px; }
  .spw-layout.is-focus .spw-name .spw-name-t { font-size: 34px !important; }
  .spw-layout.is-focus .spw-name .spw-name-d { font-size: 14px !important; }
  .spw-layout.is-focus .spw-tools .spw-tools-toggle { width: 40px; height: 40px; min-height: 40px; flex-basis: 40px; }
  .spw-layout.is-focus .spw-name .spw-vol { width: 40px; height: 40px; right: 22px; top: 76px; }
  .spw-layout.is-focus .spw-tools-menu { top: 50px; }
  .spw-layout.is-focus .spw-text, .spw .spw-btn, .spw .spw-actions.is-stack .spw-btn, .spw .spw-faq .spw-btn, .spw-faq-a, .spw-faq-a p, .spw-faq-a li,
  .spw-layout.is-focus .spw-panel h3, .spw-layout.is-focus .spw-note, .spw .spw-link, .spw-legal, .spw-legal a, .spw .spw-formslot label, .spw .spw-formslot #wp-submit,
  .spw .spw-formslot p, .spw .spw-formslot a, .spw .spw-roles .spw-btn { font-size: 15px !important; }
  .spw-layout.is-focus .spw-text { font-size: 17px !important; }
  .spw-layout.is-focus .spw-bubble .spw-tool.spw-hear { font-size: 14px !important; min-height: 36px !important; }
  .spw .spw-actions.is-stack .spw-btn, .spw .spw-faq .spw-btn, .spw .spw-formslot #wp-submit, .spw-layout.is-focus [data-panel="home"] > .spw-link[data-spw="meet"], .spw .spw-roles .spw-btn { min-height: 48px; }
  .spw-layout.is-focus:not(.is-lyh) .spw-lyh-logo { width: 84px; margin: 76px 116px 0 0; }
  .spw-layout.is-focus:not(.is-muted):not(.is-lyh) .spw-lyh-logo { margin-top: 76px; }
  .spw-layout.is-focus.is-lyh .spw-lyh-logo { width: 190px; margin: 0 0 0 4px; }
}
@media (min-width: 601px) and (max-width: 1060px), (min-width: 601px) and (max-height: 639px) { .spw-layout.is-focus { min-height: 100vh; min-height: 100dvh; align-content: center; box-sizing: border-box; } }
@media (max-width: 600px) { .spw-layout.is-focus .spw-name .spw-vol { right: 22px; } }

/* ---------- 3.0.0-beta.3 council fixes ---------- */
/* H2: on desktop the panel is placed against the page (not pinned to the window), so when it is taller than the window
   (an error message, the staff tip, a guide card, a zoomed screen) the page scrolls to the rest of it. */
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-layout.is-focus { position: static; }
  .spw-layout.is-focus .spw { position: absolute; padding-bottom: 32px; }
}
/* M1: keyboard focus is always visible: a white ring outside the pill (keyboard only; a mouse click shows no ring), and
   the system highlight colour in Windows High Contrast. Inputs keep the single yellow border Rana chose. */
.spw .spw-btn:focus-visible, .spw .spw-tool:focus-visible, .spw .spw-link:focus-visible, .spw .spw-faq-q:focus-visible,
.spw .spw-formslot #wp-submit:focus-visible, .spw .spw-lyh-logo:focus-visible, .spw-faq-x:focus-visible {
  outline: 3px solid #fff !important; outline-offset: 3px !important; }
@media (forced-colors: active) {
  .spw :focus-visible { outline: 3px solid Highlight !important; outline-offset: 3px !important; }
}

/* ---------- Opening screen: "Say hello to SPARK" (Rana 6 Nov: tap to start, so his voice plays from the start) ---------- */
.spw-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; box-sizing: border-box; background: rgba(30, 0, 60, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.spw-gate-card { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(380px, 100%); padding: 28px 24px 24px; box-sizing: border-box; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(26, 6, 58, .92); box-shadow: 0 24px 60px rgba(10, 0, 30, .5); text-align: center; color: #fff; }
.spw-gate-img { width: 130px; height: auto; filter: drop-shadow(0 12px 16px rgba(10, 0, 30, .5)); }
.spw-gate-h { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.spw-gate-p { margin: 0 0 6px; font-size: 16px; color: #FFE38A; font-weight: 600; }
.spw-gate-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 18px; border: 2px solid #FFC72C; border-radius: 14px; background: #FFC72C; color: #1E0A3C; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease; animation: spw-gate-ring 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
.spw-gate-go svg { width: 22px; height: 22px; flex: none; }
.spw-gate-go:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .spw-gate-go:hover { background: #FFD45C; } }
.spw-gate-go:focus-visible, .spw-gate-quiet:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.spw-gate-quiet { margin-top: 2px; padding: 8px 10px; border: 0; background: none; color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes spw-gate-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 199, 44, .5); } 50% { box-shadow: 0 0 0 8px rgba(255, 199, 44, 0); } }
@media (prefers-reduced-motion: reduce) { .spw-gate-go { animation: none; } }
@media (max-width: 600px) { .spw-gate-h { font-size: 26px; } .spw-gate-img { width: 110px; } }
.spw-layout.is-hc .spw-gate-card { background: #000; border: 2px solid #fff; }
/* BuddyBoss paints every <button> blue with a shadow; the opening screen's buttons keep their own look in every state. */
.spw-gate .spw-gate-go, .spw-gate .spw-gate-go:hover, .spw-gate .spw-gate-go:focus, .spw-gate .spw-gate-go:active {
  background: #FFC72C !important; color: #1E0A3C !important; border: 2px solid #FFC72C !important; box-shadow: none !important; animation: none; position: relative; }
@media (hover: hover) and (pointer: fine) { .spw-gate .spw-gate-go:hover { background: #FFD45C !important; border-color: #FFD45C !important; } }
.spw-gate .spw-gate-go::after { content: ""; position: absolute; inset: -2px; border-radius: 14px; border: 2px solid #FFC72C; pointer-events: none; animation: spw-gate-pulse 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
@keyframes spw-gate-pulse { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.08, 1.3); } }
.spw-gate .spw-gate-quiet, .spw-gate .spw-gate-quiet:hover, .spw-gate .spw-gate-quiet:focus, .spw-gate .spw-gate-quiet:active {
  background: none !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
@media (prefers-reduced-motion: reduce) { .spw-gate .spw-gate-go::after { animation: none; opacity: 0; } }
/* While the opening screen is up, the welcome behind it stays out of sight, so SPARK's entrance is fresh after the tap. */
html.spw-gated .spw-layout.is-focus .spw, html.spw-gated .sp-sw { opacity: 0 !important; }
@media (max-width: 1060px), (max-height: 639px) { .spw-layout.is-focus .spw { transition: opacity 320ms cubic-bezier(0.23, 1, 0.32, 1); } }
@media (prefers-reduced-motion: reduce) { .spw-layout.is-focus .spw { transition: none; } }

/* ---------- Funders footer (Rana 6 Nov): always shown, the bubble's width, just above Terms, on every screen ---------- */
.spw > .spw-funders.is-footer { grid-column: 2; width: 100%; max-width: none; margin: 16px 0 0; justify-content: center; box-sizing: border-box; }
@media (max-width: 1060px), (max-height: 639px) {
  .spw-layout.is-focus .spw > .spw-funders.is-footer { grid-column: 1; grid-row: 3; }
  .spw-layout.is-focus .spw > .spw-legal { grid-row: 4; }
}

/* ---------- Pills, round 15 (Rana 6 Nov) ---------- */
/* Every pill on its own is the speech bubble's width (Tell me included). */
.spw .spw-actions.is-2 { grid-template-columns: minmax(0, 1fr); }
.spw .spw-actions > .spw-btn:only-child, .spw .spw-actions > .spw-btn:only-of-type { grid-column: 1 / -1; width: 100%; }
/* The links under the pills: see-through pink pills, like the pink stripe, sharing the bubble's width equally. */
.spw .spw-panel .spw-row { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); width: 100%; margin-top: 12px; justify-content: stretch; }
.spw .spw-panel .spw-row > [hidden] { display: none !important; }
.spw .spw-panel .spw-row .spw-link, .spw .spw-panel .spw-row a.spw-link {
  display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 0; padding: 8px 14px; box-sizing: border-box;
  border: 2px solid #EF5B6D !important; border-radius: 14px; background: rgba(239, 91, 109, .18) !important; background-clip: padding-box !important;
  color: #fff !important; font-weight: 700; font-size: 14.5px; line-height: 1.25; text-align: center; text-decoration: none !important; box-shadow: none !important; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) { .spw .spw-panel .spw-row .spw-link:hover { background: rgba(239, 91, 109, .42) !important; } }
.spw .spw-panel .spw-row .spw-link:active { transform: scale(0.97); }
.spw-layout.is-hc .spw .spw-panel .spw-row .spw-link { background: #000 !important; border-color: #fff !important; }
@media (max-width: 600px) { .spw .spw-panel .spw-row { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); } }
.spw .spw-panel .spw-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.spw .spw-panel .spw-row .spw-link { white-space: nowrap; font-size: 14px; }
@media (max-width: 1060px), (max-height: 639px) { .spw .spw-panel .spw-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
@media (max-width: 600px) { .spw .spw-panel .spw-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spw .spw-panel .spw-row .spw-link { white-space: normal; } }
/* Two per row; a pill left on its own fills the row (the bubble's width). Long labels wrap inside the pill. */
.spw .spw-panel .spw-row { display: flex !important; flex-wrap: wrap; gap: 8px; }
.spw .spw-panel .spw-row > .spw-link { flex: 1 1 calc(50% - 4px); min-width: calc(50% - 4px); white-space: normal !important; }
/* A used pill (Tell me after the punchline): our own pill, dimmed (not the portal's blue disabled button). */
.spw .spw-btn[aria-disabled="true"], .spw .spw-btn:disabled, .spw .spw-btn[aria-disabled="true"]:hover {
  background: rgba(10, 0, 30, .38) !important; color: rgba(255, 255, 255, .5) !important; border-color: rgba(212, 199, 224, .45) !important; box-shadow: none !important; cursor: default; }
.spw .spw-panel .spw-row[hidden] { display: none !important; }
/* Phones: the three funder logos always sit inside the pill with room to breathe, shrinking together on narrow screens. */
@media (max-width: 600px) {
  .spw > .spw-funders.is-footer { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 4%; overflow: hidden; }
  .spw > .spw-funders.is-footer img { flex: 0 1 auto; min-width: 0; height: auto !important; object-fit: contain; }
  .spw > .spw-funders.is-footer img:nth-child(1) { width: 44%; }
  .spw > .spw-funders.is-footer img:nth-child(2) { width: 18%; }
  .spw > .spw-funders.is-footer img:nth-child(3) { width: 25%; }
}
/* beta.4 council fixes: short landscape phones keep both buttons reachable (M3); Still stops the pulse (L2); SPARK's words take focus quietly after the opening screen (M2). */
.spw-gate { overflow-y: auto; }
@media (max-height: 480px) { .spw-gate { padding: 12px; align-items: start; } .spw-gate-card { gap: 8px; padding: 16px 18px; } .spw-gate-img { display: none; } .spw-gate-h { font-size: 24px; } .spw-gate-go { min-height: 46px; } }
html.spw-still .spw-gate-go, html.spw-still .spw-gate-go::after { animation: none !important; }
.spw-bubble[tabindex="-1"]:focus { outline: none; }
/* iPhone "Add to Home Screen" tip (draft for Rana's approval): see-through pink pill like the links, under the funders. */
.spw .spw-ios-tip { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 8px 8px 14px; border: 2px solid #EF5B6D; border-radius: 999px; color: #fff; }
.spw .spw-ios-tip svg { width: 20px; height: 20px; flex: none; }
.spw .spw-ios-tip p { margin: 0; flex: 1; font-size: 13px; line-height: 1.35; color: #fff; }
.spw .spw-ios-tip b { color: #FFE38A; font-weight: 700; }
.spw .spw-ios-tip .spw-ios-x { all: unset; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; color: #fff; cursor: pointer; }
.spw .spw-ios-tip .spw-ios-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) { .spw .spw-ios-tip p { font-size: 8pt; } }
/* Meet SPARK in brand purple only (Rana 6 Nov: "use only our brand colours"): solid #3C0075 with the yellow stripe border, no mixed tint. */
.spw .spw-link[data-spw="meet"] { background: #3C0075 !important; border-color: #FFC72C !important; }
@media (hover: hover) and (pointer: fine) { .spw .spw-link[data-spw="meet"]:hover { background: #4B0A8F !important; } }
/* Rana 6 Nov: no yellow ring round the bubble (focus moves there after the opening screen; it isn't a control). */
.spw .spw-bubble:focus, .spw .spw-bubble:focus-visible { outline: none !important; }
/* Rana 6 Nov: the bubble's gentle float was stepping a pixel at a time (text snapping to whole pixels). Its own GPU layer and
   a 3D translate let it glide smoothly. */
.spw-layout.is-focus .spw-bubble { will-change: transform; animation-name: spw-float3d; }
@keyframes spw-float3d { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -3px, 0); } }
/* Rana 6 Nov: as SPARK says each word it swells slightly and settles back, so a soft wave follows his voice along the line. */
@media (prefers-reduced-motion: reduce) { .spw-text .spk-w, .spw-text .spk-w.now { transform: none; transition: none; } }
html.spw-still .spw-text .spk-w.now, .spw-layout.is-still .spw-text .spk-w.now { transform: none; }

/* ---------- Mobile: one screen, no scrolling (Rana 6 Nov). Short pills share a line, gaps and pill heights shrink.
   Touch targets stay at least 32px; the email and password boxes keep 16px text. ---------- */
@media (max-width: 600px) {
  .spw-layout.is-focus { padding-top: 10px !important; padding-bottom: 10px !important; }
  .spw-layout.is-focus .spw { padding-top: 10px !important; padding-bottom: 10px !important; row-gap: 6px !important; }
  .spw-layout.is-focus .spw > .spw-panel { margin-top: 6px !important; }
  .spw-layout.is-focus .spw-bubble { padding: 10px 14px !important; }
  .spw .spw-actions { gap: 6px !important; }
  .spw .spw-actions.is-stack .spw-btn, .spw .spw-faq .spw-btn, .spw .spw-btn, .spw .spw-roles .spw-btn, .spw .spw-link,
  .spw-layout.is-focus [data-panel="home"] > .spw-link[data-spw="meet"] { min-height: 34px !important; padding-top: 4px !important; padding-bottom: 4px !important; }
  .spw-layout.is-focus [data-panel="home"] > .spw-link[data-spw="meet"] { margin-top: 6px !important; }
  .spw .spw-panel .spw-row { gap: 6px !important; margin-top: 6px !important; }
  /* Sign in: the bubble already says who you're signing in as, so the heading is for screen readers only. */
  .spw-layout.is-focus [data-panel="signin"] > h3 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0 !important; }
  .spw .spw-roles { margin-bottom: 6px !important; }
  .spw .spw-formslot form p, .spw .spw-formslot .user-pass-wrap { margin-bottom: 6px !important; }
  .spw .spw-formslot form p { padding-top: 0 !important; padding-bottom: 0 !important; }
  .spw .spw-formslot input.input, .spw .spw-formslot input[type="text"], .spw .spw-formslot input[type="password"] { min-height: 40px !important; height: 40px !important; margin: 0 !important; }
  .spw .spw-formslot .forgetmenot { min-height: 30px !important; margin-bottom: 4px !important; }
  .spw .spw-formslot .spw-role { margin-bottom: 4px !important; }
  /* Log In and Back on one line. */
  .spw .spw-formslot p.submit { align-items: stretch; margin-top: 0 !important; }
  .spw .spw-formslot p.submit #wp-submit { flex: 1 1 0; min-height: 36px !important; margin: 0 !important; }
  .spw .spw-formslot p.submit .spw-link[data-spw="back"] { flex: 1 1 0; margin: 0 !important; }
  /* Joke ratings on one line. */
  .spw [data-panel="joke"] .spw-rate .spw-actions { display: grid !important; grid-template-columns: repeat(3, 1fr); }
  .spw [data-panel="joke"] .spw-rate h3 { margin: 4px 0 !important; }
  /* Luton Youth Hub questions two to a line; Back to SPARK across the bottom. */
  .spw .spw-faq { display: grid !important; gap: 6px !important; }
  .spw .spw-faq > .spw-faq-back { grid-column: 1 / -1; }
  .spw .spw-faq .spw-btn { padding-left: 8px !important; padding-right: 8px !important; line-height: 1.2; }
  /* New to Skills Pad: tighter card. */
  .spw [data-panel="account"] .spw-card { padding: 10px 12px !important; }
  .spw [data-panel="account"] .spw-card p, .spw [data-panel="account"] .spw-card ul { margin: 0 0 6px !important; }
  .spw [data-panel="account"] .spw-card li { margin-bottom: 2px !important; }
  .spw [data-panel="account"] h3, .spw [data-panel="joke"] .spw-setup { margin-bottom: 6px !important; }
  /* Footer: slimmer funders pill. */
  .spw > .spw-funders.is-footer { min-height: 0 !important; margin-top: 8px !important; }
  .spw > .spw-funders.is-footer img { max-height: 20px; }
  .spw-legal { margin-top: 6px !important; }
  .spw .spw-ios-tip { margin-top: 6px; padding: 4px 4px 4px 12px; }
}
/* Mobile tip in brand colours only (Rana 6 Nov): brand purple inside, pink stripe border; Install in stripe yellow. */
.spw .spw-ios-tip .spw-ios-go { all: unset; flex: none; padding: 6px 12px; border-radius: 999px; background: #FFC72C; color: #1E0A3C; font-weight: 800; font-size: 13px; cursor: pointer; }
.spw .spw-ios-tip .spw-ios-go[hidden] { display: none; }
.spw .spw-ios-tip .spw-ios-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) { .spw .spw-ios-tip .spw-ios-go { font-size: 8pt; } }
@media (max-width: 600px) {
  /* New to Skills Pad: 8pt like the rest of mobile; the heading is for screen readers (the bubble introduces it). */
  .spw [data-panel="account"] .spw-card, .spw [data-panel="account"] .spw-card p, .spw [data-panel="account"] .spw-card li, .spw [data-panel="account"] .spw-card a, .spw [data-panel="account"] .spw-closed { font-size: 8pt !important; line-height: 1.4 !important; }
  .spw [data-panel="account"] .spw-closed { padding: 6px 10px !important; margin: 0 0 6px !important; }
  .spw-layout.is-focus [data-panel="account"] > h3 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0 !important; }
}
@media (max-width: 600px) {
  .spw .spw-formslot p.submit { clear: both !important; width: 100% !important; }
  /* Back beside Log In: the same pink see-through pill as the other links. */
  .spw .spw-formslot p.submit .spw-link[data-spw="back"] { display: inline-flex; align-items: center; justify-content: center; min-height: 36px !important; border: 2px solid #EF5B6D !important; border-radius: 14px !important; background: rgba(239, 91, 109, .18) !important; color: #fff !important; font-weight: 700; text-decoration: none !important; }
  /* Luton Youth Hub, two to a line: room for the arrow so it never sits on the words. */
  .spw .spw-faq .spw-faq-q { padding-right: 24px !important; padding-left: 10px !important; }
  .spw .spw-faq .spw-faq-q::after { right: 10px; width: 5px; height: 5px; }
}
/* Brand colours only (Rana 6 Nov): the "Contact Luton Youth Hub" pill in solid brand purple, like Meet SPARK. */
.spw .spw-faq .spw-faq-q.is-contact:not(.is-open) { background: #3C0075 !important; }
/* beta.5 council: Install at least 32px tall; the tip honours [hidden]; the bubble's own layer only while it floats. */
.spw .spw-ios-tip .spw-ios-go { min-height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; }
.spw .spw-ios-tip .spw-ios-go[hidden], .spw .spw-ios-tip[hidden] { display: none !important; }
.spw-layout.is-still .spw-bubble { will-change: auto; }
@media (prefers-reduced-motion: reduce) { .spw-layout.is-focus .spw-bubble { will-change: auto; } }
@media (max-width: 600px) { .spw [data-panel="signin"] .spw-row:not(:has(> :not([hidden]))) { display: none !important; } }

/* ---------- Mobile footer bar (Rana 6 Nov): the funders and Terms sit fixed at the bottom of the screen, full width with no
   side edges or rounded corners, and never move. Tucked away while typing (html.spw-typing). Mobile only. ---------- */
@media (max-width: 600px) {
  .spw-layout.is-focus { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
  .spw > .spw-funders.is-footer { position: fixed !important; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); z-index: 60; margin: 0 !important; max-width: none !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; background: #12002A !important; padding: 8px 8% !important; box-sizing: border-box; }
  .spw-layout.is-focus .spw > .spw-legal, .spw .spw-legal { position: fixed !important; bottom: 0; z-index: 60; margin: 0 !important; padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)) !important; text-align: center; box-sizing: border-box; }
  html.spw-typing .spw > .spw-funders.is-footer, html.spw-typing .spw .spw-legal { visibility: hidden; }
  html.spw-gated .spw > .spw-funders.is-footer, html.spw-gated .spw .spw-legal { z-index: 1; }
}
@media (max-width: 600px) {
  .spw-layout.is-focus .spw > .spw-legal, .spw .spw-legal { width: 100vw !important; max-width: none !important; left: 0 !important; right: auto !important; justify-self: auto !important; }
  .spw > .spw-funders.is-footer { width: 100vw !important; left: 0 !important; right: auto !important; }
}
/* Word swell: a softer lift so long words never touch their neighbours. */
.spw-text .spk-w.now { transform: translateY(-1px) scale(1.05); }
@media (max-width: 600px) {
  .spw .spw-legal { display: flex !important; justify-content: center; align-items: center; }
  .spw .spw-legal .privacy-policy-page-link, .spw .spw-legal p { text-align: center !important; margin: 0 auto !important; }
}
/* Rana 6 Nov (mobile): a line under the logos too, so the logos sit centred between two lines; Terms on a see-through yellow
   band, no underlines; Log In and Back the same width. */
@media (max-width: 600px) {
  .spw > .spw-funders.is-footer { border-top: 2px solid rgba(255, 255, 255, .78) !important; border-bottom: 2px solid rgba(255, 255, 255, .78) !important; padding-top: 8px !important; padding-bottom: 8px !important; }
  body.login .spw-layout .spw .spw-legal a, .spw .spw-legal a { text-decoration: none !important; border-bottom: 0 !important; box-shadow: none !important; }
  .spw .spw-formslot p.submit > #wp-submit, .spw .spw-formslot p.submit > .spw-link[data-spw="back"] { flex: 1 1 0 !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box !important; }
}
@media (max-width: 600px) {
  .spw .spw-formslot p.submit { display: grid !important; grid-template-columns: 1fr 1fr; }
  .spw .spw-formslot p.submit > #wp-submit, .spw .spw-formslot p.submit > .spw-link[data-spw="back"] { width: 100% !important; padding-left: 8px !important; padding-right: 8px !important; }
  /* Terms band: brand yellow, slightly see-through, dark purple words. */
  .spw-layout.is-focus .spw > .spw-legal, .spw .spw-legal { color: #1E0A3C !important; }
  body.login .spw-layout .spw .spw-legal a, .spw .spw-legal a { color: #1E0A3C !important; }
}
@media (max-width: 600px) { .spw-layout.is-focus .spw > .spw-legal, .spw .spw-legal { height: calc(30px + env(safe-area-inset-bottom, 0px)) !important; padding: 0 12px env(safe-area-inset-bottom, 0px) !important; line-height: 1.2 !important; } }

/* Rana 6 Nov: choose a role first; the email and password (and Log In) come out after. Back stays. Errors always show. */
.spw [data-panel="signin"].spw-need-role .spw-formslot form > :not(p.submit), .spw [data-panel="signin"].spw-need-role .spw-formslot #wp-submit,
.spw [data-panel="signin"].spw-need-role .spw-formslot .spw-role { display: none !important; }

/* Rana 6 Nov: one streamlined style. The link pills (Back, New to Skills Pad, Another joke …) match Log In: see-through dark
   with a light border, teal on hover, yellow border when open. The mobile tip matches too. */
.spw .spw-panel .spw-row .spw-link, .spw .spw-panel .spw-row a.spw-link, .spw .spw-formslot p.submit .spw-link[data-spw="back"] {
  border: 2px solid #D4C7E0 !important; background: rgba(10, 0, 30, .38) !important; background-clip: padding-box !important; color: #fff !important; }
@media (hover: hover) and (pointer: fine) { .spw .spw-panel .spw-row .spw-link:hover, .spw .spw-formslot p.submit .spw-link[data-spw="back"]:hover { background: #17797A !important; border-color: #17797A !important; } }
.spw .spw-panel .spw-row .spw-link[aria-expanded="true"] { background: rgba(10, 0, 30, .38) !important; border-color: #FFC72C !important; }
.spw .spw-ios-tip { border-color: #D4C7E0 !important; background: rgba(10, 0, 30, .38) !important; }

/* Footer Terms band (mobile): less padding, see-through yellow with dark-yellow words. */
@media (max-width: 600px) {
  .spw-layout.is-focus .spw > .spw-legal, .spw .spw-legal { height: calc(24px + env(safe-area-inset-bottom, 0px)) !important; background: linear-gradient(rgba(255, 199, 44, .2), rgba(255, 199, 44, .2)), #12002A !important; }
  .spw .spw-legal, .spw .spw-legal .privacy-policy-page-link, .spw .spw-legal .privacy-policy-page-link > a { color: #FFC72C !important; }
  .spw > .spw-funders.is-footer { bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important; }
  .spw-layout.is-focus { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 600px) { body.login .spw-layout .spw .spw-legal a, body.login .spw-layout .spw .spw-legal, body.login .spw-layout .spw .spw-legal .privacy-policy-page-link, .spw .spw-legal .privacy-policy-page-link > a { color: #FFC72C !important; } }
@media (max-width: 600px) { body.login .spw-layout .spw .spw-legal, body.login .spw-layout .spw .spw-legal .privacy-policy-page-link, .spw .spw-legal .privacy-policy-page-link > a { color: #FFC72C !important; font-weight: 700 !important; opacity: 1 !important; } }
@media (max-width: 600px) { .spw .spw-actions.is-stack .spw-btn { min-height: 38px !important; } }
/* Rana 6 Nov: the opening screen's yellow button a little shorter. */
.spw-gate .spw-gate-go { width: 84%; }
/* Rana 6 Nov (desktop): the volume note is just the speaker icon; the words stay for screen readers. */
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-name .spw-vol { padding: 0; width: 30px; height: 30px; justify-content: center; border-radius: 50%; gap: 0; }
  .spw-name .spw-vol svg { width: 15px; height: 15px; }
  .spw-name .spw-vol .spw-vol-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Rana 6 Nov (desktop too): Log in and Create an account share the first line, equal widths; the rest full width. */
.spw-layout.is-focus .spw-panel > .spw-actions.is-stack { grid-template-columns: 1fr 1fr; }
.spw-layout.is-focus .spw-panel > .spw-actions.is-stack > .spw-btn:nth-child(n+3) { grid-column: 1 / -1; }
/* Rana 6 Nov (desktop too): Log In and Back share one line at equal widths; "New to Skills Pad? Create an account" runs
   full width underneath on one line; less space above Log In. */
.spw .spw-formslot p.submit { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; clear: both !important; width: 100% !important; margin-top: 4px !important; }
.spw [data-panel="signin"].spw-need-role .spw-formslot p.submit { grid-template-columns: 1fr !important; }
.spw .spw-formslot p.submit > #wp-submit, .spw .spw-formslot p.submit > .spw-link[data-spw="back"] { width: 100% !important; margin: 0 !important; padding-left: 8px !important; padding-right: 8px !important; box-sizing: border-box !important; }
.spw .spw-formslot p.submit .spw-link[data-spw="back"] { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border: 2px solid #D4C7E0 !important; border-radius: 14px !important; background: rgba(10, 0, 30, .38) !important; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.spw .spw-formslot #wp-submit { margin-top: 0 !important; }
.spw [data-panel="signin"] .spw-row { grid-template-columns: 1fr !important; }
.spw [data-panel="signin"] .spw-row .spw-link { white-space: nowrap; }
.spw .spw-formslot .forgetmenot { margin-bottom: 6px !important; }
@media (max-width: 600px) { .spw .spw-formslot p.submit { gap: 6px; } .spw .spw-formslot p.submit .spw-link[data-spw="back"], .spw .spw-formslot p.submit #wp-submit { min-height: 36px !important; } }

/* ---------- Desktop footer bar (Rana 6 Nov; the fixed desktop template): one full-width bar at the bottom of the screen,
   the funder logos bottom left over the stripes, Terms and Privacy on the right. It never moves. ---------- */
@media (min-width: 1061px) and (min-height: 640px) {
  .spw-layout.is-focus { padding-bottom: 80px !important; }
  .spw > .spw-funders.is-footer { position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 60; width: auto !important; max-width: none !important; margin: 0 !important;
    display: flex !important; justify-content: flex-start !important; align-items: center; gap: 28px !important; height: 64px; padding: 0 48px !important; box-sizing: border-box;
    border: 0 !important; border-top: 2px solid rgba(255, 255, 255, .78) !important; border-radius: 0 !important; background: rgba(18, 0, 42, .92) !important; }
  .spw > .spw-funders.is-footer img { height: 34px !important; width: auto !important; max-height: none; }
  .spw-layout.is-focus .spw > .spw-legal, .spw .spw-legal { position: fixed !important; right: 48px !important; left: auto !important; bottom: 0 !important; z-index: 61; height: 64px; margin: 0 !important; padding: 0 !important;
    display: flex !important; align-items: center; background: none !important; }
  body.login .spw-layout .spw .spw-legal a { text-decoration: none !important; border-bottom: 0 !important; }
  html.spw-gated .spw > .spw-funders.is-footer, html.spw-gated .spw .spw-legal { z-index: 1; }
}
.spw .spw-panel .spw-row { align-items: stretch !important; } .spw .spw-panel .spw-row > .spw-link { height: auto !important; }

/* ---------- Create an account (Rana 6 Nov): the Flyweel conversational style, in Skills Pad colours. ---------- */
.spw .spw-su { margin: 0; padding: 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(180deg, rgba(60, 0, 117, .55), rgba(18, 0, 42, .78)); box-shadow: 0 18px 44px rgba(10, 0, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .06); color: #fff; }
.spw .spw-su-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spw .spw-su-start { text-align: center; padding: 10px 0 4px; }
.spw .spw-su-h { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: .01em; }
.spw .spw-su-lede { margin: 0 auto 18px; max-width: 34ch; font-size: 15px; line-height: 1.45; color: #FFE38A; }
.spw .spw-su-go { all: unset; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; background: #FFC72C; color: #1E0A3C; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 8px 22px rgba(255, 199, 44, .25); transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.spw .spw-su-go svg { width: 16px; height: 16px; }
.spw .spw-su-go:active, .spw .spw-su-next:active { transform: scale(0.97); }
.spw .spw-su-go:focus-visible, .spw .spw-su-next:focus-visible, .spw .spw-su-prev:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; }
.spw .spw-su-bar { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; margin-bottom: 16px; font-size: 13px; font-weight: 700; color: #fff; }
.spw .spw-su-pct { color: #FFE38A; }
.spw .spw-su-track { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.spw .spw-su-track i { display: block; height: 100%; background: #FFC72C; transform-origin: left center; transform: scaleX(0); transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1); }
.spw .spw-su-step[hidden] { display: none !important; }
.spw .spw-su-q { display: inline-block; margin: 0 0 8px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(10, 0, 30, .45); color: #fff; font-size: 16px; font-weight: 700; }
.spw .spw-su-hint { margin: 0 0 10px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.spw .spw-su-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 14px; border: 2px solid #D4C7E0; background: rgba(10, 0, 30, .55); }
.spw .spw-su-row:focus-within { border-color: #FFC72C; }
.spw .spw-su .spw-su-in { flex: 1; min-width: 0; height: 40px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #fff !important; font-size: 16px !important; outline: none !important; color-scheme: dark; }
.spw .spw-su .spw-su-in::placeholder { color: rgba(255, 255, 255, .55); }
.spw .spw-su .spw-su-in[aria-invalid="true"] { color: #FFD3D9 !important; }
.spw .spw-su-next { all: unset; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #FFC72C; color: #1E0A3C; cursor: pointer; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.spw .spw-su-next svg { width: 18px; height: 18px; }
.spw .spw-su-err { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #FFC72C; }
.spw .spw-su-note { margin: 6px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.spw .spw-su-note a { color: #fff !important; }
.spw .spw-su-prev { all: unset; display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 700; color: #fff; cursor: pointer; }
.spw .spw-su-prev[hidden] { display: none; }
.spw .spw-su-prev svg { width: 16px; height: 16px; }
.spw .spw-su.is-busy .spw-su-next { opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .spw .spw-su-track i { transition: none; } }
@media (max-width: 600px) {
  .spw .spw-su { padding: 14px; }
  .spw .spw-su-h { font-size: 16px; } .spw .spw-su-lede, .spw .spw-su-q, .spw .spw-su-hint, .spw .spw-su-err, .spw .spw-su-note, .spw .spw-su-go, .spw .spw-su-prev, .spw .spw-su-bar { font-size: 8pt; }
  .spw .spw-su-q { padding: 8px 12px; } .spw .spw-su-lede { margin-bottom: 12px; }
}
body.login .spw-layout .spw .spw-su label.spw-su-q { color: #fff !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.35 !important; margin: 0 0 8px !important; }
@media (max-width: 600px) { body.login .spw-layout .spw .spw-su label.spw-su-q { font-size: 8pt !important; } }
/* Rana 6 Nov: Get started and Submit as wide as the other pills; each question pill as wide as its answer box. */
.spw .spw-su-go { display: flex; justify-content: center; width: 100%; box-sizing: border-box; min-height: 48px; }
.spw .spw-su-q, body.login .spw-layout .spw .spw-su label.spw-su-q { display: block !important; box-sizing: border-box; width: 100%; }
.spw .spw-su-submit { all: unset; display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 12px; border-radius: 12px; background: #FFC72C; color: #1E0A3C; font-weight: 800; font-size: 15px; cursor: pointer; }
.spw .spw-su-submit[hidden] { display: none; }
.spw .spw-su-submit:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; }
.spw .spw-su-submit:active { transform: scale(0.97); }
.spw .spw-su-next[hidden] { display: none; }
.spw .spw-su-done { text-align: center; padding: 6px 0; outline: none; }
.spw .spw-su-done[hidden] { display: none; }
.spw .spw-su-done a[href^="tel"] { color: #fff !important; font-weight: 800; }
.spw .spw-su-done .spw-su-go { margin-top: 6px; text-decoration: none; }
@media (max-width: 600px) { .spw .spw-su-submit, .spw .spw-su-go { min-height: 36px; font-size: 8pt; } }
/* Rana 6 Nov: "Joke of the day" and Back share one line under Tell me, equal widths, the badge's height. */
.spw [data-panel="joke"] .spw-joke-sub { display: flex; gap: 10px; margin-top: 10px; }
.spw [data-panel="joke"] .spw-joke-sub > * { flex: 1 1 0; margin: 0 !important; min-height: 30px !important; height: 30px; box-sizing: border-box; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 999px !important; font-size: 14px !important; font-weight: 800; padding: 0 12px !important; }
.spw [data-panel="joke"] .spw-joke-sub > [hidden] { display: none !important; }
.spw [data-panel="joke"] .spw-joke-sub .spw-joke-back { border: 2px solid #D4C7E0 !important; background: rgba(10, 0, 30, .38) !important; color: #fff !important; text-decoration: none !important; cursor: pointer; }
.spw [data-panel="joke"]:has(.spw-after:not([hidden])) .spw-joke-back { display: none !important; }
@media (max-width: 600px) { .spw [data-panel="joke"] .spw-joke-sub > * { font-size: 8pt !important; height: 26px; min-height: 26px !important; } .spw [data-panel="joke"] .spw-joke-sub { gap: 6px; margin-top: 6px; } }
.spw [data-panel="joke"]:has(.spw-after:not([hidden])) .spw-joke-sub .spw-jotd { flex: 0 0 calc(50% - 5px); }
/* Rana 6 Nov: Tell me in yellow with Back beside it, same size; Another joke in yellow. */
.spw [data-panel="joke"] .spw-joke-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.spw [data-panel="joke"] .spw-joke-row[hidden] { display: none !important; }
.spw .spw-btn.spw-yellow, .spw .spw-panel .spw-row .spw-link.spw-yellow { background: #FFC72C !important; border-color: #FFC72C !important; color: #1E0A3C !important; }
@media (hover: hover) and (pointer: fine) { .spw .spw-btn.spw-yellow:hover, .spw .spw-panel .spw-row .spw-link.spw-yellow:hover { background: #FFD45C !important; border-color: #FFD45C !important; } }
.spw .spw-btn.spw-yellow[aria-disabled="true"] { opacity: .55; }
@media (max-width: 600px) { .spw [data-panel="joke"] .spw-joke-row { gap: 6px; } }
/* Rana 6 Nov: Another joke and Back to welcome the same height as the rating pills above. */
.spw [data-panel="joke"] .spw-after .spw-link { min-height: 48px !important; }
@media (max-width: 600px) { .spw [data-panel="joke"] .spw-after .spw-link { min-height: 34px !important; } }
/* Forgotten password: Request reset link and Back to sign in on one line, equal pills. */
.spw .spw-formslot #lostpasswordform p.submit { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; width: 100% !important; }
.spw .spw-formslot #lostpasswordform p.submit > #wp-submit { width: 100% !important; margin: 0 !important; }
.spw .spw-formslot a.spw-pw-back { display: inline-flex !important; align-items: center; justify-content: center; min-height: 52px; box-sizing: border-box; border: 2px solid #D4C7E0 !important; border-radius: 14px !important; background: rgba(10, 0, 30, .38) !important; color: #fff !important; font-weight: 700; text-decoration: none !important; margin: 0 !important; }
@media (max-width: 600px) { .spw .spw-formslot #lostpasswordform p.submit { gap: 6px; } .spw .spw-formslot a.spw-pw-back { min-height: 36px; font-size: 8pt !important; } }
body.login .spw-layout .spw .spw-formslot a.spw-pw-back { color: #fff !important; font-size: 16px !important; font-weight: 700 !important; } @media (max-width: 600px) { body.login .spw-layout .spw .spw-formslot a.spw-pw-back { font-size: 8pt !important; } }
/* Rana 6 Nov: no "Hear SPARK" pill on any screen (the first tap anywhere starts his voice). */ .spw .spw-hear, .spw [data-spw="hear"] { display: none !important; }

/* ---------- Check a certificate, in the form (Rana 6 Nov) ---------- */
.spw .spw-actions > .spw-cert { grid-column: 1 / -1; }
.spw .spw-cert { margin: 0; padding: 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(180deg, rgba(60, 0, 117, .55), rgba(18, 0, 42, .78)); color: #fff; }
.spw .spw-cert[hidden] { display: none !important; }
.spw .spw-cert-f { margin-bottom: 10px; }
body.login .spw-layout .spw .spw-cert label { display: block; margin: 0 0 4px !important; color: #fff !important; font-size: 14px !important; font-weight: 700 !important; }
.spw .spw-cert-h { margin: 0 0 6px; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.spw .spw-cert input[type="text"] { width: 100%; box-sizing: border-box; height: 44px; margin: 0 !important; padding: 0 14px !important; border-radius: 12px !important; border: 2px solid #D4C7E0 !important; background: rgba(10, 0, 30, .55) !important; color: #fff !important; font-size: 16px !important; box-shadow: none !important; }
.spw .spw-cert input[type="text"]:focus { border-color: #FFC72C !important; outline: none !important; }
.spw .spw-cert-go { all: unset; display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; min-height: 46px; margin-top: 4px; border-radius: 12px; background: #FFC72C; color: #1E0A3C; font-weight: 800; font-size: 15px; cursor: pointer; }
.spw .spw-cert-go:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; }
.spw .spw-cert-go:active { transform: scale(0.97); }
.spw .spw-cert-res:empty { display: none; }
.spw .spw-cert-res { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(10, 0, 30, .5); font-size: 14px; }
.spw .spw-cert-res.is-ok { border: 2px solid #2EAFAF; }
.spw .spw-cert-res.is-no { border: 2px solid #FFC72C; }
.spw .spw-cert-res p { margin: 0 0 6px; color: #fff; }
.spw .spw-cert-rh { font-weight: 800; font-size: 15px; }
.spw .spw-cert-res.is-ok .spw-cert-rh { color: #7FE3E3; }
.spw .spw-cert-res.is-no .spw-cert-rh { color: #FFC72C; }
.spw .spw-cert-res dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; }
.spw .spw-cert-res dt { color: rgba(255, 255, 255, .7); font-size: 13px; }
.spw .spw-cert-res dd { margin: 0; font-weight: 700; color: #fff; }
.spw .spw-cert-small { font-size: 12.5px; color: rgba(255, 255, 255, .75) !important; }
.spw .spw-cert-note { margin: 10px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.spw [data-spw="cert"].is-open { border-color: #FFC72C !important; }
@media (max-width: 600px) {
  .spw .spw-cert { padding: 10px; } body.login .spw-layout .spw .spw-cert label, .spw .spw-cert-h, .spw .spw-cert-go, .spw .spw-cert-res, .spw .spw-cert-note { font-size: 8pt !important; }
  .spw .spw-cert input[type="text"] { height: 38px; } .spw .spw-cert-go { min-height: 36px; }
}
.spw .spw-cert-res .spw-cert-small { margin-top: 10px !important; }

/* ---------- Rana 6 Nov: the speech bubble and every white box in the Flyweel style, in Skills Pad colours:
   dark glassy purple, a fine light edge, white words (the words still to be said are softer). High contrast keeps white. ---------- */
.spw-layout:not(.is-hc) .spw-bubble { background: linear-gradient(180deg, rgba(60, 0, 117, .72), rgba(18, 0, 42, .9)) !important; color: #fff !important; border-top: 1px solid rgba(255, 255, 255, .18) !important; border-radius: 14px; box-shadow: 0 18px 44px rgba(10, 0, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .07) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.spw-layout:not(.is-hc) .spw-bubble::before { background: rgba(48, 0, 96, .95) !important; }
body.login .spw-layout:not(.is-hc) .spw .spw-formslot #login_error, body.login .spw-layout:not(.is-hc) .spw .spw-formslot .message, body.login .spw-layout:not(.is-hc) .spw .spw-formslot .notice {
  background: rgba(10, 0, 30, .55) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .18) !important; border-left: 4px solid #FFC72C !important; border-radius: 12px !important; }
.spw-layout:not(.is-hc) .spw .spw-card { background: rgba(10, 0, 30, .55) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .18) !important; }
.spw-layout:not(.is-hc) .spw .spw-card a { color: #FFE38A !important; }
.spw-layout:not(.is-hc) .spw .spw-closed { background: rgba(255, 199, 44, .16) !important; color: #FFE38A !important; }
body.login .spw-layout:not(.is-hc) .spw .spw-formslot #login_error *, body.login .spw-layout:not(.is-hc) .spw .spw-formslot .message *, body.login .spw-layout:not(.is-hc) .spw .spw-formslot .notice * { color: #fff !important; } body.login .spw-layout:not(.is-hc) .spw .spw-formslot .message a, body.login .spw-layout:not(.is-hc) .spw .spw-formslot #login_error a { color: #FFE38A !important; }
body.login .spw-layout:not(.is-hc) .spw .message, body.login .spw-layout:not(.is-hc) .spw #login_error, body.login .spw-layout:not(.is-hc) .spw .notice { background: rgba(10, 0, 30, .55) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .18) !important; border-radius: 12px !important; box-shadow: none !important; } body.login .spw-layout:not(.is-hc) .spw .message *, body.login .spw-layout:not(.is-hc) .spw #login_error * { color: #fff !important; } body.login .spw-layout:not(.is-hc) .spw .message a, body.login .spw-layout:not(.is-hc) .spw #login_error a { color: #FFE38A !important; }
/* Rana 6 Nov: a soft white outline on the bubble and the notes. */
.spw-layout:not(.is-hc) .spw-bubble { border: 1.5px solid rgba(255, 255, 255, .55) !important; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06), 0 0 18px rgba(255, 255, 255, .12), 0 18px 44px rgba(10, 0, 30, .45) !important; }
.spw-layout:not(.is-hc) .spw-bubble::before { border-left: 1.5px solid rgba(255, 255, 255, .55); border-bottom: 1.5px solid rgba(255, 255, 255, .55); }
body.login .spw-layout:not(.is-hc) .spw .message, body.login .spw-layout:not(.is-hc) .spw #login_error, body.login .spw-layout:not(.is-hc) .spw .notice, .spw-layout:not(.is-hc) .spw .spw-card {
  border: 1.5px solid rgba(255, 255, 255, .5) !important; box-shadow: 0 0 14px rgba(255, 255, 255, .1) !important; }
body.login .spw-layout:not(.is-hc) .spw .message, body.login .spw-layout:not(.is-hc) .spw #login_error, body.login .spw-layout:not(.is-hc) .spw .notice { border-left: 4px solid #FFC72C !important; }
/* Rana 6 Nov: SPARK's words in brand yellow. */
.spw-layout:not(.is-hc) .spw-text .spk-w { opacity: .74; } .spw-layout:not(.is-hc) .spw-text .spk-w.on { opacity: 1; }
/* Rana 6 Nov: back to white words. */ .spw-layout:not(.is-hc) .spw-bubble .spw-text, .spw-layout:not(.is-hc) .spw-bubble .spw-text .spk-w { color: #fff !important; }
/* Rana 6 Nov (phones): SPARK's props sit beside his head on the left, clear of the controls. */ @media (max-width: 1060px), (max-height: 639px) { .spw-layout.is-focus .spw-prop { right: auto !important; left: -2px !important; top: 2px !important; font-size: 24px !important; } }
/* Rana 6 Nov: Luton Youth Hub questions one per line on phones again. */ @media (max-width: 600px) { .spw .spw-faq { grid-template-columns: 1fr !important; } .spw .spw-faq .spw-btn { min-height: 32px !important; padding-top: 3px !important; padding-bottom: 3px !important; } }
@media (max-width: 600px) { .spw .spw-full > summary { font-size: 8pt !important; } }
@media (max-width: 600px) { body.login .spw-layout .spw .message, body.login .spw-layout .spw .message *, body.login .spw-layout .spw #login_error, body.login .spw-layout .spw #login_error * { font-size: 8pt !important; } }
@media (max-width: 600px) { .spw .spw-cert-res *, .spw .spw-cert-res p, .spw .spw-cert-res dt, .spw .spw-cert-res dd { font-size: 8pt !important; } .spw .spw-cert-rh { font-size: 9pt !important; } .spw .spw-cert-res dl { gap: 2px 10px; } }
/* Meet SPARK questions (Rana 6 Nov): the Luton Youth Hub question style; the one SPARK is answering turns yellow. No arrows (the answer is in his bubble). */
.spw .spw-meet .spw-meet-q::after { display: none !important; }
.spw .spw-meet .spw-meet-q { padding-left: 14px !important; padding-right: 14px !important; }
.spw .spw-meet .spw-meet-q.is-open, .spw .spw-meet .spw-meet-q[aria-pressed="true"] { background: #FFC72C !important; border-color: #FFC72C !important; color: #1E0A3C !important; }
@media (max-width: 600px) { .spw .spw-meet { grid-template-columns: 1fr !important; } }
/* council L4: anything scrolled into view stays clear of the fixed footer bars. */ html { scroll-padding-bottom: 96px; }
/* beta.6.1 (Rana 6 Nov): "Say hello to SPARK" always on one line on mobile. */
@media (max-width: 600px) {
  .spw-gate .spw-gate-go { font-size: clamp(14px, 4.4vw, 17px); gap: 8px; padding-left: 12px; padding-right: 12px; }
  .spw-gate .spw-gate-go svg { width: 20px; height: 20px; }
}
@media (max-width: 400px) { .spw-gate .spw-gate-go { width: 100%; } }
/* beta.6.1 (Rana 6 Nov): smooth flow — the rig sets each word's opacity and lift every frame; a short linear ease
   bridges frames so nothing steps. The old per-word swell class is retired. */
.spw-text .spk-w { display: inline-block; transform-origin: 50% 85%; transition: opacity 90ms linear, transform 90ms linear; will-change: auto; }
.spw-text .spk-w.now, .spw-layout:not(.is-hc) .spw-text .spk-w.now { transform: none; }
@media (prefers-reduced-motion: reduce) { .spw-text .spk-w { transition: none; transform: none !important; } }

/* beta.7 (Rana 7 Nov): while SPARK asks "how did I do?", Back stays, full width, until Another joke and Back appear. */
.spw [data-panel="joke"] .spw-joke-row [data-spw="tell"][hidden] { display: none !important; }
.spw [data-panel="joke"] .spw-joke-row [data-spw="tell"][hidden] + [data-spw="back"] { grid-column: 1 / -1; }
/* beta.7 accessibility: a very long word wraps inside the bubble instead of running out of it; "Say hello to SPARK" may wrap
   when someone uses very large text (it still fits on one line at normal sizes). */
.spw-text .spk-w { max-width: 100%; overflow-wrap: anywhere; }
.spw-text { overflow-wrap: anywhere; }
@media (max-width: 600px) { .spw-gate .spw-gate-go { white-space: normal; text-wrap: balance; } }
/* beta.7 (council): never two Backs. When Another joke / Back is showing, the first row's Back hides (and the row itself if
   Tell me has gone too). */
.spw [data-panel="joke"] .spw-joke-row:has(~ .spw-after:not([hidden])) [data-spw="back"] { display: none !important; }
.spw [data-panel="joke"] .spw-joke-row:has(~ .spw-after:not([hidden])) [data-spw="tell"]:not([hidden]) { grid-column: 1 / -1; }
.spw [data-panel="joke"] .spw-joke-row:has([data-spw="tell"][hidden]):has(~ .spw-after:not([hidden])) { display: none !important; }

/* beta.8: "Not you? Start again" on the sign-up form (only when earlier answers were filled back in). */
.spw .spw-su-reset { display: inline-block; margin: 6px 0 0; padding: 4px 0; min-height: 24px; border: 0; background: none; color: #FFC72C; font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.spw .spw-su-reset[hidden] { display: none; }
.spw .spw-su-reset:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* beta.10 (Rana 8 Nov): Inspector SPARK. The frame canvas sits just above his picture; the glasses, hat and their shadow
   sit above his face. All inside his rig, so they follow his sway and poses. Decorative only: never take a tap or focus.
   The accessories only ever animate transform and opacity. Transform origins: glasses about their bridge, hat about the
   middle of its brim (800-unit grid: glasses 264-538 x 120-195, hat 418-538 x 68-154). */
.spw-stage .spk-rig .spw-tf-cv { visibility: hidden; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(10, 0, 30, .45)); } /* same shadow as his picture, so it doesn't pop */
.spw-stage .spk-rig img.spw-acc { filter: none; pointer-events: none; opacity: 0; }
.spw-stage .spk-rig img.spw-acc-glasses { transform-origin: 50.1% 20%; }
.spw-stage .spk-rig img.spw-acc-hat { transform-origin: 59.8% 19%; }
.spw-stage .spk-rig img.spw-tf-ghost { opacity: 1; filter: drop-shadow(0 14px 18px rgba(10, 0, 30, .45)); }
.spw-stage .spk-rig img.spw-acc-staff { opacity: 0.001; filter: drop-shadow(0 14px 18px rgba(10, 0, 30, .45)); } /* Staff SPARK layer: same shadow as his picture */
