:root {
  color-scheme: dark;
  --bg: #151715;
  --panel: #1c1f1b;
  --line: #34382e;
  --text: #f3f1e8;
  --muted: #a2a699;
  --accent: #edac6a;
  --accent-dark: #282217;
  --green: #b7c79f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(ellipse at 76% 22%, #41462924, transparent 42%), radial-gradient(ellipse at 3% 55%, #61402612, transparent 50%), var(--bg);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font: inherit;
}

button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button, a, input, textarea, select, th {
  outline-offset: 5px;
}

:focus-visible {
  outline: 2px solid var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

button:disabled {
  opacity: .45;
  cursor: wait;
}

button, a, .action-icon {
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}

button:not(:disabled):active {
  transform: translateY(1px);
}

.hidden {
  display: none !important;
}

.app-intro {
  display: none;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-width {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  z-index: 10;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff0c;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  letter-spacing: -.6px;
  font-weight: 500;
  white-space: nowrap;
}

.brand strong {
  font-weight: 800;
}

.brand-domain {
  color: var(--muted);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex: none;
}

.data-source {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.data-source:hover, .site-footer a:hover {
  color: var(--accent);
}

.header-actions, .account-nav { display: flex; align-items: center; gap: 10px; }
.header-actions { gap: 22px; }
.account-message { margin-top: 22px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); font-size: 14px; }
.saved-lists-panel { margin-top: 30px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.saved-lists-panel h2 { margin: 6px 0 0; }
.saved-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.saved-list-card { display: flex; flex-direction: column; gap: 9px; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--bg); min-width: 0; }
.saved-list-card:hover { border-color: var(--accent); }
.saved-list-card strong { font-size: 16px; overflow-wrap: anywhere; }
.saved-list-card span { color: var(--muted); font-size: 12px; }
.saved-list-card .saved-list-open { color: var(--accent); margin-top: 8px; }
#resultsTitle, #accountName { overflow-wrap: anywhere; }
.save-list-panel { margin-bottom: 26px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.save-list-heading, .save-list-fields, .list-sharing-heading { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.save-list-heading p { font-size: 13px; margin: 8px 0 0; }
.save-list-fields { align-items: end; margin-top: 20px; }
.list-title-field { flex: 1; min-width: 0; }
.list-title-field label, #collectionShareWrap > label { display: block; font-size: 12px; margin-bottom: 8px; color: var(--muted); }
.list-title-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.list-status { font-size: 13px; color: var(--green); min-height: 18px; margin: 12px 0; }
.list-status.is-error { color: #f3b4a0; }
.list-sharing-heading { padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list-sharing-heading p, #collectionShareWrap p { font-size: 12px; }
#collectionShareWrap { margin-top: 18px; }
.save-list-panel .button-group, .list-sharing-heading .button-group { flex-wrap: wrap; }

@media (max-width: 850px) {
  .header-actions > .data-source { display: none; }
}

@media (max-width: 600px) {
  .account-nav { gap: 6px; }
  .account-nav .button { padding: 9px 10px; font-size: 11px; }
  .saved-lists-panel, .save-list-panel { padding: 18px; }
  .save-list-fields, .save-list-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .list-title-field input { font-size: 16px; }
  .saved-lists-panel .panel-heading { gap: 12px; }
  .list-sharing-heading { gap: 8px; }
  #collectionShareWrap .share-controls input { font-size: 16px; }
}

.status-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #b3c394;
  box-shadow: 0 0 8px #b3c39455;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 398px;
  padding-block: 40px 44px;
  text-align: center;
}

.eyebrow, .section-kicker, .step-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--accent);
  margin: 0 0 22px;
}

.eyebrow > span {
  width: 22px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(42px, 4.6vw, 66px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -3.1px;
}

h1 em {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--accent);
  font-size: 1.13em;
  font-weight: 400;
  letter-spacing: -2.5px;
}

.hero-description {
  color: #b3b5aa;
  font-size: 15px;
  line-height: 1.8;
  margin: 22px 0 23px;
}

.hero-details {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #a0a596;
  font-size: 11px;
}

.hero-details > span {
  display: flex;
  gap: 5px;
  align-items: center;
}

.hero-details .icon {
  width: 13px;
  height: 13px;
  color: var(--green);
}

.input-panel {
  position: relative;
  border: 1px solid #51523c80;
  border-radius: 18px;
  padding: 27px 30px 0;
  background: linear-gradient(125deg, #24271fee, #1d201bdd 65%);
  box-shadow: 0 18px 50px #0002, inset 0 1px #d7d3a909;
}

.input-panel::before {
  content: '';
  position: absolute;
  height: 1px;
  left: 25px;
  right: 25px;
  top: -1px;
  background: linear-gradient(90deg, transparent, #b9ad6355, transparent);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.section-kicker {
  color: #a5ad94;
  font-size: 8px;
  letter-spacing: 1.7px;
}

h2 {
  margin: 7px 0 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 650;
  font-size: 22px;
  letter-spacing: -.6px;
}

.step-label {
  color: #8c9481;
  font-size: 8px;
  letter-spacing: 1.3px;
}

.step-label > span {
  margin: 0 6px;
  color: #575d4f;
}

.input-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
}

.action-card {
  min-width: 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  background: #2b2f2599;
  border: 1px solid #474e3b;
  border-radius: 10px;
  padding: 17px;
}

.action-card:hover {
  background: #363c2d;
  border-color: #747d5a;
  transform: translateY(-2px);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  color: #d1d9bf;
}

.action-icon .icon {
  width: 24px;
  height: 24px;
}

.action-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-copy strong {
  font-size: 13px;
  font-weight: 700;
}

.action-copy > span {
  font-size: 10px;
  color: #a5ad99;
}

.action-arrow {
  margin-left: auto;
  width: 17px;
  height: 17px;
  color: #9fa78e;
}

.action-primary {
  color: #292318;
  background: var(--accent);
  border-color: #f0b879;
  box-shadow: 0 4px 18px #c7893f13;
}

.action-primary:hover {
  background: #f5bd80;
  border-color: #f5c795;
}

.action-primary .action-copy > span {
  color: #655033;
}

.action-primary .action-icon, .action-primary .action-arrow {
  color: #534025;
}

.drop-hint {
  text-align: center;
  color: #929b86;
  font-size: 10px;
  margin: 17px 0 21px;
}

.drop-hint > span {
  margin-inline: 8px;
  color: #626b58;
}

kbd {
  font-family: inherit;
  font-size: 9px;
}

.sample-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 -30px;
  border-top: 1px solid #ffffff09;
  padding: 16px 20px;
  background: #12150f1f;
  border-radius: 0 0 18px 18px;
}

.sample-row > span {
  color: #a2aa96;
  font-size: 10px;
  margin-right: 6px;
}

.sample-row button {
  border: 1px solid #424935;
  background: transparent;
  border-radius: 6px;
  padding: 7px 10px;
  min-height: 34px;
  font-size: 10px;
  color: #c4cbb7;
}

.sample-row button > span {
  color: #808b70;
  margin-left: 7px;
}

.sample-row button:hover {
  background: #353c2c;
  border-color: #7a855d;
}

.landing-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 39px 22px 42px;
}

.landing-details article {
  display: flex;
  gap: 14px;
  align-items: center;
}

.feature-number {
  font-size: 11px;
  color: #7f8a6c;
  border: 1px solid #4d573e;
  height: 31px;
  width: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
}

h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #d8ddce;
}

.landing-details p {
  font-size: 10px;
  color: #98a18b;
  margin: 0;
}

.site-footer {
  border-top: 1px solid #ffffff0b;
  display: flex;
  justify-content: space-between;
  padding-block: 24px 28px;
  color: #8a9380;
  font-size: 10px;
}

.site-footer > span:first-child {
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: #9ba38f;
}

.site-footer a {
  color: #bbc3ad;
}

.list-wrap {
  padding: 25px 0 26px;
  border-top: 1px solid var(--line);
}

.list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.list-heading label {
  font-size: 14px;
  font-weight: 600;
}

.list-heading > span {
  font-size: 10px;
  color: var(--muted);
}

textarea, input[type=url] {
  color: var(--text);
  background: #151913;
  border: 1px solid #515c43;
  border-radius: 9px;
  padding: 14px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 130px;
  font-size: 15px;
  line-height: 1.6;
}

textarea::placeholder {
  color: #77816b;
}

textarea:focus, input[type=url]:focus {
  border-color: var(--accent);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
}

.list-toolbar p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

.button-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.button .icon {
  height: 17px;
  width: 17px;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-dark);
}

.button-primary:hover {
  background: #f5bd80;
}

.button-secondary {
  background: #282e22;
  border-color: #424d35;
  color: #d1d9c4;
}

.button-secondary:hover {
  background: #38432d;
}

.button-small {
  padding: 9px 13px;
  font-size: 11px;
}

.preview-wrap {
  padding-block: 20px;
}

.preview-wrap img {
  display: block;
  max-height: 230px;
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #141811;
}

.status {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 0;
  font-size: 13px;
  color: #d1dcc0;
}

.spinner {
  width: 17px;
  height: 17px;
  display: inline-block;
  flex: none;
  border: 2px solid var(--accent);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.progress-track {
  height: 4px;
  margin-bottom: 20px;
  background: #39452c;
  border-radius: 6px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  background: var(--accent);
  transition: width .2s;
}

.error-message {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #784d41;
  background: #3e2722;
  color: #f4c2ad;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
}

.has-results .hero, .has-results .landing-details, .has-results .sample-row, .is-editing .sample-row {
  display: none;
}

.has-results .input-panel {
  margin-top: 26px;
}

.has-results .panel-heading {
  margin-bottom: 18px;
}

.has-results .drop-hint {
  margin-bottom: 18px;
}

.has-results .site-footer {
  margin-top: 38px;
}

.results-section {
  margin-top: 34px;
}

.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.result-count {
  display: inline-block;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #becaab;
  background: #2c3623;
  border: 1px solid #465437;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 7px;
  vertical-align: middle;
  letter-spacing: 0;
}

.results-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-toggle {
  gap: 7px;
}

.filter-toggle[aria-expanded="true"], .filter-toggle.is-active {
  color: #d6e3c5;
  border-color: #6b7c54;
  background: #303c26;
}

.filter-toggle .filter-chevron {
  width: 12px;
  height: 12px;
  color: var(--muted);
  transition: transform .18s;
}

.filter-toggle[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}

.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: 50%;
  background: var(--green);
  color: #20281a;
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.results-filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  margin-bottom: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  animation: filters-in .18s ease-out;
}

@keyframes filters-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-field {
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.filter-field label {
  font-size: 11px;
  font-weight: 600;
  color: #c4cbb7;
}

.filter-field input, .filter-field select {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  color: var(--text);
  background: #151913;
  border: 1px solid #515c43;
  border-radius: 8px;
  font-size: 13px;
}

.filter-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.filter-field input:disabled, .filter-field select:disabled {
  opacity: .45;
}

#resetFiltersBtn {
  min-height: 42px;
}

.filter-help {
  flex-basis: 100%;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

#filteredNote {
  color: var(--green);
}

.empty-results {
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed #515c43;
  border-radius: 12px;
  font-size: 14px;
}

.empty-results p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.results-table-wrap {
  overflow-x: auto;
  border: 1px solid #3f4934;
  border-radius: 12px;
  background: #1b2017;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

th {
  background: #262e20;
  padding: 15px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

th[data-sort] {
  cursor: pointer;
  user-select: none;
  color: #aebf99;
}

th:hover {
  color: var(--accent);
}

th:first-child {
  text-align: left;
  min-width: 220px;
}

.game-cell, th:first-child {
  position: sticky;
  left: 0;
}

.game-cell {
  background: #1b2017;
}

td {
  padding: 13px 15px;
  text-align: center;
  border-top: 1px solid #35412a;
}

tr:hover td {
  background: #222b1b;
}

.game-cell {
  text-align: left;
}

.game-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.game-link:hover .game-name {
  color: var(--accent);
}

.game-thumb {
  width: 43px;
  height: 43px;
  object-fit: cover;
  flex: none;
  border-radius: 6px;
  background: #303c24;
  display: grid;
  place-items: center;
  color: #aabd91;
}

.game-thumb .icon {
  width: 25px;
  height: 25px;
}

.game-name {
  display: block;
  font-weight: 550;
  line-height: 1.4;
}

.game-year {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}

.game-query {
  display: block;
  color: #9cab8c;
  font-size: 10px;
  margin-top: 3px;
}

.game-info {
  min-width: 0;
}

.nowrap {
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.rating {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rating-high {
  color: #c1daa2;
}

.rating-good {
  color: #d3d392;
}

.rating-mid {
  color: #e7b96d;
}

.rating-low {
  color: #e8a090;
}

.rating-unknown {
  color: var(--muted);
}

#sortSelect {
  display: none;
  background: #282e22;
  color: #d1d9c4;
  border: 1px solid #424d35;
  padding: 9px;
  border-radius: 8px;
  font-size: 11px;
  min-height: 35px;
}

.results-cards {
  display: none;
}

.shared-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.share-panel {
  background: #252f1e;
  border: 1px solid #50613e;
  border-radius: 12px;
  padding: 19px;
  margin-bottom: 20px;
}

.share-panel label {
  font-size: 13px;
  font-weight: 600;
}

.share-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.share-controls input {
  min-width: 0;
  flex: 1;
  font-size: 13px;
}

.share-panel p {
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 0;
}

#shareMessage {
  color: #d9dfb6;
}

.missing-games {
  margin-top: 18px;
  padding: 14px 17px;
  border-radius: 9px;
  border: 1px solid #50503b;
  color: #bfc4b2;
  font-size: 12px;
  line-height: 1.8;
}

.missing-games a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.missing-games a:hover {
  color: var(--accent);
}

.drop-overlay {
  position: fixed;
  inset: 16px;
  z-index: 20;
  border: 2px dashed var(--accent);
  background: #1c2319f5;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  pointer-events: none;
}

.drop-overlay .icon {
  width: 45px;
  height: 45px;
  color: var(--accent);
}

.drop-overlay strong {
  font-family: 'Manrope', sans-serif;
  font-size: 30px;
  letter-spacing: -1px;
}

.drop-overlay span {
  color: var(--muted);
}

@media (min-width: 1400px) {
  .hero {
    min-height: 435px;
  }
}

@media (max-width: 1050px) {
  .page-width {
    width: calc(100% - 56px);
  }
  .action-card {
    padding: 15px 12px;
    gap: 6px;
  }
  .action-arrow {
    display: none;
  }
  .action-copy > span {
    font-size: 9px;
  }
  .hero-description {
    font-size: 13px;
  }
  .hero-details {
    gap: 12px;
    font-size: 10px;
  }
  .landing-details {
    gap: 16px;
    padding-inline: 5px;
  }
  .landing-details article {
    gap: 10px;
  }
  .landing-details p {
    font-size: 9px;
  }
}

@media (max-width: 760px) {
  .page-width {
    width: calc(100% - 36px);
  }
  .site-header {
    height: 82px;
  }
  .brand {
    font-size: 22px;
    gap: 7px;
  }
  .data-source {
    font-size: 9px;
    gap: 6px;
  }
  .hero {
    min-height: 370px;
    padding-block: 36px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .hero-description {
    font-size: 12px;
  }
  .hero-details {
    gap: 7px;
  }
  .input-panel {
    padding: 23px 20px 0;
  }
  .sample-row {
    margin-inline: -20px;
  }
  .action-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 13px;
    gap: 10px;
  }
  .action-icon {
    width: 25px;
    height: 25px;
  }
  .action-copy strong {
    font-size: 12px;
  }
  .action-copy > span {
    font-size: 9px;
    line-height: 1.5;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  .step-label {
    display: none;
  }
  .landing-details {
    gap: 18px;
  }
  .landing-details article {
    align-items: flex-start;
  }
  .feature-number {
    border: 0;
    width: auto;
    height: auto;
    margin-top: 2px;
    font-size: 9px;
  }
  .landing-details h3 {
    font-size: 11px;
  }
  .landing-details p {
    font-size: 9px;
    line-height: 1.7;
  }
  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .list-toolbar .button-group {
    align-self: flex-end;
  }
  .results-heading {
    flex-wrap: wrap;
  }
  .list-heading > span {
    font-size: 9px;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 76px;
  }
  .data-source {
    font-size: 0;
  }
  .data-source > span:last-child {
    font-size: 14px;
  }
  .status-dot {
    display: none;
  }
  .brand {
    font-size: 22px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .hero {
    min-height: 0;
    padding-block: 32px 36px;
  }
  .eyebrow {
    justify-content: center;
    margin-bottom: 18px;
    font-size: 8px;
  }
  h1 {
    font-size: clamp(40px, 10.5vw, 60px);
    line-height: 1.14;
    letter-spacing: -2px;
  }
  h1 em {
    letter-spacing: -2px;
  }
  .hero-description {
    font-size: 13px;
    margin: 18px 0;
    line-height: 1.75;
  }
  .desktop-break {
    display: none;
  }
  .hero-details {
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    font-size: 9px;
  }
  .input-panel {
    padding: 21px 15px 0;
    border-radius: 14px;
  }
  .panel-heading {
    margin-bottom: 17px;
  }
  .section-kicker {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .panel-heading h2 {
    font-size: 20px;
  }
  .input-actions {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .action-card {
    padding: 14px 12px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 75px;
  }
  .action-primary {
    grid-column: 1 / -1;
    min-height: 75px;
  }
  .action-primary .action-copy > span {
    font-size: 10px;
  }
  .action-primary .action-arrow {
    display: block;
  }
  .action-copy strong {
    font-size: 12px;
  }
  .action-copy > span {
    font-size: 8px;
  }
  .action-icon .icon {
    width: 22px;
    height: 22px;
  }
  .drop-hint {
    display: none;
  }
  .sample-row {
    margin: 18px -15px 0;
    padding: 14px 10px 16px;
    gap: 7px;
  }
  .sample-row > span {
    flex: 0 0 100%;
    text-align: center;
    margin: 0 0 4px;
  }
  .sample-row button {
    font-size: 10px;
    min-height: 36px;
    padding: 8px;
  }
  .sample-row button > span {
    margin-left: 4px;
  }
  .landing-details {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 30px 16px;
  }
  .landing-details article {
    gap: 15px;
    align-items: center;
  }
  .feature-number {
    border: 1px solid #4d573e;
    width: 30px;
    height: 30px;
    font-size: 10px;
    margin: 0;
  }
  .landing-details h3 {
    font-size: 12px;
  }
  .landing-details p {
    font-size: 11px;
  }
  .site-footer {
    padding-block: 22px 26px;
    font-size: 9px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .site-footer > span:first-child {
    font-size: 13px;
  }
  .list-wrap {
    margin-top: 20px;
    padding-top: 19px;
    padding-bottom: 20px;
  }
  .list-heading {
    flex-direction: column;
    gap: 5px;
  }
  .list-heading > span {
    font-size: 10px;
  }
  .list-toolbar .button-group {
    align-self: stretch;
  }
  .list-toolbar .button-primary {
    flex: 1;
  }
  .list-toolbar p {
    font-size: 10px;
  }
  .button {
    padding-inline: 13px;
  }
  textarea {
    font-size: 16px;
  }
  .status {
    font-size: 12px;
  }
  .error-message {
    margin-top: 20px;
    font-size: 12px;
  }
  .has-results .input-panel {
    margin-top: 20px;
  }
  .has-results .input-actions {
    grid-template-columns: repeat(3, 1fr);
  }
  .has-results .action-card {
    grid-column: auto;
    flex-direction: column;
    align-items: center;
    min-height: 80px;
    padding: 12px 4px;
    gap: 7px;
    text-align: center;
  }
  .has-results .action-copy strong {
    font-size: 10px;
  }
  .has-results .action-copy > span, .has-results .action-arrow {
    display: none;
  }
  .has-results .site-footer {
    margin-top: 28px;
  }
  .results-section {
    margin-top: 27px;
  }
  .results-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
  }
  .results-heading h2 {
    font-size: 23px;
  }
  .results-toolbar {
    display: contents;
  }
  .results-toolbar > .button-group {
    grid-column: 1 / -1;
    width: 100%;
  }
  #sortSelect {
    display: block;
    margin-right: auto;
  }
  .results-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    gap: 12px;
  }
  .filter-field input, .filter-field select {
    font-size: 16px;
  }
  .filter-help {
    grid-column: 1 / -1;
  }
  .results-table-wrap {
    display: none;
  }
  .results-cards {
    display: grid;
    gap: 11px;
  }
  .result-card {
    display: block;
    border: 1px solid #445137;
    background: #20281a;
    padding: 16px;
    border-radius: 12px;
  }
  .result-card:hover {
    border-color: #7d9164;
    background: #27341f;
  }
  .card-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
  }
  .card-heading .game-info {
    flex: 1;
  }
  .card-heading .game-thumb {
    width: 47px;
    height: 47px;
  }
  .card-heading .game-name {
    font-size: 14px;
  }
  .card-heading .rating {
    font-size: 23px;
  }
  .game-rank {
    font-size: 10px;
    color: #b5c6a0;
    margin-top: 5px;
  }
  .card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    border-top: 1px solid #46543966;
    margin-top: 14px;
    padding-top: 13px;
  }
  .card-stat {
    text-align: center;
  }
  .stat-label {
    font-size: 8px;
    color: #9aab86;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 5px;
  }
  .stat-value {
    font-size: 12px;
    color: #e0e7d4;
  }
  .share-panel {
    padding: 14px;
  }
  .share-controls {
    gap: 7px;
  }
  .share-controls input {
    padding: 10px;
    font-size: 11px;
  }
  .drop-overlay {
    inset: 8px;
  }
  .drop-overlay strong {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
