/* Marble Duel — the site's one stylesheet. Colors are the game's own (README, «Look and feel»). */
:root {
  --bg: #0D0E11;
  --bg-2: #15130F;
  --felt: #1D4E41;
  --felt-deep: #133830;
  --felt-light: #2A6655;
  --brass: #FAC457;
  --brass-light: #FFE09A;
  --brass-dark: #B9852B;
  --text: #F7F2E6;
  --muted: #BDB6A6;
  --dim: #8E887B;
  --red: #F5544D;
  --blue: #5C9EFF;
  --wood-1: #4A3020;
  --wood-2: #2E1D13;
  --line: rgba(250, 196, 87, 0.16);
  --radius: 18px;
  --gutter: 16px;
  --max: 1120px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass-light); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 14, 17, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.lang {
  display: inline-flex; margin-left: 8px; border: 1px solid rgba(250, 196, 87, 0.35); border-radius: 999px; overflow: hidden; flex: none;
}
.lang a, .lang span { padding: 6px 11px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--muted); }
.lang span { background: rgba(250, 196, 87, 0.16); color: var(--brass); }
@media (max-width: 820px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(90% 70% at 70% 30%, rgba(42, 102, 85, 0.55), transparent 70%),
    radial-gradient(60% 50% at 10% 90%, rgba(245, 84, 77, 0.10), transparent 70%),
    linear-gradient(180deg, #10251F 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px;
  padding-top: 56px; padding-bottom: 72px;
}
.hero h1 { margin: 0; }
.hero h1 img {
  width: min(520px, 100%); height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}
.tagline { margin: 18px 0 10px; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; font-weight: 800; }
.lede { margin: 0 0 26px; max-width: 34em; color: var(--muted); font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  color: #2A1B08; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 15px;
  background: linear-gradient(180deg, var(--brass-light) 0%, var(--brass) 45%, var(--brass-dark) 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.45) inset, 0 -3px 0 rgba(0, 0, 0, 0.18) inset, 0 10px 26px rgba(250, 196, 87, 0.22);
}
.soon svg { width: 20px; height: 20px; flex: none; }
.facts-line { color: var(--dim); font-size: 15px; font-weight: 600; }

.phone {
  justify-self: center;
  width: min(300px, 78vw);
  aspect-ratio: 1206 / 2622;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(145deg, #3A3A40, #121216 40%, #2A2A30);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(42, 102, 85, 0.35);
  transform: rotate(2.5deg);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: var(--felt-deep); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; padding-bottom: 48px; text-align: center; }
  .hero h1 img { margin: 0 auto; width: min(400px, 100%); }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .phone { transform: none; width: min(260px, 70vw); }
}

/* ---------- sections ---------- */
section.block { padding: 80px 0; }
section.block.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.plaque {
  display: inline-block; margin: 0 0 14px; padding: 7px 18px 6px; border-radius: 10px;
  color: #3A2408; font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--brass-light), var(--brass) 55%, var(--brass-dark));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 12px rgba(0, 0, 0, 0.4);
}
h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -0.005em; }
.intro { max-width: 46em; margin: 0 0 36px; color: var(--muted); font-size: 18px; }
h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; font-weight: 800; }
p { margin: 0 0 12px; }

.felt {
  background:
    radial-gradient(120% 120% at 50% 0%, var(--felt-light) 0%, var(--felt) 45%, var(--felt-deep) 100%);
  border-radius: var(--radius);
  box-shadow: 0 0 0 6px var(--wood-2), 0 0 0 7px rgba(255, 255, 255, 0.06), 0 22px 44px rgba(0, 0, 0, 0.45);
}
.wood {
  background:
    repeating-linear-gradient(178deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--wood-1), var(--wood-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

/* how it plays */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 22px 20px 16px; }
.step .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
  font-weight: 800; color: #3A2408; background: radial-gradient(circle at 35% 30%, var(--brass-light), var(--brass) 60%, var(--brass-dark));
}
.step p { color: var(--muted); font-size: 16px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.rule { padding: 20px; }
.rule p { margin: 0; color: rgba(247, 242, 230, 0.85); font-size: 16px; }
.quiet { margin-top: 18px; color: var(--muted); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .steps, .rules { grid-template-columns: 1fr; } }

/* story */
.chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: ch; list-style: none; margin: 0; padding: 0; }
.chapter { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px 18px; }
.chapter .n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  font-size: 20px; font-weight: 800; color: var(--brass);
  background: rgba(0, 0, 0, 0.28); box-shadow: 0 0 0 1px rgba(250, 196, 87, 0.3) inset;
}
.chapter p { margin: 0; color: var(--muted); font-size: 15.5px; }
.stars {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 26px; padding: 20px 24px;
}
.stars .big { font-size: 40px; font-weight: 800; color: var(--brass); line-height: 1; }
.stars p { margin: 0; flex: 1 1 320px; color: rgba(247, 242, 230, 0.88); }
@media (max-width: 760px) { .chapters { grid-template-columns: 1fr; } }

/* opponents */
.opponents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.opponent { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center; padding: 16px; }
.opponent img { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45); }
.opponent h3 { margin-bottom: 2px; }
.opponent .title { color: var(--muted); font-size: 15px; font-weight: 600; }
.opponent p { margin: 6px 0 0; font-size: 15px; color: rgba(247, 242, 230, 0.86); }
.level { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; }
.level.easy { background: rgba(110, 211, 140, 0.18); color: #8BE3A6; }
.level.medium { background: rgba(250, 196, 87, 0.18); color: var(--brass); }
.level.hard { background: rgba(245, 84, 77, 0.2); color: #FF8A84; }
.ai-note { margin-top: 26px; padding: 20px 24px; }
.ai-note p { margin: 0; }
.ai-note em { color: var(--brass-light); font-style: normal; font-weight: 700; }
@media (max-width: 960px) { .opponents { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .opponents { grid-template-columns: 1fr; } }

/* obstacles */
.obstacles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.obstacle { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.05); }
.obstacle img { width: 56px; height: 56px; border-radius: 12px; }
.obstacle h3 { font-size: 16px; margin: 0 0 2px; }
.obstacle p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.moving { margin-top: 20px; color: var(--muted); font-size: 16px; }

/* trick shots */
.tricks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tricks li {
  padding: 9px 16px; border-radius: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 15px;
  color: var(--brass); background: rgba(0, 0, 0, 0.35); box-shadow: 0 0 0 1.5px rgba(250, 196, 87, 0.55) inset;
}
.tricks-note { margin-top: 18px; color: var(--muted); font-size: 16px; }

/* gallery */
.gallery-wrap { position: relative; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 22px; margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin; scrollbar-color: rgba(250, 196, 87, 0.4) transparent;
  list-style: none;
}
.gallery li { scroll-snap-align: center; }
.gallery figure { margin: 0; }
.gallery img, .gallery video {
  width: 240px; aspect-ratio: 1206 / 2622; height: auto; object-fit: cover;
  border-radius: 26px; background: var(--felt-deep);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 16px 34px rgba(0, 0, 0, 0.5);
}
.gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.gallery-nav { display: flex; gap: 10px; justify-content: flex-end; margin: -6px 0 14px; }
.gallery-nav button {
  appearance: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(250, 196, 87, 0.4); background: rgba(0, 0, 0, 0.3); color: var(--brass);
  font: 700 18px/1 var(--font);
}
.gallery-nav button:hover { background: rgba(250, 196, 87, 0.12); }
@media (max-width: 640px) { .gallery { grid-auto-columns: 200px; } .gallery img, .gallery video { width: 200px; } .gallery-nav { display: none; } }

/* more to play */
.more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.more .card { padding: 22px 22px 14px; }
.more .card p { color: rgba(247, 242, 230, 0.86); font-size: 16px; }
.options { margin-top: 16px; padding: 22px 24px 10px; }
.options ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; }
.options li { margin: 0 0 12px; font-size: 16px; color: rgba(247, 242, 230, 0.86); }
.options b { color: var(--text); }
@media (max-width: 760px) { .more, .options ul { grid-template-columns: 1fr; } }

/* feel */
.feel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.feel li { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.05); color: rgba(247, 242, 230, 0.88); font-size: 16px; }
.feel b { display: block; margin-bottom: 4px; color: var(--brass); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 860px) { .feel { grid-template-columns: 1fr; } }

/* closing band */
.closing { text-align: center; padding: 72px 0 80px; background: radial-gradient(70% 90% at 50% 100%, rgba(42, 102, 85, 0.5), transparent 70%); }
.closing img.icon { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); }
.closing h2 { margin-bottom: 10px; }
.closing p { color: var(--muted); }
.closing .soon { margin-top: 10px; }

/* footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 26px 0 40px; color: var(--dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- text pages (privacy, support) ---------- */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 780px; }
.page h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; font-weight: 800; }
.page .updated { color: var(--dim); font-size: 15px; margin-bottom: 30px; }
.page h2 { font-size: 22px; margin: 34px 0 10px; }
.page p, .page li { color: rgba(247, 242, 230, 0.88); }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page li::marker { color: var(--brass); }
.contact { margin: 22px 0 8px; padding: 22px 24px; }
.contact p { margin: 0 0 6px; }
.contact a.mail { font-size: 22px; font-weight: 800; text-decoration: none; }
.faq details { padding: 16px 20px; margin: 0 0 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.05); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; }
.faq details p { margin: 10px 0 0; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.lost .big { font-size: 96px; font-weight: 800; color: var(--brass); line-height: 1; }
