/* Surface-specific rules share the palette and type system of the catalogue. */
html[data-theme] body.modern-site {
  --surface-gutter: clamp(16px, 3.1vw, 46px);
  --surface-gap: clamp(18px, 2.6vw, 36px);
  --surface-wash: color-mix(in srgb, var(--ui-action) 9%, var(--ui-surface));
  --surface-accent-line: color-mix(in srgb, var(--ui-action) 39%, var(--ui-line));
}

/* Lobby: clear identity above the map, separate game selector and scene controls. */
html[data-theme] .modern-site .cs-game-hero {
  --game-ink: var(--ui-ink);
  --game-muted: var(--ui-muted);
  --game-orange: var(--ui-action);
  margin-bottom: var(--surface-gap);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-ink);
  box-shadow: var(--ui-shadow);
}
html[data-theme] .cs-game-hero .cs-game-hero__head {
  padding: clamp(20px, 2.7vw, 36px) var(--surface-gutter) clamp(14px, 2vw, 24px);
  background: var(--ui-surface);
  border: 0;
}
html[data-theme] .cs-game-hero .cs-game-hero__head h1 {
  font-size: clamp(24px, 2.7vw, 40px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.05em !important;
  color: var(--ui-ink);
}
html[data-theme] .cs-game-hero :is(.cs-game-hero__eyebrow, .cs-game-hero__kicker, .cs-game-hero__selection-label) {
  color: var(--ui-accent);
}
html[data-theme] .cs-game-hero .cs-game-hero__collection {
  background: var(--ui-soft);
  color: var(--ui-muted);
  border-color: var(--ui-line);
  box-shadow: none;
  border-radius: 100px;
}
html[data-theme] .cs-game-hero .cs-game-hero__tabs {
  gap: 5px;
  padding: 3px var(--surface-gutter) clamp(14px, 2vw, 24px);
  background: var(--ui-surface);
  border: 0;
}
html[data-theme] .cs-game-hero .cs-game-hero__tabs > a {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-soft) !important;
  color: var(--ui-ink) !important;
  min-width: 0;
}
html[data-theme] .cs-game-hero .cs-game-hero__tabs > a:is(:hover, .is-active) {
  border-color: var(--surface-accent-line);
  background: var(--ui-tint) !important;
}
html[data-theme] .cs-game-hero .cs-game-hero__tabs > .is-active {
  box-shadow: inset 0 -3px 0 var(--ui-action);
}
html[data-theme] .cs-game-hero .cs-game-hero__tabs > a::after { display: none; }
html[data-theme] .cs-game-hero .cs-game-hero__tabs a strong { color: var(--ui-ink); }
html[data-theme] .cs-game-hero .cs-game-hero__tabs small { color: var(--ui-muted); }
html[data-theme] .cs-game-hero .cs-game-hero__panels {
  background: linear-gradient(116deg, var(--surface-wash), var(--ui-surface) 57%, var(--ui-soft));
  border-block: 1px solid var(--ui-line);
}
html[data-theme] .cs-game-hero .cs-game-hero__panel { background: transparent; }
html[data-theme] .cs-game-hero .cs-game-hero__copy h2 {
  color: var(--ui-ink) !important;
  text-shadow: none;
  font-size: clamp(32px, 4.2vw, 62px) !important;
  letter-spacing: -.055em !important;
  line-height: 1.04 !important;
}
html[data-theme] .cs-game-hero .cs-game-hero__copy h2 > span { color: var(--ui-accent); }
html[data-theme] .cs-game-hero :is(.cs-game-hero__lead, .cs-game-hero__selection p, .cs-game-hero__edition small, .cs-game-hero__meta, .cs-game-hero__stats, .cs-game-hero__stamp > span) {
  color: var(--ui-muted);
}
html[data-theme] .cs-game-hero .cs-game-hero__lead { font-size: clamp(13px, 1vw, 15px); }
html[data-theme] .cs-game-hero :is(.cs-game-hero__download, .cs-game-hero__selection, .cs-game-hero__stamp) {
  border-color: var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}
html[data-theme] .cs-game-hero .cs-game-hero__stamp { border-inline-start: 3px solid var(--ui-action); }
html[data-theme] .cs-game-hero :is(.cs-game-hero__edition strong,.cs-game-hero__stats b,.cs-game-hero__selection h3,.cs-game-hero__stamp strong,.cs-game-hero__paging b) {
  color: var(--ui-ink);
}
html[data-theme] .cs-game-hero :is(.cs-game-hero__meta a,.cs-game-hero__stamp small,.cs-game-hero__stats svg) { color: var(--ui-accent); }
html[data-theme] .cs-game-hero :is(.cs-game-hero__meta, .cs-game-hero__stats) { border-color: var(--ui-line); }
html[data-theme] .cs-game-hero :is(.cs-game-hero__edition-link,.cs-game-hero__action,.cs-game-hero__scene-tool,.cs-game-hero__paging button,.cs-game-hero__quicklinks > a) {
  color: var(--ui-ink) !important;
  background: var(--ui-soft) !important;
  border-color: var(--ui-line);
  border-radius: 10px;
}
html[data-theme] .cs-game-hero :is(.cs-game-hero__scene-tool,.cs-game-hero__paging button,.cs-game-hero__quicklinks > a,.cs-game-hero__action):is(:hover,[aria-pressed="true"]) {
  color: var(--ui-accent) !important;
  background: var(--ui-tint) !important;
  border-color: var(--surface-accent-line);
}
html[data-theme] .cs-game-hero a.cs-game-hero__action--primary,
html[data-theme] .cs-game-hero a.cs-game-hero__action--primary:hover {
  background: var(--ui-action) !important;
  color: var(--ui-on-action) !important;
  border-color: var(--ui-action);
  box-shadow: none;
}
html[data-theme] .cs-game-hero .cs-game-hero__footer {
  padding-inline: var(--surface-gutter);
  background: var(--ui-surface);
  border: 0;
}
html[data-theme] .cs-game-hero .cs-game-hero__paging span { color: var(--ui-muted); }

/* Roulette and its native history dialog share the same card and control colors. */
html[data-theme] .modern-site :is(.cs-roulette,.cs-roulette-history) {
  --roulette-ink: var(--ui-ink);
  --roulette-muted: var(--ui-muted);
  --roulette-orange: var(--ui-action);
  border-color: var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-ink);
  box-shadow: var(--ui-shadow);
}
html[data-theme] .modern-site .cs-roulette { margin-bottom: var(--surface-gap); }
html[data-theme] .cs-roulette .cs-roulette__head,
html[data-theme] .cs-roulette .cs-roulette__panel {
  padding: clamp(18px, 2.2vw, 30px) var(--surface-gutter);
  border-color: var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}
html[data-theme] :is(.cs-roulette,.cs-roulette-history) h2 {
  font-size: clamp(21px, 2.3vw, 32px) !important;
  letter-spacing: -.045em !important;
  color: var(--ui-ink) !important;
}
html[data-theme] .cs-roulette .cs-roulette__brand {
  border-color: var(--surface-accent-line);
  background: var(--ui-tint);
  color: var(--ui-accent);
}
html[data-theme] .cs-roulette .cs-roulette__stage {
  background: var(--ui-soft);
  border-color: var(--ui-line);
}
html[data-theme] .cs-roulette__stage::before { background: linear-gradient(90deg,var(--ui-soft),transparent); }
html[data-theme] .cs-roulette__stage::after { background: linear-gradient(270deg,var(--ui-soft),transparent); }
html[data-theme] :is(.cs-roulette,.cs-roulette-history) .cs-roulette-card {
  background: var(--ui-surface) !important;
  border-color: var(--ui-line) !important;
  color: var(--ui-ink);
  border-radius: 15px;
}
html[data-theme] .cs-roulette .cs-roulette-card.is-selected { border-color: var(--ui-action) !important; }
html[data-theme] :is(.cs-roulette,.cs-roulette-history) .cs-roulette-card__title a { color: var(--ui-ink) !important; }
html[data-theme] :is(.cs-roulette,.cs-roulette-history) :is(.cs-roulette__intro,.cs-roulette-card__stats,.cs-roulette__hint,.cs-roulette__status,.cs-roulette__loading,.cs-roulette__speeds > span,.cs-roulette-history__note,.cs-roulette-history__date,.cs-roulette-history__footer,.cs-roulette-share__panel p) {
  color: var(--ui-muted);
}
html[data-theme] :is(.cs-roulette,.cs-roulette-history) :is(.cs-roulette__pool,.cs-roulette__status,.cs-roulette__button,.cs-roulette__history-button,.cs-roulette__sound,.cs-roulette__speeds button,.cs-roulette-card__action,.cs-roulette-share > summary,.cs-roulette-card__links > a,.cs-roulette-share__panel input) {
  color: var(--ui-ink) !important;
  background: var(--ui-soft) !important;
  border-color: var(--ui-line);
  border-radius: 9px;
}
html[data-theme] :is(.cs-roulette,.cs-roulette-history) :is(.cs-roulette__button--primary,.cs-roulette-card__links > .cs-roulette-card__download) {
  background: var(--ui-action) !important;
  color: var(--ui-on-action) !important;
  border-color: var(--ui-action);
}
html[data-theme] :is(.cs-roulette,.cs-roulette-history) :is(.cs-roulette__pool b,.cs-roulette__history-button span,.cs-roulette__button[aria-pressed="true"],.cs-roulette__speeds button[aria-pressed="true"],.cs-roulette-card__action[aria-pressed="true"]) {
  color: var(--ui-accent) !important;
  background: var(--ui-tint) !important;
  border-color: var(--surface-accent-line);
}
html[data-theme] :is(.cs-roulette,.cs-roulette-history) .cs-roulette-share__panel {
  background: var(--ui-raised);
  border-color: var(--ui-line);
}
html[data-theme] :is(.cs-roulette,.cs-roulette-history) .cs-roulette-share__panel :is(a,button) { color: var(--ui-ink) !important; }
html[data-theme] :is(.cs-roulette,.cs-roulette-history) .cs-roulette-share__panel :is(a,button):hover { background: var(--ui-tint); }
html[data-theme] .cs-roulette-history .cs-roulette-history__footer { border-color: var(--ui-line); }
html[data-theme] .cs-roulette-history.is-fallback { box-shadow: 0 0 0 100vmax #121417ab, var(--ui-shadow); }

/* Project, quick start and live statistics. */
html[data-theme] .modern-site.modern-v3 :is(.cs-about-project,.modern-home-guide,.modern-home-faq,.cs-site-stats) {
  background: var(--ui-surface);
  color: var(--ui-ink);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  padding: var(--surface-gutter);
}
html[data-theme] .modern-site .cs-about-project::before {
  background: radial-gradient(ellipse at 80% 54%,var(--surface-wash),transparent 55%);
}
html[data-theme] .modern-site.modern-v3 :is(.cs-about-project,.modern-home-guide,.modern-home-faq,.cs-site-stats) :is(h2,h3,summary,strong) { color: var(--ui-ink); }
html[data-theme] .modern-site.modern-v3 :is(.modern-home-guide,.modern-home-faq,.cs-site-stats) h2 {
  font-size: clamp(23px, 2.4vw, 36px) !important;
  letter-spacing: -.045em !important;
}
html[data-theme] .modern-site.modern-v3 :is(.cs-about-project,.modern-home-guide,.modern-home-faq) :is(p:not(.modern-eyebrow),.modern-about-copy > p:not(.modern-eyebrow)) {
  color: var(--ui-muted);
}
html[data-theme] .modern-site.modern-v3 :is(.cs-about-project,.modern-home-guide,.modern-home-faq,.cs-site-stats) :is(.modern-eyebrow,h2 > span,.modern-text-link,p > a,summary::after) { color: var(--ui-accent); }
html[data-theme] .modern-site.modern-v3 .cs-about-project :is(.modern-eyebrow,.cs-about-favorites-count,.cs-about-motion[aria-pressed="true"]) {
  background: var(--ui-tint);
  border-color: var(--surface-accent-line);
}
html[data-theme] .modern-site.modern-v3 .cs-about-project :is(.cs-about-action,.cs-about-game-links > a,.cs-about-motion) {
  background: var(--ui-soft) !important;
  border-color: var(--ui-line);
  color: var(--ui-ink) !important;
}
html[data-theme] .modern-site.modern-v3 .cs-about-project .cs-about-action--primary {
  background: var(--ui-action) !important;
  color: var(--ui-on-action) !important;
}
html[data-theme] .modern-site.modern-v3 :is(.cs-about-games,.modern-home-faq details,.modern-home-guide .guide-step) { border-color: var(--ui-line); }
html[data-theme] .modern-site.modern-v3 .guide-step-number {
  background: var(--ui-tint);
  border-color: var(--surface-accent-line);
  color: var(--ui-accent);
}
html[data-theme] .modern-site.modern-v3 .cs-site-stats {
  margin-block: var(--surface-gap);
  background: linear-gradient(135deg,var(--ui-surface),var(--surface-wash));
}
html[data-theme] .cs-site-stats .cs-site-stats__grid { gap: clamp(8px,1.1vw,16px); }
html[data-theme] .cs-site-stats .cs-site-stats__card {
  padding: clamp(14px,1.65vw,26px);
  border-color: var(--ui-line);
  background: var(--ui-surface);
  border-radius: 15px;
}
html[data-theme] .cs-site-stats .cs-site-stats__card > svg {
  color: var(--ui-accent);
  background: var(--ui-tint);
}
html[data-theme] .cs-site-stats :is(.cs-site-stats__heading > span,.cs-site-stats__card span,.cs-site-stats__note) { color: var(--ui-muted); }

/* File and build detail share an article layout and a distinct download panel. */
html[data-theme] .modern-site .article-page {
  --article-ink: var(--ui-ink);
  --article-muted: var(--ui-muted);
  --article-line: var(--ui-line);
  --article-accent: var(--ui-accent);
  color: var(--ui-ink);
}
html[data-theme] .modern-site .article-page .article-header { padding-block: 8px 2px; }
html[data-theme] body.modern-site .modern-content-area:has(.article-page),
html[data-theme] body.modern-site #dle-content.shou__cont,
html[data-theme] body.modern-site .article-page,
html[data-theme] body.modern-site .article-page .article-header {
  background: var(--ui-surface) !important;
}
html[data-theme] .modern-site .article-page .article-header h1 {
  font-size: clamp(27px,3.2vw,48px) !important;
  color: var(--ui-ink);
  letter-spacing: -.045em !important;
}
html[data-theme] .modern-site .article-page .article-panel {
  padding: clamp(16px,2.5vw,34px);
  margin-bottom: var(--surface-gap);
  border-color: var(--ui-line);
  background: var(--ui-surface);
  border-radius: var(--ui-radius);
}
html[data-theme] .modern-site .article-page .article-download {
  color: var(--ui-ink);
  background: linear-gradient(116deg,var(--surface-wash),var(--ui-surface));
  border-color: var(--surface-accent-line);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}
html[data-theme] .article-page :is(.article-nav,.article-badges > span,.article-download-mirror,.article-gallery-counter,.article-share-actions > *,.article-author-info,.article-note blockquote,[data-article-body] blockquote,.file-install-steps > li,.file-download-empty,.article-spec-icon,.cs-maps__item,.article-answer .square) {
  background: var(--ui-soft) !important;
  color: var(--ui-ink);
  border-color: var(--ui-line);
}
html[data-theme] .article-page .article-description { border-top: 3px solid var(--ui-action); }
html[data-theme] .article-page :is(.article-header,.article-nav,.article-section-heading,.article-panel,.article-download,.material-full-toolbar,.article-badges,.article-accordion,.article-specs > div) { border-color: var(--ui-line); }
html[data-theme] .article-page :is(.article-section-heading h2,.article-download h2,.article-accordion > summary,.article-specs dd,.article-specs dt,.article-answer strong,[data-article-body] strong,.file-install-steps h3,.article-comments h3,.article-share-actions a,.article-share-actions button,.article-author-info h3) { color: var(--ui-ink) !important; }
html[data-theme] .article-page :is(.article-prose,[data-article-body],.article-back,.article-accordion p,.article-answer,.article-gallery-hint,.article-gallery-status,.article-download p:not(.article-kicker),.file-install-steps p,.article-note,.article-installation,.article-nav a,.article-author-info p,.article-specs dd small) { color: var(--ui-muted); }
html[data-theme] .article-page [data-article-body] > p:first-child { color: var(--ui-ink); }
html[data-theme] .article-page :is([data-article-body],.article-answer) a { color: var(--ui-accent); }
html[data-theme] .article-page :is(.article-kicker,.article-accordion > summary::after,.article-nav > a[href="#article-download"],.file-install-steps > li::before) { color: var(--ui-accent); }
html[data-theme] .article-page :is(.article-nav > a[href="#article-download"],.article-nav > a:hover,.file-install-steps > li::before) {
  border-color: var(--surface-accent-line);
  background: var(--ui-tint);
}
html[data-theme] .article-page a.article-download-primary {
  color: var(--ui-on-action) !important;
  background: var(--ui-action) !important;
  border-color: var(--ui-action);
}
html[data-theme] .article-page .article-download-primary :is(small,svg) { color: inherit; }
html[data-theme] .article-page :is(.article-gallery-stage,.article-gallery-thumbs > a) {
  background: var(--ui-soft);
  border-color: var(--ui-line);
}
html[data-theme] .article-page .article-gallery-thumbs > a:is(.is-active,:focus-visible) { border-color: var(--ui-action); }
html[data-theme] .article-page .cs-related-card {
  background: var(--ui-raised);
  border-color: var(--ui-line);
  border-radius: 14px;
}
html[data-theme] .article-page :is(.article-accordion,.article-answer,.article-help,.article-comments-count,.article-author-info .youtuber,.article-author-info .youtube-info) {
  background: var(--ui-soft);
  color: var(--ui-muted);
  border-color: var(--ui-line);
}
html[data-theme] .article-page :is(.article-accordion[open] > summary,.article-accordion > summary::after,.article-help > a) {
  background: var(--ui-surface);
  color: var(--ui-accent);
  border-color: var(--ui-line);
}
html[data-theme] .article-page .article-comment .name,
html[data-theme] .article-page .article-answer .name { color: var(--ui-ink); }
html[data-theme] .article-page .article-comments .content-block { background: var(--ui-soft) !important; }
html[data-theme] .article-page .article-help > span { color: var(--ui-accent); }
html[data-theme] .article-page .cs-related-card :is(h3,h3 > a,a[data-material-title]) { color: var(--ui-ink) !important; }
html[data-theme] .article-page :is(.cs-related-card__share > summary,.cs-related-card__share-menu,.cs-related-card__share-menu > *) {
  background: var(--ui-surface);
  color: var(--ui-ink) !important;
  border-color: var(--ui-line);
}

/* Native controls, dialogs and editorial archives. */
html[data-theme] .modern-site :is(.favorites-dialog,.favorites-item,.favorites-fallback,.cs16-captcha,.searchtable,#searchsuggestions,.ui-dialog) {
  background: var(--ui-raised);
  color: var(--ui-ink);
  border-color: var(--ui-line);
}
html[data-theme] .favorites-dialog :is(h2,.favorites-item-link,.favorites-close,.favorites-remove) { color: var(--ui-ink); }
html[data-theme] .favorites-dialog :is(.favorites-note,.favorites-empty) { color: var(--ui-muted); }
html[data-theme] .favorites-dialog :is(.favorites-close,.favorites-remove,.favorites-empty) {
  background: var(--ui-soft);
  border-color: var(--ui-line);
}
html[data-theme] .modern-site :is(.article-comments,.cs16-captcha,.searchtable,.shou__cont,.ui-dialog,.favorites-dialog) :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="submit"],[type="button"],[type="image"]),select,textarea) {
  color: var(--ui-ink);
  background: var(--ui-surface);
  border-color: var(--ui-line);
}
html[data-theme] .modern-site .cs16-captcha :is(label,small) { color: var(--ui-muted); }
html[data-theme] .modern-site #dle-content .bg-primary-soft {
  background: var(--ui-soft) !important;
  color: var(--ui-ink);
  border-color: var(--ui-line);
}
html[data-theme] .modern-site #dle-content form :is(.form-control,.form-select) {
  background-color: var(--ui-surface);
  border-color: var(--ui-line);
  color: var(--ui-ink);
}
html[data-theme] .modern-site #dle-content form .btn-primary {
  background: var(--ui-action);
  border-color: var(--ui-action);
  color: var(--ui-on-action);
}
html[data-theme] .modern-site .ed-archive {
  --ed-ink: var(--ui-ink);
  --ed-muted: var(--ui-muted);
  --ed-line: var(--ui-line);
  --ed-paper: var(--ui-surface);
  --ed-accent: var(--ui-accent);
}
html[data-theme] .modern-site .ed-hero { border-radius: var(--ui-radius); }
html[data-theme] .modern-site :is(.ed-list .ed-story,.ed-toolbar select) {
  background: var(--ui-raised);
  border-color: var(--ui-line);
}
html[data-theme] .modern-site .ed-toolbar .ed-total {
  color: var(--ui-accent);
  background: var(--ui-tint);
}
html[data-theme] .modern-site .ed-toolbar button {
  background: var(--ui-action);
  color: var(--ui-on-action);
  border-color: var(--ui-action);
}

/* The model's render canvas keeps its own scene lighting. */
html[data-theme] .modern-site .pmp {
  --pmp-border: var(--ui-line);
  --pmp-muted: var(--ui-muted);
  --pmp-text: var(--ui-ink);
  color: var(--pmp-text);
  background: var(--ui-surface);
  border-radius: var(--ui-radius);
}
html[data-theme] .pmp :is(.pmp-heading h2,.pmp-label,.pmp-frame-label,.pmp-option-field label) { color: var(--ui-ink); }
html[data-theme] .pmp :is(.pmp-icon,.pmp-count) { background: var(--ui-tint); color: var(--ui-accent); border-color: var(--surface-accent-line); }
html[data-theme] .pmp :is(.pmp-footer,.pmp-options,.pmp-view-controls,.pmp-picker-trigger,.pmp-icon-button,.pmp-picker-popup,.pmp-picker-search,.pmp-picker-option,.pmp-model-field select,.pmp-option-field select,.pmp-open[aria-expanded="true"]) {
  background: var(--ui-soft);
  color: var(--ui-ink);
  border-color: var(--ui-line);
}
html[data-theme] .pmp :is(.pmp-picker-option:hover,.pmp-picker-option[aria-selected="true"],.pmp-icon-button[aria-pressed="true"]) { background: var(--ui-tint); color: var(--ui-accent); }
html[data-theme] .pmp .pmp-primary:not([aria-expanded="true"]) { background: var(--ui-action); color: var(--ui-on-action); }
html[data-theme] .cs16-model-preview :is(.pmp-header,.pmp-notice,.pmp-loading,.pmp-stage-wrap) {
  background: var(--ui-soft);
  color: var(--ui-muted);
  border-color: var(--ui-line);
}
html[data-theme] .cs16-model-preview :is(.pmp-heading p,.pmp-options > summary,.pmp-toggle,.pmp-empty,.pmp-picker-empty) { color: var(--ui-muted); }
html[data-theme] .cs16-model-preview :is(.pmp-camera-hint,.pmp-notice.is-error) {
  background: var(--ui-surface);
  color: var(--ui-accent);
  border-color: var(--surface-accent-line);
}

/* Wide screens keep the game selector beside the title. The scene spans both columns. */
@media (min-width: 1200px) {
  html[data-theme] .modern-site .cs-game-hero {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: center;
  }
  html[data-theme] .cs-game-hero .cs-game-hero__head {
    display: flex;
    flex-direction: column-reverse;
    align-items: start;
    gap: 10px;
    padding: 22px 12px 24px var(--surface-gutter);
  }
  html[data-theme] .cs-game-hero .cs-game-hero__head h1 {
    max-width: 21ch;
    font-size: clamp(26px, 2.1vw, 34px) !important;
  }
  html[data-theme] .cs-game-hero .cs-game-hero__eyebrow { display: none; }
  html[data-theme] .cs-game-hero .cs-game-hero__collection {
    padding: 0;
    background: none;
    border: 0;
    color: var(--ui-accent);
    letter-spacing: .06em;
    font-weight: 650;
  }
  html[data-theme] .cs-game-hero .cs-game-hero__tabs {
    padding: 18px var(--surface-gutter) 18px 0;
    min-width: 0;
    align-self: center;
  }
  html[data-theme] .cs-game-hero .cs-game-hero__tabs > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 10px clamp(7px, .8vw, 13px);
    gap: 3px;
    min-height: 86px;
  }
  html[data-theme] .cs-game-hero .cs-game-hero__tab-icon { align-self: start; margin-bottom: 3px; }
  html[data-theme] .cs-game-hero :is(.cs-game-hero__panels,.cs-game-hero__footer) { grid-column: 1/-1; }
}
@media (max-width: 800px) {
  html[data-theme] .cs-game-hero .cs-game-hero__tabs { padding-inline: 12px; gap: 4px; }
  html[data-theme] .cs-game-hero .cs-game-hero__tabs > a { border-radius: 9px; }
  html[data-theme] .cs-game-hero .cs-game-hero__head h1 { font-size: clamp(23px,5.5vw,34px) !important; }
  html[data-theme] .cs-game-hero .cs-game-hero__copy h2 { font-size: clamp(30px,6.3vw,42px) !important; }
}
@media (max-width: 550px) {
  html[data-theme] .cs-game-hero .cs-game-hero__tabs { padding-inline: 6px; gap: 2px; }
  html[data-theme] .cs-game-hero .cs-game-hero__tabs > a { padding-inline: 4px; }
  html[data-theme] .modern-site.modern-v3 :is(.cs-about-project,.modern-home-guide,.modern-home-faq,.cs-site-stats) { padding: 18px 15px; }
}
