:root {
  color-scheme: dark;
  --bg: #050a12;
  --bg-soft: #071424;
  --panel: rgba(8, 18, 32, 0.82);
  --panel-strong: rgba(10, 25, 44, 0.94);
  --text: #f4f8ff;
  --muted: #9fb5d1;
  --line: rgba(142, 195, 255, 0.18);
  --blue: #2f80ff;
  --cyan: #25d9ff;
  --deep: #0b2f67;
  --lime: #48e399;
  --gold: #ffcc66;
  --pink: #b66cff;
  --red: #ff5d6c;
  --radius: 8px;
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

::selection {
  color: #02101f;
  background: var(--cyan);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 128, 255, 0.26), transparent 34rem),
    linear-gradient(180deg, #071527 0%, #050a12 42%, #07101d 100%);
}

.scan-grid {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(100, 170, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 170, 255, 0.13) 1px, transparent 1px),
    linear-gradient(135deg, rgba(47, 128, 255, 0.08) 0 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 72%, transparent 100%);
}

.aurora {
  position: absolute;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(76px);
  opacity: 0.38;
  animation: drift 14s ease-in-out infinite alternate;
}

.aurora-a {
  top: 2rem;
  left: -10rem;
  background: #0879ff;
}

.aurora-b {
  right: -12rem;
  bottom: 8rem;
  background: #22d7ff;
  animation-duration: 18s;
}

.block,
.spark {
  position: absolute;
  display: block;
  pointer-events: none;
}

.block {
  width: 4.8rem;
  height: 4.8rem;
  border: 1px solid rgba(135, 204, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(37, 217, 255, 0.25), rgba(47, 128, 255, 0.05)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px);
  box-shadow: inset 0 0 28px rgba(37, 217, 255, 0.12), 0 22px 80px rgba(0, 0, 0, 0.26);
  transform: rotate(18deg);
  animation: floatBlock 9s ease-in-out infinite;
}

.block-a { top: 12rem; left: 8%; }
.block-b { top: 7rem; right: 13%; width: 3.4rem; height: 3.4rem; animation-delay: -2s; }
.block-c { bottom: 23rem; left: 14%; width: 3.8rem; height: 3.8rem; animation-delay: -4s; }
.block-d { bottom: 12rem; right: 9%; animation-delay: -6s; }

.spark {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
  transform: rotate(45deg);
  animation: sparkle 2.6s ease-in-out infinite;
}

.spark-a { top: 15rem; right: 22%; }
.spark-b { top: 34rem; left: 12%; animation-delay: -0.8s; }
.spark-c { bottom: 28rem; right: 31%; animation-delay: -1.6s; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(4, 9, 17, 0.78);
  border-bottom: 1px solid rgba(135, 204, 255, 0.13);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand-icon,
.hero-logo,
.community-panel img {
  image-rendering: pixelated;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -1px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  box-shadow: 0 0 28px rgba(37, 217, 255, 0.22);
}

.brand strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(72, 227, 153, 0.35);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(72, 227, 153, 0.08);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.nav-cta,
.ghost-button,
.mini-link,
.community-panel a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 800;
  transition-property: transform, background-color, color, border-color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.nav-links a {
  padding: 0 14px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(135, 204, 255, 0.1);
  outline: none;
}

.nav-cta,
.community-panel a {
  padding: 0 18px;
  color: #031425;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 38px rgba(47, 128, 255, 0.28);
}

.nav-cta:hover,
.community-panel a:hover,
.copy-button:hover,
.ghost-button:hover,
.mini-link:hover {
  transform: translateY(-2px);
}

.nav-cta:active,
.community-panel a:active,
.copy-button:active,
.ghost-button:active,
.mini-link:active {
  transform: scale(0.97);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(1180px, calc(100% - 36px));
  min-height: 820px;
  margin: 0 auto;
  padding: 86px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge,
.eyebrow,
.status-meta span,
.store-card > span,
.mode-copy p,
.section-heading p,
.community > div > p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(37, 217, 255, 0.25);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(8, 18, 32, 0.64);
  font-size: 0.82rem;
  font-weight: 900;
}

.pulse-dot,
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 204, 102, 0.13), 0 0 18px rgba(255, 204, 102, 0.46);
}

.pulse-dot {
  animation: pulseDot 1.8s ease-out infinite;
}

.status-dot.online,
.pulse-dot.online {
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(72, 227, 153, 0.14), 0 0 20px rgba(72, 227, 153, 0.5);
}

.status-dot.offline,
.pulse-dot.offline {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 93, 108, 0.14), 0 0 20px rgba(255, 93, 108, 0.5);
}

.status-dot.discord {
  background: #5865f2;
  box-shadow: 0 0 0 6px rgba(88, 101, 242, 0.14), 0 0 20px rgba(88, 101, 242, 0.5);
}

.hero-logo {
  width: 124px;
  height: 124px;
  margin-top: 42px;
  border-radius: 22px;
  box-shadow: 0 0 0 8px rgba(37, 217, 255, 0.08), 0 28px 90px rgba(37, 217, 255, 0.22);
  animation: heroLogo 5s ease-in-out infinite;
}

.eyebrow {
  margin: 28px 0 0;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 18px 0 0;
  font-size: 6.8rem;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 0 42px rgba(47, 128, 255, 0.38);
}

.intro {
  width: min(760px, 100%);
  margin: 24px 0 0;
  color: #c8d8ed;
  font-size: 1.28rem;
  line-height: 1.8;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.copy-button,
.ghost-button {
  border: 1px solid rgba(135, 204, 255, 0.18);
  cursor: pointer;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  max-width: min(100%, 520px);
  padding: 0 9px 0 18px;
  border-radius: var(--radius);
  color: #031425;
  background: linear-gradient(135deg, #66e8ff, #2f80ff);
  box-shadow: 0 22px 52px rgba(47, 128, 255, 0.32);
  font-weight: 900;
  transition-property: transform, box-shadow, filter;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.copy-main {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.copy-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 6px;
  color: var(--text);
  background: rgba(3, 20, 37, 0.84);
  white-space: nowrap;
}

.ghost-button {
  min-width: 136px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(8, 18, 32, 0.68);
}

.copy-button:focus-visible,
.ghost-button:focus-visible,
.nav-cta:focus-visible,
.nav-links a:focus-visible,
.community-panel a:focus-visible {
  outline: 3px solid rgba(37, 217, 255, 0.62);
  outline-offset: 3px;
}

.live-dock {
  width: min(940px, 100%);
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(135, 204, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(7, 19, 35, 0.76);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.live-dock article {
  min-height: 126px;
  padding: 22px 24px;
  text-align: left;
  border-right: 1px solid rgba(135, 204, 255, 0.16);
}

.live-dock article:last-child {
  border-right: 0;
}

.live-dock span,
.metric-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.live-dock strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 14px;
}

.live-dock b,
.community-panel b {
  font-size: 2.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.live-dock small {
  color: #8aa6c8;
  font-weight: 900;
}

.status-strip,
.section-block,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.status-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  transform: translateY(-26px);
}

.status-card,
.store-card,
.steps article,
.mode-grid article,
.community-panel,
.faq article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 40, 70, 0.78), rgba(7, 17, 31, 0.88)),
    rgba(8, 18, 32, 0.84);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.status-card {
  min-height: 132px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.status-card > div:first-child {
  min-width: 0;
}

.status-card strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
}

.status-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.status-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-meta span {
  color: var(--text);
}

.mini-link {
  padding: 0 14px;
  color: var(--cyan);
  border: 1px solid rgba(37, 217, 255, 0.28);
  background: rgba(37, 217, 255, 0.07);
}

.section-block {
  padding: 92px 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p,
.mode-copy p,
.community > div > p {
  margin: 0 0 16px;
}

h2 {
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading span,
.mode-copy span,
.community > div > span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 650;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.store-card {
  min-height: 318px;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition-property: transform, border-color, box-shadow, background-color;
  transition-duration: 220ms;
  transition-timing-function: ease-out;
}

.store-card.large {
  grid-column: span 2;
}

.store-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 217, 255, 0.5);
  box-shadow: 0 30px 96px rgba(47, 128, 255, 0.18);
}

.store-card h3,
.steps h3,
.faq h3 {
  margin: 12px 0 0;
  font-size: 1.42rem;
  line-height: 1.25;
}

.store-card p,
.steps p,
.faq p,
.mode-grid span {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 620;
}

.item-art {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 148px;
  height: 148px;
  transform: translateX(-50%);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(37, 217, 255, 0.82), rgba(47, 128, 255, 0.42)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 22px);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.18), 0 24px 60px rgba(37, 217, 255, 0.22);
  animation: itemHover 5s ease-in-out infinite;
}

.rank-art {
  width: 260px;
  height: 118px;
  top: 52px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #7be9ff, #2f80ff 52%, #b66cff),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 10px, transparent 10px 24px);
}

.rank-art::before {
  content: "RANK";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 0 rgba(2, 12, 24, 0.5), 0 0 26px rgba(255, 255, 255, 0.4);
}

.gem-art {
  clip-path: polygon(50% 0, 95% 34%, 78% 100%, 22% 100%, 5% 34%);
}

.crate-art {
  background:
    linear-gradient(135deg, #0b2f67, #2f80ff),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 3px, transparent 3px 22px);
}

.cosmetic-art {
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff 0 8%, transparent 9%),
    conic-gradient(from 180deg, #25d9ff, #2f80ff, #b66cff, #25d9ff);
}

.pass-art {
  width: 190px;
  height: 118px;
  transform: translateX(-50%) rotate(-6deg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.steps article {
  min-height: 218px;
  padding: 22px;
  overflow: hidden;
}

.steps span {
  color: rgba(37, 217, 255, 0.24);
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 1;
}

.modes {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mode-grid article {
  min-height: 154px;
  padding: 22px;
}

.mode-grid strong {
  color: var(--cyan);
  font-size: 1.28rem;
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  align-items: center;
}

.community-panel {
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 13px;
}

.community-panel img {
  width: 86px;
  height: 86px;
  border-radius: 18px;
}

.community-panel strong {
  margin-top: 8px;
  font-size: 1.34rem;
}

.community-panel span {
  color: var(--muted);
  font-weight: 800;
}

.community-panel b {
  color: var(--text);
}

.community-panel a {
  width: 100%;
  margin-top: 12px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.faq article {
  min-height: 190px;
  padding: 22px;
}

.footer {
  min-height: 150px;
  padding: 34px 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid rgba(135, 204, 255, 0.14);
}

.footer p,
.footer span {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition-property: opacity, transform, filter;
  transition-duration: 720ms;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5rem, 2rem, 0) scale(1.08); }
}

@keyframes floatBlock {
  0%, 100% { transform: translateY(0) rotate(18deg); }
  50% { transform: translateY(-22px) rotate(28deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.2; transform: scale(0.72) rotate(45deg); }
  50% { opacity: 1; transform: scale(1.25) rotate(45deg); }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(72, 227, 153, 0.28), 0 0 20px rgba(72, 227, 153, 0.5); }
  100% { box-shadow: 0 0 0 14px rgba(72, 227, 153, 0), 0 0 20px rgba(72, 227, 153, 0.5); }
}

@keyframes heroLogo {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 24px rgba(37, 217, 255, 0.24)); }
  50% { transform: translateY(-10px); filter: drop-shadow(0 0 38px rgba(37, 217, 255, 0.42)); }
}

@keyframes itemHover {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(-8px) rotate(4deg); }
}

@media (max-width: 980px) {
  .site-nav {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 760px;
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .live-dock,
  .store-grid,
  .status-strip,
  .modes,
  .community,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .live-dock {
    width: min(620px, 100%);
  }

  .live-dock article {
    border-right: 0;
    border-bottom: 1px solid rgba(135, 204, 255, 0.16);
  }

  .live-dock article:last-child {
    border-bottom: 0;
  }

  .store-card.large {
    grid-column: auto;
  }

  .store-card {
    min-height: 300px;
  }

  .steps,
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .site-nav {
    padding: 12px 16px;
  }

  .brand span {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    padding: 0 13px;
  }

  .hero,
  .status-strip,
  .section-block,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 720px;
    padding-top: 58px;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
  }

  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .intro {
    font-size: 1.02rem;
  }

  .copy-button,
  .ghost-button {
    width: 100%;
  }

  .copy-button {
    gap: 6px;
    padding-left: 12px;
    padding-right: 6px;
  }

  .copy-main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.94rem;
  }

  .copy-label {
    min-height: 38px;
    padding: 0 10px;
  }

  .status-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-meta {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .section-reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
