.gk-demo-h { font-size: 1rem; margin: 0 0 .5rem; }
.gk-demo { border-inline-start: 3px solid var(--gk-accent, currentColor); padding-inline-start: 1rem; margin-block: 2rem; }
.gk-word { display: inline-block; min-height: 44px; min-width: 44px; line-height: 44px; padding: 0 .25em; text-align: center; cursor: pointer; border-bottom: 2px dotted var(--gk-accent, currentColor); opacity: 0.95; }
.gk-word:focus-visible, [data-gk="sentence"]:focus-visible, [data-gk="paragraph"]:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.gk-word.gk-flash { background: color-mix(in srgb, currentColor 18%, transparent); }
[data-gk="sentence"], [data-gk="paragraph"] { min-height: 44px; }
[data-gk="sentence"] { cursor: grab; touch-action: pan-y; }
.gk-tone-warm { letter-spacing: 0.04em; transition: letter-spacing 0.25s ease, opacity 0.25s ease; }
.gk-tone-cold { letter-spacing: -0.01em; opacity: 0.85; transition: letter-spacing 0.25s ease, opacity 0.25s ease; }
.gk-tone-warm, .gk-tone-cold, .gk-tone-warm a, .gk-tone-cold a, .gk-tone-warm [class*="accent"], .gk-tone-cold [class*="accent"] { filter: none; }
.gk-short .gk-extra { display: none; }
[data-gk="paragraph"] { touch-action: manipulation; cursor: pointer; }
.gk-hint { font-size: 0.85rem; opacity: 0.7; margin-top: 1.25rem; max-width: 42rem; }
@media (prefers-reduced-motion: reduce) {
  .gk-tone-warm, .gk-tone-cold { transition: none; }
  .gk-word.gk-flash { background: none; }
}
/* v0.2.3 B2: ANIM-WEB-1 twin, same two rules */
html[data-motion="off"] .gk-tone-warm, html[data-motion="off"] .gk-tone-cold { transition: none; }
html[data-motion="off"] .gk-word.gk-flash { background: none; }

/* G1 (Jev QC 2026-10-19): light-theme contrast */
html[data-theme="light"] .gk-demo{--gk-accent:var(--ink)!important}

/* GESTURE-4D-1105 r2: the adapter removes .gk-flash after 280 ms; this shipped CSS
   gives that class one 280 ms keyframe animation. Both motion-off twins remove it. */
.gk-word.gk-flash { animation: gk-flash 280ms ease-out; }
@keyframes gk-flash { 50% { background: var(--gk-accent, var(--accent)); color: var(--gk-on-accent, #151021); } }
@media (prefers-reduced-motion: reduce) { .gk-word.gk-flash { animation: none; background: none; } }
html[data-motion="off"] .gk-word.gk-flash { animation: none; background: none; }
