/* ============================================================
   Loot Creek — studio site styles
   Faithful static recreation of the design system's studio-site
   UI kit (branding/project/ui_kits/studio-site). Layout matches
   the kit; every visual value comes from tokens.css.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text-link); text-decoration: none; }
img { display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---- Chunky candy button (Button.jsx recipe) ---- */
.btn {
  --btn-bg: var(--gold-400);
  --btn-fg: var(--text-on-brand);
  --btn-edge: var(--gold-600);
  --btn-border: var(--gold-500);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--chunk-md) var(--btn-edge), var(--sheen-top);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              filter var(--dur-fast) var(--ease-out);
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 0 var(--btn-edge), var(--sheen-top); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn--sm { height: 38px; padding: 0 var(--space-4); font-size: 14px; }
.btn--md { height: 46px; padding: 0 var(--space-6); font-size: 16px; }
.btn--lg { height: 54px; padding: 0 var(--space-8); font-size: 18px; }
.btn--secondary { --btn-bg: var(--teal-400); --btn-fg: var(--white); --btn-edge: var(--teal-600); --btn-border: var(--teal-500); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text-body); --btn-edge: transparent; --btn-border: var(--border-strong);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--ink-50); transform: none; box-shadow: none; filter: none; }
.btn--ghost.btn--inverse { --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.3); }
.btn--ghost.btn--inverse:hover { --btn-bg: rgba(255, 255, 255, 0.08); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 248, 236, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-soft);
}
.nav__in { display: flex; align-items: center; gap: 24px; height: 74px; }
.nav__links { display: flex; gap: 6px; margin-left: 18px; }
.nav__links a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600;
  color: var(--text-body); font-size: 15px;
}
.nav__links a:hover { background: var(--ink-50); }
.nav__sp { flex: 1; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 42px; height: 42px; }
.brand b {
  font-family: var(--font-hero); font-size: 22px; color: var(--gold-500);
  -webkit-text-stroke: 1.2px var(--ink-900); white-space: nowrap;
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--grad-night); color: #fff; }
.hero__pat {
  position: absolute; inset: 0;
  background-image: url("../assets/pattern-loot.svg");
  background-size: 130px; opacity: 0.10; filter: invert(1);
}
.hero__in {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 40px; align-items: center; padding: 72px 0 110px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 58px;
  line-height: 1.02; color: #fff; margin: 0 0 18px; letter-spacing: -0.01em;
}
.hero h1 .hl { color: var(--gold-400); }
.hero > .wrap p, .hero__copy > p { font-size: 19px; line-height: 1.5; color: var(--ink-200); max-width: 480px; margin: 0 0 28px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 30px; margin-top: 38px; }
.hero__stat b { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff; display: block; line-height: 1; }
.hero__stat span { font-size: 13px; color: var(--ink-300); font-weight: 700; }
.hero__art {
  position: relative; height: 360px; border-radius: var(--radius-2xl);
  background: var(--grad-creek); border: 4px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero__art .big { font-size: 150px; color: rgba(255, 255, 255, 0.92); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)); }
.float { position: absolute; animation: bob 3.2s var(--ease-bounce) infinite alternate; }
.float--b { animation-delay: 1.4s; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* Currency pills in hero art (StatPill look) */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-900); color: #fff;
  border-radius: var(--radius-pill); padding: 8px 16px 8px 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gold-400);
}
.pill--gem { border-color: var(--gem-400); }
.pill i { font-size: 20px; color: var(--gold-400); }
.pill--gem i { color: var(--gem-300); }

.wave { display: block; width: 100%; height: 70px; margin-top: -69px; position: relative; z-index: 2; }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section--alt { background: var(--white); }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.shead h2 { font-family: var(--font-display); font-weight: 700; font-size: 34px; margin: 0; color: var(--text-strong); }
.shead p { margin: 6px 0 0; color: var(--text-muted); font-size: 16px; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-500); margin: 0 0 8px;
}

/* ---- Game cards ---- */
.grid-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gcard {
  background: var(--surface-card); border-radius: var(--radius-lg);
  border: 2px solid var(--border-soft); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-bounce), box-shadow var(--dur-med) var(--ease-out);
}
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gcover { height: 160px; display: flex; align-items: center; justify-content: center; position: relative; }
.gcover .gi { font-size: 64px; color: rgba(255, 255, 255, 0.95); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--gold-400); color: var(--ink-900);
  box-shadow: var(--chunk-sm) var(--gold-600), var(--sheen-top);
}
.badge--teal { background: var(--teal-400); color: #fff; box-shadow: var(--chunk-sm) var(--teal-600), var(--sheen-top); }
.gbody { padding: 16px 18px 18px; }
.gbody h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 4px; color: var(--text-strong); }
.gbody .desc { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.45; min-height: 40px; }
.gmeta { display: flex; align-items: center; justify-content: space-between; }
.gmeta .status { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--teal-500); }
.tag {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--sky-50); color: var(--sky-600); border: 1px solid var(--sky-200);
}

/* ---- Stats band (night card) ---- */
.nightcard {
  background: var(--grad-night); border-radius: var(--radius-xl);
  border: 2px solid var(--ink-700); box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold-400);
  padding: 8px;
}
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.statbox { text-align: center; padding: 24px 12px; }
.statbox b { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--gold-400); display: block; line-height: 1.1; }
.statbox span { font-weight: 700; color: var(--ink-300); font-size: 14px; }

/* ---- Studio ---- */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.studio h2 { font-family: var(--font-display); font-size: 34px; margin: 0 0 12px; color: var(--text-strong); }
.studio > div > p { color: var(--text-muted); font-size: 16px; line-height: 1.55; margin: 0; }
.studio__art {
  height: 300px; border-radius: var(--radius-2xl); background: var(--grad-sunrise);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
}
.studio__art i { font-size: 120px; color: rgba(255, 255, 255, 0.9); }
.values { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value .vic {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; flex: none;
  box-shadow: var(--sheen-top);
}
.value h4 { font-family: var(--font-display); margin: 0 0 2px; font-size: 17px; color: var(--text-strong); }
.value p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.45; }

/* ---- Footer ---- */
.footer { background: var(--ink-900); color: var(--ink-200); padding: 48px 0 36px; }
.footer__in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .brand b { color: var(--gold-400); }
.footer__blurb { font-size: 14px; color: var(--ink-300); line-height: 1.5; margin: 0; }
.foot-links { display: flex; gap: 60px; }
.foot-col h5 { font-family: var(--font-display); color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: 0.04em; }
.foot-col a { display: block; color: var(--ink-300); font-size: 14px; font-weight: 600; padding: 4px 0; }
.foot-col a:hover { color: var(--gold-400); }
.footer__legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--ink-700); font-size: 13px; color: var(--ink-400); }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .hero__in, .studio { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .hero__art { height: 280px; }
  .grid-g { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .grid-g { grid-template-columns: 1fr; }
  .shead { flex-direction: column; align-items: flex-start; }
  .brand b { display: none; } /* emblem-only lockup; wordmark + CTA overflow 390px */
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 36px; }
  .hero__stats { gap: 20px; }
}
body { overflow-x: clip; }
