/* ==================================================== */
/* SITE SHELL: the way back to the games, and the         */
/* night-sky look carried over to the inner pages.       */
/* Loaded after style.css and home.css.                  */
/* ==================================================== */

/* ---------- Way back: one small pill at the top left of every inner page ---------- */
.home-pill {
  position: relative; z-index: 2; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; box-sizing: border-box; padding: 0 18px 0 15px; margin: -4px 0 8px 0;
  border-radius: 999px;
  font-family: 'MyGameFont', sans-serif; font-size: 0.88rem; letter-spacing: 0.04em;
  text-decoration: none; color: var(--ink);
  background: rgba(13, 19, 52, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.15s ease, color 0.15s ease;
}
.home-pill span { color: var(--star); transition: transform 0.2s ease; }
.home-pill:hover { background: #fff; color: #1d2a5e; }
.home-pill:hover span { color: #1d2a5e; transform: rotate(90deg); }
@media (min-width: 1100px) {
  .home-pill { position: absolute; top: 24px; left: 28px; margin: 0; }
}

/* ---------- Inner pages (about, contact, press): night card ---------- */
.night.subpage .site-footer { margin-top: auto; }

.night .about-card {
  position: relative; z-index: 1;
  max-width: 640px;
  margin: 10px auto 46px auto;
  padding: 36px 32px 32px 32px;
  border-radius: 28px;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(96, 120, 235, 0.16), transparent 70%),
    rgba(16, 23, 60, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}
.night .about-card .logo { width: 180px; margin-bottom: 10px; }
.night .about-pitch { color: var(--ink); font-size: 1.12rem; }
.night .about-card .promise { margin: 16px auto 8px auto; }

.night .about-values { margin-top: 20px; }
.night .about-values li { font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.55; color: var(--text); }
.night .about-values li::before { color: var(--star); opacity: 1; }

.night .about-eyebrow { color: var(--ink); margin: 36px 0 18px 0; }
.night .about-eyebrow::before, .night .about-eyebrow::after { color: var(--star); opacity: 1; }

.night .about-games .app-icon { transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1); }
.night .about-games .app-icon:hover { transform: translateY(-4px) scale(1.04); }
.night .about-games .app-icon img {
  width: 96px; height: 96px; border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 12px 28px rgba(0, 0, 0, 0.5);
}
.night .about-games .app-icon p { color: var(--ink); font-family: 'MyGameFont', sans-serif; font-weight: normal; font-size: 0.95rem; margin-top: 12px; }
.night a.app-icon:focus-visible { outline-color: #9fb0ff; }

.night .about-chip {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  font-weight: normal; font-size: 0.95rem;
  padding: 12px 24px;
}
.night .about-chip:hover { background: rgba(255, 255, 255, 0.16); }
.night .about-chip-solid { color: #1d2a5e; background: #fff; border-color: #fff; }
.night .about-chip-solid:hover { background: #dfe5ff; }
.night .about-card .modal-copy-btn { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.night .about-card .modal-copy-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.night .copy-status { color: #8ff0ae; font-family: var(--sans); }

.night .about-note { font-family: var(--sans); font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

@media (max-width: 600px) {
  .night .about-card { margin: 4px 0 34px 0; padding: 28px 16px 26px 16px; border-radius: 22px; }
  .night .about-card .logo { width: 140px; }
  .night .about-note { margin-left: 8px; margin-right: 8px; }
  /* the copy button stays beside its address instead of dropping below it */
  .night .email-chip-wrap { flex-direction: row; align-items: center; gap: 8px; }
  .night .about-chip { padding: 12px 18px; }
}

/* ---------- Game pages: the sky behind the sheet ---------- */
.night .game-page-static { position: relative; z-index: 1; color: var(--text); }
.night .game-page-static h1, .night .game-page-static h2, .night .game-page-static h3, .night .game-page-static strong { color: var(--ink); }
.night .game-page-static a, .night .game-page-static .back-link, .night .game-page-static .game-trailer-link a { color: #a9bcff; }
.night .game-page-static .logo { display: none; } /* the sheet carries the name */
.night .game-page-static .game-rating { color: var(--text); }
.night .game-page-static .game-rating .rating-stars { color: var(--star); }
.night .game-page-static .coming-soon { color: #ffa672; }
.night .game-page-details .press-quote { border-left-color: var(--star); }

@media (prefers-reduced-motion: reduce) {
  .home-pill, .home-pill span, .night .about-games .app-icon { transition: none; }
  .night .about-games .app-icon:hover { transform: none; }
}

/* Phones: the sheet has no blur behind it, so the backdrop itself hides the page text */
@media (max-width: 600px) {
  .night .modal { background: rgba(8, 12, 34, 0.86); }
}

/* ---------- Fonts (also declared in style.css; the legal pages load only this file and home.css) ---------- */
@font-face { font-family: 'MyGameFont'; src: url('fonts/EgyptianSlatePro-Bold.woff2') format('woff2'); font-weight: bold; font-style: normal; font-display: swap; }
@font-face { font-family: 'HeadlineFont'; src: url('fonts/EgyptianSlatePro-Medium.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }

/* ---------- Language menu (privacy pages, unsubscribe) ---------- */
.night .lang-switch { color: var(--muted); }
.night .lang-switch select {
  color-scheme: dark;
  font-family: var(--sans); font-size: 0.95rem;
  min-height: 40px; padding: 0 10px;
  color: var(--ink); background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 10px;
}
.night .lang-switch select option { color: #fff; background: #141c48; }

/* ---------- Unsubscribe, 404, press kits (all built on the night card) ---------- */
.night .unsub-title { color: var(--ink); }
.night .unsub-frame iframe { border-radius: 14px; background: #fff; }
.night .unsub-brevo { color: var(--muted); font-family: var(--sans); opacity: 1; }
.night .about-card a:not(.about-chip):not(.app-icon) { color: #a9bcff; }
.night .pk-factsheet h2 { color: var(--ink); font-family: 'MyGameFont', sans-serif; font-weight: normal; }
.night .pk-factsheet dl { font-family: var(--sans); font-size: 0.95rem; line-height: 1.5; gap: 8px 16px; }
.night .pk-factsheet dt { color: var(--ink); font-weight: 600; }
.night .pk-factsheet dd { color: var(--text); }
.night .pk-links { font-family: var(--sans); font-size: 0.92rem; color: var(--muted); }

/* ---------- Privacy policies: one readable column on the night card ---------- */
body.night.legal { max-width: none; margin: 0; padding: 20px 20px 60px 20px; min-height: 100vh; box-sizing: border-box; }
.night .legal-card {
  position: relative; z-index: 1;
  max-width: 780px; margin: 10px auto 0 auto; padding: 28px 40px 40px 40px;
  border-radius: 28px; text-align: left;
  font-size: 1rem; line-height: 1.7; color: var(--text);
  background: rgba(16, 23, 60, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  overflow-wrap: break-word;
}
.night .legal-card h1, .night .legal-card h2, .night .legal-card h3 { color: var(--ink); font-family: 'HeadlineFont', sans-serif; line-height: 1.25; }
.night .legal-card h1, .night .legal-card h2.lang-title { font-size: 1.8rem; margin-top: 1rem; text-align: left; }
.night .legal-card h2 { font-size: 1.2rem; margin-top: 2rem; }
.night .legal-card strong { color: var(--ink); }
.night .legal-card a { color: #a9bcff; text-decoration: underline; text-underline-offset: 2px; }
.night .legal-card a:hover { color: #fff; }
@media (max-width: 600px) {
  body.night.legal { padding: 20px 12px 40px 12px; }
  .night .legal-card { padding: 18px 18px 28px 18px; border-radius: 22px; }
  .night .legal-card h1, .night .legal-card h2.lang-title { font-size: 1.45rem; }
}
