/* Wee Forge Games — site styles. Palette from the Google Play header (r1 P2) and the developer icon (I1). */

:root {
  --night-950: #0b0a1f;
  --night-900: #110f2b;
  --night-800: #18153b;
  --night-700: #221e4f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f2ff;
  --muted: #bdb7dc;
  --dim: #8a84b0;
  --forge: #f97316;
  --ember: #ff8a3d;
  --gold: #ffb020;
  --glow: rgba(249, 115, 22, 0.38);
  --radius: 22px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--night-950);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.skip:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--body); text-decoration: none; letter-spacing: 0.01em;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, #ffa046 0%, var(--forge) 55%, #e2550a 100%);
  color: #fff; box-shadow: 0 10px 30px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(249, 115, 22, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 10, 31, 0.78); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 176, 32, 0.35), 0 6px 18px -4px var(--glow); }
.brand span { font: 800 1.2rem/1 var(--display); letter-spacing: 0.01em; }
.brand b { color: var(--ember); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { padding: 11px 18px; font-size: 0.9rem; color: #fff; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s, top 0.3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  --artw: max(100vw, 1180px);
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% 20%, #1d1a52 0%, #131137 45%, var(--night-950) 100%);
  display: flex; flex-direction: column; align-items: center;
}
/* the hero's bottom melts into the page, so the games follow without a seam */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 10, 31, 0), var(--night-950) 92%);
}
/* The art sits in the flow under the text: its empty top (the night sky, ~29 % of its height) slides up behind the
   text, so the hammer starts just below the buttons on every screen; the calm bottom is cut. */
.hero-art {
  position: relative; z-index: -2; flex: none; order: 2;
  width: var(--artw);
  margin-top: calc(var(--artw) * -0.163);
  margin-bottom: calc(var(--artw) * -0.085);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 80%, transparent 100%);
}
.hero-art img { width: 100%; height: auto; }
.sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-inner { text-align: center; padding: 132px 24px 0; max-width: 900px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.8rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  padding: 9px 16px; border-radius: 999px; background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.22);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero h1 {
  font: 900 clamp(3rem, 7.4vw, 5.8rem)/0.98 var(--display);
  letter-spacing: -0.02em; margin: 26px 0 22px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.hot {
  background: linear-gradient(180deg, #ffe08a 0%, var(--gold) 35%, var(--forge) 75%, #d9480f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(249, 115, 22, 0.45));
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 auto; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 44px; border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 14px;
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.kicker { font: 600 0.8rem/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); }
.h2 { font: 800 clamp(2.2rem, 4.6vw, 3.6rem)/1.05 var(--display); letter-spacing: -0.015em; margin: 16px 0 18px; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }

/* ---------- games ---------- */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.game {
  --accent: var(--forge);
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--night-800), var(--night-900));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.game::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.35s ease;
}
.game:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--accent) 55%, transparent); }
.game:hover::after { opacity: 1; }
.game-banner { display: block; aspect-ratio: 1024 / 500; overflow: hidden; position: relative; }
.game-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.game:hover .game-banner img { transform: scale(1.04); }
.game-banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, var(--night-800), transparent); }
.game-body { position: relative; padding: 0 30px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.game-top { display: flex; align-items: flex-end; gap: 18px; margin-top: -46px; position: relative; z-index: 1; }
.game-icon { width: 96px; height: 96px; border-radius: 24px; flex: none; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), 0 0 0 3px var(--night-800); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.chip {
  font: 600 0.72rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; color: var(--text);
  background: color-mix(in srgb, var(--accent) 20%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.game h3 { font: 800 1.65rem/1.15 var(--display); letter-spacing: -0.01em; }
.game h3 .amp { font-family: var(--body); font-weight: 800; }
.game h3 small { display: block; font: 500 0.95rem/1.3 var(--body); color: var(--dim); letter-spacing: 0; margin-top: 4px; }
.game p { color: var(--muted); }
.game-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.play {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 11px 18px 11px 14px; border-radius: 12px; background: #000; border: 1px solid rgba(255, 255, 255, 0.22);
  transition: border-color 0.2s, transform 0.2s;
}
.play:hover { border-color: rgba(255, 255, 255, 0.55); transform: translateY(-1px); }
.play svg { width: 22px; height: 22px; }
.play span { display: flex; flex-direction: column; font: 500 0.62rem/1.1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; color: #ddd; }
.play span b { font: 600 1.02rem/1.1 var(--body); text-transform: none; letter-spacing: 0; color: #fff; }
.thumbs { display: flex; gap: 6px; }
.thumbs img { height: 54px; width: auto; border-radius: 7px; border: 1px solid var(--line-strong); }

/* ---------- screens marquee ---------- */
.screens { padding: 110px 0 120px; overflow: hidden; background: radial-gradient(80% 60% at 50% 50%, rgba(249, 115, 22, 0.07), transparent 70%); }
.screens .head { margin-bottom: 44px; }
.rail { display: flex; width: max-content; gap: 18px; }
.js .rail { animation: rail 70s linear infinite; }
.js .rail + .rail { animation-direction: reverse; }
.rail + .rail { margin-top: 18px; }
.screens > .rail { padding-left: 24px; }
.rail img {
  height: 300px; width: auto; border-radius: 20px; flex: none;
  border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
}
@keyframes rail { to { transform: translateX(calc(-1 * var(--shift, 50%))); } }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.pillar i {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(255, 160, 70, 0.25), rgba(249, 115, 22, 0.08)); border: 1px solid rgba(249, 115, 22, 0.35);
}
.pillar i svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font: 700 1.25rem/1.25 var(--display); margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 0.97rem; }

/* ---------- publishers ---------- */
.partner {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(249, 115, 22, 0.28), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(120, 90, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--night-700), var(--night-800));
  border: 1px solid rgba(255, 176, 32, 0.22);
}
.partner .h2 { margin-top: 14px; }
.ticks { list-style: none; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks svg { width: 30px; height: 30px; }
.partner .cta { justify-content: flex-start; }

/* ---------- contact / footer ---------- */
.contact { text-align: center; }
.contact .sub { margin: 0 auto; }
.mail {
  display: inline-block; margin-top: 30px; text-decoration: none;
  font: 800 clamp(1.2rem, 5vw, 2.6rem)/1.1 var(--display); overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--gold), var(--forge)); -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 2px solid rgba(249, 115, 22, 0.35); padding-bottom: 6px; transition: border-color 0.2s;
}
.mail:hover { border-color: var(--forge); }
.footer { border-top: 1px solid var(--line); padding: 40px 0 46px; color: var(--dim); font-size: 0.92rem; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--dim); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .brand img { width: 34px; height: 34px; }
.footer .brand span { font-size: 1.05rem; color: var(--text); }

/* ---------- legal pages ---------- */
.legal { padding: 140px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font: 800 clamp(2.2rem, 5vw, 3.2rem)/1.1 var(--display); margin-bottom: 26px; }
.legal h2 { font: 700 1.4rem/1.3 var(--display); margin: 38px 0 12px; color: var(--text); }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 12px 22px; display: grid; gap: 6px; }
.legal a { color: var(--ember); }
.legal a:hover { color: var(--gold); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.games .reveal:nth-child(2n) { transition-delay: 0.12s; }
.pillars .reveal:nth-child(2) { transition-delay: 0.08s; }
.pillars .reveal:nth-child(3) { transition-delay: 0.16s; }
.pillars .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .partner { grid-template-columns: 1fr; padding: 48px; gap: 36px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night-950); border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 18px; }
  .nav-links a { display: block; padding: 16px 0; font-size: 1.1rem; }
  .nav-links .btn { display: flex; padding: 15px; }
  .nav.menu-open { background: var(--night-950); }
  .games { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
  .hero { --artw: max(100vw, 900px); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { --artw: 230vw; }
  .hero-inner { padding-top: 116px; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; padding: 8px 13px; }
  .cta .btn { flex: 1 1 100%; }
  .pillars { grid-template-columns: 1fr; }
  .partner { padding: 32px 22px; border-radius: 24px; }
  .partner .cta .btn { flex: 1 1 100%; }
  .game-body { padding: 0 20px 22px; }
  .game-top { margin-top: -38px; gap: 14px; }
  .game-icon { width: 80px; height: 80px; border-radius: 20px; }
  .game h3 { font-size: 1.45rem; }
  .thumbs { display: none; }
  .rail img { height: 220px; border-radius: 16px; }
  .footer .wrap { flex-direction: column; text-align: center; }
  .footer nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .screens { overflow-x: auto; }
}
