/* Game Arena promo — shared layer.
 *
 * No CDN, no build step. Every concept is self-contained and opens from
 * file://, so the shared pieces live here and each concept supplies its own
 * tokens and a few concept-specific rules.
 *
 * Load order in a concept page:
 *   1. assets/common.css   (this file)
 *   2. <style> block with the concept tokens
 */

/* ---------- reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- focus ---------- */

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

/* ---------- layout ---------- */

.shell {
  width: min(var(--shell-max, 1400px), 100% - var(--gutter, 48px));
  margin-inline: auto;
}

@media (max-width: 767px) {
  .shell {
    width: min(100% - 32px, var(--shell-max, 1400px));
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h, 68px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--radius-mark, 9px);
  background: var(--accent);
  color: var(--accent-ink);
}

.brand__mark svg {
  width: 15px;
  height: 15px;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}

.nav__links a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-btn, 10px);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-hover, var(--accent));
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn, 10px);
  font-family: var(--font-mono);
  font-size: 11px;
}

.lang button {
  padding: 0 9px;
  height: 26px;
  border-radius: calc(var(--radius-btn, 10px) - 4px);
  color: var(--muted);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- section furniture ---------- */

.section {
  padding: var(--section-pad, 104px) 0;
}

@media (max-width: 767px) {
  .section {
    padding: calc(var(--section-pad, 104px) * 0.55) 0;
  }
}

/* A label, not an eyebrow-above-every-heading. Used at most twice per page. */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.032em;
  font-weight: 660;
}

.h2 {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.026em;
  font-weight: 640;
}

.h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.014em;
  font-weight: 620;
}

.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.body {
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 66ch;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- game figure ---------- */

.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card, 14px);
  background: var(--surface);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption sits below the image, never overlaid on it. */
.shot__cap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.shot__cap b {
  font-weight: 600;
  color: var(--text);
}

.shot__cap .num {
  font-size: 12px;
}

/* ---------- tables (standings) ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  padding: 0 14px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.table td {
  padding: 14px;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
}

.table td.num {
  text-align: right;
  font-size: 13.5px;
}

.row--novotes td {
  color: var(--muted);
  opacity: 0.72;
}

.table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- provisional notice ---------- */

.provisional {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card, 14px);
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 76ch;
}

.provisional strong {
  color: var(--text);
  font-weight: 620;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: space-between;
}

/* ---------- reveal on scroll ---------- */

.rv {
  opacity: 0;
  transform: translateY(18px);
}

.rv.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reduced motion: everything lands immediately ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }
}

/* ---------- utilities ---------- */

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
}
