@font-face {
  font-family: 'Minecraft';
  src: url('../MinecraftRegular-Bmg3.otf') format('opentype');
}

@font-face {
  font-family: 'Minecraft';
  src: url('../MinecraftBold-nMK1.otf') format('opentype');
  font-weight: bold;
}

@font-face {
  font-family: 'Minecraft';
  src: url('../MinecraftItalic-R8Mo.otf') format('opentype');
  font-style: italic;
}

@font-face {
  font-family: 'Minecraft';
  src: url('../MinecraftBoldItalic-y1le.otf') format('opentype');
  font-weight: bold;
  font-style: italic;
}


body {
  font-family: 'Minecraft', sans-serif;
  background-image: url('../images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  min-height: 100vh;
}



.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background: rgba(15, 23, 32, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  position: relative;
}

.menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}


.left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 40px;
}


.players {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.8;
}

.dot {
  width: 8px;
  height: 8px;
  background: #f44336;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(244, 67, 54, 0.75);
}

.dot.is-online {
  background: #55ff55;
  box-shadow: 0 0 8px rgba(85, 255, 85, 0.75);
}

.dot.is-offline {
  background: #f44336;
  box-shadow: 0 0 8px rgba(244, 67, 54, 0.75);
}


.menu a {
  margin: 0 15px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.menu a:hover {
  opacity: 0.7;
}

.menu a.active {
  color: #fbc02d;
  opacity: 1;
  text-shadow: 0 0 10px rgba(251, 192, 45, 0.45);
}


.right {
  display: flex;
  gap: 10px;
}

.icon {
  background: #1a1f2b;
  border: none;
  padding: 10px;
  color: white;
  cursor: pointer;
  border-radius: 6px;
}

.icon.green {
  background: #4caf50;
}


.page-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
}


.rules-container {
  background: rgba(15, 23, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  max-width: 980px;
  width: 100%;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.rules-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.rules-kicker {
  margin: 0 0 10px;
  color: #fbc02d;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 3px;
}

.rules-header h1 {
  margin: 0 0 16px;
  font-size: 32px;
  color: #4caf50;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.rules-lead {
  margin: 0;
  color: #e0e0e0;
  font-size: 17px;
  line-height: 1.7;
}

.rules-updated {
  margin: 14px 0 0;
  color: #888;
  font-size: 13px;
}

.rules-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.rules-toc a {
  padding: 9px 12px;
  color: #ddd;
  font-size: 13px;
  text-decoration: none;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}

.rules-toc a:hover {
  color: #1a1a1a;
  background: #fbc02d;
}

.rules-content {
  display: grid;
  gap: 18px;
  font-size: 16px;
  color: #e0e0e0;
}

.rules-section {
  scroll-margin-top: 25px;
  padding: 25px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.rules-section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.rules-section-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: #1a1a1a;
  background: linear-gradient(to right, #fbc02d, #f57f17);
  border-radius: 9px;
  font-weight: bold;
}

.rules-section h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
}

.rules-section ol {
  margin: 0;
  padding-left: 25px;
}

.rules-section li {
  padding-left: 7px;
  line-height: 1.65;
}

.rules-section li + li {
  margin-top: 11px;
}

.rules-section li::marker {
  color: #4caf50;
  font-weight: bold;
}

.rules-section strong {
  color: #fbc02d;
}

.rules-section h3 {
  margin: 28px 0 10px;
  padding-bottom: 8px;
  color: #4caf50;
  font-size: 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rules-section h3:first-of-type {
  margin-top: 4px;
}

.rules-callout {
  margin-top: 26px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.1);
}

.rules-callout h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 21px;
}

.rules-callout p {
  max-width: 680px;
  margin: 0 auto 20px;
  color: #ccc;
  line-height: 1.65;
}

.rules-callout .join-btn {
  display: inline-block;
  text-decoration: none;
}


.social-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.social-icon img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(15, 23, 32, 0.6);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
  box-sizing: border-box;
}

.social-icon img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}


.modes-section {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 80px); 
}

.daily-key-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.daily-key-banner a {
  display: inline-block;
}

.daily-key-banner img {
  display: block;
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.daily-key-banner img:hover {
  transform: scale(1.02);
}

.server-card {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(900px, 100%);
  margin-bottom: 45px;
  padding: 24px 28px;
  box-sizing: border-box;
  color: white;
  background: rgba(15, 23, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.server-card-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.server-card-dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.server-state {
  color: #aaa;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.3px;
}

.server-card-heading h1 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 23px;
  overflow-wrap: anywhere;
}

.server-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 12px;
}

.server-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.server-detail span {
  color: #999;
  font-size: 11px;
  letter-spacing: 1px;
}

.server-detail strong {
  color: #fff;
  font-size: 17px;
}

.server-copy-button {
  white-space: nowrap;
}

.join-guide {
  width: min(900px, 100%);
  margin: 0 0 50px;
  padding: 28px;
  box-sizing: border-box;
  color: white;
  background: rgba(15, 23, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.join-guide-heading {
  margin-bottom: 22px;
  text-align: center;
}

.join-guide-heading h2 {
  margin: 6px 0 10px;
  font-size: 28px;
}

.join-guide-heading p:last-child {
  margin: 0;
  color: #ccc;
  line-height: 1.55;
}

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

.platform-card {
  position: relative;
  padding: 22px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.platform-card.platform-recommended {
  border-color: rgba(76, 175, 80, 0.45);
}

.platform-card h3 {
  margin: 8px 0 16px;
  color: #fff;
  font-size: 21px;
}

.platform-card p {
  margin: 8px 0 0;
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
}

.platform-card strong {
  color: #fbc02d;
}

.platform-badge {
  display: inline-block;
  padding: 5px 8px;
  color: #132016;
  background: #55ff55;
  border-radius: 5px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.platform-badge-test {
  color: #2b2100;
  background: #fbc02d;
}

.news-preview-section {
  width: min(1200px, 100%);
  margin-bottom: 58px;
}

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

.news-preview-heading .rules-kicker {
  margin-bottom: 7px;
}

.news-preview-heading h2 {
  margin: 0;
  color: white;
  font-size: 30px;
}

.news-all-link,
.news-all-link:visited,
.news-read-more,
.news-read-more:visited {
  color: #fbc02d;
  font-weight: bold;
  text-decoration: none;
}

.news-all-link:hover,
.news-read-more:hover {
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

.news-grid-full {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto;
}

.news-browser {
  width: min(980px, 100%);
  margin: 0 auto 24px;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.news-filter {
  padding: 10px 14px;
  color: #ddd;
  font: inherit;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(15, 23, 32, 0.72);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.news-filter:hover {
  color: white;
  border-color: rgba(251, 192, 45, 0.55);
  transform: translateY(-1px);
}

.news-filter[aria-pressed="true"] {
  color: #2b2100;
  border-color: #fbc02d;
  background: #fbc02d;
}

.news-results-info {
  min-height: 18px;
  margin: 12px 0 0;
  color: #aaa;
  font-size: 12px;
  text-align: center;
}

.news-grid-single:not(.news-grid-full) {
  grid-template-columns: minmax(0, 600px);
}

.news-card {
  overflow: hidden;
  color: white;
  background: rgba(15, 23, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scroll-margin-top: 24px;
}

.news-card-latest {
  border-color: rgba(76, 175, 80, 0.55);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.42), 0 0 24px rgba(76, 175, 80, 0.08);
}

.news-card-media {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 26px;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
  color: #aaa;
  font-size: 12px;
}

.news-meta-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.news-category {
  padding: 6px 9px;
  color: #17210f;
  background: #fbc02d;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.news-latest-badge {
  padding: 5px 8px;
  color: #bff4c2;
  border: 1px solid rgba(76, 175, 80, 0.45);
  border-radius: 5px;
  background: rgba(76, 175, 80, 0.14);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.news-card h2,
.news-card h3 {
  margin: 0 0 13px;
  color: #4caf50;
  line-height: 1.25;
}

.news-card h2 {
  font-size: 27px;
}

.news-card h3 {
  font-size: 22px;
}

.news-summary,
.news-content p {
  color: #d0d0d0;
  line-height: 1.65;
}

.news-summary {
  margin: 0;
}

.news-content {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-content p {
  margin: 0;
}

.news-content p + p {
  margin-top: 14px;
}

.news-read-more {
  display: inline-block;
  margin-top: 20px;
}

.news-loading {
  grid-column: 1 / -1;
  padding: 25px;
  color: #ccc;
  text-align: center;
  background: rgba(15, 23, 32, 0.75);
  border-radius: 12px;
}

.news-error {
  color: #ff8a80;
}

.news-page {
  min-height: calc(100vh - 80px);
  padding: 55px 20px 70px;
  box-sizing: border-box;
}

.news-page-header {
  max-width: 760px;
  margin: 0 auto 35px;
  color: white;
  text-align: center;
}

.news-page-header h1 {
  margin: 0 0 14px;
  color: #4caf50;
  font-size: 38px;
  text-transform: uppercase;
}

.news-page-header > p:last-child {
  margin: 0;
  color: #ddd;
  line-height: 1.6;
}

.modes-section .title {
  font-size: 48px;
  color: white;
  text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 2px;
}

.modes-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
}

.mode-card {
  background: rgba(15, 23, 32, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.mode-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.4);
}

.mode-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.mode-info {
  padding: 25px;
  text-align: center;
  color: white;
}

.mode-info h2 {
  margin: 0 0 15px 0;
  font-size: 28px;
  color: #4caf50;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.mode-info p {
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.5;
}

.join-btn {
  background: linear-gradient(to right, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.join-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.copy-ip-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.copy-ip-button {
  padding: 15px 40px;
  font-size: 1.2rem;
}


.search-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 20px;
}

.search-box {
  background: rgba(15, 23, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 50px 40px;
  max-width: 650px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.search-box h1 {
  color: #4caf50;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.search-box p {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 16px;
}

.search-form {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
  border-color: #4caf50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.search-input::placeholder {
  color: #888;
}

.search-btn {
  background: linear-gradient(to right, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.search-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}


.btn-yellow {
  background: linear-gradient(to right, #fbc02d, #f57f17);
  color: #1a1a1a;
  font-weight: bold;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.7); 
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(15, 23, 32, 0.9);
  border: 1px solid rgba(76, 175, 80, 0.4);
  border-radius: 16px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  color: white;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ccc;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fbc02d;
}

.modal-content h2 {
  color: #4caf50;
  margin-top: 0;
  font-size: 28px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.modal-content p {
  color: #e0e0e0;
  line-height: 1.6;
  font-size: 16px;
}

.api-message {
  margin-top: 20px;
  padding: 13px 16px;
  border-radius: 8px;
  line-height: 1.45;
}

.api-message:empty,
.api-message[hidden] {
  display: none;
}

.api-message.info {
  color: #fff3c4;
  background: rgba(251, 192, 45, 0.14);
  border: 1px solid rgba(251, 192, 45, 0.35);
}

.api-message.success {
  color: #c8f7cb;
  background: rgba(76, 175, 80, 0.16);
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.api-message.error {
  color: #ffc7c7;
  background: rgba(244, 67, 54, 0.16);
  border: 1px solid rgba(244, 67, 54, 0.4);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none !important;
}

.stats-result {
  margin-top: 30px;
  text-align: left;
}

.player-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.player-profile h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 28px;
  text-transform: none;
}

.player-avatar {
  width: 82px;
  height: 82px;
  image-rendering: pixelated;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.player-online,
.player-offline {
  font-size: 13px;
  letter-spacing: 1px;
}

.player-online { color: #69e86e; }
.player-offline { color: #aaa; }

.stats-group {
  margin-top: 25px;
}

.stats-group h3 {
  color: #fbc02d;
  margin: 0 0 13px;
  font-size: 19px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item strong {
  color: #fff;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.stat-item span {
  color: #aaa;
  font-size: 13px;
}

.reward-card {
  width: min(520px, 100%);
  padding: 40px;
  box-sizing: border-box;
  border-radius: 16px;
  color: white;
  background: rgba(15, 23, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.reward-description {
  color: #ccc;
  line-height: 1.5;
  margin: -5px 0 25px;
}

.reward-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.reward-form .key-input {
  box-sizing: border-box;
  max-width: none;
}

.reward-button {
  padding: 15px 60px;
  font-size: 1.3rem;
}

.key-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 150px);
  padding: 20px;
  text-align: center;
}

.key-input {
  width: 100%;
  max-width: 400px;
  margin-bottom: 25px;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.key-input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.key-input::placeholder {
  color: #aaa;
}

.key-title {
  margin-bottom: 20px;
  font-size: 2.2rem;
  font-weight: bold;
  text-transform: uppercase;
}

.stats-title {
  color: white;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding: 30px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 32, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-socials .social-icon img {
  width: 65px;
  height: 65px;
  box-sizing: border-box;
}

.rules-page {
  align-items: flex-start;
}

.footer-contact {
  color: #aaa;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.footer-contact p {
  margin: 0;
}

.footer-email,
.footer-email:visited {
  color: inherit;
  text-decoration: none;
}

.footer-contact .footer-domain {
  color: #fff;
  font-weight: bold;
}

.error-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 50px 20px;
  box-sizing: border-box;
}

.error-card {
  width: min(600px, 100%);
  padding: 45px 35px;
  box-sizing: border-box;
  color: white;
  text-align: center;
  background: rgba(15, 23, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.error-card .error-code {
  margin: 0;
  color: #fbc02d;
  font-size: clamp(80px, 18vw, 150px);
  line-height: 0.9;
  text-shadow: 4px 6px 0 rgba(0, 0, 0, 0.35);
}

.error-card h1 {
  margin: 24px 0 12px;
  font-size: 30px;
}

.error-card p {
  margin: 0 0 28px;
  color: #ccc;
  line-height: 1.6;
}

.error-card .join-btn {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 1050px) and (min-width: 761px) {
  .news-grid:not(.news-grid-full):not(.news-grid-single) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .navbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .navbar .left {
    justify-content: center;
  }

  .menu {
    position: static;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    width: 100%;
    white-space: normal;
  }

  .menu a {
    margin: 0;
    font-size: 11px;
  }

  .search-box,
  .reward-card {
    padding: 28px 20px;
  }

  .rules-container {
    padding: 28px 18px;
  }

  .rules-header h1 {
    font-size: 27px;
  }

  .rules-lead {
    font-size: 15px;
  }

  .rules-toc {
    justify-content: flex-start;
    padding: 13px;
  }

  .rules-toc a {
    padding: 8px 9px;
    font-size: 12px;
  }

  .rules-section {
    padding: 22px 17px;
  }

  .rules-section h2 {
    font-size: 18px;
  }

  .rules-section ol {
    padding-left: 21px;
  }

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

  .server-copy-button {
    width: 100%;
  }

  .join-guide {
    padding: 22px 18px;
  }

  .join-platforms {
    grid-template-columns: 1fr;
  }

  .news-preview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .news-card-body {
    padding: 22px 18px;
  }

  .news-filters {
    justify-content: flex-start;
  }

  .news-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-page {
    padding-top: 40px;
  }

  .news-page-header h1 {
    font-size: 31px;
  }
}
