/* EpikBlox page integration for the preserved 2016 shell in /new.
   The original Home DOM/CSS and sprites remain in /new; application forms,
   account state, avatar rendering and game UI keep their existing markup. */
:root[data-epik-theme="black"] {
  --new-canvas: #000;
  --new-surface: #101010;
  --new-text: #f5f5f5;
  --new-muted: #b0b0b0;
  --new-line: #3b3b3b;
  --new-hover: #262626;
  --new-action: #fff;
  --new-action-text: #000;
  color-scheme: dark;
}
:root, :root[data-epik-theme="white"] {
  --new-canvas: #fff;
  --new-surface: #fff;
  --new-text: #111;
  --new-muted: #606060;
  --new-line: #d3d3d3;
  --new-hover: #eee;
  --new-action: #111;
  --new-action-text: #fff;
  color-scheme: light;
}
html:has(body.epik-site-2016:not(.building)) { background: var(--new-canvas); }
html body.epik-site-2016:not(.building) {
  margin: 0;
  padding-top: 56px;
  border-top: 0;
  background: var(--new-canvas);
  color: var(--new-text);
  font: 16px/1.4 'Source Sans Pro', Arial, sans-serif;
}
/* The old page base imports an !important EpikFont rule. Override that one
   rule here rather than changing the fonts of the in-game canvas/HUD. */
body.epik-site-2016:not(.building),
body.epik-site-2016:not(.building) *:where(:not(#builder, #builder *, #site-header, #site-header *)),
body.epik-site-2016:not(.building) *:where(:not(#builder, #builder *, #site-header, #site-header *))::before,
body.epik-site-2016:not(.building) *:where(:not(#builder, #builder *, #site-header, #site-header *))::after {
  font-family: 'Source Sans Pro', Arial, sans-serif !important;
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(code, pre, kbd, samp, #security-secret, #recovery-codes),
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(code, pre) * {
  font-family: ui-monospace, Consolas, monospace !important;
}
body.epik-site-2016:not(.building) [hidden]:where(:not(#builder, #builder *, #site-header, #site-header *)) { display: none !important; }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(a, a:visited) { color: var(--new-text); }
body.epik-site-2016:not(.building) a:where(:not(#builder, #builder *, #site-header, #site-header *)):hover { text-decoration: underline; }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--new-text);
  outline-offset: 3px;
}
html body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.site-main, .legal-document, main:not(#builder)) {
  box-sizing: border-box;
  width: min(970px, calc(100% - 30px));
  max-width: 970px;
  min-width: 0;
  margin: 28px auto 30px;
  padding: 0;
  border: 0;
  background: var(--new-canvas);
  color: var(--new-text);
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(h1, h2, h3, h4, h5, h6) {
  color: var(--new-text);
  letter-spacing: 0;
}
body.epik-site-2016:not(.building) h1:where(:not(#builder, #builder *, #site-header, #site-header *)) { font-size: 32px; font-weight: 300; line-height: 1.25; }
body.epik-site-2016:not(.building) h2:where(:not(#builder, #builder *, #site-header, #site-header *)) { font-size: 24px; font-weight: 300; line-height: 1.25; }
body.epik-site-2016:not(.building) h3:where(:not(#builder, #builder *, #site-header, #site-header *)) { font-size: 18px; font-weight: 600; }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.muted, time, .status, .empty-state, .friends-empty,
  .topic-detail, .section-total, .parent-intro, .rating-help, .platform-note,
  .create-empty, .create-heading span, .create-info small, .avatar-hint,
  .account-settings summary span, .profile-details dt, .profile-badge span,
  .member-card .member-number, .legal-page-number, .legal-date) {
  color: var(--new-muted);
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.error, .policy-error, .admin-notice.error,
  #status.error, #appeal-status.error, .create-removed, .creation-removed) {
  color: var(--new-text);
  font-weight: 600;
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(button, .button, .classic-play, .home-play) {
  border: 1px solid var(--new-line);
  border-radius: 3px;
  padding: 7px 13px;
  background: var(--new-surface);
  color: var(--new-text);
  box-shadow: none;
  text-shadow: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(button, .button):hover {
  border-color: var(--new-text);
  background: var(--new-hover);
  color: var(--new-text);
  text-decoration: none;
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(button, .button):disabled {
  color: var(--new-muted);
  background: var(--new-surface);
  border-color: var(--new-line);
  opacity: .6;
  cursor: default;
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.yellow, .btn-blue, .btn-red, .btn-green, .btn-gold,
  button[type="submit"], .classic-play, #create-upload) {
  color: var(--new-action-text);
  background: var(--new-action);
  border-color: var(--new-action);
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.yellow, .btn-blue, .btn-red, .btn-green, .btn-gold,
  button[type="submit"], .classic-play, #create-upload):hover {
  color: var(--new-action-text);
  background: var(--new-action);
  border-color: var(--new-action);
  opacity: .85;
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(input, select, textarea) {
  max-width: 100%;
  border: 1px solid var(--new-line);
  border-radius: 3px;
  padding: 7px 9px;
  background: var(--new-surface);
  color: var(--new-text);
  box-shadow: none;
  font-size: 16px;
  accent-color: var(--new-text);
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(input, textarea)::placeholder { color: var(--new-muted); }
body.epik-site-2016:not(.building) input[type="checkbox"]:where(:not(#builder, #builder *, #site-header, #site-header *)) { width: auto; }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.auth-form input, .SearchBar .TextBox) { border-style: solid; }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.panel, .panel-body, .community-panel, .admin-panel,
  .catalog-results, .accessory-card, .member, .member-card, .friend-card,
  .glance, .places-grid, .profile-character, .profile-stats div, .avatar-frame,
  .avatar-view, .avatar-hint, .create-page, .create-preview-panel,
  .download-platforms, .download-platform, #BuildersClubContainer,
  .legal-intro, .legal-sheet, .post, .post-author, .post .avatar,
  .forum-post, .forum-section, .forum-section:nth-child(even),
  .community-page #editor, .site-main > #editor, .legal-note,
  .discord-access-note, #recovery-panel, #appeal-cases li) {
  color: var(--new-text);
  border-color: var(--new-line);
  background: var(--new-surface);
  background-image: none;
  box-shadow: none;
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.panel-title, .community-bar, .admin-panel-title,
  .admin-panel-title.title-green, .admin-panel-title.title-red,
  .admin-panel-title.title-gold, .news-entry h2, .post h2, .places-label,
  .create-preview-panel h2, #brick-news, .download-page > h1) {
  margin: 0;
  padding: 12px;
  border-color: var(--new-line);
  border-bottom: 1px solid var(--new-line);
  background: var(--new-surface);
  color: var(--new-text);
  text-align: left;
  font-size: 22px;
  font-weight: 300;
}
body.epik-site-2016:not(.building) .panel-body { padding: 16px; }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.panel-title, .community-bar, .admin-panel-title) a { color: inherit; }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.search-bar, .SearchBar, .catalog-toolbar, .member-filters,
  .wardrobe-search, .create-side, .create-thumb, .account-settings,
  .profile-stats, .profile-stats div + div, .friend-tabs a, .member-badge,
  .admin-badge, .permission-tags span, .permission-grid label,
  .admin-empty, .admin-notice, .ban-details, .ban-preview,
  .ban-preview > div, .admin-form-block summary, .admin-staff > li,
  .appeal-card, .post-meta, .community-table th, .admin-table th,
  #epikclub-unavailable, .classic-controls, .game-rating, .classic-results-header) {
  background: var(--new-surface);
  background-image: none;
  color: var(--new-text);
  border-color: var(--new-line);
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.community-table, .admin-table, .post .content,
  .post-meta, .post-author, .create-item, .recent-topics li, .live-games li,
  .admin-table td, .community-table td, .admin-history > li,
  .account-heading, .admin-form-block, #create-fitting, .create-saved,
  .classic-results-header, .download-platform + .download-platform,
  .download-platform:nth-child(n+3), #JoinBuildersClubNow) {
  border-color: var(--new-line);
}
body.epik-site-2016:not(.building) .community-table tbody tr:nth-child(even) { background: var(--new-canvas); }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.forum-section:hover, .admin-nav a:hover) {
  background: var(--new-hover);
  color: var(--new-text);
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.forum-section h3, .community-heading h1,
  .community-composer h2, .profile-stats strong, .account-badge strong,
  .account-settings summary, .admin-stat strong, .admin-stat p,
  .admin-empty strong, .account-heading h3, .ban-preview summary,
  .live-games strong, .appeal-overdue > strong, .post .author,
  #MembershipOptions .Label, .game-activity, .price,
  .PriceInRobux, .PriceInTickets) { color: var(--new-text); }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.admin-help, .admin-stat small, .admin-session small,
  .account-heading p, .field-heading small, .permission-grid small,
  .admin-table td small, .staff-heading small, .history-stamp time) {
  color: var(--new-muted);
}

/* 2016 card and filter spacing; thumbnail/portrait pixels are unchanged. */
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.catalog-layout-2011, .classic-columns) {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
body.epik-site-2016:not(.building) .catalog-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding-right: 12px;
  border-right: 1px solid var(--new-line);
  overflow: visible;
}
body.epik-site-2016:not(.building) .catalog-categories a {
  padding: 9px 10px;
  background: transparent;
  color: var(--new-text);
  border: 0;
  font-size: 16px;
  white-space: normal;
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.catalog-categories a[aria-current="page"],
  .create-side a[aria-current], .admin-nav a[aria-current="page"],
  #game-pages a[aria-current="page"], .avatar-tabs button[aria-selected="true"],
  .accessory-card button[aria-pressed="true"], .vote-actions button[aria-pressed="true"]) {
  background: var(--new-action);
  border-color: var(--new-action);
  color: var(--new-action-text);
  font-weight: 600;
}
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.catalog-content-2011, .Assets, #Games) { min-width: 0; }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.catalog-results, .catalog-toolbar) { border: 0; padding: 0; }
body.epik-site-2016:not(.building) .catalog-toolbar { padding-bottom: 18px; border-bottom: 1px solid var(--new-line); }
body.epik-site-2016:not(.building) .catalog-count { margin: 18px 0 12px; }
body.epik-site-2016:not(.building) .catalog-count h2 { margin: 0; font-size: 24px; }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.catalog-grid, .classic-game-grid) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 14px;
}
body.epik-site-2016:not(.building) .accessory-card { border: 0; padding: 0; gap: 6px; }
body.epik-site-2016:not(.building) .accessory-card img { background: var(--new-surface); border-color: var(--new-line); }
body.epik-site-2016:not(.building) .accessory-card :is(h3, p, button) { font-size: 14px; }
body.epik-site-2016:not(.building) .accessory-card h3 { font-weight: 600; }
body.epik-site-2016:not(.building) .accessory-card button { margin-top: auto; min-height: 34px; }
body.epik-site-2016:not(.building) .accessory-card button:disabled { background: var(--new-surface); color: var(--new-muted); }
body.epik-site-2016:not(.building) .wardrobe-search { top: 0; }
body.epik-site-2016:not(.building) .avatar-sticky,
body.epik-site-2016:not(.building) .create-preview-panel { top: 74px; }
body.epik-site-2016:not(.building) .avatar-tabs { gap: 4px; }
body.epik-site-2016:not(.building) .avatar-tabs button { border-bottom-width: 1px; padding: 8px 12px; }
body.epik-site-2016:not(.building) .avatar-lock { background: var(--new-surface); border-color: var(--new-line); color: var(--new-text); }
body.epik-site-2016:not(.building) .avatar-lock[aria-pressed="true"] { background: var(--new-action); color: var(--new-action-text); }
body.epik-site-2016:not(.building) .create-side a { color: var(--new-text); }
body.epik-site-2016:not(.building) .create-thumb svg { stroke: var(--new-text); }
body.epik-site-2016:not(.building) .create-preview-panel > img { background: var(--new-surface); }
body.epik-site-2016:not(.building) .classic-page :is(#CatalogContainer, #GamesContainer, .GameDetails) { font-family: inherit; }
body.epik-site-2016:not(.building) .classic-page :is(h1, #GamesContainer h2, #CatalogContainer h2) {
  font-size: 32px;
  font-weight: 300;
}
body.epik-site-2016:not(.building) .classic-page #GamesContainer .GameName a { font-size: 16px; font-weight: 600; }
body.epik-site-2016:not(.building) .classic-page :is(.GameDetails p, #GamesContainer .Label, #GamesContainer .Detail) { font-size: 14px; }
body.epik-site-2016:not(.building) .classic-page :is(.HeaderPager, .NoResults) { color: var(--new-muted); }
body.epik-site-2016:not(.building) .classic-page :is(#GamesContainer h2.GamesDisplaySet, #CatalogContainer h2.AssetsDisplaySet) {
  font-size: 24px;
  font-weight: 300;
}
body.epik-site-2016:not(.building) .classic-page #ItemContainer { grid-template-columns: minmax(0, 1fr) 150px; }
body.epik-site-2016:not(.building) .classic-page #ItemContainer :is(#Item, #Summary, #Actions_Place, #Thumbnail_Place) {
  background: var(--new-surface);
  color: var(--new-text);
  border-color: var(--new-line);
}
body.epik-site-2016:not(.building) .classic-page #ItemContainer h1 {
  padding: 16px;
  background: var(--new-surface);
  border-color: var(--new-line);
  color: var(--new-text);
  font-size: 28px;
  font-weight: 300;
  text-align: left;
}
body.epik-site-2016:not(.building) .classic-page #ItemContainer #Summary :is(h2, h3, #Description) {
  color: var(--new-text);
  background: transparent;
  border-color: var(--new-line);
}
body.epik-site-2016:not(.building) .classic-page #ItemContainer #Summary :is(dt, dd, #Description) { font-size: 14px; }
body.epik-site-2016:not(.building) .classic-page #ItemContainer .classic-play { font-size: 24px; }
body.epik-site-2016:not(.building) #game-pages a {
  padding: 7px 12px;
  border-color: var(--new-line);
  background: var(--new-surface);
  color: var(--new-text);
}
body.epik-site-2016:not(.building) #game-pages a[aria-current="page"] { background: var(--new-action); color: var(--new-action-text); }
body.epik-site-2016:not(.building) .friend-tabs a { padding: 8px 14px; }
body.epik-site-2016:not(.building) .profile-character { border-bottom: 1px solid var(--new-line); }
body.epik-site-2016:not(.building) .profile-badges { padding: 18px; }
body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.admin-heading, .admin-nav, .admin-stat) {
  background: var(--new-surface);
  color: var(--new-text);
  border-color: var(--new-line);
}
body.epik-site-2016:not(.building) .admin-heading :is(p, p:last-child) { color: var(--new-text); }
body.epik-site-2016:not(.building) .admin-nav a { border-color: var(--new-line); color: var(--new-text); }
body.epik-site-2016:not(.building) .admin-panel-title h2 { font-size: 20px; font-weight: 300; }
body.epik-site-2016:not(.building) .admin-main .button-link { background: transparent; color: var(--new-text); }
body.epik-site-2016:not(.building) .admin-main section { scroll-margin-top: 74px; }
body.epik-site-2016:not(.building) .skip-link { z-index: 1100; background: var(--new-action); color: var(--new-action-text); }
body.epik-site-2016:not(.building) .legal-sheet { scroll-margin-top: 74px; }
body.epik-site-2016:not(.building) .legal-sheet h2,
body.epik-site-2016.appeals-page:not(.building) :is(h1, h2) { color: var(--new-text); background: var(--new-surface); }
body.epik-site-2016:not(.building) .policy-notice {
  background: var(--new-surface);
  color: var(--new-text);
  border: 1px solid var(--new-line);
  border-radius: 3px;
  box-shadow: 0 8px 40px #0008;
}
body.epik-site-2016:not(.building) .policy-notice::backdrop { background: #000b; }
body.epik-site-2016:not(.building) .policy-notice h2 { padding: 0 0 12px; background: transparent; color: var(--new-text); }
body.epik-site-2016:not(.building) .policy-notice :is(a, label, p) { color: var(--new-text); }
body.epik-site-2016:not(.building) .policy-actions button { background: var(--new-action); color: var(--new-action-text); border-color: var(--new-action); }
body.epik-site-2016:not(.building) .app-update-status { background: var(--new-surface); color: var(--new-text); }
body.epik-site-2016:not(.building) .site-theme-standalone {
  float: right;
  margin: 0 0 16px 18px;
  font-size: 14px;
}
body.epik-site-2016:not(.building) .download-page > h1 { padding: 16px 20px; }
body.epik-site-2016:not(.building) .platform-logo { padding: 6px; background: #fff; }
body.epik-site-2016:not(.building) .download-button,
body.epik-site-2016:not(.building) .download-button:hover,
body.epik-site-2016:not(.building) .download-button:disabled { background: transparent; border: 0; padding: 0; opacity: 1; }
body.epik-site-2016:not(.building) .home-2011-top {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 170px;
  gap: 20px;
  align-items: start;
}
body.epik-site-2016:not(.building) .home-trailer { margin: 0; }
body.epik-site-2016:not(.building) .home-trailer iframe { width: 100%; height: auto; aspect-ratio: 4/3; border: 1px solid var(--new-line); }
body.epik-site-2016:not(.building) .home-play-block .home-play {
  display: grid;
  place-content: center;
  width: 100%;
  min-height: 90px;
  margin-bottom: 12px;
  border-radius: 3px;
  background: var(--new-action);
  color: var(--new-action-text);
  border-color: var(--new-action);
  font-size: 28px;
  text-align: center;
}
body.epik-site-2016:not(.building) .home-2011-lower { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 24px; }
body.epik-site-2016:not(.building) .home-news { padding: 16px; border: 1px solid var(--new-line); background: var(--new-surface); }
body.epik-site-2016:not(.building) .home-news ul { list-style: none; margin: 0; padding: 0; }
body.epik-site-2016:not(.building) .home-news li { margin: 12px 0; }
html body.epik-site-2016:not(.building) .site-footer {
  box-sizing: border-box;
  width: min(970px, calc(100% - 30px));
  max-width: 970px;
  margin: 24px auto 0;
  padding: 24px 12px;
  border-top: 1px solid var(--new-line);
  background: var(--new-canvas);
  color: var(--new-muted);
  font-size: 13px;
  text-align: center;
}
body.epik-site-2016:not(.building) .site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
body.epik-site-2016:not(.building) .site-footer a { color: var(--new-text); }
body.epik-site-2016:not(.building) .site-footer a + a { margin-left: 0; }

@media (min-width: 992px) {
  html body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.site-main, .legal-document, main:not(#builder), .site-footer) {
    width: min(970px, calc(100% - 205px));
    margin-left: calc(175px + max(15px, (100% - 1145px) / 2));
    margin-right: 15px;
  }
  html.site-sidebar-collapsed body.epik-site-2016:not(.building) :is(.site-main, .legal-document, main:not(#builder), .site-footer) {
    width: min(970px, calc(100% - 30px));
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 991px) {
  html body.epik-site-2016:not(.building) { padding-top: 112px; }
  body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.catalog-grid, .classic-game-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.avatar-sticky, .create-preview-panel) { top: 128px; }
  body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.legal-sheet, .admin-main section) { scroll-margin-top: 128px; }
  body.epik-site-2016:not(.building) .home-2011-top { grid-template-columns: 200px minmax(0, 1fr); }
  body.epik-site-2016:not(.building) .home-play-block { grid-column: 2; }
}
@media (max-width: 650px) {
  html body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.site-main, .legal-document, main:not(#builder)) { width: calc(100% - 24px); margin-top: 20px; }
  body.epik-site-2016:not(.building) h1:where(:not(#builder, #builder *, #site-header, #site-header *)) { font-size: 28px; }
  body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.catalog-layout-2011, .classic-columns, .character-layout,
    .classic-page #ItemContainer, .classic-page #ItemContainer #Details,
    .auth-layout, .profile-layout, .home-2011-top, .home-2011-lower) {
    grid-template-columns: minmax(0, 1fr);
  }
  body.epik-site-2016:not(.building) .catalog-categories { flex-direction: row; flex-wrap: wrap; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--new-line); }
  body.epik-site-2016:not(.building) .catalog-categories a { padding: 8px 10px; }
  body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.catalog-grid, .classic-game-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  body.epik-site-2016:not(.building) .avatar-sticky { position: static; }
  body.epik-site-2016:not(.building) .avatar-controls .character-preview { min-height: 240px; height: min(340px, 48vh); }
  body.epik-site-2016:not(.building) .wardrobe-panels { max-height: none; overflow: visible; padding-right: 0; }
  body.epik-site-2016:not(.building) .wardrobe-search { position: static; }
  body.epik-site-2016:not(.building) .avatar-tabs { max-width: 100%; overflow-x: auto; }
  body.epik-site-2016:not(.building) .home-play-block { grid-column: auto; }
  body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(button, .button, input:not([type="checkbox"]), select) { min-height: 40px; }
  body.epik-site-2016.account-page:not(.building) .account-layout { grid-template-columns: minmax(0, 1fr); }
}
/* Ban letters, login throttling and appeal forms intentionally have no
   authenticated navigation. Keep those notices centered and readable. */
html body.epik-site-2016:not(.building):not(:has(#site-header)) {
  padding-top: 0;
}
html body.epik-site-2016:not(.building):not(:has(#site-header)) > main:not(#builder) {
  width: min(760px, calc(100% - 24px));
  margin: 28px auto;
  padding: 24px;
  border: 1px solid var(--new-line);
  background: var(--new-surface);
}
@media print {
  html body.epik-site-2016:not(.building) { padding-top: 0; background: #fff !important; color: #000 !important; }
  html body.epik-site-2016:not(.building) :where(:not(#builder, #builder *, #site-header, #site-header *)):is(.legal-document, main:not(#builder)) { width: auto; max-width: none; margin: 0; }
  body.epik-site-2016:not(.building) .legal-sheet { background: #fff; color: #000; }
  body.epik-site-2016:not(.building) .legal-sheet :is(h2, h3, a, .legal-page-number) { color: #000; background: transparent; }
}

@media(max-width:650px){body.epik-site-2016:not(.building) .catalog-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.epik-site-2016:not(.building) .catalog-toolbar .catalog-search{grid-column:1/-1}body.epik-site-2016:not(.building) .catalog-toolbar :is(input,select){width:100%}}

body.epik-site-2016:not(.building) #home-links:has(form){display:flex;flex-direction:column;align-items:stretch}body.epik-site-2016:not(.building) #home-links form{width:100%}

body.epik-site-2016:not(.building) .download-platforms,body.epik-site-2016:not(.building) .download-platform{background:var(--new-surface);color:var(--new-text);border-color:var(--new-line)}
body.epik-site-2016:not(.building) .platform-logo{width:72px;height:72px;padding:0;background:transparent;filter:grayscale(1) brightness(0)}
html[data-epik-theme=black] body.epik-site-2016:not(.building) .platform-logo{filter:grayscale(1) brightness(0) invert(1)}
body.epik-site-2016:not(.building) .download-button,body.epik-site-2016:not(.building) .download-button:hover{padding:12px 28px;min-width:180px;line-height:1.4;background:var(--new-action);color:var(--new-action-text);border:1px solid var(--new-action);font:600 17px 'Source Sans Pro',Arial,sans-serif}
body.epik-site-2016:not(.building) .download-button:disabled{padding:12px 28px;line-height:1.4;min-width:180px;background:var(--new-surface);color:var(--new-muted);border:1px solid var(--new-line);font:600 17px 'Source Sans Pro',Arial,sans-serif}
.ui-preference{padding:18px;margin-bottom:20px;border:1px solid var(--new-line,#ccc)}

html body.epik-site-2016:not(.building) a.download-button,html body.epik-site-2016:not(.building) a.download-button:visited{color:var(--new-action-text)!important}
