/* Bootstrap handles the layout and controls; these are the game's colors. */
:root, [data-bs-theme="dark"] {
  --bs-body-bg: #191817;
  --bs-body-color: #d3d0ca;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.7;
  --bs-heading-color: #f0ece3;
  --bs-link-color: #ddd4be;
  --bs-link-hover-color: #fff4d4;
  --bs-link-color-rgb: 221, 212, 190;
  --bs-link-hover-color-rgb: 255, 244, 212;
  --bs-border-color: #3c3934;
}
body { margin: 0; }
body.viewer-open { overflow: hidden; }
.image-viewer {
  margin: auto; padding: 12px; border: 1px solid #645740; border-radius: 6px;
  width: min(1200px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px); color: #f0ece3; background: #191817;
}
.image-viewer[open] { display: flex; flex-direction: column; gap: 12px; }
.image-viewer::backdrop { background: rgb(0 0 0 / 70%); }
.image-viewer > img {
  display: block; width: 100%; height: auto; min-height: 0;
  max-height: calc(100dvh - 180px); object-fit: contain;
}
.viewer-toolbar, .viewer-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-toolbar { font-size: .85rem; }
.viewer-navigation { font-size: .8rem; }
.viewer-button {
  flex-shrink: 0; min-height: 44px; padding: 6px 12px;
  border: 1px solid #645740; border-radius: 4px; color: #f0ece3; background: #29251f;
}
.viewer-button:hover { background: #423829; border-color: #c9ab72; }
.viewer-button:active { background: #6c5733; border-color: #f0d9a3; }
a { text-underline-offset: .2em; }
.container { max-width: 1140px; padding-inline: 24px; }
.site-header { border-bottom: 1px solid var(--bs-border-color); background: #141312; }
.site-header nav { min-height: 72px; padding-block: 16px; font-size: .9rem; }
.site-header a { text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.studio-name { color: #f0ece3; font-weight: 650; font-size: 1rem; }
.page-heading { padding-block: 36px 25px; }
h1 { margin-bottom: 6px; font-size: clamp(2rem, 4vw, 2.65rem); font-weight: 650; letter-spacing: -.035em; }
.page-heading p { margin: 0; color: #bcb6ab; font-size: 1.05rem; }
.game-gallery > a { display: block; border: 1px solid #4a4134; border-radius: 4px; overflow: hidden; }
.game-gallery > a:hover { border-color: #c9ab72; }
.game-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0b0a09; }
.game-gallery figcaption { font-size: .8rem; color: #b5aea1; padding-block: 10px; }
#image-count { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.screenshot-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.screenshot-thumbnails button { padding: 2px; background: #211f1c; border: 2px solid transparent; border-radius: 4px; overflow: hidden; transition: border-color .12s, background-color .12s; }
.screenshot-thumbnails img { width: 100%; height: auto; display: block; }
.screenshot-thumbnails button:hover { border-color: #9d8a68; background: #423829; }
.screenshot-thumbnails button:active { border-color: #f0d9a3; background: #6c5733; }
.screenshot-thumbnails button[aria-pressed="true"] { border-color: #d7b775; }
.gallery-hint { color: #aaa397; font-size: .75rem; margin: 10px 0 0; }
.game-art { width: 100%; border-radius: 3px; margin-bottom: 17px; }
.game-sidebar > p { font-size: .9rem; line-height: 1.7; margin-bottom: 19px; }
.btn { padding: .65rem 1rem; font-size: .95rem; border-radius: 4px; font-weight: 600; }
.btn-steam {
  --bs-btn-color: #211a0f; --bs-btn-bg: #d5b77b; --bs-btn-border-color: #d5b77b;
  --bs-btn-hover-color: #19140b; --bs-btn-hover-bg: #e6cd9a; --bs-btn-hover-border-color: #e6cd9a;
  --bs-btn-active-color: #19140b; --bs-btn-active-bg: #b99859; --bs-btn-active-border-color: #b99859;
  --bs-btn-focus-shadow-rgb: 213,183,123;
}
.btn-steam span { padding-left: 9px; }
.game-sidebar .store-note { text-align: center; color: #aaa397; font-size: .73rem; margin: 7px 0 19px; }
.game-details { font-size: .78rem; margin: 0; }
.game-details > div { display: grid; grid-template-columns: 92px 1fr; gap: 6px; margin-block: 4px; }
.game-details dt { color: #aaa397; font-weight: 400; }
.game-details dd { margin: 0; color: #d9d3c7; }
.information-row { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--bs-border-color); }
h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 17px; letter-spacing: -.02em; }
.about-game p, .feature-list, .community p { font-size: .95rem; }
.about-game { padding-right: 40px; }
.feature-list { padding-left: 20px; margin-bottom: 0; }
.feature-list li { padding-left: 4px; margin-bottom: 6px; }
.community .btn { font-size: .85rem; }
.community .feedback-note { color: #aaa397; font-size: .8rem; margin: 18px 0 0; }
.site-footer { border-top: 1px solid var(--bs-border-color); margin-top: 54px; padding-block: 24px; color: #aaa397; font-size: .78rem; }
.site-footer a { color: inherit; }
:focus-visible { outline: 3px solid #eed297; outline-offset: 4px; }
.skip-link:focus { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; background: #f0e5ce; color: #191817; }
@media (max-width: 991.98px) {
  .game-sidebar { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
  .game-art { grid-column: 1; grid-row: 1 / 5; margin: 0; }
  .game-sidebar > p, .game-sidebar > a, .game-sidebar > dl { grid-column: 2; }
  .game-sidebar .game-details { margin-top: 4px; }
  .about-game { padding-right: 12px; }
  .information-row { margin-top: 30px; padding-top: 20px; }
  .community { margin-top: 32px; }
}
@media (max-width: 575.98px) {
  .container { padding-inline: 18px; }
  .site-header nav { min-height: 66px; font-size: .8rem; }
  .site-header .gap-4 { gap: 1rem !important; }
  .page-heading { padding-block: 28px 21px; }
  .page-heading p { font-size: .95rem; }
  .screenshot-thumbnails { gap: 5px; }
  .game-gallery figcaption { font-size: .73rem; }
  .game-sidebar { display: block; }
  .game-art { display: none; }
  .game-sidebar > p { font-size: .95rem; margin-bottom: 16px; }
  .game-details { margin-top: 14px; }
  .game-details > div { grid-template-columns: 100px 1fr; }
  .information-row { margin-top: 28px; }
  .site-footer { margin-top: 36px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
