*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

ol,
ul {
  padding: 0;
}

svg {
  display: block;
  flex: none;
}

button,
input {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

table {
  border-collapse: collapse;
}

[hidden]:not([hidden="until-found"]) {
  display: none;
}

ui-accordion,
ui-accordion-item,
ui-accordion-header,
ui-accordion-panel,
ui-collapsible,
ui-collapsible-panel {
  display: block;
}

ui-accordion-trigger,
ui-collapsible-trigger {
  display: contents;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@font-face {
  font-family: "Bai Jamjuree";
  src: url("/assets/baijamjuree-600-thai.fe7198fd84.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Bai Jamjuree";
  src: url("/assets/baijamjuree-600-latin.01f7eaf19d.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Anuphan";
  src: url("/assets/anuphan-var-thai.6966233243.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Anuphan";
  src: url("/assets/anuphan-var-latin.ebfb9e9984.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: oklch(0.982 0.006 262);
  --surface: oklch(1 0 0);
  --ink: oklch(0.24 0.035 262);
  --ink-muted: oklch(0.44 0.03 262);
  --line: oklch(0.9 0.012 262);
  --line-strong: oklch(0.62 0.03 262);
  --brand: oklch(0.49 0.2 264);
  --brand-hover: color-mix(in oklch, var(--brand) 85%, black);
  --brand-ink: oklch(0.45 0.19 264);
  --brand-tint: oklch(0.95 0.03 264);
  --night: oklch(0.25 0.075 264);
  --night-raised: oklch(0.32 0.085 264);
  --night-ink: oklch(0.97 0.008 262);
  --night-muted: oklch(0.86 0.03 262);
  --night-accent: oklch(0.8 0.11 250);
  --warn: oklch(0.5 0.17 27);
  --warn-tint: oklch(0.965 0.02 27);
  --focus: oklch(0.24 0.035 262);
  --ring: 0 0 0 1px var(--line);
  --raised: 0 0 0 1px var(--line), 0 1px 2px oklch(0.24 0.035 262 / 0.05), 0 8px 24px -12px oklch(0.24 0.035 262 / 0.18);
  --font-display: "Bai Jamjuree", "Anuphan", "Sukhumvit Set", "Thonburi", sans-serif;
  --font-text: "Anuphan", "Sukhumvit Set", "Thonburi", "Noto Sans Thai", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

a {
  color: var(--brand-ink);
  text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

.skip-link {
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--raised);
}

.masthead {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-digits {
  color: var(--brand);
}

.frame {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}

.index ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 1.25rem;
  scrollbar-width: none;
}

.index ol::-webkit-scrollbar {
  display: none;
}

.index a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.875rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--ring);
  color: var(--ink);
  font-size: var(--step--1);
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, box-shadow 150ms ease;
}

.index-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

main {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  min-width: 0;
}

.hero {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--night-ink);
}

.hero :focus-visible {
  outline-color: var(--night-ink);
}

.badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--night-raised);
  font-size: var(--step--1);
  font-weight: 500;
}

.badge-mark {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 2px solid var(--night-accent);
}

.hero h1 {
  font-size: var(--step-4);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 62ch;
  color: var(--night-muted);
  font-size: var(--step-1);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero .host {
  color: var(--night-ink);
}

.hero a.host {
  color: var(--night-ink);
}

.host {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.block {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  min-width: 0;
  scroll-margin-top: 1.5rem;
}

.block h2 {
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
  font-size: var(--step-3);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.block > p {
  max-width: 65ch;
  text-wrap: pretty;
}

.note {
  max-width: 65ch;
  color: var(--ink-muted);
  font-size: var(--step--1);
  line-height: 1.75;
}

.note-warning {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--warn-tint);
  color: var(--warn);
  font-weight: 500;
}

.block-status {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--raised);
}

.block-status h2 {
  padding-top: 0;
  border-top: 0;
  font-size: var(--step-2);
}

.status-list {
  display: grid;
}

.status-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--line);
}

.status-row:first-child {
  padding-top: 0.25rem;
  border-top: 0;
}

.status-row dt {
  font-weight: 500;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
  white-space: nowrap;
}

.state-mark {
  width: 0.625rem;
  height: 0.625rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.state-open {
  color: var(--brand-ink);
  font-weight: 600;
}

.state-open .state-mark {
  background: currentColor;
}

.state-absent .state-mark {
  height: 2px;
  border: 0;
  border-radius: 1px;
  background: currentColor;
}

.domain-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--ring);
}

.domain-table th,
.domain-table td {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.domain-table thead th {
  border-top: 0;
  color: var(--ink-muted);
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 500;
}

.domain-table tbody th {
  font-weight: 600;
}

.domain-table tr[data-state="เปิดแล้ว"] {
  background: var(--brand-tint);
}

.checker {
  display: grid;
  gap: 0.625rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--raised);
}

.checker label {
  font-weight: 600;
}

.checker-row {
  display: grid;
  gap: 0.75rem;
}

input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 1rem;
  line-height: 1.5;
}

input[type="text"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

input::placeholder {
  color: oklch(0.56 0.02 262);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: oklch(1 0 0);
  font-family: var(--font-text);
  font-weight: 600;
  text-decoration: none;
  user-select: none;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}

.button:active {
  transform: scale(0.97);
}

.result {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--ring);
}

.result:empty {
  display: none;
}

.result-main {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.result[data-kind="official"],
.result[data-kind="subdomain"] {
  background: var(--brand-tint);
  box-shadow: 0 0 0 1px oklch(0.8 0.08 264);
}

.result[data-kind="lookalike"],
.result[data-kind="unlisted"],
.result[data-kind="foreign-letters"] {
  background: var(--warn-tint);
  box-shadow: 0 0 0 1px oklch(0.82 0.07 27);
}

.result-warning {
  color: var(--warn);
  font-weight: 600;
}

.figures {
  display: grid;
  gap: 1rem;
}

.figure {
  display: grid;
  gap: 0.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--ring);
}

.figure-label {
  color: var(--ink-muted);
  font-weight: 500;
}

.figure-value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.3;
}

.figure-number {
  color: var(--brand-ink);
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.game-table {
  width: 100%;
  max-width: 44rem;
}

.game-table th,
.game-table td {
  padding: 0.625rem 0;
  border-top: 1px solid var(--line);
  text-align: start;
  vertical-align: middle;
}

.game-table thead th {
  border-top: 0;
  color: var(--ink-muted);
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 500;
}

.game-table tbody th {
  width: 9rem;
  font-family: var(--font-text);
  font-weight: 500;
}

.game-table td {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.count {
  width: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bar {
  flex: 1;
  width: auto;
  height: 0.5rem;
}

.bar-track {
  fill: var(--brand-tint);
}

.bar-fill {
  fill: var(--brand);
}

.providers {
  max-width: 44rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.disclosure-trigger,
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 56px;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-align: start;
}

.disclosure-trigger {
  color: var(--brand-ink);
}

.chevron {
  transition: rotate 200ms var(--ease-out);
}

[aria-expanded="true"] > .chevron {
  rotate: 180deg;
}

.provider-list {
  list-style: none;
  columns: 2 8rem;
  column-gap: 1.5rem;
  padding: 0.25rem 0 1.25rem;
}

.provider-list li {
  padding: 0.25rem 0;
  break-inside: avoid;
}

.rewards {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.reward {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--ring);
}

.reward h3 {
  font-size: var(--step-1);
  line-height: 1.4;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  max-width: 48rem;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.faq {
  max-width: 52rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq h3 {
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.5;
}

.faq-trigger {
  color: var(--ink);
}

.faq-panel p {
  max-width: 65ch;
  padding-bottom: 1.25rem;
}

.care {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--ring);
}

.care h2 {
  padding-top: 0;
  border-top: 0;
  font-size: var(--step-2);
}

.colophon {
  max-width: 84rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.not-found {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.not-found h1 {
  font-size: var(--step-3);
  line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
  .index a:hover {
    color: var(--brand-ink);
  }

  .button:hover {
    background: var(--brand-hover);
  }

  .faq-trigger:hover,
  .disclosure-trigger:hover {
    color: var(--brand-ink);
  }
}

@media (min-width: 36rem) {
  .checker-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .figures,
  .rewards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .domain-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .domain-table,
  .domain-table tbody,
  .domain-table tr,
  .domain-table th,
  .domain-table td {
    display: block;
  }

  .domain-table tr {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--line);
  }

  .domain-table tbody tr:first-child {
    border-top: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .domain-table tbody tr:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .domain-table th,
  .domain-table td {
    padding: 0.125rem 0;
    border-top: 0;
  }

  .domain-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-muted);
    font-size: 0.8125rem;
  }

  .domain-table tbody th {
    font-size: var(--step-1);
  }
}

@media (min-width: 64rem) {
  .frame {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 3rem;
  }

  .index {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }

  .index ol {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 0;
    border-inline-start: 1px solid var(--line);
  }

  .index a {
    margin-inline-start: -1px;
    padding: 0 0 0 1rem;
    border-inline-start: 2px solid transparent;
    border-radius: 0;
    background: none;
    box-shadow: none;
    white-space: normal;
  }
}

@media (min-width: 75rem) {
  main {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    column-gap: 1.5rem;
  }

  main > * {
    grid-column: 1 / -1;
  }

  main > .hero {
    grid-column: 1;
  }

  main > .block-status {
    grid-column: 2;
  }
}