:root {
  --navy: #000000;
  --navy-3: #141414;
  --bar: #000000;
  --foot: #0a0a0a;
  --pay-line: #2a2a2a;
  --teal: #e31c3d;
  --teal-2: #ff3b5c;
  --ink: #ffffff;
  --muted: #b8b8b8;
  --yellow: #ffe500;
  --mast: 72px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --scroll: rgba(255, 255, 255, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

*::-webkit-scrollbar {
  width: 5px;
  height: 4px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--scroll);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(227, 28, 61, 0.45);
}

html,
body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--yellow);
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10000;
  background: var(--teal);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  left: 8px;
}

.cursor-pointer {
  cursor: pointer;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 0 24px;
  background: #000;
}

main .wrap {
  padding-left: 0;
  padding-right: 0;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--mast);
  background: var(--bar);
  border-bottom: 0;
}

.mast-inner {
  display: flex;
  align-items: center;
  min-height: var(--mast);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 118px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 52px;
  min-width: 118px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 0;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-primary a,
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-primary a:hover,
.nav-primary a.is-on,
.nav-cta:hover {
  color: #fff;
  background: rgba(227, 28, 61, 0.16);
  text-decoration: none;
}

.nav-primary a.is-on {
  box-shadow: inset 0 -2px 0 var(--teal);
}

.mast-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.menu-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.burger,
.close-nav {
  display: none;
}

[role="button"][aria-label="pachipachi"] {
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

[role="button"][aria-label="pachipachi"]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.act-login,
.act-join,
.mob-login,
.mob-join,
.hero-play,
.hero-join,
.lost-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.act-login,
.mob-login {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.act-login:hover,
.mob-login:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.act-join,
.mob-join,
.hero-join {
  background: #ececec;
  color: #111;
}

.act-join:hover,
.mob-join:hover,
.hero-join:hover {
  background: #fff;
}

.hero-play,
.lost-play {
  background: var(--teal);
  color: #fff;
}

.hero-play:hover,
.lost-play:hover {
  background: var(--teal-2);
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-banner {
  position: relative;
  background: #1a0004;
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: left center;
}

.hero-promo {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 48%;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-promo .line-y {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(13px, 2.1vw, 22px);
}

.hero-promo .line-w {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(22px, 3.6vw, 42px);
}

.hero-promo .line-bonus {
  margin: 2px 0 6px;
  color: #fff;
  font-size: clamp(36px, 6.2vw, 72px);
  letter-spacing: -0.03em;
}

.hero-promo .line-next {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(22px, 3.8vw, 44px);
}

.hero-promo .line-crypto {
  margin: 4px 0 0;
  color: var(--yellow);
  font-size: clamp(14px, 2.4vw, 26px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 36px 0 28px;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.lost h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--muted);
}

.hero-actions,
.lost-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promo-banner {
  margin: 20px 0 8px;
  overflow: hidden;
  border-radius: 16px;
}

.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

.promo-mid {
  margin: 32px 0;
}

.promo-wide img {
  max-height: none;
  object-fit: contain;
}

.signup-banner {
  position: relative;
  margin: 32px 0;
  overflow: hidden;
  border-radius: 16px;
  background: #2a0008;
}

.signup-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: right center;
}

.signup-copy {
  position: absolute;
  left: 6%;
  top: 48%;
  transform: translateY(-50%);
  z-index: 2;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.signup-copy .stack {
  margin: 0;
  font-size: clamp(22px, 4vw, 48px);
}

.signup-copy .stack .i-dot {
  position: relative;
  color: #fff;
}

.signup-copy .stack .i-dot::after {
  content: "";
  position: absolute;
  top: 0.02em;
  left: 50%;
  width: 0.2em;
  height: 0.2em;
  margin-left: -0.1em;
  background: var(--teal);
  border-radius: 50%;
}

.signup-copy .cta-line {
  margin: 10px 0 0;
  font-size: clamp(18px, 3.2vw, 36px);
}

.ui-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-arrow .ui-icon,
.nav-search .ui-icon {
  width: 22px;
  height: 22px;
}

.catbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

.cat-chip,
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cat-link:hover,
.cat-chip:hover {
  color: var(--teal-2);
  text-decoration: none;
}

.lobby {
  padding: 12px 0 8px;
}

.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.row-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.row-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.show-all,
.nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.nav-arrow {
  width: 32px;
  height: 32px;
  padding: 0;
}

.nav-arrow .ui-icon {
  width: 18px;
  height: 18px;
}

.row-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

.tile,
.live-tile {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--navy-3);
}

.tile,
.live-tile {
  width: 148px;
}

.tile img,
.live-tile img {
  width: 148px;
  height: 222px;
  object-fit: cover;
}

.tile:hover img,
.live-tile:hover img {
  transform: scale(1.04);
}

.tile img,
.live-tile img {
  transition: transform 0.25s ease;
}

.tile-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 8px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.content {
  padding: 28px 0 48px;
}

.prose {
  max-width: none;
}

.prose h2,
.prose h3 {
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: clamp(24px, 3vw, 32px);
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 20px;
}

.prose p,
.prose li {
  color: #d8d8d8;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.pay-row,
.rg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 20px;
}

.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.pay-logo img {
  width: 90px;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.rg-badge img {
  width: 41px;
  height: 41px;
}

.site-foot {
  background: var(--foot);
  border-top: 1px solid var(--pay-line);
  padding: 36px 0 24px;
  color: var(--muted);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
}

.foot-brand img {
  height: 56px;
  width: auto;
  min-width: 118px;
  max-width: 180px;
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 0;
}

.site-foot h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-foot li + li {
  margin-top: 8px;
}

.site-foot a,
.foot-cta {
  color: var(--muted);
  font-size: 14px;
}

.foot-cta:hover,
.site-foot a:hover {
  color: var(--teal-2);
  text-decoration: none;
}

.disclaimer {
  margin: 8px 0 18px;
  padding: 16px 0;
  background: transparent;
  border: 0;
  font-size: 13px;
  line-height: 1.55;
}

.disclaimer p {
  margin: 0 0 10px;
}

.disclaimer p:last-child {
  margin: 0;
}

.copy {
  margin: 16px 0 0;
  font-size: 13px;
  text-align: center;
}

.lost {
  padding: 72px 0 80px;
  text-align: center;
}

.lost p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 22px;
}

@media (max-width: 980px) {
  .hero-copy,
  .hero-lead {
    max-width: none;
    width: 100%;
  }

  .hero-banner-img {
    max-height: 320px;
    object-position: left top;
  }

  .hero-promo {
    top: 3%;
    right: 4%;
    transform: none;
    max-width: 52%;
  }

  .nav-primary,
  .mast-actions {
    display: none;
  }

  .burger,
  .close-nav {
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    cursor: pointer;
    flex-shrink: 0;
    color: #fff;
  }

  .burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
  }

  .burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
  }

  .close-nav {
    display: none;
    font-size: 28px;
    line-height: 1;
  }

  .menu-toggle:checked ~ .mast {
    z-index: 90;
  }

  .menu-toggle:checked ~ .mast .burger {
    display: none;
  }

  .menu-toggle:checked ~ .mast .close-nav {
    display: inline-flex;
  }

  .mobile-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.78);
  }

  .menu-toggle:checked ~ .mobile-panel {
    display: block;
  }

  .mobile-card {
    width: min(88vw, 360px);
    height: 100%;
    margin-left: auto;
    background: var(--bar);
    padding: 56px 18px 32px;
    overflow: auto;
  }

  .mobile-card nav {
    display: grid;
    gap: 6px;
    margin: 18px 0;
  }

  .mobile-card nav a,
  .mobile-card .nav-cta {
    display: block;
    padding: 12px 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }

  .mob-login,
  .mob-join {
    width: 100%;
    margin-top: 8px;
  }

  .live-tile,
  .tile {
    width: 132px;
  }

  .live-tile img,
  .tile img {
    width: 132px;
    height: 198px;
  }
}

@media (max-width: 640px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }

  .hero-copy {
    padding: 28px 0 24px;
  }

  .brand img {
    height: 42px;
    width: auto;
    min-width: 110px;
  }

  .hero-promo {
    top: 2%;
    right: 3%;
    transform: none;
    max-width: 64%;
  }

  .hero-promo .line-y {
    font-size: 10px;
  }

  .hero-promo .line-w {
    font-size: 15px;
  }

  .hero-promo .line-bonus {
    font-size: 26px;
    margin: 0 0 2px;
  }

  .hero-promo .line-next {
    font-size: 15px;
  }

  .hero-promo .line-crypto {
    font-size: 10px;
    letter-spacing: 0;
  }

  .hero-banner-img {
    max-height: 220px;
    object-position: left top;
  }

  .signup-copy {
    left: 4%;
  }

  .tile,
  .live-tile {
    width: 118px;
  }

  .tile img,
  .live-tile img {
    width: 118px;
    height: 177px;
  }

  .content {
    padding-bottom: 32px;
  }
}
