@font-face {
  font-family: "Vazirmatn";
  src: url("./assets/fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("./assets/fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("./assets/fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10162c;
  --muted: #58637f;
  --paper: #fff7e8;
  --paper-2: #ffe9b2;
  --teal: #00a7b3;
  --teal-dark: #071a2f;
  --gold: #ffd23f;
  --amber: #ff8b2c;
  --crimson: #f2477f;
  --blue: #4357ff;
  --purple: #7b3cff;
  --lime: #7ed957;
  --white: #fffefa;
  --container: min(1120px, calc(100% - 40px));
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 22px 56px rgb(7 26 47 / 20%);
  --shadow-deep: 0 34px 86px rgb(0 0 0 / 38%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgb(255 210 63 / 22%), transparent 24%),
    radial-gradient(circle at 88% 10%, rgb(242 71 127 / 16%), transparent 25%),
    radial-gradient(circle at 78% 78%, rgb(0 167 179 / 16%), transparent 28%),
    linear-gradient(90deg, rgb(255 255 255 / 8%) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgb(255 255 255 / 7%) 0 1px, transparent 1px 100%),
    #071a2f;
  background-size: auto, auto, auto, 36px 36px, 36px 36px, auto;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }

a:focus-visible,
button:focus-visible,
[role="link"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -100%;
  right: 16px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 800;
}
.skip-link:focus { top: 0; }

#top, #demo, #gameplay, #journey, #daily, #screenshots, #contact, #download {
  scroll-margin-top: 98px;
}

@keyframes float-tile {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(-12px) rotate(calc(var(--tilt) + 4deg)); }
}
@keyframes soft-glow {
  0%, 100% { box-shadow: 0 16px 38px rgb(232 196 106 / 24%); }
  50% { box-shadow: 0 18px 52px rgb(232 196 106 / 42%); }
}
@keyframes demo-pop-in {
  0% { opacity: 0; transform: translate(-50%, 12px) scale(0.94); }
  18%, 82% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8px) scale(0.98); }
}
@keyframes demo-win-in {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes download-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgb(232 196 106 / 44%), 0 18px 38px rgb(0 0 0 / 30%);
  }
  50% {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 0 12px rgb(232 196 106 / 0%), 0 22px 48px rgb(0 0 0 / 36%);
  }
}
@keyframes demo-background-drift {
  0% { transform: scale(1.045) translate3d(-0.6%, -0.3%, 0); }
  100% { transform: scale(1.085) translate3d(0.8%, 0.6%, 0); }
}
@keyframes demo-light-roam {
  0%, 100% { transform: translate3d(-3%, 1%, 0); opacity: 0.2; }
  50% { transform: translate3d(5%, -2%, 0); opacity: 0.42; }
}
@keyframes demo-particle-drift {
  0% { transform: translate3d(0, 24px, 0); }
  50% { transform: translate3d(12px, -8px, 0); }
  100% { transform: translate3d(-8px, -42px, 0); }
}
@keyframes demo-invalid-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes demo-valid-glow {
  0% { box-shadow: 0 0 0 0 rgb(216 167 67 / 0%); }
  35% { box-shadow: 0 0 0 4px rgb(216 167 67 / 24%), 0 12px 30px rgb(216 167 67 / 22%); }
  100% { box-shadow: 0 0 0 0 rgb(216 167 67 / 0%); }
}
@keyframes demo-tile-snap {
  0% { transform: translateY(-10px) scale(0.88); background: #fff1ad; box-shadow: 0 0 0 5px rgb(216 167 67 / 24%); }
  55% { transform: translateY(2px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes demo-counter-pop {
  0% { transform: scale(0.84); color: var(--amber); }
  55% { transform: scale(1.18); color: var(--teal); }
  100% { transform: scale(1); }
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  width: var(--container);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgb(16 22 44 / 92%), rgb(7 26 47 / 86)),
    rgb(7 26 47 / 90%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius-lg);
  box-shadow:
    0 18px 46px rgb(0 0 0 / 34%),
    inset 0 -3px 0 rgb(255 210 63 / 62%);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.site-header::before {
  content: "";
  position: absolute;
  inset-inline: 18px;
  top: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--teal), var(--purple));
  border-radius: 999px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.brand img,
.footer-brand img {
  width: 40px;
  height: 40px;
  border: 2px solid rgb(255 210 63 / 72%);
  border-radius: var(--radius-md);
  box-shadow:
    0 7px 20px rgb(0 0 0 / 25%),
    0 0 0 4px rgb(0 167 179 / 18%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.45vw, 18px);
  color: rgb(255 255 255 / 78%);
  font-size: 0.88rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 180ms ease;
}
.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--gold);
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 210 63 / 28%);
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -5px;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  white-space: nowrap;
}
.header-action,
.primary-button {
  position: relative;
  overflow: hidden;
  color: #11282c;
  background: linear-gradient(135deg, #fff6b8, var(--gold) 52%, var(--amber));
  border: 1px solid rgb(255 255 255 / 45%);
  box-shadow:
    0 12px 28px rgb(255 139 44 / 28%),
    inset 0 -3px 0 rgb(176 83 20 / 28%);
}
.header-action::before,
.primary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 55%) 46%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 620ms ease;
}
.header-action:hover::before,
.primary-button:hover::before {
  transform: translateX(120%);
}
.primary-button {
  min-height: 54px;
  padding-inline: 28px;
  animation: soft-glow 3s ease-in-out infinite;
}
.secondary-button {
  min-height: 54px;
  color: var(--white);
  border: 1px solid rgb(0 167 179 / 52%);
  background:
    linear-gradient(135deg, rgb(67 87 255 / 30%), rgb(0 167 179 / 22%)),
    rgb(255 255 255 / 10%);
  backdrop-filter: blur(12px);
}
.header-action:hover,
.primary-button:hover,
.secondary-button:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 10%);
  color: inherit;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: min(860px, 94svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 118px;
  left: max(24px, calc((100% - 1120px) / 2));
  width: 118px;
  aspect-ratio: 1;
  background:
    conic-gradient(from 45deg, var(--gold) 0 25%, var(--amber) 0 50%, var(--crimson) 0 75%, var(--teal) 0);
  clip-path: polygon(50% 0, 62% 34%, 98% 20%, 72% 50%, 98% 80%, 62% 66%, 50% 100%, 38% 66%, 2% 80%, 28% 50%, 2% 20%, 38% 34%);
  filter: drop-shadow(0 20px 34px rgb(0 0 0 / 34%));
  opacity: 0.88;
  transform: rotate(-9deg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.12);
  will-change: transform;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 22%, rgb(255 210 63 / 20%), transparent 24%),
    radial-gradient(circle at 80% 18%, rgb(242 71 127 / 20%), transparent 30%),
    linear-gradient(90deg, rgb(7 26 47 / 96%) 0%, rgb(16 22 44 / 76%) 44%, rgb(7 26 47 / 36%) 100%),
    linear-gradient(0deg, rgb(7 26 47) 0%, transparent 42%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: 136px 0 70px;
}
.hero-copy { max-width: 720px; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}
.section-kicker.light { color: var(--gold); }
.hero h1 {
  margin: 0;
  font-size: 6.2rem;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow:
    0 12px 50px rgb(0 0 0 / 48%),
    4px 4px 0 rgb(242 71 127 / 40%),
    -4px -4px 0 rgb(0 167 179 / 34%);
}
.hero-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 86%);
  font-size: 1.17rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}
.hero-stats div {
  min-width: 126px;
  padding: 10px 15px;
  border: 1px solid rgb(255 210 63 / 24%);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 10%), rgb(255 210 63 / 7%)),
    rgb(16 22 44 / 70%);
  backdrop-filter: blur(10px);
}
.hero-stats dt {
  display: inline;
  color: var(--gold);
  font-size: 1.16rem;
  font-weight: 800;
}
.hero-stats dd {
  display: inline;
  margin: 0 5px 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: 0.9rem;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 941 / 1672;
  border: 8px solid rgb(255 250 232 / 88%);
  border-radius: 28px;
  background: #ead6a9;
  box-shadow: var(--shadow-deep);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 420ms ease;
}
.phone-frame:hover,
.phone-frame:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 40px 92px rgb(0 0 0 / 38%);
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-frame:hover img,
.phone-frame:focus-within img {
  transform: scale(1.045);
}
.phone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 16%), transparent 22%, rgb(0 0 0 / 8%));
}
.phone-frame figcaption,
.wide-shot figcaption,
.screenshot-card figcaption {
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 10px 12px;
  color: var(--white);
  background: rgb(8 34 37 / 78%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  font-weight: 800;
}
.hero-phone {
  width: min(100%, 310px);
  justify-self: end;
  transform: translateY(28px);
}

.about-section,
.demo-section,
.gameplay-section,
.daily-section,
.progression-section,
.screenshots-section,
.contact-section {
  padding: 84px 0;
}
.about-section {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  color: var(--white);
}
.about-section .section-copy p:not(.section-kicker),
.about-maker-section .section-copy p:not(.section-kicker) {
  color: rgb(255 255 255 / 76%);
}
.section-copy h2,
.section-heading h2,
.journey-copy h2,
.feature-copy h2,
.download-inner h2 {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0;
}
.section-copy p:not(.section-kicker),
.feature-copy p,
.journey-copy p,
.download-inner p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.proof-grid article {
  min-height: 190px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 20px;
  color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgb(255 255 255 / 16%);
}
.proof-grid article:nth-child(1) { background: linear-gradient(145deg, var(--teal), var(--blue)); }
.proof-grid article:nth-child(2) { background: linear-gradient(145deg, var(--crimson), var(--purple)); }
.proof-grid article:nth-child(3) { background: linear-gradient(145deg, var(--amber), #e0316d); }
.proof-grid strong { font-size: 1.14rem; }
.proof-grid span { color: rgb(255 255 255 / 76%); font-size: 0.92rem; }

.bridge-signature {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 80px) 0;
  background:
    radial-gradient(120% 200% at 12% -20%, rgb(255 210 63 / 20%) 0%, transparent 55%),
    radial-gradient(90% 160% at 92% 120%, rgb(67 87 255 / 30%) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgb(242 71 127 / 16%), transparent 42%),
    var(--teal-dark);
  color: var(--white);
  isolation: isolate;
}
.bridge-signature-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 26px;
  text-align: center;
}
.bridge-signature-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
}
.bridge-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 6px;
}
.bridge-word {
  display: flex;
  gap: 6px;
}
.bridge-tile {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 5px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 5%));
  border: 1px solid rgb(255 255 255 / 18%);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--white);
  transition: transform 260ms ease;
}
.bridge-word--end .bridge-tile {
  background: linear-gradient(155deg, var(--gold), var(--amber));
  border-color: transparent;
  color: var(--teal-dark);
}
.bridge-tile--hot {
  background: linear-gradient(155deg, var(--gold), var(--amber));
  border-color: transparent;
  color: var(--teal-dark);
  animation: bridge-pulse 2.4s ease-in-out infinite;
}
.bridge-step {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 0 6px;
  min-width: 118px;
}
.bridge-arrow {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gold);
}
.bridge-move-label {
  font-size: 0.76rem;
  color: rgb(255 255 255 / 66%);
  white-space: nowrap;
}
.bridge-signature-caption {
  max-width: 520px;
  margin: 0;
  color: rgb(255 255 255 / 70%);
  font-size: 0.96rem;
}
@keyframes bridge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(232 196 106 / 45%); }
  50% { box-shadow: 0 0 0 9px rgb(232 196 106 / 0%); }
}

.demo-section {
  background:
    radial-gradient(circle at 15% 20%, rgb(255 210 63 / 22%), transparent 28%),
    radial-gradient(circle at 84% 28%, rgb(0 167 179 / 20%), transparent 28%),
    linear-gradient(135deg, rgb(16 22 44), rgb(7 26 47));
  color: var(--white);
}
.demo-shell {
  width: var(--container);
  margin: 0 auto;
}
.demo-launch-shell {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
}
.demo-launch-card {
  position: relative;
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  color: var(--white);
  background:
    radial-gradient(circle at 14% 12%, rgb(255 210 63 / 30%), transparent 24%),
    linear-gradient(145deg, rgb(67 87 255 / 76%), rgb(242 71 127 / 64), rgb(0 167 179 / 72)),
    url("./assets/images/level_screen.webp") center 30% / cover;
  border: 1px solid rgb(255 210 63 / 44%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
}
.demo-launch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgb(255 255 255 / 13%), transparent),
    radial-gradient(circle at 18% 12%, rgb(232 196 106 / 28%), transparent 28%);
  opacity: 0.85;
  pointer-events: none;
}
.demo-launch-card span,
.demo-launch-card strong,
.demo-launch-card small {
  position: relative;
  z-index: 1;
}
.demo-launch-card span {
  width: max-content;
  padding: 5px 12px;
  color: #11282c;
  background: linear-gradient(135deg, #fff6b8, var(--gold), var(--amber));
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}
.demo-launch-card strong {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.2;
}
.demo-launch-card small {
  color: rgb(255 255 255 / 78%);
  font-size: 0.96rem;
  font-weight: 800;
}
.demo-heading {
  width: auto;
  max-width: 760px;
  margin: 0 0 20px;
}
.demo-board {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.demo-levels,
.demo-play {
  background: rgb(255 254 250 / 88%);
  border: 1px solid rgb(14 112 116 / 14%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.demo-levels {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 430px;
  overflow: hidden;
}
.demo-levels-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}
.demo-levels-head strong,
.demo-levels-head span {
  font-weight: 800;
}
.demo-level-list {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px;
  max-height: 520px;
  overflow: auto;
}
.demo-level-button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid rgb(14 112 116 / 12%);
  border-radius: var(--radius-sm);
  font: inherit;
  text-align: right;
  cursor: pointer;
}
.demo-level-button:hover,
.demo-level-button.is-active {
  border-color: rgb(14 112 116 / 34%);
  background: rgb(14 112 116 / 8%);
}
.demo-level-button.is-complete {
  border-color: rgb(92 225 163 / 48%);
}
.demo-level-index {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
}
.demo-level-button.is-complete .demo-level-index {
  color: #11342f;
  background: #5ce1a3;
}
.demo-level-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.9rem;
}
.demo-level-par {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}
.demo-play {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  gap: 12px;
  padding: clamp(14px, 2.2vw, 22px);
}
.demo-feedback-pop {
  position: absolute;
  z-index: 8;
  top: 12px;
  left: 50%;
  display: none;
  min-width: min(280px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  padding: 9px 14px;
  color: #11342f;
  background: #baf4d6;
  border: 1px solid rgb(92 225 163 / 58%);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgb(11 36 38 / 18%);
  text-align: center;
  font-weight: 800;
  pointer-events: none;
}
.demo-feedback-pop.is-visible {
  display: block;
  animation: demo-pop-in 1.35s ease both;
}
.demo-feedback-pop.is-error {
  color: #7d1e34;
  background: #ffe5e9;
  border-color: rgb(157 52 73 / 30%);
}
.demo-win-modal {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: none;
  place-items: center;
  padding: 14px;
  background: rgb(8 34 37 / 30%);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.demo-win-modal.is-visible {
  display: grid;
}
.demo-answer-modal {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgb(8 34 37 / 46%);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(5px);
}
.demo-answer-modal.is-visible {
  display: grid;
}
.demo-win-card {
  width: min(520px, 100%);
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 22px 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 10%, rgb(255 255 255 / 22%), transparent 28%),
    linear-gradient(145deg, var(--teal), var(--teal-dark));
  border: 1px solid rgb(232 196 106 / 42%);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgb(0 0 0 / 32%);
  text-align: center;
  animation: demo-win-in 420ms cubic-bezier(0.2, 0.85, 0.25, 1.1) both;
}
.demo-win-card > span {
  display: inline-flex;
  padding: 4px 12px;
  color: #132427;
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}
.demo-win-card strong {
  font-size: 1.42rem;
  line-height: 1.25;
}
.demo-win-card small {
  color: rgb(255 255 255 / 76%);
  font-size: 0.9rem;
  font-weight: 800;
}
.demo-win-path {
  width: 100%;
  max-height: min(156px, 24svh);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: auto;
  padding: 10px;
  direction: rtl;
  background: rgb(4 27 28 / 32%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-md);
}
.demo-win-path span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  color: var(--ink);
  background: #fff3bd;
  border: 1px solid rgb(216 167 67 / 58%);
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 14px rgb(0 0 0 / 16%);
  font-size: 0.86rem;
  font-weight: 800;
}
.demo-win-path span:first-child {
  color: var(--white);
  background: var(--teal-dark);
  border-color: rgb(255 255 255 / 22%);
}
.demo-win-path span:last-child {
  color: var(--white);
  background: var(--crimson);
  border-color: rgb(255 255 255 / 22%);
}
.demo-win-path i {
  color: var(--gold);
  font-style: normal;
  font-size: 1rem;
  font-weight: 900;
}
.demo-answer-card {
  position: relative;
  width: min(440px, 100%);
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 24px 18px 20px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 10%, rgb(232 196 106 / 22%), transparent 30%),
    linear-gradient(145deg, #0b3438, var(--teal-dark));
  border: 1px solid rgb(232 196 106 / 42%);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 72px rgb(0 0 0 / 36%);
  text-align: center;
}
.demo-answer-card > span {
  display: inline-flex;
  padding: 4px 12px;
  color: #132427;
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}
.demo-answer-card strong {
  font-size: 1.35rem;
  line-height: 1.25;
}
.demo-answer-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.demo-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}
.demo-topline span:first-child {
  color: var(--teal);
}
.demo-move-counter strong {
  display: inline-block;
  min-width: 1.3ch;
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
}
.demo-move-counter.is-updated strong {
  animation: demo-counter-pop 360ms ease-out both;
}
.demo-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 7px;
  direction: rtl;
}
.demo-route-step {
  min-width: 0;
  min-height: 72px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 9px 8px;
  color: var(--white);
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgb(8 43 45 / 14%);
  text-align: center;
}
.demo-route-step.is-current {
  color: var(--ink);
  background: linear-gradient(145deg, #fffefa, #f2ddad);
  border-color: rgb(216 167 67 / 46%);
}
.demo-route-step.is-target {
  background: linear-gradient(145deg, var(--crimson), #52243c);
}
.demo-route-step span {
  color: rgb(255 255 255 / 72%);
  font-size: 0.68rem;
  font-weight: 800;
}
.demo-route-step.is-current span {
  color: var(--muted);
}
.demo-route-step strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.15;
}
.demo-route-step.is-updated {
  animation: demo-valid-glow 620ms ease-out both;
}
.demo-route-connector {
  align-self: center;
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 900;
  text-shadow: 0 3px 12px rgb(216 167 67 / 30%);
}
.demo-words {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.demo-words div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
  color: var(--white);
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius-md);
}
.demo-words div:nth-child(2) {
  background: linear-gradient(145deg, var(--crimson), #52243c);
}
.demo-words span {
  color: rgb(255 255 255 / 74%);
  font-size: 0.78rem;
  font-weight: 800;
}
.demo-words strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  line-height: 1.08;
  font-weight: 800;
}
.demo-editor {
  display: grid;
  gap: 8px;
}
.demo-current-word {
  min-height: 62px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  background: rgb(14 112 116 / 8%);
  border: 1px solid rgb(14 112 116 / 14%);
  border-radius: var(--radius-md);
}
.demo-letter,
.demo-gap,
.demo-key,
.demo-delete-zone {
  touch-action: none;
}
.demo-letter {
  width: 42px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fffefa;
  border: 2px solid rgb(14 112 116 / 18%);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgb(11 36 38 / 10%);
  font: inherit;
  font-size: 1.22rem;
  font-weight: 800;
  cursor: grab;
  transition: transform 130ms ease, border-color 130ms ease, background-color 130ms ease, box-shadow 130ms ease;
}
.demo-letter:hover {
  transform: translateY(-2px);
  border-color: rgb(216 167 67 / 54%);
  box-shadow: 0 10px 22px rgb(8 43 45 / 16%);
}
.demo-letter:active {
  cursor: grabbing;
  transform: translateY(1px) scale(0.97);
}
.demo-letter.is-new {
  animation: demo-tile-snap 460ms cubic-bezier(0.2, 0.85, 0.25, 1.2) both;
}
.demo-current-word.is-invalid {
  animation: demo-invalid-shake 360ms ease-in-out both;
  border-color: rgb(127 51 65 / 48%);
}
.demo-current-word.is-valid {
  animation: demo-valid-glow 620ms ease-out both;
}
.demo-letter.is-selected,
.demo-letter.is-drag-over {
  border-color: var(--gold);
  background: #fff3bd;
  box-shadow: 0 0 0 5px rgb(232 196 106 / 18%);
}
.demo-gap {
  width: 12px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 2px dashed transparent;
  border-radius: var(--radius-sm);
  cursor: copy;
  transition:
    width 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}
.demo-gap::before {
  content: "";
  display: block;
  width: 4px;
  height: 26px;
  margin: 8px auto 0;
  background: rgb(14 112 116 / 18%);
  border-radius: 999px;
}
.demo-gap:hover,
.demo-gap.is-drag-over {
  width: 34px;
  border-color: rgb(232 196 106 / 76%);
  background: rgb(232 196 106 / 16%);
  box-shadow: 0 0 0 4px rgb(232 196 106 / 14%);
}
.demo-current-word.is-insert-ready .demo-gap {
  width: 22px;
  border-color: rgb(232 196 106 / 42%);
  background: rgb(232 196 106 / 10%);
}
.demo-current-word.is-insert-ready .demo-gap.is-drag-over {
  width: 34px;
  border-color: rgb(232 196 106 / 82%);
  background: rgb(232 196 106 / 20%);
}
.demo-delete-zone {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 6px 10px;
  color: #7d1e34;
  background: rgb(157 52 73 / 8%);
  border: 2px dashed rgb(157 52 73 / 24%);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.84rem;
}
.demo-delete-zone.is-drag-over {
  color: var(--white);
  background: var(--crimson);
  border-color: var(--crimson);
}
.demo-delete-zone.is-disabled {
  opacity: 0.55;
}
.demo-keyboard {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: linear-gradient(145deg, var(--teal-dark), #173f43);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
}
.demo-keyboard.is-drag-over {
  border-color: rgb(232 196 106 / 72%);
}
.demo-keyboard-row {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 5px;
}
.demo-keyboard-row:nth-child(3) {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  padding-inline: min(3vw, 20px);
}
.demo-key {
  min-width: 0;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 18px rgb(0 0 0 / 16%);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: grab;
  transition: transform 120ms ease, color 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.demo-key:hover {
  transform: translateY(-2px);
  color: var(--teal-dark);
  background: #fff3bd;
  border-color: rgb(216 167 67 / 64%);
  box-shadow: 0 10px 22px rgb(0 0 0 / 22%);
}
.demo-key:active {
  cursor: grabbing;
  transform: translateY(1px) scale(0.96);
}
.demo-key.is-pressed {
  animation: demo-tile-snap 300ms ease-out both;
}
.demo-drag-ghost {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff3bd;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 34px rgb(0 0 0 / 24%);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  pointer-events: none;
}
.demo-controls button,
.demo-controls a {
  min-height: 40px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 800;
}
.demo-controls a {
  padding: 0 16px;
  color: #11282c;
  background: linear-gradient(135deg, #fff0ad, var(--gold) 54%, var(--amber));
  border: 0;
  cursor: pointer;
}
.demo-message {
  min-height: 30px;
  margin: 0;
  padding: 6px 10px;
  color: var(--muted);
  background: rgb(14 112 116 / 8%);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.86rem;
}
.demo-message.is-error {
  color: #7d1e34;
  background: rgb(157 52 73 / 10%);
}
.demo-message.is-success {
  color: #155340;
  background: rgb(92 225 163 / 16%);
}
.demo-history {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 6px;
  padding: 10px;
  background: rgb(14 112 116 / 7%);
  border-radius: var(--radius-md);
}
.demo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid rgb(14 112 116 / 14%);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
}
.demo-chip.is-target {
  color: #11342f;
  background: #baf4d6;
  border-color: rgb(92 225 163 / 58%);
}
.demo-chip.is-new {
  animation: demo-valid-glow 620ms ease-out both;
}
.demo-game-page button:focus-visible,
.demo-game-page a:focus-visible {
  outline: 3px solid #fff1ad;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgb(13 109 105 / 56%);
}
.demo-solution {
  padding: 8px 10px;
  background: rgb(232 196 106 / 10%);
  border: 1px solid rgb(232 196 106 / 28%);
  border-radius: var(--radius-md);
}
.demo-solution summary {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}
.demo-solution-path {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.demo-solution-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid rgb(232 196 106 / 34%);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}
.demo-solution-chip.is-start,
.demo-solution-chip.is-end {
  color: var(--white);
  background: var(--teal);
  border-color: rgb(14 112 116 / 45%);
}
.demo-solution-chip.is-end {
  background: var(--crimson);
  border-color: rgb(157 52 73 / 45%);
}
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-controls button {
  padding: 0 14px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid rgb(14 112 116 / 18%);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}
.demo-controls button:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgb(216 167 67 / 56%);
  box-shadow: 0 8px 18px rgb(8 43 45 / 12%);
}
.demo-controls button:not(:disabled):active {
  transform: translateY(1px) scale(0.98);
}
.demo-controls [data-demo-solution-toggle] {
  color: #11282c;
  background: linear-gradient(135deg, #fff0ad, var(--gold) 54%, var(--amber));
  border-color: rgb(232 196 106 / 38%);
}
.demo-controls button:disabled {
  color: rgb(80 109 112 / 58%);
  cursor: default;
}
.demo-controls a {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-heading {
  width: var(--container);
  margin: 0 auto 34px;
}
.gameplay-section {
  background:
    radial-gradient(circle at 86% 10%, rgb(0 167 179 / 14%), transparent 28%),
    linear-gradient(180deg, #fff8e8, #ffe8ad);
}
.feature-layout {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}
.feature-layout.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}
.feature-layout.reverse .feature-phone { order: 2; }
.feature-phone {
  width: min(100%, 350px);
  justify-self: center;
}
.feature-copy {
  max-width: 670px;
}
.step-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: start;
  padding: 16px;
  background: linear-gradient(135deg, rgb(255 255 255), rgb(255 248 232));
  border: 1px solid rgb(0 167 179 / 18%);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgb(7 26 47 / 10%);
}
.step-list li::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgb(232 196 106 / 18%);
}
.step-list strong { font-size: 1.06rem; }
.step-list span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.95rem;
}

.journey-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 400px);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  padding: 92px max(20px, calc((100% - 1120px) / 2));
  color: var(--white);
  background:
    radial-gradient(circle at 20% 0%, rgb(255 210 63 / 18%), transparent 32%),
    radial-gradient(circle at 88% 18%, rgb(242 71 127 / 18%), transparent 36%),
    linear-gradient(135deg, rgb(16 22 44 / 96%), rgb(7 26 47 / 96)),
    #071a2f;
}
.journey-copy p { color: rgb(255 255 255 / 74%); }
.wide-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 941 / 1672;
  border-radius: 26px;
  border: 1px solid rgb(255 255 255 / 18%);
  box-shadow: var(--shadow-deep);
}
.wide-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.khaan-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}
.khaan-strip figure {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgb(0 0 0 / 22%);
}
.khaan-strip img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.khaan-strip figure:hover img,
.khaan-strip figure:focus-within img {
  transform: scale(1.1);
}
.khaan-strip figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(6 24 26 / 78%), transparent 58%);
}
.khaan-strip figcaption {
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: var(--white);
  font-weight: 800;
}
.khaan-strip strong,
.khaan-strip span {
  display: block;
}
.khaan-strip span {
  margin-top: 2px;
  color: rgb(255 255 255 / 74%);
  font-size: 0.84rem;
  font-weight: 500;
}

.daily-section {
  background:
    radial-gradient(circle at 14% 18%, rgb(242 71 127 / 18%), transparent 28%),
    linear-gradient(180deg, #fff8e8, #ffe9b2);
}
.daily-layout {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.mode-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 10%, rgb(255 210 63 / 24%), transparent 28%),
    linear-gradient(145deg, var(--blue), var(--teal-dark));
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.mode-panel:nth-child(2) {
  background:
    radial-gradient(circle at 18% 10%, rgb(255 210 63 / 20%), transparent 28%),
    linear-gradient(145deg, var(--crimson), var(--purple), var(--teal-dark));
}
.mode-panel .phone-frame {
  width: min(100%, 315px);
  justify-self: center;
}
.mode-panel h3 {
  margin: 0;
  font-size: 1.42rem;
}
.mode-panel p {
  margin: 0;
  color: rgb(255 255 255 / 74%);
}

.progression-section {
  background:
    radial-gradient(circle at 80% 20%, rgb(0 167 179 / 16%), transparent 30%),
    linear-gradient(180deg, #fff8e8, #ffe8ad);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.tag-list span {
  padding: 8px 14px;
  color: var(--ink);
  background: rgb(255 255 255 / 78%);
  border: 1px solid rgb(0 167 179 / 22%);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgb(7 26 47 / 8%);
}

.screenshots-section {
  background:
    radial-gradient(circle at 16% 18%, rgb(255 210 63 / 18%), transparent 28%),
    linear-gradient(180deg, #071a2f, #10162c);
  color: var(--white);
}
.screenshot-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.screenshot-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #10162c;
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow:
    0 22px 52px rgb(0 0 0 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 14%);
}
.screenshot-card.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 736px;
}
.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.screenshot-card:hover img,
.screenshot-card:focus-within img {
  transform: scale(1.08);
}
.screenshot-card figcaption {
  display: grid;
  gap: 2px;
}
.screenshot-card strong { font-size: 1rem; }
.screenshot-card span {
  color: rgb(255 255 255 / 72%);
  font-size: 0.84rem;
  font-weight: 500;
}

.about-maker-section {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}
.about-maker-card {
  min-height: 300px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 14%, rgb(255 210 63 / 28%), transparent 30%),
    linear-gradient(145deg, var(--teal), var(--blue), var(--teal-dark));
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-maker-card img {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgb(0 0 0 / 24%);
}
.about-maker-card {
  position: relative;
}
.about-maker-card strong {
  margin-top: 96px;
  font-size: 1.36rem;
}
.about-maker-card span {
  color: rgb(255 255 255 / 76%);
}

.about-page-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.about-page-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.about-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 20%, rgb(255 210 63 / 20%), transparent 28%),
    radial-gradient(circle at 86% 22%, rgb(242 71 127 / 20%), transparent 32%),
    linear-gradient(90deg, rgb(7 26 47 / 94%), rgb(16 22 44 / 66%)),
    linear-gradient(0deg, rgb(7 26 47) 0%, transparent 44%);
}
.about-page-inner {
  width: var(--container);
  max-width: 840px;
  margin: 0 auto;
  padding: 140px 0 76px;
}
.about-page-inner h1 {
  margin: 0;
  font-size: 4.1rem;
  line-height: 1.18;
  letter-spacing: 0;
}
.about-page-inner p:not(.section-kicker) {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: 1.12rem;
}
.about-maker-section {
  padding: 84px 0;
}

.contact-section {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgb(255 210 63 / 18%), transparent 30%),
    radial-gradient(circle at 86% 26%, rgb(67 87 255 / 26%), transparent 32%),
    linear-gradient(135deg, rgb(16 22 44 / 96%), rgb(7 26 47 / 94)),
    var(--teal-dark);
}
.contact-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}
.contact-inner p {
  color: rgb(255 255 255 / 74%);
}
.contact-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 24px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(255 210 63 / 8%));
  border: 1px solid rgb(255 210 63 / 18%);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 46px rgb(0 0 0 / 22%);
  font-style: normal;
}
.contact-card a {
  direction: ltr;
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px;
  color: var(--white);
  background: rgb(255 255 255 / 8%);
  border-radius: var(--radius-sm);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.download-card {
  min-height: 190px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  align-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 12%, rgb(255 210 63 / 18%), transparent 28%),
    linear-gradient(145deg, rgb(255 255 255 / 12%), transparent 44%),
    rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 46px rgb(0 0 0 / 20%);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.download-card img {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  padding: 10px;
  object-fit: contain;
  background: rgb(255 255 255 / 92%);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
}
.download-status {
  position: relative;
  z-index: 1;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  color: #142b2f;
  background: linear-gradient(135deg, #fff6b8, var(--gold), var(--amber));
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}
.download-card {
  position: relative;
}
.download-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  justify-items: center;
}
.download-card strong {
  font-size: 1.3rem;
}
.download-card small {
  color: rgb(255 255 255 / 72%);
  font-size: 0.9rem;
}
.store-live {
  cursor: pointer;
}
.store-live:hover {
  transform: translateY(-5px);
}
.bazaar-card { background: linear-gradient(145deg, rgb(29 122 76 / 30%), rgb(255 255 255 / 8%)); }
.bazaar-card.store-live {
  border-color: rgb(92 225 163 / 42%);
  box-shadow:
    0 24px 58px rgb(0 0 0 / 24%),
    0 0 34px rgb(92 225 163 / 16%),
    inset 0 1px 0 rgb(255 255 255 / 20%);
}
.bazaar-card.store-live:hover {
  border-color: rgb(142 239 188 / 66%);
  box-shadow:
    0 30px 68px rgb(0 0 0 / 28%),
    0 0 40px rgb(92 225 163 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 26%);
}
.myket-card {
  background:
    radial-gradient(circle at 18% 18%, rgb(255 255 255 / 34%), transparent 24%),
    linear-gradient(145deg, rgb(0 167 179 / 42%), rgb(67 87 255 / 42%) 52%, rgb(255 210 63 / 26%)),
    rgb(255 255 255 / 8%);
}
.bazaar-card {
  background:
    radial-gradient(circle at 18% 18%, rgb(255 255 255 / 24%), transparent 24%),
    linear-gradient(145deg, rgb(37 125 77 / 54%), rgb(13 75 62 / 58%) 58%, rgb(216 167 67 / 20%)),
    rgb(255 255 255 / 8%);
}
.myket-card.store-live {
  border-color: rgb(232 196 106 / 58%);
  box-shadow:
    0 24px 58px rgb(0 0 0 / 26%),
    0 0 36px rgb(42 208 210 / 24%),
    inset 0 1px 0 rgb(255 255 255 / 24%);
}
.myket-card.store-live::before {
  content: "";
  position: absolute;
  inset: -45% auto -45% -35%;
  width: 56px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 76%), transparent);
  transform: rotate(24deg);
  transition: left 620ms ease;
}
.myket-card.store-live::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.myket-card.store-live:hover {
  border-color: rgb(255 229 147 / 82%);
  box-shadow:
    0 30px 70px rgb(0 0 0 / 30%),
    0 0 44px rgb(232 196 106 / 32%),
    0 0 48px rgb(42 208 210 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 30%);
}
.myket-card.store-live:hover::before {
  left: 118%;
}
.myket-card.store-live img {
  background:
    linear-gradient(145deg, #fffefa, #e9f9ff);
  box-shadow:
    0 14px 34px rgb(0 0 0 / 20%),
    0 0 22px rgb(232 196 106 / 44%);
}
.myket-card.store-live .download-status {
  color: #132427;
  background: linear-gradient(135deg, #fff2b7, var(--gold), #f9d98b);
  box-shadow: 0 8px 18px rgb(0 0 0 / 18%);
}

.hero-download-panel {
  max-width: 600px;
  margin-top: 20px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(255 210 63 / 5%)),
    rgb(7 26 47 / 76%);
  border: 1px solid rgb(255 210 63 / 18%);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 52px rgb(0 0 0 / 24%);
  backdrop-filter: blur(14px);
  scroll-margin-top: 100px;
}
.hero-download-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
}
.hero-download-heading h2 {
  margin: 0;
  color: rgb(255 255 255 / 92%);
  font-size: 1rem;
}
.download-ready-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #5ce1a3;
  border-radius: 50%;
  box-shadow: 0 0 14px rgb(92 225 163 / 80%);
}
.hero-download-panel .download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-download-panel .download-card {
  min-height: 184px;
  padding: 14px 16px 18px;
}
.hero-download-panel .download-card img {
  width: 68px;
  height: 68px;
}
.hero-download-panel .download-card strong {
  font-size: 1.45rem;
}

.site-footer {
  padding: 38px 0;
  color: rgb(255 255 255 / 72%);
  background:
    radial-gradient(circle at 18% 0%, rgb(255 210 63 / 14%), transparent 28%),
    linear-gradient(135deg, #10162c, #071a2f);
  border-top: 1px solid rgb(255 210 63 / 16%);
}
.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}
.footer-brand { color: var(--white); }
.footer-brand img { width: 44px; height: 44px; }
.site-footer p { margin: 0; font-size: 0.92rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  font-size: 0.92rem;
  font-weight: 800;
}
.footer-links a:hover { color: var(--gold); }

.htile {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: rgb(255 255 255 / 86%);
  background:
    linear-gradient(145deg, rgb(255 210 63 / 18%), rgb(0 167 179 / 12%));
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: var(--radius-md);
  font-size: 1.6rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgb(0 0 0 / 18%);
  animation: float-tile var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.58;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
    width: min(100% - 24px, 760px);
  }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    color: var(--white);
    background: rgb(8 34 37 / 96%);
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 48px rgb(0 0 0 / 30%);
    backdrop-filter: blur(16px);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
  .nav-links a:hover { background: rgb(255 255 255 / 10%); }
  .nav-links a::after { display: none; }
  body.nav-open { overflow: hidden; }

  .hero-content,
  .about-section,
  .demo-board,
  .feature-layout,
  .feature-layout.reverse,
  .journey-section,
  .about-maker-section,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .feature-layout.reverse .feature-phone { order: 0; }
  .demo-levels {
    min-height: auto;
  }
  .demo-level-list {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    max-height: none;
    overflow-x: auto;
  }
  .hero-phone {
    justify-self: center;
    transform: none;
  }
  .proof-grid,
  .download-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .khaan-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 24px, 1120px); }
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    padding: 7px;
  }
  .brand span { display: none; }
  .brand img { width: 36px; height: 36px; }
  .header-action {
    min-height: 36px;
    max-width: 112px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }
  .hero {
    min-height: auto;
  }
  .hero-content {
    padding: 118px 0 48px;
  }
  .hero h1 { font-size: 3.55rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions a {
    width: 100%;
  }
  .hero-download-panel .download-grid { grid-template-columns: 1fr; }
  .hero-stats div { width: 100%; }
  .hero-phone { width: min(100%, 250px); }

  .about-section,
  .demo-section,
  .gameplay-section,
  .daily-section,
  .progression-section,
  .screenshots-section,
  .about-maker-section,
  .contact-section,
  .journey-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .section-copy h2,
  .section-heading h2,
  .journey-copy h2,
  .feature-copy h2,
  .about-page-inner h1 {
    font-size: 2rem;
  }
  .proof-grid,
  .demo-level-list,
  .demo-words,
  .daily-layout,
  .khaan-strip,
  .download-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  .proof-grid article { min-height: 150px; }
  .demo-play {
    min-height: auto;
    gap: 10px;
    padding: 12px;
  }
  .demo-levels-head {
    padding: 10px 12px;
  }
  .demo-level-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(136px, 44vw);
    grid-template-columns: none;
    gap: 6px;
    padding: 8px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }
  .demo-level-button {
    min-height: 40px;
    grid-template-columns: auto 1fr;
    scroll-snap-align: start;
    padding: 7px 8px;
  }
  .demo-level-title {
    font-size: 0.82rem;
  }
  .demo-level-index {
    width: 23px;
    height: 23px;
    font-size: 0.74rem;
  }
  .demo-level-par {
    grid-column: 2;
    font-size: 0.7rem;
  }
  .demo-topline,
  .demo-message,
  .demo-delete-zone {
    font-size: 0.76rem;
  }
  .demo-words {
    gap: 6px;
  }
  .demo-words div {
    min-height: 64px;
    padding: 10px;
  }
  .demo-words span {
    font-size: 0.7rem;
  }
  .demo-words strong {
    font-size: clamp(1.2rem, 8vw, 1.85rem);
  }
  .demo-current-word {
    min-height: 52px;
    gap: 3px;
    padding: 7px;
  }
  .demo-letter {
    width: 34px;
    height: 38px;
    border-width: 1px;
    font-size: 1rem;
  }
  .demo-gap {
    width: 7px;
    height: 38px;
  }
  .demo-gap:hover,
  .demo-gap.is-drag-over {
    width: 26px;
  }
  .demo-current-word.is-insert-ready .demo-gap {
    width: 16px;
  }
  .demo-current-word.is-insert-ready .demo-gap.is-drag-over {
    width: 26px;
  }
  .demo-gap::before {
    width: 3px;
    height: 22px;
    margin-top: 7px;
  }
  .demo-delete-zone {
    min-height: 34px;
    padding: 5px 8px;
  }
  .demo-keyboard {
    gap: 4px;
    padding: 7px;
    border-width: 1px;
  }
  .demo-keyboard-row {
    gap: 3px;
  }
  .demo-keyboard-row:nth-child(3) {
    padding-inline: 6px;
  }
  .demo-key {
    height: 31px;
    border-radius: 6px;
    font-size: 0.82rem;
    box-shadow: none;
  }
  .demo-feedback-pop {
    top: 8px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }
  .demo-win-card {
    padding: 18px 14px;
  }
  .demo-win-card strong {
    font-size: 1.22rem;
  }
  .demo-history {
    max-height: 90px;
    overflow: auto;
    padding: 7px;
  }
  .demo-chip {
    min-height: 26px;
    padding: 3px 8px;
    font-size: 0.78rem;
  }
  .demo-solution {
    padding: 7px;
  }
  .demo-solution summary {
    font-size: 0.78rem;
  }
  .demo-solution-path {
    max-height: 76px;
    overflow: auto;
    gap: 4px;
  }
  .demo-solution-chip {
    min-height: 25px;
    padding: 2px 7px;
    font-size: 0.74rem;
  }
  .demo-controls {
    gap: 6px;
  }
  .demo-controls button,
  .demo-controls a {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }
  .demo-controls a {
    width: 100%;
    margin-inline-start: 0;
  }
  .khaan-strip figure,
  .khaan-strip img { min-height: 260px; }
  .feature-phone,
  .mode-panel .phone-frame {
    width: min(100%, 276px);
  }
  .phone-frame {
    border-width: 6px;
    border-radius: 22px;
  }
  .journey-section {
    padding-inline: 12px;
  }
  .wide-shot {
    width: min(100%, 280px);
    justify-self: center;
  }
  .screenshot-card,
  .screenshot-card.large {
    grid-column: auto;
    grid-row: auto;
    min-height: 430px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand,
  .footer-links {
    justify-content: center;
  }
  .htile { display: none; }
}

@media (max-width: 380px) {
  :root { --container: min(100% - 16px, 1120px); }
  .demo-play {
    padding: 10px;
    gap: 8px;
  }
  .demo-level-list {
    grid-auto-columns: minmax(124px, 48vw);
  }
  .demo-words div {
    min-height: 58px;
    padding: 8px;
  }
  .demo-letter {
    width: 30px;
    height: 34px;
    font-size: 0.92rem;
  }
  .demo-gap {
    width: 5px;
    height: 34px;
  }
  .demo-gap:hover,
  .demo-gap.is-drag-over {
    width: 22px;
  }
  .demo-current-word.is-insert-ready .demo-gap {
    width: 13px;
  }
  .demo-current-word.is-insert-ready .demo-gap.is-drag-over {
    width: 22px;
  }
  .demo-keyboard {
    gap: 3px;
    padding: 5px;
  }
  .demo-keyboard-row {
    gap: 2px;
  }
  .demo-keyboard-row:nth-child(3) {
    padding-inline: 4px;
  }
  .demo-key {
    height: 29px;
    font-size: 0.76rem;
  }
  .demo-message {
    font-size: 0.72rem;
  }
}

body.demo-game-page {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: #081c1f;
  line-height: 1.55;
  overscroll-behavior: none;
}
.demo-game-page .skip-link {
  position: fixed;
}
.demo-game-main,
.demo-game-arena {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}
.demo-game-bg,
.demo-game-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.demo-game-bg {
  object-fit: cover;
  object-position: center;
  opacity: 0.56;
  filter: saturate(1.12) contrast(1.05);
  animation: demo-background-drift 30s ease-in-out infinite alternate;
  will-change: transform;
}
.demo-game-vignette {
  background:
    radial-gradient(circle at 50% 38%, rgb(14 112 116 / 16%), transparent 34%),
    linear-gradient(90deg, rgb(8 28 31 / 84%), rgb(8 28 31 / 34) 45%, rgb(8 28 31 / 82)),
    linear-gradient(180deg, rgb(8 28 31 / 72), rgb(8 28 31 / 28) 45%, rgb(8 28 31 / 86));
}
.demo-game-atmosphere {
  position: absolute;
  z-index: 0;
  inset: -8%;
  overflow: hidden;
  pointer-events: none;
}
.demo-game-atmosphere::before,
.demo-game-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
}
.demo-game-atmosphere::before {
  background: radial-gradient(circle at 48% 38%, rgb(255 220 136 / 22%), transparent 26%);
  mix-blend-mode: screen;
  animation: demo-light-roam 22s ease-in-out infinite;
}
.demo-game-atmosphere::after {
  opacity: 0.28;
  background:
    radial-gradient(circle at 8% 78%, #ffe29b 0 1px, transparent 2px),
    radial-gradient(circle at 18% 35%, #ffe29b 0 1px, transparent 2px),
    radial-gradient(circle at 30% 67%, #ffe29b 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 44% 22%, #ffe29b 0 1px, transparent 2px),
    radial-gradient(circle at 58% 75%, #ffe29b 0 1px, transparent 2px),
    radial-gradient(circle at 70% 40%, #ffe29b 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 82% 68%, #ffe29b 0 1px, transparent 2px),
    radial-gradient(circle at 94% 30%, #ffe29b 0 1px, transparent 2px);
  filter: drop-shadow(0 0 4px rgb(216 167 67 / 58%));
  animation: demo-particle-drift 34s linear infinite alternate;
}
.demo-game-brand,
.demo-download-pulse,
.demo-bazaar-link {
  position: fixed;
  z-index: 20;
  top: max(14px, env(safe-area-inset-top));
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
}
.demo-game-brand {
  right: max(14px, env(safe-area-inset-right));
  gap: 9px;
  padding: 6px 12px 6px 14px;
  color: var(--white);
  background: rgb(8 34 37 / 70%);
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: 0 14px 34px rgb(0 0 0 / 26%);
  font-weight: 800;
}
.demo-game-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}
.demo-download-pulse {
  left: max(14px, env(safe-area-inset-left));
  direction: rtl;
  display: grid;
  gap: 0;
  justify-items: center;
  min-width: 112px;
  padding: 7px 15px 8px;
  color: #102528;
  background: linear-gradient(135deg, #fff3bd, var(--gold) 56%, var(--amber));
  border: 1px solid rgb(255 255 255 / 46%);
  font-weight: 800;
  animation: download-pulse 1.65s ease-in-out infinite;
}
.demo-download-pulse span {
  font-size: 0.78rem;
  line-height: 1.1;
}
.demo-download-pulse strong {
  font-size: 1rem;
  line-height: 1.25;
}
.demo-bazaar-link {
  left: calc(max(14px, env(safe-area-inset-left)) + 120px);
  direction: rtl;
  display: grid;
  gap: 0;
  justify-items: center;
  min-width: 112px;
  min-height: 44px;
  padding: 6px 15px 7px;
  color: var(--white);
  background: rgb(25 116 72 / 88%);
  border: 1px solid rgb(255 255 255 / 24%);
  box-shadow: 0 12px 28px rgb(0 0 0 / 26%);
  font-weight: 800;
}
.demo-bazaar-link:hover {
  background: rgb(31 137 85 / 94%);
  border-color: rgb(255 241 189 / 48%);
  transform: translateY(-1px);
}
.demo-bazaar-link span {
  font-size: 0.72rem;
  line-height: 1.1;
}
.demo-bazaar-link strong {
  font-size: 0.94rem;
  line-height: 1.25;
}
.demo-game-stage {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(8px, 1.5svh, 14px);
  margin: 0 auto;
  padding: clamp(74px, 10svh, 92px) 0 clamp(10px, 2svh, 18px);
}

@media (min-width: 1181px) {
  .demo-game-stage {
    width: min(1050px, calc(100% - 260px));
    margin-left: 220px;
    margin-right: auto;
  }
}

@media (max-width: 1180px) {
  .demo-screen-tutorial {
    display: none;
  }
}
.demo-game-header {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}
.demo-game-header .section-kicker {
  margin: 0;
}
.demo-game-header h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.55rem, 4svh, 2.45rem);
  line-height: 1.15;
  text-shadow: 0 4px 22px rgb(0 0 0 / 34%);
}
.demo-game-summary {
  max-width: 680px;
  margin: 3px 0 0;
  color: rgb(255 248 232 / 78%);
  font-size: clamp(0.78rem, 1.5svh, 0.92rem);
  font-weight: 700;
  line-height: 1.65;
}
.demo-game-page .demo-game-board {
  min-height: 0;
  height: auto;
  align-self: start;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: clamp(8px, 1.4vw, 14px);
}
.demo-game-page .demo-levels,
.demo-game-page .demo-play {
  min-height: 0;
  height: auto;
  background: rgb(255 254 250 / 92%);
  box-shadow: 0 22px 58px rgb(0 0 0 / 34%);
}
.demo-game-page .demo-levels {
  grid-template-rows: auto 1fr;
}
.demo-game-page .demo-level-list {
  max-height: none;
  overflow: hidden;
  gap: 4px;
  padding: 7px;
}
.demo-game-page .demo-level-button {
  min-height: 34px;
  padding: 5px 8px;
}
.demo-screen-tutorial {
  position: fixed;
  z-index: 19;
  top: 86px;
  left: max(14px, env(safe-area-inset-left));
  width: min(188px, calc(100vw - 28px));
  display: grid;
  gap: 6px;
  padding: 12px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgb(14 112 116 / 10%), rgb(232 196 106 / 12%)),
    rgb(255 254 250 / 90%);
  border: 1px solid rgb(14 112 116 / 14%);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 42px rgb(0 0 0 / 24%);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  line-height: 1.45;
}
.demo-screen-tutorial strong {
  color: var(--teal);
  font-size: 0.86rem;
  line-height: 1.2;
}
.demo-screen-tutorial span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.demo-screen-tutorial b {
  color: var(--ink);
}
.demo-game-page .demo-play {
  grid-template-rows: auto auto auto auto auto auto;
  gap: clamp(6px, 1.15svh, 10px);
  padding: clamp(10px, 2svh, 16px);
}
.demo-game-page .demo-route-step {
  min-height: clamp(56px, 9svh, 72px);
  padding: clamp(7px, 1.3svh, 10px);
}
.demo-game-page .demo-route-step strong {
  font-size: clamp(1.15rem, 3.6svh, 1.9rem);
}
.demo-game-page .demo-current-word {
  min-height: clamp(48px, 8svh, 62px);
  padding: clamp(6px, 1.3svh, 10px);
}
.demo-game-page .demo-letter {
  width: clamp(32px, 6svh, 40px);
  height: clamp(35px, 6.5svh, 44px);
  font-size: clamp(0.95rem, 2.8svh, 1.16rem);
}
.demo-game-page .demo-gap {
  height: clamp(35px, 6.5svh, 44px);
}
.demo-game-page .demo-keyboard {
  gap: clamp(3px, 0.8svh, 5px);
  padding: clamp(6px, 1.2svh, 9px);
}
.demo-game-page .demo-keyboard-row {
  gap: clamp(2px, 0.65svh, 5px);
}
.demo-game-page .demo-key {
  height: clamp(28px, 5svh, 34px);
  font-size: clamp(0.76rem, 2.25svh, 0.94rem);
}
.demo-game-page .demo-history {
  min-height: 38px;
  max-height: 52px;
  overflow: auto;
  align-content: start;
  padding: 6px 8px;
}
.demo-game-page .demo-chip {
  min-height: clamp(24px, 4.6svh, 29px);
  padding: 2px 8px;
  font-size: clamp(0.72rem, 2.1svh, 0.84rem);
}
.demo-game-page .demo-answer-card .demo-solution-path {
  justify-content: center;
  max-height: clamp(120px, 26svh, 190px);
  overflow: auto;
  padding: 4px;
}
.demo-game-page .demo-controls {
  flex-wrap: nowrap;
}
.demo-game-page .demo-controls button {
  flex: 1;
}

@media (max-width: 980px) {
  .demo-launch-shell {
    grid-template-columns: 1fr;
  }
  .demo-game-page .demo-game-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .demo-game-page .demo-levels {
    height: auto;
    grid-template-rows: auto auto;
  }
  .demo-game-page .demo-level-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(128px, 1fr);
    grid-template-columns: none;
    overflow: hidden;
  }
  .demo-screen-tutorial {
    display: none;
  }
}

@media (max-width: 680px) {
  .demo-game-brand span {
    display: none;
  }
  .demo-download-pulse,
  .demo-bazaar-link {
    min-width: 94px;
    min-height: 44px;
    padding-inline: 12px;
  }
  .demo-bazaar-link {
    left: calc(max(14px, env(safe-area-inset-left)) + 102px);
  }
  .demo-game-stage {
    width: calc(100% - 14px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-top: 70px;
    padding-bottom: 20px;
  }
  .demo-game-header {
    display: none;
  }
  .demo-game-page .demo-game-board {
    height: auto;
    max-height: calc(100svh - 96px);
    gap: 8px;
  }
  .demo-game-page .demo-levels-head {
    padding: 7px 9px;
    font-size: 0.78rem;
  }
  .demo-game-page .demo-level-list {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
  }
  .demo-game-page .demo-level-button {
    min-height: 34px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding: 4px;
  }
  .demo-game-page .demo-level-title {
    display: none;
  }
  .demo-game-page .demo-level-index {
    width: 20px;
    height: 20px;
    font-size: 0.66rem;
  }
  .demo-game-page .demo-level-par {
    display: none;
  }
  .demo-game-page .demo-play {
    gap: 8px;
    padding: 10px;
  }
  .demo-game-page .demo-topline,
  .demo-game-page .demo-message,
  .demo-game-page .demo-delete-zone {
    font-size: 0.7rem;
  }
  .demo-game-page .demo-topline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    text-align: center;
  }
  .demo-game-page .demo-route {
    gap: 3px;
  }
  .demo-game-page .demo-route-step {
    min-height: 52px;
    padding: 6px 4px;
  }
  .demo-game-page .demo-route-step span {
    font-size: 0.58rem;
  }
  .demo-game-page .demo-route-step strong {
    font-size: clamp(0.92rem, 4.6svh, 1.2rem);
  }
  .demo-game-page .demo-route-connector {
    font-size: 0.88rem;
  }
  .demo-game-page .demo-words {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .demo-game-page .demo-words div {
    min-height: 64px;
    padding: 9px;
  }
  .demo-game-page .demo-words span {
    font-size: 0.64rem;
  }
  .demo-game-page .demo-words strong {
    font-size: clamp(1.1rem, 6.8svh, 1.55rem);
  }
  .demo-game-page .demo-current-word {
    min-height: 52px;
    gap: 3px;
    padding: 7px;
  }
  .demo-game-page .demo-letter {
    width: clamp(30px, 5.8svh, 35px);
    height: clamp(34px, 6.2svh, 39px);
    font-size: 0.96rem;
  }
  .demo-game-page .demo-gap {
    width: 5px;
    height: clamp(34px, 6.2svh, 39px);
  }
  .demo-game-page .demo-keyboard {
    gap: 3px;
    padding: 5px;
  }
  .demo-game-page .demo-key {
    height: clamp(28px, 5svh, 32px);
    font-size: 0.76rem;
  }
  .demo-game-page .demo-history {
    min-height: 40px;
    padding: 6px;
    gap: 5px;
  }
  .demo-game-page .demo-chip {
    min-height: 22px;
    padding: 2px 6px;
    font-size: 0.68rem;
  }
  .demo-game-page .demo-answer-card {
    width: min(340px, calc(100vw - 34px));
    padding: 22px 14px 16px;
  }
  .demo-game-page .demo-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .demo-game-page .demo-controls button {
    min-height: 36px;
    padding-inline: 4px;
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .demo-game-stage {
    width: calc(100% - 10px);
    padding-top: 62px;
    padding-bottom: 14px;
  }
  .demo-game-brand,
  .demo-download-pulse {
    top: 8px;
  }
  .demo-game-brand {
    right: 8px;
    min-height: 40px;
    padding: 4px;
  }
  .demo-game-brand img {
    width: 32px;
    height: 32px;
  }
  .demo-download-pulse {
    left: 8px;
    min-width: 84px;
    min-height: 40px;
    padding: 6px 10px;
  }
  .demo-download-pulse span {
    font-size: 0.7rem;
  }
  .demo-download-pulse strong {
    font-size: 0.88rem;
  }
  .demo-bazaar-link {
    top: 8px;
    left: 100px;
    min-width: 84px;
    min-height: 38px;
    padding: 5px 10px;
  }
  .demo-bazaar-link span {
    font-size: 0.66rem;
  }
  .demo-bazaar-link strong {
    font-size: 0.82rem;
  }
  .demo-game-page .demo-level-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .demo-game-page .demo-level-title {
    display: none;
  }
  .demo-game-page .demo-message {
    min-height: 26px;
    padding: 4px 6px;
  }
  .demo-game-page .demo-key {
    height: 26px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Minimal image-inspired theme reset */
:root {
  --ink: #102725;
  --muted: #667469;
  --paper: #fff4dc;
  --paper-2: #ead3a0;
  --teal: #0d6d69;
  --teal-dark: #082b2d;
  --gold: #d8a743;
  --amber: #b97832;
  --crimson: #7f3341;
  --blue: #214a4d;
  --purple: #173b3d;
  --lime: #4f7d3f;
  --white: #fff8e8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow: 0 22px 56px rgb(8 43 45 / 18%);
  --shadow-deep: 0 34px 86px rgb(0 0 0 / 30%);
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 30%) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgb(255 255 255 / 22%) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 12% 8%, rgb(216 167 67 / 14%), transparent 28%),
    linear-gradient(135deg, rgb(13 109 105 / 8%) 0 20%, transparent 20% 100%),
    #f4e2ba;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.site-header {
  background: rgb(8 43 45 / 86%);
  border: 1px solid rgb(216 167 67 / 22%);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 46px rgb(0 0 0 / 26%);
}
.site-header::before,
.hero::before {
  display: none;
}
.brand img,
.footer-brand img {
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 7px 20px rgb(0 0 0 / 25%);
}
.nav-links a {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--gold);
  background: transparent;
  border-color: transparent;
}

.header-action,
.primary-button,
.demo-download-pulse,
.demo-controls [data-demo-solution-toggle],
.download-status,
.demo-launch-card span {
  color: #172b27;
  background: linear-gradient(135deg, #fff1bd, var(--gold) 58%, var(--amber));
  border-color: rgb(255 255 255 / 34%);
}
.secondary-button {
  color: var(--white);
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 30%);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(8 33 35 / 92%) 0%, rgb(8 33 35 / 68%) 44%, rgb(8 33 35 / 28%) 100%),
    linear-gradient(0deg, rgb(8 33 35) 0%, transparent 38%);
}
.hero h1 {
  text-shadow: 0 12px 50px rgb(0 0 0 / 45%);
}
.hero-stats div,
.hero-download-panel {
  background: rgb(8 43 45 / 68%);
  border-color: rgb(216 167 67 / 18%);
}

.about-section {
  color: var(--ink);
}
.about-section .section-copy p:not(.section-kicker),
.about-maker-section .section-copy p:not(.section-kicker) {
  color: var(--muted);
}
.proof-grid article:nth-child(1) {
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
}
.proof-grid article:nth-child(2) {
  background: linear-gradient(145deg, var(--crimson), #4b2631);
}
.proof-grid article:nth-child(3) {
  background: linear-gradient(145deg, var(--blue), var(--teal-dark));
}

.bridge-signature,
.journey-section,
.contact-section,
.screenshots-section,
.site-footer {
  background:
    radial-gradient(circle at 18% 0%, rgb(216 167 67 / 12%), transparent 32%),
    linear-gradient(135deg, rgb(8 43 45 / 96%), rgb(10 31 32 / 96)),
    var(--teal-dark);
}

.demo-section {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgb(13 109 105 / 10%) 0 24%, transparent 24% 100%),
    linear-gradient(225deg, rgb(216 167 67 / 12%) 0 22%, transparent 22% 100%),
    #fff4dc;
}
.demo-launch-card {
  background:
    linear-gradient(145deg, rgb(8 43 45 / 90%), rgb(13 109 105 / 84)),
    url("./assets/images/level_screen.webp") center 30% / cover;
  border-color: rgb(216 167 67 / 38%);
}

.gameplay-section,
.daily-section,
.progression-section {
  background: linear-gradient(180deg, #fff4dc, #ead3a0);
}
.step-list li,
.tag-list span {
  background: var(--white);
  border-color: rgb(13 109 105 / 14%);
  box-shadow: 0 10px 28px rgb(8 43 45 / 8%);
}
.mode-panel {
  background: linear-gradient(145deg, var(--teal-dark), #173f43);
}
.mode-panel:nth-child(2) {
  background: linear-gradient(145deg, #493447, var(--teal-dark));
}
.screenshot-card {
  background: #d6bf82;
  border: 0;
  box-shadow: var(--shadow);
}
.about-maker-card {
  background:
    linear-gradient(145deg, rgb(216 167 67 / 18%), transparent 42%),
    linear-gradient(145deg, var(--teal), var(--teal-dark));
}
.about-page-hero::after {
  background:
    linear-gradient(90deg, rgb(8 33 35 / 92%), rgb(8 33 35 / 62%)),
    linear-gradient(0deg, rgb(8 33 35) 0%, transparent 44%);
}
.download-card {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 12%), transparent 44%),
    rgb(255 255 255 / 8%);
}
.myket-card {
  background:
    radial-gradient(circle at 18% 18%, rgb(255 255 255 / 30%), transparent 24%),
    linear-gradient(145deg, rgb(13 109 105 / 38%), rgb(33 74 77 / 42%) 52%, rgb(216 167 67 / 24%)),
    rgb(255 255 255 / 8%);
}

body.demo-game-page {
  background:
    radial-gradient(circle at 50% 8%, rgb(216 167 67 / 10%), transparent 30%),
    #08212b;
}
body.demo-game-page .demo-game-stage {
  width: min(1050px, calc(100% - 32px));
  margin: 0 auto;
}
.demo-game-vignette {
  background:
    radial-gradient(circle at 50% 38%, rgb(216 167 67 / 10%), transparent 34%),
    linear-gradient(90deg, rgb(8 33 35 / 84%), rgb(8 33 35 / 34) 45%, rgb(8 33 35 / 82%)),
    linear-gradient(180deg, rgb(8 33 35 / 72%), rgb(8 33 35 / 28%) 45%, rgb(8 33 35 / 86%));
}
.demo-game-brand {
  background: rgb(8 43 45 / 72%);
  border-color: rgb(216 167 67 / 22%);
}
.demo-game-page .demo-levels,
.demo-game-page .demo-play {
  background: rgb(255 248 232 / 94%);
  border-color: rgb(13 109 105 / 14%);
}
.demo-screen-tutorial {
  top: 132px;
  width: clamp(240px, 16vw, 320px);
  gap: clamp(10px, 1vw, 14px);
  padding: clamp(16px, 1.25vw, 22px);
  opacity: 0.96;
  background:
    linear-gradient(180deg, rgb(13 109 105 / 10%), rgb(216 167 67 / 12%)),
    rgb(255 248 232 / 92%);
  border-color: rgb(13 109 105 / 14%);
  font-size: clamp(0.9rem, 0.82vw, 1.05rem);
  line-height: 1.65;
}
.demo-screen-tutorial strong {
  font-size: clamp(1.05rem, 1vw, 1.24rem);
}
.demo-screen-tutorial span {
  display: block;
}
.demo-screen-tutorial b {
  display: inline-block;
  margin-inline-end: 3px;
}

@media (max-width: 1480px) {
  .demo-screen-tutorial {
    display: none;
  }
}

@media (max-width: 680px) {
  .about-section {
    color: var(--ink);
  }
}
