:root {
  --bg: #0b1020;
  --bg-2: #0f1b2f;
  --text: #f2f6ff;
  --muted: #a6b4c8;
  --accent: #eaff4c;
  --accent-2: #41d0ff;
  --tag-max: #eaff4c;
  --tag-casual: #41d0ff;
  --tag-kids: #ff9d57;
  --tag-mad: #9ff9a7;
  --panel: rgba(12, 19, 34, 0.78);
  --panel-strong: rgba(16, 25, 45, 0.92);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 30px 70px rgba(3, 10, 24, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Exo 2", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(circle at top, rgba(65, 208, 255, 0.25), transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(234, 255, 76, 0.22), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.page-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 0 39px, rgba(255, 255, 255, 0.03) 39px 40px),
    linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.03) 39px 40px);
  background-size: 40px 40px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.top-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav__logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

.menu {
  position: relative;
}

.menu__toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu[open] .menu__toggle {
  border-color: rgba(234, 255, 76, 0.6);
  color: var(--accent);
}

.menu__panel {
  position: absolute;
  top: 56px;
  left: 0;
  min-width: 220px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.menu__panel a {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu__panel a:hover {
  background: rgba(234, 255, 76, 0.12);
  color: var(--accent);
}

.menu__auth {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.menu__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #081320;
  font-weight: 700;
}

.menu__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.menu__nick {
  font-weight: 600;
  color: var(--text);
}

.main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.player-page {
  display: grid;
  gap: 32px;
}

.player-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.player-hero__media {
  position: relative;
  display: grid;
  place-items: center;
}

.player-photo {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(16, 24, 42, 0.9), rgba(8, 14, 26, 0.95));
  box-shadow: var(--shadow);
}

.player-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.player-photo__ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  top: -30px;
  right: 10px;
  z-index: -1;
}

.player-hero__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.player-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  color: #0a1220;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.player-badge--max {
  background: var(--tag-max);
}

.player-badge--casual {
  background: var(--tag-casual);
}

.player-badge--kids {
  background: var(--tag-kids);
}

.player-badge--mad {
  background: var(--tag-mad);
}

.player-badge--default {
  background: var(--accent);
}

.player-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  color: var(--muted);
}

.player-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin: 0;
  letter-spacing: 1px;
}

.player-role {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent-2);
}

.player-role-sub {
  margin: 0;
  color: var(--muted);
}

.player-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.player-level {
  font-size: 0.9rem;
  color: var(--muted);
}

.stars {
  display: flex;
  gap: 6px;
}

.star {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.2);
}

.star svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.star.filled {
  color: var(--accent);
}

.player-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background: var(--accent);
  color: #0a1220;
  box-shadow: 0 15px 30px rgba(234, 255, 76, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.player-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(65, 208, 255, 0.12);
  color: var(--accent-2);
  text-decoration: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-card strong {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.player-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.panel {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.panel--bio {
  grid-column: span 2;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
}

.detail-item dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.detail-item dd {
  margin: 0;
  font-weight: 600;
}


@media (max-width: 960px) {
  .panel--bio {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .top-nav__inner {
    padding: 12px 18px;
  }

  .menu__panel {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
  }

  .player-photo {
    max-width: 320px;
  }

  .detail-item {
    grid-template-columns: 100px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
