:root {
  --saffron: #f28c28;
  --gold: #ffc857;
  --chai: #6f3e24;
  --deep: #21110d;
  --lacquer: #3a1e13;
  --cream: #fff3d6;
  --paper: #fffbf2;
  --leaf: #3f8f62;
  --rose: #d8577d;
  --sky: #54b6bc;
  --ink: #26130e;
  --shadow: 0 24px 70px rgba(20, 7, 2, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 200, 87, 0.2), transparent 28rem),
    linear-gradient(145deg, #2b120c 0%, #512513 42%, #173d35 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(33, 17, 13, 0.48), rgba(33, 17, 13, 0.72)),
    url("assets/game_board_background.png") center / cover;
  opacity: 0.34;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 243, 214, 0.2);
  border-radius: 8px;
  background: rgba(35, 17, 11, 0.82);
  box-shadow: 0 14px 50px rgba(16, 6, 2, 0.28);
  backdrop-filter: blur(18px);
}

.brand,
.header-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.brand {
  gap: 10px;
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 800;
}

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

nav {
  display: flex;
  gap: clamp(12px, 3vw, 34px);
  color: rgba(255, 243, 214, 0.82);
  font-size: 0.94rem;
  font-weight: 800;
}

nav a:hover {
  color: var(--gold);
}

.header-cta,
.secondary-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 200, 87, 0.36);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero,
.play-band,
.features,
.rewards,
.download {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100vh - 88px);
  padding: clamp(48px, 7vw, 90px) 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 0.98;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 11vw, 8.6rem);
  text-wrap: balance;
}

h2 {
  color: var(--paper);
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  text-wrap: balance;
}

h3 {
  color: var(--paper);
  font-size: 1.55rem;
}

.hero-text,
.section-copy p,
.download p,
.feature-grid p {
  color: rgba(255, 243, 214, 0.82);
  font-size: clamp(1rem, 2vw, 1.16rem);
  font-weight: 600;
  line-height: 1.7;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action {
  gap: 10px;
  min-height: 58px;
  padding: 0 24px;
  border: 2px solid rgba(255, 251, 242, 0.74);
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(#ffe9a8, var(--gold));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  font-size: 1rem;
  font-weight: 950;
}

.primary-action img {
  width: 30px;
  height: 30px;
}

.secondary-action {
  min-height: 58px;
  padding-inline: 22px;
  background: rgba(255, 243, 214, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 42px;
}

.hero-stats div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 243, 214, 0.18);
  border-radius: 8px;
  background: rgba(26, 11, 7, 0.42);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--gold);
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1;
}

.hero-stats span {
  margin-top: 6px;
  color: rgba(255, 243, 214, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-art {
  position: relative;
  min-height: 580px;
}

.hero-board {
  position: relative;
  overflow: hidden;
  width: min(100%, 610px);
  min-height: 650px;
  margin-left: auto;
  border: 1px solid rgba(255, 243, 214, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(rgba(26, 10, 6, 0.14), rgba(26, 10, 6, 0.38)),
    url("assets/game_board_background.png") center / cover;
  box-shadow: var(--shadow);
}

.hero-level {
  width: min(360px, calc(100% - 40px));
  min-height: 58px;
  margin: 24px auto 0;
  padding: 14px 20px;
  border: 1px solid rgba(212, 154, 58, 0.62);
  border-radius: 8px;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(92, 47, 26, 0.92), rgba(47, 27, 20, 0.94));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  font-weight: 950;
  text-align: center;
}

.hero-glasses {
  position: absolute;
  right: 5%;
  bottom: 96px;
  left: 5%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.hero-glass {
  position: relative;
  aspect-ratio: 0.54;
  filter: drop-shadow(0 10px 9px rgba(0, 0, 0, 0.28));
}

.hero-glass span {
  position: absolute;
  right: 22%;
  bottom: calc(15% + (var(--slot) * 15.5%));
  left: 23%;
  z-index: 1;
  display: block;
  height: 16.5%;
  border-radius: 8px 8px 14px 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c), white 18%), var(--c) 52%, color-mix(in srgb, var(--c), #2f1b14 18%));
}

.hero-glass::before,
.hero-glass::after {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  content: "";
}

.hero-glass::before {
  inset: 4% 8% 6%;
  border: clamp(2px, 0.55vw, 4px) solid rgba(255, 245, 218, 0.68);
  border-top-color: rgba(212, 154, 58, 0.86);
  border-bottom-color: rgba(212, 154, 58, 0.62);
  border-radius: 48% 48% 34% 34% / 9% 9% 14% 14%;
  box-shadow:
    inset 10px 0 12px rgba(255, 255, 255, 0.18),
    inset -10px 0 12px rgba(47, 27, 20, 0.18);
}

.hero-glass::after {
  top: 3%;
  right: 8%;
  left: 8%;
  height: 10%;
  border: clamp(2px, 0.45vw, 4px) solid rgba(255, 245, 218, 0.76);
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(212, 154, 58, 0.38);
}

.tilt-left {
  transform: rotate(-5deg) translateY(18px);
}

.lift {
  transform: translateY(-18px);
}

.tilt-right {
  transform: rotate(5deg) translateY(18px);
}

.hero-counter {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  background: url("assets/game_counter_surface.png") center bottom / cover;
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 243, 214, 0.28);
  border-radius: 999px;
  background: rgba(35, 17, 11, 0.84);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  font-weight: 900;
}

.floating-chip img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.chip-coins {
  right: 34px;
  bottom: 40px;
}

.chip-hint {
  left: 0;
  top: 82px;
}

.play-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  padding: 70px 0;
}

.section-copy {
  max-width: 560px;
}

.phone-preview {
  position: relative;
  overflow: hidden;
  width: min(100%, 430px);
  min-height: 720px;
  margin-inline: auto;
  padding: 28px 22px 26px;
  border: 9px solid #1b0c08;
  border-radius: 38px;
  background:
    linear-gradient(rgba(28, 12, 7, 0.32), rgba(28, 12, 7, 0.54)),
    url("assets/game_board_background.png") center / cover;
  box-shadow: var(--shadow);
}

.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(32, 14, 9, 0.72);
  color: var(--paper);
  font-weight: 950;
}

.hud span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud img {
  width: 24px;
  height: 24px;
}

.tube-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 22px 12px;
  margin-top: 92px;
  padding-inline: 10px;
}

.tube {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  width: 100%;
  aspect-ratio: 0.54;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tube span {
  position: absolute;
  right: 22%;
  bottom: calc(15% + (var(--slot) * 15.5%));
  left: 23%;
  z-index: 1;
  display: block;
  height: 16.5%;
  border-radius: 8px 8px 14px 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c), white 18%), var(--c) 52%, color-mix(in srgb, var(--c), #2f1b14 18%));
}

.tube::before,
.tube::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.tube::after {
  z-index: 4;
  inset: 4% 8% 6%;
  border: 2px solid rgba(255, 245, 218, 0.62);
  border-top-color: rgba(255, 245, 218, 0.78);
  border-bottom-color: rgba(212, 154, 58, 0.62);
  border-radius: 48% 48% 34% 34% / 9% 9% 14% 14%;
  box-shadow:
    inset 7px 0 8px rgba(255, 255, 255, 0.18),
    inset -8px 0 9px rgba(47, 27, 20, 0.2);
}

.tube::before {
  top: 3%;
  right: 8%;
  left: 8%;
  z-index: 5;
  height: 10%;
  border: 2px solid rgba(255, 245, 218, 0.7);
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(212, 154, 58, 0.32);
}

.tube.selected {
  transform: translateY(-14px);
}

.tube.selected::after {
  border-color: rgba(255, 200, 87, 0.88);
  box-shadow:
    inset 7px 0 8px rgba(255, 255, 255, 0.18),
    inset -8px 0 9px rgba(47, 27, 20, 0.2),
    0 0 12px rgba(255, 200, 87, 0.52);
}

.counter {
  position: absolute;
  right: 0;
  bottom: 88px;
  left: 0;
  height: 100px;
  background: url("assets/game_counter_surface.png") center bottom / cover;
}

.tool-row {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.tool-row button {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 243, 214, 0.72);
  border-radius: 8px;
  background: linear-gradient(#ffe9a8, var(--gold));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.tool-row img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}


.features {
  padding: 74px 0;
}

.section-heading {
  max-width: 720px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-grid article {
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(255, 243, 214, 0.18);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 243, 214, 0.12), rgba(22, 74, 62, 0.22));
}

.feature-grid img {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  object-fit: contain;
}

.rewards {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  padding: 60px 0 86px;
}

.reward-panel {
  display: grid;
  gap: 16px;
}

.reward-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 2px 18px;
  align-items: center;
  min-height: 122px;
  padding: 18px;
  border: 1px solid rgba(255, 243, 214, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 243, 214, 0.14), rgba(25, 89, 76, 0.22)),
    rgba(35, 17, 11, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.reward-card.active {
  transform: translateX(24px);
}

.reward-card img {
  grid-row: span 2;
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.reward-card strong {
  color: var(--paper);
  font-size: 1.16rem;
  font-weight: 950;
}

.reward-card span {
  color: rgba(255, 243, 214, 0.72);
  font-weight: 750;
}

.download {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 30px;
  padding: 30px;
  border: 1px solid rgba(255, 243, 214, 0.22);
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(255, 243, 214, 0.16), rgba(20, 90, 78, 0.28));
}

.download > img {
  width: 128px;
  height: 128px;
  border-radius: 8px;
  object-fit: cover;
}

.download h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
  color: rgba(255, 243, 214, 0.68);
  font-size: 0.92rem;
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero,
  .play-band,
  .rewards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    max-width: 9ch;
  }

  .hero-art {
    min-height: auto;
  }

  .hero-board {
    margin-inline: auto;
  }

  .chip-hint {
    left: 12px;
    top: 18px;
  }

  .chip-coins {
    right: 12px;
    bottom: 18px;
  }

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

  .download {
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .play-band,
  .features,
  .rewards,
  .download,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .floating-chip {
    position: static;
    width: max-content;
    max-width: 100%;
    margin: 10px auto 0;
  }

  .phone-preview {
    min-height: 620px;
    padding: 22px 14px;
    border-width: 7px;
    border-radius: 30px;
  }

  .tube-grid {
    gap: 18px 8px;
    margin-top: 72px;
  }

  .feature-grid article {
    min-height: auto;
  }

  .reward-card.active {
    transform: none;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
