/* =====================================================================
   NoGame.ro — Zombie Plague (Counter-Strike 1.6) landing site
   Single stylesheet. No external fonts, images or CDNs. Works offline.

   Palette
     page bg       #0a0f0a
     panel         #121a12
     border        #2c3a24
     accent        #86c232   (toxic green)
     secondary     #b3231f   (blood red)
     text          #cfd8c2
     muted         #8f9a82

   Breakpoints: ~900px and ~600px
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Reset / base
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0a0f0a;
  color: #cfd8c2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .3px;
  color: #d9e6c6;
}

p { margin: 0 0 1em; }

a { color: #86c232; text-decoration: none; }
a:hover { color: #a4dd56; text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }

code {
  padding: .1em .4em;
  border: 1px solid #2c3a24;
  border-radius: 3px;
  background: rgba(0, 0, 0, .5);
  color: #86c232;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

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

/* ---------------------------------------------------------------------
   2. Layout helpers
   --------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: #8f9a82; }

.section { padding: 56px 0; }

.section-alt {
  background: linear-gradient(180deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0));
  border-top: 1px solid rgba(44, 58, 36, .8);
  border-bottom: 1px solid rgba(44, 58, 36, .8);
}

.section-title {
  margin-bottom: 1.2em;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin: .5rem auto 0;
  background: linear-gradient(90deg, transparent, #86c232 50%, transparent);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.center { text-align: center; }

.empty-note {
  max-width: 640px;
  margin: 0 auto;
  padding: 22px;
  text-align: center;
  color: #8f9a82;
  border: 1px dashed rgba(44, 58, 36, .9);
  border-radius: 4px;
  background: rgba(0, 0, 0, .3);
}

/* ---------------------------------------------------------------------
   3. Dark slabs / panels (left accent border)
   --------------------------------------------------------------------- */
.panel {
  padding: 26px 26px;
  background: #121a12;
  border: 1px solid #2c3a24;
  border-left: 4px solid #86c232;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.panel-title { margin-bottom: .5em; font-size: 1.2rem; }
.panel-text { margin: 0; color: #cfd8c2; }

/* ---------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 24px;
  border: 1px solid #86c232;
  border-radius: 4px;
  background: #86c232;
  color: #0a0f0a;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover {
  background: #a4dd56;
  color: #0a0f0a;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .55);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid #86c232; outline-offset: 2px; }

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .78rem; }

.btn-primary { background: #86c232; color: #0a0f0a; }
.btn-primary:hover { background: #a4dd56; }

.btn-secondary {
  background: transparent;
  border-color: #b3231f;
  color: #e8837f;
}
.btn-secondary:hover {
  background: rgba(179, 35, 31, .18);
  border-color: #b3231f;
  color: #ff9c98;
}

.btn-ghost {
  background: transparent;
  border-color: #2c3a24;
  color: #cfd8c2;
}
.btn-ghost:hover { background: #121a12; color: #86c232; border-color: #86c232; }

/* ---------------------------------------------------------------------
   5. Header
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 10, .93);
  border-bottom: 1px solid rgba(134, 194, 50, .3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  min-height: 64px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Text wordmark (no image dependency) */
.brand {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #cfd8c2;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  color: #cfd8c2;
  text-shadow: 0 0 10px rgba(134, 194, 50, .35);
}
.brand-dot { color: #86c232; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  flex-basis: 100%;
  order: 3;
  justify-content: center;
  margin-left: 0;
  padding-bottom: 4px;
}
.nav-link {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  color: #cfd8c2;
  font-size: .95rem;
  font-weight: 600;
}
.nav-link:hover { color: #86c232; text-decoration: none; }
.nav-link.is-active { color: #86c232; border-bottom-color: #86c232; }

.header-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-left: auto;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  border: 1px solid #2c3a24;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, .45);
}
.lang-opt {
  padding: 5px 11px;
  color: #8f9a82;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
}
.lang-opt:hover { color: #86c232; text-decoration: none; }
.lang-opt.is-active { background: #86c232; color: #0a0f0a; }
.lang-opt.is-active:hover { color: #0a0f0a; }

/* ---------------------------------------------------------------------
   6. Hero (CSS-only background: fog + vignette + ZP watermark)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(76vh, 660px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(134, 194, 50, .14), transparent 62%),
    radial-gradient(ellipse at 50% 120%, rgba(134, 194, 50, .10), transparent 60%),
    #070b07;
  border-bottom: 1px solid rgba(44, 58, 36, .9);
}
/* fog + vignette */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(134, 194, 50, .12), transparent 42%),
    radial-gradient(circle at 82% 74%, rgba(179, 35, 31, .12), transparent 45%),
    radial-gradient(ellipse at 50% 50%, transparent 28%, rgba(0, 0, 0, .8) 100%);
  pointer-events: none;
}
/* faint ZP watermark */
.hero::after {
  content: "ZP";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(200px, 46vw, 620px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  color: rgba(134, 194, 50, .05);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 64px 0;
  background: linear-gradient(180deg, rgba(7, 11, 7, .35) 0%, rgba(7, 11, 7, .55) 60%, rgba(7, 11, 7, .9) 100%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: #dcefbe;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .8), 0 0 34px rgba(134, 194, 50, .25);
}
.hero-subtitle {
  margin: 0;
  color: #86c232;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-tagline {
  margin: 0;
  color: #cfd8c2;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: .03em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  padding: 6px 16px;
  border: 1px solid #2c3a24;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8f9a82;
  box-shadow: 0 0 0 3px rgba(143, 154, 130, .18);
  vertical-align: middle;
}
.is-online .status-dot,
.dot-on { background: #86c232; box-shadow: 0 0 0 3px rgba(134, 194, 50, .22); }
.is-offline .status-dot,
.dot-off { background: #b3231f; box-shadow: 0 0 0 3px rgba(179, 35, 31, .22); }

.status-pill.is-online .status-text { color: #a4dd56; }
.status-pill.is-offline .status-text { color: #e8837f; }

/* Small status line (connect page, top) */
.status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 18px auto 0;
  padding: 8px 16px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #2c3a24;
  border-left: 4px solid #2c3a24;
  border-radius: 4px;
  background: #121a12;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  font-size: .92rem;
  font-weight: 600;
}
.status-line .status-label { color: #8f9a82; }
.status-line.is-online { border-left-color: #86c232; }
.status-line.is-offline { border-left-color: #b3231f; }
.status-line.is-online .status-text { color: #a4dd56; }
.status-line.is-offline .status-text { color: #e8837f; }
.status-line .status-dot { margin-right: 2px; }

/* ---------------------------------------------------------------------
   7. At-a-glance table
   --------------------------------------------------------------------- */
.glance-table {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #2c3a24;
  border-left: 4px solid #86c232;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #121a12;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.glance-table th,
.glance-table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(44, 58, 36, .8);
}
.glance-table tr:last-child th,
.glance-table tr:last-child td { border-bottom: 0; }
.glance-table th {
  width: 42%;
  color: #8f9a82;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
}
.glance-table td { color: #d9e6c6; font-weight: 600; }
.glance-table .status-dot { margin-right: 8px; }

/* Cookie policy page */
.policy { max-width: 880px; margin: 0 auto; }
.policy h2 {
  margin: 1.9em 0 .5em;
  font-size: 1.35rem;
  text-align: left;
}
.policy h2:first-child { margin-top: 0; }
.policy ul { padding-left: 1.25em; margin: 0 0 1em; }
.policy li { margin-bottom: .5em; }
.table-scroll {
  overflow-x: auto;
  border-radius: 4px;
  margin: 0 0 10px;
}
.policy-table {
  width: 100%;
  min-width: 640px;
  border: 2px solid #2c3a24;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #121a12;
  box-shadow: inset 0 0 0 1px #000, 0 2px 8px rgba(0, 0, 0, .6);
}
.policy-table th,
.policy-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(44, 58, 36, .8);
  font-size: .9rem;
}
.policy-table thead th {
  background: rgba(0, 0, 0, .42);
  color: #86c232;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.policy-table tbody tr:last-child td { border-bottom: 0; }
.policy-table td .muted { font-weight: 400; }

/* ---------------------------------------------------------------------
   8. Grids + feature cards
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  background: #121a12;
  border: 1px solid #2c3a24;
  border-left: 4px solid #86c232;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  transition: transform .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-3px); border-left-color: #b3231f; }
.feature-mark {
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #86c232;
}
.feature-title { margin: 0; font-size: 1.15rem; }
.feature-text { margin: 0; color: #8f9a82; font-size: .95rem; }

/* ---------------------------------------------------------------------
   9. Steps (how to connect)
   --------------------------------------------------------------------- */
.steps {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  margin-bottom: 14px;
  background: #121a12;
  border: 1px solid #2c3a24;
  border-left: 4px solid #86c232;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #86c232;
  color: #0a0f0a;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.step-body { min-width: 0; }
.step-title { margin: 0 0 .25em; font-size: 1.1rem; }
.step-text { margin: 0; color: #8f9a82; font-size: .95rem; }

/* Command block */
.cmd {
  margin: 12px 0 0;
  padding: 12px 16px;
  overflow-x: auto;
  background: #060906;
  border: 1px solid #2c3a24;
  border-left: 4px solid #86c232;
  border-radius: 4px;
}
.cmd code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #a4dd56;
  font-size: .95rem;
  white-space: nowrap;
}
.cmd-label {
  margin: 14px 0 0;
  color: #8f9a82;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---------------------------------------------------------------------
   9b. Connect address list (the two addresses: domain + IP)
   --------------------------------------------------------------------- */
.addr-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.addr {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.addr-label {
  flex: 0 0 auto;
  color: #8f9a82;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.addr code {
  font-size: .95rem;
  white-space: nowrap;
}
.glance-table .addr-list { margin-top: 2px; }
.guide-block .addr-list { margin-top: 10px; }

/* ---------------------------------------------------------------------
   10. Community panel
   --------------------------------------------------------------------- */
.community-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 30px;
  text-align: center;
}
.community-panel .panel-text {
  max-width: 560px;
  margin: 0 auto 20px;
  color: #8f9a82;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------------------------------------------------------------------
   11. Inner pages (connect / rules)
   --------------------------------------------------------------------- */
.page-head { padding-bottom: 0; }

.page-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  text-align: center;
}
.lead {
  max-width: 640px;
  margin: 0 auto 8px;
  color: #8f9a82;
  text-align: center;
}

.guide-block { margin-bottom: 18px; }
.guide-block:last-of-type { margin-bottom: 24px; }

.note {
  margin: 0;
  color: #8f9a82;
  font-size: .92rem;
}
.page-head + .section .note.center { margin-top: 6px; }

/* ---------------------------------------------------------------------
   12. Rules & FAQ
   --------------------------------------------------------------------- */
.rules-list {
  max-width: 760px;
  margin: 0 auto 48px;
  padding-left: 1.4em;
}
.rules-list li { margin-bottom: 12px; color: #cfd8c2; }

.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  margin-bottom: 12px;
  border: 1px solid #2c3a24;
  border-left: 4px solid #86c232;
  border-radius: 4px;
  background: #121a12;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.faq summary {
  padding: 14px 18px;
  color: #a4dd56;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  cursor: pointer;
}
.faq summary:hover { color: #c7ef86; }
.faq details[open] summary { border-bottom: 1px solid rgba(44, 58, 36, .8); }
.faq .faq-a {
  margin: 0;
  padding: 14px 18px;
  color: #cfd8c2;
}

/* ---------------------------------------------------------------------
   13. Footer
   --------------------------------------------------------------------- */
.site-footer {
  margin-top: 40px;
  padding: 40px 0 48px;
  background: #060906;
  border-top: 1px solid rgba(134, 194, 50, .25);
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}
.footer-nav a { color: #cfd8c2; font-size: .9rem; }
.footer-nav a:hover { color: #86c232; }
.footer-legal {
  max-width: 720px;
  margin: 0;
  color: #8f9a82;
  font-size: .9rem;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #6f7a63;
  font-size: .88rem;
}
.footer-legal-links a { color: #cfd8c2; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-links a:hover { color: #86c232; }
.footer-copy {
  margin: 0;
  color: #5d6653;
  font-size: .8rem;
}

/* ---------------------------------------------------------------------
   14. Responsive — ~900px
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .section { padding: 44px 0; }

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

  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    margin-left: 0;
  }
  .header-side { margin-left: auto; }
}

/* ---------------------------------------------------------------------
   15. Responsive — ~600px
   --------------------------------------------------------------------- */
@media (max-width: 600px) {
  .section { padding: 36px 0; }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .site-nav { justify-content: center; margin-left: 0; }
  .header-side {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .hero-overlay { padding: 48px 0; }
  .hero-actions { width: 100%; }

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

  .glance-table th,
  .glance-table td {
    display: block;
    width: 100%;
  }
  .glance-table th {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .glance-table td { padding-top: 4px; }

  .step { padding: 18px 16px; }
  .community-panel { padding: 28px 18px; }

  .btn { width: 100%; }
  .btn + .btn { margin-top: 10px; }
  .panel-actions { width: 100%; }
}
