@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

/*═══════════════════════════════════════════╕
  BASIC
╘═══════════════════════════════════════════*/

/*═══════│ Variables │═══════*/

:root {
  color-scheme: dark;
  --bg: #0a0d10;
  --panel: #12171a;
  --panel-line: #223034;
  --ink: #e9eef0;
  --dim: #8fa3a8;
  --teal: #4ce0d9;
  --teal-dim: #2a6b68;
  --blood: #b5423a;
  --gold: #d4a24e;
  --purple: #49313A;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/*═══════│ Reset & Base Elements │═══════*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
  padding: 0 0 60px;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 0;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

h2 {
  font-size: 1rem;
  color: #999;
  font-weight: 500;
  margin-top: 36px;
}

canvas {
  max-width: 100%;
}

/*═══════│ Typography & Utility Classes │═══════*/

.skeleton {
  color: var(--dim);
}

.section-title {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 30px 0 4px;
}

.bg {
  background-color: var(--bg);
  background-image: linear-gradient(to bottom, rgba(10, 13, 16, .5) 0, rgba(10, 13, 16, .7) 44%, #0a0d10 79%, var(--bg) 100%), url(/images/Valko.png);
  background-repeat: no-repeat;
  background-position: 50%, 58% 0;
  background-size: cover, 140% auto;

  height: 100vh;
  width: 100vw;
  position: fixed;
  z-index: -1;
}

/*═══════════════════════════════════════════╕
  NAVIGATION & FOOTER
╘═══════════════════════════════════════════*/

/*═══════│ Site Nav │═══════*/

#site-nav {
  background: rgba(18, 23, 26, 0.75);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--panel-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--sans);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.brand:hover {
  color: var(--teal);
}
.brand.active {
  color: var(--teal);
}
.home-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/*═══════│ Footer │═══════*/

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  font-size: 12px;
  color: var(--dim);
}

.footer button {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.footer button:hover {
  text-decoration: underline;
}

.footer button:disabled {
  color: var(--dim);
  cursor: default;
  text-decoration: none;
}

#site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.5rem 20px 2rem;
}

.site-footer-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--dim, #8fa3a8);
  text-align: center;
}

.site-footer-text a {
  color: var(--dim, #8fa3a8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-text a:hover {
  color: var(--teal, #4ce0d9);
}

/*═══════════════════════════════════════════╕
  SHARED COMPONENTS
╘═══════════════════════════════════════════*/

/*═══════│ Intro Overlay │═══════*/

.valko {
  position: relative;
  height: 68vh;
  min-height: 460px;
}

.valko-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5%;
  z-index: 2;
  padding: 0 6vw;
}

.valko-subtitle,
.total-label,
.total-goal {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.valko-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  margin: 0 0 14px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  max-width: 75ch;
}

.valko-desc {
  font-size: clamp(14px, 1.6vw, 17px);
  color: #cfe0e2;
  max-width: 75ch;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin: 0 0 22px;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 10, 0.88);
  backdrop-filter: blur(3px);
  cursor: pointer;
  transition: opacity 0.7s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-inner {
  text-align: center;
  padding: 0 24px;
}

.intro-text {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 44px);
  color: var(--ink);
  margin: 0 0 14px;
  text-shadow: 0 0 28px rgba(76, 224, 217, 0.35);
}

.intro-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
  animation: intro-pulse 2.2s ease-in-out infinite;
  border: 1px solid;
  padding: 1rem 0;
  border-radius: 10px;
  background-color: rgba(76, 224, 217, 0.3);
}

@keyframes intro-pulse {
  0%, 100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

/*═══════│ Media Player │═══════*/

.preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 23, 26, 0.65);
  border: 1px solid rgba(76, 224, 217, 0.4);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  padding: 11px 20px 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.preview-btn:hover {
  border-color: var(--teal);
  background: rgba(18, 23, 26, 0.85);
}

.preview-btn .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/*═══════│ Overview Cards │═══════*/

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0 0 1rem 0;
}

.overview-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.overview-card-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.overview-card-number {
  font-size: 2rem;
  font-weight: 700;
}

.overview-card-sub {
  font-size: 0.85rem;
  opacity: 0.6;
}

.overview-card.errored .overview-card-number {
  opacity: 0.4;
}

.overview-card-source {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: var(--dim, #999);
  vertical-align: middle;
}

.overview-card-source:hover {
  color: var(--teal, #4ce0d9);
}

/*═══════│ Trends Chart & Tags │═══════*/

.bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 28px;
  justify-content: center;
}

.bubble {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 14px;
  background: #1a1d27;
  border: 1px solid #2c3040;
  min-width: 160px;
}

a.bubble {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.1s, background 0.15s;
}

a.bubble:hover {
  border-color: var(--teal-dim);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.bubble .bigtag {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--teal);
}

.bubble .tag {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
}

.bubble .count {
  font-size: 1.15rem;
  font-weight: 700;
}

.bubble-breakdown {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #2c3040;
  width: 100%;
}

.bubble-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  color: #aaa;
  padding: 2px 0;
}

.bubble-row span:last-child {
  font-variant-numeric: tabular-nums;
  color: #ddd;
}

.total-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  padding: 30px 26px;
  margin: 15px;
  position: relative;
  z-index: 3;
}

.total-number {
  font-family: var(--mono);
  font-size: clamp(34px, 8vw, 50px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
}

.total-sub {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--dim);
}

.ct-chart-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  padding: 0.9em 1em;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ct-chart-trigger:hover, .ct-chart-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--teal);
}
.ct-chart-trigger svg { width: 1.2em; height: 1.2em; flex: none; }

.ct-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.ct-modal-overlay.open { display: flex; }

.ct-modal {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  height: min(85vh, 640px);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
}
.ct-modal-title {
  margin: 0 2.2em 0.75em 0;
  color: var(--ink);
  font-size: 1.05rem;
}
.ct-modal-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}
.ct-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.ct-modal-close:hover { background: rgba(255, 255, 255, 0.05); }

@media (max-width: 480px) {
  .ct-modal { height: 92vh; padding: 0.75rem; }
}

/*═══════│ Gallery Modal │═══════*/
/*─── public/js/gallery.js───*/

.gal-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.1em;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gal-trigger:hover { border-color: var(--teal); }
.gal-trigger svg { width: 1.1em; height: 1.1em; flex: none; }

.gal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.gal-overlay.open { display: flex; }

.gal-modal {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  width: 100%;
  max-width: 1000px;
  height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  box-sizing: border-box;
}
.gal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.gal-modal-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
}
.gal-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-right: 3rem
}
.gal-filters select {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  padding: 0.4em 0.7em;
  font-size: 0.85rem;
}
.gal-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.gal-modal-close:hover { border-color: var(--teal); }

.gal-grid-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.gal-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gal-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #000;
}
.gal-card-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gal-card-title {
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gal-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.gal-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: rgba(76, 224, 217, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
}
.gal-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.gal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--panel-line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gal-btn:hover { border-color: var(--teal); background: rgba(255,255,255,0.04); }
.gal-btn svg { width: 0.9em; height: 0.9em; flex: none; }
.gal-btn-icon {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
}
.gal-btn-icon svg { width: 1.1em; height: 1.1em; }

.gal-empty {
  color: var(--dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 40px 20px;
}

@media (max-width: 640px) {
  .gal-modal { padding: 0.8rem; height: 92vh; }
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

.gal-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1100;
}
.gal-preview-overlay.open { display: flex; }
.gal-preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.gal-preview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.gal-preview-close:hover { border-color: var(--teal); }

/*═══════│ Share Builder │═══════*/

.share-builder {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f2f2;
  font-family: inherit;
}

.share-builder h2 {
  margin-top: 0
}

.share-builder-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  margin-top: 0.25rem;
}

.share-fieldset {
  border: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.share-fieldset legend {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-bottom: 0.25rem;
  padding: 0;
}

.share-option {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.share-option input {
  accent-color: #a06bff;
  cursor: pointer;
}

.share-subsection {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex-basis: 100%;
  margin-top: 0.3rem;
}

.share-subsection-title {
  flex-basis: 100%;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.55;
  margin: 0.4rem 0 0.1rem;
}

/*─── hashtag checkboxes styled as tag chips ───*/

.share-option:has(.share-hashtag) {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.share-option:has(.share-hashtag):hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.share-option:has(.share-hashtag:checked) {
  background: rgba(160, 107, 255, 0.18);
  border-color: #a06bff;
  color: #fff;
}

.share-hashtag {
  margin-right: 0.4em;
}

.share-textarea {
  width: 100%;
  resize: vertical;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
}

.share-lyric-reroll {
  margin-left: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.share-lyric-reroll:hover {
  opacity: 1;
  transform: rotate(25deg);
}

.share-lyric-reroll:disabled {
  cursor: default;
  opacity: 0.3;
}

.share-image-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--teal, #4ce0d9);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 0 0.6rem;
  display: inline-block;
}

.share-image-link:hover {
  opacity: 0.85;
}

.share-image-link:disabled {
  color: var(--dim, #999);
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.share-preview {
  background: rgba(160, 107, 255, 0.08);
  border-left: 3px solid #a06bff;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 1rem 0;
}

.share-preview p {
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.share-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(160, 107, 255, 0.25);
}

.share-char-count {
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--dim, #8fa3a8);
  transition: color 0.15s ease;
}

.share-char-count.share-char-near {
  color: var(--gold, #d4a24e);
}

.share-char-count.share-char-over {
  color: var(--blood, #b5423a);
  font-weight: 600;
}

.share-char-warning {
  font-size: 0.75rem;
  color: var(--blood, #b5423a);
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.share-copy-btn {
  margin-top: 0;
  background: rgb(76 224 217 / 10%);
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.share-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.share-copy-btn:active {
  transform: scale(0.97);
}

.share-post-to {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.share-section-heading {
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim, #8fa3a8);
  margin: 0 0 0.5rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-buttons-icons {
  gap: 0.5rem;
}

.share-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--teal, #4ce0d9);
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}

.share-icon-btn svg {
  width: 30px;
  height: 30px;
}

.share-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.share-icon-btn:active {
  transform: scale(0.94);
}

.share-fallback-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.9rem;
  margin-top: 0.25rem;
}

.share-buttons-fallback {
  gap: 0.4rem;
}

/*═══════════════════════════════════════════╕
  PAGE SPECIFIC
╘═══════════════════════════════════════════*/

/*═══════│ Streaming │═══════*/

.platform-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.secondary-buttons {
  margin-top: 0;
}

.platform-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 12px 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.1s, background 0.15s;
}

.platform-btn:hover {
  border-color: var(--teal-dim);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.platform-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.platform-btn-count {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.platform-btn-count.err {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--dim);
  text-align: center;
}

.platform-btn.errored {
  opacity: 0.5;
}

.platform-btn.errored:hover {
  transform: none;
  border-color: var(--panel-line);
  background: rgba(255, 255, 255, 0.03);
}

/*═══════│ Campaigns │═══════*/

.campaign-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.campaign-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 18px 20px;
}

.campaign-card.errored {
  opacity: 0.55;
}

.campaign-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.campaign-numbers {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.campaign-count {
  font-family: var(--mono);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.campaign-goal-text {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-dim), var(--teal));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.campaign-sign-link {
  display: inline-block;
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid var(--panel-line);
  padding: 8px 14px;
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.campaign-sign-link:hover {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.04);
}

.error-text {
  font-size: 12px;
  color: var(--dim);
  margin: 0;
}

/*═══════│ Community │═══════*/

.site-subnav {
  position: sticky;
  top: 58px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  background: rgb(0 0 0 / 29%);
  flex-direction: row;
  justify-content: flex-end;
}

.site-subnav a {
  font-family: var(--mono);
  background: rgb(37 35 35 / 94%);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--teal-dim);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-subnav a:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.28);
}

.site-subnav a.active {
  color: var(--teal);
  border-color: var(--teal-dim);
  background: rgb(23 22 22 / 90%);
  font-weight: bold;
}

.site-type-section {
  scroll-margin-top: 110px;
  margin-bottom: 32px;
}

.site-type-heading {
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-line);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-dim);
  box-shadow: 0 20px 38px -16px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-card-header {
  position: relative;
  display: block;
  height: 150px;
  background-color: var(--panel);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

.site-card-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 16, 0.55);
  transition: background 0.25s ease;
}

.site-card:hover .site-card-header::before {
  background: rgba(10, 13, 16, 0.12);
}

.site-card-title {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 10px 16px;
  background: var(--teal);
  font-family: "Oswald", var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  color: #0a0d10;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-card-news .site-card-header {
  height: 190px;
}

.site-card-news .site-card-title {
  font-size: 0.75rem;
}

.site-card-sitename {
  display: inline-block;
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 3px 9px;
  background: rgba(10, 13, 16, 0.75);
  border: 1px solid rgba(76, 224, 217, 0.4);
  border-radius: 4px;
  font-family: "Oswald", var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--teal);
  text-transform: uppercase;
}

.site-card-summary {
  display: block;
  flex: 1;
  padding: 14px 16px 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.85;
}

.site-card-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.site-card-date {
  color: var(--gold);
}

.site-card-langs {
  color: var(--teal);
  margin-left: auto;
  text-align: right;
}