/* Jambolaya — jambolaya.games
   Palette lifted from the app itself: deep teal table, blue tiles, gold accents. */

:root {
  --bg:        #0d2126;
  --bg-2:      #123038;
  --surface:   #1a3d47;
  --surface-2: #23515e;
  --line:      #2c5d6b;
  --ink:       #eaf3f5;
  --muted:     #9db9c0;
  --brand:     #4a7fd4;
  --brand-2:   #6f9ae8;
  --gold:      #e0a92b;
  --green:     #3f9e4d;
  --green-2:   #4cb85c;
  --danger:    #e0603f;
  --radius:    14px;
  --radius-s:  10px;
  --maxw:      1140px;
  --shadow:    0 10px 30px rgba(0, 0, 0, .35);
  --font:      system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-2); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 33, 38, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand b { font-size: 1.12rem; letter-spacing: .2px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav .nav-link { display: none; } }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border: 0; border-radius: var(--radius-s);
  font: inherit; font-weight: 700; font-size: 1rem;
  color: #fff; background: var(--brand);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .16s ease, box-shadow .16s ease;
}
.btn:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-play { background: linear-gradient(180deg, var(--green-2), var(--green)); font-size: 1.1rem; padding: 16px 38px; box-shadow: var(--shadow); }
.btn-play:hover { background: linear-gradient(180deg, #5ccb6d, #46ad56); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn[disabled], .btn.is-disabled {
  background: var(--surface-2); color: var(--muted);
  cursor: not-allowed; transform: none; box-shadow: none;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 74px 0 56px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 620px;
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 127, 212, .22), transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-logo { width: 104px; height: 104px; margin: 0 auto 22px; border-radius: 24px; box-shadow: var(--shadow); }
.hero h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 6vw, 3.5rem); line-height: 1.1; letter-spacing: -.5px; }
.hero h1 .accent { color: var(--gold); }
.hero .lede { margin: 0 auto 30px; max-width: 640px; font-size: clamp(1.02rem, 2.4vw, 1.22rem); color: var(--muted); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-note { font-size: .88rem; color: var(--muted); }

/* Mobile notice (shown instead of Play on a phone/tablet) */
.mobile-notice {
  display: none;
  margin: 0 auto; max-width: 520px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-s); text-align: left;
}
.mobile-notice b { display: block; margin-bottom: 4px; color: var(--gold); }
.mobile-notice span { color: var(--muted); font-size: .95rem; }
body.is-mobile .mobile-notice { display: block; }
body.is-mobile .desktop-only { display: none !important; }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 0; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; color: var(--gold); line-height: 1.2; }
.stat span { font-size: .84rem; color: var(--muted); }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.section-head p { margin: 0 auto; max-width: 620px; color: var(--muted); }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ── Shots ──────────────────────────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; }   /* height:auto — the width/height attrs would otherwise pin a fixed px height */
.shot figcaption { padding: 11px 14px; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }

/* ── Categories ─────────────────────────────────────────────────────────── */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.cat .cat-icons { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.cat .cat-icons img { width: 38px; height: 38px; border-radius: 9px; }
.cat b { display: block; font-size: 1.05rem; }
.cat span { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cats { grid-template-columns: 1fr; } }

/* ── Icon wall ──────────────────────────────────────────────────────────── */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; }
.wall img { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--surface); }

/* ── Features ───────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { font-size: 1.7rem; line-height: 1; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ── Store tiles ────────────────────────────────────────────────────────── */
.stores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; }
.store {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.store .logo { width: 52px; height: 52px; flex: 0 0 52px; color: var(--ink); }
.store-txt { flex: 1 1 auto; min-width: 0; }
.store b { display: block; font-size: 1.1rem; white-space: nowrap; }
.store span { font-size: .9rem; color: var(--muted); }
/* `.store .badge-soon`, not `.badge-soon`: the badge is a <span>, and `.store span` above (muted grey,
   .9rem) out-ranks a single class — it made the text grey-on-gold and unreadable. */
.store .badge-soon {
  margin-left: auto; flex: 0 0 auto; align-self: flex-start;
  background: var(--gold); color: #2a1d00;
  font-size: .7rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
@media (max-width: 620px) { .stores { grid-template-columns: 1fr; } }

/* ── Feedback form ──────────────────────────────────────────────────────── */
.form-card { max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  font: inherit; font-size: .98rem;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-hint { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.form-hint code { background: var(--bg-2); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.copied { color: var(--green-2); font-size: .88rem; }

/* ── Ads ────────────────────────────────────────────────────────────────── */
.ad-slot { margin: 30px auto; text-align: center; min-height: 90px; }
.ad-slot small { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 6px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.site-footer .muted { color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .spacer { margin-left: auto; }

/* ── Legal pages ────────────────────────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.15rem; margin-top: 32px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
