/* ============================================================
   Wrexa Edge branding on the ORIGINAL (dark, colorful) game UI.
   Loaded after styles.css. Only the logo lockup + back-to-site
   link are themed — the game's original vibrant colors and the
   per-subject tile accents are left completely untouched.
   ============================================================ */

/* Brand lockup in the game header (dark bg → light the black logo) */
.brand.wrexa-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.wrexa-brand-logo { height: 30px; width: auto; display: block; filter: invert(1) brightness(1.15); }
.wrexa-brand-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px; line-height: 1;
  color: #fff; background: linear-gradient(135deg, #5841D8, #7b63ff);
  padding: 4px 8px; border-radius: 7px; box-shadow: 0 4px 12px rgba(88, 65, 216, 0.4);
}

/* Back-to-Wrexa-Edge arrow (reuses the game's stat-pill styling) */
.wrexa-home-link { text-decoration: none; font-weight: 800; }

/* Splash logo (dark splash → light the logo) */
.splash-logo {
  height: 54px; width: auto; display: block; margin: 0 auto 14px;
  filter: invert(1) brightness(1.15) drop-shadow(0 8px 24px rgba(120, 99, 255, 0.4));
}

/* ============================================================
   GALAXY HOME — Wrexa Edge brand theme ("Pick your universe").
   Dark-purple hero band over a light cards body, matching the
   main wrexaedge.com homepage. DM Sans + Lora, #5841D8 purple.
   Scoped to .overlay-galaxy so the colorful in-game screens are
   left completely untouched.
   ============================================================ */

/* Light page surface + brand typography */
.overlay-galaxy {
  background: #f8fafc;
  color: #0f172a;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Dark hero band (top-bar + hero form one continuous band) ── */
.overlay-galaxy .home-topbar {
  background: #15112e;
  border-bottom: none;
}
.overlay-galaxy .galaxy-hero {
  background: radial-gradient(120% 140% at 85% -20%, #2a2350 0%, #14122b 62%);
  border-bottom: none;
  border-radius: 0 0 30px 30px;
  padding: 30px 20px 54px;
  overflow: hidden;
}
.overlay-galaxy .stat-pill {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e8e6f5;
}
.overlay-galaxy .stat-pill span { color: #fff; }

/* Hero text — Lora headline, purple gradient accent word */
.overlay-galaxy .hero-greeting {
  color: #cfc7ff; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
}
.overlay-galaxy .hero-title {
  font-family: 'Lora', Georgia, serif; font-style: normal; font-weight: 700;
  color: #fff; background: none; -webkit-text-fill-color: #fff;
}
.overlay-galaxy .hero-accent {
  font-family: 'Lora', Georgia, serif; font-style: italic;
  background: linear-gradient(120deg, #c4b5fd, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.overlay-galaxy .hero-sub { color: #c7c2e8; }
.overlay-galaxy .hero-hint { color: rgba(199, 194, 232, 0.72); }

/* PLAY / CONTINUE button — brand purple gradient (no orange glow) */
.overlay-galaxy .big-btn {
  background: linear-gradient(135deg, #5841D8, #7b63ff);
  color: #fff;
  box-shadow: 0 14px 32px -8px rgba(88, 65, 216, 0.60);
  animation: none;
}
.overlay-galaxy .big-btn:hover,
.overlay-galaxy .big-btn:active {
  box-shadow: 0 18px 40px -8px rgba(88, 65, 216, 0.72);
  animation: none;
}

/* ── Light body: section headings ── */
.overlay-galaxy .section-head h2 {
  font-family: 'Lora', Georgia, serif; font-style: normal; font-weight: 700;
  color: #0f172a; background: none; -webkit-text-fill-color: #0f172a;
}
.overlay-galaxy .section-sub { color: #64748b; }

/* Today's Quest cards — white with purple accents */
.overlay-galaxy .daily-quest-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
.overlay-galaxy .daily-quest-card:hover:not(:disabled) {
  border-color: #c7bdf5;
  box-shadow: 0 12px 28px -10px rgba(88, 65, 216, 0.28);
}
.overlay-galaxy .daily-quest-card.completed {
  background: #ecfdf5; border-color: #6ee7b7;
}
.overlay-galaxy .dq-subject { color: #5841D8; }
.overlay-galaxy .dq-level { color: #0f172a; }
.overlay-galaxy .dq-tag { color: #5841D8; }
.overlay-galaxy .daily-quest-card.completed .dq-tag { color: #059669; }

/* Subject tiles — vibrant GAME POSTERS: per-subject gradient art, frosted
   icon disc, glossy sheen + vignette for legibility, colored glow shadow. */
.overlay-galaxy .subject-tile {
  border: none;
  border-radius: 22px;
  padding: 16px 16px 15px;
  min-height: 182px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10,7,28,0.10) 0%, rgba(10,7,28,0.10) 30%, rgba(10,7,28,0.52) 100%),
    radial-gradient(130% 92% at 18% -12%, rgba(255,255,255,0.30), transparent 56%),
    linear-gradient(155deg, var(--tile-accent, #5841D8), var(--tile-accent-2, #7b63ff));
  box-shadow: 0 18px 32px -14px var(--tile-glow, rgba(88,65,216,0.5)), 0 4px 12px rgba(15,23,42,0.12);
}
.overlay-galaxy .subject-tile:hover:not(.locked) {
  border: none;
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 30px 50px -14px var(--tile-glow, rgba(88,65,216,0.6)), 0 10px 22px -8px rgba(15,23,42,0.28);
}
/* Soft light orb top-right for poster depth */
.overlay-galaxy .subject-tile::after {
  top: -34%; right: -22%;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.50) 0%, transparent 68%);
  opacity: 0.55;
}
/* Frosted-glass icon disc — the poster focal point */
.overlay-galaxy .tile-icon {
  font-size: 34px;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.40);
  box-shadow: 0 8px 18px -6px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.45);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.28));
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.overlay-galaxy .tile-name {
  color: #fff; font-weight: 800; font-style: italic;
  text-shadow: 0 1px 10px rgba(0,0,0,0.30);
}
.overlay-galaxy .tile-sub { color: rgba(255,255,255,0.88); }
.overlay-galaxy .tile-state { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.28); }
.overlay-galaxy .tile-progress { background: rgba(255,255,255,0.28); }
.overlay-galaxy .tile-progress-bar { background: #fff; }
.overlay-galaxy .tile-tier-badge {
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
/* Locked posters — desaturated + dimmer, still readable */
.overlay-galaxy .subject-tile.locked {
  filter: saturate(0.45) brightness(0.82);
  opacity: 0.92;
}
.overlay-galaxy .subject-tile.locked .tile-state { color: rgba(255,255,255,0.82); }

/* Footer stats — purple gradient numbers on light */
.overlay-galaxy .home-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.overlay-galaxy .footer-num {
  font-family: 'Lora', Georgia, serif;
  background: linear-gradient(135deg, #5841D8, #7b63ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.overlay-galaxy .footer-lbl { color: #64748b; }
