:root {
  --ink: #1b140c;
  --cream: #f7f0e2;
  --gold: #f0c14a;
  --gold-deep: #c4892a;
  --pine: #173024;
  --card: rgba(255, 248, 236, 0.94);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  font-family: Nunito, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(240, 193, 74, 0.18), transparent 60%),
    linear-gradient(180deg, #10261c 0%, #0c1812 40%, #14110e 100%);
  min-height: 100vh;
}

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
main, footer { position: relative; z-index: 1; }
main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(12, 24, 18, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 193, 74, 0.25);
}
.logo {
  color: var(--gold);
  text-decoration: none;
  font-family: Unbounded, sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}
.nav nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.langs { display: flex; gap: 6px; }
.langs a {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(240, 193, 74, 0.45);
  border-radius: 999px;
  padding: 5px 10px;
  text-decoration: none;
}
.langs a.on,
.langs a:hover {
  background: var(--gold);
  color: #2a1c08;
  border-color: var(--gold);
}
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
}
.nav nav a:hover { color: var(--gold); }

.hero { padding: 22px 0 8px; }
.hero-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(240, 193, 74, 0.45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(240, 193, 74, 0.18);
  animation: frameGlow 4.5s ease-in-out infinite;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 244, 210, 0.28) 48%, transparent 62%);
  transform: translateX(-130%);
  animation: sheen 6.5s ease-in-out infinite;
  pointer-events: none;
}
.hero-frame img {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-panel {
  margin: 18px auto 0;
  position: relative;
  max-width: 860px;
  background: rgba(18, 14, 10, 0.72);
  border: 1px solid rgba(240, 193, 74, 0.35);
  border-radius: 24px;
  padding: 26px 28px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
}
h1, h2, h3 { font-family: Unbounded, sans-serif; margin: 0 0 12px; }
h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  background: linear-gradient(100deg, #fff8e8 20%, #ffe08a 45%, #fff8e8 70%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShine 6s linear infinite;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff6df; }
.lead { margin: 0 auto; max-width: 640px; font-size: 1.08rem; color: #f3e7cf; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}
.btn { position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn.primary {
  background: linear-gradient(180deg, #ffe08a, var(--gold) 40%, var(--gold-deep));
  color: #2a1c08;
  box-shadow: 0 8px 20px rgba(196, 137, 42, 0.35);
}
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 2.8s ease-in-out infinite;
}
.btn.ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 240, 226, 0.45);
}
.btn:hover { transform: translateY(-1px); }

.panel { padding: 48px 0; }
.section-head { margin-bottom: 22px; text-align: center; }
.sub { max-width: 640px; margin-inline: auto; color: #e7dcc6; }
.about-grid { display: grid; gap: 16px; }
.card {
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(196, 137, 42, 0.35);
}
.story { font-size: 1.05rem; }
.story p { margin-top: 0; }
.fine { font-size: 0.9rem; opacity: 0.75; }
.fine a { color: var(--gold-deep); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.feat span { color: var(--gold-deep); font-family: Unbounded, sans-serif; font-size: 0.8rem; }
.feat h3 { font-size: 1rem; margin: 6px 0; }
.feat p { margin: 0; }

.shot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.shot-row img {
  width: min(100%, 320px);
  flex: 1 1 240px;
  max-width: 340px;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(240, 193, 74, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.shot-row img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(240, 193, 74, 0.35);
}

.stage {
  margin-inline: auto;
  background: #070b09;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(240, 193, 74, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.stage.portrait {
  max-width: 420px;
}
#main-title { text-align: center; }
#main-video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}
#main-title {
  margin: 0;
  padding: 14px 18px 16px;
  font-size: 1rem;
  color: var(--cream);
}
.vgrid {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.vcard {
  padding: 0;
  border: 1px solid rgba(240, 193, 74, 0.25);
  border-radius: 16px;
  overflow: hidden;
  background: #101814;
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  font: inherit;
  width: 180px;
  flex: 0 1 180px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.vcard video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #000;
  display: block;
  pointer-events: none;
}
.vcard span {
  display: block;
  padding: 10px 12px 12px;
  font-weight: 800;
  min-height: 3.2em;
}
.vcard.on, .vcard:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.game-wrap {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(240, 193, 74, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
#runner { width: 100%; height: auto; display: block; }
.game-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
}
#score, #restart {
  font: inherit;
  font-weight: 800;
  background: rgba(255, 248, 236, 0.92);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
}
#restart { cursor: pointer; background: var(--gold); }

.download {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  text-align: center;
}
.download .lead { margin-inline: auto; }
.download > div { max-width: 460px; }
.qr-card {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 16px;
  text-align: center;
  animation: qrGlow 3.2s ease-in-out infinite;
}
.qr-card img { width: min(100%, 240px); height: auto; }
.qr-card p { margin: 8px 0 0; font-weight: 800; }

footer {
  padding: 10px 20px 48px;
  text-align: center;
  color: rgba(247, 240, 226, 0.7);
  font-weight: 700;
}
.foot {
  width: min(760px, 100%);
  margin: 0 auto;
}
.foot h2 { font-size: 1.45rem; }
.foot p {
  margin: 0 0 12px;
  color: #e7dcc6;
  font-weight: 650;
  line-height: 1.55;
}
.foot-copy { margin-top: 18px; color: rgba(247, 240, 226, 0.55); }

.panel {
  animation: rise 0.8s ease both;
}
#about { animation-delay: 0.05s; }
#shots { animation-delay: 0.1s; }
#video { animation-delay: 0.12s; }
#play { animation-delay: 0.14s; }
#download { animation-delay: 0.16s; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 10, 8, 0.82);
  backdrop-filter: blur(6px);
}
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(240, 193, 74, 0.25);
}

@keyframes drift {
  to { transform: scale(1.1) translateY(-1.5%); }
}
@keyframes sheen {
  0%, 55% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
@keyframes titleShine {
  to { background-position: 220% center; }
}
@keyframes frameGlow {
  50% { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 64px rgba(240, 193, 74, 0.38); }
}
@keyframes qrGlow {
  50% { box-shadow: 0 0 0 8px rgba(240, 193, 74, 0.28), 0 18px 40px rgba(0, 0, 0, 0.3); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  #dust { display: none; }
}

@media (max-width: 900px) {
  .feature-grid, .download { grid-template-columns: 1fr 1fr; }
  .hero-frame img { height: 52vh; }
  .hero-panel { margin-top: 14px; }
}
@media (max-width: 640px) {
  .feature-grid, .download { grid-template-columns: 1fr; }
  .nav nav { width: 100%; }
  .shot-row img { max-width: none; }
}
