/* ==========================================================================
   kroo8 — สายของเด็ก: เครื่องเล่านิทาน และชุดระบายสี
   --------------------------------------------------------------------------
   สองหน้านี้ถูกใช้ในสถานการณ์ที่ต่างจากทุกหน้าในเว็บ

   นิทาน  ใช้ตอนไฟหรี่ในห้องนอน จอสว่างจ้าคือศัตรู ทุกอย่างต้องมืดและนิ่ง
          และต้องกดถูกโดยไม่ต้องมอง ปุ่มจึงใหญ่กว่าปกติมาก

   ระบายสี ปลายทางคือกระดาษ ไม่ใช่จอ กฎสำหรับพิมพ์จึงสำคัญกว่ากฎบนหน้าจอ
   ========================================================================== */

/* ==========================================================================
   เครื่องเล่านิทาน
   ========================================================================== */
.tl {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center;
  /* ==========================================================================
     พื้นหลังมืดคงที่ ไม่ตามธีมของเครื่อง
     --------------------------------------------------------------------------
     หน้านี้ถูกเปิดตอนกลางคืนเสมอ ถ้าเครื่องตั้งธีมสว่างไว้แล้วเราตามมัน
     จอจะสว่างจ้ากลางห้องมืด ซึ่งทำให้ทั้งเด็กและพ่อแม่ตาค้าง
     ตรงข้ามกับสิ่งเดียวที่หน้านี้มีหน้าที่ทำ
     ========================================================================== */
  background: #0d1220; color: #e8e6f0;
  padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.tl-load { align-items: center; justify-content: center; }

.tl-top {
  width: 100%; max-width: 760px;
  display: flex; align-items: center; gap: 12px; padding: 4px 0 10px;
}
.tl-name { flex: 1; text-align: center; font-size: 14px; font-weight: 650; opacity: .75; }
.tl-x, .tl-mute {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  color: #e8e6f0; font-size: 16px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; text-decoration: none;
}
.tl-mute.off { opacity: .35; }

.tl-stage {
  flex: 1; width: 100%; max-width: 760px; min-height: 0;
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.tl-art {
  border-radius: 16px; overflow: hidden; background: #141a2c;
  display: grid; place-items: center; min-height: 0;
}
.tl-art img { width: 100%; height: 100%; max-height: 46vh; object-fit: contain; display: block; }
.tl-noart { font-size: 64px; padding: 60px; opacity: .5; }

/* ตัวหนังสือใหญ่พอให้อ่านออกเสียงได้โดยไม่ต้องเอามือถือมาใกล้ตา
   เพราะมืออีกข้างกอดลูกอยู่ และห้องมืด */
.tl-text {
  font-size: clamp(19px, 4.2vw, 26px); line-height: 1.75; text-align: center;
  max-width: 34ch; margin: 0 auto; text-wrap: pretty;
  max-height: 30vh; overflow-y: auto;
}

.tl-bar { display: flex; align-items: center; gap: 22px; padding: 16px 0 8px; }
.tl-play {
  width: 78px; height: 78px; border-radius: 50%; border: 0; cursor: pointer;
  background: #f0c14b; color: #1a1408; font-size: 26px; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(240,193,75,.28);
  transition: transform .15s ease;
}
.tl-play:active { transform: scale(.94); }
.tl-play.on { background: #e8e6f0; color: #0d1220; }
.tl-nav {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: transparent;
  color: #e8e6f0; font-size: 26px; line-height: 1;
}

.tl-dots { display: flex; gap: 7px; padding: 4px 0; }
.tl-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); }
.tl-dots i.done { background: rgba(255,255,255,.4); }
.tl-dots i.on { background: #f0c14b; transform: scale(1.35); }

.tl-num { font-size: 12px; opacity: .45; font-variant-numeric: tabular-nums; }

.tl-end {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(13,18,32,.94); backdrop-filter: blur(6px);
  display: grid; place-content: center; gap: 18px; justify-items: center;
  font-size: 20px;
}
.tl-end[hidden] { display: none; }

.tl-gate { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 30px; }
.tl-gate-emo { font-size: 52px; }
.tl-gate h1 { font-size: 24px; margin: 0; }
.tl-gate p { opacity: .7; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .tl-play, .tl-dots i { transition: none; }
}

/* ==========================================================================
   ชุดระบายสี
   ========================================================================== */
.cl-head { padding: 10px 0 22px; }
.cl-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 10px; }
.cl-tip { font-size: 13px; color: var(--text-3); }

.cl-grid {
  display: grid; gap: 18px 16px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-bottom: 40px;
}
.cl-card {
  display: block; cursor: pointer; position: relative;
  border: 2px solid var(--line); border-radius: 12px; padding: 10px;
  background: var(--surface); transition: border-color .15s ease;
}
.cl-card.on { border-color: var(--accent); }
.cl-card input { position: absolute; top: 14px; left: 14px; width: 20px; height: 20px; cursor: pointer; }
.cl-thumb {
  aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden;
  background: #fff; display: grid; place-items: center;
}
.cl-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cl-x { color: #bbb; font-size: 24px; }
.cl-name { font-size: 13.5px; font-weight: 650; margin-top: 9px; }
.cl-lv { font-size: 11.5px; color: var(--text-3); }
.cl-dl { font-size: 12px; color: var(--accent); text-decoration: none; }
.cl-dl:hover { text-decoration: underline; }

/* ==========================================================================
   กฎสำหรับเครื่องพิมพ์ — จุดที่สินค้าชิ้นนี้เกิดขึ้นจริง
   --------------------------------------------------------------------------
   หนึ่งภาพต่อหนึ่งแผ่น A4 เต็มหน้า ไม่มีเมนู ไม่มีปุ่ม ไม่มี URL ท้ายกระดาษ
   ถ้าปล่อยให้มีอะไรติดไปด้วย พ่อแม่จะต้องมานั่งตัดกระดาษ ซึ่งเท่ากับของเสีย
   ========================================================================== */
.cl-print { display: none; }

/* ==========================================================================
   กฎการพิมพ์ต้องขังไว้ในหน้าตัวเองเท่านั้น
   --------------------------------------------------------------------------
   ครั้งแรกผมเขียน `body > *:not(#main) { display: none }` ซึ่งพังสองต่อพร้อมกัน

   1. พิมพ์ชุดระบายสีแล้วได้กระดาษเปล่า
      เนื้อหาของหน้าอยู่ใน <main id="main" class="app"> และ base.css:242
      สั่ง .app { display: none !important } ตอนพิมพ์อยู่แล้ว
      พ่อแม่ตัวจะซ่อน ลูกจะประกาศ display:block กี่ครั้งก็ไม่โผล่
      เพราะกิ่งทั้งกิ่งถูกตัดออกจาก render tree ไม่ใช่เรื่อง specificity

   2. ทำให้ของเดิมที่เคยใช้ได้พังตามไปด้วย
      การพิมพ์ eBook และใบประกาศไม่ได้พิมพ์จาก #main แต่เทลง #print-root
      ซึ่งเป็นลูกตรงของ body กฎที่ผมเขียนจึงซ่อนมันทิ้ง
      คนที่จ่าย 249 เพราะปุ่มเขียนว่า "สั่งพิมพ์ได้ ไม่มีลายน้ำ" จะได้กระดาษเปล่า
      นี่คือการทำของที่ขายได้อยู่แล้วให้พัง เพื่อของที่ยังขายไม่ได้

   ทางที่ถูกคือติดธงที่ body เฉพาะตอนเปิดหน้านี้ แล้วผูกทุกกฎไว้ใต้ธงนั้น
   หน้าอื่นทั้งเว็บจึงไม่รู้จักกฎพวกนี้เลย
   ========================================================================== */
@media print {
  /* ไม่ประกาศ @page ที่นี่ — @page ผูกกับ selector ไม่ได้ มันมีผลกับการพิมพ์ทุกหน้า
     ซึ่งจะไปทับค่าที่ ebook.css ตั้งไว้สำหรับพิมพ์หนังสือ (ebook.css:160)
     ขนาดกระดาษของชุดระบายสีคุมด้วยความสูง 268mm ของ .cl-page แทน */

  /* ปลดล็อกเปลือกแอปที่ base.css ซ่อนไว้ — เฉพาะตอนอยู่หน้าระบายสี */
  body.printing-color .app { display: block !important; }

  body.printing-color .noprint,
  body.printing-color .cl-grid,
  body.printing-color .cl-head,
  body.printing-color .topbar,
  body.printing-color .sitefoot,
  body.printing-color .tabbar,
  body.printing-color .toasts,
  body.printing-color .modal-root,
  body.printing-color .sheet-root,
  body.printing-color .tip-root,
  body.printing-color #print-root { display: none !important; }

  body.printing-color .cl-print { display: block !important; }
  body.printing-color .cl-page {
    break-inside: avoid; page-break-after: always;
    height: 268mm; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6mm;
  }
  body.printing-color .cl-page:last-child { page-break-after: auto; }
  /* แผ่นที่ไม่ได้เลือกต้องไม่กินหน้ากระดาษเปล่า ๆ */
  body.printing-color .cl-page.skip { display: none !important; }
  body.printing-color .cl-page img { max-width: 100%; max-height: 240mm; object-fit: contain; }
  body.printing-color .cl-page-name { font-size: 14pt; color: #444; }

  /* บังคับขาวดำล้วน ไม่ให้พื้นหลังธีมมืดกินหมึกทั้งตลับ
     ผูกใต้ธงเช่นกัน ไม่งั้น eBook ที่ตั้งใจให้มีสีจะกลายเป็นขาวดำไปด้วย */
  body.printing-color * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
}

/* ==========================================================================
   ป้ายชนิดของสองสินค้าใหม่
   --------------------------------------------------------------------------
   สีต้องต่างจากป้ายเดิมให้ชัดในแวบเดียว เพราะร้านเดียวกันจะมีของห้าชนิดปนกัน
   นิทาน = คราม สื่อถึงกลางคืน · ระบายสี = ส้มอบอุ่น สื่อถึงสีเทียน
   ========================================================================== */
.kbadge.tale  { background: color-mix(in srgb, #4F46E5 18%, transparent); color: #4338CA; }
.kbadge.color { background: color-mix(in srgb, #EA7317 20%, transparent); color: #C2570B; }
@media (prefers-color-scheme: dark) {
  .kbadge.tale  { color: #A5B4FC; }
  .kbadge.color { color: #FDBA74; }
}
:root[data-theme="dark"] .kbadge.tale  { color: #A5B4FC; }
:root[data-theme="dark"] .kbadge.color { color: #FDBA74; }
:root[data-theme="light"] .kbadge.tale  { color: #4338CA; }
:root[data-theme="light"] .kbadge.color { color: #C2570B; }

/* ตัวอย่างของนิทาน — ภาพกับข้อความคู่กัน เหมือนตอนเปิดอ่านจริง */
.peek-tale { margin-bottom: 20px; }
.peek-tale img {
  width: 100%; border-radius: 10px; display: block; margin-bottom: 10px;
  background: var(--surface-2);
}
.peek-tale p { font-size: 16px; line-height: 1.8; margin: 0; text-align: center; }

/* ตัวอย่างลายเส้น — พื้นขาวเสมอ เพราะของจริงพิมพ์ลงกระดาษขาว
   ถ้าโชว์บนพื้นมืดตามธีม คนจะตัดสินความหนาของเส้นผิด */
.peek-sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0 16px; }
.peek-sheets figure { margin: 0; }
.peek-sheets img {
  width: 100%; aspect-ratio: 3/4; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; display: block;
}
.peek-sheets figcaption { font-size: 12.5px; color: var(--text-3); margin-top: 6px; text-align: center; }

/* ==========================================================================
   ภาพสีตัวอย่าง วางซ้อนมุมล่างขวาของลายเส้น
   --------------------------------------------------------------------------
   เด็กเล็กที่ยังไม่รู้ว่า "กบสีอะไร" จะนั่งค้างหน้ากระดาษเปล่า
   ภาพสีเล็ก ๆ ข้าง ๆ เปลี่ยนใบงานจาก "คิดเองทั้งหมด" เป็น "ทำตามได้"
   วางซ้อนแทนที่จะวางแยก เพราะแยกแล้วตากับมือต้องเดินทางไกลขึ้น
   ========================================================================== */
.cl-thumb { position: relative; }
.cl-ref {
  position: absolute; right: 5px; bottom: 5px;
  width: 38%; height: auto; border-radius: 6px;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.22);
  background: #fff;
}

/* ==========================================================================
   ทางเข้าคลังของตัวเอง — สองคำถามที่ลูกค้าถามบ่อยที่สุดในร้านออนไลน์
   --------------------------------------------------------------------------
   "ของที่ฉันซื้อไปอยู่ไหน" กับ "ฉันเหลือเงินเท่าไร"
   ตอบไม่ได้ในหนึ่งวินาที = ไม่ซื้อรอบสอง
   ========================================================================== */
.stlib {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 650; color: var(--text);
  text-decoration: none; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.stlib:hover { border-color: var(--text-3); background: var(--surface-2); }

/* ตัวเลขเครดิตต้องมีคำว่า "เครดิต" กำกับ ไม่งั้นไม่มีใครเดาได้ว่าเลขนั้นคืออะไร */
.stme .stname { font-size: 11.5px; color: var(--text-3); }

@media (max-width: 640px) {
  /* จอเล็กเหลือแค่ไอคอน แต่ยังกดไปคลังได้ — ตัดคำออกดีกว่าตัดปุ่มทิ้ง */
  .stlib { padding: 8px 11px; font-size: 0; gap: 0; }
  .stlib::first-letter { font-size: 17px; }
}

/* ==========================================================================
   กล่องยืนยันก่อนหักเครดิต
   --------------------------------------------------------------------------
   เงินของลูกค้าต้องไม่ถูกใช้โดยที่เขายังไม่ได้เห็นตัวเลข
   สามบรรทัดที่ต้องอ่านออกในวินาทีเดียว: หักเท่าไร มีเท่าไร เหลือเท่าไร
   ========================================================================== */
.cfm-item { font-size: 16px; font-weight: 750; margin-bottom: 14px; line-height: 1.45; }
.cfm-rows { display: grid; gap: 2px; margin-bottom: 14px; }
.cfm-rows > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.cfm-rows > div span { color: var(--text-2); }
.cfm-rows > div b { font-variant-numeric: tabular-nums; font-weight: 750; }
.cfm-sum { border-bottom: 0 !important; padding-top: 12px !important; }
.cfm-sum span { font-weight: 650; color: var(--text) !important; }
.cfm-sum b { font-size: 19px; }
.cfm-sum b.bad { color: var(--st-bad, #d33); }

.cfm-note {
  background: var(--surface-2); border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.7; color: var(--text-2);
}
.cfm-note b { color: var(--text); }
.cfm-short { margin-top: 12px; font-size: 13.5px; font-weight: 650; color: var(--st-warn); }

/* ปุ่มเลือกภาษาในหน้าฟังนิทาน — เล็กและอยู่บนแถบบน ไม่แย่งที่ปุ่มเล่น */
.tl-langs { display: flex; gap: 4px; flex: none; }
.tl-lang {
  min-width: 40px; height: 32px; padding: 0 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.16); background: transparent;
  color: rgba(232,230,240,.6); font-size: 12.5px; font-weight: 650; cursor: pointer;
}
.tl-lang.on { background: rgba(240,193,75,.18); border-color: rgba(240,193,75,.5); color: #f0c14b; }

/* ==========================================================================
   ข้อความบอกสถานะระหว่างเล่านิทาน
   --------------------------------------------------------------------------
   ต้องอยู่ไฟล์นี้ ไม่ใช่ pages.css เพราะกฎ .tl-* ทั้งหมดอยู่ที่นี่
   และไฟล์นี้โหลดทีหลัง ถ้าแยกกันอยู่คนละไฟล์ วันหนึ่งจะมีกฎที่นี่ทับของที่โน่นเงียบ ๆ

   .soft คือปุ่มภาษาที่ยังไม่ได้อัดเสียง — จางแต่ยังเห็น
   เพราะการซ่อนปุ่มทิ้งทำให้ผู้ใช้คิดว่าระบบไม่มีความสามารถนี้เลย
   ========================================================================== */
.tl-note {
  flex: none; margin: 0 auto; max-width: 520px; padding: 9px 16px;
  border-radius: var(--r-pill); background: rgba(255,255,255,.09);
  color: rgba(232,230,240,.8); font-size: 13px; text-align: center;
}
.tl-lang.soft { opacity: .42; }
.tl-lang.soft:hover { opacity: .62; }

/* ==========================================================================
   นิทานเลือกทาง — ปุ่มตัดสินใจ
   --------------------------------------------------------------------------
   ปุ่มพวกนี้ถูกกดโดยเด็กสี่ขวบในห้องมืด ด้วยนิ้วที่ยังไม่แม่น
   จึงต้องใหญ่กว่าปุ่มปกติมาก และต้องห่างกันพอที่จะไม่กดพลาดเป็นอีกอัน
   กดพลาดในเกมทั่วไปแค่รำคาญ แต่ที่นี่มันเปลี่ยนเรื่องที่เขากำลังฟังอยู่

   โผล่ขึ้นมาแบบค่อย ๆ ไม่ใช่เด้ง เพราะทั้งหน้านี้พยายามทำให้เด็กง่วง
   อะไรที่เด้งเร็วจะปลุกให้ตื่น ซึ่งตรงข้ามกับเป้าหมายของทั้งชิ้น
   ========================================================================== */
.qs-choices { display: none; flex-direction: column; gap: 12px; max-width: 520px; margin: 4px auto 0; width: 100%; }
.qs-choices.on { display: flex; }

.qs-choice {
  display: flex; align-items: center; gap: 14px;
  padding: 17px 20px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07);
  color: #e8e6f0; font: inherit; font-size: 17px; font-weight: 600; line-height: 1.35;
  animation: qs-rise .42s cubic-bezier(.2,.7,.3,1) both;
  animation-delay: calc(var(--qc-i) * .13s);
}
.qs-choice:hover  { background: rgba(255,255,255,.13); border-color: rgba(240,193,75,.55); }
.qs-choice:active { transform: scale(.985); }
.qs-choice-n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
  background: rgba(240,193,75,.2); color: #f0c14b;
}
@keyframes qs-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .qs-choice { animation: none; }
}

.qs-bar { justify-content: center; gap: 26px; }
.qs-step, .qs-found {
  min-width: 46px; font-size: 13px; color: rgba(232,230,240,.5);
  font-variant-numeric: tabular-nums;
}
.qs-found { text-align: right; }
.qs-step  { text-align: left; }

/* ---- ตอนจบ ---- */
.qs-end {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: min(520px, calc(100% - 32px)); padding: 20px 22px; border-radius: 18px;
  background: rgba(18,22,38,.96); border: 1px solid rgba(255,255,255,.12);
  text-align: center; animation: qs-rise .5s cubic-bezier(.2,.7,.3,1) both;
}
.qs-endname { font-size: 20px; font-weight: 800; color: #f0c14b; letter-spacing: -.02em; }
.qs-endcount { margin-top: 6px; font-size: 13.5px; color: rgba(232,230,240,.62); }
.qs-endrow { margin-top: 15px; }

.qs-noart { display: grid; place-items: center; height: 100%; font-size: 64px; }

@media (max-width: 560px) {
  .qs-choice { padding: 15px 16px; font-size: 15.5px; gap: 11px; }
  .qs-endname { font-size: 17px; }
}

/* ==========================================================================
   ใบงาน — ข้อมูลรอบลายเส้น
   --------------------------------------------------------------------------
   ลายเส้นหาได้ฟรีทั้งอินเทอร์เน็ต สิ่งที่คนจ่ายเงินซื้อคือของที่อยู่รอบมัน
   บอกว่าฝึกอะไร พูดกับลูกยังไง และดูยังไงว่าทำได้แล้ว
   จึงต้องเห็นได้ตั้งแต่กวาดตาผ่าน ไม่ใช่ซ่อนไว้ให้กดหา
   ========================================================================== */
.cl-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 5px; }
.cl-lv, .cl-kind {
  padding: 2px 9px; border-radius: var(--r-pill); font-size: 11.5px;
  border: 1px solid var(--line); color: var(--text-3); white-space: nowrap;
}
.cl-kind { border-color: transparent; background: color-mix(in srgb, #7ec9a6 22%, transparent); color: var(--text-2); }

.cl-skill {
  margin-top: 7px; font-size: 12.5px; color: var(--text-2); line-height: 1.45;
}
.cl-how {
  margin-top: 6px; padding: 7px 10px; border-radius: 9px;
  background: color-mix(in srgb, #f0abbe 16%, transparent);
  font-size: 12.5px; line-height: 1.5;
}
.cl-done {
  margin-top: 5px; font-size: 12px; color: var(--text-3); line-height: 1.45;
}
.cl-ans { margin-top: 6px; font-size: 12px; }
.cl-ans summary { cursor: pointer; color: var(--text-3); }
.cl-ans > div { margin-top: 5px; color: var(--text-2); line-height: 1.5; }

/* คำสั่งบนกระดาษที่พิมพ์ออกมา — ต้องอ่านออกตอนไม่มีจอ */
.cl-page-how {
  margin-top: 4mm; text-align: center; font-size: 12pt; line-height: 1.5;
  color: #333;
}

/* ข้อความถึงพ่อแม่ — อยู่บนสุดก่อนเห็นแผ่น เพราะต้องรู้ก่อนว่าใช้ยังไง */
.cl-parent {
  margin-top: 16px; padding: 15px 18px; border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, color-mix(in srgb, #8ad0d6 20%, transparent) 0%, transparent 62%);
}
.cl-parent b { font-size: 14px; }
.cl-parent p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--text-2); }

/* ==========================================================================
   ปุ่มเลือกโทนเสียง
   --------------------------------------------------------------------------
   อยู่ใต้แถบบน แยกแถวจากปุ่มภาษา เพราะเป็นคนละเรื่องกัน
   ภาษา = อ่านภาษาอะไร · โทน = อ่านด้วยเสียงแบบไหน
   ถ้ารวมแถวเดียวกันคนจะสับสนว่าปุ่มไหนทำอะไร
   ========================================================================== */
.tl-kits {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  padding: 0 12px 6px; width: 100%; order: 10;
}
.tl-kit {
  padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.14); background: transparent;
  color: rgba(232,230,240,.55); font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.tl-kit:hover { color: rgba(232,230,240,.85); }
.tl-kit.on { background: rgba(240,193,75,.16); border-color: rgba(240,193,75,.45); color: #f0c14b; }
/* จางแปลว่ายังไม่ได้อัดโทนนี้ กดได้แต่ต้องรอสักครู่ */
.tl-kit.soft { opacity: .45; }
.tl-kit.soft:hover { opacity: .7; }

@media (max-width: 560px) {
  .tl-kit { padding: 4px 10px; font-size: 11px; }
}
