/* KUJISA marketplace home — original two-tier market layout, refined */

.market-home {
  --m-bg: #100c0c;
  --m-bg-soft: #171110;
  --m-panel: #1b1413;
  --m-panel-2: #241916;
  --m-line: #432b26;
  --m-line-gold: #6a5044;
  --m-text: #f0e4d3;
  --m-cream: #d8c1a3;
  --m-muted: #aa9584;
  --m-dim: #79665b;
  --m-red: #9b332b;
  --m-red-bright: #c94d3e;
  --m-red-dark: #591817;
  --m-yellow: #b99660;
  --m-cyan: #b99a78;
  --m-green: #60765f;
  --m-header: #0c0909;
  --m-paper: #d8c3a3;
  --m-paper-ink: #241916;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% -8%, rgba(155, 51, 43, .2), transparent 36rem),
    radial-gradient(circle at 7% 26%, rgba(82, 46, 36, .24), transparent 34rem),
    repeating-linear-gradient(0deg, rgba(216, 195, 163, .018) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #0e0a09 0%, var(--m-bg) 48%, #0b0807 100%);
  color: var(--m-text);
  font-family: "Noto Sans KR", sans-serif;
}

[data-theme="ichiban"] .market-home {
  --m-bg: #f0e8dc;
  --m-bg-soft: #e7dccf;
  --m-panel: #fbf6ed;
  --m-panel-2: #eee3d5;
  --m-line: #c8b7a6;
  --m-line-gold: #ad9275;
  --m-text: #241916;
  --m-cream: #241916;
  --m-muted: #705e52;
  --m-dim: #8b7768;
  --m-red: #9f2d29;
  --m-red-bright: #bd4135;
  --m-red-dark: #671815;
  --m-yellow: #b58e55;
  --m-cyan: #745840;
  --m-green: #536b52;
  --m-header: #f7efe4;
  --m-paper: #f3e6d3;
  --m-paper-ink: #241916;
  background:
    radial-gradient(circle at 76% -8%, rgba(159, 45, 41, .1), transparent 36rem),
    repeating-linear-gradient(0deg, rgba(87, 55, 41, .025) 0 1px, transparent 1px 8px),
    var(--m-bg);
}

.market-home .kujisa-atmosphere-art {
  background:
    linear-gradient(180deg, rgba(16, 12, 11, .1), rgba(16, 12, 11, .48)),
    url("assets/kujisa-hero.webp") 83% 2% / min(1280px, 94vw) auto no-repeat;
  opacity: .31;
  filter: saturate(.88) contrast(1.1) brightness(1.12);
}

.market-home .kujisa-smoke {
  --smoke-min: .34;
  --smoke-max: .68;
}

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

.market-home a {
  color: inherit;
  text-decoration: none;
}

.market-home button,
.market-home input,
.market-home select {
  font: inherit;
}

.market-shell {
  width: min(1320px, calc(100% - 44px));
  margin-inline: auto;
}

.product-shell {
  width: min(1320px, calc(100% - 44px));
  margin-inline: auto;
}

/* Header */
.market-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--m-line);
  background: color-mix(in srgb, var(--m-header) 92%, transparent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.market-header-main {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 70px;
}

.market-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 12px;
}

.market-brand-symbol {
  display: inline-grid;
  width: 40px;
  height: 42px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.market-brand-symbol img {
  width: 38px;
  height: 41px;
  object-fit: contain;
}

.market-search {
  display: flex;
  width: min(100%, 520px);
  min-width: 0;
  align-items: center;
  gap: 10px;
  justify-self: center;
  padding: 0 13px;
  border: 1px solid var(--m-line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--m-panel) 92%, transparent);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.market-search:focus-within {
  border-color: color-mix(in srgb, var(--m-red) 70%, var(--m-line));
  box-shadow: 0 0 0 3px rgba(223, 56, 60, .11);
}

.market-search > button {
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--m-muted);
  cursor: pointer;
  font: 500 22px/1 sans-serif;
}

.market-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--m-text);
  font-size: 15px;
}

.market-search input::placeholder { color: var(--m-dim); }

.market-search kbd {
  padding: 3px 7px;
  border: 1px solid var(--m-line);
  border-radius: 2px;
  color: var(--m-dim);
  background: var(--m-bg-soft);
  font: 600 10px/1.4 "IBM Plex Mono", monospace;
}

.market-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-subpage-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 34px);
}

.market-subpage-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--m-muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.market-subpage-nav a:hover,
.market-subpage-nav a.is-current {
  color: var(--m-text);
}

.market-subpage-nav a.is-current::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--m-red-bright);
}

.market-wallet {
  display: grid;
  min-height: 42px;
  align-content: center;
  padding: 4px 12px;
  border: 1px solid var(--m-line);
  border-radius: 4px;
  background: var(--m-panel);
  white-space: nowrap;
}

.market-wallet b {
  color: var(--m-text);
  font-size: 14px;
}

.market-auth-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 4px;
  border: 1px solid var(--m-line);
  background: var(--m-panel);
  color: var(--m-text) !important;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.market-login:hover {
  border-color: color-mix(in srgb, var(--m-red) 62%, var(--m-line));
  background: color-mix(in srgb, var(--m-panel) 82%, var(--m-red));
}

.market-signup {
  border-color: var(--m-red);
  background: var(--m-red);
  color: #fff !important;
}

.market-signup:hover {
  background: var(--m-red-bright);
}

.market-mobile-menu { display: none; }

.market-category-bar {
  border-top: 1px solid color-mix(in srgb, var(--m-line) 72%, transparent);
  background: color-mix(in srgb, var(--m-header) 97%, transparent);
}

.market-category-row {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.market-category-row::-webkit-scrollbar { display: none; }

.market-category,
.market-category-row > a {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--m-muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.market-category span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--m-line);
  border-radius: 6px;
  font: 700 10px/1 "Noto Serif KR", serif;
}

.market-category::after {
  position: absolute;
  right: 11px;
  bottom: -1px;
  left: 11px;
  height: 2px;
  background: var(--m-red);
  content: "";
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .2s ease, transform .2s ease;
}

.market-category:hover,
.market-category.is-active,
.market-category-row > a:hover {
  color: var(--m-text);
}

.market-category.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.market-category.is-active span {
  border-color: rgba(223, 56, 60, .45);
  background: rgba(223, 56, 60, .12);
  color: var(--m-red-bright);
}

.market-category-divider {
  width: 1px;
  height: 18px;
  flex: none;
  margin: 0 8px;
  background: var(--m-line);
}

.market-showcase-link {
  margin-left: 2px;
  color: var(--m-text) !important;
}

.market-showcase-link::before {
  width: 14px;
  height: 14px;
  border: 1px solid var(--m-red);
  border-top-color: var(--m-paper);
  background:
    linear-gradient(180deg, transparent 45%, rgba(223, 56, 60, .3) 46% 54%, transparent 55%);
  box-shadow: inset 0 -4px 0 rgba(223, 56, 60, .16);
  content: "";
}

/* Restored hero skeleton: main banner + right rail */
.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(270px, 21vw, 296px);
  gap: 16px;
  padding-block: 24px 18px;
}

.market-hero-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(540px, auto) 112px;
  grid-template-areas:
    "slider"
    "board";
  border: 1px solid var(--m-line);
  border-radius: 6px;
  background: #0a0707;
  box-shadow:
    inset 0 0 0 1px rgba(174, 137, 108, .07),
    0 30px 80px rgba(0, 0, 0, .44);
  isolation: isolate;
}

.market-hero-card::before {
  position: absolute;
  inset: 7px;
  z-index: 9;
  border: 1px solid rgba(174, 137, 108, .12);
  content: "";
  pointer-events: none;
}

.market-hero-slider {
  position: relative;
  min-width: 0;
  min-height: 540px;
  overflow: hidden;
  grid-area: slider;
  background: #080606;
  isolation: isolate;
}

.market-hero-track,
.market-hero-slide {
  position: absolute;
  inset: 0;
}

.market-hero-slide {
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition:
    opacity .68s ease,
    visibility .68s step-end,
    transform .9s cubic-bezier(.2, .7, .2, 1);
  visibility: hidden;
  isolation: isolate;
}

.market-hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity .68s ease,
    visibility 0s step-start,
    transform .9s cubic-bezier(.2, .7, .2, 1);
  visibility: visible;
}

.market-hero-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 6, 6, .98) 0%, rgba(10, 7, 7, .91) 28%, rgba(10, 7, 7, .68) 43%, rgba(10, 7, 7, .13) 68%, rgba(10, 7, 7, .24) 100%),
    linear-gradient(0deg, rgba(8, 6, 6, .6), transparent 28%, transparent 78%, rgba(8, 6, 6, .2));
  box-shadow: inset 0 0 64px rgba(5, 3, 3, .38);
  content: "";
  pointer-events: none;
}

.market-hero-slide-light::after {
  background:
    linear-gradient(90deg, rgba(245, 238, 224, .97) 0%, rgba(245, 238, 224, .86) 31%, rgba(245, 238, 224, .38) 48%, rgba(245, 238, 224, .03) 69%),
    linear-gradient(0deg, rgba(245, 238, 224, .35), transparent 35%);
  box-shadow: inset 0 0 62px rgba(96, 50, 35, .1);
}

.market-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96) contrast(1.04);
  transform: scale(1.045);
  transition: transform 7s linear;
  will-change: transform;
}

.market-hero-slide.is-active .market-hero-media {
  transform: scale(1);
}

.market-hero-copy {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  width: min(52%, 580px);
  min-width: 460px;
  flex-direction: column;
  justify-content: center;
  padding: 54px 32px 52px 44px;
}

.market-kicker {
  margin: 0;
  color: var(--m-red-bright);
  font: 700 12px/1.5 "IBM Plex Mono", monospace;
  letter-spacing: .14em;
}

.market-kicker span {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--m-red);
  color: #fff;
  letter-spacing: .08em;
}

.market-hero-copy h1,
.market-hero-copy h2 {
  margin: 20px 0 18px;
  color: #f0e4d3;
  font: 900 clamp(30px, 2.7vw, 50px)/1.18 "Noto Serif KR", serif;
  letter-spacing: -.045em;
  word-break: keep-all;
}

.market-hero-copy h1 em,
.market-hero-copy h2 em {
  color: #c94d3e;
  font-style: normal;
}

.market-hero-copy > p:not(.market-kicker) {
  max-width: 430px;
  margin: 0;
  color: #b7afa9;
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.market-hero-slide-light .market-kicker {
  color: #8f2d28;
}

.market-hero-slide-light .market-hero-copy h1,
.market-hero-slide-light .market-hero-copy h2 {
  color: #241916;
}

.market-hero-slide-light .market-hero-copy > p:not(.market-kicker) {
  color: #57473e;
}

.market-hero-slide-light .market-secondary-cta {
  border-color: rgba(77, 49, 40, .28);
  background: rgba(255, 250, 241, .76);
  color: #2d201c;
}

.market-hero-slide-light .market-hero-tags span {
  border-color: rgba(77, 49, 40, .25);
  background: rgba(255, 250, 241, .34);
  color: #655146;
}

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

.market-primary-cta,
.market-secondary-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.market-primary-cta {
  background: var(--m-red);
  box-shadow: 0 12px 28px rgba(155, 51, 43, .24);
  color: #fff !important;
}

.market-secondary-cta {
  border: 1px solid #50332d;
  background: #17100f;
  color: #e9dac7;
}

.market-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.market-hero-tags span {
  padding: 5px 8px;
  border: 1px solid #432b26;
  border-radius: 3px;
  color: #8f8986;
  font-size: 12px;
  font-weight: 800;
}

.market-hero-swordwind {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.market-hero-swordwind i {
  position: absolute;
  left: -72%;
  width: 158%;
  height: 64px;
  opacity: 0;
  background:
    linear-gradient(180deg, transparent 31%, rgba(255, 247, 237, .06) 39%, rgba(255, 250, 244, .96) 48%, rgba(201, 77, 62, .55) 52%, transparent 69%);
  clip-path: polygon(0 49%, 72% 34%, 100% 48%, 74% 63%, 0 54%);
  transform: translate3d(-16%, 0, 0) rotate(var(--hero-wind-angle, -10deg));
  transform-origin: center;
  animation: marketHeroSwordwind 12s cubic-bezier(.12, .74, .16, 1) var(--hero-wind-delay, 0s) infinite;
  will-change: transform, opacity;
}

.market-hero-swordwind i::after {
  position: absolute;
  top: 49%;
  right: 3%;
  left: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff9f2 66%, #df5e4d 83%, transparent);
  box-shadow: 0 0 8px rgba(255, 242, 230, .82), 0 0 22px rgba(201, 77, 62, .58);
  content: "";
}

.market-hero-swordwind i:nth-child(1) {
  --hero-wind-angle: -12deg;
  --hero-wind-delay: 0s;
  top: 44%;
}

.market-hero-swordwind i:nth-child(2) {
  --hero-wind-angle: -6deg;
  --hero-wind-delay: .09s;
  top: 54%;
  height: 48px;
  opacity: 0;
}

.market-hero-swordwind i:nth-child(3) {
  --hero-wind-angle: 6deg;
  --hero-wind-delay: .18s;
  top: 68%;
  height: 42px;
}

.market-hero-petals {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.market-hero-petals i {
  --hero-petal-size: 18px;
  --hero-petal-drift: 70px;
  position: absolute;
  top: -12%;
  left: 12%;
  width: var(--hero-petal-size);
  aspect-ratio: 1.35 / 1;
  border: 1px solid rgba(255, 239, 232, .72);
  border-radius: 84% 12% 78% 26%;
  background: linear-gradient(145deg, #fff9f4 0 12%, #f0c8bf 34%, #d56e63 67%, #7f2824 100%);
  box-shadow: 0 0 8px rgba(255, 225, 215, .68), 0 0 18px rgba(211, 90, 70, .38);
  opacity: 0;
  animation: marketHeroPetal var(--hero-petal-duration, 10s) ease-in-out var(--hero-petal-delay, 0s) infinite;
}

.market-hero-petals i:nth-child(1) { left: 8%; --hero-petal-size: 19px; --hero-petal-drift: 94px; --hero-petal-duration: 9.8s; --hero-petal-delay: -6.2s; }
.market-hero-petals i:nth-child(2) { left: 25%; --hero-petal-size: 14px; --hero-petal-drift: -58px; --hero-petal-duration: 12.2s; --hero-petal-delay: -2.4s; }
.market-hero-petals i:nth-child(3) { left: 39%; --hero-petal-size: 25px; --hero-petal-drift: 112px; --hero-petal-duration: 11.1s; --hero-petal-delay: -8.1s; }
.market-hero-petals i:nth-child(4) { left: 56%; --hero-petal-size: 17px; --hero-petal-drift: -76px; --hero-petal-duration: 13.4s; --hero-petal-delay: -4.8s; }
.market-hero-petals i:nth-child(5) { left: 70%; --hero-petal-size: 27px; --hero-petal-drift: 88px; --hero-petal-duration: 10.6s; --hero-petal-delay: -1.2s; }
.market-hero-petals i:nth-child(6) { left: 84%; --hero-petal-size: 16px; --hero-petal-drift: -104px; --hero-petal-duration: 12.8s; --hero-petal-delay: -9.5s; }
.market-hero-petals i:nth-child(7) { left: 94%; --hero-petal-size: 22px; --hero-petal-drift: -84px; --hero-petal-duration: 11.8s; --hero-petal-delay: -5.5s; }

.market-hero-board {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  align-items: stretch;
  grid-area: board;
  border-top: 1px solid #432b26;
  background:
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(216, 195, 163, .022) 35px 36px),
    #120c0b;
}

.market-live-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border-right: 1px solid #432b26;
}

.market-live-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #e05245;
  box-shadow: 0 0 0 5px rgba(224, 82, 69, .1), 0 0 14px rgba(224, 82, 69, .72);
  animation: marketLivePulse 1.8s ease-in-out infinite;
}

.market-live-head p {
  margin: 0 0 4px;
  color: #d35a46;
  font: 700 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .14em;
}

.market-live-head h2 {
  margin: 0;
  color: #f5eee7;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.market-live-window {
  display: flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  padding: 12px 18px;
}

.market-live-event {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 72px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  color: #eee2d4;
}

.market-live-event.is-changing {
  animation: marketLiveRise .46s cubic-bezier(.2, .75, .25, 1);
}

.market-live-event time {
  color: #877c74;
  font: 600 12px/1 "IBM Plex Mono", monospace;
}

.market-live-event strong {
  overflow: hidden;
  color: #d7b180;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-live-event > span {
  min-width: 0;
  overflow: hidden;
  color: #c8bcb2;
  font-size: 13.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-live-event em {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(211, 90, 70, .36);
  border-radius: 6px;
  background: rgba(164, 56, 46, .1);
  color: #dc7a68;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.market-hero-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.market-first-guide {
  display: grid;
  min-height: 142px;
  grid-template-columns: 50px 1fr 34px;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--m-line);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(155, 51, 43, .16), transparent 58%),
    var(--m-panel);
  box-shadow: inset 0 0 0 1px rgba(174, 137, 108, .04), 0 18px 42px rgba(0, 0, 0, .2);
}

.market-first-icon {
  display: grid;
  width: 50px;
  height: 61px;
  place-items: center;
  border: 1px solid rgba(223, 56, 60, .35);
  border-radius: 3px;
  background: #100b0a;
  color: var(--m-red-bright);
  font: 900 25px/1 "Noto Serif KR", serif;
}

.market-first-guide p,
.market-hot-head p {
  margin: 0 0 3px;
  color: var(--m-red-bright);
  font: 700 11px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .12em;
}

.market-first-guide h2,
.market-hot-head h2 {
  margin: 0;
  color: var(--m-text);
  font-size: 18px;
  font-weight: 900;
}

.market-first-guide div > span {
  display: block;
  margin-top: 5px;
  color: var(--m-muted);
  font-size: 13px;
  line-height: 1.55;
}

.market-first-guide button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--m-line);
  border-radius: 3px;
  background: var(--m-bg-soft);
  color: var(--m-text);
  cursor: pointer;
}

.market-hot {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--m-line);
  border-radius: 6px;
  background: var(--m-panel);
  box-shadow: inset 0 0 0 1px rgba(174, 137, 108, .035), 0 18px 42px rgba(0, 0, 0, .2);
}

.market-hot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--m-line);
}

.market-hot-head > span {
  color: var(--m-dim);
  font: 600 10px/1.4 "IBM Plex Mono", monospace;
}

.market-hot ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.market-hot li {
  border-bottom: 1px solid color-mix(in srgb, var(--m-line) 68%, transparent);
}

.market-hot li a {
  display: grid;
  grid-template-columns: 20px 52px minmax(0, 1fr) 13px;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
}

.market-hot li a > b {
  color: var(--m-dim);
  font: 600 12px/1 "IBM Plex Mono", monospace;
}

.market-hot li img {
  width: 52px;
  height: 52px;
  border-radius: 3px;
  object-fit: cover;
  filter: saturate(.86);
}

.market-hot li span {
  min-width: 0;
}

.market-hot li strong,
.market-hot li small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-hot li strong {
  color: var(--m-text);
  font-size: 13px;
}

.market-hot li small {
  margin-top: 3px;
  color: var(--m-muted);
  font-size: 11px;
}

.market-hot li em {
  color: var(--m-dim);
  font-style: normal;
}

.market-hot-more {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 13px;
  border: 1px solid var(--m-line);
  border-radius: 3px;
  color: var(--m-muted) !important;
  font-size: 12px;
  font-weight: 800;
}

.market-hot-more span { color: var(--m-red-bright); }

/* Product marketplace */
.market-products {
  position: relative;
  padding: 52px 0 84px;
  border-top: 1px solid color-mix(in srgb, var(--m-line) 74%, transparent);
  background:
    linear-gradient(180deg, rgba(155, 51, 43, .065), transparent 280px),
    repeating-linear-gradient(90deg, transparent 0 131px, rgba(216, 195, 163, .012) 131px 132px);
  isolation: isolate;
}

.market-products::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 12, 12, .76), rgba(16, 12, 12, .94)),
    url("assets/kujisa-hero.webp") center 24% / min(1500px, 100vw) auto no-repeat;
  content: "";
  opacity: .12;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 76%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 76%, transparent);
}

.market-products::after {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, var(--m-red) 50%, transparent 92%);
  content: "";
  opacity: .7;
}

.market-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.market-products-head h2 {
  margin: 7px 0 7px;
  color: var(--m-text);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.045em;
}

.market-products-head > div:first-child > p:last-child {
  max-width: 670px;
  margin: 0;
  color: var(--m-muted);
  font-size: 14px;
  line-height: 1.65;
}

.market-products-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 11px;
}

.market-products-tools > span {
  color: var(--m-dim);
  font: 600 13px/1.4 "IBM Plex Mono", monospace;
}

.market-products-tools b { color: var(--m-red-bright); }

.market-products-tools select {
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--m-line);
  border-radius: 3px;
  outline: 0;
  background: var(--m-panel);
  color: var(--m-text);
  font-size: 14px;
  font-weight: 800;
}

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

.market-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--m-line-gold);
  border-radius: 6px;
  background: var(--m-paper);
  box-shadow:
    inset 0 0 0 1px rgba(52, 32, 24, .1),
    0 18px 50px rgba(0, 0, 0, .34);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  scroll-margin-top: 132px;
}

.market-product-card:hover {
  border-color: color-mix(in srgb, var(--m-yellow) 55%, var(--m-line-gold));
  box-shadow:
    inset 0 0 0 1px rgba(52, 32, 24, .1),
    0 26px 64px rgba(0, 0, 0, .44);
  transform: translateY(-3px);
}

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

.market-product-art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--m-line-gold);
  background: #09090e;
  color: #fff;
  text-decoration: none;
}

.market-product-art::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 5px 5px 0 0;
  background:
    linear-gradient(0deg, rgba(12, 8, 8, .7), transparent 38%),
    linear-gradient(90deg, rgba(12, 8, 8, .18), transparent 30%, transparent 72%, rgba(12, 8, 8, .16));
  content: "";
  pointer-events: none;
}

.market-product-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.76) sepia(.06) contrast(1.06);
  transition: transform .35s ease, filter .25s ease;
}

.market-product-card:hover .market-product-art > img {
  transform: scale(1.012);
  filter: saturate(.92) sepia(.03) contrast(1.07);
}

.market-product-art:focus-visible {
  z-index: 5;
  outline: 4px solid #f0c27b;
  outline-offset: -4px;
}

.market-status-badge {
  position: absolute;
  z-index: 2;
}

.market-status-badge {
  top: 14px;
  right: 14px;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 3px;
  box-shadow: 0 6px 17px rgba(0, 0, 0, .18);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.market-status-badge.is-live { background: #52664f; }
.market-status-badge.is-ending { background: #9b332b; }
.market-status-badge.is-new { background: #805b3d; }
.market-status-badge.is-upcoming { background: #805b3d; }
.market-status-badge.is-closed { background: #7d302d; }

.market-sold-stamp {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: 132px;
  min-height: 58px;
  place-items: center;
  border: 2px solid #c54e43;
  background: rgba(15, 9, 9, .66);
  box-shadow: inset 0 0 0 4px rgba(197, 78, 67, .1);
  color: #d86658;
  font: 900 18px/1 "Nunito Sans", "Noto Sans KR", sans-serif;
  letter-spacing: .12em;
  text-align: center;
  text-shadow: 0 1px #000;
  transform: translate(-50%, -50%);
}

.market-sold-stamp small {
  display: block;
  font: 700 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .16em;
}

.market-product-card.is-archive .market-product-art > img {
  filter: grayscale(1) sepia(.08) brightness(.5) contrast(.94);
}

.market-product-body {
  display: flex;
  min-height: 198px;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 17px;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(64, 39, 29, .035) 7px 8px),
    radial-gradient(circle at 82% 12%, rgba(155, 51, 43, .07), transparent 38%),
    var(--m-paper);
  color: var(--m-paper-ink);
}

.market-product-card h3 {
  display: block;
  min-height: 30px;
  margin: 0;
  overflow: hidden;
  color: var(--m-paper-ink);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-card-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.market-card-progress-track {
  position: relative;
  height: 11px;
  overflow: hidden;
  border: 1px solid rgba(52, 34, 29, .28);
  border-radius: 999px;
  background: rgba(31, 23, 23, .2);
  box-shadow: inset 0 1px 3px rgba(30, 16, 11, .22);
}

.market-card-progress-track i {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, .18) 0 9px, transparent 9px 18px),
    linear-gradient(90deg, #bd7c21, #e0aa45);
  box-shadow: 0 0 12px rgba(177, 102, 22, .24);
  transition: width .3s ease;
}

.market-card-progress > strong {
  min-width: 48px;
  color: #6f5948;
  font: 800 12px/1 "Noto Sans KR", sans-serif;
  text-align: right;
  white-space: nowrap;
}

.market-card-progress > strong b {
  color: #8d332c;
  font: inherit;
}

.market-prize-chips {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  overflow: hidden;
}

.market-prize-chips span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  min-height: 31px;
  padding: 6px 8px;
  border: 1px solid rgba(67, 43, 38, .3);
  border-radius: 4px;
  background: rgba(255, 248, 236, .38);
  color: #4c392f;
  font: 900 12px/1.2 "Noto Sans KR", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-prize-chips b {
  color: #3c2c25;
  font: 800 12px/1 "IBM Plex Mono", monospace;
}

.market-prize-chips i {
  color: #9b332b;
  font-style: normal;
}

.market-ticket-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: auto;
  padding-top: 15px;
  border-block: 1px solid rgba(67, 43, 38, .26);
}

.market-ticket-meta p {
  display: flex;
  min-width: 0;
  min-height: 66px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 9px 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.market-ticket-meta p:first-child {
  border-right: 1px solid rgba(67, 43, 38, .26);
}

.market-ticket-meta span {
  color: #806c5e;
  font-size: 12px;
  font-weight: 900;
}

.market-ticket-meta strong {
  color: var(--m-paper-ink);
  font-size: clamp(18px, 1.25vw, 23px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  white-space: nowrap;
}

.market-ticket-meta strong b {
  color: #8d332c;
  font: inherit;
}

.market-ticket-meta small {
  color: #755f50;
  font-size: .58em;
  font-weight: 800;
  letter-spacing: -.02em;
}

.market-empty {
  margin: 40px 0;
  padding: 54px 20px;
  border: 1px dashed var(--m-line);
  border-radius: 4px;
  text-align: center;
}

.market-empty > span {
  display: inline-grid;
  width: 52px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--m-line);
  border-radius: 3px;
  color: var(--m-red);
  font: 900 24px/1 "Noto Serif KR", serif;
}

.market-empty p {
  margin: 13px 0;
  color: var(--m-muted);
  font-size: 14px;
}

.market-empty button {
  padding: 9px 14px;
  border: 1px solid var(--m-line);
  border-radius: 3px;
  background: var(--m-panel);
  color: var(--m-text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.market-source-note {
  max-width: 900px;
  margin: 24px auto 0;
  color: #8f7969;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  word-break: keep-all;
}

/* Proof / ticket detail */
.market-proof {
  position: relative;
  padding: 62px 0 70px;
  overflow: hidden;
  border-top: 1px solid var(--m-line);
  background:
    radial-gradient(circle at 18% 38%, rgba(155, 51, 43, .14), transparent 32rem),
    repeating-linear-gradient(0deg, rgba(216, 195, 163, .016) 0 1px, transparent 1px 8px),
    #130d0c;
}

.market-proof::after {
  position: absolute;
  top: 42%;
  left: -6%;
  width: 112%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 228, 211, .55) 42%, var(--m-red-bright) 52%, transparent 86%);
  box-shadow: 0 0 14px rgba(201, 77, 62, .32);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  animation: marketProofBlade 13s cubic-bezier(.16, .72, .18, 1) 7.5s infinite;
}

.market-proof-grid {
  display: grid;
  grid-template-columns: .86fr .68fr 1.1fr;
  align-items: center;
  gap: 28px;
}

.market-proof-grid > div:first-child h2 {
  margin: 8px 0 14px;
  color: var(--m-text);
  font: 900 35px/1.26 "Noto Serif KR", serif;
  letter-spacing: -.04em;
}

.market-proof-grid > div:first-child > p:last-of-type {
  margin: 0;
  color: var(--m-muted);
  font-size: 14px;
  line-height: 1.8;
  word-break: keep-all;
}

.market-proof-grid > div:first-child > a {
  display: inline-flex;
  gap: 20px;
  margin-top: 20px;
  color: var(--m-red-bright);
  font-size: 13px;
  font-weight: 900;
}

.market-proof-ticket {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid #8f7259;
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(0, 0, 0, .045) 8px 9px),
    #d8c3a3;
  box-shadow: inset 0 0 0 6px rgba(87, 55, 41, .05), 0 24px 52px rgba(0, 0, 0, .34);
  color: #171318;
  transform: none;
}

.market-proof-ticket::before,
.market-proof-ticket::after {
  position: absolute;
  z-index: 2;
  top: 119px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--m-bg-soft);
  content: "";
}

.market-proof-ticket::before { left: -11px; }
.market-proof-ticket::after { right: -11px; }

.market-proof-ticket-top {
  display: grid;
  height: 130px;
  place-items: center;
  align-content: center;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent),
    #9b332b;
  color: #fff;
}

.market-proof-ticket-top span {
  font: 900 18px/1 "Nunito Sans", "Noto Sans KR", sans-serif;
  letter-spacing: .075em;
}

.market-proof-ticket-top strong {
  font: 900 30px/1 "Noto Serif KR", serif;
}

.market-proof-ticket-top b {
  font: 600 11px/1 "IBM Plex Mono", monospace;
}

.market-proof-perf {
  margin: 0 10px;
  border-top: 2px dashed rgba(0, 0, 0, .28);
}

.market-proof-ticket-body {
  display: flex;
  min-height: 179px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.market-proof-ticket-body small {
  color: #7f756e;
  font: 600 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .12em;
}

.market-proof-ticket-body strong {
  margin: 12px 0;
  font: 800 17px/1.2 "IBM Plex Mono", monospace;
}

.market-proof-ticket-body span {
  color: #9a292c;
  font: 700 12px/1 "IBM Plex Mono", monospace;
}

.market-proof-terminal {
  overflow: hidden;
  border: 1px solid #4f2f29;
  border-radius: 4px;
  background: #090706;
  box-shadow: inset 0 0 0 1px rgba(174, 137, 108, .025), 0 24px 55px rgba(0, 0, 0, .3);
}

.market-proof-terminal > div {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  border-bottom: 1px solid #3d2722;
  background: #140d0c;
}

.market-proof-terminal > div span {
  width: 7px;
  height: 2px;
  border-radius: 0;
  background: #c94d3e;
}

.market-proof-terminal > div span:nth-child(2) { background: #e0b84c; }
.market-proof-terminal > div span:nth-child(3) { background: #48a87b; }

.market-proof-terminal > div b {
  margin-left: 7px;
  color: #8b858e;
  font: 600 11px/1 "IBM Plex Mono", monospace;
}

.market-proof-terminal code {
  display: grid;
  grid-template-columns: 91px 1fr auto;
  gap: 8px;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .035);
  color: #d6c6b4;
  font: 500 12px/1.35 "IBM Plex Mono", monospace;
}

.market-proof-terminal code i {
  color: #68636e;
  font-style: normal;
}

.market-proof-terminal code em {
  color: #d35a46;
  font-style: normal;
}

.market-proof-terminal > p {
  margin: 0;
  padding: 10px 13px;
  color: #5e5964;
  font: 500 10px/1.5 "IBM Plex Mono", monospace;
}

/* Footer */
.market-footer {
  border-top: 1px solid var(--m-line);
  background:
    repeating-linear-gradient(0deg, rgba(216, 195, 163, .014) 0 1px, transparent 1px 8px),
    #0b0807;
}

.market-footer-brand .market-brand-symbol {
  width: 38px;
  height: 40px;
}

.market-footer-brand .kujisa-wordmark-name {
  font-size: 22px;
}

.market-guide-dialog {
  border-radius: 4px;
  background: var(--m-panel);
  color: var(--m-text);
}

.market-guide-dialog li span { color: var(--m-muted); }

.market-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity .48s ease var(--reveal-delay, 0ms),
    transform .48s cubic-bezier(.2, .72, .24, 1) var(--reveal-delay, 0ms);
}

.market-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

@keyframes marketHeroSwordwind {
  0%, 64% { opacity: 0; transform: translate3d(-16%, 0, 0) rotate(var(--hero-wind-angle)) scaleX(.42); }
  66% { opacity: .96; }
  71% { opacity: .5; transform: translate3d(98%, -8%, 0) rotate(var(--hero-wind-angle)) scaleX(1.08); }
  74%, 100% { opacity: 0; transform: translate3d(118%, -10%, 0) rotate(var(--hero-wind-angle)) scaleX(1.14); }
}

@keyframes marketHeroPetal {
  0% { opacity: 0; transform: translate3d(0, -15%, 0) rotate(0deg) scale(.72); }
  11% { opacity: .84; }
  39% { opacity: .9; transform: translate3d(var(--hero-petal-drift), 34vh, 0) rotate(190deg) scale(1); }
  68% { opacity: .74; transform: translate3d(calc(0px - var(--hero-petal-drift)), 58vh, 0) rotate(390deg) scale(.88); }
  100% { opacity: 0; transform: translate3d(var(--hero-petal-drift), 74vh, 0) rotate(650deg) scale(.74); }
}

@keyframes marketLivePulse {
  0%, 100% { opacity: .58; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes marketLiveRise {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes marketProofBlade {
  0%, 78% { opacity: 0; transform: scaleX(0); }
  81% { opacity: .65; }
  87% { opacity: .35; transform: scaleX(1); }
  91%, 100% { opacity: 0; transform: scaleX(1); }
}

/* Accessible focus */
.market-home :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--m-yellow) 76%, white);
  outline-offset: 3px;
}

/* Responsive */
@media (min-width: 1181px) {
  .market-first-guide {
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    gap: 10px;
    padding: 14px;
  }

  .market-first-icon {
    width: 44px;
    height: 54px;
  }

  .market-hot { padding: 15px; }

  .market-hot li a {
    grid-template-columns: 18px 44px minmax(0, 1fr) 10px;
    gap: 8px;
  }

  .market-hot li img {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 1180px) {
  .market-header-main {
    grid-template-columns: auto minmax(230px, 1fr) auto;
    gap: 14px;
  }

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

  .market-hero-card {
    grid-template-rows: minmax(560px, auto) 112px;
  }

  .market-hero-side {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
  }

  .market-first-guide { min-height: auto; }

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

  .product-shell {
    width: min(1080px, calc(100% - 40px));
  }
}

@media (max-width: 960px) {
  .market-header-main {
    grid-template-columns: auto 1fr auto;
  }

  .market-search {
    width: 100%;
    max-width: none;
  }

  .market-wallet { display: none; }

  .market-subpage-nav {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .product-shell {
    width: min(760px, calc(100% - 36px));
  }

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

  .market-proof-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .market-shell { width: min(100% - 28px, 1320px); }

  .market-header-main {
    min-height: 62px;
    grid-template-columns: auto auto;
  }

  .market-brand {
    gap: 9px;
  }

  .market-brand-symbol {
    width: 36px;
    height: 38px;
  }

  .market-brand-symbol img {
    width: 31px;
    height: 34px;
  }

  .market-search {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 10px;
  }

  .market-mobile-menu {
    display: inline-grid;
    justify-self: end;
  }

  .market-header-actions {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    display: none;
    flex-wrap: wrap;
    padding: 14px;
    border-bottom: 1px solid var(--m-line);
    background: var(--m-header);
  }

  .nav-open .market-header-actions {
    display: flex;
    justify-content: center;
  }

  .nav-open .market-auth-link,
  .nav-open .market-wallet {
    display: inline-flex;
  }

  .market-category-row {
    min-height: 50px;
  }

  .market-category,
  .market-category-row > a {
    min-height: 50px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .market-hero {
    padding-top: 14px;
  }

  .market-hero-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(590px, auto) auto;
    grid-template-areas:
      "slider"
      "board";
  }

  .market-hero-slider {
    min-height: 590px;
  }

  .market-hero-slide::after {
    background:
      linear-gradient(180deg, rgba(8, 6, 6, .06) 0%, rgba(8, 6, 6, .24) 27%, rgba(8, 6, 6, .82) 51%, rgba(8, 6, 6, .99) 100%),
      linear-gradient(90deg, rgba(8, 6, 6, .44), transparent 72%);
  }

  .market-hero-slide-light::after {
    background:
      linear-gradient(180deg, rgba(245, 238, 224, .05) 0%, rgba(245, 238, 224, .24) 27%, rgba(245, 238, 224, .86) 51%, rgba(245, 238, 224, .98) 100%),
      linear-gradient(90deg, rgba(245, 238, 224, .36), transparent 74%);
  }

  .market-hero-media {
    object-position: 68% center;
  }

  .market-hero-swordwind i:nth-child(n + 2),
  .market-hero-petals i:nth-child(even) {
    display: none;
  }

  .market-hero-copy {
    inset: 0;
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
    padding: 150px 24px 48px;
  }

  .market-hero-copy h1,
  .market-hero-copy h2 {
    margin: 16px 0 13px;
    font-size: clamp(31px, 9.4vw, 43px);
    line-height: 1.16;
  }

  .market-hero-copy > p:not(.market-kicker) {
    max-width: none;
    font-size: 14px;
    line-height: 1.7;
  }

  .market-hero-actions {
    margin-top: 18px;
  }

  .market-primary-cta,
  .market-secondary-cta {
    min-height: 46px;
    padding-inline: 15px;
    font-size: 14px;
  }

  .market-hero-tags {
    gap: 5px;
    margin-top: 14px;
  }

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

  .market-live-head {
    border-right: 0;
    border-bottom: 1px solid #432b26;
  }

  .market-live-window { padding: 14px 16px; }

  .market-live-event {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
  }

  .market-live-event time { display: none; }

  .market-hero-side {
    display: grid;
    grid-template-columns: 1fr;
  }

  .market-hot li a {
    grid-template-columns: 22px 56px minmax(0, 1fr) 13px;
  }

  .market-products {
    padding-top: 40px;
  }

  .market-products-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-products-tools {
    width: 100%;
    justify-content: space-between;
  }

}

@media (max-width: 620px) {
  .market-home .kujisa-atmosphere-art {
    background-position: 70% top;
    background-size: 145vw auto;
    opacity: .2;
  }

  .product-shell { width: min(368px, calc(100% - 28px)); }

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

  .market-product-card {
    width: 100%;
  }

  .market-product-body { min-height: 198px; }

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

  .market-proof-grid > div:first-child {
    grid-column: auto;
  }

  .market-proof-terminal code {
    grid-template-columns: 82px 1fr;
  }

  .market-proof-terminal code em {
    grid-column: 2;
  }

}

@media (prefers-reduced-motion: reduce) {
  .market-product-card,
  .market-product-art > img,
  .market-category::after {
    transition: none !important;
  }

  .market-product-card:hover,
  .market-product-card:hover .market-product-art > img {
    transform: none;
  }

  .market-proof::after,
  .market-live-dot,
  .market-live-event,
  .market-hero-swordwind i,
  .market-hero-petals i {
    animation: none !important;
  }

  .market-hero-slide,
  .market-hero-media,
  .market-hero-pages button::after {
    transition: none !important;
  }

  .market-hero-media,
  .market-hero-slide.is-active .market-hero-media {
    transform: none !important;
  }

  .market-reveal,
  .market-reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* 2026 operating layout — clean market, status rail and upcoming lineup */
.market-header-main {
  grid-template-columns: auto minmax(280px, 1fr) auto;
}

.market-collection-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  color: var(--m-text);
  font-size: 13px;
  font-weight: 900;
}

.market-profile {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-hero {
  grid-template-columns: minmax(0, 1fr) clamp(300px, 23vw, 340px);
}

.market-hero-card {
  grid-template-rows: minmax(560px, auto) 96px;
}

.market-hero-slider {
  min-height: 560px;
}

.market-hero-copy {
  width: min(52%, 580px);
}

.market-hero-copy > p:not(.market-kicker) {
  font-size: 16px;
  line-height: 1.82;
}

.market-hot-complete {
  min-height: 100%;
}

.market-hot-complete ol {
  flex: 1;
}

.market-hot-complete li a {
  grid-template-columns: 22px 58px minmax(0, 1fr) auto;
  align-items: center;
  padding: 13px 0;
}

.market-hot-complete li img {
  width: 58px;
  height: 72px;
  border-radius: 5px;
  object-fit: cover;
}

.market-hot-complete li strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--m-text);
  font-size: 13.5px;
  line-height: 1.35;
  white-space: normal;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.market-hot-complete li small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--m-dim);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-hot-complete li em {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(211, 90, 70, .42);
  border-radius: 6px;
  background: rgba(164, 56, 46, .12);
  color: var(--m-red-bright);
  font: 800 11px/1 "Nunito Sans", sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
}

.market-hot-complete li.is-sold em {
  border-color: color-mix(in srgb, var(--m-line) 82%, transparent);
  background: rgba(255, 255, 255, .03);
  color: var(--m-dim);
}

.market-hot-complete li.is-sold {
  opacity: .5;
}

.market-hot-complete li.is-sold a,
.market-product-card.is-archive .market-card-entry {
  cursor: not-allowed;
  pointer-events: none;
}

.market-hot-complete li.is-sold img {
  filter: grayscale(1) brightness(.65);
}

.market-card-entry {
  display: block;
  height: 100%;
}

.market-product-body h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-product-jp,
.market-upcoming-jp {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--m-dim, #8c7869);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-product-card.is-live {
  border-color: color-mix(in srgb, var(--m-red) 64%, var(--m-line));
  box-shadow: 0 20px 54px rgba(0, 0, 0, .28), 0 0 0 1px rgba(211, 90, 70, .08);
}

.market-product-card.is-archive {
  opacity: .72;
}

.market-product-card.is-archive:hover {
  opacity: .72;
}

.market-prize-chips span b {
  color: var(--m-red-bright);
}

.market-upcoming {
  position: relative;
  padding: 72px 0 82px;
  overflow: hidden;
  border-top: 1px solid var(--m-line);
  background:
    linear-gradient(90deg, rgba(164, 56, 46, .08), transparent 38%),
    #100b0a;
}

.market-upcoming-head {
  margin-bottom: 24px;
}

.market-swipe-hint {
  color: var(--m-dim);
  font: 700 11px/1.5 "IBM Plex Mono", monospace;
}

.market-upcoming-viewport {
  position: relative;
  padding: 2px 0 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #6a3d35 #17100f;
  scrollbar-width: thin;
}

.market-upcoming-viewport.is-marquee-ready {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.market-upcoming-track {
  display: flex;
  width: max-content;
  gap: 14px;
}

.market-upcoming-set {
  display: flex;
  flex: none;
  gap: 14px;
}

.market-upcoming-viewport.is-marquee-ready .market-upcoming-track {
  animation: market-upcoming-left 34s linear infinite;
  will-change: transform;
}

.market-upcoming-viewport.is-marquee-ready:hover .market-upcoming-track,
.market-upcoming-viewport.is-marquee-ready:focus-within .market-upcoming-track {
  animation-play-state: paused;
}

.market-upcoming-track article {
  position: relative;
  display: grid;
  width: clamp(285px, 28vw, 390px);
  flex: 0 0 clamp(285px, 28vw, 390px);
  min-height: 360px;
  overflow: hidden;
  grid-template-rows: 1fr auto;
  border: 1px solid #50332d;
  border-radius: 7px;
  background: #17100f;
  scroll-snap-align: start;
}

@keyframes market-upcoming-left {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.market-upcoming-track article::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(234, 219, 197, .04);
  content: "";
  pointer-events: none;
}

.market-upcoming-track img {
  display: block;
  width: 100%;
  min-height: 260px;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(1.04);
  transition: transform .4s ease, filter .4s ease;
}

.market-upcoming-track article:hover img {
  transform: scale(1.025);
  filter: saturate(1);
}

.market-upcoming-track article > div {
  padding: 17px 18px 18px;
  border-top: 1px solid #50332d;
  background: #17100f;
}

.market-upcoming-track span {
  color: var(--m-red-bright);
  font: 800 10px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .12em;
}

.market-upcoming-track h3 {
  margin: 7px 0 0;
  overflow: hidden;
  color: #f0e2d2;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-upcoming-track p {
  margin: 5px 0 0;
  color: #8c7869;
  font-size: 12px;
}

.market-footer {
  padding: 0;
  border-top: 1px solid #50332d;
  background: #0b0807;
}

.market-footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 30px 64px;
  padding-block: 44px 42px;
}

.market-footer-brand {
  display: block;
}

.market-footer-brand .market-brand {
  color: #efe1cf;
}

.market-footer-brand .market-brand-symbol {
  width: 40px;
  height: 42px;
}

.market-footer-brand .market-brand-symbol img {
  width: 38px;
  height: 41px;
  object-fit: contain;
}

.market-footer-brand .kujisa-wordmark-name {
  font-size: 26px;
}

.market-footer-brand > p,
.market-footer-business p {
  margin: 6px 0 0;
  color: #7e6c60;
  font-size: 11px;
  line-height: 1.75;
}

.market-footer-business {
  margin-top: 16px;
}

.market-footer-business a {
  color: #baa38f;
}

.market-footer-copyright {
  margin-top: 16px !important;
  color: #62544c !important;
  font-size: 10px !important;
}

.market-footer-cols {
  display: flex;
  gap: 32px 56px;
  flex-wrap: wrap;
}

.market-footer-cols > div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.market-footer-cols strong {
  margin-bottom: 3px;
  color: #d9c6b2;
  font-size: 13px;
  font-weight: 800;
}

.market-footer-cols a {
  color: #9f8b7b;
  font-size: 12.5px;
  font-weight: 600;
}

.market-footer-cols a b {
  font-weight: 700;
}

.market-footer-cols a:hover {
  color: #f0e2d0;
}

@media (prefers-reduced-motion: reduce) {
  .market-upcoming-viewport.is-marquee-ready {
    overflow-x: auto;
    mask-image: none;
  }

  .market-upcoming-viewport.is-marquee-ready .market-upcoming-track {
    animation: none;
    will-change: auto;
  }

  .market-upcoming-set[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 900px) {
  .market-header-main {
    position: relative;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    min-height: 64px;
  }

  .market-header-actions {
    position: static;
    display: flex;
    grid-column: 3;
    grid-row: 1;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .market-header-actions > a {
    display: none !important;
  }

  .market-header-actions .site-menu-button {
    display: inline-grid;
  }

  .market-subpage-nav {
    display: none;
  }

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

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

  .market-hero-card {
    grid-template-rows: minmax(540px, auto) auto;
  }

  .market-hero-slider {
    min-height: 540px;
  }

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

  .market-hot-complete li a {
    grid-template-columns: 24px 62px minmax(0, 1fr) auto;
  }
}

@media (max-width: 620px) {
  .market-shell,
  .product-shell {
    width: min(100% - 20px, 1320px);
  }

  .market-search {
    margin-bottom: 8px;
  }

  .market-hero-card {
    grid-template-rows: minmax(500px, auto) auto;
  }

  .market-hero-slider {
    min-height: 500px;
  }

  .market-hero-copy {
    padding: 150px 20px 34px;
  }

  .market-hero-copy h1,
  .market-hero-copy h2 {
    font-size: clamp(30px, 9.5vw, 40px);
  }

  .market-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .market-product-card {
    width: auto;
    min-width: 0;
  }

  .market-product-body {
    min-height: 0;
    padding: 11px 10px 12px;
  }

  .market-product-body h3 {
    font-size: 14px;
  }

  .market-card-progress {
    margin-top: 11px;
  }

  .market-prize-chips {
    gap: 4px;
  }

  .market-prize-chips span {
    padding: 4px 5px;
    font-size: 9px;
  }

  .market-ticket-meta {
    gap: 8px;
  }

  .market-ticket-meta p {
    min-width: 0;
  }

  .market-ticket-meta span {
    font-size: 9px;
  }

  .market-ticket-meta strong {
    font-size: 13px;
  }

  .market-ticket-meta small {
    font-size: 9px;
  }

  .market-status-badge {
    font-size: 9px;
  }

  .market-sold-stamp {
    right: 9px;
    left: 9px;
    font-size: clamp(17px, 6vw, 27px);
  }

  .market-upcoming {
    padding-block: 52px 62px;
  }

  .market-upcoming-track article {
    width: min(76vw, 330px);
    flex-basis: min(76vw, 330px);
    min-height: 330px;
  }

  .market-footer-main {
    grid-template-columns: 1fr;
    padding-block: 34px 24px;
  }


  .market-footer-business {
    grid-column: auto;
  }
}

/* Mobile storefront and installed-app composition */
@media (max-width: 620px) {
  .market-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(12, 8, 7, .94);
    backdrop-filter: blur(18px);
  }

  .market-header-main {
    min-height: 66px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 66px;
    gap: 9px;
  }

  .market-brand {
    gap: 7px;
  }

  .market-brand-symbol {
    width: 30px;
    height: 34px;
  }

  .market-brand-symbol img {
    width: 29px;
    height: 33px;
  }

  .market-brand .kujisa-wordmark-name {
    font-size: 19px;
    letter-spacing: .055em;
  }

  .market-search {
    min-width: 0;
    min-height: 42px;
    grid-column: 2;
    grid-row: 1;
    gap: 5px;
    margin: 0;
    padding: 0 9px;
    border-radius: 14px;
  }

  .market-search button {
    width: 22px;
    height: 22px;
    font-size: 17px;
  }

  .market-search input {
    min-width: 0;
    font-size: 12px;
  }

  .market-search kbd {
    display: none;
  }

  .market-header-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .market-header-actions .site-menu-button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .market-hero {
    gap: 10px;
    padding-block: 10px 12px;
  }

  .market-hero-card {
    grid-template-rows: 320px 58px;
    overflow: hidden;
    border-radius: 18px;
  }

  .market-hero-slider {
    min-height: 320px;
  }

  .market-hero-copy {
    inset: 0;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 58px 16px 18px;
  }

  .market-hero-copy h1,
  .market-hero-copy h2 {
    max-width: 310px;
    margin-block: 8px 7px;
    font-size: clamp(25px, 7.5vw, 32px);
    line-height: 1.12;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .market-kicker {
    font-size: 9px;
  }

  .market-hero-copy > p:not(.market-kicker) {
    max-width: 292px;
    font-size: 11.5px;
    line-height: 1.5;
    word-break: keep-all;
  }

  .market-hero-slide::after {
    background:
      linear-gradient(90deg, rgba(8, 6, 6, .92) 0%, rgba(8, 6, 6, .66) 58%, rgba(8, 6, 6, .12) 100%),
      linear-gradient(0deg, rgba(8, 6, 6, .78), transparent 52%);
  }

  .market-hero-slide-light::after {
    background:
      linear-gradient(90deg, rgba(247, 239, 224, .96) 0%, rgba(247, 239, 224, .72) 58%, rgba(247, 239, 224, .14) 100%),
      linear-gradient(0deg, rgba(247, 239, 224, .72), transparent 52%);
  }

  .market-hero-media {
    object-position: 65% center;
  }

  .market-hero-board {
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .market-live-head {
    min-height: 58px;
    gap: 7px;
    padding: 8px 10px;
    border-right: 1px solid #432b26;
    border-bottom: 0;
  }

  .market-live-head p {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .market-live-head h2 {
    font-size: 13px;
  }

  .market-live-window {
    min-height: 58px;
    padding: 8px 10px;
  }

  .market-live-event {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .market-live-event strong {
    display: none;
  }

  .market-live-event > span {
    font-size: 10px;
  }

  .market-live-event em {
    min-height: 25px;
    padding-inline: 7px;
    font-size: 9px;
  }

  .market-hero-side {
    min-width: 0;
  }

  .market-hot-complete {
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
  }

  .market-hot-complete .market-hot-head {
    padding-bottom: 9px;
  }

  .market-hot-complete ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .market-hot-complete li {
    min-width: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--m-line) 74%, transparent);
    border-radius: 10px;
    background: rgba(16, 11, 10, .72);
  }

  .market-hot-complete li a {
    min-height: 76px;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 4px 8px;
    padding: 8px;
  }

  .market-hot-complete li a > b {
    display: none;
  }

  .market-hot-complete li img {
    width: 44px;
    height: 56px;
    grid-row: 1 / 3;
    border-radius: 7px;
  }

  .market-hot-complete li span {
    align-self: end;
  }

  .market-hot-complete li strong {
    font-size: 11.5px;
  }

  .market-hot-complete li small {
    margin-top: 2px;
    font-size: 9.5px;
  }

  .market-hot-complete li em {
    align-self: start;
    justify-self: start;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 9px;
  }

  .market-hot-complete .market-hot-more {
    min-height: 36px;
    margin-top: 10px;
    font-size: 11px;
  }

  .market-products {
    padding-top: 34px;
  }

  .market-products-head {
    gap: 15px;
  }

  .market-products-head h2 {
    font-size: 26px;
  }

  .market-products-head > div:first-child > p:last-child {
    font-size: 12px;
  }

  .market-products-tools select {
    min-height: 40px;
    font-size: 12px;
  }

  .market-product-grid {
    gap: 9px;
  }

  .market-product-card {
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  }

  .market-product-art::after {
    border-radius: 14px 14px 0 0;
  }

  .market-status-badge {
    top: 8px;
    right: 8px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 9px;
  }

  .market-sold-stamp {
    right: auto;
    left: 50%;
    width: calc(100% - 18px);
    min-width: 0;
    min-height: 42px;
    border-width: 1px;
    border-radius: 9px;
    font-size: clamp(14px, 4.6vw, 19px);
    transform: translate(-50%, -50%);
  }

  .market-product-body {
    min-height: 188px;
    padding: 11px 9px 10px;
  }

  .market-product-body h3 {
    min-height: 23px;
    font-size: 13px;
    line-height: 1.35;
  }

  .market-card-progress {
    gap: 5px;
    margin-top: 8px;
  }

  .market-card-progress-track {
    height: 8px;
  }

  .market-card-progress > strong {
    min-width: 39px;
    font-size: 10px;
  }

  .market-prize-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 9px;
    overflow: visible;
  }

  .market-prize-chips span {
    min-height: 25px;
    justify-content: center;
    padding: 3px 4px;
    border-radius: 8px;
    font-size: 8.5px;
  }

  .market-prize-chips b {
    font-size: 9px;
  }

  .market-ticket-meta {
    gap: 0;
    margin-top: 10px;
    padding-top: 0;
  }

  .market-ticket-meta p {
    min-height: 58px;
    gap: 5px;
    padding: 8px 4px;
  }

  .market-ticket-meta span {
    font-size: 8.5px;
  }

  .market-ticket-meta strong {
    font-size: 15px;
  }

  .market-ticket-meta small {
    font-size: 8px;
  }

  .market-upcoming {
    padding-block: 40px 46px;
  }

  .market-upcoming-head {
    margin-bottom: 14px;
  }

  .market-upcoming-set {
    gap: 8px;
  }

  .market-upcoming-track article {
    width: calc((100vw - 28px) / 2);
    flex-basis: calc((100vw - 28px) / 2);
    min-height: 0;
    grid-template-rows: auto auto;
    border-radius: 16px;
  }

  .market-upcoming-track img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .market-upcoming-track article > div {
    min-width: 0;
    padding: 10px;
  }

  .market-upcoming-track span {
    font-size: 8px;
  }

  .market-upcoming-track h3 {
    margin-top: 5px;
    font-size: 12.5px;
  }

  .market-upcoming-track p {
    margin-top: 3px;
    overflow: hidden;
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .market-footer-main {
    gap: 23px;
  }

  .market-footer-brand > p,
  .market-footer-business p {
    font-size: 12px;
    line-height: 1.7;
  }


  .subpage-main {
    padding-top: 18px;
  }

  .subpage-hero {
    min-height: 0;
    padding: 42px 22px;
    border-radius: 18px;
  }

  .subpage-hero h1 {
    font-size: clamp(30px, 9vw, 40px);
    word-break: keep-all;
  }

  .prose-grid {
    gap: 14px;
  }
}

@media (max-width: 370px) {
  .market-header-main {
    gap: 6px;
  }

  .market-brand .kujisa-wordmark-name {
    font-size: 17px;
  }

  .market-brand-symbol,
  .market-brand-symbol img {
    width: 27px;
  }

  .market-search {
    padding-inline: 7px;
  }

  .market-search input {
    font-size: 11px;
  }

  .market-product-body {
    min-height: 180px;
    padding-inline: 7px;
  }

  .market-product-body h3 {
    font-size: 12px;
  }
}

/* Shared desktop discovery navigation */
.market-primary-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 1.8vw, 26px);
}

.market-primary-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--m-muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.market-primary-nav a:hover,
.market-primary-nav a.is-current,
.market-primary-nav a[aria-current="page"] {
  color: var(--m-text);
}

.market-primary-nav a.is-current::after,
.market-primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--m-red-bright);
}

@media (min-width: 901px) {
  .market-header-main {
    grid-template-columns: auto minmax(260px, 430px) minmax(0, 1fr) auto !important;
    gap: 18px !important;
  }

  .market-search {
    width: 100%;
    max-width: 430px;
    justify-self: start;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .market-header-main {
    grid-template-columns: auto minmax(230px, 320px) minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }

  .market-primary-nav {
    gap: 12px;
  }

  .market-primary-nav a {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .market-primary-nav {
    display: none;
  }
}
