:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #697386;
  --line: #e5e7ef;
  --paper: #f4f6fb;
  --panel: #ffffff;
  --mint: #caefe0;
  --green: #6842ff;
  --green-dark: #4f2ee8;
  --coral: #ff6b6b;
  --gold: #ffd166;
  --sky: #40c4ff;
  --violet: #8b5cf6;
  --sidebar: #111827;
  --sidebar-soft: #1b2434;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.14);
  --soft-shadow: 0 12px 30px rgba(17, 24, 39, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 209, 102, 0.9);
  outline-offset: 3px;
}

.topbar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  width: 236px;
  margin: 0;
  padding: 22px 14px;
  border: 0;
  border-radius: 0;
  background: var(--sidebar);
  color: white;
  box-shadow: 12px 0 32px rgba(17, 24, 39, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #7c5cff, #4f2ee8);
  color: white;
}

nav {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

nav a {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  text-decoration: none;
}

nav a:hover {
  background: var(--sidebar-soft);
  color: white;
}

nav a.active-nav {
  background: var(--green-dark);
  color: white;
}

.sidebar-upgrade {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6842ff, #16a34a);
  color: white;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(104, 66, 255, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sidebar-upgrade span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-upgrade strong {
  font-size: 1rem;
}

.sidebar-upgrade:hover,
.hero-upgrade:hover {
  box-shadow: 0 22px 44px rgba(104, 66, 255, 0.32);
  transform: translateY(-1px);
}

.side-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-categories::before {
  padding: 0 13px 6px;
  color: #7d8ba1;
  content: "Categories";
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-categories a {
  padding: 9px 13px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.9rem;
  text-decoration: none;
}

.side-categories a:hover {
  background: var(--sidebar-soft);
  color: white;
}

main {
  min-height: 100vh;
  margin-left: 236px;
  padding: 20px clamp(18px, 3vw, 34px) 34px;
  overflow: hidden;
}

.search-strip {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 18px;
  background: linear-gradient(180deg, var(--paper) 72%, rgba(244, 246, 251, 0));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 390px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 209, 102, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(104, 66, 255, 0.94), rgba(38, 47, 92, 0.95)),
    #4f2ee8;
  color: white;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 850px;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-fineprint {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action {
  border: 1px solid white;
  background: white;
  color: #4f2ee8;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.2);
}

.secondary-action {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.hero-upgrade {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.section-copy {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.search-panel {
  flex: 1;
  max-width: none;
  margin-top: 0;
}

.search-panel label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  font-weight: 750;
}

.search-row {
  display: flex;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.search-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
}

.search-row button {
  width: 58px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.7rem;
}

.search-row button:hover {
  color: var(--coral);
}

.hero-board {
  position: relative;
  min-height: 310px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.pixel-scene {
  position: absolute;
  inset: 30px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 10px;
  opacity: 0.95;
  transform: rotate(-5deg) scale(1.02);
}

.tile,
.spark {
  border: 1px solid rgba(24, 35, 31, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(24, 35, 31, 0.12);
}

.tile {
  min-height: 48px;
}

.t1 {
  grid-column: 1 / 4;
  grid-row: 2 / 4;
  background: var(--coral);
}

.t2 {
  grid-column: 4 / 7;
  grid-row: 1 / 3;
  background: var(--gold);
}

.t3 {
  grid-column: 2 / 5;
  grid-row: 4 / 6;
  background: var(--sky);
}

.t4 {
  grid-column: 5 / 9;
  grid-row: 4 / 7;
  background: var(--mint);
}

.t5 {
  grid-column: 1 / 3;
  grid-row: 6 / 8;
  background: var(--violet);
}

.t6 {
  grid-column: 3 / 5;
  grid-row: 7 / 9;
  background: white;
}

.t7 {
  grid-column: 7 / 9;
  grid-row: 2 / 4;
  background: var(--green);
}

.t8 {
  grid-column: 5 / 7;
  grid-row: 7 / 9;
  background: var(--coral);
}

.spark {
  width: 24px;
  height: 24px;
  background: var(--gold);
  border-radius: 50%;
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: min(245px, 52%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(31, 45, 40, 0.13);
  backdrop-filter: blur(18px);
}

.floating-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-card strong {
  display: block;
  font-size: 1rem;
}

.card-one {
  top: 34px;
  left: 28px;
}

.card-two {
  right: 26px;
  bottom: 28px;
}

.s1 {
  grid-column: 1;
  grid-row: 1;
}

.s2 {
  grid-column: 8;
  grid-row: 8;
}

.s3 {
  grid-column: 7;
  grid-row: 6;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  margin: 18px 0 0;
  padding: 0;
  border: 1px solid rgba(24, 35, 31, 0.08);
  border-radius: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.quick-stats div {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid rgba(24, 35, 31, 0.1);
  border: 0;
  border-radius: 0;
  background: white;
}

.quick-stats div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  content: "";
  background: var(--green);
}

.quick-stats div:nth-child(2)::before {
  background: var(--gold);
}

.quick-stats div:nth-child(3)::before {
  background: var(--coral);
}

.stat-kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-stats strong {
  display: block;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
}

.quick-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.quick-stats .stat-kicker {
  margin: 0 0 10px;
  color: var(--green);
}

.quick-stats div:nth-child(3) strong {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.catalog-section,
.collections,
.submit-section {
  width: 100%;
  margin-inline: auto;
  padding: clamp(48px, 8vw, 88px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 18px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.view-tools,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.view-button,
.filter,
.submit-link {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.view-button,
.filter {
  min-height: 42px;
  padding: 0 14px;
}

.view-button.active,
.filter.active {
  border-color: var(--ink);
  background: var(--green-dark);
  color: white;
  box-shadow: 0 12px 24px rgba(16, 42, 34, 0.16);
}

.view-button:hover,
.filter:hover,
.submit-link:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 42, 34, 0.34);
}

.filters {
  margin-bottom: 28px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

.game-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.game-card:hover,
.game-card.is-featured {
  border-color: rgba(36, 120, 94, 0.38);
  box-shadow: 0 24px 54px rgba(31, 45, 40, 0.16);
  transform: translateY(-4px);
}

.game-card.is-featured {
  outline: 3px solid rgba(242, 193, 78, 0.55);
  outline-offset: 3px;
}

.game-card.game-locked {
  position: relative;
}

.game-card.game-locked .game-art,
.game-card.game-locked .game-body {
  filter: blur(8px) saturate(0.38);
  opacity: 0.2;
}

.game-lock {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 20px;
  background: rgba(17, 24, 39, 0.78);
  color: white;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(7px);
}

.game-lock strong {
  font-size: 1.35rem;
  line-height: 1.05;
}

.game-lock span {
  font-weight: 750;
}

.game-art {
  position: relative;
  display: grid;
  min-height: 142px;
  place-items: center;
  color: white;
  font-size: 2.2rem;
  font-weight: 900;
  isolation: isolate;
}

.game-art::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.32) 0 9%, transparent 10%),
    radial-gradient(circle at 85% 75%, rgba(24, 35, 31, 0.18) 0 13%, transparent 14%);
}

.game-logo {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  object-fit: contain;
  border: 10px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(24, 35, 31, 0.25);
}

.game-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-initials {
  position: relative;
  z-index: 2;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(24, 35, 31, 0.62);
  box-shadow: 0 10px 28px rgba(24, 35, 31, 0.2);
  backdrop-filter: blur(6px);
}

.game-source {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 28px);
  overflow: hidden;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 35, 31, 0.68);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-art.has-image {
  place-items: center;
}

.game-art.has-image .game-initials {
  display: none;
}

.game-art.has-cover .game-logo,
.game-art.has-cover .game-initials {
  display: none;
}

.game-art.has-cover::before {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.03), rgba(17, 24, 39, 0.38));
}

.game-art.image-failed {
  place-items: center;
}

.game-art.image-failed .game-initials {
  width: 62px;
  height: 62px;
  margin: 0;
  padding: 0;
  font-size: 2.2rem;
}

.game-art.image-failed .game-source {
  display: none;
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4f0;
  color: var(--green);
  font-weight: 800;
}

.game-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.game-card p {
  display: none;
  color: var(--muted);
  line-height: 1.55;
}

.game-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.play-link,
.info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.play-link {
  flex: 1;
  background: var(--green-dark);
  color: white;
  box-shadow: 0 10px 22px rgba(104, 66, 255, 0.18);
}

.info-link {
  width: 42px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.play-link:hover,
.info-link:hover {
  transform: translateY(-1px);
}

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

.games-grid.compact .game-card {
  min-height: 0;
  flex-direction: row;
}

.games-grid.compact .game-art {
  width: 128px;
  min-height: auto;
  flex: 0 0 128px;
  font-size: 1.5rem;
}

.games-grid.compact .game-logo {
  width: 58px;
  height: 58px;
  border-width: 8px;
  border-radius: 14px;
}

.games-grid.compact .game-source {
  display: none;
}

.games-grid.compact .game-initials {
  height: 30px;
  font-size: 0.78rem;
}

.games-grid.compact .game-body {
  padding: 14px;
}

.games-grid.compact .game-card p {
  display: none;
}

.empty-state {
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  text-align: center;
}

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

.collection-grid article,
.submit-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.collection-grid article {
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.collection-grid article:hover {
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
  transform: translateY(-2px);
}

.collection-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 16px;
  background: var(--mint);
  color: var(--green);
  font-weight: 900;
}

.collection-grid p,
.submit-section p,
footer p {
  color: var(--muted);
  line-height: 1.65;
}

.submit-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto clamp(48px, 8vw, 88px);
  padding: clamp(28px, 5vw, 48px);
}

.deals-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: center;
  min-height: 330px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 209, 102, 0.28), transparent 28%),
    linear-gradient(135deg, #111827, #4f2ee8 70%, #7c5cff);
  color: white;
  box-shadow: var(--shadow);
}

.deals-hero h1 {
  max-width: 860px;
}

.deals-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.7;
}

.deal-status-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.deal-status-card span,
.plan-badge {
  display: block;
  margin-bottom: 8px;
  color: #a7f3d0;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deal-status-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: 2.2rem;
}

.deal-status-card small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.deal-status-card button,
.deal-actions button,
.plan-card button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: white;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 850;
}

.deal-status-card button:disabled,
.plan-card button:disabled {
  cursor: default;
  opacity: 0.72;
}

.deal-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 12px;
  align-items: end;
  padding: 0 0 18px;
  margin-top: 20px;
  background: linear-gradient(180deg, var(--paper) 72%, rgba(244, 246, 251, 0));
}

.deal-toolbar label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.deal-toolbar select {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.deal-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.deals-stats {
  margin-top: 0;
}

.deal-notice {
  color: var(--muted);
  font-weight: 750;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.deal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.deal-card:hover,
.trend-card:hover,
.plan-card:hover {
  border-color: rgba(104, 66, 255, 0.24);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
  transform: translateY(-2px);
}

.deal-cover {
  position: relative;
  height: 128px;
  overflow: hidden;
  background: var(--sidebar);
}

.deal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-cover span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #22c55e;
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
}

.deal-body {
  padding: 14px;
}

.deal-body h3 {
  min-height: 46px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.15;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.price-row strong {
  color: #16a34a;
  font-size: 1.45rem;
}

.price-row span {
  color: var(--muted);
  text-decoration: line-through;
}

.save-row {
  margin: -4px 0 12px;
  color: #16a34a;
  font-size: 0.9rem;
  font-weight: 850;
}

.deal-actions {
  display: grid;
  grid-template-columns: 1fr repeat(2, auto);
  gap: 8px;
}

.deal-actions button {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
}

.locked-deal .deal-body,
.locked-deal .deal-cover {
  filter: blur(8px) saturate(0.38);
  opacity: 0.2;
}

.deal-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 5px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(7px);
  color: white;
  text-align: center;
  text-decoration: none;
}

.deal-lock strong {
  font-size: 1.35rem;
  line-height: 1.05;
}

.saved-section,
.plans-section,
.trending-section {
  width: 100%;
  padding: clamp(40px, 7vw, 70px) 0 0;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.trend-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.trend-cover {
  position: relative;
  height: 132px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green), var(--sidebar));
}

.trend-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-generated-cover {
  z-index: 0;
}

.trend-real-cover {
  z-index: 1;
}

.trend-cover span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.trend-body {
  padding: 14px;
}

.trend-body h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.trend-body p {
  min-height: 72px;
  color: var(--muted);
  line-height: 1.45;
}

.trend-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.trend-price strong {
  color: #16a34a;
  font-size: 1.2rem;
}

.trend-price span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.trend-meta {
  display: grid;
  gap: 10px;
}

.trend-meta span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.trend-meta button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--green-dark);
  color: white;
  cursor: pointer;
  font-weight: 850;
}

.trend-meta button.tracking-active,
.trend-meta button:disabled {
  background: #16a34a;
}

.saved-section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.saved-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 78px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.saved-list span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--green-dark);
  font-weight: 800;
}

.saved-list p {
  margin: 0;
  color: var(--muted);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.featured-plan {
  border-color: rgba(104, 66, 255, 0.32);
  box-shadow: 0 22px 54px rgba(104, 66, 255, 0.14);
}

.plan-card h3 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.plan-card p,
.plan-card li {
  color: var(--muted);
  line-height: 1.55;
}

.plan-card ul {
  padding-left: 20px;
}

.plan-card .stripe-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(104, 66, 255, 0.1);
  color: #4f2ee8;
  font-weight: 850;
}

.plan-card .primary-action {
  width: 100%;
  margin-top: 10px;
  background: var(--green-dark);
  color: white;
}

.submit-section > div {
  max-width: 720px;
}

.legal-hero {
  min-height: 310px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(64, 196, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #111827, #4f2ee8 72%, #16a34a);
  color: white;
  box-shadow: var(--shadow);
}

.legal-hero h1 {
  max-width: 900px;
}

.legal-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.7;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(40px, 7vw, 70px) 0 0;
}

.legal-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.legal-card p {
  color: var(--muted);
  line-height: 1.65;
}

.submit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  white-space: nowrap;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-left: 236px;
  padding: 28px clamp(18px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

footer strong {
  display: block;
  margin-bottom: 6px;
}

footer p {
  max-width: 860px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(430px, 100%);
}

.footer-links a {
  width: auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-links a:hover {
  border-color: rgba(104, 66, 255, 0.28);
  color: var(--green-dark);
}

@media (max-width: 1060px) {
  .hero,
  .deals-hero,
  .collection-grid,
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-board {
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    padding: 12px;
    border-radius: 0;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
  }

  .brand {
    padding-bottom: 10px;
  }

  nav {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    overflow-x: auto;
  }

  nav a {
    width: auto;
    flex: 0 0 auto;
  }

  .sidebar-upgrade {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
  }

  .sidebar-upgrade span {
    display: none;
  }

  .side-categories {
    display: none;
  }

  main,
  footer {
    margin-left: 0;
  }

  main {
    padding: 16px;
  }

  .search-strip {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .deal-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .hero,
  .deals-hero,
  .collection-grid,
  .quick-stats,
  .legal-grid {
    grid-template-columns: 1fr;
  }

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

  .deals-hero {
    padding: 20px;
  }

  .hero-board {
    min-height: 300px;
  }

  .section-heading,
  .submit-section,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
    min-width: 0;
  }

  .games-grid.compact .game-card {
    flex-direction: column;
  }

  .games-grid.compact .game-art {
    width: 100%;
    min-height: 110px;
    flex-basis: auto;
  }

  .submit-section {
    width: 100%;
  }

  .saved-section,
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .filter {
    flex: 1 1 auto;
  }

  .hero-board {
    min-height: 250px;
  }
}
