@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #07070c;
  --card: #0e0e16;
  --card2: #13131e;
  --border: #2a1f0a;
  --gold: #c8a96e;
  --gold-dim: #7a5f35;
  --red: #8b2020;
  --red-bright: #c0392b;
  --text: #a89888;
  --text-bright: #d4c4a8;
  --text-dim: #5a4a3a;
  --accent: #3d1f10;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

/* Фоновая текстура */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(80,20,5,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(50,10,50,0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,12,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 56px;
}

nav .logo {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.2s;
  white-space: nowrap;
}
nav a:hover { color: var(--gold); }
nav a.active { color: var(--gold); }

/* MAIN */
main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* PAGE HEADER */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: var(--gold);
  letter-spacing: 3px;
  text-shadow: 0 0 30px rgba(200,169,110,0.3);
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-dim);
  font-style: italic;
  font-size: 1rem;
}

/* DIVIDER */
.divider {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 1.5rem auto;
}

/* CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--red), transparent);
  border-radius: 4px 0 0 4px;
}

.card h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.card p { margin-bottom: 0.8rem; }
.card p:last-child { margin-bottom: 0; }

/* RATING */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}

/* BADGE */
.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--gold);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--gold-dim);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
}

/* LOGIN FORM */
.login-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  padding: 2rem;
}

.login-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.login-box::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo .skull { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

.login-logo h1 {
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.login-logo p {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.3rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-bright);
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--gold-dim); }

.btn {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #4a1a1a, var(--red));
  border: 1px solid #6b2020;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding: 0.7rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.btn:hover { background: linear-gradient(180deg, #5a2020, #9b2525); }
.btn:active { transform: translateY(1px); }

.error-msg {
  background: rgba(139,32,32,0.15);
  border: 1px solid var(--red);
  border-radius: 3px;
  color: #e07070;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  margin-top: 1rem;
  display: none;
}
.error-msg.show { display: block; }

.login-links {
  text-align: center;
  margin-top: 1.5rem;
}
.login-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.login-links a:hover { color: var(--gold); }

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media(max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* STAT ROW */
.stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(42,31,10,0.5);
}
.stat-row:last-child { border-bottom: none; }
.stat-label { flex: 1; color: var(--text-dim); font-size: 0.9rem; font-family: 'Cinzel', serif; letter-spacing: 1px; }
.stat-val { color: var(--red-bright); font-family: 'Cinzel', serif; font-size: 0.95rem; }
.stat-val.green { color: #5a9a5a; }

/* QUOTE */
blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1.2rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--text-dim);
}

/* PROGRESS BAR */
.bar-wrap { margin: 0.4rem 0 0.8rem; }
.bar-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 3px; }
.bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--red), #a83030); }
.bar-fill.good { background: linear-gradient(90deg, #2a6a2a, #4a9a4a); }

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

.tag { color: var(--gold-dim); }
