:root {
  --espresso: #1e120c;
  --roast: #2b1a11;
  --mocha: #3d2618;
  --crema: #f6e7cf;
  --latte: #e9d3b0;
  --muted: #c4a888;
  --gold: #f4b63f;
  --gold-deep: #d98b1c;
  --cherry: #d8433a;
  --line: rgba(244, 182, 63, 0.18);
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--crema);
  background: var(--espresso);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: #ffd27a; }
h1, h2, h3 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: #fff4e2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75em;
}
.lead { font-size: 1.15rem; color: var(--latte); max-width: 40em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(30, 18, 12, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff4e2; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.15rem; }
.brand img { width: 44px; height: auto; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--latte); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--espresso); background: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem;
  text-decoration: none; padding: 14px 24px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #2b1a11; background: linear-gradient(180deg, #ffd06a, var(--gold-deep)); box-shadow: 0 6px 0 #9c5a0c, 0 12px 28px rgba(0,0,0,.35); }
.btn-primary:hover { color: #2b1a11; box-shadow: 0 8px 0 #9c5a0c, 0 16px 32px rgba(0,0,0,.4); }
.btn-ghost { color: var(--crema); border: 2px solid var(--line); }
.btn-ghost:hover { color: #fff; border-color: var(--gold); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(244,182,63,.22), transparent 55%),
    linear-gradient(180deg, var(--roast), var(--espresso));
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero-art { justify-self: center; width: min(380px, 80%); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--roast); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Game feature */
.game { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.game-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.game-head img.icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.game-head .meta { font-size: .9rem; color: var(--muted); }
.game-logo { width: min(420px, 100%); height: auto; margin: 0 auto; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.tags li { font-size: .82rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: rgba(244,182,63,.12); color: var(--gold); border: 1px solid var(--line); }

/* Phones */
.phones { display: flex; justify-content: center; gap: 22px; margin-top: 56px; flex-wrap: wrap; }
.phone {
  width: 220px; aspect-ratio: 941 / 1672; border-radius: 30px; overflow: hidden;
  border: 6px solid #120a06; box-shadow: 0 0 0 2px #4a2e1c, 0 24px 48px rgba(0,0,0,.5);
  background: #120a06;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone:nth-child(2) { transform: translateY(-24px); }

/* Shops ladder */
.shops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 48px; }
.shop { display:flex; flex-direction:column; justify-content:center; background: linear-gradient(180deg, var(--mocha), var(--roast)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 20px; text-align: center; }
.shop img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin-bottom: 10px; }
.shop h3 { font-size: 1.02rem; margin: 0; }
.shop span { font-size: .8rem; color: var(--muted); font-weight: 700; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature { background: var(--roast); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 14px; }
.feature p { color: var(--latte); margin: 0; font-size: .98rem; }
.tile-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.tile-row img { width: 64px; height: 64px; }

/* Social */
.social { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--crema); font-weight: 800; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--roast); }
.social a:hover { border-color: var(--gold); color: #fff; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* Studio band */
.studio { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.studio img { width: 240px; height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.45)); }

/* Prose pages */
.page-hero { padding: 64px 0 32px; background: linear-gradient(180deg, var(--roast), var(--espresso)); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); margin: 0; }
.prose { max-width: 760px; margin: 0 auto; padding: 48px 20px 88px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--gold); font-family: "Fredoka", sans-serif; font-weight: 500; }
.callout { background: var(--roast); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 18px 20px; margin: 1.5em 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.card { background: var(--roast); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--latte); }
.email { font-family: "Fredoka", sans-serif; font-size: 1.2rem; word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--latte); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .hero .wrap, .game, .studio { grid-template-columns: 1fr; text-align: center; }
  .hero { padding: 56px 0 64px; }
  .hero-art { order: -1; width: min(260px, 70%); }
  .hero-actions, .game-head, .tags { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .shops { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .studio img { margin: 0 auto; width: 180px; }
  section { padding: 64px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .nav a { padding: 8px 10px; font-size: .9rem; }
  .shops { grid-template-columns: repeat(2, 1fr); }
  .features, .contact-grid { grid-template-columns: 1fr; }
  .phone { width: 42%; border-radius: 22px; border-width: 4px; }
  .phone:nth-child(3) { display: none; }
  .phone:nth-child(2) { transform: none; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art { animation: none; }
  html { scroll-behavior: auto; }
}

.btn-soon { color: var(--latte); border: 2px dashed rgba(244,182,63,.35); cursor: default; }
.btn-soon:hover { transform: none; }
