/* CroupierTV Market operations — page-local editorial system */

.market-page {
  --market-ink: #071016;
  --market-ink-2: #0b151c;
  --market-panel: #101c23;
  --market-paper: #e9eef0;
  --market-paper-2: #f5f7f8;
  --market-copy: #53666f;
  --market-light-line: rgba(9, 27, 36, .17);
  --market-dark-line: rgba(185, 215, 226, .18);
  background: var(--market-ink);
}

.market-page [hidden] {
  display: none !important;
}

.market-page main {
  overflow: clip;
}

.market-page h1,
.market-page h2,
.market-page h3,
.market-page p {
  overflow-wrap: anywhere;
}

/* Hero */

.market-hero {
  position: relative;
  display: grid;
  min-height: clamp(650px, 92svh, 720px);
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + 44px) 0 48px;
  background: #04080b;
}

.market-hero-image,
.market-hero-grid {
  position: absolute;
  inset: 0;
}

.market-hero-image {
  z-index: -3;
    background: url("images/market-command-hero-20260823.jpg") 50% 0% / cover no-repeat;
  filter: saturate(.82) contrast(1.08) brightness(.88);
  transform: scale(1.025);
}

.market-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 7, 10, .98) 0%, rgba(3, 7, 10, .91) 34%, rgba(3, 7, 10, .48) 63%, rgba(3, 7, 10, .85) 100%),
    linear-gradient(0deg, #05090c 0%, transparent 42%, rgba(3, 7, 10, .48) 100%);
}

.market-hero-grid {
  z-index: -1;
  opacity: .16;
  background-image:
    linear-gradient(rgba(159, 215, 238, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 215, 238, .18) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .2) 62%, transparent);
}

.market-hero-shell {
  display: block;
}

.market-hero-copy {
  max-width: 920px;
}

.market-hero-copy h1 {
  max-width: 840px;
  margin: 0;
  font: 900 clamp(3.8rem, 6vw, 6.1rem) / .84 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.market-hero-copy h1 em {
  color: var(--red);
  font-style: normal;
}

.market-hero-copy > p:not(.op-kicker) {
  max-width: 650px;
  margin: 30px 0 0;
  color: #c2cdd1;
  font-size: clamp(.94rem, 1.25vw, 1.08rem);
  line-height: 1.72;
}

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

/* Creator-code and progress consoles */

.market-code-console,
.market-progress {
  min-width: 0;
  border: 1px solid var(--market-dark-line);
  border-top-color: rgba(255, 49, 86, .72);
  color: #f4f7f8;
  background: rgba(5, 11, 15, .87);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}

.market-code-console > header,
.market-progress > header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid var(--market-dark-line);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.market-code-console > header span,
.market-progress > header span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.market-code-console > header i,
.market-progress > header i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.market-code-console > header b,
.market-progress > header b {
  color: #82949d;
}

.market-code-main,
.market-progress-main {
  padding: clamp(24px, 3vw, 34px);
}

.market-code-main > small,
.market-progress-main > small {
  display: block;
  color: #a0b0b7;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.market-code-main > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 13px;
}

.market-code-main > div > strong {
  min-width: 0;
  color: var(--gold);
  font: 900 clamp(2.7rem, 4.2vw, 4.4rem) / .86 var(--display);
  letter-spacing: .03em;
}

#market-copy-code {
  min-width: 112px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(159, 215, 238, .34);
  border-radius: 0;
  color: var(--ice);
  background: rgba(159, 215, 238, .055);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease;
}

#market-copy-code:hover {
  border-color: var(--ice);
  color: #fff;
  background: rgba(159, 215, 238, .12);
  transform: translateY(-2px);
}

.market-code-main > p,
.market-progress-main > p {
  margin: 18px 0 0;
  color: #9dadb4;
  font-size: .78rem;
  line-height: 1.65;
}

.market-code-console > dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--market-dark-line);
}

.market-code-console > dl > div {
  min-width: 0;
  padding: 19px 22px;
  border-right: 1px solid var(--market-dark-line);
}

.market-code-console > dl > div:last-child {
  border-right: 0;
}

.market-code-console dt {
  color: #93a4ab;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.market-code-console dd {
  margin: 9px 0 0;
  color: #fff;
  font: 900 1.32rem / 1 var(--display);
  text-transform: uppercase;
}

.market-external-note {
  display: block;
  padding: 15px 22px 18px;
  color: #93a4ab;
  font-size: .72rem;
  line-height: 1.5;
}

/* Featured offer */

.market-spotlight {
  position: relative;
  color: #f3f6f7;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 188, 56, .095), transparent 34%),
    #091017;
}

.market-spotlight-shell {
  display: grid;
  grid-template-columns: minmax(330px, .8fr) minmax(420px, 1.2fr);
  min-height: 430px;
}

.market-spotlight-media {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  border-inline: 1px solid var(--market-dark-line);
  background:
    radial-gradient(circle at 50% 46%, rgba(67, 97, 110, .42), rgba(6, 11, 15, .82) 66%),
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(159, 215, 238, .025) 29px 30px);
}

.market-spotlight-media::after {
  content: "FEATURED / LIVE";
  position: absolute;
  bottom: 18px;
  left: 20px;
  color: rgba(213, 226, 231, .5);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.market-spotlight-media img {
  width: calc(100% - clamp(54px, 7vw, 104px));
  height: calc(100% - clamp(54px, 7vw, 104px));
  max-height: 350px;
  padding: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, .5));
}

.market-spotlight-media > span {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 9px 11px;
  color: #081017;
  background: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.market-spotlight-copy {
  align-self: center;
  padding: clamp(38px, 4.5vw, 58px) clamp(32px, 5vw, 72px);
}

.market-spotlight-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 10px;
  border: 1px solid rgba(104, 245, 170, .45);
  color: var(--green);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.market-spotlight-copy h2,
.market-reward-copy h2,
.market-section-head h2 {
  margin: 0;
  font: 900 clamp(3.6rem, 6.1vw, 7rem) / .78 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.market-spotlight-copy h2 {
  max-width: 770px;
  font-size: clamp(2.65rem, 4.1vw, 4.6rem);
  line-height: .86;
}

.market-spotlight-copy h2 em,
.market-reward-copy h2 em,
.market-section-head h2 em {
  color: var(--red);
  font-style: normal;
}

.market-spotlight-copy > p:not(.op-kicker) {
  max-width: 640px;
  margin: 19px 0 0;
  padding-left: 15px;
  border-left: 2px solid rgba(225, 38, 73, .72);
  color: #b7c4c9;
  font-size: .92rem;
  line-height: 1.58;
}

.market-spotlight-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 13px;
  margin-top: 23px;
}

.market-spotlight-price strong {
  color: var(--gold);
  font: 900 2rem / 1 var(--display);
}

.market-spotlight-price del {
  color: #788a92;
  font-size: .8rem;
}

.market-spotlight-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 15px 0 21px;
  padding-block: 13px;
  border-block: 1px solid var(--market-dark-line);
  color: #8fa1a9;
  font-size: .72rem;
  line-height: 1.45;
}

.market-spotlight-meta span {
  color: var(--green);
  font-weight: 800;
}

/* Live catalog */

.market-catalog {
  color: #0a151b;
  background: var(--market-paper);
  padding-block: clamp(92px, 10vw, 148px);
}

.market-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: clamp(36px, 7vw, 104px);
  align-items: end;
}

.market-section-head > p {
  margin: 0 0 7px;
  color: var(--market-copy);
  line-height: 1.72;
}

.market-filter-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
  gap: 14px 24px;
  align-items: end;
  margin-top: 52px;
  padding: 20px 0;
  border-block: 1px solid var(--market-light-line);
}

.market-search,
.market-sort {
  display: grid;
  gap: 8px;
}

.market-sort {
  grid-column: 2;
  grid-row: 1;
}

.market-search > span,
.market-sort > span {
  color: #4f626b;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.market-search input,
.market-sort select {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(10, 27, 35, .24);
  border-radius: 0;
  color: #0b171d;
  background: rgba(255, 255, 255, .52);
  outline: 0;
}

.market-search input::placeholder {
  color: #53666f;
  opacity: 1;
}

.market-search input:hover,
.market-sort select:hover {
  border-color: rgba(10, 27, 35, .48);
  background: #fff;
}

.market-search input:focus-visible,
.market-sort select:focus-visible {
  border-color: #b61735;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(182, 23, 53, .13);
}

.market-filters {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.market-filters button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(10, 27, 35, .22);
  border-radius: 0;
  color: #41555e;
  background: transparent;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease;
}

.market-filters button:hover {
  border-color: #b61735;
  color: #0b171d;
  background: rgba(225, 38, 73, .07);
  transform: translateY(-2px);
}

.market-filters button[aria-pressed="true"] {
  border-color: #0a151b;
  color: #fff;
  background: #0a151b;
  box-shadow: inset 0 -3px #e12649;
}

.market-result-line {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #4f626b;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .025em;
}

.market-result-line p {
  margin: 0;
  color: #283b44;
  font-weight: 850;
}

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

/* Live offer cards are generated by market.js. */

.market-offer-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--market-light-line);
  color: #0a151b;
  background: rgba(255, 255, 255, .5);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.market-offer-card:hover,
.market-offer-card:focus-within {
  border-color: rgba(182, 23, 53, .5);
  background: #fff;
  box-shadow: 0 24px 58px rgba(9, 25, 33, .13);
  transform: translateY(-5px);
}

.market-page .market-offer-card,
.market-page .market-offer-card:hover,
.market-page .market-offer-card:focus-visible,
.market-page .market-offer-card:focus-within {
  text-decoration: none;
}

.market-offer-media {
  --market-offer-media-pad: clamp(28px, 2.6vw, 42px);
  position: relative;
  display: grid;
  height: clamp(175px, 15vw, 220px);
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--market-light-line);
  background:
    radial-gradient(circle at 50% 42%, #e8edef, #cfd9dd 75%),
    #dfe6e9;
}

.market-offer-media img {
  position: absolute;
  top: var(--market-offer-media-pad);
  right: var(--market-offer-media-pad);
  bottom: var(--market-offer-media-pad);
  left: var(--market-offer-media-pad);
  width: calc(100% - (var(--market-offer-media-pad) * 2));
  height: calc(100% - (var(--market-offer-media-pad) * 2));
  max-width: none;
  max-height: none;
  padding: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 22px rgba(9, 24, 31, .19));
  transition: transform .45s ease;
}

.market-offer-media.is-fallback img {
  max-width: 72%;
  opacity: .64;
  filter: grayscale(1) drop-shadow(0 14px 20px rgba(9, 24, 31, .16));
}

.market-offer-card:hover .market-offer-media img,
.market-offer-card:focus-within .market-offer-media img {
  transform: scale(1.035);
}

.market-offer-tags {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  pointer-events: none;
}

.market-offer-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  color: #fff;
  background: #14242c;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.market-offer-badge.is-discount {
  background: #d52345;
}

.market-offer-badge.is-featured {
  color: #091017;
  background: var(--gold);
}

.market-offer-badge.is-event {
  color: #07140e;
  background: var(--green);
}

.market-offer-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 19px 20px 20px;
}

.market-offer-type {
  color: #b61735;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.market-offer-title {
  display: -webkit-box;
  min-height: 2.1em;
  margin: 9px 0 0;
  overflow: hidden;
  font: 900 1.55rem / 1.02 var(--display);
  letter-spacing: .005em;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.market-offer-description {
  display: -webkit-box;
  position: relative;
  min-height: 3.05em;
  margin: 13px 0 0;
  padding-left: 12px;
  overflow: hidden;
  color: #42565f;
  font-size: .8rem;
  line-height: 1.52;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.market-offer-description::before {
  content: "";
  position: absolute;
  top: .24em;
  bottom: .24em;
  left: 0;
  width: 2px;
  background: rgba(182, 23, 53, .62);
}

.market-offer-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
}

.market-offer-price {
  color: #0b171d;
  font: 900 1.55rem / 1 var(--display);
}

.market-offer-old-price {
  color: #53666f;
  font-size: .7rem;
  text-decoration: line-through;
}

.market-offer-meta {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-block: 11px;
  border-block: 1px solid var(--market-light-line);
  color: #4f626b;
  font-size: .72rem;
  line-height: 1.4;
}

.market-offer-xp {
  color: #087647;
  font-weight: 850;
}

.market-offer-countdown {
  text-align: right;
}

.market-offer-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid rgba(10, 27, 35, .26);
  color: #0b171d;
  background: transparent;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.market-offer-card:hover .market-offer-action,
.market-offer-card:focus-visible .market-offer-action {
  border-color: #d52345;
  color: #fff;
  background: #d52345;
}

/* Loading, empty and failed feed states */

.market-page .market-skeleton {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(10, 27, 35, .1);
  background:
    linear-gradient(#d8e0e3 0 0) 0 0 / 100% 55% no-repeat,
    linear-gradient(#d2dade 0 0) 21px calc(55% + 24px) / 25% 10px no-repeat,
    linear-gradient(#cbd5d9 0 0) 21px calc(55% + 50px) / 72% 22px no-repeat,
    linear-gradient(#d8e0e3 0 0) 21px calc(55% + 92px) / calc(100% - 42px) 10px no-repeat,
    #f3f6f7;
}

.market-page .market-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 48%, transparent 66%);
  transform: translateX(-110%);
  animation: marketShimmer 1.35s ease-in-out infinite;
}

.market-empty,
.market-error {
  margin-top: 18px;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--market-light-line);
  border-left: 4px solid #15242c;
  background: rgba(255, 255, 255, .48);
}

.market-error {
  border-left-color: #d52345;
}

.market-empty > strong,
.market-error > strong {
  display: block;
  max-width: 760px;
  font: 900 clamp(1.7rem, 3.5vw, 3rem) / .96 var(--display);
  text-transform: uppercase;
}

.market-empty > p,
.market-error > p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--market-copy);
  line-height: 1.65;
}

.market-empty > div,
.market-error > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* Creator Code reward route */

.market-reward {
  position: relative;
  color: #f2f6f7;
  background:
    linear-gradient(115deg, rgba(255, 49, 86, .08), transparent 38%),
    #060b0f;
  padding-block: clamp(96px, 10vw, 150px);
}

.market-reward::after {
  content: "XP";
  position: absolute;
  right: -2vw;
  bottom: -4vw;
  color: rgba(255, 255, 255, .022);
  font: 900 min(32vw, 30rem) / .7 var(--display);
  pointer-events: none;
}

.market-reward-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
}

.market-reward-copy > p:not(.op-kicker) {
  max-width: 670px;
  margin: 27px 0 0;
  color: #a8b7bd;
  line-height: 1.72;
}

.market-reward-copy ol {
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid var(--market-dark-line);
  list-style: none;
}

.market-reward-copy li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--market-dark-line);
}

.market-reward-copy li > b {
  color: var(--red);
  font: 900 1.4rem / 1 var(--display);
}

.market-reward-copy li > span {
  display: grid;
  gap: 6px;
}

.market-reward-copy li strong {
  font: 850 1rem / 1.1 var(--display);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.market-reward-copy li small {
  color: #82959e;
  font-size: .75rem;
  line-height: 1.55;
}

.market-progress-main > strong {
  display: block;
  margin-top: 14px;
  color: var(--gold);
  font: 900 clamp(2rem, 3.4vw, 3.25rem) / .92 var(--display);
  text-transform: uppercase;
}

.market-progress-track {
  position: relative;
  height: 9px;
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid rgba(159, 215, 238, .18);
  background: #0c171e;
}

.market-progress-track > i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  box-shadow: 0 0 16px rgba(104, 245, 170, .28);
  transition: width .45s ease;
}

.market-progress-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--market-dark-line);
}

.market-progress-actions .ctv-text-link {
  min-height: 58px;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--market-dark-line);
  border-radius: 0;
  color: #dce6e9;
  background: transparent;
  text-align: left;
}

.market-progress-actions .ctv-text-link:last-child {
  border-right: 0;
}

.market-progress-actions .ctv-text-link:hover,
.market-progress-actions .ctv-text-link:focus-visible {
  color: #fff;
  background: rgba(159, 215, 238, .07);
}

.market-progress > footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px 14px;
  align-items: center;
  padding: 17px 20px;
  border-top: 1px solid var(--market-dark-line);
  color: #93a4ab;
  font-size: .7rem;
}

.market-progress > footer span {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.market-progress > footer strong {
  color: #9cadb4;
  font-weight: 650;
}

.market-progress > footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ice);
  font-weight: 850;
  text-decoration: none;
}

/* Disclosure and toast */

.market-disclosure {
  color: #18272e;
  background: var(--market-paper);
}

.market-disclosure .section-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-block: 32px;
  border-top: 1px solid var(--market-light-line);
}

.market-disclosure strong {
  color: #b61735;
  font: 900 1rem / 1 var(--display);
  letter-spacing: .05em;
}

.market-disclosure p {
  margin: 0;
  color: #596b73;
  font-size: .75rem;
  line-height: 1.6;
}

.market-disclosure .ctv-text-link {
  min-height: 44px;
  color: #13242c;
}

.market-toast {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 120;
  width: min(390px, calc(100vw - 32px));
  min-height: 52px;
  padding: 16px 18px;
  border: 1px solid rgba(104, 245, 170, .5);
  color: #eaf4ef;
  background: rgba(6, 17, 14, .96);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .34);
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .2s ease, transform .2s ease;
}

.market-toast.show,
.market-toast.is-visible,
.market-toast[data-state="visible"] {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.market-toast.is-error,
.market-toast[data-tone="error"],
.market-toast[data-type="error"] {
  border-color: rgba(255, 75, 108, .68);
  color: #ffe6eb;
  background: rgba(35, 7, 13, .97);
}

/* Page-local keyboard focus */

.market-page #market-copy-code:focus-visible,
.market-page .market-filters button:focus-visible,
.market-page .market-offer-action:focus-visible,
.market-page .market-progress > footer a:focus-visible {
  outline: 3px solid #b61735;
  outline-offset: 3px;
}

.market-hero #market-copy-code:focus-visible,
.market-reward .ctv-text-link:focus-visible,
.market-reward a:focus-visible {
  outline-color: var(--ice);
}

@keyframes marketShimmer {
  to { transform: translateX(110%); }
}

/* Tablet */

@media (max-width: 1100px) {
  .market-hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 86px);
  }

  .market-hero-shell {
    display: block;
  }

  .market-hero-copy h1 {
    font-size: clamp(4rem, 8vw, 6.4rem);
  }

  .market-spotlight-shell {
    grid-template-columns: 1fr 1fr;
  }

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

  .market-reward-shell {
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .market-hero-shell,
  .market-spotlight-shell,
  .market-reward-shell {
    grid-template-columns: 1fr;
  }

  .market-hero {
    padding-top: calc(var(--nav-h) + 72px);
  }

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

  .market-code-console {
    width: min(100%, 620px);
  }

  .market-spotlight-media {
    min-height: 280px;
    border: 1px solid var(--market-dark-line);
    border-bottom: 0;
  }

  .market-spotlight-media img {
    max-height: 230px;
  }

  .market-spotlight-copy {
    padding: 36px 0 48px;
  }

  .market-section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .market-section-head > p {
    max-width: 650px;
  }

  .market-reward-shell {
    gap: 56px;
  }

  .market-progress {
    width: min(100%, 680px);
  }

  .market-disclosure .section-shell {
    grid-template-columns: 1fr;
    gap: 13px;
  }
}

/* Mobile, including 390 px */

@media (max-width: 620px) {
  .market-hero {
    padding: calc(var(--nav-h) + 52px) 0 44px;
  }

  .market-hero-image {
    background-position: 46% 50%;
  }

  .market-hero::before {
    background:
      linear-gradient(90deg, rgba(3, 7, 10, .97), rgba(3, 7, 10, .84)),
      linear-gradient(0deg, #05090c 0%, transparent 50%, rgba(3, 7, 10, .55));
  }

  .market-hero-shell {
    gap: 38px;
  }

  .market-hero-copy h1 {
    font-size: clamp(3.65rem, 17.5vw, 5.2rem);
    line-height: .78;
  }

  .market-hero-copy > p:not(.op-kicker) {
    margin-top: 23px;
    font-size: .9rem;
  }

  .market-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 27px;
  }

  .market-hero-actions .ctv-action,
  .market-spotlight-copy .ctv-action {
    width: 100%;
    min-width: 0;
  }

  .market-code-main,
  .market-progress-main {
    padding: 24px 18px;
  }

  .market-code-main > div {
    align-items: stretch;
    flex-direction: column;
  }

  .market-code-main > div > strong {
    font-size: clamp(2.7rem, 14vw, 3.6rem);
  }

  #market-copy-code {
    width: 100%;
  }

  .market-code-console > header,
  .market-progress > header {
    padding-inline: 16px;
  }

  .market-code-console > dl > div {
    padding-inline: 16px;
  }

  .market-spotlight-shell {
    width: 100%;
  }

  .market-spotlight-media {
    min-height: 210px;
    border-inline: 0;
  }

  .market-spotlight-media img {
    width: calc(100% - 44px);
    height: calc(100% - 38px);
    max-height: 174px;
    padding: 0;
  }

  .market-spotlight-copy {
    width: var(--shell);
    margin-inline: auto;
    padding: 30px 0 42px;
  }

  .market-spotlight-copy h2,
  .market-reward-copy h2,
  .market-section-head h2 {
    font-size: clamp(3.15rem, 15.5vw, 4.7rem);
  }

  .market-spotlight-copy h2 {
    font-size: clamp(2.5rem, 12vw, 3.3rem);
  }

  .market-spotlight-meta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .market-catalog,
  .market-reward {
    padding-block: 76px;
  }

  .market-filter-console {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .market-sort {
    grid-column: auto;
    grid-row: auto;
  }

  .market-filters {
    grid-column: auto;
    grid-row: auto;
    flex-wrap: nowrap;
    margin-inline: calc((100vw - var(--shell)) / -2);
    padding-inline: calc((100vw - var(--shell)) / 2);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: inline proximity;
  }

  .market-filters button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .market-result-line {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 12px;
  }

  .market-page .market-grid {
    grid-template-columns: 1fr;
  }

  .market-offer-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .market-offer-media {
    --market-offer-media-pad: 10px;
    height: auto;
    min-height: 100%;
    border-right: 1px solid var(--market-light-line);
    border-bottom: 0;
  }

  .market-offer-media img {
    width: calc(100% - (var(--market-offer-media-pad) * 2));
    height: calc(100% - (var(--market-offer-media-pad) * 2));
    min-height: 0;
    max-height: none;
    padding: 0;
  }

  .market-offer-tags {
    top: 8px;
    right: 7px;
    left: 7px;
  }

  .market-offer-badge {
    min-height: 25px;
    padding-inline: 6px;
    font-size: .68rem;
  }

  .market-offer-copy {
    padding: 16px;
  }

  .market-offer-title {
    min-height: 0;
    font-size: 1.3rem;
  }

  .market-offer-description {
    -webkit-line-clamp: 2;
  }

  .market-offer-prices {
    padding-top: 16px;
  }

  .market-offer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .market-offer-countdown {
    text-align: left;
  }

  .market-page .market-skeleton {
    min-height: 235px;
  }

  .market-empty,
  .market-error {
    padding: 28px 20px;
  }

  .market-empty > div,
  .market-error > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .market-empty .ctv-action,
  .market-error .ctv-action {
    width: 100%;
  }

  .market-progress-actions {
    grid-template-columns: 1fr;
  }

  .market-progress-actions .ctv-text-link {
    border-right: 0;
    border-bottom: 1px solid var(--market-dark-line);
  }

  .market-progress-actions .ctv-text-link:last-child {
    border-bottom: 0;
  }

  .market-progress > footer {
    grid-template-columns: 1fr;
  }

  .market-progress > footer a {
    justify-self: start;
  }

  .market-toast {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
  }
}

@media (max-width: 390px) {
  .market-code-console > dl {
    grid-template-columns: 1fr;
  }

  .market-code-console > dl > div {
    border-right: 0;
    border-bottom: 1px solid var(--market-dark-line);
  }

  .market-code-console > dl > div:last-child {
    border-bottom: 0;
  }

  .market-offer-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .market-offer-description {
    display: none;
  }

  .market-offer-meta {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-page *,
  .market-page *::before,
  .market-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .market-page .market-skeleton::after {
    display: none;
  }
}

@media (forced-colors: active) {
  .market-code-console,
  .market-progress,
  .market-offer-card,
  .market-empty,
  .market-error,
  .market-search input,
  .market-sort select,
  .market-filters button {
    border: 1px solid CanvasText;
  }

  .market-offer-badge,
  .market-filters button[aria-pressed="true"] {
    border: 1px solid CanvasText;
  }
}
