:root {
  --site-bg: #050606;
  --site-panel: rgba(7, 10, 10, 0.88);
  --site-panel-soft: rgba(18, 22, 22, 0.82);
  --site-gold: #f4be43;
  --site-gold-bright: #ffe184;
  --site-gold-dark: #9c5f08;
  --site-cream: #fff3d2;
  --site-muted: #c8c0ad;
  --site-line: rgba(244, 190, 67, 0.52);
  --site-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

.collectibles-panel {
  margin-bottom: 1.25rem;
}

.collectibles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.collectible-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: visible;
  border: 1px solid rgba(244, 190, 69, 0.45);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 214, 102, 0.08), rgba(0, 0, 0, 0.55));
}

.collectible-card.locked {
  opacity: 0.58;
  filter: grayscale(0.7);
}

.collectible-card.equipped {
  border-color: rgba(255, 222, 138, 0.95);
  box-shadow: 0 0 28px rgba(244, 190, 69, 0.18);
}

.collectible-art {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 190, 69, 0.28);
  border-radius: 16px 16px 0 0;
  background: radial-gradient(circle at center, rgba(255, 214, 102, 0.18), transparent 62%), rgba(0, 0, 0, 0.35);
}

.collectible-sleeve .collectible-art {
  height: 420px;
}

.collectible-board .collectible-art {
  aspect-ratio: 16 / 9;
}

.collectible-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}

.collectible-board .collectible-art img {
  object-fit: cover;
  padding: 0;
}

.collectible-art span {
  color: var(--site-gold);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.collectible-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0 0 16px 16px;
}

.collectible-body h3,
.collectible-body p {
  margin: 0;
}

.collectible-body h3 {
  color: var(--site-gold);
}

.collectible-pill {
  align-self: flex-start;
  border: 1px solid rgba(244, 190, 69, 0.55);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  color: var(--site-gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

* {
  box-sizing: border-box;
}

.site-page {
  margin: 0;
  min-height: 100%;
  color: var(--site-cream);
  background:
    radial-gradient(circle at 18% -10%, rgba(244, 190, 67, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(255, 225, 132, 0.1), transparent 22rem),
    linear-gradient(180deg, #050606, #0d0f0d 58%, #050606);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 94px;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(244, 190, 67, 0.36);
  background: rgba(3, 4, 4, 0.92);
  backdrop-filter: blur(16px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: max-content;
  color: var(--site-gold);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-brand img {
  width: clamp(64px, 7vw, 98px);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(244, 190, 67, 0.28));
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 2rem);
  flex: 1 1 auto;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a,
.site-footer a {
  color: var(--site-cream);
  opacity: 0.9;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--site-gold-bright);
  opacity: 1;
}

.site-footer .footer-social-logo-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.site-footer .footer-social-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid rgba(244, 190, 67, 0.34);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 18px rgba(244, 190, 67, 0.12);
  transition:
    border-color 0.18s ease,
    filter 0.18s ease,
    transform 0.18s ease;
}

.site-footer .footer-social-logo-link:hover .footer-social-logo,
.site-footer .footer-social-logo-link:focus-visible .footer-social-logo {
  border-color: var(--site-gold-bright);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.site-nav a.has-social-notifications,
.site-footer a.has-social-notifications {
  position: relative;
  color: var(--site-gold-bright);
  opacity: 1;
}

.site-nav a.has-social-notifications::after,
.site-footer a.has-social-notifications::after {
  content: attr(data-social-unread);
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.35rem;
  padding: 0 0.28rem;
  border: 1px solid rgba(255, 225, 132, 0.75);
  border-radius: 999px;
  color: #120c04;
  background: linear-gradient(180deg, #ffe08a, #e29a20);
  box-shadow: 0 0 18px rgba(244, 190, 67, 0.35);
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1;
}

.site-header-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gold-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.35rem;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.gold-button {
  border: 1px solid #ffe08a;
  color: #14100a;
  background: linear-gradient(180deg, #ffe08a, #e29a20);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.38), 0 0 24px rgba(244, 190, 67, 0.22);
}

.outline-button {
  border: 1px solid var(--site-gold);
  color: var(--site-cream);
  background: rgba(0, 0, 0, 0.42);
}

.gold-button:hover,
.outline-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(244, 190, 67, 0.24);
}

.gold-button.small {
  min-height: 40px;
  padding: 0.62rem 1rem;
  font-size: 0.88rem;
}

.danger-button {
  border-color: rgba(255, 118, 118, 0.62);
  color: #ffb3b3;
}

.social-toast-root {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 1000;
  display: grid;
  gap: 0.7rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.social-toast {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(244, 190, 67, 0.62);
  border-radius: 10px;
  color: var(--site-cream);
  background:
    linear-gradient(135deg, rgba(244, 190, 67, 0.14), transparent 42%),
    rgba(5, 6, 6, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 26px rgba(244, 190, 67, 0.14);
  pointer-events: auto;
  animation: socialToastIn 180ms ease-out;
}

.social-toast:hover {
  border-color: var(--site-gold-bright);
  color: var(--site-cream);
}

.social-toast strong {
  color: var(--site-gold-bright);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.social-toast span {
  color: var(--site-muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.social-toast.leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes socialToastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  align-items: center;
  min-height: clamp(560px, 70vh, 820px);
  padding: clamp(2rem, 6vw, 5.5rem);
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.36) 100%),
    radial-gradient(circle at 70% 46%, rgba(244, 190, 67, 0.24), transparent 20rem),
    url("/images/fuzzy_genesis_collage.webp");
  background-size: cover;
  background-position: center;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, var(--site-bg));
}

.home-hero-copy {
  max-width: 760px;
}

.home-hero h1 {
  margin: 0;
  color: #f7f3ea;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  text-shadow: 0 5px 26px rgba(0, 0, 0, 0.6);
}

.home-hero h1 span {
  display: block;
}

.home-hero h1 span:nth-child(-n + 2) {
  color: var(--site-gold);
}

.home-hero p {
  max-width: 600px;
  margin: 1.6rem 0 1.4rem;
  color: #f5eddc;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-emblem {
  justify-self: center;
  width: min(440px, 74vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 4px solid var(--site-gold-bright);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 224, 132, 0.1), rgba(0, 0, 0, 0.84) 62%);
  box-shadow: 0 0 46px rgba(244, 190, 67, 0.36), inset 0 0 45px rgba(244, 190, 67, 0.14);
}

.hero-emblem img {
  width: 76%;
  filter: drop-shadow(0 0 22px rgba(244, 190, 67, 0.28));
}

.site-section,
.dashboard-grid,
.page-hero {
  margin: clamp(1rem, 2vw, 1.4rem);
}

.framed,
.tcg-card,
.page-hero {
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 18, 17, 0.92), rgba(6, 8, 8, 0.92));
  box-shadow: var(--site-shadow);
}

.site-section {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.site-section.compact {
  padding-bottom: clamp(1rem, 2vw, 1.4rem);
}

.section-heading {
  text-align: center;
  margin-bottom: 1.4rem;
}

.section-heading h2,
.page-hero h1,
.tcg-card h2 {
  margin: 0;
  color: var(--site-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading p,
.page-hero p,
.tcg-card p,
.feature-card p,
.news-card p {
  color: var(--site-muted);
  line-height: 1.45;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
}

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

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

.tcg-card {
  padding: 1.25rem;
}

.mode-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mode-card h3,
.feature-card h3,
.news-card h3 {
  margin: 0.75rem 0 0.35rem;
  color: var(--site-gold);
  text-transform: uppercase;
}

.mode-card .gold-button {
  margin-top: auto;
}

.mode-card .disabled-button {
  margin-top: auto;
  cursor: not-allowed;
  opacity: 0.72;
}

.mode-card-disabled .placeholder-art img {
  filter: saturate(0.88) brightness(0.82);
}

.placeholder-art {
  min-height: 170px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 190, 67, 0.48);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 190, 67, 0.24), transparent 36%),
    linear-gradient(135deg, #132023, #110d1d 48%, #1e1007);
  overflow: hidden;
}

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

.placeholder-art span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 2px solid var(--site-gold);
  border-radius: 999px;
  color: var(--site-gold-bright);
  background: rgba(0, 0, 0, 0.54);
  font-size: 2rem;
}

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

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.45rem;
  color: var(--site-gold);
  filter: drop-shadow(0 0 12px rgba(244, 190, 67, 0.18));
}

.feature-icon svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon .feature-fill,
.feature-icon .feature-card-face {
  fill: rgba(244, 190, 67, 0.18);
}

.feature-icon .feature-card-front {
  fill: #050505;
}

.feature-icon .feature-solid {
  fill: currentColor;
  stroke: none;
}

.feature-icon-text {
  display: block;
  color: var(--site-gold);
  font-size: 2.8rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.15fr;
  gap: 1.1rem;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-title-row a {
  color: var(--site-gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(244, 190, 67, 0.2);
}

.news-card.text-only {
  grid-template-columns: 1fr;
}

.news-thumb {
  display: grid;
  place-items: center;
  min-height: 70px;
  overflow: hidden;
  border: 1px solid rgba(244, 190, 67, 0.42);
  border-radius: 8px;
  color: var(--site-gold);
  background: rgba(244, 190, 67, 0.08);
}

.news-thumb img {
  width: calc(100% - 0.45rem);
  height: calc(100% - 0.45rem);
  min-height: 62px;
  object-fit: contain;
  border-radius: 6px;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.news-card-link {
  display: inline-flex;
  width: fit-content;
  color: var(--site-gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card-link:hover,
.news-card-link:focus-visible {
  color: var(--site-gold-bright);
}

.news-page-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.news-page-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: stretch;
  scroll-margin-top: 120px;
}

.news-page-card > img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border: 1px solid rgba(244, 190, 67, 0.42);
  border-radius: 12px;
  background: rgba(244, 190, 67, 0.08);
}

.news-page-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.news-page-card-copy p:not(.site-eyebrow) {
  color: var(--site-muted);
}

.news-page-latest {
  margin-top: 1.1rem;
}

.collection-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.donation-page-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.donation-page-card img {
  width: min(100%, 260px);
  border: 1px solid rgba(244, 190, 67, 0.48);
  border-radius: 12px;
  background: #fff;
}

.donation-page-card p {
  max-width: 560px;
  margin: 0;
  color: var(--site-muted);
}

.donation-address-row {
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: stretch;
  padding: 0.45rem;
  border: 1px solid rgba(244, 190, 67, 0.42);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.48);
}

.donation-page-card code {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  color: var(--site-gold-bright);
  text-align: left;
  overflow-wrap: anywhere;
}

.donation-address-row .gold-button {
  min-height: 40px;
  white-space: nowrap;
}

.mega-copy {
  margin: 0.2rem 0 1rem;
  color: var(--site-cream) !important;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.collection-preview img {
  width: min(100%, 360px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(244, 190, 67, 0.42);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.leaderboard-preview {
  display: grid;
  gap: 0.2rem;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 42px 1fr minmax(96px, auto);
  gap: 0.8rem;
  padding: 0.75rem 0.4rem;
  border-bottom: 1px solid rgba(244, 190, 67, 0.2);
}

.leaderboard-row span:first-child {
  color: var(--site-gold);
  font-weight: 900;
}

.leaderboard-row.heading {
  color: var(--site-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero {
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(8, 8, 8, 0.88)),
    url("/images/fuzzy_genesis_collage.webp") center / cover;
}

.page-hero h1 {
  max-width: 920px;
  color: var(--site-cream);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--site-muted);
  font-size: 1.15rem;
  line-height: 1.5;
}

.site-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--site-gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.placeholder-panel {
  margin: clamp(1rem, 2vw, 1.4rem);
}

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

.stat-grid span {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid rgba(244, 190, 67, 0.24);
  border-radius: 10px;
  background: rgba(244, 190, 67, 0.06);
}

.stat-grid small,
.todo-note {
  color: var(--site-muted);
}

.stat-grid strong {
  color: var(--site-gold-bright);
}

.todo-note {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.deckbuilder-standalone {
  margin: clamp(1rem, 2vw, 1.4rem);
}

.deckbuilder-toolbar,
.deckbuilder-actions,
.deck-saved-actions,
.deck-card-actions,
.deckbuilder-filter-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.deckbuilder-toolbar {
  margin-bottom: 1rem;
}

.deckbuilder-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1fr) minmax(340px, 1.25fr);
  gap: 1rem;
}

.deckbuilder-panel {
  min-height: 360px;
  padding: 1rem;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: rgba(6, 8, 8, 0.9);
}

.deckbuilder-panel-head,
.deck-saved-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.deckbuilder-panel h3 {
  margin: 0.2rem 0 0.8rem;
  color: var(--site-gold);
  text-transform: uppercase;
}

.deckbuilder-field {
  display: grid;
  gap: 0.35rem;
  color: var(--site-muted);
}

.deckbuilder-field input,
.deckbuilder-filter-row input,
.deckbuilder-filter-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(244, 190, 67, 0.34);
  border-radius: 8px;
  color: var(--site-cream);
  background: rgba(0, 0, 0, 0.42);
  padding: 0.65rem 0.75rem;
}

.deckbuilder-filter-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0.65rem 0;
}

.deckbuilder-validation {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.85rem 0;
}

.deckbuilder-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(244, 190, 67, 0.3);
  border-radius: 999px;
  color: var(--site-muted);
  background: rgba(244, 190, 67, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.deckbuilder-chip.playable {
  color: #1b1306;
  background: var(--site-gold);
}

.deckbuilder-chip.invalid {
  color: #fff;
  background: #a63724;
}

.deckbuilder-message {
  color: var(--site-gold-bright);
}

.deckbuilder-saved-list,
.deckbuilder-draft-list,
.deckbuilder-library-list {
  display: grid;
  gap: 0.65rem;
  max-height: 620px;
  overflow: auto;
  padding-right: 0.25rem;
}

.deck-saved-card,
.deck-card-row,
.deck-library-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(244, 190, 67, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.deck-card-row,
.deck-library-card {
  grid-template-columns: 58px 1fr auto;
  align-items: center;
}

.deck-card-thumb {
  width: 58px;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.deck-card-info strong,
.deck-saved-card strong {
  color: var(--site-cream);
}

.small-copy {
  color: var(--site-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.deckbuilder-panel button,
.site-tower-map button {
  border: 0;
  border-radius: 8px;
  min-height: 36px;
  padding: 0.5rem 0.75rem;
  color: #181008;
  background: linear-gradient(180deg, #ffe08a, #d9911c);
  font-weight: 900;
  cursor: pointer;
}

.deckbuilder-panel button.secondary {
  border: 1px solid rgba(244, 190, 67, 0.36);
  color: var(--site-cream);
  background: rgba(244, 190, 67, 0.12);
}

.deckbuilder-panel button:disabled,
.site-tower-map button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tower-overview-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.site-tower-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-height: 620px;
  overflow: auto;
}

.site-tower-floor {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  color: var(--site-cream) !important;
  background: rgba(244, 190, 67, 0.09) !important;
  border: 1px solid rgba(244, 190, 67, 0.24) !important;
}

.site-tower-floor.current {
  box-shadow: 0 0 0 2px var(--site-gold);
}

.site-tower-floor.cleared {
  background: rgba(244, 190, 67, 0.22) !important;
}

.site-tower-floor.boss strong {
  color: var(--site-gold-bright);
}

.account-hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: clamp(1rem, 2vw, 1.4rem);
}

.account-form-grid {
  display: grid;
  gap: 0.9rem;
}

.account-profile-grid,
.account-roadmap {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

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

.account-profile-grid span,
.account-roadmap span {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid rgba(244, 190, 67, 0.24);
  border-radius: 10px;
  background: rgba(244, 190, 67, 0.06);
}

.account-profile-grid small,
.account-roadmap small {
  color: var(--site-muted);
}

.account-profile-grid strong,
.account-roadmap strong {
  color: var(--site-gold-bright);
  overflow-wrap: anywhere;
}

.account-stat-section {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.account-stat-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.account-stat-panel {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(244, 190, 67, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(244, 190, 67, 0.08), rgba(0, 0, 0, 0.2)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 166, 0.04);
}

.account-stat-panel .account-profile-grid {
  margin-bottom: 0;
}

.account-deck-record-section {
  padding-top: 0.15rem;
}

.account-stat-section h3 {
  margin: 0;
  color: var(--site-gold);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-deck-summary-list,
.account-history-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.account-deck-summary-list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.account-deck-summary,
.account-history-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid rgba(244, 190, 67, 0.24);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
}

.account-deck-summary span {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.account-deck-summary span strong {
  color: var(--site-gold-bright);
}

.account-deck-summary small,
.account-history-item small {
  color: var(--site-muted);
}

.account-history-card {
  margin: 0 clamp(1rem, 2vw, 1.4rem) clamp(1rem, 2vw, 1.4rem);
}

.account-history-page-card {
  margin-top: clamp(1rem, 2vw, 1.4rem);
}

.account-history-split {
  margin-top: 1rem;
}

.account-history-item > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-history-item > div:last-of-type {
  justify-content: flex-start;
}

.account-history-item span {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(244, 190, 67, 0.22);
  border-radius: 999px;
  color: var(--site-cream);
  background: rgba(244, 190, 67, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.account-history-table-wrap {
  width: 100%;
  margin-top: 0.85rem;
  overflow-x: auto;
}

.account-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.9rem;
}

.account-history-table th,
.account-history-table td {
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid rgba(244, 190, 67, 0.16);
  text-align: left;
  white-space: nowrap;
}

.account-history-table th {
  color: var(--site-gold);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-history-table td:first-child {
  color: var(--site-gold-bright);
  font-weight: 900;
}

.account-history-table tr.victory td:first-child {
  color: #74ffa9;
}

.account-history-table tr.defeat td:first-child {
  color: #ff8a8a;
}

.account-history-item.victory {
  border-color: rgba(116, 255, 169, 0.35);
}

.account-history-item.defeat {
  border-color: rgba(255, 118, 118, 0.35);
}

.support-hub,
.admin-hub {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.35fr);
  gap: 1rem;
  margin: clamp(1rem, 2vw, 1.4rem);
  align-items: start;
}

.support-card,
.admin-card {
  min-height: 100%;
}

.support-card:nth-child(2),
.admin-wide {
  grid-column: span 2;
}

.support-type-grid,
.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

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

.deckbuilder-field.full {
  grid-column: 1 / -1;
}

.deckbuilder-field select,
.deckbuilder-field textarea {
  width: 100%;
  border: 1px solid rgba(244, 190, 67, 0.34);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--site-cream);
  padding: 0.85rem 0.9rem;
  font: inherit;
  outline: none;
}

.deckbuilder-field textarea {
  min-height: 150px;
  resize: vertical;
}

.support-helper-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--site-muted);
}

.support-ticket-status-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.support-ticket-status-card span {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem;
  border: 1px solid rgba(244, 190, 67, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.support-ticket-status-card span.full {
  grid-column: 1 / -1;
}

.support-ticket-status-card small {
  color: var(--site-muted);
}

.admin-danger-zone {
  border-color: rgba(255, 173, 66, 0.45);
}

.admin-upload-card {
  display: grid;
  gap: 0.9rem;
}

.admin-upload-card .field-label {
  display: grid;
  gap: 0.4rem;
}

.admin-upload-card .gold-button {
  margin-top: 0.25rem;
  width: fit-content;
}

.admin-news-card {
  display: grid;
  gap: 1rem;
}

.admin-news-editor-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(260px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.admin-news-form textarea {
  min-height: 95px;
}

.admin-news-list {
  display: grid;
  gap: 0.75rem;
  max-height: 760px;
  overflow: auto;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-ticket-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.admin-ticket-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(244, 190, 67, 0.24);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.admin-ticket-card h3,
.admin-ticket-card p {
  margin: 0;
}

.admin-ticket-card small {
  color: var(--site-muted);
  overflow-wrap: anywhere;
}

.admin-ticket-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-ticket-meta span {
  border: 1px solid rgba(244, 190, 67, 0.28);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  color: var(--site-gold-bright);
  background: rgba(244, 190, 67, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-attachment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.admin-attachment-preview {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid rgba(244, 190, 67, 0.3);
  border-radius: 14px;
  padding: 0.55rem;
  background: rgba(244, 190, 67, 0.08);
}

.admin-attachment-preview img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(244, 190, 67, 0.34);
}

.admin-attachment-preview div {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.admin-attachment-preview strong,
.admin-attachment-preview small {
  overflow-wrap: anywhere;
}

.admin-attachment-preview a {
  color: var(--site-gold-bright);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-collectibles-card {
  display: grid;
  gap: 1rem;
}

.admin-collectible-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 1rem;
  align-items: start;
}

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

.admin-collectible-form .full,
.admin-collectible-form .checkbox-field {
  grid-column: 1 / -1;
}

.admin-collectible-form textarea {
  min-height: 86px;
}

.admin-collectible-list {
  display: grid;
  gap: 0.7rem;
}

.admin-collectible-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgba(244, 190, 67, 0.22);
  border-radius: 16px;
  padding: 0.7rem;
  background: rgba(244, 190, 67, 0.05);
}

.admin-collectible-thumb {
  width: 92px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 190, 67, 0.28);
  border-radius: 12px;
  color: var(--site-muted);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.76rem;
  text-align: center;
}

.admin-collectible-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-note-list {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(244, 190, 67, 0.14);
}

.admin-note {
  border: 1px solid rgba(244, 190, 67, 0.18);
  border-radius: 10px;
  padding: 0.65rem;
  background: rgba(244, 190, 67, 0.05);
}

.admin-note-form {
  margin-top: 0.15rem;
}

.admin-audit-card code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--site-muted);
  font-size: 0.8rem;
}

.admin-user-lookup-result {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

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

.admin-lookup-grid span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(244, 190, 67, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.admin-lookup-grid small {
  color: var(--site-muted);
}

.admin-lookup-grid strong {
  overflow-wrap: anywhere;
}

.tier-hub {
  display: grid;
  gap: 1rem;
  margin: clamp(1rem, 2vw, 1.4rem);
}

.tier-podium {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.tier-podium-card {
  position: relative;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 0.85rem;
  border: 1px solid rgba(244, 190, 67, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at top, rgba(244, 190, 67, 0.18), transparent 58%),
    rgba(0, 0, 0, 0.28);
}

.tier-podium-card img {
  width: min(100%, 92px);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
}

.tier-podium-card strong,
.tier-card-main strong {
  color: var(--site-cream);
}

.tier-podium-card small,
.tier-card-main small,
.tier-metric small {
  color: var(--site-muted);
}

.tier-podium-card span:last-child {
  color: var(--site-gold-bright);
  font-weight: 900;
}

.tier-grid {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tier-card-row {
  display: grid;
  grid-template-columns: 58px 54px minmax(180px, 1fr) repeat(5, minmax(70px, 0.42fr));
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem;
  border: 1px solid rgba(244, 190, 67, 0.22);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.tier-card-row img {
  width: 54px;
  border-radius: 6px;
}

.tier-rank {
  color: var(--site-gold-bright);
  font-weight: 950;
  letter-spacing: 0.06em;
}

.tier-card-main,
.tier-metric {
  display: grid;
  gap: 0.15rem;
}

.tier-metric {
  text-align: center;
}

.tier-metric strong {
  color: var(--site-cream);
}

.tier-metric.score strong {
  color: var(--site-gold-bright);
}

.social-hub {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.2fr) minmax(280px, 0.9fr);
  gap: 1rem;
  margin: clamp(1rem, 2vw, 1.4rem);
  align-items: start;
}

.social-panel {
  min-height: 100%;
}

.social-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.social-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.social-request,
.social-list-item,
.social-share-card {
  width: 100%;
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid rgba(244, 190, 67, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--site-text);
  text-align: left;
}

.social-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-list h3,
.social-request-grid h3 {
  margin: 0 0 0.45rem;
  color: var(--site-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.social-list-item {
  cursor: pointer;
}

.social-friend-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  cursor: default;
}

.social-friend-select {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  box-shadow: none;
}

.social-remove-friend {
  align-self: center;
  border-color: rgba(255, 118, 118, 0.44) !important;
  color: #ffd0d0 !important;
}

.social-remove-friend:hover,
.social-remove-friend:focus-visible {
  background: rgba(255, 118, 118, 0.12) !important;
}

.social-list-item.active,
.social-list-item:hover {
  border-color: rgba(244, 190, 67, 0.72);
  background: rgba(244, 190, 67, 0.12);
}

.social-list-item small,
.social-share-card small {
  color: var(--site-muted);
}

.social-messages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 320px;
  max-height: 460px;
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid rgba(244, 190, 67, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.social-message {
  max-width: 82%;
  align-self: flex-start;
  padding: 0.75rem;
  border: 1px solid rgba(244, 190, 67, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.social-message.mine {
  align-self: flex-end;
  background: rgba(244, 190, 67, 0.14);
  border-color: rgba(244, 190, 67, 0.4);
}

.social-message p {
  margin: 0.35rem 0;
}

.social-message small {
  color: var(--site-muted);
}

.social-message-panel textarea,
.social-panel textarea {
  min-height: 88px;
  resize: vertical;
}

.deck-share-list {
  max-height: 460px;
  overflow-y: auto;
}

.social-share-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.social-share-card p {
  margin: 0.35rem 0 0;
  color: var(--site-muted);
}

.button-row.compact {
  width: auto;
  justify-content: flex-start;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(180px, 0.5fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  border-top: 1px solid rgba(244, 190, 67, 0.34);
  background: rgba(2, 3, 3, 0.9);
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand {
  flex-direction: row !important;
  align-items: center;
}

.footer-brand img {
  width: 76px;
  height: auto;
}

.site-footer strong {
  color: var(--site-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: var(--site-muted);
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .home-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.four,
  .tier-podium,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-emblem {
    width: min(330px, 68vw);
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
  }

  .site-brand {
    width: 100%;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .site-header-actions,
  .button-row {
    width: 100%;
  }

  .gold-button,
  .outline-button {
    width: 100%;
  }

  .donation-address-row {
    grid-template-columns: 1fr;
  }

  .donation-page-card code {
    justify-content: center;
    text-align: center;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2rem 1rem 3rem;
  }

  .hero-emblem {
    order: -1;
    width: min(230px, 68vw);
    margin-bottom: 1.5rem;
  }

  .card-grid.four,
  .card-grid.three,
  .account-hub,
  .account-stat-columns,
  .support-hub,
  .admin-hub,
  .support-type-grid,
  .admin-action-grid,
  .social-hub,
  .social-request-grid,
  .deckbuilder-layout,
  .feature-grid,
  .stat-grid,
  .account-profile-grid,
  .tower-overview-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .tier-podium,
  .tier-card-row {
    grid-template-columns: 1fr;
  }

  .tier-card-row {
    text-align: center;
    justify-items: center;
  }

  .support-card:nth-child(2),
  .admin-wide {
    grid-column: auto;
  }

  .deck-card-row,
  .deck-library-card,
  .news-page-card,
  .social-inline-form,
  .social-share-card,
  .site-tower-map {
    grid-template-columns: 1fr;
  }

  .news-page-card > img {
    min-height: 180px;
  }

  .site-section,
  .dashboard-grid,
  .page-hero,
  .placeholder-panel {
    margin: 0.75rem;
  }

  .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
