﻿*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #E8323C;
  --red-dark: #c42830;
  --teal: #1a7a7a;
  --teal-light: #22a0a0;
  --bg: #0d0e10;
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.55);
  --text-muted: rgba(255,255,255,0.3);
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* ════════════════════════════════════════
   BACKGROUND
════════════════════════════════════════ */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-image {
  position: absolute;
  width: 80%;
  height: auto;
  top: -5%;
  right: -4%;
}


.bg-overlay {
  position: absolute;
  inset: 0;
  /* Strong dark gradient on the left, fades to transparent right */
  background:
    linear-gradient(
      to right,
      rgba(10, 10, 14, 0.97) 0%,
      rgba(10, 10, 14, 0.85) 25%,
      rgba(10, 10, 14, 0.4) 50%,
      rgba(10, 10, 14, 0.05) 70%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 10, 14, 0.6) 0%,
      transparent 15%,
      transparent 80%,
      rgba(10, 10, 14, 0.9) 100%
    );
}

/* ════════════════════════════════════════
   TOP BAR
════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

.topbar-left {
  position: fixed;
  top: 50px;
  left: 50px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: all;
  transition: opacity 0.3s;
}

.topbar-right {
  position: fixed;
  top: 50px;
  right: 50px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: all;
  transition: opacity 0.3s;
}

/* Logo badge — red circle with inner circle */
.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(232, 50, 60, 0.4);
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}

.logo-top-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.logo-abi {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
}

.logo-portal {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.12em;
}

.logo-sub {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
}

/* Arena Breakout Infinite watermark text */
.game-watermark {
  margin-left: 18px;
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wm-out {
  font-size: 7px;
  vertical-align: super;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(10,10,15,0.85);
  border: 1px solid #E8323C;
  color: #E8323C;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
  border-radius: 0;
}

.lang-btn:hover {
  background: rgba(232,50,60,0.1);
  color: #E8323C;
}

/* ════════════════════════════════════════
   CORNER DECORATIONS
════════════════════════════════════════ */
.corner {
  position: fixed;
  z-index: 10;
  width: 40px;
  height: 40px;
}

.corner-tl {
  top: 20px;
  left: 20px;
  border-top: 1.5px solid rgba(255,255,255,0.25);
  border-left: 1.5px solid rgba(255,255,255,0.25);
}

.corner-tr {
  top: 20px;
  right: 20px;
  border-top: 1.5px solid rgba(255,255,255,0.25);
  border-right: 1.5px solid rgba(255,255,255,0.25);
}

/* ════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════ */
.main-content {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 0 0 7vw;
}

.left-section {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Eyebrow ─────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--red);
  opacity: 0.7;
}

/* ── Hero title ──────────────────────── */
.hero-title {
  line-height: 1;
  margin-bottom: 22px;
}

.title-white {
  display: block;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: -10px;
}

.title-red {
  display: block;
  font-size: clamp(70px, 10vw, 130px);
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.9;
  text-shadow: 0 0 60px rgba(232, 50, 60, 0.35);
}

/* ── Tagline ─────────────────────────── */
.tagline-bold {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.tagline-desc {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ── Sign in block ───────────────────── */
.signin-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.signin-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 5px;
}

.signin-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
  line-height: 1.5;
}

.alert-msg {
  padding: 10px 14px;
  background: rgba(232, 50, 60, 0.15);
  border: 1px solid rgba(232, 50, 60, 0.3);
  border-radius: 6px;
  font-size: 12px;
  color: #ff7070;
  margin-bottom: 14px;
}

.alert-msg.success {
  background: rgba(50, 200, 100, 0.12);
  border-color: rgba(50, 200, 100, 0.3);
  color: #4de88a;
}

/* ── Buttons row ─────────────────────── */
.btn-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
}

.btn-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 36px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  transition: filter 0.2s, transform 0.16s, box-shadow 0.2s;
  position: relative;
  white-space: nowrap;
  /* срез только правый верхний угол */
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.btn-signin:hover {
  filter: brightness(1.12);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(232,50,60,0.4), 0 0 40px rgba(232,50,60,0.15);
}

.btn-signin:active {
  transform: translateY(0);
  filter: brightness(0.92);
}

/* Discord — красная */
.btn-discord {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 12px rgba(232,50,60,0.25);
  animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(232,50,60,0.25); }
  50% { box-shadow: 0 0 24px rgba(232,50,60,0.5), 0 0 48px rgba(232,50,60,0.15); }
}

/* Telegram — тёмная */
.btn-telegram {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  outline: 1px solid rgba(255,255,255,0.15);
  outline-offset: -1px;
}

.btn-telegram:hover {
  background: rgba(255,255,255,0.16);
}

/* ════════════════════════════════════════
   BOTTOM RIGHT BADGE
════════════════════════════════════════ */
.bottom-badge {
  position: fixed;
  bottom: 48px;
  right: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bb-circle {
  opacity: 0.5;
}

.bb-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bb-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}

.bb-sub {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   BOTTOM BAR
════════════════════════════════════════ */
.bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(to top, rgba(10,10,14,0.85) 0%, transparent 100%);
}

.bottom-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-nav a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.bottom-nav a:hover {
  color: rgba(255,255,255,0.75);
}

/* The last link "BREAK THROUGH" is red */
.bottom-nav a:last-child {
  color: rgba(232, 50, 60, 0.6);
}

.bottom-nav a:last-child:hover {
  color: var(--red);
}

.nav-dot {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}

.bottom-right-id {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 768px) {
  html, body { overflow: auto; }

  .main-content {
    padding: 100px 24px 80px;
    align-items: flex-start;
  }

  .left-section {
    max-width: 100%;
  }

  .title-red {
    font-size: 64px;
  }

  .title-white {
    font-size: 36px;
  }

  .btn-signin {
    min-width: 0;
    flex: 1;
  }

  .bottom-badge {
    display: none;
  }

  .game-watermark {
    display: none;
  }
}

@media (max-width: 480px) {
  .btn-row {
    flex-direction: column;
  }
}
