/* Import Space Grotesk font */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #050814;
  --bg-soft: #0b1020;
  --card-bg: #12192b;
  --accent: #ffdd00;
  --accent-blue: #0057b7;
  --text-main: #ffffff;
  --text-muted: #c8d0e0;
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #17254a 0, #050814 55%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* Header */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(0, 87, 183, 0.7);
  background: transparent;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-main);
  text-transform: none;
  display: flex;
  align-items: center;
}

.logo-text div {
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  background: radial-gradient(circle at top left, rgba(4, 9, 24, 0.95), rgba(4, 9, 24, 0.85));
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.language-switcher button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  font-size: 11px;
  white-space: nowrap;
}

.language-switcher button span.flag {
  font-size: 13px;
}

.language-switcher button.active {
  background: linear-gradient(135deg, rgba(0, 87, 183, 0.9), rgba(255, 221, 0, 0.95));
  color: #02030a;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 87, 183, 0.6);
  transform: translateY(-1px);
}

.language-switcher button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
}

/* Layout */

main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 8px;
}

section {
  background: rgba(1, 5, 18, 0.66);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
}

section + section {
  margin-top: 4px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Hero */

#hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 24px;
  align-items: center;
  background: radial-gradient(circle at top left, #17254a 0, #050814 55%);
  position: relative; 
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(circle at 20% 0, rgba(0, 87, 183, 0.18), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(255, 221, 0, 0.16), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(1, 5, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 12px;
}

.hero-badge span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #00ff94, #008f54);
  box-shadow: 0 0 8px rgba(0, 255, 148, 0.8);
}

.hero-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, rgba(0, 87, 183, 1), rgba(255, 221, 0, 0.96));
  color: #02030a;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 87, 183, 0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 87, 183, 0.9);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 9, 24, 0.7);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
  background: rgba(4, 9, 24, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-note {
  margin-top: 10px;
  padding-top: 6px;
  font-size: 12px;
  color: rgba(210, 220, 240, 0.62);
  line-height: 1.42;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
  max-width: 540px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  padding: 10px;
}

.hero-card {
  background: radial-gradient(circle at top, #1e2b52 0, #050814 52%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle at 10% 0, rgba(0, 87, 183, 0.2), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(255, 221, 0, 0.18), transparent 50%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hero-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.6);
  color: var(--text-muted);
}

.hero-card-main {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.hero-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-card-text {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-photo {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

/* Progress mini */

.hero-card-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  margin-top: 2px;
}

.hero-progress-bar {
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent));
  box-shadow: 0 0 14px rgba(0, 87, 183, 0.9);
}

/* Generic text */

p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-main);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.bullet-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
}

.bullet-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 87, 183, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.bullet-content-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.bullet-content-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Donate */

.donate-amount {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.donate-methods {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(4, 9, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.donate-methods strong {
  font-size: 14px;
}

/* Updates */

#updates {
  overflow: hidden;
}

.updates-subtitle {
  margin-bottom: 12px;
}

.updates-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-blue) rgba(0, 0, 0, 0.4);
}

.updates-track::-webkit-scrollbar {
  height: 6px;
}

.updates-track::-webkit-scrollbar-track {
  background: rgba(2, 5, 15, 0.8);
}

.updates-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(0, 87, 183, 0.9), rgba(255, 221, 0, 0.9));
  border-radius: 999px;
}

.update-card {
  min-width: 260px;
  max-width: 320px;
  background: rgba(3, 9, 24, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.update-tag {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.update-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.update-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Contacts & footer */

#contacts a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  color: var(--accent);
}

footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

footer strong {
  color: var(--text-main);
}

/* Buttons generic */

.btn-link {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

/* Responsive */

@media (max-width: 900px) {
  #hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero-visual {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .language-switcher {
    align-self: flex-end;
  }

  section {
    padding: 18px 14px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-card {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  }
}

.btn-primary {
  background: linear-gradient(90deg, #FFCC00, #FFB300);
  color: #000;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 204, 0, 0.45);
}

.hero-actions a:first-child {
  flex-grow: 1;
}

.hero-actions button.btn-primary {
  width: 100%;
  max-width: 340px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.hero-actions a:last-child button {
  width: 100%;
  max-width: 340px;
}

/* === FUNDRAISER PROGRESS BAR === */

.hero-progress-block {
  margin-top: 12px;
  margin-bottom: 14px;
}

.hero-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 600;
}

.hero-progress {
  position: relative;
  width: 100%;
  height: 12px;
  background: #e9e9e9;
  border-radius: 6px;
  overflow: hidden;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffcc00, #ffaa00);
  border-radius: 6px;
  transition: width 0.8s ease;
}

/* === FUNDRAISER PROGRESS BAR (hero card) === */

.hero-card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero-progress-block {
  margin-top: 10px;
  margin-bottom: 14px;
}

.hero-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 600;
}

.hero-progress {
  position: relative;
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffdd00, #ff9f1a);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 221, 0, 0.8);
  transition: width 0.8s ease;
}

.hero-progress-meta {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.8;
}

/* HERO perks strip */
.hero-perks-inline {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  position: relative;
}

.hero-perk-item {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(4, 9, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-perk-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.hero-perk-accent {
  background: radial-gradient(circle at top left,
    rgba(255, 221, 0, 0.18),
    rgba(4, 9, 24, 0.95)
  );
  border-color: rgba(255, 221, 0, 0.8);
  color: var(--text-main);
  font-weight: 600;
}

.hero-perk-accent .hero-perk-icon {
  font-size: 13px;
}

.hero-perk-accent:hover {
  background: radial-gradient(circle at top left,
    rgba(255, 221, 0, 0.26),
    rgba(4, 9, 24, 0.98)
  );
  border-color: rgba(255, 221, 0, 1);
  color: var(--text-main);
}


/* Intro section layout */

#intro {
  position: relative;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 24px;
  align-items: flex-start;
}

.intro-text p + p {
  margin-top: 8px;
}

.intro-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Фото-карти в блоці Why Drones4UA.org? */

.intro-photo-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top, rgba(23, 37, 74, 0.8), rgba(5, 8, 20, 0.98));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

.intro-photo-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.intro-photo-caption {
  position: relative;
  padding: 8px 12px 10px;
  font-size: 12px;
  color: var(--text-muted);
  background: linear-gradient(
    180deg,
    rgba(2, 5, 15, 0.4),
    rgba(2, 5, 15, 0.9)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Трохи адаптивності для Intro */

@media (max-width: 900px) {
  .intro-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-media {
    margin-top: 14px;
  }

  .intro-photo-card img {
    height: 190px;
  }
}

.perk-tooltip {
  position: absolute;
  right: 12px;
  top: 100%;
  margin-top: 8px;
  max-width: 420px;

  background: rgba(4, 9, 24, 0.96);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);

  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 40;
}

.perk-tooltip::before {
  content: "";
  position: absolute;
  right: 40px;
  top: -6px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent rgba(4, 9, 24, 0.96) transparent;
}

.perk-tooltip h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.perk-tooltip p {
  margin-bottom: 8px;
}

.perk-tooltip p:last-child {
  margin-bottom: 0;
}

.perk-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .perk-tooltip {
    left: 0;
    right: 0;
    margin-inline: auto;
    max-width: 100%;
  }

  .perk-tooltip::before {
    right: 24px;
  }
}

/* Wall of Support */

#wall {
  background: rgba(3, 9, 24, 0.96);
}

.wall-meta {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.wall-grid {
  margin-top: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(12, 20, 48, 0.95), rgba(3, 9, 24, 0.98));
  padding: 10px 10px 12px;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr)); /* було 30 колонок */
  grid-auto-rows: 22px;
  grid-auto-flow: dense;
  gap: 4px;
  overflow: hidden;
}

/* Анімація появи цеглинок */
@keyframes wallFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Блок одного донора (сукупність клітинок) */
.wall-block {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  background: linear-gradient(135deg, rgba(0, 87, 183, 0.9), rgba(255, 221, 0, 0.9));
  color: #02030a;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 6px 18px rgba(0, 87, 183, 0.5);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.2s ease,
    border-color 0.2s ease;

  opacity: 0;
  transform: translateY(6px) scale(0.98);
  animation: wallFadeUp 0.45s ease-out forwards;
}

.wall-block a {
  color: inherit;
  text-decoration: none;
}

.wall-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 87, 183, 0.9);
  background: linear-gradient(135deg, rgba(0, 87, 183, 1), rgba(255, 221, 0, 1));
}

/* Silver донори (4+ клітинки) */
.wall-block-silver {
  border-color: rgba(192, 192, 192, 0.9);
  box-shadow:
    0 0 0 1px rgba(192, 192, 192, 0.7),
    0 6px 20px rgba(0, 87, 183, 0.6);
}

.wall-block-silver:hover {
  border-color: rgba(230, 230, 230, 1);
  box-shadow:
    0 0 0 1px rgba(230, 230, 230, 1),
    0 10px 26px rgba(0, 87, 183, 0.8);
}

/* Gold донори (10+ клітинок) */
.wall-block-gold {
  border-color: rgba(255, 215, 0, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.9),
    0 6px 24px rgba(255, 215, 0, 0.85);
}

.wall-block-gold:hover {
  border-color: rgba(255, 235, 150, 1);
  box-shadow:
    0 0 0 1px rgba(255, 235, 150, 1),
    0 12px 30px rgba(255, 215, 0, 0.95);
}

/* Wall info pill under the grid */
.wall-info {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

/* Плашка-лінк з іконкою та тултіпом */
.info-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 9, 24, 0.9);
  color: var(--text-muted);
  font-size: 12px;
  cursor: default;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.info-pill .icon {
  font-size: 14px;
  opacity: 0.85;
}

.info-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* ------- Wide tooltip ------- */
.info-pill[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 99;

  width: 520px;
  max-width: calc(100vw - 40px);

  left: 50%;
  transform: translateX(-50%) translateY(8px);

  bottom: calc(100% + 14px);

  padding: 14px 16px;
  border-radius: 12px;

  background: rgba(5, 8, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;

  opacity: 0;
  pointer-events: none;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.65);
  text-align: left;

  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Стрілочка під тултіпом */
.info-pill[data-tooltip]::before {
  content: "";
  position: absolute;
  z-index: 100;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) rotate(45deg);

  width: 12px;
  height: 12px;
  background: rgba(5, 8, 20, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

/* Активний стан при hover/focus */
.info-pill:hover[data-tooltip]::after,
.info-pill:focus-visible[data-tooltip]::after,
.info-pill:hover[data-tooltip]::before,
.info-pill:focus-visible[data-tooltip]::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Адаптація сітки під екрани */
@media (max-width: 900px) {
  .wall-grid {
    grid-template-columns: repeat(15, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wall-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: 28px;
  }
}
