/* CPC Hub: an original construction-game interface over 98.css and Bootstrap's grid. */
:root {
  --ink: #30372d;
  --muted: #65664e;
  --paper: #e7d6ac;
  --panel: #d5bd8b;
  --panel-light: #f8e6bb;
  --panel-dark: #8b7957;
  --teal: #367f79;
  --navy: #225d60;
  --asphalt: #53585c;
  --orange: #e8a347;
  --pixel: "Pixelated MS Sans Serif", Tahoma, sans-serif;
  --raised: inset 1px 1px #fff0c9, inset -1px -1px #88734f, inset 2px 2px #e8d3a4, inset -2px -2px #b59a69;
  --recessed: inset 1px 1px #776e51, inset -1px -1px #fff0c9, inset 2px 2px #aa986e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; scroll-padding-bottom: 16px; }
body {
  margin: 0; padding: 0 24px 20px; color: var(--ink); font: 13px/1.5 Tahoma, Arial, sans-serif;
  background-color: #46624a;
  background-image: repeating-linear-gradient(30deg, #344b3c24 0 1px, transparent 1px 48px), repeating-linear-gradient(150deg, #9fba7d12 0 1px, transparent 1px 48px), url("../art/terrain.ba9eb0683141.svg");
  background-size: auto, auto, 80px 80px;
}
a { color: var(--navy); }
a, button, input, select, textarea { scroll-margin-bottom: 16px; }
a:hover { color: #9b4b1d; }
button, input, select, textarea { font-family: Tahoma, Arial, sans-serif !important; font-size: 12px !important; }
button, .win-button { cursor: pointer; min-height: 32px; }
button:disabled { cursor: not-allowed; }
input, select, textarea { color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #083e55; outline-offset: 3px; }
p { margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--pixel); margin: 0; color: inherit; line-height: 1.3; letter-spacing: 0; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 13px; }
small, .small { font-size: 11px; }
code, pre { font-family: Consolas, "Courier New", monospace; font-size: 12px; }
code { overflow-wrap: anywhere; }
pre { padding: 16px; background: #f8efd7; border: 1px solid #9c916d; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: var(--recessed); }
hr { border: 0; border-top: 1px solid #9b8c66; }
img { max-width: 100%; }
.ui-icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; image-rendering: pixelated; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 1000; background: var(--paper); padding: 10px; }
.skip-link:focus { top: 10px; }

/* The sign and metal tool rack. */
.desktop-heading { max-width: 1380px; margin: auto; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.desktop-brand { color: #fff0c7; display: flex; gap: 13px; align-items: center; text-decoration: none; }
.desktop-brand:hover { color: #fff0c7; }
.brand-lettering { display: flex; flex-direction: column; gap: 5px; text-shadow: 2px 2px #21392e; }
.brand-lettering strong { font: bold 28px/1 var(--pixel); letter-spacing: 1px; }
.brand-lettering small { font: 9px/1.5 Tahoma, sans-serif; letter-spacing: 1.3px; color: #d8e0c0; }
.parking-icon { background: #28677b; border: 3px solid #f2e4b8; outline: 1px solid #263b35; box-shadow: inset 2px 2px #1b454f, 3px 3px #263b3580; display: inline-flex; align-items: center; justify-content: center; font: bold 32px/1 Arial, sans-serif; width: 42px; height: 48px; color: #fff4cf; flex-shrink: 0; }
.header-plaque { display: flex; align-items: center; gap: 11px; color: #e1e6cd; background: #304537; border: 1px solid #25392e; box-shadow: inset 1px 1px #ffffff12, 1px 1px #92ac751f; padding: 8px 13px; font: 11px var(--pixel); }
.plaque-divider { color: #8ca684; margin: 0 2px; }
.online-dot { display: inline-block; width: 7px; height: 7px; background: #9bcb71; border: 1px solid #34523d; box-shadow: inset 1px 1px #d0e79b; vertical-align: middle; }
.game-toolbar { max-width: 1380px; margin: 0 auto 12px; padding: 7px 12px; display: flex; gap: 5px; align-items: center; background: repeating-linear-gradient(0deg, #ffffff03 0 1px, transparent 1px 3px), #565c5d; border: 1px solid #262f2e; box-shadow: inset 1px 1px #9fa7a2, inset -1px -1px #353d3c, inset 2px 2px #707877, 3px 3px #24382e80; position: relative; }
.game-toolbar::before, .game-toolbar::after { content: ''; width: 4px; height: 4px; border: 1px solid #303b37; box-shadow: 1px 1px #9da69b; background: #788179; position: absolute; left: 4px; top: 6px; }
.game-toolbar::after { top: auto; bottom: 7px; }
.tool-button { min-width: 79px; min-height: 59px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 5px 12px; color: #f4ebce; text-shadow: 1px 1px #2a3735; background: #747f79; border: 1px solid #303c38; box-shadow: inset 1px 1px #bcc2ac, inset -1px -1px #4c5b50, inset 2px 2px #8e9a87; text-decoration: none; font: 11px var(--pixel); }
.tool-button:hover { background: #88937e; color: #fff7d8; }
.tool-button.active { background: #b58c50; color: #fff3d2; box-shadow: inset 1px 1px #5d512e, inset -1px -1px #e7c789, inset 2px 2px #8c6b3c; }
.tool-button:active { box-shadow: inset 1px 1px #263b31, inset -1px -1px #a7baa4; transform: translateY(1px); }
.tool-button .ui-icon { filter: drop-shadow(1px 2px 0 #35433570); }
.toolbar-divider { height: 45px; border-left: 1px solid #303a37; border-right: 1px solid #889089; margin: 0 6px; }
.tool-button.upload-shortcut { flex-direction: row; background: #4c7970; padding: 6px 18px; box-shadow: inset 1px 1px #a1bca0, inset -1px -1px #254a47, inset 2px 2px #71978a; }
.tool-button.upload-shortcut:hover { background: #568b7c; }
.tool-button.donate-shortcut { background: linear-gradient(#bd8950, #9b663d); border-color: #503e2d; box-shadow: inset 1px 1px #f3ca85, inset -1px -1px #64462d, inset 2px 2px #dca667; text-shadow: 1px 1px #65452c; }
.tool-button.donate-shortcut:hover { background: linear-gradient(#d09a5b, #b27b45); color: #fff6d9; }
.tool-button.donate-shortcut:active { box-shadow: inset 1px 1px #60422d, inset -1px -1px #e7bb78; }
.toolbar-account { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 4px 7px 4px 20px; border-left: 1px solid #394540; min-width: 140px; }
.toolbar-account a { color: #f7e9c2; display: block; }
.account-name { font: bold 11px/1.6 var(--pixel); max-width: 160px; overflow-wrap: anywhere; }
.account-secondary { font-size: 10px; margin-top: 4px; color: #d1d8c5 !important; }

/* Inset windows, parchment panels, and warm beveled controls. */
.window { padding: 4px; background: var(--panel); box-shadow: var(--raised), 2px 2px #302f2640; border: 1px solid #4c4b38; font-family: Tahoma, Arial, sans-serif; font-size: 13px; }
.explorer { max-width: 1380px; margin: auto; background: #a69b75; box-shadow: inset 1px 1px #e4d8af, inset -1px -1px #655d42, inset 2px 2px #c1b38d, 4px 5px #24382e70; }
.title-bar { background: #36776e; color: #fff1c8; min-height: 26px; padding: 4px 8px; box-shadow: inset 1px 1px #90b397, inset -1px -1px #264f49; font: bold 11px var(--pixel); }
.title-bar-text { display: flex; align-items: center; gap: 7px; text-shadow: 1px 1px #334d39; }
.title-bar .ui-icon { width: 20px; height: 20px; }
.main-title { background: #cd8738; color: #fff1bc; border: 1px solid #77552f; box-shadow: inset 1px 1px #ffca6e, inset -1px -1px #a7682c; min-height: 29px; }
.main-title .title-bar-text { text-shadow: 1px 1px #7b5126; }
.title-bar-caption { margin-left: auto; margin-right: 12px; font: 9px Tahoma, sans-serif; letter-spacing: 1px; color: #63441f; text-shadow: 1px 1px #f7b75d; }
.title-help { display: flex; align-items: center; justify-content: center; width: 19px; height: 19px; border: 1px solid #785427; box-shadow: inset 1px 1px #ffe4a1, inset -1px -1px #a57637; background: #e4b45f; color: #4d431f; text-decoration: none; font: bold 13px Tahoma, sans-serif; }
.win-button, button { display: inline-flex; justify-content: center; gap: 7px; align-items: center; color: #343c2d; background: #d9c18d; box-shadow: var(--raised); padding: 7px 13px; border: 1px solid #716747; border-radius: 0; text-decoration: none; min-width: 65px; font: 11px var(--pixel); }
.win-button:hover, button:not(:disabled):hover { color: #283f32; background: #ead4a0; }
.win-button:active, button:not(:disabled):active { box-shadow: var(--recessed); }
button:disabled { color: #777463; text-shadow: 1px 1px #e8d5b1; }
.primary-button { background: #e7b759 !important; border-color: #7d6334; box-shadow: inset 1px 1px #fff1b2, inset -1px -1px #a87c39, inset 2px 2px #f7d083; font-weight: bold; }
.primary-button:hover { background: #f1c574 !important; }
input:not([type=checkbox]):not([type=radio]), textarea, select { background-color: #faf0d4; border-radius: 0; box-shadow: var(--recessed); border: 1px solid #8a7b56; }
.status-bar { margin: 5px 0 0; gap: 4px; font: 10px var(--pixel); }
.status-bar-field { background: #bcb08a; padding: 4px 8px; margin: 0; box-shadow: inset 1px 1px #756c51, inset -1px -1px #ded1a9; }
.status-bar-field:first-child { flex: 1; }
.status-bar-field .online-dot { margin-right: 5px; }
.status-bar-field:nth-child(2), .status-bar-field:nth-child(3) { flex: 0 1 auto; }
.desktop-footer { max-width: 1380px; margin: 12px auto 0; display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: #d0dcc1; }
.desktop-footer .support-footer-link { color: #fff0c7; text-underline-offset: 2px; }
.explorer-layout { display: flex; background: var(--paper); border: 1px solid #746e50; margin-top: 4px; }
.sidebar { width: 210px; flex-shrink: 0; padding: 15px 11px; background: repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 3px), #b6b08b; border-right: 1px solid #746e50; box-shadow: inset -1px 0 #d8d0aa; }
.sidebar-heading { padding: 3px 7px 12px; border-bottom: 1px solid #8c8969; box-shadow: 0 1px #dbd5b0; }
.panel-caption { display: block; font: 9px/1.6 Tahoma, sans-serif; letter-spacing: 1.2px; color: #4f5c42; margin-bottom: 13px; }
.sidebar-heading h2 { font-size: 22px; color: #344d3c; text-shadow: 1px 1px #ded6af; line-height: 1.15; }
.sidebar-heading p { font-size: 11px; color: #515940; margin: 12px 0 0; max-width: 150px; }
.folder-group { margin: 20px 0; }
.folder-group h3 { font: 11px var(--pixel); color: #515940; margin: 0 0 9px 6px; }
.folder-link { display: flex; gap: 8px; align-items: center; padding: 8px 7px; margin: 4px 0; color: #374333; border: 1px solid #90825d; background: #c9bd93; box-shadow: inset 1px 1px #e9ddae, inset -1px -1px #a49870; text-decoration: none; font: 11px/1.4 var(--pixel); }
.folder-link .ui-icon { width: 22px; height: 22px; }
.folder-link small { margin-left: auto; font: 10px Tahoma, sans-serif; min-width: 18px; text-align: center; background: #b0a580; border: 1px solid #998f69; padding: 2px; }
.folder-link:hover { background: #d8cda2; color: #293e30; }
.folder-link.selected { background: #527e6d; color: #fff2c3; border-color: #385645; box-shadow: inset 1px 1px #314e3e, inset -1px -1px #8aab82, inset 2px 2px #426450; }
.folder-link.selected small { color: #fff2c3; background: #426552; border-color: #395841; }
.sidebar-note { background: #f1dfa9; border: 1px solid #a18c58; box-shadow: 2px 2px #665a3a30; padding: 19px; margin: 24px 0 18px; }
.sidebar-note h3 { font: bold 13px/1.4 Tahoma, sans-serif; margin: 7px 0 10px; }
.sidebar-note h2 { font-size: 18px; margin-bottom: 16px; }
.sidebar-note p { font-size: 12px; line-height: 1.7; color: #635c3e; }
.sidebar-note a { font-size: 11px; }
.catalog-main { flex: 1; min-width: 0; padding: 12px; background-image: url("../art/paper.ea79df470ce5.svg"); }

.eyebrow { font: 9px/1.6 Tahoma, sans-serif; letter-spacing: 1px; color: #6a6f4c; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-actions .ui-icon { width: 20px; height: 20px; }
.community-strip { display: flex; align-items: center; gap: 22px; padding: 7px 12px; margin-top: 5px; background: #c8c3a0; border: 1px solid #a59d76; box-shadow: var(--recessed); font: 10px var(--pixel); color: #4b5943; }
.community-strip>span { display: flex; align-items: center; gap: 5px; }
.community-strip .ui-icon { width: 16px; height: 16px; }
.community-strip strong { color: #344e3c; margin-left: 3px; }

/* The creation picker. */
.browse-section { margin-top: 16px; padding: 3px 9px 10px; background: #ceba8b; border: 1px solid #94835e; box-shadow: inset 1px 1px #f4e5bb, inset -1px -1px #ad986b; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.section-heading :is(h1, h2) { font-size: 18px; }
.browse-section>.section-heading { background: #477e70; box-shadow: inset 1px 1px #86a98c, inset -1px -1px #335a4e; margin: 0 -6px 8px; padding: 5px 9px; color: #fff0c5; }
.browse-section .section-heading :is(h1, h2) { display: flex; align-items: center; gap: 8px; font-size: 11px; text-shadow: 1px 1px #355744; }
.browse-section .section-heading .ui-icon { width: 20px; height: 20px; }
.file-label { font: 8px Tahoma, sans-serif; letter-spacing: .6px; color: #d4dfb9; }
.dark-eyebrow { color: #62704c; }
.catalog-filter { display: flex; align-items: stretch; flex-wrap: wrap; gap: 7px; }
.tag-filter { flex: 0 1 160px; min-width: 120px; }
.tag-filter input { width: 100%; height: 35px; background-color: #ecdfbd; }
.search-field { display: flex; align-items: center; flex: 1; min-width: 0; background: #fcf2d9; border: 1px solid #8c7d58; box-shadow: var(--recessed); padding-left: 8px; }
.search-field .ui-icon { width: 17px; height: 17px; }
.search-field input { width: 100%; box-shadow: none !important; border: 0 !important; background: transparent !important; min-height: 33px; height: 33px !important; padding: 6px 8px !important; min-width: 0; }
.catalog-filter select { height: 35px; min-width: 113px; width: auto; padding: 4px 25px 4px 8px; background-color: #ecdfbd; font-size: 11px !important; }
.catalog-filter select#sort { min-width: 145px; }
.filter-submit { min-width: 47px; padding: 0 8px; }
.results-meta { display: flex; justify-content: space-between; gap: 10px; margin: 11px 1px; font: 10px var(--pixel); color: #645e44; }
.demo-label { font: 8px Tahoma, sans-serif; letter-spacing: .6px; color: #6e603e; }
.creation-grid { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
.creation-card { background: #e5d3a9; border: 1px solid #7f7654; padding: 3px; box-shadow: var(--raised), 2px 2px #9c885e70; height: 100%; display: flex; flex-direction: column; }
.creation-card:hover { outline: 1px solid #477965; outline-offset: 1px; }
.card-titlebar { min-height: 25px; display: flex; align-items: center; justify-content: space-between; padding: 2px 6px; background: #b4b38e; box-shadow: inset 1px 1px #d9dbb6, inset -1px -1px #919472; border: 1px solid #929472; }
.file-type { color: #3e5240; font: 10px var(--pixel); display: flex; align-items: center; gap: 5px; }
.file-type .ui-icon { width: 18px; height: 18px; }
.preview-label { color: #666044; font: 8px Tahoma, sans-serif; letter-spacing: .7px; }
.card-picture { display: block; height: 155px; margin: 3px 0 0; background: #87a06b; border: 1px solid #5e7050; overflow: hidden; box-shadow: inset 2px 2px #354f3433; }
.card-picture img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.enhanced-images img[data-image] { opacity: 0; transition: opacity 160ms ease-out; }
.enhanced-images img[data-image][data-image-state="ready"],
.enhanced-images img[data-image][data-image-state="failed"] { opacity: 1; }
.card-content { padding: 10px 9px 9px; flex: 1; display: flex; flex-direction: column; }
.card-title-line { display: flex; gap: 6px; align-items: center; }
.card-title-line>a { color: #334f3d; text-decoration: none; }
.card-title-line h3 { font: bold 13px/1.4 Tahoma, sans-serif; }
.card-title-line>a:hover { text-decoration: underline; }
.card-author { display: flex; gap: 4px; font-size: 10px; color: #746b4e; margin: 5px 0 9px; }
.card-author strong { font-weight: normal; color: #53664c; }
.creator-link { color: inherit; text-underline-offset: 2px; overflow-wrap: anywhere; }
.creator-heading>div:first-child { min-width: 0; }
.creator-heading h1 { overflow-wrap: anywhere; }
.card-author>span { margin-left: auto; color: #665e47; font-family: monospace; }
.card-summary { font-size: 11px; line-height: 1.6; color: #615f47; margin-bottom: 11px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.card-tags a { font-size: 9px; padding: 2px 5px; background: #d3c69d; color: #586044; border: 1px solid #b2a77d; box-shadow: inset 1px 1px #eae0b8; text-decoration: none; }
.card-tags a:hover { background: #c1c59a; }
.card-footer { display: flex; align-items: center; gap: 9px; padding: 5px 6px 3px; border-top: 1px solid #b5a479; box-shadow: inset 0 1px #f6e8c5; color: #626447; font-size: 10px; }
.card-footer>.win-button { margin-left: auto; font-size: 10px; min-height: 27px; min-width: 59px; padding: 3px 8px; }
.card-footer>span:nth-child(2) { margin-left: auto; font-size: 9px; }
.card-footer>span:first-child { white-space: nowrap; }
.card-counts { display: flex; flex-direction: column; gap: 3px; }
.empty-state { margin: 20px auto; text-align: center; padding: 25px 15px; max-width: 600px; }
.empty-icon { color: #af8643; font-size: 55px; display: block; }
.empty-state h3 { font-size: 18px; margin: 12px 0; }
.empty-state p { color: #625f46; font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 20px 0 5px; font-size: 12px; }

/* Details, account dialogs, editing, and developer tools share the same materials. */
.page-content { padding: 25px 30px 35px; background: var(--paper) url("../art/paper.ea79df470ce5.svg"); min-height: 620px; border: 1px solid #8b805d; margin-top: 4px; }
.breadcrumbs { font-size: 11px; color: #69654b; margin-bottom: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.detail-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 22px; }
.detail-heading h1 { margin: 5px 0 10px; }
.detail-heading p { font-size: 12px; color: #676347; margin: 0; }
.detail-actions { display: flex; align-items: flex-start; gap: 9px; flex-wrap: wrap; }
.bookmark-control { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bookmark-control .collection-count { font-size: 11px; color: #676347; white-space: nowrap; }
.detail-image { border: 4px solid #adb28a; outline: 1px solid #707b52; background: #8ca071; aspect-ratio: 16 / 9; max-height: 460px; overflow: hidden; box-shadow: 2px 3px #625e3c40; }
.detail-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.screenshot-gallery { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0; }
.screenshot-gallery a { flex: 0 0 150px; font-size: 11px; }
.screenshot-picture { height: 85px; width: 150px; background: #8ca071; border: 3px solid #b7aa7b; outline: 1px solid #807752; }
.screenshot-gallery img { display: block; height: 100%; width: 100%; object-fit: cover; }
.screenshot-gallery span { display: block; }
.detail-image > a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.screenshot-gallery a { cursor: zoom-in; }
.screenshot-gallery a[aria-current="true"] .screenshot-picture { border-color: #e4ad49; outline: 2px solid #3a6f60; }
.screenshot-gallery a:focus-visible { outline: 2px solid #3a6f60; outline-offset: 3px; }
.screenshot-viewer-open { overflow: hidden; }
dialog.screenshot-viewer { width: min(1400px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 4px; overflow: auto; color: var(--ink); }
.screenshot-viewer::backdrop { background: #102017ed; }
.screenshot-viewer-stage { height: min(72dvh, 900px); min-height: 150px; overflow: auto; background: #1c2923; margin-top: 4px; }
.screenshot-viewer-stage img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.screenshot-viewer-stage.is-zoomed img { width: auto; height: auto; max-width: none; max-height: none; margin: auto; cursor: zoom-out; }
.screenshot-viewer-footer { padding: 12px; }
.screenshot-viewer-caption { display: flex; gap: 12px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.screenshot-viewer-caption > :first-child { flex: 0 0 auto; font-weight: bold; }
.screenshot-viewer-footer p { font-size: 12px; margin: 8px 0; }
.screenshot-viewer-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.paper-panel { background: #efe1ba; border: 1px solid #aa9b71; padding: 22px; margin: 22px 0; box-shadow: inset 1px 1px #fff0ce, 2px 2px #b7a77c; }
.paper-panel h2 { font-size: 18px; margin-bottom: 16px; color: #41573f; }
.paper-panel p { font-size: 13px; line-height: 1.8; }
.description { white-space: normal; overflow-wrap: anywhere; }
.description p { font-size: 13px; }
.markdown-content { color: #5b5d4d; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.markdown-content p { font-size: inherit; line-height: inherit; margin: 0 0 10px; }
.markdown-content h4 { color: inherit; font-size: 14px; line-height: 1.5; margin: 16px 0 8px; }
.markdown-content ul, .markdown-content ol { padding-left: 24px; margin: 8px 0 12px; }
.markdown-content li { margin: 3px 0; }
.markdown-content blockquote { margin: 12px 0; padding: 2px 12px; border-left: 3px solid #b3a77f; }
.markdown-content code { font-size: 12px; background: #b6a37626; padding: 1px 4px; }
.markdown-content pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; background: #b6a37626; }
.markdown-content pre code { padding: 0; background: none; }
.markdown-content a { color: #3e6650; text-decoration: underline; text-underline-offset: 2px; }
.markdown-content a:hover { color: #273f31; }
.markdown-content > :first-child { margin-top: 0; }
.markdown-content > :last-child { margin-bottom: 0; }
.external-warning-window { width: min(520px, calc(100% - 28px)); max-height: calc(100vh - 32px); overflow: auto; color: var(--ink); }
dialog.external-warning-window { margin: auto; }
dialog.external-warning-window::backdrop { background: #15251bd9; }
.external-warning-window .window-body { padding: 20px; }
.external-warning-window h2 { font-size: 18px; margin: 0 0 14px; }
.external-warning-window p { font-size: 13px; line-height: 1.6; }
.external-warning-window .external-destination { padding: 10px; background: var(--paper); box-shadow: var(--recessed); overflow-wrap: anywhere; unicode-bidi: plaintext; }
.external-warning-window .form-actions { flex-wrap: wrap; }
.lead { font-size: 15px !important; line-height: 1.6; }
.download-panel { margin-bottom: 20px; }
.download-panel .window-body { padding: 20px; text-align: center; }
.download-icon { font-size: 52px; line-height: 1.1; color: #416c58; }
.download-panel h2 { margin: 12px 0; }
.download-panel p { font-size: 12px; }
.download-button { width: 100%; min-height: 42px; }
.version-link { display: block; font-size: 11px; margin: 14px 0 22px; }
.download-panel dl { border-top: 1px solid #a18e62; box-shadow: 0 -1px #efdaa6; padding-top: 12px; margin: 0; font-size: 11px; }
.download-panel dl>div { display: flex; justify-content: space-between; margin: 10px 0; gap: 10px; }
.download-panel dd { margin: 0; font-weight: bold; }
.release-entry { border-top: 1px solid #beaf84; padding: 15px 0; }
.release-entry summary { cursor: pointer; font-size: 13px; }
.release-entry summary>span:last-child { float: right; font-size: 11px; color: #726e52; }
.release-body { padding: 15px 0 0 16px; }
.release-body p { font-size: 12px; }
.checksum { margin-top: 15px; color: #706b51; font-size: 11px; }
.checksum code { display: block; background: #dfd3b0; padding: 8px; margin-top: 8px; }
.badge { font-size: 9px; background: #d2d5a6; color: #4f6140; padding: 3px 5px; margin-left: 7px; border: 1px solid #a1af7b; }
.form-window { margin-bottom: 26px; }
.form-window .window-body { padding: 23px; }
.standard-form label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 5px; }
.standard-form input:not([type=checkbox]):not([type=radio]):not([type=submit]), .standard-form textarea, .standard-form select { display: block; width: 100%; max-width: 100%; min-height: 34px; padding: 8px; }
.standard-form textarea { height: auto; }
.standard-form input[type=file] { height: auto; background: #d7c69f; border: 1px solid #998a62; box-shadow: none; padding: 8px !important; }
.standard-form input[type=checkbox], .standard-form input[type=radio] { appearance: auto !important; position: static !important; opacity: 1 !important; margin: 0 7px 0 0; display: inline-block; vertical-align: middle; }
.standard-form label:has(input[type=checkbox]), .standard-form label:has(input[type=radio]) { font-weight: normal; }
.standard-form [type=checkbox]+label:before, .standard-form [type=radio]+label:before { display: none; }
.standard-form [type=checkbox]+label, .standard-form [type=radio]+label { display: inline; margin-left: 0; }
.standard-form .helptext { font-size: 11px; color: #625f46; display: block; margin-top: 6px; }
.standard-form ul { font-size: 12px; padding-left: 20px; }
.standard-form p { margin-bottom: 19px; }
.standard-form fieldset { margin: 20px 0; padding: 14px; border-color: #ab976a; }
.standard-form fieldset legend { font-size: 12px; }
.standard-form button { padding: 8px 16px; }
.standard-form h1 { font-size: 22px; margin-bottom: 17px; }
.standard-form h2 { font-size: 20px; margin-bottom: 15px; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }
.errorlist { color: #8b3028; background: #f6d4ad; border-left: 3px solid #a83b32; padding: 10px 14px !important; list-style: none; }
.edit-gallery figure { margin: 0 0 20px; border-bottom: 1px solid #ae9b70; padding-bottom: 14px; }
.edit-picture { aspect-ratio: 16 / 9; max-height: 220px; background: #8ca071; }
.edit-gallery img { display: block; width: 100%; height: 100%; object-fit: contain; }
.edit-gallery figcaption { font-size: 12px; margin: 8px 0; }
.history-entry { font-size: 12px; border-top: 1px solid #c6b68b; padding: 12px 0; }
.history-entry summary { cursor: pointer; }
.history-entry dt { font-weight: bold; margin-top: 8px; }
.history-entry dd { margin: 3px 0; overflow-wrap: anywhere; }
.notice { padding: 14px 18px; background: #f5e0a1; border: 1px solid #b59a55; font-size: 12px; margin: 20px 0; box-shadow: inset 1px 1px #fff0be; }
.messages { padding: 10px 20px; background: #d0d8a8; border: 1px solid #879b65; }
.messages p { font-size: 12px; margin: 0; }
.account-container { background: #b2b68d url("../art/terrain.ba9eb0683141.svg"); min-height: 650px; display: flex; justify-content: center; align-items: flex-start; padding: 45px 20px; margin-top: 4px; border: 1px solid #818562; }
.account-window { width: 100%; max-width: 480px; }
.account-window .window-body { padding: 28px; }
.account-window h1 { font-size: 22px; line-height: 1.3; }
.account-window .account-icon { margin-bottom: 22px; }
.account-divider { text-align: center; color: #6e684c; font-size: 11px; border-top: 1px solid #a79568; margin: 25px 0 18px; padding-top: 18px; }
.social-buttons { display: flex; gap: 10px; }
.social-buttons>* { flex: 1; }
.social-buttons button { width: 100%; }
.account-signup { border-top: 1px solid #af9d71; padding-top: 18px; margin-top: 22px; font-size: 12px; }
.copy-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.copy-row code { background: #fff0cc; padding: 10px; border: 1px solid #b5a479; flex: 1; word-break: break-all; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; font-size: 12px; border-collapse: collapse; display: table; background: none; box-shadow: none; }
.data-table th { text-align: left; background: #d4c69d; color: #596045; padding: 10px; position: static; box-shadow: none; }
.data-table td { border-bottom: 1px solid #c4b78b; padding: 13px 10px; }
.data-table small { display: block; font: 10px monospace; color: #71694d; margin-top: 5px; }
.data-table button { font-size: 11px !important; min-width: 55px; }
.manager-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; font-size: 12px; border-bottom: 1px solid #c4b78b; }
.developer-page>h1 { margin: 10px 0 15px; }
.developer-page>.hero-actions { margin: 26px 0 15px; }
.code-window { margin-top: 22px; }
.code-window .window-body { padding: 20px; }
.code-window p { font-size: 12px; margin: 0; }
.steps { padding-left: 23px; }
.steps li { padding-left: 6px; margin: 22px 0; font-size: 15px; }
.steps p { margin: 6px 0; font-size: 13px; }
.scope-list dt { margin: 18px 0 6px; }
.scope-list dd { margin: 0; font-size: 12px; line-height: 1.7; }

@media (min-width: 1500px) {
  .card-picture { height: 175px; }
}
@media (max-width: 1199px) {
  body { padding: 0 16px 20px; }
  .sidebar { width: 194px; padding: 14px 9px; }
  .folder-link { gap: 6px; padding: 7px 5px; }
  .folder-link .ui-icon { width: 20px; height: 20px; }
  .community-strip { gap: 17px; }
  .catalog-filter { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .catalog-filter select { flex: 1; }
  .card-picture { height: 180px; }
  .tool-button { min-width: 72px; padding: 5px 9px; }
  .tool-button.upload-shortcut { flex-direction: column; padding: 5px 11px; }
  .toolbar-account { min-width: 125px; padding-left: 12px; }
  .file-label { display: none; }
}
@media (max-width: 850px) {
  body { padding: 0 10px 20px; }
  .desktop-heading { min-height: 75px; }
  .header-plaque { font-size: 10px; padding: 6px 8px; gap: 6px; white-space: nowrap; }
  .brand-lettering small { font-size: 8px; letter-spacing: .7px; }
  .game-toolbar { padding: 6px; gap: 4px; flex-wrap: wrap; }
  .game-toolbar::before, .game-toolbar::after { display: none; }
  .tool-button { min-width: 66px; padding: 5px 7px; font-size: 10px; }
  .toolbar-divider { display: none; }
  .toolbar-account { border: 0; min-width: 108px; padding-left: 5px; gap: 6px; }
  .toolbar-account>.ui-icon { display: none; }
  .sidebar { display: none; }
  .catalog-main { padding: 10px; }
  .card-picture { height: 190px; }
  .page-content { padding: 22px 20px; }
  .detail-heading { align-items: flex-start; flex-direction: column; }
  .page-content h1 { font-size: 25px; }
  .desktop-footer { font-size: 9px; }
  .status-bar-field:nth-child(3) { display: none; }
}
@media (max-width: 575px) {
  body { padding: 0 6px 20px; }
  .desktop-heading { min-height: 76px; gap: 5px; }
  .desktop-brand { gap: 10px; }
  .brand-lettering strong { font-size: 22px; }
  .brand-lettering small { font-size: 7px; letter-spacing: .4px; max-width: 220px; }
  .parking-icon { width: 33px; height: 39px; font-size: 27px; }
  .header-plaque { display: none; }
  .game-toolbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 9px; }
  .tool-button { min-width: 0; min-height: 55px; padding: 5px 2px; font-size: 9px; gap: 6px; }
  .tool-button.upload-shortcut { grid-column: span 3; flex-direction: row; min-height: 34px; }
  .toolbar-account { grid-column: span 3; margin-left: 0; justify-content: center; padding: 0 4px; min-width: 0; }
  .toolbar-account>div { display: flex; align-items: center; gap: 10px; }
  .account-name { font-size: 10px; max-width: 90px; }
  .account-secondary { font-size: 9px; margin-top: 0; }
  .title-bar-caption { display: none; }
  .main-title .title-bar-text { font-size: 11px; }
  .main-title { padding: 3px 5px; }
  .explorer { padding: 3px; }
  .catalog-main { padding: 7px; }
  .community-strip { gap: 12px; padding: 7px; font-size: 9px; justify-content: space-between; }
  .community-strip>span { gap: 3px; }
  .community-strip .ui-icon { display: none; }
  .browse-section { margin-top: 12px; padding: 3px 7px 9px; }
  .browse-section>.section-heading { margin-left: -4px; margin-right: -4px; }
  .catalog-filter { gap: 6px; }
  .catalog-filter select { min-width: 95px; font-size: 10px !important; padding-left: 5px; }
  .catalog-filter select#sort { min-width: 125px; }
  .filter-submit { min-width: 42px; padding: 0 6px; }
  .results-meta { font-size: 10px; flex-direction: column; gap: 5px; }
  .demo-label { font-size: 8px; letter-spacing: .3px; }
  .card-picture { height: 200px; }
  .card-title-line h3 { font-size: 14px; }
  .card-summary { font-size: 12px; }
  .card-content { padding: 12px 10px; }
  .card-tags a { font-size: 10px; }
  .card-footer { font-size: 10px; }
  .card-footer>.win-button { min-height: 32px; }
  .status-bar { font-size: 9px; }
  .status-bar-field { padding: 4px 6px; }
  .status-bar-field:nth-child(2) { display: none; }
  .desktop-footer { flex-direction: column; gap: 3px; font-size: 9px; }
  .page-content { padding: 20px 13px; }
  .paper-panel { padding: 17px; }
  .form-window .window-body { padding: 16px; }
  .account-container { padding: 28px 10px; }
  .account-window .window-body { padding: 20px; }
  .copy-row { flex-direction: column; align-items: stretch; }
  .manager-row { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}

/* Social sign-in and linked accounts. */
.social-signin-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0; }
.social-signin-buttons form, .social-signin-buttons button { width: 100%; }
.social-signin-buttons .provider-button {
  min-height: 52px; padding: 8px 16px; gap: 14px; border: 1px solid transparent;
  border-radius: 4px; box-shadow: none; color: #fff; text-shadow: none;
  font-size: 14px !important; font-weight: bold; line-height: 1.4;
}
.provider-button img { display: block; flex-shrink: 0; object-fit: contain; }
.social-signin-buttons .provider-button:hover { color: #fff; box-shadow: none; }
.social-signin-buttons .provider-button-steam { background: #171a21; border-color: #101216; }
.social-signin-buttons .provider-button-steam:hover { background: #252b36; }
.social-signin-buttons .provider-button-discord { background: #5865f2; }
.social-signin-buttons .provider-button-discord:hover { background: #4752c4; }
.social-signin-buttons .provider-button:active { box-shadow: inset 0 2px 4px #0005; text-shadow: none; }
.social-signin-buttons .provider-button:focus-visible { outline: 3px solid #083e55; outline-offset: 3px; }
.profile-panel { margin-top: 0; }
.linked-account-name { display: block; margin-top: 5px; color: #625f46; overflow-wrap: anywhere; }
.linked-account { gap: 15px; }
.linked-account > div { min-width: 0; }
.profile-help { margin: 18px 0 0; }

/* Fan-content notice shown before website downloads. */
.download-warning-window { width: min(560px, calc(100% - 28px)); max-height: calc(100vh - 32px); overflow: auto; color: var(--ink); }
dialog.download-warning-window { margin: auto; }
dialog.download-warning-window::backdrop { background: #15251bd9; }
.download-warning-window .window-body { padding: 22px; }
.download-warning-window h2 { margin-bottom: 16px; font-size: 22px; }
.download-warning-file { padding: 10px 12px; background: var(--paper); box-shadow: var(--recessed); overflow-wrap: anywhere; font-weight: bold; }
.download-warning-window .form-actions { flex-wrap: wrap; }

/* Moderation office: the same windows and paper panels as the catalog. */
.moderation-nav, .moderation-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0; }
.moderation-filter input, .moderation-filter select { min-height: 34px; padding: 8px; max-width: 100%; }
.moderation-filter select { min-width: 150px; padding-right: 28px; }
.moderation-table-wrap { overflow-x: auto; margin-bottom: 24px; box-shadow: var(--recessed); background: var(--paper); }
.moderation-table { width: 100%; border-collapse: collapse; text-align: left; }
.moderation-table th, .moderation-table td { padding: 12px; border-bottom: 1px solid #aa986e; vertical-align: top; }
.moderation-table th { background: #c0aa7e; }
.moderation-table td { background: var(--paper); }
.moderation-table small, .moderation-file-row small { display: block; margin-top: 4px; color: var(--muted); }
.moderation-table .badge { margin: 4px; }
.activity-browser { min-width: 180px; max-width: 380px; overflow-wrap: anywhere; }
.activity-browser details { margin-top: 8px; }
.moderation-notice { padding: 18px; margin: 18px 0; border: 2px solid #916139; background: #f0d9a3; box-shadow: inset 1px 1px #fff4d4; overflow-wrap: anywhere; }
.moderation-notice h2, .moderation-notice h3 { margin-bottom: 12px; }
.moderation-notice p:last-child { margin-bottom: 0; }
.moderation-notice h3 { margin-top: 18px; }
.hidden-badge { background: #8e432e; color: #fff2d0; }
.moderation-action { margin-top: 24px; border-top: 1px solid #998057; padding-top: 18px; }
.moderation-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #aa986e; }
.moderation-file-row > div { flex: 1; min-width: 180px; overflow-wrap: anywhere; }
.moderation-reason { overflow-wrap: anywhere; }
.danger-button { background: #cc9c7e; border-color: #78472f; }
.role-guide dt { font-weight: bold; margin-top: 14px; }
.role-guide dd { margin: 4px 0; }
.featured-section { margin: 28px 0; }
.game-toolbar { flex-wrap: wrap; }

.stats-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--ink); }
.stats-table caption { caption-side: top; text-align: left; font-size: 12px; color: var(--muted); padding: 0 0 12px; overflow-wrap: anywhere; }
.stats-table th, .stats-table td { border: 1px solid #b4a477; padding: 10px 12px; }
.stats-table thead th { background: #ccb98b; color: #354f42; font-weight: bold; }
.stats-table tbody th { text-align: left; font-weight: normal; background: #e4d5ac; width: 65%; }
.stats-table td { background: #f5e9c9; text-align: right; font-variant-numeric: tabular-nums; font-weight: bold; white-space: nowrap; }
.stats-table thead th:last-child { text-align: right; }
.stats-table tbody tr:nth-child(even) td { background: #ecdfba; }
.stats-unit { font-weight: normal; font-size: 11px; color: var(--muted); }
.paper-panel .stats-note { font-size: 11px; margin: 10px 0 0; color: var(--muted); }
.release-body .file-stats { margin-top: 18px; }
.stats-filters { flex-basis: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #b4a477; background: #e8dab5; }
.stats-filters summary { cursor: pointer; font-size: 12px; font-weight: bold; color: #354f42; }
.stats-filters p { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 12px 0; }
.stats-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.stat-range { min-width: 0; margin: 0; padding: 0; border: 0; }
.stat-range legend { float: none; width: auto; padding: 0; margin: 0 0 5px; background: transparent; font: bold 11px Tahoma, sans-serif; }
.stat-range legend span { font-weight: normal; }
.stat-range > div { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.stat-range input { width: 0; min-width: 0; flex: 1; height: 30px; background: #fff8df; }
@media (max-width: 1199px) { .stats-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .stats-filter-grid { grid-template-columns: minmax(0, 1fr); } .stats-table th, .stats-table td { padding: 9px 8px; } }
