/* DopaSpeak site, look A (Egolino palette, plush buttons). Shared by the homepage and every topic page.
   Light and dark follow the system; [data-theme] forces one. Tokens first, then components. */
:root {
  --bg: #efe5d2; --paper: #fff8ec; --ink: #3b2b45; --sub: #5e4d68; --line: #3b2b45; --accent: #9c3048; --dot: #c2405a;
  --tag1: #2fa9a8; --tag1t: #1d1626; --tag3: #e0b44f; --tag3t: #3b2b45; --foot: #1d1626; --foott: #f3ede4;
  --band1: #a9d9d3; --band1t: #1d1626; --band1a: #8a2238;
  --band2: #efc3be; --band2t: #3b2b45; --band2a: #7f1d33;
  --band3: #ecd28f; --band3t: #3b2b45; --band3a: #7f1d33;
  --band4: #2a2130; --band4t: #fff8ec; --band4a: #f2a7b1;
  --display: "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif; --text: "Nunito", "Segoe UI", system-ui, sans-serif;
  --gutter: 16px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1722; --paper: #2c2333; --ink: #fff3e4; --sub: #cfc0d6; --line: #a593b3; --accent: #f2a7b1; --dot: #f2a7b1;
    --tag1: #2fa9a8; --tag1t: #0d1f1f; --tag3: #e0b44f; --tag3t: #2a1f05; --foot: #120e16; --foott: #e8dfd3;
    --band1: #173a39; --band1t: #fff3e4; --band1a: #7fe0d8;
    --band2: #43262d; --band2t: #fff3e4; --band2a: #f2a7b1;
    --band3: #4a3a12; --band3t: #fff3e4; --band3a: #f0cf72;
    --band4: #000000; --band4t: #fff3e4; --band4a: #f2a7b1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1722; --paper: #2c2333; --ink: #fff3e4; --sub: #cfc0d6; --line: #a593b3; --accent: #f2a7b1; --dot: #f2a7b1;
  --tag1: #2fa9a8; --tag1t: #0d1f1f; --tag3: #e0b44f; --tag3t: #2a1f05; --foot: #120e16; --foott: #e8dfd3;
  --band1: #173a39; --band1t: #fff3e4; --band1a: #7fe0d8;
  --band2: #43262d; --band2t: #fff3e4; --band2a: #f2a7b1;
  --band3: #4a3a12; --band3t: #fff3e4; --band3a: #f0cf72;
  --band4: #000000; --band4t: #fff3e4; --band4a: #f2a7b1;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
[id] { scroll-margin-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 18px/1.6 var(--text); overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
h1, h2, .mega { font-family: var(--display); font-weight: 900; letter-spacing: -.02em; margin: 0; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.word { font: 900 22px/1 var(--display); letter-spacing: -.02em; }
.word i, .mega i { font-style: normal; color: var(--dot); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; padding: 10px 16px; background: var(--paper); border: 3px solid var(--line); border-radius: 12px; }

/* top bar: sticky, solid once the page is scrolled */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); position: sticky; top: 0; z-index: 20;
  transition: background-color .2s ease, box-shadow .2s ease, padding .2s ease; }
.top.stuck { background: var(--bg); box-shadow: 0 3px 0 var(--line); padding-block: 8px; }
.top-l, .top-r { display: flex; align-items: center; gap: 12px; }
.top-l { gap: 6px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 42px; height: 42px; flex: none; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 2.5px solid var(--line); }
.badge { display: block; border-radius: 10px; }
.badge img { width: 170px; }
.top.stuck .badge img { width: 140px; }
.badge-txt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 46px; border-radius: 12px; background: #000; color: #fff;
  font: 900 15px/1.1 var(--text); text-decoration: none; border: 1.5px solid #a6a6a6; }
.badge-txt svg { width: 20px; height: 20px; }

/* language picker */
.lp { position: relative; }
.lp summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 9px 14px; min-height: 46px;
  border: 2.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 900 15px/1 var(--text); box-shadow: 0 4px 0 var(--line); }
.lp summary::-webkit-details-marker { display: none; }
.lp summary svg { width: 20px; height: 20px; }
.lp summary::after { content: ""; width: 7px; height: 7px; border-right: 2.5px solid; border-bottom: 2.5px solid; transform: rotate(45deg) translate(-2px, -2px); }
.lp[open] summary { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.lp-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; padding: 12px; background: var(--paper); color: var(--ink);
  border: 3px solid var(--line); border-radius: 20px; box-shadow: 0 8px 0 var(--line), 0 24px 40px -16px rgba(0,0,0,.35); }
.lp-menu p { margin: 2px 8px 8px; font-size: 13px; color: var(--sub); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.lp-menu div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.lp-menu a { padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 800; }
.lp-menu a:hover { background: var(--tag1); color: var(--tag1t); }
.lp-menu a[aria-current] { background: var(--ink); color: var(--bg); }

/* burger + left drawer (native dialog) */
.burger { display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; border: 0; border-radius: 14px; background: none; color: var(--ink); cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; border-radius: 3px; background: currentColor; transition: width .2s ease; }
.burger span:last-child { width: 18px; }
.burger:hover span:last-child { width: 26px; }
dialog.nav { margin: 0; inset: 0 auto 0 0; width: min(400px, 86vw); max-width: none; height: 100dvh; max-height: none; border: 0; border-right: 3px solid var(--line);
  padding: 0; background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; box-shadow: 10px 0 40px -10px rgba(0,0,0,.35); }
dialog.nav::backdrop { background: rgba(20, 12, 30, .45); }
dialog.nav[open] { animation: navin .24s cubic-bezier(.2, .8, .2, 1); }
dialog.nav[open]::backdrop { animation: navfade .24s ease-out; }
@keyframes navin { from { translate: -100% 0; } to { translate: 0 0; } }
@keyframes navfade { from { opacity: 0; } to { opacity: 1; } }
html:has(dialog.nav[open]) { overflow: hidden; }
.nav-in { min-height: 100%; padding: 10px 24px 40px; }
.nav-play { width: 100%; margin: 4px 0 18px; min-height: 56px; font-size: 19px; }
.nav-close { width: 48px; height: 48px; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; margin-left: -12px; }
.nav-close svg { width: 26px; height: 26px; }
.nav-main a { display: block; padding: 6px 0; font: 900 24px/1.15 var(--display); text-decoration: none; letter-spacing: -.01em; }
.nav-main a:hover, .nav-side a:hover { color: var(--accent); }
.nav-main a[aria-current], .nav-side a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.nav-side { margin-top: 24px; }
.nav-side h3 { margin: 8px 0; font: 800 13px/1.2 var(--text); text-transform: uppercase; letter-spacing: .08em; color: var(--sub); }
.nav-side a { display: block; padding: 7px 0; font: 800 17px/1.25 var(--text); text-decoration: none; }
.nav-side.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.nav-side.two h3 { grid-column: 1 / -1; }
.nav-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 30px; padding-top: 18px; border-top: 2px solid var(--line); font-size: 15px; }
.nav-foot a { padding: 8px 0; }

/* plush buttons: fur cap on a pseudo layer, so the label stays sharp */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 14px 34px; border-radius: 22px;
  font: 900 20px/1.1 var(--text); text-decoration: none; border: 0; text-align: center;
  --b-c: #e79aa3; --b-lip: #c27380; color: #2a1d33; position: relative; isolation: isolate;
  box-shadow: 0 12px 24px -10px rgba(40,25,50,.55); transition: transform .15s ease, box-shadow .15s ease; }
.btn.alt { --b-c: #e0b44f; --b-lip: #b88a25; }
.btn.ghost { --b-c: #fff8ec; --b-lip: #d9c9b0; }
.btn svg { width: 22px; height: 22px; }
.btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background-color: var(--b-c);
  background-image: url(/assets/site-a/img/fur.webp), radial-gradient(120% 90% at 30% 10%, rgba(255,255,255,.5), rgba(255,255,255,0) 55%);
  background-size: 128px, auto; background-blend-mode: overlay, normal; filter: url(#fuzz);
  box-shadow: inset 0 -7px 0 var(--b-lip), inset 0 2px 0 rgba(255,255,255,.5); }
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 18px 28px -12px rgba(40,25,50,.6); }
.btn:active { transform: translateY(3px); box-shadow: 0 6px 12px -8px rgba(40,25,50,.6); }
.actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; margin-top: 8px; }
.note { color: var(--sub); font-size: 15px; text-align: center; margin: 16px 0 0; }
.note strong, .note b { color: var(--ink); }

/* hero */
.hero { text-align: center; padding: 6px 0 120px; }
.crumb { font-size: 15px; color: var(--sub); margin: 6px 0 18px; }
.crumb a { font-weight: 800; }
.eyebrow { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--tag1); color: var(--tag1t); font: 900 14px/1.2 var(--text);
  text-transform: uppercase; letter-spacing: .08em; box-shadow: inset 0 0 0 2.5px var(--line); }
.hero h1 { font-size: clamp(38px, 7vw, 92px); line-height: .98; margin: 22px auto 22px; max-width: 15ch; }
.hero h1 .accent, h2 .accent { color: var(--accent); }
.hero .lead { max-width: 680px; margin: 0 auto 16px; font-size: clamp(17px, 1.6vw, 21px); }
.stage { position: relative; margin: 56px auto 0; max-width: 1000px; }
.stage .fig { position: absolute; width: clamp(100px, 14vw, 190px); right: -5%; top: -15%; z-index: 2; pointer-events: none; filter: drop-shadow(0 18px 14px rgba(0,0,0,.22)); }

/* framed shots and video */
.frame { --f: #2fa9a8; padding: 14px; border-radius: 34px; background-color: var(--f); border: 3px solid var(--line);
  background-image: url(/assets/site-a/img/fur.webp); background-size: 128px; background-blend-mode: overlay;
  box-shadow: 0 12px 0 var(--line), 0 34px 60px -24px rgba(0,0,0,.45); margin: 0; }
.frame.f2 { --f: #e79aa3; } .frame.f3 { --f: #e0b44f; }
.frame img, .frame video { border-radius: 22px; border: 3px solid var(--line); background: var(--paper); width: 100%; }
.frame figcaption { margin: 12px 6px 0; font-size: 15px; font-weight: 800; color: #1d1626; }
.frame.tall { max-width: 460px; margin-inline: auto; }
.vwrap { position: relative; }
.vbtn { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--paper);
  color: var(--ink); font: 900 15px/1 var(--text); cursor: pointer; }

/* full-width bands */
.band { --c: var(--band1); --t: var(--band1t); --a: var(--band1a); position: relative; padding: clamp(64px, 8vw, 116px) 0; background: var(--c); color: var(--t);
  border-radius: 64px 64px 0 0; margin-top: -64px; }
.band.b2 { --c: var(--band2); --t: var(--band2t); --a: var(--band2a); }
.band.b3 { --c: var(--band3); --t: var(--band3t); --a: var(--band3a); }
.band.b4 { --c: var(--band4); --t: var(--band4t); --a: var(--band4a); }
.band.plainband { --c: var(--bg); --t: var(--ink); --a: var(--accent); }
.band h2 .accent { color: var(--a); }
.band a:not(.btn):not(.game) { color: inherit; font-weight: 800; }
.sec h2 { font-size: clamp(32px, 5.4vw, 64px); line-height: 1; margin-bottom: 28px; }
.sec p { margin: 0 0 16px; max-width: 70ch; }
.sec > .narrow > :last-child { margin-bottom: 0; }
.sec .frame { margin: 34px 0 18px; }
.sec .actions { justify-content: flex-start; margin: 28px 0 0; }

/* decoded example sentences */
.samples { display: grid; gap: 18px; margin: 22px 0; }
.sample { margin: 0; background: var(--paper); color: var(--ink); border: 3px solid var(--line); border-radius: 22px; padding: 18px 20px; box-shadow: 0 6px 0 var(--line); }
.frame .sample { border: 0; box-shadow: none; border-radius: 22px; }
.s-text { font: 900 clamp(20px, 2.4vw, 28px)/1.3 var(--text); margin: 0 0 14px !important; }
.decode { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.tile { display: grid; text-align: center; gap: 6px; padding: 10px 14px; border-radius: 14px; background: var(--tag3); color: var(--tag3t); box-shadow: inset 0 0 0 2px var(--line); }
.tile b { font: 900 21px/1.15 var(--text); }
.tile i { font: 800 14px/1.2 var(--text); font-style: normal; }
.sample figcaption { font-weight: 800; color: var(--sub); }
.s-scene { margin: 0 0 8px !important; font: 800 13px/1.2 var(--text); text-transform: uppercase; letter-spacing: .08em; color: var(--sub); }
:is(.tile b, .s-text):lang(ar) { font-family: "Noto Sans Arabic", "Baloo Bhaijaan 2", var(--text); line-height: 1.6; }
:is(.tile b, .s-text):lang(hi) { font-family: "Baloo 2", var(--text); line-height: 1.5; }
:is(.tile b, .s-text):lang(ja) { font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", var(--text); }
:is(.tile b, .s-text):lang(zh) { font-family: "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", var(--text); }
:is(.tile b, .s-text):lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", var(--text); }
/* stumbling blocks */
.cards { display: grid; gap: 16px; margin: 22px 0 0; }
.cards > div { background: var(--paper); color: var(--ink); border: 3px solid var(--line); border-radius: 22px; padding: 18px 22px; box-shadow: 0 6px 0 var(--line); }
.cards h3 { margin: 0 0 6px; font: 900 21px/1.2 var(--text); }
.cards p { margin: 0; }
.sample figcaption::before { content: "→ "; }
.links a { display: inline-block; }

/* facts, steps, chips */
.facts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.facts li { background: var(--paper); color: var(--ink); border: 3px solid var(--line); border-radius: 18px; padding: 14px 16px; font-size: 16px; box-shadow: 0 5px 0 var(--line); }
ol.steps { margin: 6px 0 22px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--tag1); color: var(--tag1t);
  font: 900 24px/1 var(--display); box-shadow: inset 0 0 0 2.5px var(--line); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 22px; }
.chips li { padding: 8px 15px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 900; box-shadow: inset 0 0 0 2.5px var(--line); }
.game-line { background: var(--paper); color: var(--ink); border: 3px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.links a { font-weight: 900; }
.links a::after { content: " \2192"; }
.sources { font-size: 15px; padding-left: 22px; }

/* game cards with image */
.games { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.games li { background: var(--paper); color: var(--ink); border: 3px solid var(--line); border-radius: 24px; padding: 12px 12px 18px; box-shadow: 0 7px 0 var(--line); display: grid; align-content: start; gap: 8px; position: relative; }
.games img { border-radius: 16px; border: 2.5px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; width: 100%; background: var(--tag1); }
.games h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.games.mini li { padding: 14px 16px 16px; }
.games.mini h3 { margin: 0; }
.games h3 { margin: 6px 6px 0; font: 900 20px/1.15 var(--text); }
.games h3 a { text-decoration: none; }
.games h3 a:hover { color: var(--accent); }
.games p { margin: 0 6px; font-size: 16px; color: var(--sub); }

/* faq */
.faq { display: grid; gap: 14px; margin-top: 10px; }
.faq details { background: var(--paper); color: var(--ink); border: 3px solid var(--line); border-radius: 22px; box-shadow: 0 6px 0 var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 900; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 900 28px/0.8 var(--display); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0; padding: 0 22px 20px; }

/* final call and related pages */
.final { text-align: center; }
.final h2 { font-size: clamp(36px, 7vw, 92px); line-height: .98; margin-bottom: 18px; }
.final .lead { max-width: 620px; margin: 0 auto 26px; }
.final .actions { justify-content: center; }
.final { padding-bottom: 80px; }
.final .fig { width: clamp(110px, 14vw, 180px); margin: 0 auto 12px; filter: drop-shadow(0 18px 14px rgba(0,0,0,.25)); }
.related { margin: 46px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.related h3 { flex-basis: 100%; margin: 0 0 6px; font: 800 14px/1.2 var(--text); text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.related a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 2.5px solid currentColor; text-decoration: none; font-weight: 900; }
.related a:hover { background: var(--a); color: var(--c); border-color: var(--a); }

footer { background: var(--foot); color: var(--foott); padding: 70px 0 70px; font-size: 15px; border-top: 3px solid rgba(255,255,255,.12); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; margin-bottom: 26px; }
footer h3 { margin: 0 0 6px; font: 800 13px/1.2 var(--text); text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
footer a { color: var(--foott); display: block; padding: 7px 0; }
footer .langs { display: flex; flex-wrap: wrap; gap: 0 18px; margin-bottom: 14px; }
footer .langs a { display: inline-block; }
footer .langs a[aria-current] { font-weight: 900; }
footer small { opacity: .8; }
footer small a { display: inline; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.fig { animation: bob 4.5s ease-in-out infinite; }
.final .fig { animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) { .fig, dialog.nav[open], dialog.nav[open]::backdrop { animation: none; } }
.pv { position: fixed; left: 12px; bottom: 12px; z-index: 50; padding: 6px 12px; border-radius: 12px; background: #000; color: #fff; font: 800 11px/1.2 var(--text); }

@media (max-width: 1180px) { .stage .fig { right: 0; } }
@media (max-width: 360px) { .badge-txt span { display: none; } .badge-txt { padding: 8px 10px; } }
@media (max-width: 560px) {
  body { font-size: 17px; }
  .badge img { width: 118px; } .top.stuck .badge img { width: 110px; }
  .badge-txt { padding: 8px 10px; font-size: 13px; min-height: 42px; }
  .lp summary { padding: 8px 12px; }
  .logo .word { display: none; }
  .lp { position: static; }
  .lp-menu { right: var(--gutter); left: var(--gutter); width: auto; top: calc(100% - 4px); }
  .btn { width: 100%; }
  .stage .fig { display: none; }
  .frame { padding: 9px; border-radius: 24px; } .frame img, .frame video { border-radius: 16px; }
  .band { border-radius: 40px 40px 0 0; margin-top: -40px; }
  .hero { padding-bottom: 90px; }
  .btn { padding-inline: 18px; font-size: clamp(16px, 4.8vw, 20px); white-space: nowrap; }
  .eyebrow { max-width: 100%; border-radius: 16px; }
  .top-r { gap: 8px; }

  .pv { left: auto; right: 8px; bottom: 8px; }
}
/* round 3 P2: the play icon keeps its size on long labels; Korean breaks between words, not inside them */
.btn svg { flex: none; }
:is(.tile b, .s-text, .sample figcaption):lang(ko), .s-text:lang(ko) { word-break: keep-all; }
/* scene pages: hero with text (phrases or a decoded line) keeps the figure beside the card, never over it */
.stage.txt { padding-inline: clamp(90px, 13vw, 190px); }
.stage.txt .fig { right: 0; top: -12%; }
@media (max-width: 1000px) { .stage.txt .fig { display: none; } .stage.txt { padding-inline: 0; } }
.phrases { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 18px 22px; text-align: start; }
.phrases ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.phrases li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 2px dashed color-mix(in srgb, var(--line) 30%, transparent); }
.phrases li:last-child { border-bottom: 0; padding-bottom: 0; }
.phrases b { font: 900 22px/1.3 var(--text); }
.phrases span { font-weight: 700; color: var(--sub); }
.phrases b:lang(ar) { font-family: "Noto Sans Arabic", var(--text); }
.phrases b:lang(hi) { font-family: "Baloo 2", var(--text); }
.phrases b:lang(ko) { word-break: keep-all; font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", var(--text); }
.phrases b:lang(ja) { font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", var(--text); }
.phrases b:lang(zh) { font-family: "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", var(--text); }
.samples.chat .s-scene { max-width: none; }
:is(.tile b, .s-text, .phrases b):lang(ja) { line-break: strict; word-break: keep-all; overflow-wrap: anywhere; }
/* a dialogue reads as a conversation: A left, B right in another colour */
.samples.chat .sample { max-width: 85%; }
.samples.chat .sample.b { margin-left: auto; background: var(--tag1); color: var(--tag1t); }
.samples.chat .sample.b figcaption, .samples.chat .sample.b .s-scene { color: inherit; opacity: .85; }
@media (max-width: 560px) { .samples.chat .sample { max-width: 94%; padding: 14px 14px; } .samples.chat .tile { padding: 8px 10px; } }
.s-scene { display: flex; align-items: center; gap: 10px; }
.say { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--paper); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 var(--line); flex: none; }
.say svg { width: 16px; height: 16px; }
.say.on { background: var(--tag3); transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.phrases b[dir="rtl"] { text-align: left; }
/* prompts to copy (guide page about AI) */
.prompts { display: grid; gap: 14px; margin: 8px 0 24px; }
.prompt { margin: 0 !important; max-width: none !important; background: var(--paper); color: var(--ink); border: 3px dashed var(--line); border-radius: 18px; padding: 14px 18px; font-weight: 700; user-select: all; }
.cards + p { margin-top: 22px; }
