@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/Roboto-Black-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/Roboto-Black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #151C29;
  color: #e8e8e8;
  overflow-x: hidden;
}

/* Cards */
.card {
  background-color: #222B3E;
  color: #e8e8e8;
  border-color: #1a2133 !important;
}

.card-title {
  color: #fff;
}

.card-text {
  color: #9aaccc;
}

.text-muted {
  color: #8a9bbf !important;
}

/* Inputs & forms */
.form-control {
  background-color: #1a2133;
  color: #e8e8e8;
  border-color: #2e3d5a;
}

.form-control:focus {
  background-color: #1a2133;
  color: #e8e8e8;
  border-color: #4a6fa5;
  box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.35);
}

.form-label {
  color: #c5d0e0;
}

.form-check-label {
  color: #c5d0e0;
}

/* Tables */
.table {
  color: #e8e8e8;
}

.table-dark {
  --bs-table-bg: #1a2133;
  --bs-table-border-color: #2e3d5a;
}

.table-bordered {
  border-color: #2e3d5a;
}

.table td, .table th {
  border-color: #2e3d5a;
}

/* Buttons */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #222B3E, 0 0 0 0.25rem #4a6fa5;
}

/* Nav cards on main page */
.nav-card {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  color: inherit;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.nav-card-icon {
  font-size: 2.5rem;
}

/* Hero */
.hero-section {
  padding: 60px 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
}

/* Links */
a {
  color: #7aacdd;
}

a:hover {
  color: #a8cef5;
}

/* Form floating */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: #6a7d99;
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Validation */
.text-danger {
  color: #ff7b7b !important;
}

/* Alert / validation summary */
.validation-summary-errors ul {
  margin-bottom: 0;
}

/* Fade-in up анимация для карточек */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.3s; }

.price-kit {
  border: 2px solid #31d5c8;
  border-right: none;
}

/* Строки характеристик оружия */
.stat-row {
  font-size: 16px;
  display: flex;
  align-items: center;
  width: 100%;
  flex: 1;
  padding: 6px 10px 6px 14px;
  color: #fff;
  border-top: 1px solid #2e3c55;
  border-bottom: 1px solid #000;
  text-decoration: none;
}

.stat-row:first-child {
  border-top: none;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row__value {
  margin-left: auto;
  color: #656E7F;
}

.custom__hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #4fb5ff, rgba(0, 0, 0, 0));
  width: 600px;
  box-shadow: 0 0 3px black;
}

/* ===== Home Page Sections ===== */
.home-section {
  padding: 80px 0;
  border-bottom: 1px solid #1a2133;
}

.home-section:last-child {
  border-bottom: none;
}

.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #31d5c8;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
}

.section-text {
  color: #9aaccc;
  font-size: 22px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.section-link {
  color: #31d5c8;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.section-link:hover {
  color: #5de8db;
}

/* Buttons */
.btn-accent-link {
  display: inline-block;
  padding: 16px 40px;
  background: #31d5c8;
  color: #0d1520;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-accent-link:hover {
  background: #4de8db;
  color: #0d1520;
}

.btn-ghost-link {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid #31d5c8;
  color: #31d5c8;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-ghost-link:hover {
  background: rgba(49, 213, 200, 0.08);
  color: #31d5c8;
}

/* Game stat grid */
.game-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #2e3d5a;
}

.game-stat-item {
  background: #222B3E;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-stat-number {
  font-size: 40px;
  font-weight: 900;
  color: #31d5c8;
  line-height: 1;
}

.game-stat-label {
  font-size: 16px;
  color: #6a7d99;
  margin-top: 8px;
  line-height: 1.5;
}

/* Feature cards */
.feature-card {
  background: #222B3E;
  border: 1px solid #2e3d5a;
  padding: 32px 24px;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: #31d5c8;
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 38px;
  color: #31d5c8;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-card h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.feature-card p {
  color: #6a7d99;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}

/* News tiles */
.news-tile {
  height: 100%;
  display: block;
  background: #222B3E;
  border: 1px solid #2e3d5a;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.news-tile:hover {
  border-color: #31d5c8;
  transform: translateY(-3px);
}

.news-tile__bg {
  height: 150px;
  background-color: #1a2133;
  background-size: cover;
  background-position: center;
  position: relative;
}

.news-tile__bg--soon {
  background: repeating-linear-gradient(
    135deg,
    #151c29,
    #151c29 10px,
    #1a2133 10px,
    #1a2133 20px
  );
}

.news-tile__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #222B3E);
}

.news-tile__body {
  padding: 20px 22px 24px;
}

.news-tile__date {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #31d5c8;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.news-tile__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.news-tile__text {
  font-size: 17px;
  color: #6a7d99;
  margin: 0;
  line-height: 1.55;
}

/* Stalkers leaderboard */
.stalkers-top {
  border: 1px solid #2e3d5a;
  overflow: hidden;
}

.stalker-row {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #1a2133;
  background: #222B3E;
  transition: background 0.15s;
}

.stalker-row:last-child {
  border-bottom: none;
}

.stalker-row:hover {
  background: #263048;
}

.stalker-rank {
  font-weight: 900;
  font-size: 24px;
  width: 60px;
  color: #4a5c78;
  flex-shrink: 0;
}

.stalker-row--gold .stalker-rank   { color: #f0c040; }
.stalker-row--silver .stalker-rank { color: #b0c4d8; }
.stalker-row--bronze .stalker-rank { color: #cd7f32; }

.stalker-name {
  font-weight: 700;
  color: #fff;
  flex: 1;
  font-size: 20px;
}

.stalker-faction {
  color: #6a7d99;
  font-size: 17px;
  min-width: 130px;
}

.stalker-score {
  font-size: 18px;
  color: #31d5c8;
  font-weight: 600;
  min-width: 110px;
  text-align: right;
}

/* Progress features list */
.progress-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #2e3d5a;
}

.progress-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #1a2133;
  background: #222B3E;
}

.progress-feature-item:last-child {
  border-bottom: none;
}

.progress-feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31d5c8;
  flex-shrink: 0;
}

.progress-feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.progress-feature-desc {
  font-size: 15px;
  color: #6a7d99;
}

/* Video block */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c1220;
  border: 1px solid #2e3d5a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    #151c29,
    #151c29 12px,
    #111827 12px,
    #111827 24px
  );
  opacity: 0.5;
}

.video-placeholder__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.video-placeholder__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #31d5c8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #31d5c8;
  padding-left: 6px;
}

.video-placeholder__text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.video-placeholder__sub {
  font-size: 15px;
  color: #4a5c78;
}

/* Gallery carousel */
.gallery-section {
  overflow: visible;
}

.gallery-carousel-wrap {
  width: 100vw;
  max-width: 2200px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e3d5a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: repeating-linear-gradient(
    135deg,
    #151c29,
    #151c29 12px,
    #111827 12px,
    #111827 24px
  );
  border-top: 1px solid #2e3d5a;
  border-bottom: 1px solid #2e3d5a;
}

.gallery-carousel-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.gallery-control {
  width: 60px;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.2s;
}

.gallery-control:hover {
  background: rgba(49, 213, 200, 0.25);
}

.gallery-indicators {
  bottom: -28px;
}

.gallery-indicators [data-bs-target] {
  background-color: #2e3d5a;
  width: 28px;
  height: 3px;
  border: none;
  transition: background-color 0.2s, width 0.2s;
}

.gallery-indicators .active {
  background-color: #31d5c8;
  width: 40px;
}

/* Subscribe block */
.subscribe-block {
  background: #222B3E;
  border: 1px solid #2e3d5a;
  padding: 50px 48px;
}

.subscribe-channel {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #151c29;
  border: 1px solid #2e3d5a;
  padding: 20px 24px;
}

.subscribe-channel__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.subscribe-channel__icon--email {
  background: #1a2a3a;
  color: #9aaccc;
  border: 1px solid #2e3d5a;
}

.subscribe-channel__icon--tg {
  background: #0d2235;
  color: #31d5c8;
  border: 1px solid #1a4060;
}

.subscribe-channel__info {
  flex: 1;
  min-width: 0;
}

.subscribe-channel__name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.subscribe-channel__desc {
  font-size: 14px;
  color: #6a7d99;
}

.subscribe-feedback {
  font-size: 13px;
  padding: 8px 14px;
}

.subscribe-feedback--ok {
  color: #31d5c8;
  background: rgba(49, 213, 200, 0.08);
  border: 1px solid rgba(49, 213, 200, 0.25);
}

.subscribe-feedback--err {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.25);
}

.subscribe-input {
  min-width: 0;
  flex: 1;
  height: auto;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 0 !important;
}

/* CTA block */
.cta-block {
  background: #222B3E;
  border: 1px solid #2e3d5a;
  /*border-left: 3px solid #31d5c8;*/
  /*border-right: 3px solid #31d5c8;*/
  padding: 70px 40px;
  text-align: center;
}

.cta-block h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.cta-block p {
  color: #9aaccc;
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* Disabled/stub nav links */
.nav-link--stub {
  color: #4a5c78 !important;
  cursor: default;
  pointer-events: none;
}

/* Navbar dropdown */
.navbar-dropdown {
  background: #222B3E;
  border: 1px solid #2e3d5a;
  border-radius: 0;
  min-width: 160px;
  padding: 4px 0;
}

.navbar-dropdown .dropdown-item {
  color: #e8e8e8;
  font-size: 14px;
  padding: 8px 18px;
}

.navbar-dropdown .dropdown-item:hover,
.navbar-dropdown .dropdown-item:focus {
  background: #2e3d5a;
  color: #fff;
}

/* Poster glitch */
.poster-content {
  position: absolute;
  top: 18%;
  right: 10%;
  text-align: center;
}

.poster-glitch {
  display: block;
  margin: 0;
  font-size: 120px;
  font-weight: 900;
  color: #31D5C8;
  letter-spacing: 6px;
  text-shadow: 0 0px 20px rgba(0,0,0,1);
}

.poster-release {
  font-size: 40px;
  font-weight: 800;
  color: #222B3E;
  letter-spacing: 10px;
  text-transform: uppercase;
  text-shadow: 0 0px 40px rgba(0,0,0,1);
  margin-top: 6px;
  -webkit-text-stroke: 4px #31D5C8;
  paint-order: stroke fill;
  font-family: 'Roboto', sans-serif;
}

.poster-glitch::before,
.poster-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.poster-glitch::before {
  color: #ff2d55;
  animation: glitch-before 5.2s infinite;
  clip-path: polygon(0 20%, 100% 20%, 100% 50%, 0 50%);
}

.poster-glitch::after {
  color: #00f5ff;
  animation: glitch-after 5.2s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 80%, 0 80%);
}

@keyframes glitch-before {
  0%, 78%, 100%   { opacity: 0; transform: translate(0); }
  79%             { opacity: 1; transform: translate(-5px, 1px); clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%); }
  80%             { opacity: 1; transform: translate(4px, -1px); clip-path: polygon(0 5%,  100% 5%,  100% 30%, 0 30%); }
  81%             { opacity: 1; transform: translate(-3px, 2px); clip-path: polygon(0 25%, 100% 25%, 100% 55%, 0 55%); }
  82%             { opacity: 0; transform: translate(0); }
  83%, 85%        { opacity: 0; }
  84%             { opacity: 1; transform: translate(6px, 0);    clip-path: polygon(0 10%, 100% 10%, 100% 35%, 0 35%); }
  86%, 99%        { opacity: 0; }
}

@keyframes glitch-after {
  0%, 78%, 100%   { opacity: 0; transform: translate(0); }
  79%             { opacity: 1; transform: translate(5px, -1px);  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); }
  80%             { opacity: 1; transform: translate(-4px, 1px);  clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%); }
  81%             { opacity: 1; transform: translate(3px, -2px);  clip-path: polygon(0 50%, 100% 50%, 100% 75%, 0 75%); }
  82%             { opacity: 0; transform: translate(0); }
  83%, 85%        { opacity: 0; }
  84%             { opacity: 1; transform: translate(-5px, 0);    clip-path: polygon(0 65%, 100% 65%, 100% 85%, 0 85%); }
  86%, 99%        { opacity: 0; }
}

.main__poster {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background-image: url(/images/main_page.png);
  background-size: cover;
  background-position: center;
  height: calc(100vh - 56px);
  box-shadow: inset 0 0 300px rgba(0,0,0,0.85);
  overflow: hidden;
}

@media (max-width: 768px) {
  .main__poster {
    height: 600px;
  }
}

.main__poster::before,
.main__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(/images/main_page.png);
  background-size: cover;
  background-position: center;
  pointer-events: none;
  opacity: 0;
}

.main__poster::before {
  filter: hue-rotate(150deg) saturate(6) brightness(1.4);
  animation: poster-glitch-1 3.2s infinite;
}

.main__poster::after {
  filter: hue-rotate(-50deg) saturate(6) brightness(1.4);
  animation: poster-glitch-2 3.2s infinite;
}

@keyframes poster-glitch-1 {
  0%, 27%, 50%, 66%, 100% { opacity: 0; }
  28% { opacity: 0.75; transform: translateX(-7px); clip-path: polygon(0 8%,  100% 8%,  100% 28%, 0 28%); }
  32% { opacity: 0.75; transform: translateX(5px);  clip-path: polygon(0 42%, 100% 42%, 100% 58%, 0 58%); }
  36% { opacity: 0.6;  transform: translateX(-4px); clip-path: polygon(0 68%, 100% 68%, 100% 82%, 0 82%); }
  40% { opacity: 0.7;  transform: translateX(8px);  clip-path: polygon(0 18%, 100% 18%, 100% 38%, 0 38%); }
  44% { opacity: 0.6;  transform: translateX(-6px); clip-path: polygon(0 55%, 100% 55%, 100% 72%, 0 72%); }
  48% { opacity: 0.75; transform: translateX(4px);  clip-path: polygon(0 5%,  100% 5%,  100% 22%, 0 22%); }
  50% { opacity: 0; }
  67% { opacity: 0.75; transform: translateX(6px);  clip-path: polygon(0 12%, 100% 12%, 100% 35%, 0 35%); }
  71% { opacity: 0.75; transform: translateX(-5px); clip-path: polygon(0 50%, 100% 50%, 100% 70%, 0 70%); }
  75% { opacity: 0.6;  transform: translateX(4px);  clip-path: polygon(0 75%, 100% 75%, 100% 90%, 0 90%); }
  79% { opacity: 0.7;  transform: translateX(-8px); clip-path: polygon(0 25%, 100% 25%, 100% 48%, 0 48%); }
  83% { opacity: 0.6;  transform: translateX(6px);  clip-path: polygon(0 60%, 100% 60%, 100% 78%, 0 78%); }
  87% { opacity: 0.75; transform: translateX(-4px); clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); }
  90% { opacity: 0; }
}

@keyframes poster-glitch-2 {
  0%, 27%, 50%, 66%, 100% { opacity: 0; }
  28% { opacity: 0.7;  transform: translateX(7px);  clip-path: polygon(0 55%, 100% 55%, 100% 72%, 0 72%); }
  32% { opacity: 0.7;  transform: translateX(-5px); clip-path: polygon(0 12%, 100% 12%, 100% 32%, 0 32%); }
  36% { opacity: 0.55; transform: translateX(4px);  clip-path: polygon(0 78%, 100% 78%, 100% 92%, 0 92%); }
  40% { opacity: 0.65; transform: translateX(-8px); clip-path: polygon(0 3%,  100% 3%,  100% 22%, 0 22%); }
  44% { opacity: 0.55; transform: translateX(6px);  clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); }
  48% { opacity: 0.7;  transform: translateX(-4px); clip-path: polygon(0 65%, 100% 65%, 100% 85%, 0 85%); }
  50% { opacity: 0; }
  67% { opacity: 0.7;  transform: translateX(-7px); clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); }
  71% { opacity: 0.7;  transform: translateX(5px);  clip-path: polygon(0 60%, 100% 60%, 100% 78%, 0 78%); }
  75% { opacity: 0.55; transform: translateX(-4px); clip-path: polygon(0 15%, 100% 15%, 100% 38%, 0 38%); }
  79% { opacity: 0.65; transform: translateX(8px);  clip-path: polygon(0 70%, 100% 70%, 100% 88%, 0 88%); }
  83% { opacity: 0.55; transform: translateX(-6px); clip-path: polygon(0 8%,  100% 8%,  100% 28%, 0 28%); }
  87% { opacity: 0.7;  transform: translateX(4px);  clip-path: polygon(0 48%, 100% 48%, 100% 68%, 0 68%); }
  90% { opacity: 0; }
}

.poster-glitch {
  position: relative;
  z-index: 2;
  font-family: 'Roboto', sans-serif;
}

/* ============================
   Auth pages (Login / Register)
   ============================ */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 60px 16px 80px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #222B3E;
  border: 1px solid #2e3d5a;
}

.auth-card__header {
  padding: 36px 36px 20px;
  border-bottom: 1px solid #1a2133;
  text-align: center;
}

.auth-card__title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 6px 0 0;
  letter-spacing: 1px;
}

.auth-form {
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #8a9bbf;
  text-transform: uppercase;
}

.auth-input {
  border-radius: 0 !important;
  padding: 10px 14px;
  font-size: 15px;
}

.auth-hint {
  font-size: 12px;
  color: #4a5c78;
}

.auth-field-error {
  font-size: 12px;
  color: #e74c3c;
}

.auth-error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.4);
  padding: 10px 14px;
  font-size: 13px;
  color: #e74c3c;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-check {
  background-color: #1a2133;
  border-color: #2e3d5a;
  border-radius: 0 !important;
  flex-shrink: 0;
}

.auth-check:checked {
  background-color: #31d5c8;
  border-color: #31d5c8;
}

.auth-check-label {
  font-size: 14px;
  color: #8a9bbf;
}

.auth-submit {
  width: 100%;
  text-align: center;
  display: block;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
}

.auth-card__footer {
  padding: 20px 36px 28px;
  text-align: center;
  font-size: 14px;
  color: #6a7d99;
  border-top: 1px solid #1a2133;
}

.auth-link {
  color: #31d5c8;
  text-decoration: none;
}

.auth-link:hover {
  color: #5ee8de;
  text-decoration: underline;
}

/* ============================
   Stalkers page
   ============================ */
.stalkers-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid #1a2133;
  margin-bottom: 32px;
}

.stalkers-hero__title {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 10px;
}

.stalkers-hero__sub {
  font-size: 18px;
  color: #6a7d99;
  margin-bottom: 20px;
}

.stalkers-prerelease-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #f39c12;
  background: rgba(243, 156, 18, 0.08);
  border: 1px solid rgba(243, 156, 18, 0.25);
  padding: 6px 14px;
}

.stalkers-prerelease-badge span {
  font-size: 8px;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Filters */
.stalkers-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.stalker-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #222B3E;
  border: 1px solid #2e3d5a;
  color: #8a9bbf;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.stalker-filter:hover {
  border-color: #31d5c8;
  color: #fff;
}

.stalker-filter.active {
  border-color: #31d5c8;
  color: #31d5c8;
  background: rgba(49, 213, 200, 0.07);
}

.faction-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Board */
.sb-table {
  border: 1px solid #2e3d5a;
  overflow: hidden;
  margin-bottom: 12px;
}

.sb-table__head,
.sb-table__row {
  display: grid;
  grid-template-columns: 52px 50px 1fr 80px 80px 90px 130px;
  align-items: center;
  padding: 0 20px;
}

.sb-table__head {
  height: 42px;
  background: #111827;
  border-bottom: 2px solid #1a2133;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4a5c78;
}

.sb-col--raids,
.sb-col--hcr,
.sb-col--xp,
.sb-col--date {
  text-align: center;
}

.sb-table__row {
  min-height: 60px;
  background: #1a2133;
  border-bottom: 1px solid #111827;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.sb-table__row:last-child { border-bottom: none; }

.sb-table__row:hover {
  background: #263347;
  color: inherit;
  text-decoration: none;
}

/* Top-3 row tinting */
.sb-row--gold   { background: #1b2c19; }
.sb-row--silver { background: #1a2230; }
.sb-row--bronze { background: #26201a; }

.sb-row--gold:hover   { background: #223220; }
.sb-row--silver:hover { background: #202a3a; }
.sb-row--bronze:hover { background: #2e2520; }

/* Rank cell */
.sb-col--rank {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-rank-num {
  font-size: 14px;
  font-weight: 800;
  color: #4a5c78;
}

.sb-medal {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

.sb-medal--gold   { background: rgba(240,192,64,0.12);  color: #f0c040; border: 1px solid rgba(240,192,64,0.3); }
.sb-medal--silver { background: rgba(170,187,208,0.10); color: #b0c4d8; border: 1px solid rgba(170,187,208,0.25); }
.sb-medal--bronze { background: rgba(192,120,74,0.12);  color: #c08050; border: 1px solid rgba(192,120,74,0.3); }

/* Avatar cell */
.sb-col--avatar {
  display: flex;
  align-items: center;
}

.sb-avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
  display: block;
  border: 1px solid #2e3d5a;
}

.sb-avatar-ph {
  width: 38px;
  height: 38px;
  background: #111827;
  border: 1px solid #1e2c44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #2a3a52;
  flex-shrink: 0;
}

/* Name */
.sb-name {
  font-size: 15px;
  font-weight: 700;
  color: #e8e8e8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Numeric columns */
.sb-col--raids,
.sb-col--hcr {
  font-size: 14px;
  color: #6a7d99;
}

.sb-col--xp {
  font-size: 15px;
  font-weight: 700;
  color: #31d5c8;
}

.sb-col--date {
  font-size: 12px;
  color: #4a5c78;
  white-space: nowrap;
}

/* Homepage leaderboard tinting (scoped to avoid conflicts) */
.stalkers-top .stalker-row--gold   { background: #1e2a1a; }
.stalkers-top .stalker-row--silver { background: #1e2433; }
.stalkers-top .stalker-row--bronze { background: #271e1a; }
.stalkers-top .stalker-row--gold:hover   { background: #243220; }
.stalkers-top .stalker-row--silver:hover { background: #243040; }
.stalkers-top .stalker-row--bronze:hover { background: #302420; }

.stalkers-empty {
  padding: 60px 0;
  text-align: center;
  color: #4a5c78;
  font-size: 18px;
}

.stalkers-footer-note {
  padding: 20px 0 60px;
  font-size: 13px;
  color: #2e3d5a;
  text-align: center;
}

@media (max-width: 768px) {
  .sb-table__head,
  .sb-table__row {
    grid-template-columns: 44px 38px 1fr 90px;
    padding: 0 12px;
  }
  .sb-col--raids,
  .sb-col--hcr,
  .sb-col--date { display: none; }
  .stalkers-hero__title { font-size: 34px; }
}

/* ============================
   Stalker profile page
   ============================ */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 60px 0 48px;
  border-bottom: 1px solid #1a2133;
  margin-bottom: 40px;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  background: #1a2133;
  border: 1px solid #2e3d5a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar__placeholder {
  font-size: 72px;
  color: #2e3d5a;
}

.profile-avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
}

.profile-avatar-upload__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #31d5c8;
  color: #0c1220;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.profile-avatar-upload__btn:hover {
  background: #5ee8de;
}

.profile-upload-error {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  font-size: 12px;
  color: #e74c3c;
  white-space: nowrap;
  background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.3);
  padding: 4px 8px;
}

.profile-hero__name {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 8px;
}

.profile-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #8a9bbf;
  background: #1a2133;
  border: 1px solid #2e3d5a;
}

.profile-badge__icon {
  font-size: 14px;
}

.profile-hero__meta {
  font-size: 14px;
  color: #4a5c78;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.profile-stat {
  background: #222B3E;
  border: 1px solid #2e3d5a;
  padding: 28px 20px;
  text-align: center;
}

.profile-stat__icon {
  font-size: 28px;
  color: #4a5c78;
  margin-bottom: 10px;
}

.profile-stat__icon--red {
  color: #c0392b;
}

.profile-stat__value {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.profile-stat__value--xp {
  color: #31d5c8;
}

.profile-stat__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4a5c78;
}

.profile-prerelease {
  text-align: center;
  font-size: 13px;
  color: #2e3d5a;
  padding: 0 0 60px;
}

@media (max-width: 768px) {
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-hero { gap: 20px; }
  .profile-hero__name { font-size: 28px; }
  .profile-avatar { width: 100px; height: 100px; }
  .profile-avatar__placeholder { font-size: 44px; }
}

/* ============================
   News page
   ============================ */
.news-page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid #1a2133;
  margin-bottom: 48px;
}

.news-page-hero__title {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 6px;
}

.news-page-hero__sub {
  font-size: 16px;
  color: #4a5c78;
  margin: 0;
}

.news-grid {
  margin-bottom: 80px;
}

.news-card {
  background: #222B3E;
  border: 1px solid transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.news-card:hover {
  border-color: #31d5c8;
  transform: translateY(-3px);
  z-index: 1;
  position: relative;
}

.news-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-card__img-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(
    135deg,
    #151c29,
    #151c29 12px,
    #1a2133 12px,
    #1a2133 24px
  );
  border-bottom: 1px solid #1a2133;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2c42;
  font-size: 48px;
}

.news-card__body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #31d5c8;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.news-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card__text {
  font-size: 14px;
  color: #6a7d99;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 576px) {
  .news-grid { grid-template-columns: 1fr; gap: 24px; }
  .news-page-hero__title { font-size: 34px; }
}