:root {
  --bg: #07040d;
  --bg-2: #120a22;
  --bg-3: #3b1d72;
  --text: #f4efe4;
  --muted: #c9bde3;
  --accent: #ffe02e;
  --ink: #1a1028;
  --card: rgba(255, 255, 255, .05);
  --card-strong: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .13);
  --ok: #6be38f;
  --warn: #ffb44a;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse 120% 50% at 50% 0%, var(--bg-3) 0%, var(--bg-2) 40%, var(--bg) 100%) no-repeat;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Sarabun", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--accent); }
img, video { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
section { padding: 56px 0; }
h1, h2, h3 { font-family: "Mitr", sans-serif; font-weight: 600; line-height: 1.25; }
h2 { font-size: clamp(26px, 6vw, 36px); margin-bottom: 8px; }
h2 .hl, h1 .hl { color: var(--accent); }
.lead { color: var(--muted); margin-bottom: 28px; }
.center { text-align: center; }

/* cartoon title */
.title-ink {
  color: var(--accent);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Mitr", sans-serif; font-weight: 600; font-size: 20px;
  padding: 14px 30px; border-radius: 999px; border: 3px solid var(--ink);
  background: var(--accent); color: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }

/* videos */
.clip { position: relative; border-radius: 14px; overflow: hidden; border: 3px solid var(--ink); background: #000; cursor: pointer; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip.tall { aspect-ratio: 9 / 16; }
.clip.wide { aspect-ratio: 16 / 9; }
.clip .snd {
  position: absolute; right: 8px; bottom: 8px; font-size: 13px; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; pointer-events: none;
}
.clip .tag {
  position: absolute; left: 8px; top: 8px; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--accent); color: var(--ink);
}

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; text-align: center; }
footer a { color: var(--muted); margin: 0 8px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
