:root {
  --bg: #06070d;
  --bg-soft: #0d1120;
  --panel: rgba(12, 17, 30, 0.88);
  --panel-strong: rgba(9, 13, 24, 0.96);
  --panel-light: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4efe6;
  --muted: #b5bfd3;
  --muted-strong: #d2d7e4;
  --gold: #f0bd62;
  --pink: #ff84c9;
  --cyan: #91e8ff;
  --lime: #98f0a2;
  --danger: #ff7869;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 120, 105, 0.18), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(145, 232, 255, 0.15), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 132, 201, 0.12), transparent 26%),
    linear-gradient(150deg, #04050a 0%, #090d17 45%, #11182a 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 92%);
}

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

a {
  color: inherit;
}

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

.announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.announcement-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(240, 189, 98, 0.12), transparent 42%),
    rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(14px);
}

.announcement-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 32px 28px 28px;
  border-radius: 30px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 32%),
    rgba(9, 13, 24, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.announcement-panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 189, 98, 0.16), transparent 70%);
  pointer-events: none;
}

.announcement-panel h2 {
  position: relative;
  z-index: 1;
  margin: 10px 0 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
}

.announcement-panel p {
  position: relative;
  z-index: 1;
}

.announcement-panel #announcement-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 46ch;
}

.announcement-credit {
  margin: 16px 0 0;
  color: var(--muted-strong);
}

.announcement-credit strong {
  color: var(--gold);
}

.announcement-actions {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.announcement-actions .button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.page-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

main [id] {
  scroll-margin-top: 112px;
}

.topbar,
.hero,
.signal-strip,
.showcase-section,
.catalog-section,
.notes-section {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 22px;
  border-radius: 24px;
  position: sticky;
  top: 12px;
  z-index: 30;
}

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

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240, 189, 98, 0.98), rgba(255, 120, 105, 0.8)),
    #161d30;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.2),
    0 12px 28px rgba(255, 120, 105, 0.24);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(10, 13, 22, 0.82);
  border-radius: 99px;
}

.brand-mark::before {
  width: 25px;
  height: 4px;
  left: 10px;
  top: 21px;
}

.brand-mark::after {
  width: 4px;
  height: 25px;
  left: 21px;
  top: 10px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.hero h1,
.section-heading h2,
.featured-name,
.showcase-card h3,
.catalog-card h3,
.detail-name,
.signal-card h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.update-pill,
.badge,
.status-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.update-pill {
  margin: 0;
  color: #12141a;
  background: linear-gradient(135deg, var(--gold), #ffe1a0);
  font-weight: 800;
}

.topnav {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav a,
.button,
.chip,
.text-button,
.source-button,
.showcase-card,
.catalog-card {
  transition: 180ms ease;
}

.topnav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero,
.showcase-section,
.catalog-section,
.notes-section {
  border-radius: 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 22px;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 189, 98, 0.16), transparent 72%);
  pointer-events: none;
}

.eyebrow,
.panel-label,
.mini-label {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(3.5rem, 8vw, 5.7rem);
  line-height: 0.92;
}

.hero-text,
.section-heading p,
.signal-card p,
.showcase-card p,
.catalog-card p,
.detail-copy p,
.detail-stat span,
.notes-grid p,
.results-bar p,
.footer p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 24px;
}

.button,
.source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: #12141a;
  background: linear-gradient(135deg, var(--gold), #ffe1a0);
}

.button.secondary,
.source-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button:hover,
.button:focus-visible,
.source-button:hover,
.source-button:focus-visible,
.chip:hover,
.chip:focus-visible,
.text-button:hover,
.text-button:focus-visible,
.showcase-card:hover,
.catalog-card:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card,
.signal-card,
.showcase-card,
.catalog-card,
.detail-card,
.notes-grid article {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.04);
}

.stat-card {
  padding: 16px;
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-panel {
  display: flex;
}

.featured-card,
.detail-card {
  --accent: #ff84c9;
  width: 100%;
}

.featured-card::after,
.detail-card::after,
.showcase-card::after,
.catalog-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 32%, transparent), transparent 72%);
  pointer-events: none;
}

.featured-card::after,
.detail-card::after {
  top: -60px;
  right: -50px;
}

.showcase-card::after,
.catalog-card::after {
  right: -65px;
  bottom: -80px;
}

.featured-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(7, 10, 18, 0.76);
}

.featured-visual,
.showcase-media,
.card-media,
.detail-visual {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.featured-visual {
  min-height: 280px;
  padding: 28px;
}

.showcase-media {
  min-height: 220px;
  padding: 24px;
  margin-bottom: 16px;
}

.card-media {
  min-height: 220px;
  padding: 24px;
}

.detail-visual {
  min-height: 290px;
  padding: 28px;
}

.item-image {
  width: min(100%, 280px);
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.34));
}

.detail-visual .item-image {
  width: min(100%, 320px);
  max-height: 260px;
}

.featured-copy,
.detail-copy {
  position: relative;
  z-index: 1;
}

.featured-badges,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-name,
.detail-name {
  margin: 12px 0 10px;
  line-height: 0.9;
}

.featured-name {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
}

.featured-description {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.badge {
  background: rgba(255, 255, 255, 0.05);
}

.badge.type-knife {
  color: var(--lime);
  background: rgba(152, 240, 162, 0.12);
}

.badge.type-gun {
  color: var(--cyan);
  background: rgba(145, 232, 255, 0.12);
}

.badge.rarity-ancient {
  color: #c6adff;
  background: rgba(157, 111, 255, 0.16);
}

.badge.rarity-godly {
  color: #ffc7ee;
  background: rgba(255, 132, 201, 0.16);
}

.badge.status-current {
  color: #12141a;
  background: linear-gradient(135deg, #9cf7ae, #d3ffd8);
}

.badge.status-trading {
  color: #ffd9b2;
  background: rgba(255, 120, 105, 0.12);
}

.signal-strip,
.showcase-section,
.catalog-section,
.notes-section {
  margin-top: 22px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.signal-card {
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signal-card h2 {
  margin: 10px 0 8px;
  font-size: 2rem;
  line-height: 0.92;
}

.showcase-section,
.catalog-section,
.notes-section {
  padding: 30px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.fresh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.showcase-card {
  padding: 18px;
  cursor: pointer;
}

.showcase-card h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 0.92;
}

.showcase-card .value-row {
  margin-top: 14px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.filter-wide,
.filter-type {
  grid-column: span 2;
}

.search-field,
.select-field,
.filter-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.search-field span,
.select-field span,
.filter-group span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.search-field input,
.select-field select {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.search-field input:focus,
.select-field select:focus {
  border-color: rgba(240, 189, 98, 0.7);
  box-shadow: 0 0 0 4px rgba(240, 189, 98, 0.08);
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.chip {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: inherit;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.chip.active {
  color: #12141a;
  background: linear-gradient(135deg, var(--gold), #ffe1a0);
  border-color: transparent;
  font-weight: 800;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.catalog-column {
  min-width: 0;
}

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

.results-bar p {
  margin: 0;
}

.text-button {
  padding: 0;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

.catalog-card {
  --accent: #f0bd62;
  cursor: pointer;
}

.catalog-card.active {
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
    0 20px 42px rgba(0, 0, 0, 0.26);
}

.status-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  backdrop-filter: blur(12px);
}

.status-ribbon.current {
  color: #12141a;
  background: linear-gradient(135deg, #9cf7ae, #d3ffd8);
}

.status-ribbon.trading {
  color: #ffd9b2;
  background: rgba(17, 20, 30, 0.82);
}

.card-body {
  padding: 18px;
}

.card-top,
.detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.catalog-card h3 {
  margin: 8px 0 10px;
  font-size: 1.78rem;
  line-height: 0.92;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-note {
  margin: 0;
  line-height: 1.7;
}

.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.value-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 0.84rem;
}

.detail-panel {
  position: sticky;
  top: 18px;
}

.detail-empty,
.detail-card {
  min-height: 100%;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.detail-empty {
  display: grid;
  align-content: center;
  padding: 22px;
  min-height: 520px;
}

.detail-empty h3 {
  margin: 10px 0 8px;
  font-size: 1.9rem;
}

.detail-card {
  padding: 22px;
}

.detail-name {
  font-size: 3rem;
}

.detail-meta {
  margin: 18px 0;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.detail-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.detail-stat strong {
  display: block;
  margin-bottom: 6px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.empty-state {
  padding: 28px;
  border-radius: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

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

.notes-grid article {
  padding: 22px;
}

.notes-grid h3 {
  margin: 10px 0 8px;
  font-size: 1.28rem;
}

.footer {
  padding: 18px 6px 0;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

.mobile-dock {
  display: none;
}

@media (max-width: 1180px) {
  .hero,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .fresh-grid,
  .notes-grid,
  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-wide,
  .filter-type {
    grid-column: 1 / -1;
  }

  .detail-panel {
    position: static;
    order: -1;
  }

  .detail-empty {
    min-height: auto;
  }

  .detail-card,
  .detail-empty {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .fresh-grid,
  .notes-grid,
  .signal-strip,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 1280px);
    padding-top: 10px;
  }

  .announcement-modal {
    padding: 14px;
  }

  .announcement-panel {
    padding: 28px 20px 22px;
    border-radius: 24px;
  }

  .topbar,
  .hero,
  .showcase-section,
  .catalog-section,
  .notes-section {
    border-radius: 24px;
  }

  .topbar,
  .topbar-meta,
  .results-bar,
  .card-top,
  .detail-meta,
  .detail-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    top: 8px;
    padding: 14px 16px;
  }

  .topbar-meta,
  .topnav {
    width: 100%;
  }

  .topnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-right: -4px;
    scroll-snap-type: x proximity;
  }

  .topnav a {
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.04);
  }

  .hero,
  .showcase-section,
  .catalog-section,
  .notes-section {
    padding: 22px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .filters,
  .detail-stats {
    grid-template-columns: 1fr;
  }

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

  .filter-wide,
  .filter-type {
    grid-column: auto;
  }

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

  .chip {
    justify-content: center;
    padding: 0 10px;
  }

  .featured-visual,
  .showcase-media,
  .card-media,
  .detail-visual {
    min-height: 200px;
  }

  .detail-name {
    font-size: 2.5rem;
  }

  .results-bar {
    width: 100%;
  }

  .results-bar p,
  .text-button {
    font-size: 0.92rem;
  }

  .status-ribbon {
    top: 12px;
    left: 12px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  }

  .mobile-dock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}
