@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&family=Roboto+Mono:wght@400;500;600;700&display=swap');

:root {
  --brown-950: #160d07;
  --brown-900: #211208;
  --brown-850: #2a170b;
  --brown-800: #351d0d;
  --brown-700: #4a2a13;
  --brown-600: #69401f;
  --gold-brown: #966128;
  --green: #8fcf3f;
  --green-light: #b3e862;
  --green-dark: #527a1d;
  --cream: #fff0cf;
  --muted: #d1bea0;
  --line: rgba(177, 122, 55, 0.72);
  --shadow: rgba(18, 8, 2, 0.6);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(105, 64, 31, .18), transparent 42%),
    var(--brown-950);
  color: var(--cream);
  font-family: "Roboto Mono", monospace;
}

a { color: inherit; }

button, a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 50%;
  width: min(1490px, calc(100% - 24px));
  min-height: 84px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) auto auto;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(73, 39, 16, .98), rgba(36, 18, 7, .98));
  border: 2px solid var(--gold-brown);
  box-shadow:
    0 8px 26px rgba(18, 8, 2, .55),
    inset 0 0 0 2px rgba(255, 218, 155, .04);
}

.logo {
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 17px;
  border-right: 1px solid var(--line);
  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.55rem);
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
}

.logo-mark {
  font-size: 2.4rem;
}

.nav {
  display: flex;
}

.nav a {
  min-width: 190px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
}

.nav a:hover {
  color: #182006;
  background: var(--green);
  box-shadow: inset 0 0 0 2px var(--green-light);
}

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
}

.socials a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold-brown);
  background: rgba(23, 13, 6, .42);
  color: var(--green-light);
  font-size: 1.45rem;
  text-decoration: none;
  transition: .18s ease;
}

.socials a:hover {
  color: #182006;
  background: var(--green);
  border-color: var(--green-light);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--green-dark);
}

.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 72vh;
  padding: 135px max(4vw, 30px) 55px;
  display: flex;
  align-items: center;
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center center;
  border-bottom: 2px solid var(--gold-brown);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 11, 4, .87) 0%, rgba(31, 16, 7, .58) 42%, rgba(31, 16, 7, .12) 74%),
    linear-gradient(0deg, rgba(20, 10, 4, .88) 0%, transparent 47%),
    linear-gradient(180deg, rgba(32, 16, 7, .15), rgba(32, 16, 7, .12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cream);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.1rem;
  letter-spacing: .02em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(3rem, 5.3vw, 5.5rem);
  line-height: .88;
  letter-spacing: -.035em;
  text-shadow: 3px 4px 0 rgba(36, 18, 7, .72);
}

h1 span {
  display: block;
  margin-top: 8px;
  color: var(--green);
}

.pixel-frame {
  position: relative;
  border: 2px solid var(--gold-brown);
  background:
    linear-gradient(180deg, rgba(54, 29, 12, .97), rgba(29, 15, 7, .97));
  box-shadow:
    7px 7px 0 rgba(25, 11, 3, .62),
    inset 0 0 0 2px rgba(255, 218, 155, .035);
}

.pixel-frame::before,
.pixel-frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
}

.pixel-frame::before {
  top: -2px;
  left: -2px;
  border-top: 4px solid #bd7a31;
  border-left: 4px solid #bd7a31;
}

.pixel-frame::after {
  right: -2px;
  bottom: -2px;
  border-right: 4px solid #704219;
  border-bottom: 4px solid #704219;
}

.server-card {
  margin-bottom: 16px;
  padding: 20px 24px;
}

.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.label {
  display: block;
  margin-bottom: 9px;
  color: var(--green);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.server-row strong {
  overflow-wrap: anywhere;
}

.server-divider {
  height: 1px;
  margin: 17px 0;
  background: rgba(177, 122, 55, .38);
}

.copy-btn,
.primary-btn,
.secondary-btn {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: .18s ease;
}

.copy-btn,
.primary-btn {
  border: 2px solid var(--green-light);
  background: linear-gradient(180deg, #7dad2c, #537719);
  color: #fff6df;
  text-shadow: 1px 2px 0 rgba(34, 49, 8, .6);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.06);
}

.copy-btn:hover,
.primary-btn:hover {
  background: linear-gradient(180deg, #9edc3f, #668f20);
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 #354c11;
}

.status-row {
  align-items: end;
}

.status-demo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--green-light);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.2rem;
}

.status-demo i {
  width: 15px;
  height: 15px;
  background: var(--green);
  box-shadow: 0 0 11px rgba(143,207,63,.65);
}

.players-demo {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-brown);
  background: rgba(38, 20, 9, .9);
  color: var(--cream);
}

.secondary-btn:hover {
  color: var(--green-light);
  border-color: var(--green);
}

.dashboard {
  width: min(1490px, calc(100% - 26px));
  margin: -6px auto 0;
  padding: 0 0 18px;
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 14px;
}

.panel {
  min-height: 380px;
  padding: 17px;
}

.panel-heading {
  margin-bottom: 17px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--green);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.45rem;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 13px;
}

.news-thumb {
  width: 84px;
  height: 75px;
  border: 2px solid var(--gold-brown);
}

.thumb-one {
  background:
    linear-gradient(rgba(255,172,65,.2), rgba(22,13,6,.25)),
    linear-gradient(135deg, #4d7d20 0 45%, #755022 46% 100%);
}

.thumb-two {
  background:
    linear-gradient(45deg, transparent 35%, rgba(255,255,255,.09) 35% 45%, transparent 45%),
    #8d5a24;
}

.thumb-three {
  background:
    linear-gradient(135deg, transparent 35%, #8fcf3f 36% 49%, transparent 50%),
    #312116;
}

.news-item h3,
.timeline-item h3 {
  margin: 0 0 5px;
  color: var(--green-light);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.13rem;
}

.news-item p,
.timeline-item p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .9rem;
}

.news-item time,
.timeline-item time {
  color: var(--green);
  font-size: .82rem;
}

.panel-link {
  margin-top: 15px;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-brown);
  color: var(--cream);
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.panel-link:hover {
  color: var(--green-light);
  border-color: var(--green);
}

.map-panel {
  display: flex;
  flex-direction: column;
}

.map-preview {
  position: relative;
  flex: 1;
  min-height: 245px;
  overflow: hidden;
  border: 2px solid var(--gold-brown);
  background: #2b1a0c;
}

.map-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 245px;
  display: block;
  border: 0;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 45% 35%, rgba(143,207,63,.2), transparent 34%),
    linear-gradient(145deg, #4c6422, #243416 55%, #18210f);
  pointer-events: none;
}

.map-pattern {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,240,207,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,240,207,.14) 1px, transparent 1px);
  background-size: 25px 25px;
}

.map-placeholder strong {
  position: relative;
  color: var(--green-light);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.7rem;
}

.map-placeholder span {
  position: relative;
  max-width: 330px;
  padding: 8px 22px 0;
  color: var(--cream);
}

.map-btn {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline {
  position: relative;
  padding-left: 35px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 8px;
  left: 10px;
  width: 3px;
  background: var(--green);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item i {
  position: absolute;
  top: 4px;
  left: -31px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--green-light);
  background: var(--green);
  box-shadow: 0 0 9px rgba(143,207,63,.44);
}

.footer {
  width: min(1490px, calc(100% - 26px));
  min-height: 56px;
  margin: 0 auto 16px;
  padding: 11px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
}

.footer span:nth-child(2) {
  color: var(--cream);
}

.toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  padding: 15px 19px;
  transform: translateY(100px);
  opacity: 0;
  border: 2px solid var(--green);
  background: var(--brown-900);
  color: var(--green-light);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.1rem;
  transition: .24s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1150px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: grid;
    align-content: center;
    gap: 5px;
    width: 62px;
    padding: 17px;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    height: 2px;
    background: var(--green);
  }

  .nav {
    position: absolute;
    top: 82px;
    left: -2px;
    right: -2px;
    display: none;
    flex-direction: column;
    background: var(--brown-900);
    border: 2px solid var(--gold-brown);
  }

  .nav.open { display: flex; }

  .nav a {
    min-height: 57px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .socials { display: none; }

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

  .dashboard .panel:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 8px;
    width: calc(100% - 16px);
  }

  .logo {
    padding: 0 12px;
    font-size: .94rem;
  }

  .logo-mark {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 118px 14px 48px;
    background-position: 60% center;
  }

  .hero-overlay {
    background:
      linear-gradient(rgba(22,11,4,.62), rgba(22,11,4,.8)),
      linear-gradient(90deg, rgba(22,11,4,.72), rgba(22,11,4,.25));
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .server-row {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
  }

  .players-demo {
    margin-top: 4px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions > * {
    width: 100%;
  }

  .dashboard {
    width: calc(100% - 16px);
    grid-template-columns: 1fr;
  }

  .dashboard .panel:last-child {
    grid-column: auto;
  }

  .footer {
    width: calc(100% - 16px);
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}


.gallery-section {
  width: min(1490px, calc(100% - 26px));
  margin: 0 auto 18px;
  padding: 24px;
  border: 2px solid var(--gold-brown);
  background:
    linear-gradient(180deg, rgba(54, 29, 12, .97), rgba(29, 15, 7, .97));
  box-shadow:
    7px 7px 0 rgba(25, 11, 3, .62),
    inset 0 0 0 2px rgba(255, 218, 155, .035);
}

.gallery-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.gallery-heading span {
  color: var(--green);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.gallery-heading h2 {
  margin: 4px 0 0;
  color: var(--cream);
  font-family: "Pixelify Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.gallery-heading p {
  max-width: 460px;
  margin-bottom: 3px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 2px solid var(--gold-brown);
  background: var(--brown-850);
  color: var(--cream);
  text-decoration: none;
}

.gallery-item-large {
  grid-row: span 2;
  min-height: 454px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.gallery-item > span {
  position: absolute;
  left: 15px;
  bottom: 15px;
  padding: 8px 11px;
  border: 1px solid var(--green);
  background: rgba(29, 15, 7, .9);
  color: var(--green-light);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.08rem;
}

.gallery-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  border-style: dashed;
  color: var(--muted);
  cursor: default;
}

.gallery-placeholder span {
  position: static;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 3rem;
  text-align: center;
}

.gallery-placeholder small {
  color: var(--muted);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1rem;
}

@media (max-width: 1150px) {
  .nav a {
    min-width: 155px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item-large {
    grid-column: span 2;
    grid-row: auto;
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .gallery-section {
    width: calc(100% - 16px);
    padding: 16px;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item-large {
    grid-column: auto;
    min-height: 280px;
  }

  .gallery-item {
    min-height: 220px;
  }
}


.event-banner {
  position: fixed;
  z-index: 95;
  top: 108px;
  right: max(18px, calc((100vw - 1490px) / 2 + 14px));
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--green);
  background: rgba(33, 18, 8, .95);
  box-shadow: 5px 5px 0 rgba(36, 21, 7, .7);
  color: var(--cream);
  font-family: "Pixelify Sans", sans-serif;
}

.event-banner span {
  color: var(--green);
  font-size: .9rem;
  font-weight: 700;
}

.event-banner strong {
  font-size: 1.05rem;
}

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

.gallery-grid-full .gallery-item {
  min-height: 210px;
}

.gallery-grid-full .gallery-item-wide {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 434px;
}

.gallery-grid-full .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-link {
  margin-top: 6px;
}

@media (max-width: 1150px) {
  .event-banner {
    top: 104px;
  }

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

  .gallery-grid-full .gallery-item-wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .event-banner {
    position: absolute;
    top: 100px;
    left: 16px;
    right: 16px;
    justify-content: center;
  }

  .hero {
    padding-top: 165px;
  }

  .gallery-grid-full {
    grid-template-columns: 1fr;
  }

  .gallery-grid-full .gallery-item-wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }
}


.history-page {
  background:
    radial-gradient(circle at top, rgba(105, 64, 31, .2), transparent 35%),
    var(--brown-950);
}

.subpage-header {
  width: min(1490px, calc(100% - 24px));
  min-height: 84px;
  margin: 12px auto 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 2px solid var(--gold-brown);
  background: linear-gradient(180deg, rgba(73, 39, 16, .98), rgba(36, 18, 7, .98));
}

.history-main {
  width: min(1100px, calc(100% - 24px));
  margin: 34px auto 44px;
}

.history-hero {
  padding: 34px;
  margin-bottom: 30px;
}

.history-hero > span {
  color: var(--green);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.history-hero h1 {
  margin: 9px 0 14px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--cream);
}

.history-hero p {
  max-width: 800px;
  color: var(--muted);
}

.history-hero code {
  color: var(--green-light);
}

.long-timeline {
  position: relative;
  padding-left: 58px;
}

.long-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 19px;
  width: 4px;
  background: linear-gradient(var(--green), var(--green-dark));
}

.long-event {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.long-event::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 22px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--green-light);
  background: var(--green);
  box-shadow: 0 0 13px rgba(143,207,63,.45);
}

.long-date {
  padding-top: 18px;
  color: var(--green-light);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.long-event-card {
  padding: 24px;
  border: 2px solid var(--gold-brown);
  background: linear-gradient(180deg, rgba(54, 29, 12, .97), rgba(29, 15, 7, .97));
  box-shadow: 6px 6px 0 rgba(25, 11, 3, .5);
}

.long-event-card h2 {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.7rem;
}

.long-event-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .subpage-header {
    padding: 14px;
    align-items: stretch;
    flex-direction: column;
  }

  .subpage-header .secondary-btn {
    width: 100%;
  }

  .history-hero {
    padding: 22px;
  }

  .long-timeline {
    padding-left: 42px;
  }

  .long-timeline::before {
    left: 10px;
  }

  .long-event {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .long-event::before {
    left: -40px;
  }

  .long-date {
    padding-top: 0;
  }
}


.news-item-link {
  color: inherit;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.news-item-link:hover {
  background: rgba(143, 207, 63, .08);
  transform: translateX(4px);
}

.news-thumb-image {
  overflow: hidden;
}

.news-thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 8, 3, .95);
  backdrop-filter: blur(10px);
}

.lightbox.open {
  display: flex;
}

.lightbox-stage {
  width: min(86vw, 1500px);
  height: min(84vh, 950px);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100% - 36px);
  object-fit: contain;
  border: 2px solid var(--gold-brown);
  box-shadow: 0 14px 55px rgba(0,0,0,.62);
}

.lightbox-stage figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.05rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 2px solid var(--green);
  background: rgba(33, 18, 8, .95);
  color: var(--green-light);
  font-family: "Pixelify Sans", sans-serif;
  cursor: pointer;
  transition: .18s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--green);
  color: var(--brown-950);
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  width: 62px;
  height: 62px;
  transform: translateY(-50%);
  font-size: 2rem;
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.news-main,
.article-main {
  width: min(1180px, calc(100% - 24px));
  margin: 34px auto 48px;
}

.news-list-hero {
  padding: 34px;
  margin-bottom: 28px;
}

.news-list-hero > span,
.article-category {
  color: var(--green);
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 700;
}

.news-list-hero h1 {
  margin: 7px 0 12px;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.news-list-hero p {
  margin-bottom: 0;
  color: var(--muted);
}

.news-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.news-page-card {
  overflow: hidden;
}

.featured-news {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.news-page-image {
  min-height: 380px;
  overflow: hidden;
}

.news-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.news-page-image:hover img {
  transform: scale(1.025);
}

.news-page-content {
  padding: 25px;
}

.news-page-content time {
  color: var(--green);
}

.news-page-content h2 {
  margin: 10px 0 13px;
  color: var(--green-light);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.8rem;
}

.news-page-content h2 a {
  text-decoration: none;
}

.news-page-content p {
  color: var(--muted);
}

.news-read-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
}

.placeholder-news {
  min-height: 280px;
}

.disabled-link {
  display: inline-flex;
  opacity: .55;
  cursor: default;
}

.article-shell {
  overflow: hidden;
}

.article-header {
  padding: 36px 38px 28px;
}

.article-header time {
  display: block;
  margin: 12px 0 10px;
  color: var(--muted);
}

.article-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .98;
}

.article-hero-image {
  width: 100%;
  max-height: 620px;
  display: block;
  object-fit: cover;
  border-top: 2px solid var(--gold-brown);
  border-bottom: 2px solid var(--gold-brown);
}

.article-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 42px 34px;
  color: #ead9bd;
  font-size: 1.04rem;
  line-height: 1.82;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content p:first-child {
  color: var(--cream);
  font-size: 1.2rem;
  font-weight: 600;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 5px solid var(--green);
  background: rgba(143, 207, 63, .07);
  color: var(--green-light);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.3rem;
  line-height: 1.45;
}

.article-footer {
  padding: 24px 34px 34px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

@media (max-width: 760px) {
  .lightbox-stage {
    width: 94vw;
    height: 78vh;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 16px;
    width: 58px;
    height: 48px;
    transform: none;
  }

  .lightbox-prev { left: calc(50% - 68px); }
  .lightbox-next { right: calc(50% - 68px); }

  .featured-news {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .news-page-grid {
    grid-template-columns: 1fr;
  }

  .news-page-image {
    min-height: 260px;
  }

  .article-header {
    padding: 25px 20px 22px;
  }

  .article-content {
    padding: 28px 20px;
  }

  .article-footer {
    padding: 20px;
    flex-direction: column;
  }

  .article-footer > * {
    width: 100%;
  }
}


.logo-tree {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  image-rendering: pixelated;
  filter: drop-shadow(3px 4px 0 rgba(20, 10, 3, .55));
}

.discord-social svg,
.discord-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}

.discord-social {
  color: #cbd2ff !important;
}

.discord-social:hover {
  background: #5865f2 !important;
  border-color: #8991ff !important;
  color: #fff !important;
  box-shadow: 5px 5px 0 #303a9f !important;
}

.discord-btn {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid #8d96ff;
  background: linear-gradient(180deg, #6874ef, #4450ba);
  color: #fff;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 1px 2px 0 rgba(25, 31, 100, .65);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.06);
  transition: .18s ease;
}

.discord-btn:hover {
  background: linear-gradient(180deg, #7d87ff, #5360d2);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #303a9f;
}

.eyebrow {
  color: var(--cream);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
}

@media (max-width: 760px) {
  .logo-tree {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .discord-btn {
    width: 100%;
  }
}
.status-demo i {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 9px;
  background: currentColor;
  box-shadow: 0 0 11px currentColor;
}

.status-loading {
  color: #e4bc62;
}

.status-online {
  color: var(--green-light);
}

.status-offline {
  color: #e2644f;
}

.status-error {
  color: #d99b57;
}
/* Korekta kafelka artykułu z obrazem na stronie wszystkich newsów */
.news-page-card:not(.featured-news) .news-page-image {
  display: block;
  min-height: 0;
  height: 220px;
}

.news-page-card:not(.featured-news) .news-page-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Przycisk wsparcia Buy Me a Coffee w prawym dolnym rogu sekcji głównej */
.hero {
  position: relative;
}

.bmc-cta {
  position: absolute;
  right: max(22px, calc((100% - 1490px) / 2 + 22px));
  bottom: 22px;
  z-index: 4;
  min-width: 250px;
  min-height: 72px;
  padding: 10px 18px 10px 13px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 3px solid #19120a;
  background: #ffdd00;
  color: #19120a;
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(25, 12, 3, .72), inset 0 0 0 2px rgba(255,255,255,.3);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.bmc-cta:hover {
  background: #ffe94d;
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(25, 12, 3, .72), inset 0 0 0 2px rgba(255,255,255,.4);
}

.bmc-cta-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.bmc-cta-icon svg {
  width: 43px;
  height: 43px;
  fill: currentColor;
}

.bmc-cta-text {
  display: grid;
  line-height: 1.05;
}

.bmc-cta-text small {
  margin-bottom: 5px;
  font-family: Arial, sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.bmc-cta-text strong {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.35rem;
  letter-spacing: .02em;
}

@media (max-width: 900px) {
  .bmc-cta {
    right: 16px;
    bottom: 16px;
    min-width: 218px;
    min-height: 62px;
    padding: 8px 14px 8px 10px;
  }

  .bmc-cta-icon,
  .bmc-cta-icon svg {
    width: 38px;
    height: 38px;
  }

  .bmc-cta-text strong {
    font-size: 1.15rem;
  }
}

@media (max-width: 620px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .bmc-cta {
    position: static;
    width: auto;
    max-width: 100%;
    margin: 18px 2px 0;
    box-sizing: border-box;
    justify-content: center;
  }
}
