/* MBTI-JKK — CHANNEL STYLE v39 (2026-09-25): Kanit + raised cut-out characters + MBTI 101 (based on v38)
   One clean stylesheet rebuilt from the TikTok channel @mbti.jkk: cream post boards,
   ink outlines, rounded speech bubbles, tier-style colour tiles, the four MBTI house
   colours and stroked caption type in three levels (normal = white + ink stroke,
   emphasis = yellow + ink stroke, punch = red + white stroke + ink edge).
   Characters are never stretched, skewed or tilted: every art box is 2:3, matching
   the 1024x1536 V5 pictures and the 720x1080 loops.
   The layered stylesheet this replaces is kept at
   backups/20260925-132152-pre-channel-style/styles.css */

/* Kanit (Cadson Demak, SIL OFL 1.1 — assets/fonts/OFL-Kanit.txt), chosen by ลูกพี่ on 2026-09-25.
   Only Regular 400 and ExtraBold 800 are shipped; every weight in this file is one of the two. */
@font-face { font-display: swap; font-family: "Kanit"; font-style: normal; font-weight: 400; src: url("assets/fonts/Kanit-Regular.woff2") format("woff2"), url("assets/fonts/Kanit-Regular.ttf") format("truetype"); }
@font-face { font-display: swap; font-family: "Kanit"; font-style: normal; font-weight: 800; src: url("assets/fonts/Kanit-ExtraBold.woff2") format("woff2"), url("assets/fonts/Kanit-ExtraBold.ttf") format("truetype"); }

/* ---------- tokens ---------- */
:root {
  --page: #fbf4e6;
  --page-2: #f3e8d2;
  --surface: #fffdf8;
  --surface-2: #fff6e0;
  --bubble: #ffffff;
  --text: #16120e;
  --text-soft: #554c42;
  --line: #16120e;
  --shadow-c: #16120e;
  --ink: #16120e;
  --yellow: #ffd400;
  --yellow-soft: #fff3b0;
  --red: #ff3b30;
  --red-soft: #ffdcd6;
  --orange: #ff8a1f;
  --green: #2fa84f;
  --blue: #2f7fe0;
  --analyst: #7b4ab8;
  --analyst-soft: #efe4fa;
  --diplomat: #3f7d5a;
  --diplomat-soft: #ddf0e3;
  --sentinel: #2f5da8;
  --sentinel-soft: #dfe8f8;
  --explorer: #d69e2e;
  --explorer-soft: #fcf0cc;
  --radius-l: 28px;
  --radius: 20px;
  --radius-s: 14px;
  --bw: 3px;
  --hard: 5px 5px 0 var(--shadow-c);
  --hard-s: 3px 3px 0 var(--shadow-c);
  --font-body: "Kanit", "Leelawadee UI", Tahoma, sans-serif;
  --font-display: "Kanit", "Leelawadee UI", Tahoma, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --stroke-s: 2px 0px 0 #16120e, 1.7px 1px 0 #16120e, 1px 1.7px 0 #16120e, 0px 2px 0 #16120e, -1px 1.7px 0 #16120e, -1.7px 1px 0 #16120e, -2px 0px 0 #16120e, -1.7px -1px 0 #16120e, -1px -1.7px 0 #16120e, 0px -2px 0 #16120e, 1px -1.7px 0 #16120e, 1.7px -1px 0 #16120e, 1px 0px 0 #16120e, 0.7px 0.7px 0 #16120e, 0px 1px 0 #16120e, -0.7px 0.7px 0 #16120e, -1px 0px 0 #16120e, -0.7px -0.7px 0 #16120e, 0px -1px 0 #16120e, 0.7px -0.7px 0 #16120e;
  --stroke-m: 3px 0px 0 #16120e, 2.8px 1.1px 0 #16120e, 2.1px 2.1px 0 #16120e, 1.1px 2.8px 0 #16120e, 0px 3px 0 #16120e, -1.1px 2.8px 0 #16120e, -2.1px 2.1px 0 #16120e, -2.8px 1.1px 0 #16120e, -3px 0px 0 #16120e, -2.8px -1.1px 0 #16120e, -2.1px -2.1px 0 #16120e, -1.1px -2.8px 0 #16120e, 0px -3px 0 #16120e, 1.1px -2.8px 0 #16120e, 2.1px -2.1px 0 #16120e, 2.8px -1.1px 0 #16120e, 1.5px 0px 0 #16120e, 1.1px 1.1px 0 #16120e, 0px 1.5px 0 #16120e, -1.1px 1.1px 0 #16120e, -1.5px 0px 0 #16120e, -1.1px -1.1px 0 #16120e, 0px -1.5px 0 #16120e, 1.1px -1.1px 0 #16120e, 0 3px 0 #16120e;
  --stroke-l: 4.5px 0px 0 #16120e, 4.3px 1.2px 0 #16120e, 3.9px 2.2px 0 #16120e, 3.2px 3.2px 0 #16120e, 2.3px 3.9px 0 #16120e, 1.2px 4.3px 0 #16120e, 0px 4.5px 0 #16120e, -1.2px 4.3px 0 #16120e, -2.2px 3.9px 0 #16120e, -3.2px 3.2px 0 #16120e, -3.9px 2.2px 0 #16120e, -4.3px 1.2px 0 #16120e, -4.5px 0px 0 #16120e, -4.3px -1.2px 0 #16120e, -3.9px -2.2px 0 #16120e, -3.2px -3.2px 0 #16120e, -2.3px -3.9px 0 #16120e, -1.2px -4.3px 0 #16120e, 0px -4.5px 0 #16120e, 1.2px -4.3px 0 #16120e, 2.3px -3.9px 0 #16120e, 3.2px -3.2px 0 #16120e, 3.9px -2.3px 0 #16120e, 4.3px -1.2px 0 #16120e, 2.5px 0px 0 #16120e, 2.2px 1.2px 0 #16120e, 1.3px 2.2px 0 #16120e, 0px 2.5px 0 #16120e, -1.2px 2.2px 0 #16120e, -2.2px 1.2px 0 #16120e, -2.5px 0px 0 #16120e, -2.2px -1.2px 0 #16120e, -1.3px -2.2px 0 #16120e, 0px -2.5px 0 #16120e, 1.3px -2.2px 0 #16120e, 2.2px -1.3px 0 #16120e, 0 5px 0 #16120e;
  --stroke-punch-m: 2.5px 0px 0 #fff, 2.3px 1px 0 #fff, 1.8px 1.8px 0 #fff, 1px 2.3px 0 #fff, 0px 2.5px 0 #fff, -1px 2.3px 0 #fff, -1.8px 1.8px 0 #fff, -2.3px 1px 0 #fff, -2.5px 0px 0 #fff, -2.3px -1px 0 #fff, -1.8px -1.8px 0 #fff, -1px -2.3px 0 #fff, 0px -2.5px 0 #fff, 1px -2.3px 0 #fff, 1.8px -1.8px 0 #fff, 2.3px -1px 0 #fff, 1.2px 0px 0 #fff, 0.8px 0.8px 0 #fff, 0px 1.2px 0 #fff, -0.8px 0.8px 0 #fff, -1.2px 0px 0 #fff, -0.8px -0.8px 0 #fff, 0px -1.2px 0 #fff, 0.8px -0.8px 0 #fff, 5px 0px 0 #16120e, 4.8px 1.3px 0 #16120e, 4.3px 2.5px 0 #16120e, 3.5px 3.5px 0 #16120e, 2.5px 4.3px 0 #16120e, 1.3px 4.8px 0 #16120e, 0px 5px 0 #16120e, -1.3px 4.8px 0 #16120e, -2.5px 4.3px 0 #16120e, -3.5px 3.5px 0 #16120e, -4.3px 2.5px 0 #16120e, -4.8px 1.3px 0 #16120e, -5px 0px 0 #16120e, -4.8px -1.3px 0 #16120e, -4.3px -2.5px 0 #16120e, -3.5px -3.5px 0 #16120e, -2.5px -4.3px 0 #16120e, -1.3px -4.8px 0 #16120e, 0px -5px 0 #16120e, 1.3px -4.8px 0 #16120e, 2.5px -4.3px 0 #16120e, 3.5px -3.5px 0 #16120e, 4.3px -2.5px 0 #16120e, 4.8px -1.3px 0 #16120e, 3.8px 0px 0 #16120e, 3.5px 1.5px 0 #16120e, 2.7px 2.7px 0 #16120e, 1.5px 3.5px 0 #16120e, 0px 3.8px 0 #16120e, -1.5px 3.5px 0 #16120e, -2.7px 2.7px 0 #16120e, -3.5px 1.5px 0 #16120e, -3.8px 0px 0 #16120e, -3.5px -1.5px 0 #16120e, -2.7px -2.7px 0 #16120e, -1.5px -3.5px 0 #16120e, 0px -3.8px 0 #16120e, 1.5px -3.5px 0 #16120e, 2.7px -2.7px 0 #16120e, 3.5px -1.5px 0 #16120e, 0 5px 0 #16120e;
  --stroke-punch-l: 3.5px 0px 0 #fff, 3.3px 1.1px 0 #fff, 2.8px 2.1px 0 #fff, 2.1px 2.8px 0 #fff, 1.1px 3.3px 0 #fff, 0px 3.5px 0 #fff, -1.1px 3.3px 0 #fff, -2.1px 2.8px 0 #fff, -2.8px 2.1px 0 #fff, -3.3px 1.1px 0 #fff, -3.5px 0px 0 #fff, -3.3px -1.1px 0 #fff, -2.8px -2.1px 0 #fff, -2.1px -2.8px 0 #fff, -1.1px -3.3px 0 #fff, 0px -3.5px 0 #fff, 1.1px -3.3px 0 #fff, 2.1px -2.8px 0 #fff, 2.8px -2.1px 0 #fff, 3.3px -1.1px 0 #fff, 1.8px 0px 0 #fff, 1.5px 1.1px 0 #fff, 0.6px 1.7px 0 #fff, -0.6px 1.7px 0 #fff, -1.5px 1.1px 0 #fff, -1.8px 0px 0 #fff, -1.5px -1.1px 0 #fff, -0.6px -1.7px 0 #fff, 0.6px -1.7px 0 #fff, 1.5px -1.1px 0 #fff, 7px 0px 0 #16120e, 6.8px 1.6px 0 #16120e, 6.3px 3px 0 #16120e, 5.5px 4.4px 0 #16120e, 4.4px 5.5px 0 #16120e, 3px 6.3px 0 #16120e, 1.6px 6.8px 0 #16120e, 0px 7px 0 #16120e, -1.6px 6.8px 0 #16120e, -3px 6.3px 0 #16120e, -4.4px 5.5px 0 #16120e, -5.5px 4.4px 0 #16120e, -6.3px 3px 0 #16120e, -6.8px 1.6px 0 #16120e, -7px 0px 0 #16120e, -6.8px -1.6px 0 #16120e, -6.3px -3px 0 #16120e, -5.5px -4.4px 0 #16120e, -4.4px -5.5px 0 #16120e, -3px -6.3px 0 #16120e, -1.6px -6.8px 0 #16120e, 0px -7px 0 #16120e, 1.6px -6.8px 0 #16120e, 3px -6.3px 0 #16120e, 4.4px -5.5px 0 #16120e, 5.5px -4.4px 0 #16120e, 6.3px -3px 0 #16120e, 6.8px -1.6px 0 #16120e, 5.4px 0px 0 #16120e, 5.1px 1.7px 0 #16120e, 4.4px 3.2px 0 #16120e, 3.2px 4.4px 0 #16120e, 1.7px 5.1px 0 #16120e, 0px 5.4px 0 #16120e, -1.7px 5.1px 0 #16120e, -3.2px 4.4px 0 #16120e, -4.4px 3.2px 0 #16120e, -5.1px 1.7px 0 #16120e, -5.4px 0px 0 #16120e, -5.1px -1.7px 0 #16120e, -4.4px -3.2px 0 #16120e, -3.2px -4.4px 0 #16120e, -1.7px -5.1px 0 #16120e, 0px -5.4px 0 #16120e, 1.7px -5.1px 0 #16120e, 3.2px -4.4px 0 #16120e, 4.4px -3.2px 0 #16120e, 5.1px -1.7px 0 #16120e, 0 7px 0 #16120e;
  --stroke-punch-xl: 5px 0px 0 #fff, 4.8px 1.3px 0 #fff, 4.3px 2.5px 0 #fff, 3.5px 3.5px 0 #fff, 2.5px 4.3px 0 #fff, 1.3px 4.8px 0 #fff, 0px 5px 0 #fff, -1.3px 4.8px 0 #fff, -2.5px 4.3px 0 #fff, -3.5px 3.5px 0 #fff, -4.3px 2.5px 0 #fff, -4.8px 1.3px 0 #fff, -5px 0px 0 #fff, -4.8px -1.3px 0 #fff, -4.3px -2.5px 0 #fff, -3.5px -3.5px 0 #fff, -2.5px -4.3px 0 #fff, -1.3px -4.8px 0 #fff, 0px -5px 0 #fff, 1.3px -4.8px 0 #fff, 2.5px -4.3px 0 #fff, 3.5px -3.5px 0 #fff, 4.3px -2.5px 0 #fff, 4.8px -1.3px 0 #fff, 2.6px 0px 0 #fff, 2.3px 1.3px 0 #fff, 1.3px 2.3px 0 #fff, 0px 2.6px 0 #fff, -1.3px 2.3px 0 #fff, -2.3px 1.3px 0 #fff, -2.6px 0px 0 #fff, -2.3px -1.3px 0 #fff, -1.3px -2.3px 0 #fff, 0px -2.6px 0 #fff, 1.3px -2.3px 0 #fff, 2.3px -1.3px 0 #fff, 10px 0px 0 #16120e, 9.8px 1.7px 0 #16120e, 9.4px 3.4px 0 #16120e, 8.7px 5px 0 #16120e, 7.7px 6.4px 0 #16120e, 6.4px 7.7px 0 #16120e, 5px 8.7px 0 #16120e, 3.4px 9.4px 0 #16120e, 1.7px 9.8px 0 #16120e, 0px 10px 0 #16120e, -1.7px 9.8px 0 #16120e, -3.4px 9.4px 0 #16120e, -5px 8.7px 0 #16120e, -6.4px 7.7px 0 #16120e, -7.7px 6.4px 0 #16120e, -8.7px 5px 0 #16120e, -9.4px 3.4px 0 #16120e, -9.8px 1.7px 0 #16120e, -10px 0px 0 #16120e, -9.8px -1.7px 0 #16120e, -9.4px -3.4px 0 #16120e, -8.7px -5px 0 #16120e, -7.7px -6.4px 0 #16120e, -6.4px -7.7px 0 #16120e, -5px -8.7px 0 #16120e, -3.4px -9.4px 0 #16120e, -1.7px -9.8px 0 #16120e, 0px -10px 0 #16120e, 1.7px -9.8px 0 #16120e, 3.4px -9.4px 0 #16120e, 5px -8.7px 0 #16120e, 6.4px -7.7px 0 #16120e, 7.7px -6.4px 0 #16120e, 8.7px -5px 0 #16120e, 9.4px -3.4px 0 #16120e, 9.8px -1.7px 0 #16120e, 7.6px 0px 0 #16120e, 7.4px 1.7px 0 #16120e, 6.8px 3.3px 0 #16120e, 5.9px 4.7px 0 #16120e, 4.7px 5.9px 0 #16120e, 3.3px 6.8px 0 #16120e, 1.7px 7.4px 0 #16120e, 0px 7.6px 0 #16120e, -1.7px 7.4px 0 #16120e, -3.3px 6.8px 0 #16120e, -4.7px 5.9px 0 #16120e, -5.9px 4.7px 0 #16120e, -6.8px 3.3px 0 #16120e, -7.4px 1.7px 0 #16120e, -7.6px 0px 0 #16120e, -7.4px -1.7px 0 #16120e, -6.8px -3.3px 0 #16120e, -5.9px -4.7px 0 #16120e, -4.7px -5.9px 0 #16120e, -3.3px -6.8px 0 #16120e, -1.7px -7.4px 0 #16120e, 0px -7.6px 0 #16120e, 1.7px -7.4px 0 #16120e, 3.3px -6.8px 0 #16120e, 4.7px -5.9px 0 #16120e, 5.9px -4.7px 0 #16120e, 6.8px -3.3px 0 #16120e, 7.4px -1.7px 0 #16120e, 0 9px 0 #16120e;
  color-scheme: light;
}
/* Dark mode = the channel's night covers: navy city, warm lamps, same ink stickers. */
:root[data-theme="dark"] {
  --page: #0e1221;
  --page-2: #161b2f;
  --surface: #1d2339;
  --surface-2: #19203a;
  --bubble: #262e4a;
  --text: #faf3e6;
  --text-soft: #cbc2b3;
  --line: #04050b;
  --shadow-c: #04050b;
  --yellow-soft: #4a3f12;
  --red-soft: #4b201e;
  --analyst-soft: #2d2547;
  --diplomat-soft: #1d3429;
  --sentinel-soft: #1c2a48;
  --explorer-soft: #3b3017;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
  min-width: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(90% 40% at 100% 0%, rgba(255, 170, 70, .08), transparent 60%),
    radial-gradient(70% 40% at 0% 100%, rgba(90, 110, 220, .12), transparent 60%),
    var(--page);
}
button, a, input, select, textarea { font: inherit; font-synthesis: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: normal; line-height: 1.45; }
em { font-style: normal; }
[hidden] { display: none !important; }
:where(a, button, [tabindex]):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- shared pieces ---------- */
.kicker {
  align-items: center;
  background: var(--text);
  border-radius: 999px;
  color: var(--page);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  line-height: 1.45;
  margin: 0 0 14px;
  padding: 5px 14px 5px 10px;
}
.kicker-mark { background: var(--yellow); border: 2px solid var(--page); border-radius: 50%; display: inline-block; flex: none; height: 12px; width: 12px; }

.button {
  align-items: center;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: 999px;
  box-shadow: var(--hard-s);
  color: var(--text);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  line-height: 1.45;
  min-height: 52px;
  padding: 10px 22px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.button:hover { box-shadow: 5px 5px 0 var(--shadow-c); transform: translate(-2px, -2px); }
.button:active { box-shadow: 1px 1px 0 var(--shadow-c); transform: translate(2px, 2px); }
.button--primary { background: var(--red); color: #fff; font-size: 1.08rem; font-weight: 800; text-shadow: var(--stroke-s); }
.button--quiet { background: var(--surface); color: var(--text); }
#startButton { border-width: 3.5px; box-shadow: 6px 6px 0 var(--shadow-c); font-size: 1.34rem; gap: 14px; min-height: 68px; padding: 12px 16px 12px 30px; }
#startButton:hover { box-shadow: 8px 8px 0 var(--shadow-c); }
#startButton:active { box-shadow: 2px 2px 0 var(--shadow-c); }
#startButton .start-arrow { align-items: center; background: var(--yellow); border: 2.5px solid var(--line); border-radius: 50%; color: var(--ink); display: inline-flex; flex: none; font-size: 1.2rem; height: 40px; justify-content: center; text-shadow: none; width: 40px; }
.channel-button { background: var(--yellow); color: var(--ink); }
.button:disabled, .button[disabled] { box-shadow: none; cursor: not-allowed; opacity: .45; transform: none; }

.text-button {
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  min-height: 40px;
  padding: 6px 14px;
  transition: background-color .15s ease;
}
.text-button:hover { background: var(--yellow); color: var(--ink); }
.text-button:disabled { cursor: not-allowed; opacity: .4; }
.text-button:disabled:hover { background: var(--surface); color: var(--text); }

.house-badge {
  background: var(--house-soft, var(--surface));
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  padding: 1px 8px;
  white-space: nowrap;
}
[data-house="analyst"] { --house: var(--analyst); --house-soft: var(--analyst-soft); }
[data-house="diplomat"] { --house: var(--diplomat); --house-soft: var(--diplomat-soft); }
[data-house="sentinel"] { --house: var(--sentinel); --house-soft: var(--sentinel-soft); }
[data-house="explorer"] { --house: var(--explorer); --house-soft: var(--explorer-soft); }

/* ---------- masthead ---------- */
.masthead {
  align-items: center;
  background: var(--page);
  border-bottom: var(--bw) solid var(--line);
  display: flex;
  gap: 16px;
  padding: 10px var(--gutter);
  position: sticky;
  top: 0;
  z-index: 40;
}
:root[data-theme="dark"] .masthead { border-bottom-color: #2c3453; }
.wordmark { align-items: baseline; display: inline-flex; gap: 10px; min-width: 0; }
.wordmark-main { color: var(--text); font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.wordmark-jkk { color: var(--red); margin-left: .28em; }
.wordmark-sub { color: var(--text-soft); font-size: 13px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.masthead-nav { align-items: center; display: flex; gap: 6px; margin-left: auto; }
.masthead-nav a {
  border: 2.5px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  padding: 6px 12px;
}
.masthead-nav a:hover { background: var(--surface); border-color: var(--line); }
.masthead-nav .channel-nav-link { background: var(--yellow); border-color: var(--line); color: var(--ink); font-weight: 800; }
.masthead-nav .channel-nav-link:hover { background: var(--yellow); box-shadow: var(--hard-s); }
.masthead-tools { align-items: center; display: flex; gap: 10px; }
.language-switcher {
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}
.language-switcher button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 32px;
  padding: 5px 10px;
}
.language-switcher button:hover { background: var(--yellow-soft); }
.language-switcher button.is-active { background: var(--yellow); color: var(--ink); }
.availability {
  border: 2px dashed var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  padding: 5px 12px;
  white-space: nowrap;
}
:root[data-theme="dark"] .availability,
:root[data-theme="dark"] .language-switcher,
:root[data-theme="dark"] .icon-button { border-color: #56618a; }
.icon-button {
  align-items: center;
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--hard-s);
  color: var(--text);
  display: inline-flex;
  flex: none;
  font-size: 1.15rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: transform .15s ease, background-color .15s ease;
  width: 42px;
}
.icon-button:hover { background: var(--yellow); color: var(--ink); transform: rotate(-12deg); }
:root[data-theme="dark"] .icon-button { background: #262e4a; color: var(--yellow); }

/* ---------- views ---------- */
section[id], .character-index { scroll-margin-top: 84px; }
.view { margin: 0 auto; max-width: var(--maxw); padding: 0 var(--gutter); }
.landing-view { overflow: hidden; overflow: clip; padding-bottom: 12px; }

/* ---------- hero: a channel post board ---------- */
.hero-shell {
  align-items: center;
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 6px 6px 0 var(--shadow-c);
  display: grid;
  gap: clamp(20px, 4vw, 52px);
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  margin-top: clamp(16px, 3vw, 30px);
  padding: clamp(26px, 4.4vw, 54px);
  position: relative;
}
/* two flat sparkles, the doodles that sit around every JKK post title */
.hero-shell::before,
.hero-shell::after {
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  content: "";
  pointer-events: none;
  position: absolute;
}
.hero-shell::before { background: var(--yellow); height: 38px; right: 24px; top: 20px; width: 38px; }
.hero-shell::after { background: var(--red); bottom: 22px; height: 22px; left: 46%; width: 22px; }
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.hero-topline { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-topline .kicker { margin: 0; }
.hero-code {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  padding: 4px 12px;
}
#heroTitle {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.55;
  margin: 0 0 14px;
  padding-top: .1em;
  text-shadow: var(--stroke-l);
}
.cap--punch { color: var(--red); text-shadow: var(--stroke-punch-l); }
:root[data-language="en"] #heroTitle { font-size: clamp(1.95rem, 8.2vw, 3.9rem); }
.cap--yellow { color: var(--yellow); display: block; font-size: .56em; line-height: 1.55; margin-top: .2em; text-shadow: var(--stroke-m); }
.hero-deck { color: var(--text-soft); font-size: 1.05rem; font-weight: 400; line-height: 1.75; margin: 0 0 22px; max-width: 34em; }
.landing-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.landing-actions .button--primary { min-width: 220px; }
.privacy-line { color: var(--text-soft); font-size: 14px; line-height: 1.6; margin-top: 16px; }
.privacy-line strong { color: var(--text); }
.privacy-check { color: var(--green); font-weight: 800; margin-right: 6px; }
.hero-signals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-signals div {
  align-items: center;
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex: 1 1 120px;
  gap: 10px;
  padding: 8px 12px 8px 8px;
}
.hero-signals b {
  align-items: center;
  background: var(--yellow);
  border: 2.5px solid var(--line);
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  line-height: 1;
  min-width: 46px;
  padding: 0 6px;
  text-shadow: var(--stroke-s);
}
.hero-signals div:nth-child(2) b { background: var(--red); }
.hero-signals div:nth-child(3) b { background: var(--blue); }
.hero-signals span { color: var(--text); font-size: 14px; font-weight: 400; line-height: 1.35; }

/* stage: the cast line-up in front of the four-house ring from the channel avatar */
.hero-stage {
  align-items: end;
  display: grid;
  gap: clamp(8px, 1.3vw, 16px);
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr) minmax(0, .82fr);
  min-width: 0;
  padding: 70px 0 6px;
  position: relative;
}
.stage-ring {
  aspect-ratio: 1;
  background: conic-gradient(from -40deg, var(--analyst) 0 25%, var(--diplomat) 0 50%, var(--sentinel) 0 75%, var(--explorer) 0 100%);
  border-radius: 50%;
  left: 50%;
  -webkit-mask: radial-gradient(closest-side, transparent 80%, #000 81.5%, #000 97%, transparent 98.5%);
  mask: radial-gradient(closest-side, transparent 80%, #000 81.5%, #000 97%, transparent 98.5%);
  opacity: .5;
  pointer-events: none;
  position: absolute;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(96%, 500px);
  z-index: 0;
}
.hero-portrait { grid-column: 2; grid-row: 1; margin: 0; min-width: 0; position: relative; z-index: 2; }
.photo-label {
  background: var(--bubble);
  border: var(--bw) solid var(--line);
  border-radius: 999px;
  bottom: calc(100% + 16px);
  box-shadow: var(--hard-s);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  left: 50%;
  line-height: 1.45;
  padding: 6px 16px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 3;
}
.photo-label::after {
  background: var(--bubble);
  border-bottom: var(--bw) solid var(--line);
  border-right: var(--bw) solid var(--line);
  bottom: -10px;
  content: "";
  height: 16px;
  left: calc(50% - 8px);
  position: absolute;
  transform: rotate(45deg);
  width: 16px;
}
.hero-badge {
  align-items: center;
  background: var(--yellow);
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  box-shadow: var(--hard-s);
  display: flex;
  flex-direction: column;
  height: 86px;
  justify-content: center;
  left: 0;
  position: absolute;
  text-align: center;
  top: 0;
  transform: rotate(-10deg);
  width: 86px;
  z-index: 3;
}
.hero-badge strong { color: #fff; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1.05; text-shadow: var(--stroke-s); }
.hero-badge span { color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.2; }

/* ---------- four axes ---------- */
.type-ticker { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(26px, 4vw, 42px); }
.axis-guide-item {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--hard-s);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}
.axis-guide-item strong {
  align-self: flex-start;
  background: var(--axis-c, var(--red));
  border: 2.5px solid var(--line);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.35;
  padding: 2px 14px;
  text-shadow: var(--stroke-s);
}
.axis-guide-item:nth-child(2) { --axis-c: var(--orange); }
.axis-guide-item:nth-child(3) { --axis-c: var(--green); }
.axis-guide-item:nth-child(4) { --axis-c: var(--blue); }
.axis-guide-item span { color: var(--text); font-size: .98rem; font-weight: 400; line-height: 1.55; }

/* ---------- quick facts as tier tiles ---------- */
.fact-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.fact-intro {
  background: var(--bubble);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  padding: 14px 18px;
  position: relative;
}
.fact-intro span { align-self: flex-start; background: var(--yellow); border: 2px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.4; padding: 1px 10px; }
.fact-intro strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; }
.fact-intro em { color: var(--text-soft); font-size: 13px; }
.fact {
  align-items: center;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  padding: 12px;
}
.fact b {
  align-items: center;
  background: var(--tile, var(--yellow));
  border: 2.5px solid var(--line);
  border-radius: 14px;
  color: #fff;
  display: flex;
  flex: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  line-height: 1;
  min-width: 58px;
  padding: 0 8px;
  text-shadow: var(--stroke-s);
}
.fact:nth-child(3) { --tile: var(--red); }
.fact:nth-child(4) { --tile: var(--green); }
.fact:nth-child(5) { --tile: var(--blue); }
.fact span { color: var(--text); font-size: 14px; font-weight: 400; line-height: 1.4; }
.fact i { display: none; }

/* ---------- why this test (speech bubbles) ---------- */
.field-notes {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
}
.method-visual { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); position: relative; }
.method-sticker {
  background: var(--yellow);
  border: var(--bw) solid var(--line);
  border-radius: 18px;
  box-shadow: var(--hard-s);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  max-width: 220px;
  grid-column: 1 / -1;
  justify-self: end;
  margin-bottom: 6px;
  padding: 8px 14px 10px;
  position: relative;
  text-align: center;
  transform: rotate(3deg);
  z-index: 3;
}
.method-sticker strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.method-ruler { display: none; }
.method-content { min-width: 0; }
#aboutTitle { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.5; margin: 0 0 12px; text-shadow: var(--stroke-m); }
#aboutTitle em { color: var(--yellow); }
.method-lead { color: var(--text-soft); font-size: 1.04rem; line-height: 1.75; margin: 0 0 22px; }
.note-list { display: grid; gap: 14px; }
.note-item { align-items: start; display: grid; gap: 14px; grid-template-columns: 54px minmax(0, 1fr); }
.note-number {
  align-items: center;
  background: var(--red);
  border: var(--bw) solid var(--line);
  border-radius: 14px;
  color: #fff;
  display: flex;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  line-height: 1;
  text-shadow: var(--stroke-s);
  width: 54px;
}
.note-item:nth-child(2) .note-number { background: var(--orange); }
.note-item:nth-child(3) .note-number { background: var(--yellow); }
.note-item > div {
  background: var(--bubble);
  border: var(--bw) solid var(--line);
  border-radius: 18px;
  padding: 10px 16px 12px;
  position: relative;
}
.note-item > div::before {
  background: var(--bubble);
  border-bottom: var(--bw) solid var(--line);
  border-left: var(--bw) solid var(--line);
  content: "";
  height: 14px;
  left: -9px;
  position: absolute;
  top: 18px;
  transform: rotate(45deg);
  width: 14px;
}
.note-item h3 { font-size: 1.08rem; line-height: 1.45; margin: 0 0 2px; }
.note-item p { color: var(--text-soft); font-size: .96rem; line-height: 1.6; margin: 0; }

/* ---------- back-to-the-channel band = a night cover ---------- */
.visual-break {
  align-items: center;
  background:
    radial-gradient(110% 80% at 88% 110%, rgba(255, 168, 64, .55), transparent 58%),
    radial-gradient(60% 55% at 6% -10%, rgba(92, 112, 230, .5), transparent 62%),
    linear-gradient(160deg, #0f1430 0%, #1b1f45 58%, #2b1f3b 100%);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 6px 6px 0 var(--shadow-c);
  color: #faf3e6;
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  margin: 0 0 clamp(56px, 8vw, 100px);
  overflow: hidden;
  padding: clamp(26px, 4.4vw, 54px);
  position: relative;
}
/* city-light specks */
.visual-break::before {
  background-image:
    radial-gradient(circle, rgba(255, 226, 150, .9) 1.2px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, .55) 1px, transparent 1.4px);
  background-position: 0 0, 23px 17px;
  background-size: 46px 38px, 52px 44px;
  content: "";
  height: 46%;
  -webkit-mask: linear-gradient(#000, transparent);
  mask: linear-gradient(#000, transparent);
  inset: 0 0 auto;
  opacity: .5;
  pointer-events: none;
  position: absolute;
}
.visual-break-copy, .visual-break-gallery { min-width: 0; position: relative; z-index: 1; }
.visual-break .kicker { background: var(--yellow); color: var(--ink); }
.visual-break .kicker .kicker-mark { background: var(--red); border-color: var(--ink); }
.visual-break h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.5; margin: 0 0 12px; text-shadow: var(--stroke-m); }
.visual-break h2 em { color: var(--yellow); }
.visual-break-copy p { color: rgba(250, 243, 230, .88); font-size: 1.02rem; line-height: 1.75; margin: 0; }
.visual-break-gallery { align-items: end; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- atlas: "ไทป์ไหนคือเรา?" board with one tier-style row per house ---------- */
.character-index { padding: 0 0 clamp(56px, 8vw, 100px); }
.character-index-head { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 22px; }
.character-index-head > div:first-child { min-width: 0; }
#characterTitle { color: var(--red); font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.55; margin: 0; padding-top: .08em; text-shadow: var(--stroke-punch-l); }
#characterTitle em { color: var(--text); display: block; font-size: max(16px, .34em); font-weight: 800; line-height: 1.5; margin-top: 4px; text-shadow: none; }
.atlas-side-note { background: var(--bubble); border: var(--bw) solid var(--line); border-radius: 18px; flex: 0 1 360px; padding: 12px 16px 14px; }
.atlas-side-note span { background: var(--yellow); border: 2px solid var(--line); border-radius: 999px; color: var(--ink); display: inline-block; font-size: 13px; font-weight: 800; line-height: 1.4; padding: 1px 10px; }
.atlas-side-note p { color: var(--text-soft); font-size: .96rem; line-height: 1.6; margin: 8px 0 0; }
.character-strip { display: grid; gap: 14px; }
.house-row {
  background: var(--house-soft);
  border: var(--bw) solid var(--line);
  border-radius: 22px;
  box-shadow: var(--hard-s);
  display: grid;
  gap: 12px;
  grid-template-columns: 158px minmax(0, 1fr);
  padding: 12px;
}
.house-row__tile {
  align-items: center;
  background: var(--house);
  border: var(--bw) solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
}
.house-row__code { color: #fff; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; text-shadow: var(--stroke-m); }
.house-row__name { color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; line-height: 1.45; text-shadow: var(--stroke-s); }
.house-row__tag { background: rgba(255, 253, 248, .94); border: 2px solid var(--line); border-radius: 12px; color: #16120e; font-size: 12px; font-weight: 800; line-height: 1.4; padding: 2px 8px; }
.house-row__cards { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; }
.character-pair-card {
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: 16px;
  cursor: zoom-in;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.character-pair-card figcaption { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px 10px 10px; }
.character-pair-card figcaption b {
  background: var(--house);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 0 10px;
  text-shadow: var(--stroke-s);
}
.house-row .house-badge { display: none; }
.character-pair-card figcaption span:last-child { color: var(--text-soft); flex-basis: 100%; font-size: 13px; line-height: 1.4; }

/* ---------- how-it-works panel ---------- */
.method-panel {
  background: var(--bubble);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--hard);
  display: grid;
  gap: 20px 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 0 clamp(40px, 6vw, 80px);
  padding: clamp(22px, 4vw, 40px);
}
.method-panel h2 { color: var(--text); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.45; margin: 0; }
.method-copy p { color: var(--text-soft); line-height: 1.75; margin: 0 0 16px; }

/* ---------- question ---------- */
.test-view, .result-view { min-height: calc(100vh - 70px); padding-bottom: 72px; padding-top: 18px; }
.test-header { align-items: center; display: grid; gap: 14px; grid-template-columns: auto auto minmax(0, 1fr); padding: 6px 0 12px; }
.test-progress-copy { align-items: center; display: flex; gap: 8px; white-space: nowrap; }
.test-progress-copy span { background: var(--text); border-radius: 999px; color: var(--page); font-size: 13px; font-weight: 800; line-height: 1.45; padding: 3px 12px; }
.test-progress-copy span:last-child { background: var(--surface); border: 2px solid var(--line); color: var(--text); }
.progress-track { background: var(--surface); border: var(--bw) solid var(--line); border-radius: 999px; height: 18px; overflow: hidden; }
.progress-track span {
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 9px, #ffc400 9px 18px);
  border-right: 3px solid var(--line);
  display: block;
  height: 100%;
  transition: width .35s ease;
  width: 2%;
}
.test-layout { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); margin: 0 auto; max-width: 1120px; padding-top: clamp(16px, 3vw, 36px); }
.question-panel { min-width: 0; }
.question-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; }
.question-meta span:first-child { background: var(--text); border-radius: 999px; color: var(--page); font-size: 13px; font-weight: 800; line-height: 1.45; padding: 3px 12px; }
.question-meta span:last-child { color: var(--text-soft); font-size: 13px; }
.question-number {
  align-items: center;
  background: var(--red);
  border: var(--bw) solid var(--line);
  border-radius: 20px;
  box-shadow: var(--hard-s);
  color: #fff;
  display: flex;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  height: 74px;
  justify-content: center;
  line-height: 1;
  margin: 16px 0 18px;
  text-shadow: var(--stroke-m);
  width: 74px;
}
.question-bubble {
  background: var(--bubble);
  border: var(--bw) solid var(--line);
  border-radius: 24px;
  box-shadow: var(--hard);
  padding: 18px 22px 16px;
  position: relative;
}
.question-bubble::before {
  background: var(--bubble);
  border-left: var(--bw) solid var(--line);
  border-top: var(--bw) solid var(--line);
  content: "";
  height: 18px;
  left: 26px;
  position: absolute;
  top: -11px;
  transform: rotate(45deg);
  width: 18px;
}
.question-panel h2 { color: var(--text); font-size: clamp(1.4rem, 2.5vw, 2.05rem); font-weight: 800; line-height: 1.5; margin: 0; }
.question-context { color: var(--text-soft); font-size: .96rem; line-height: 1.6; margin: 10px 0 0; }
.listen-control {
  align-items: center;
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--hard-s);
  color: var(--text);
  column-gap: 10px;
  display: inline-grid;
  font-size: 15px;
  font-weight: 800;
  grid-template-columns: auto auto auto;
  line-height: 1.4;
  margin-top: 18px;
  max-width: 100%;
  padding: 6px 18px 6px 6px;
  text-align: left;
}
.listen-control:hover, .listen-control.is-speaking { background: var(--yellow-soft); }
.listen-icon {
  align-items: center;
  background: var(--yellow);
  border: 2.5px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  flex: none;
  font-size: 12px;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.listen-control small { color: var(--text-soft); font-size: 12px; font-weight: 400; }
.listen-control.is-speaking .listen-icon { animation: jkk-pulse .9s ease-in-out infinite alternate; }
.answer-heading { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; margin-top: 28px; }
.answer-heading span { font-family: var(--font-display); font-size: 1.22rem; font-weight: 800; line-height: 1.45; }
.answer-heading small { color: var(--text-soft); font-size: 13px; }
.choice-scale { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 12px; }
.choice {
  --dot: var(--surface);
  --dot-size: 20px;
  --sel: var(--text);
  --sel-text: var(--page);
  align-items: center;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: 18px;
  box-shadow: var(--hard-s);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 88px;
  min-width: 0;
  padding: 10px 4px;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.choice:nth-child(1) { --dot: var(--yellow); --dot-size: 28px; --sel: var(--yellow); --sel-text: var(--ink); }
.choice:nth-child(2) { --dot: var(--yellow); --dot-size: 22px; --sel: var(--yellow); --sel-text: var(--ink); }
.choice:nth-child(4) { --dot: var(--red); --dot-size: 22px; --sel: var(--red); --sel-text: var(--ink); }
.choice:nth-child(5) { --dot: var(--red); --dot-size: 28px; --sel: var(--red); --sel-text: var(--ink); }
.choice:hover { box-shadow: 4px 5px 0 var(--shadow-c); transform: translate(-1px, -2px); }
.choice-dot { background: var(--dot); border: 2.5px solid var(--line); border-radius: 50%; display: block; height: var(--dot-size); width: var(--dot-size); }
.choice-copy { font-size: 13px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; text-align: center; }
.choice.selected { background: var(--sel); box-shadow: 1px 1px 0 var(--shadow-c); color: var(--sel-text); transform: translate(2px, 2px); }
.choice.selected .choice-dot { background: #fff; box-shadow: inset 0 0 0 4px var(--sel); }
.answer-extremes { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(96px, .34fr) minmax(0, 1fr); margin-top: 12px; }
.answer-extreme, .answer-middle {
  background: var(--bubble);
  border: 2.5px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px 12px;
}
.answer-extreme strong, .answer-middle strong {
  align-self: flex-start;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  padding: 1px 10px;
}
.answer-extreme span, .answer-middle span { color: var(--text); font-size: .96rem; font-weight: 400; line-height: 1.5; }
.answer-extreme--right { align-items: flex-end; text-align: right; }
.answer-extreme--right strong { align-self: flex-end; background: var(--red); }
.answer-middle { align-items: center; justify-content: center; text-align: center; }
.answer-middle strong { align-self: center; background: var(--surface); color: var(--text); }
.truth-reminder {
  align-items: flex-start;
  background: var(--yellow-soft);
  border: 2px dashed var(--line);
  border-radius: 16px;
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
}
.truth-reminder span { color: var(--red); flex: none; font-size: 14px; line-height: 1.6; }
.truth-reminder p { color: var(--text); font-size: .96rem; font-weight: 400; line-height: 1.6; margin: 0; }
.question-actions { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; }
.question-actions .button--primary { min-width: 180px; }
.question-art { align-self: start; min-width: 0; position: sticky; top: 90px; }
.question-art__label { margin-bottom: 10px; }
.art-tag { background: var(--text); border-radius: 999px; color: var(--page); display: inline-block; font-size: 13px; font-weight: 800; line-height: 1.45; padding: 4px 12px; }
.art-caption { background: var(--bubble); border: 2.5px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 10px 14px; }
.art-caption strong { font-size: .98rem; line-height: 1.45; }
.art-caption span { color: var(--text-soft); font-size: 13px; line-height: 1.45; }

/* ---------- result = the reveal cover ---------- */
.result-header { align-items: center; display: flex; gap: 12px; justify-content: space-between; padding: 6px 0 14px; }
.result-header .kicker { margin: 0; }
.result-hero {
  --hero-soft: var(--surface-2);
  align-items: center;
  background: var(--hero-soft);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 6px 6px 0 var(--shadow-c);
  display: grid;
  gap: clamp(22px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  padding: clamp(24px, 4vw, 52px);
  position: relative;
}
.result-hero[data-house="analyst"] { --hero-soft: var(--analyst-soft); }
.result-hero[data-house="diplomat"] { --hero-soft: var(--diplomat-soft); }
.result-hero[data-house="sentinel"] { --hero-soft: var(--sentinel-soft); }
.result-hero[data-house="explorer"] { --hero-soft: var(--explorer-soft); }
.result-hero::before {
  background: var(--yellow);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  content: "";
  height: 36px;
  pointer-events: none;
  position: absolute;
  right: 20px;
  top: 18px;
  width: 36px;
}
.result-copy { min-width: 0; }
.result-overline { color: #fff; font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.55; margin: 0; text-shadow: var(--stroke-m); }
.result-type {
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 10.5vw, 7.6rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  margin: 2px 0 6px;
  text-shadow: var(--stroke-punch-xl);
}
#resultTypeTitle { color: var(--yellow); font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.55; margin: 0 0 12px; text-shadow: var(--stroke-m); }
.result-copy > p:not(.result-overline) { color: var(--text); font-size: 1.05rem; line-height: 1.75; margin: 0 0 16px; max-width: 34em; }
.result-note {
  background: var(--bubble);
  border: var(--bw) solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 20px;
  max-width: 32em;
  padding: 10px 16px 12px;
  position: relative;
}
.result-note span { color: var(--text-soft); font-size: 13px; font-weight: 800; line-height: 1.45; }
.result-note strong { font-size: 1.06rem; line-height: 1.5; }
.result-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.result-art--pair { align-items: flex-start; display: flex; flex-direction: column; min-width: 0; position: relative; }
.result-art-label {
  background: var(--text);
  border-radius: 999px;
  color: var(--page);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 12px;
  max-width: calc(100% - 58px);
  order: -1;
  overflow-wrap: break-word;
  padding: 4px 12px;
}
.result-character-pair { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.result-initials {
  align-items: center;
  background: var(--yellow);
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  box-shadow: var(--hard-s);
  color: #fff;
  display: flex;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 0;
  text-shadow: var(--stroke-s);
  top: -8px;
  transform: rotate(-8deg);
  width: 48px;
}
.result-details { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 24px; }
.axis-report, .best-fit {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--hard-s);
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
}
.detail-heading .kicker { margin-bottom: 10px; }
.detail-heading h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.45; margin: 0 0 4px; }
.detail-heading > p:last-child { color: var(--text-soft); font-size: .96rem; line-height: 1.6; margin: 0; }
.axis-results { display: grid; gap: 12px; margin-top: 16px; }
.axis-row { background: var(--bubble); border: 2.5px solid var(--line); border-radius: 16px; padding: 12px 14px 16px; }
.axis-row__head { align-items: center; display: flex; gap: 8px; justify-content: space-between; }
.axis-row__title { font-size: 1rem; font-weight: 800; line-height: 1.45; }
.axis-row__score { background: var(--yellow); border: 2px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.4; padding: 1px 10px; white-space: nowrap; }
.axis-row__labels { color: var(--text-soft); display: flex; font-size: 13px; gap: 10px; justify-content: space-between; line-height: 1.45; margin: 6px 0 10px; }
.axis-row__labels span:last-child { text-align: right; }
.axis-bar { background: linear-gradient(90deg, var(--yellow-soft) 50%, var(--red-soft) 50%); border: 2.5px solid var(--line); border-radius: 999px; height: 16px; position: relative; }
.axis-bar::before { background: var(--line); content: ""; height: 100%; left: calc(50% - 1px); position: absolute; top: 0; width: 2px; }
.axis-bar span {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--shadow-c);
  height: 24px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
}
.best-fit-options { display: grid; gap: 10px; margin-top: 16px; }
.best-fit-group { align-items: center; border-bottom: 2px dashed var(--line); display: flex; gap: 10px; justify-content: space-between; padding: 4px 0 12px; }
.best-fit-group__label { font-size: 14px; font-weight: 800; line-height: 1.45; }
.best-fit-group__buttons { display: flex; gap: 6px; }
.best-fit-option {
  align-items: center;
  background: var(--bubble);
  border: 2.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--shadow-c);
  color: var(--text);
  display: flex;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  text-align: left;
}
.best-fit-option strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; }
.best-fit-option span { font-size: 12px; line-height: 1.35; }
.best-fit-option.is-selected { background: var(--yellow); color: var(--ink); }
.best-fit-result { background: var(--page-2); border: var(--bw) solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 0; margin-top: 16px; padding: 12px 16px 14px; }
.best-fit-result span { color: var(--text-soft); font-size: 13px; font-weight: 800; line-height: 1.45; }
.best-fit-result strong { color: var(--red); font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; line-height: 1.3; text-shadow: var(--stroke-punch-m); }
.best-fit-result b { font-size: 1rem; line-height: 1.5; }
.result-disclaimer { align-items: center; display: flex; flex-direction: column; gap: 12px; padding: 34px 0 0; text-align: center; }
.result-disclaimer strong {
  background: var(--bubble);
  border: var(--bw) solid var(--line);
  border-radius: 999px;
  box-shadow: var(--hard-s);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  max-width: 100%;
  padding: 10px 24px;
  position: relative;
}
/* red "shout" strokes on both sides, like the CTA pill at the bottom of every tier post */
.result-disclaimer strong::before,
.result-disclaimer strong::after {
  background:
    linear-gradient(var(--red), var(--red)) 0 0 / 100% 4px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 50% / 100% 4px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 100% / 100% 4px no-repeat;
  content: "";
  height: 26px;
  position: absolute;
  top: calc(50% - 13px);
  width: 18px;
}
.result-disclaimer strong::before { right: calc(100% + 10px); transform: skewY(-18deg); }
.result-disclaimer strong::after { left: calc(100% + 10px); transform: skewY(18deg); }
.result-disclaimer span { color: var(--text-soft); font-size: 13px; line-height: 1.6; max-width: 52em; }

/* ---------- character lightbox ---------- */
.character-lightbox { align-items: center; animation: jkk-fade .2s ease both; display: grid; inset: 0; justify-items: center; padding: 20px; position: fixed; z-index: 100; }
.character-lightbox__backdrop { background: rgba(16, 12, 8, .74); inset: 0; position: absolute; }
.character-lightbox__panel {
  animation: jkk-pop .26s cubic-bezier(.2, .8, .2, 1.2) both;
  background: var(--page);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 6px 6px 0 #04050b;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  position: relative;
  width: min(100%, 760px);
  z-index: 1;
}
.character-lightbox__close {
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  min-height: 40px;
  padding: 6px 14px;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
}
.character-lightbox__close:hover { background: var(--yellow); color: var(--ink); }
.character-lightbox__panel h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.55; margin: 0 96px 4px 0; text-shadow: var(--stroke-m); }
.character-lightbox__intro { color: var(--text-soft); font-size: .98rem; line-height: 1.6; margin: 0 0 16px; }
.character-lightbox__pair { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.lightbox-open { overflow: hidden; }

/* ---------- footer, toast, confetti ---------- */
.site-footer {
  align-items: center;
  background: var(--page-2);
  border-top: var(--bw) solid var(--line);
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 6px 20px;
  justify-content: space-between;
  line-height: 1.5;
  margin-top: 24px;
  padding: 18px var(--gutter);
}
:root[data-theme="dark"] .site-footer { border-top-color: #2c3453; }
.site-footer span:first-child { color: var(--text); font-family: var(--font-display); font-weight: 800; }
.site-footer span:last-of-type { color: var(--red); font-weight: 800; }
.site-footer-tm { flex-basis: 100%; font-size: 11px; line-height: 1.5; opacity: 0.75; }
.consent-reopen { background: none; border: 0; color: var(--text-soft); cursor: pointer; font: inherit; font-size: 12px; padding: 0; text-decoration: underline; }
.consent-bar { align-items: center; background: var(--page-2); border: var(--bw) solid var(--line); border-radius: 16px; bottom: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); color: var(--text); display: flex; flex-wrap: wrap; font-size: 14px; gap: 8px 10px; left: 12px; margin: 0 auto; max-width: 720px; padding: 12px 14px; position: fixed; right: 12px; z-index: 9999; }
.consent-bar[hidden] { display: none; }
.consent-bar span { flex: 1 1 240px; line-height: 1.5; }
.consent-bar button { background: transparent; border: var(--bw) solid var(--line); border-radius: 999px; color: var(--text); cursor: pointer; font: inherit; font-weight: 800; padding: 8px 16px; }
.consent-bar #consentYes { background: var(--red); border-color: var(--red); color: #fff; }
#confettiCanvas { height: 100vh; inset: 0; pointer-events: none; position: fixed; width: 100vw; z-index: 60; }
.toast {
  background: var(--yellow);
  border: var(--bw) solid #16120e;
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 3px 3px 0 #16120e;
  color: #16120e;
  font-size: 15px;
  font-weight: 800;
  left: 50%;
  line-height: 1.45;
  max-width: calc(100% - 32px);
  opacity: 0;
  padding: 10px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 70;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion that fits the channel: caption pop, soft reveal (no character motion outside the flipbook) ---------- */
.hero-line { animation: jkk-cap-pop .55s cubic-bezier(.2, .8, .2, 1.25) both; display: inline-block; }
.hero-line--accent { animation-delay: .16s; }
body.rb-motion-ready .rb-reveal-target { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .72, .2, 1); }
body.rb-motion-ready .rb-reveal-target.rb-reveal-in { opacity: 1; transform: none; }
body.rb-motion-ready .character-index.rb-reveal-in .house-row { animation: jkk-rise .5s cubic-bezier(.2, .72, .2, 1) both; }
body.rb-motion-ready .character-index.rb-reveal-in .house-row:nth-child(2) { animation-delay: .08s; }
body.rb-motion-ready .character-index.rb-reveal-in .house-row:nth-child(3) { animation-delay: .16s; }
body.rb-motion-ready .character-index.rb-reveal-in .house-row:nth-child(4) { animation-delay: .24s; }
@keyframes jkk-cap-pop { 0% { opacity: 0; transform: translateY(10px) scale(.86); } 70% { opacity: 1; transform: translateY(0) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes jkk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes jkk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jkk-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes jkk-pulse { from { transform: scale(.9); } to { transform: scale(1.12); } }

/* ---------- v39 raised cut-out characters ----------
   Every character is a transparent full-body cut-out with a baked white sticker outline
   (assets/mbti-cutout-v1). It stands on a channel-style colour panel and its head rises above
   the panel edge. Art boxes are always 2:3 with object-fit: contain: nothing is stretched. */
.cutout-stage { aspect-ratio: 2 / 3; display: block; position: relative; width: 100%; }
.cutout-stage::before {
  background:
    radial-gradient(rgba(22, 18, 14, .07) 1.2px, transparent 1.7px) 0 0 / 12px 12px,
    var(--panel-bg, var(--house-soft, var(--surface-2)));
  border: var(--bw) solid var(--line);
  border-radius: var(--panel-radius, 20px);
  bottom: 0;
  box-shadow: var(--panel-shadow, var(--hard-s));
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: var(--panel-top, 18%);
  z-index: 0;
}
:root[data-theme="dark"] .cutout-stage::before {
  background:
    radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.7px) 0 0 / 12px 12px,
    var(--panel-bg, var(--house-soft, var(--surface-2)));
}
.cutout-stage::after {
  background: radial-gradient(closest-side, rgba(22, 18, 14, .3), transparent);
  bottom: 1.6%;
  content: "";
  height: 5%;
  left: 22%;
  position: absolute;
  right: 22%;
  z-index: 1;
}
.cutout-stage > img, .flipbook > img { display: block; height: 100%; inset: 0; object-fit: contain; object-position: center bottom; position: absolute; width: 100%; z-index: 2; }
.cutout-img:not([src]) { visibility: hidden; }
.cutout-img.character-changing { opacity: .15; transition: opacity .15s ease; }
.flipbook { inset: 0; pointer-events: none; position: absolute; z-index: 3; }
.flipbook > img { visibility: hidden; }
.flipbook > img.is-on { visibility: visible; }
.cutout-stage[data-flipbook="ready"] > img.cutout-img { visibility: hidden; }
.is-flipbook-raw .flipbook > img { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 4px 3px rgba(22, 18, 14, .3)); }

/* caption pills under cut-outs */
.cast-caption, .orbit-card figcaption, .method-photo figcaption, .visual-break-gallery figcaption, .kb-cast figcaption, .letter-cast figcaption {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: center;
  margin-top: 8px;
  text-align: center;
}
.orbit-card figcaption b, .method-photo figcaption b, .visual-break-gallery figcaption b, .kb-cast figcaption b, .letter-cast figcaption b,
.hero-portrait figcaption strong {
  background: var(--house, var(--red));
  border: 2.5px solid var(--line);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  padding: 0 12px;
  text-shadow: var(--stroke-s);
}
.orbit-card figcaption span:last-child, .method-caption, .visual-break-gallery figcaption span, .kb-cast figcaption span {
  color: var(--text);
  flex-basis: 100%;
  font-size: 13px;
  line-height: 1.45;
}
.visual-break-gallery figcaption span { color: #faf3e6; }

/* hero line-up */
.hero-portrait .cutout-stage { --panel-top: 13%; --panel-radius: 24px; --panel-shadow: var(--hard); }
.hero-portrait figcaption { align-items: center; display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; margin-top: 10px; }
.hero-portrait figcaption strong { font-size: 1.05rem; }
.hero-portrait figcaption span { color: var(--text); font-size: 14px; line-height: 1.45; }
.orbit-card { margin: 0 0 34px; min-width: 0; position: relative; z-index: 1; }
.orbit-card .cutout-stage { --panel-top: 16%; --panel-radius: 16px; }
.orbit-card figcaption .house-badge { background: var(--surface); }
.orbit-card--one { grid-column: 1; grid-row: 1; }
.orbit-card--two { grid-column: 3; grid-row: 1; }

/* why-this-test pair */
.method-photo { margin: 0; min-width: 0; position: relative; }
.method-photo .cutout-stage { --panel-top: 14%; --panel-shadow: var(--hard); }
.method-photo--small { margin-bottom: 30px; }
.method-photo figcaption { font-weight: 800; }
.method-caption { font-size: 14px; font-weight: 800; }

/* night-cover gallery */
.visual-break-gallery figure { margin: 0; min-width: 0; position: relative; }
.visual-break-gallery figure:nth-child(2) { transform: translateY(-20px); }
.visual-break-gallery .cutout-stage { --panel-top: 16%; --panel-radius: 16px; --line: #04050b; --panel-shadow: 4px 4px 0 #04050b; }

/* atlas portraits: small panels, labels below the art */
.character-pair { border-bottom: 2.5px solid var(--line); display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 8px 6px; }
.character-pair__portrait { min-width: 0; position: relative; }
.character-pair__portrait .cutout-stage { --panel-top: 16%; --panel-radius: 12px; --panel-shadow: none; }
.portrait-label { color: var(--text-soft); display: block; font-size: 12px; line-height: 1.5; margin-top: 4px; text-align: center; }

/* question, result, lightbox */
.art-frame { --panel-top: 12%; --panel-radius: 24px; --panel-shadow: var(--hard); }
.result-character-pair figure { margin: 0; min-width: 0; position: relative; }
.result-character-pair .cutout-stage { --panel-bg: var(--surface); --panel-top: 14%; }
.result-character-pair figcaption {
  background: var(--house-color, var(--yellow));
  border: 2.5px solid var(--line);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  margin: 8px auto 0;
  padding: 0 14px;
  text-align: center;
  text-shadow: var(--stroke-s);
  width: fit-content;
}
.character-lightbox__pair figure { margin: 0; min-width: 0; position: relative; }
.character-lightbox__art { --panel-top: 12%; }
.character-lightbox__pair figcaption { background: var(--yellow); border: 2.5px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.5; margin: 8px auto 0; padding: 0 14px; text-align: center; width: fit-content; }

/* ---------- v39 knowledge sections (MBTI 101) ---------- */
.kb-hub, .kb-section { padding: clamp(40px, 6vw, 72px) 0 0; }
.kb-title { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.5; margin: 0 0 12px; text-shadow: var(--stroke-m); }
.kb-title em { color: var(--yellow); }
.kb-lead { color: var(--text-soft); font-size: 1.04rem; line-height: 1.75; margin: 0 0 20px; max-width: 46em; }
.kb-body { color: var(--text); font-size: 1.02rem; line-height: 1.8; margin: 0 0 14px; max-width: 42em; }
.kb-note { color: var(--text-soft); font-size: 14px; line-height: 1.7; margin: 16px 0 0; max-width: 60em; }
.kb-cta { margin-top: 18px; }
.kb-hub {
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 6px 6px 0 var(--shadow-c);
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(22px, 4vw, 40px);
}
.kb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-chips a {
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--shadow-c);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  padding: 5px 14px;
}
.kb-chips a:hover { background: var(--yellow); color: var(--ink); }
.kb-chips a:nth-child(3n + 1) { box-shadow: 2px 2px 0 var(--red); }
.kb-chips a:nth-child(3n + 2) { box-shadow: 2px 2px 0 var(--blue); }
.kb-chips a:nth-child(3n) { box-shadow: 2px 2px 0 var(--green); }
.kb-bubble { background: var(--bubble); border: var(--bw) solid var(--line); border-radius: 20px; box-shadow: var(--hard-s); margin-top: 6px; max-width: 40em; padding: 12px 16px 14px; position: relative; }
.kb-bubble strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; line-height: 1.5; }
.kb-bubble p { color: var(--text); line-height: 1.7; margin: 4px 0 0; }
.kb-what, .kb-use { align-items: end; display: grid; gap: clamp(20px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); }
.kb-cast { margin: 0; min-width: 0; }
.kb-cast .cutout-stage { --panel-top: 14%; --panel-shadow: var(--hard); }
.kb-cast--sm { width: 128px; }
.kb-cast--sm .cutout-stage { --panel-radius: 16px; --panel-shadow: var(--hard-s); }

.letter-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.letter-card {
  align-items: end;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--hard-s);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 118px;
  padding: 14px 14px 12px 16px;
}
.letter-card__head { align-items: center; display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; }
.letter-card h3 { font-size: 1.12rem; line-height: 1.5; margin: 0; }
.letter-card p { color: var(--text); font-size: .98rem; line-height: 1.7; margin: 0 0 10px; }
.letter-tile {
  background: var(--axis-c, var(--red));
  border: 2.5px solid var(--line);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  padding: 2px 12px;
  text-shadow: var(--stroke-s);
}
.letter-card[data-axis="SN"] { --axis-c: var(--orange); }
.letter-card[data-axis="TF"] { --axis-c: var(--green); }
.letter-card[data-axis="JP"] { --axis-c: var(--blue); }
.letter-example { background: var(--yellow-soft); border: 2px dashed var(--line); border-radius: 14px; font-size: .94rem; padding: 8px 12px; }
.letter-example b { display: block; font-size: 13px; font-weight: 800; }
.letter-cast { margin: 0; min-width: 0; }
.letter-cast .cutout-stage { --panel-top: 16%; --panel-radius: 14px; --panel-shadow: none; }
.letter-cast figcaption { margin-top: 6px; }
.letter-cast figcaption b { font-size: .9rem; }

.fn-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fn-group { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--radius); box-shadow: var(--hard-s); display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; }
.fn-group h3 { font-size: 1rem; line-height: 1.5; margin: 0; }
.fn-card { align-items: flex-start; background: var(--bubble); border: 2px solid var(--line); border-radius: 14px; display: grid; gap: 10px; grid-template-columns: auto minmax(0, 1fr); padding: 10px; }
.fn-card b { display: block; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--text-soft); }
.fn-card p { font-size: .98rem; font-weight: 800; line-height: 1.55; margin: 2px 0 0; }
.fn {
  align-items: center;
  background: var(--fn-c, var(--red));
  border: 2.5px solid var(--line);
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.3;
  min-width: 44px;
  padding: 3px 8px;
  text-shadow: var(--stroke-s);
}
.fn--N { --fn-c: var(--red); }
.fn--S { --fn-c: var(--orange); }
.fn--T { --fn-c: var(--blue); }
.fn--F { --fn-c: var(--green); }
.stack-how { color: var(--text-soft); font-size: 14px; line-height: 1.6; margin: -8px 0 16px; }
.stack-how b { color: var(--text); }
.type-stack { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px; }
.type-stack .fn { border-width: 2px; font-size: 13px; min-width: 0; padding: 1px 6px; }
.type-think { color: var(--text); font-size: 13px; line-height: 1.55; margin: 6px 0 0; padding: 0 10px 12px; }

.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-item { background: var(--surface); border: var(--bw) solid var(--line); border-radius: 18px; box-shadow: var(--hard-s); }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; line-height: 1.5; list-style: none; padding: 12px 48px 12px 16px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { align-items: center; background: var(--yellow); border: 2px solid var(--line); border-radius: 50%; color: var(--ink); content: "+"; display: flex; font-size: 18px; height: 28px; justify-content: center; position: absolute; right: 12px; top: calc(50% - 14px); width: 28px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text); line-height: 1.7; margin: 0; padding: 0 16px 14px; }

.kb-myth__head { align-items: flex-end; display: flex; gap: 20px; justify-content: space-between; }
.kb-myth__cast { display: flex; flex: none; gap: 10px; }
.myth-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.myth-card { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--radius); box-shadow: var(--hard-s); display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.myth-card p { line-height: 1.65; margin: 0; }
.myth-card b { border: 2px solid var(--line); border-radius: 999px; display: inline-block; font-size: 13px; font-weight: 800; line-height: 1.45; margin-right: 8px; padding: 0 10px; }
.myth-card__myth span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; line-height: 1.55; }
.myth-card__myth span::before { color: var(--red); content: "✗ "; }
.myth-card__myth b { background: var(--red-soft); color: var(--text); }
.myth-card__fact b { background: var(--green); color: #fff; }
.myth-card__fact span { color: var(--text); }

.use-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.use-card { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--radius); box-shadow: var(--hard-s); padding: 14px 16px; }
.use-card h3 { font-size: 1.08rem; line-height: 1.5; margin: 0 0 8px; }
.use-card ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.use-card li { line-height: 1.65; padding-left: 30px; position: relative; }
.use-card li::before { align-items: center; border: 2px solid var(--line); border-radius: 50%; color: #fff; display: flex; font-size: 12px; font-weight: 800; height: 22px; justify-content: center; left: 0; position: absolute; top: 2px; width: 22px; }
.use-card--do li::before { background: var(--green); content: "✓"; }
.use-card--limit li::before { background: var(--red); content: "!"; }
.kb-quiz { margin-top: 18px; }
.visual-break-copy .kb-cta { margin-top: 18px; }

/* stack panels (lightbox + result) */
.stack-panel:empty { display: none; }
.stack-panel { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--radius); box-shadow: var(--hard-s); margin-top: 16px; padding: 14px 16px; }
.stack-panel__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; line-height: 1.5; margin: 0 0 8px; }
.stack-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.stack-row { align-items: center; background: var(--bubble); border: 2px solid var(--line); border-radius: 14px; display: grid; gap: 10px; grid-template-columns: 70px auto minmax(0, 1fr); padding: 8px 10px; }
.stack-row__pos { color: var(--text-soft); font-size: 13px; font-weight: 800; line-height: 1.4; }
.stack-row__line { font-size: .96rem; line-height: 1.55; }
.stack-think { background: var(--yellow-soft); border: 2px dashed var(--line); border-radius: 14px; line-height: 1.65; margin: 10px 0 0; padding: 8px 12px; }
.stack-think b { display: block; font-size: 13px; font-weight: 800; }
.result-stack { background: var(--surface-2); border: var(--bw) solid var(--line); border-radius: var(--radius-l); box-shadow: var(--hard-s); margin-top: 24px; padding: clamp(18px, 3vw, 28px); }
.result-stack .stack-panel { box-shadow: none; }

/* lightbox level 1 (pair) -> level 2 (one character, outfits) */
.solo-open { background: none; border: 0; border-radius: 22px; color: inherit; cursor: zoom-in; display: block; padding: 0; width: 100%; }
.solo-open .character-lightbox__art { display: block; }
.solo-open:hover .character-lightbox__art::before, .solo-open:focus-visible .character-lightbox__art::before { background-color: var(--yellow-soft); }
.solo-tap-hint { color: var(--text-soft); font-size: 14px; line-height: 1.5; margin: -8px 0 12px; }
.solo-back { margin-bottom: 14px; }
.solo-layout { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.solo-art { min-width: 0; }
.solo-stage { --panel-top: 12%; --panel-radius: 24px; --panel-shadow: var(--hard); }
.solo-copy { min-width: 0; }
.solo-title { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.55; margin: 0 96px 8px 0; text-shadow: var(--stroke-m); }
.solo-desc { color: var(--text); line-height: 1.75; margin: 0 0 10px; }
.solo-note { background: var(--bubble); border: 2.5px solid var(--line); border-radius: 16px; font-weight: 800; line-height: 1.6; margin: 0; padding: 8px 12px; }
.solo-outfit-hint { color: var(--text-soft); font-size: 13px; line-height: 1.5; margin: 14px 0 6px; }
/* v43b จุดสังเกตตัวละคร · ใช้กรอบ/เส้น/ฟองแบบเดียวกับ solo-note */
.solo-marks { background: var(--yellow-soft); border: 2.5px solid var(--line); border-radius: 16px; box-shadow: var(--hard); margin: 12px 0 0; padding: 10px 14px 12px; }
.solo-marks__head { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; line-height: 1.5; margin: 0; }
.solo-marks__tip { color: var(--text-soft); font-size: 13px; line-height: 1.5; margin: 0 0 6px; }
.solo-marks__list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.solo-marks__item { display: grid; gap: 2px 10px; grid-template-columns: max-content minmax(0, 1fr); line-height: 1.6; }
.solo-marks__item strong { background: var(--bubble); border: 2px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 800; height: fit-content; padding: 0 10px; white-space: nowrap; }
.solo-marks__item--first span { font-weight: 800; }
.solo-marks__item--vs strong { background: var(--red-soft); }
@media (max-width: 420px) { .solo-marks__item { grid-template-columns: minmax(0, 1fr); } .solo-marks__item strong { justify-self: start; } }
.outfit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.outfit-chip { background: var(--surface); border: 2.5px solid var(--line); border-radius: 999px; box-shadow: 2px 2px 0 var(--shadow-c); color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.4; min-height: 40px; padding: 6px 14px; }
.outfit-chip:hover { background: var(--yellow-soft); }
.outfit-chip.is-active { background: var(--yellow); color: var(--ink); }
@media (max-width: 700px) {
  .solo-layout { grid-template-columns: minmax(0, 1fr); }
  .solo-art { margin: 0 auto; width: min(72%, 280px); }
  .solo-title { margin-right: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .availability { display: none; }
}
@media (max-width: 980px) {
  .masthead-nav { display: none; }
  .masthead-tools { margin-left: auto; }
  .hero-shell { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { margin: 0 auto; max-width: 620px; width: 100%; }
  .type-ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-intro { grid-column: 1 / -1; }
  .field-notes, .visual-break { grid-template-columns: minmax(0, 1fr); }
  .method-visual { margin: 0 auto; max-width: 520px; width: 100%; }
  .house-row { grid-template-columns: 132px minmax(0, 1fr); }
  .test-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .result-hero { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 760px) {
  .house-row { grid-template-columns: minmax(0, 1fr); }
  .house-row__tile { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-start; padding: 6px 12px; text-align: left; }
  .house-row__code { font-size: 1.45rem; }
  .house-row__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character-index-head { align-items: stretch; flex-direction: column; gap: 14px; }
  .atlas-side-note { flex: none; max-width: none; }
  .test-layout { display: block; }
  .question-art { margin: 28px auto 0; max-width: 300px; position: static; }
  .result-details { grid-template-columns: minmax(0, 1fr); }
  .method-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .masthead { gap: 8px; padding: 8px 12px; }
  .wordmark-main { font-size: 1.28rem; }
  .language-switcher button { padding: 5px 8px; }
  .icon-button { height: 38px; width: 38px; }
  .view { padding: 0 16px; }

  /* hero: headline, then the cast, then the pitch — characters stay above the fold */
  .hero-shell { background: transparent; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-top: 14px; padding: 0; }
  .hero-shell::before { right: 2px; top: 44px; height: 28px; width: 28px; }
  .hero-shell::after { display: none; }
  .hero-copy { display: contents; }
  .hero-topline { order: 1; margin-bottom: 10px; }
  #heroTitle { order: 2; font-size: clamp(1.95rem, 9.8vw, 2.7rem); margin-bottom: 4px; }
  .hero-stage { order: 3; padding-top: 58px; }
  .hero-deck { order: 6; font-size: 1rem; margin: 14px 0 0; }
  .landing-actions { order: 4; margin-top: 18px; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .landing-actions .button--primary { grid-column: 1 / -1; min-width: 0; width: 100%; }
  .landing-actions .button { font-size: .98rem; min-height: 50px; padding: 8px 12px; }
  .privacy-line { order: 5; font-size: 13px; }
  .hero-signals { display: none; }
  .hero-stage { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, .9fr); gap: 8px; }
  .stage-ring { width: 96%; }
  .photo-label { font-size: .98rem; padding: 4px 14px; }
  .hero-portrait figcaption { margin-top: 8px; }
  .hero-portrait figcaption span { display: none; }
  .orbit-card { margin-bottom: 30px; }
  .orbit-card figcaption b { font-size: .92rem; }
  .orbit-card figcaption span:last-child { display: none; }
  .hero-badge { height: 64px; left: -2px; top: 2px; width: 64px; }
  .hero-badge strong { font-size: 1.35rem; }

  .type-ticker { gap: 10px; }
  .axis-guide-item { padding: 12px 12px 14px; }
  .axis-guide-item span { font-size: .92rem; }
  .fact-row { gap: 10px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; }
  .fact b { font-size: 1.3rem; height: 50px; min-width: 50px; }
  .method-sticker { max-width: 240px; }
  #aboutTitle, .visual-break h2 { font-size: clamp(1.6rem, 7.4vw, 2.1rem); }
  .note-item { gap: 12px; grid-template-columns: 46px minmax(0, 1fr); }
  .note-number { font-size: 1.35rem; height: 46px; width: 46px; }
  .visual-break { gap: 22px; padding: 22px 16px 26px; }
  .visual-break-gallery { gap: 8px; }
  .house-row { gap: 10px; padding: 10px; }
  .house-row__cards { gap: 8px; }
  .character-pair-card figcaption { padding: 6px 8px 8px; }
  .character-pair-card figcaption b { font-size: 1rem; }

  .test-header { gap: 10px; grid-template-columns: auto minmax(0, 1fr); }
  .test-progress-copy { justify-content: flex-end; }
  .progress-track { grid-column: 1 / -1; grid-row: 2; }
  .question-number { border-radius: 16px; font-size: 1.8rem; height: 60px; margin: 12px 0 16px; width: 60px; }
  .question-bubble { padding: 14px 16px; }
  .question-panel h2 { font-size: clamp(1.3rem, 5.8vw, 1.65rem); }
  .listen-control { border-radius: 22px; font-size: 14px; grid-template-columns: auto minmax(0, 1fr); row-gap: 0; }
  .listen-control .listen-icon { grid-row: span 2; }
  .choice-scale { gap: 5px; }
  .choice { border-radius: 14px; min-height: 80px; padding: 8px 2px; }
  .choice:nth-child(1), .choice:nth-child(5) { --dot-size: 24px; }
  .choice-copy { font-size: 12px; }
  .answer-extremes { grid-template-columns: minmax(0, 1fr); }
  .answer-extreme--right { align-items: flex-start; text-align: left; }
  .answer-extreme--right strong { align-self: flex-start; }
  .answer-middle { align-items: flex-start; flex-direction: row; gap: 10px; order: 3; text-align: left; }
  .answer-middle strong { align-self: center; }
  .question-actions .button--primary { min-width: 0; flex: 1 1 auto; }

  /* result: TYPE reveal first, then the pair, then the story */
  .result-hero { align-items: stretch; display: flex; flex-direction: column; gap: 0; padding: 22px 16px 24px; }
  .result-hero::before { height: 28px; right: 14px; top: 14px; width: 28px; }
  .result-copy { display: contents; }
  .result-overline { order: 1; }
  .result-type { order: 2; font-size: clamp(3.6rem, 19vw, 5rem); }
  #resultTypeTitle { order: 3; font-size: clamp(1.45rem, 7vw, 1.9rem); margin-bottom: 18px; }
  .result-art--pair { order: 4; margin-bottom: 20px; }
  .result-copy > p:not(.result-overline) { order: 5; font-size: 1rem; }
  .result-note { order: 6; }
  .result-actions { order: 7; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .result-actions .button { min-height: 50px; padding: 8px 12px; }
  .result-actions .button--primary { grid-column: 1 / -1; }
  .best-fit-group { align-items: flex-start; flex-direction: column; gap: 8px; }
  .best-fit-group__buttons { width: 100%; }
  .best-fit-option { flex: 1 1 0; }
  .result-disclaimer strong::before, .result-disclaimer strong::after { display: none; }

  .character-lightbox { padding: 10px; }
  .character-lightbox__panel { padding: 16px 12px 14px; }
  .character-lightbox__close { right: 10px; top: 10px; }
  .character-lightbox__panel h2 { margin-right: 84px; }
  .character-lightbox__pair { gap: 8px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .wordmark-sub { display: none; }
}
@media (max-width: 360px) {
  .masthead { padding: 8px 10px; }
  .orbit-card figcaption .house-badge { display: none; }
  .language-switcher button { font-size: 12px; padding: 5px 6px; }
  .landing-actions { grid-template-columns: minmax(0, 1fr); }
  .result-actions { grid-template-columns: minmax(0, 1fr); }
  .test-progress-copy span { padding: 3px 8px; }
}

@media (max-width: 980px) {
  .fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-what, .kb-use { grid-template-columns: minmax(0, 1fr) 220px; }
}
@media (max-width: 760px) {
  .letter-grid, .myth-grid, .use-grid, .fn-grid { grid-template-columns: minmax(0, 1fr); }
  .kb-what, .kb-use { grid-template-columns: minmax(0, 1fr); }
  .kb-what .kb-cast, .kb-use .kb-cast { justify-self: center; max-width: 230px; width: 70%; }
  .kb-myth__head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  .kb-title { font-size: clamp(1.6rem, 7.4vw, 2.1rem); }
  .letter-card { grid-template-columns: minmax(0, 1fr) 92px; padding: 12px; }
  .kb-cast--sm { width: 104px; }
  .stack-row { gap: 8px; grid-template-columns: 58px auto minmax(0, 1fr); padding: 8px; }
  .kb-hub { padding: 18px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-line { animation: none; opacity: 1; transform: none; }
  body.rb-motion-ready .rb-reveal-target { opacity: 1; transform: none; transition: none; }
  body.rb-motion-ready .character-index.rb-reveal-in .house-row { animation: none; }
}

/* หน้าต่างเลือกช่องทาง (ขนมจีน 27 ก.ย. 2569) */
.channel-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(22, 18, 14, 0.55); }
.channel-modal[hidden] { display: none; }
.channel-modal-open, .channel-modal-open body { overflow: hidden; }
.channel-modal__box { width: min(420px, 100%); background: var(--surface); color: var(--text); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--hard); padding: 22px 18px 16px; }
.channel-modal__title { margin: 0 0 14px; font-size: 1.25rem; font-weight: 800; text-align: center; }
.channel-modal__list { display: grid; gap: 10px; }
.channel-modal__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--hard-s); color: #fff; text-decoration: none; font-size: 1.05rem; transition: transform .12s ease, box-shadow .12s ease; }
.channel-modal__item span { font-size: .92rem; opacity: .92; }
.channel-modal__item:hover, .channel-modal__item:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--hard); outline: none; }
.channel-modal__item--tt { background: #111; }
.channel-modal__item--yt { background: #e62117; }
.channel-modal__item--ig { background: linear-gradient(90deg, #f58529, #dd2a7b 55%, #8134af); }
.channel-modal__item--fb { background: #1877f2; }
.channel-modal__close { width: 100%; margin-top: 14px; }

/* การ์ดคำถามประจำวัน (v43d · 8 ต.ค. 2569) · ใช้ชิ้นเดิมของเว็บ: กรอบแบบ fact-intro + ป้ายเหลือง + ปุ่มช่อง */
.daily-card {
  align-items: center;
  background: var(--bubble);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 16px;
  min-width: 0;
  padding: 14px 18px;
}
.daily-card[hidden] { display: none; }
.daily-card__label { align-self: center; background: var(--yellow); border: 2px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.4; padding: 1px 10px; white-space: nowrap; }
.daily-card__q { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.daily-card__cta { min-height: 44px; padding: 8px 18px; white-space: nowrap; }
@media (max-width: 760px) {
  .daily-card { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .daily-card__q { font-size: 1.04rem; }
}

/* v47: original type profiles, six headings including the identity in the hero. */
.result-identity-heading { font-size: 1rem; line-height: 1.6; margin: 8px 0; }
.result-profile { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--radius-l); box-shadow: var(--hard-s); margin-top: 24px; min-width: 0; padding: clamp(18px, 3vw, 28px); }
.result-profile__section + .result-profile__section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.result-profile__section h2 { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.6; margin: 0 0 8px; }
.result-profile__section p { font-size: 1rem; line-height: 1.85; margin: 0; max-width: 70ch; overflow-wrap: anywhere; }
@media (max-width: 700px) { .result-identity-heading { order: 5; } #resultDescription { order: 6; } .result-copy .result-note { order: 7; } .result-copy .result-actions { order: 8; } }
