:root {
  --bg-dark: #0f0e0d;
  --bg-panel: rgba(24, 19, 18, 0.88);
  --line: rgba(255, 186, 120, 0.16);
  --text: #f1e7db;
  --muted: #c4b7a8;
  --iron: #e8e5e0;
  --green: #6fd24f;
  --red: #d95b5b;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --orange: #ff6b1f;
  --orange-2: #c95e18;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  min-height: 100vh;
  background:
    linear-gradient(rgba(17,14,12,.72), rgba(17,14,12,.82)),
    radial-gradient(circle at 20% 40%, rgba(255, 122, 33, .22), transparent 20%),
    radial-gradient(circle at 82% 35%, rgba(255, 140, 58, .16), transparent 22%),
    linear-gradient(180deg, #2a211d 0%, #161210 50%, #100d0b 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .09;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }
.wrap { width: min(1440px, calc(100% - 28px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(38,31,27,.96) 0%, rgba(24,19,17,.96) 55%, rgba(18,14,12,.97) 100%),
    linear-gradient(90deg, rgba(255,255,255,.055), transparent 16%, transparent 84%, rgba(255,255,255,.04));
  border-bottom: 1px solid rgba(255, 167, 87, 0.22);
  box-shadow: 0 12px 34px rgba(0,0,0,.52);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,232,206,.34), transparent);
  pointer-events: none;
}
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,122,33,.4), transparent);
  opacity: .65;
  pointer-events: none;
}
.topbar__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 0 8px;
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 340px;
  height: 64px;
  z-index: 30;
}
.brand--image {
  --logo-h: 350px;
  --logo-top: -111px;
  --logo-w: calc(var(--logo-h) * 2048 / 1365);
  --logo-hit-shift: 26px;
  padding: 0;
  overflow: visible;
  left: var(--logo-hit-shift);
}
.brand__img {
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  height: var(--logo-h);
  width: auto;
  max-width: none;
  object-fit: contain;
  position: absolute;
  top: var(--logo-top);
  left: calc(-1 * var(--logo-hit-shift));
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.08))
          drop-shadow(0 0 18px rgba(255,118,32,.18))
          drop-shadow(0 8px 20px rgba(0,0,0,.34));
}
.brand--image::after {
  content: "";
  position: absolute;
  top: var(--logo-top);
  left: calc(-1 * var(--logo-hit-shift));
  width: var(--logo-w);
  height: var(--logo-h);
  pointer-events: none;
  background: linear-gradient(
    108deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 42%,
    rgba(255,245,215,.18) 46%,
    rgba(255,255,255,.82) 49%,
    rgba(255,248,228,.52) 52%,
    rgba(255,255,255,0) 57%,
    rgba(255,255,255,0) 100%
  );
  background-size: 220% 100%;
  background-position: -160% 0;
  opacity: 0;
  mix-blend-mode: screen;
  -webkit-mask-image: url("img/logo_topbar.png");
  mask-image: url("img/logo_topbar.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: left top;
  mask-position: left top;
  animation: brandShine 7s ease-in-out infinite;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 116, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
    linear-gradient(180deg, rgba(56,45,38,.94), rgba(27,21,18,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px rgba(0,0,0,.26);
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #efe4d8;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  overflow: hidden;
  isolation: isolate;
}
.nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 38%);
  opacity: .85;
  pointer-events: none;
}
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 14px 0 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,132,33,.7), transparent);
  opacity: .45;
  pointer-events: none;
}
.nav a:hover,
.nav a:focus-visible {
  color: #fff8ee;
  border-color: rgba(255, 184, 116, 0.32);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
    linear-gradient(180deg, rgba(84,64,48,.96), rgba(35,26,21,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.34), 0 0 0 1px rgba(255,140,58,.08);
  transform: translateY(-1px);
}
.nav a:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.24);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: white;
  font-size: 22px;
}
.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 34px 0 44px;
  align-items: start;
}
.sidebar, .content-col { display: flex; flex-direction: column; gap: 14px; }
.panel, .news-card, .hero-frame {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)), var(--bg-panel);
  border: 1px solid rgba(255, 184, 116, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel::before, .news-card::before, .hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255,186,120,.22), rgba(255,128,52,.14), rgba(255,255,255,.03));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.panel__title {
  padding: 14px 18px;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,186,120,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}
.panel__body { padding: 14px 16px 16px; }
.form-grid { display: grid; gap: 10px; }
input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 186, 120, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.24);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}
input:focus { border-color: rgba(255, 139, 45, 0.45); box-shadow: 0 0 0 3px rgba(255, 139, 45, 0.10); }
.small-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 16px;
  font-size: .9rem;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 182, 111, 0.22);
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.btn--primary, .btn--secondary {
  background: linear-gradient(180deg, var(--orange-2) 0%, #8f3a12 100%);
  color: #fff1df;
  box-shadow: 0 10px 20px rgba(201, 94, 24, .20);
}
.btn--full { width: 100%; margin-top: 10px; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ranking-list { list-style: none; padding: 0; margin: 0; }
.ranking-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: #efe3d3;
}
.ranking-list li:last-child { border-bottom: 0; }
.ranking-list strong { color: #f4c38d; }
.muted { color: var(--muted); margin: 0; }
.hero-frame { min-height: 300px; padding: 14px; }
.section-label {
  font-family: "Cinzel", serif;
  font-size: 1.02rem;
  text-transform: uppercase;
  margin: 0 0 10px 8px;
  letter-spacing: .04em;
}
.hero-art {
  min-height: 300px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(18,14,12,.20), rgba(18,14,12,.55)),
    radial-gradient(circle at 68% 30%, rgba(255, 130, 40, .18), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.12));
  box-shadow: inset 0 0 0 1px rgba(255, 186, 120, 0.16);
  position: relative;
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(255,255,255,.12), transparent 20%),
    linear-gradient(180deg, rgba(98,72,56,.2), rgba(35,27,23,.4)),
    url('https://images.unsplash.com/photo-1511512578047-dfb367046420?q=80&w=1400&auto=format&fit=crop') center/cover no-repeat;
  opacity: .55;
}
.hero-art::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 36%;
  height: 88%;
  background:
    radial-gradient(circle at 45% 55%, rgba(255,116,28,.32), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.14));
  border-radius: 30% 30% 10% 10%;
  box-shadow: inset 0 0 60px rgba(255,120,36,.12);
  opacity: .75;
}
.news-card { display: grid; gap: 14px; padding: 16px; }
.news-card--main { grid-template-columns: 1fr; }
.news-card--small { grid-template-columns: 150px 1fr; }
.news-card__content h1, .news-card__content h2 {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  line-height: 1.15;
}
.news-card__content h1 { font-size: clamp(2rem, 2.8vw, 3rem); }
.news-card__content h2 { font-size: 1.7rem; }
.news-card__content p { margin: 0; color: #e3d4c2; line-height: 1.68; }
.news-card__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.thumb {
  min-height: 116px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,122,33,.25), transparent 18%),
    linear-gradient(135deg, #4f4035, #231a16);
  box-shadow: inset 0 0 0 1px rgba(255, 186, 120, 0.16);
}
.meta { color: #f0b77e; font-size: .9rem; margin-bottom: 8px; }
.countdown { display: flex; align-items: center; gap: 8px; color: #f4d7b2; font-size: .95rem; }
.countdown__label { color: var(--muted); }
.more-news-wrap { display: flex; justify-content: center; padding-top: 2px; }
.more-news {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 116, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  font-family: "Cinzel", serif;
  text-transform: uppercase;
}
.status-panel .panel__body { padding-top: 12px; }
.online-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.online-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7c7c7c, #4d4d4d);
  box-shadow: 0 0 18px rgba(124, 124, 124, .35);
}
.online-dot.is-online {
  background: linear-gradient(180deg, #86ea68, #4cae33);
  box-shadow: 0 0 18px rgba(111, 210, 79, .45);
}
.online-dot.is-offline {
  background: linear-gradient(180deg, #ef8585, #b44141);
  box-shadow: 0 0 18px rgba(217, 91, 91, .45);
}
.online-text { color: #d7d0c8; font-size: 1.1rem; letter-spacing: .03em; }
.online-text.is-online { color: var(--green); }
.online-text.is-offline { color: var(--red); }
.online-total { color: #d7ffbe; font-weight: 800; font-size: 1.25rem; }
.server-lines, .stat-list, .event-day { display: grid; gap: 10px; }
.server-lines div, .stat-list div, .event-day div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #e8d9c6;
}
.server-lines div:first-child, .stat-list div:first-child, .event-day div:first-child { border-top: 0; padding-top: 0; }
.socials { display: flex; justify-content: center; gap: 12px; padding-top: 4px; }
.socials a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(20,17,15,.76);
  border: 1px solid rgba(255, 184, 116, 0.16);
  box-shadow: var(--shadow);
  font-weight: 800;
}
.form-message {
  margin: 6px 2px 0;
  min-height: 20px;
  font-size: .92rem;
  color: var(--muted);
}
.form-message.is-error { color: #ff9d9d; }
.form-message.is-success { color: #9af08d; }
.placeholder-row { opacity: .8; }

.register-page {
  min-height: calc(100vh - 87px);
  display: grid;
  place-items: center;
  padding: 40px 0 56px;
}
.register-shell {
  width: min(560px, 100%);
}
.register-intro {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}
.register-form .btn {
  margin-top: 6px;
}
.register-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .95rem;
}
@media (max-width: 680px) {
  .register-links {
    flex-direction: column;
  }
}

@media (max-width: 1220px) {
  .layout { grid-template-columns: 1fr; }
  .left-col { order: 2; }
  .content-col { order: 1; }
  .right-col { order: 3; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
}
@media (max-width: 920px) {
  .topbar__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0 18px;
}
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; width: 100%; margin-left: 0; padding-bottom: 8px; }
  .nav--open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav a { text-align: center; background: rgba(255,255,255,.04); }
  .sidebar { grid-template-columns: 1fr; }
  .news-card--small { grid-template-columns: 1fr; }
  .hero-frame { min-height: auto; }
  .hero-art { min-height: 230px; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 16px, 1440px); }
  .brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 220px;
  height: 64px;
  z-index: 30;
}
  .news-card__content h1 { font-size: 1.8rem; }
  .news-card__content h2 { font-size: 1.4rem; }
  .nav--open { grid-template-columns: 1fr; }
}

@keyframes brandShine {
  0%, 20% {
    background-position: 160% 0;
    opacity: 0;
  }

  30% {
    opacity: .9;
  }

  75% {
    background-position: -160% 0;
    opacity: .95;
  }

  85%, 100% {
    background-position: -160% 0;
    opacity: 0;
  }
}
