:root {
  --bg: #070309;
  --panel: #150811;
  --panel-strong: #211018;
  --ink: #fff4ec;
  --muted: #bcaebb;
  --line: rgba(92, 255, 156, 0.2);
  --line-strong: rgba(92, 255, 156, 0.54);
  --gold: #f2a52d;
  --gold-soft: #ffe0a3;
  --teal: #5cff9c;
  --violet: #ff2f83;
  --red: #c4164c;
  --green: #8fff9b;
  --smoke: #102016;
  --ven-magenta: #b50f43;
  --ven-green: #43f084;
  --ven-deep: #18050d;
  --radius: 8px;
  --shadow: 0 20px 58px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 54% 7%, rgba(255, 47, 131, 0.24), transparent 28rem),
    radial-gradient(circle at 11% 27%, rgba(92, 255, 156, 0.18), transparent 22rem),
    linear-gradient(180deg, rgba(20, 5, 13, 0.9), rgba(7, 3, 9, 0.98) 54%, #050305 100%),
    url("assets/vendetta-akali-banner.webp") center top / cover fixed no-repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 76% 18%, rgba(92, 255, 156, 0.14), transparent 34%),
    linear-gradient(118deg, transparent 0 24%, rgba(255, 224, 163, 0.035) 24.2% 24.8%, transparent 25% 100%),
    linear-gradient(62deg, transparent 0 68%, rgba(92, 255, 156, 0.075) 68.2% 68.8%, transparent 69% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 88px),
    rgba(4, 2, 5, 0.56);
  content: "";
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 84px;
  padding: 16px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 38, 94, 0.18), transparent 34%),
    linear-gradient(270deg, rgba(92, 255, 156, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(28, 5, 15, 0.96), rgba(8, 4, 9, 0.9));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: clamp(162px, 23vw, 284px);
  max-height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 3px 0;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.16))
    drop-shadow(0 0 15px rgba(255, 38, 94, 0.34))
    drop-shadow(0 0 24px rgba(92, 255, 156, 0.2))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.42));
}

.brand-lockup h1 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: clamp(1.08rem, 1.8vw, 1.52rem);
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-actions,
.toolbar,
.catalog-meta,
.segmented,
.view-toggle {
  display: flex;
  align-items: center;
}

.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.status-pill {
  min-width: 132px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 23, 25, 0.9);
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 850;
}

.status-pill[data-tone="ok"] {
  border-color: rgba(158, 210, 123, 0.32);
  color: var(--green);
}

.status-pill[data-tone="busy"] {
  border-color: rgba(110, 198, 189, 0.32);
  color: var(--teal);
}

.status-pill[data-tone="error"] {
  border-color: rgba(208, 100, 85, 0.4);
  color: var(--red);
}

.ghost-button,
.primary-button,
.segmented button {
  min-height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(236, 229, 214, 0.045), transparent),
    rgba(17, 20, 27, 0.94);
  color: var(--ink);
  font-weight: 850;
}

.ghost-button,
.primary-button {
  padding: 0 14px;
}

.ghost-button:hover,
.primary-button:hover {
  border-color: var(--line-strong);
  background-color: rgba(255, 255, 255, 0.06);
}

.primary-button {
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(23, 111, 92, 0.74), transparent 58%, rgba(155, 92, 255, 0.18)),
    rgba(15, 18, 26, 0.98);
  color: var(--gold-soft);
  box-shadow: var(--shadow);
}

.theme-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(260px, 0.42fr);
  align-items: center;
  width: min(1580px, calc(100% - 32px));
  min-height: clamp(300px, 32vw, 520px);
  margin: 16px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(7, 3, 9, 0.86), rgba(7, 3, 9, 0.36) 42%, rgba(7, 3, 9, 0.1) 72%),
    linear-gradient(180deg, rgba(181, 15, 67, 0.12), rgba(5, 3, 5, 0.28)),
    url("assets/vendetta-akali-banner.webp") center 36% / cover no-repeat;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.theme-banner::before,
.theme-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.theme-banner::before {
  background:
    radial-gradient(ellipse at 70% 62%, rgba(92, 255, 156, 0.18), transparent 33%),
    radial-gradient(ellipse at 28% 36%, rgba(255, 47, 131, 0.16), transparent 34%),
    linear-gradient(112deg, transparent 0 36%, rgba(255, 224, 163, 0.12) 36.2% 36.7%, transparent 37% 100%),
    linear-gradient(68deg, transparent 0 58%, rgba(92, 255, 156, 0.12) 58.2% 58.7%, transparent 59% 100%);
  mix-blend-mode: screen;
}

.theme-banner::after {
  inset: 1px;
  border: 1px solid rgba(232, 255, 248, 0.06);
  border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(180deg, transparent 0 72%, rgba(5, 2, 5, 0.22) 100%);
  box-shadow: inset 0 0 56px rgba(92, 255, 156, 0.08);
}

.theme-copy {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 3vw, 34px);
  max-width: 660px;
}

.theme-copy p,
.theme-copy span {
  display: block;
  margin: 0;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.theme-copy h2 {
  margin: 7px 0;
  color: #fff6ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5.4vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(92, 255, 156, 0.22),
    0 0 42px rgba(255, 47, 131, 0.28),
    0 3px 0 rgba(7, 3, 9, 0.76);
}

.theme-copy span {
  color: var(--muted);
  letter-spacing: 0;
}

.akali-mark {
  position: relative;
  z-index: 1;
  min-height: 150px;
  margin-right: clamp(10px, 3vw, 44px);
  align-self: stretch;
  opacity: 0.9;
}

.akali-mark .ring {
  position: absolute;
  top: 50%;
  right: 16%;
  width: clamp(96px, 12vw, 170px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 224, 163, 0.48);
  border-radius: 50%;
  box-shadow:
    0 0 34px rgba(242, 165, 45, 0.22),
    inset 0 0 30px rgba(92, 255, 156, 0.14);
  transform: translateY(-50%);
}

.akali-mark .blade {
  position: absolute;
  top: 50%;
  right: 18%;
  width: clamp(150px, 20vw, 280px);
  height: 8px;
  border-radius: 999px 4px 4px 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 246, 236, 0.95) 28%, rgba(92, 255, 156, 0.82) 62%, transparent);
  box-shadow:
    0 0 18px rgba(92, 255, 156, 0.34),
    0 0 34px rgba(255, 47, 131, 0.22);
  transform-origin: 82% 50%;
}

.akali-mark .blade-left {
  transform: translateY(-50%) rotate(-32deg);
}

.akali-mark .blade-right {
  transform: translateY(-50%) rotate(32deg);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  width: min(1580px, calc(100% - 32px));
  margin: 16px auto 0;
  padding-bottom: 28px;
}

.sidebar,
.content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  max-height: calc(100vh - 120px);
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(214, 174, 85, 0.09), transparent 28%),
    linear-gradient(225deg, rgba(21, 96, 96, 0.22), transparent 48%),
    rgba(18, 23, 25, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field.grow {
  flex: 1 1 260px;
}

.field.compact {
  flex: 0 1 156px;
}

label,
.stat-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 8, 9, 0.88);
  color: var(--ink);
  outline: none;
  padding: 0 11px;
}

input:focus,
select:focus,
button:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(214, 174, 85, 0.1);
}

.segmented {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 8, 9, 0.78);
}

.segmented button {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.is-active {
  background:
    linear-gradient(90deg, rgba(21, 96, 96, 0.56), transparent 76%),
    rgba(214, 174, 85, 0.1);
  color: var(--gold-soft);
}

.compact-segment {
  flex: 0 1 176px;
}

.catalog-meta {
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) rgba(4, 5, 9, 0.72);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.product-list::-webkit-scrollbar {
  width: 10px;
}

.product-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(4, 5, 9, 0.72);
}

.product-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 5, 9, 0.72);
  border-radius: 999px;
  background: var(--line-strong);
}

.product-item {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 6px;
  width: 100%;
  height: auto;
  min-height: 82px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(112deg, rgba(214, 174, 85, 0.055), transparent 32%),
    rgba(16, 21, 23, 0.88);
  color: var(--ink);
  text-align: left;
}

.product-item:hover,
.product-item.is-active {
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(21, 96, 96, 0.48), transparent 62%),
    rgba(18, 24, 27, 0.98);
}

.product-name {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 850;
  line-height: 1.25;
}

.product-meta {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.content {
  display: grid;
  gap: 14px;
}

.selected-panel,
.stats-grid,
.toolbar,
.notice,
.cards-mount {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(214, 174, 85, 0.08), transparent 28%),
    linear-gradient(240deg, rgba(21, 96, 96, 0.18), transparent 48%),
    rgba(18, 23, 25, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.selected-panel {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  overflow: hidden;
}

.selected-media {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 6, 7, 0.6);
}

.selected-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.selected-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.selected-copy h2 {
  margin: 4px 0 6px;
  overflow-wrap: anywhere;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 1.9vw, 1.82rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.selected-copy p {
  margin: 0;
}

.selected-copy p:not(.eyebrow) {
  color: var(--muted);
}

.accuracy-details {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
}

.accuracy-details[data-tone="ok"] {
  color: var(--green);
}

.accuracy-details[data-tone="busy"] {
  color: var(--teal);
}

.accuracy-details[data-tone="warning"] {
  color: var(--gold);
}

.accuracy-details[data-tone="error"] {
  color: var(--red);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.stat {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(236, 229, 214, 0.03), transparent);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  overflow-wrap: anywhere;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
}

.toolbar {
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
}

.checkbox-control {
  display: flex;
  align-items: center;
  align-self: end;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 8, 9, 0.74);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: none;
}

.checkbox-control input {
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--teal);
}

.notice {
  padding: 12px 14px;
  color: var(--teal);
  font-weight: 780;
}

.notice[data-tone="error"] {
  color: var(--red);
}

.cards-mount {
  min-height: 360px;
  overflow: hidden;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 12px;
  padding: 12px;
}

.card-tile {
  display: grid;
  grid-template-rows: minmax(0, auto) 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(236, 229, 214, 0.055), transparent 36%),
    rgba(9, 12, 13, 0.94);
}

.card-tile a {
  display: block;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 6, 7, 0.68);
}

.card-art-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(92, 255, 156, 0.08), transparent 38%),
    rgba(4, 6, 7, 0.72);
}

.card-art-frame img,
.card-art-frame .card-placeholder {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.card-art-frame img {
  display: block;
  object-fit: contain;
}

.card-placeholder {
  display: none;
  place-items: center;
  padding: 14px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.card-art-frame.is-missing .card-placeholder {
  display: grid;
}

.tile-copy {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 10px;
}

.tile-copy h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.18;
}

.tile-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.28;
}

.tile-copy strong {
  color: var(--gold-soft);
}

.tile-copy strong span {
  color: var(--muted);
  font-size: 0.75rem;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

.card-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.card-table th,
.card-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.card-table th {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rank-cell {
  width: 54px;
  color: var(--muted);
  font-weight: 850;
}

.card-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.card-thumb {
  width: 42px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: contain;
  background: rgba(4, 6, 7, 0.68);
}

.card-thumb.empty {
  display: block;
}

.card-thumb-frame {
  display: grid;
  place-items: center;
  width: 42px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(4, 6, 7, 0.68);
}

.card-thumb-frame .card-thumb,
.card-thumb-frame .card-thumb-placeholder {
  grid-area: 1 / 1;
}

.card-thumb-frame .card-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.card-thumb-placeholder {
  display: none;
  padding: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.card-thumb-frame.is-missing .card-thumb-placeholder {
  display: block;
}

.card-name {
  color: var(--gold-soft);
  font-weight: 850;
  text-decoration: none;
}

.card-name:hover {
  text-decoration: underline;
}

.card-line,
.value-cell span,
.price-badge small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.28;
}

.price-badge {
  display: inline-grid;
  gap: 2px;
  color: var(--ink);
  font-weight: 850;
}

.value-cell {
  color: var(--gold-soft);
  font-weight: 900;
}

@media (max-width: 980px) {
  .theme-banner {
    grid-template-columns: minmax(0, 1fr) 180px;
    min-height: clamp(280px, 42vw, 440px);
    background-position: 54% 34%;
  }

  .theme-copy h2 {
    font-size: 2.55rem;
  }

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

  .sidebar {
    position: static;
    max-height: none;
  }

  .product-list {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .app-header {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 14px 10px;
  }

  .header-actions {
    justify-content: stretch;
    width: 100%;
  }

  .header-actions > * {
    flex: 1 1 auto;
  }

  .brand-logo {
    width: clamp(142px, 48vw, 220px);
    max-height: 50px;
  }

  .brand-lockup h1 {
    font-size: 1.18rem;
  }

  .workspace {
    width: min(100% - 20px, 1580px);
  }

  .theme-banner {
    grid-template-columns: 1fr;
    width: min(100% - 20px, 1580px);
    min-height: 300px;
    background-position: 52% 32%;
  }

  .theme-copy {
    padding: 18px;
  }

  .theme-copy h2 {
    font-size: 2.05rem;
  }

  .akali-mark {
    position: absolute;
    inset: auto 0 0 auto;
    width: 190px;
    min-height: 120px;
    margin-right: 0;
    opacity: 0.52;
  }

  .selected-panel {
    align-items: stretch;
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .selected-media {
    width: 70px;
    height: 70px;
  }

  .selected-panel .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
