/* Road Theory Club: tokens + components.
   Source of truth: spec/game-look.md (wins) + spec/design.md + spec/chrome.html. */

:root {
  /* base (design.md) */
  --bg: #EEF0EA;
  --surface: #FBFCF8;
  --text: #1B2420;
  --muted: #5A6660;
  --line: #C9CEC4;
  --primary: #0F5C45;
  --primary-press: #0B4634;
  --primary-hover: #146B51;
  --primary-tint: #E3EEE8;
  --secondary: #F2C230;
  --secondary-hover: #F5CD52;
  --success: #163E73;
  --success-tint: #DCE6F2;
  --error: #A33F06;
  --error-tint: #F8E2D2;
  /* game additions (game-look.md) */
  --sky: #1B6FC2;
  --sky-tint: #DDEBF8;
  --signal: #D63A12;
  --asphalt: #2F3A35;
  --primary-edge: #083325;
  --secondary-edge: #B98A0F;
  --sky-edge: #0F4A86;
  --signal-edge: #8F2407;
  --surface-edge: #B4BBAF;
  --switch-off-edge: #3F4944;
  --desk: #E2E6DE;
  --scrim: rgba(27, 36, 32, .72);
  --scrim-soft: rgba(27, 36, 32, .48);
  --float-shadow: 0 8px 24px rgba(27, 36, 32, .18);

  --font-display: "Overpass", "Prompt", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "IBM Plex Sans Thai Looped", system-ui, sans-serif;

  --gutter: 20px;
  --col: 480px;
  --nav-h: 64px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--desk);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-press); }
button { -webkit-tap-highlight-color: transparent; font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
p, li { hyphens: auto; overflow-wrap: break-word; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- app column ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: var(--col);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 520px) {
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

.screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.screen:focus { outline: none; }
.no-chrome .screen { padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------- header ---------- */
.hdr {
  flex: none;
  padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.hdr-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.hdr-spacer { flex: 1; }

.level-badge {
  width: 44px; height: 34px; flex: none;
  border-radius: 8px;
  background: var(--primary); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px var(--primary), inset 0 0 0 5px #FFFFFF;
  font: 800 17px/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.level-badge.is-big {
  width: 96px; height: 72px; border-radius: 14px;
  font-size: 40px;
  box-shadow: inset 0 0 0 5px var(--primary), inset 0 0 0 8px #FFFFFF;
}

.fuel {
  height: 44px; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--surface-edge);
  color: var(--text);
}
.fuel-icon { color: var(--text); }
.fuel.is-risk .fuel-icon { color: var(--signal); }
.fuel-num { font: 800 17px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tank { display: inline-flex; gap: 2px; }
.tank i {
  display: block; width: 6px; height: 14px; border-radius: 2px;
  background: var(--line);
}
.tank i.on { background: var(--secondary); border: 1px solid var(--secondary-edge); }

.lang-pill {
  height: 44px;
  display: inline-flex; padding: 0; gap: 2px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--surface-edge);
  flex: none;
}
/* Each button fills the pill (40px) and its tap area reaches the full 44px. */
.lang-pill button {
  position: relative;
  min-width: 44px; height: 40px;
  border: 0; border-radius: 999px; padding: 0 8px;
  font: 800 13px/1 var(--font-display);
  background: transparent; color: var(--text);
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.lang-pill button::before { content: ""; position: absolute; inset: -2px 0; }
.lang-pill button[aria-pressed="true"] { background: var(--primary); color: #FFFFFF; }
@media (hover: hover) {
  .lang-pill button[aria-pressed="false"]:hover { background: var(--primary-tint); }
}

.km { display: flex; flex-direction: column; gap: 4px; }
.km-label { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* progress bar (km bar and others) */
.bar {
  height: 14px; border-radius: 999px; background: var(--line); overflow: hidden;
}
.bar-fill {
  height: 100%; width: 100%; border-radius: 999px;
  background: var(--sky);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 600ms ease-out;
}
.bar-fill.is-primary { background: var(--primary); }
.bar-fill.is-secondary { background: var(--secondary); }

/* ---------- nav ---------- */
.tabs {
  flex: none;
  min-height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.tab {
  position: relative;
  min-height: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px; line-height: 1.2;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { color: var(--primary); font-weight: 600; }
.tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 6px; left: 50%;
  width: 16px; height: 4px; margin-left: -8px; border-radius: 2px;
  background: var(--secondary);
}
.tab:focus-visible { outline-offset: -3px; }

/* ---------- plate (the signature) ---------- */
.plate {
  align-self: flex-start;
  display: inline-block; max-width: 100%;
  margin: 0; padding: 16px 20px 14px;
  background: var(--primary); color: #FFFFFF;
  font: 800 32px/1.05 var(--font-display);
  letter-spacing: -0.02em;
  border-radius: 10px;
  box-shadow: inset 0 0 0 5px var(--primary), inset 0 0 0 7px #FFFFFF;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.plate.is-long { font-size: 28px; }
.plate.is-h2 { font-size: 26px; }
.plate .hl { color: var(--secondary); }

/* ---------- headings / text ---------- */
.h2 { font: 800 22px/1.15 var(--font-display); text-wrap: balance; }
.h3 { font: 700 20px/1.2 var(--font-display); }
.lead { font-size: 20px; line-height: 1.4; font-weight: 600; }
.small { font-size: 15px; line-height: 1.45; }
.caption { font-size: 13px; line-height: 1.4; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.row-wrap > .btn { flex: 1 1 150px; }

/* ---------- chunky buttons ---------- */
.btn {
  min-height: 56px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 18px/1.2 var(--font-display);
  text-align: center;
  text-wrap: balance;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 4px; /* room for the bottom edge */
  transition: transform 80ms ease-out, box-shadow 80ms ease-out, background-color 160ms ease-out;
  -webkit-user-select: none; user-select: none;
}
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.btn-primary { background: var(--primary); color: #FFFFFF; box-shadow: 0 4px 0 var(--primary-edge); }
.btn-primary:hover { color: #FFFFFF; }
.btn-secondary {
  min-height: 52px;
  background: var(--surface); color: var(--text);
  border: 2px solid var(--surface-edge);
  box-shadow: 0 4px 0 var(--surface-edge);
}
.btn-secondary:hover { color: var(--text); }
.btn-reward { background: var(--secondary); color: var(--text); box-shadow: 0 4px 0 var(--secondary-edge); }
.btn-reward:hover { color: var(--text); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--line); color: var(--muted); box-shadow: none; transform: none; border-color: var(--line); cursor: not-allowed;
}
.btn.is-block { width: 100%; }
.btn svg { flex: none; }
@media (hover: hover) {
  .btn-primary:not(:disabled):hover { background: var(--primary-hover); }
  .btn-secondary:not(:disabled):hover { background: #FFFFFF; }
  .btn-reward:not(:disabled):hover { background: var(--secondary-hover); }
}

/* text button: underlined ink, 44px hit area */
.text-btn {
  min-height: 44px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 4px; margin: 0 -4px;
  border: 0; background: transparent;
  color: var(--text);
  font: 600 15px/1.3 var(--font-body);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
  align-self: flex-start;
}
.text-btn:hover { color: var(--primary-press); }

/* ---------- chips ---------- */
.chip {
  min-height: 28px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 12px;
  border-radius: 999px;
  font: 700 13px/1.5 var(--font-display);
  white-space: nowrap;
  flex: none;
  width: max-content; max-width: 100%;
  background: var(--sky); color: #FFFFFF;
}
.chip.tone-yellow { background: var(--secondary); color: var(--text); }
.chip.tone-green { background: var(--primary); color: #FFFFFF; }
.chip.tone-tint { background: var(--primary-tint); color: var(--primary); }
.chip.tone-surface { background: var(--surface); color: var(--text); border: 2px solid var(--surface-edge); }
.chip.tone-warn { background: var(--error-tint); color: var(--error); }
.chip.tone-ink { background: var(--asphalt); color: #FFFFFF; }

/* ---------- cards ---------- */
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--line);
}
.card.is-sky { background: var(--sky-tint); border-color: transparent; }
.card.is-yellow { background: var(--secondary); border-color: transparent; box-shadow: 0 4px 0 var(--secondary-edge); margin-bottom: 4px; }
.card.is-chunky { border-color: var(--surface-edge); box-shadow: 0 4px 0 var(--surface-edge); border-radius: 18px; margin-bottom: 4px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font: 600 15px/1.45 var(--font-body); }
.field-help { font-size: 13px; line-height: 1.4; color: var(--muted); }
.input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--surface-edge);
  background: var(--surface);
  color: var(--text);
  font: 400 17px/1.4 var(--font-body);
  transition: border-color 160ms ease-out;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus { border-color: var(--primary); }
.input[aria-invalid="true"] { border-color: var(--error); background: var(--error-tint); }
.input.is-code { font: 800 20px/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.input.is-pin { font: 800 24px/1.2 var(--font-display); letter-spacing: .5em; font-variant-numeric: tabular-nums; }
.field-error {
  display: flex; align-items: flex-start; gap: 6px;
  color: var(--error); font: 600 15px/1.45 var(--font-body);
}
.field-error svg { margin-top: 2px; }

.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--error-tint);
  color: var(--text);
  font-size: 15px; line-height: 1.45;
}
.alert > svg { color: var(--error); flex: none; margin-top: 1px; }

/* ---------- switch row ---------- */
.switch-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 64px;
  padding: 12px 16px;
  border: 0; background: transparent; color: var(--text);
  text-align: left; font-family: inherit; cursor: pointer;
}
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.switch-row:focus-visible { outline-offset: -3px; }
.switch-row:disabled { cursor: not-allowed; opacity: .6; }
.switch-icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #FFFFFF; box-shadow: 0 3px 0 var(--primary-edge);
}
.switch-icon.tone-signal { background: var(--signal); box-shadow: 0 3px 0 var(--signal-edge); }
.switch-icon.tone-sky { background: var(--sky); box-shadow: 0 3px 0 var(--sky-edge); }
.switch-icon.tone-yellow { background: var(--secondary); color: var(--text); box-shadow: 0 3px 0 var(--secondary-edge); }
.switch-icon.tone-ink { background: var(--asphalt); box-shadow: 0 3px 0 var(--text); }
.switch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.switch-label { font: 800 17px/1.25 var(--font-display); }
.switch-help { font-size: 15px; line-height: 1.45; color: var(--muted); }
.switch-track {
  position: relative; display: block; flex: none;
  width: 56px; height: 34px; border-radius: 999px;
  background: var(--muted); box-shadow: inset 0 -3px 0 var(--switch-off-edge);
  transition: background-color 160ms ease-out;
}
.switch-knob {
  position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 999px;
  background: #FFFFFF; box-shadow: 0 2px 0 var(--surface-edge);
  transition: transform 160ms ease-out;
}
.switch-row[aria-checked="true"] .switch-track { background: var(--primary); box-shadow: inset 0 -3px 0 var(--primary-edge); }
.switch-row[aria-checked="true"] .switch-knob { transform: translateX(24px); }

/* ---------- toasts ---------- */
.toasts {
  position: fixed; left: 0; right: 0;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.no-chrome .toasts { bottom: calc(16px + env(safe-area-inset-bottom)); }
.toast {
  display: flex; align-items: center; gap: 10px;
  max-width: 100%;
  padding: 8px 16px 8px 8px;
  border-radius: 18px;
  background: var(--secondary); color: var(--text);
  box-shadow: var(--float-shadow);
  font: 800 17px/1.3 var(--font-display);
  text-wrap: balance;
  transition: opacity 160ms ease-out;
}
.toast img { width: 48px; height: 48px; flex: none; }
.toast.is-error { background: var(--surface); border: 2px solid var(--error); }
.toast.is-leaving { opacity: 0; }

/* ---------- overlays: sheet ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; justify-content: center;
}
.overlay-scrim {
  position: absolute; inset: 0;
  padding: 0; border: 0;
  background: var(--scrim-soft);
  cursor: pointer;
}
.sheet {
  position: absolute; bottom: 0;
  width: 100%; max-width: var(--col);
  max-height: 88%;
  overflow-y: auto;
  padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 24px rgba(27, 36, 32, .18);
  display: flex; flex-direction: column; gap: 16px;
}
.sheet:focus { outline: none; }
.sheet-grip { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--line); flex: none; }
.sheet-title { font: 800 28px/1.1 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.sheet-body { display: flex; flex-direction: column; gap: 14px; }

/* ---------- overlays: celebration ---------- */
.celebrate {
  position: fixed; inset: 0; z-index: 50;
  padding: 20px;
  background: var(--scrim);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.celebrate-card {
  position: relative; z-index: 1;
  width: min(340px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 24px 28px 28px;
  border-radius: 24px;
  background: var(--secondary);
  color: var(--text);
  box-shadow: var(--float-shadow);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.celebrate-card:focus { outline: none; }
.celebrate-title { font: 800 32px/1.1 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.celebrate-line { font-size: 17px; line-height: 1.45; text-wrap: balance; }
.celebrate-reward { margin-top: 6px; display: flex; justify-content: center; }
.celebrate-reward img { width: 96px; height: 96px; }
.celebrate-card .btn { width: 100%; margin-top: 10px; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }

/* ---------- placeholder / states ---------- */
.state {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center;
  padding: 24px 0;
}
.state img { width: 140px; height: 140px; }
.state .h2 { max-width: 18em; }
.state p { max-width: 28em; color: var(--muted); font-size: 17px; }
.state .btn { min-width: 220px; }
.boot {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.boot img { width: 120px; height: 120px; }

/* ---------- join ---------- */
.join { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.join-top { display: flex; justify-content: flex-end; }
.join-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.join-hero img { flex: none; }
.join-trip { display: flex; flex-direction: column; gap: 6px; }
.trip-road { position: relative; height: 14px; border-radius: 7px; background: var(--asphalt); }
.trip-road::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 6px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--secondary) 0 10px, transparent 10px 18px);
}
.trip-ends { display: flex; justify-content: space-between; font: 600 15px/1.3 var(--font-body); }
.join-intro { font-size: 17px; line-height: 1.6; max-width: 34em; }
.join-card { padding: 20px 16px; }

/* ---------- motion (chrome.html + game-look.md §4) ---------- */
@keyframes pop { 0% { transform: scale(.6); opacity: 0 } 60% { transform: scale(1.12); opacity: 1 } 100% { transform: scale(1); opacity: 1 } }
@keyframes pop2 { 0% { transform: scale(.6); opacity: 0 } 60% { transform: scale(1.12); opacity: 1 } 100% { transform: scale(1); opacity: 1 } }
@keyframes bounce { 0%, 100% { transform: translateY(0) } 35% { transform: translateY(-10px) } 65% { transform: translateY(-3px) } }
@keyframes bounce2 { 0%, 100% { transform: translateY(0) } 35% { transform: translateY(-10px) } 65% { transform: translateY(-3px) } }
@keyframes shake { 0%, 100% { transform: translateX(0) } 20% { transform: translateX(-8px) } 40% { transform: translateX(7px) } 60% { transform: translateX(-5px) } 80% { transform: translateX(3px) } }
@keyframes shake2 { 0%, 100% { transform: translateX(0) } 20% { transform: translateX(-8px) } 40% { transform: translateX(7px) } 60% { transform: translateX(-5px) } 80% { transform: translateX(3px) } }
@keyframes confetti-fall { 0% { transform: translate3d(0, -20px, 0) rotate(0); opacity: 1 } 85% { opacity: 1 } 100% { transform: translate3d(var(--drift, 20px), 105vh, 0) rotate(var(--spin, 540deg)); opacity: 0 } }
@keyframes float-up { 0% { transform: translateY(0) scale(.8); opacity: 0 } 20% { transform: translateY(-6px) scale(1.1); opacity: 1 } 100% { transform: translateY(-40px) scale(1); opacity: 0 } }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes sheet-up { from { transform: translateY(48px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.anim-pop { animation: pop 320ms cubic-bezier(.34, 1.56, .64, 1) both; }
.anim-pop2 { animation: pop2 320ms cubic-bezier(.34, 1.56, .64, 1) both; }
.anim-bounce { animation: bounce 700ms ease-out 1; }
.anim-bounce2 { animation: bounce2 700ms ease-out 1; }
.anim-bounce-loop { animation: bounce 2s ease-in-out infinite; }
.anim-shake { animation: shake 360ms ease-out 1; }
.anim-shake2 { animation: shake2 360ms ease-out 1; }
.anim-float { animation: float-up 800ms ease-out forwards; }
.anim-fade { animation: fade-in 240ms ease-out both; }
.anim-sheet { animation: sheet-up 260ms cubic-bezier(.2, .8, .3, 1) both; }
.confetti i {
  position: absolute; top: 0;
  width: 8px; height: 14px; border-radius: 2px;
  pointer-events: none;
  animation: confetti-fall 1800ms cubic-bezier(.25, .6, .5, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .anim-pop, .anim-pop2, .anim-bounce, .anim-bounce2, .anim-float, .anim-sheet { animation: fade-in 200ms ease-out both; }
  .anim-bounce-loop, .anim-shake, .anim-shake2 { animation: none; }
  .confetti { display: none; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}

/* ---------- Thai (game-look.md §5) ---------- */
:lang(th) { letter-spacing: 0 !important; }
:lang(th) body, :lang(th) p { font-size: 18px; line-height: 1.8; }
:lang(th) .plate, :lang(th) h1, :lang(th) h2 { line-height: 1.35 !important; }
:lang(th) .plate { padding-top: 18px; }
:lang(th) .btn, :lang(th) .chip, :lang(th) .h3, :lang(th) .switch-label, :lang(th) .toast, :lang(th) .celebrate-title, :lang(th) .sheet-title { line-height: 1.5; }
:lang(th) .input.is-code, :lang(th) .input.is-pin { letter-spacing: .04em !important; }
:lang(th) .input.is-pin { letter-spacing: .5em !important; }
:lang(th) .text-btn, :lang(th) .field-label, :lang(th) .small { line-height: 1.6; }
