/* Storefront design system. Keep product and admin behavior in their existing files. */
:root {
  --bg: #0d1014;
  --sf: #171b20;
  --so: #20252b;
  --bd: #303740;
  --td: #f3f1eb;
  --tm: #a8adb3;
  --tt: #7f8790;
  --ac: #e7b869;
  --ad: #f2cb83;
  --ah: #d7a758;
  --al: #242017;
  --aqua: #d9c092;
  --zone: #11151a;
  --zone2: #0d1014;
}

body {
  background: #0d1014;
  color: var(--td);
  line-height: 1.55;
}
body::before { display: none; }
.container { max-width: 1220px; }
.page { padding: 28px 16px 96px; }
:focus-visible { outline: 2px solid var(--ad); outline-offset: 3px; }

/* Header: one clear navigation row, with store actions on the right. */
.top-zone.site-header {
  position: relative;
  z-index: 100;
  padding: 0;
  background: #12161b;
  border-bottom: 1px solid #303740;
}
.site-header .header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 4vw, 64px);
  min-height: 78px;
  padding: 10px 16px;
}
.site-header .brand { justify-content: flex-start; gap: 10px; }
.site-header .brand img { width: 48px; height: 48px; filter: none; }
.site-header .brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #f5eee2;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .13em;
}
.site-header .brand-text b {
  display: block;
  color: var(--ac);
  font-size: 9px;
  margin-top: 5px;
  letter-spacing: .38em;
}
.site-header .nav {
  position: static;
  z-index: auto;
  margin: 0;
  padding: 0;
  max-width: none;
  align-self: center;
}
.site-header .nav-links { display: flex; gap: 4px; width: auto; }
.site-header .nav-link {
  border-radius: 8px;
  padding: 10px 15px;
  color: #b9bec4;
  font-size: 13px;
  font-weight: 650;
}
.site-header .nav-link.active {
  background: #272d34;
  color: #fff;
  box-shadow: none;
}
.site-header .header-right { gap: 9px; }
.site-header .cart-btn,
.site-header .user-chip {
  background: #1d2228;
  border: 1px solid #39414b;
  border-radius: 8px;
  box-shadow: none;
}
.site-header .user-chip { min-height: 40px; }
.site-header .header-right .abtn { min-height: 40px; }

/* Commerce hierarchy: a restrained sale callout and a product-led hero. */
.sale-banner {
  padding: 12px 17px;
  gap: 12px;
  background: #211d16;
  border: 1px solid #574932;
  border-radius: 9px;
  box-shadow: none;
  font-size: 13px;
}
.sale-banner strong { color: #f2cb83; font-size: 13px; letter-spacing: .02em; }
.sale-banner span { color: #d0c5b3; }
.sale-banner .abtn { margin-left: auto; }
.hero { margin-top: 16px; }
.hero-banner {
  min-height: 395px;
  background:
    linear-gradient(112deg, #20262a 0%, #171c22 58%, #252016 100%);
  border: 1px solid #39414a;
  border-radius: 13px;
  box-shadow: none;
}
.hero-banner::after, .hero-overlay, .hero-orn-arch, .hl-shine, .ambient-glow { display: none; }
.hero-banner::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  right: -180px;
  top: -150px;
  border: 1px solid rgba(231, 184, 105, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(231, 184, 105, .025), 0 0 0 110px rgba(231, 184, 105, .02);
  pointer-events: none;
}
.hero-content.welcome-hero {
  max-width: none;
  min-height: 395px;
  gap: clamp(24px, 6vw, 90px);
  padding: clamp(28px, 5vw, 64px);
  align-items: center;
}
.welcome-hero .hero-left { flex: 1.4; }
.welcome-hero .hero-right { flex: .65; }
.hero-badge {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 18px;
  color: var(--ad);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
}
.hero-title {
  max-width: 700px;
  font-size: clamp(36px, 4.3vw, 59px);
  line-height: 1.07;
  letter-spacing: -.045em;
  font-weight: 800;
  text-shadow: none;
  margin-bottom: 20px;
}
.hero-title span {
  color: var(--ad);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero-sub {
  max-width: 570px;
  color: #c2c5c7;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.7;
  margin-bottom: 27px;
}
.hero-ctas { margin: 0; gap: 10px; }
.abtn, .abtn-sm, .abtn-lg {
  border-radius: 8px;
  font-weight: 750;
  box-shadow: none;
}
.abtn-ac, .abtn-ac:hover {
  background: #e7b869;
  color: #171717;
  border: 1px solid #e7b869;
  box-shadow: none;
  filter: none;
}
.abtn-ac:hover { background: #f2cb83; }
.abtn-so, .abtn-ghost {
  background: #22282e;
  border: 1px solid #444b54;
  color: #e8e8e5;
}
.abtn-so:hover, .abtn-ghost:hover { background: #2b3239; }
.join-card {
  max-width: 320px;
  padding: 23px;
  background: #13171c;
  border: 1px solid #3b4148;
  border-radius: 10px;
  backdrop-filter: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}
.join-card::before { display: none; }
.jc-label { color: var(--ad); }
.jc-ip { border: 1px solid #46505a; border-radius: 7px; background: #1d232a; }
.jc-ip-value { font-size: 16px; }
.jc-copy { color: var(--ad); }
.jc-row { color: #aeb5bd; }

/* Sections use the same spacing, type scale, and surface treatment. */
.showcase, .journey, .quick-help, .network-news { margin: 64px 0; }
.showcase-heading { margin-bottom: 24px; }
.showcase-kicker { color: var(--ad); font-size: 10px; letter-spacing: .18em; }
.showcase-heading h2, .quick-help h2 {
  color: #f4f2ed;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -.035em;
}
.showcase-heading h2 em, .quick-help h2 em { color: #f4f2ed; }
.showcase-heading p, .quick-help-intro p { color: var(--tm); }
.rank-selector { gap: 8px; margin-bottom: 12px; }
.rank-select {
  min-height: 76px;
  padding: 13px;
  gap: 8px;
  border: 1px solid #343c45;
  border-radius: 8px;
  background: #171c22;
  box-shadow: none;
}
.rank-select:hover { transform: none; border-color: #9f8053; }
.rank-select.active {
  background: #25231f;
  border-color: #bd965d;
  box-shadow: inset 0 0 0 1px rgba(231,184,105,.15);
}
.rank-select-icon { width: 49px; height: 49px; }
.rank-select-name { font-size: 15px; }
.rank-select-index { color: #8a9098; }
.rank-select-popular { color: var(--ad); }
.rank-preview {
  min-height: 300px;
  padding: 30px;
  grid-template-columns: 175px minmax(0, 1fr) 200px;
  gap: 24px;
  border: 1px solid #3c434a;
  border-radius: 10px;
  background: #191f24;
  box-shadow: none;
}
.rank-preview::before, .rank-preview-art::before, .rank-preview-halo { display: none; }
.rank-preview-art { min-height: 180px; background: transparent; border-radius: 0; }
.rank-preview-art .rank-art { width: min(100%, 168px); height: 168px; object-fit: contain; }
.rank-preview-copy h3 { color: #f4f2ed; font-size: 40px; }
.rank-preview-copy p { color: #b4b9bd; }
.rank-preview-copy li { color: #dddfe0; }
.rank-preview-buy { border-color: #3e454d; }
.rank-preview-buy strong { color: #f4f2ed; font-size: 34px; }
.rank-preview-buy small { color: var(--ad); }
.journey-grid { gap: 12px; }
.journey-step {
  min-height: 178px;
  padding: 24px;
  border: 1px solid #343c45;
  border-radius: 9px;
  background: #171c22;
}
.journey-step::after { display: none; }
.journey-glyph { color: var(--ad); text-shadow: none; margin: 12px 0; }
.journey-step h3 { color: #f1f0ec; }
.journey-step p { color: #aeb4bb; }
.mc-list-card, .side-card, .blog-card, .quick-help {
  background: #171c22;
  border: 1px solid #343c45;
  border-radius: 10px;
  box-shadow: none;
}
.mc-list-card::before, .side-card::before, .blog-card::before { box-shadow: none; }
.quick-help { padding: 28px; }
.quick-help-list details { background: #20262c; border: 1px solid #39414a; border-radius: 7px; }
.quick-help-list details[open] { border-color: #ad8957; }
.quick-help-list summary { color: #efeee9; }
.blog-card:hover { transform: none; border-color: #ad8957; box-shadow: none; }
.hub-cols { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.hof-card {
  background: radial-gradient(700px 280px at 50% 0, rgba(231,184,105,.12), transparent 70%), #171c22;
  border-color: rgba(231,184,105,.38);
  box-shadow: 0 24px 55px rgba(0,0,0,.25), inset 0 0 0 1px rgba(231,184,105,.08);
}
.live-row {
  background: #20262c;
  border: 1px solid #353d46;
  border-radius: 7px;
  box-shadow: none;
  animation: none;
}
.live-row:hover { transform: none; border-color: #ad8957; }
.live-pulse { animation: none; }
.side-head-ic, .side-head-ic.live-ic { background: #2a2a26; color: var(--ad); box-shadow: none; }
.footer { background: #11151a; border-top: 1px solid #303740; }

/* Catalog and checkout surfaces. */
.store-head { margin: 18px 0 28px; }
.store-head-icon { background: #242017; border: 1px solid #51432f; }
.store-head h1 { font-size: clamp(30px, 3vw, 40px); }
.store-rate { background: #20262c; border-color: #39414a; color: #d0d2d2; }
.store-grid { grid-template-columns: 230px minmax(0,1fr); gap: 24px; }
.products-grid { gap: 14px; }
.p-card {
  background: #171c22;
  border: 1px solid #353d46;
  border-radius: 10px;
  box-shadow: none;
}
.p-card:hover { transform: translateY(-2px); border-color: #b6925e; box-shadow: 0 15px 25px rgba(0,0,0,.16); }
.p-art { background: #20262c; border-bottom: 1px solid #353d46; height: 154px; }
.p-icon-lg:has(.rank-art) { width: 122px; height: 122px; background: none; border: 0; box-shadow: none; }
.p-icon-lg .rank-art, .rank-select-icon .rank-art { width: 100%; height: 100%; object-fit: contain; }
.rank-art-screen { mix-blend-mode: screen; filter: none !important; }
.p-icon-lg:has(.rank-art-screen), .rank-select-icon:has(.rank-art-screen) { mix-blend-mode: screen; filter: none; }
.p-card .p-name { color: #f1f0ec; }
.p-card .p-feats li { color: #bfc3c4; }
.p-cta { border-color: #353d46; }
.p-cta .p-price small { color: #b8bec4; }
.sort-select { border-radius: 7px; background-color: #20262c; border-color: #3d454d; }
.side-card.balance-card { border-color: #464137; }
.modal-card, .login-hero {
  background: #171c22;
  border: 1px solid #3c444d;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0,0,0,.5);
}
.modal-card .tier { border-radius: 8px; background: #20262c; border-color: #3a424b; }
.modal-card .tier.active { background: #29271f; border-color: #d5aa68; box-shadow: inset 0 0 0 1px rgba(231,184,105,.18); }
.modal-card .prod-modal-icon:has(.rank-art) { width: 120px; height: 120px; background: none; box-shadow: none; }
.modal-card .prod-modal-icon .rank-art { width: 100%; height: 100%; object-fit: contain; }
.modal-card .prod-modal-price { flex-wrap: wrap; gap: 2px 10px; }
.modal-card .price-per { flex-basis: 100%; color: #b7bdc2; }
.account-actions { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 18px; border-top: 1px solid #3a424b; }
.login-hero h1 { background: none; color: #f4f2ed; -webkit-text-fill-color: currentColor; filter: none; }

@media (max-width: 1000px) {
  .hub-cols { grid-template-columns: 1fr; }
  .hub-side { position: static; }
}
@media (max-width: 900px) {
  .store-grid { grid-template-columns: 1fr; }
  .store-main { order: 0; }
  .store-side { order: 1; }
  .rank-preview { grid-template-columns: 145px minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .page { padding: 18px 16px 72px; }
  .site-header .header-row { grid-template-columns: 1fr auto; gap: 4px 12px; min-height: 0; }
  .site-header .brand img { width: 40px; height: 40px; }
  .site-header .brand-text { font-size: 14px; }
  .site-header .brand-text b { font-size: 8px; }
  .site-header .nav { grid-column: 1 / -1; grid-row: 2; }
  .site-header .nav-links { display: flex; padding: 3px 0 0; }
  .site-header .nav-link { padding: 8px 12px; }
  .site-header .header-right { grid-column: 2; grid-row: 1; }
  .site-header .header-signout { display: none; }
  .site-header .user-chip { max-width: 110px; padding: 5px 8px; }
  .site-header .user-name { overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
  .sale-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; }
  .sale-banner span { width: auto; grid-column: 1; grid-row: 2; }
  .sale-banner .abtn { margin: 0; grid-column: 2; grid-row: 1 / 3; }
  .hero-banner { min-height: 0; }
  .hero-content.welcome-hero { display: block; min-height: 0; padding: 36px 24px; }
  .welcome-hero .hero-left { display: block; text-align: left; }
  .welcome-hero .hero-left .hero-title, .welcome-hero .hero-left .hero-sub { text-align: left; }
  .hero-title { font-size: clamp(34px, 9vw, 48px); }
  .hero-ctas .abtn { width: auto; }
  .welcome-hero .hero-right { margin-top: 28px; }
  .join-card { max-width: none; margin: 0; padding: 14px; gap: 9px; }
  .jc-label { display: none; }
  .jc-ip { flex-direction: row; justify-content: space-between; padding: 10px 12px; }
  .jc-ip-value { font-size: 13px; }
  .jc-rows { border: 0; padding: 0 2px; }
  .jc-row:nth-child(n+2) { display: none; }
  .showcase, .journey, .quick-help, .network-news { margin: 48px 0; }
  .rank-selector { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rank-preview { padding: 20px; }
  .rank-preview-art { min-height: 130px; }
  .rank-preview-buy { margin-top: 20px; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-step { min-height: 0; }
  .quick-help { padding: 20px; }
}
@media (max-width: 390px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .abtn { width: 100%; }
  .rank-select { min-height: 70px; }
}
@media (max-width: 700px) {
  .modal { padding: 10px; }
  .modal-card { max-height: calc(100dvh - 20px); padding: 18px; }
  .modal-card .modal-x { position: sticky; top: 0; margin: 0 0 -34px auto; z-index: 5; background: #303740; color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .rank-preview-in, .p-card, .live-row { animation: none !important; }
}

/* Full-page staff workspace. */
.admin-mode { background: #11161b; }
.admin-page { min-height: 100dvh; color: #f3f1ec; }
.admin-page-header { position: sticky; top: 0; z-index: 30; background: rgba(17,22,27,.96); border-bottom: 1px solid #343c45; backdrop-filter: blur(16px); }
.admin-page-header-inner { max-width: 1480px; margin: auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-page-brand { display: flex; align-items: center; gap: 12px; }
.admin-page-brand img { width: 43px; height: 43px; object-fit: contain; }
.admin-page-brand small { display: block; color: #cba168; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.admin-page-brand strong { display: block; font-size: 18px; line-height: 1.2; }
.admin-page-main { max-width: 1480px; margin: 0 auto; padding: 34px 28px 90px; }
.admin-page-intro { margin: 0 0 25px; }
.admin-page-intro h1 { margin: 5px 0 3px; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.admin-page-intro p { margin: 0; color: #aeb7be; font-size: 14px; }
.admin-page .admin-shell { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 0 26px; }
.admin-page .admin-topline { grid-column: 2; grid-row: 1; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid #343c45; }
.admin-page .admin-tabs { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; align-self: start; position: sticky; top: 94px; overflow: visible; border: 1px solid #343c45; border-radius: 12px; padding: 8px; background: #1a2026; }
.admin-page .admin-tabs button { width: 100%; text-align: left; border-radius: 7px; padding: 11px 13px; }
.admin-page .admin-tabs button.active { color: #f6ce8c; background: #302a20; border-color: #6b5639; }
.admin-page .admin-content { grid-column: 2; grid-row: 2; min-width: 0; }
.admin-page .admin-panel, .admin-page .admin-metrics > div, .admin-page .admin-record { background: #1b2228; border-color: #35404a; box-shadow: none; border-radius: 9px; }
.admin-page .admin-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
.admin-page .admin-metrics > div { min-height: 94px; }
.admin-page .admin-list { max-height: none; }
.admin-page .admin-referral-form { flex-wrap: wrap; }
.admin-page .admin-referral-form label { display: flex; flex-direction: column; gap: 4px; color: #adb5bb; font-size: 11px; }
.admin-page .admin-referral-form input[type=number] { width: 92px; padding: 8px; color: #fff; border: 1px solid #43505b; background: #11171c; border-radius: 6px; }
.admin-page .admin-referral-form .admin-toggle { display: flex; flex-direction: row; }
.admin-page #admin-referral-create { flex-wrap: wrap; }
.admin-page #admin-referral-create label { min-width: 145px; display: flex; flex-direction: column; color: #adb5bb; font-size: 12px; }
.admin-page #admin-referral-create input { width: 100%; padding: 9px; color: #fff; border: 1px solid #43505b; background: #11171c; border-radius: 6px; }
.account-referral { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; margin: 8px 0; border: 1px solid #3d4850; border-radius: 8px; background: #20272d; }
.account-referral b { display: block; }
.account-referral small { display: block; color: #aeb7be; line-height: 1.5; }
.referral-row { margin-top: 8px; }
@media (max-width: 880px) {
  .admin-page .admin-shell { display: block; }
  .admin-page .admin-tabs { position: static; flex-direction: row; overflow-x: auto; margin-bottom: 18px; }
  .admin-page .admin-tabs button { width: auto; }
  .admin-page .admin-topline { margin-bottom: 10px; }
}
@media (max-width: 700px) {
  .site-header .header-admin { padding: 7px 8px; font-size: 11px; }
  .admin-page-header-inner { padding: 12px 16px; }
  .admin-page-main { padding: 25px 16px 70px; }
  .admin-page .admin-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-page .admin-form-row { flex-wrap: wrap; }
  .admin-page .admin-form-row label { min-width: 120px; }
  .admin-page .admin-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Live Dynmap landing and viewer. */
.map-teaser { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); min-height: 330px; overflow: hidden; margin: 64px 0; border: 1px solid #4c4335; border-radius: 14px; background: #171d22; box-shadow: 0 25px 55px rgba(0,0,0,.2); }
.map-teaser-art { position: relative; min-height: 300px; overflow: hidden; background: radial-gradient(ellipse at 44% 55%, rgba(198,154,84,.17), transparent 48%), linear-gradient(145deg,#202a2d,#141a1e 68%); }
.map-teaser-art::after { position: absolute; inset: 0; content: ""; opacity: .6; background: linear-gradient(90deg,transparent 70%,#171d22); }
.map-teaser-art svg { position: absolute; inset: -6% -3%; width: 108%; height: 112%; fill: rgba(70,90,76,.22); stroke: rgba(224,183,112,.35); stroke-width: 1.5; }
.map-teaser-art svg path:not(:first-child) { fill: none; stroke-width: 1.3; }
.map-coordinate { position: absolute; bottom: 20px; left: 24px; color: rgba(237,203,143,.6); font: 10px var(--mono,monospace); letter-spacing: .14em; }
.map-compass { position: absolute; top: 22px; right: 25px; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(224,183,112,.32); border-radius: 50%; color: #d0ae73; font: 10px var(--mono,monospace); background: rgba(16,22,24,.42); }
.map-compass b { font-size: 22px; font-weight: 400; }
.map-teaser-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 38px clamp(25px,5vw,64px); }
.map-teaser-copy h2 { margin: 9px 0 12px; color: #f3f0e9; font-size: clamp(28px,4vw,43px); line-height: 1.1; letter-spacing: -.035em; }
.map-teaser-copy h2 em, .map-hero h1 em { color: #d9b575; font-style: normal; }
.map-teaser-copy p { max-width: 420px; margin: 0 0 23px; color: #aeb7bc; line-height: 1.7; font-size: 14px; }
.map-teaser-copy .abtn { gap: 18px; }
.map-page { padding-bottom: 24px; }
.map-hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 285px; padding: clamp(25px,5vw,54px); overflow: hidden; border: 1px solid #3d433f; border-radius: 13px; background: radial-gradient(ellipse at 79% 20%,rgba(201,161,94,.15),transparent 31%), radial-gradient(ellipse at 60% 105%,rgba(73,101,89,.18),transparent 44%),#171d21; }
.map-hero::after { position: absolute; right: -30px; bottom: -170px; width: 570px; height: 430px; content: ""; opacity: .15; border: 1px solid #d3ae70; border-radius: 46% 54% 60% 40%; transform: rotate(-24deg); box-shadow: 0 0 0 22px #171d21,0 0 0 23px #d3ae70,0 0 0 53px #171d21,0 0 0 54px #d3ae70,0 0 0 94px #171d21,0 0 0 95px #d3ae70; pointer-events: none; }
.map-hero-copy, .map-hero-meta { position: relative; z-index: 1; }
.map-hero h1 { margin: 8px 0 12px; color: #f4f1eb; font-size: clamp(38px,6vw,66px); line-height: .98; letter-spacing: -.055em; }
.map-hero-copy > p { max-width: 560px; color: #b4bdc1; line-height: 1.7; font-size: 14px; }
.map-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.map-hero-actions [disabled], .map-frame-tools [disabled] { opacity: .45; cursor: not-allowed; }
.map-hero-meta { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 33px; }
.map-hero-meta > div { display: grid; grid-template-columns: 10px auto; align-items: center; gap: 3px 9px; }
.map-hero-meta b { color: #d9b575; font: 700 10px var(--mono,monospace); letter-spacing: .13em; }
.map-hero-meta small { grid-column: 2; color: #99a4a8; font-size: 11px; }
.map-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #77817f; box-shadow: 0 0 0 3px rgba(119,129,127,.12); }
.map-live-dot.is-live { background: #85d1a1; box-shadow: 0 0 0 3px rgba(133,209,161,.12),0 0 12px rgba(133,209,161,.45); }
.map-coord-chip { padding: 8px 11px; color: #acb3b4; border: 1px solid #39433f; border-radius: 5px; background: rgba(16,21,23,.5); font: 9px var(--mono,monospace); letter-spacing: .1em; }
.map-worlds { display: flex; align-items: center; gap: 10px; padding: 17px 0; margin: 5px 0 9px; border-bottom: 1px solid #313a3e; }
.map-worlds-label { margin-right: 6px; color: #929c9f; font: 9px var(--mono,monospace); letter-spacing: .13em; white-space: nowrap; }
.map-world-pill { display: flex; align-items: center; gap: 8px; min-width: 125px; padding: 7px 11px; border: 1px solid #313a3e; border-radius: 6px; background: #191f23; }
.map-world-pill.active { border-color: #776343; background: #24231f; }
.map-world-pill > i { color: #cda968; font-size: 17px; font-style: normal; }
.map-world-pill b, .map-world-pill small { display: block; }
.map-world-pill b { color: #e5e2d9; font-size: 11px; }
.map-world-pill small { margin-top: 2px; color: #8f999c; font-size: 9px; }
.map-worlds-note { margin-left: auto; color: #778185; font-size: 10px; }
.map-frame-shell { overflow: hidden; border: 1px solid #424c4e; border-radius: 9px; background: #121719; box-shadow: 0 20px 50px rgba(0,0,0,.24); }
.map-frame-top { display: flex; align-items: center; gap: 18px; min-height: 52px; padding: 8px 15px; border-bottom: 1px solid #333d40; background: #1b2225; }
.map-frame-brand { display: flex; align-items: center; gap: 8px; color: #e7e4dc; font-size: 10px; letter-spacing: .1em; }
.map-frame-brand img { width: 27px; height: 27px; object-fit: contain; }
.map-frame-brand i { color: #c9a367; font-style: normal; }
.map-frame-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #9da7a8; font: 10px var(--mono,monospace); }
.map-frame-status .map-live-dot { width: 6px; height: 6px; }
.map-frame-tools { display: flex; gap: 6px; }
.map-frame-tools button, .map-frame-tools a { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #3c4648; border-radius: 5px; color: #d1b27b; background: #232b2d; text-decoration: none; font-size: 17px; cursor: pointer; }
.map-frame-tools a { font-size: 14px; }
.map-frame-shell iframe { display: block; width: 100%; height: min(72vh,800px); min-height: 520px; border: 0; background: #161a1c; }
.map-connect-state { position: relative; display: flex; min-height: 520px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 35px; text-align: center; background: radial-gradient(ellipse at 50% 44%,rgba(181,144,86,.1),transparent 47%),#141a1d; }
.map-connect-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(203,168,109,.2) 1px,transparent 1px),linear-gradient(90deg,rgba(203,168,109,.2) 1px,transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center,#000,transparent 70%); }
.map-connect-icon { z-index: 1; display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 17px; border: 1px solid #6a5637; border-radius: 50%; color: #d4b170; background: #22231f; font-size: 32px; }
.map-connect-state .showcase-kicker, .map-connect-state h2, .map-connect-state p, .map-connect-status { position: relative; z-index: 1; }
.map-connect-state h2 { margin: 8px 0; color: #eeeae2; font-size: 27px; }
.map-connect-state p { max-width: 510px; margin: 0; color: #a4adae; font-size: 13px; line-height: 1.7; }
.map-connect-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 9px 12px; border: 1px solid #37413f; border-radius: 30px; color: #aeb6b5; background: #1a2122; font: 10px var(--mono,monospace); }
.map-connect-status .map-live-dot { width: 6px; height: 6px; background: #cea562; box-shadow: 0 0 8px rgba(206,165,98,.45); }
.map-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 1px 5px; }
.map-bottom-row p { margin: 5px 0 0; color: #9fa8aa; font-size: 12px; }
@media (max-width: 760px) {
  .map-teaser { grid-template-columns: 1fr; }
  .map-teaser-art { min-height: 225px; }
  .map-teaser-copy { padding: 25px; }
  .map-worlds { flex-wrap: wrap; }
  .map-worlds-label { flex-basis: 100%; }
  .map-worlds-note { flex-basis: 100%; margin: 2px 0 0; }
  .map-frame-shell iframe { min-height: 460px; height: 68vh; }
  .map-connect-state { min-height: 460px; }
}
@media (max-width: 480px) {
  .map-hero { min-height: 330px; padding: 23px 19px; }
  .map-hero-meta { align-items: start; flex-direction: column; }
  .map-coord-chip { align-self: flex-start; }
  .map-world-pill { min-width: 0; flex: 1; }
  .map-world-pill small { display: none; }
  .map-frame-top { gap: 8px; padding: 8px; }
  .map-frame-brand { font-size: 8px; }
  .map-frame-status { gap: 5px; font-size: 8px; }
  .map-frame-tools button, .map-frame-tools a { width: 28px; height: 28px; }
  .map-frame-shell iframe { min-height: 420px; height: 65vh; }
  .map-connect-state { min-height: 420px; padding: 20px; }
  .map-connect-state h2 { font-size: 22px; }
  .map-bottom-row { align-items: flex-start; flex-direction: column; }
}

/* Dedicated leaderboard destinations and Home directory cards. */
.leaderboard-directory { padding: clamp(20px, 3vw, 30px); }
.leaderboard-directory-head { margin-bottom: 20px; }
.leaderboard-directory-head h2 { margin: 5px 0 6px; color: #f2eee5; font-size: clamp(21px, 2.5vw, 28px); line-height: 1.2; }
.leaderboard-directory-head h2 em, .leaderboard-page-intro h1 em { color: var(--ad); font-style: normal; }
.leaderboard-directory-head p { max-width: 520px; margin: 0; color: #aeb4bb; font-size: 13px; }
.leaderboard-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.leaderboard-link-card { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; color: inherit; background: #20262c; border: 1px solid #39414a; border-radius: 9px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.leaderboard-link-card:hover { transform: translateY(-2px); background: #242a30; border-color: #ad8957; }
.leaderboard-link-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; color: #f2cb83; font-size: 20px; background: #2a261e; border: 1px solid #51432f; border-radius: 9px; }
.leaderboard-link-card > span:nth-child(2) { min-width: 0; flex: 1; }
.leaderboard-link-card b, .leaderboard-link-card small { display: block; }
.leaderboard-link-card b { color: #f1f0ec; font-size: 13px; }
.leaderboard-link-card small { margin-top: 2px; color: #aeb4bb; font-size: 11px; }
.leaderboard-link-arrow { color: #d9b878; font-size: 20px; transition: transform .18s; }
.leaderboard-link-card:hover .leaderboard-link-arrow { transform: translateX(3px); }
.leaderboard-page-intro { margin: 14px 0 22px; padding: clamp(20px, 4vw, 34px); text-align: center; border: 1px solid rgba(231,184,105,.2); border-radius: 12px; background: radial-gradient(650px 220px at 50% 0, rgba(231,184,105,.1), transparent 74%), #14191e; }
.leaderboard-page-intro h1 { margin: 5px 0 5px; color: #f2eee5; font-size: clamp(29px, 4.3vw, 46px); line-height: 1.12; letter-spacing: -.035em; }
.leaderboard-page-intro p { margin: 0; color: #adb3ba; font-size: 13px; }
.leaderboard-page .hof-card { margin: 0; }
.leaderboard-page .playtime-board { margin: 0; }

@media (max-width: 700px) {
  .site-header .nav-links { overflow-x: auto; scrollbar-width: none; }
  .site-header .nav-links::-webkit-scrollbar { display: none; }
  .site-header .nav-link { flex: 0 0 auto; padding-inline: 10px; font-size: 12px; }
  .leaderboard-directory-grid { grid-template-columns: 1fr; }
}
