:root {
  color-scheme: dark;
  --canvas: #0b1511;
  --panel: #122019;
  --panel-hover: #182b20;
  --ink: #f5f2e8;
  --muted: #aec0b2;
  --gold: #f0ce8b;
  --line: #324338;
  --green: #a3ddb0;
  font-family: "Instrument Sans", "Avenir Next", "Thonburi", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 1rem; line-height: 1.55; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(73rem, calc(100% - 5rem)); margin-inline: auto; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: clamp(1.55rem, 3vw, 2.15rem);
  padding: clamp(1rem, 2.5vw, 1.9rem) clamp(.9rem, 5.3vw, 2.5rem) clamp(2.6rem, 5vw, 4.3rem);
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 50% 16%, #0a3828 0%, transparent 64%),
              linear-gradient(#071511, #101211 76%, var(--canvas));
}
.hero::before {
  --bright-star: #fff 1.8px, #fff9 2.6px, #fff3 4.2px, transparent 8px;
  --soft-star: #fdfffcda 1px, #fff5 2px, #fff1 3.8px, transparent 6px;
  --pin-star: #fff9 .6px, transparent 1.6px;
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5vw 0;
  transform: skewY(-4deg);
  pointer-events: none;
  background-image:
    radial-gradient(circle at 5% 12%, var(--soft-star)), radial-gradient(circle at 23% 7%, var(--pin-star)),
    radial-gradient(circle at 47% 16%, var(--bright-star)), radial-gradient(circle at 78% 5%, var(--soft-star)),
    radial-gradient(circle at 91% 22%, var(--bright-star)), radial-gradient(circle at 34% 29%, var(--pin-star)),
    radial-gradient(circle at 16% 38%, var(--bright-star)), radial-gradient(circle at 64% 32%, var(--soft-star)),
    radial-gradient(circle at 85% 48%, var(--pin-star)), radial-gradient(circle at 2% 52%, var(--pin-star)),
    radial-gradient(circle at 26% 57%, var(--soft-star)), radial-gradient(circle at 52% 46%, var(--pin-star)),
    radial-gradient(circle at 72% 61%, var(--bright-star)), radial-gradient(circle at 95% 74%, var(--soft-star)),
    radial-gradient(circle at 42% 69%, var(--soft-star)), radial-gradient(circle at 8% 83%, var(--bright-star)),
    radial-gradient(circle at 58% 88%, var(--bright-star)), radial-gradient(circle at 37% 92%, var(--pin-star)),
    radial-gradient(circle at 81% 84%, var(--soft-star)), radial-gradient(circle at 19% 96%, var(--pin-star));
  background-size: clamp(340px, 45vw, 610px) 318px;
  background-position: center;
  mask-image: radial-gradient(ellipse 62% 54% at 50% 32%, #0002, #0008 70%, #000 100%);
}
.hero-copy { max-width: 43rem; }
.logo-frame {
  position: relative;
  width: clamp(9.5rem, 24vw, 12rem);
  margin: 0 auto;
}
.hero-logo { width: 100%; height: auto; filter: drop-shadow(0 0 1.05rem #21bf6b65); }
.logo-frame::after {
  --shine-band: linear-gradient(110deg, transparent 38%, #0004 45%, #000 49%, #0002 52%, transparent 55%, #0003 58%, transparent 61%);
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("./brand-logo.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  -webkit-mask: var(--shine-band) 52% center / 280% 100% no-repeat;
  mask: var(--shine-band) 52% center / 280% 100% no-repeat;
  opacity: .22;
}
.hero h1 {
  color: #ffe298;
  font-size: clamp(1.75rem, 7vw + .3rem, 3.6rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-shadow: 0 0 .4em #e5ae3870, 0 0 1em #e5ae384d;
}
.hero h1 span { white-space: nowrap; }
.hero-summary { margin-top: clamp(.8rem, 2vw, 1.25rem); color: #fafbf7; font-size: clamp(1.03rem, 1.65vw, 1.3rem); font-weight: 600; line-height: 1.65; text-wrap: balance; }
.hero-summary span { display: block; }
.hero-actions { display: grid; gap: clamp(.9rem, 2.5vw, 1.2rem); width: min(100%, 34rem); min-width: 0; }
.hero-action {
  --side: clamp(49px, 14vw, 68px);
  --avatar-size: clamp(44px, 12.8vw, 56px);
  display: grid;
  min-height: clamp(4.25rem, 8vw, 4.85rem);
  border: 2px solid transparent;
  border-radius: .7rem;
  color: #fff;
}
.action-register { --button-cycle: 1.6s; position: relative; isolation: isolate; }
.action-register::before, .action-register::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: inherit;
}
.action-register::before {
  z-index: -1;
  border: 2px solid #fa9fff;
  background: radial-gradient(ellipse at 19% 0%, #f19bff66, transparent 47%),
              linear-gradient(110deg, #661aac, #a414b9 51%, #641394);
  box-shadow: inset 0 1px 0 #ffdeff88, inset 0 -3px 0 #42086588, 0 3px 0 #520c72, 0 0 1.25rem #c326f26b;
}
.action-register::after { z-index: -2; border: 2px solid #f271ff; opacity: 0; }
.action-register .action-button { font-size: clamp(1.23rem, 3.3vw, 1.5rem); font-weight: 750; text-shadow: 0 2px 3px #4e0b69; }
.action-register:is(:hover, :focus-within)::before { border-color: #ffe7ff; box-shadow: inset 0 1px 0 #fff9, 0 3px 0 #620a80, 0 0 1.45rem #ec53ff88; }
.action-register:active::before { transform: translateY(2px); box-shadow: inset 0 2px 3px #470a60, 0 0 1rem #dc38f77a; }
.action-line { background: linear-gradient(105deg, #00be57, #00974b 42%, #00974b 60%, #00b657); box-shadow: 0 .55rem 1.6rem #00ad431a; }
.action-form, .action-avatar, .share-button { grid-area: 1 / 1; }
.action-form { display: grid; min-width: 0; margin: 0; }
.action-button, .share-button { border-radius: .5rem; }
.action-button {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  appearance: none;
  padding-inline: calc(var(--side) + clamp(4px, 1.2vw, 10px));
  padding-block: calc(12px - var(--signup-lift, 0px)) calc(12px + var(--signup-lift, 0px));
  text-align: center;
  font-size: clamp(1.12rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}
.action-button:hover { background: #ffffff09; }
.action-line .action-button { text-shadow: 0 1px 2px #005826; }
.action-button:focus-visible, .share-button:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.action-avatar {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: start;
  width: var(--avatar-size);
  margin-inline-start: calc(clamp(4px, 1.2vw, 10px) + (var(--side) - var(--avatar-size)) / 2);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}
.agent-avatar { background: linear-gradient(140deg, #07404c, #0397a8 75%, #12b4c4); }
.agent-avatar::before, .agent-avatar::after, .headset::before, .headset::after, .line-mark::after { content: ""; position: absolute; }
.agent-avatar::before { top: 24%; left: 36%; width: 28%; height: 34%; border-radius: 48% 48% 52% 52%; background: #fff; }
.agent-avatar::after { bottom: 19%; left: 22%; width: 56%; height: 26%; border-radius: 65% 65% 8% 8%; background: #fff; clip-path: polygon(0 0, 35% 0, 50% 58%, 65% 0, 100% 0, 100% 100%, 0 100%); }
.headset { position: absolute; top: 19%; left: 30%; width: 40%; height: 30%; border: 1.6px solid #fff; border-bottom: 0; border-radius: 55% 55% 0 0; }
.headset::before, .headset::after { bottom: -6%; width: 3px; height: 43%; border-radius: 2px; background: #fff; }
.headset::before { left: -2px; }
.headset::after { right: -2px; }
.line-avatar { background: linear-gradient(135deg, #99df36, #5cc82b 72%); }
.line-mark { position: relative; display: grid; place-items: center; width: 72%; height: 56%; border-radius: 50%; background: #fff; color: #348d13; font: 800 clamp(10px, 2.7vw, 13px)/1 Arial, sans-serif; }
.line-mark::after { left: 46%; bottom: -12%; width: 22%; height: 20%; background: #fff; clip-path: polygon(0 0, 100% 0, 0 100%); }
.share-button {
  position: relative;
  justify-self: end;
  display: grid;
  place-items: center;
  width: calc(var(--side) + clamp(4px, 1.2vw, 10px));
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.share-button:hover { background: #ffffff1b; }
.share-icon {
  position: relative;
  width: 23px;
  height: 23px;
  background:
    radial-gradient(circle at 4px 50%, transparent 2px, currentColor 2.3px 3.7px, transparent 4.1px),
    radial-gradient(circle at 19px 4px, transparent 2px, currentColor 2.3px 3.7px, transparent 4.1px),
    radial-gradient(circle at 19px 19px, transparent 2px, currentColor 2.3px 3.7px, transparent 4.1px);
}
.share-icon::before, .share-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  width: 11px;
  height: 1.7px;
  border-radius: 50%;
  background: currentColor;
}
.share-icon::before { top: 7px; transform: rotate(-27deg); }
.share-icon::after { bottom: 7px; transform: rotate(27deg); }
.share-status { color: #fff; font-size: .95rem; }
.share-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.share-url { width: 100%; min-height: 44px; border: 1px solid #6c8278; border-radius: .5rem; padding: .5rem .75rem; font: inherit; color: #fff; background: #101a15; }

.video-showcase { width: min(calc(100% - 3rem), 32rem); margin: clamp(1.8rem, 4vw, 3rem) auto 0; scroll-margin-top: 1rem; }
.video-frame { position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 1; border-radius: 1rem; background: #091810; }
.video-frame::before { content: ""; position: absolute; z-index: -1; inset: -1.5rem; background: url("./ads-poster.jpg") center / cover; filter: blur(20px); opacity: .3; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.video-frame video:fullscreen { object-fit: contain; background: #000; }
.video-showcase figcaption { display: grid; justify-items: center; margin-top: clamp(1.25rem, 3vw, 2rem); }
.online-dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: #66e877; }
.online-total { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35em; max-width: 100%; border: 1px solid #3ddc89; border-radius: 2rem; padding: .55rem 1.5rem; background: #0a1e14; font-size: 1.06rem; }
.online-total .online-dot { margin-right: .2em; }
.online-total strong { color: #ffdc64; font-variant-numeric: tabular-nums; }
#video-error { margin-top: .7rem; text-align: center; }
#video-error a { text-decoration: underline; color: var(--gold); }

.section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.section-head, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-head { margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.5rem, 3.1vw, 2.2rem); letter-spacing: -.035em; line-height: 1.35; font-weight: 700; }
h3 { font-size: 1.15rem; line-height: 1.4; }
.section-note { margin-top: .25rem; color: var(--muted); font-size: .94rem; }
.games-heading { margin-bottom: 1.05rem; text-align: center; color: #ffdc64; font-size: clamp(1.75rem, 4.2vw, 2.45rem); text-shadow: 0 0 1.15rem #e4ad3352; }
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.game-card { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 13rem; aspect-ratio: 1.16; overflow: hidden; border: 1.5px solid #e5bc4e; border-radius: .95rem; background: var(--panel); }
.game-card:hover, .game-card:focus-visible { border-color: #fff0ad; }
.game-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #11130708 30%, #12140a26 47%, #0c150fd1 79%, #07120df2); }
.game-hot { align-self: end; margin: .7rem; border-radius: .45rem; padding: .42rem .9rem; background: #d62119; color: #fff; font: 750 .9rem/1.3 Arial, sans-serif; }
.game-information { margin-top: auto; padding: .65rem .55rem 1rem; text-align: center; }
.game-name { color: #f3e9d6; font-size: .9rem; font-weight: 550; margin-bottom: .2rem; }
.game-stats { display: grid; gap: .1rem; font-size: clamp(1rem, 1.65vw, 1.35rem); font-weight: 700; line-height: 1.4; }
.game-stats > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 .3em; }
.game-stats > div:first-child { color: #ffdc64; }
.game-stats dd { font-variant-numeric: tabular-nums; }

.text-control { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; border: 1px solid var(--line); border-radius: .5rem; padding: .5rem .85rem; background: transparent; color: var(--muted); font-size: .92rem; font-weight: 600; }
.text-control:hover { background: var(--panel-hover); color: var(--ink); }
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.panel, .promo-frame, .review-card { background: var(--panel); border: 1px solid var(--line); border-radius: .85rem; }
.panel { padding: 1.1rem 1.3rem .35rem; }
.panel-head { min-height: 2.75rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.panel-head span { color: var(--muted); font-size: .9rem; }
.data-row { display: flex; align-items: center; gap: .8rem; padding: .72rem 0; font-variant-numeric: tabular-nums; }
.data-row + .data-row { border-top: 1px solid #2a3b2f; }
.rank-place { width: 2.3rem; color: #c6d2bd; font: italic 1.3rem Georgia, serif; text-align: center; }
.ranks > :first-child .rank-place { color: var(--gold); }
.row-identity { min-width: 0; flex: 1; }
.member-name { display: block; font-weight: 650; }
.row-date, .payment-status { display: block; color: var(--muted); font-size: .86rem; }
.row-amount { margin-left: auto; color: var(--gold); font-weight: 650; }
.bank-icon { width: 2.25rem; height: 2.25rem; object-fit: contain; border-radius: .45rem; }
.payment-detail { text-align: right; }
.payment-row { min-height: 4.5rem; }
.payment-status { color: var(--green); }
.is-pending .payment-status { color: #f2cc8a; }

.editorial-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3rem); }
.editorial-grid .section-head { min-height: 2.85rem; }
.promo-frame { overflow: hidden; }
.promo-frame > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.promo-frame figcaption { display: flex; justify-content: space-between; align-items: center; padding: .2rem .9rem; }
.slide-count { color: var(--muted); font-size: .91rem; font-variant-numeric: tabular-nums; }
.slide-pages { display: flex; }
.slide-pages button { position: relative; width: 44px; height: 44px; border: 0; padding: 0; background: transparent; }
.slide-pages button::before { content: ""; position: absolute; width: 1.35rem; height: .2rem; background: #738878; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 1rem; }
.slide-pages button[aria-current="true"]::before { height: .3rem; background: var(--gold); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.review-card { padding: 1.2rem; }
.review-card figure { display: flex; flex-direction: column; height: 100%; }
.review-card figcaption { display: flex; align-items: center; gap: .65rem; }
.review-avatar { border-radius: 50%; object-fit: cover; width: 2.25rem; height: 2.25rem; }
.review-card blockquote { margin: 1rem 0 .75rem; }
.stars { display: block; margin-top: auto; color: var(--gold); letter-spacing: .1em; font-size: .94rem; }
.site-footer { margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.site-footer .wrap { min-height: 5rem; display: flex; align-items: center; justify-content: flex-end; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 550; font-size: .94rem; }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 54rem) {
  .wrap { width: calc(100% - 3rem); }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .game-card { aspect-ratio: .94; }
  .activity-grid { gap: .8rem; }
  .panel { padding-inline: 1rem; }
  .editorial-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.35rem; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .games-grid { gap: .75rem; }
  .game-card { aspect-ratio: 4 / 5; min-height: 11.8rem; }
  .game-hot { margin: .55rem; padding: .34rem .7rem; }
  .game-information { padding: .4rem .3rem .7rem; }
  .game-name { font-size: .86rem; }
  .section-head { align-items: start; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 1rem; }
  .activity-grid, .editorial-grid { grid-template-columns: 1fr; }
  .editorial-grid { gap: 2.5rem; }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .review-card { padding: .9rem; }
}

@media (max-width: 26rem) {
  .reviews-grid { grid-template-columns: 1fr; }
}

@keyframes logo-shine {
  0%, 4% { -webkit-mask-position: 108% center; mask-position: 108% center; opacity: 0; }
  9%, 24% { opacity: .86; }
  30%, 100% { -webkit-mask-position: -8% center; mask-position: -8% center; opacity: 0; }
}
@property --signup-lift {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
@keyframes signup-bounce {
  0%, 45%, 100% { --signup-lift: 0px; }
  11% { --signup-lift: 12px; }
  19% { --signup-lift: -1.5px; }
  28% { --signup-lift: 5px; }
  36% { --signup-lift: -1px; }
}
@keyframes signup-ring {
  0% { transform: scale(.99); opacity: 0; }
  11% { opacity: .9; }
  51%, 100% { transform: translateY(-5px) scale(1.055, 1.34); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .logo-frame::after { animation: logo-shine 4.8s ease-in-out infinite; }
  .action-register {
    animation: var(--button-animation, signup-bounce) var(--button-cycle) ease-in-out infinite;
  }
  .action-register:not(:active)::before, .action-register :is(.action-avatar, .share-icon) {
    transform: translateY(calc(0px - var(--signup-lift, 0px)));
  }
  .action-register::after { animation: var(--ring-animation, signup-ring) var(--button-cycle) ease-out infinite; }
  .action-register:is(:hover, :focus-within, :active) {
    --button-animation: none;
    --ring-animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
