:root {
  color-scheme: only light;
  --colbg: #fef8ec;
  --colyellow: #fede5b;
  --colblue: #8cd4fd;
  --colhover: #ac71ff;
  --maxw: 1180px;
  --radius: 28px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

@font-face {
  font-family: Font;
  src: url('images/Nunito-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: only light;
  background: var(--colbg);
}

html, body {
  min-height: 100%;
  background: var(--colbg);
  color: #000;
}

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

body.no-scroll {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--colhover);
  filter: contrast(130%);
}

h1, h2, h3, h4 {
  font-family: Font, "Segoe UI", sans-serif;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #000;
}

p {
  margin: 0 0 16px;
}

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

/* Buttons */

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--colyellow);
  color: #000;
  font-family: Font, "Segoe UI", sans-serif;
  font-size: 18px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
}

.btn-yellow:hover {
  color: #000;
  background: var(--colyellow);
  transform: translateY(-2px);
  filter: none;
}

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

.appstore-btn:hover {
  opacity: 0.88;
  filter: none;
}

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

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 248, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  position: relative;
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #000;
  flex-shrink: 0;
}

.brand:hover,
.footer-brand:hover {
  color: #000;
  filter: none;
}

.brand-icon {
  width: 48px;
  height: 48px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.brand span,
.footer-brand span {
  font-family: Font, "Segoe UI", sans-serif;
  font-size: 20px;
}

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

.site-nav a {
  color: #000;
  font-family: Font, "Segoe UI", sans-serif;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06);
}

.site-nav a:hover,
.site-nav a.active {
  color: #000;
  background: var(--colblue);
  filter: none;
}

.site-nav .btn-nav {
  background: var(--colyellow);
  color: #000;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
}

.site-nav .btn-nav:hover {
  background: var(--colyellow);
  color: #000;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  margin: 4px auto;
  background: #222;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* Hero */

.hero {
  position: relative;
  padding: 56px 0 110px;
  background-color: var(--colbg);
  background-image: url('images/bg.jpg');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(254, 248, 236, 0) 0%, var(--colbg) 100%);
  pointer-events: none;
}

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

.hero-copy {
  text-align: left;
  color: #000;
}

.hero-logo {
  width: min(280px, 100%);
  margin: 0 0 18px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: #000;
}

.hero-lead {
  font-size: 20px;
  max-width: 520px;
  color: #000;
}

.hero-copy p {
  max-width: 540px;
  font-size: 17px;
  color: #000;
}

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

.hero-phone {
  display: flex;
  justify-content: center;
}

.hero-phone img {
  width: min(320px, 100%);
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.16));
  animation: phone-float 4.5s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Highlights */

.highlights {
  padding: 20px 0 72px;
}

.highlights-grid,
.steps-grid,
.inside-grid,
.gallery-grid {
  display: grid;
  gap: 20px;
}

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

.highlight-item,
.step-card,
.inside-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-item {
  padding: 22px 14px 24px;
}

.highlight-item img,
.step-card img,
.inside-card img {
  width: auto;
  max-width: 96px;
  height: auto;
  margin: 0 auto 12px;
}

.highlight-item h3,
.step-card h3,
.inside-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.highlight-item p,
.step-card p,
.inside-card p {
  margin: 0;
  font-size: 14px;
  color: #000;
}

/* How to play */

.howto,
.inside,
.gallery,
.about,
.download {
  padding: 72px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-head h2,
.about-copy h2,
.download h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-head p {
  font-size: 18px;
  color: #000;
}

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

.step-card {
  position: relative;
  padding: 36px 20px 28px;
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--colyellow);
  color: #000;
  font-family: Font, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 36px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
}

/* What's inside */

.inside {
  background:
    linear-gradient(180deg, var(--colbg) 0%, #fff 48%, var(--colbg) 100%);
}

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

.inside-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  text-align: left;
}

.inside-card img {
  width: auto;
  max-width: 80px;
  height: auto;
  margin: 0;
  flex-shrink: 0;
}

.inside-card p {
  font-size: 15px;
}

/* Quote */

.quote {
  padding: 10px 0 72px;
}

.quote-text,
.quote-note {
  display: block;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.quote-text {
  margin-bottom: 16px;
  padding: 28px 36px;
  border-radius: 40px;
  background: var(--colblue);
  color: #000;
  font-family: Font, "Segoe UI", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.06);
}

.quote-note {
  width: fit-content;
  margin-bottom: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  font-family: Font, "Segoe UI", sans-serif;
  font-size: 16px;
  box-shadow: var(--shadow);
}

/* Gallery */

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

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

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

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

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-copy {
  text-align: left;
}

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

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

/* Download */

.download {
  padding-top: 20px;
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(254, 248, 236, 0.55) 0%, rgba(254, 248, 236, 0.92) 100%),
    url('images/bg.jpg') center / cover no-repeat;
  box-shadow: var(--shadow);
}

.download-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
}

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

/* Footer */

.site-footer {
  padding: 36px 0 42px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-inner {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-brand .brand-icon {
  width: 42px;
  height: 42px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-nav a {
  color: #000;
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--colhover);
  filter: none;
}

.footer-copy {
  margin: 0;
  color: #000;
  font-size: 14px;
}

/* Lightbox */

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

.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: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: var(--colyellow);
  color: #000;
  cursor: pointer;
  font-family: Font, "Segoe UI", sans-serif;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.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-family: Font, "Segoe UI", sans-serif;
  font-size: 16px;
}

/* Inner pages */

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

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

.frame h2 {
  font-size: 24px;
  margin-top: 28px;
}

.frame h3 {
  font-size: 18px;
}

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

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

.privacy-header,
.terms-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--colyellow);
}

.privacy-toc,
.terms-toc,
.support-card {
  margin: 28px 0 36px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--colbg);
}

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

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

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

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

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

.nofound {
  padding: 20px 10px 10px;
}

.nofound .brand-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
}

.nofound a {
  font-family: Font, "Segoe UI", sans-serif;
}

/* Forms */

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

/* 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(--colyellow);
  border-radius: 999px;
}

/* Responsive */

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

}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .inside-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-actions,
  .inside-card {
    justify-content: center;
  }

  .inside-card {
    flex-direction: column;
    align-items: center;
  }

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 18px;
    background: rgba(254, 248, 236, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    width: 100%;
  }

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

  .howto,
  .inside,
  .gallery,
  .about,
  .download {
    padding: 56px 0;
  }

  .frame {
    padding: 28px 22px;
  }

  .lightbox-prev {
    left: 8px;
  }

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

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

  .brand span {
    font-size: 16px;
  }

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

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

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

  .quote-text {
    padding: 22px 18px;
  }

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

  .btn-yellow {
    min-height: 48px;
    font-size: 16px;
  }
}

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

  .hero-phone img {
    animation: none;
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    color-scheme: only light;
    background: var(--colbg);
    color: #000;
  }
}
