/* Shared visual surface for the passage and real miniature theme previews. */
.fx-surface { --fx-a:#7424d5;--fx-b:#067eb8;--fx-soft:#f2e8ff;--fx-glow:#a640df66;--fx-gradient:linear-gradient(100deg,#7c16d9,#d01b8d,#185cda,#7c16d9);--fx-radius:7px; }
.fx-surface[data-theme=rainbow] { --fx-a:#8619d1;--fx-b:#d51c82;--fx-soft:#f8e8ff;--fx-glow:#c51aaa66;--fx-gradient:linear-gradient(100deg,#7616db 0%,#d21586 23%,#df5700 40%,#008c88 57%,#087cbd 73%,#4033dc 88%,#7616db 100%); }
.fx-surface[data-theme=fire] { --fx-a:#bf4e00;--fx-b:#ed8610;--fx-soft:#fff0d5;--fx-glow:#ff961a88;--fx-gradient:linear-gradient(0deg,#a63d00,#d96600 55%,#a16b00); }
.fx-surface[data-theme=neon] { --fx-a:#7320d8;--fx-b:#007f9c;--fx-soft:#f1e6ff;--fx-glow:#9b40fa77;--fx-gradient:linear-gradient(100deg,#7523e1,#00839c,#7523e1); }
.fx-surface[data-theme=stars] { --fx-a:#5835b4;--fx-b:#9555df;--fx-soft:#efe9ff;--fx-glow:#8453e877; }
.fx-surface[data-theme=bubbles] { --fx-a:#007d91;--fx-b:#00b5bf;--fx-soft:#dcf8fa;--fx-glow:#04b8d866;--fx-gradient:linear-gradient(100deg,#00758c,#009b91,#00758c); }
.fx-surface[data-theme=ink] { --fx-a:#7b20c6;--fx-b:#c42091;--fx-soft:#f7e5ff;--fx-glow:#bd27d666;--fx-gradient:linear-gradient(105deg,#6d19ca,#c31690 37%,#185ed2 70%,#6d19ca); }
.fx-surface[data-theme=electric] { --fx-a:#4432db;--fx-b:#1779df;--fx-soft:#eaeaff;--fx-glow:#6d64f888;--fx-gradient:linear-gradient(100deg,#5031df,#075bcd,#5031df); }
.fx-surface[data-theme=sakura] { --fx-a:#c21b76;--fx-b:#e65b9e;--fx-soft:#ffe5f2;--fx-glow:#ed589b66;--fx-gradient:linear-gradient(100deg,#b91673,#d73572,#ae217e); }
.fx-surface[data-theme=minimal] { --fx-a:#473e56;--fx-b:#81728e;--fx-soft:#f5f2f8;--fx-glow:transparent; }
.fx-surface[data-intensity=subtle] { --fx-radius:2px; }
.fx-surface[data-intensity=arcade] { --fx-radius:12px; }
.ct-stage { isolation:isolate; }
.ct-viewport { position:relative;z-index:1; }
.ct-words { color:#807c88; }
.ct-words.jump { transition:none!important; }
.ct-stage:not(.focused) .ct-words { filter:none;opacity:.88; }
.ct-stage .ct-unfocused { top:100%;padding-top:6px;transform:none;font-size:.75rem;color:#797080; }
.ct-stage.focused .ct-unfocused { opacity:0; }
.fx-surface :is(.ct-w,.fx-mini-word) { border-radius:4px; }
.fx-surface :is(.ct-w,.fx-mini-word) > .ok { color:var(--fx-a);transition:color 100ms ease; }
.fx-surface :is(.ct-w,.fx-mini-word).current { background:linear-gradient(0deg,var(--fx-soft),transparent 80%);box-shadow:inset 0 -2px var(--fx-b); }
.fx-surface :is(.ct-w,.fx-mini-word)[data-finished] > .ok { color:var(--fx-a); }
/* The gradient is on the whole word, not repeated separately on every character. */
:is(.ct-page:is([data-theme=rainbow],[data-theme=ink],[data-theme=fire]) .ct-stage,.fx-preview:is([data-theme=rainbow],[data-theme=ink],[data-theme=fire])) :is(.ct-w,.fx-mini-word)[data-finished] { background-image:var(--fx-gradient);background-size:100% 100%;background-clip:text;-webkit-background-clip:text; }
:is(.ct-page:is([data-theme=rainbow],[data-theme=ink],[data-theme=fire]) .ct-stage,.fx-preview:is([data-theme=rainbow],[data-theme=ink],[data-theme=fire])) :is(.ct-w,.fx-mini-word)[data-finished] > .ok { color:transparent; }
:is(.ct-page[data-theme=rainbow] .ct-stage,.fx-preview[data-theme=rainbow]) :is(.ct-w,.fx-mini-word).current > .ok:nth-child(4n+1) { color:#8619d1; }
:is(.ct-page[data-theme=rainbow] .ct-stage,.fx-preview[data-theme=rainbow]) :is(.ct-w,.fx-mini-word).current > .ok:nth-child(4n+2) { color:#c91680; }
:is(.ct-page[data-theme=rainbow] .ct-stage,.fx-preview[data-theme=rainbow]) :is(.ct-w,.fx-mini-word).current > .ok:nth-child(4n+3) { color:#007f94; }
:is(.ct-page[data-theme=rainbow] .ct-stage,.fx-preview[data-theme=rainbow]) :is(.ct-w,.fx-mini-word).current > .ok:nth-child(4n) { color:#275bd7; }
:is(.ct-page[data-theme=rainbow] .ct-stage,.fx-preview[data-theme=rainbow]) :is(.ct-w,.fx-mini-word)[data-finished],:is(.ct-page[data-theme=ink] .ct-stage,.fx-preview[data-theme=ink]) :is(.ct-w,.fx-mini-word)[data-finished] { animation:fx-word-colour 900ms ease-out; }
:is(.ct-page[data-theme=fire] .ct-stage,.fx-preview[data-theme=fire]) :is(.ct-w,.fx-mini-word)[data-finished] { filter:drop-shadow(0 1px 2px #ec951a33); }
:is(.ct-page[data-theme=fire] .ct-stage,.fx-preview[data-theme=fire]) :is(.ct-w,.fx-mini-word)[data-finished]::after { content:'';position:absolute;bottom:3px;left:4%;width:92%;height:2px;background:linear-gradient(90deg,transparent,#f29516,transparent);box-shadow:0 -2px var(--fx-radius) #ffb32666; }
:is(.ct-page[data-theme=neon] .ct-stage,.fx-preview[data-theme=neon]) :is(.ct-w,.fx-mini-word)[data-finished] > .ok { color:#7920d5;text-shadow:0 0 var(--fx-radius) #a953ff77; }
:is(.ct-page[data-theme=neon] .ct-stage,.fx-preview[data-theme=neon]) :is(.ct-w,.fx-mini-word)[data-finished]:nth-child(even) > .ok { color:#007d92;text-shadow:0 0 var(--fx-radius) #00c6d877; }
:is(.ct-page[data-theme=neon] .ct-stage,.fx-preview[data-theme=neon]) :is(.ct-w,.fx-mini-word).current { box-shadow:0 0 0 1px #c296ee66,0 0 var(--fx-radius) #a653e533;animation:fx-neon-aura 1800ms ease-in-out infinite alternate; }
:is(.ct-page[data-theme=stars] .ct-stage,.fx-preview[data-theme=stars]) :is(.ct-w,.fx-mini-word)[data-finished] { text-shadow:0 1px 0 #d8c1ff;box-shadow:inset 0 -1px #a98adf; }
:is(.ct-page[data-theme=bubbles] .ct-stage,.fx-preview[data-theme=bubbles]) :is(.ct-w,.fx-mini-word)[data-finished] { background:linear-gradient(0deg,#42d7dc40,transparent 70%);box-shadow:inset 0 -2px #0ca8b2;border-radius:6px; }
:is(.ct-page[data-theme=electric] .ct-stage,.fx-preview[data-theme=electric]) :is(.ct-w,.fx-mini-word)[data-finished] { text-shadow:1px 0 #5797ff66,-1px 0 #ad68fa33;box-shadow:inset 0 -1px #6f60ec; }
:is(.ct-page[data-theme=sakura] .ct-stage,.fx-preview[data-theme=sakura]) :is(.ct-w,.fx-mini-word)[data-finished] { background:linear-gradient(0deg,#f46bab25,transparent 80%);text-shadow:0 1px 0 #ffc6e0; }
:is(.ct-page:is([data-theme=rainbow],[data-theme=ink]) .ct-stage,.fx-preview:is([data-theme=rainbow],[data-theme=ink])) :is(.ct-w,.fx-mini-word).current::after { content:'';position:absolute;bottom:2px;left:0;right:0;height:3px;border-radius:4px;background:var(--fx-gradient);background-size:200% 100%;animation:fx-colour-sweep 1900ms linear infinite; }
/* Errors always win over theme colouring; editing removes the finished-word attribute. */
.fx-surface :is(.ct-w,.fx-mini-word) > span.bad,.fx-surface :is(.ct-w,.fx-mini-word) > span.x { color:#c24658!important;text-shadow:none!important;background:#ffe9ed;text-decoration:underline;text-decoration-color:#cf5a6e;text-underline-offset:4px; }
.ct-w.miss { text-decoration-color:#cf5a6e; }
.fx-surface :is(.ct-w,.fx-mini-word) > span.flash { color:#c24658;background:#ffe9ed;animation:none; }
.ct-caret { background:transparent;width:3px;transition:transform 65ms linear;overflow:visible; }
.ct-caret.ct-snap { transition:none; }
.fx-caret-core { position:absolute;inset:0;border-radius:4px;background:var(--fx-a);transition:background 250ms,box-shadow 250ms; }
[data-cursor=glow] .fx-caret-core { box-shadow:0 0 9px var(--fx-glow); }
[data-cursor=rainbow] .fx-caret-core { background:linear-gradient(#8d1dd9,#e51c85,#00a4b1,#3154e6);width:3px; }
[data-cursor=flame] .fx-caret-core { background:linear-gradient(#ec9511,#c94c00);box-shadow:0 0 9px #ffae3caa; }
[data-cursor=flame] .fx-caret-core::before { content:'';position:absolute;bottom:100%;left:-4px;width:10px;height:15px;border-radius:75% 20% 65% 40%;background:linear-gradient(#ffc239,#f06b0c);animation:fx-flame-sway 700ms ease-in-out infinite alternate; }
[data-cursor=dot] .fx-caret-core { inset:auto auto -3px -3px;width:9px;height:9px;border-radius:50%;box-shadow:0 0 8px var(--fx-glow); }
[data-cursor=dot] .ct-caret.typing .fx-caret-core { animation:fx-dot 600ms ease-in-out infinite alternate; }
[data-cursor=underline] .fx-caret-core { inset:auto auto 0 0;width:.58em;height:3px; }
[data-cursor=neon] .fx-caret-core { background:#8128e8;box-shadow:0 0 3px #a578ff,0 0 12px #4fbce9aa; }
[data-theme=rainbow][data-cursor=glow] .fx-caret-core,[data-theme=ink][data-cursor=glow] .fx-caret-core { background:var(--fx-gradient);box-shadow:0 0 12px var(--fx-glow); }
[data-theme=fire]:not([data-energy='0']) .ct-caret::after { content:'';position:absolute;top:-21px;left:-5px;width:13px;height:19px;border-radius:75% 15% 60% 40%;background:linear-gradient(#ffc52c,#f06b10);box-shadow:0 0 9px #f4a02177;animation:fx-flame-sway 650ms ease-in-out infinite alternate; }
[data-theme=fire][data-energy='3'] .ct-caret::after { height:25px;top:-27px;width:17px;left:-7px; }
.chill-fx-layer { position:absolute;pointer-events:none;overflow:hidden;z-index:3;inset:0; }
.fx-passage-layer { z-index:0;top:-54px;bottom:-10px;left:0;right:0; }
.fx-halo { position:absolute;inset:-35px 0;z-index:-1;pointer-events:none;opacity:0;border-radius:50%;background:radial-gradient(ellipse,var(--fx-soft),transparent 75%);transition:opacity 400ms; }
.fx-background .fx-halo { opacity:.4; }
.fx-background[data-energy='3'] .fx-halo { opacity:.75; }
.fx-particle { position:absolute;pointer-events:none;display:block;width:var(--size,16px);height:var(--size,16px);animation-duration:950ms;animation-fill-mode:both;animation-timing-function:cubic-bezier(.2,.65,.3,1);animation-delay:var(--delay,0ms);transform:translate(-50%,-100%); }
.fx-flame { height:calc(var(--size)*1.35);border-radius:75% 12% 65% 45%;background:radial-gradient(ellipse at 40% 75%,#ffe15a 0 20%,#ff9818 45%,#e55709 85%);box-shadow:0 0 9px #ff9b3266;animation-name:fx-flame-rise; }
.fx-ember { height:calc(var(--size)*.55);border-radius:65% 30% 60% 40%;background:#ee8212;box-shadow:0 0 5px #f9b51a99;animation-name:fx-ember-rise;animation-duration:800ms; }
.fx-starlight { background:linear-gradient(130deg,#f3be1b,#a75ae5);clip-path:polygon(50% 0,61% 33%,98% 35%,69% 58%,79% 94%,50% 74%,21% 94%,31% 58%,2% 35%,39% 33%);animation-name:fx-star-shine; }
.fx-twinkle { background:#9652d7;clip-path:polygon(50% 0,62% 37%,100% 50%,62% 63%,50% 100%,38% 63%,0 50%,38% 37%);animation-name:fx-star-shine;animation-duration:1100ms; }
.fx-shooting { height:4px;border-radius:6px;background:linear-gradient(90deg,transparent,#b051ef,#e3a72b);box-shadow:0 0 6px #b05ef777;animation-name:fx-shoot;animation-duration:900ms; }
.fx-bubble { border:2px solid #009ebdbb;border-radius:50%;background:radial-gradient(circle at 28% 24%,#ffffffee 0 13%,#74e4ec55 20%,#b07df333 68%,#17a8cd55 100%);box-shadow:inset -2px -2px 4px #6b5dd333,0 0 3px #0ab4c522;animation-name:fx-bubble-float; }
.fx-droplet { border-radius:50%;background:#02aabd;animation-name:fx-droplet-pop;animation-duration:360ms; }
.fx-petal { height:calc(var(--size)*1.25);border-radius:85% 15% 80% 35%;background:linear-gradient(130deg,#ff9ed2,#df2988 75%);box-shadow:inset 1px 1px 2px #fff6;animation-name:fx-petal-drift;animation-duration:1100ms; }
.fx-bolt { height:calc(var(--size)*.58);background:linear-gradient(100deg,#8531e3,#2479ed);clip-path:polygon(0 40%,42% 0,35% 36%,72% 15%,62% 48%,100% 28%,49% 100%,57% 59%,26% 80%,33% 46%);animation-name:fx-electric;animation-duration:700ms; }
.fx-spark { height:3px;border-radius:4px;background:#7561ee;box-shadow:0 0 5px #617dfb99;animation-name:fx-spark-fly;animation-duration:700ms; }
.fx-ribbon { height:7px;border-radius:100% 40%;background:var(--fx-gradient);box-shadow:0 0 6px #e43e9a44;animation-name:fx-ribbon-fade;animation-duration:750ms; }
.fx-neontrail { height:4px;border-radius:5px;background:linear-gradient(90deg,#b140ef,#00a4c1);box-shadow:0 0 7px #b13fed99;animation-name:fx-ribbon-fade;animation-duration:700ms; }
.fx-inkdrop { height:12px;border:2px solid #a135bd;border-radius:50%;background:linear-gradient(100deg,#ba22b244,#1459d522);animation-name:fx-ink-drop;animation-duration:850ms; }
.fx-wave { position:absolute;pointer-events:none;height:5px;border-radius:50%;transform-origin:center;animation:fx-mini-word-wave 850ms ease-out both; }
.fx-wave-rainbow { background:var(--fx-gradient);height:7px;box-shadow:0 0 7px #b623bb55; }
.fx-wave-fire { background:linear-gradient(90deg,transparent,#d76300,#f1ad10,transparent);box-shadow:0 -3px 10px #ed8a2755; }
.fx-wave-neon { background:var(--fx-gradient);box-shadow:0 0 12px #b341e388,0 0 4px #00b4cf99;animation-name:fx-neon-sweep; }
.fx-wave-bubbles { border:2px solid #08a9bc;border-radius:50%;height:9px;animation-name:fx-ink-ripple; }
.fx-wave-ink { height:14px;border:2px solid #a13acb;background:linear-gradient(100deg,#a224df33,#ed409633,#3165dc33);animation-name:fx-ink-ripple; }
.fx-wave-electric { background:linear-gradient(90deg,#693de8,#3299e8);clip-path:polygon(0 20%,30% 40%,40% 0,55% 55%,70% 25%,100% 80%,70% 70%,56% 95%,40% 55%,25% 90%);height:12px;animation-name:fx-electric-pulse; }
.fx-wave-sakura { height:8px;background:linear-gradient(90deg,transparent,#e84b9baa,transparent);animation-name:fx-ink-ripple; }
.fx-wide { height:10px;animation-duration:1100ms; }
.fx-constellation { position:absolute;width:80%;height:52px;fill:#eab72c;stroke:#8a4ed4;stroke-width:1.8;animation:fx-constellation 1100ms ease-out both; }
.fx-constellation path { fill:none;stroke-dasharray:260;stroke-dashoffset:260;animation:fx-connect 900ms ease-out forwards; }
.fx-companion { display:flex;align-items:center;justify-content:center;gap:13px;min-height:64px;margin:3px 0 5px; }
.fx-flow { display:inline-flex;align-items:center;gap:9px;padding:7px 13px 7px 8px;border-radius:30px;border:1px solid var(--fx-soft);background:linear-gradient(110deg,var(--fx-soft),#fff);color:#65566f;font-size:.89rem;font-weight:650;font-variant-numeric:tabular-nums;box-shadow:0 2px 7px #35125908; }
.fx-flow b { color:var(--fx-a);font-size:1.03rem; }
.fx-flow strong { font-weight:800; }
.fx-flow-emblem { width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--fx-a) var(--flow-angle,0deg),#ddd4eb 0);position:relative; }
.fx-flow-emblem::before { content:'';position:absolute;inset:3px;background:white;border-radius:50%; }
.fx-flow-emblem span { position:relative;width:10px;height:10px;border-radius:50%;background:var(--fx-b); }
[data-theme=rainbow] .fx-flow-emblem { background:conic-gradient(#9522e1,#e82d8f,#ee9325,#00a7a0,#246ce2,#9522e1); }
[data-theme=fire] .fx-flow-emblem { background:#ffe8c2; }
[data-theme=fire] .fx-flow-emblem::before { display:none; }
[data-theme=fire] .fx-flow-emblem span { width:14px;height:20px;border-radius:75% 15% 65% 40%;background:radial-gradient(ellipse at 40% 80%,#ffe174,#f68d14 55%,#dc5508); }
[data-theme=fire][data-energy='3'] .fx-flow-emblem span { animation:fx-flame-sway 700ms ease-in-out infinite alternate; }
[data-theme=neon]:not([data-energy='0']) .fx-flow { box-shadow:0 0 12px #9a44e444; }
[data-theme=stars] .fx-flow-emblem span { width:20px;height:20px;background:#9250d3;clip-path:polygon(50% 0,61% 33%,98% 35%,69% 58%,79% 94%,50% 74%,21% 94%,31% 58%,2% 35%,39% 33%); }
[data-theme=bubbles] .fx-flow-emblem span { width:17px;height:17px;background:radial-gradient(circle at 25% 25%,white,#36c5d188);border:2px solid #0a9cae;box-shadow:9px -5px 0 -5px #23bfd1,-7px 7px 0 -5px #23bfd1; }
[data-theme=electric] .fx-flow-emblem span { width:19px;height:21px;clip-path:polygon(55% 0,10% 55%,45% 50%,30% 100%,90% 40%,56% 45%); }
[data-theme=sakura] .fx-flow-emblem span { width:16px;height:20px;border-radius:85% 15% 75% 35%;background:linear-gradient(#f28abb,#cf257c); }
.fx-mascot { position:relative;width:52px;height:52px;display:block;transform:rotate(var(--watch,0deg));transition:transform 400ms; }
.fx-mascot [data-face] { display:none;width:100%;height:100%; }
.fx-mascot svg { width:100%;height:100%; }
.fx-mascot[data-mood=watching] [data-face=watching],.fx-mascot[data-mood=happy] [data-face=happy],.fx-mascot[data-mood=celebrate] [data-face=celebrate],.fx-mascot[data-mood=sleep] [data-face=sleep],.fx-mascot[data-mood=encourage] [data-face=encourage] { display:block; }
.fx-mascot[data-mood=happy] { animation:fx-mascot-nod 550ms ease-out; }
.fx-mascot[data-mood=celebrate] { animation:fx-mascot-cheer 800ms ease-out; }
.fx-mascot[data-mood=sleep] { transform:rotate(-10deg);opacity:.7; }
.fx-mascot small { display:none;position:absolute;right:-3px;top:0;font-size:11px;color:#9b73bc; }
.fx-mascot[data-mood=sleep] small { display:block; }
.fx-no-mascot .fx-mascot { display:none; }
.fx-message { font-size:.78rem;color:#7b507f;max-width:150px;line-height:1.3;font-weight:600; }
.fx-message:empty { display:none; }
/* Settings retains the existing popover and site typography. */
#ctSettingsPop { width:min(510px,calc(100vw - 32px));max-height:max(120px,calc(var(--visible-height,100dvh) + var(--visible-top,0px) - var(--ct-pop-top,145px) - 16px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin; }
.fx-settings { border-top:1px solid #ece5f3;margin-top:16px;padding-top:18px; }
.fx-settings h3 { font-size:1rem;margin:0 0 5px;color:#493153; }
.fx-hint { font-size:.75rem;color:#82708b;line-height:1.5;margin:0 0 13px; }
.fx-modes { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:18px; }
.fx-card { min-width:0;border:2px solid #eee7f4;border-radius:14px;overflow:hidden;background:#fff; }
.fx-card[data-selected=true] { border-color:#8b40e7;box-shadow:0 0 0 2px #a55be51a,0 4px 12px #6c35a312; }
.fx-preview { position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:110px;overflow:hidden;background:radial-gradient(ellipse at 50% 100%,var(--fx-soft),white 85%);border:0;cursor:pointer;color:var(--fx-a); }
.fx-preview-scene { position:relative;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:22px;line-height:1.7;z-index:1; }
.fx-preview .fx-mini-word { margin-right:0;white-space:nowrap;display:inline-block;position:relative; }
.fx-preview-caret { display:inline-block;height:26px;width:3px;background:var(--fx-a);vertical-align:middle;margin-left:3px;border-radius:2px;box-shadow:0 0 5px var(--fx-glow); }
.fx-preview-label { position:absolute;bottom:6px;right:8px;font-size:9px;letter-spacing:.3px;color:#81628b; }
.fx-preview-rest { position:absolute;inset:0;pointer-events:none; }
.fx-preview-rest .fx-particle { left:calc(67% - var(--rest-i)*33%);top:31px;animation:none;opacity:.9;transform:rotate(calc(var(--rest-i)*-22deg)); }
.fx-preview-rest .fx-bubble { --size:23px!important; }
.fx-preview-rest .fx-inkdrop { width:36px;height:9px;top:78px;left:36%; }
.fx-demo .fx-preview-rest { visibility:hidden; }
.fx-choice { position:relative;width:100%;text-align:left;display:flex;flex-direction:column;gap:4px;border:0;background:white;padding:11px 8px 12px;min-height:64px;cursor:pointer; }
.fx-choice b { font-size:.75rem;color:#50335f;font-weight:700; }
.fx-choice small { font-size:.63rem;color:#8b7694; }
.fx-choice[aria-pressed=true] { background:#f1e7ff; }
.fx-check { display:none;position:absolute;top:7px;right:6px;color:white;font-size:11px;font-weight:800;background:#8639da;border-radius:50%;width:17px;height:17px;text-align:center;line-height:17px; }
.fx-choice[aria-pressed=true] .fx-check { display:block; }
.fx-choice[aria-pressed=true] b { padding-right:12px; }
.fx-card button:focus-visible,.fx-field select:focus-visible,.fx-field input:focus-visible { outline:2px solid #8b40e7;outline-offset:-3px; }
.fx-field { display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.78rem;color:#745e80;margin:10px 0;min-height:36px; }
.fx-field select { border:1px solid #dfd2ec;border-radius:9px;background:#fff;padding:8px 10px;max-width:205px;color:#6b4286;font:inherit; }
.fx-field input { accent-color:#8439d7;width:19px;height:19px;cursor:pointer; }
.fx-preview-status { display:block;font-size:.72rem;color:#826090;min-height:16px; }
/* Minimal is the deliberately quiet mode; all other modes retain colourful progress. */
:is(.ct-page[data-theme=minimal] .ct-stage,.fx-preview[data-theme=minimal]) :is(.ct-w,.fx-mini-word)[data-finished] { background:none;box-shadow:none;filter:none;text-shadow:none;animation:none; }
.ct-page[data-theme=minimal] .fx-flow { background:#faf8fc;border-color:#eee8f2;box-shadow:none; }
.ct-page[data-theme=minimal] .fx-flow-emblem { width:20px;height:20px; }
.ct-page[data-theme=minimal] .fx-mascot { width:38px;height:38px; }
.ct-page[data-theme=minimal] .fx-mascot { animation:none; }
body.chill-focus .ct-top { opacity:1;pointer-events:auto; }
body.chill-focus .ct-switch-wrap,body.chill-focus #ctFocusBtn { visibility:hidden; }
body.chill-focus .ct-exit-focus { top:auto;bottom:20px; }
@keyframes fx-word-colour { from { background-size:200% 100%;background-position:100% 0; } to { background-size:100% 100%;background-position:0 0; } }
@keyframes fx-colour-sweep { from { background-position:180% 0; } to { background-position:0 0; } }
@keyframes fx-neon-aura { to { box-shadow:0 0 0 1px #bd70e977,0 0 var(--fx-radius) #a653e555; } }
@keyframes fx-flame-sway { to { transform:rotate(-10deg) scaleY(.88); } }
@keyframes fx-dot { to { transform:translateY(-2px); } }
@keyframes fx-flame-rise { 0% { opacity:0;transform:translate(-50%,-70%) scale(.5) rotate(12deg); } 18% { opacity:1; } 100% { opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-100% + var(--dy))) scale(.45) rotate(-15deg); } }
@keyframes fx-ember-rise { 0% { opacity:0;transform:translate(-50%,-70%) scale(.65); } 15% { opacity:1; } 100% { opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-100% + var(--dy))) scale(.25) rotate(70deg); } }
@keyframes fx-star-shine { 0% { opacity:0;transform:translate(-50%,-80%) scale(.3) rotate(-20deg); } 30%,55% { opacity:1;transform:translate(-50%,-110%) scale(1) rotate(15deg); } 100% { opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-100% + var(--dy))) scale(.4) rotate(65deg); } }
@keyframes fx-shoot { 0% { opacity:0;transform:translate(-90px,-35px) rotate(-15deg); } 20% { opacity:1; } 100% { opacity:0;transform:translate(100px,-65px) rotate(-15deg); } }
@keyframes fx-bubble-float { 0% { opacity:0;transform:translate(-50%,-75%) scale(.5); } 20% { opacity:1; } 74% { opacity:.9;transform:translate(calc(-50% + var(--dx)),calc(-100% + var(--dy))) scale(1); } 84%,100% { opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-100% + var(--dy))) scale(1.4); } }
@keyframes fx-droplet-pop { 0% { opacity:0;transform:translate(-50%,-35px) scale(.5); } 20% { opacity:.9; } 100% { opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-100% + var(--dy))) scale(.3); } }
@keyframes fx-petal-drift { 0% { opacity:0;transform:translate(-50%,-90%) rotate(-20deg); } 20% { opacity:1; } 60% { transform:translate(calc(-50% + var(--dx)*.6),-35px) rotate(55deg); } 100% { opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-100% + var(--dy))) rotate(var(--turn)) scale(.6); } }
@keyframes fx-electric { 0% { opacity:0;transform:translate(-50%,-100%) scaleX(.2); } 18%,48% { opacity:1;transform:translate(-50%,-100%) scaleX(1); } 100% { opacity:0;transform:translate(calc(-50% + var(--dx)),-30px) scaleX(.5); } }
@keyframes fx-spark-fly { 0% { opacity:1;transform:translate(-50%,-100%) rotate(35deg); } 100% { opacity:0;transform:translate(calc(-50% + var(--dx)),-38px) rotate(70deg) scaleX(.3); } }
@keyframes fx-ribbon-fade { 0% { opacity:0;transform:translate(-50%,-100%) scaleX(.25) rotate(-10deg); } 20%,45% { opacity:.95; } 100% { opacity:0;transform:translate(calc(-50% + var(--dx)),-42px) scaleX(1.2) rotate(12deg); } }
@keyframes fx-ink-drop { 0% { opacity:.8;transform:translate(-50%,-100%) scale(.3); } 100% { opacity:0;transform:translate(-50%,-150%) scaleX(1.4) scaleY(.8); } }
@keyframes fx-mini-word-wave { 0% { opacity:0;transform:scaleX(.1); } 25% { opacity:.9; } 100% { opacity:0;transform:scaleX(1.15) translateY(-5px); } }
@keyframes fx-neon-sweep { 0% { opacity:0;transform:scaleX(.05); } 35% { opacity:1; } 100% { opacity:0;transform:scaleX(1.1); } }
@keyframes fx-ink-ripple { 0% { opacity:0;transform:scale(.2); } 30% { opacity:.85; } 100% { opacity:0;transform:scale(1.3) translateY(-12px); } }
@keyframes fx-electric-pulse { 0% { opacity:0;transform:scaleX(.1); } 30% { opacity:.9; } 100% { opacity:0;transform:scaleX(1.1); } }
@keyframes fx-constellation { 0%,100% { opacity:0; } 30%,70% { opacity:1; } }
@keyframes fx-connect { to { stroke-dashoffset:0; } }
@keyframes fx-mascot-nod { 50% { transform:translateY(-3px) rotate(6deg); } }
@keyframes fx-mascot-cheer { 30% { transform:translateY(-7px) rotate(-8deg); } 65% { transform:translateY(-3px) rotate(8deg); } }
@media(pointer:coarse) { .fx-field { min-height:44px; }.fx-field select { font-size:16px;min-height:44px; }.fx-toggle input { width:24px;height:24px; } }
@media(max-width:540px) { #ctSettingsPop { right:0; }.fx-modes { grid-template-columns:repeat(2,minmax(0,1fr)); }.fx-message { max-width:110px;font-size:.73rem; }.fx-companion { gap:8px; }.fx-flow { padding-right:10px; }.fx-mascot { width:46px;height:46px; }.fx-field select { max-width:180px; } }
/* Static colour survives Off and reduced motion. No looping caret or preview animations. */
.ct-page.chill-fx-still *,.ct-page.chill-fx-still *::before,.ct-page.chill-fx-still *::after,.fx-static *,.fx-static *::before,.fx-static *::after { animation:none!important;transition:none!important; }
.ct-page.chill-fx-still .fx-passage-layer,.ct-page.chill-fx-still .fx-halo,.ct-page.chill-fx-still .ct-caret::after,.ct-page.chill-fx-still .fx-caret-core::before,.fx-no-particles .fx-preview-rest { display:none; }
.fx-static.fx-demo .fx-preview-rest { visibility:visible; }
.ct-page.fx-hidden *,.ct-page.fx-hidden *::before,.ct-page.fx-hidden *::after,.ct-page.fx-paused .ct-stage *,.ct-page.fx-paused .ct-stage *::after { animation-play-state:paused!important; }
@media(prefers-reduced-motion:reduce) { .ct-page *,.ct-page *::before,.ct-page *::after { animation:none!important;transition:none!important; } }
