@font-face {
  font-family: "Black Witcher";
  src: url("assets/fonts/Black Witcher.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --accent: rgb(255, 115, 0);
  --accent-bright: rgb(255, 140, 0);
  --accent-deep: rgb(255, 89, 26);
  --bg: #07060a;
  --gold: #ffd600;
  --silver: #bfbfc7;
  --bronze: #cc8033;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #fff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 500;
  overflow-x: hidden;
}

/* Tiled star field, sits behind everything */
.stars-layer {
  position: fixed;
  inset: 0;
  background-image: url("assets/stars.png");
  background-repeat: repeat;
  background-size: 400px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 60px;
  background-image:
    radial-gradient(ellipse at center 30%, rgba(255, 89, 26, 0.35) 0%, rgba(7, 6, 10, 0.2) 55%, rgba(7, 6, 10, 1) 85%),
    url("assets/00petya.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  box-shadow: 0 0 60px rgba(255, 115, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.hero-title {
  font-family: "Black Witcher", "Space Grotesk", sans-serif;
  font-weight: normal;
  font-size: clamp(56px, 12vw, 128px);
  line-height: 1;
  margin: 0 0 48px;
  letter-spacing: 2px;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 30px rgba(255, 89, 26, 0.45);
}

/* ── Download buttons ─────────────────────────────────────── */

.download-buttons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.smartscreen-note {
  max-width: 460px;
  width: 100%;
  margin: 20px auto 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  box-sizing: border-box;
}

.smartscreen-note i {
  color: var(--accent-bright);
  margin-right: 6px;
}

.smartscreen-note strong {
  color: rgba(255, 255, 255, 0.85);
}

.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  padding: 18px 32px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(255, 89, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(255, 89, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-windows {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-windows:hover {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-icon {
  font-size: 26px;
  line-height: 1;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-big {
  font-size: 22px;
  font-weight: 700;
}

/* ── Leaderboard ───────────────────────────────────────────── */

.leaderboard {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

.lb-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 6px;
  text-align: center;
  margin: 0 0 28px;
  color: #fff;
}

.lb-header {
  display: grid;
  grid-template-columns: 50px 44px 1fr 110px;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-col-rank { text-align: center; }
.lb-col-score { text-align: right; }

.lb-rows {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}

.lb-row {
  display: grid;
  grid-template-columns: 50px 44px 1fr 110px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
}

.lb-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

.lb-rank {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.65);
}

.lb-rank.gold { color: var(--gold); }
.lb-rank.silver { color: var(--silver); }
.lb-rank.bronze { color: var(--bronze); }

.lb-flag {
  font-size: 20px;
  text-align: center;
}

.lb-player {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 8px;
}

.lb-name {
  font-weight: 700;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-realm {
  font-size: 13px;
  color: rgba(191, 158, 128, 0.8);
  margin-top: 2px;
}

.lb-score {
  text-align: right;
  font-weight: 700;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
}

.lb-row.gold .lb-score,
.lb-row.silver .lb-score,
.lb-row.bronze .lb-score {
  color: var(--accent-bright);
}

.lb-status {
  text-align: center;
  padding: 32px 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

@media (max-width: 480px) {
  .hero-logo { width: 120px; height: 120px; }
  .download-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .lb-header, .lb-row { grid-template-columns: 40px 36px 1fr 90px; }
}

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px 40px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.site-footer a:hover {
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}

/* ── Legal / content pages (account deletion, privacy, ...) ─── */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 100px;
  position: relative;
  z-index: 1;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 32px;
}

.legal-back:hover {
  color: var(--accent-bright);
}

.legal-title {
  font-family: "Black Witcher", "Space Grotesk", sans-serif;
  font-weight: normal;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: 1px;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-updated {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  margin: 0 0 40px;
}

.legal-section {
  margin: 0 0 36px;
}

.legal-section h2 {
  font-size: 20px;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
  color: #fff;
}

.legal-section p,
.legal-section li {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  font-size: 15px;
}

.legal-section a {
  color: var(--accent-bright);
  text-decoration: underline;
}

.legal-section ol,
.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-warning {
  color: rgba(255, 140, 110, 0.9);
  font-weight: 700;
}

.legal-email-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 115, 0, 0.08);
  border: 1px solid rgba(255, 115, 0, 0.25);
  margin-top: 14px;
}

.legal-email-box a {
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  word-break: break-all;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.legal-table th {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
}
