@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap");

/* ============================================================
   HFi Shop — TEK HUD edition · ARK: Survival Ascended theme.
   Obsidian gunmetal surfaces, Element-cyan energy, condensed
   industrial type, HUD corner-brackets + chamfered controls.
   Token NAMES are preserved so existing markup adapts in place.
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #0b0f16;
  --bg-deep: #05070c;
  --bg-tint: #121a26;
  --surface: #141d2a;
  --surface-2: #0e1722;
  --surface-3: #1b2735;
  --line: rgba(118, 178, 228, 0.12);
  --line-strong: rgba(120, 190, 240, 0.26);
  --edge-hi: rgba(150, 212, 255, 0.22);
  --edge-lo: rgba(0, 0, 0, 0.55);
  --ink: #eaf4ff;
  --ink-2: rgba(198, 216, 238, 0.74);
  --ink-3: rgba(152, 178, 208, 0.5);
  --primary: #35e0ff;
  --primary-soft: #06303e;
  --primary-deep: #15b9dc;
  --tek: #35e0ff;
  --tek-soft: #06303e;
  --tek-deep: #15b9dc;
  --mint: #84ff57;
  --mint-soft: #102b16;
  --mint-deep: #4fd12c;
  --sun: #ffb347;
  --sun-soft: #34240b;
  --sun-deep: #f2920e;
  --sky: #5bc8ff;
  --sky-soft: #082a40;
  --sky-deep: #1e9be0;
  --coral: #ff7a4d;
  --coral-soft: #351406;
  --coral-deep: #e8481c;
  --pink: #c26bff;
  --pink-soft: #261244;
  --pink-deep: #9a3fe6;
  --violet: #9b7bff;
  --violet-soft: #1c1644;
  --violet-deep: #7c4dff;
  --radius: 4px;
  --radius-sm: 3px;
  --radius-pill: 4px;
  --chamfer: 10px;
  --gx: 0.5;
  --shadow-card: 0 2px 0 rgba(0, 0, 0, 0.5), 0 16px 30px -14px rgba(0, 0, 0, 0.75), inset 0 1px 0 var(--edge-hi);
  --shadow-lift: 0 4px 0 rgba(0, 0, 0, 0.55), 0 30px 56px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 var(--edge-hi);
  --glow-tek: 0 0 22px rgba(53, 224, 255, var(--gx));
  --glow-primary: 0 0 22px rgba(53, 224, 255, var(--gx));
  --glow-sun: 0 0 22px rgba(255, 179, 71, var(--gx));
  --glow-violet: 0 0 22px rgba(155, 123, 255, var(--gx));
  --glow-mint: 0 0 22px rgba(132, 255, 87, var(--gx));
  --focus: #84ff57;
  --display-font: "Oswald", "Rajdhani", system-ui, sans-serif;
  --body-font: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono-font: "Share Tech Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(ellipse at 18% -5%, rgba(53, 224, 255, 0.1), transparent 45%),
    radial-gradient(ellipse at 92% 8%, rgba(124, 77, 255, 0.1), transparent 45%),
    linear-gradient(160deg, #0a0e15 0%, #0c1420 55%, #0a1118 100%);
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 500;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

code {
  padding: 0.1rem 0.35rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(86, 150, 200, 0.05) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(86, 150, 200, 0.05) 31px 32px);
  opacity: 0.9;
}

.site-header,
.page-shell,
.site-footer,
.mobile-tabbar {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
  padding: 0.75rem 2rem;
  background: rgba(8, 13, 20, 0.86);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(18px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.18rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 76px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.25));
}

.brand span {
  color: var(--ink-3);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  min-width: 0;
  margin-left: 0.75rem;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.85rem;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.topnav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.identity-menu {
  position: relative;
  display: inline-flex;
}

.identity-pill {
  appearance: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.identity-pill:hover,
.identity-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(142, 242, 208, 0.42);
}

.identity-pill:hover {
  transform: translateY(-1px);
}

.avatar-dot,
.profile-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  font-family: var(--display-font);
  font-weight: 700;
  overflow: hidden;
}

.avatar-dot {
  width: 34px;
  height: 34px;
  font-size: 0.92rem;
}

.avatar-dot img,
.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.identity-copy {
  display: grid;
  gap: 0.05rem;
}

.identity-copy span {
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 700;
}

.identity-copy strong {
  max-width: 9rem;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-chevron {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.58rem;
  height: 0.58rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease, opacity 150ms ease;
}

.identity-trigger[aria-expanded="true"] .identity-chevron {
  opacity: 1;
  transform: translateY(2px) rotate(225deg);
}

.identity-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 45;
  width: min(17rem, calc(100vw - 2rem));
  padding: 0.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.identity-dropdown[hidden] {
  display: none;
}

.identity-dropdown ul {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.identity-dropdown a {
  display: flex;
  min-height: 42px;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.75rem;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.identity-dropdown a:hover,
.identity-dropdown a:focus-visible {
  background: rgba(142, 242, 208, 0.1);
  color: var(--ink);
}

.identity-menu-label {
  padding: 0.35rem 0.75rem 0.15rem;
  color: var(--ink-3);
  font-family: var(--mono-font);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-menu-separator {
  height: 1px;
  margin: 0.35rem 0.2rem;
  background: var(--line);
}

.page-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4.5rem;
}

.hero,
.page-hero,
.auth-hero,
.wallet-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(120, 190, 240, 0.05), transparent),
    radial-gradient(ellipse at 18% -10%, rgba(53, 224, 255, 0.28), transparent 52%),
    radial-gradient(ellipse at 88% 20%, rgba(124, 77, 255, 0.2), transparent 55%),
    var(--surface-2);
  box-shadow: var(--shadow-lift);
}

.hero::before,
.page-hero::before,
.auth-hero::before,
.wallet-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.75;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 2rem;
  align-items: stretch;
  padding: 2.5rem;
}

.hero-copy,
.hero-showcase,
.page-hero > *,
.auth-card,
.wallet-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.hero-copy > .chip {
  justify-self: start;
}

.hero-copy p,
.page-hero p,
.auth-card p {
  max-width: 42rem;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.04rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.8rem;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-proof strong {
  color: var(--ink);
}

.proof-bubbles {
  display: inline-flex;
  align-items: center;
}

.proof-bubbles span {
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  margin-left: -0.55rem;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
}

.proof-bubbles span:first-child {
  margin-left: 0;
  background: var(--pink);
}

.proof-bubbles span:nth-child(2) {
  background: var(--mint);
}

.proof-bubbles span:nth-child(3) {
  background: var(--sun);
}

.proof-bubbles span:nth-child(4) {
  background: #7dd3fc;
}

.proof-star {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  color: var(--sun);
}

.proof-star::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 36%, 98% 36%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 36%, 39% 36%);
}

.proof-star::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--bg);
  clip-path: polygon(50% 0, 61% 36%, 98% 36%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 36%, 39% 36%);
}

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: stretch;
  gap: 1rem;
}

.showcase-orbit {
  position: relative;
  min-height: 230px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.showcase-orbit img {
  width: min(82%, 280px);
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.92;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.showcase-orbit .shard-icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
}

.hero-status {
  display: grid;
  gap: 0.65rem;
}

.status-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(10, 6, 24, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-row span {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-row strong {
  color: var(--mint);
  font-size: 0.9rem;
  text-align: right;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: 4.15rem;
  line-height: 0.95;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: 1.45rem;
  line-height: 1.12;
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--ink-2);
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--ink-3);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-heading {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.page-heading h1 {
  margin-bottom: 0.75rem;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 250px;
  margin-bottom: 2rem;
  padding: 2.4rem;
}

.page-hero h1 {
  margin: 0.7rem 0 0.8rem;
  font-size: 3.35rem;
}

.page-hero p {
  font-size: 1rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.7rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: start;
}

.admin-review-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.section-gap {
  margin-top: 1rem;
}

.panel,
.stat-card,
.admin-metric-card,
.link-grid a {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.panel {
  min-width: 0;
  padding: 1.25rem;
}

.wide-panel {
  min-width: 0;
}

.text-link {
  color: var(--tek);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18rem;
}

.text-link:hover {
  color: var(--ink);
}

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

.stat-card {
  display: grid;
  gap: 0.25rem;
  min-height: 120px;
  align-content: center;
  padding: 1.25rem;
}

.stat-card strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 2.5rem;
  line-height: 1;
}

.stat-card span {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.admin-metric-card {
  display: grid;
  min-width: 0;
  gap: 0.65rem;
  min-height: 142px;
  align-content: start;
  padding: 1rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.admin-metric-card:hover,
.admin-metric-card:focus-visible {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
}

.admin-metric-card[data-tone="primary"] {
  box-shadow: inset 4px 0 0 var(--primary), var(--shadow-card);
}

.admin-metric-card[data-tone="mint"] {
  box-shadow: inset 4px 0 0 var(--mint), var(--shadow-card);
}

.admin-metric-card[data-tone="sun"] {
  box-shadow: inset 4px 0 0 var(--sun), var(--shadow-card);
}

.admin-metric-card[data-tone="coral"] {
  box-shadow: inset 4px 0 0 var(--coral), var(--shadow-card);
}

.admin-metric-card[data-tone="muted"] {
  box-shadow: inset 4px 0 0 var(--line-strong), var(--shadow-card);
}

.metric-topline,
.admin-route-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.metric-topline {
  justify-content: space-between;
}

.metric-label {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-metric-card strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.85rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.metric-detail {
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.metric-cta {
  align-self: end;
  color: var(--tek);
  font-family: var(--mono-font);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-command-summary .admin-metric-card {
  min-height: 156px;
}

.admin-priority-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.admin-action-panel,
.admin-health-panel,
.admin-recent-panel {
  display: grid;
  gap: 1rem;
}

.admin-action-stack,
.admin-timeline-list {
  display: grid;
  gap: 0.65rem;
}

.admin-action-row,
.admin-timeline-row {
  display: grid;
  min-width: 0;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.admin-action-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 68px;
  padding: 0.8rem;
  background: rgba(10, 6, 24, 0.34);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-action-row .chip {
  justify-self: end;
  white-space: nowrap;
}

.admin-action-row:hover,
.admin-action-row:focus-visible,
.admin-timeline-row:hover,
.admin-timeline-row:focus-visible {
  background: rgba(53, 224, 255, 0.08);
  border-color: rgba(53, 224, 255, 0.42);
  transform: translateY(-1px);
}

.admin-action-row span:first-child {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.admin-action-row strong,
.admin-timeline-row strong,
.admin-watch-card > strong,
.admin-config-item strong {
  color: var(--ink);
}

.admin-action-row small,
.admin-timeline-row small {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.admin-watch-card {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.admin-watch-card .card-topline > * {
  min-width: 0;
}

.admin-watch-card h2,
.compact-card-topline h3 {
  margin: 0;
}

.admin-watch-card h2 {
  font-size: 1.05rem;
}

.admin-watch-card > strong {
  font-family: var(--display-font);
  font-size: 1.85rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.admin-watch-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.admin-timeline-group {
  display: grid;
  gap: 0.65rem;
}

.admin-timeline-group + .admin-timeline-group {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.compact-card-topline {
  gap: 0.5rem;
}

.compact-card-topline h3 {
  font-size: 1rem;
}

.admin-timeline-row {
  gap: 0.2rem;
  padding: 0.75rem;
  background: rgba(10, 6, 24, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-timeline-row span {
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-config-item {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
  padding: 0.85rem;
  background: rgba(10, 6, 24, 0.32);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-config-item span {
  color: var(--ink-3);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-config-item strong {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.link-grid a {
  display: grid;
  min-height: 8rem;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.link-grid a:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
}

.link-grid strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.05rem;
}

.link-grid span:last-child {
  font-size: 0.88rem;
}

.admin-route-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-route-heading {
  justify-content: space-between;
}

.admin-subnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.8rem, 1fr));
  gap: 0.35rem;
  margin: 0.5rem 0 1rem;
  padding: 0.45rem;
  background: rgba(10, 6, 24, 0.32);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-subnav a {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.75rem;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background-color 150ms ease, color 150ms ease;
}

.admin-subnav a:hover,
.admin-subnav a.is-active {
  background: rgba(142, 242, 208, 0.1);
  color: var(--ink);
}

.admin-subnav a.is-active {
  border: 1px solid rgba(142, 242, 208, 0.42);
  box-shadow: inset 0 0 0 1px rgba(142, 242, 208, 0.18);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  margin-top: 1rem;
}

.admin-filter-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(240px, 1fr) auto auto;
  gap: 0.75rem;
  align-items: end;
}

.admin-compact-action {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.form-field {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.form-field span {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.85rem;
  background: rgba(10, 6, 24, 0.42);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
}

.form-field input::placeholder {
  color: var(--ink-3);
}

.form-field textarea {
  resize: vertical;
}

.form-field select {
  cursor: pointer;
  text-transform: capitalize;
}

.field-hint {
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.4;
}

.admin-product-topline {
  align-items: start;
}

.admin-product-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.admin-product-workbench-compact {
  margin-top: 0.85rem;
}

.admin-product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-form-wide {
  grid-column: 1 / -1;
}

.admin-image-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: stretch;
}

.admin-upload-button {
  min-height: 46px;
  cursor: pointer;
}

.admin-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-upload-button[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
}

.field-hint[data-state="success"] {
  color: var(--mint);
}

.field-hint[data-state="error"] {
  color: var(--coral);
}

.admin-product-preview {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(10, 6, 24, 0.32);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-product-preview-media {
  display: grid;
  min-height: 170px;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-product-preview-media img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
}

.admin-product-preview h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
}

.admin-product-preview p {
  margin: 0;
}

.admin-product-preview > strong {
  color: var(--mint);
  font-family: var(--display-font);
  font-size: 1.3rem;
}

.admin-product-notice {
  margin: 1rem 0;
}

.admin-product-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.admin-product-editor {
  padding: 0.85rem;
  background: rgba(10, 6, 24, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-product-editor summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.admin-product-editor summary::-webkit-details-marker {
  display: none;
}

.admin-product-editor summary:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.admin-product-editor summary strong,
.admin-product-editor summary em {
  display: block;
  min-width: 0;
}

.admin-product-editor summary strong {
  color: var(--ink);
}

.admin-product-editor summary em {
  color: var(--ink-3);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .admin-product-workbench,
  .admin-product-editor summary {
    grid-template-columns: 1fr;
  }

  .admin-product-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-image-input-row {
    grid-template-columns: 1fr;
  }

  .admin-upload-button {
    width: 100%;
  }

  .admin-product-preview-media {
    min-height: 150px;
  }
}

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

.admin-summary-item {
  display: grid;
  gap: 0.35rem;
  min-height: 112px;
  align-content: center;
  padding: 1rem;
  background: rgba(10, 6, 24, 0.34);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-summary-item span {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-summary-item strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.85rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.admin-count-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.admin-order-row {
  cursor: pointer;
  transition: background-color 150ms ease, outline-color 150ms ease;
}

.admin-order-row:hover,
.admin-order-row:focus-visible,
.admin-order-row.is-selected {
  background: rgba(142, 242, 208, 0.07);
}

.admin-order-row:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.order-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.order-link:hover {
  color: var(--tek);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18rem;
}

.admin-order-detail-shell {
  border: 1px solid rgba(142, 242, 208, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(142, 242, 208, 0.075), rgba(255, 255, 255, 0.015)),
    var(--surface-2);
  box-shadow: var(--shadow-lift);
}

.admin-order-detail-main {
  padding: 1.25rem;
}

.admin-order-detail-main h2 {
  margin: 0;
  font-size: 1.7rem;
  overflow-wrap: anywhere;
}

.compact-button-row {
  align-items: center;
  margin-top: 0;
}

.admin-embedded-panel {
  background: rgba(10, 6, 24, 0.28);
  box-shadow: none;
}

.admin-player-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1rem 0;
}

.admin-player-block strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.admin-avatar {
  width: 72px;
  height: 72px;
  border-width: 3px;
  font-size: 1.55rem;
}

.admin-detail-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.inline-button-form {
  display: inline-flex;
  margin: 0;
}

.notice-action {
  margin-top: 0.65rem;
}

.center-row {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.72rem 1.05rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, filter 140ms ease;
  white-space: nowrap;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button-primary {
  background: var(--sun);
  box-shadow: 0 4px 0 var(--sun-deep), 0 0 22px rgba(252, 211, 77, 0.15);
  color: #261d08;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-strong);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

.button-danger {
  background: var(--coral);
  box-shadow: 0 4px 0 var(--coral-deep), 0 0 22px rgba(255, 122, 92, 0.13);
  color: #220b06;
}

.button:disabled,
.button-disabled {
  cursor: not-allowed;
  filter: saturate(0.7);
  opacity: 0.62;
}

.button-full {
  width: 100%;
  margin-top: auto;
}

.button-icon,
.section-icon,
.route-icon,
.tier-icon,
.linked-icon,
.tab-glyph {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.button-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.plus-icon::before,
.plus-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.plus-icon::before {
  width: 100%;
  height: 2px;
}

.plus-icon::after {
  width: 2px;
  height: 100%;
}

.cart-icon::before {
  content: "";
  width: 0.9rem;
  height: 0.65rem;
  border: 2px solid currentColor;
  border-top: 0;
  transform: skewX(-10deg);
}

.cart-icon::after {
  content: "";
  position: absolute;
  bottom: -0.12rem;
  width: 0.85rem;
  height: 0.18rem;
  border-left: 0.18rem solid currentColor;
  border-right: 0.18rem solid currentColor;
}

.heart-small-icon::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  background: currentColor;
  clip-path: polygon(50% 88%, 10% 48%, 10% 25%, 30% 14%, 50% 28%, 70% 14%, 90% 25%, 90% 48%);
}

.crown-small-icon::before {
  content: "";
  width: 0.9rem;
  height: 0.8rem;
  background: currentColor;
  clip-path: polygon(0 82%, 100% 82%, 86% 28%, 62% 56%, 50% 10%, 38% 56%, 14% 28%);
}

.chip,
.badge,
.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: capitalize;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
}

.chip-primary,
.badge {
  background: var(--primary-soft);
  border-color: rgba(167, 139, 250, 0.34);
  color: var(--primary);
}

.chip-mint {
  background: var(--mint-soft);
  border-color: rgba(74, 222, 128, 0.32);
  color: var(--mint);
}

.chip-sun,
.status-pill {
  background: var(--sun-soft);
  border-color: rgba(252, 211, 77, 0.34);
  color: var(--sun);
}

.chip-coral {
  background: var(--coral-soft);
  border-color: rgba(255, 122, 92, 0.34);
  color: var(--coral);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shard-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #a7e9ff 0%, #5bb8f7 47%, #6e3fe8 100%);
  clip-path: polygon(50% 0, 92% 38%, 50% 100%, 8% 38%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.26),
    0 0 18px rgba(34, 211, 238, 0.38),
    0 4px 0 rgba(78, 42, 160, 0.68);
}

.shard-icon::before,
.shard-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shard-icon::before {
  background:
    linear-gradient(90deg, transparent 48%, rgba(58, 31, 138, 0.56) 49%, rgba(58, 31, 138, 0.56) 51%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 42%);
}

.shard-icon::after {
  background: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.28) 51%, transparent 69%);
}

.shard-md {
  width: 44px;
  height: 44px;
}

.shard-lg {
  width: 64px;
  height: 64px;
}

.shard-xl {
  width: 96px;
  height: 96px;
}

.float-shard,
.hero-mini-shard,
.hero-main-shard {
  position: absolute;
  z-index: 1;
  animation: bob 3.2s ease-in-out infinite;
}

.home-hero {
  min-height: 600px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  background:
    radial-gradient(ellipse at 28% 0%, rgba(167, 139, 250, 0.32), transparent 54%),
    radial-gradient(ellipse at 78% 40%, rgba(34, 211, 238, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(31, 21, 56, 0.96), rgba(15, 8, 34, 0.98));
}

.home-hero h1 {
  max-width: 14ch;
  font-size: 5rem;
}

.home-hero h1 span {
  display: block;
  background: linear-gradient(110deg, var(--primary) 0%, var(--pink) 54%, var(--coral) 100%);
  color: var(--primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: 430px;
}

.hero-main-shard {
  right: 18%;
  top: 46%;
  transform: translateY(-50%);
}

.hero-main-shard::after {
  filter: drop-shadow(0 0 34px rgba(34, 211, 238, 0.72));
}

.hero-mini-one {
  left: 20%;
  top: 34%;
  animation-delay: 0.4s;
}

.hero-mini-two {
  right: 4%;
  top: 24%;
  animation-delay: 0.9s;
}

.hero-mini-three {
  left: 42%;
  bottom: 18%;
  animation-delay: 1.4s;
}

.hero-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 0;
  height: 140px;
  pointer-events: none;
}

.hero-mountains svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-mountains path:first-child {
  fill: rgba(10, 6, 24, 0.78);
}

.hero-mountains path:last-child {
  fill: none;
  stroke: rgba(34, 211, 238, 0.22);
  stroke-width: 2;
}

.compact-mountains {
  height: 96px;
  opacity: 0.74;
}

.hero-squiggle {
  position: absolute;
  z-index: 1;
  top: 2rem;
  right: 2rem;
  width: 150px;
  height: 70px;
  pointer-events: none;
  opacity: 0.58;
}

.hero-squiggle path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 4;
}

.hero-squiggle path:first-child {
  stroke: var(--primary);
}

.hero-squiggle path:last-child {
  stroke: var(--tek);
}

.page-squiggle {
  top: 1.25rem;
  right: 1.25rem;
  width: 120px;
}

.hero-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.home-shop-hero {
  min-height: 520px;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(34, 211, 238, 0.2), transparent 54%),
    radial-gradient(ellipse at 86% 32%, rgba(74, 222, 128, 0.14), transparent 56%),
    linear-gradient(150deg, rgba(23, 16, 48, 0.98), rgba(15, 8, 34, 0.96) 54%, rgba(13, 31, 48, 0.94));
}

.home-shop-hero h1 {
  max-width: 9ch;
  font-size: 5rem;
}

.home-shop-hero .hero-proof {
  max-width: 48rem;
}

.home-visual {
  position: relative;
  z-index: 1;
  min-height: 420px;
}

.home-visual-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(10, 6, 24, 0.34);
  box-shadow: 0 24px 54px -28px rgba(0, 0, 0, 0.8);
}

.home-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(5, 7, 13, 0.18)),
    linear-gradient(135deg, transparent 62%, rgba(34, 211, 238, 0.18));
}

.home-visual-main {
  left: 0;
  right: 15%;
  top: 2rem;
  height: 260px;
  transform: rotate(-2deg);
}

.home-visual-side {
  right: 0;
  bottom: 3.6rem;
  width: 48%;
  height: 180px;
  transform: rotate(3deg);
}

.home-visual-caption {
  position: absolute;
  left: 2rem;
  right: 2.8rem;
  bottom: 1.2rem;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.2rem 0.75rem;
  padding: 0.85rem;
  background: rgba(10, 6, 24, 0.72);
  border: 1px solid rgba(142, 242, 208, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px) saturate(140%);
}

.home-visual-caption .shard-icon {
  grid-row: span 2;
}

.home-visual-caption strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.05rem;
  line-height: 1;
}

.home-visual-caption span:last-child {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-economy-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-economy-strip article,
.home-path-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.home-economy-strip article {
  display: grid;
  gap: 0.35rem;
  min-height: 132px;
  align-content: start;
  padding: 1rem;
}

.home-economy-strip span {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-economy-strip strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.55rem;
  line-height: 1.05;
}

.home-economy-strip p,
.home-path-card p {
  margin: 0;
  font-size: 0.9rem;
}

.home-section-heading {
  margin-top: 1.6rem;
}

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

.home-path-card {
  display: grid;
  min-height: 250px;
  align-content: start;
  gap: 0.6rem;
  padding: 1rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.home-path-card:hover,
.home-path-card:focus-visible {
  border-color: rgba(142, 242, 208, 0.36);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.home-path-card strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.22rem;
  line-height: 1.12;
}

.path-cta {
  margin-top: auto;
  color: var(--tek);
  font-size: 0.86rem;
  font-weight: 900;
}

.home-feature-grid {
  align-items: stretch;
}

.home-account-panel,
.home-catalog-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.home-account-panel > .route-icon {
  width: 52px;
  height: 52px;
}

.home-account-panel h2,
.home-catalog-panel h2,
.home-ready-panel h2 {
  margin-bottom: 0.45rem;
}

.home-steps {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: home-step;
}

.home-steps li {
  position: relative;
  display: grid;
  gap: 0.1rem;
  min-height: 58px;
  padding: 0.68rem 0.75rem 0.68rem 3.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.home-steps li::before {
  counter-increment: home-step;
  content: counter(home-step);
  position: absolute;
  left: 0.75rem;
  top: 0.68rem;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  background: var(--tek-soft);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 50%;
  color: var(--tek);
  font-family: var(--display-font);
  font-weight: 700;
}

.home-steps strong {
  color: var(--ink);
}

.home-steps span {
  color: var(--ink-2);
  font-size: 0.88rem;
}

.home-reward-list {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 0.75rem;
}

.home-reward-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  align-self: start;
  gap: 0.85rem;
  min-height: 98px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.home-reward-row:hover,
.home-reward-row:focus-visible {
  background: rgba(142, 242, 208, 0.07);
  border-color: rgba(142, 242, 208, 0.26);
  transform: translateY(-1px);
}

.home-reward-row img {
  width: 112px;
  max-width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.home-reward-copy {
  display: grid;
  min-width: 0;
  gap: 0.28rem;
}

.home-reward-copy .badge {
  justify-self: start;
}

.home-reward-copy strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.08rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.home-reward-copy span:last-child {
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 800;
}

.home-catalog-empty {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 120px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.home-catalog-empty p {
  margin: 0;
}

.home-ready-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-color: rgba(252, 211, 77, 0.28);
}

.home-ready-panel > div:first-child {
  max-width: 48rem;
}

.dino {
  --dino-body: #34d399;
  --dino-belly: #1f8a5b;
  --dino-stripe: #10b981;
  --dino-spike: #22d3ee;
  --dino-eye: #22d3ee;
  --dino-dark: #0f2e22;
  display: block;
  width: var(--dino-width, 180px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.45)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.46));
}

.dino-rex {
  --dino-body: #a78bfa;
  --dino-belly: #6e3fe8;
  --dino-stripe: #8b5cf6;
  --dino-spike: #f472b6;
  --dino-eye: #f472b6;
  --dino-dark: #241445;
}

.dino-bronto {
  --dino-body: #38bdf8;
  --dino-belly: #0ea5e9;
  --dino-stripe: #0284c7;
  --dino-spike: #22d3ee;
  --dino-eye: #22d3ee;
  --dino-dark: #0a2540;
}

.dino-saur {
  --dino-body: #fcd34d;
  --dino-belly: #d89500;
  --dino-stripe: #fbbf24;
  --dino-spike: #ff7a5c;
  --dino-eye: #ff7a5c;
  --dino-dark: #3a2a0a;
}

.dino-tail,
.dino-body,
.dino-leg-front,
.dino-arm,
.dino-head {
  fill: var(--dino-body);
  stroke: var(--dino-dark);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.dino-leg-back {
  fill: var(--dino-stripe);
  stroke: var(--dino-dark);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.dino-belly,
.dino-jaw {
  fill: var(--dino-belly);
  stroke: var(--dino-dark);
  stroke-width: 2;
  stroke-linejoin: round;
}

.dino-spikes,
.dino-ridge {
  fill: var(--dino-spike);
  stroke: var(--dino-dark);
  stroke-width: 2;
  stroke-linejoin: round;
}

.dino-stripe,
.dino-cheek,
.dino-brow {
  fill: none;
  stroke: var(--dino-dark);
  stroke-linecap: round;
}

.dino-stripe {
  stroke-width: 2;
  opacity: 0.6;
}

.dino-cheek {
  stroke-width: 2;
  opacity: 0.5;
}

.dino-brow {
  stroke-width: 2.5;
}

.dino-glow-line,
.dino-claw {
  fill: none;
  stroke: var(--dino-eye);
  stroke-linecap: round;
}

.dino-glow-line {
  stroke-width: 1.5;
  opacity: 0.7;
}

.dino-claw {
  stroke-width: 3;
}

.dino-teeth {
  fill: #fff8e0;
  stroke: var(--dino-dark);
  stroke-width: 1;
  stroke-linejoin: round;
}

.dino-nostril,
.dino-eye-back,
.dino-pupil {
  fill: var(--dino-dark);
}

.dino-eye {
  fill: var(--dino-eye);
}

.dino-eye-shine {
  fill: #ffffff;
}

.dino-tek-mark {
  fill: none;
  stroke: var(--dino-eye);
  stroke-width: 1.3;
  opacity: 0.9;
}

.dino-hero {
  position: absolute;
  z-index: 2;
}

.dino-hero-top {
  --dino-width: 150px;
  top: 10%;
  left: 17%;
  transform: scaleX(-1);
  animation: bob 3.4s ease-in-out infinite;
}

.dino-hero-bottom {
  --dino-width: 250px;
  right: -5%;
  bottom: 8%;
  animation: wiggle 5.2s ease-in-out infinite;
}

.page-hero-art {
  position: relative;
  z-index: 1;
  flex: 0 0 320px;
  min-height: 180px;
}

.page-hero-art > .hero-icon,
.page-hero-art > .shard-icon {
  position: absolute;
  right: 1rem;
  top: 0.25rem;
}

.dino-page {
  position: absolute;
  z-index: 2;
}

.dino-page-small {
  --dino-width: 148px;
  left: 0.25rem;
  bottom: 0.5rem;
  transform: scaleX(-1);
  animation: bob 3.4s ease-in-out infinite;
}

.dino-page-bronto {
  --dino-width: 210px;
  right: -1rem;
  bottom: -0.25rem;
  animation: wiggle 5.4s ease-in-out infinite;
}

.dino-page-shop {
  --dino-width: 210px;
  right: -0.5rem;
  bottom: -0.2rem;
  animation: bob 3.6s ease-in-out infinite;
}

.dino-page-saur {
  --dino-width: 210px;
  right: -0.75rem;
  bottom: -0.35rem;
  animation: wiggle 5.2s ease-in-out infinite;
}

.dino-auth-egg {
  width: 98px;
  margin-top: -72px;
  margin-bottom: -0.25rem;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.45)) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.42));
  animation: bob 3.2s ease-in-out infinite;
}

.dino-egg-shell {
  fill: #efe7ff;
  stroke: #241445;
  stroke-width: 3;
}

.dino-egg-crack,
.dino-egg-glow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dino-egg-crack {
  stroke: var(--tek);
  stroke-width: 3;
}

.dino-egg-glow {
  stroke: var(--primary);
  stroke-width: 1.5;
}

.dino-egg-dot {
  fill: var(--primary);
}

.dino-wallet {
  --dino-width: 132px;
  position: absolute;
  right: 35%;
  bottom: -0.25rem;
  z-index: 1;
  opacity: 0.52;
}

.shard-float-one {
  left: 9%;
  top: 18%;
}

.shard-float-two {
  left: 21%;
  bottom: 15%;
  animation-delay: 0.7s;
}

.shard-float-three {
  right: 12%;
  top: 22%;
  animation-delay: 1.1s;
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes wiggle {
  0%,
  100% {
    rotate: 0deg;
  }

  25% {
    rotate: -1.8deg;
  }

  75% {
    rotate: 1.8deg;
  }
}

.section-icon,
.route-icon,
.tier-icon,
.linked-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.section-icon::before,
.route-icon::before,
.tier-icon::before,
.linked-icon::before,
.tab-glyph::before {
  content: "";
  display: block;
  width: 54%;
  height: 54%;
  background: currentColor;
}

.route-shards,
.shard-mini-icon {
  background: var(--tek-soft);
  color: var(--tek);
  border-color: rgba(34, 211, 238, 0.3);
}

.route-supporter,
.crown-icon,
.tier-sun {
  background: var(--sun-soft);
  color: var(--sun);
  border-color: rgba(252, 211, 77, 0.32);
}

.route-shop,
.cart-large-icon {
  background: var(--mint-soft);
  color: var(--mint);
  border-color: rgba(74, 222, 128, 0.32);
}

.server-icon {
  background: var(--tek-soft);
  color: var(--tek);
  border-color: rgba(34, 211, 238, 0.3);
}

.shield-icon {
  background: var(--mint-soft);
  color: var(--mint);
  border-color: rgba(74, 222, 128, 0.32);
}

.package-icon {
  background: var(--sun-soft);
  color: var(--sun);
  border-color: rgba(252, 211, 77, 0.32);
}

.route-donate,
.heart-icon {
  background: var(--coral-soft);
  color: var(--coral);
  border-color: rgba(255, 122, 92, 0.32);
}

.route-account,
.settings-icon,
.discord-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.route-icon::before,
.settings-icon::before {
  clip-path: polygon(45% 0, 55% 0, 62% 24%, 86% 13%, 93% 22%, 76% 42%, 100% 50%, 100% 62%, 76% 68%, 90% 90%, 82% 98%, 60% 82%, 54% 100%, 42% 100%, 36% 82%, 14% 98%, 6% 90%, 20% 68%, 0 62%, 0 50%, 22% 42%, 5% 22%, 14% 13%, 38% 24%);
}

.crown-icon::before,
.tier-icon::before {
  clip-path: polygon(0 82%, 100% 82%, 86% 28%, 62% 56%, 50% 10%, 38% 56%, 14% 28%);
}

.cart-large-icon::before {
  clip-path: polygon(6% 10%, 22% 10%, 30% 64%, 84% 64%, 94% 28%, 26% 28%, 32% 76%, 90% 76%, 90% 88%, 28% 88%, 16% 22%, 6% 22%);
}

.server-icon::before {
  clip-path: polygon(12% 8%, 88% 8%, 88% 34%, 12% 34%, 12% 8%, 12% 42%, 88% 42%, 88% 68%, 12% 68%, 12% 42%, 12% 76%, 88% 76%, 88% 92%, 12% 92%);
}

.shield-icon::before {
  clip-path: polygon(50% 4%, 88% 18%, 82% 60%, 50% 96%, 18% 60%, 12% 18%);
}

.package-icon::before {
  clip-path: polygon(50% 4%, 92% 26%, 92% 74%, 50% 96%, 8% 74%, 8% 26%, 50% 4%, 50% 48%, 92% 26%, 50% 48%, 8% 26%, 50% 48%, 50% 96%);
}

.heart-icon::before,
.heart-small-icon::before {
  clip-path: polygon(50% 88%, 10% 48%, 10% 25%, 30% 14%, 50% 28%, 70% 14%, 90% 25%, 90% 48%);
}

.discord-icon::before {
  clip-path: polygon(15% 20%, 38% 12%, 43% 24%, 57% 24%, 62% 12%, 85% 20%, 95% 50%, 84% 82%, 65% 74%, 60% 62%, 40% 62%, 35% 74%, 16% 82%, 5% 50%);
}

.ark-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.ark-icon::before {
  clip-path: polygon(50% 0, 90% 100%, 65% 100%, 50% 58%, 35% 100%, 10% 100%);
}

.tier-primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.tier-mint {
  background: var(--mint-soft);
  color: var(--mint);
  border-color: rgba(74, 222, 128, 0.32);
}

.hero-icon {
  width: 104px;
  height: 104px;
  opacity: 0.96;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-card h2,
.tier-card h2 {
  margin-bottom: 0;
}

.product-card p,
.tier-card p {
  margin-bottom: 0;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.card-topline h2 {
  margin: 0;
}

.product-art {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.14)),
    var(--surface-2);
  overflow: hidden;
}

.product-art-small {
  width: 96px;
  height: 96px;
  aspect-ratio: auto;
}

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

.shards-hero {
  background:
    radial-gradient(ellipse at 18% 4%, rgba(142, 242, 208, 0.2), transparent 42%),
    radial-gradient(ellipse at 78% 40%, rgba(34, 211, 238, 0.2), transparent 56%),
    linear-gradient(135deg, rgba(31, 21, 56, 0.96), rgba(10, 6, 24, 0.96));
}

.shards-hero h1 {
  max-width: 11ch;
}

.shards-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.shards-hero-proof span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: rgba(10, 6, 24, 0.38);
  border: 1px solid rgba(142, 242, 208, 0.18);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.shards-hero-proof strong {
  color: var(--mint);
}

.shards-account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(10, 6, 24, 0.36);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.shards-account-panel[data-account-tone="ready"] {
  border-color: rgba(74, 222, 128, 0.32);
}

.shards-account-panel[data-account-tone="link"],
.shards-account-panel[data-account-tone="warning"] {
  border-color: rgba(252, 211, 77, 0.32);
}

.shards-account-copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.shards-account-copy .chip {
  justify-self: start;
}

.shards-account-copy h2 {
  margin: 0;
  font-size: 1.55rem;
}

.shards-account-copy p {
  margin: 0;
  font-size: 0.94rem;
}

.shards-account-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shards-account-facts div {
  padding: 0.62rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.shards-account-actions {
  display: grid;
  gap: 0.55rem;
  min-width: 10rem;
}

.shards-account-actions .button {
  white-space: normal;
}

.shards-pack-heading {
  margin-top: 1.4rem;
}

.shard-pack-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}

.shard-pack-card {
  position: relative;
  gap: 0;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.016)),
    var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.shard-pack-card:hover {
  border-color: rgba(142, 242, 208, 0.3);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.shard-pack-card[data-pack-tier="best"] {
  border-color: rgba(252, 211, 77, 0.36);
  box-shadow:
    inset 0 0 0 1px rgba(252, 211, 77, 0.12),
    var(--shadow-card);
}

.shard-pack-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.14)),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.shard-pack-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.02), rgba(5, 7, 13, 0.28)),
    linear-gradient(90deg, rgba(5, 7, 13, 0.28), transparent 34%, transparent 66%, rgba(5, 7, 13, 0.2));
}

.shard-pack-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.shard-pack-card[data-pack-tier="steady"] .badge,
.shard-pack-card[data-pack-tier="strong"] .badge {
  background: var(--mint-soft);
  border-color: rgba(74, 222, 128, 0.32);
  color: var(--mint);
}

.shard-pack-card[data-pack-tier="best"] .badge {
  background: var(--sun-soft);
  border-color: rgba(252, 211, 77, 0.34);
  color: var(--sun);
}

.shard-pack-copy {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1rem 0;
}

.shard-pack-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 900;
}

.shard-pack-copy h2 {
  margin: 0;
  font-size: 1.4rem;
}

.shard-pack-amount {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.8rem;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(142, 242, 208, 0.06)),
    rgba(10, 6, 24, 0.36);
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: var(--radius);
}

.shard-pack-amount strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 2.35rem;
  line-height: 0.95;
}

.shard-pack-amount span {
  color: var(--tek);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shard-pack-facts {
  grid-template-columns: 1fr;
  padding: 0.85rem 1rem 0;
}

.shard-pack-facts div {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.48rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.shard-pack-facts div:last-child {
  border-bottom: 0;
}

.shard-pack-facts dd {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.shard-pack-card form {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
  padding: 1rem;
}

.shard-pack-card .button {
  white-space: normal;
}

.shard-pack-card .button[aria-busy="true"] {
  border-color: rgba(142, 242, 208, 0.42);
  filter: saturate(1.12);
}

.checkout-microcopy {
  min-height: 2.5rem;
  margin: 0;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.shard-checkout-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  border-color: rgba(34, 211, 238, 0.22);
}

.shard-checkout-note h2 {
  margin: 0 0 0.35rem;
}

.shard-checkout-note p {
  margin: 0;
}

.shard-comparison-panel .card-topline {
  margin-bottom: 0.75rem;
}

.tier-grid {
  align-items: stretch;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
}

.perk-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.perk-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.perk-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--mint-soft);
  border: 1px solid rgba(74, 222, 128, 0.32);
}

.perk-list li::after {
  content: "";
  position: absolute;
  left: 0.33rem;
  top: 0.43rem;
  width: 0.42rem;
  height: 0.22rem;
  border-bottom: 2px solid var(--mint);
  border-left: 2px solid var(--mint);
  transform: rotate(-45deg);
}

.support-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-style: dashed;
  border-color: rgba(74, 222, 128, 0.42);
}

.shop-catalog-heading {
  margin-top: 1.6rem;
}

.shop-readiness-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(10, 6, 24, 0.34);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.shop-readiness-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.shop-readiness-facts div {
  display: grid;
  gap: 0.08rem;
  min-width: 7rem;
  padding: 0.58rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.shop-readiness-facts span {
  color: var(--ink-3);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-readiness-facts strong {
  color: var(--ink);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.shop-readiness-facts .shop-readiness-survivor {
  min-width: 10rem;
}

.shop-readiness-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.shop-catalog-toolbar {
  margin: -0.2rem 0 1rem;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(10, 6, 24, 0.36);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segmented-control button {
  appearance: none;
  min-height: 42px;
  padding: 0.58rem 0.8rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.segmented-control button:hover,
.segmented-control button.is-active {
  background: rgba(142, 242, 208, 0.1);
  border-color: rgba(142, 242, 208, 0.22);
  color: var(--ink);
}

.segmented-control button:hover {
  transform: translateY(-1px);
}

.shop-grid {
  align-items: stretch;
}

.shop-catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.shop-product-card {
  overflow: hidden;
  padding: 0;
  gap: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.shop-product-card[hidden] {
  display: none !important;
}

.shop-product-card:hover {
  border-color: rgba(142, 242, 208, 0.28);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.shop-product-media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(74, 222, 128, 0.08)),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.shop-product-media::after,
.shop-detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.08), rgba(5, 7, 13, 0.18));
}

.shop-media-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.shop-product-copy {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1rem 0;
}

.shop-product-copy h2 {
  font-size: 1.45rem;
}

.product-contents-summary {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(142, 242, 208, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(142, 242, 208, 0.08);
  color: var(--highlight-400, var(--mint));
  font-size: 0.78rem;
  font-weight: 900;
}

.shop-product-commerce {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0;
}

.shop-product-price {
  display: grid;
  gap: 0.1rem;
  min-width: 8rem;
}

.shop-product-price span {
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-product-price strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.65rem;
  line-height: 1;
}

.balance-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(10, 6, 24, 0.48);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.balance-pill-ok {
  border-color: rgba(74, 222, 128, 0.48);
  color: var(--mint);
}

.balance-pill-short {
  border-color: rgba(252, 211, 77, 0.5);
  color: var(--sun);
}

.balance-pill-unknown {
  color: var(--ink-2);
}

.product-long-description {
  margin-top: -0.15rem;
}

.product-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-facts-rich {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.command-strip {
  display: grid;
  gap: 0.45rem;
  margin: 0.9rem 1rem 0;
  padding: 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.07);
}

.command-strip-receipt {
  margin: 0;
}

.command-strip span {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-disclaimer-panel {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 1rem 0;
  padding: 0.75rem;
  border: 1px solid rgba(252, 211, 77, 0.46);
  border-radius: var(--radius);
  background: rgba(252, 211, 77, 0.08);
  color: var(--ink-2);
}

.product-disclaimer-panel strong {
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-disclaimer-panel ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.05rem;
}

.product-disclaimer-panel li {
  font-size: 0.86rem;
  line-height: 1.35;
}

.product-disclaimer-panel-detail {
  margin: 0;
}

.command-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.command-line .inline-command {
  flex: 1 1 auto;
}

.command-copy-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0.48rem 0.68rem;
  font-size: 0.8rem;
}

.shop-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding: 1rem;
}

.shop-card-actions > .button,
.shop-card-actions > form {
  flex: 1 1 12rem;
}

.shop-card-actions form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0;
}

.shop-receipt {
  gap: 0.85rem;
}

.shop-receipt-copy {
  display: grid;
  gap: 0.25rem;
}

.shop-receipt-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 6, 24, 0.28);
}

.facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.facts div {
  min-width: 0;
}

.facts.compact {
  gap: 0.55rem;
}

dt {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.status-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-2);
}

.status-list li + li {
  margin-top: 0.45rem;
}

.compact-list {
  font-size: 0.94rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 900;
}

td {
  color: var(--ink-2);
}

.table-primary {
  color: var(--ink);
  font-weight: 900;
}

.code-cell {
  max-width: 18rem;
  font-family: var(--mono-font);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.inline-command {
  display: inline;
  padding: 0.12rem 0.32rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.42);
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: 0.82em;
  overflow-wrap: anywhere;
}

.shop-detail-dialog {
  width: min(980px, calc(100vw - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.shop-detail-dialog::backdrop {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(8px);
}

.shop-detail-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  max-height: inherit;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: var(--shadow-lift);
}

.shop-detail-media {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(167, 139, 250, 0.12)),
    var(--surface-2);
}

.shop-detail-body {
  display: grid;
  gap: 1rem;
  align-content: start;
  overflow-y: auto;
  padding: 1.15rem;
}

.shop-detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.shop-detail-close {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
}

.shop-detail-heading {
  display: grid;
  gap: 0.45rem;
}

.shop-detail-heading h2 {
  margin: 0;
  font-size: 1.8rem;
}

.detail-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.command-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid rgba(142, 242, 208, 0.24);
  border-radius: var(--radius);
  background: rgba(142, 242, 208, 0.065);
}

.command-panel strong {
  color: var(--ink);
}

.command-panel span {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.kit-contents-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 6, 24, 0.28);
}

.kit-contents-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.kit-contents-heading strong {
  color: var(--ink);
}

.kit-contents-heading span {
  min-width: 2rem;
  padding: 0.12rem 0.45rem;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: var(--radius-pill);
  color: var(--primary);
  font-family: var(--mono-font);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.kit-contents-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kit-contents-list li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 42px;
  padding: 0.48rem 0.6rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.kit-contents-list span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.kit-contents-list em,
.kit-tag-row em {
  flex: 0 0 auto;
  padding: 0.12rem 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.kit-dino-list {
  grid-template-columns: 1fr;
}

.kit-dino-list li {
  align-items: flex-start;
  flex-direction: column;
}

.kit-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.shop-detail-form {
  display: grid;
  gap: 0.85rem;
}

.shop-confirm-dialog {
  width: min(520px, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.shop-confirm-dialog::backdrop {
  background: rgba(5, 7, 13, 0.74);
  backdrop-filter: blur(8px);
}

.shop-confirm-card {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: var(--shadow-lift);
}

.shop-confirm-card h2 {
  margin: 0.6rem 0 0.35rem;
}

.shop-confirm-card p {
  margin-bottom: 0;
}

.shop-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.rcon-command-cell {
  display: block;
  max-width: 32rem;
}

.rcon-result-cell {
  max-width: 24rem;
  overflow-wrap: anywhere;
}

.subtle-line {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-3);
  font-size: 0.84rem;
}

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

.compact-copy {
  margin: 0;
  font-size: 0.92rem;
}

.notice {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 6, 24, 0.34);
}

.notice.warning {
  border-color: rgba(252, 211, 77, 0.45);
  color: var(--sun);
}

.notice.success {
  border-color: rgba(74, 222, 128, 0.5);
  color: var(--mint);
}

.notice-facts {
  max-width: 420px;
  margin-top: 0.45rem;
  color: var(--ink);
}

.supporter-admin-action {
  border-color: rgba(255, 122, 92, 0.34);
}

.admin-revoke-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .admin-revoke-form {
    grid-template-columns: 1fr;
  }

  .admin-revoke-form .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.shop-product form {
  display: grid;
  gap: 0.85rem;
}

.shop-product > form {
  margin-top: auto;
}

.shop-target-field {
  margin-top: 0.1rem;
}

.shop-target-copy {
  min-height: 2.4rem;
}

.auth-hero {
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.auth-card {
  width: min(480px, 100%);
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  margin: 0;
  font-size: 3rem;
}

.wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 270px;
  padding: 2.25rem;
}

.profile-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border: 4px solid rgba(255, 255, 255, 0.22);
  font-size: 2.2rem;
}

.profile-block h1 {
  max-width: none;
  margin: 0.1rem 0 0.5rem;
  font-size: 2.3rem;
  overflow-wrap: anywhere;
}

.balance-block {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
  min-width: 300px;
}

.balance-value {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.balance-value strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 3rem;
  line-height: 1;
}

.balance-actions {
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.supporter-summary {
  border-color: rgba(167, 139, 250, 0.54);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(244, 114, 182, 0.1)),
    var(--surface);
}

.linked-list {
  display: grid;
}

.linked-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.linked-row:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}

.linked-row strong,
.linked-row span {
  display: block;
}

.linked-row strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.linked-row div > span {
  color: var(--ink-3);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.status-stack {
  display: grid;
  gap: 0.85rem;
}

.status-item {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.status-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.status-item strong {
  color: var(--ink);
}

.status-item span {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.admin-status-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.admin-status-item .chip {
  min-width: 0;
  justify-self: end;
  text-transform: none;
  overflow-wrap: anywhere;
}

.admin-ops-panel {
  display: grid;
  gap: 1rem;
}

.dev-diagnostics {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
}

.dev-diagnostics summary {
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 900;
}

.dev-diagnostics[open] summary {
  margin-bottom: 0.85rem;
}

.donation-card {
  padding: 1.5rem;
}

.donate-goal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
  gap: 1rem;
  align-items: stretch;
}

.donation-progress-panel,
.donation-account-panel,
.donation-checkout-panel,
.donation-milestone-panel,
.recent-legends-panel,
.top-donor-panel {
  min-width: 0;
}

.donation-progress-panel {
  display: grid;
  gap: 1rem;
}

.donation-progress-panel h2,
.donation-account-panel h2,
.donation-checkout-panel h2,
.donation-milestone-panel h2,
.recent-legends-panel h2,
.top-donor-panel h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.donate-progress-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.donate-progress-numbers strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.donate-progress-numbers span {
  color: var(--ink-3);
  font-weight: 900;
}

.funding-track {
  height: 26px;
  margin: 1.25rem 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.funding-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--tek), var(--primary));
  border-radius: var(--radius-pill);
}

.goal-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.donation-account-panel {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.donation-account-panel > .chip {
  justify-self: start;
}

.donation-checkout-panel {
  padding: 1.4rem;
}

.donate-section-heading {
  margin-bottom: 1rem;
}

.donate-checkout-form {
  display: grid;
  gap: 1rem;
}

.donation-amount-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.donation-option {
  position: relative;
  min-width: 0;
}

.donation-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.donation-option label {
  position: relative;
  display: grid;
  min-height: 152px;
  align-content: start;
  gap: 0.45rem;
  padding: 1rem;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.donation-option label:hover,
.donation-option input:focus-visible + label {
  border-color: rgba(142, 242, 208, 0.62);
  transform: translateY(-2px);
}

.donation-option input:checked + label {
  background:
    linear-gradient(180deg, rgba(142, 242, 208, 0.12), rgba(34, 211, 238, 0.04)),
    var(--surface);
  border-color: rgba(142, 242, 208, 0.78);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(142, 242, 208, 0.24) inset;
}

.donation-option-price {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.donation-option-shards {
  color: var(--sun);
  font-size: 0.88rem;
  font-weight: 900;
}

.donation-option-note {
  margin-top: auto;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 800;
}

.donor-display-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 0.85rem;
  align-items: end;
}

.donor-display-field,
.donor-visibility-field {
  min-width: 0;
}

.donor-display-field label,
.donor-visibility-field legend {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink-3);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.donor-display-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.donor-display-field input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.donor-visibility-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.donor-visibility-field legend {
  flex-basis: 100%;
}

.donor-visibility-field label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.donation-submit {
  min-height: 54px;
}

.donation-milestone-panel {
  display: grid;
  gap: 1rem;
}

.milestone-track-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.55rem;
}

.milestone-tile {
  display: grid;
  min-height: 112px;
  align-content: start;
  gap: 0.4rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.milestone-tile span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  font-family: var(--mono-font);
  font-size: 0.75rem;
  font-weight: 900;
}

.milestone-tile strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.05rem;
  line-height: 1;
}

.milestone-tile em {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.milestone-tile.is-unlocked {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.15), rgba(34, 211, 238, 0.045));
  border-color: rgba(74, 222, 128, 0.46);
}

.milestone-tile.is-unlocked span {
  color: #06180f;
  background: var(--mint);
}

.milestone-tile.is-unlocked em {
  color: var(--mint);
}

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

.donation-breakdown-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.donation-breakdown-card h3,
.donation-breakdown-card p {
  margin: 0;
}

.donation-breakdown-card strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 2rem;
  line-height: 1;
}

.donation-legends-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: start;
}

.recent-legend-list {
  display: grid;
  gap: 0.65rem;
}

.recent-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 62px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legend-avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #120a20;
  background: var(--sun);
  border-radius: 50%;
  font-family: var(--display-font);
  font-weight: 900;
}

.recent-legend-row div {
  display: grid;
  min-width: 0;
}

.recent-legend-row strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-legend-row span,
.recent-legend-row em {
  color: var(--ink-3);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.recent-legend-row em {
  color: var(--mint);
  white-space: nowrap;
}

.top-donor-panel {
  display: grid;
  gap: 0.75rem;
}

.top-donor-panel > .chip {
  justify-self: start;
}

.top-donor-panel > strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 2.1rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.static-info-heading {
  max-width: 920px;
}

.static-info-heading h1 {
  max-width: 18ch;
}

.static-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.static-info-panel {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.static-info-panel h2,
.static-info-actions h2 {
  margin-bottom: 0;
}

.static-info-panel p {
  margin-bottom: 0;
}

.static-info-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-2);
  font-weight: 700;
}

.static-info-list li::marker {
  color: var(--tek);
}

.static-info-actions {
  display: grid;
  gap: 1rem;
}

.terms-heading {
  max-width: 980px;
  min-width: 0;
}

.terms-heading h1 {
  max-width: 18ch;
  overflow-wrap: anywhere;
}

.terms-heading p,
.terms-doc,
.terms-card,
.terms-card p,
.terms-card li,
.terms-card a,
.terms-card code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.terms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.terms-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.45rem 0.7rem;
  background: rgba(142, 242, 208, 0.08);
  border: 1px solid rgba(142, 242, 208, 0.2);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.terms-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 100%;
  margin-bottom: 1rem;
}

.terms-toc a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0.45rem 0.7rem;
  background: rgba(10, 6, 24, 0.34);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.terms-toc a:hover,
.terms-toc a:focus-visible {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.38);
  color: var(--ink);
}

.terms-doc {
  display: grid;
  gap: 1rem;
  max-width: 100%;
}

.terms-card {
  width: 100%;
  min-width: 0;
  scroll-margin-top: 96px;
}

.terms-callout {
  border-color: rgba(142, 242, 208, 0.32);
  box-shadow: inset 4px 0 0 rgba(142, 242, 208, 0.78), var(--shadow-card);
}

.terms-card h2,
.terms-actions h2 {
  margin-bottom: 0.65rem;
}

.terms-card p {
  margin-bottom: 0.75rem;
}

.terms-card p:last-child,
.terms-card li:last-child {
  margin-bottom: 0;
}

.terms-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-2);
}

.terms-card li {
  font-weight: 650;
}

.terms-card li::marker {
  color: var(--tek);
}

.terms-actions {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  margin-top: 1rem;
}

.site-footer {
  padding: clamp(3.25rem, 6vw, 5rem) max(1rem, calc((100vw - 1240px) / 2 + 1rem)) clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(5, 8, 13, 0.98)),
    #070b12;
  color: rgba(245, 247, 255, 0.56);
}

.site-footer-inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.footer-brand-panel {
  display: grid;
  max-width: 32rem;
  gap: 1.7rem;
}

.footer-logo {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.footer-logo-mark {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(99, 213, 255, 0.52), rgba(167, 139, 250, 0.38));
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
}

.footer-logo-mark::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #0b111b;
  clip-path: inherit;
}

.footer-logo-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(135deg, #8ef2d0, #8b5cf6);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 18px rgba(99, 213, 255, 0.42);
}

.footer-logo-text {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.footer-brand-panel p {
  max-width: 29rem;
  margin: 0;
  color: rgba(245, 247, 255, 0.58);
  font-size: 0.98rem;
  font-weight: 700;
}

.footer-trust {
  display: inline-flex;
  min-height: 40px;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: rgba(245, 247, 255, 0.88);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset -8px 0 0 rgba(0, 0, 0, 0.2);
}

.footer-trust svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.75rem, 3vw, 3.25rem);
}

.footer-column {
  display: grid;
  gap: 0.75rem;
}

.footer-column h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: rgba(245, 247, 255, 0.58);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--ink);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: rgba(245, 247, 255, 0.46);
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-bottom span:last-child {
  text-align: right;
}

.mobile-tabbar {
  display: none;
}

.tab-glyph {
  width: 24px;
  height: 24px;
  color: currentColor;
}

.tab-home::before {
  clip-path: polygon(50% 6%, 92% 44%, 80% 44%, 80% 92%, 58% 92%, 58% 64%, 42% 64%, 42% 92%, 20% 92%, 20% 44%, 8% 44%);
}

.tab-shards::before {
  clip-path: polygon(50% 0, 85% 38%, 50% 100%, 15% 38%);
}

.tab-shop::before {
  clip-path: polygon(6% 8%, 22% 8%, 31% 66%, 88% 66%, 96% 30%, 28% 30%, 34% 78%, 88% 78%, 88% 90%, 28% 90%, 16% 22%, 6% 22%);
}

.tab-supporter::before {
  clip-path: polygon(0 82%, 100% 82%, 86% 28%, 62% 56%, 50% 10%, 38% 56%, 14% 28%);
}

.tab-account::before {
  clip-path: polygon(50% 5%, 72% 14%, 82% 36%, 72% 58%, 50% 67%, 28% 58%, 18% 36%, 28% 14%, 50% 5%, 18% 100%, 82% 100%, 72% 76%, 28% 76%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .topnav-actions {
    justify-self: end;
  }

  .hero,
  .two-column,
  .three-column,
  .account-grid,
  .admin-review-grid,
  .admin-priority-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ops-grid,
  .admin-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar,
  .admin-filter-form {
    grid-template-columns: 1fr;
  }

  .admin-compact-action {
    justify-content: flex-start;
  }

  .hero-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .footer-columns {
    max-width: 46rem;
  }

  .wallet-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .shards-account-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .shards-account-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .balance-block {
    justify-items: start;
    min-width: 0;
  }

  .balance-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding: 0.75rem;
  }

  .brand img {
    width: 66px;
  }

  .brand span {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .identity-copy {
    display: none;
  }

  .identity-pill {
    gap: 0.45rem;
    padding: 0.25rem 0.45rem 0.25rem 0.25rem;
  }

  .header-action {
    min-height: 42px;
    padding: 0.62rem 0.85rem;
    font-size: 0.82rem;
  }

  .identity-dropdown {
    width: min(17rem, calc(100vw - 1.5rem));
  }

  .page-shell {
    width: min(100% - 1rem, 1240px);
    padding: 1rem 0 6.5rem;
  }

  .terms-heading,
  .terms-toc,
  .terms-doc,
  .terms-card,
  .terms-actions {
    max-width: calc(100vw - 1rem);
  }

  .terms-meta span,
  .terms-toc a {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .hero,
  .page-hero {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .hero {
    display: grid;
    gap: 1rem;
  }

  .home-hero {
    min-height: 0;
    padding-bottom: 14rem;
  }

  .home-hero h1 {
    font-size: 3.05rem;
  }

  .hero-art {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2.75rem;
    min-height: 210px;
    pointer-events: none;
  }

  .hero-main-shard {
    right: 24%;
    top: 48%;
  }

  .hero-mini-one {
    left: 12%;
    top: 25%;
  }

  .hero-mini-two {
    right: 9%;
    top: 9%;
  }

  .hero-mini-three {
    left: 34%;
    bottom: 10%;
  }

  .dino-hero-top {
    --dino-width: 104px;
    left: 44%;
    top: 0;
  }

  .dino-hero-bottom {
    --dino-width: 170px;
    right: -1rem;
    bottom: 0.3rem;
  }

  .hero-status-strip {
    grid-template-columns: 1fr;
  }

  .status-row {
    flex-wrap: wrap;
  }

  .status-row strong {
    min-width: 0;
    text-align: left;
  }

  .page-hero {
    align-items: flex-start;
    min-height: 0;
  }

  h1 {
    font-size: 2.7rem;
  }

  .page-hero h1 {
    font-size: 2.45rem;
  }

  .hero-copy p,
  .page-hero p,
  .auth-card p {
    font-size: 0.95rem;
  }

  .hero-showcase {
    gap: 0.75rem;
  }

  .showcase-orbit {
    min-height: 180px;
  }

  .showcase-orbit .shard-icon {
    right: 1rem;
    bottom: 1rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-readiness-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-readiness-actions {
    justify-content: flex-start;
  }

  .shop-readiness-actions .button {
    flex: 1 1 10rem;
  }

  .shards-account-facts {
    grid-template-columns: 1fr;
  }

  .shards-account-actions {
    grid-template-columns: 1fr;
  }

  .shards-hero {
    display: grid;
  }

  .shards-hero .page-hero-art {
    display: none;
  }

  .shards-hero p {
    max-width: none;
  }

  .shard-pack-grid {
    grid-template-columns: 1fr;
  }

  .shard-pack-facts div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .shard-pack-facts dd {
    text-align: left;
  }

  .shard-checkout-note {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .admin-metrics-grid,
  .admin-summary-grid,
  .admin-ops-grid,
  .admin-config-grid,
  .admin-detail-facts,
  .link-grid,
  .goal-facts,
  .product-facts,
  .detail-facts,
  .shop-receipt-facts {
    grid-template-columns: 1fr;
  }

  .shop-product-body {
    flex-direction: column;
  }

  .product-art-small {
    width: 100%;
    height: 112px;
  }

  .shop-product-media {
    min-height: 0;
  }

  .shop-product-commerce {
    flex-direction: column;
  }

  .kit-contents-list {
    grid-template-columns: 1fr;
  }

  .shop-card-actions {
    flex-direction: column;
  }

  .shop-card-actions > .button,
  .shop-card-actions > form {
    flex-basis: auto;
  }

  .shop-detail-dialog {
    width: min(100vw - 1rem, 680px);
    max-height: calc(100vh - 1rem);
  }

  .shop-detail-card {
    grid-template-columns: 1fr;
  }

  .shop-detail-media {
    min-height: 180px;
    max-height: 220px;
  }

  .shop-detail-body {
    padding: 1rem;
  }

  .command-line,
  .shop-confirm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .command-line .button,
  .shop-confirm-actions .button {
    width: 100%;
  }

  .wallet-hero {
    min-height: 0;
    padding: 1.15rem;
  }

  .profile-block {
    align-items: flex-start;
  }

  .admin-player-block {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 62px;
    height: 62px;
    font-size: 1.7rem;
  }

  .profile-block h1 {
    font-size: 1.8rem;
  }

  .balance-value {
    align-items: flex-start;
  }

  .balance-value strong {
    font-size: 2.1rem;
  }

  .shard-xl {
    width: 76px;
    height: 76px;
  }

  .shard-lg {
    width: 52px;
    height: 52px;
  }

  .hero-icon {
    width: 74px;
    height: 74px;
  }

  .auth-hero {
    min-height: 520px;
    padding: 1rem;
  }

  .auth-card {
    padding: 1.25rem;
  }

  .auth-card h1 {
    font-size: 2.35rem;
  }

  .linked-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .linked-row .chip {
    grid-column: 2;
    justify-self: start;
  }

  th,
  td {
    padding: 0.72rem 0.55rem;
  }

  .static-info-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 3rem 1rem calc(7rem + env(safe-area-inset-bottom));
  }

  .footer-brand-panel {
    gap: 1.25rem;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .footer-bottom span:last-child {
    text-align: left;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.15rem;
    padding: 0.45rem 0.5rem calc(env(safe-area-inset-bottom) + 0.55rem);
    background: rgba(8, 13, 20, 0.94);
    border-top: 1px solid var(--line-strong);
    backdrop-filter: blur(16px);
  }

  .mobile-tabbar a {
    display: grid;
    min-height: 54px;
    place-items: center;
    gap: 0.1rem;
    border-radius: var(--radius);
    color: var(--ink-3);
    font-size: 0.66rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-tabbar a.is-active {
    color: var(--primary);
    background: rgba(53, 224, 255, 0.12);
  }
}

@media (max-width: 430px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-logo-text {
    font-size: 1.25rem;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .topnav-actions .button {
    width: auto;
  }

  .chip-row {
    width: 100%;
  }

  .chip-row .chip {
    flex: 1;
  }

  .shop-detail-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-detail-close {
    width: 100%;
  }

  .segmented-control button {
    flex: 1 1 8rem;
  }
}

@media (max-width: 1120px) {
  .donate-goal-grid,
  .donation-legends-grid {
    grid-template-columns: 1fr;
  }

  .donation-amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .milestone-track-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .donation-breakdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .donate-hero {
    display: grid;
    gap: 1rem;
  }

  .donate-hero .page-hero-art {
    display: none;
  }

  .donate-hero p {
    max-width: none;
  }

  .donor-display-grid,
  .donation-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .donation-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .milestone-track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donation-option label {
    min-height: 136px;
  }

  .donate-progress-numbers strong {
    font-size: 2.6rem;
  }

  .donation-checkout-panel {
    padding: 1rem;
  }

  .recent-legend-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .recent-legend-row em {
    grid-column: 2;
  }
}

@media (max-width: 430px) {
  .donation-amount-grid,
  .milestone-track-grid {
    grid-template-columns: 1fr;
  }

  .donor-visibility-field label {
    flex: 1 1 100%;
  }
}

@media (max-width: 1120px) {
  .home-shop-hero {
    grid-template-columns: 1fr;
  }

  .home-visual {
    min-height: 340px;
  }

  .home-economy-strip,
  .home-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-ready-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .home-shop-hero {
    min-height: 0;
  }

  .home-shop-hero h1 {
    font-size: 3.2rem;
  }

  .home-visual {
    min-height: 280px;
  }

  .home-visual-main {
    left: 0.2rem;
    right: 12%;
    top: 0.4rem;
    height: 190px;
  }

  .home-visual-side {
    right: 0.2rem;
    bottom: 2.4rem;
    width: 48%;
    height: 130px;
  }

  .home-visual-caption {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0;
  }

  .home-economy-strip,
  .home-path-grid {
    grid-template-columns: 1fr;
  }

  .home-path-card {
    min-height: 0;
  }

  .home-reward-row {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 92px;
  }

  .home-reward-row img {
    width: 82px;
    height: 62px;
  }

  .home-catalog-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-ready-panel .button-row {
    width: 100%;
  }

  .home-ready-panel .button {
    width: 100%;
  }
}

/* Production donate page */
.donation-hero {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  overflow: hidden;
  display: grid;
  align-items: center;
  border: 1px solid rgba(142, 242, 208, 0.2);
  border-radius: var(--radius);
  background: #07101a;
  box-shadow: var(--shadow-lift);
}

.donation-hero-image,
.donation-hero-overlay {
  position: absolute;
  inset: 0;
}

.donation-hero-image {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.donation-hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.84) 36%, rgba(5, 7, 13, 0.36) 70%, rgba(5, 7, 13, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.12), rgba(5, 7, 13, 0.84));
}

.donation-hero-copy {
  display: grid;
  width: min(680px, 100%);
  gap: 1rem;
  padding: 3rem;
}

.donation-hero-copy > .chip {
  justify-self: start;
}

.donation-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: 4.4rem;
  line-height: 0.94;
}

.donation-hero p {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.donation-hero-actions,
.donation-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.donation-hero-proof {
  margin-top: 0.35rem;
}

.donation-hero-proof span {
  min-height: 44px;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.8rem;
  color: var(--ink-2);
  background: rgba(10, 16, 32, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.donation-hero-proof strong {
  color: var(--ink);
}

.donation-unavailable {
  display: grid;
  gap: 0.8rem;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(142, 242, 208, 0.1), rgba(34, 211, 238, 0.04)),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.donation-unavailable h2,
.donation-unavailable h3,
.donation-unavailable p {
  margin: 0;
}

.donation-unavailable-compact {
  box-shadow: none;
}

.donation-goal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 1rem;
  align-items: stretch;
}

.donation-progress-panel,
.donation-account-panel,
.donation-milestone-panel,
.recent-legends-panel,
.top-donor-panel,
.donation-support-card {
  min-width: 0;
}

.donation-progress-panel {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(145deg, rgba(142, 242, 208, 0.08), rgba(34, 211, 238, 0.035)),
    var(--surface);
}

.donation-progress-panel h2,
.donation-account-panel h2,
.donation-milestone-panel h2,
.recent-legends-panel h2,
.top-donor-panel h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.donate-progress-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.donate-progress-numbers strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 0.95;
}

.donate-progress-numbers span {
  color: var(--ink-3);
  font-weight: 900;
}

.goal-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.donation-account-panel {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.donation-account-panel > .chip {
  justify-self: start;
}

.donation-support-section,
.donation-checkout-section {
  min-width: 0;
}

.donate-section-heading {
  margin-bottom: 1rem;
}

.donate-section-heading > .chip {
  max-width: 100%;
  text-align: right;
  overflow-wrap: anywhere;
}

.donation-support-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.donation-support-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.donation-support-card h3,
.donation-support-card p {
  margin: 0;
}

.donation-support-card p {
  color: var(--ink-2);
  font-size: 0.93rem;
}

.donation-checkout-section {
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(10, 16, 32, 0.72);
  border: 1px solid rgba(142, 242, 208, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.donate-checkout-form {
  display: grid;
  gap: 1rem;
}

.donation-amount-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.donation-option {
  position: relative;
  min-width: 0;
}

.donation-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.donation-option label {
  position: relative;
  display: grid;
  min-height: 188px;
  align-content: start;
  gap: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22);
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.donation-option label:hover,
.donation-option input:focus-visible + label {
  border-color: rgba(142, 242, 208, 0.68);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.24), 0 0 0 3px rgba(142, 242, 208, 0.2);
  transform: translateY(-2px);
}

.donation-option input:checked + label {
  background:
    linear-gradient(180deg, rgba(142, 242, 208, 0.14), rgba(34, 211, 238, 0.045)),
    var(--surface);
  border-color: rgba(142, 242, 208, 0.82);
}

.donation-option-tag,
.donation-option-title,
.donation-option-note {
  min-width: 0;
}

.donation-option-tag {
  justify-self: start;
  padding: 0.25rem 0.5rem;
  color: var(--mint);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: var(--radius-pill);
  font-family: var(--mono-font);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.donation-option-price {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
}

.donation-option-title {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.donation-option-note {
  margin-top: auto;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 800;
}

.donor-display-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 0.85rem;
  align-items: end;
}

.donor-display-field,
.donor-visibility-field {
  min-width: 0;
}

.donor-display-field label,
.donor-visibility-field legend {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink-3);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.donor-display-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.donor-display-field input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.donor-visibility-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.donor-visibility-field legend {
  flex-basis: 100%;
}

.donor-visibility-field label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.donor-visibility-field label:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.donation-submit {
  min-height: 54px;
}

.donation-milestone-panel {
  display: grid;
  gap: 1rem;
}

.milestone-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.55rem;
}

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

.donation-path-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: 1.15rem;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(252, 211, 77, 0.035)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.donation-path-card h2,
.donation-path-card p {
  margin: 0;
}

.donation-path-card p {
  color: var(--ink-2);
}

.donation-public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 1120px) {
  .donation-goal-layout,
  .donation-public-grid {
    grid-template-columns: 1fr;
  }

  .donation-support-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .donation-amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .donation-hero {
    min-height: 0;
  }

  .donation-hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 7, 13, 0.95) 0%, rgba(5, 7, 13, 0.83) 56%, rgba(5, 7, 13, 0.68) 100%);
  }

  .donation-hero-image {
    object-position: 64% center;
  }

  .donation-hero-copy {
    padding: 2rem 1.25rem;
  }

  .donation-hero h1 {
    font-size: 3.1rem;
  }

  .donation-hero-actions .button,
  .donation-path-card .button {
    width: 100%;
  }

  .donation-hero-proof span {
    flex: 1 1 12rem;
  }

  .donation-support-grid,
  .donation-path-grid {
    grid-template-columns: 1fr;
  }

  .donation-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donor-display-grid,
  .goal-facts {
    grid-template-columns: 1fr;
  }

  .donation-path-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .donation-path-card .button {
    grid-column: 1 / -1;
  }

  .donate-progress-numbers strong {
    font-size: 2.55rem;
  }
}

@media (max-width: 520px) {
  .donation-hero h1 {
    font-size: 2.55rem;
  }

  .donation-hero-copy {
    padding: 1.5rem 1rem;
  }

  .donation-checkout-section,
  .donation-unavailable {
    padding: 1rem;
  }

  .donation-amount-grid {
    grid-template-columns: 1fr;
  }

  .milestone-track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donor-visibility-field label {
    flex: 1 1 100%;
  }
}

/* Production supporter page */
.supporter-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 500px;
  align-items: center;
  overflow: hidden;
  background: #07101a;
  border: 1px solid rgba(252, 211, 77, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.supporter-hero-image,
.supporter-hero-overlay {
  position: absolute;
  inset: 0;
}

.supporter-hero-image {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.supporter-hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.84) 38%, rgba(5, 7, 13, 0.34) 72%, rgba(5, 7, 13, 0.56) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.08), rgba(5, 7, 13, 0.82));
}

.supporter-hero-copy {
  display: grid;
  width: min(720px, 100%);
  gap: 1rem;
  padding: 3rem;
}

.supporter-hero-copy > .chip,
.supporter-account-panel > .chip {
  justify-self: start;
}

.supporter-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: 4.35rem;
  line-height: 0.94;
}

.supporter-hero p {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.supporter-hero-actions,
.supporter-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.supporter-hero-proof {
  margin-top: 0.35rem;
}

.supporter-hero-proof span {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.8rem;
  color: var(--ink-2);
  background: rgba(10, 16, 32, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.supporter-hero-proof strong {
  color: var(--ink);
}

.supporter-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.supporter-value-panel,
.supporter-account-panel {
  display: grid;
  min-width: 0;
  gap: 0.9rem;
  align-content: start;
}

.supporter-value-panel {
  background:
    linear-gradient(145deg, rgba(142, 242, 208, 0.09), rgba(34, 211, 238, 0.04)),
    var(--surface);
}

.supporter-value-panel h2,
.supporter-value-panel p,
.supporter-account-panel h2,
.supporter-account-panel p {
  margin: 0;
}

.supporter-value-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.supporter-account-panel {
  border-color: rgba(252, 211, 77, 0.2);
}

.supporter-account-panel[data-account-tone="ready"],
.supporter-account-panel[data-account-tone="active"] {
  border-color: rgba(142, 242, 208, 0.34);
  background:
    linear-gradient(145deg, rgba(142, 242, 208, 0.1), rgba(34, 211, 238, 0.035)),
    var(--surface);
}

.supporter-section-heading {
  margin-bottom: 1rem;
}

.supporter-section-heading > .chip {
  max-width: 100%;
  text-align: right;
  overflow-wrap: anywhere;
}

.supporter-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.supporter-tier-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(10, 16, 32, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.supporter-tier-card:hover {
  border-color: rgba(142, 242, 208, 0.42);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.supporter-tier-card-mastercraft {
  border-color: rgba(252, 211, 77, 0.36);
  background:
    linear-gradient(180deg, rgba(252, 211, 77, 0.1), rgba(34, 211, 238, 0.025)),
    rgba(10, 16, 32, 0.78);
}

.supporter-tier-card.is-active {
  border-color: rgba(142, 242, 208, 0.72);
}

.supporter-tier-media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-width: 0;
  overflow: hidden;
  background: var(--surface-2);
}

.supporter-tier-media .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.supporter-tier-badges {
  position: absolute;
  inset: 0.85rem 0.85rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.supporter-tier-card-mastercraft .badge {
  background: var(--sun-soft);
  border-color: rgba(252, 211, 77, 0.44);
  color: var(--sun);
}

.supporter-tier-copy {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
}

.supporter-tier-copy h3,
.supporter-tier-copy p {
  margin: 0;
}

.supporter-tier-copy h3 {
  font-size: 1.55rem;
}

.supporter-tier-copy > div:first-child {
  display: grid;
  gap: 0.45rem;
}

.supporter-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.supporter-price-line strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 0.95;
}

.supporter-price-line span {
  color: var(--ink-3);
  font-weight: 900;
}

.supporter-tier-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supporter-tier-facts div {
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.supporter-tier-facts dd {
  font-size: 0.92rem;
  font-weight: 900;
}

.supporter-perk-list {
  margin-top: 0.1rem;
}

.supporter-tier-form,
.supporter-tier-action {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0 1rem 1rem;
}

.supporter-tier-card .button {
  white-space: normal;
}

.supporter-comparison {
  min-width: 0;
}

.supporter-comparison-grid {
  display: grid;
  gap: 0.6rem;
}

.supporter-comparison-header,
.supporter-comparison-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(100px, 0.72fr) minmax(160px, 1fr) minmax(130px, 0.9fr) minmax(130px, 0.9fr) minmax(150px, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.supporter-comparison-header {
  padding: 0 1rem;
  color: var(--ink-3);
  font-family: var(--mono-font);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.supporter-comparison-row {
  min-width: 0;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.075), rgba(252, 211, 77, 0.03)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.supporter-comparison-row span {
  min-width: 0;
  color: var(--ink-2);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.supporter-comparison-row strong {
  color: var(--ink);
}

.supporter-comparison-row em {
  display: block;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-style: normal;
}

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

.supporter-notes-grid > .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.supporter-note-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-width: 0;
}

.supporter-note-card h3,
.supporter-note-card p {
  margin: 0;
}

.supporter-note-card p {
  color: var(--ink-2);
  font-size: 0.93rem;
}

.supporter-final-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(252, 211, 77, 0.12), rgba(34, 211, 238, 0.055)),
    rgba(10, 16, 32, 0.72);
  border: 1px solid rgba(252, 211, 77, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.supporter-final-cta h2,
.supporter-final-cta p {
  margin: 0;
}

.supporter-final-cta > div:first-child {
  display: grid;
  max-width: 42rem;
  gap: 0.35rem;
}

@media (max-width: 1120px) {
  .supporter-intro-grid,
  .supporter-tier-grid {
    grid-template-columns: 1fr;
  }

  .supporter-tier-card {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .supporter-tier-media {
    grid-row: 1 / span 2;
    height: 100%;
    min-height: 360px;
    aspect-ratio: auto;
  }

  .supporter-tier-form,
  .supporter-tier-action {
    grid-column: 2;
  }

  .supporter-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supporter-comparison-header {
    display: none;
  }

  .supporter-comparison-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supporter-comparison-row span::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.18rem;
    color: var(--ink-3);
    font-family: var(--mono-font);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }
}

@media (max-width: 760px) {
  .supporter-hero {
    min-height: 0;
  }

  .supporter-hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.86) 56%, rgba(5, 7, 13, 0.7) 100%);
  }

  .supporter-hero-image {
    object-position: 66% center;
  }

  .supporter-hero-copy {
    padding: 2rem 1.25rem;
  }

  .supporter-hero h1 {
    font-size: 3.05rem;
  }

  .supporter-hero-actions .button {
    width: 100%;
  }

  .supporter-hero-proof span {
    flex: 1 1 12rem;
  }

  .supporter-value-facts,
  .supporter-tier-facts {
    grid-template-columns: 1fr;
  }

  .supporter-tier-card {
    grid-template-columns: 1fr;
  }

  .supporter-tier-media {
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .supporter-tier-form,
  .supporter-tier-action {
    grid-column: auto;
  }

  .supporter-comparison-row,
  .supporter-notes-grid {
    grid-template-columns: 1fr;
  }

  .supporter-final-cta .button-row,
  .supporter-final-cta .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .supporter-hero-copy,
  .supporter-tier-copy,
  .supporter-tier-form,
  .supporter-tier-action {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .supporter-hero h1 {
    font-size: 2.55rem;
  }

  .supporter-price-line strong {
    font-size: 2.1rem;
  }

  .supporter-comparison-row,
  .supporter-final-cta {
    padding: 1rem;
  }
}

/* ============================================================
   ARK TEK HUD — shared component polish (token retheme above
   carries the palette/type; this layer adds the chamfered,
   bracketed, Element-energy detailing). Appended last so it
   wins by cascade order without editing markup. No scanlines.
   ============================================================ */

/* ---- Buttons: chamfered, uppercase, Element-lit ---- */
.button {
  position: relative;
  border-radius: 0;
  font-family: var(--body-font);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: none;
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 44%);
  clip-path: inherit;
}

.button-primary {
  background: var(--primary);
  color: #04222c;
  filter: drop-shadow(0 3px 0 var(--primary-deep)) drop-shadow(0 0 14px rgba(53, 224, 255, 0.4));
}

.button-secondary {
  background: rgba(120, 190, 240, 0.08);
  border-color: var(--line-strong);
  color: var(--ink);
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45));
}

.button-secondary::after {
  display: none;
}

.button-danger {
  background: var(--coral);
  color: #fff;
  filter: drop-shadow(0 3px 0 var(--coral-deep)) drop-shadow(0 0 14px rgba(255, 122, 77, 0.35));
}

.button:hover:not(:disabled) {
  filter: drop-shadow(0 3px 0 var(--primary-deep)) drop-shadow(0 0 20px rgba(53, 224, 255, 0.6)) brightness(1.06);
}

.button-secondary:hover:not(:disabled) {
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45)) brightness(1.12);
}

.button-danger:hover:not(:disabled) {
  filter: drop-shadow(0 3px 0 var(--coral-deep)) drop-shadow(0 0 20px rgba(255, 122, 77, 0.5)) brightness(1.06);
}

/* ---- Chips / badges / pills: machined tags ---- */
.chip,
.badge,
.status-pill {
  border-radius: 0;
  font-family: var(--mono-font);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.chip-primary,
.badge {
  border-color: rgba(53, 224, 255, 0.35);
}

.chip-mint {
  border-color: rgba(132, 255, 87, 0.35);
}

.chip-sun,
.status-pill {
  border-color: rgba(255, 179, 71, 0.35);
}

.chip-coral {
  border-color: rgba(255, 122, 77, 0.35);
}

/* ---- HUD corner-brackets on framed surfaces ---- */
.stat-card,
.shard-pack-card,
.supporter-tier-card,
.shop-product-card {
  position: relative;
}

.stat-card::before,
.shard-pack-card::before,
.supporter-tier-card::before,
.shop-product-card::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-left: 2px solid var(--primary);
  border-top: 2px solid var(--primary);
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

.stat-card::after,
.shard-pack-card::after,
.supporter-tier-card::after,
.shop-product-card::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--primary);
  border-top: 2px solid var(--primary);
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

/* ---- Eyebrows read as Element telemetry ---- */
.eyebrow {
  color: var(--tek);
  letter-spacing: 0.16em;
}

/* ---- Identity pill + balance pills: chamfered HUD chips ---- */
.identity-pill {
  border-radius: 0;
  background: rgba(53, 224, 255, 0.08);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.identity-pill:hover,
.identity-trigger[aria-expanded="true"] {
  background: rgba(53, 224, 255, 0.14);
  border-color: rgba(53, 224, 255, 0.42);
}

.balance-pill {
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* ---- Primary nav: Element underglow on the active route ---- */
.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(53, 224, 255, 0.1);
  color: var(--ink);
}

.site-nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--primary);
}

/* ---- Segmented control: Element-lit active segment ---- */
.segmented-control button.is-active {
  background: var(--primary-soft);
  border-color: rgba(53, 224, 255, 0.4);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(53, 224, 255, 0.3);
}

/* ---- Funding / donation progress: Element charge bar ---- */
.funding-fill {
  background: linear-gradient(90deg, var(--mint) 0%, var(--tek) 55%, var(--violet) 100%);
  box-shadow: 0 0 18px rgba(53, 224, 255, 0.5);
}

/* ---- Footer hex mark: Element core ---- */
.footer-logo-mark::after {
  background: linear-gradient(135deg, var(--tek), var(--violet));
  box-shadow: 0 0 18px rgba(53, 224, 255, 0.45);
}

/* ---- Hero gradient retints: obsidian + Element/violet wash ---- */
.home-shop-hero {
  background:
    radial-gradient(ellipse at 22% 0%, rgba(53, 224, 255, 0.3), transparent 52%),
    radial-gradient(ellipse at 80% 36%, rgba(124, 77, 255, 0.22), transparent 56%),
    linear-gradient(180deg, #0f1c28 0%, #0b0f16 100%);
}

.shards-hero {
  background:
    radial-gradient(ellipse at 18% 4%, rgba(132, 255, 87, 0.16), transparent 44%),
    radial-gradient(ellipse at 78% 40%, rgba(53, 224, 255, 0.26), transparent 56%),
    linear-gradient(135deg, #0f1c28 0%, #0b0f16 96%);
}

/* ---- Header wallet badge: linked player's live Shard balance ---- */
.wallet-badge {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem 0.35rem 0.55rem;
  background: rgba(53, 224, 255, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono-font);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4), inset 0 0 14px rgba(53, 224, 255, 0.12);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.wallet-badge:hover {
  background: rgba(53, 224, 255, 0.16);
  border-color: rgba(53, 224, 255, 0.42);
  transform: translateY(-1px);
}

.wallet-badge .shard-icon {
  width: 18px;
  height: 18px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.26),
    0 0 10px rgba(53, 224, 255, 0.5);
}

.wallet-amount {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
