/* TournaMentor site. One dark look in the brand's colours (design/brand). No web fonts, no scripts. */
:root {
  color-scheme: dark;
  --bg: #13143d;
  --bg-deep: #0b0c26;
  --surface: #1e215d;
  --line: #34387f;
  --text: #f4f1ff;
  --muted: #bdb8e6;
  --gold: #ffd166;
  --orange: #f77f00;
  --radius: 18px;
  --wrap: 64rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(60rem 36rem at 50% -8rem, #281b68 0%, transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff3b0; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

img { max-width: 100%; height: auto; }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg-deep); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .lang { color: var(--gold); font-weight: 600; }

/* Hero */
.hero { padding-top: 40px; padding-bottom: 24px; text-align: center; }
.hero h1 {
  margin: 0 auto 16px; max-width: 18ch;
  font-size: clamp(34px, 7vw, 58px); line-height: 1.08; letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { margin: 0 auto 28px; max-width: 36rem; color: var(--muted); font-size: 19px; }
.meta-line { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  color: #1a1030; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(247, 127, 0, 0.25);
}
.button:hover { color: #1a1030; filter: brightness(1.06); }
.button svg { width: 22px; height: 22px; flex: none; }

/* Screenshots: the strip scrolls by itself on narrow screens; the page never does. */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 16px; margin: 32px 0 8px; padding: 0 0 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.shots img {
  display: block; width: 100%; aspect-ratio: 9 / 16;
  border-radius: var(--radius); scroll-snap-align: start; background: var(--surface);
}

/* Sections */
section { padding: 40px 0; }
h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 8px; color: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }

.features { columns: 2 18rem; column-gap: 32px; padding: 0; margin: 0; list-style: none; }
.features li { break-inside: avoid; padding: 8px 0 8px 22px; position: relative; color: var(--muted); }
.features li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta { text-align: center; }

/* Long text pages */
.prose { max-width: 44rem; padding-top: 24px; padding-bottom: 48px; }
.prose h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 8px 0 12px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose p, .prose li { color: #dcd8f5; }
.prose .updated { color: var(--muted); font-size: 15px; }

.langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 8px; list-style: none; }
.langs a {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; text-decoration: none; color: var(--text);
}
.langs a:hover { border-color: var(--gold); }
.policy { scroll-margin-top: 16px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

/* gestalt.graphics credit: the reference implementation from ~/own/gestalt docs/brand (brand identity §4). */
.gg-credit-slot { container-type: inline-size; flex: 0 1 21ch; }
.gg-credit { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap;
  color: inherit; font: inherit; text-decoration: none; }
.gg-credit:hover { color: var(--text); }
.gg-mark { width: 1.15em; height: 1.15em; flex: none; overflow: visible; }
.gg-ln { fill: none; stroke: currentColor; stroke-width: 1.1px; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; transition: opacity .45s ease; }
.gg-box { fill: currentColor; opacity: 0; transition: opacity .45s ease; }
.gg-credit:hover .gg-box, .gg-credit:focus-visible .gg-box { opacity: 1; }
.gg-credit:hover .gg-far, .gg-credit:focus-visible .gg-far { opacity: 0; }
.gg-credit-slot .gg-credit .gg-short { display: none; }
@container (width < 20ch) { .gg-credit-slot .gg-credit .gg-long { display: none; } .gg-credit-slot .gg-credit .gg-short { display: inline; } }
@container (width < 11ch) { .gg-credit-slot .gg-credit .gg-mark { display: none; } }
@container (width < 8ch) { .gg-credit-slot .gg-credit .gg-mark { display: block; } .gg-credit-slot .gg-credit .gg-text { display: none; } }
@media (prefers-reduced-motion: reduce) { .gg-ln, .gg-box { transition: none; } }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { height: 32px; }
  .lead { font-size: 17px; }
  .shots { grid-auto-columns: 62%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Google's official Play badge, unaltered (brand rules): only its transparent margin is trimmed. */
.play-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.play-badge img { height: 56px; width: auto; }
.play-badge:hover { filter: brightness(1.12); }
