:root {
  --ink: #2f221c;
  --muted: #725f56;
  --paper: #f8fbf7;
  --white: #ffffff;
  --line: rgba(47, 34, 28, 0.14);
  --coral: #ff6f68;
  --salmon: #ff9b87;
  --mint: #34c7a1;
  --sea: #118a8a;
  --gold: #f7c755;
  --plum: #7c4d7b;
  --soy: #6a3926;
  --shadow: 0 22px 70px rgba(47, 34, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: #34221f;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-shot {
  position: absolute;
  width: clamp(188px, 20vw, 310px);
  aspect-ratio: 333 / 592;
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.42);
}

.hero-shot-main {
  right: 14vw;
  top: 7vh;
  width: clamp(230px, 25vw, 382px);
  transform: rotate(3deg);
  opacity: 0.98;
}

.hero-shot-level {
  right: 36vw;
  top: 16vh;
  transform: rotate(-11deg);
  opacity: 0.62;
}

.hero-shot-complete {
  right: -2vw;
  top: 26vh;
  transform: rotate(11deg);
  opacity: 0.58;
}

.hero-shot-board {
  left: 6vw;
  bottom: -22vh;
  transform: rotate(-8deg);
  opacity: 0.22;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(38, 23, 19, 0.96) 0%, rgba(45, 25, 22, 0.9) 42%, rgba(45, 25, 22, 0.4) 100%),
    linear-gradient(180deg, rgba(255, 111, 104, 0.12), rgba(17, 138, 138, 0.1));
}

.site-header {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img,
.hero-kicker img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.nav-links a {
  min-width: 84px;
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 64px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 8px 15px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.875rem;
  font-weight: 850;
  letter-spacing: 0;
  backdrop-filter: blur(16px);
}

.hero h1 {
  width: min(720px, 100%);
  margin: 0;
  font-size: 6rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  width: min(620px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.25rem;
}

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

.store-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.store-button {
  gap: 12px;
  padding: 10px 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.store-button small {
  display: block;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1;
  font-weight: 800;
}

.store-button:hover,
.store-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.play-mark {
  width: 25px;
  height: 28px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background:
    linear-gradient(145deg, var(--mint) 0 32%, #52a9ff 32% 58%, var(--gold) 58% 76%, var(--coral) 76%);
}

.ghost-button {
  min-width: 126px;
  padding: 0 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.hero-highlights {
  position: relative;
  z-index: 3;
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  transform: translateY(50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-highlights div {
  min-height: 104px;
  padding: 22px 18px;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-highlights div + div {
  border-left: 1px solid var(--line);
}

.hero-highlights strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-highlights span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 850;
}

main {
  padding-top: 72px;
}

.section-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.gameplay {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 68px;
  align-items: center;
}

.section-copy,
.screen-copy,
.download-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--sea);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.25rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.375rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-copy p,
.screen-copy p,
.download-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.compact {
  width: min(730px, 100%);
  margin-bottom: 30px;
}

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

.step-card,
.feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(47, 34, 28, 0.08);
}

.step-card {
  min-height: 258px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.step-number {
  width: 48px;
  height: 48px;
  margin-bottom: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #5d201d;
  background: #ffe2dc;
  font-weight: 950;
}

.step-card:nth-child(2) .step-number {
  color: #095f55;
  background: #dff8ef;
}

.step-card:nth-child(3) .step-number {
  color: #684107;
  background: #fff0c4;
}

.step-card p,
.feature-card p {
  margin: auto 0 0;
  color: var(--muted);
}

.screens {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(340px, 1.12fr);
  gap: 76px;
  align-items: center;
}

.screen-viewer {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(230px, 390px) 52px;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.phone-stage {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 333 / 592;
  margin: 0 auto;
  overflow: hidden;
  border: 12px solid #34221f;
  border-radius: 42px;
  background: #34221f;
  box-shadow: var(--shadow);
}

.phone-stage::before {
  content: "";
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 10px;
  width: 84px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #34221f;
}

.phone-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
  pointer-events: none;
}

.phone-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-slide figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 34, 28, 0.1);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 950;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
}

.viewer-button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(47, 34, 28, 0.1);
  cursor: pointer;
}

.viewer-button span {
  display: block;
  width: 13px;
  height: 13px;
  margin: auto;
  border-top: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
}

.viewer-button.prev span {
  transform: rotate(-135deg);
}

.viewer-button.next span {
  transform: rotate(45deg);
}

.viewer-button:hover,
.viewer-button:focus-visible {
  border-color: rgba(17, 138, 138, 0.52);
  outline: none;
}

.viewer-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 34, 28, 0.24);
  cursor: pointer;
}

.dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: var(--coral);
}

.features {
  padding-top: 58px;
}

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

.feature-card {
  min-height: 246px;
  padding: 24px;
}

.feature-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 40px;
  border-radius: 8px;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
}

.icon-pin {
  background: #ffe1dd;
}

.icon-pin::before {
  left: 27px;
  top: 9px;
  width: 6px;
  height: 38px;
  border-radius: 6px;
  background: var(--soy);
  transform: rotate(35deg);
}

.icon-pin::after {
  left: 16px;
  top: 21px;
  width: 24px;
  height: 24px;
  border: 4px solid var(--coral);
  border-radius: 50%;
  background: #fff8ec;
}

.icon-levels {
  background: #e2f6ef;
}

.icon-levels::before {
  inset: 13px;
  background:
    linear-gradient(var(--mint), var(--mint)) left top / 12px 12px no-repeat,
    linear-gradient(var(--coral), var(--coral)) right top / 12px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 12px 12px no-repeat,
    linear-gradient(var(--sea), var(--sea)) right bottom / 12px 12px no-repeat;
  border-radius: 4px;
}

.icon-sushi {
  background: #fff0c9;
}

.icon-sushi::before {
  left: 12px;
  top: 13px;
  width: 32px;
  height: 32px;
  border: 6px solid #fff;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--salmon) 0 48%, #9ed971 48% 72%, #f4d77a 72%);
  box-shadow: inset 0 0 0 2px rgba(106, 57, 38, 0.18);
}

.icon-cup {
  background: #edf4ff;
}

.icon-cup::before {
  left: 15px;
  top: 20px;
  width: 27px;
  height: 22px;
  border-radius: 0 0 10px 10px;
  background: #5aa2ff;
}

.icon-cup::after {
  right: 9px;
  top: 24px;
  width: 11px;
  height: 12px;
  border: 4px solid #5aa2ff;
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.icon-trophy {
  background: #fff2d2;
}

.icon-trophy::before {
  left: 18px;
  top: 12px;
  width: 20px;
  height: 24px;
  border-radius: 4px 4px 10px 10px;
  background: var(--gold);
}

.icon-trophy::after {
  left: 14px;
  bottom: 12px;
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: var(--soy);
}

.icon-offline {
  background: #efe9f5;
}

.icon-offline::before {
  left: 15px;
  top: 18px;
  width: 27px;
  height: 22px;
  border-radius: 7px;
  background: var(--plum);
}

.icon-offline::after {
  left: 22px;
  top: 10px;
  width: 12px;
  height: 14px;
  border: 4px solid var(--plum);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.download {
  margin-top: 20px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(52, 34, 31, 0.96), rgba(52, 34, 31, 0.88)),
    url("assets/screen-1.png") center / cover;
}

.download-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}

.download-media {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  align-items: center;
}

.download-media img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.pin-plate {
  position: relative;
  width: 132px;
  height: 132px;
  border: 7px solid #ffffff;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--salmon) 0 36%, #a7d77d 36% 58%, #ffe18e 58% 76%, #ffffff 76%);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.55),
    0 18px 42px rgba(0, 0, 0, 0.22);
}

.pin {
  position: absolute;
  left: 61px;
  top: -20px;
  width: 8px;
  height: 78px;
  border-radius: 999px;
  background: #f4c45b;
  border: 2px solid var(--soy);
  transform-origin: 4px 86px;
}

.pin-b {
  transform: rotate(72deg);
}

.pin-c {
  transform: rotate(144deg);
}

.pin-d {
  transform: rotate(246deg);
}

.download h2 {
  margin-bottom: 16px;
  color: var(--white);
}

.download-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.download .eyebrow {
  color: #8be2cc;
}

.store-button.dark {
  margin-top: 28px;
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.store-button.dark small {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--sea);
  font-weight: 900;
}

@media (max-width: 1020px) {
  .hero-shot-level {
    right: 42vw;
  }

  .hero-shot-main {
    right: 1vw;
  }

  .hero-shot-complete {
    display: none;
  }

  .gameplay,
  .screens,
  .download-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .step-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-media {
    max-width: 380px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 0;
  }

  .site-header {
    width: min(calc(100% - 28px), 1180px);
    padding-top: 16px;
    gap: 10px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    gap: 2px;
    padding: 4px;
  }

  .nav-links a {
    min-width: 50px;
    padding: 8px 9px;
    font-size: 0.8125rem;
  }

  .hero-content {
    width: min(calc(100% - 28px), 1180px);
    padding: 44px 0 40px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.0625rem;
  }

  .hero-actions {
    align-items: stretch;
  }

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

  .hero-shot {
    border-width: 7px;
    border-radius: 24px;
  }

  .hero-shot-main {
    right: -96px;
    top: 158px;
    width: 252px;
    opacity: 0.36;
  }

  .hero-shot-level {
    left: -72px;
    right: auto;
    top: 350px;
    width: 176px;
    opacity: 0.2;
  }

  .hero-shot-board {
    display: none;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(38, 23, 19, 0.94) 0%, rgba(38, 23, 19, 0.88) 68%, rgba(38, 23, 19, 0.76) 100%),
      linear-gradient(180deg, rgba(255, 111, 104, 0.12), rgba(17, 138, 138, 0.1));
  }

  .hero-highlights {
    width: calc(100% - 28px);
    transform: translateY(0);
    margin-bottom: 18px;
  }

  .hero-highlights div {
    min-height: 86px;
    padding: 14px 8px;
  }

  .hero-highlights strong {
    font-size: 1.35rem;
  }

  .hero-highlights span {
    font-size: 0.75rem;
  }

  main {
    padding-top: 0;
  }

  .section-wrap,
  .download-inner,
  .site-footer {
    width: min(calc(100% - 28px), 1180px);
  }

  .section-wrap {
    padding: 58px 0;
  }

  h2 {
    font-size: 2.35rem;
  }

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

  .step-card,
  .feature-card {
    min-height: 216px;
  }

  .screen-viewer {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .viewer-button {
    width: 44px;
    height: 44px;
  }

  .phone-stage {
    border-width: 9px;
    border-radius: 34px;
  }

  .download-inner {
    padding: 54px 0;
  }

  .download-media {
    grid-template-columns: 86px 1fr;
    gap: 18px;
  }

  .download-media img {
    width: 86px;
    height: 86px;
    border-radius: 20px;
  }

  .pin-plate {
    width: 112px;
    height: 112px;
  }

  .pin {
    left: 51px;
    height: 68px;
    transform-origin: 4px 74px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .hero-kicker {
    font-size: 0.8125rem;
  }

  .brand img,
  .hero-kicker img {
    width: 34px;
    height: 34px;
  }

  .screen-viewer {
    grid-template-columns: 1fr 1fr;
  }

  .phone-stage {
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(270px, 100%);
  }

  .viewer-button {
    grid-row: 2;
    justify-self: center;
  }

  .viewer-button.prev {
    grid-column: 1;
  }

  .viewer-button.next {
    grid-column: 2;
  }

  .viewer-dots {
    grid-row: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
