/* LuxMC website. One stylesheet for every page. */

:root {
  --sky-top: #7fb9e6;
  --sky: #b9dcf3;
  --page: #e7f3fb;
  --page-deep: #d8eaf6;
  --card: #ffffff;
  --line: #d3e2ee;
  --line-strong: #bcd0e0;
  --ink: #1b1534;
  --ink-soft: #3f3a5c;
  --muted: #69658a;
  --purple-950: #140d33;
  --purple-900: #1d1447;
  --purple-800: #281b62;
  --purple-700: #35248a;
  --purple-600: #4631b0;
  --purple-200: #d9d1fa;
  --purple-100: #eeeafd;
  --gold: #ffc531;
  --gold-hi: #ffe08a;
  --gold-deep: #e39a00;
  --gold-ink: #5e3a00;
  --jade: #1fc985;
  --jade-deep: #0c8a58;
  --jade-ink: #04442b;
  --red: #e5484d;
  --stone: #1a1820;
  --tier-common: #9aa3ad;
  --tier-uncommon: #4cbf56;
  --tier-rare: #3a9dff;
  --tier-legendary: #ffa21f;
  --tier-lux: #b65cff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(27, 21, 52, 0.05), 0 10px 28px rgba(27, 21, 52, 0.08);
  --shadow-lift: 0 2px 0 rgba(27, 21, 52, 0.06), 0 18px 40px rgba(27, 21, 52, 0.14);
  --font-display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-pixel: "Silkscreen", "Courier New", monospace;
  --wrap: 1140px;
  --gutter: 24px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--purple-700);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple-600);
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Hidden stays hidden, even on elements whose class sets a display (the join tabs' steps, the
   preview chips). */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--purple-600);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ header */

/* On a phone with a notch, the band above the header is painted like the header. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: #fff;
}

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: none;
}

.logo svg {
  width: 30px;
  height: 24px;
}

.logo-word {
  font: 400 26px/1 var(--font-display);
  color: var(--gold);
  -webkit-text-stroke: 1.5px var(--gold-ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--gold-ink);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a,
.nav button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-soft);
  font: 600 14.5px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav a:hover,
.nav button:hover {
  background: var(--page);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--gold);
  border-radius: 8px 8px 0 0;
}

.nav .nav-vaults {
  color: var(--jade-deep);
}

.nav .nav-vaults::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--jade);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(31, 201, 133, 0.22);
}

.has-menu {
  position: relative;
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  display: none;
}

.has-menu.open .menu {
  display: block;
}

.menu a {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  height: auto;
  padding: 9px 10px;
  border-radius: 10px;
  white-space: normal;
}

.menu a .menu-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--page);
  display: grid;
  place-items: center;
}

.menu a strong {
  font-size: 14.5px;
  color: var(--ink);
}

.menu a span:last-child {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 13px/1 var(--font-body);
  color: var(--ink-soft);
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(70, 49, 176, 0.18);
}

.status-pill.online::before {
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(31, 201, 133, 0.22);
}

.menu-toggle {
  display: none;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: var(--card);
  --btn-ink: var(--ink);
  --btn-edge: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 2px solid var(--btn-edge);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 700 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--btn-edge);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  white-space: nowrap;
}

.btn:hover {
  color: var(--btn-ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--btn-edge);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--btn-edge);
}

.btn-gold {
  --btn-bg: var(--gold);
  --btn-ink: var(--gold-ink);
  --btn-edge: var(--gold-deep);
}

.btn-purple {
  --btn-bg: var(--purple-700);
  --btn-ink: #fff;
  --btn-edge: var(--purple-900);
}

.btn-jade {
  --btn-bg: var(--jade);
  --btn-ink: var(--jade-ink);
  --btn-edge: var(--jade-deep);
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn svg {
  width: 16px;
  height: 16px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 72%, var(--page) 100%);
  padding: 34px 0 92px;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.crumbs {
  display: flex;
  gap: 8px;
  font: 600 13px/1 var(--font-body);
  color: rgba(27, 21, 52, 0.62);
  margin-bottom: 20px;
}

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

.crumbs a:hover {
  color: var(--ink);
}

.crumbs span[aria-current] {
  color: var(--ink);
}

.page-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.page-title .tile {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid rgba(27, 21, 52, 0.12);
  box-shadow: 0 4px 0 rgba(27, 21, 52, 0.12);
  display: grid;
  place-items: center;
  margin-top: 8px;
}

.page-title .tile svg {
  width: 44px;
  height: 44px;
}

.page-title p {
  margin-top: 12px;
  max-width: 640px;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-note {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* What a board says while it has nothing to show yet, such as before a season opens. */
.empty-note {
  grid-column: 1 / -1;
  padding: 28px 16px;
  text-align: center;
  font-size: 15px;
  opacity: 0.8;
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(27, 21, 52, 0.1);
  border-radius: 999px;
  font: 600 12.5px/1 var(--font-body);
  color: var(--ink-soft);
}

.preview-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-600);
}

.sun {
  position: absolute;
  top: 26px;
  right: max(24px, calc(50% - 560px));
  width: 54px;
  height: 54px;
  background: #fff3a6;
  box-shadow: 0 0 0 8px rgba(255, 243, 166, 0.45), 0 0 0 16px rgba(255, 243, 166, 0.18);
  z-index: 1;
}

.cloud {
  position: absolute;
  z-index: 1;
  opacity: 0.95;
  animation: drift 70s linear infinite;
}

.cloud.c2 {
  animation-duration: 95s;
  animation-delay: -30s;
  opacity: 0.8;
}

.cloud.c3 {
  animation-duration: 120s;
  animation-delay: -70s;
  opacity: 0.7;
}

@keyframes drift {
  from {
    transform: translateX(-30vw);
  }
  to {
    transform: translateX(130vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud {
    animation: none;
  }
}

/* The blocky cloud line along the bottom of a hero or a band. */
.edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 3;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 160px 40px;
}

.edge-bottom {
  bottom: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffffff' fill-opacity='.55' d='M0 16h16v-8h24v8h16v-8h24v8h32v-8h16v8h32v24H0z'/%3E%3Cpath fill='%23e7f3fb' d='M0 26h24v-8h24v8h16v-8h32v8h8v-8h24v8h32v14H0z'/%3E%3C/svg%3E");
}

.band-purple .edge-top {
  top: -1px;
  transform: scaleY(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' shape-rendering='crispEdges'%3E%3Cpath fill='%23e7f3fb' d='M0 26h24v-8h24v8h16v-8h32v8h8v-8h24v8h32v14H0z'/%3E%3C/svg%3E");
}

.band-purple .edge-bottom {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' shape-rendering='crispEdges'%3E%3Cpath fill='%23e7f3fb' d='M0 26h24v-8h24v8h16v-8h32v8h8v-8h24v8h32v14H0z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ sections */

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 36px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-head p {
  margin-top: 10px;
  color: var(--ink-soft);
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font: 700 12.5px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-600);
}

.band-purple {
  position: relative;
  background: radial-gradient(1200px 500px at 20% 0%, #3d2a9c 0%, transparent 60%),
    linear-gradient(180deg, var(--purple-800), var(--purple-900));
  color: #fff;
  padding: 96px 0;
}

.band-purple .eyebrow {
  color: var(--gold);
}

.band-purple p {
  color: rgba(255, 255, 255, 0.78);
}

.band-purple h2,
.band-purple h3 {
  color: #fff;
}

.band-dark {
  background: linear-gradient(180deg, var(--purple-900), var(--purple-950));
  color: #fff;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: 22px;
}

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

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

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

.muted {
  color: var(--muted);
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ home */

.home-hero {
  padding: 56px 0 120px;
}

.home-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.home-hero h1 {
  font-size: clamp(46px, 7vw, 84px);
  color: var(--ink);
}

.home-hero h1 .gold {
  color: var(--gold);
  -webkit-text-stroke: 2px var(--gold-ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--gold-ink);
}

.home-hero .lede {
  margin-top: 18px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
}

.cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.countdown {
  margin-top: 26px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(27, 21, 52, 0.1);
  font: 600 14px/1.2 var(--font-body);
  color: var(--ink-soft);
}

.countdown b {
  font: 400 22px/1 var(--font-display);
  color: var(--ink);
}

.vault-showcase {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2c1f6e, #1b1347);
  border: 3px solid #120b33;
  box-shadow: 0 8px 0 #120b33, 0 30px 60px rgba(20, 13, 51, 0.35);
  color: #fff;
}

.vault-showcase header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vault-showcase header strong {
  font: 400 22px/1 var(--font-display);
}

.vault-showcase .total {
  font: 700 13px/1 var(--font-body);
  color: var(--gold);
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 18px 22px;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  color: inherit;
}

.mode-card .art {
  width: 132px;
  height: 132px;
  margin-bottom: 6px;
}

.mode-card h3 {
  font-size: 30px;
}

.mode-card .kind {
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-600);
}

.mode-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font: 700 11.5px/1 var(--font-body);
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--page);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.badge-live {
  background: #dcf7ea;
  color: var(--jade-ink);
  border-color: #a6e9c9;
}

.badge-soon {
  background: var(--purple-100);
  color: var(--purple-700);
  border-color: var(--purple-200);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.pillar {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pillar h3 {
  font-size: 20px;
  margin: 12px 0 6px;
}

.pillar p {
  font-size: 14.5px;
}

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

.step .n {
  font: 400 40px/1 var(--font-display);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step .n::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--line-strong);
}

.mc-screen {
  height: 120px;
  border-radius: 10px;
  background: #2a2a30;
  border: 3px solid #121216;
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: center;
}

.mc-btn {
  height: 26px;
  border: 2px solid #111;
  background: #6f6f76;
  box-shadow: inset 0 2px 0 #9a9aa2, inset 0 -2px 0 #4b4b52;
  color: #e9e9e9;
  font: 400 12px/22px var(--font-pixel);
  text-align: center;
}

.mc-btn.on {
  outline: 2px solid #fff;
}

.mc-field {
  height: 28px;
  border: 2px solid #a0a0a0;
  background: #000;
  color: #e0e0e0;
  font: 400 12px/24px var(--font-pixel);
  padding: 0 8px;
}

.step p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tabs button,
.tabs a {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  font: 700 14px/34px var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.tabs button[aria-selected="true"],
.tabs a[aria-current="page"] {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: inset 0 -2px 0 var(--gold-deep);
}

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

.chips button {
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font: 600 13.5px/1 var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chips button .count {
  font-size: 12px;
  color: var(--muted);
}

.chips button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chips button[aria-pressed="true"] .count {
  color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------------ tables */

.table-card {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

table.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

table.board th {
  text-align: left;
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f6fafd;
  white-space: nowrap;
}

table.board td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.board tr:last-child td {
  border-bottom: 0;
}

table.board tbody tr {
  transition: background 0.1s ease;
}

table.board tbody tr:hover {
  background: #f7fbfe;
}

table.board .right {
  text-align: right;
}

.pos {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font: 400 16px/1 var(--font-display);
  background: var(--page);
  color: var(--ink-soft);
}

.pos-1 {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: inset 0 -3px 0 var(--gold-deep);
}

.pos-2 {
  background: #e3e8ee;
  color: #3c4553;
  box-shadow: inset 0 -3px 0 #b6c0cc;
}

.pos-3 {
  background: #f4d6b8;
  color: #6a3a10;
  box-shadow: inset 0 -3px 0 #d39a63;
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.who:hover {
  color: var(--purple-600);
}

.who-cell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.head {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 2px rgba(27, 21, 52, 0.08);
  flex: none;
}

.rank {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rank-king { background: #fff2c2; color: #7a5600; }
.rank-imperial { background: #ffe0e0; color: #8f1c22; }
.rank-emperor { background: #ffe7c7; color: #8a4300; }
.rank-dominion { background: #e0f0ff; color: #11508f; }
.rank-angelic { background: #f1f7ff; color: #2c5f9e; border: 1px solid #c9dcf5; }
.rank-deity { background: #efe3ff; color: #5a1d9e; }
.rank-divine { background: linear-gradient(90deg, #ffe58a, #c9ffe4); color: #3f3200; }

.value {
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.value .gem {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  background: var(--jade);
  transform: rotate(45deg);
  border-radius: 2px;
  vertical-align: 1px;
  box-shadow: inset -2px -2px 0 var(--jade-deep);
}

.search {
  display: flex;
  gap: 8px;
}

.search input {
  height: 42px;
  width: min(280px, 60vw);
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font: 500 15px/1 var(--font-body);
  color: var(--ink);
}

.search input:focus {
  outline: 3px solid var(--purple-200);
  border-color: var(--purple-600);
}

/* ------------------------------------------------------------------ items */

.slot {
  position: relative;
  aspect-ratio: 1;
  background: #8b8b8b;
  box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #ffffff;
  display: grid;
  place-items: center;
}

.slot svg {
  width: 72%;
  height: 72%;
  image-rendering: pixelated;
}

.slot.empty {
  opacity: 0.9;
}

.slot.mini {
  width: 34px;
  flex: none;
}

.slot.jaded::after,
.slot.gold::after {
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
}

.slot.jaded::after {
  box-shadow: inset 0 0 12px rgba(31, 201, 133, 0.85);
  animation: shimmer 2.6s ease-in-out infinite;
}

.slot.gold::after {
  box-shadow: inset 0 0 10px rgba(255, 197, 49, 0.7);
}

@keyframes shimmer {
  50% {
    box-shadow: inset 0 0 18px rgba(31, 201, 133, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slot.jaded::after {
    animation: none;
  }
}

.slot .serial {
  position: absolute;
  right: 3px;
  bottom: 2px;
  font: 400 10px/1 var(--font-pixel);
  color: #fff;
  text-shadow: 1px 1px 0 #3f3f3f;
}

.chest {
  background: #c6c6c6;
  border: 3px solid #fff;
  border-right-color: #555;
  border-bottom-color: #555;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 0 0 3px #000, 0 12px 30px rgba(0, 0, 0, 0.25);
}

.chest-title {
  font: 400 15px/1 var(--font-pixel);
  color: #3f3f3f;
  margin: 0 0 10px 2px;
}

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

.vault-showcase .chest-grid {
  gap: 3px;
}

.vault-showcase .slot {
  background: #3b2d7d;
  box-shadow: inset 2px 2px 0 #1a1146, inset -2px -2px 0 #5a47b8;
}

.item-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  text-align: left;
}

.item-card .slot {
  width: 56px;
}

.item-card h3 {
  font: 700 15px/1.25 var(--font-body);
}

.item-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tier {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.tier-common { background: var(--tier-common); }
.tier-uncommon { background: var(--tier-uncommon); }
.tier-rare { background: var(--tier-rare); }
.tier-legendary { background: var(--tier-legendary); color: #3a2000; }
.tier-lux { background: linear-gradient(90deg, var(--tier-lux), #ff5ec4); }

.version {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fff;
}

.version-gold { background: #fff3c9; border-color: #f1d36c; color: #6b4a00; }
.version-jaded { background: #d9f8ea; border-color: #8fe3bf; color: var(--jade-ink); }
.version-pet { background: var(--purple-100); border-color: var(--purple-200); color: var(--purple-700); }

.copies {
  display: grid;
  gap: 5px;
  min-width: 120px;
}

.copies .bar {
  height: 7px;
  border-radius: 99px;
  background: #e6eef5;
  overflow: hidden;
}

.copies .bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple-600), var(--tier-lux));
}

.copies small {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Minecraft-style tooltip */
.mc-tip {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  min-width: 180px;
  max-width: 280px;
  padding: 8px 10px 9px;
  background: rgba(16, 2, 16, 0.95);
  border: 2px solid #25015b;
  box-shadow: 0 0 0 2px rgba(16, 2, 16, 0.95), 0 12px 28px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  font: 400 13px/1.45 var(--font-pixel);
  color: #aaa;
  display: none;
}

.mc-tip .t-name {
  color: #fff;
  font-size: 14px;
}

.mc-tip .t-lux { color: #ff7cf0; }
.mc-tip .t-legendary { color: #ffaa00; }
.mc-tip .t-rare { color: #55c4ff; }
.mc-tip .t-uncommon { color: #55ff55; }
.mc-tip .t-common { color: #e0e0e0; }
.mc-tip .t-jade { color: #3df5a6; }
.mc-tip .t-gold { color: #ffd84a; }

/* ------------------------------------------------------------------ podium */

.podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 18px;
  align-items: end;
}

.podium .place {
  position: relative;
  padding: 22px 18px 20px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, background 0.15s ease;
}

.podium .place:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.podium .place.first {
  padding-top: 30px;
  background: linear-gradient(180deg, rgba(255, 197, 49, 0.22), rgba(255, 197, 49, 0.06));
  border-color: rgba(255, 197, 49, 0.45);
}

.podium .crown {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 32px;
}

.podium .head {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin: 0 auto 10px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.podium .place.first .head {
  width: 80px;
  height: 80px;
}

.podium .pname {
  font: 400 22px/1.1 var(--font-display);
}

.podium .pval {
  margin-top: 6px;
  font: 800 20px/1 var(--font-body);
  color: var(--gold);
}

.podium .pbest {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.podium .pbest .slot {
  width: 34px;
  background: #3b2d7d;
  box-shadow: inset 2px 2px 0 #1a1146, inset -2px -2px 0 #5a47b8;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 18px 20px;
}

.stat b {
  display: block;
  font: 400 30px/1.05 var(--font-display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.band-purple .stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.band-purple .stat b {
  color: var(--gold);
}

.band-purple .stat span {
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------------ player */

.player-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.player-hero .head {
  width: 104px;
  height: 104px;
  border-radius: 18px;
  border: 4px solid #fff;
  box-shadow: 0 6px 0 rgba(27, 21, 52, 0.18);
}

.player-hero .tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.player-value {
  text-align: right;
}

.player-value b {
  display: block;
  font: 400 44px/1 var(--font-display);
  color: var(--ink);
}

.player-value span {
  font: 700 13px/1 var(--font-body);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vault-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.list-rows {
  display: grid;
}

.list-rows .row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.list-rows .row:last-child {
  border-bottom: 0;
}

.list-rows .row .slot {
  width: 40px;
}

.list-rows .row strong {
  display: block;
  font-size: 14px;
}

.list-rows .row small {
  color: var(--muted);
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ packs */

.pack-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.pack-card .pack-top {
  padding: 22px 22px 18px;
  color: #fff;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pack-card .pack-top h3 {
  font-size: 30px;
}

.pack-card .pack-body {
  padding: 18px 22px 22px;
}

.pack-card .pack-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

.pack-daily .pack-top { background: linear-gradient(135deg, #2fa66a, #1d7a4c); }
.pack-prime .pack-top { background: linear-gradient(135deg, #3aa0e8, #2463b8); }
.pack-holiday .pack-top { background: linear-gradient(135deg, #ff8a2b, #c2410c); }
.pack-luxury .pack-top { background: linear-gradient(135deg, #f8c33a, #b07a00); }

.set-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.set-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px 0 6px;
  border-radius: 8px;
  background: var(--page);
  border: 1px solid var(--line);
  font: 700 13px/1 var(--font-body);
  color: var(--ink);
}

.set-chip i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.past-pack {
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.past-pack .cover {
  position: relative;
  padding: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.past-pack .cover .season {
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.past-pack .cover h3 {
  font-size: 34px;
  margin-top: 8px;
}

.past-pack .cover .retired {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 16px;
  height: 26px;
  padding: 0 10px;
  align-items: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  font: 700 12px/1 var(--font-body);
}

.past-pack .contents {
  padding: 20px 22px;
}

.past-pack .contents .strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 3px;
  margin-top: 12px;
}

.past-pack .contents .strip .slot {
  width: 100%;
}

.archive-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
}

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

.bedrock {
  position: relative;
  background-color: var(--stone);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' shape-rendering='crispEdges'%3E%3Cpath fill='%23242130' d='M0 0h16v16H0zM32 16h16v16H32zM16 32h16v16H16zM48 48h16v16H48z'/%3E%3Cpath fill='%23131118' d='M16 0h8v8h-8zM48 8h8v8h-8zM0 40h8v8H0zM40 40h8v8h-8zM24 56h8v8h-8z'/%3E%3C/svg%3E");
  background-size: 64px 64px;
  color: #fff;
  padding: 72px 0 40px;
}

.bedrock .wrap > .top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bedrock h2 {
  font-size: clamp(36px, 5vw, 58px);
}

.bedrock p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
}

.footer-links h4 {
  margin: 0 0 12px;
  font: 700 12.5px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}

.footer-links a:hover {
  color: var(--gold);
}

.fine {
  margin-top: 36px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 120;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  width: 260px;
  padding: 10px 12px;
  background: #212121;
  border: 2px solid #000;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #555, 0 14px 30px rgba(0, 0, 0, 0.35);
  font: 400 13px/1.35 var(--font-pixel);
  color: #fff;
  transform: translateX(140%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.toast.show {
  transform: none;
}

.toast b {
  display: block;
  color: #ffff55;
  font-weight: 400;
}

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

@media (max-width: 1060px) {
  .nav a,
  .nav button {
    padding: 0 7px;
    font-size: 14px;
  }

  .status-pill {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 16px;
  }

  .site-header .wrap {
    height: 58px;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: #fff;
    cursor: pointer;
  }

  .nav-wrap {
    position: fixed;
    inset: 58px 0 auto 0;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: 10px var(--gutter) 18px;
    display: none;
  }

  .nav-open .nav-wrap {
    display: block;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a,
  .nav button {
    height: 44px;
    font-size: 16px;
  }

  .nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--gold);
    border-radius: 0 8px 8px 0;
  }

  .menu {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 10px;
  }

  .has-menu > button {
    display: none;
  }

  .header-actions .btn-copy span {
    display: none;
  }

  .home-hero .wrap,
  .vault-layout,
  .past-pack {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .pillars,
  .steps,
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .player-hero {
    grid-template-columns: auto 1fr;
  }

  .player-value {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding: 22px 0 76px;
  }

  .page-title {
    grid-template-columns: 1fr;
  }

  .page-title .tile {
    width: 56px;
    height: 56px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .pillars,
  .steps {
    grid-template-columns: 1fr;
  }

  .podium {
    grid-template-columns: 1fr;
  }

  .podium .place.first {
    order: -1;
  }

  .section {
    padding: 48px 0;
  }

  .band-purple {
    padding: 72px 0;
  }

  table.board th,
  table.board td {
    padding: 10px 10px;
  }

  .hide-sm {
    display: none;
  }

  .chest {
    padding: 8px;
  }

  .player-hero .head {
    width: 76px;
    height: 76px;
  }
}
