html {
  background: #0b1220;
}

body {
  margin: 0;
  color: #dbeafe;
  font: 16px/1.55 Arial, Helvetica, sans-serif;
}

.page {
  width: min(1000px, calc(100% - 40px));
  margin: 32px auto;
  background: #111c2e;
  border: 1px solid #263a57;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(38, 58, 77, .12);
  padding: 24px 28px 32px;
  box-sizing: border-box;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

h1 {
  margin: 0;
  font-size: 42px;
  color: #8ec5ff;
  line-height: 1.05;
}

.subtitle {
  margin: 6px 0 0;
  color: #91a4bd;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  border: 1px solid #385273;
  border-radius: 6px;
  background: #172740;
  color: #c5d7ee;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.lang-btn.active {
  background: #2864a7;
  color: #fff;
  border-color: #2864a7;
}

.top-nav {
  margin: 18px 0 22px;
  padding: 10px 0;
  border-top: 1px solid #263a57;
  border-bottom: 1px solid #263a57;
}

.top-nav a {
  margin-right: 16px;
  color: #8ec5ff;
  font-weight: bold;
  text-decoration: none;
}

.top-nav a:hover { text-decoration: underline; }

.hero {
  position: relative;
  display: grid;
  min-height: 300px;
  align-items: end;
  overflow: hidden;
  margin-bottom: 26px;
  padding: 34px;
  border: 1px solid #d7e0e7;
  border-radius: 10px;
  min-height: 220px;
  background: linear-gradient(135deg, #1b4772, #17233b 70%);
  box-shadow: inset 0 0 0 1px rgba(142, 197, 255, .12);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7e0e7;
  border-radius: 10px;
}

.hero-text {
  position: relative;
  max-width: 620px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

.hero-text h2 {
  margin: 0 0 8px;
}

section {
  margin-top: 26px;
}

.connection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: #172740;
  border: 1px solid #385273;
  border-radius: 10px;
}

.connection-card h2 { margin: 0; }

.eyebrow {
  margin: 0 0 4px;
  color: #617181;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.copy-address {
  flex: 0 0 auto;
  border: 1px solid #2864a7;
  border-radius: 6px;
  background: #2864a7;
  color: #fff;
  padding: 9px 13px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.copy-address:hover { background: #1f528b; }

h2 {
  font-size: 28px;
  margin: 0 0 10px;
}

h3 {
  font-size: 21px;
  margin: 0 0 10px;
}

.info-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 560px;
  margin-bottom: 10px;
  background: #172740;
  border: 1px solid #385273;
  border-radius: 8px;
  overflow: hidden;
}

.info-table th,
.info-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid #2a4160;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }

.info-table th {
  width: 140px;
  color: #9fb4ce;
  font-weight: normal;
}

code {
  font-family: Consolas, "Courier New", monospace;
  background: #0b1220;
  border: 1px solid #385273;
  border-radius: 4px;
  padding: 2px 5px;
}

.rules-list,
.warp-list,
.plugin-list {
  padding-left: 22px;
  margin: 0;
}

.warning {
  margin-top: 10px;
  font-weight: bold;
}

.news-list {
  display: grid;
  gap: 10px;
  max-width: 680px;
}

.news-item {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 14px;
  background: #172740;
  border-left: 3px solid #65a9e8;
}

.news-item time {
  flex: 0 0 auto;
  color: #91a4bd;
  font-size: 14px;
  font-weight: bold;
}

.news-item p { margin: 0; }

.gallery-category + .gallery-category {
  margin-top: 20px;
}

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

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7e0e7;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-grid img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(38, 58, 77, .16);
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid #263a57;
  padding-top: 10px;
  color: #91a4bd;
}

@media (max-width: 740px) {
  .page {
    width: 100%;
    margin: 0;
    border: 0;
    padding: 16px;
  }

  .site-header {
    flex-direction: column;
  }

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

  .connection-card,
  .news-item {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 19px;
  }
}

.server-status-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #d7e2ea;
  border-radius: 10px;
}

.server-status-main h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
}

.server-status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #aeb9c4;
}

.server-status-dot.online {
  background: #39a866;
}

.server-status-dot.offline {
  background: #d45757;
}

#server-player-count {
  margin: 0;
  color: #5e6a76;
}

.server-player-list {
  min-height: 24px;
  color: #1d2733;
}

.server-player {
  display: block;
  line-height: 1.7;
}

@media (max-width: 740px) {
  .server-status-card {
    grid-template-columns: 1fr;
  }
}

.server-status-card,
.recent-events-card {
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #d7e2ea;
  border-radius: 10px;
}

.server-status-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.server-status-main h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
}

.server-status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #aeb9c4;
}

.server-status-dot.online {
  background: #39a866;
}

.server-status-dot.offline {
  background: #d45757;
}

#server-player-count {
  margin: 0;
  color: #5e6a76;
}

.server-player-list {
  min-height: 24px;
  color: #1d2733;
}

.server-player {
  display: block;
  line-height: 1.7;
}

.discord-button {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 13px;
  border: 1px solid #2864a7;
  border-radius: 6px;
  background: #2864a7;
  color: #fff;
  font: inherit;
  font-weight: bold;
  text-decoration: none;
}

.discord-button:hover {
  background: #1f528b;
}

.recent-events-card {
  margin-top: 26px;
}

.recent-events {
  display: grid;
  gap: 0;
  border-top: 1px solid #e1e8ee;
}

.recent-event {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e8eef3;
}

.recent-event-time {
  color: #617181;
  font: 14px/1.5 Consolas, "Courier New", monospace;
}

.recent-event-text {
  color: #1d2733;
}

.recent-event-icon {
  display: inline-block;
  width: 20px;
  color: #617181;
}

@media (max-width: 740px) {
  .server-status-card {
    grid-template-columns: 1fr;
  }

  .recent-event {
    grid-template-columns: 66px 1fr;
  }
}

/* Discord button in the header */
.lang-switch .discord-button {
  margin-top: 0;
  padding: 6px 10px;
  border: 1px solid #5865F2;
  border-radius: 6px;
  background: #5865F2;
  color: #fff;
  font: inherit;
  font-weight: bold;
  text-decoration: none;
}

.lang-switch .discord-button:hover {
  background: #4752C4;
  border-color: #4752C4;
}

.lang-switch .discord-button:active {
  background: #3C45A5;
}

.main-spawn-image {
  margin-top: 26px;
}

.main-spawn-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7e0e7;
  border-radius: 10px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.primary-link, .secondary-link { display: inline-block; padding: 9px 13px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.primary-link { background: #2864a7; color: #fff; }
.secondary-link { border: 1px solid #c8d4de; color: #2864a7; }
.content-card { padding: 20px; border: 1px solid #d7e2ea; border-radius: 10px; background: #f8fafc; }
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; list-style: none; counter-reset: steps; }
.steps-list li { position: relative; min-height: 110px; padding: 16px 16px 16px 50px; border: 1px solid #d7e2ea; border-radius: 8px; background: #fff; counter-increment: steps; }
.steps-list li::before { position: absolute; left: 16px; top: 16px; content: counter(steps); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2864a7; color: #fff; font-weight: 700; }
.steps-list strong, .steps-list span { display: block; }
.steps-list span { margin-top: 7px; color: #5e6a76; }
.privacy-note, .status-meta { color: #617181; font-size: 14px; }
.status-meta { margin: 5px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid article { padding: 18px; border: 1px solid #d7e2ea; border-radius: 8px; }
.feature-grid p { margin: 7px 0 0; color: #5e6a76; }
.gallery-grid img { cursor: zoom-in; }
.gallery-grid figcaption { padding: 7px 2px 0; color: #617181; font-size: 13px; }
.gallery-dialog { width: min(1000px, calc(100% - 32px)); padding: 16px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 20px 80px rgba(0,0,0,.35); }
.gallery-dialog::backdrop { background: rgba(15, 24, 32, .82); }
.gallery-dialog img { display: block; max-width: 100%; max-height: 78vh; margin: auto; }
.gallery-dialog p { margin: 10px 36px 0 0; }
.gallery-close { position: absolute; right: 12px; top: 8px; border: 0; background: #fff; font-size: 28px; cursor: pointer; }

/* Retro Minecraft 2010 visual pass — kept below the original rules for easy rollback. */
html { background: #c7d1da; }
body { color: #263442; font-family: Arial, Helvetica, sans-serif; }
.page {
  width: min(1040px, calc(100% - 28px));
  margin: 22px auto;
  padding: 0 24px 28px;
  background: #eef2f5;
  border: 1px solid #718293;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(24, 39, 52, .28);
}
.site-header {
  margin: 0 -24px;
  padding: 22px 24px 18px;
  background: #173b61;
  border-bottom: 5px solid #6d9b48;
}
h1 { color: #fff; font-size: 38px; letter-spacing: .02em; text-shadow: 2px 2px 0 #0d253c; }
.subtitle { color: #c5d7e8; }
.lang-btn { border-radius: 2px; background: #e9eef2; color: #173b61; }
.lang-btn.active { background: #6d9b48; border-color: #527b35; }
.top-nav {
  margin: 0 -24px 22px;
  padding: 0 24px;
  background: #24527e;
  border: 0;
}
.top-nav a { display: inline-block; margin: 0 3px 0 0; padding: 9px 14px; color: #fff; font-size: 14px; text-transform: uppercase; }
.top-nav a:hover { background: #6d9b48; text-decoration: none; }
.hero { min-height: 180px; margin-top: 20px; border: 1px solid #6d7f90; border-radius: 2px; background: #315f87; box-shadow: inset 0 0 0 4px rgba(255,255,255,.08); }
.hero-text h2 { font-size: 30px; text-shadow: 2px 2px 0 #17324d; }
section { margin-top: 22px; }
h2 { color: #173b61; border-bottom: 3px solid #6d9b48; padding-bottom: 6px; }
.connection-card, .info-table, .news-item { background: #fff; border-color: #aebbc6; border-radius: 2px; }
.connection-card { box-shadow: 0 2px 0 rgba(42, 65, 84, .12); }
.connection-card h2 { border: 0; margin: 0; padding: 0; }
code { background: #e7edf1; border-color: #aebbc6; color: #173b61; }
.news-item { border-left: 4px solid #6d9b48; }
.site-footer { border-color: #aebbc6; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible { outline: 3px solid #f0a737; outline-offset: 3px; }

@media (max-width: 740px) {
  .steps-list, .feature-grid { grid-template-columns: 1fr; }
  .lang-switch { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
