/* Mendikot Mehfil — one stylesheet for every page. Palette follows the in-game table:
   dark felt, maroon wood, teal panels, gold type. */

:root {
  --felt: #0c211c;
  --felt-2: #12302a;
  --wood: #4a1612;
  --teal: #0e5f63;
  --gold: #d8b25a;
  --gold-soft: #ecd79c;
  --cream: #f2e8d2;
  --muted: #b9b09c;
  --line: rgba(216, 178, 90, 0.28);
  --panel: rgba(10, 30, 26, 0.72);
  --display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --body: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--felt);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14, 95, 99, 0.35), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(74, 22, 18, 0.45), transparent 70%);
  background-attachment: fixed;
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: #fff3cf; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1208; padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(8, 24, 20, 0.86);
  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; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font: 700 1.05rem/1 var(--display); letter-spacing: 0.06em; }
.brand b { color: var(--gold); font-weight: 700; }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; letter-spacing: 0.02em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-soft); }

/* Shared type */
.eyebrow { font: 600 0.8rem/1 var(--display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); letter-spacing: 0.04em; }
h1 .accent { display: block; color: var(--gold); font-size: 0.62em; letter-spacing: 0.12em; margin-top: 6px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: 0.03em; }
h3 { font-size: 1.12rem; letter-spacing: 0.03em; color: var(--gold-soft); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #e6dcc3; max-width: 34ch; margin: 22px 0 0; }

.suits { color: var(--gold); letter-spacing: 0.5em; font-size: 0.95rem; opacity: 0.75; }
.suits .red { color: #c9463d; }

/* Hero */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-copy { min-width: 0; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(0, 0, 0, 0.35); color: var(--cream); text-decoration: none;
  line-height: 1.15;
}
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.store strong { font-weight: 600; font-size: 1rem; }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"] small { color: var(--gold); }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

.phone {
  justify-self: center;
  width: min(340px, 78vw);
  aspect-ratio: 9 / 19.5;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(145deg, #2a1410, #120806);
  border: 1px solid rgba(216, 178, 90, 0.45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(216, 178, 90, 0.08);
}
.phone video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 34px;
  background: #000;
}

/* Sections */
section { scroll-margin-top: 80px; }
.band { padding-block: clamp(56px, 9vw, 104px); border-top: 1px solid var(--line); }
.band-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.band-head p { color: var(--muted); margin: 14px 0 0; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  position: relative;
}
.feature .pip { font-size: 1.5rem; line-height: 1; color: var(--gold); margin-bottom: 14px; display: block; }
.feature .pip.red { color: #c9463d; }
.feature p { margin: 10px 0 0; color: #d9cfb7; font-size: 1rem; }
.feature em { font-style: normal; color: var(--gold-soft); }

.modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.modes li { font-size: 0.85rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-soft); }

/* Screenshots */
.shots-scroll { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: var(--teal) transparent; }
.shots { display: flex; gap: 18px; margin: 0; padding: 0 0 4px; list-style: none; width: max-content; }
.shots li { scroll-snap-align: start; width: clamp(200px, 22vw, 250px); }
.shots img { width: 100%; height: auto; aspect-ratio: 1320 / 2868; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); background: var(--felt-2); }
.shots figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--muted); text-align: center; }

/* CTA */
.cta { text-align: center; }
.cta .stores { justify-content: center; }
.cta p { color: var(--muted); max-width: 520px; margin: 14px auto 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-soft); }

/* Legal pages */
.legal { padding-block: clamp(40px, 7vw, 80px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal .meta { color: var(--muted); margin: 12px 0 28px; }
.legal .summary { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 18px 22px; margin-bottom: 32px; }
.legal .summary p { margin: 0 0 8px; }
.legal .summary ul { margin: 0; padding-left: 20px; }
.legal .toc { border-left: 2px solid var(--line); padding-left: 18px; margin: 0 0 40px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2 260px; column-gap: 32px; font-size: 0.95rem; }
.legal .toc a { color: var(--muted); text-decoration: none; }
.legal .toc a:hover { color: var(--gold-soft); }
.legal h2 { font-size: 1.3rem; margin: 44px 0 12px; color: var(--gold-soft); scroll-margin-top: 84px; }
.legal h3 { font-size: 1rem; margin: 22px 0 6px; color: var(--cream); font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.legal p, .legal li { color: #e0d6bf; }
.legal li { margin-bottom: 6px; }
.legal .caps { font-size: 0.92rem; letter-spacing: 0.01em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--gold-soft); font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 12px 0 18px; }
.callout { border-left: 3px solid var(--gold); padding: 10px 16px; background: rgba(216, 178, 90, 0.07); border-radius: 0 10px 10px 0; }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost p { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .stores { justify-content: center; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .brand span { font-size: 0.95rem; }
  .nav a.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
