/* ==========================================================================
   Shadowra — store theme.

   Palette is taken straight off the logo: the dragon's plum-violet body, the
   red of its eyes for warnings, the bone-gold of its horns for prices and
   discounts. Everything sits on a near-black violet so the artwork glows.
   ========================================================================== */

:root {
  --bg:          #0d0714;
  --bg-deep:     #08040d;
  --panel:       #1a1028;
  --panel-2:     #211534;
  --panel-edge:  #35214d;

  --violet:      #7c3aed;
  --violet-hi:   #a78bfa;
  --violet-dim:  #4c2a72;
  --magenta:     #b14ae0;
  --magenta-a:   #990099;

  --ember:       #e0344a;
  --gold:        #e8cf9a;
  --gold-deep:   #c9a961;

  --text:        #ece5f5;
  --text-dim:    #b8a8ce;
  --muted:       #8d7ba6;

  --display:     "Kalnia Glaze", Georgia, serif;
  --body:        "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 14px 34px rgba(0, 0, 0, .55);
  --wrap:        1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 50% -10%, #2a1442 0%, transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }

/* --------------------------------------------------------------- typography */

.h1 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); margin: 26px 0 4px; letter-spacing: .2px; }
.h2 { font-size: 1.2rem; margin: 0 0 12px; }
.h3 { font-size: 1rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }

.lead   { color: var(--muted); margin: 0 0 22px; }
.muted  { color: var(--muted); }
.small  { font-size: .85rem; }

body.page--brand h1,
body.page--brand h2,
body.page--brand h3,
body.page--brand .brand__text strong {
  font-family: var(--display);
}

body.page--legal,
body.page--legal p,
body.page--legal li,
body.page--legal a,
body.page--legal h1,
body.page--legal h2,
body.page--legal h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.link   { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: #d7c4ff; }

.prose p { margin: 0 0 14px; }
.prose h2 { margin-top: 26px; }

/* The legal pages are the only long-form text on the site, so list and anchor
   styling lives here rather than in the global reset — nothing else needs it. */
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose li:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }
.legal-panel { max-width: 860px; margin: 34px auto 0; }
.legal-details,
.legal-sections { display: grid; gap: 0; max-width: 700px; margin: 0; padding: 0; }
.legal-details > div,
.legal-sections > section {
  display: grid;
  grid-template-columns: minmax(11rem, .45fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px 18px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(232, 207, 154, .16);
  border-left: 2px solid var(--violet-dim);
  background: rgba(124, 58, 237, .05);
}
.legal-details > div:nth-child(even),
.legal-sections > section:nth-child(even) {
  border-left-color: var(--gold-deep);
  background: rgba(232, 207, 154, .035);
}
.legal-details dt,
.legal-sections h2 { margin: 0; color: var(--gold); font-size: 1rem; font-weight: 700; }
.legal-details dd { margin: 0; }
.legal-sections p { margin: 0; }
@media (max-width: 520px) {
  .legal-panel { padding: 18px; }
  .legal-panel h1 { font-size: 1.6rem; }
  .legal-details > div,
  .legal-sections > section { grid-template-columns: 1fr; gap: 2px; padding: 10px 12px; }
}
/* Long addresses and URLs must not push the panel wider than the viewport. */
.prose { overflow-wrap: break-word; }

code {
  background: #120a1c; border: 1px solid var(--panel-edge);
  padding: 1px 6px; border-radius: 4px; font-size: .88em; color: var(--gold);
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(18, 10, 28, .97), rgba(13, 7, 20, .93));
  border-bottom: 1px solid var(--panel-edge);
  backdrop-filter: blur(8px);
}

.topbar__inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 64px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 0 22px rgba(140, 70, 220, .45);
  background: #0d0714;
}
.brand__text strong {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: .12em;
  line-height: 1;
}
.brand__text small  { display: block; font-size: .66rem; letter-spacing: .3em; color: var(--muted); }

.mainnav { display: flex; gap: 4px; }
.mainnav__link {
  padding: 8px 13px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: .92rem; letter-spacing: .04em;
}
.mainnav__link:hover { background: rgba(124, 58, 237, .18); color: var(--magenta-a) }
.mainnav__link.is-active { color: #fff; background: rgba(124, 58, 237, .3); }

.search { display: flex; margin-left: auto; }
.search__input {
  width: 210px; padding: 8px 12px;
  background: #120a1c; color: var(--text);
  border: 1px solid var(--panel-edge); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font: inherit; font-size: .9rem;
}
.search__input::placeholder { color: #6d5c85; }
.search__input:focus { outline: 0; border-color: var(--violet); }
.search__btn {
  display: grid; place-items: center; width: 40px;
  background: var(--violet-dim); color: #fff;
  border: 1px solid var(--panel-edge); border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}
.search__btn:hover { background: var(--violet); }

.account { display: flex; align-items: center; gap: 10px; }
.account__name { font-size: .9rem; color: var(--text-dim); }

.wallet {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: linear-gradient(135deg, #2a1a3f, #1d1130);
  border: 1px solid var(--panel-edge);
}
.wallet:hover { border-color: var(--gold-deep); }
.wallet__coin  { width: 24px; height: 24px; border-radius: 50%; }
.wallet__amount { font-weight: 700; color: var(--gold); font-size: .9rem; }

.cartlink { font-size: .9rem; color: var(--text-dim); padding: 6px 4px; }
.cartlink:hover { color: var(--magenta-a); }
.cartlink__count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px;
  background: var(--ember); color: #fff; font-size: .74rem; font-weight: 700;
}

/* ------------------------------------------------------------------ panels */

.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel--pad { padding: 20px 22px; }

.flash {
  margin: 16px 0 0; padding: 11px 16px;
  border-radius: var(--radius-sm); border-left: 3px solid;
  font-size: .92rem;
}
.flash--ok  { background: rgba(90, 200, 130, .12); border-color: #5ac882; color: #b6f0cc; }
.flash--err { background: rgba(224, 52, 74, .12);  border-color: var(--ember); color: #ffbcc5; }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(300px, 46%) 1fr;
  margin-top: 22px;
  border: 1px solid var(--panel-edge); border-radius: var(--radius);
  background: linear-gradient(105deg, #4a1a6e 0%, #6d2a9c 34%, #2a1240 72%, #150b21 100%);
  box-shadow: var(--shadow);
}

.hero__copy { padding: 30px 32px; z-index: 2; }
.hero__title { margin: 0 0 8px; font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem); }
.hero__sub   { margin: 0 0 18px; color: #dcc9f0; max-width: 46ch; }

/* Angled artwork slabs, echoing the reference banner's sheared capsules. */
.hero__art { position: relative; }
.hero__slab {
  position: absolute; top: -8%; height: 116%; width: 44%;
  transform: skewX(-11deg); overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.hero__slab > svg { width: 100%; height: 100%; transform: skewX(11deg) scale(1.22); }
.hero__slab--1 { right: 46%; }
.hero__slab--2 { right: 23%; }
.hero__slab--3 { right: 0; }
.hero__slabname {
  position: absolute; left: 12px; bottom: 10px; right: 8px;
  transform: skewX(11deg);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: #fff; text-shadow: 0 2px 6px #000;
}
/* Fades the slabs into the copy side so text never fights the artwork. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(95deg, #3d1560 0%, rgba(61, 21, 96, .92) 34%, transparent 62%);
}

/* ----------------------------------------------------------------- columns */

.columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  margin-top: 34px;
}

.column__title {
  margin: 0; font-size: 1.05rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}
.column__tag { margin: 2px 0 12px; color: var(--muted); font-size: .88rem; }
.column__more { margin-top: 12px; text-align: right; }

/* ------------------------------------------------------------------- tiles */

.grid { display: grid; gap: 1px; background: var(--panel-edge); border-radius: var(--radius); overflow: hidden; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-search {
  display: grid;
  gap: 10px;
}

.portfolio-search__form {
  display: grid;
  gap: 10px;
}

.portfolio-search__label {
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portfolio-search__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: rgba(18, 10, 28, 0.8);
  color: var(--text);
  font: inherit;
}

.portfolio-search__controls {
  display: flex;
}

.portfolio-search__input:focus {
  outline: 0;
  border-color: var(--violet-hi);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.portfolio-search__button {
  display: grid;
  place-items: center;
  width: 52px;
  flex: 0 0 52px;
  border: 1px solid var(--panel-edge);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--violet-dim);
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}

.portfolio-search__button:hover,
.portfolio-search__button:focus-visible {
  background: var(--violet);
}

.portfolio-search__button:focus-visible {
  outline: 2px solid var(--violet-hi);
  outline-offset: 2px;
}

.portfolio-search__button img {
  width: 26px;
  height: 26px;
}

.portfolio-search__status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity .2s ease, transform .2s ease;
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-preview {
  display: block;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-bottom: 1px solid var(--panel-edge);
  transition: transform .18s ease, box-shadow .18s ease;
}

.portfolio-preview--live {
  height: 245px;
  padding: 0;
  overflow: hidden;
  background: #100b17;
}

.portfolio-preview--unavailable {
  display: grid;
  min-height: 245px;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #211534, #100b17);
}

.unavailable-preview {
  display: grid;
  width: min(100%, 340px);
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  background: rgba(8, 4, 13, .78);
}

.unavailable-preview span,
.unavailable-preview small {
  color: var(--muted);
}

.unavailable-preview span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.unavailable-preview strong {
  color: var(--text);
  font-size: 1rem;
}

.portfolio-preview__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #100b17;
  pointer-events: none;
}

.portfolio-preview--chat {
  height: auto;
  aspect-ratio: 496 / 411;
  padding: 0;
  overflow: hidden;
  background: #101512;
}

.chat-preview {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 12% 50% minmax(0, 1fr);
  overflow: hidden;
  background: #101512;
  color: #e7e9ef;
  font: 10px/1.35 var(--body);
  text-align: left;
}

.chat-preview__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-right: 1px solid #25272a;
  background: #121713;
}

.chat-preview__server,
.chat-preview__server-image {
  display: grid;
  width: 70%;
  max-width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 35%;
  background: #292f29;
  color: #eff1ee;
  font-size: 15px;
  font-weight: 800;
}

.chat-preview__server--active {
  border: 2px solid #b68bff;
  background: #b68bff;
  color: #20162d;
}

.chat-preview__server-image {
  object-fit: cover;
  border-radius: 50%;
}

.chat-preview__server--add {
  border: 1px solid #625083;
  background: transparent;
  color: #b9a2df;
}

.chat-preview__channels {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 10px 10px 8px;
  border-right: 1px solid #393045;
  background: #17111e;
}

.chat-preview__server-name,
.chat-preview__community,
.chat-preview__search,
.chat-preview__invite,
.chat-preview__channel {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.chat-preview__server-name {
  height: 34px;
  border-bottom: 1px solid #30283b;
  font-size: 12px;
}

.chat-preview__server-name > span {
  display: grid;
  width: 24px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 7px;
  background: #b68bff;
  color: #21162e;
  font-weight: 800;
}

.chat-preview__server-name strong,
.chat-preview__community strong,
.chat-preview__channel span,
.chat-preview__search small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-preview__community {
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
}

.chat-preview__search {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #54466b;
  border-radius: 7px;
  color: #9c8aac;
}

.chat-preview__search small {
  flex: 1;
  font-size: 8px;
}

.chat-preview__search kbd {
  color: #b4a7c3;
  font: inherit;
}

.chat-preview__invite {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  background: #222921;
  color: #d7e5d7;
}

.chat-preview__invite span:nth-child(2) {
  flex: 1;
}

.chat-preview__category {
  margin: 9px 0 0;
  color: #a99ab9;
  font-size: 8px;
}

.chat-preview__channel {
  min-height: 27px;
  padding: 0 7px;
  border-radius: 5px;
  color: #b5bdba;
}

.chat-preview__channel b {
  color: #87958f;
  font-size: 13px;
}

.chat-preview__channel--active {
  background: #2a342c;
  color: #fff;
}

.chat-preview__channel--active b {
  color: #c4a4ff;
}

.chat-preview__channel i {
  margin-left: auto;
  color: #5ee08e;
  font-style: normal;
}

.chat-preview__main {
  min-width: 0;
  overflow: hidden;
  background: #101512;
}

.chat-preview__main-header {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid #27292a;
  white-space: nowrap;
}

.chat-preview__main-header > b {
  color: #9fa8a1;
  font-size: 14px;
}

.chat-preview__main-header > strong {
  font-size: 11px;
}

.chat-preview__main-header > small {
  overflow: hidden;
  margin-left: 4px;
  color: #89918c;
  font-size: 8px;
  text-overflow: ellipsis;
}

.chat-preview__messages {
  display: grid;
  gap: 22px;
  padding: 18px 10px;
}

.chat-preview__message {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
}

.chat-preview__message img {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-preview__message > div {
  min-width: 0;
}

.chat-preview__message strong {
  color: #c08aff;
  font-size: 9px;
}

.chat-preview__message time {
  margin-left: 5px;
  color: #929a96;
  font-size: 7px;
}

.chat-preview__message p {
  margin: 5px 0 0;
  color: #d8ded9;
  font-size: 9px;
}

.portfolio-preview--discord {
  display: grid;
  min-height: 245px;
  place-items: center;
  padding: 20px;
  background: #5865f2;
}

.discord-preview {
  display: grid;
  width: min(100%, 340px);
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: #232428;
  color: #fff;
  text-align: center;
}

.discord-preview__eyebrow {
  color: #b9bbbe;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.discord-preview strong {
  font-size: 1.15rem;
}

.discord-preview > span:last-child {
  color: #b9bbbe;
  font-size: .85rem;
}

.portfolio-card:hover .portfolio-preview {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.preview-window {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(7, 4, 11, 0.9);
}

.preview-window--dark {
  background: linear-gradient(180deg, rgba(16, 12, 21, 0.96), rgba(8, 6, 12, 0.96));
}

.preview-topbar {
  display: flex;
  gap: 6px;
  align-items: center;
}

.preview-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
}

.preview-hero,
.preview-banner,
.preview-column,
.preview-metric,
.preview-chart,
.preview-product,
.preview-tile {
  display: block;
  border-radius: 8px;
}

.preview-hero {
  height: 58px;
  background: linear-gradient(135deg, rgba(168, 120, 255, 0.9), rgba(97, 71, 194, 0.6));
}

.preview-hero--compact { height: 42px; }
.preview-banner {
  height: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
}
.preview-banner--short { width: 62%; }

.preview-columns {
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: 10px;
}

.preview-column {
  height: 54px;
  background: rgba(255,255,255,0.08);
}
.preview-column--wide { background: rgba(255,255,255,0.13); }

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

.preview-tile {
  height: 44px;
  background: rgba(255,255,255,0.08);
}
.preview-tile--lg { grid-column: span 2; }
.preview-tile--wide { grid-column: span 2; }

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preview-metric {
  height: 42px;
  background: linear-gradient(180deg, rgba(122, 208, 174, 0.7), rgba(92, 128, 106, 0.5));
}

.preview-chart {
  height: 80px;
  background: linear-gradient(180deg, rgba(130, 74, 245, 0.18), rgba(130, 74, 245, 0.02));
  position: relative;
  overflow: hidden;
}
.preview-chart::before {
  content: "";
  position: absolute;
  inset: 18% 10% 16% 8%;
  border-radius: 50% 50% 20% 20%;
  background: linear-gradient(135deg, rgba(122, 208, 174, 0.9), rgba(161, 118, 255, 0.4));
  transform: skewY(-16deg);
}

.preview-product-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
}
.preview-product {
  height: 62px;
  background: rgba(255,255,255,0.09);
}
.preview-product--large {
  height: 84px;
  background: linear-gradient(135deg, rgba(255, 207, 120, 0.9), rgba(191, 136, 61, 0.6));
}

.portfolio-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
}

.portfolio-meta h2 {
  margin: 0;
  font-size: 1.4rem;
}

.portfolio-meta p {
  margin: 0;
  color: var(--muted);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  width: fit-content;
  color: var(--violet-hi);
  font-weight: 700;
  letter-spacing: .02em;
}

.portfolio-link--disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.portfolio-link:hover,
.portfolio-link:focus-visible {
  color: #fff;
}

.portfolio-preview--purple .preview-window { box-shadow: inset 0 0 0 1px rgba(162, 107, 255, 0.2); }
.portfolio-preview--coral .preview-window { box-shadow: inset 0 0 0 1px rgba(255, 112, 103, 0.2); }
.portfolio-preview--green .preview-window { box-shadow: inset 0 0 0 1px rgba(95, 184, 143, 0.2); }
.portfolio-preview--gold .preview-window { box-shadow: inset 0 0 0 1px rgba(232, 207, 154, 0.22); }

.tile {
  display: flex; flex-direction: column;
  background: var(--panel); transition: background .15s, transform .15s;
}
.tile:hover { background: #2b1a42; }
.tile:hover .cover { filter: brightness(1.12) saturate(1.1); }

.tile__art { overflow: hidden; }
.cover { display: block; width: 100%; height: auto; transition: filter .15s; }

.tile__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; margin-top: auto;
}
.tile__title {
  font-size: .88rem; font-weight: 600; line-height: 1.3;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.pricebox { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }

/* Gold rather than the reference's green — it belongs to the horns in the logo. */
.badge {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #2a1c05; font-weight: 800; font-size: .78rem;
  padding: 2px 6px; border-radius: 3px; letter-spacing: .02em;
}
.badge--lg { font-size: 1rem; padding: 4px 9px; }

.price { font-size: .84rem; white-space: nowrap; }
.price--was { color: var(--muted); text-decoration: line-through; font-size: .78rem; }
.price--now { color: #fff; font-weight: 600; }
.price--lg  { font-size: 1.5rem; }

/* -------------------------------------------------------------------- rows */

.rows { list-style: none; margin: 0; padding: 0; }
.rows--boxed .row { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius); margin-bottom: 10px; }

.row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border-radius: var(--radius-sm);
}
.rows:not(.rows--boxed) .row + .row { border-top: 1px solid rgba(53, 33, 77, .7); }
.rows:not(.rows--boxed) .row:hover { background: rgba(124, 58, 237, .1); }

.row__art { flex: 0 0 184px; border-radius: 4px; overflow: hidden; }
.row__body { flex: 1 1 auto; min-width: 0; }
.row__title { font-weight: 600; }
.row__title:hover { color: var(--violet-hi); }
.row__tags { margin: 5px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.row__price { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: rgba(124, 58, 237, .18); border: 1px solid var(--panel-edge);
  font-size: .74rem; color: var(--text-dim);
}
.chip--link:hover { background: rgba(124, 58, 237, .34); color: #fff; }
.chip.is-active { background: var(--violet); color: #fff; border-color: var(--violet); }
.chiprow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* --------------------------------------------------------------- discovery */

.discovery { margin: 38px 0 46px; }

.tabs { display: flex; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--panel-edge); margin-bottom: 16px; }
.tabs__tab {
  padding: 10px 2px; font-size: .98rem; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab.is-active { color: #fff; border-bottom-color: var(--violet-hi); }

/* ------------------------------------------------------------ detail pages */

.crumbs { display: flex; gap: 8px; align-items: center; margin-top: 20px; font-size: .86rem; color: var(--muted); }

.detail { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; margin-bottom: 46px; }
.detail__main { display: grid; gap: 20px; min-width: 0; }
.detail__side { display: grid; gap: 16px; position: sticky; top: 84px; }
.detail__art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--panel-edge); box-shadow: var(--shadow); }

.buybox__price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.owned {
  margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(90, 200, 130, .12); border-left: 3px solid #5ac882;
  color: #b6f0cc; font-size: .9rem;
}
.owned--inline { margin: 0; padding: 2px 8px; border-left: 0; font-size: .76rem; border-radius: 999px; }

.warn {
  margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(224, 52, 74, .12); border-left: 3px solid var(--ember);
  color: #ffbcc5; font-size: .9rem;
}

.facts__list { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; font-size: .9rem; }
.facts__list dt { color: var(--muted); }
.facts__list dd { margin: 0; text-align: right; }

.totalline {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--panel-edge);
}

.tagrow { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0 0; }

/* ------------------------------------------------------------------ wallet */

.balance { display: flex; align-items: center; gap: 22px; }
.balance__coin { width: 96px; height: 96px; filter: drop-shadow(0 6px 18px rgba(180, 110, 240, .4)); }
.balance__amount { margin: 2px 0 0; font-size: 2.2rem; font-weight: 700; color: var(--gold); }

.topups { display: flex; gap: 10px; flex-wrap: wrap; }
.topups__btn { min-width: 96px; }

/* ------------------------------------------------------------------- forms */

.authgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 48px; align-items: start; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field__label { font-size: .86rem; color: var(--text-dim); }
.field__hint  { font-size: .78rem; color: var(--muted); }
.field__input {
  padding: 10px 12px; font: inherit;
  background: #120a1c; color: var(--text);
  border: 1px solid var(--panel-edge); border-radius: var(--radius-sm);
}
.field__input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .25); }

.inline { display: inline; }

.btn {
  display: inline-block; padding: 10px 18px; border: 1px solid transparent;
  border-radius: var(--radius-sm); font: inherit; font-size: .92rem; font-weight: 600;
  cursor: pointer; text-align: center; transition: filter .15s, background .15s, box-shadow .18s ease;
}
.btn--primary { background: linear-gradient(180deg, var(--violet), #5b21b6); color: #fff; box-shadow: 0 4px 14px rgba(91, 33, 182, .45); }
.btn--primary:hover { filter: brightness(1.15); }
.btn--quiet { background: #2a1a40; color: var(--text); border-color: var(--panel-edge); }
.btn--quiet:hover { background: #362152; }
.btn--ghost { background: transparent; color: var(--text-dim); border-color: var(--panel-edge); }
.btn--ghost:hover { color: #fff; border-color: var(--violet); }
.btn--sm { padding: 6px 13px; font-size: .85rem; }
.btn--block { display: block; width: 100%; }

.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: .8rem; text-decoration: underline;
  transition: color .15s ease, text-shadow .18s ease;
}
.linkbtn:hover { color: var(--ember); }

button:hover,
button:focus-visible,
.btn:hover,
.btn:focus-visible,
.search__btn:hover,
.search__btn:focus-visible,
.portfolio-search__button:hover,
.portfolio-search__button:focus-visible {
  box-shadow: 0 0 10px var(--magenta-a), 0 0 22px rgba(153, 0, 153, .55);
}
.linkbtn:hover,
.linkbtn:focus-visible { text-shadow: 0 0 8px var(--magenta-a); }

/* ------------------------------------------------------------------ footer */

.site-footer {
  margin-top: 88px;
  border-top: 3px solid var(--panel-edge);
  background: rgba(8, 4, 13, .78);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  min-height: 82px;
  padding-block: 22px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__brand strong {
  letter-spacing: .14em;
  font-size: .82rem;
  color: #fff;
}

.site-footer__brand span {
  color: var(--muted);
  font-size: .78rem;
}

.site-footer__links {
  display: flex;
  gap: 18px;
  align-items: center;
  
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--text-dim);
  font-size: .85rem;
  transition: color .15s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #f0f;
}

.footer { border-top: 1px solid var(--panel-edge); background: rgba(8, 4, 13, .7); padding: 30px 0 22px; }
.footer__inner { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand strong { letter-spacing: .2em; }
.footer__brand p { margin: 3px 0 0; font-size: .86rem; max-width: 40ch; }
.footer__links { display: flex; gap: 18px; align-items: center; }
.footer__legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(53, 33, 77, .5); font-size: .8rem; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .columns { grid-template-columns: 1fr; }
  .detail  { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .authgrid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .topbar__inner { gap: 10px; }
  .search { order: 5; width: 100%; margin-left: 0; }
  .search__input { flex: 1; width: auto; }
  .mainnav { order: 4; }
  .row__art { flex-basis: 120px; }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .balance { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.legal-atribut{
  border:2px solid #909;
}