/* Base styles for STARSAVIOR MINIGAME Portal */
:root {
  --bg: #0b0f1a;
  --fg: #f2f5f9;
  --muted: #9aa6b2;
  --accent: #7aa2ff;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Pretendard", system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--fg);
}

#app {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.container {
  width: min(420px, 94vw);
}

.hidden { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #0b0f1a;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Start screen layout */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px 0;
  width: 100%;
}

.topbar .left,
.topbar .center,
.topbar .right { display: flex; align-items: center; }
.topbar .left { justify-content: flex-start; }
.topbar .center { justify-content: center; }
.topbar .right { justify-content: flex-end; gap: 8px; }

.logo {
  height: 30px;
  object-fit: contain;
}
.logo.product { height: 36px; }

.start-screen {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 90px);
  overflow: hidden;
  border-radius: 16px;
}

.start-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/bg.jpg') center / cover no-repeat;
  filter: none;
  transform: none;
}

.start-overlay {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

/* Portal content (replaces hero) */
.portal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 32px;
  min-height: calc(100vh - 90px);
}

.portal-title {
  font-size: 32px;
  font-weight: 900;
  margin: 8px 0 32px 0;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 32px rgba(0,0,0,0.8);
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  padding-bottom: 32px;
}

.game-card {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  text-decoration: none;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(122, 162, 255, 0.6);
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.no-games {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  padding: 32px 16px;
}

/* Responsive Design */

@media (max-width: 640px) {
  .logo { height: 24px; }
  .logo.product { height: 28px; }
  .start-screen { border-radius: 10px; }

  .portal-title {
    font-size: 24px;
    margin: 24px 0 32px 0;
  }

  .games-grid {
    gap: 16px;
    max-width: 100%;
  }
}

/* Mobile-first refinements */
@media (max-width: 480px) {
  .topbar { grid-template-columns: auto 1fr auto; margin: 12px 0 6px 0; }
  .container { width: 94vw; }

  .portal-content {
    padding: 12px 12px 24px;
  }

  .portal-title {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .games-grid {
    gap: 12px;
  }
}

/* Footer */
.site-footer {
  position: static;
  display: flex;
  justify-content: center;
  margin: 16px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  pointer-events: auto;
}
.footer-logo { height: 18px; }
.footer-text, .footer-copy { color: var(--muted); font-size: 12px; }
.footer-link { color: #9ac7ff; font-size: 12px; text-decoration: underline; }
.footer-link:hover { text-decoration: underline; }
.sep { color: #2f3b52; }



