/* Sleek, simple site layer (overrides older "glass" theme) */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Manrope:wght@400;500;600;700;800&family=Pixelify+Sans:wght@500;600;700&display=swap");

:root {
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-display: "Pixelify Sans", "JetBrains Mono", ui-monospace, monospace;

  /* Warmer, classic Minecraft-web palette */
  --bg0: #080706;
  --bg1: #14100b;
  --panel: rgba(255, 255, 255, 0.05);
  --panel2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.11);
  --border2: rgba(255, 255, 255, 0.16);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.52);

  /* Hypixel-ish gold accent */
  --accent: #d7b25a;
  --accent2: #f1d18a;
  --accent-deep: #8a6a1d;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #fb7185;

  /* Sharp corners, minimal effects */
  --radius: 2px;
  --radius-sm: 2px;
  --shadow: none;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: #0c0a07;
  color: var(--text);
  min-height: 100vh;
}

body.home-page {
  background: #080706;
}

body.home-page::before,
body.art-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
}

body.home-page::before {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.96) 0%, rgba(8, 7, 6, 0.82) 42%, rgba(8, 7, 6, 0.5) 100%),
    linear-gradient(0deg, rgba(8, 7, 6, 0.98) 0%, rgba(8, 7, 6, 0.38) 46%, rgba(8, 7, 6, 0.9) 100%),
    url("./images/war-riders-voxel-bg.png") center / cover no-repeat;
}

body.wiki-page::before {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.94) 0%, rgba(8, 7, 6, 0.76) 48%, rgba(8, 7, 6, 0.5) 100%),
    linear-gradient(0deg, rgba(8, 7, 6, 0.98) 0%, rgba(8, 7, 6, 0.45) 46%, rgba(8, 7, 6, 0.88) 100%),
    url("./images/war-riders-wiki-bg.png") center / cover no-repeat;
}

body.items-page::before {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.94) 0%, rgba(8, 7, 6, 0.76) 48%, rgba(8, 7, 6, 0.5) 100%),
    linear-gradient(0deg, rgba(8, 7, 6, 0.98) 0%, rgba(8, 7, 6, 0.42) 46%, rgba(8, 7, 6, 0.88) 100%),
    url("./images/war-riders-items-bg.png") center / cover no-repeat;
}

body.store-page::before {
  background:
    linear-gradient(90deg, rgba(4, 8, 7, 0.96) 0%, rgba(4, 8, 7, 0.78) 50%, rgba(4, 8, 7, 0.52) 100%),
    linear-gradient(0deg, rgba(4, 8, 7, 0.98) 0%, rgba(4, 8, 7, 0.42) 46%, rgba(4, 8, 7, 0.86) 100%),
    url("./images/war-riders-store-bg.png") center / cover no-repeat;
}

body.home-page::after,
body.art-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
}

/* Layout helpers */
.wrap {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 23, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}

.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.brand .title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand .sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: var(--radius);
}
.nav a:hover {
  background: var(--panel);
  color: var(--text);
}
.nav a.active {
  background: rgba(121, 166, 255, 0.16);
  border: 1px solid rgba(121, 166, 255, 0.28);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font: 800 13px/1 var(--font-sans);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.btn:hover {
  border-color: var(--border2);
  background: var(--panel2);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}
.btn.primary {
  border-color: rgba(215, 178, 90, 0.45);
  background: rgba(215, 178, 90, 0.18);
  color: rgba(255, 255, 255, 0.95);
}
.btn.primary:hover {
  border-color: rgba(241, 209, 138, 0.55);
  background: rgba(215, 178, 90, 0.24);
}

.hero {
  padding: 48px 0 22px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
}
.hero p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 70ch;
  font-size: 16px;
}
.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.kicker {
  display: inline-block;
  color: var(--accent2);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}

.footer {
  padding: 26px 0 40px;
  color: var(--faint);
  border-top: 1px solid var(--border);
  margin-top: 26px;
}

.site-footer {
  width: min(var(--container), calc(100% - 32px));
  margin: 8px auto 0;
  padding: 28px 0 36px;
  color: var(--muted);
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.site-footer strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}
.site-footer span {
  font-size: 13px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.site-footer a:hover {
  color: var(--text);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 4px;
  background: rgba(12, 10, 7, 0.96);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  transition: opacity 120ms ease;
}
.copy-toast.show {
  opacity: 1;
}

/* Page-level tweaks for existing pages */
.app-shell {
  padding-top: 72px;
}

/* --- App shell (wiki-like) --- */
.app {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 max(18px, calc((100vw - var(--container)) / 2));
  background: rgba(8, 7, 6, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.badge {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(215, 178, 90, 0.32);
  background: rgba(215, 178, 90, 0.12);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.topnav {
  display: none;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.topnav a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.topnav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.06);
}
.topnav a.active {
  color: var(--text);
  background: rgba(215, 178, 90, 0.16);
  border-color: rgba(215, 178, 90, 0.28);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 3px;
  min-width: min(520px, 42vw);
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.search .kbd {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(215, 178, 90, 0.28);
  border-radius: 4px;
  background: rgba(215, 178, 90, 0.12);
  color: var(--text);
  font: 800 13px/1 var(--font-sans);
  cursor: pointer;
}
.menu-toggle .bars {
  display: grid;
  gap: 4px;
}
.menu-toggle .bars span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: rgba(0, 0, 0, 0.68);
}
.menu-overlay.open {
  display: block;
}
.site-menu {
  position: fixed;
  top: 14px;
  left: max(14px, calc((100vw - var(--container)) / 2));
  z-index: 301;
  width: min(380px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  display: none;
  border: 1px solid rgba(215, 178, 90, 0.25);
  border-radius: 8px;
  background: rgba(14, 11, 8, 0.98);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
}
.site-menu.open {
  display: block;
}
.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.site-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}
.site-menu-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: 900 18px/1 var(--font-sans);
  cursor: pointer;
}
.site-menu-body {
  display: grid;
  gap: 16px;
  padding: 16px;
}
.site-menu-section {
  display: grid;
  gap: 8px;
}
.site-menu-title {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-menu-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.035);
}
.site-menu-link:hover,
.site-menu-link.active {
  border-color: rgba(215, 178, 90, 0.28);
  background: rgba(215, 178, 90, 0.12);
}
.site-menu-link strong {
  display: block;
  font-size: 14px;
}
.site-menu-link span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.site-menu-copy {
  width: 100%;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.sidebar {
  display: none;
  position: sticky;
  top: 94px;
  align-self: start;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
}
.sidebar .section-title {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 10px 10px 8px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin: 4px 0;
  border-radius: 3px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
}
.side-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.side-link.active {
  background: rgba(215, 178, 90, 0.14);
  border-color: rgba(215, 178, 90, 0.28);
  color: var(--text);
}
.side-link .dot {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--accent2);
}

.content {
  min-width: 0;
}

.crumbs {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 14px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.hero-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: 24px;
  overflow: hidden;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.home-page .topbar {
  background: rgba(8, 7, 6, 0.9);
}

.art-page .topbar {
  background: rgba(8, 7, 6, 0.9);
}

.home-page .badge,
.home-page .topbar-left > div:last-child,
.home-page .kicker,
.home-page .btn,
.home-page .pill,
.home-page .tile .cmd,
.home-page .join-step .num,
.home-page .join-step h3,
.home-page .feature-strip h2 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.art-page .badge,
.art-page .topbar-left > div:last-child,
.art-page .kicker,
.art-page .btn,
.art-page .pill,
.art-page .tile .cmd,
.art-page .join-step .num,
.art-page .wiki-section h2,
.art-page .wiki-card strong,
.art-page .store-step strong,
.art-page .item-name {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.home-page .shell {
  padding-top: 34px;
}

.art-page .shell {
  padding-top: 34px;
}

.home-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 128px));
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  align-items: end;
  border-color: rgba(241, 209, 138, 0.28);
  background:
    linear-gradient(135deg, rgba(8, 7, 6, 0.88), rgba(8, 7, 6, 0.62)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(241, 209, 138, 0.18);
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  max-width: 950px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), 0 0 34px rgba(0, 0, 0, 0.65);
}

.home-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.7vw, 20px);
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.platform-row span {
  border: 1px solid rgba(241, 209, 138, 0.24);
  background: rgba(8, 7, 6, 0.55);
  color: rgba(255, 255, 255, 0.86);
  padding: 8px 10px;
  font-family: var(--font-display);
  font-size: 14px;
}

.server-address {
  display: inline-grid;
  gap: 4px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(4, 18, 12, 0.74);
}

.server-address span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-address strong {
  color: var(--ok);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.world-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 360px;
  padding: 18px;
  border: 1px solid rgba(241, 209, 138, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.05), rgba(8, 7, 6, 0.78)),
    url("./images/war-riders-voxel-bg.png") 66% center / cover no-repeat;
}

.world-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.world-card-top {
  color: var(--accent2);
  font-family: var(--font-display);
  font-size: 18px;
}

.world-card-title {
  max-width: 9ch;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.92;
}

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

.world-card-grid span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  position: relative;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: stretch;
  border-color: rgba(241, 209, 138, 0.24);
  background:
    linear-gradient(135deg, rgba(8, 7, 6, 0.9), rgba(8, 7, 6, 0.62)),
    rgba(255, 255, 255, 0.035);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(241, 209, 138, 0.16);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.42), 0 0 28px rgba(0, 0, 0, 0.55);
}

.page-hero .hero-art {
  min-height: 330px;
  border-color: rgba(241, 209, 138, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.page-hero .hero-art img {
  opacity: 0.86;
}

.art-page .wiki-section,
.art-page .item-card,
.art-page .store-step,
.art-page .tile,
.art-page .feature-strip,
.art-page .wiki-toc {
  background: rgba(8, 7, 6, 0.62);
  backdrop-filter: blur(6px);
  border-color: rgba(241, 209, 138, 0.14);
}

.art-page .command-row,
.art-page .wiki-card,
.art-page .price-box,
.art-page .ctl,
.art-page .store-controls .ctl {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
  .home-hero,
  .page-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero h1,
  .page-hero h1 {
    max-width: 760px;
    font-size: clamp(36px, 8vw, 56px);
  }

  .world-card,
  .page-hero .hero-art {
    min-height: 280px;
    background-position: center 38%;
  }
}
.hero-card p {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 70ch;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
}

.stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.stat {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.stat strong {
  color: var(--text);
  font-size: 13px;
}

.hero-art {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: hidden;
}
.hero-art.image-missing::after {
  content: "War Riders";
  color: rgba(255,255,255,0.72);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.05em;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  opacity: 0.95;
}

.section {
  margin-top: 22px;
}
.section h2 {
  font-size: 14px;
  margin: 0 0 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.tile:hover {
  border-color: rgba(215, 178, 90, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.tile .left {
  display: grid;
  gap: 4px;
}
.tile .cmd {
  color: var(--accent2);
  font-weight: 700;
  font-size: 16px;
}
.feature-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 6px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.035);
}
.join-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.join-step {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}
.join-step .num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 178, 90, 0.28);
  border-radius: 3px;
  color: var(--accent2);
  font-weight: 900;
  margin-bottom: 12px;
}
.join-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.join-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.feature-strip h2 {
  margin: 12px 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.04em;
}
.feature-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* --- Store bits (shared) --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 6px 10px;
  border-radius: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.pill.good { color: rgba(255,255,255,0.92); border-color: rgba(74, 222, 128, 0.25); background: rgba(74, 222, 128, 0.09); }
.pill.warn { color: rgba(255,255,255,0.92); border-color: rgba(251, 191, 36, 0.25); background: rgba(251, 191, 36, 0.09); }

.item-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}
.item-card:hover {
  border-color: rgba(215, 178, 90, 0.34);
  background: rgba(255, 255, 255, 0.05);
}
.item-header {
  display: grid;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.item-icon {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.item-icon.image-missing {
  display: grid;
  place-items: center;
}
.item-icon.image-missing::after {
  content: "Cosmetic";
  color: var(--accent2);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.item-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: brightness(1.16) saturate(1.08);
  image-rendering: auto;
}
.item-info {
  display: grid;
  gap: 4px;
}
.item-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.item-card-body {
  display: grid;
  align-content: start;
  gap: 12px;
}
.item-price-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.item-category,
.price-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-value {
  color: var(--accent2);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.coin-value {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.item-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.delivery-note {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.055);
}
.delivery-note strong {
  color: var(--ok);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.delivery-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.item-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(760px, 100%);
  border: 1px solid var(--border);
  background: rgba(18, 14, 10, 0.96);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}
.modal .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.modal .bd { padding: 20px; }
.modal .ft {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.icon-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  font-weight: 800;
}
.icon-btn:hover { border-color: var(--border2); background: rgba(255,255,255,0.05); }
.tile .desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.tile .chev {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.store-message,
.coin-message {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(74, 222, 128, 0.22);
  background: rgba(4, 18, 12, 0.74);
  padding: 18px;
}

.store-message strong,
.coin-message strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.store-message p,
.coin-message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.store-message-actions,
.coin-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: start;
  border: 1px solid rgba(241, 209, 138, 0.14);
  background: rgba(250, 246, 236, 0.93);
  color: #17130f;
  padding: 18px;
}

.product-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.product-main-image img,
.product-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-main-image {
  min-height: clamp(420px, 54vw, 660px);
  background: #e8e2d7;
  overflow: hidden;
}

.product-main-image img {
  object-position: center 58%;
}

.product-buy-box {
  display: grid;
  gap: 16px;
  padding: 8px 0;
}

.product-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #7b5035;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.product-buy-box h1 {
  margin: 0;
  color: #17130f;
  font: 900 clamp(26px, 3.4vw, 44px) / 1.02 var(--font-sans);
  letter-spacing: -0.04em;
}

.product-price-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 16px;
}

.product-price-line strong {
  color: #9a2f20;
  font-size: 22px;
}

.product-old-price {
  color: rgba(23, 19, 15, 0.48);
  text-decoration: line-through;
}

.product-field {
  display: grid;
  gap: 8px;
}

.product-field > span {
  color: rgba(23, 19, 15, 0.7);
  font-size: 12px;
  font-weight: 900;
}

.product-field > strong {
  color: #17130f;
  font-size: 13px;
}

.product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-option {
  min-width: 52px;
  padding: 9px 11px;
  text-align: center;
  border: 1px solid rgba(23, 19, 15, 0.22);
  color: #17130f;
  font-size: 12px;
  font-weight: 900;
}

.product-option.active {
  border-color: #17130f;
  background: rgba(23, 19, 15, 0.06);
}

.product-description,
.product-delivery,
.product-coin-price {
  margin: 0;
  color: rgba(23, 19, 15, 0.72);
  line-height: 1.55;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.6fr;
  gap: 10px;
}

.cart-count {
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(241, 209, 138, 0.34);
  background: rgba(215, 178, 90, 0.18);
  color: var(--text);
  font-size: 11px;
  line-height: 1;
  font-family: var(--font-sans);
}

a[href$="cart.html"] {
  position: relative;
}

a[href$="cart.html"]::before {
  content: "";
  width: 17px;
  height: 12px;
  display: inline-block;
  margin-right: 7px;
  border: 2px solid currentColor;
  border-top-width: 3px;
  border-radius: 3px;
  transform: translateY(1px);
  opacity: 0.9;
}

a[href$="cart.html"]::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  top: calc(50% + 8px);
  left: 14px;
  box-shadow: 11px 0 0 currentColor;
  opacity: 0.9;
}

a[href$="cart.html"].cart-pop {
  animation: cartPop 420ms ease;
}

.cart-flyer {
  position: fixed;
  z-index: 900;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(241, 209, 138, 0.72);
  background: rgba(8, 7, 6, 0.92);
  pointer-events: none;
  overflow: hidden;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 520ms ease;
}

.cart-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes cartPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.product-checkout-form {
  display: grid;
  gap: 10px;
}

.product-checkout-form label {
  color: rgba(23, 19, 15, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.product-checkout-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(23, 19, 15, 0.22);
  background: rgba(255, 255, 255, 0.56);
  color: #17130f;
  padding: 11px 12px;
  font: inherit;
  outline: none;
}

.product-checkout-form input:focus {
  border-color: #7b5035;
}

.product-checkout-status {
  color: rgba(23, 19, 15, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.product-actions .btn {
  min-height: 44px;
  color: #17130f;
  border-color: rgba(23, 19, 15, 0.2);
  background: rgba(23, 19, 15, 0.04);
}

.product-actions .btn.primary {
  color: #fff;
  border-color: #7f3f2c;
  background: #a84f38;
}

.product-feature-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 18px;
}

.product-feature {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  color: var(--text);
}

.product-feature-image,
.product-feature-mark {
  width: 78px;
  height: 78px;
  border: 3px solid rgba(241, 209, 138, 0.45);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.product-feature-mark {
  display: grid;
  place-items: center;
  color: var(--accent2);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
}

.product-feature strong {
  font-size: 12px;
  font-weight: 900;
}

.product-feature span {
  max-width: 18ch;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.detail-section-grid,
.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.detail-section,
.coin-card {
  border: 1px solid rgba(241, 209, 138, 0.14);
  background: rgba(8, 7, 6, 0.62);
  padding: 18px;
}

.detail-section h2,
.coin-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
}

.coin-card .coin-amount {
  color: var(--accent2);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.coin-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  border: 1px solid rgba(241, 209, 138, 0.14);
}

.coin-card p,
.detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.coin-card .actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.coin-checkout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: end;
  border: 1px solid rgba(241, 209, 138, 0.16);
  background: rgba(8, 7, 6, 0.68);
  padding: 18px;
  margin-bottom: 16px;
}

.coin-checkout strong,
.coin-checkout span {
  display: block;
}

.coin-checkout strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
}

.coin-checkout span {
  color: var(--muted);
  margin-top: 4px;
}

.coin-checkout-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.coin-checkout-form label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.coin-checkout-form input {
  min-height: 42px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  outline: none;
}

.coin-checkout-form input:focus {
  border-color: rgba(241, 209, 138, 0.44);
}

.coin-checkout-form .store-note {
  grid-column: 1 / -1;
  margin: 0;
}

[data-coin-buy].active {
  border-color: rgba(241, 209, 138, 0.55);
  background: rgba(215, 178, 90, 0.26);
}

.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.pay-list,
.pay-summary {
  border: 1px solid rgba(241, 209, 138, 0.14);
  background: rgba(8, 7, 6, 0.68);
  padding: 18px;
}

.pay-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.pay-list-head strong,
.pay-summary > strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.pay-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-item img {
  width: 86px;
  height: 64px;
  object-fit: cover;
  border: 1px solid rgba(241, 209, 138, 0.16);
}

.pay-item strong,
.pay-item span,
.pay-item-price strong,
.pay-item-price span {
  display: block;
}

.pay-item span,
.pay-item-price span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pay-item-price {
  text-align: right;
}

.link-button {
  margin-top: 7px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent2);
  font: 800 12px/1 var(--font-sans);
  cursor: pointer;
}

.pay-total {
  color: var(--accent2);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  margin: 10px 0 14px;
}

/* Make legacy "glass" bits calmer */
.glass,
.glass-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

