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

html,
body {
  height: 100%;
  color: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

body {
  background: #0f1024;
  background: radial-gradient(
    ellipse 120% 90% at 70% 20%,
    #1e2352 0%,
    #12153a 45%,
    #0a0c22 100%
  );
}

main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

.game-panel {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 0;
  min-width: 0;
}

.board-wrap {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.description-panel {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  min-height: 0;
  min-width: 0;
}

.description {
  max-width: 34rem;
  animation: fadeUp 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.description h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: #ffffff;
}

.description h1::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin: 1.5rem auto;
  border-radius: 2px;
  background: linear-gradient(90deg, #4ea8ff, #b98ce0);
  opacity: 0.9;
}

.description p {
  font-size: clamp(0.8rem, 1.55vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  padding-left: 0.36em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  main {
    flex-direction: row;
  }

  .game-panel {
    padding: 1.5rem;
  }

  .description-panel {
    padding: 2rem 3rem;
  }
}
