:root {
  --bg: #1b1522;
  --accent: #5865ff;
}

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

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: #e7e7ee;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 24px;
}

header {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #8b8bff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.brand h1 {
  font-size: 16px;
  margin: 0;
}

.subtitle {
  font-size: 12px;
  color: rgba(230, 230, 240, 0.6);
}

nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap; /* buttons can wrap on small screens */
}

.nav-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background-position 0.5s ease;
  position: relative;
  overflow: hidden;
}

.nav-btn:hover {
  border: 1px solid rgba(88, 101, 255, 0.12);
  color: #ffffff;
  background: linear-gradient(90deg, rgba(88, 101, 255, 0.14), rgba(88, 101, 255, 0.06));
  background-size: 200% 100%;
  background-position: right center;
}

.nav-btn:not(:hover) {
  background-position: left center;
}

.nav-btn.primary {
  background: linear-gradient(90deg, rgba(88, 101, 255, 0.14), rgba(88, 101, 255, 0.06));
  border: 1px solid rgba(88, 101, 255, 0.12);
}

.with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.with-icon .icon-itchio {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* 📱 Mobile (<=600px) */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand h1 {
    font-size: 14px;
  }

  .subtitle {
    font-size: 11px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* 📱 Tablets (600px–900px) */
@media (max-width: 900px) and (min-width: 601px) {
  .brand h1 {
    font-size: 15px;
  }

  .subtitle {
    font-size: 12px;
  }

  .nav-btn {
    padding: 9px 14px;
    font-size: 15px;
  }
}
