:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --surface: #17191d;
  --surface-2: #111317;
  --surface-3: #202328;
  --border: #30343a;
  --text: #e8eaed;
  --muted: #a3abb8;
  --accent: #f1bd4a;
  --accent-strong: #d99b14;
  --dark-text: #14171c;
  --live: #3ddc97;
  --danger: #ff6b6b;
  --blue: #4c8dff;
  --yellow: #f2c230;
  --pink: #f06ca8;
  --purple: #9b6bff;
  --teal: #2fb7c4;
  --green: #4cc36b;
  --lilac: #c97be8;
  --red: #f0503c;
  --radius: 6px;
  --shadow: none;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading: Georgia, Cambria, "Times New Roman", serif;
  --mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-color: var(--border) var(--surface);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: #ffdb78; }
button, input, select { font: inherit; }
button { color: inherit; }

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

::selection { background: var(--accent); color: var(--dark-text); }

.skip-link {
  position: fixed;
  z-index: 200;
  inset: 0 auto auto 0;
  padding: 0.8rem 1rem;
  background: var(--accent);
  color: var(--dark-text);
  font-weight: 800;
  transform: translateY(-120%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgb(42 49 60 / 0.9);
  background: rgb(13 15 18 / 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4rem;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.brand {
  flex: 0 0 auto;
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(0.96rem, 2.2vw, 1.16rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand span { color: var(--accent); }

.header-feed {
  display: none;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}
.header-feed > span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgb(61 220 151 / 0.1);
}

.site-nav { margin-left: auto; }
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  content: "";
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -0.34rem; }
.menu-icon::after { position: absolute; top: 0.34rem; }

.primary-menu {
  position: fixed;
  inset: 4.5rem 1rem auto auto;
  width: min(23rem, calc(100dvw - 2rem));
  max-height: calc(100dvh - 6rem);
  margin: 0;
  padding: 0.5rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  list-style: none;
}
.primary-menu::backdrop { background: rgb(0 0 0 / 0.35); }
.primary-menu li { margin: 0; }
.primary-menu a {
  display: block;
  min-height: 44px;
  padding: 0.64rem 0.8rem;
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.primary-menu a:hover { background: var(--surface-3); color: var(--text); }
.primary-menu a[aria-current="page"] { background: rgb(255 197 61 / 0.12); color: var(--accent); }

.site-main {
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
  padding: 1.25rem 0 5rem;
}

.breadcrumbs { margin-bottom: 1rem; color: var(--muted); font-size: 0.78rem; }
.breadcrumbs ol { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { margin-right: 0.5rem; color: #6e7785; content: "/"; }
.breadcrumbs a { color: var(--muted); }

.page-hero {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.6rem) 0 clamp(1.8rem, 4vw, 3.2rem);
}
.page-hero-copy { max-width: 760px; }
.eyebrow {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  color: var(--text);
  font-family: var(--heading);
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.page-hero-copy > p {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; }

.page-hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}
.page-hero-media picture,
.content-media picture { display: block; }
.page-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.page-hero--text {
  display: block;
  max-width: 860px;
  min-height: 0;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--dark-text); }
.button-primary:hover { border-color: #ffda6b; background: #ffda6b; color: var(--dark-text); }
.button-secondary { border-color: var(--border); background: var(--surface); color: var(--text); }
.button-secondary:hover { border-color: #444e5d; background: var(--surface-3); color: var(--text); }
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button-ghost:hover { color: var(--text); }
.button:disabled { cursor: not-allowed; opacity: 0.45; }

.article-body {
  width: min(100%, 760px);
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  color: #d2d6dc;
  font-size: clamp(1rem, 1.5vw, 1.05rem);
}
.article-body > h2,
.article-body > section > h2 {
  margin: 4rem 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  scroll-margin-top: 5rem;
}
.article-body h3 { margin: 2rem 0 0.7rem; font-size: 1.17rem; scroll-margin-top: 5rem; }
.article-body p { margin: 0.9rem 0; }
.article-body ul,
.article-body ol { padding-left: 1.35rem; }
.article-body li { margin: 0.4rem 0; padding-left: 0.18rem; }
.article-body strong { color: var(--text); }
.article-body code { font-family: var(--mono); font-size: 0.9em; }
.article-body blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.content-media {
  overflow: hidden;
  margin: 1.4rem 0 2.4rem;
  background: transparent;
}
.content-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  border: 1px solid var(--border);
  border-radius: 4px;
  object-fit: cover;
}
.content-media figcaption {
  margin-top: 0.65rem;
  padding: 0.1rem 0 0.1rem 0.75rem;
  border-left: 2px solid var(--accent-strong);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.table-scroll {
  max-width: 100%;
  margin: 1.4rem 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  scrollbar-gutter: stable;
}
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.84rem; }
th, td { padding: 0.78rem 0.85rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { position: sticky; z-index: 1; top: 0; background: var(--surface-2); color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: rgb(255 255 255 / 0.025); }

.link-pending {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border: 1px dashed #5b6574;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.faq-section { margin-top: 4rem; }
.faq-list { display: grid; gap: 0.65rem; }
.faq-list details { border: 1px solid var(--border); border-radius: 4px; background: transparent; }
.faq-list summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { color: var(--accent); font-size: 1.25rem; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1rem 0.95rem; border-top: 1px solid var(--border); color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.related-pages { width: min(100%, 980px); margin: 4rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-pages h2 { font-size: 1.35rem; }
.related-grid { display: grid; gap: 0.75rem; }
.related-grid a {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}
.related-grid a:hover { border-color: #465162; background: var(--surface-3); }
.related-grid span { color: var(--muted); font-size: 0.8rem; }

.live-shell,
.tool-panel,
.demo-panel {
  margin: 0 auto 3rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}
.live-toolbar,
.tool-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.live-toolbar h2,
.tool-heading h2 { margin: 0; font-size: clamp(1.15rem, 3vw, 1.55rem); }
.live-toolbar .eyebrow,
.tool-heading .eyebrow { margin: 0 0 0.2rem; }
.feed-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 32px;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}
.state-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--muted); }
.feed-state.is-fresh .state-dot { background: var(--live); }
.feed-state.is-stale .state-dot { background: var(--accent); }
.feed-state.is-error .state-dot { background: var(--danger); }
.utility-note { margin: 0 0 1rem; color: var(--muted); font-size: 0.78rem; }
.dashboard-grid,
.dashboard-secondary { display: grid; gap: 0.8rem; }
.dashboard-secondary { margin-top: 0.8rem; }
.metric-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.metric-card h3 { margin: 0 0 0.75rem; font-size: 0.9rem; }
.metric-card .table-scroll { margin: 0; }
.compact-table table { min-width: 520px; }
.latest-result { display: grid; gap: 0.8rem; }
.latest-result .segment-chip { justify-self: start; font-size: 1rem; }
.latest-multiplier { font-family: var(--mono); font-size: 2.35rem; font-weight: 850; line-height: 1; }
.latest-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.latest-meta span { display: block; color: var(--muted); font-size: 0.68rem; }
.latest-meta strong { font-family: var(--mono); font-size: 0.8rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.stat-item { padding: 0.7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.stat-item span { display: block; color: var(--muted); font-size: 0.65rem; text-transform: uppercase; }
.stat-item strong { display: block; margin-top: 0.2rem; font-family: var(--mono); font-size: 1rem; }
.frequency-list { display: grid; gap: 0.62rem; }
.frequency-row { display: grid; grid-template-columns: 5.4rem 1fr 3rem; gap: 0.6rem; align-items: center; font-size: 0.75rem; }
.frequency-row > strong { text-align: right; font-family: var(--mono); }
.frequency-track { position: relative; height: 0.5rem; overflow: hidden; border-radius: 999px; background: var(--surface); }
.frequency-track > span { display: block; height: 100%; width: var(--value); border-radius: inherit; background: var(--chip-color, var(--accent)); }
.win-list { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.win-list li { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: center; padding: 0.62rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.win-list time { display: block; color: var(--muted); font-family: var(--mono); font-size: 0.66rem; }
.win-list > li > strong { color: var(--accent); font-family: var(--mono); }
.utility-actions,
.demo-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.skeleton-line,
.skeleton-box { display: block; border-radius: 7px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-line { width: 55%; height: 0.8rem; }
.skeleton-box { width: 100%; height: 5.5rem; margin-top: 0.8rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

.segment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--chip-color, var(--accent));
  color: var(--dark-text);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}
.segment-1 { --chip-color: var(--blue); }
.segment-2 { --chip-color: var(--yellow); }
.segment-5 { --chip-color: var(--pink); }
.segment-10 { --chip-color: var(--purple); }
.segment-coin-flip { --chip-color: var(--teal); }
.segment-cash-hunt { --chip-color: var(--green); }
.segment-pachinko { --chip-color: var(--lilac); }
.segment-crazy-time { --chip-color: #b93228; color: white; }

.error-state,
.empty-state { padding: 1rem; border: 1px dashed #5c6572; border-radius: 8px; color: var(--muted); }
.error-state strong { display: block; color: var(--danger); }

.video-consent { display: grid; place-items: center; min-height: 250px; padding: 2rem; border: 1px dashed #4f5968; border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.video-consent p { max-width: 38rem; color: var(--muted); }
.video-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.demo-balance { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.45rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.demo-balance span { color: var(--muted); font-size: 0.72rem; }
.demo-balance strong { color: var(--accent); font-family: var(--mono); }
.demo-layout { display: grid; gap: 1.2rem; }
.demo-wheel-area { display: grid; justify-items: center; align-content: start; gap: 0.8rem; text-align: center; }
.demo-wheel {
  display: grid;
  width: min(58vw, 260px);
  aspect-ratio: 1;
  place-items: center;
  border: 10px solid #272e38;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 14%, var(--yellow) 14% 28%, var(--pink) 28% 40%, var(--purple) 40% 50%, var(--teal) 50% 62%, var(--green) 62% 74%, var(--lilac) 74% 86%, var(--red) 86% 100%);
  box-shadow: inset 0 0 0 5px #0e1116, 0 18px 40px rgb(0 0 0 / 0.32);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-wheel::before { grid-area: 1 / 1; width: 62%; aspect-ratio: 1; border: 5px solid var(--accent); border-radius: 50%; background: var(--surface-2); content: ""; }
.demo-wheel span { z-index: 1; grid-area: 1 / 1; max-width: 55%; color: var(--text); font-family: var(--heading); font-size: clamp(1.2rem, 4vw, 2rem); font-weight: 850; line-height: 1.05; }
.demo-wheel.is-spinning { transform: rotate(720deg); }
.demo-wheel-area > p { min-height: 3.2rem; margin: 0; color: var(--muted); }
.demo-controls fieldset { margin: 0 0 1rem; padding: 0; border: 0; }
.demo-controls legend { margin-bottom: 0.5rem; color: var(--muted); font-size: 0.76rem; font-weight: 750; }
.chip-picker { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { min-width: 44px; min-height: 44px; border: 2px solid #785b10; border-radius: 50%; background: #2b250f; color: var(--accent); font-family: var(--mono); font-weight: 850; cursor: pointer; }
.chip.is-active { background: var(--accent); color: var(--dark-text); }
.bet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.bet-field { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-left: 5px solid var(--chip-color); border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.bet-field:hover { background: var(--surface-3); }
.bet-field > span { font-size: 0.76rem; font-weight: 750; }
.bet-field > strong { min-width: 2rem; color: var(--accent); font-family: var(--mono); }
.demo-total { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem; border-top: 1px solid var(--border); }
.demo-total span { color: var(--muted); }
.demo-total strong { font-family: var(--mono); }
.demo-history { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.demo-history h3 { font-size: 1rem; }
.demo-history ol { display: grid; gap: 0.45rem; margin: 0; padding-left: 1.3rem; color: var(--muted); font-size: 0.78rem; }

.site-footer { border-top: 1px solid var(--border); background: #0b0e12; color: var(--muted); }
.footer-inner { width: min(100% - 2rem, 1200px); margin: auto; padding: 2.4rem 0; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.55rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.site-footer a,
.site-footer button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.76rem; cursor: pointer; }
.responsible-row { display: grid; gap: 0.7rem; align-items: center; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: 0.73rem; }
.responsible-row p { margin: 0; }
.age-mark { display: grid; width: 2.5rem; aspect-ratio: 1; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text); font-family: var(--mono); font-weight: 850; }

.cookie-bar {
  position: fixed;
  z-index: 150;
  inset: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.2rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: rgb(23 27 34 / 0.98);
  box-shadow: 0 -10px 30px rgb(0 0 0 / 0.3);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { max-width: 650px; margin: 0; color: var(--muted); font-size: 0.72rem; }
.cookie-bar > div { display: flex; gap: 0.4rem; }
.cookie-dialog { width: min(31rem, calc(100% - 2rem)); padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.cookie-dialog::backdrop { background: rgb(0 0 0 / 0.65); }
.cookie-dialog h2 { margin-top: 0; }
.cookie-dialog p { color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.55rem; }

.error-page { min-height: 65vh; padding-top: 12vh; text-align: center; }
.error-page h1 { margin: auto; }
.error-page p:not(.eyebrow) { color: var(--muted); }

@media (min-width: 520px) {
  .header-feed { display: inline-flex; }
  .bet-grid { grid-template-columns: repeat(4, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .responsible-row { grid-template-columns: auto 1fr auto; }
}

@media (min-width: 760px) {
  .site-main { width: min(100% - 3rem, 1200px); padding-top: 1.8rem; }
  .header-inner { padding-inline: 1.5rem; }
  .page-hero { grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr); min-height: 370px; }
  .page-hero--text { display: block; min-height: 0; }
  .page-hero-media { order: 2; }
  .home-hero { min-height: 400px; }
  .content-media--wide { width: calc(100% + 8rem); margin-left: -4rem; }
  .content-media--inset { width: 78%; margin-left: auto; }
  .dashboard-grid { grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2fr); }
  .snapshot-card { grid-column: 1 / -1; }
  .dashboard-secondary { grid-template-columns: 1fr 0.8fr; }
  .demo-layout { grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr); }
  .related-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1120px) {
  .menu-button { display: none; }
  .primary-menu {
    position: static;
    display: flex !important;
    width: auto;
    max-height: none;
    align-items: center;
    gap: 0.1rem;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .primary-menu li { display: block; }
  .primary-menu a { display: flex; min-height: 36px; align-items: center; padding: 0.35rem 0.55rem; font-size: 0.72rem; }
  .primary-menu a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); background: transparent; }
  .dashboard-grid { grid-template-columns: minmax(200px, 0.72fr) minmax(0, 1.65fr) minmax(220px, 0.9fr); }
  .snapshot-card { grid-column: auto; }
}

@media (max-width: 519px) {
  table { font-size: 0.78rem; }
  th, td { padding: 0.65rem; }
  .hero-actions .button,
  .utility-actions .button { flex: 1 1 100%; }
  .page-hero-media { max-height: 235px; }
  .page-hero-media img { max-height: 235px; }
  .cookie-bar { align-items: stretch; }
  .cookie-bar > div { width: 100%; }
  .cookie-bar .button { flex: 1; }
}

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

@media (forced-colors: active) {
  .segment-chip,
  .button-primary,
  .chip.is-active { border: 1px solid ButtonText; }
}
