:root {
  --bg-dark: #05070d;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.35);
  --cyan: #3af2ff;
  --red: #ff345d;
  --text-primary: #e8f3ff;
  --text-muted: #9cb3c9;
  --blur: 22px;
  --radius: 20px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --grid-color: rgba(255, 255, 255, 0.05);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-overflow-scrolling: touch;
}

html::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: rgba(5, 7, 13, 0.8);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--red));
  border-radius: 10px;
  border: 2px solid rgba(5, 7, 13, 0.8);
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5af8ff, #ff4d6d);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Rajdhani", system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loaded {
  opacity: 1;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  font-family: "Rajdhani", sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(58, 242, 255, 0.8);
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-text {
  margin-top: 20px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  animation: blink 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.bg-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(58, 242, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255, 52, 93, 0.18), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(58, 242, 255, 0.12), transparent 35%),
    linear-gradient(135deg, rgba(6, 12, 20, 0.9) 0%, rgba(5, 9, 15, 0.9) 50%, rgba(4, 7, 12, 0.9) 100%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.12), transparent 65%);
}

.particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.7) 0%, rgba(8, 12, 20, 0.2) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  transition: all 0.3s ease;
}

.top-bar.scrolled {
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--red));
  z-index: 12;
  transform-origin: 0%;
  transition: transform 0.1s ease-out;
  box-shadow: 0 0 10px var(--cyan);
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--cyan);
}

.nav-link:hover::after {
  width: 100%;
}

.brand {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 16px;
}

.est {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(58, 242, 255, 0.1);
  border: 1px solid rgba(58, 242, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  z-index: 11;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
  background: rgba(58, 242, 255, 0.2);
  border-color: rgba(58, 242, 255, 0.6);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
  background: rgba(58, 242, 255, 0.3);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--cyan);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(58, 242, 255, 0.5);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 32px 64px;
}

section {
  scroll-margin-top: 100px;
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.hero-left h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 12px 0 12px;
  letter-spacing: 0.02em;
}

.hero-left h1 span {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(58, 242, 255, 0.5);
}

.hero-left h1.glitch {
  animation: glitch-animation 0.2s ease;
}

@keyframes glitch-animation {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.hero-left .sub {
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: linear-gradient(135deg, rgba(58, 242, 255, 0.2), rgba(255, 52, 93, 0.2));
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(58, 242, 255, 0.3);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--red);
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(58, 242, 255, 0.2), rgba(255, 52, 93, 0.2));
  box-shadow: 0 10px 30px rgba(58, 242, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(58, 242, 255, 0.3);
  border-color: rgba(58, 242, 255, 0.8);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(58, 242, 255, 0.2);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 52, 93, 0.8);
  box-shadow: 0 18px 45px rgba(255, 52, 93, 0.25);
}

.btn-ghost:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(255, 52, 93, 0.15);
}

.hero-left,
.hero-badge,
.card,
.footer {
  position: relative;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-left {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-badge {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
  justify-content: center;
  background: linear-gradient(160deg, rgba(58, 242, 255, 0.18), rgba(255, 52, 93, 0.12));
}

.stats-section {
  margin: 40px 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-box {
  padding: 28px 20px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58, 242, 255, 0.1), rgba(255, 52, 93, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-box:hover::before {
  opacity: 1;
}

.stat-box:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: 0 20px 60px rgba(58, 242, 255, 0.3);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 15px rgba(58, 242, 255, 0.6));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--cyan);
  font-family: 'Rajdhani', sans-serif;
  margin: 8px 0;
  text-shadow: 0 0 20px rgba(58, 242, 255, 0.5);
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-rank {
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.badge-stat {
  color: var(--text-muted);
  font-weight: 600;
}

.roster {
  margin-top: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title p {
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  min-height: 380px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-header {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.player-level {
  background: rgba(58, 242, 255, 0.15);
  border: 1px solid rgba(58, 242, 255, 0.4);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  backdrop-filter: blur(10px);
  text-shadow: 0 0 10px rgba(58, 242, 255, 0.5);
}

.player-rank {
  font-size: 12px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
  animation: star-glow 2s ease-in-out infinite;
}

@keyframes star-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
  }
}

.status-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.8);
  z-index: 3;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 8px;
  border-top: 1px solid rgba(58, 242, 255, 0.2);
  border-bottom: 1px solid rgba(58, 242, 255, 0.2);
  background: rgba(58, 242, 255, 0.05);
  border-radius: 8px;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.stat-label-small {
  font-size: 9px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.8;
}

.stat-small {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}

.player-specialty {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.specialty-title {
  font-size: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  font-weight: 700;
  opacity: 0.9;
}

.specialty-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(58, 242, 255, 0.15);
  border: 1px solid rgba(58, 242, 255, 0.4);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 10px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(58, 242, 255, 0.3);
}

.tag:hover {
  background: rgba(58, 242, 255, 0.25);
  border-color: rgba(58, 242, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 242, 255, 0.3);
}

.player-achievement {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(58, 242, 255, 0.1), rgba(255, 52, 93, 0.1));
  border-radius: 10px;
  border: 1px solid rgba(58, 242, 255, 0.25);
}

.achievement-icon {
  font-size: 18px;
  filter: drop-shadow(0 0 10px rgba(58, 242, 255, 0.6));
}

.achievement-text {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card:hover {
  border-color: rgba(58, 242, 255, 0.8);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(58, 242, 255, 0.2);
}

.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.card:hover .card-shine {
  opacity: 1;
  animation: shine 0.8s ease;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0) 0%, rgba(5, 7, 13, 0.7) 100%);
  z-index: 0;
}

.avatar {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58, 242, 255, 0.15), rgba(255, 52, 93, 0.2));
  background-blend-mode: screen;
  mix-blend-mode: screen;
  filter: blur(2px) contrast(1.1);
  z-index: 0;
}

.role-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  backdrop-filter: blur(12px);
  border: 1px solid;
  z-index: 1;
}

.role-badge.assaulter {
  background: rgba(255, 52, 93, 0.25);
  border-color: rgba(255, 52, 93, 0.6);
  color: #ff345d;
  box-shadow: 0 0 20px rgba(255, 52, 93, 0.4);
}

.role-badge.fragger {
  background: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.6);
  color: #ffc107;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.role-badge.igl {
  background: rgba(147, 51, 234, 0.25);
  border-color: rgba(147, 51, 234, 0.6);
  color: #9333ea;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}

.role-badge.rusher {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.6);
  color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: calc(var(--radius) - 8px);
  z-index: 0;
}

.card-text {
  position: relative;
  z-index: 1;
  background: rgba(5, 7, 13, 0.85);
  padding: 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.label {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  font-size: 20px;
  text-shadow: 0 0 15px rgba(58, 242, 255, 0.6);
  color: var(--cyan);
}

.role {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat {
  color: var(--cyan);
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(58, 242, 255, 0.5);
}

.stat-small {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}

.achievements {
  margin-top: 56px;
}

.contact-section {
  margin-top: 56px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
}

.contact-info h3,
.contact-form h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.contact-info,
.contact-form {
  padding: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 28px;
  min-width: 40px;
  filter: drop-shadow(0 0 10px rgba(58, 242, 255, 0.5));
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.contact-details a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #5af8ff;
  text-shadow: 0 0 10px rgba(58, 242, 255, 0.5);
}

.contact-details p {
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(58, 242, 255, 0.05);
  box-shadow: 0 0 15px rgba(58, 242, 255, 0.2);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233af2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

select.form-input option {
  background: #0a0c14;
  color: var(--text-primary);
  padding: 12px;
  border: none;
}

select.form-input option:hover,
select.form-input option:focus,
select.form-input option:checked {
  background: linear-gradient(135deg, rgba(58, 242, 255, 0.2), rgba(58, 242, 255, 0.1));
  color: var(--cyan);
}

select.form-input:hover {
  border-color: rgba(58, 242, 255, 0.5);
}

select.form-input:focus {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235af8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.achievement-badge {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.achievement-badge.unlocked {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.achievement-badge:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--cyan);
  box-shadow: 0 20px 50px rgba(58, 242, 255, 0.25);
}

.badge-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 10px rgba(58, 242, 255, 0.5));
}

.badge-info {
  flex: 1;
}

.badge-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--cyan);
}

.badge-desc {
  color: var(--text-muted);
  font-size: 14px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--red));
  border-radius: 10px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px var(--cyan);
}

.footer {
  margin: 48px auto 24px;
  padding: 28px 32px;
  max-width: 1400px;
  border-radius: 14px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  align-items: center;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-title {
  font-weight: 700;
  color: var(--cyan);
  font-size: 16px;
  letter-spacing: 0.05em;
}

.footer-text {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-credit {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.creator-name {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(58, 242, 255, 0.5);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--cyan);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.mouse-trail {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan), transparent);
  pointer-events: none;
  z-index: 9998;
  animation: trail-fade 1s ease-out forwards;
}

@keyframes trail-fade {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

.ripple {
  position: absolute;
  inset: 50%;
  width: 20px;
  height: 20px;
  background: rgba(58, 242, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

body.konami-mode {
  animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
}

/* Owner Profile Section */
.owner-section {
  margin-top: 56px;
}

.owner-profile {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.owner-profile::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(58, 242, 255, 0.03) 0%, transparent 70%);
  animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.owner-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.owner-avatar {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(58, 242, 255, 0.2), rgba(255, 52, 93, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
  animation: pulse-avatar 3s ease-in-out infinite;
}

@keyframes pulse-avatar {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(58, 242, 255, 0.7), 0 0 30px rgba(58, 242, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(58, 242, 255, 0), 0 0 50px rgba(58, 242, 255, 0.8);
  }
}

.owner-avatar-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: rotate-ring 4s linear infinite;
}

@keyframes rotate-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.owner-avatar::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--red);
  border-radius: 50%;
  border-bottom-color: transparent;
  border-left-color: transparent;
  animation: rotate-ring-reverse 3s linear infinite;
}

@keyframes rotate-ring-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.owner-initials {
  position: relative;
  z-index: 1;
}

.owner-info {
  flex: 1;
}

.owner-name {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), #5af8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.owner-title {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.owner-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.owner-badge {
  padding: 8px 16px;
  background: rgba(58, 242, 255, 0.1);
  border: 1px solid rgba(58, 242, 255, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.owner-badge:hover {
  background: rgba(58, 242, 255, 0.2);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 242, 255, 0.3);
}

.owner-content {
  position: relative;
  z-index: 1;
}

.owner-bio h4,
.owner-vision h4,
.owner-contact h4 {
  font-size: 20px;
  color: var(--cyan);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.owner-bio p,
.owner-vision p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.owner-bio {
  margin-bottom: 32px;
}

.owner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.owner-stat-box {
  padding: 20px;
  background: rgba(58, 242, 255, 0.05);
  border: 1px solid rgba(58, 242, 255, 0.2);
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.owner-stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(58, 242, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.owner-stat-box:hover::before {
  left: 100%;
}

.owner-stat-box:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 10px 30px rgba(58, 242, 255, 0.3);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.owner-vision {
  margin-bottom: 32px;
}

.owner-vision strong {
  color: var(--cyan);
}

.owner-contact {
  margin-top: 32px;
}

.owner-social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.owner-social-link {
  padding: 12px 24px;
  background: rgba(58, 242, 255, 0.08);
  border: 1px solid rgba(58, 242, 255, 0.3);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.owner-social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(58, 242, 255, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.owner-social-link:hover::before {
  width: 300px;
  height: 300px;
}

.owner-social-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 5px 20px rgba(58, 242, 255, 0.4);
  transform: translateY(-2px);
}

.owner-social-link span {
  position: relative;
  z-index: 1;
}

/* Terms & Conditions Section */
.terms-section {
  margin-top: 56px;
}

.terms-content {
  padding: 40px;
}

.terms-block {
  margin-bottom: 28px;
  padding: 24px;
  background: rgba(58, 242, 255, 0.03);
  border-left: 4px solid rgba(58, 242, 255, 0.5);
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.terms-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--cyan), var(--red));
  border-radius: 4px;
  transition: height 0.4s ease;
}

.terms-block:hover::before {
  height: 100%;
}

.terms-block:hover {
  background: rgba(58, 242, 255, 0.08);
  border-left-color: var(--cyan);
  transform: translateX(8px);
  box-shadow: -4px 0 20px rgba(58, 242, 255, 0.2);
}

.terms-block h4 {
  font-size: 18px;
  color: var(--cyan);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-block h4::before {
  content: '•';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(58, 242, 255, 0.7);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(58, 242, 255, 0);
    opacity: 0.8;
  }
}

.terms-block p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
}

.terms-disclaimer {
  margin-top: 32px;
  padding: 20px;
  background: rgba(255, 52, 93, 0.1);
  border: 1px solid rgba(255, 52, 93, 0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.terms-disclaimer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 52, 93, 0.1) 50%, transparent 60%);
  animation: shimmer-disclaimer 3s linear infinite;
}

@keyframes shimmer-disclaimer {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.terms-disclaimer p {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.terms-disclaimer p::before {
  content: '⚠️';
  font-size: 20px;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(5, 7, 13, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 100px 24px 24px;
    gap: 16px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 3px solid var(--cyan);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    z-index: 10;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 18px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(58, 242, 255, 0.08);
    border: 1px solid rgba(58, 242, 255, 0.25);
    text-align: center;
    transition: all 0.3s ease;
    transform: translateX(50px);
    opacity: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-menu.active .nav-link {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
  .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
  .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
  .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.25s; }

  .nav-link:active {
    background: rgba(58, 242, 255, 0.25);
    transform: scale(0.98);
  }

  .nav-link::after {
    display: none;
  }

  .est {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-bar {
    padding: 16px 22px;
  }

  .page {
    padding: 110px 20px 48px;
  }

  .hero-left {
    padding: 22px;
  }

  .card {
    min-height: 340px;
  }

  .label {
    font-size: 18px;
  }

  .role {
    font-size: 12px;
  }

  .card-text {
    padding: 14px;
  }

  .stats-row {
    gap: 6px;
    padding: 10px 6px;
  }

  .stat {
    font-size: 14px;
  }

  .stat-label-small {
    font-size: 8px;
  }

  .tag {
    font-size: 9px;
    padding: 4px 10px;
  }

  .player-level {
    font-size: 8px;
    padding: 4px 8px;
  }

  .player-rank {
    font-size: 10px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-box {
    padding: 20px 12px;
  }

  .stat-icon {
    font-size: 32px;
  }

  .stat-number {
    font-size: 28px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form {
    padding: 24px;
  }

  .owner-profile {
    padding: 24px;
  }

  .owner-header {
    flex-direction: column;
    text-align: center;
  }

  .owner-avatar {
    width: 100px;
    height: 100px;
    font-size: 36px;
  }

  .owner-name {
    font-size: 28px;
  }

  .owner-badges {
    justify-content: center;
  }

  .owner-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .terms-content {
    padding: 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
