/* North Star (id "starfall", prefix sx): the Mythic Christmas theme, the Season Pass grand prize (tier 80).
   Santa's platinum sleigh and reindeer flying through the northern lights over the snowy North Pole, under a great
   glowing Christmas star; constellations that draw themselves (a leaping reindeer, a Christmas tree), shooting stars,
   twinkling star dust. Platinum glass and gold everywhere. Scene built by SCENES.starfall in theme-starfall.js. */

/* ---- colours ---- */
[data-theme="starfall"] {
  --bg-0: #0a0822; --bg-1: #141238; --bg-2: #1d1a4e;
  --card: rgba(24, 21, 64, .86); --card-2: rgba(255, 255, 255, .07); --panel-edge: rgba(214, 224, 250, .3);
  --ink: #f5f7ff; --ink-dim: #bcc2e4; --on-hot: #17123a;
  --hot: #9a86ff; --cool: #62e6cf; --amber: #f2c75c; --good: #4be3a0; --bad: #ff6b86; --seen: #8fe9ff;
  --title-1: #f2f5ff; --title-2: #f6d27a;
  --mine: rgba(150, 128, 255, .26); --mine-edge: rgba(196, 184, 255, .5); --fact-bg: rgba(242, 199, 92, .1); --fact-edge: rgba(242, 199, 92, .38);
  --shadow: 0 6px 22px rgba(0, 0, 0, .45);
  --scrim: rgba(4, 3, 18, .66); --off: rgba(255, 255, 255, .18); --press: rgba(0, 0, 0, .4);
  /* jewel colours for the crystal subject plates */
  --s-general: #6a56d8; --s-geography: #2c78d0; --s-history: #b2603a; --s-science: #148fa3;
  --s-nature: #23926a; --s-music: #bd4596; --s-film_tv: #c23a58; --s-sport: #c38a1c;
  --s-arts_lit: #8a4fd6; --s-food: #cc622e; --s-tech_games: #4460dc; --s-words: #158b7c;
  /* bottom-bar icons: platinum, night violet, pine, Christmas crimson and gold */
  --tb-blue-1: #c3ccff; --tb-blue-2: #4c4fd8; --tb-pink-1: #f3ecff; --tb-pink-2: #a58cdc; --tb-green-1: #93f2cc; --tb-green-2: #17906a;
  --tb-gold-1: #fff0a8; --tb-gold-2: #e0a21c; --tb-purple-1: #dccbff; --tb-purple-2: #7650e0; --tb-red-1: #ff94a4; --tb-red-2: #c01c3c;
  --tb-cream-1: #ffffff; --tb-cream-2: #c6cfe4; --tb-orange-1: #ffdc8f; --tb-orange-2: #d48f18; --tb-brown-1: #c9a27a; --tb-brown-2: #7a4a2a;
}

/* ---- the sky ---- */
[data-theme="starfall"] #stage-bg {
  background:
    radial-gradient(ellipse 90% 45% at 15% 85%, rgba(40, 170, 160, .28), transparent 70%),
    radial-gradient(ellipse 80% 50% at 90% 10%, rgba(140, 90, 230, .35), transparent 70%),
    linear-gradient(180deg, #070618 0%, #120d36 38%, #1b1650 62%, #12324a 86%, #0e2236 100%); }
[data-theme="starfall"] .scene { position: absolute; inset: 0; overflow: hidden; }
.scene .sx-aur { position: absolute; left: -40%; width: 180%; top: var(--y); height: 34vh; opacity: .85; transform-origin: 50% 50%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 11px),
    radial-gradient(ellipse 30% 42% at 30% 55%, var(--a1), transparent 72%),
    radial-gradient(ellipse 28% 38% at 62% 45%, var(--a2), transparent 72%),
    radial-gradient(ellipse 22% 40% at 85% 60%, var(--a1), transparent 72%);
  -webkit-mask: linear-gradient(180deg, transparent, #000 35%, #000 60%, transparent); mask: linear-gradient(180deg, transparent, #000 35%, #000 60%, transparent);
  animation: sx-aur var(--d) ease-in-out infinite alternate; }
@keyframes sx-aur {
  0% { transform: translateX(-6%) rotate(var(--r)) skewX(-8deg); opacity: .55; }
  50% { opacity: .95; }
  100% { transform: translateX(8%) rotate(calc(var(--r) + 4deg)) skewX(10deg); opacity: .7; } }

/* star dust */
.scene .sx-dust i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c, #fff);
  box-shadow: 0 0 4px var(--c, #fff); animation: sx-tw var(--d) ease-in-out infinite; animation-delay: var(--t); }
.scene .sx-dust b { position: absolute; width: var(--s); height: var(--s); background: var(--c, #fff);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: sx-sp var(--d) ease-in-out infinite; animation-delay: var(--t); }
@keyframes sx-tw { 50% { opacity: .25; } }
@keyframes sx-sp { 0%, 100% { transform: scale(.4) rotate(0); opacity: .4; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* the great Christmas star, with slowly turning rays */
.scene .sx-star { position: absolute; top: max(.9rem, calc(env(safe-area-inset-top) + .5rem)); right: .6rem; width: 5.4rem; height: 5.4rem; }
.scene .sx-star .halo { position: absolute; inset: -2.4rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 200, .5), rgba(220, 210, 255, .14) 36%, transparent 64%); animation: sx-pulse 5s ease-in-out infinite; }
.scene .sx-star .rays { position: absolute; inset: -3.6rem; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 240, 200, .09) 0 4deg, transparent 5deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%);
  animation: sx-spin 70s linear infinite; }
.scene .sx-star svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 236, 170, .7)); }
.scene .sx-star .glint { transform-origin: 50px 50px; animation: sx-glint 4s ease-in-out infinite; }
@keyframes sx-pulse { 50% { transform: scale(1.12); opacity: .8; } }
@keyframes sx-spin { to { transform: rotate(360deg); } }
@keyframes sx-glint { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 82% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* constellations that draw themselves, glow, then fade (pathLength = 1) */
.scene .sx-con { position: absolute; opacity: .72; }
.scene .sx-con svg { width: 100%; height: auto; display: block; overflow: visible; }
.scene .sx-con .ln { fill: none; stroke: #dfe6ff; stroke-width: .75; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1;
  animation: sx-draw var(--cd) linear infinite; animation-delay: var(--ct); }
.scene .sx-con .lg { fill: none; stroke: #a99bff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .22; stroke-dasharray: 1 1;
  animation: sx-draw var(--cd) linear infinite; animation-delay: var(--ct); }
.scene .sx-con .st { animation: sx-starin var(--cd) linear infinite; animation-delay: var(--ct); }
.scene .sx-con .st circle:first-child { fill: rgba(200, 210, 255, .35); }
@keyframes sx-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 30% { stroke-dashoffset: 0; opacity: 1; } 78% { stroke-dashoffset: 0; opacity: 1; }
  92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sx-starin { 0%, 4% { opacity: .15; } 30% { opacity: 1; } 50% { opacity: .7; } 78% { opacity: 1; } 92%, 100% { opacity: .15; } }

/* shooting stars */
.scene .sx-shoot { position: absolute; top: var(--y); left: var(--x); width: 0; height: 0; transform: rotate(var(--a)); }
.scene .sx-shoot i { position: absolute; left: 0; top: -1px; width: 7.5rem; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, #fff, rgba(220, 225, 255, .7) 12%, rgba(170, 150, 255, 0));
  animation: sx-shoot var(--d) ease-in infinite; animation-delay: var(--t); }
.scene .sx-shoot i::before { content: ''; position: absolute; left: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, #fff 30%, rgba(255, 240, 190, .6) 55%, transparent 72%); }
@keyframes sx-shoot { 0% { transform: translateX(0); opacity: 0; } 1% { opacity: 1; } 7% { transform: translateX(-75vw); opacity: 0; } 100% { transform: translateX(-75vw); opacity: 0; } }

/* Santa's sleigh and reindeer sweeping through the aurora, right to left, with a stardust trail */
.scene .sx-sleigh { position: absolute; top: 19%; left: 0; width: 12.5rem; animation: sx-fly 30s linear infinite; animation-delay: -4s; }
.scene .sx-sleigh .bob { animation: sx-bob 1.6s ease-in-out infinite; position: relative; }
.scene .sx-sleigh svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 0 8px rgba(255, 230, 160, .45)); }
.scene .sx-sleigh .trail { position: absolute; left: 90%; top: 60%; width: 11rem; height: 1.1rem; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 1px, transparent 1.6px) 0 0 / 9px 7px, linear-gradient(90deg, rgba(255, 236, 170, .75), rgba(180, 160, 255, .35) 45%, transparent);
  -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent); animation: sx-glit .5s steps(2) infinite; }
@keyframes sx-fly {
  0% { transform: translate(calc(100vw + 1rem), 4rem) rotate(4deg); opacity: 0; }
  2% { opacity: 1; }
  20% { transform: translate(calc(50vw - 6rem), 1.2rem) rotate(-2deg); }
  40% { transform: translate(-26rem, -1rem) rotate(3deg); opacity: 1; }
  41%, 100% { transform: translate(-26rem, -1rem); opacity: 0; } }
@keyframes sx-bob { 50% { transform: translateY(-5px); } }
@keyframes sx-glit { 50% { background-position: 4px 3px, 0 0; } }

/* the snowy North Pole along the bottom */
.scene .sx-pole { position: absolute; left: 0; right: 0; bottom: calc(var(--tabh) + env(safe-area-inset-bottom)); height: 20vh; }
.scene .sx-pole::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 8rem; background: #3e4684; }
.scene .sx-pole svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; }
.scene .sx-pole .gl { animation: sx-tw 2.4s ease-in-out infinite; }
.scene .sx-pole .gl:nth-of-type(2n) { animation-delay: -1.2s; animation-duration: 3.1s; }

/* ---- the app: platinum, glass and gold ---- */
/* the title: platinum "Smarty" with a sheen running across it, gold "Party", the Christmas star above */
[data-theme="starfall"] .logo .l1, [data-theme="starfall"] .logo .l2 { -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent; background-size: 250% 100%; }
[data-theme="starfall"] .logo .l1 {
  background-image: linear-gradient(100deg, #c9d2e8 0%, #ffffff 18%, #aab4cc 34%, #c9d2e8 42%, #ffffff 50%, #aab4cc 58%, #e8edf8 100%);
  filter: drop-shadow(0 2px 0 #1b1033) drop-shadow(0 0 10px rgba(190, 180, 255, .45)); animation: sx-sheen 6s linear infinite; }
[data-theme="starfall"] .logo .l2 {
  background-image: linear-gradient(100deg, #e0a21c 0%, #fff3b8 18%, #d99a1a 34%, #f6d27a 42%, #fffbe6 50%, #d99a1a 58%, #f6d27a 100%);
  filter: drop-shadow(0 2px 0 #1b1033) drop-shadow(0 0 12px rgba(246, 210, 122, .5)); animation: sx-sheen 6s linear infinite; animation-delay: -1.5s; }
@keyframes sx-sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }
[data-theme="starfall"] .logo:not(.small) .l2 { position: relative; }
[data-theme="starfall"] .logo:not(.small) .l2::after { content: ''; position: absolute; right: -.55em; top: -.42em; width: .7em; height: .7em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fffbe6'/%3E%3Cstop offset='.5' stop-color='%23f6d27a'/%3E%3Cstop offset='1' stop-color='%23c98a12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M20 1l4 13 14 6-14 5-4 14-4-14-14-5 14-6z' fill='url(%23g)' stroke='%231b1033' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M17 9l2-4 1 6z' fill='%23fff' opacity='.8'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: sx-twirl 3.2s ease-in-out infinite; }
@keyframes sx-twirl { 0%, 100% { transform: scale(.85) rotate(0); } 50% { transform: scale(1.1) rotate(20deg); } }
[data-theme="starfall"] :is(.title, .tag, .home .dim) { text-shadow: 0 2px 10px rgba(0, 0, 0, .65); }

/* main buttons: polished platinum, a sheen sweeping across, star sparkles at two corners */
[data-theme="starfall"] .btn:not(.ghost) { color: #1a1440; text-shadow: 0 1px 0 rgba(255, 255, 255, .65); background-size: 300% 100%, 100% 100%;
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 48%, transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #e9eef8 26%, #bfc8db 50%, #dde3ef 72%, #a4afc6 100%);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 0 rgba(60, 70, 110, .25), 0 0 0 1px rgba(255, 255, 255, .5), 0 5px 0 #66708e,
    0 12px 24px -6px rgba(170, 180, 255, .55);
  animation: sx-btnsheen 5s ease-in-out infinite; }
[data-theme="starfall"] .btn.alt:not(.ghost) { background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 48%, transparent 58%),
    linear-gradient(180deg, #f6f3ff 0%, #ddd5ff 26%, #a99bf0 50%, #c7bcfb 72%, #8576d6 100%);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 0 rgba(60, 40, 120, .25), 0 0 0 1px rgba(255, 255, 255, .45), 0 5px 0 #5a4aa6, 0 12px 24px -6px rgba(170, 150, 255, .55); }
[data-theme="starfall"] .btn.gold:not(.ghost) { background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 48%, transparent 58%),
    linear-gradient(180deg, #fffbe6 0%, #ffe89a 26%, #e6b13a 50%, #f5cf6a 72%, #c48a14 100%); color: #2e1d00;
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -3px 0 rgba(110, 60, 0, .25), 0 0 0 1px rgba(255, 255, 255, .4), 0 5px 0 #8f5f0a, 0 12px 24px -6px rgba(246, 200, 90, .5); }
[data-theme="starfall"] .btn:not(.ghost):active { transform: translateY(4px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .25), 0 1px 0 #66708e; }
[data-theme="starfall"] .btn:not(.ghost):disabled { animation: none; box-shadow: none; }
[data-theme="starfall"] .btn:not(.ghost) .ic3l { color: #7a5cff; }
[data-theme="starfall"] .btn.gold:not(.ghost) .ic3l { color: #e0a21c; }
@keyframes sx-btnsheen { 0%, 40% { background-position: 120% 0, 0 0; } 100% { background-position: -40% 0, 0 0; } }
[data-theme="starfall"] .btn:not(.ghost):not(.small) { position: relative; overflow: visible; }
[data-theme="starfall"] .btn:not(.ghost):not(.small)::before, [data-theme="starfall"] .btn:not(.ghost):not(.small)::after {
  content: ''; position: absolute; width: 1.15rem; height: 1.15rem; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 1l4.5 14.5L39 20l-14.5 4.5L20 39l-4.5-14.5L1 20l14.5-4.5z' fill='%23fff' stroke='%231b1033' stroke-width='2.6' stroke-linejoin='round'/%3E%3Cpath d='M20 9l2 9 9 2-9 2-2 9-2-9-9-2 9-2z' fill='%23f6d27a'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(255, 240, 190, .9)); animation: sx-twirl 2.8s ease-in-out infinite; }
[data-theme="starfall"] .btn:not(.ghost):not(.small)::before { left: -.45rem; top: -.45rem; }
[data-theme="starfall"] .btn:not(.ghost):not(.small)::after { right: -.4rem; bottom: -.2rem; width: .85rem; height: .85rem; animation-delay: -1.4s; }

/* cards: dark glass with a platinum rim, a glassy streak, and a star at the corner */
[data-theme="starfall"] .panel { position: relative; border-color: rgba(222, 230, 255, .34); backdrop-filter: blur(6px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, 0) 31%, rgba(255, 255, 255, 0) 70%, rgba(120, 230, 220, .05)), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 0 0 1px rgba(150, 130, 255, .12),
    0 14px 30px -10px rgba(0, 0, 0, .6), 0 0 26px -10px rgba(170, 150, 255, .45); }
[data-theme="starfall"] .panel::after { content: ''; position: absolute; top: -.6rem; right: -.45rem; width: 1.5rem; height: 1.5rem; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.55' stop-color='%23dfe5f3'/%3E%3Cstop offset='1' stop-color='%239aa6c2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M20 1l4.5 14.5L39 20l-14.5 4.5L20 39l-4.5-14.5L1 20l14.5-4.5z' fill='url(%23g)' stroke='%231b1033' stroke-width='2.4' stroke-linejoin='round'/%3E%3Ccircle cx='20' cy='20' r='3' fill='%23f6d27a'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(220, 220, 255, .8)); animation: sx-twirl 4s ease-in-out infinite; }

/* Head to Head: crystal star-chart plates in jewel colours, orbit lines and a constellation etched in, a star in the corner */
[data-theme="starfall"] .topic { position: relative; overflow: visible; color: #fff;
  border: 1px solid color-mix(in srgb, var(--sc) 35%, #eef2ff);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.35' stroke-width='.8'%3E%3Cpath d='M8 46L22 34L30 40L44 20L54 26'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Ccircle cx='8' cy='46' r='1.6'/%3E%3Ccircle cx='22' cy='34' r='1.3'/%3E%3Ccircle cx='30' cy='40' r='1.6'/%3E%3Ccircle cx='44' cy='20' r='2'/%3E%3Ccircle cx='54' cy='26' r='1.3'/%3E%3C/g%3E%3C/svg%3E") right .3rem bottom .3rem / 3.6rem 3.6rem no-repeat,
    repeating-radial-gradient(circle at 100% 100%, transparent 0 22px, rgba(255, 255, 255, .09) 22px 23px),
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--sc) 30%, white) 0, transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--sc) 80%, #241a5a), color-mix(in srgb, var(--sc) 40%, #0b0822));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .25),
    0 5px 0 color-mix(in srgb, var(--sc) 35%, #05030f), 0 12px 20px -8px rgba(0, 0, 0, .65), 0 0 18px -6px color-mix(in srgb, var(--sc) 80%, transparent); }
[data-theme="starfall"] .topic::after { content: ''; position: absolute; right: -.4rem; top: -.5rem; width: 1.3rem; height: 1.3rem; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 1l4.5 14.5L39 20l-14.5 4.5L20 39l-4.5-14.5L1 20l14.5-4.5z' fill='%23fff' stroke='%231b1033' stroke-width='2.6' stroke-linejoin='round'/%3E%3Cpath d='M20 9l2 9 9 2-9 2-2 9-2-9-9-2 9-2z' fill='%23f6d27a'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(255, 240, 190, .85)); animation: sx-twirl 3.6s ease-in-out infinite; }
[data-theme="starfall"] .topic:nth-child(2n)::after { animation-delay: -1.8s; }
[data-theme="starfall"] .topic span, [data-theme="starfall"] .topic small { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }

/* bottom bar: night glass with a platinum rail along the top, a glint running along it, and a sprinkle of stars */
[data-theme="starfall"] #tabbar { overflow: visible;
  background: radial-gradient(circle, rgba(255, 255, 255, .5) 0 .7px, transparent 1.2px) 7px 9px / 37px 23px,
    radial-gradient(circle, rgba(246, 210, 122, .55) 0 .8px, transparent 1.3px) 21px 4px / 53px 29px,
    linear-gradient(180deg, rgba(40, 34, 96, .96), rgba(14, 12, 40, .98)); border-top: 0; }
[data-theme="starfall"] #tabbar::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0 40%, #fff 50%, transparent 60% 100%) 0 0 / 300% 100%, linear-gradient(90deg, #8b96b3, #f2f5ff 50%, #8b96b3);
  animation: sx-rail 6s linear infinite; }
@keyframes sx-rail { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }

/* ---- Style items ---- */
/* chat bubble "Northern Lights": night glass with drifting aurora colour, star dust and a platinum rim */
html body .bubble.bub-sx.bub-sx { color: #f5f7ff; border-color: #cfd8ee;
  background: radial-gradient(circle, rgba(255, 255, 255, .8) 0 .6px, transparent 1.1px) 3px 5px / 17px 13px,
    linear-gradient(110deg, rgba(80, 240, 190, .0) 20%, rgba(80, 240, 190, .35) 40%, rgba(170, 120, 255, .4) 60%, rgba(170, 120, 255, 0) 80%) 0 0 / 300% 100%,
    linear-gradient(160deg, #2c2378, #161344 60%, #10304a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(255, 255, 255, .12), 0 0 14px -4px rgba(150, 130, 255, .7), 0 4px 10px -3px rgba(0, 0, 0, .5);
  animation: sx-bub 7s ease-in-out infinite alternate; }
@keyframes sx-bub { from { background-position: 3px 5px, 100% 0, 0 0; } to { background-position: 3px 5px, 0 0, 0 0; } }

/* answer buttons "North Star Crystal": jewel crystal plates with a platinum rim and a gold star badge */
body.btns-sx .abtn, .btns-sx-demo { color: #fff !important; border: 2px solid color-mix(in srgb, var(--c) 40%, #eef2ff) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6) !important;
  background: radial-gradient(circle, rgba(255, 255, 255, .75) 0 .7px, transparent 1.2px) 4px 6px / 23px 17px,
    repeating-radial-gradient(circle at 100% 100%, transparent 0 20px, rgba(255, 255, 255, .1) 20px 21px),
    radial-gradient(circle at 25% 10%, color-mix(in srgb, var(--c) 40%, white), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 78%, #2a1f66), color-mix(in srgb, var(--c) 35%, #0c0a26)) !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 5px 0 color-mix(in srgb, var(--c) 35%, #05030f),
    0 0 16px -4px color-mix(in srgb, var(--c) 80%, transparent) !important; }
body.btns-sx .abtn .badge { clip-path: polygon(50% 0, 62% 26%, 85% 15%, 74% 38%, 100% 50%, 74% 62%, 85% 85%, 62% 74%, 50% 100%, 38% 74%, 15% 85%, 26% 62%, 0 50%, 26% 38%, 15% 15%, 38% 26%) !important;
  border-radius: 0 !important; width: 2.5rem !important; height: 2.5rem !important; color: #2a1a00 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .6) !important;
  background: radial-gradient(circle at 40% 32%, #fffbe6, #f6d27a 45%, #c98a12) !important; font-size: .95rem !important; }
.btns-sx-demo { border-radius: 10px; }

/* ---- still for anyone who asks for less motion ---- */
@media (prefers-reduced-motion: reduce) {
  [data-theme="starfall"] .scene *, [data-theme="starfall"] .scene *::before, [data-theme="starfall"] .logo *, [data-theme="starfall"] .logo *::after,
  [data-theme="starfall"] .btn, [data-theme="starfall"] .btn::before, [data-theme="starfall"] .btn::after, [data-theme="starfall"] .panel::after,
  [data-theme="starfall"] .topic::after, [data-theme="starfall"] #tabbar::before, html body .bubble.bub-sx.bub-sx { animation: none !important; }
  [data-theme="starfall"] .scene :is(.sx-shoot, .sx-sleigh) { display: none; }
  [data-theme="starfall"] .scene .sx-con :is(.ln, .lg) { stroke-dashoffset: 0; }
}
