:root {
  color-scheme: light;
  --bg: #ffeaa6;
  --bg-2: #f9d86a;
  --panel: #fff7df;
  --panel-2: #fff0bd;
  --paper: #fffdf2;
  --line: #26324a;
  --line-strong: #17233d;
  --text: #17233d;
  --muted: #303a54;
  --faint: #4a5164;
  --teal: #2c7eea;
  --teal-dim: #d9ecff;
  --green: #228b45;
  --red: #e34234;
  --amber: #ffcc2f;
  --blue: #2c7eea;
  --violet: #7b55c7;
  --shadow: 4px 5px 0 #17233d;
  font-family: "Comic Sans MS", "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  min-height: 100vh;
  background: #ffeaa6;
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: #fffdf2;
  color: var(--text);
  cursor: pointer;
  min-height: 36px;
  box-shadow: 2px 3px 0 #17233d;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

button:hover:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 2px 0 #17233d;
  background: #fff1a8;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  color: #4a5164;
  background: #eee7d2;
}

input,
select {
  width: 100%;
  min-height: 36px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fffdf2;
  color: var(--text);
  padding: 0 12px;
}

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 330px;
  min-height: 100vh;
}

.wallet-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.wallet-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(300px, 1fr);
  gap: 0;
  width: min(960px, 100%);
  min-height: min(560px, calc(100vh - 56px));
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 10px;
  background: #fff7df;
  box-shadow: var(--shadow);
}

.wallet-hero,
.wallet-copy {
  min-width: 0;
}

.wallet-hero {
  display: grid;
  place-items: center;
  padding: 34px;
  border-right: 3px solid var(--line);
  background: #9dd7ff;
}

.wallet-logo {
  display: block;
  width: min(330px, 100%);
  max-height: 360px;
  object-fit: contain;
  filter: none;
}

.wallet-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(26px, 5vw, 54px);
}

.wallet-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.wallet-copy p {
  max-width: 470px;
  margin: 0;
  color: #303a54;
  font-size: 15px;
  line-height: 1.55;
}

.wallet-connect {
  justify-self: start;
  min-width: 190px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 900;
}

.wallet-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sidebar,
.portfolio {
  border-right: 3px solid var(--line);
  background: #fff7df;
}

.portfolio {
  border-right: 0;
  border-left: 3px solid var(--line);
}

.brand {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-bottom: 3px solid var(--line);
  background: #9dd7ff;
}

.brand img {
  display: block;
  width: min(210px, 100%);
  max-height: 104px;
  object-fit: contain;
}

.micro,
.label,
.table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-section,
.panel {
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.city-list {
  display: grid;
  gap: 8px;
}

.city-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
}

.city-card.active {
  border-color: rgba(40, 215, 209, 0.62);
  background: linear-gradient(90deg, rgba(40, 215, 209, 0.16), rgba(255, 255, 255, 0.03));
}

.city-card:disabled,
.travel-card:disabled {
  cursor: default;
}

.city-img {
  width: 44px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.city-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.city-country,
.feed-time,
.caption {
  color: var(--muted);
  font-size: 11px;
}

.city-country {
  display: block;
}

.trend-up {
  color: var(--green);
}

.trend-down {
  color: var(--red);
}

.feed {
  display: grid;
  gap: 12px;
}

.feed-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: start;
}

.feed-text {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.severity {
  font-size: 10px;
  font-weight: 850;
  text-align: right;
}

.main {
  min-width: 0;
}

.topbar {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "time"
    "nav";
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 9, 0.74);
  backdrop-filter: blur(18px);
}

.timebox {
  grid-area: time;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.day {
  color: var(--teal);
  font-size: 20px;
  font-weight: 900;
}

.date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  text-transform: uppercase;
}

.wallet-button {
  display: grid;
  align-content: center;
  min-height: 44px;
  border: 2px solid var(--line-strong);
  padding: 0 10px;
  background: #fffdf2;
  text-align: left;
  text-transform: uppercase;
  box-shadow: 2px 3px 0 #17233d;
}

.wallet-button:hover:not(:disabled) {
  transform: translate(1px, 1px);
  border-color: var(--line-strong);
  background: #d9ecff;
  box-shadow: 1px 2px 0 #17233d;
}

.wallet-button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.wallet-button strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.nav {
  grid-area: nav;
  display: flex;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.nav button {
  flex: 1 0 96px;
  min-width: 96px;
  height: 46px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: #c8d0cc;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav button.active {
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--teal);
  background: rgba(40, 215, 209, 0.07);
}

.workspace {
  padding: 14px;
}

.toolbar {
  display: grid;
  grid-template-columns: 190px 170px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.collection-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(130px, 0.75fr)) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.binder-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.binder-summary .stat {
  border-bottom: 0;
}

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

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

.marketplace-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(135px, 0.35fr));
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.listing-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.listing-clickable {
  cursor: zoom-in;
}

.listing-clickable:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.listing-media {
  display: flex;
  align-items: center;
  min-width: 0;
}

.sealed-listing-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 132px;
  overflow: hidden;
  border: 1px solid rgba(240, 180, 77, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(240, 180, 77, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.34));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sealed-listing-art::before {
  content: "";
  position: absolute;
  inset: 9px 14px 28px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 8px),
    rgba(0, 0, 0, 0.18);
  transform: skew(-5deg);
}

.sealed-listing-art.box::before {
  inset: 22px 9px 24px;
  transform: perspective(140px) rotateY(-9deg);
}

.sealed-listing-art.etb::before {
  inset: 14px 20px 24px;
  transform: perspective(120px) rotateY(7deg);
}

.sealed-product-shape {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86px;
  min-height: 72px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(3, 8, 9, 0.58);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.sealed-listing-art.box .sealed-product-shape {
  width: 92px;
  min-height: 70px;
}

.sealed-product-shape img {
  display: block;
  width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.sealed-product-shape span {
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.sealed-art-title {
  position: absolute;
  right: 8px;
  bottom: 21px;
  left: 8px;
  z-index: 2;
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.sealed-art-footer {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  z-index: 2;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.marketplace-card-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 132px;
  overflow: hidden;
  border: 1px solid rgba(240, 180, 77, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(240, 180, 77, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.32));
}

.marketplace-card-art.slab {
  border-color: rgba(220, 229, 232, 0.5);
  background:
    linear-gradient(180deg, rgba(220, 229, 232, 0.14), rgba(0, 0, 0, 0.3)),
    linear-gradient(145deg, rgba(40, 215, 209, 0.1), transparent 44%);
}

.marketplace-card-art.slab {
  height: 148px;
}

.marketplace-slab-label {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(220, 229, 232, 0.28);
  background: linear-gradient(180deg, rgba(231, 238, 241, 0.92), rgba(169, 188, 196, 0.78));
  text-transform: uppercase;
}

.marketplace-slab-label strong {
  color: #10272b;
  font-size: 12px;
}

.marketplace-slab-label span {
  color: #385158;
  font-size: 9px;
  font-weight: 850;
}

.marketplace-card-image {
  position: absolute;
  inset: 14px 15px;
  display: grid;
  place-items: center;
}

.marketplace-card-art.slab .marketplace-card-image {
  inset: 33px 15px 17px;
  height: calc(100% - 50px);
}

.marketplace-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.marketplace-card-image span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.listing-info {
  align-self: stretch;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.listing-info h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.listing-info .actions {
  margin-top: auto;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014));
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

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

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

.table tbody tr {
  background: rgba(255, 255, 255, 0.01);
}

.table tbody tr:hover {
  background: rgba(40, 215, 209, 0.055);
}

.market-table {
  min-width: 1160px;
  table-layout: fixed;
}

.market-table .product-link,
.market-table .set-link {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.market-table .product-link:hover:not(:disabled),
.market-table .set-link:hover:not(:disabled) {
  box-shadow: none;
  background: #fff0bd;
  transform: none;
}

.market-product-col {
  width: 190px;
}

.market-set-col {
  width: 220px;
}

.market-release-col {
  width: 96px;
}

.market-chart-col {
  width: 110px;
}

.market-actions-col {
  width: 150px;
}

.market-change-col {
  width: 80px;
}

.market-price-col {
  width: 92px;
}

.market-supply-col {
  width: 78px;
}

.market-owned-col {
  width: 54px;
}

.admin-table {
  min-width: 1080px;
}

.admin-table input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}

.admin-number {
  max-width: 112px;
  padding: 0 8px;
}

.sparkline {
  width: 96px;
  height: 36px;
  display: block;
}

.spark-grid {
  fill: none;
  stroke: rgba(231, 224, 207, 0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.spark-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.spark-dot {
  fill: currentColor;
  stroke: #0b1112;
  stroke-width: 1.2;
}

.spark-up {
  color: var(--green);
}

.spark-down {
  color: var(--red);
}

.supply-pill {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 5px;
  min-width: 70px;
  justify-content: start;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.supply-pill span {
  color: var(--muted);
  font-size: 10px;
}

.supply-pill em {
  grid-column: 1 / -1;
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}

.supply-pill.low em {
  color: var(--warn);
}

.supply-pill.sold-out em {
  color: var(--red);
}

.product-cell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.product-link,
.set-link {
  width: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.product-link:hover:not(:disabled),
.set-link:hover:not(:disabled) {
  transform: none;
  background: transparent;
}

.set-link {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.set-link > span,
.product-cell > div,
.product-link > span {
  display: grid;
  grid-template-rows: auto auto;
  gap: 2px;
  min-width: 0;
}

.info-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(40, 215, 209, 0.42);
  border-radius: 999px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.set-logo,
.product-art {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.set-logo.large {
  width: 72px;
  height: 52px;
}

.product-name,
.card-name {
  font-size: 13px;
  font-weight: 820;
}

.product-name,
.product-meta {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-meta,
.card-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.money {
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.primary {
  border-color: var(--line-strong);
  background: #9dd7ff;
  color: var(--text);
}

.danger {
  border-color: #b72d23;
  color: #8d241b;
}

.accent {
  border-color: var(--line-strong);
  background: #ffcc2f;
  color: var(--text);
}

.primary:hover:not(:disabled),
.wallet-connect:hover:not(:disabled) {
  background: #145fc0;
  color: #fffdf2;
}

.accent:hover:not(:disabled) {
  background: #e6af00;
  color: #17233d;
}

.danger:hover:not(:disabled) {
  background: #f2b9b1;
  color: #17233d;
}

.portfolio .panel {
  box-shadow: none;
}

.kpi {
  display: grid;
  gap: 8px;
}

.networth {
  color: var(--teal);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 950;
  letter-spacing: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.stat {
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.stat:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stat-value {
  margin-top: 4px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.achievement-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-height: 126px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffdf2;
  box-shadow: 3px 4px 0 #17233d;
}

.achievement-card.locked {
  background: #eee7d2;
}

.achievement-card.exclusive {
  border-color: #7b55c7;
}

.achievement-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #ffcc2f;
  color: #17233d;
  font-size: 22px;
  font-weight: 950;
}

.achievement-card.locked .achievement-icon {
  background: #fff7df;
}

.achievement-card h3 {
  margin: 0;
  font-size: 14px;
}

.achievement-card p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.progress {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.inventory-lines {
  display: grid;
  gap: 9px;
}

.inv-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  font-size: 13px;
}

.pack-stage {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.pack-picker {
  display: grid;
  gap: 8px;
  align-content: start;
}

.pack-button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 8px;
  text-align: left;
}

.pack-button.active {
  border-color: var(--teal);
  background: var(--teal-dim);
}

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

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.travel-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 8px;
  text-align: left;
}

.travel-card.active {
  border-color: rgba(40, 215, 209, 0.66);
  background: var(--teal-dim);
}

.travel-card img {
  width: 76px;
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.travel-copy {
  display: grid;
  gap: 4px;
}

.travel-name {
  font-size: 16px;
  font-weight: 900;
}

.travel-meta {
  color: var(--muted);
  font-size: 12px;
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.odds-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.odds-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
}

.card-tile {
  position: relative;
  display: grid;
  grid-template-rows: 236px 1fr;
  --card-cert-height: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
}

.card-tile:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.card-tile .actions {
  cursor: default;
}

.card-tile.slab {
  border-color: rgba(210, 220, 226, 0.42);
  background: linear-gradient(180deg, rgba(220, 229, 232, 0.08), rgba(0, 0, 0, 0.22));
}

.slab-label {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 32px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(220, 229, 232, 0.28);
  background: linear-gradient(180deg, rgba(231, 238, 241, 0.9), rgba(169, 188, 196, 0.76));
  color: #eef7f8;
  font-size: 11px;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.slab-label strong {
  color: #10272b;
  font-size: 13px;
  letter-spacing: 0;
}

.slab-label span {
  color: #385158;
  font-size: 10px;
}

.slab-label.large {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 42px;
  height: 42px;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
  flex: 0 0 auto;
}

.card-3d.slab .slab-label.large {
  width: calc(100% + 36px);
  margin: 0 -18px;
  border-radius: 13px 13px 0 0;
}

.card-tile.slab::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(231, 238, 241, 0.22);
  border-radius: 6px;
  box-shadow: inset 0 0 0 5px rgba(231, 238, 241, 0.045);
}

.card-tile.hit {
  border-color: rgba(240, 180, 77, 0.55);
  box-shadow: 0 0 30px rgba(240, 180, 77, 0.12);
}

.card-tile.foil::before,
.card-tile.hit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-tile.foil::before {
  z-index: 1;
  opacity: 0.48;
  background:
    linear-gradient(125deg, transparent 0 18%, rgba(255, 255, 255, 0.28) 25%, transparent 34% 54%, rgba(40, 215, 209, 0.2) 62%, transparent 72%),
    repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  transform: translateX(-24%);
  animation: foilSweep 4.2s ease-in-out infinite;
}

.card-tile.hit::after {
  z-index: 2;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.28) 46%, transparent 62%);
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: foil 3s ease-in-out infinite;
}

@keyframes foil {
  0%,
  45% {
    transform: translateX(-120%);
  }
  72%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes foilSweep {
  0%,
  28% {
    transform: translateX(-28%);
    opacity: 0.34;
  }
  62% {
    transform: translateX(22%);
    opacity: 0.58;
  }
  100% {
    transform: translateX(-28%);
    opacity: 0.34;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-tile.foil::before,
  .card-tile.hit::after {
    animation: none;
  }
}

.card-img-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 236px;
  padding: 8px;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(160deg, rgba(231, 224, 207, 0.1), rgba(40, 215, 209, 0.06));
}

.card-img-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  display: none;
  height: var(--card-cert-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.card-tile.slab .card-img-wrap {
  padding: 50px 12px 12px;
  background:
    linear-gradient(180deg, rgba(231, 238, 241, 0.16), rgba(0, 0, 0, 0.04)),
    linear-gradient(160deg, rgba(231, 224, 207, 0.1), rgba(40, 215, 209, 0.06));
}

.card-tile.slab .card-img-wrap::before {
  display: block;
}

.card-img-wrap img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  max-width: calc(100% - 16px);
  max-height: calc(100% - 16px);
  display: block;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
}

.card-tile.slab .card-img-wrap img {
  top: calc(var(--card-cert-height) + 14px + (100% - var(--card-cert-height) - 22px) / 2);
  max-width: calc(100% - 24px);
  max-height: calc(100% - var(--card-cert-height) - 22px);
}

.card-info {
  position: relative;
  z-index: 3;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 142px;
}

.card-name {
  min-height: 34px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  min-height: 34px;
}

.card-info .actions {
  margin-top: auto;
}

.tag-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.tag.positive {
  border-color: rgba(80, 220, 132, 0.42);
  color: var(--green);
}

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

.card-detail-backdrop {
  z-index: 32;
}

.modal {
  width: min(980px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid rgba(40, 215, 209, 0.42);
  border-radius: 8px;
  background: #101719;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 23, 25, 0.96);
}

.modal-body {
  padding: 14px;
}

.card-detail-modal {
  width: min(1040px, 100%);
}

.card-detail-body {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(240px, 1fr);
  gap: 18px;
  align-items: center;
}

.card-3d {
  --rx: 0deg;
  --ry: 0deg;
  display: grid;
  place-items: center;
  min-height: 560px;
  perspective: 1100px;
}

.card-3d-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(360px, 84vw);
  max-height: 76vh;
  padding: 14px;
  border: 1px solid rgba(231, 224, 207, 0.18);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(40, 215, 209, 0.045));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.48);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 160ms ease;
}

.card-3d.slab .card-3d-inner {
  width: min(390px, 84vw);
  height: min(620px, 76vh);
  justify-content: flex-start;
  padding: 0 18px 18px;
  border-color: rgba(210, 220, 226, 0.42);
  background: linear-gradient(180deg, rgba(220, 229, 232, 0.14), rgba(0, 0, 0, 0.22));
}

.card-3d-art {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  flex: 1;
}

.card-3d.slab .card-3d-art {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(231, 238, 241, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 0 7px rgba(231, 238, 241, 0.035);
}

.card-3d-inner img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: calc(76vh - 28px);
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  transform: translateZ(24px);
}

.card-3d.slab .card-3d-inner img {
  max-width: 100%;
  max-height: 100%;
}

.card-detail-info {
  display: grid;
  gap: 12px;
}

.detail-tags {
  margin-top: 2px;
}

.confirm-modal {
  width: min(520px, 100%);
}

.confirm-copy {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.confirm-actions {
  justify-content: flex-end;
}

.product-modal {
  width: min(1180px, 100%);
}

.product-info-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

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

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

.detail-hero > *,
.detail-grid > * {
  min-width: 0;
}

.detail-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-panel h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.info-lines {
  display: grid;
  gap: 8px;
}

.info-lines div,
.mini-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.info-lines span,
.mini-card-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.compact-table th,
.compact-table td {
  padding: 8px 9px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

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

.detail-table-wrap .compact-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.mini-card-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.mini-card-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 66px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 4px;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.mini-card-row:hover,
.mini-card-row:focus-visible,
.check-card:hover,
.check-card:focus-visible {
  border-color: rgba(40, 215, 209, 0.42);
  background: rgba(40, 215, 209, 0.06);
  outline: none;
  transform: none;
}

.mini-card-row img,
.check-card img {
  width: 42px;
  height: 58px;
  border-radius: 4px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  max-height: 520px;
  overflow: auto;
}

.check-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px;
  background: rgba(0, 0, 0, 0.16);
  text-align: left;
  cursor: zoom-in;
}

.check-card strong,
.check-card span,
.check-card b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.check-card span {
  color: var(--muted);
  font-size: 11px;
}

.event-log {
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.event {
  border-left: 2px solid var(--teal);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.text-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 850;
  text-align: left;
}

.text-link:hover:not(:disabled) {
  transform: none;
  background: transparent;
  text-decoration: underline;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  padding: 3px 9px 3px 4px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-weight: 850;
}

span.profile-badge {
  border: 1px solid var(--line);
  border-radius: 7px;
}

.profile-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #ffd84f, #2179ff);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.profile-icon img {
  width: 118%;
  height: 118%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.34));
}

.profile-icon.gengar,
.profile-icon.mew {
  background: linear-gradient(135deg, #b68cff, #28d7d1);
}

.profile-icon.charizard,
.profile-icon.rayquaza {
  background: linear-gradient(135deg, #f0b44d, #ff594f);
}

.profile-icon.snorlax,
.profile-icon.lugia {
  background: linear-gradient(135deg, #dfefff, #81a8ff);
}

.profile-icon.eevee {
  background: linear-gradient(135deg, #f0b44d, #f5efe2);
}

.profile-icon.large {
  width: 76px;
  height: 76px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.profile-icon.large img {
  width: 124%;
  height: 124%;
}

.avatar-edit {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 0;
  padding: 10px 12px;
  border-color: rgba(40, 215, 209, 0.34);
  background: rgba(40, 215, 209, 0.055);
}

.avatar-edit span:last-child {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.avatar-modal {
  width: min(620px, 100%);
}

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

.avatar-grid button {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 12px;
}

.avatar-grid button.active {
  border-color: rgba(40, 215, 209, 0.72);
  background: rgba(40, 215, 209, 0.13);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.profile-preview,
.profile-form,
.flat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  padding: 14px;
}

.profile-preview {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.profile-preview h3 {
  margin: 0;
  font-size: 22px;
}

.profile-form {
  display: grid;
  gap: 9px;
}

.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.icon-picker button {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  text-transform: capitalize;
}

.icon-picker button.active {
  border-color: rgba(40, 215, 209, 0.62);
  background: rgba(40, 215, 209, 0.12);
}

.avatar-admin-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(240px, 2fr) 92px auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

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

.check-label input {
  width: auto;
  min-height: 0;
}

.admin-avatar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-avatar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-avatar-item code {
  color: var(--muted);
  font-size: 11px;
}

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

.offer-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.offer-row strong,
.offer-row .caption {
  display: block;
}

.offer-thumb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(240, 180, 77, 0.36);
}

.offer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(360px, calc(100vh - 310px)) auto;
  min-height: min(720px, calc(100vh - 160px));
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.chat-message {
  max-width: 780px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.chat-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.chat-message time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.chat-message p {
  margin: 0;
  color: var(--text);
  line-height: 1.4;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.player-modal {
  width: min(1180px, 100%);
}

.player-modal .detail-hero {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.small-modal {
  width: min(520px, 100%);
}

.footer-ticker {
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 34px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 9, 0.9);
  color: var(--muted);
  font-size: 12px;
  backdrop-filter: blur(16px);
}

.footer-ticker strong {
  color: var(--teal);
}

.footer-ticker > * {
  flex: 0 0 auto;
}

/* Flat hand-drawn skin */
.side-section,
.panel,
.wallet-panel,
.modal,
.detail-panel,
.flat-panel,
.profile-preview,
.profile-form,
.listing-card,
.travel-card,
.city-card,
.pack-button,
.card-tile,
.odds-card,
.table-wrap,
.empty,
.chat-message,
.offer-row,
.admin-avatar-item {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 3px 4px 0 #17233d;
}

.side-section,
.panel {
  border-bottom: 2px solid var(--line);
}

.panel,
.modal,
.wallet-panel,
.card-tile,
.listing-card,
.travel-card,
.city-card,
.pack-button,
.table-wrap {
  background: #fff7df;
}

.sidebar,
.portfolio,
.topbar,
.footer-ticker,
.modal-head {
  background: #ffcc2f;
  backdrop-filter: none;
}

.workspace {
  background: #ffeaa6;
}

.primary,
.wallet-connect {
  background: #2c7eea;
  color: #fffdf2;
  border-color: #17233d;
}

.primary:hover:not(:disabled),
.wallet-connect:hover:not(:disabled) {
  background: #145fc0;
  color: #fffdf2;
}

.accent {
  background: #ffcc2f;
  color: #17233d;
}

.accent:hover:not(:disabled) {
  background: #e6af00;
  color: #17233d;
}

.danger {
  background: #ffded9;
  color: #17233d;
}

.danger:hover:not(:disabled) {
  background: #f2b9b1;
  color: #17233d;
}

.nav {
  border-top: 3px solid var(--line);
  background: #fff7df;
}

.nav button {
  border-right: 2px solid var(--line);
  background: #fff7df;
  color: #17233d;
  box-shadow: none;
}

.nav button.active {
  background: #2c7eea;
  color: #fffdf2;
  box-shadow: inset 0 -5px 0 #ffcc2f;
}

.table th,
.table td {
  border-bottom: 2px solid #c6a84a;
}

.table tbody tr,
.table tbody tr:hover {
  background: #fffdf2;
}

.tag,
.profile-badge,
span.profile-badge,
.supply-pill,
.wallet-status {
  border-color: var(--line);
  background: #fffdf2;
  color: #17233d;
}

.city-card.active,
.pack-button.active,
.travel-card.active,
.avatar-grid button.active,
.icon-picker button.active {
  background: #d9ecff;
  border-color: #17233d;
}

.sealed-listing-art,
.marketplace-card-art,
.card-img-wrap,
.card-3d-inner,
.card-3d.slab .card-3d-inner,
.card-3d.slab .card-3d-art {
  background: #fffdf2;
  border-color: #17233d;
  box-shadow: none;
}

.sealed-listing-art::before,
.card-img-wrap::before {
  background: #fff0bd;
}

.sealed-product-shape {
  background: #fffdf2;
  box-shadow: none;
}

.marketplace-slab-label,
.slab-label {
  background: #d9ecff;
  color: #17233d;
  box-shadow: none;
}

.card-tile.slab {
  background: #e7f3ff;
}

.card-tile.slab::before {
  box-shadow: none;
  border-color: #17233d;
}

.card-tile.hit {
  box-shadow: 3px 4px 0 #17233d;
}

.event {
  border-left: 5px solid #2c7eea;
  background: #fffdf2;
}

.profile-icon {
  background: #ffcc2f;
  box-shadow: none;
}

.profile-icon.gengar,
.profile-icon.mew,
.profile-icon.charizard,
.profile-icon.rayquaza,
.profile-icon.snorlax,
.profile-icon.lugia,
.profile-icon.eevee {
  background: #ffcc2f;
}

.profile-icon img {
  filter: none;
}

.text-link {
  color: #2c7eea;
}

.modal-backdrop {
  background: rgba(23, 35, 61, 0.42);
}

*,
*::before,
*::after {
  background-image: none !important;
  text-shadow: none !important;
}

.progress span {
  background: #228b45;
}

@media (max-width: 1600px) {
  .market-table-wrap {
    overflow: visible;
    border: 0;
  }

  .market-table {
    min-width: 0;
    table-layout: auto;
  }

  .market-table colgroup,
  .market-table thead {
    display: none;
  }

  .market-table,
  .market-table tbody,
  .market-table tr,
  .market-table td {
    display: block;
    width: 100%;
  }

  .market-table tr {
    margin-bottom: 12px;
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fffdf2;
    box-shadow: 3px 4px 0 #17233d;
    overflow: visible;
  }

  .market-table td {
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-bottom: 0;
    padding: 6px 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .market-table td:first-child,
  .market-table td:nth-child(2),
  .market-table td:last-child {
    display: block;
  }

  .market-table td:first-child {
    padding-top: 0;
  }

  .market-table td:nth-child(n + 3)::before {
    content: "";
    color: var(--muted);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .market-table td:nth-child(3)::before {
    content: "Release";
  }

  .market-table td:nth-child(4)::before {
    content: "7D action";
  }

  .market-table td:nth-child(5)::before {
    content: "Change";
  }

  .market-table td:nth-child(6)::before {
    content: "Market price";
  }

  .market-table td:nth-child(7)::before {
    content: "Avg buy";
  }

  .market-table td:nth-child(8)::before {
    content: "Supply";
  }

  .market-table td:nth-child(9)::before {
    content: "Owned";
  }

  .market-table .product-cell,
  .market-table .set-link {
    width: 100%;
  }

  .market-table .supply-pill {
    justify-self: start;
    width: auto;
    min-width: 78px;
  }

  .market-table td:last-child .actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 8px;
  }

  .market-table td:last-child .actions button {
    min-width: 0;
  }
}

@media (max-width: 1320px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar,
  .portfolio {
    display: none;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    display: block;
  }

  .topbar {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "time"
      "nav";
  }

  .timebox {
    min-height: 54px;
    gap: 9px;
    min-width: 0;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 0 10px;
    border-right: 0;
  }

  .timebox .date {
    flex: 1 1 120px;
  }

  .wallet-button {
    min-width: 0;
    max-width: 100%;
  }

  .nav {
    max-width: 100vw;
    flex-wrap: wrap;
    overflow-x: hidden;
  }

  .nav button {
    flex: 1 1 112px;
    min-width: 0;
    height: 50px;
    font-size: 11px;
  }

  .table-wrap {
    overflow-x: hidden;
  }

  .market-table-wrap {
    overflow: visible;
    border: 0;
  }

  .market-table {
    min-width: 0;
    table-layout: auto;
  }

  .market-table colgroup,
  .market-table thead {
    display: none;
  }

  .market-table,
  .market-table tbody,
  .market-table tr,
  .market-table td {
    display: block;
    width: 100%;
  }

  .market-table tr {
    margin-bottom: 10px;
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fffdf2;
    box-shadow: 3px 4px 0 #17233d;
  }

  .market-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 0;
    padding: 6px 0;
  }

  .market-table td:first-child,
  .market-table td:nth-child(2),
  .market-table td:last-child {
    display: block;
  }

  .market-table td:first-child {
    padding-top: 0;
  }

  .market-table td:nth-child(n + 3)::before {
    content: "";
    color: var(--muted);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .market-table td:nth-child(3)::before {
    content: "Release";
  }

  .market-table td:nth-child(4)::before {
    content: "7D action";
  }

  .market-table td:nth-child(5)::before {
    content: "Change";
  }

  .market-table td:nth-child(6)::before {
    content: "Market price";
  }

  .market-table td:nth-child(7)::before {
    content: "Avg buy";
  }

  .market-table td:nth-child(8)::before {
    content: "Supply";
  }

  .market-table td:nth-child(9)::before {
    content: "Owned";
  }

  .market-table .product-cell,
  .market-table .set-link {
    width: 100%;
  }

  .market-table td:last-child .actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 8px;
  }

  .toolbar,
  .collection-toolbar,
  .marketplace-toolbar,
  .binder-summary,
  .pack-stage,
  .account-grid,
  .detail-hero,
  .player-modal .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .offer-row .actions {
    grid-column: 1 / -1;
  }

  .avatar-admin-grid {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    grid-template-rows: auto minmax(320px, 56vh) auto;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

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

  .workspace {
    padding: 10px;
  }

  .footer-ticker {
    gap: 16px;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 8px 10px;
    white-space: normal;
  }

  .pull-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }

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

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

  .card-3d {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .wallet-gate {
    align-items: stretch;
    padding: 12px;
  }

  .wallet-panel {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 24px);
  }

  .wallet-hero {
    min-height: 220px;
    padding: 22px 22px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .wallet-logo {
    width: min(300px, 82vw);
    max-height: 260px;
  }

  .wallet-copy {
    align-content: start;
    padding: 24px;
  }

  .wallet-copy h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .wallet-connect {
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .workspace {
    padding: 8px;
  }

  .panel,
  .side-section {
    padding: 10px;
  }

  .panel-header,
  .modal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .modal {
    max-height: calc(100vh - 16px);
  }

  .table:not(.market-table) {
    min-width: 0;
    table-layout: auto;
  }

  .table:not(.market-table) th,
  .table:not(.market-table) td {
    padding: 8px 5px;
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .market-table td:last-child .actions,
  .actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    width: 100%;
  }

  .card-tile {
    grid-template-rows: 204px 1fr;
  }

  .card-img-wrap {
    height: 204px;
  }

  .pull-grid,
  .marketplace-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

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

  .sealed-listing-art,
  .marketplace-card-art {
    height: 122px;
  }

  .marketplace-card-art.slab {
    height: 138px;
  }

  .chat-message-head,
  .info-lines div,
  .mini-card-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
}
