@import url("https://fonts.googleapis.com/css?family=Montserrat");

/* Theme tokens */
:root {
  --background-color: #0b0d10;
  --text-color: #f5f5f5;
  --card-background: #1f2329;
  --accent: #c68b25;
}

/* Global styles */
html,
body {
  background: var(--background-color);
  color: var(--text-color);
}

body {
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Убираем стандартный отступ Bulma для фиксированного navbar */
body.has-navbar-fixed-top {
  padding-top: 0 !important;
}

a {
  color: var(--accent);
}

a:hover {
  color: #ffa500;
}

/* Logo above cards */
.theme-image {
  display: block;
  width: 100%;
  max-width: 840px;
  height: 400px;
  margin: 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.theme-image-light {
  display: none;
}

.theme-image-dark {
  background-image: url("static/img/st.png");
}

/* Cards */
.card.unique-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card-background);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card.unique-card .card-content {
  padding: 1.75rem;
}

.card.unique-card .card-footer {
  margin-top: auto;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card.unique-card .title {
  color: #fff;
}

.card.unique-card a {
  color: var(--accent);
}

.card.unique-card a:hover {
  color: #ffa500;
}

/* Icon spacing */
.icon-spacer {
  margin-right: 0.65rem;
}

/* Anchor offset */
.rank-anchor {
  display: block;
  position: relative;
  top: -70px;
  visibility: hidden;
}

/* Background grid */
#game-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  filter: blur(4px);
}

header,
main {
  position: relative;
  z-index: 1;
}

#game {
  margin: auto;
  border-collapse: collapse;
  pointer-events: none;
}

#game .cell {
  width: 10px;
  height: 10px;
}

#game .cell.alive {
  background-color: #1e6842;
}

#overlay {
  position: fixed;
  inset: 0;
  pointer-events: auto;
}

/* Layout spacing */
main {
  padding-bottom: 0;
}

.section:first-of-type {
  padding-top: 1rem;
}

/* Clan leaders row */
.clan-leaders {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 1rem;
  flex-wrap: wrap;
}

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

.leader-role {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.leader-name {
  margin-bottom: 0.5rem;
}

/* Mobile tweaks */
@media screen and (max-width: 768px) {
  .theme-image {
    max-width: 100%;
    height: 240px;
  }

  .card.unique-card .card-content {
    padding: 1.25rem;
  }

  .clan-hero {
    gap: 0.75rem;
  }

  .leader-card.small .tee {
    font-size: 0.45px;
  }

  .logo-center img {
    max-width: 160px;
  }
}

@media screen and (max-width: 480px) {
  .theme-image {
    height: 180px;
  }

  .clan-hero {
    flex-direction: column;
    align-items: center;
  }

  .leader-card.small .tee {
    font-size: 0.38px;
  }
}

.responsive-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.responsive-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
