:root {
  --bg: #100000;
  --bg-deep: #070000;
  --panel: #1b0505;
  --panel-soft: rgba(40, 4, 4, 0.82);
  --red: #b8070b;
  --red-hot: #ef1f25;
  --red-dark: #5e0003;
  --gold: #f3ba36;
  --gold-light: #ffe49a;
  --gold-deep: #b9780a;
  --text: #fff9ed;
  --muted: #cbb9aa;
  --line: rgba(243, 186, 54, 0.22);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
  --container: 1180px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    radial-gradient(circle at 14% 2%, rgba(216, 8, 14, 0.21), transparent 31%),
    radial-gradient(circle at 92% 22%, rgba(243, 186, 54, 0.11), transparent 24%),
    linear-gradient(180deg, #180000 0%, #090000 58%, #110000 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  font-family: "Noto Sans Thai", "Tahoma", "Arial", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 34px), var(--container));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(115px);
  pointer-events: none;
  opacity: 0.18;
}

.ambient--red { top: -240px; left: -130px; background: var(--red-hot); }
.ambient--gold { right: -210px; top: 38vh; background: var(--gold); opacity: 0.1; }

.site-header {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid rgba(243, 186, 54, 0.13);
  background: rgba(12, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-crown {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 228, 154, 0.42);
  border-radius: 14px;
  color: #4b0804;
  background: linear-gradient(145deg, #fff1ab, #e9a51d 68%, #ffe086);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75), 0 10px 26px rgba(243, 186, 54, 0.18);
  font-size: 1.42rem;
}

.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: clamp(1.06rem, 3vw, 1.32rem); letter-spacing: -0.025em; }
.brand-copy strong span { color: var(--gold-light); margin-right: 4px; }
.brand-copy small { margin-top: 7px; color: #a99580; font-size: 0.61rem; font-weight: 800; letter-spacing: 0.2em; }

.header-badges { display: flex; align-items: center; gap: 10px; }
.status-dot, .age-badge {
  border: 1px solid var(--line);
  color: #e9dccb;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 800;
}

.status-dot { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: #55db7a; box-shadow: 0 0 14px rgba(85, 219, 122, 0.8); }
.age-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--gold-light); }

.ticker {
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(243, 186, 54, 0.22);
  color: #431000;
  background: linear-gradient(90deg, #f8cb56, #ffeb9e 48%, #e8a720);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  align-items: center;
  gap: 19px;
  padding: 8px 0;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
  animation: tickerMove 24s linear infinite;
}
.ticker-track b { color: #9c1808; font-size: 0.56rem; }

.hero { padding: 46px 0 34px; }
.hero-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(243, 186, 54, 0.36);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(255, 240, 175, 0.17), rgba(112, 0, 0, 0.16));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 9px;
  border-radius: 22px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.hero-slides { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 22px; background: #240000; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.035); transition: opacity 650ms ease, transform 5s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.visual-label {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #fff1d0;
  background: rgba(12, 0, 0, 0.76);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.visual-label span { padding: 3px 6px; border-radius: 5px; color: #fff; background: var(--red-hot); letter-spacing: 0.05em; }

.slide-indicator {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  display: flex;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(10, 0, 0, 0.62);
}
.slide-indicator span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.34); transition: width 220ms ease, background 220ms ease; }
.slide-indicator span.is-active { width: 21px; border-radius: 999px; background: var(--gold-light); }

.eyebrow { margin: 0 0 11px; color: var(--gold); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-copy h1, .section-title h2, .info-heading h2 { margin: 0; line-height: 1.12; letter-spacing: -0.045em; }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 5.1rem); }
.hero-copy h1 span { color: var(--gold-light); text-shadow: 0 0 40px rgba(243, 186, 54, 0.14); }
.hero-description { max-width: 620px; margin: 20px 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.12rem); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 27px; }
.hero-chips span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: #f7e9d6; background: rgba(255, 255, 255, 0.038); font-size: 0.78rem; font-weight: 800; }
.hero-chips span::before { content: "✓"; margin-right: 7px; color: var(--gold); }

.signup-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(100%, 280px);
  min-height: 60px;
  padding: 15px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 210, 0.66);
  border-radius: 14px;
  color: #3d0800;
  background: linear-gradient(135deg, #fff0a4 0%, #ecad21 50%, #ffd86c 100%);
  box-shadow: 0 17px 45px rgba(243, 186, 54, 0.24), inset 0 1px rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: translate 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.signup-button:hover { translate: 0 -2px; box-shadow: 0 21px 52px rgba(243, 186, 54, 0.34), inset 0 1px rgba(255, 255, 255, 0.8); }
.signup-button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.signup-button[aria-disabled="true"] { opacity: 0.72; pointer-events: none; }
.signup-button__icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #ffe58f; background: #710408; }
.signup-button__shine { position: absolute; z-index: -1; top: -70%; left: -20%; width: 26px; height: 230%; rotate: 21deg; background: rgba(255, 255, 255, 0.38); filter: blur(2px); animation: shine 3.4s ease-in-out infinite; }
.microcopy { margin: 11px 0 0; color: #a99584; font-size: 0.75rem; }

.dashboard-strip { padding: 28px 0 62px; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 12px; }
.clock-panel, .quick-stat {
  min-height: 91px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(65, 3, 3, 0.72), rgba(22, 1, 1, 0.85));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}
.clock-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; }
.clock-panel p { margin: 0 0 3px; color: var(--gold); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.15em; }
.clock-panel strong { font-variant-numeric: tabular-nums; color: var(--gold-light); font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: 0.04em; }
.clock-panel > span { max-width: 125px; color: #ac998a; font-size: 0.7rem; text-align: right; }
.quick-stat { display: flex; align-items: center; gap: 12px; padding: 16px; }
.quick-stat > span { display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px; border: 1px solid rgba(243, 186, 54, 0.34); border-radius: 11px; color: var(--gold); background: rgba(243, 186, 54, 0.06); font-size: 0.68rem; font-weight: 900; }
.quick-stat div { min-width: 0; }
.quick-stat b, .quick-stat small { display: block; }
.quick-stat b { color: #fff1d7; font-size: 0.83rem; }
.quick-stat small { margin-top: 3px; color: #a99584; font-size: 0.67rem; }

.category-section, .promo-section, .info-section { position: relative; padding: 76px 0; }
.category-section { border-top: 1px solid rgba(243, 186, 54, 0.1); background: rgba(255, 255, 255, 0.012); }
.section-title--split { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-title h2, .info-heading h2 { font-size: clamp(2rem, 4.3vw, 3.35rem); }
.section-title--split > p { max-width: 420px; margin: 0; color: var(--muted); text-align: right; }
.section-title--center { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-title--center > p:last-child { margin: 13px 0 0; color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.category-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 118px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(243, 186, 54, 0.17);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(56, 2, 2, 0.74), rgba(20, 0, 0, 0.82));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}
.category-card::after { content: ""; position: absolute; right: -44px; bottom: -65px; width: 130px; height: 130px; border-radius: 50%; background: rgba(243, 186, 54, 0.055); }
.category-card--primary { border-color: rgba(243, 186, 54, 0.4); background: linear-gradient(145deg, rgba(128, 4, 8, 0.75), rgba(40, 0, 0, 0.9)); }
.category-card > span { font-size: 1.65rem; }
.category-card h3 { margin: 0; color: var(--gold-light); font-size: 0.98rem; }
.category-card p { margin: 4px 0 0; color: #aa9788; font-size: 0.7rem; }
.category-card > b { position: absolute; right: 12px; top: 11px; color: rgba(255, 228, 154, 0.25); font-size: 0.62rem; letter-spacing: 0.1em; }

.promo-section { border-top: 1px solid rgba(243, 186, 54, 0.1); }
.promo-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promo-card { position: relative; overflow: hidden; border: 1px solid rgba(243, 186, 54, 0.22); border-radius: var(--radius-lg); background: #210202; box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28); }
.promo-card--wide { grid-row: span 2; }
.promo-image { position: relative; overflow: hidden; }
.promo-card--wide .promo-image { height: 100%; min-height: 680px; }
.promo-card:not(.promo-card--wide) .promo-image { aspect-ratio: 16 / 9; }
.promo-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(11, 0, 0, 0.92) 100%); }
.promo-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 520ms ease; }
.promo-card:hover img { transform: scale(1.025); }
.promo-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 24px; }
.promo-caption span { display: inline-flex; margin-bottom: 8px; padding: 4px 7px; border-radius: 5px; color: #fff; background: var(--red-hot); font-size: 0.58rem; font-weight: 900; letter-spacing: 0.11em; }
.promo-caption h3 { margin: 0; color: var(--gold-light); font-size: clamp(1.25rem, 2.4vw, 2rem); }
.promo-caption p { margin: 5px 0 0; color: #dac8b8; font-size: 0.82rem; }

.info-section { border-top: 1px solid rgba(243, 186, 54, 0.1); background: linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent); }
.info-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(35px, 7vw, 95px); align-items: start; }
.info-heading > p:last-child { max-width: 470px; margin: 18px 0 0; color: var(--muted); }
.info-list { display: grid; gap: 11px; }
.info-list article { display: grid; grid-template-columns: 50px 1fr; gap: 15px; padding: 19px; border: 1px solid rgba(243, 186, 54, 0.16); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.025); }
.info-list article > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: var(--gold); background: rgba(243, 186, 54, 0.075); font-size: 0.72rem; font-weight: 900; }
.info-list h3 { margin: 1px 0 0; color: var(--gold-light); }
.info-list p { margin: 4px 0 0; color: var(--muted); font-size: 0.82rem; }

.site-footer { padding: 34px 0 40px; border-top: 1px solid rgba(243, 186, 54, 0.15); background: #080000; }
.footer-inner { display: grid; grid-template-columns: 0.65fr 0.8fr 1.55fr; gap: 28px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { color: var(--gold-light); }
.footer-brand span, .site-footer p { color: #9e8b7d; font-size: 0.72rem; }
.footer-brand span { margin-top: 6px; }
.site-footer p { margin: 0; }
.privacy-note { max-width: 650px; }

.pixel-noscript { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes tickerMove { to { transform: translateX(-50%); } }
@keyframes shine { 0%, 50% { left: -25%; } 78%, 100% { left: 125%; } }

@media (max-width: 980px) {
  .hero-shell { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 680px); margin-inline: auto; }
  .hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
  .hero-description { margin-inline: auto; }
  .hero-chips { justify-content: center; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-card--wide .promo-image { min-height: 590px; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .site-header { position: sticky; top: 0; }
  .header-inner { min-height: 64px; }
  .brand-crown { width: 39px; height: 39px; border-radius: 11px; font-size: 1.15rem; }
  .brand-copy small { display: none; }
  .status-dot { display: none; }
  .ticker-track { padding-block: 7px; font-size: 0.68rem; }
  .hero { padding: 26px 0 20px; }
  .hero-shell { gap: 30px; }
  .hero-visual { padding: 6px; border-radius: 23px; }
  .hero-slides { border-radius: 17px; }
  .hero-visual::before { inset: 6px; border-radius: 17px; }
  .visual-label { top: 16px; left: 16px; }
  .slide-indicator { bottom: 15px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 12.5vw, 4rem); }
  .hero-description { margin-top: 15px; }
  .hero-chips { margin: 18px 0 21px; }
  .signup-button {
    position: fixed;
    z-index: 100;
    left: 13px;
    right: 13px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    min-height: 61px;
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.58), 0 7px 25px rgba(243, 186, 54, 0.25);
  }
  .microcopy { margin-top: 0; }
  .dashboard-strip { padding: 22px 0 50px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .clock-panel { min-height: 86px; }
  .quick-stat { min-height: 74px; }
  .category-section, .promo-section, .info-section { padding: 58px 0; }
  .section-title--split { display: block; }
  .section-title--split > p { margin-top: 11px; text-align: left; }
  .promo-wall { grid-template-columns: 1fr; }
  .promo-card--wide { grid-row: auto; }
  .promo-card--wide .promo-image, .promo-card:not(.promo-card--wide) .promo-image { min-height: 0; aspect-ratio: 1 / 1; }
  .promo-caption { padding: 19px; }
  .info-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 500px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 98px; }
  .hero-chips { gap: 6px; }
  .hero-chips span { padding: 7px 9px; font-size: 0.7rem; }
  .clock-panel > span { max-width: 105px; }
}

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