.homepage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 8px;
}

.left-flow {
  display: grid;
  gap: 8px;
}

.hero-shell {
  --hero-olive: #7a8a3a;
  --hero-olive-mid: #6d7d35;
  --hero-olive-dim: #566328;
  --hero-olive-bright: #8fa052;
  --hero-gold-line: rgba(181, 155, 109, 0.92);

  min-height: min(292px, 26vw);
  padding-bottom: 28px;
  overflow: visible;
  position: relative;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  align-items: center;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(11, 11, 11, 0) 6%,
      rgba(18, 18, 17, 0.22) 42%,
      rgba(13, 13, 13, 0.08) 78%
    );
  pointer-events: none;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 11, 0.5));
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 0 20px 0 min(220px, 22vw);
  max-width: none;
  width: 100%;
}

.hero-title {
  margin: 0 0 8px;
  font-family: "Montserrat", Inter, Arial, sans-serif;
  font-size: clamp(18px, 1.55vw + 8px, 26px);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: #ffffff;
  max-width: 420px;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.72),
    0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-title-accent {
  color: var(--hero-olive-bright);
  text-shadow:
    0 0 14px rgba(122, 138, 58, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.75);
}

.hero-lead {
  margin: 0;
  font-size: clamp(11px, 0.5vw + 9px, 13px);
  font-weight: 400;
  color: rgba(235, 235, 228, 0.88);
  max-width: 340px;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.hero-cta {
  margin-top: 14px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.hero-btn {
  min-height: 32px;
  padding: 0 14px;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.065em;
  border-radius: 6px;
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-weight: 700;
}

.hero-btn-svg {
  display: inline-flex;
  color: inherit;
  flex-shrink: 0;
}

.hero-btn-svg svg {
  display: block;
}

.hero-btn-primary {
  border: 1px solid rgba(110, 125, 60, 0.95);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #8fa34b 0%, var(--hero-olive) 42%, var(--hero-olive-mid) 58%, var(--hero-olive-dim) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 5px rgba(0, 0, 0, 0.42);
}

.hero-btn-primary:hover {
  filter: brightness(1.05);
}

.hero-btn-secondary {
  border: 1px solid var(--hero-gold-line);
  color: #f5f5f3 !important;
  background: rgba(8, 8, 7, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(181, 155, 109, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-btn-secondary:hover {
  background: rgba(14, 12, 9, 0.55);
  border-color: rgba(196, 175, 130, 0.98);
}

/* ── Hero slides carousel ───────────────────────────────── */

.hero-slides {
  display: grid;
  width: 100%;
  min-height: inherit;
}

.hero-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  min-height: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Hero dots (now buttons) ────────────────────────────── */

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-dot {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease, box-shadow 0.25s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 32px;
  background: var(--hero-olive);
  box-shadow: 0 0 8px rgba(122, 138, 58, 0.5);
}

.split-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.section-card {
  padding: 7px;
  border-color: transparent;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 28%),
    linear-gradient(180deg, rgba(8, 10, 10, 0.93), rgba(4, 5, 5, 0.96));
}

.section-card::before {
  display: none;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 25px;
  margin: -2px -2px 7px;
  border-bottom: 1px solid rgba(41, 45, 39, 0.86);
  padding: 2px 3px 6px;
  background: linear-gradient(180deg, rgba(13, 16, 11, 0.38), rgba(6, 8, 7, 0));
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #e2dcc0;
}

.section-header h2::before {
  content: "▣";
  display: inline-block;
  margin-right: 6px;
  font-size: 9px;
  color: #a48d5c;
  transform: translateY(-4px);
}

.section-header a {
  color: #8b956c;
  font-size: 9px;
  line-height: 1;
}

.cards-row {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid rgba(32, 36, 32, 0.95);
  background: rgba(4, 6, 6, 0.42);
}

.mini-card {
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid rgba(35, 40, 35, 0.9);
  border-radius: 1px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 38%),
    linear-gradient(180deg, rgba(14, 16, 14, 0.94), rgba(6, 8, 8, 0.96));
  padding: 6px;
  color: var(--text-muted);
}

.mini-card:last-child {
  border-bottom: 0;
}

.mini-card h3 {
  margin: 0 0 5px;
  color: #e8e0bf;
  font-size: 14px;
  line-height: 1.02;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

.mini-card h3 a {
  color: inherit;
}

.mini-card p {
  margin: 0;
  font-size: 10px;
  line-height: 1.24;
}

.news-card .thumb {
  width: 82px;
  height: 62px;
  border-radius: 1px;
  border: 1px solid #3f4930;
  background:
    linear-gradient(180deg, rgba(7, 9, 8, 0.15), rgba(4, 6, 5, 0.7)),
    url("../images/plaguebase-hero-bg.jpg?v=2601") center / cover no-repeat;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #c3dc48;
  font-family: var(--font-heading);
  font-size: 0;
  text-shadow: none;
}

.thumb-event {
  background:
    linear-gradient(180deg, rgba(44, 22, 9, 0.2), rgba(8, 6, 4, 0.75)),
    url("../images/plaguebase-hero-bg.jpg?v=2601") 40% 35% / cover no-repeat !important;
}

.thumb-skull {
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.18), rgba(5, 6, 6, 0.8)),
    url("../images/plaguebase-hero-bg.jpg?v=2601") 58% 54% / cover no-repeat !important;
}

.thumb-lab {
  background:
    linear-gradient(180deg, rgba(22, 30, 8, 0.24), rgba(5, 6, 5, 0.76)),
    url("../images/plaguebase-hero-bg.jpg?v=2601") 20% 28% / cover no-repeat !important;
}

.news-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
}

.news-body {
  min-width: 0;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 9px;
  color: #8797a8;
}

.forum-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(31, 34, 31, 0.98);
  border-radius: 1px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 12, 11, 0.94), rgba(4, 5, 5, 0.98)),
    rgba(4, 5, 5, 0.72);
}

.forum-item {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(30, 33, 29, 0.98);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 11, 0.92), rgba(5, 6, 6, 0.99));
  padding: 11px 8px 9px;
  text-align: center;
  transition: background 0.12s;
}

.forum-item:nth-child(6n) {
  border-right: 0;
}

.forum-item:hover {
  background:
    linear-gradient(180deg, rgba(16, 18, 15, 0.95), rgba(7, 8, 8, 0.98));
}

.forum-icon {
  width: 34px;
  height: 32px;
  position: relative;
  display: block;
  color: #96a82e;
}

.forum-icon::before,
.forum-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.forum-icon-flask::before {
  left: 13px;
  top: 4px;
  width: 11px;
  height: 18px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.forum-icon-flask::after {
  left: 11px;
  top: 21px;
  width: 15px;
  height: 8px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 9px 9px;
}

.forum-icon-gift::before {
  left: 7px;
  top: 13px;
  width: 24px;
  height: 18px;
  border: 3px solid currentColor;
}

.forum-icon-gift::after {
  left: 5px;
  top: 8px;
  width: 28px;
  height: 7px;
  border: 3px solid currentColor;
  box-shadow: inset 9px 0 0 transparent, 13px 0 0 -10px currentColor;
}

.forum-icon-books::before {
  left: 6px;
  top: 8px;
  width: 7px;
  height: 23px;
  border: 2px solid currentColor;
  box-shadow: 9px 0 0 -2px #0b0d0b, 9px 0 0 0 currentColor, 18px 0 0 -2px #0b0d0b, 18px 0 0 0 currentColor;
}

.forum-icon-shield::before {
  left: 8px;
  top: 5px;
  width: 22px;
  height: 27px;
  background: currentColor;
  clip-path: polygon(50% 0, 92% 16%, 82% 72%, 50% 100%, 18% 72%, 8% 16%);
}

.forum-icon-swords::before,
.forum-icon-swords::after {
  left: 17px;
  top: 4px;
  width: 3px;
  height: 28px;
  background: currentColor;
  transform: rotate(42deg);
  transform-origin: 50% 80%;
}

.forum-icon-swords::after {
  transform: rotate(-42deg);
}

.forum-icon-question::before {
  content: "?";
  inset: 0;
  display: grid;
  place-items: center;
  color: currentColor;
  font-family: "Teko", "Oswald", Arial, sans-serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
}

.forum-item h3 {
  margin: 5px 0 3px;
  font-size: 11px;
  color: #cec8aa;
  text-transform: uppercase;
  font-family: "Teko", "Oswald", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.forum-description {
  margin: 0;
  color: #6a7064;
  font-size: 8px;
  line-height: 1.28;
  min-height: 20px;
  max-width: 122px;
}

.forum-meta {
  margin: auto 0 0;
  padding-top: 4px;
  color: #565b54;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.right-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
}

.side-card {
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(158, 181, 42, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(8, 12, 11, 0.9), rgba(4, 6, 6, 0.94));
}

.promo-card {
  min-height: 162px;
  padding: 14px 14px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    linear-gradient(180deg, rgba(9, 12, 11, 0.95), rgba(4, 5, 5, 0.98));
}

.promo-card .side-heading {
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom-color: rgba(54, 58, 48, 0.86);
}

.promo-card .side-icon {
  width: auto;
  height: auto;
  color: #a8c040;
  border: 0;
  background: none;
  font-size: 16px;
}

.promo-card .side-title {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #d8d2b8;
}

.side-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
  color: #ddd8bd;
}

.side-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(68, 78, 43, 0.62);
}

.side-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: #9ab030;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-3px);
}

.side-card p {
  margin: 0;
  color: #9db0c1;
  font-size: 11px;
}

.code-highlight {
  color: #9ed003 !important;
  font-size: 25px;
  letter-spacing: 0.02em;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 18px rgba(177, 209, 35, 0.25);
}

.promo-card .code-highlight {
  margin: 4px 0 10px;
  color: #9ed800 !important;
  font-size: 32px;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 20px rgba(158, 216, 0, 0.3),
    0 1px 0 rgba(0, 0, 0, 0.6);
}

.rewards-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 9px;
  color: #95a7b9;
  font-size: 9px;
  justify-content: center;
}

.promo-card .rewards-row {
  gap: 10px;
  margin: 0 0 14px;
  color: #a8a090;
  font-size: 11px;
  flex-wrap: nowrap;
  justify-content: center;
}

.reward-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 4px;
  vertical-align: -2px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.32), 0 0 7px rgba(190, 216, 72, 0.16);
}

.promo-card .reward-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
}

.reward-gold {
  background: radial-gradient(circle at 35% 30%, #ffd89b, #b86824 58%, #4e210f);
}

.reward-bag {
  border-radius: 4px;
  background: linear-gradient(135deg, #d8d2b1, #79552d 60%, #1d130b);
}

.reward-crystal {
  border-radius: 3px;
  background: linear-gradient(135deg, #a8d8f0, #3a8fb5 50%, #1a4d6e);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 6px rgba(80, 160, 220, 0.2);
}

.side-btn {
  width: 100%;
  min-height: 28px;
}

.promo-card .side-btn {
  min-height: 39px;
  font-size: 14px;
}

.profile-rank {
  margin-top: 4px !important;
  color: #97a175 !important;
  font-size: 11px !important;
}

.profile-card {
  padding: 13px 13px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 28%),
    linear-gradient(180deg, rgba(8, 11, 10, 0.94), rgba(4, 5, 5, 0.98));
}

.profile-card .side-title {
  font-size: 18px;
  color: #e4dec5;
}

.profile-head {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid #3d4238;
  background: #070907;
  object-fit: cover;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 3px;
  color: #9ea895;
}

.profile-stats span {
  display: grid;
  gap: 2px;
  min-height: 0;
  place-items: center;
  border: 0;
  background: transparent;
  text-align: center;
}

.profile-stats small {
  color: #747b70;
  font-size: 9px;
  line-height: 1;
}

.profile-stats strong {
  color: #d8d1b1;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
}

.xp-wrap {
  margin-top: 10px;
}

.xp-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: #a5b5c7;
}

.xp-track {
  margin-top: 4px;
  height: 6px;
  border-radius: 999px;
  background: #1c2733;
  overflow: hidden;
}

.xp-fill {
  display: block;
  width: 73%;
  height: 100%;
  background: linear-gradient(90deg, #7fa804, #b0e014);
}

.profile-actions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 6px;
}

.tab {
  border: 1px solid #303628;
  background: #0d100d;
  color: #899aad;
  border-radius: 0;
  padding: 5px 4px;
  font-size: 9px;
  cursor: pointer;
}

.tab.is-active {
  border-color: #4a6322;
  color: #a8dd19;
  background: #182410;
}

.leaderboard-list {
  margin: 0;
  padding-left: 14px;
  display: grid;
  gap: 0;
}

.leaderboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: #9eb0c2;
  font-size: 10px;
  border-bottom: 1px solid #20251a;
  padding: 5px 0;
}

.leaderboard-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #2e3428;
  background: #0a0d09;
  display: block;
}

.leaderboard-avatar-placeholder {
  background:
    radial-gradient(circle at 50% 38%, #2a3020 30%, transparent 31%),
    #0e1109;
}

.leaderboard-user {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: 2px;
  overflow: hidden;
}

.leaderboard-list a {
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-user small {
  overflow: hidden;
  color: #657267;
  font-size: 8px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-list strong {
  flex-shrink: 0;
  color: #dce4ef;
  font-size: 10px;
}

.guide-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
}

.guide-thumb {
  width: 82px;
  height: 62px;
  border-radius: 1px;
  border: 1px solid #3c402f;
  background:
    linear-gradient(180deg, rgba(10, 12, 10, 0.14), rgba(6, 8, 8, 0.68)),
    url("../images/plaguebase-hero-bg.jpg?v=2601") center / cover no-repeat;
}

.guide-thumb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #bfdc47;
  font-family: var(--font-heading);
  font-size: 0;
  text-shadow: none;
}

.guide-thumb-doctor {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.12), rgba(6, 7, 7, 0.72)),
    url("../images/plaguebase-hero-bg.jpg?v=2601") 26% 32% / cover no-repeat;
}

.guide-thumb-base {
  background:
    linear-gradient(180deg, rgba(15, 18, 10, 0.2), rgba(6, 7, 5, 0.74)),
    url("../images/plaguebase-hero-bg.jpg?v=2601") 54% 46% / cover no-repeat;
}

.guide-thumb-flask {
  background:
    linear-gradient(180deg, rgba(18, 23, 8, 0.22), rgba(5, 6, 5, 0.75)),
    url("../images/plaguebase-hero-bg.jpg?v=2601") 68% 58% / cover no-repeat;
}

.guide-body {
  min-width: 0;
}
