﻿:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #66747f;
  --line: #dce5e8;
  --panel: #ffffff;
  --soft: #f3f7f7;
  --accent: #0f766e;
  --accent-strong: #0a5f58;
  --pixel: #ffd166;
  --danger: #b7411f;
  --good: #12733d;
  --shadow: 0 20px 48px rgba(18, 35, 42, 0.13);
  --page-max-width: 1180px;
  --side-art-width: 520px;
  --side-art-opacity: 0.72;
  --side-art-fade-start: 58%;
  --hero-min-height: 188px;
  --hero-padding: clamp(12px, 1.4vw, 17px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 32%),
    linear-gradient(315deg, rgba(255, 209, 102, 0.18), transparent 30%),
    #edf3f4;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  display: none;
  position: fixed;
  top: 88px;
  bottom: 0;
  z-index: 0;
  width: min(var(--side-art-width), calc((100vw - var(--page-max-width)) / 2));
  min-width: 0;
  pointer-events: none;
  background-image: url("assets/images/bargainpixels-side-art.png");
  background-repeat: no-repeat;
  background-size: auto clamp(760px, 88vh, 1120px);
  opacity: var(--side-art-opacity);
}

body::before {
  left: 0;
  background-position: left top;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 var(--side-art-fade-start), transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 var(--side-art-fade-start), transparent 100%);
}

body::after {
  right: 0;
  background-position: right top;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 var(--side-art-fade-start), transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 var(--side-art-fade-start), transparent 100%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px clamp(18px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: min(320px, 54vw);
  height: 54px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.main-nav a,
.nav-dropdown summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav a.is-active,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  background: #e7f3f1;
  color: var(--accent-strong);
}

.main-nav a.is-active,
.nav-dropdown[open] summary {
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "â–¾";
  margin-left: 6px;
  font-size: 0.72rem;
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  min-width: 172px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(18, 38, 63, 0.14);
  padding: 6px;
}

.nav-dropdown-menu a {
  justify-content: flex-start;
  width: 100%;
}

main {
  position: relative;
  z-index: 1;
  padding: 20px clamp(16px, 4vw, 44px) 48px;
}

.hero {
  width: min(var(--page-max-width), 100%);
  margin: 0 auto 18px;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: var(--hero-min-height);
  border-radius: 24px;
  padding: var(--hero-padding);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(255, 209, 102, 0.18), transparent 34%),
    #ffffff;
  color: white;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.future-page {
  width: min(var(--page-max-width), 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0;
}

.future-placeholder {
  max-width: 760px;
}

.future-placeholder-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.08);
  padding: clamp(22px, 4vw, 34px);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.future-placeholder-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 22px 46px rgba(18, 38, 63, 0.11);
}

.future-placeholder h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0;
}

.future-placeholder p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.future-status {
  margin-top: 16px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 8px;
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

.secondary-link:hover {
  text-decoration: underline;
}

.site-footer {
  width: min(var(--page-max-width), 100%);
  margin: 28px auto 0;
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.site-footer-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links a[aria-current="page"] {
  color: var(--accent-strong);
  text-decoration: underline;
}

.trust-page {
  width: min(920px, 100%);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 44px) 56px;
}

.trust-hero {
  padding: clamp(26px, 5vw, 52px) 0 26px;
  border-bottom: 1px solid var(--border);
}

.trust-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.98;
}

.trust-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.trust-content {
  display: grid;
  gap: 18px;
  padding-top: 24px;
}

.trust-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.trust-section h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.trust-section p {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.game-page {
  width: min(var(--page-max-width), 100%);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 44px) 48px;
}

.game-hero-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  gap: clamp(18px, 4vw, 34px);
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.08);
  padding: clamp(16px, 3vw, 24px);
}

.game-hero-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #e7f3f1;
  object-fit: cover;
}

.game-hero-details {
  display: grid;
  align-content: center;
  gap: 10px;
}

.game-hero-details h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0;
}

.game-hero-details p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.game-page-intro {
  color: var(--accent-strong);
  font-weight: 900;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-price-summary {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #e7f3f1;
  color: var(--accent-strong);
  padding: 10px 12px;
  font-weight: 900;
}

.game-price-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.game-price-summary strong {
  color: var(--accent-strong);
  font-size: 1.25rem;
}

.game-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-facts span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.offer-comparison {
  margin-top: 26px;
}

.offer-comparison .section-heading {
  align-items: end;
}

.offer-comparison .section-heading p:last-child {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.comparison-warning {
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: 8px;
  background: #fff7ed;
  color: #8a4b0f;
  padding: 10px 12px;
  font-weight: 800;
}

.offer-list {
  display: grid;
  gap: 12px;
}

.offer-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(180px, 1.08fr) minmax(150px, 0.82fr) minmax(230px, 1.45fr) minmax(132px, auto);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(18, 38, 63, 0.07);
  padding: 16px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.offer-card.is-recommended {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(231, 243, 241, 0.72);
  box-shadow: 0 16px 34px rgba(18, 38, 63, 0.1);
}

.offer-card.is-recommended h3 {
  color: var(--accent-strong);
}

.offer-card.is-recommended .offer-status {
  justify-self: start;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #dff3ef;
  color: var(--accent-strong);
  padding: 0 9px;
  font-size: 0.78rem;
}

.offer-card.is-recommended .offer-price strong {
  font-size: 1.45rem;
}

.offer-card.is-muted {
  background: rgba(255, 255, 255, 0.78);
}

.offer-card.is-incompatible {
  opacity: 0.7;
}

.offer-card.is-incompatible .offer-status {
  color: #8a4b0f;
}

.offer-card-header {
  display: grid;
  gap: 5px;
}

.offer-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.offer-status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.offer-price {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}

.offer-price strong {
  color: var(--accent-strong);
  font-size: 1.35rem;
}

.offer-price span:not(.discount-pill) {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.offer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
  margin: 0;
}

.offer-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.offer-card .deal-button {
  justify-self: stretch;
  min-width: 124px;
  padding: 0 18px;
  text-align: center;
}

.offer-card .deal-button.is-secondary {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--accent-strong);
}

.offer-card .deal-button.is-secondary:hover {
  border-color: rgba(15, 118, 110, 0.36);
  background: #e7f3f1;
}

.deal-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.64;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .offer-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.32);
    box-shadow: 0 18px 36px rgba(18, 38, 63, 0.1);
  }
}

.hero-banner {
  display: flex;
  justify-content: center;
}

.hero-banner img {
  width: min(100%, 780px);
  max-height: 116px;
  display: block;
  object-fit: contain;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero p {
  max-width: 640px;
  margin: 4px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent-strong);
}

.hero-search {
  width: min(var(--page-max-width), 100%);
  margin: 0 auto 18px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.hero-search label,
legend,
.filters-panel label {
  font-size: 0.9rem;
  font-weight: 900;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input[type="search"],
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 0 13px;
}

button {
  border: 0;
  cursor: pointer;
}

.search-row button,
.filters-panel button,
.watchlist-panel button,
.watchlist-panel a,
.watchlist-button {
  min-height: 46px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  padding: 0 18px;
  font-weight: 900;
}

.filters-panel .secondary-filter-button {
  background: var(--soft);
  color: var(--accent-strong);
}

.affiliate-note {
  color: var(--muted) !important;
  font-size: 0.88rem !important;
  margin: 0 !important;
}

.search-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.currency-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
}

.quick-links,
.page-grid,
.content-area {
  width: min(var(--page-max-width), 100%);
  margin: 0 auto;
}

/* Change this breakpoint if the side artwork should appear sooner or later. */
@media (min-width: 1440px) {
  body::before,
  body::after {
    display: block;
  }
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.quick-links button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(18, 35, 42, 0.04);
  padding: 0 15px;
  font-weight: 900;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.quick-links button:hover,
.quick-links button.is-active {
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: 0 7px 16px rgba(18, 35, 42, 0.08);
}

.quick-links button.is-active {
  background: linear-gradient(180deg, #f2fbf9 0%, #e1f2ef 100%);
  box-shadow:
    inset 0 0 0 1px rgba(15, 118, 110, 0.18),
    0 7px 16px rgba(18, 35, 42, 0.08);
}

.quick-links button:focus-visible {
  outline-offset: 3px;
}

.pc-callout {
  width: min(var(--page-max-width), 100%);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(255, 209, 102, 0.24), transparent 48%),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 26px);
}

.pc-callout-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.pc-callout h2,
.pc-callout p {
  margin: 0;
}

.pc-callout h2 {
  max-width: 720px;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.05;
}

.pc-callout-copy > p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  line-height: 1.6;
}

.pc-callout-note {
  font-weight: 850;
}

.pc-callout-card {
  display: grid;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
}

.pc-callout-state {
  display: grid;
  gap: 11px;
}

.pc-callout-state > strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.pc-callout-state p {
  color: var(--muted);
  line-height: 1.48;
}

.pc-callout-kicker {
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pc-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pc-callout-actions button,
.pc-callout-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
}

.pc-callout-actions button,
.pc-callout-primary {
  background: var(--accent);
  color: white;
}

.pc-callout-secondary {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: white;
  color: var(--accent-strong);
}

.pc-callout-actions button:hover,
.pc-callout-actions a:hover {
  transform: translateY(-1px);
}

.page-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filters-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(15, 118, 110, 0.45) rgba(220, 229, 232, 0.65);
  scrollbar-width: thin;
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(18, 35, 42, 0.08);
}

.filters-panel::-webkit-scrollbar {
  width: 10px;
}

.filters-panel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(220, 229, 232, 0.65);
}

.filters-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(220, 229, 232, 0.65);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.45);
}

.filters-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 95, 88, 0.62);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.panel-heading button {
  min-height: 34px;
  background: var(--soft);
  color: var(--accent-strong);
  padding: 0 12px;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

.pc-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fbfa;
}

.pc-panel-heading,
.pc-actions,
.pc-dialog-header,
.pc-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pc-panel h3 {
  margin: 0;
  font-size: 1.04rem;
}

.text-button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  padding: 0;
}

.pc-empty,
.pc-saved,
.pc-summary {
  display: grid;
  gap: 9px;
}

.pc-summary {
  padding: 10px;
  border-radius: 12px;
  background: white;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.pc-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.pc-management {
  position: relative;
}

.pc-management summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--accent-strong);
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.pc-management summary:focus-visible,
.pc-management button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.3);
  outline-offset: 2px;
}

.pc-management-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.pc-actions button,
.secondary-filter-button,
.pc-dialog-actions button {
  min-height: 34px;
}

.pc-note,
.pc-filter-note,
.pc-disclaimer,
.pc-guidance,
.pc-field-help,
.pc-form-error {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pc-profile-issue,
.pc-form-error {
  color: var(--danger);
}

.pc-guidance {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: var(--soft);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 35, 42, 0.48);
}

.modal-backdrop[hidden] {
  display: none;
}

.pc-dialog {
  width: min(760px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pc-profile-form,
.pc-form-grid {
  display: grid;
  gap: 12px;
}

.pc-form-section {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbfa;
}

.pc-form-section legend {
  padding: 0 4px;
  color: var(--ink);
  font-weight: 900;
}

.pc-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pc-profile-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.pc-profile-form input,
.pc-profile-form select {
  min-width: 0;
  max-width: 100%;
}

.pc-field-help {
  padding: 10px;
  border-radius: 10px;
  background: white;
}

.content-area {
  display: grid;
  gap: 26px;
}

.watchlist-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
}

.system-match-panel {
  display: grid;
  gap: 12px;
}

.system-match-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.system-match-card label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.compatibility-summary {
  justify-self: start;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 900;
}

.system-breakdown {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.system-breakdown dt {
  color: var(--muted);
  font-weight: 900;
}

.system-breakdown dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pc-games-page {
  display: grid;
  gap: 16px;
}

.pc-games-hero,
.pc-games-state,
.pc-games-tools,
.pc-games-summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
  box-shadow: 0 12px 32px rgba(18, 35, 42, 0.07);
}

.pc-games-hero h1,
.pc-games-hero p {
  margin: 0;
}

.pc-games-hero {
  display: grid;
  gap: 6px;
}

.pc-games-tools {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 2fr);
  gap: 14px;
  align-items: start;
}

.pc-games-profile-card,
.pc-games-filters {
  display: grid;
  gap: 12px;
}

.pc-games-filters {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  align-items: end;
}

.pc-games-filters label,
.pc-games-profile-card label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.currency-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 0 10px;
}

.currency-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 0;
}

.currency-input input:focus {
  outline: 0;
}

.currency-input:focus-within {
  outline: 3px solid rgba(15, 118, 110, 0.26);
  outline-offset: 2px;
}

.pc-games-toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 8px 10px;
}

.pc-games-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.pc-games-summary span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 0 11px;
}

.pc-games-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 900;
}

.deal-section {
  display: grid;
  gap: 14px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(18, 35, 42, 0.07);
}

.results-title-block {
  min-width: 0;
}

.results-title-block h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.15;
}

.results-currency-note {
  margin-top: 6px;
}

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.results-toolbar span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 0 11px;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.section-link {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  padding: 0;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-link:hover {
  background: transparent;
  color: var(--accent);
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deal-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(18, 35, 42, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.deal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: var(--shadow);
}

.cover-link {
  display: block;
  aspect-ratio: 16 / 9;
  background: #dfe8ea;
}

.cover-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #dfe8ea;
}

.cover-link img.is-fallback {
  object-fit: cover;
}

.deal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.title-link {
  color: inherit;
  text-decoration: none;
}

.title-link:hover {
  color: var(--accent-strong);
}

.deal-labels,
.deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.deal-label,
.store-label,
.platform-label,
.region-label,
.offer-count-label,
.discount-pill {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.8rem;
  font-weight: 900;
}

.deal-label {
  background: #fff5d8;
  color: #7a5610;
}

.store-label {
  background: #e7f3f1;
  color: var(--accent-strong);
  text-decoration: none;
}

.platform-label {
  background: var(--soft);
  color: var(--muted);
}

.region-label {
  background: var(--soft);
  color: var(--muted);
}

.offer-count-label {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--border);
}

.retailer-label {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.8rem;
  font-weight: 900;
  background: #fff5d8;
  color: #7a5610;
}

.retailer-label[data-store-type="marketplace"] {
  background: #fff5d8;
  color: #7a5610;
}

.retailer-label[data-store-type="unknown"] {
  background: #eef3f5;
  color: #53616c;
}

.retailer-label[hidden] {
  display: none;
}

.deal-card h3 {
  min-height: 42px;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.25;
}

.metacritic-score {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.metacritic-score[hidden] {
  display: none;
}

.compatibility-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.compat-great-fit {
  border-color: rgba(35, 120, 80, 0.32);
  background: #e9f7ee;
  color: var(--good);
}

.compat-meets-minimum {
  border-color: rgba(15, 118, 110, 0.28);
  background: #e7f3f1;
  color: var(--accent-strong);
}

.compat-below-minimum {
  border-color: rgba(168, 85, 36, 0.3);
  background: #fff5d8;
  color: #7a5610;
}

.compat-unknown {
  background: var(--soft);
  color: var(--muted);
}

.compatibility-badge[hidden] {
  display: none;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.current-price {
  display: block;
  font-size: 1.48rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.discount-pill {
  background: #e9f7ee;
  color: var(--good);
  white-space: nowrap;
}

.deal-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 900;
}

.watchlist-button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--accent-strong);
}

.watchlist-button.is-saved {
  border-color: rgba(183, 65, 31, 0.26);
  background: #fff0ea;
  color: var(--danger);
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.results-actions[hidden] {
  display: none;
}

.results-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.results-action-buttons button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--accent-strong);
  padding: 0 13px;
  font-weight: 900;
}

.results-action-buttons button:hover {
  border-color: var(--accent);
  background: #e7f3f1;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
}

.empty-state-rich {
  display: grid;
  gap: 16px;
  text-align: left;
}

.empty-state-rich h3,
.empty-state-rich h4,
.empty-state-rich p {
  margin: 0;
}

.empty-state-rich h3 {
  color: var(--ink);
  font-size: 1.35rem;
}

.empty-state-rich p {
  max-width: 620px;
  line-height: 1.55;
}

.empty-actions,
.empty-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-actions button,
.suggestion-chip {
  border-radius: 12px;
  font-weight: 900;
}

.empty-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  padding: 0 16px;
}

.empty-actions .secondary-empty-button {
  background: var(--soft);
  color: var(--accent-strong);
}

.empty-suggestions {
  padding-top: 4px;
}

.empty-suggestions h4 {
  width: 100%;
  color: var(--ink);
  font-size: 0.95rem;
}

.suggestion-chip {
  display: grid;
  gap: 3px;
  min-height: 58px;
  max-width: 260px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.suggestion-chip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.38);
  outline-offset: 3px;
}

.watchlist-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin-bottom: 24px;
}

.watchlist-panel h2,
.watchlist-panel p {
  margin: 0;
}

.watchlist-panel p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.watchlist-summary {
  min-width: 112px;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(76px, 1fr));
  gap: 10px;
  border-radius: 14px;
  background: #e7f3f1;
  color: var(--accent-strong);
  padding: 12px 14px;
  text-align: center;
}

.watchlist-summary div + div {
  border-left: 1px solid rgba(15, 118, 110, 0.2);
}

.watchlist-summary span {
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.watchlist-summary strong {
  display: block;
  font-size: 1.8rem;
}

.watchlist-items {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.watchlist-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.watchlist-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.watchlist-item.target-met {
  border-color: rgba(18, 115, 61, 0.34);
  background: #f2fbf5;
}

.watchlist-details {
  min-width: 0;
}

.watchlist-details h3,
.watchlist-details p {
  margin: 0;
}

.watchlist-details h3 {
  font-size: 1rem;
}

.watchlist-details p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.watchlist-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 8px;
}

.watchlist-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.watchlist-controls input {
  width: 110px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
}

.watchlist-panel a,
.watchlist-panel button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.watchlist-panel button {
  background: var(--soft);
  color: var(--danger);
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: min(300px, 70vw);
    height: 50px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .pc-callout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }

  .pc-dialog {
    max-height: calc(100vh - 30px);
  }

  .pc-games-tools,
  .pc-games-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  main {
    padding-top: 18px;
  }

  .quick-links {
    flex-wrap: nowrap;
  }

  .deal-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-toolbar {
    justify-content: flex-start;
  }

  .game-hero-card,
  .offer-card {
    grid-template-columns: 1fr;
  }

  .game-hero-card > img {
    max-height: 260px;
  }

  .game-facts span {
    width: 100%;
    box-sizing: border-box;
  }

  .offer-meta {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .offer-meta dd {
    overflow-wrap: anywhere;
  }

  .offer-card .deal-button {
    justify-self: stretch;
    width: 100%;
  }

  .offer-comparison .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pc-form-grid {
    grid-template-columns: 1fr;
  }

  .system-breakdown {
    grid-template-columns: 1fr;
  }

  .hero {
    --hero-min-height: 180px;
    --hero-padding: 14px;
    border-radius: 18px;
  }

  .hero-banner img {
    max-height: 108px;
  }
}

@media (max-width: 560px) {
  main {
    padding: 18px 14px 38px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand-logo {
    width: min(245px, 82vw);
    height: 44px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a,
  .nav-dropdown summary {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.8rem;
  }

  .game-page {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 18px;
    padding-right: 18px;
  }

  .game-hero-card,
  .offer-card,
  .offer-card .deal-button {
    max-width: 100%;
  }

  .game-hero-card > img {
    max-height: 190px;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-menu {
    left: 14px;
    right: 14px;
    width: auto;
  }

  .hero {
    --hero-padding: 14px;
    min-height: auto;
  }

  .hero-banner img {
    max-height: 108px;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-search {
    margin-top: 0;
  }

  .search-row,
  .deal-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .pc-callout-actions button,
  .pc-callout-actions a {
    width: 100%;
  }

  .results-header {
    padding: 13px;
  }

  .results-toolbar {
    width: 100%;
  }

  .results-toolbar span {
    flex: 1 1 100%;
    justify-content: center;
  }

  .watchlist-panel {
    grid-template-columns: 1fr;
  }

  .watchlist-summary {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watchlist-item {
    grid-template-columns: 1fr;
  }

  .watchlist-controls {
    justify-content: flex-start;
  }

  .watchlist-controls label,
  .watchlist-controls input,
  .watchlist-controls a,
  .watchlist-controls button {
    width: 100%;
  }

  .pc-panel-heading,
  .pc-dialog-header,
  .pc-dialog-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-backdrop {
    padding: 10px;
  }
}

