/* ==========================================================================
   PimDee "Cute Pastel" layer
   Loaded after style.css. Adds brighter pastel themes, cartoon patterns,
   mascot animation, larger readable Thai type, and styles for the new games.
   ========================================================================== */

/* ---------- Theme tokens ---------- */
:root,
body[data-theme="pastel"] {
  --bg-grad:
    radial-gradient(700px 420px at 8% 4%, rgba(255, 182, 219, 0.75) 0%, transparent 62%),
    radial-gradient(760px 460px at 92% 8%, rgba(167, 216, 255, 0.78) 0%, transparent 62%),
    radial-gradient(800px 520px at 50% 105%, rgba(206, 186, 255, 0.7) 0%, transparent 65%),
    linear-gradient(165deg, #fff0f7 0%, #f1f6ff 50%, #f6f0ff 100%);
  --pattern-ink: rgba(244, 114, 182, 0.16);
  --accent: #ec4899;
  --accent-sky: #38bdf8;
  --accent-lav: #a78bfa;
  --accent-grad: linear-gradient(135deg, #ff8fc7 0%, #c4a1ff 50%, #7cc8ff 100%);
  --ink: #2a1846;
  --heading: #7a1f5c;
  --card-border: #f5c8e4;
  --mascot-line: #f472b6;
  --mascot-inner: #fbcfe8;
  --mascot-ear: #ffffff;
  --stage-sky: linear-gradient(180deg, #cfeaff 0%, #ffe3f1 62%, #efe4ff 100%);
}

body[data-theme="lavender"] {
  --bg: #f7f2ff;
  --bg-grad:
    radial-gradient(700px 420px at 10% 0%, rgba(214, 188, 255, 0.85) 0%, transparent 62%),
    radial-gradient(760px 460px at 90% 10%, rgba(255, 198, 231, 0.75) 0%, transparent 62%),
    radial-gradient(800px 520px at 50% 105%, rgba(186, 230, 253, 0.65) 0%, transparent 65%),
    linear-gradient(165deg, #f8f1ff 0%, #fdf2fb 55%, #f0f7ff 100%);
  --pattern-ink: rgba(167, 139, 250, 0.18);
  --header-bg: rgba(255, 255, 255, 0.88);
  --card: rgba(255, 255, 255, 0.93);
  --card-soft: #f7f2ff;
  --board-bg: #ffffff;
  --card-border: #dccbff;
  --ink: #2b1a4f;
  --heading: #5b21b6;
  --muted: #6b6488;
  --accent: #8b5cf6;
  --accent-sky: #f472b6;
  --accent-lav: #a78bfa;
  /* Unicorn: pink-pastel rainbow */
  --accent-grad: linear-gradient(135deg, #ffa3d7 0%, #c9a7ff 35%, #9ad7ff 65%, #a7f3d0 100%);
  --good: #059669;
  --gold: #d97706;
  --bad: #e11d48;
  --cur-bg: #ede4ff;
  --cur-ink: #6d28d9;
  --cur-line: #8b5cf6;
  --key-bg: #ffffff;
  --key-border: #dccbff;
  --key-ink: #2b1a4f;
  --hand-fill: #f3e8ff;
  --hand-stroke: #a78bfa;
  --shadow-card: 0 10px 26px rgba(139, 92, 246, 0.14);
  --mascot-line: #8b5cf6;
  --mascot-inner: #e9d5ff;
  --mascot-ear: #ffffff;
  --stage-sky: linear-gradient(180deg, #e9ddff 0%, #ffe1f2 60%, #dff1ff 100%);
}

/* Hot "doll" pink: vivid but still readable (dark plum text on white cards) */
body[data-theme="hotpink"] {
  --bg: #fff0f8;
  --bg-grad:
    radial-gradient(700px 420px at 8% 4%, rgba(255, 105, 180, 0.45) 0%, transparent 62%),
    radial-gradient(760px 460px at 92% 8%, rgba(255, 170, 220, 0.6) 0%, transparent 62%),
    radial-gradient(800px 520px at 50% 105%, rgba(255, 200, 235, 0.7) 0%, transparent 65%),
    linear-gradient(165deg, #ffe6f4 0%, #fff0f8 50%, #ffe1f0 100%);
  --pattern-ink: rgba(236, 72, 153, 0.2);
  --header-bg: rgba(255, 255, 255, 0.9);
  --card: rgba(255, 255, 255, 0.94);
  --card-soft: #fff0f7;
  --board-bg: #ffffff;
  --card-border: #ffadd8;
  --ink: #4a0d33;
  --heading: #c2187a;
  --muted: #8a4b6e;
  --accent: #e6007e;
  --accent-sky: #ff5fae;
  --accent-lav: #ff8cc6;
  --accent-grad: linear-gradient(135deg, #ff4fa3 0%, #ff7cc2 50%, #ffb0dc 100%);
  --good: #0f8a5f;
  --gold: #c2410c;
  --bad: #be123c;
  --cur-bg: #ffd6ec;
  --cur-ink: #b0006a;
  --cur-line: #e6007e;
  --key-bg: #ffffff;
  --key-border: #ffadd8;
  --key-ink: #4a0d33;
  --hand-fill: #ffe0f0;
  --hand-stroke: #ff5fae;
  --shadow-card: 0 10px 26px rgba(230, 0, 126, 0.16);
  --mascot-line: #e6007e;
  --mascot-inner: #ffb6dc;
  --mascot-ear: #ffffff;
  --stage-sky: linear-gradient(180deg, #ffd9ee 0%, #ffeaf5 60%, #fff5fb 100%);
}

/* Watermelon: pastel red flesh + mint rind */
body[data-theme="watermelon"] {
  --bg: #fff3f2;
  --bg-grad:
    radial-gradient(700px 420px at 8% 4%, rgba(255, 150, 150, 0.6) 0%, transparent 62%),
    radial-gradient(760px 460px at 92% 8%, rgba(167, 243, 208, 0.7) 0%, transparent 62%),
    radial-gradient(800px 520px at 50% 105%, rgba(255, 190, 185, 0.65) 0%, transparent 65%),
    linear-gradient(165deg, #fff1f0 0%, #f0fdf6 55%, #fff4f2 100%);
  --pattern-ink: rgba(55, 48, 60, 0.13); /* seed dots */
  --header-bg: rgba(255, 255, 255, 0.9);
  --card: rgba(255, 255, 255, 0.94);
  --card-soft: #fff5f4;
  --board-bg: #ffffff;
  --card-border: #ffc2bd;
  --ink: #3d1414;
  --heading: #c2363a;
  --muted: #7a5050;
  --accent: #f0525a;
  --accent-sky: #34d399;
  --accent-lav: #ff8a8a;
  --accent-grad: linear-gradient(135deg, #ff7b7b 0%, #ff9f9f 50%, #6ee7b7 100%);
  --good: #047857;
  --gold: #b45309;
  --bad: #be123c;
  --cur-bg: #ffe0de;
  --cur-ink: #b91c1c;
  --cur-line: #f0525a;
  --key-bg: #ffffff;
  --key-border: #ffc2bd;
  --key-ink: #3d1414;
  --hand-fill: #ffe4e1;
  --hand-stroke: #4ade80;
  --shadow-card: 0 10px 26px rgba(240, 82, 90, 0.14);
  --mascot-line: #f0525a;
  --mascot-inner: #bbf7d0;
  --mascot-ear: #ffffff;
  --stage-sky: linear-gradient(180deg, #ffe1df 0%, #fff4f2 60%, #dcfce7 100%);
}

/* Watermelon rind stripe under the header */
body[data-theme="watermelon"] header {
  border-bottom: 6px solid #6ee7b7;
  box-shadow: 0 3px 0 #22c55e;
}

body[data-theme="boy-sky"] {
  --bg-grad:
    radial-gradient(700px 420px at 8% 4%, rgba(147, 210, 255, 0.8) 0%, transparent 62%),
    radial-gradient(760px 460px at 92% 8%, rgba(167, 243, 208, 0.75) 0%, transparent 62%),
    radial-gradient(800px 520px at 50% 105%, rgba(253, 230, 138, 0.55) 0%, transparent 65%),
    linear-gradient(165deg, #ecf8ff 0%, #effdf6 55%, #fffbea 100%);
  --pattern-ink: rgba(14, 165, 233, 0.16);
  --accent-grad: linear-gradient(135deg, #5ec5ff 0%, #6ee7b7 55%, #fcd34d 100%);
  --heading: #075985;
  --mascot-line: #0ea5e9;
  --mascot-inner: #bae6fd;
  --mascot-ear: #ffffff;
  --stage-sky: linear-gradient(180deg, #c7ecff 0%, #e2fbef 62%, #fff6d1 100%);
}

body[data-theme="mint"] {
  --bg: #effdf6;
  --bg-grad:
    radial-gradient(700px 420px at 8% 4%, rgba(134, 239, 172, 0.7) 0%, transparent 62%),
    radial-gradient(760px 460px at 92% 8%, rgba(165, 243, 252, 0.75) 0%, transparent 62%),
    radial-gradient(800px 520px at 50% 105%, rgba(254, 240, 138, 0.55) 0%, transparent 65%),
    linear-gradient(165deg, #effdf5 0%, #ecfeff 55%, #fefce8 100%);
  --pattern-ink: rgba(16, 185, 129, 0.16);
  --header-bg: rgba(255, 255, 255, 0.9);
  --card: rgba(255, 255, 255, 0.94);
  --card-soft: #f0fdf7;
  --board-bg: #ffffff;
  --card-border: #b7efd3;
  --ink: #12352a;
  --heading: #047857;
  --muted: #4b6b60;
  --accent: #10b981;
  --accent-sky: #06b6d4;
  --accent-lav: #84cc16;
  --accent-grad: linear-gradient(135deg, #5eead4 0%, #86efac 50%, #fde047 100%);
  --good: #047857;
  --gold: #b45309;
  --bad: #e11d48;
  --cur-bg: #d1fae5;
  --cur-ink: #065f46;
  --cur-line: #10b981;
  --key-bg: #ffffff;
  --key-border: #b7efd3;
  --key-ink: #12352a;
  --hand-fill: #dcfce7;
  --hand-stroke: #34d399;
  --shadow-card: 0 10px 26px rgba(16, 185, 129, 0.13);
  --mascot-line: #10b981;
  --mascot-inner: #bbf7d0;
  --mascot-ear: #ffffff;
  --stage-sky: linear-gradient(180deg, #ccfbf1 0%, #ecfccb 62%, #fef9c3 100%);
}

body[data-theme="hero"] {
  --pattern-ink: rgba(249, 115, 22, 0.15);
  --accent-grad: linear-gradient(135deg, #fb923c 0%, #f43f5e 50%, #3b82f6 100%);
  --heading: #9a3412;
  --mascot-line: #f97316;
  --mascot-inner: #fed7aa;
  --mascot-ear: #ffffff;
  --stage-sky: linear-gradient(180deg, #dbeafe 0%, #ffedd5 62%, #fef3c7 100%);
}

body[data-theme="dark"] {
  --pattern-ink: rgba(148, 163, 184, 0.1);
  --accent-grad: linear-gradient(135deg, #f472b6 0%, #818cf8 50%, #38bdf8 100%);
  --heading: #f9a8d4;
  --mascot-line: #f472b6;
  --mascot-inner: #fbcfe8;
  --mascot-ear: #e2e8f0;
  --stage-sky: radial-gradient(circle at 50% 20%, #1c2a52, #070b18);
}

/* ---------- Cartoon pattern layer (stars, dots, hearts) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--pattern-ink) 2.5px, transparent 3px),
    radial-gradient(circle, var(--pattern-ink) 1.5px, transparent 2px);
  background-size: 46px 46px, 23px 23px;
  background-position: 0 0, 11px 11px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35));
}

/* ---------- Typography: clear Thai headings ---------- */
body {
  font-size: 16.5px;
  line-height: 1.6;
}

h2 {
  color: var(--heading, var(--ink));
  font-size: 1.45rem;
  line-height: 1.35;
  margin: 4px 0 0;
}

h3 {
  color: var(--heading, var(--ink));
}

.brand h1 {
  font-size: 1.4rem;
}

.brand h1 em {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--accent-grad);
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25);
  animation: logo-bob 3.2s ease-in-out infinite;
}

@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-3px) rotate(3deg); }
}

/* ---------- Cards & buttons ---------- */
.card {
  border-width: 3px;
  border-radius: 26px;
  position: relative;
}

#panel-lesson.card::after,
#panel-game.card::after {
  content: "";
  position: absolute;
  top: -14px;
  right: 22px;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-grad);
  opacity: 0.9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.mode-btn {
  font-size: 0.98rem;
  padding: 8px 16px;
  border-width: 3px;
}

.mode-btn.active,
.btn-accent {
  background: var(--accent-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.btn-accent {
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-accent:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-lg {
  font-size: 1.15rem !important;
  padding: 12px 30px !important;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 2px 0 10px;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.92rem;
}

.select-sm {
  padding: 4px 8px;
  font-size: 0.88rem;
}

/* ---------- Theme menu (dropdown with labels) ---------- */
.theme-menu {
  position: relative;
}

.theme-menu-btn {
  border: 3px solid var(--card-border);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink);
}

.theme-menu-btn:hover {
  border-color: var(--accent);
}

.theme-menu .theme-picker {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px;
  border-radius: 18px;
  min-width: 190px;
  background: var(--card);
  border: 3px solid var(--card-border);
  box-shadow: 0 16px 34px rgba(80, 40, 120, 0.18);
  z-index: 60;
}

.theme-menu .theme-picker.open {
  display: flex;
}

.theme-menu .theme-pill {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.theme-menu .theme-pill i {
  font-style: normal;
  font-size: 1.25rem;
}

.theme-menu .theme-pill:hover {
  transform: none;
  background: var(--card-soft);
}

.theme-menu .theme-pill.active {
  background: var(--accent-grad);
  color: #fff;
}

/* ---------- Lesson menu ---------- */
.lesson-item {
  border-width: 2px;
  border-radius: 16px;
}

.lesson-item-title {
  font-size: 0.95rem;
}

.lesson-item.active {
  box-shadow: 0 6px 16px rgba(167, 139, 250, 0.22);
}

.lesson-no {
  font-family: "Mali", sans-serif;
}

/* ---------- Mascot ---------- */
.mascot-banner {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 248, 0.85)) !important;
  border: 3px dashed var(--card-border) !important;
  border-radius: 20px !important;
  color: var(--ink) !important;
  padding: 10px 16px !important;
  align-items: center;
}

body[data-theme="dark"] .mascot-banner {
  background: rgba(30, 41, 80, 0.6) !important;
}

.mascot {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  animation: mascot-idle 2.6s ease-in-out infinite;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 6px 8px rgba(120, 60, 140, 0.18));
}

.mascot svg {
  display: block;
}

.mascot.mascot-happy {
  animation: mascot-jump 0.6s ease;
}

.mascot.mascot-oops {
  animation: mascot-wobble 0.45s ease;
}

@keyframes mascot-idle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4px) rotate(-2deg); }
}

@keyframes mascot-jump {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-16px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes mascot-wobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.mascot-talk {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  background: var(--card);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 8px 14px;
  line-height: 1.55;
}

.mascot-talk::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 22px;
  border: 8px solid transparent;
  border-right-color: var(--card-border);
  border-left: 0;
}

.mascot-name {
  font-family: "Mali", sans-serif;
  color: var(--accent);
  font-size: 0.85rem;
}

/* ---------- Lesson progress bar ---------- */
.lesson-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 12px;
}

.lesson-progress-track {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 2px solid var(--card-border);
  overflow: hidden;
}

.lesson-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.35) 0 8px, transparent 8px 16px),
    var(--accent-grad);
  transition: width 0.2s ease;
}

.lesson-progress-label {
  min-width: 44px;
  text-align: right;
  font-weight: 700;
  font-family: "Mali", sans-serif;
  color: var(--accent);
}

/* ---------- Typing board: bigger, calmer, readable ---------- */
.typing-board {
  border-width: 3px;
  border-radius: 22px;
  line-height: 2.4;
  max-height: 230px;
  padding: 22px 26px;
}

.typing-board.font-thai {
  font-size: 1.95rem;
}

.typing-board.font-en {
  font-size: 1.5rem;
}

.ch-ok {
  color: var(--good);
  opacity: 0.85;
}

.ch-cur {
  border-radius: 8px;
  padding: 0 2px;
  box-shadow: 0 0 0 3px var(--cur-bg);
  animation: cur-pulse 1.2s ease-in-out infinite;
}

/* Cluster partially typed (e.g. consonant done, tone mark next) */
.ch-cur.ch-partial {
  background: linear-gradient(180deg, var(--cur-bg) 0%, rgba(52, 211, 153, 0.25) 100%);
}

@keyframes cur-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--cur-bg); }
  50% { box-shadow: 0 0 0 6px var(--cur-bg); }
}

#finger-label {
  font-size: 1.02rem;
}

/* ---------- Right stats ---------- */
.stat-box {
  border-width: 3px !important;
  border-radius: 18px !important;
}

/* ---------- Game stages (shared) ---------- */
.rain-stage,
.balloon-stage,
.mole-stage {
  background: var(--stage-sky) !important;
  border: 3px solid var(--card-border) !important;
  border-radius: 22px !important;
}

.stage-overlay {
  background: rgba(255, 255, 255, 0.82);
}

.stage-overlay h2 {
  font-size: 1.8rem;
}

.stage-overlay h2 span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hud-right label {
  font-size: 0.85rem;
  margin-right: 4px;
}

/* ---------- Balloon Pop ---------- */
.balloon-stage {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.balloon-grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background:
    radial-gradient(circle at 10px 0, transparent 12px, #86efac 13px) 0 0 / 24px 34px repeat-x;
  opacity: 0.9;
}

.balloon {
  position: absolute;
  width: 64px;
  height: 78px;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0 8px, transparent 9px),
    var(--balloon, #f9a8d4);
  box-shadow: inset -6px -8px 0 rgba(0, 0, 0, 0.06), 0 8px 14px rgba(80, 40, 120, 0.15);
  display: grid;
  place-items: center;
  will-change: top, transform;
  z-index: 2;
}

.balloon::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--balloon, #f9a8d4);
  border-bottom: 0;
}

.balloon-string {
  position: absolute;
  top: 82px;
  left: 50%;
  width: 2px;
  height: 46px;
  background: rgba(100, 80, 140, 0.35);
}

.balloon-key {
  font-family: "Sarabun", "JetBrains Mono", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #2a1846;
  line-height: 1;
}

.pop-burst {
  position: absolute;
  font-size: 2rem;
  animation: pop-burst 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 3;
}

@keyframes pop-burst {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2) translateY(-20px); opacity: 0; }
}

/* ---------- Key Mole ---------- */
.mole-stage {
  position: relative;
  min-height: 380px;
  padding: 26px 18px 18px;
}

.mole-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 18px 14px;
}

.mole-hole {
  position: relative;
  height: 110px;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 30% 30%;
}

.mole-dirt {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 0;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #6b4f3a 0%, #8b6b4f 60%, #a3826a 100%);
  box-shadow: inset 0 6px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.mole {
  position: absolute;
  left: 50%;
  bottom: -80px;
  width: 80px;
  height: 96px;
  transform: translateX(-50%);
  transition: bottom 0.18s ease-out;
  z-index: 1;
}

.mole svg {
  width: 80px;
  height: 80px;
  display: block;
}

.mole-key {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 40px;
  padding: 0 8px;
  border-radius: 12px;
  background: #fff;
  border: 3px solid var(--accent);
  font-family: "Sarabun", "JetBrains Mono", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  color: #2a1846;
  line-height: 1.3;
}

.mole-hole.mole-up .mole {
  bottom: 14px;
}

.mole-hole.mole-bonk .mole {
  bottom: -80px;
  transition: bottom 0.25s ease-in;
}

.mole-hole.mole-bonk::after {
  content: "💫";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  animation: pop-burst 0.5s ease-out forwards;
  z-index: 3;
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body {
    font-size: 15.5px;
  }
  .brand small {
    display: none;
  }
  .typing-board.font-thai {
    font-size: 1.55rem;
  }
  .mascot {
    width: 56px;
    height: 56px;
  }
  .mascot svg {
    width: 56px;
    height: 56px;
  }
  .mascot-talk::before {
    display: none;
  }
  .theme-menu-btn span {
    display: none;
  }
  /* Header scrolls away on phones so the typing area keeps the screen */
  header {
    position: relative;
  }
  .theme-menu .theme-picker {
    left: 0;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot,
  .logo-mark,
  .ch-cur {
    animation: none !important;
  }
}
