body.market-closed-page main {
  display: block;
  width: 100%;
}

.market-closed-screen {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--ks-header-h, 132px));
  padding: clamp(28px, 6vw, 72px) 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.12), transparent 46%),
    radial-gradient(ellipse at 100% 100%, rgba(79, 172, 254, 0.08), transparent 40%);
}

.market-closed-screen::before,
.market-closed-screen::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(48vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(244, 208, 111, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.market-closed-screen::before {
  inset-inline-start: -14%;
  top: 8%;
  box-shadow:
    0 0 0 24px rgba(244, 208, 111, 0.018),
    0 0 0 48px rgba(244, 208, 111, 0.012);
}

.market-closed-screen::after {
  inset-inline-end: -16%;
  bottom: -14%;
  border-color: rgba(79, 172, 254, 0.09);
  box-shadow: 0 0 0 28px rgba(79, 172, 254, 0.018);
}

.market-closed-card {
  width: min(100%, 620px);
  padding: clamp(26px, 6vw, 52px);
  text-align: center;
  background: linear-gradient(145deg, rgba(18, 25, 39, 0.92), rgba(7, 11, 20, 0.94));
  border: 1px solid rgba(244, 208, 111, 0.2);
  border-radius: clamp(24px, 5vw, 36px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45),
    0 0 45px rgba(212, 175, 55, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: marketCardEnter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.market-closed-illustration {
  display: grid;
  place-items: center;
  width: clamp(88px, 18vw, 112px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  color: #f4d06f;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.16),
    rgba(212, 175, 55, 0.04) 65%,
    transparent 70%
  );
  border: 1px solid rgba(244, 208, 111, 0.2);
  border-radius: 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 38px rgba(0, 0, 0, 0.25);
}

.market-closed-illustration svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-closed-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #ffd59b;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 750;
}

.market-closed-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #f2b45e;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(242, 180, 94, 0.65);
}

.market-closed-title {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 900;
  line-height: 1.45;
  text-wrap: balance;
}

.market-closed-description {
  max-width: 48ch;
  margin: 0 auto 28px;
  color: #aeb8c8;
  font-size: clamp(0.94rem, 2.4vw, 1.05rem);
  line-height: 2;
  overflow-wrap: anywhere;
}

.market-closed-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.market-closed-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  color: #e8edf5;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.market-closed-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 208, 111, 0.3);
  transform: translateY(-2px);
}

.market-closed-action--primary {
  color: #211907;
  background: linear-gradient(135deg, #f8df94, #d4af37);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.2);
}

.market-closed-action--primary:hover {
  color: #211907;
  background: linear-gradient(135deg, #ffe8a8, #e0ba45);
  border-color: transparent;
}

.market-closed-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-closed-action:focus-visible {
  outline: 3px solid #f4d06f;
  outline-offset: 3px;
}

@keyframes marketCardEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 575.98px) {
  .market-closed-screen {
    min-height: calc(100svh - var(--ks-header-h-mobile, 74px) - var(--ks-bottom-nav-h, 78px));
    padding: 26px 14px 34px;
  }

  .market-closed-card {
    padding: 28px 20px;
  }
  .market-closed-illustration {
    margin-bottom: 18px;
  }
  .market-closed-description {
    margin-bottom: 22px;
  }
  .market-closed-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .market-closed-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-closed-card {
    animation: none;
  }
  .market-closed-action {
    transition: none;
  }
}
