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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top, #182238 0%, #0b0f19 100%);
  color: #f3f4f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

/* Shared Top Navigation Bar */
.top-nav {
  width: 100%;
  max-width: 640px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
}

.top-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo {
  height: 38px;
  width: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-nav-links {
  display: flex;
  gap: 1.25rem;
}

.top-nav-links a {
  color: #fde047;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.top-nav-links a:hover {
  color: #fef08a;
  text-decoration: underline;
}

.top-nav-links a.active {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Main Content Layout */
main {
  width: 100%;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

p {
  max-width: 600px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}

p strong {
  color: #f3f4f6;
}

/* Left-aligned multi-paragraph container */
.bio-content {
  width: 100%;
  max-width: 560px;
  text-align: left;
  margin: 0.25rem auto 0.5rem auto;
}

.bio-content p {
  max-width: 100%;
  color: #d1d5db;
}

.inline-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
}

.inline-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  background: #38bdf8;
  color: #0b0f19;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.btn:hover { background: #7dd3fc; }

.btn-outline {
  display: inline-block;
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
}

/* Coming Next / Future Worlds Teaser Card (Home Page) */
.future-worlds-card {
  width: 100%;
  max-width: 560px;
  margin: 2rem auto 0.5rem auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.future-worlds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.future-worlds-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fde047;
  background: rgba(253, 224, 71, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.3);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.future-worlds-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f3f4f6;
}

.future-worlds-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #d1d5db;
  margin: 0;
}

.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.subject-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

/* Game Page Specific Elements */
.island-code-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 0.9rem 1.5rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.island-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  font-weight: 600;
}

.island-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.island-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: #38bdf8;
  color: #0b0f19;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #7dd3fc;
}

.copy-btn.copied {
  background: #4ade80;
  color: #052e16;
}

/* Game Specs Bar */
.game-specs-wrapper {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 1.5rem auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  font-weight: 600;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f3f4f6;
}

.features-list {
  list-style: none;
  max-width: 560px;
  text-align: left;
  margin: 0.5rem auto 1.75rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.features-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.5;
}

.features-list strong {
  color: #38bdf8;
}

/* Game Media Showcase (Trailer & Screenshots) */
.media-showcase {
  width: 100%;
  max-width: 560px;
  margin: 0.5rem auto 1.75rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.media-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.media-card:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: #38bdf8;
}

.trailer-placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 9;
}

.media-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.media-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e5e7eb;
}

.media-sub {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Devlog & Patch Notes Timeline */
.devlog-wrapper {
  width: 100%;
  max-width: 560px;
  margin: 0.25rem auto 1.75rem auto;
  text-align: left;
}

.section-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f3f4f6;
  margin-bottom: 0.85rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.devlog-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 2px solid rgba(56, 189, 248, 0.35);
  padding-left: 1rem;
}

.devlog-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  position: relative;
}

.devlog-item::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 1.15rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.devlog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.devlog-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fde047;
  background: rgba(253, 224, 71, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.devlog-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
}

.devlog-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 0.25rem;
}

.devlog-summary {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #d1d5db;
}

/* Compact Discord + Email Bug Report Callout */
.bug-report-box {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 1.5rem auto;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bug-report-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f3f4f6;
}

.bug-report-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #d1d5db;
  margin: 0;
}

.bug-report-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.2rem;
  font-size: 0.88rem;
}

.bug-report-sep {
  color: #6b7280;
}

/* Alphabetical Social Links Row inside Shared Footer */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 640px;
  margin: 0 auto 1.5rem auto;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.social-pill svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
}

/* Shared Footer */
footer {
  max-width: 640px;
  margin-top: 3rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #9ca3af;
}

.disclaimer {
  color: #d1d5db;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 560px) {
  body {
    padding: 1.25rem;
  }

  .top-nav {
    flex-direction: column;
    gap: 0.9rem;
    padding-bottom: 1.25rem;
  }

  .top-nav-links {
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
  }

  .top-nav-links a {
    padding: 0.25rem 0.5rem;
  }

  .island-code-box {
    width: 100%;
    max-width: 420px;
    padding: 0.9rem 1rem;
  }

  .island-code-value {
    font-size: 1.15rem;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
    max-width: 420px;
  }

  .btn,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .social-pill {
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
  }
}
