:root {
  --ink: #171b1a;
  --muted: #64706c;
  --mint: #84f9cc;
  --mint-strong: #41dfaa;
  --emerald: #0b8f6a;
  --gold: #d7ad55;
  --black: #050807;
  --panel: #ffffff;
  --header-height: 60px;
  --page-width: 1200px;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7f8f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f7f8f7;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.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;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(28px, calc((100vw - var(--page-width)) / 2));
  color: #fff;
  background: rgba(3, 8, 7, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  position: relative;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--mint);
}

.desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: translateX(-50%);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.route-chip i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(132, 249, 204, 0.14);
}

.header-download,
.mobile-download-bar button {
  min-height: 34px;
  padding: 0 20px;
  color: #102019;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.header-download:hover,
.mobile-download-bar button:hover {
  background: #a2ffdc;
  transform: translateY(-1px);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #06100e url("assets/hero-poker.webp") center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 8, 6, 0.03) 52%, rgba(0, 5, 4, 0.78) 100%),
    radial-gradient(circle at 50% 36%, rgba(21, 218, 160, 0.16), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 40px));
  padding: 105px 20px 54px;
  text-align: center;
}

.hero-logo {
  width: min(330px, 44vw);
  height: auto;
  margin: 0 auto -24px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.52));
}

.eyebrow,
.section-kicker,
.feature-kicker {
  margin: 0;
  color: var(--mint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: 0.04em;
}

.hero-copy {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.hero-downloads {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.download-pill {
  min-width: 180px;
  height: 62px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 10px;
  padding: 0 24px;
  color: #0c1915;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.download-pill:hover {
  background: #a4ffdd;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.download-pill .platform-label {
  grid-row: 1 / 3;
  align-self: center;
  padding-right: 10px;
  border-right: 1px solid rgba(0, 0, 0, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.download-pill strong {
  align-self: end;
  text-align: left;
  font-size: 16px;
}

.hero-route {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(132, 249, 204, 0.42); }
  50% { box-shadow: 0 0 0 7px rgba(132, 249, 204, 0); }
}

.feature {
  min-height: 430px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.feature-security {
  background: linear-gradient(90deg, #fff 16%, #eafff6 100%);
}

.feature-friends {
  background: linear-gradient(90deg, #fff3ed 0%, #fff 82%);
}

.feature-tournament {
  background: linear-gradient(90deg, #fff 16%, #fffbe7 100%);
}

.feature-inner {
  width: min(var(--page-width), 100%);
  min-height: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
}

.feature-reverse {
  grid-template-columns: 58% 42%;
}

.feature-reverse .feature-copy {
  grid-column: 2;
  grid-row: 1;
}

.feature-reverse img {
  grid-column: 1;
  grid-row: 1;
}

.feature-copy {
  position: relative;
  z-index: 2;
  padding: 60px 48px;
}

.feature-index {
  position: absolute;
  top: 42px;
  left: 30px;
  color: rgba(10, 25, 21, 0.04);
  font-size: 118px;
  font-weight: 800;
  line-height: 1;
}

.feature-kicker {
  position: relative;
  color: rgba(10, 25, 21, 0.16);
  font-size: 20px;
  letter-spacing: 0.12em;
}

.feature h2 {
  position: relative;
  margin: 8px 0 3px;
  font-size: 38px;
  line-height: 1.15;
}

.feature h3 {
  position: relative;
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 500;
}

.feature-copy > p:last-child {
  position: relative;
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.feature img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.downloads {
  padding: 96px 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(132, 249, 204, 0.12), transparent 32%),
    linear-gradient(145deg, #050a09, #0a1512 55%, #06100d);
}

.download-panel {
  width: min(1050px, 100%);
  margin: 0 auto;
  padding: 56px;
  color: #fff;
  border: 1px solid rgba(215, 173, 85, 0.35);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.download-heading {
  text-align: center;
}

.download-heading h2 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 4vw, 48px);
}

.download-heading h2 span {
  color: var(--mint);
  font-size: 0.55em;
}

.download-heading > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.download-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px;
  color: #102019;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(145deg, #dffff2, var(--mint));
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  transition: transform 180ms ease, filter 180ms ease;
}

.download-card:hover {
  filter: brightness(1.04);
  transform: translateY(-4px);
}

.download-card .platform-label {
  color: #26785e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.download-card strong {
  margin: 8px 0 10px;
  font-size: 21px;
}

.download-card small {
  color: rgba(16, 32, 25, 0.66);
  font-size: 12px;
}

.recheck-button {
  display: block;
  margin: 24px auto 0;
  padding: 10px 18px;
  color: var(--mint);
  border: 1px solid rgba(132, 249, 204, 0.36);
  border-radius: 999px;
  background: transparent;
}

.recheck-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.download-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  text-align: center;
}

.site-footer {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  color: #2a3330;
  background: #f6f7f6;
  text-align: center;
}

.site-footer img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 4px;
}

.site-footer strong {
  font-size: 20px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #77807d;
  font-size: 13px;
}

.site-footer .copyright {
  margin-top: 22px;
  font-size: 11px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  max-width: min(88vw, 460px);
  padding: 12px 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(3, 8, 7, 0.88);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(12px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-download-bar {
  display: none;
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .desktop-nav,
  .route-chip {
    display: none;
  }

  .feature-inner,
  .feature-reverse {
    grid-template-columns: 46% 54%;
  }

  .feature-reverse {
    grid-template-columns: 54% 46%;
  }

  .download-panel {
    padding: 44px 30px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 54px;
  }

  body {
    padding-bottom: 74px;
  }

  .site-header {
    height: var(--header-height);
    padding: 0 14px;
  }

  .brand {
    gap: 7px;
    font-size: 14px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .header-download {
    display: none;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    display: grid;
    place-content: center;
    gap: 4px;
    padding: 0;
    color: #fff;
    border: 0;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 4px;
    padding: 16px;
    background: rgba(3, 8, 7, 0.96);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu a {
    padding: 13px 14px;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
  }

  .mobile-menu a:hover {
    color: var(--mint);
    background: rgba(255, 255, 255, 0.06);
  }

  .hero {
    min-height: 720px;
    background-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 7, 5, 0.2) 45%, rgba(0, 5, 4, 0.9) 100%),
      radial-gradient(circle at 50% 32%, rgba(21, 218, 160, 0.18), transparent 48%);
  }

  .hero-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    padding: 78px 16px 38px;
  }

  .hero-logo {
    width: min(300px, 76vw);
    margin-bottom: -12px;
  }

  .hero h1 {
    margin-top: 8px;
    font-size: 34px;
  }

  .hero-copy {
    max-width: 330px;
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-downloads {
    gap: 7px;
    margin-top: 20px;
  }

  .download-pill {
    min-width: 0;
    width: 32%;
    height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 7px;
    border-radius: 14px;
  }

  .download-pill .platform-label {
    grid-row: auto;
    padding: 0;
    border: 0;
    font-size: 10px;
  }

  .download-pill strong {
    align-self: auto;
    font-size: 13px;
  }

  .hero-route {
    align-self: center;
    margin-top: 13px;
  }

  .feature,
  .feature-inner,
  .feature-reverse {
    min-height: 0;
  }

  .feature-inner,
  .feature-reverse {
    grid-template-columns: 1fr;
  }

  .feature-copy,
  .feature-reverse .feature-copy {
    grid-column: 1;
    grid-row: 1;
    padding: 42px 24px 22px;
  }

  .feature img,
  .feature-reverse img {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .feature-index {
    top: 26px;
    left: 15px;
    font-size: 86px;
  }

  .feature-kicker {
    font-size: 15px;
  }

  .feature h2 {
    font-size: 30px;
  }

  .feature h3 {
    font-size: 19px;
  }

  .feature-copy > p:last-child {
    font-size: 14px;
    line-height: 1.75;
  }

  .downloads {
    padding: 62px 14px;
  }

  .download-panel {
    padding: 32px 16px;
    border-radius: 22px;
  }

  .download-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .download-card {
    min-height: 104px;
    padding: 20px;
  }

  .site-footer {
    min-height: 280px;
    padding-bottom: 82px;
  }

  .toast {
    bottom: 88px;
    border-radius: 14px;
    text-align: center;
  }

  .mobile-download-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    color: #fff;
    background: rgba(3, 8, 7, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
  }

  .mobile-download-bar div {
    display: flex;
    flex-direction: column;
  }

  .mobile-download-bar span {
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-download-bar small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
  }

  .mobile-download-bar button {
    min-width: 112px;
    min-height: 42px;
  }
}

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

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