:root {
  color-scheme: dark;
  --bg: #04050b;
  --line: rgba(113, 154, 255, 0.26);
  --text: #f5f7ff;
  --muted: #9da8c5;
  --blue: #18c8ff;
  --purple: #935cff;
  --green: #61ffb3;
  --yellow: #ffd166;
  --red: #ff5f7a;
  --gray: #7d869d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(24, 200, 255, 0.18), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(147, 92, 255, 0.17), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  border: 0;
  color: inherit;
  font: inherit;
}

#space {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 34px 22px;
}

.hero-card,
.profile-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 22, 39, 0.86), rgba(7, 9, 18, 0.74));
  box-shadow:
    0 0 60px rgba(24, 200, 255, 0.11),
    0 28px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 320px;
  gap: 22px;
  min-height: 520px;
  padding: 34px;
  align-items: center;
  animation: cardIn 0.55s ease both;
}

.profile-card {
  padding: 28px;
  text-align: center;
  animation: cardIn 0.55s ease both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(97, 255, 179, 0.22);
  border-radius: 999px;
  background: rgba(97, 255, 179, 0.06);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.status.online {
  border-color: rgba(97, 255, 179, 0.22);
  background: rgba(97, 255, 179, 0.06);
  color: var(--green);
}

.status.idle {
  border-color: rgba(255, 209, 102, 0.24);
  background: rgba(255, 209, 102, 0.07);
  color: var(--yellow);
}

.status.dnd {
  border-color: rgba(255, 95, 122, 0.24);
  background: rgba(255, 95, 122, 0.07);
  color: var(--red);
}

.status.offline {
  border-color: rgba(125, 134, 157, 0.25);
  background: rgba(125, 134, 157, 0.07);
  color: var(--gray);
}

.status.unknown {
  border-color: rgba(24, 200, 255, 0.22);
  background: rgba(24, 200, 255, 0.06);
  color: var(--blue);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(97, 255, 179, 0.72);
  animation: pulse 1.7s infinite;
}

.status.idle .dot {
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.7);
}

.status.dnd .dot {
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 95, 122, 0.7);
}

.status.offline .dot {
  background: var(--gray);
  box-shadow: none;
  animation: none;
}

.status.unknown .dot {
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(24, 200, 255, 0.7);
}

.avatar-link {
  display: inline-block;
  margin-bottom: 20px;
  border-radius: 28px;
}

.avatar {
  display: grid;
  width: 118px;
  height: 118px;
  overflow: hidden;
  place-items: center;
  margin: 0 auto;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #04050b;
  font-size: 64px;
  font-weight: 900;
  box-shadow: 0 0 38px rgba(24, 200, 255, 0.38);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 11vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(24, 200, 255, 0.35);
}

h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.discord {
  margin: 12px 0 18px;
  color: #c9d2ff;
  font-weight: 800;
}

.about {
  max-width: 46ch;
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}

.button {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button.primary {
  border-color: rgba(24, 200, 255, 0.72);
  background: linear-gradient(135deg, rgba(24, 200, 255, 0.94), rgba(147, 92, 255, 0.92));
  color: #04050b;
}

.button:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 200, 255, 0.82);
  box-shadow: 0 0 26px rgba(24, 200, 255, 0.17);
}

.profile-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mini-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(113, 154, 255, 0.18);
}

.mini-status span {
  color: var(--muted);
}

.mini-status strong {
  color: var(--blue);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.info-card {
  min-height: 150px;
  padding: 22px;
  animation: cardIn 0.7s ease both;
}

.info-card span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--blue);
  font-weight: 900;
}

.project-card {
  position: relative;
}

.small-button {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  margin-top: 18px;
  padding: 0 12px;
  border: 1px solid rgba(24, 200, 255, 0.45);
  border-radius: 9px;
  background: rgba(24, 200, 255, 0.08);
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.small-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(24, 200, 255, 0.14);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 8, 0.72);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 22, 39, 0.95), rgba(7, 9, 18, 0.92));
  box-shadow:
    0 0 60px rgba(24, 200, 255, 0.16),
    0 28px 90px rgba(0, 0, 0, 0.6);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.game-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.game-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border: 1px solid rgba(113, 154, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.game-category {
  padding: 15px;
  border: 1px solid rgba(24, 200, 255, 0.2);
  border-radius: 12px;
  background: rgba(24, 200, 255, 0.055);
}

.game-category h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.game-category p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.game-row span {
  color: var(--muted);
}

.game-row strong {
  color: var(--text);
}

.project-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.server-address {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(113, 154, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 900;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(97, 255, 179, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(97, 255, 179, 0);
  }
}

@media (max-width: 780px) {
  .hero-card,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }

  .about {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 16px;
  }

  .hero-card {
    padding: 22px;
  }

  .profile-card {
    padding: 22px;
  }

  .links,
  .game-row {
    grid-template-columns: 1fr;
  }

  .game-row {
    display: grid;
  }
}

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