:root {
  --bg: #0b0f19;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #6ee7ff;
  --brand2: #a78bfa;
  --border: rgba(255, 255, 255, .08);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 18px;
  --max: 1100px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 90px;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(110, 231, 255, .14), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(167, 139, 250, .14), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(11, 15, 25, .55);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110, 231, 255, .9), rgba(167, 139, 250, .9));
  box-shadow: var(--shadow);
}

/* MC status badge (bigger + alert style) */
#mc-status.badge {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* little status dot */
#mc-status.badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
  opacity: .95;
}

#mc-status.badge.online {
  background: rgba(34, 197, 94, .16);
  border: 1px solid rgba(34, 197, 94, .35);
  color: rgba(187, 247, 208, 1);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .10), 0 12px 26px rgba(0, 0, 0, .28);
}

#mc-status.badge.offline {
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .34);
  color: rgba(254, 202, 202, 1);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, .10), 0 12px 26px rgba(0, 0, 0, .28);
}


.navlinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.navlinks a {
  opacity: .9
}

.navlinks a:hover {
  opacity: 1
}

/* Header polish (match main site) */
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0
}

.brand-name {
  font-weight: 800;
  letter-spacing: .2px
}

.page-pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(229, 231, 235, .9);
  white-space: nowrap;
}

.navlinks a {
  position: relative;
  padding: 10px 10px;
  border-radius: 12px
}

.navlinks a:hover {
  text-decoration: none
}

.navlinks a.active {
  opacity: 1
}

.navlinks a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(110, 231, 255, .9);
  opacity: .9;
}

/* Nav hover polish (match main site feel) */
.navlinks a {
  text-decoration: none;
  transition: background .15s ease, opacity .15s ease, transform .15s ease;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, .06);
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: none;
}

.navlinks a:active {
  transform: translateY(0px);
}


.hero {
  padding: 34px 0 14px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: rgba(17, 24, 39, .7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px
}

.kicker {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .2px
}

.h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  margin: 10px 0 10px;
}

.sub {
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 18px);
  margin: 0 0 16px;
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06);
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(110, 231, 255, .9), rgba(167, 139, 250, .9));
  color: #0b0f19;
  border-color: rgba(255, 255, 255, .0);
}

.btn:hover {
  filter: brightness(1.05);
  text-decoration: none
}

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

/* Marketplace item icon rows */
.price-li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.item-ico {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  flex: 0 0 auto;
  border-radius: 6px;
}

.price-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Marketplace multi-price ladder */
.price-ladder {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.price-tier {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}

.tier-qty {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.tier-rb {
  font-weight: 800;
  font-size: 13px;
}

/* Marketplace multi-price ladder */
.page-marketplace .market-list{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.page-marketplace .market-row{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(17,24,39,.45);
}

.page-marketplace .market-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.page-marketplace .item-icon{
  width:18px;
  height:18px;
  image-rendering: pixelated;
  flex:0 0 auto;
}

.page-marketplace .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.08);
  flex:0 0 auto;
}

.page-marketplace .market-name{
  font-weight:650;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.page-marketplace .price-ladder{
  display:grid;
  grid-auto-flow:row;
  gap:6px;
  justify-items:end;
}

.page-marketplace .tier{
  display:flex;
  align-items:center;
  gap:8px;
}

.page-marketplace .tier .qty{
  font-size:12px;
  color:var(--muted);
  padding:2px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(0,0,0,.18);
}

.page-marketplace .tier .rb{
  font-weight:750;
}

/* Mobile: ladder drops under the name */
@media (max-width: 520px){
  .page-marketplace .market-row{ grid-template-columns:1fr; }
  .page-marketplace .price-ladder{ justify-items:start; }
}


.section {
  padding: 18px
}

.h2 {
  margin: 0 0 6px;
  font-size: 20px
}

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

.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px
}

.li {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}

.footer {
  margin-top: 22px;
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

@media (min-width: 860px) {
  .container {
    padding: 22px
  }

  .hero-grid {
    grid-template-columns: 1.3fr .7fr
  }

  .grid {
    grid-template-columns: repeat(3, 1fr)
  }
}