/* Dystoria Bazaar: the same warm-purple identity as the Dystoria store. */
@font-face {
  font-family: Nunito;
  src: url('/assets/dystoria-nunito.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: Fredoka;
  src: url('/assets/dystoria-fredoka.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
.bazaar-layout {
  --dys-background: #171422;
  --dys-panel: #252034;
  --dys-raised: #30263f;
  --dys-border: #473653;
  --dys-text: #f5f1fa;
  --dys-muted: #c5b8d3;
  --dys-accent: #dbbafa;
  background: var(--dys-background) !important;
  color: var(--dys-text);
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.bazaar-layout * { box-sizing: border-box; }
.bazaar-layout :is(h1, h2, h3) { font-family: Fredoka, Nunito, "Segoe UI", sans-serif; }
.bazaar-layout :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #dbbafa !important;
  outline-offset: 4px;
}
.bazaar-layout :is(button, a) { -webkit-tap-highlight-color: transparent; }
.bazaar-layout button { transition: background-color 150ms, border-color 150ms; }
.bazaar-layout button:not(:disabled) { cursor: pointer; }
.bazaar-topnav {
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 max(24px, calc((100vw - 1200px) / 2)) !important;
  background: #23213e !important;
  border-bottom: 1px solid #3e3154 !important;
}
.bazaar-topnav nav { gap: 6px; }
.bazaar-topnav :is(button, a) {
  min-height: 44px;
  border-radius: 6px;
  color: #f5f1fa;
  font-size: 15px;
  font-weight: 750;
}
.bazaar-topnav :is(button, a):hover { background-color: #30263f; }
.bazaar-topnav img { width: 32px !important; height: 32px !important; object-fit: contain; }
.bazaar-sidebar { background: #23213e !important; }
.bazaar-main {
  --dys-main-inset: 24px;
  width: 100%;
  max-width: 1248px !important;
  margin: 0 auto !important;
  padding: 24px 24px 0 !important;
  min-width: 0;
}
.bazaar-main > [data-slot="scroll-area"] { height: calc(100svh - 56px - var(--dys-main-inset)) !important; }
.bazaar-page-dashboard, .bazaar-page-gts, .bazaar-page-ah,
.bazaar-page-analytics, .bazaar-page-profile, .bazaar-page-admin {
  width: 100%;
  max-width: none !important;
}
.bazaar-page-dashboard > * + * { margin-top: 24px !important; }
/* The custom welcome supplies the page heading once. */
.bazaar-page-dashboard > div:first-child:has(> h1) { display: none; }
.bazaar-page-dashboard > div:first-child:has(> h1) + * { margin-top: 0 !important; }
.bazaar-shell-announcement { display: block; padding: 0; margin: 0 0 24px; border: 0; background: none; color: #f5f1fa; }
.dys-store-banner {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #23213e;
  background-image: url('/assets/dystoria-store-landscape.webp'), url('/assets/dystoria-store-clouds.webp'), url('/assets/dystoria-store-sky.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.dys-store-brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.dys-store-banner img { display: block; width: 155px; height: 155px; object-fit: contain; }
.dys-store-wordmark { display: flex; flex-direction: column; color: white; font-family: Fredoka, Nunito, sans-serif; text-shadow: 0 2px 12px #101025; }
.dys-store-wordmark small { font-size: 22px; font-weight: 500; line-height: 1.2; }
.dys-store-wordmark strong { font-size: clamp(34px, 5vw, 58px); font-weight: 600; line-height: 1.1; }
@media (max-width: 479px) {
  .dys-store-brand { gap: 5px; }
  .dys-store-banner img { width: 104px; height: 104px; }
  .dys-store-wordmark small { font-size: 17px; }
  .dys-store-wordmark strong { font-size: 31px; }
}
.dys-trading-note {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid #473653;
  border-radius: 7px;
  background: #252034;
  color: #c5b8d3;
  font-size: 14px;
  text-align: center;
}
.dys-store-welcome { padding: 26px 28px; border-radius: 9px; background: #252034; }
.dys-store-welcome h1 { margin: 0 0 10px; color: #f5f1fa; font-size: 30px; font-weight: 600; line-height: 1.25; }
.dys-store-welcome p { max-width: 75ch; margin: 0; color: #c5b8d3; font-size: 16px; line-height: 1.8; }
.dys-market-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dys-market-door {
  display: block;
  min-height: 150px;
  padding: 25px 26px;
  border: 1px solid #473653;
  border-radius: 9px;
  background: #30263f;
  color: #f5f1fa !important;
  text-decoration: none !important;
  transition: background-color 150ms, border-color 150ms;
}
.dys-market-door:hover { border-color: #dbbafa; background: #392c49; }
.dys-market-door h2 { margin: 0 0 10px; color: #dbbafa; font-size: 25px; font-weight: 600; line-height: 1.3; }
.dys-market-door p { max-width: 44ch; margin: 0; color: #d1c5dc; font-size: 16px; line-height: 1.7; }
.bazaar-market-overview { padding: 24px !important; border: 1px solid #3e314b; border-radius: 9px; background: #252034; }
.bazaar-market-overview h2 { color: #f5f1fa; font-size: 23px; font-weight: 600; }
.bazaar-market-overview p { color: #c5b8d3; }
.bazaar-market-overview-grid { gap: 14px !important; }
.bazaar-market-overview-card { padding: 18px !important; border: 1px solid #4a3959 !important; border-radius: 7px !important; background: #30263f !important; }
.bazaar-market-overview-value { color: #f5f1fa !important; font-size: 27px !important; font-weight: 850; line-height: 1.35; }
.bazaar-layout .card { border-color: #473653 !important; border-radius: 9px !important; background: #252034 !important; box-shadow: none !important; }
.bazaar-discovery-feed { gap: 18px !important; }
.bazaar-feed-card { padding: 22px !important; min-width: 0; }
.bazaar-feed-heading { gap: 12px; margin-bottom: 16px !important; }
.bazaar-feed-heading h3 { color: #f5f1fa; font-size: 16px; font-weight: 600; letter-spacing: .025em; }
/* Market navigation is provided by the two category cards, without repeated links. */
.bazaar-feed-heading button { display: none; }
.bazaar-layout :is(input, select, textarea) { min-height: 44px; border-color: #5b456b; border-radius: 6px; color: #f5f1fa; font-size: 15px; }
.bazaar-layout input::placeholder { color: #c5b8d3; opacity: 1; }
.bazaar-layout :is(table th, table td) { padding-top: 14px; padding-bottom: 14px; }
.bazaar-layout table th { color: #dbbafa; font-size: 14px; font-weight: 800; }
.bazaar-layout code { padding: 2px 6px; border-radius: 4px; background: #dbbafa12; color: #e4cafa; }
.bazaar-footer { margin-top: 32px; padding: 22px !important; border-color: #473653 !important; color: #c5b8d3 !important; font-size: 14px !important; }
@media (max-width: 1023px) {
  .bazaar-topnav { padding-left: 24px !important; padding-right: 24px !important; }
  .dys-store-banner { min-height: 240px; }
}
@media (max-width: 767px) {
  .bazaar-main { --dys-main-inset: 18px; padding: 18px 20px 0 !important; }
  .bazaar-page-dashboard > * + * { margin-top: 18px !important; }
  .dys-store-banner { min-height: 220px; padding: 24px; }
  .dys-store-banner img { max-width: 310px; max-height: 145px; }
  .dys-store-welcome { padding: 22px; }
  .dys-store-welcome h1 { font-size: 28px; }
  .dys-market-doors { grid-template-columns: 1fr; gap: 14px; }
  .dys-market-door { min-height: 130px; padding: 23px; }
  .bazaar-market-overview { padding: 20px !important; }
  .bazaar-market-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .bazaar-market-overview-card { padding: 15px !important; }
  .bazaar-layout button { min-height: 44px; }
}
@media (max-width: 479px) {
  .bazaar-topnav { padding-left: 16px !important; padding-right: 16px !important; }
  .bazaar-main { padding-left: 16px !important; padding-right: 16px !important; }
  .dys-store-banner { min-height: 200px; padding: 18px; }
  .dys-store-banner img { width: 104px; height: 104px; max-width: 104px; max-height: 104px; }
  .dys-trading-note { font-size: 14px; text-align: left; }
  .dys-store-welcome { padding: 22px 20px; }
  .dys-store-welcome h1 { font-size: 26px; }
  .dys-market-door { padding: 21px 20px; }
  .bazaar-market-overview { padding: 16px !important; }
  .bazaar-market-overview-card { padding: 13px !important; }
  .bazaar-market-overview-value { font-size: 24px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .bazaar-layout *, .bazaar-layout *::before, .bazaar-layout *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

