/* ==========================================================================
   NotAnyDeals — Warm Editorial Game Almanac
   Warm Charcoal × Parchment Ivory × Terracotta × Botanical Sage × Honey Gold
   ========================================================================== */

:root {
  --bg-canvas: #151412;
  --bg-elevated: #1d1b18;
  --bg-surface: #23201c;
  --bg-surface-hover: #2a2621;
  --bg-sunken: #11100e;

  --border-subtle: rgba(243, 239, 230, 0.085);
  --border-medium: rgba(243, 239, 230, 0.16);
  --border-strong: rgba(243, 239, 230, 0.28);

  --text-primary: #f3efe6;
  --text-secondary: #b6ad9d;
  --text-muted: #82796c;

  --terracotta: #e06d3b;
  --terracotta-soft: rgba(224, 109, 59, 0.14);
  --terracotta-border: rgba(224, 109, 59, 0.38);

  --sage: #4db37a;
  --sage-soft: rgba(77, 179, 122, 0.13);
  --sage-border: rgba(77, 179, 122, 0.34);

  --gold: #dfb15b;
  --gold-soft: rgba(223, 177, 91, 0.14);
  --gold-border: rgba(223, 177, 91, 0.36);

  --caution: #d96459;
  --caution-soft: rgba(217, 100, 89, 0.12);
  --caution-border: rgba(217, 100, 89, 0.38);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px rgba(8, 7, 5, 0.38);
  --shadow-float: 0 18px 42px rgba(6, 5, 4, 0.56);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(224, 109, 59, 0.08), transparent 65%),
    radial-gradient(ellipse 65% 45% at 88% 0%, rgba(223, 177, 91, 0.06), transparent 60%),
    var(--bg-canvas);
  color: var(--text-primary);
  position: relative;
}

/* Tactile subtle almanac grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(21, 20, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(224, 109, 59, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.16s ease, background-color 0.16s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(243, 239, 230, 0.05);
}

.nav-link.is-active {
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
}

/* Search Box */
.search-wrap {
  position: relative;
  width: clamp(165px, 18vw, 240px);
  flex-shrink: 1;
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.87rem;
  outline: none;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--terracotta-border);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(224, 109, 59, 0.12);
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 390px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  z-index: 80;
}

.search-dropdown:empty {
  display: none;
}

.dropdown-list {
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.14s ease;
}

.dropdown-item:hover,
.dropdown-item.is-kbd-selected {
  background: var(--bg-surface);
}

.dropdown-item.is-kbd-selected {
  box-shadow: inset 2px 0 0 var(--terracotta);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.dropdown-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dropdown-price {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--sage);
  white-space: nowrap;
}

.dropdown-footer {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--terracotta);
  background: var(--bg-sunken);
  border-top: 1px solid var(--border-subtle);
}

/* Segmented Region Selector */
.region-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.region-pill {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.region-pill:hover {
  color: var(--text-primary);
}

.region-pill.is-active {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border-medium);
}

/* Keyshops Visibility Toggle */
.keyshop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.keyshop-toggle:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.keyshop-toggle.is-active {
  background: var(--sage-soft);
  border-color: var(--sage-border);
  color: #8fe0b3;
}

/* --------------------------------------------------------------------------
   Main Layout & Editorial Hero (Home)
   -------------------------------------------------------------------------- */
.main-content {
  padding: 34px 0 64px;
}

.hero-almanac {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.24fr);
  gap: 26px;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-editorial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  text-transform: uppercase;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(77, 179, 122, 0.16);
}

.hero-title {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.55vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-lead {
  margin: 0;
  max-width: 48ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.shield-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.shield-metric {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}

.shield-metric-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
}

.shield-metric-value.is-sage {
  color: #7bd6a2;
}

.shield-metric-value.is-gold {
  color: var(--gold);
}

.shield-metric-label {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Spotlight Card (Right side of Hero) */
.spotlight-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.spotlight-card:hover {
  border-color: var(--terracotta-border);
  transform: translateY(-1px);
}

.spotlight-media {
  position: relative;
  aspect-ratio: 616 / 353;
  background: var(--bg-sunken);
  overflow: hidden;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.spotlight-card:hover .spotlight-media img {
  transform: scale(1.025);
}

.spotlight-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(21, 20, 18, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(223, 177, 91, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
}

.spotlight-discount-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--sage);
  color: #102016;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.88rem;
}

.spotlight-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: space-between;
}

.spotlight-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.24;
  color: var(--text-primary);
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.spotlight-pricing {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.spotlight-price-now {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spotlight-price-was {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  background: var(--terracotta);
  color: #161311;
  font-weight: 700;
  font-size: 0.86rem;
  transition: filter 0.15s ease;
  white-space: nowrap;
}

.spotlight-card:hover .spotlight-cta {
  filter: brightness(1.07);
}

/* --------------------------------------------------------------------------
   Ergonomic Filter Dock
   -------------------------------------------------------------------------- */
.filter-dock {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 13px 16px;
  margin-bottom: 30px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.dock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.dock-row-secondary {
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.dock-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.dock-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dock-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
  letter-spacing: 0.02em;
}

.dock-divider {
  width: 1px;
  height: 22px;
  background: var(--border-subtle);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.filter-chip.is-active {
  background: var(--terracotta-soft);
  border-color: var(--terracotta-border);
  color: #f6b394;
}

.filter-chip.is-sage.is-active {
  background: var(--sage-soft);
  border-color: var(--sage-border);
  color: #8fe0b3;
}

.filter-chip.is-gold.is-active {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold);
}

.dock-summary {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dock-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sort-select {
  height: 31px;
  padding: 0 28px 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.sort-select:focus {
  border-color: var(--terracotta-border);
}

.view-toggle {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.14s ease;
}

.view-btn.is-active {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border-medium);
}

.reset-link {
  display: inline-flex;
  align-items: center;
  height: 31px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta);
  border: 1px solid transparent;
}

.reset-link:hover {
  background: var(--terracotta-soft);
  border-color: var(--terracotta-border);
}

/* --------------------------------------------------------------------------
   Section Headers & Shared Badges
   -------------------------------------------------------------------------- */
.radar-section {
  margin-bottom: 46px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.48rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.section-more {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
  padding-bottom: 2px;
}

.section-more:hover {
  text-decoration: underline;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.pill-atl {
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

.pill-beats-steam {
  background: rgba(224, 109, 59, 0.13);
  border: 1px solid var(--terracotta-border);
  color: #f6b394;
}

.row-thumb,
.detail-cover {
  position: relative;
}

.spotlight-media::after,
.card-art::after,
.low-card-art::after,
.row-thumb::after,
.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(243, 239, 230, 0.11);
}

.pill-momentum {
  background: var(--terracotta-soft);
  border: 1px solid var(--terracotta-border);
  color: #f6b394;
}

.pill-age {
  background: rgba(21, 20, 18, 0.82);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  backdrop-filter: blur(4px);
}

.pill-sub,
.badge-gamepass,
.badge-sub {
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
  color: #8fe0b3;
}

.pill-sub.sub-ea,
.badge-eaplay {
  background: var(--terracotta-soft);
  border: 1px solid var(--terracotta-border);
  color: #f6b394;
}

.pill-sub.sub-ubi,
.badge-ubisoft {
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

.discount-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--sage);
  color: #0e1c14;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.discount-chip.is-gold {
  background: var(--gold);
  color: #19140b;
}

.price-was {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-now {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}

.store-chip {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.store-chip.is-keyshop {
  color: var(--caution);
}

/* --------------------------------------------------------------------------
   Section Layout 1: Ergonomic Scannable Deal Rows (Trending + Compact View)
   -------------------------------------------------------------------------- */
.deal-rows {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.deal-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1.8fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.14s ease;
}

.deal-row:last-child {
  border-bottom: none;
}

.deal-row:hover {
  background: var(--bg-surface);
}

.row-thumb {
  width: 112px;
  height: 58px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

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

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

.row-title {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.14s ease;
}

.row-title:hover {
  color: var(--terracotta);
}

.row-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.row-telemetry {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.telemetry-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 74px;
}

.telemetry-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
}

.telemetry-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.row-pricing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 245px;
}

.row-price-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.row-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.row-store-cta {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.77rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.row-store-cta:hover {
  border-color: var(--terracotta-border);
  background: var(--terracotta-soft);
  color: #f6b394;
}

/* --------------------------------------------------------------------------
   Section Layout 2: 3-Column HD Capsule Shelf (Hot Releases & Cards Grid)
   -------------------------------------------------------------------------- */
.almanac-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.almanac-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.almanac-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card-art {
  position: relative;
  aspect-ratio: 616 / 353;
  background: var(--bg-sunken);
  overflow: hidden;
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.almanac-card:hover .card-art img {
  transform: scale(1.03);
}

.card-art-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.card-body {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.28;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-telemetry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ccu-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ccu-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--border-subtle);
}

.card-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Section Layout 3: 2-Column Editorial Value Cards (Real Historical Lows)
   -------------------------------------------------------------------------- */
.lows-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.low-card {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.low-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-surface);
}

.low-card-art {
  position: relative;
  height: 100%;
  min-height: 136px;
  background: var(--bg-sunken);
}

.low-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.low-card-body {
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.low-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.07rem;
  line-height: 1.25;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.low-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.low-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Showcase Page Header
   -------------------------------------------------------------------------- */
.page-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.025em;
}

.page-lead {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.count-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.empty-state {
  padding: 36px 24px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.empty-state p {
  margin: 0 0 12px;
}

/* --------------------------------------------------------------------------
   Game Detail Page (/game/{slug}) — Calm Buyer's Guide
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

.detail-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-sunken);
  box-shadow: var(--shadow-card);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 616 / 353;
  object-fit: cover;
}

.detail-intro h1 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.shield-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
  color: #8fe0b3;
  font-size: 0.78rem;
  font-weight: 600;
}

.shield-blocked-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--caution-soft);
  border: 1px solid var(--caution-border);
  color: #f2a29b;
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-desc {
  margin: 10px 0 18px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Buy / Wait Verdict Card */
.verdict-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.verdict-card.is-buy {
  border-color: var(--sage-border);
  background: linear-gradient(135deg, rgba(77, 179, 122, 0.11), var(--bg-elevated) 60%);
}

.verdict-card.is-gold {
  border-color: var(--gold-border);
  background: linear-gradient(135deg, rgba(223, 177, 91, 0.12), var(--bg-elevated) 60%);
}

.verdict-card.is-wait {
  border-color: var(--terracotta-border);
  background: linear-gradient(135deg, rgba(224, 109, 59, 0.10), var(--bg-elevated) 60%);
}

.verdict-copy {
  flex: 1;
  min-width: 240px;
}

.verdict-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.verdict-card.is-buy .verdict-eyebrow {
  color: #7bd6a2;
}

.verdict-card.is-gold .verdict-eyebrow {
  color: var(--gold);
}

.verdict-card.is-wait .verdict-eyebrow {
  color: #f6b394;
}

.verdict-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.verdict-explanation {
  margin: 5px 0 0;
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: var(--terracotta);
  color: #161311;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
}

/* Detail Two-Column Workspace */
.detail-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

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

.panel-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
}

.offers-table {
  width: 100%;
  border-collapse: collapse;
}

.offers-table th {
  text-align: left;
  padding: 8px 10px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.offers-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.offers-table tr:last-child td {
  border-bottom: none;
}

.offers-table th.is-right,
.offers-table td.is-right {
  text-align: right;
}

.offer-store-name {
  font-weight: 600;
  color: var(--text-primary);
}

.offer-edition {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Separated Keyshops Caution Block */
.keyshops-panel {
  background: rgba(217, 100, 89, 0.045);
  border: 1px dashed var(--caution-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.keyshop-warning-box {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--caution-soft);
  border: 1px solid var(--caution-border);
  color: #f3c1bc;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

/* Charts */
.charts-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-canvas-wrap {
  position: relative;
  height: 240px;
  width: 100%;
}

/* Sticky At-a-Glance Sidebar */
.glance-sidebar {
  position: sticky;
  top: 86px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.glance-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.glance-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
}

.glance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.87rem;
}

.glance-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.glance-row dt {
  color: var(--text-muted);
}

.glance-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* --------------------------------------------------------------------------
   Search Page & 404
   -------------------------------------------------------------------------- */
.search-results-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.not-found-card {
  max-width: 560px;
  margin: 48px auto;
  padding: 36px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.not-found-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.9rem;
}

.not-found-card p {
  color: var(--text-secondary);
  margin: 0 0 20px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 42px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   HTMX Subtle Progress State
   -------------------------------------------------------------------------- */
.htmx-indicator {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1160px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
    row-gap: 10px;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .search-wrap {
    flex: 1;
    width: auto;
    max-width: 340px;
  }
}

@media (max-width: 1080px) {
  .hero-almanac {
    grid-template-columns: 1fr;
  }

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

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

  .detail-hero,
  .detail-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .glance-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .search-wrap {
    flex: 1 1 220px;
    max-width: none;
  }

  .deal-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .row-thumb {
    width: 88px;
    height: 48px;
  }

  .row-telemetry,
  .row-pricing {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .telemetry-stat {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .almanac-grid {
    grid-template-columns: 1fr;
  }

  .shield-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .shield-metric {
    padding: 7px 8px;
  }

  .shield-metric-value {
    font-size: 0.96rem;
  }

  .shield-metric-label {
    font-size: 0.68rem;
  }

  .hero-lead,
  .section-subtitle {
    display: none;
  }

  .low-card {
    grid-template-columns: 1fr;
  }

  .low-card-art {
    aspect-ratio: 616 / 353;
  }

  .header-left {
    flex-wrap: wrap;
    gap: 8px;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-link,
  .filter-chip,
  .ccu-pill,
  .region-btn,
  .view-btn,
  .prefs-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .hero-almanac {
    padding: 18px 0 14px;
    gap: 14px;
  }

  .hero-copy h1 {
    font-size: 1.55rem;
  }

  .hero-copy p {
    font-size: 0.92rem;
  }

  .detail-panel,
  .keyshops-panel {
    padding: 14px;
  }

  .offers-table .col-regular,
  .offers-table .col-low,
  .offers-table .col-status {
    display: none;
  }

  .offers-table th,
  .offers-table td {
    padding: 10px 6px;
  }

  .price-alert-form {
    flex-direction: column;
    align-items: stretch;
  }

  .alert-input-email,
  .alert-price-wrap,
  .alert-submit {
    width: 100%;
    flex: 0 0 auto;
    min-height: 44px;
  }
}

/* --------------------------------------------------------------------------
   MENA Context, Playtime Cost/Hr & Hover Video/Screenshot Previews
   -------------------------------------------------------------------------- */
.mena-context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(223, 177, 91, 0.08);
  border: 1px solid var(--gold-border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.mena-context-bar strong {
  color: var(--gold);
  font-weight: 700;
}

.price-approx {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.playtime-chip {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hltb-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.hltb-link:hover {
  border-color: var(--terracotta-border);
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.card-preview-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--bg-sunken);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  overflow: hidden;
}

.card-preview-layer.is-visible {
  opacity: 1;
}

.card-preview-video,
.card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-preview-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(17, 16, 14, 0.96), rgba(17, 16, 14, 0.72) 62%, transparent);
  font-size: 0.76rem;
  line-height: 1.38;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hover-popover {
  position: fixed;
  z-index: 85;
  width: 344px;
  pointer-events: none;
  background: var(--bg-elevated);
  border: 1px solid var(--terracotta-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  visibility: hidden;
}

.hover-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.popover-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-sunken);
  overflow: hidden;
}

.popover-media video,
.popover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.popover-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.popover-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.popover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.popover-meta strong {
  color: #8fe0b3;
  font-weight: 600;
}

.detail-media-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-cover video {
  width: 100%;
  aspect-ratio: 616 / 353;
  object-fit: cover;
  display: block;
}

.detail-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gallery-thumb {
  position: relative;
  width: 78px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-sunken);
  cursor: pointer;
  transition: border-color 0.14s ease, transform 0.14s ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--terracotta);
  transform: translateY(-1px);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-clip-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--terracotta-border);
  border-radius: var(--radius-sm);
  background: var(--terracotta-soft);
  color: #f6b394;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.detail-clip-toggle:hover,
.detail-clip-toggle.is-playing {
  background: var(--terracotta);
  color: #161311;
}

@media (hover: none), (pointer: coarse) {
  .hover-popover,
  .card-preview-layer {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Honest Tracking Maturity, Store Comparison Bars & CCU Pulse Strip
   -------------------------------------------------------------------------- */
.pill-deep-cut {
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
  color: #8fe0b3;
}

.maturity-banner {
  margin: 0 0 18px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: rgba(223, 177, 91, 0.08);
  border: 1px solid var(--gold-border);
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

.maturity-banner strong {
  color: var(--gold);
}

.ccu-pulse-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.ccu-pulse-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.ccu-pulse-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.ccu-pulse-value {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tracking-note {
  margin: 0;
  font-size: 0.81rem;
  color: var(--text-muted);
}

.price-benchmark-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.benchmark-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) minmax(140px, 2fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.benchmark-row.is-best {
  border-color: var(--sage-border);
  background: rgba(77, 179, 122, 0.07);
}

.benchmark-store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.benchmark-store-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.benchmark-bar-track {
  position: relative;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.benchmark-bar-msrp {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(243, 239, 230, 0.14);
  border-radius: var(--radius-pill);
}

.benchmark-bar-fill {
  position: relative;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--terracotta);
}

.benchmark-bar-fill.is-best {
  background: linear-gradient(90deg, var(--sage), #7cd4a2);
}

.benchmark-price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 120px;
}

.benchmark-price-now {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.tracking-status-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
}

.tracking-status-box p {
  margin: 0 0 10px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.history-verify-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.verify-inline-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta);
}

.verify-inline-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   On-Site Price Drop Alert Box (Zero Competitor Leakage)
   -------------------------------------------------------------------------- */
.price-alert-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(224, 109, 59, 0.06);
  border: 1px solid var(--terracotta-border);
}

.price-alert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.price-alert-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.price-alert-sub {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.alert-input-email {
  flex: 1 1 210px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-sunken);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.alert-input-email:focus,
.alert-input-price:focus {
  outline: none;
  border-color: var(--terracotta);
}

.alert-price-wrap {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-sunken);
  gap: 4px;
}

.alert-currency {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.alert-input-price {
  width: 78px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.alert-submit {
  height: 36px;
  padding: 0 14px;
  font-size: 0.83rem;
}

.alert-feedback:empty {
  display: none;
}

.alert-feedback-ok,
.alert-feedback-err {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.4;
}

.alert-feedback-ok {
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
  color: #8fe0b3;
}

.alert-feedback-err {
  background: var(--caution-soft);
  border: 1px solid var(--caution-border);
  color: #f3a199;
}

@media (max-width: 720px) {
  .ccu-pulse-strip {
    grid-template-columns: 1fr;
  }

  .benchmark-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .benchmark-price {
    justify-content: flex-start;
  }

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

/* --------------------------------------------------------------------------
   Stage 1-4 Additions: Mobile Table Scroll, Direct CTAs, Pagination & Legal
   -------------------------------------------------------------------------- */
.detail-main,
.detail-panel,
.keyshops-panel,
.glance-sidebar {
  min-width: 0;
  max-width: 100%;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.card-art,
.low-card-art {
  display: block;
}

.card-title-link,
.card-price-block {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover {
  color: var(--terracotta);
}

.card-store-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.card-store-cta:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(224, 109, 59, 0.12);
}

.btn-table-cta {
  padding: 7px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.spotlight-buy-cta {
  padding: 9px 14px;
  font-size: 0.84rem;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.load-more-btn {
  min-height: 42px;
  padding: 10px 22px;
  font-weight: 600;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-disclosure {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  flex-wrap: wrap;
}

.alert-privacy-note {
  margin: 8px 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.alert-privacy-note a {
  color: var(--sage);
  text-decoration: underline;
}

.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 0 36px;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 4px 0 10px;
}

.legal-lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 72ch;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.legal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.legal-card a {
  color: var(--sage);
  font-weight: 600;
}

.legal-status-card {
  max-width: 600px;
  margin: 24px auto;
}

/* --------------------------------------------------------------------------
   Visual-First Redesign: Prominent Artwork, Frosted Badges & Tidy Copy
   -------------------------------------------------------------------------- */
.spotlight-media-link {
  display: block;
}

.card-art::before,
.low-card-art::before,
.spotlight-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(14, 13, 12, 0.42) 0%,
    rgba(14, 13, 12, 0) 32%,
    rgba(14, 13, 12, 0) 64%,
    rgba(14, 13, 12, 0.72) 100%
  );
}

.card-art-top,
.spotlight-ribbon,
.spotlight-discount-pill {
  z-index: 2;
}

.card-art-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.card-art-bottom {
  position: absolute;
  bottom: 9px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.card-preview-layer {
  z-index: 5;
}

.art-glass-pill {
  background: rgba(18, 17, 15, 0.86) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.discount-chip {
  padding: 4px 9px;
  font-size: 0.86rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.card-body {
  padding: 13px 15px;
  gap: 10px;
}

.card-title {
  font-size: 1.04rem;
  -webkit-line-clamp: 1;
}

.card-telemetry,
.spotlight-meta,
.low-card-meta {
  margin-top: 6px;
  gap: 6px;
  font-size: 0.81rem;
}

.meta-dot {
  color: var(--text-muted);
}

.price-now {
  font-size: 1.1rem;
}

.card-store-cta {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  font-size: 0.77rem;
  font-weight: 600;
}

.low-card {
  grid-template-columns: 248px minmax(0, 1fr);
}

.deal-row {
  grid-template-columns: 152px minmax(0, 1.8fr) minmax(0, 1fr) auto;
  padding: 11px 16px;
}

.row-thumb {
  width: 152px;
  height: 85px;
}

.mobile-filter-toggle {
  display: none;
}

@media (max-width: 820px) {
  .deal-row {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .row-thumb {
    width: 116px;
    height: 65px;
  }
}

@media (max-width: 720px) {
  .mobile-filter-toggle {
    display: inline-flex;
  }

  .filter-dock {
    padding: 10px 12px;
    margin-bottom: 18px;
  }

  .filter-dock:not(.is-expanded) .dock-collapsible {
    display: none;
  }

  .dock-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .sort-control .dock-label {
    display: none;
  }

  .sort-select {
    padding: 0 24px 0 9px;
    min-height: 38px;
  }
}

@media (max-width: 620px) {
  .low-card {
    grid-template-columns: 1fr;
  }

  .header-right {
    position: relative;
  }

  .search-wrap {
    position: static;
  }

  .search-dropdown {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }

  .verdict-cta {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .region-pill,
  .keyshop-toggle {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }
}

.card-actions,
.row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.card-inspect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.card-inspect-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.footer-hubs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 0.78rem;
}

.footer-hubs a {
  color: var(--text-secondary);
}

.footer-hubs a:hover {
  color: var(--terracotta);
}
