:root {
  color-scheme: dark;
  --bg: #070907;
  --bg-soft: #0a0d0a;
  --glass: #0d100d;
  --glass-strong: #101410;
  --surface: #0d100d;
  --surface-2: #111511;
  --surface-3: #151a15;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6f1;
  --muted: #8f968d;
  --muted-strong: #c0c6bd;
  --accent: #c8f451;
  --accent-soft: rgba(200, 244, 81, 0.075);
  --accent-line: rgba(200, 244, 81, 0.48);
  --accent-glow: transparent;
  --high: #c8f451;
  --high-soft: rgba(200, 244, 81, 0.06);
  --low: #ff8179;
  --low-soft: rgba(255, 129, 121, 0.055);
  --draw: #e7c75e;
  --draw-soft: rgba(231, 199, 94, 0.055);
  --danger: #ff9b72;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a,
select { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { max-width: 100%; }

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #10130b;
  font-weight: 760;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 7, 0.96);
}

.site-bar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-wordmark {
  display: block;
  width: 154px;
  max-width: 100%;
  height: auto;
  flex: 0 1 154px;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0b0d08;
  font-size: 0.7rem;
  font-weight: 850;
}

.brand-name {
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.site-links {
  display: flex;
  align-items: stretch;
  gap: 22px;
}

.site-links a {
  position: relative;
  display: grid;
  min-height: 62px;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.site-links a:hover { color: var(--muted-strong); }
.site-links a[aria-current="page"] { color: var(--text); }

.site-links a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.language-switch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.language-switch a {
  color: inherit;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a.is-active,
.language-switch a[aria-current="true"] { color: var(--text); }

.language-switch a.is-active {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.language-switch-separator {
  color: color-mix(in srgb, var(--muted) 58%, transparent);
  font-weight: 500;
}

.page { padding: 38px 0 64px; }

.page-heading {
  display: grid;
  max-width: 720px;
  gap: 8px;
  margin-bottom: 22px;
}

.page-heading h1,
.page-heading h2,
.page-heading p,
h1,
h2,
h3,
p { margin-top: 0; }

.page-heading h1 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 760;
}

.page-intro {
  max-width: 640px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.55;
}

h2 {
  font-size: 1.06rem;
  line-height: 1.25;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 0.96rem;
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.glass-surface {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.unavailable-text {
  margin: 0;
  padding: 14px 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.updated-at { display: none; }

.empty-state {
  display: grid;
  min-height: 260px;
  place-content: center;
  padding: 28px;
  text-align: center;
}

.empty-state strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.empty-state p {
  max-width: 420px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.error-state strong { color: var(--danger); }

@media (min-width: 901px) {
  .site-links a { font-size: 0.88rem; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1160px); }
  .site-bar { min-height: 56px; gap: 12px; }
  .site-actions { gap: 9px; }
  .site-links { gap: 13px; }
  .site-links a { min-height: 56px; font-size: 0.73rem; }
  .language-switch {
    gap: 4px;
    padding-left: 8px;
    font-size: 0.62rem;
  }
  .brand-wordmark { width: 126px; flex-basis: 126px; }
  .page { padding: 28px 0 46px; }
  .page-heading { gap: 7px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 1.9rem; }
  .page-intro { font-size: 0.82rem; line-height: 1.5; }
}

@media (max-width: 420px) {
  .site-bar { gap: 8px; }
  .site-actions { gap: 7px; }
  .site-links { gap: 8px; }
  .site-links a { font-size: 0.67rem; }
  .language-switch {
    gap: 3px;
    padding-left: 6px;
    font-size: 0.58rem;
  }
  .brand-wordmark {
    width: 92px;
    flex-basis: 92px;
  }
}

@media (max-width: 350px) {
  .site-bar { gap: 6px; }
  .site-actions { gap: 5px; }
  .site-links { gap: 5px; }
  .site-links a { font-size: 0.61rem; }
  .language-switch {
    padding-left: 5px;
    font-size: 0.54rem;
  }
  .brand-wordmark {
    width: 72px;
    flex-basis: 72px;
  }
}

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