/* Ð˜Ð¼Ð¿Ð¾Ñ€Ñ‚ ÑˆÑ€Ð¸Ñ„Ñ‚Ð° */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* === Ð“Ð›ÐžÐ‘ÐÐ›Ð¬ÐÐ«Ð™ Ð¡Ð›ÐžÐ™ Ð’Ð•Ð Ð¢Ð˜ÐšÐÐ›Ð¬ÐÐ«Ð¥ Ð›Ð˜ÐÐ˜Ð™ === */
.overlay-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}
.overlay-lines::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(to right, rgba(255,255,255,0.15) 0, rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(to right, transparent 19.99%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0.15) calc(20% + 1px), transparent calc(20% + 1px)),
    linear-gradient(to right, transparent 39.99%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0.15) calc(40% + 1px), transparent calc(40% + 1px)),
    linear-gradient(to right, transparent 59.99%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.15) calc(60% + 1px), transparent calc(60% + 1px)),
    linear-gradient(to right, transparent 79.99%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.15) calc(80% + 1px), transparent calc(80% + 1px));
}

/* === Ð‘ÐÐ—ÐžÐ’Ð«Ð• Ð¡Ð¢Ð˜Ð›Ð˜ === */
body {
  margin: 0;
  line-height: 1.5;
  font-family: 'Press Start 2P', monospace;
  color: #fff;
  background: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ÐžÑ‚ÑÑ‚ÑƒÐ¿ Ð´Ð»Ñ main, Ñ‡Ñ‚Ð¾Ð±Ñ‹ Ð½Ðµ Ð·Ð°Ð»ÐµÐ· Ð¿Ð¾Ð´ Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ñ‹Ð¹ header */
main {
  padding-top: 50px; /* Ð¿Ð¾Ð´Ð³Ð¾Ð½Ð¸Ñ‚Ðµ Ð¿Ð¾Ð´ Ñ€ÐµÐ°Ð»ÑŒÐ½ÑƒÑŽ Ð²Ñ‹ÑÐ¾Ñ‚Ñƒ .site-header */
  flex: 1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* ÐºÐ¾Ð½Ñ‚ÐµÐ½Ñ‚ Ð½Ð°Ð´ Ð»Ð¸Ð½Ð¸ÑÐ¼Ð¸ */
}

/* ÐŸÐ¾Ð´Ð½Ð¸Ð¼ÐµÐ¼ Ð½Ð° Ð¿ÐµÑ€ÐµÐ´Ð½Ð¸Ð¹ Ð¿Ð»Ð°Ð½ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¸, Ñ‚ÐµÐºÑÑ‚, Ñ„Ð¾Ñ€Ð¼Ñ‹ Ð¸ Ð¿Ñ€Ð¾Ñ‡Ð¸Ðµ ÑÐ»ÐµÐ¼ÐµÐ½Ñ‚Ñ‹ */
header .container,
.hero-text, .image-row, .cards, .card,
h1, h2, h3, h4, h5, h6,
p, img, details,
form,
.site-footer .container {
  position: relative;
  z-index: 3;
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10;
  overflow: visible;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.logo {
  font-size: 16px;
}
.nav a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}
.btn-outline-light {
  font-family: 'Press Start 2P', monospace;
}

/* === FORM === */
/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ñ„Ð¾Ñ€Ð¼Ñ‹ Ð²Ð½ÑƒÑ‚Ñ€Ð¸ bg-dark */
.bg-dark {
  background-color: #212529 !important;
}
.form-label {
  color: #fff;
  font-size: 12px;
  margin-bottom: .5rem;
}
.form-control {
  background-color: #2c2f33;
  border: 1px solid #444;
  color: #fff;
  height: 2.5rem;
}
.form-control:focus {
  background-color: #2c2f33;
  border-color: #66afe9;
  box-shadow: none;
  color: #fff;
}

/* === FOOTER === */
.site-footer {
  background: #000;
  text-align: center;
  padding: 20px 0;
  font-size: 10px;
}
/* === DASHBOARD HERO === */
.dashboard-hero {
  background: url('../img/banner.jpg') center/cover no-repeat;
  height: 300px;
  position: relative;
  z-index: 1;
}

/* === PROFILE CARD === */
.profile-section {
  margin-top: -80px;   /* Â«Ð¿Ð¾Ð´Ñ‚ÑÐ½ÑƒÑ‚ÑŒÂ» ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÑƒ Ð¿Ð¾Ð²ÐµÑ€Ñ… Ð±Ð°Ð½Ð½ÐµÑ€Ð° */
  padding-bottom: 40px;
  position: relative;
  z-index: 2;
}
.profile-card {
  background: rgba(33, 37, 41, 0.95);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  position: relative;
}
.profile-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 2px solid #fff;
}
.profile-info h1 {
  font-size: 24px;
  margin-bottom: 0.25rem;
}
.profile-info .text-muted {
  font-size: 0.85em;
  color: #888;
}
.profile-info .status {
  margin: 0;
  font-size: 14px;
}
.profile-info .status.online {
  color: #3adb76;
}
.profile-info .status-text {
  font-size: 12px;
  color: #aaa;
}

/* Ð¡Ð¼ÐµÑ‰Ð°ÐµÐ¼ ÐºÐ½Ð¾Ð¿ÐºÑƒ Â«Ð•Ñ‰Ñ‘Â» Ð² Ð¿Ñ€Ð°Ð²Ñ‹Ð¹ ÑƒÐ³Ð¾Ð» */
.profile-actions {
  margin-left: auto;
}

/* === ÐžÑ‚ÑÑ‚ÑƒÐ¿ Ð¿Ð¾Ð´ Ñ„Ð¸ÐºÑÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ñ‹Ð¹ header === */
.dashboard-hero,
.profile-section,
main {
  /* margin-top: 80px; */
}

/* ÐžÑÑ‚Ð°Ð²Ð»ÑÐµÐ¼ Ð²ÐµÑ€Ñ‚Ð¸ÐºÐ°Ð»ÑŒÐ½Ñ‹Ðµ Ð»Ð¸Ð½Ð¸Ð¸ Ð¿Ð¾Ð²ÐµÑ€Ñ… Ð²ÑÐµÐ³Ð¾ Ñ„Ð¾Ð½Ð° */
.overlay-lines {
  /* ÐµÑÐ»Ð¸ Ð²Ñ‹ Ñ…Ð¾Ñ‚Ð¸Ñ‚Ðµ ÑÐ¾Ñ…Ñ€Ð°Ð½Ð¸Ñ‚ÑŒ Ð²Ð°ÑˆÐ¸ Ð»Ð¸Ð½Ð¸Ð¸, Ð¸Ð½Ð°Ñ‡Ðµ ÑƒÐ´Ð°Ð»Ð¸Ñ‚Ðµ */
  z-index: 0;
}
/* ÐŸÐ¾Ð´Ð½ÑÑ‚ÑŒ Ð¿Ñ€Ð¾Ñ„Ð¸Ð»ÑŒ Ð²Ñ‹ÑˆÐµ Ð±Ð°Ð½Ð½ÐµÑ€Ð° */
.profile-section {
  margin-top: -255px; /* Ð²Ð¼ÐµÑÑ‚Ð¾ -60px Ð¸Ð»Ð¸ -80px â€” Ð¿Ð¾Ð´Ð±ÐµÑ€Ð¸Ñ‚Ðµ Ð½ÑƒÐ¶Ð½Ð¾Ðµ Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ðµ */
  position: relative;
  z-index: 2;
}

.logo_sg {
  width: 40px;
}
.st0 {fill: #fff;}

.minecraft-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.15rem;
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 24px auto;
  padding: 28px 0 22px 0;
  background: linear-gradient(180deg, #f6ffd2 0%, #bde35c 50%, #85b62a 100%);
  color: #232913;
  border: 4px solid #212800;
  box-shadow:
    0 0 0 6px #a2c12a,       /* внешний ободок */
    0 6px #334400,           /* нижняя тень */
    0 2px 0 #fff inset;      /* внутренняя светлая полоска сверху */
  border-radius: 0 !important;
  text-align: center;
  text-shadow:
    2px 2px #fff,            /* светлая обводка */
    0 2px 8px #aacb45;
  outline: none;
  cursor: pointer;
  transition: filter 0.18s, box-shadow 0.18s, background 0.15s;
  user-select: none;
  letter-spacing: 1.5px;
  position: relative;
}

.minecraft-btn:hover, .minecraft-btn:focus {
  filter: brightness(1.13) contrast(1.07) drop-shadow(0 0 10px #eaff92);
  box-shadow:
    0 0 0 9px #fffcc1,
    0 10px #334400,
    0 4px 0 #fff inset;
  background: linear-gradient(180deg, #fffec8 0%, #d4ee88 60%, #aacb45 100%);
  z-index: 2;
}

.minecraft-btn:active {
  filter: brightness(0.96) contrast(1.1);
  box-shadow:
    0 0 0 3px #a2c12a,
    0 2px #334400,
    0 2px 0 #fff inset;
  background: linear-gradient(180deg, #b5cc56 0%, #91ad2e 80%, #475512 100%);
}
.minecraft-info-block {
  background: linear-gradient(180deg, #333 80%, #3c4a14 100%);
  border: 4px solid #b5f54e;
  box-shadow: 0 8px 36px #0006, 0 2px 0 #fff3 inset;
  color: #fff;
  border-radius: 8px;
  margin-bottom: 28px;
  margin-top: 10px;
  font-size: 1.06em;
  text-shadow: 1px 2px 6px #000, 0 1px 0 #8ebc2c;
  letter-spacing: 0.03em;
  line-height: 1.8;
  transition: box-shadow 0.19s;
}
.minecraft-info-block b {
  color: #eaff7a;
  font-weight: bold;
  text-shadow: 1px 1px 2px #1b2400;
}
.minecraft-info-block span {
  display: inline-block;
}
.minecraft-table {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 36px #0008;
  background: #262e13;
  font-family: 'Press Start 2P', monospace;
  border-collapse: separate !important;
}

.minecraft-table th, .minecraft-table td {
  border: 2.5px solid #8cc60f !important;
  background: #191d0b !important;
  color: #fff !important;
  vertical-align: middle !important;
  font-family: 'Press Start 2P', monospace;
  text-shadow: 1px 2px 0 #183c0a, 0 1px 7px #63820c;
}

.minecraft-table th {
  background: #7dc81a !important;
  color: #161c08 !important;
  font-size: 1.08em;
  text-align: center;
}

.minecraft-table tbody tr:hover td {
  background: #95d447 !important;
  color: #141f0a !important;
  transition: background 0.17s;
}
.players-wall {
  gap: 38px 24px !important;
  margin: 0 auto 40px auto;
  padding: 20px 10px;
  background: rgba(22,28,8,0.25);
  border-radius: 18px;
  max-width: 1080px;
  box-shadow: 0 8px 36px #0007;
  min-height: 100px;
}
.player-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 84px;
  font-family: 'Press Start 2P', monospace;
}
.player-block img {
  box-shadow: 0 2px 10px #384b0b;
  transition: transform 0.12s;
  background: #191d0b;
}
.player-block img:hover {
  transform: scale(1.13) rotate(-6deg);
  border-color: #ffe34a;
  z-index: 2;
}
.player-nick {
  color: #fff;
  text-shadow: 1px 2px 0 #183c0a, 0 1px 7px #63820c;
  font-size: 0.78em;
  margin-top: 6px;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.15;
}
.forum-post-card {
  border: 2.5px solid #b8e09c;
  background: #fff !important;
}
.forum-post-user {
  background: #fcfff8;
}
.forum-post-content {
  background: #f7fff1 !important;
  border-radius: 0 6px 6px 0;
  min-width: 0;
}
@media (max-width: 640px) {
  .forum-post-card {
    flex-direction: column;
  }
  .forum-post-user {
    border-right: none;
    border-bottom: 2px solid #e6e6e6;
    border-radius: 6px 6px 0 0;
    align-items: flex-start;
  }
  .forum-post-content {
    border-radius: 0 0 6px 6px;
  }
}
.minecraft-modal .modal-content {
    background: #171a1b !important;
    border: 3px solid #7ec855;
    border-radius: 14px;
    font-family: 'Press Start 2P', monospace;
    color: #fff;
    box-shadow: 0 8px 32px #000a;
}
.minecraft-modal .modal-header {
    background: #7ec855;
    border-bottom: 2px solid #263d19;
    color: #223c0a;
    font-size: 1.3em;
    font-family: 'Press Start 2P', monospace;
}
.minecraft-modal .btn-close {
    filter: invert(1) contrast(80%);
}
.minecraft-modal .modal-title {
    font-family: 'Press Start 2P', monospace;
    color: #223c0a;
}
.minecraft-modal .form-control, .minecraft-modal textarea {
    background: #252726;
    border: 2px solid #7ec855;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    border-radius: 6px;
    font-size: 1.1em;
    margin-bottom: 0.7em;
    box-shadow: none;
}
.minecraft-modal .form-control:focus, .minecraft-modal textarea:focus {
    border-color: #c2f35d;
    background: #232a18;
    color: #fff;
    outline: none;
    box-shadow: 0 0 4px #c2f35d80;
}
.minecraft-modal .modal-footer {
    background: #171a1b;
    border-top: none;
    justify-content: flex-end;
}
.minecraft-modal .btn-success {
    background: #7ec855;
    border: 2px solid #c2f35d;
    color: #192308;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1em;
    border-radius: 7px;
    padding: 8px 24px 8px 24px;
    text-shadow: 1px 1px 2px #e9ffb0a1;
    box-shadow: 0 1px 0 #4e8532;
    transition: background .13s, color .13s;
}
.minecraft-modal .btn-success:hover {
    background: #c2f35d;
    color: #223c0a;
}
.minecraft-modal .btn-secondary {
    background: #222 !important;
    border: 2px solid #7ec855 !important;
    color: #7ec855 !important;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1em;
    border-radius: 7px;
    padding: 8px 24px 8px 24px;
    text-shadow: 1px 1px 2px #0008;
}
.minecraft-modal label, .minecraft-modal .form-label {
    color: #c2f35d;
    font-size: 1em;
    margin-bottom: 3px;
}
