:root {
  --colbg: #ffefbc;
  --colgreen: #4e9514;
  --coltext: #522407;
  --colhover: #70ba0c;
  --maxw: 1180px;
  --radius: 22px;
  --shadow: 0 16px 40px rgba(82, 36, 7, 0.12);
  color-scheme: only light;
  supported-color-schemes: light;
}

@font-face {
  font-family: Font;
  src: url('images/LiberationSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: only light;
}

html, body {
  min-height: 100%;
  color-scheme: only light;
}

body {
  margin: 0;
  font-family: Font, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--coltext);
  background: var(--colbg);
  line-height: 1.6;
  text-align: center;
  overflow-x: hidden;
  color-scheme: only light;
}

@media (prefers-color-scheme: dark) {
  html,
  body,
  input,
  textarea,
  button,
  select {
    color-scheme: only light;
    background-color: var(--colbg);
    color: var(--coltext);
  }
}

body.no-scroll {
  overflow: hidden;
}

body.no-scroll .site-header {
  visibility: hidden;
}

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

a {
  color: var(--colgreen);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--colhover);
}

h1, h2, h3, h4 {
  font-family: Font, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--coltext);
}

p {
  margin: 0 0 16px;
}

.wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 84px 0;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--colgreen);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p {
  color: var(--coltext);
  font-size: 18px;
  opacity: 0.82;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0 10px;
  background: transparent;
}

.header-inner {
  position: relative;
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 22px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(82, 36, 7, 0.1);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  height: 52px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--coltext);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--colhover);
}

.site-nav .nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--colgreen);
  color: #fff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  background: var(--colhover);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  background: var(--coltext);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  margin-top: -94px;
  padding: 126px 0 72px;
  background: url('images/bg.jpg') center 8% / cover no-repeat;
  min-height: 760px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 239, 188, 0.82) 0%, rgba(255, 239, 188, 0.55) 38%, rgba(255, 239, 188, 0.12) 62%, transparent 78%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.hero-text {
  text-align: left;
  max-width: 560px;
  padding: 26px 28px;
  border-radius: 28px;
  background: rgba(255, 239, 188, 0.9);
  box-shadow: 0 12px 30px rgba(82, 36, 7, 0.1);
}

.hero-logo {
  width: min(420px, 100%);
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 20px rgba(82, 36, 7, 0.18));
}

.hero-kicker,
.hero h1,
.hero-lead {
  color: var(--coltext);
}

.hero-kicker {
  margin-bottom: 8px;
  color: var(--colgreen);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 520px;
  font-size: 18px;
}

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

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--colgreen);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(78, 149, 20, 0.28);
}

.btn-play:hover {
  background: var(--colhover);
  color: #fff;
  transform: translateY(-2px);
}

.appstore-btn img {
  width: auto;
  height: 52px;
}

.appstore-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.app-icon,
.download-icon {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  box-shadow: var(--shadow);
}

.hero-phone img {
  width: min(320px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 24px 36px rgba(82, 36, 7, 0.22));
}

/* Highlights */

.highlights,
.howto,
.why,
.download,
.frame,
.header-inner,
.highlight-card,
.step-card,
.why-card,
.mode-card,
.support-card {
  color-scheme: only light;
}

.highlights {
  padding: 28px 0 12px;
  background: #fff;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.highlight-card,
.step-card,
.why-card,
.mode-card,
.support-card {
  background: #fff;
  border: 1px solid rgba(78, 149, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-card {
  padding: 28px 20px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover,
.why-card:hover,
.step-card:hover {
  transform: translateY(-4px);
}

.highlight-card img,
.why-card img {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
}

.highlight-card h3,
.step-card h3,
.why-card h3,
.mode-card h3 {
  font-size: 22px;
}

.highlight-card p,
.step-card p,
.why-card p,
.mode-card p {
  margin: 0;
  font-size: 15px;
  opacity: 0.84;
}

/* About */

.about {
  background: var(--colbg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.about-copy h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.about-copy p {
  font-size: 17px;
}

.about-art img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* How to play */

.howto {
  background: #fff;
}

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

.step-card:nth-child(-n+3) {
  grid-column: span 2;
}

.step-card:nth-child(n+4) {
  grid-column: span 3;
}

.step-card {
  padding: 24px 18px;
  text-align: left;
}

.step-num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--colgreen);
  font-size: 26px;
  font-weight: 700;
}

/* Modes */

.modes {
  background: var(--colbg);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mode-card {
  overflow: hidden;
  text-align: left;
}

.mode-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
}

.mode-copy {
  padding: 24px 24px 28px;
}

/* Why */

.why {
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.why-card {
  padding: 28px 20px 26px;
}

/* Gallery */

.gallery {
  background: var(--colbg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.gallery-thumb {
  padding: 0;
  border: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(82, 36, 7, 0.18);
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.gallery-thumb:focus-visible {
  outline: 3px solid var(--colgreen);
  outline-offset: 3px;
}

/* Quote */

.quote-banner {
  padding: 72px 0;
  background: url('images/splash.jpg') center 62% / cover no-repeat;
}

.quote-inner {
  max-width: 760px;
  padding: 36px 32px;
  border-radius: 28px;
  background: rgba(255, 239, 188, 0.92);
  box-shadow: var(--shadow);
}

.quote-inner p {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.35;
}

/* Download */

.download {
  background: #fff;
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-icon {
  margin-bottom: 22px;
}

.download h2 {
  font-size: clamp(30px, 4vw, 46px);
  max-width: 720px;
}

.download p {
  max-width: 540px;
  font-size: 18px;
}

.appstore-btn-lg img {
  height: 62px;
}

/* Footer */

.site-footer {
  padding: 28px 0 32px;
  background: var(--colgreen);
  color: #fff;
}

.footer-inner {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-copy {
  margin: 0;
  color: #fff;
  font-size: 14px;
  text-align: left;
}

.footer-logo img {
  height: 46px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-company {
  color: #fff;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--colbg);
}

.footer-company {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 16px auto 0;
  opacity: 0.88;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(82, 36, 7, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  max-width: min(92vw, 420px);
  max-height: 82vh;
}

.lightbox-content img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--colgreen);
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* Inner pages */

.frame {
  width: min(920px, calc(100% - 40px));
  margin: 32px auto 56px;
  padding: 48px 40px 56px;
  text-align: left;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.frame h1 {
  font-size: clamp(34px, 4vw, 46px);
}

.frame p,
.frame li,
.frame address {
  font-size: 16px;
}

.frame a {
  color: var(--colgreen);
  font-weight: 700;
}

.frame a:hover {
  color: var(--colhover);
}

.privacy-page,
.terms-page {
  color: var(--coltext);
}

.privacy-header,
.terms-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(78, 149, 20, 0.18);
}

.privacy-toc,
.terms-toc,
.support-card {
  margin: 28px 0 36px;
  padding: 22px 24px;
}

.privacy-toc ol,
.terms-toc ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.privacy-page section,
.terms-page section {
  margin-bottom: 34px;
}

.support-page {
  text-align: center;
}

.support-page h1,
.support-page > p {
  text-align: center;
}

.support-icon {
  margin: 0 auto 20px;
}

.support-card {
  display: inline-block;
  min-width: min(100%, 420px);
  text-align: left;
}

.support-card p:last-child {
  margin-bottom: 0;
}

.nofound {
  text-align: center;
  padding: 56px 20px 80px;
}

.nofound h1 {
  text-align: center;
}

.nofound p {
  font-size: 18px;
}

/* Utility */

.p12 { font-size: 12px; }
.p14 { font-size: 14px; }
.p16 { font-size: 16px !important; }
.p17 { font-size: 17px !important; }
.p18 { font-size: 18px !important; }
.p20 { font-size: 20px; }
.p21 { font-size: 21px; }
.p22 { font-size: 22px; }
.p24 { font-size: 24px; }
.p25 { font-size: 25px; }
.p26 { font-size: 26px; }
.p30 { font-size: 30px; }
.p36 { font-size: 36px; }
.p40 { font-size: 40px; }
.p48 { font-size: 48px; }
.pwhite { color: #fff; }

.smaller {
  scale: 0.7;
}

body::-webkit-scrollbar {
  width: 10px;
  background: var(--colbg);
}

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

input, textarea {
  max-width: 800px;
  width: 85%;
  background: #fff;
  color: #333;
  font-size: 18px;
  height: 36px;
  padding: 5px 15px;
  border: 3px solid var(--colgreen);
  border-radius: 25px;
}

/* Responsive */

@media (max-width: 1100px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-card:nth-child(-n+3),
  .step-card:nth-child(n+4) {
    grid-column: auto;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .frame {
    padding: 36px 22px 44px;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 0;
    background-size: 170% auto;
    background-position: center top;
  }

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

  .hero-text,
  .about-copy {
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero-logo,
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-phone img {
    width: min(280px, 80vw);
  }

  .about-art img {
    max-width: 560px;
    margin: 0 auto;
  }

  .step-card,
  .mode-card {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }

  .header-inner {
    min-height: 58px;
    padding: 6px 14px;
  }

  .hero {
    margin-top: -82px;
    padding: 104px 0 36px;
    background-size: 220% auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-header {
    background: transparent;
  }

  .header-inner {
    border-radius: 28px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 0 18px;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 14px 24px;
  }

  .site-nav .nav-cta {
    width: calc(100% - 48px);
    margin: 8px 24px 4px;
  }

  .steps-grid,
  .modes-grid,
  .why-grid,
  .highlights-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-copy,
  .footer-links {
    text-align: center;
    justify-content: center;
  }

  .section-pad,
  .quote-banner {
    padding: 56px 0;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 500px) {
  .wrap,
  .header-inner,
  .footer-inner,
  .footer-company,
  .frame {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 28px 0 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .appstore-btn img,
  .appstore-btn-lg img {
    height: 48px;
  }

  .quote-inner {
    padding: 24px 18px;
  }

  .mode-card img {
    max-height: 340px;
  }
}
