:root {
  --bg: #f1fbff;
  --surface: #ffffff;
  --ink: #06263a;
  --cocoa: #684427;
  --mint: #0a8f6b;
  --mint-d: #076b4f;
  --mint-tint: #d9f5ec;
  --line: rgba(6, 38, 58, 0.14);
  --muted: #3d5a6c;
}

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

html {
  font-family: "Noto Sans Thai Looped", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

html.yt-lock {
  overflow: hidden;
}

body.yt-body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Thai Looped", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  padding-bottom: 72px;
}

h1,
h2 {
  font-family: "Oleo Script", "Noto Sans Thai Looped", sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0;
}

h1 {
  font-size: clamp(27px, 5vw, 44px);
  line-height: 1.35;
}

h2 {
  font-size: clamp(22px, 3.3vw, 30px);
  line-height: 1.4;
}

img {
  max-width: 100%;
  height: auto;
}

.yt-ol {
  font-family: "Oleo Script", "Noto Sans Thai Looped", cursive;
  font-weight: 700;
}

a.yt-skip {
  position: absolute;
  top: -120px;
  left: 0;
  background-color: var(--surface);
  color: var(--cocoa);
  padding: 10px 18px;
  border: 2px solid var(--mint);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}

a.yt-skip:focus {
  top: 12px;
  left: 12px;
}

header.yt-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background-color: var(--surface);
  border-bottom: 2px solid var(--mint);
}

div.yt-bar-in {
  display: flex;
  align-items: center;
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  gap: 14px;
}

a.yt-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

svg.yt-mark {
  width: 40px;
  height: 36px;
  flex-shrink: 0;
}

span.yt-wm {
  display: flex;
  flex-direction: column;
}

span.yt-wm span.yt-ol {
  font-size: 26px;
  color: var(--cocoa);
  line-height: 1;
}

span.yt-wm small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

nav.yt-nav {
  display: none;
}

nav.yt-nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

nav.yt-nav > ul > li {
  display: inline-flex;
}

nav.yt-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 14.5px;
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  min-height: 44px;
  transition: background-color 160ms ease, color 160ms ease;
}

nav.yt-nav > ul > li > a:hover {
  background-color: var(--mint-tint);
}

nav.yt-nav > ul > li > a[aria-current],
nav.yt-nav > ul > li > a[aria-current="page"] {
  background-color: var(--mint-tint);
  color: var(--cocoa);
  font-weight: 600;
}

a.yt-bar-cta {
  margin-left: auto;
  padding: 8px 14px;
  font-size: 14px;
}

.yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.yt-btn-mint {
  background-color: var(--mint-d);
  color: #ffffff;
}

.yt-btn-mint:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.yt-btn-line {
  background-color: transparent;
  border: 2px solid var(--cocoa);
  color: var(--cocoa);
}

.yt-btn-line:hover {
  transform: translateY(-1px);
  background-color: var(--mint-tint);
}

.yt-btn-lg {
  min-height: 50px;
  padding: 12px 26px;
  font-size: 16px;
}

nav.yt-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background-color: var(--surface);
  border-top: 2px solid var(--mint);
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.yt-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
  background-color: transparent;
  border: none;
  text-decoration: none;
  padding: 4px 2px;
  min-height: 44px;
  cursor: pointer;
  transition: color 160ms ease;
}

.yt-tab[aria-current],
.yt-tab[aria-current="page"] {
  color: var(--cocoa);
  font-weight: 700;
}

.yt-tab svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

nav.yt-sheet {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 38, 58, 0.5);
  z-index: 60;
}

nav.yt-sheet[hidden] {
  display: none;
}

div.yt-sh-in {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 82vh;
  overflow-y: auto;
  background-color: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 12px 18px 28px;
  animation: yt-slide-up 200ms ease;
}

@keyframes yt-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

div.yt-sh-grip {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background-color: var(--line);
  margin: 0 auto 10px;
}

section.yt-sh-g {
  margin-top: 12px;
}

h2.yt-sh-h {
  font-size: 13px;
  color: var(--cocoa);
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

section.yt-sh-g ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

section.yt-sh-g li a {
  display: block;
  padding: 11px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

nav.yt-sheet .yt-btn-line {
  width: 100%;
  margin-top: 16px;
}

nav.yt-trail {
  font-size: 13px;
  padding: 10px 16px;
  max-width: 1240px;
  margin: 0 auto;
}

nav.yt-trail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

nav.yt-trail li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--mint);
}

nav.yt-trail a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

nav.yt-trail a:hover {
  color: var(--cocoa);
}

section.yt-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 16px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.yt-hero-txt {
  display: flex;
  flex-direction: column;
}

p.yt-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cocoa);
  font-weight: 600;
  margin: 0 0 6px 0;
}

.yt-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
  margin: 0;
}

div.yt-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

div.yt-rig {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

p.yt-badge {
  display: inline-block;
  background-color: var(--mint-d);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 0 10px 0;
}

div.yt-machine {
  background-color: var(--cocoa);
  border-radius: 26px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(104, 68, 39, 0.22);
}

div.yt-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background-color: var(--bg);
  border-radius: 16px;
  padding: 10px;
}

div.yt-reel {
  overflow: hidden;
  border-radius: 12px;
  background-color: #ffffff;
}

span.yt-sym {
  display: none;
}

span.yt-sym.is-on {
  display: block;
}

span.yt-sym img {
  width: 100%;
  height: auto;
  display: block;
}

div.yt-ctrl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

button.yt-spin {
  background-color: var(--mint-d);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  min-height: 48px;
  padding: 10px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

button.yt-spin:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

span.yt-ill {
  font-size: 13px;
  color: #f1fbff;
  text-align: center;
}

section.yt-ph {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 16px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

section.yt-ph h1 {
  font-size: clamp(25px, 4.3vw, 36px);
  line-height: 1.35;
}

.yt-ph-txt {
  display: flex;
  flex-direction: column;
}

div.yt-ph-ims {
  width: 100%;
}

ul.yt-minis {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

ul.yt-minis li img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
}

section.yt-demo {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 16px;
}

section.yt-demo h2 {
  position: relative;
  padding-bottom: 8px;
}

section.yt-demo h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background-color: var(--mint);
  border-radius: 2px;
}

ul.yt-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

li.yt-gc {
  background-color: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

li.yt-gc img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

span.yt-gname {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  color: var(--ink);
}

span.yt-gtag {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--mint-tint);
  color: #05553f;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 6px;
}

article.yt-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 16px;
}

article.yt-page h2 {
  margin-top: 1.8em;
  padding-left: 14px;
  border-left: 5px solid var(--mint);
}

article.yt-page h3 {
  font-size: 20px;
  color: var(--cocoa);
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  font-family: "Noto Sans Thai Looped", system-ui, sans-serif;
  font-weight: 700;
}

article.yt-page p {
  margin: 0 0 1.05em;
}

article.yt-page a {
  color: var(--cocoa);
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background-color 160ms ease;
}

article.yt-page a:hover {
  background-color: var(--mint-tint);
}

article.yt-page ul,
article.yt-page ol {
  padding-left: 1.3em;
  margin: 0 0 1.05em;
}

article.yt-page table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

article.yt-page th,
article.yt-page td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  overflow-wrap: break-word;
  word-break: normal;
}

article.yt-page th {
  background-color: var(--mint-tint);
  font-weight: 700;
  text-align: left;
}

.yt-long {
  max-width: 860px;
}

aside.yt-mid {
  text-align: center;
  margin: 28px 0;
  padding: 18px;
  background-color: var(--mint-tint);
  border-radius: 18px;
}

section.yt-prov {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px;
}

ul.yt-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

li.yt-logo-c {
  width: 92px;
  text-align: center;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  flex-shrink: 0;
}

li.yt-logo-c img {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 6px;
  border-radius: 12px;
  object-fit: contain;
}

li.yt-logo-c span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

p.yt-small {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

section.yt-vs {
  padding: 20px 16px;
}

div.yt-vs-in {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--cocoa);
  color: #f1fbff;
  border-radius: 22px;
  padding: 26px;
  text-align: center;
}

section.yt-vs h2 {
  color: #ffffff;
  padding: 0;
  margin: 0 0 10px;
}

p.yt-vs-a {
  font-family: "Oleo Script", "Noto Sans Thai Looped", cursive;
  font-size: clamp(34px, 7vw, 48px);
  color: #bff3e0;
  margin: 6px 0;
  line-height: 1.2;
}

section.yt-vs .yt-btn-line {
  border-color: #f1fbff;
  color: #f1fbff;
}

section.yt-vs .yt-btn-line:hover {
  background-color: rgba(241, 251, 255, 0.15);
}

section.yt-gal {
  padding: 8px 16px 20px;
}

div.yt-gal-in {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

figure.yt-fig {
  margin: 0;
  width: 150px;
  display: flex;
  flex-direction: column;
}

figure.yt-fig img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
}

figure.yt-fig figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

section.yt-faq {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 16px;
}

details.yt-qa {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}

details.yt-qa summary {
  padding: 14px 44px 14px 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  min-height: 44px;
}

details.yt-qa summary::-webkit-details-marker {
  display: none;
}

details.yt-qa summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--cocoa);
  font-weight: 700;
  line-height: 1;
}

details.yt-qa[open] summary::after {
  content: "-";
}

details.yt-qa p {
  padding: 0 16px 14px;
  margin: 0;
  color: var(--muted);
}

section.yt-end {
  margin: 24px 16px 0;
  max-width: 960px;
  text-align: center;
  padding: 28px 18px;
  background: linear-gradient(180deg, var(--mint-tint) 0%, var(--bg) 100%);
  border: 2px solid var(--mint);
  border-radius: 22px;
}

section.yt-end p {
  font-size: 18px;
  max-width: 60ch;
  margin: 0 auto 16px;
  line-height: 1.7;
}

footer.yt-foot {
  background-color: var(--surface);
  border-top: 2px solid var(--mint);
  margin-top: 36px;
  padding: 28px 16px 84px;
}

div.yt-foot-in {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

div.yt-fcol {
  display: flex;
  flex-direction: column;
}

h2.yt-fh {
  font-size: 15px;
  color: var(--cocoa);
  margin: 0 0 8px;
  font-family: "Noto Sans Thai Looped", system-ui, sans-serif;
  font-weight: 700;
}

div.yt-fcol ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

div.yt-fcol li a {
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0;
  display: inline-block;
  text-decoration: none;
  transition: color 160ms ease;
}

div.yt-fcol li a:hover {
  color: var(--cocoa);
}

div.yt-foot-ans {
  max-width: 1240px;
  margin: 18px auto;
  padding: 16px;
  background-color: var(--mint-tint);
  border-radius: 18px;
}

p.yt-foot-q {
  font-size: 17px;
  font-weight: 700;
  color: var(--cocoa);
  margin: 0 0 4px;
}

div.yt-foot-ans a {
  color: var(--cocoa);
  text-decoration: underline;
}

p.yt-legal {
  font-size: 13px;
  color: var(--muted);
  max-width: 1240px;
  margin: 12px auto;
}

strong.yt-age {
  display: inline-block;
  padding: 1px 8px;
  border: 1.5px solid var(--cocoa);
  border-radius: 999px;
  color: var(--cocoa);
  margin-right: 8px;
  font-size: 12px;
}

p.yt-copy {
  font-size: 13px;
  color: var(--muted);
  max-width: 1240px;
  margin: 8px auto 0;
}

@media (min-width: 760px) {
  body.yt-body {
    font-size: 17px;
  }

  figure.yt-fig {
    width: 190px;
  }

  div.yt-foot-in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 800px) {
  section.yt-ph {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
  }
}

@media (min-width: 900px) {
  section.yt-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 36px;
  }

  ul.yt-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  body.yt-body {
    padding-bottom: 0;
  }

  nav.yt-nav {
    display: block;
    margin-left: auto;
  }

  a.yt-bar-cta {
    margin-left: 0;
  }

  nav.yt-tabs {
    display: none;
  }

  nav.yt-sheet {
    display: none;
  }

  section.yt-ph {
    max-width: 1208px;
    background: linear-gradient(180deg, var(--mint-tint) 0%, var(--bg) 100%);
    border-radius: 22px;
    margin-bottom: 24px;
    padding: 28px 24px;
  }

  section.yt-end {
    margin: 24px auto 0;
  }

  footer.yt-foot {
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

.yt-tab-menu {
  font-family: inherit;
  cursor: pointer;
}

.yt-bar-cta {
  white-space: nowrap;
  flex: none;
}

.yt-page > h2:first-child {
  margin-top: 0.6em;
}

.yt-ph + .yt-page {
  padding-top: 8px;
}

.yt-page .yt-btn,
.yt-page .yt-btn:hover {
  text-decoration: none;
}

.yt-page .yt-btn-line {
  color: var(--cocoa);
}

.yt-trail a {
  display: inline-block;
  padding: 8px 4px;
  min-height: 32px;
}

.yt-reel img,
.yt-gc img,
.yt-minis img {
  object-fit: contain;
}

.yt-gc img {
  width: auto;
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto;
}

h1, h2, h3 {
  text-wrap: balance;
}
