@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  color-scheme: dark;
  --bg: #101112;
  --card: #191b1d;
  --fg: #f4f4f4;
  --muted: #93969d;
  --line: #2b2e31;
  --hover: #23262a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    14px Manrope,
    system-ui,
    sans-serif;
}
body.light {
  color-scheme: light;
  --bg: #f8f9fa;
  --card: #fff;
  --fg: #1b1d20;
  --muted: #6d7279;
  --line: #e0e3e6;
  --hover: #f0f1f3;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
}
button:hover {
  background: var(--hover);
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 20px;
}
header > div {
  display: flex;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  letter-spacing: -1px;
}
.brand span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 6px;
}
.primary {
  background: var(--fg);
  color: var(--bg);
  font-weight: 800;
}
.primary:hover {
  opacity: 0.8;
  background: var(--fg);
}
.hero {
  max-width: 800px;
  margin: 65px auto 44px;
  text-align: center;
  padding: 0 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--muted);
}
h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: -3px;
  margin: 22px 0;
}
h1 span {
  color: var(--muted);
}
.hero p {
  color: var(--muted);
  line-height: 1.7;
}
.search {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 15px 20px;
  border-radius: 12px;
  margin: 30px auto 16px;
  max-width: 640px;
  text-align: left;
}
.search span {
  font-size: 26px;
}
.search input {
  background: none;
  border: 0;
  outline: 0;
  color: var(--fg);
  width: 100%;
}
kbd {
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--muted);
}
.filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.filters button {
  border: 0;
  padding: 7px 13px;
  background: none;
  color: var(--muted);
}
.filters .active {
  color: var(--fg);
  background: var(--hover);
}
#total {
  font-size: 11px;
  color: var(--muted);
  margin-left: 12px;
}
.layout {
  max-width: 1440px;
  margin: auto;
  padding: 0 5% 60px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 40px;
}
aside {
  position: sticky;
  top: 25px;
  height: fit-content;
  padding-top: 25px;
}
nav {
  margin-top: 15px;
  display: grid;
  gap: 5px;
}
nav button {
  text-align: left;
  border: 0;
  background: none;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 11px 10px;
}
nav button.selected {
  background: var(--hover);
  color: var(--fg);
}
.note {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding: 24px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.note b {
  color: var(--fg);
}
section {
  margin-top: 24px;
  margin-bottom: 38px;
}
section h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0;
}
section h2 small {
  font-size: 11px;
  color: var(--muted);
  background: var(--hover);
  padding: 3px 7px;
  border-radius: 5px;
  vertical-align: middle;
  margin-left: 8px;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.sectionhead > span {
  color: var(--muted);
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--muted);
}
.card > a {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  min-height: 161px;
  padding: 25px 12px 12px;
  gap: 8px;
}
.card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 7px;
}
.card strong {
  font-size: 13px;
  margin-top: 7px;
}
.domain {
  color: var(--muted);
  font-size: 10px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cardbar {
  border-top: 1px solid var(--line);
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.flag {
  color: #ef6262;
  background: none;
  border: 0;
  padding: 3px 6px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.flag svg {
  width: 14px;
  height: 14px;
}
.mod {
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mod button {
  font-size: 10px;
  padding: 5px;
}
.empty {
  color: var(--muted);
  padding: 45px 0;
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px 5%;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
dialog {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  width: min(480px, 92vw);
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.dialoghead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.dialoghead h2 {
  margin: 0;
}
label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  font-size: 12px;
  color: var(--muted);
}
label input,
label select {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  width: 100%;
}
#formerror {
  color: #ef6262;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--bg);
  padding: 13px 22px;
  border-radius: 10px;
  display: none;
  z-index: 10;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  aside {
    position: static;
    padding: 0;
  }
  aside > .eyebrow,
  .note {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    padding-bottom: 10px;
  }
  nav button {
    white-space: nowrap;
    gap: 10px;
  }
  .sectionhead > span {
    display: none;
  }
  .hero {
    margin-top: 40px;
  }
  header {
    height: 68px;
    padding: 0 4%;
  }
  .brand {
    font-size: 20px;
  }
  .brand span {
    display: none;
  }
  header button {
    font-size: 11px;
    padding: 8px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    flex-wrap: wrap;
  }
  footer span {
    max-width: 180px;
    text-align: right;
  }
}
/* Refined neutral surfaces and grouped game destinations */
body {
  background-image: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.035), transparent 55%);
}
header {
  background: var(--bg);
}
.brand > b {
  font-weight: 800;
}
.brand {
  letter-spacing: -1.3px;
}
.brand > span {
  letter-spacing: 1.3px;
}
.hero {
  position: relative;
  margin-bottom: 60px;
}
.hero > .eyebrow {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 14px;
  letter-spacing: 1.7px;
}
h1 {
  font-weight: 800;
  letter-spacing: -3.5px;
}
.search {
  box-shadow: 0 10px 40px #00000012;
  border-radius: 14px;
  transition: border-color 0.2s;
}
.search:focus-within {
  border-color: var(--muted);
}
.filters {
  margin-top: 20px;
}
.sectionhead {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
section {
  margin-bottom: 42px;
}
section h2 {
  font-size: 19px;
}
.card {
  border-radius: 14px;
  background: linear-gradient(145deg, var(--card), var(--bg));
  box-shadow: 0 3px 8px #00000008;
}
.card > a {
  min-height: 158px;
}
.card img {
  width: 40px;
  height: 40px;
  margin: 4px 0;
}
.cardbar {
  padding: 9px 12px;
}
.cardbar > span {
  font-weight: 700;
  letter-spacing: 1px;
}
.flag {
  border-radius: 5px;
  min-width: 34px;
  justify-content: center;
}
.flag:hover {
  background: #ef626215;
}
.flag span {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.language-switch {
  font-size: 12px;
  font-weight: 700;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.game-group {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  overflow: hidden;
  align-self: start;
}
.game-title {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--hover), var(--card));
  border-bottom: 1px solid var(--line);
}
.game-title h3 {
  font-size: 15px;
  margin: 0 0 5px;
  letter-spacing: -0.3px;
}
.game-title small {
  font-size: 10px;
  color: var(--muted);
}
.game-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.game-tag {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 6px;
}
.game-link:not(:last-child) {
  border-bottom: 1px solid var(--line);
}
.game-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
}
.link-number {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.game-link-row > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  padding: 4px 0;
}
.game-link-row > a > span:not(.outbound) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-link-row a small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.game-link-row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}
.outbound {
  margin-left: auto;
  color: var(--muted);
}
.game-link-row:hover {
  background: var(--hover);
}
.category-empty {
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 24px;
  color: var(--muted);
}
.category-empty > span {
  font-size: 26px;
}
.category-empty b {
  font-size: 13px;
  color: var(--fg);
}
.category-empty p {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 0;
}
.category-empty button {
  margin-left: auto;
  white-space: nowrap;
}
.web-section {
  margin-top: 50px;
}
.note {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 30px;
}
nav button {
  border-radius: 9px;
}
nav button.selected {
  box-shadow: inset 3px 0 var(--fg);
}
.light .card {
  box-shadow: 0 4px 14px #14202a06;
}
.light .hero h1 span {
  color: #858a91;
}
@media (max-width: 1050px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  .brand span {
    display: none;
  }
}
@media (max-width: 800px) {
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 4%;
    gap: 14px;
  }
  header > div {
    gap: 6px;
  }
  .hero {
    margin-bottom: 32px;
  }
  h1 {
    letter-spacing: -2px;
  }
  .category-empty {
    flex-wrap: wrap;
  }
  .category-empty button {
    margin-left: 0;
  }
  .game-title {
    padding: 16px;
  }
  .game-link-row {
    padding: 12px;
  }
  .sectionhead {
    margin-bottom: 14px;
  }
  .layout {
    padding-left: 4%;
    padding-right: 4%;
  }
  nav button.selected {
    box-shadow: inset 0 -2px var(--fg);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .card:hover {
    transform: none;
  }
}
.nsfw-button {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding-top: 20px;
}
.nsfw-label {
  filter: blur(4px);
  transition: filter 0.18s ease;
  user-select: none;
  letter-spacing: 1px;
  font-weight: 800;
}
.nsfw-button:hover .nsfw-label,
.nsfw-button:focus-visible .nsfw-label,
.nsfw-button.armed .nsfw-label {
  filter: none;
}
.nsfw-button.armed .nsfw-label {
  letter-spacing: 0;
}
.nsfw-age {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 4px;
}
.brand {
  font-size: 23px;
  letter-spacing: -0.8px;
}
@media (max-width: 800px) {
  .brand {
    font-size: 19px;
  }
  .nsfw-button {
    margin-top: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-top: 11px;
  }
  .nsfw-button.armed .nsfw-label {
    filter: none;
  }
}

[hidden] {
  display: none !important;
}
.comment-button {
  border: 0;
  background: none;
  padding: 3px 5px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.comment-button:hover {
  color: var(--fg);
}
.cardbar {
  gap: 5px;
}
.cardbar > span {
  margin-right: auto;
}
.game-link-row {
  gap: 7px;
}
.game-link-row .flag {
  flex-shrink: 0;
}
#comments-dialog {
  width: min(650px, 94vw);
  max-height: 85vh;
}
#comments-title {
  font-size: 18px;
}
#comments-address {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.comment {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.comment > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.comment time {
  color: var(--muted);
  font-size: 10px;
  margin-left: auto;
}
.comment > div button {
  font-size: 10px;
  padding: 5px 8px;
}
.comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 13px;
  margin: 12px 0 0;
}
textarea {
  resize: vertical;
  min-height: 100px;
  width: 100%;
  font: inherit;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--fg);
}
#comment-error {
  color: #ef6262;
}
#comment-form {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
header > div {
  flex-wrap: wrap;
  justify-content: flex-end;
}
header {
  height: auto;
  min-height: 80px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.comment-button:focus-visible {
  outline: 2px solid var(--muted);
}

.private-notice {
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  margin-top: 24px;
}
.private-notice p {
  color: var(--muted);
  line-height: 1.8;
  margin: 16px 0 24px;
}

.vote-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.vote-button.voted {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.vote-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.cardbar {
  flex-wrap: wrap;
}
.game-link-row {
  flex-wrap: wrap;
}
.game-link-row > a {
  min-width: 100px;
}
.game-link-row .comment-button,
.game-link-row .vote-button,
.game-link-row .flag {
  flex-shrink: 0;
}

.filters {
  flex-wrap: wrap;
}
.sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin: 0 0 0 12px;
}
.sort-label select {
  padding: 7px 10px;
  width: auto;
  font-size: 11px;
  border-radius: 7px;
}
.click-count {
  font-size: 10px;
  color: var(--muted);
  display: inline-flex;
  gap: 3px;
  align-items: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.card.is-pinned {
  border-color: var(--muted);
}
.pin-badge {
  position: absolute;
  top: 9px;
  left: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.cardbar > span:first-child {
  margin-right: auto;
}
.cardbar {
  gap: 7px;
}
.game-link-row {
  gap: 7px;
}
.game-group:has([data-pin-order]) .game-title {
  border-left: 2px solid var(--muted);
}

nav button.nsfw-button {
  margin-top: 0;
  border: 0;
  border-radius: 9px;
  padding: 11px 10px;
}
nav button.nsfw-button .nsfw-age {
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
}
nav button.nsfw-button.armed .nsfw-label {
  filter: none;
}
.game-symbol {
  flex-shrink: 0;
  overflow: hidden;
}
.game-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.game-art-edit {
  margin-left: auto;
  padding: 5px 8px;
  font-size: 13px;
}
.game-art-edit + .game-tag {
  margin-left: 0;
}
.game-title > div {
  min-width: 0;
}
.game-title h3 {
  overflow-wrap: anywhere;
}

/* Pinned entries: monochrome glossy border in either theme. */
:root {
  --pin-rgb: 255, 255, 255;
}
body.light {
  --pin-rgb: 0, 0, 0;
}
.card.is-pinned,
.game-link.is-pinned {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(var(--pin-rgb), 0.78);
  box-shadow:
    0 0 0 1px rgba(var(--pin-rgb), 0.08),
    0 0 17px rgba(var(--pin-rgb), 0.11),
    inset 0 0 15px rgba(var(--pin-rgb), 0.035);
}
.card.is-pinned::after,
.game-link.is-pinned::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    115deg,
    rgba(var(--pin-rgb), 0.14) 20%,
    rgba(var(--pin-rgb), 0.35) 35%,
    rgba(var(--pin-rgb), 1) 48%,
    rgba(var(--pin-rgb), 0.35) 61%,
    rgba(var(--pin-rgb), 0.14) 80%
  );
  background-size: 250% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pinned-sheen 5s ease-in-out infinite;
}
@keyframes pinned-sheen {
  0%,
  100% {
    background-position: 130% 0;
  }
  50% {
    background-position: -30% 0;
  }
}
.card.is-pinned:hover {
  border-color: rgba(var(--pin-rgb), 1);
}
.pin-badge {
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
}
.pin-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.game-link.is-pinned {
  margin: 8px;
  border-radius: 10px;
  background: rgba(var(--pin-rgb), 0.035);
  overflow: hidden;
}
.game-link.is-pinned .link-number {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg);
  font-weight: 800;
}
.game-link.is-pinned .game-link-row:hover {
  background: rgba(var(--pin-rgb), 0.04);
}
.game-group:has([data-pin-order]) .game-title {
  border-left: 0;
}
.light .card.is-pinned {
  border-color: rgba(var(--pin-rgb), 0.8);
  box-shadow:
    0 0 0 1px rgba(var(--pin-rgb), 0.06),
    0 3px 16px rgba(var(--pin-rgb), 0.13);
}
@media (prefers-reduced-motion: reduce) {
  .card.is-pinned::after,
  .game-link.is-pinned::after {
    animation: none;
    background-position: 50% 0;
  }
}

.site-name,
.game-link-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
}
.game-link-name {
  justify-content: flex-start;
}
.card img.verified-icon,
.game-link-row img.verified-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  object-fit: contain;
  border-radius: 0;
  vertical-align: middle;
  flex-shrink: 0;
}
.game-link-name {
  white-space: normal;
  overflow-wrap: anywhere;
}
.game-link-row a > span:not(.outbound) {
  white-space: normal;
}
.site-name .verified-icon {
  align-self: center;
}

.game-title {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 88px;
}
.game-title > img.game-banner {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  object-fit: cover;
  object-position: center;
  filter: blur(3px);
  opacity: 0.42;
  z-index: -2;
  pointer-events: none;
}
.game-title:has(.game-banner)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 17, 18, 0.87), rgba(16, 17, 18, 0.57));
  z-index: -1;
  pointer-events: none;
}
.game-title:has(.game-banner) {
  color: #f4f4f4;
}
.game-title:has(.game-banner) small {
  color: #d0d2d5;
}
.game-title:has(.game-banner) .game-tag {
  color: #d0d2d5;
  border-color: #ffffff40;
  background: #10111266;
}
.game-title:has(.game-banner) button {
  color: #f4f4f4;
  background: #101112a6;
  border-color: #ffffff40;
}
.game-banner-edit {
  margin-left: auto;
  padding: 5px 8px;
  font-size: 13px;
  flex-shrink: 0;
}
.game-banner-edit + .game-art-edit {
  margin-left: 0;
}
.light .game-title > img.game-banner {
  opacity: 0.75;
}
.light .game-title:has(.game-banner)::before {
  background: linear-gradient(90deg, rgba(16, 17, 18, 0.79), rgba(16, 17, 18, 0.45));
}

.game-rename {
  margin-left: auto;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.game-rename + .game-banner-edit {
  margin-left: 0;
}

nav button.pending-nav {
  margin-top: 14px;
  border: 1px solid var(--line);
}
.approval-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.approval-list {
  display: grid;
  gap: 14px;
}
.approval-item {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
}
.approval-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.approval-meta > span {
  background: var(--hover);
  border-radius: 5px;
  padding: 4px 7px;
}
.approval-meta time {
  margin-left: auto;
}
.approval-info h3 {
  font-size: 17px;
  margin: 14px 0 8px;
}
.approval-info a {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.approval-info a:hover {
  text-decoration: underline;
  color: var(--fg);
}
.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 18px;
}
.approval-actions button {
  font-size: 11px;
  padding: 8px 12px;
}
.approval-art-url {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.approval-empty {
  text-align: center;
  padding: 55px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.approval-empty > span {
  font-size: 32px;
}
.approval-empty h3 {
  color: var(--fg);
  font-size: 17px;
}
.approval-panel .sectionhead {
  gap: 15px;
  flex-wrap: wrap;
}
.approval-panel .sectionhead > button {
  font-size: 11px;
}

nav button.soon-category {
  position: relative;
  cursor: not-allowed;
  color: var(--muted);
  min-height: 40px;
}
.soon-category-name {
  filter: blur(3px);
  opacity: 0.6;
  transition: opacity 0.15s;
}
.soon-category-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 800;
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
nav button.soon-category:hover .soon-category-hint,
nav button.soon-category:focus-visible .soon-category-hint {
  opacity: 1;
}
nav button.soon-category:hover .soon-category-name,
nav button.soon-category:focus-visible .soon-category-name {
  opacity: 0.15;
}
@media (hover: none) {
  .soon-category-hint {
    opacity: 1;
  }
  .soon-category-name {
    opacity: 0.2;
  }
}

.game-order-edit {
  margin-left: auto;
  padding: 5px 8px;
  font-size: 10px;
  flex-shrink: 0;
}
.game-order-edit + .game-rename {
  margin-left: 0;
}
.game-title {
  flex-wrap: wrap;
}

.comment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.comment-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

.unavailable-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 0 10px;
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  position: relative;
}
.unavailable-toggle input {
  position: absolute;
  opacity: 0;
  width: 34px;
  height: 20px;
  left: 0;
  cursor: pointer;
}
.toggle-track {
  width: 32px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--hover);
  position: relative;
  flex-shrink: 0;
}
.toggle-track::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.16s;
}
.unavailable-toggle input:checked + .toggle-track {
  background: var(--fg);
  border-color: var(--fg);
}
.unavailable-toggle input:checked + .toggle-track::after {
  background: var(--bg);
  transform: translateX(14px);
}
.unavailable-toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--muted);
  outline-offset: 3px;
}
.card.is-disabled .site-name,
.game-link.is-disabled .game-link-name {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--muted);
}
.card.is-disabled > a > img,
.game-link.is-disabled .game-link-row > a > img {
  opacity: 0.45;
  filter: grayscale(1);
}
a[aria-disabled="true"] {
  cursor: not-allowed;
}
.game-link.is-disabled .outbound {
  visibility: hidden;
}
.is-disabled .verified-icon {
  opacity: 0.5;
}

.eye-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}
.click-count {
  gap: 4px;
}
.visit-stats {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.visit-stats h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  margin: 0 0 15px;
  letter-spacing: 0;
}
.visit-stats dl {
  margin: 0;
}
.visit-stats dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 11px 0;
}
.visit-stats dt {
  font-size: 11px;
  color: var(--muted);
}
.visit-stats dd {
  font-size: 12px;
  font-weight: 800;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.visit-stats small {
  font-size: 9px;
  color: var(--muted);
}
#visits-error {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 800px) {
  .visit-stats {
    margin-bottom: 20px;
  }
  .visit-stats dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
  .visit-stats dl > div {
    margin: 7px 0;
  }
}

.game-drag-handle {
  margin-left: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  font-size: 19px;
  letter-spacing: -5px;
  padding: 5px 12px 5px 7px;
  line-height: 1.1;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.game-drag-handle:hover {
  color: var(--fg);
}
.game-drag-handle:active {
  cursor: grabbing;
}
.game-drag-handle + .game-rename {
  margin-left: 0;
}
.game-drag-help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.game-group.drag-source {
  opacity: 0.28;
  outline: 2px dashed var(--muted);
  outline-offset: 3px;
}
.game-drag-ghost {
  position: fixed !important;
  z-index: 9999;
  pointer-events: none !important;
  opacity: 0.92;
  max-height: 130px;
  overflow: hidden;
  box-shadow: 0 18px 55px #0008;
  transform: rotate(1.5deg);
  border-color: var(--fg);
}
.game-drag-ghost .game-links {
  display: none;
}
.dragging-games,
.dragging-games * {
  cursor: grabbing !important;
  user-select: none !important;
}
.saving-order {
  pointer-events: none;
  opacity: 0.7;
}

/* Keep the entire navigation and visit panel reachable on short screens. */
@media (min-width: 801px) {
  aside {
    max-height: calc(100dvh - 50px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-bottom: 24px;
    overscroll-behavior: contain;
  }
}

.site-drag-handle {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  user-select: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--fg);
  font-size: 19px;
  letter-spacing: -5px;
  padding: 5px 12px 5px 7px;
  line-height: 1.1;
}
.site-drag-handle:hover {
  border-color: var(--fg);
}
.card.drag-source {
  opacity: 0.28;
  outline: 2px dashed var(--muted);
  outline-offset: 3px;
}
.card.game-drag-ghost {
  max-height: 230px;
}
.card.game-drag-ghost .mod {
  display: none;
}
.site-drag-handle:active {
  cursor: grabbing;
}

.paid-switch {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}
.paid-switch > span:last-child {
  margin-right: auto;
  font-weight: 600;
}
.paid-switch + .note {
  margin-top: 16px;
}
.web-section {
  margin-top: 0;
}
@media (max-width: 800px) {
  .paid-switch {
    margin: 12px 0 18px;
    max-width: 230px;
  }
}

.language-options {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.language-options legend {
  font-size: 12px;
  padding: 0 5px;
}
.language-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.language-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--fg);
}
.language-options label:has(input:checked) {
  border-color: var(--fg);
  background: var(--hover);
}

aside > .eyebrow + .paid-switch {
  margin: 12px 0 18px;
}
@media (max-width: 800px) {
  aside > .paid-switch {
    margin: 0 0 14px;
  }
}

.cheap-platforms {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.cheap-platforms > h3,
.paid-platforms-title {
  font-size: 14px;
  margin: 0 0 16px;
  color: var(--fg);
}

#nav button[data-cat] {
  position: relative;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}
#nav button.scroll-active {
  background: var(--hover);
  color: var(--fg);
  box-shadow: inset 3px 0 var(--fg);
}
#nav button.scroll-active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 28%;
  height: 44%;
  width: 3px;
  border-radius: 4px;
  background: var(--fg);
  animation: section-marker-in 0.25s ease-out;
}
@keyframes section-marker-in {
  from {
    opacity: 0;
    transform: scaleY(0.3);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}
@media (max-width: 800px) {
  #nav button.scroll-active {
    box-shadow: inset 0 -2px var(--fg);
  }
  #nav button.scroll-active::after {
    left: 25%;
    top: auto;
    bottom: 0;
    width: 50%;
    height: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #nav button[data-cat] {
    transition: none;
  }
  #nav button.scroll-active::after {
    animation: none;
  }
}

/* Wider desktop canvas and responsive controls. */
.layout {
  max-width: 1740px;
  padding-left: 32px;
  padding-right: 32px;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
}
.hero {
  max-width: 1060px;
}
.search {
  max-width: 760px;
}
.filters {
  flex-wrap: wrap;
}
main,
aside,
.grid,
.games-grid,
.game-group {
  min-width: 0;
}
.grid {
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
}
.language-switch {
  padding: 10px 12px;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 9px;
  max-width: 180px;
}
.game-title {
  flex-wrap: wrap;
}
.game-title > div:not(.game-symbol) {
  flex: 1 1 130px;
}
.game-title button {
  flex-shrink: 0;
}
.cardbar {
  flex-wrap: wrap;
  row-gap: 9px;
}
.click-count,
.comment-button,
.vote-button {
  white-space: nowrap;
}
.site-name {
  overflow-wrap: anywhere;
}
.mod button {
  min-height: 32px;
}
.sectionhead {
  gap: 12px;
  flex-wrap: wrap;
}
dialog {
  max-height: 90dvh;
  overflow-y: auto;
}
#toast {
  max-width: calc(100vw - 32px);
  width: max-content;
  text-align: center;
}
@media (min-width: 1500px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .layout {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  header {
    padding: 16px;
    gap: 14px;
    align-items: flex-start;
  }
  .brand {
    font-size: 22px;
  }
  header > div {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  header button,
  .language-switch {
    min-height: 42px;
    font-size: 12px;
  }
  #add {
    margin-left: auto;
  }
  .hero {
    margin-top: 30px;
    padding: 0 16px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: clamp(36px, 8vw, 54px);
  }
  .hero p {
    font-size: 13px;
  }
  .search {
    margin-top: 24px;
    padding: 12px 14px;
  }
  .search input {
    min-width: 0;
    font-size: 16px;
  }
  .search kbd {
    display: none;
  }
  .filters {
    justify-content: flex-start;
    gap: 8px;
  }
  .filters button {
    min-height: 40px;
    padding: 8px 12px;
  }
  #total {
    margin-left: 0;
  }
  .sort-label {
    margin: 4px 0 0 auto;
    max-width: 100%;
  }
  #sort {
    max-width: 100%;
    min-height: 42px;
  }
  .unavailable-toggle {
    margin-left: 0;
    min-height: 40px;
  }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0 16px 36px;
    gap: 0;
  }
  aside {
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  aside > .eyebrow {
    display: block;
    margin: 12px 0 8px;
  }
  aside > .eyebrow + .paid-switch {
    margin: 8px 0 12px;
    max-width: 230px;
  }
  #nav {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 4px 0 12px;
    margin-top: 0;
    scrollbar-width: thin;
  }
  #nav button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 12px;
  }
  .note {
    display: block;
    margin-top: 14px;
    padding: 14px;
  }
  .visit-stats {
    margin-top: 12px;
    padding: 14px;
  }
  .visit-stats dl {
    gap: 0 24px;
  }
  .visit-stats small {
    display: block;
    margin-top: 8px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .games-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .game-title {
    padding: 16px;
    gap: 10px;
  }
  .game-title h3 {
    font-size: 15px;
  }
  .game-title button {
    min-width: 36px;
    min-height: 36px;
  }
  .game-title .game-tag {
    margin-left: 0;
  }
  .game-link-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 12px;
  }
  .game-link-row > a {
    flex: 1 1 calc(100% - 40px);
    min-height: 40px;
  }
  .game-link-row .flag,
  .game-link-row .comment-button,
  .game-link-row .vote-button {
    min-height: 38px;
    padding: 8px;
  }
  .cardbar .flag,
  .cardbar .comment-button,
  .cardbar .vote-button {
    min-height: 34px;
  }
  .card > a {
    padding-top: 38px;
    min-height: 166px;
  }
  .mod {
    gap: 6px;
  }
  .mod button {
    min-height: 38px;
    padding: 8px;
    font-size: 11px;
  }
  .game-drag-help {
    line-height: 1.7;
  }
  .category-empty {
    padding: 18px;
  }
  .category-empty button {
    min-height: 44px;
    white-space: normal;
  }
  .approval-item {
    padding: 16px;
  }
  .approval-actions button {
    min-height: 42px;
  }
  .dialoghead h2 {
    font-size: 20px;
  }
  dialog {
    padding: 18px;
    width: calc(100vw - 24px);
    max-height: 88dvh;
  }
  label input,
  label select,
  textarea {
    font-size: 16px;
  }
  footer {
    padding: 22px 16px;
    gap: 16px;
    flex-wrap: wrap;
  }
  footer span {
    max-width: none;
    text-align: left;
  }
  .paid-switch {
    font-size: 12px;
  }
  #toast {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 420px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand {
    font-size: 21px;
  }
  header > div {
    gap: 6px;
  }
  header button,
  .language-switch {
    padding: 9px 10px;
  }
  .sort-label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #sort {
    flex: 1;
    max-width: 230px;
  }
  .hero > .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .visit-stats dl {
    column-gap: 16px;
  }
}

/* Reversible, subtle motion; content is visible even without JavaScript. */
.hero h1 {
  animation: headline-enter 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 > span {
  display: inline-block;
  animation: headline-second 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}
.hero > .eyebrow {
  animation: headline-enter 0.65s ease both;
}
.hero > .search {
  animation: headline-enter 0.8s ease 0.18s both;
}
header,
.hero {
  opacity: var(--top-opacity, 1);
}
.motion-ready {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.4s ease,
    translate 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.2s;
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready.motion-visible {
  opacity: var(--edge-opacity, 1);
  translate: 0 0;
}
.drag-source.motion-ready {
  opacity: 0.28 !important;
  translate: none;
}
.game-drag-ghost.motion-ready {
  opacity: 0.92 !important;
  translate: none;
}
.card:hover .site-name {
  transition: color 0.2s;
}
.card > a > img {
  transition: scale 0.3s ease;
}
.card:hover > a > img {
  scale: 1.09;
}
#nav button:hover {
  translate: 3px 0;
}
#nav button {
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s,
    translate 0.25s;
}
.category-adult-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.nsfw-button {
  gap: 8px;
}
.nsfw-button .nsfw-label {
  margin-right: auto;
}
.sectionhead {
  scroll-margin-top: 88px;
}
@keyframes headline-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes headline-second {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 800px) {
  #nav button:hover {
    translate: none;
  }
  .sectionhead {
    scroll-margin-top: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero h1 > span,
  .hero > .eyebrow,
  .hero > .search {
    animation: none;
  }
  .motion-ready,
  .motion-ready.motion-visible {
    opacity: 1 !important;
    translate: none;
    transition: none;
  }
  header,
  .hero {
    opacity: 1 !important;
  }
  #nav button,
  .card > a > img {
    transition: none;
  }
}
main {
  min-height: calc(100svh - 88px);
}
@media (max-width: 800px) {
  main {
    min-height: calc(100svh - 24px);
  }
}

/* Larger cover icon in game headers. */
.game-title .game-symbol {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 14px;
  font-size: 34px;
  box-shadow: 0 5px 18px #0003;
}
.game-title .game-art {
  border-radius: 13px;
}
.game-title {
  min-height: 108px;
  gap: 16px;
}
@media (max-width: 800px) {
  .game-title .game-symbol {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 12px;
    font-size: 30px;
  }
  .game-title .game-art {
    border-radius: 11px;
  }
  .game-title {
    gap: 12px;
    min-height: 94px;
  }
}

/* Keep the sidebar scrollbar vertical and focus styling on the search container. */
.layout {
  width: 100%;
}
.search {
  min-width: 0;
}
.search input,
.search input:focus,
.search input:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
  min-width: 0;
  border-radius: 0;
}
.search:focus-within {
  border-color: var(--muted);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--fg) 7%, transparent),
    0 10px 40px #00000012;
}
.search input {
  padding: 4px 0;
}
@media (min-width: 801px) {
  aside {
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding-right: 6px;
  }
  aside #nav {
    min-width: 0;
  }
  aside #nav button {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  aside #nav button:hover {
    translate: none;
  }
  .visit-stats {
    max-width: 100%;
  }
}
@media (max-width: 800px) {
  aside {
    overflow: visible;
    scrollbar-gutter: auto;
    padding-right: 0;
  }
  aside #nav {
    overflow-x: auto;
    overflow-y: hidden;
  }
}

/* Compact admin controls and clearer empty/access states. */
.grid {
  align-items: start;
}
.mod-menu {
  border-top: 1px solid var(--line);
  padding: 0 10px 10px;
}
.mod-menu > summary {
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  padding: 11px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}
.mod-menu > summary::-webkit-details-marker {
  display: none;
}
.mod-menu > summary::after {
  content: "⌄";
  font-size: 15px;
  transition: rotate 0.2s;
}
.mod-menu[open] > summary::after {
  rotate: 180deg;
}
.mod-menu[open] > summary {
  color: var(--fg);
}
.mod-menu .mod {
  padding: 3px 0 0;
  gap: 6px;
}
.mod-menu .mod button {
  flex: 1 1 auto;
  min-height: 34px;
}
.danger-action {
  color: #ef7777 !important;
  border-color: #ef777740 !important;
}
.game-link > .mod-menu {
  margin: 0 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-bottom: 0;
}
.game-link > .mod-menu[open] {
  padding-bottom: 10px;
}
.game-link > .mod-menu > summary {
  min-height: 36px;
  padding: 8px 3px;
}
.search-empty,
.private-notice {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--card);
}
.search-empty h3 {
  margin: 0 0 10px;
  color: var(--fg);
}
.search-empty p {
  margin-bottom: 20px;
  line-height: 1.7;
}
.ban-row {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
}
.ban-row > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.ban-row span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ban-row button {
  min-height: 40px;
}
.admin-row a {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.admin-comment-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.ban-row .admin-banned {
  color: #ef7777;
}
.ban-notice p b {
  color: var(--fg);
}
.mod-menu summary:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (max-width: 800px) {
  .mod-menu > summary {
    min-height: 44px;
  }
  .mod-menu .mod button {
    min-height: 42px;
  }
  .ban-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .search-empty,
  .private-notice {
    padding: 22px;
  }
  .ban-row button {
    min-height: 44px;
  }
}

.game-group.has-more-links:not(.links-expanded) > .game-links > .game-link:not(:first-child) {
  display: none;
}
.game-links-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  color: var(--muted);
  padding: 13px 16px;
  font-size: 12px;
  min-height: 44px;
}
.game-links-toggle:hover {
  color: var(--fg);
  background: var(--hover);
}
.game-links-chevron {
  flex: none;
  transition: transform 0.2s;
}
.links-expanded > .game-links-toggle > .game-links-chevron {
  transform: rotate(180deg);
}
.game-drag-ghost > .game-links-toggle {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .game-links-chevron {
    transition: none;
  }
}

/* Keep game cards in the same grid row equally tall. */
.games-grid > .game-group {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.games-grid > .game-group > .game-title {
  flex-shrink: 0;
}
.games-grid > .game-group > .game-links {
  flex: 1;
}
.games-grid > .game-group > .game-links-toggle {
  flex-shrink: 0;
}

/* Taller game banners, including compact screens. */
.game-group > .game-title {
  min-height: 144px;
  padding-top: 32px;
  padding-bottom: 32px;
}
@media (max-width: 600px) {
  .game-group > .game-title {
    min-height: 120px;
    padding-top: 26px;
    padding-bottom: 26px;
  }
}

#dmca {
  font-size: 11px;
  letter-spacing: 0.07em;
}
#dmca-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow-y: auto;
  box-sizing: border-box;
}
#dmca-dialog .dialoghead {
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
  padding-bottom: 12px;
}
#dmca-content {
  line-height: 1.75;
}
#dmca-content h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 12px 0 24px;
}
#dmca-content h4 {
  font-size: 15px;
  margin: 22px 0 10px;
}
#dmca-content p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.copyright-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.dmca-email {
  display: inline-block;
  color: var(--fg);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  text-underline-offset: 4px;
}
#dmca-content ol {
  padding-left: 22px;
  font-size: 13px;
  color: var(--muted);
}
#dmca-content li {
  padding-left: 4px;
  margin-bottom: 10px;
}

.hide-siteIcons .card > a > img:not(.verified-icon),
.hide-siteIcons .game-link-row > a > img:not(.verified-icon) {
  display: none;
}
.hide-gameIcons .game-title > .game-symbol {
  display: none;
}
.hide-gameBackgrounds .game-title > img.game-banner,
.hide-gameBackgrounds .game-title:has(.game-banner)::before {
  display: none;
}
.hide-gameBackgrounds .game-title:has(.game-banner) {
  color: var(--fg);
}
.hide-gameBackgrounds .game-title:has(.game-banner) small,
.hide-gameBackgrounds .game-title:has(.game-banner) .game-tag {
  color: var(--muted);
}
.hide-gameBackgrounds .game-title:has(.game-banner) button {
  color: var(--fg);
  background: var(--card);
  border-color: var(--line);
}
#appearance-dialog {
  width: min(380px, calc(100vw - 32px));
  box-sizing: border-box;
}
#appearance-options {
  display: grid;
  gap: 10px;
}
.appearance-option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.appearance-option > span:first-child {
  flex: 1;
}
.appearance-option .toggle-track {
  flex-shrink: 0;
}

/* Automatic seasonal accents; monochrome remains available in Appearance. */
body {
  --season-accent: #9299a4;
  isolation: isolate;
}
html:not(.hide-seasonal)[data-season="autumn"] body {
  --season-accent: #ed9b52;
  --bg: #15120f;
  --card: #201b17;
  --hover: #30251d;
  --line: #493326;
  --muted: #b6a697;
}
html:not(.hide-seasonal)[data-season="winter"] body {
  --season-accent: #88c7ed;
  --bg: #10151a;
  --card: #17212a;
  --hover: #22323f;
  --line: #2d4556;
  --muted: #9cacb9;
}
html:not(.hide-seasonal)[data-season="spring"] body {
  --season-accent: #9ccf91;
  --bg: #101610;
  --card: #182119;
  --hover: #253328;
  --line: #324b35;
  --muted: #a4b5a4;
}
html:not(.hide-seasonal)[data-season="summer"] body {
  --season-accent: #edc674;
  --bg: #17150f;
  --card: #232016;
  --hover: #343021;
  --line: #4b432c;
  --muted: #b7b09b;
}
html:not(.hide-seasonal)[data-season] body.light {
  --bg: #faf7f2;
  --card: #fffdf9;
  --hover: #f1eae0;
  --line: #d9c9b7;
  --muted: #706455;
  --season-accent: #a45d24;
}
html:not(.hide-seasonal)[data-season="winter"] body.light {
  --bg: #f2f7fb;
  --card: #fcfeff;
  --hover: #e4eff7;
  --line: #c2d6e5;
  --muted: #516a7b;
  --season-accent: #276e99;
}
html:not(.hide-seasonal)[data-season="spring"] body.light {
  --bg: #f3f8f1;
  --card: #fcfff9;
  --hover: #e7f0e1;
  --line: #c9dcc0;
  --muted: #5b6f52;
  --season-accent: #497c37;
}
html:not(.hide-seasonal)[data-season="summer"] body.light {
  --bg: #fff9ec;
  --card: #fffdf6;
  --hover: #f9edcf;
  --line: #e1d1a7;
  --muted: #796742;
  --season-accent: #9b701f;
}
html:not(.hide-seasonal) .hero .eyebrow,
html:not(.hide-seasonal) .hero h1 span {
  color: var(--season-accent);
}
html:not(.hide-seasonal) nav button.selected {
  box-shadow: inset 3px 0 var(--season-accent);
}
html:not(.hide-seasonal) .primary {
  background: var(--season-accent);
  color: var(--bg);
}
#season-web {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.hide-webBackground #season-web {
  display: none;
}

.game-year {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.game-meta-divider {
  margin: 0 7px;
  opacity: 0.6;
}
.game-year-edit svg {
  display: block;
}

.game-title .game-favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #101112a6;
  border-color: #ffffff40;
  padding: 8px;
  min-width: 36px;
  min-height: 36px;
}
.game-favorite svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition:
    transform 0.18s ease,
    fill 0.18s ease;
}
.game-favorite.is-favorite svg {
  fill: currentColor;
}
.game-favorite:hover svg {
  transform: scale(1.12);
}
body.light .game-title .game-favorite {
  color: #17191c;
  background: #ffffffd9;
  border-color: #0003;
}
@media (prefers-reduced-motion: reduce) {
  .game-favorite svg {
    transition: none;
  }
}

.game-trackers {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

/* Compact, collapsible mobile toolbar. */
#mobile-menu-toggle {
  display: none;
}
@media (max-width: 800px) {
  header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 12px;
    height: auto;
    min-height: 72px;
    padding: 12px 16px;
    background: var(--bg);
  }
  header .brand {
    font-size: 20px;
    letter-spacing: -0.6px;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  #mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
    background: var(--card);
    flex-shrink: 0;
  }
  #mobile-menu-toggle .menu-close-icon {
    display: none;
  }
  .mobile-menu-expanded #mobile-menu-toggle .menu-close-icon {
    display: block;
  }
  .mobile-menu-expanded #mobile-menu-toggle .menu-open-icon {
    display: none;
  }
  header > #header-actions {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    padding: 14px 0 2px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  header.mobile-menu-expanded > #header-actions {
    display: grid;
    animation: mobile-menu-enter 0.18s ease both;
  }
  #header-actions > button,
  #header-actions > .language-switch {
    width: 100%;
    min-width: 0;
    margin: 0;
    min-height: 44px;
    padding: 11px 10px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  #header-actions > [hidden] {
    display: none !important;
  }
  #header-actions > #translate {
    grid-column: 1 / -1;
    text-align: left;
    background: var(--card);
  }
  #header-actions > #add {
    grid-column: 1 / -1;
    margin: 0;
  }
  .hero {
    margin-top: 26px;
    margin-bottom: 18px;
    padding: 0 16px;
  }
  .hero h1 {
    font-size: clamp(30px, 8vw, 44px);
    letter-spacing: -1.4px;
    margin: 16px 0 22px;
    line-height: 1.15;
  }
  .hero > .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
  .hero .search {
    margin: 0 auto 12px;
    padding: 10px 13px;
    min-height: 52px;
  }
  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .filters > [data-lang] {
    flex: 0 0 calc((100% - 18px) / 4);
    min-width: 0;
    padding: 8px 5px;
    font-size: 12px;
    min-height: 40px;
  }
  .filters > #total {
    flex: 1 1 auto;
    text-align: left;
    margin: 4px 0;
    font-size: 11px;
  }
  .filters > .unavailable-toggle {
    margin: 4px 0;
    min-height: 36px;
    font-size: 11px;
  }
  .filters > .sort-label {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 0;
    gap: 12px;
    font-size: 11px;
  }
  .filters #sort {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: 260px;
    min-height: 42px;
    font-size: 12px;
  }
  .layout {
    padding-top: 0;
  }
  aside > .eyebrow {
    margin-top: 6px;
  }
}
@media (max-width: 350px) {
  header .brand {
    font-size: 17px;
  }
  #mobile-menu-toggle {
    padding: 9px;
    gap: 5px;
  }
  .hero h1 {
    font-size: 29px;
  }
}
@keyframes mobile-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  header.mobile-menu-expanded > #header-actions {
    animation: none;
  }
}

@media (max-width: 800px) {
  #header-actions > #translate {
    max-width: none;
  }
  .filters > [data-lang] {
    white-space: nowrap;
  }
}

/* Pointer spotlight lives above the card artwork and never intercepts clicks. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card,
  .game-group {
    position: relative;
    isolation: isolate;
  }
  .card::before,
  .game-group::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: radial-gradient(
      260px circle at var(--spot-x, 50%) var(--spot-y, 50%),
      color-mix(in srgb, var(--season-accent, #d5d9df) 13%, transparent),
      transparent 75%
    );
    border: 1px solid transparent;
  }
  .card.spotlight-active::before,
  .game-group.spotlight-active::before {
    opacity: 1;
    border-color: color-mix(in srgb, var(--season-accent, #d5d9df) 32%, transparent);
  }
  .card.spotlight-active,
  .game-group.spotlight-active {
    box-shadow: 0 8px 28px #0002;
  }
}

/* Compact social links and recent additions. */
.brand-social {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  color: var(--muted, #a6a6a6);
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.social-links a:hover {
  color: var(--text, #fff);
  background: rgba(128, 128, 128, 0.13);
  transform: translateY(-2px);
}
.social-links svg {
  width: 19px;
  height: 19px;
}
.recent-sites {
  border-bottom: 1px solid var(--border, #303030);
  background: rgba(128, 128, 128, 0.035);
}
.recent-inner {
  max-width: 1710px;
  margin: auto;
  padding: 10px 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 52px;
}
.recent-inner > button {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: inherit;
  padding: 6px 0;
}
.recent-inner > button svg {
  transition: transform 0.2s;
}
.is-collapsed #recent-toggle svg {
  transform: rotate(-90deg);
}
.recent-sites.is-collapsed .recent-inner {
  min-height: 34px;
  padding-top: 3px;
  padding-bottom: 3px;
}
#recent-items {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow: hidden;
}
.recent-item {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 190px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  font-size: 12px;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.recent-item:hover {
  background: rgba(128, 128, 128, 0.12);
  border-color: var(--border, #333);
}
.recent-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
}
.recent-item span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.recent-item[hidden],
#recent-items[hidden] {
  display: none;
}
.site-favorite.game-favorite {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 5px;
}
.cardbar {
  flex-wrap: wrap;
}
.recent-empty {
  font-size: 12px;
  opacity: 0.6;
}
@media (max-width: 800px) {
  .brand-social {
    gap: 7px;
    flex-wrap: wrap;
  }
  .brand-social .brand {
    font-size: 18px;
  }
  .social-links {
    gap: 1px;
  }
  .social-links a {
    width: 25px;
    height: 27px;
  }
  .social-links svg {
    width: 17px;
    height: 17px;
  }
  .recent-inner {
    padding: 8px 16px;
    gap: 10px;
    min-height: 46px;
  }
  .recent-inner > button {
    font-size: 11px;
  }
  .recent-item {
    max-width: 155px;
    padding: 5px 7px;
  }
  .recent-item img {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 380px) {
  .brand-social {
    gap: 2px;
    max-width: calc(100% - 65px);
  }
  .brand-social .brand {
    font-size: 17px;
  }
  .social-links a {
    height: 23px;
  }
  .recent-inner > button span {
    max-width: 70px;
  }
}

.social-links {
  padding: 0;
  overflow: visible;
}
.brand-social {
  flex-shrink: 1;
}
.recent-sites {
  border-color: var(--line);
}
.social-links a:hover {
  color: var(--fg);
}

/* Recent strip is informational; align the header wordmark and socials. */
.brand-social {
  align-items: center;
}
.brand-social .brand {
  line-height: 1;
  align-items: center;
}
.brand-social .brand b {
  display: block;
  line-height: 1;
}
.brand-social .social-links {
  align-items: center;
  align-self: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.social-links a {
  align-items: center;
  justify-content: center;
}
.social-links svg {
  display: block;
}
.recent-item {
  cursor: default;
}
.recent-item:hover {
  background: transparent;
  border-color: transparent;
}
.recent-item img {
  object-fit: cover;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}
.recent-inner > #recent-toggle {
  width: 28px;
  height: 28px;
  padding: 6px;
  justify-content: center;
  border-radius: 7px;
}
.recent-inner > #recent-toggle:hover {
  background: var(--hover);
}
@media (max-width: 800px) {
  #recent-sites {
    display: none !important;
  }
}

/* Collapsing the recent strip leaves only a small reopen control. */
#recent-sites.is-collapsed {
  height: 0;
  min-height: 0;
  border: 0;
  background: none;
  position: relative;
  z-index: 3;
}
#recent-sites.is-collapsed .recent-inner {
  height: 0;
  min-height: 0;
  padding: 0;
  position: relative;
  overflow: visible;
}
#recent-sites.is-collapsed #recent-toggle {
  position: absolute;
  top: 0;
  left: 24px;
  width: 26px;
  height: 20px;
  margin: 0;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  color: var(--muted);
}
#recent-sites.is-collapsed #recent-toggle svg {
  transform: none;
  width: 12px;
  height: 12px;
}
#recent-sites.is-collapsed #recent-toggle:hover {
  background: var(--hover);
  color: var(--fg);
}

/* The header strip must not inherit catalogue section spacing. */
#recent-sites {
  margin: 0;
  padding: 0;
}

/* Keep touch scrolling lightweight, including the iOS status-bar jump to top. */
@media (max-width: 800px), (pointer: coarse) {
  #season-web {
    display: none !important;
  }
  .motion-ready,
  .motion-ready.motion-visible {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
  }
  header,
  .hero {
    opacity: 1 !important;
  }
  .hero h1,
  .hero h1 > span,
  .hero > .eyebrow,
  .hero > .search {
    animation: none !important;
    filter: none !important;
  }
  .card,
  .game-group,
  .game-link {
    will-change: auto !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .card.is-pinned::after,
  .game-link.is-pinned::after {
    animation: none !important;
  }
  .game-banner {
    filter: none !important;
    transform: none !important;
  }
  .card::before,
  .game-group::before {
    display: none !important;
  }
  dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 800px) {
  header {
    gap: 0 8px;
    padding: 10px 12px;
    min-height: 62px;
  }
  header > .brand-social {
    flex: 1 1 0;
    max-width: none;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }
  .brand-social .brand {
    flex: 0 1 auto;
    font-size: clamp(15px, 4.5vw, 19px);
    white-space: nowrap;
    letter-spacing: -0.7px;
  }
  .brand-social .social-links {
    flex-shrink: 0;
    gap: 1px;
    margin-left: auto;
  }
  .social-links a {
    width: 23px;
    height: 30px;
  }
  .social-links svg {
    width: 16px;
    height: 16px;
  }
  #mobile-menu-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 8px;
    gap: 0;
  }
  #mobile-menu-toggle > span {
    display: none;
  }
  .filters > .mobile-status-filters {
    display: flex;
    flex: 0 0 100%;
    justify-content: flex-end;
    gap: 18px;
    align-items: center;
  }
  .mobile-status-filters > .unavailable-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    min-height: 32px;
    font-size: 11px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    width: auto;
    max-width: none;
  }
  .mobile-status-filters .toggle-track {
    flex-shrink: 0;
  }
  .filters > #total {
    flex: 0 0 100%;
    margin: 2px 0 0;
  }
}
@media (max-width: 350px) {
  header {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand-social .brand {
    font-size: 15px;
  }
  .brand-social .social-links {
    gap: 0;
  }
  .social-links a {
    width: 21px;
  }
  .brand-social .social-links svg {
    width: 15px;
    height: 15px;
  }
  header > .brand-social {
    gap: 5px;
  }
  #mobile-menu-toggle {
    width: 32px;
    padding: 6px;
  }
}

@media (max-width: 800px) {
  aside > .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 8px;
  }
  aside > .eyebrow::after {
    content: "↔";
    font-size: 16px;
    letter-spacing: 0;
    color: var(--muted);
  }
  aside #nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    padding: 2px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    max-width: 100%;
    border: 0;
  }
  aside #nav::-webkit-scrollbar {
    display: none;
  }
  aside #nav > button {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    max-height: 40px;
    width: auto;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--muted);
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
    scroll-snap-align: start;
    box-shadow: none;
    translate: none;
    transition:
      background 0.15s,
      color 0.15s,
      border-color 0.15s;
  }
  aside #nav > button.selected,
  aside #nav > button.scroll-active {
    color: var(--fg);
    background: var(--hover);
    border-color: var(--season-accent, var(--fg));
    box-shadow: none;
  }
  aside #nav > button.scroll-active::after {
    display: none;
  }
  aside
    #nav
    > button
    > span:last-child:not(.nsfw-label):not(.soon-category-hint):not(.soon-category-name):not(.nav-label) {
    font-size: 10px;
    line-height: 18px;
    min-width: 20px;
    padding: 0 5px;
    border-radius: 5px;
    background: var(--bg);
    text-align: center;
  }
  aside #nav > .pending-nav {
    margin: 0;
  }
  .mobile-catalogue-info {
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .mobile-catalogue-info > .note,
  .mobile-catalogue-info > .visit-stats {
    margin: 0;
    width: 100%;
    max-width: none;
    padding: 16px;
  }
  .mobile-catalogue-info > .note p {
    margin-bottom: 0;
  }
  .mobile-catalogue-info > .visit-stats dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Consistent card metrics, larger game covers and compact banner tools. */
.cardbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
}
.cardbar > span {
  align-self: flex-start;
  font-size: 9px;
  letter-spacing: 0.8px;
  line-height: 14px;
}
.card-actions,
.game-metrics {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.card-actions {
  justify-content: space-between;
  width: 100%;
}
.card-actions > * {
  flex: 1 1 0;
  min-width: 0 !important;
}
.card-actions button,
.card-actions .click-count,
.card-actions .site-favorite.game-favorite,
.game-metrics button,
.game-metrics .click-count {
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1;
  border: 1px solid var(--line);
  background: transparent;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.card-actions .click-count,
.game-metrics .click-count {
  border-color: transparent;
  color: var(--muted);
}
.card-actions svg,
.game-metrics svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.card-actions .vote-button.voted,
.game-metrics .vote-button.voted {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.card-actions .flag,
.game-metrics .flag {
  color: #ef6262;
  border-color: transparent;
}
.card-actions button:hover,
.game-metrics button:hover {
  background: var(--hover);
}
.game-title {
  min-height: 154px;
  padding: 24px;
  gap: 18px;
}
.game-title .game-symbol {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  border-radius: 17px;
  box-shadow: 0 5px 16px #0002;
}
.game-title .game-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.game-title > .game-tag {
  display: none;
}
.game-title > .game-favorite {
  margin-left: auto;
  flex-shrink: 0;
}
.game-title > .game-admin-tools {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex: none !important;
  max-width: calc(100% - 32px);
  z-index: 3;
}
.game-tools-toggle {
  display: none;
  font-size: 21px;
  line-height: 1;
  padding: 6px 8px;
}
.game-tools-panel {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.game-tools-panel > button {
  margin: 0 !important;
  min-width: 30px;
  min-height: 30px;
  padding: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .game-tools-panel,
  .game-title > .game-favorite {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
  }
  .game-group:hover .game-tools-panel,
  .game-group:focus-within .game-tools-panel,
  .game-group:hover .game-title > .game-favorite,
  .game-group:focus-within .game-title > .game-favorite,
  .game-title > .game-favorite.is-favorite {
    opacity: 1;
    pointer-events: auto;
  }
}
.search-match {
  color: inherit;
  background: color-mix(in srgb, var(--season-accent, var(--fg)) 18%, transparent);
  border-radius: 3px;
  padding: 0 1px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
#appearance-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 24px;
}
.appearance-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin: 4px 0 1px;
}
.theme-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 8px;
}
.theme-preview {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--line);
  font-size: 12px;
}
.theme-preview.selected {
  border-color: var(--fg);
  box-shadow: 0 0 0 1px var(--fg);
}
.theme-miniature {
  grid-column: 1/-1;
  height: 65px;
  border-radius: 7px;
  padding: 9px;
  display: grid;
  grid-template-columns: 24px 1fr 1fr;
  gap: 6px;
  align-items: start;
  border: 1px solid #8883;
}
.theme-preview.light .theme-miniature {
  background: #f3f4f6;
}
.theme-preview.dark .theme-miniature {
  background: #151719;
}
.theme-miniature i {
  display: block;
  height: 42px;
  border-radius: 4px;
  background: #81889526;
  border: 1px solid #8883;
}
.theme-miniature i:first-child {
  height: 32px;
  background: #81889550;
}
.theme-check {
  min-width: 14px;
  font-weight: 800;
}
#appearance-options {
  gap: 9px;
}
.appearance-option {
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.appearance-option input {
  left: auto;
  right: 12px;
}
.appearance-option .toggle-track {
  pointer-events: none;
}
.appearance-option:focus-within {
  outline: 2px solid var(--muted);
  outline-offset: 2px;
}
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  z-index: 8;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px #0003;
  color: var(--fg);
}
#back-to-top[hidden] {
  display: none;
}
#back-to-top:hover {
  background: var(--hover);
}
@media (max-width: 800px), (pointer: coarse) {
  .game-title {
    min-height: 140px;
    padding: 18px;
    gap: 14px;
    padding-bottom: 32px;
  }
  .game-title .game-symbol {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    border-radius: 15px;
  }
  .game-title .game-art {
    border-radius: 14px;
  }
  .game-title > div:not(.game-admin-tools) {
    flex: 1 1 90px;
  }
  .game-title > .game-favorite {
    margin-left: auto;
    min-width: 36px;
    min-height: 36px;
  }
  .game-tools-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
  }
  .game-tools-panel {
    display: none;
    flex-wrap: wrap;
    max-width: calc(100vw - 90px);
  }
  .game-admin-tools.is-open .game-tools-panel {
    display: flex;
  }
  .game-tools-panel > button {
    min-height: 36px;
    min-width: 36px;
  }
  .game-link-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .game-link-row > a {
    flex: 1 1 0;
    min-width: 0;
  }
  .game-metrics {
    flex: 0 0 100%;
    justify-content: flex-end;
    gap: 8px;
  }
  .game-metrics > button,
  .game-metrics .click-count {
    min-height: 36px;
    min-width: 36px;
    font-size: 11px;
  }
  .card-actions button,
  .card-actions .click-count,
  .card-actions .site-favorite.game-favorite {
    height: 38px;
    min-height: 38px;
    font-size: 11px;
  }
  #back-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .game-tools-panel,
  .game-title > .game-favorite {
    transition: none !important;
  }
}

@media (max-width: 800px), (pointer: coarse) {
  .game-title > .game-favorite,
  .game-admin-tools.is-open .game-tools-panel {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 800px), (pointer: coarse) {
  .game-title:has(.game-admin-tools.is-open) {
    min-height: 205px;
    align-items: flex-start;
    padding-bottom: 70px;
  }
  .game-title:has(.game-admin-tools.is-open) > .game-favorite {
    align-self: flex-start;
  }
}

@media (max-width: 800px), (pointer: coarse) {
  .game-title > .game-favorite,
  .game-admin-tools.is-open .game-tools-panel {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Visits stay on the left; actions follow heart, vote, comments, report. */
.card-actions > .click-count {
  order: -1;
  flex: 0 0 auto;
  min-width: 28px !important;
  margin-right: auto;
  padding-left: 0;
  padding-right: 2px;
}
.card-actions > .site-favorite {
  order: 0;
}
.card-actions > .vote-button {
  order: 1;
}
.card-actions > .comment-button {
  order: 2;
}
.card-actions > .flag {
  order: 3;
}
/* One fixed modal header; only the document body scrolls. */
#dmca-dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: 85dvh;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 90px #0005;
}
#dmca-dialog[open] {
  display: flex;
  flex-direction: column;
}
#dmca-dialog .dialoghead {
  position: static;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
#dmca-dialog .dialoghead h2 {
  font-size: 14px;
  letter-spacing: 0.12em;
  margin: 0;
  line-height: 1.3;
}
#dmca-close {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
#dmca-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  line-height: 1.75;
}
#dmca-content .copyright-label {
  font-size: 9px;
  letter-spacing: 0.15em;
}
#dmca-content h3 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin: 10px 0 16px;
  max-width: 460px;
}
#dmca-content h4 {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 10px;
}
#dmca-content p {
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 12px;
}
#dmca-content p:last-child {
  margin-bottom: 0;
}
.dmca-intro {
  margin-bottom: 20px;
}
.dmca-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  margin: 0 0 22px;
}
.dmca-notice > svg {
  flex-shrink: 0;
  color: var(--season-accent, var(--fg));
  margin-top: 3px;
}
.dmca-section {
  margin: 0 0 22px;
}
.dmca-contact {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  margin-bottom: 22px;
}
#dmca-content .dmca-contact h4 {
  font-size: 16px;
}
#dmca-content .dmca-email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  padding: 12px 0;
  margin: 2px 0 8px;
}
.dmca-email > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
}
.dmca-email:hover {
  opacity: 0.75;
}
.dmca-subject {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.dmca-review {
  margin-bottom: 0;
  padding-top: 2px;
}
@media (max-width: 800px) {
  #dmca-dialog {
    width: calc(100vw - 24px);
    max-height: 85dvh;
    border-radius: 15px;
  }
  #dmca-dialog .dialoghead {
    padding: 14px 16px;
  }
  #dmca-content {
    padding: 20px 16px;
  }
  #dmca-content h3 {
    font-size: 22px;
  }
  .dmca-notice {
    padding: 14px;
    gap: 10px;
  }
  .dmca-contact {
    padding: 16px;
  }
  #dmca-content .dmca-email {
    font-size: 17px;
  }
  .card-actions > .click-count {
    min-width: 30px !important;
  }
}

/* Quiet, rounded scrollbars in both themes. */
html,
aside,
dialog,
#dmca-content,
#comment-list {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 42%, var(--bg)) var(--bg);
}
html::-webkit-scrollbar,
aside::-webkit-scrollbar,
dialog::-webkit-scrollbar,
#dmca-content::-webkit-scrollbar,
#comment-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html::-webkit-scrollbar-track,
aside::-webkit-scrollbar-track,
dialog::-webkit-scrollbar-track,
#dmca-content::-webkit-scrollbar-track,
#comment-list::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 12px;
}
html::-webkit-scrollbar-thumb,
aside::-webkit-scrollbar-thumb,
dialog::-webkit-scrollbar-thumb,
#dmca-content::-webkit-scrollbar-thumb,
#comment-list::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 42%, var(--bg));
  min-height: 36px;
}
html::-webkit-scrollbar-thumb:hover,
aside::-webkit-scrollbar-thumb:hover,
dialog::-webkit-scrollbar-thumb:hover,
#dmca-content::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
html::-webkit-scrollbar-button,
aside::-webkit-scrollbar-button,
dialog::-webkit-scrollbar-button,
#dmca-content::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
html::-webkit-scrollbar-corner,
aside::-webkit-scrollbar-corner {
  background: transparent;
}
/* The catalogue controls are shown only after authentication. */
.catalogue-locked .hero > .search,
.catalogue-locked .hero > .filters,
.catalogue-locked aside > .eyebrow,
.catalogue-locked .paid-switch,
.catalogue-locked .note,
.catalogue-locked #theme {
  display: none !important;
}
.catalogue-locked #nav:empty {
  display: none;
}
aside > #dmca.sidebar-dmca {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 18px 0 0;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: left;
  color: var(--muted);
}
aside > #dmca.sidebar-dmca:hover {
  background: var(--hover);
  color: var(--fg);
}
aside > #dmca.sidebar-dmca svg {
  flex-shrink: 0;
}
@media (max-width: 800px) {
  aside > #dmca.sidebar-dmca {
    width: fit-content;
    margin: 0 0 16px;
    padding: 9px 12px;
  }
  .catalogue-locked aside > #dmca.sidebar-dmca {
    margin-top: 8px;
  }
}

/* Theme selection lives in Appearance; align the signed-out columns. */
#header-actions > #theme {
  display: none !important;
}
.catalogue-locked .layout > aside {
  padding-top: 0;
}
.catalogue-locked aside > #dmca.sidebar-dmca {
  margin-top: 0;
}
.catalogue-locked #content > .private-notice {
  margin-top: 0;
}

/* Match the guest notice to the full sidebar height on desktop. */
@media (min-width: 801px) {
  .catalogue-locked .layout {
    align-items: stretch;
  }
  .catalogue-locked .layout > #content {
    display: flex;
    align-items: stretch;
  }
  .catalogue-locked #content > .private-notice {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
  }
  .catalogue-locked .layout > aside {
    padding-bottom: 0;
  }
  .catalogue-locked aside > .visit-stats {
    margin-bottom: 0;
  }
}
@media (max-width: 800px) {
  aside > #dmca.sidebar-dmca {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
}

/* The guest row follows its content, rather than the catalogue viewport minimum. */
@media (min-width: 801px) {
  .catalogue-locked .layout > #content {
    min-height: 0;
  }
}

/* Keep game links and their actions on one line; truncate only overflowing names. */
.game-link-row {
  flex-wrap: nowrap;
}
.game-link-row > .link-number {
  flex-shrink: 0;
}
.game-link-row > a {
  flex: 1 1 0;
  min-width: 0;
}
.game-link-row > a > img {
  flex-shrink: 0;
}
.game-link-row > a > span {
  min-width: 0;
  overflow: hidden;
}
.game-link-row .game-link-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-link-row > .game-metrics {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
@media (max-width: 800px) {
  .game-link-row {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .game-link-row > a {
    flex: 1 1 0;
    gap: 6px;
    min-width: 0;
  }
  .game-link-row > .game-metrics {
    flex: 0 0 auto;
    gap: 3px;
    align-items: center;
  }
  .game-metrics > button,
  .game-metrics .click-count {
    min-width: 30px;
    padding: 5px 3px;
    font-size: 10px;
  }
  .game-link-row .flag,
  .game-link-row .comment-button,
  .game-link-row .vote-button {
    padding: 5px 3px;
  }
}

/* Keep the footer at the viewport bottom without stretching catalogue panels. */
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > header,
body > .hero,
body > #recent-sites,
body > .layout,
body > footer {
  flex-shrink: 0;
}
body > .layout {
  margin-top: 0;
  margin-bottom: 0;
}
body > footer {
  margin-top: auto;
}

/* Truncate the hostname, while keeping verification visible and spaced. */
.game-link-row .game-link-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.game-link-name > .game-link-host {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-link-row .game-link-name > .verified-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0;
  object-fit: contain;
}

:root {
  --header-height: 80px;
  --footer-height: 70px;
  scroll-padding-top: calc(var(--header-height) + 16px);
}
body > header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: auto;
  min-height: 80px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: 16px;
  padding-left: max(5%, env(safe-area-inset-left, 0px));
  padding-right: max(5%, env(safe-area-inset-right, 0px));
  background: var(--bg);
}
html.hide-pinnedHeader body > header {
  position: relative;
}
html.hide-pinnedHeader {
  scroll-padding-top: 16px;
}
body > footer {
  background: var(--bg);
  padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px));
  padding-left: max(5%, env(safe-area-inset-left, 0px));
  padding-right: max(5%, env(safe-area-inset-right, 0px));
}
html:not(.hide-pinnedFooter) body {
  padding-bottom: var(--footer-height);
}
html:not(.hide-pinnedFooter) body > footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  margin: 0;
}
html:not(.hide-pinnedFooter) #back-to-top {
  bottom: calc(var(--footer-height) + 12px);
}
html:not(.hide-pinnedFooter) #toast {
  bottom: calc(var(--footer-height) + 16px);
}
@media (min-width: 801px) {
  html:not(.hide-pinnedHeader) .layout > aside {
    top: calc(var(--header-height) + 16px);
    max-height: calc(100dvh - var(--header-height) - var(--footer-height) - 32px);
  }
}
@media (max-width: 800px) {
  body > header {
    min-height: 60px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  body > footer {
    gap: 3px 12px;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    font-size: 10px;
  }
  .catalogue-locked .layout > #content {
    min-height: 0;
  }
  .catalogue-locked .mobile-catalogue-info {
    margin-top: 20px;
  }
}

html:not(.hide-pinnedHeader) body > header {
  opacity: 1;
}
@media (max-width: 800px) {
  header.mobile-menu-expanded #header-actions {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--footer-height) - 80px);
    overflow-y: auto;
  }
}

.brand-social > .brand {
  gap: 0;
  font-weight: 800;
  white-space: nowrap;
}
.brand-social > .brand > a {
  display: inline-block;
}

@keyframes pinned-icon-spin {
  from {
    transform: scale(1.1) rotate(0deg);
  }
  to {
    transform: scale(1.1) rotate(360deg);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card.is-pinned:hover > a > img:not(.verified-icon),
  .game-link.is-pinned:hover > .game-link-row > a > img:not(.verified-icon) {
    animation: pinned-icon-spin 2s linear infinite;
    transform-origin: center;
  }
}

.merged-paid-sites {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.merged-paid-sites > h3 {
  margin: 0 0 18px;
  font-size: 14px;
}
.merged-paid-sites > .grid + .grid {
  margin-top: 12px;
}

.subsection-count {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--hover);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.live-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
}
.status-pill > i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill[data-state="good"] {
  color: #24b66d;
  border-color: #24b66d55;
  background: #24b66d0b;
}
.status-pill[data-state="fair"] {
  color: #d29528;
  border-color: #d2952855;
  background: #d295280b;
}
.status-pill[data-state="slow"] {
  color: #e65d5d;
  border-color: #e65d5d55;
  background: #e65d5d0b;
}
body > footer .live-status span {
  max-width: none;
  text-align: center;
}
@media (max-width: 800px) {
  body > footer {
    align-items: center;
    justify-content: space-between;
  }
  body > footer .footer-description {
    display: none;
  }
  .status-pill {
    padding: 4px 7px;
    font-size: 9px;
    gap: 4px;
  }
}

/* ---- Menu po lewej: grupy (poziom 1, z ikoną) i zwijane podsekcje (poziom 2) ---- */
#nav {
  gap: 2px;
}
#nav .nav-top,
#nav .nav-group-head,
#nav .nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 9px;
  text-align: left;
  line-height: 1.35;
}
#nav .nav-top,
#nav .nav-group-head {
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
#nav .nav-group-head {
  background: none;
  cursor: pointer;
}
#nav .nav-top + .nav-group,
#nav .nav-group + .nav-group {
  margin-top: 6px;
}
#nav .nav-top + .nav-group {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
#nav .nav-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
#nav .nav-count {
  margin-left: auto;
  padding-left: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#nav .nav-icon {
  flex-shrink: 0;
  color: var(--fg);
  opacity: 0.85;
}
#nav .nav-chevron {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-right: -4px;
  color: var(--muted);
  transition: rotate 0.2s ease;
}
#nav .nav-group.is-open .nav-chevron {
  rotate: 90deg;
}
#nav .nav-sub {
  display: grid;
  gap: 1px;
  margin: 2px 0 4px 18px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
#nav .nav-group:not(.is-open) > .nav-sub {
  display: none;
}
#nav .nav-item {
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 400;
  color: color-mix(in srgb, var(--fg) 68%, transparent);
}
#nav .nav-top:hover,
#nav .nav-group-head:hover,
#nav .nav-item:hover {
  background: var(--hover);
  color: var(--fg);
}
#nav .nav-item.selected,
#nav .nav-top.selected {
  color: var(--fg);
  font-weight: 600;
}
#nav .nav-item.nsfw-button {
  margin: 0;
  border: 0;
  padding: 7px 10px;
}
nav button.pending-nav + button.pending-nav {
  margin-top: 4px;
}
#header-actions > #why-us.active {
  background: var(--hover);
  color: var(--fg);
  border-color: var(--fg);
}
@media (prefers-reduced-motion: reduce) {
  #nav .nav-chevron {
    transition: none;
  }
}
/* Telefon: menu jest poziomym paskiem — pokazujemy same podsekcje jako „chipy”. */
@media (max-width: 800px) {
  aside #nav .nav-group,
  aside #nav .nav-group > .nav-sub,
  aside #nav .nav-group:not(.is-open) > .nav-sub {
    display: contents;
  }
  aside #nav .nav-group-head,
  aside #nav .nav-duplicate {
    display: none;
  }
  aside #nav .nav-top,
  aside #nav .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    max-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  aside #nav .nav-top.selected,
  aside #nav .nav-item.selected,
  aside #nav .nav-item.scroll-active {
    color: var(--fg);
    background: var(--hover);
    border-color: var(--season-accent, var(--fg));
    box-shadow: none;
  }
  aside #nav .nav-top + .nav-group {
    padding-top: 0;
    border-top: 0;
  }
  aside #nav .nav-label {
    flex: 0 0 auto;
  }}

/* Ekran blokady: lewa kolumna rozciąga się do wysokości ramki z powodem bana. */
@media (min-width: 801px) {
  .catalogue-locked .layout > aside {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .catalogue-locked aside > .visit-stats {
    flex: 1;
  }
}
.ban-notice p {
  margin: 0 0 10px;
}
.ban-notice h2 {
  margin-top: 0;
}
