/* traveling-with-you.com */

:root {
  --bg: #09080e;
  --card-bg: #15132a;
  --text: #d4d3da;
  --text-muted: #6d6a78;
  --accent: #a78bfa;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  opacity: 0.85;
}

/* ─── Background glow ─── */

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 35%, rgba(167, 139, 250, 0.08), transparent),
    radial-gradient(ellipse 300px 250px at 55% 60%, rgba(139, 92, 246, 0.04), transparent);
}

/* ─── Page layout ─── */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  text-align: center;
}

.page--top {
  justify-content: flex-start;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ─── Card (shared) ─── */

.card {
  max-width: 440px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 20px;
  padding: 3rem 2.5rem 2.5rem;
  box-shadow:
    0 0 80px -20px rgba(167, 139, 250, 0.12),
    0 4px 24px rgba(0, 0, 0, 0.3);
  animation: fadeUp 0.7s ease-out both;
}

/* ─── Homepage hero ─── */

.hero h1 {
  font-size: clamp(1.5rem, 4.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.rule {
  width: 36px;
  height: 2px;
  margin: 0 auto 1.75rem;
  background: var(--accent);
  border-radius: 1px;
}

.description {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #908e9c;
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 0.5em 1.2em;
  border-radius: 100px;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

/* ─── Game card ─── */

.game-card {
  max-width: 440px;
  width: 100%;
  margin-top: 1.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  text-align: left;
  animation: fadeUp 0.7s ease-out 0.08s both;
}

.game-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.game-genre {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.game-description {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #908e9c;
  margin-bottom: 1.25rem;
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.15);
  padding: 0.4em 1em;
  border-radius: 100px;
}

.game-status::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

.game-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.5em 1.25em;
  border-radius: 100px;
  transition: opacity 0.2s;
}

.btn-play:hover {
  opacity: 0.85;
  color: #fff;
}

.game-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.game-links {
  margin-top: 1rem;
  font-size: 0.75rem;
}

.game-links a {
  color: var(--text-muted);
}

.game-links a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ─── Outlined button (inactive / coming soon) ─── */

.btn-outline {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 0.5em 1.25em;
  border-radius: 100px;
  cursor: default;
}

/* ─── Site footer nav ─── */

#site-footer {
  margin-top: 2.5rem;
  animation: fadeUp 0.7s ease-out 0.16s both;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-link--active {
  color: var(--accent);
}

.footer-sep {
  color: var(--text-muted);
  margin: 0 0.25rem;
}

/* ─── About modal ─── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  transition: background 0.25s, backdrop-filter 0.25s;
}

.modal-overlay--visible {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  background: var(--card-bg);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 20px;
  box-shadow:
    0 0 80px -20px rgba(167, 139, 250, 0.12),
    0 4px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.25s, transform 0.25s;
}

.modal-overlay--visible .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.3);
}

.modal-body {
  padding: 2.5rem 2rem 2rem;
  overflow-y: auto;
  max-height: 85vh;
  text-align: left;
}

.modal-body h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #eee;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-body p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #9896a3;
}

.modal-body p + p {
  margin-top: 0.5rem;
}

.about-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(167, 139, 250, 0.08);
}

.about-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.about-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.about-support-link {
  font-weight: 600;
}

.about-footer {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(167, 139, 250, 0.08);
}

.about-footer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about-footer-studio {
  font-size: 0.875rem;
  font-weight: 600;
  color: #908e9c;
  margin-top: 2px;
}

/* ─── Privacy / document pages ─── */

.privacy {
  max-width: 600px;
  text-align: left;
  padding: 2.5rem 2.5rem 2rem;
}

.back-link {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--accent);
  opacity: 1;
}

.privacy h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.privacy .updated {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(167, 139, 250, 0.08);
}

.privacy h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #eee;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.privacy p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #9896a3;
}

/* ─── Animations ─── */

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ─── Mobile ─── */

@media (max-width: 480px) {
  .card {
    padding: 2.25rem 1.75rem 2rem;
    border-radius: 16px;
  }

  .privacy {
    padding: 2rem 1.5rem 1.75rem;
  }

  .game-card {
    padding: 1.5rem;
  }

  .page--top {
    padding-top: 2rem;
  }

  .modal-body {
    padding: 2rem 1.5rem 1.5rem;
  }

  .modal-card {
    border-radius: 16px;
  }
}
