:root {
  --bg: #07111c;
  --card: #102033;
  --line: rgba(214, 228, 245, 0.12);
  --ink: #f4f7fb;
  --muted: #9aafc6;
  --green: #3ee07f;
  --gold: #f3c56b;
  --sans: "Noto Sans SC", "Noto Sans Thai", "Noto Sans Arabic", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(420px 220px at 50% 0, rgba(62, 224, 127, 0.16), transparent 70%),
    #04080e;
  line-height: 1.55;
}
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
.phone-page {
  width: min(480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px calc(92px + env(safe-area-inset-bottom));
  background:
    radial-gradient(520px 240px at 90% -4%, rgba(243, 197, 107, 0.16), transparent 60%),
    var(--bg);
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin: 0 -16px;
  padding: env(safe-area-inset-top) 16px 0;
  background: rgba(7, 17, 28, 0.92);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(160deg, #49f09a, #128a52);
  color: #042214;
}
.lang-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero { padding: 18px 0 8px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(62, 224, 127, 0.15);
}
h1 { margin: 0; font-size: clamp(32px, 8.5vw, 40px); line-height: 1.15; letter-spacing: -0.03em; }
.lead { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.bonus-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(243, 197, 107, 0.22), rgba(62, 224, 127, 0.08));
  border: 1px solid rgba(243, 197, 107, 0.45);
}
.bonus-amt {
  min-width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0 8px;
  border-radius: 16px;
  background: var(--gold);
  color: #3a2a08;
  font-weight: 800;
  font-size: 15px;
}
.bonus-banner strong, .hi strong { display: block; }
.bonus-banner small, .hi small { display: block; color: var(--muted); font-size: 13px; }

.highlights { display: grid; gap: 10px; margin-top: 14px; }
.hi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(16, 32, 51, 0.9);
  border: 1px solid var(--line);
  text-align: start;
}
.hi.is-hot { border-color: rgba(243, 197, 107, 0.55); }
.hi-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(62, 224, 127, 0.14);
  color: var(--green);
  font-weight: 800;
}
.hi.is-hot .hi-icon { background: rgba(243, 197, 107, 0.18); color: var(--gold); }

.cta-block { display: grid; gap: 10px; margin-top: 16px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4cf091, #16b86a);
  color: #042214;
  font-weight: 800;
  font-size: 17px;
}
.btn.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(243, 197, 107, 0.55);
}
.btn,
.text-btn { position: relative; }
.btn:disabled { opacity: 1; }
.btn.is-loading,
.text-btn.is-loading {
  color: transparent;
  pointer-events: none;
}
.btn.is-loading span { visibility: hidden; }
.btn.is-loading::after,
.text-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.ghost.is-loading::after,
.text-btn.is-loading::after {
  border-color: rgba(243, 197, 107, 0.28);
  border-top-color: var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }
.store-row { display: flex; justify-content: center; gap: 18px; }
.text-btn {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preview, .block, .faq {
  margin-top: 22px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(16, 32, 51, 0.88);
  border: 1px solid var(--line);
}
.preview-top, .match, .sheet-head, .steps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.preview-top span:last-child {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(62, 224, 127, 0.16);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.match {
  align-items: stretch;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.match b, .match small { display: block; }
.match small, .score small { color: var(--muted); font-size: 12px; }
.score { text-align: end; }
.score em { font-style: normal; color: var(--green); font-weight: 800; }
.live-tag, .soon-tag {
  margin-inline-start: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
}
.live-tag { color: #042214; background: var(--green); }
.soon-tag { color: var(--gold); background: rgba(243, 197, 107, 0.14); }

.block { padding-bottom: 6px; }
h2 { margin: 2px 0 12px; font-size: 22px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { align-items: flex-start; justify-content: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.steps span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(62, 224, 127, 0.14);
  color: var(--green);
  font-weight: 800;
}
.steps p, .faq-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.faq { padding: 4px 14px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
  font-weight: 700;
}
.faq-item p { display: none; padding-bottom: 12px; }
.faq-item.is-open p { display: block; }
.footer { margin-top: 18px; color: var(--muted); font-size: 12px; }

.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 6;
  display: flex;
  gap: 8px;
  width: min(480px, 100%);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(7, 17, 28, 0.96);
  border-top: 1px solid var(--line);
}
.dock .btn { flex: 1; min-height: 48px; font-size: 15px; }
.dock .ghost { flex: 0.9 1 auto; }

.sheet[hidden] { display: none; }
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-mask { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, 0.56); }
.sheet-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(480px, 100%);
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 8px 8px calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-radius: 22px 22px 0 0;
  background: #102033;
}
.sheet-head { padding: 8px 8px 10px; }
.icon-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 22px;
}
.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: start;
}
.lang-option.is-on { background: rgba(62, 224, 127, 0.12); color: var(--green); }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  transform: translateX(-50%) translateY(8px);
  border-radius: 999px;
  background: #17304a;
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 860px) {
  body { padding: 28px 0; }
  .phone-page {
    min-height: calc(100vh - 56px);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  }
  .top { border-radius: 28px 28px 0 0; }
}
