/* =====================================================================
   Empire landing — a portfolio hero that routes into each app.
   Reuses design tokens from style.css (:root). Blue-gradient take on
   the Game Bell dark theme.
   ===================================================================== */

.empire-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #04060f;
  display: flex;
  flex-direction: column;
}

/* ---- Blue-gradient sky background (our theme, blue-leaning) ---- */
.empire-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1300px 720px at 50% -12%, #1e40af 0%, transparent 58%),
    radial-gradient(900px 620px at 12% 18%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(900px 620px at 88% 12%, rgba(139, 92, 246, 0.26), transparent 55%),
    linear-gradient(180deg, #0b1c44 0%, #081533 40%, #050a1c 72%, #03050e 100%);
}

/* soft cloud-like glows that drift slowly */
.empire-bg .cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
  background: radial-gradient(circle, rgba(120, 170, 255, 0.38), transparent 70%);
}
.empire-bg .cloud.c1 { width: 620px; height: 360px; top: 6%;  left: -8%;  animation: cloudDrift 34s ease-in-out infinite; }
.empire-bg .cloud.c2 { width: 720px; height: 420px; top: 24%; right: -12%; opacity: 0.4; animation: cloudDrift 42s ease-in-out infinite reverse; }
.empire-bg .cloud.c3 { width: 520px; height: 300px; bottom: 8%; left: 24%; opacity: 0.3; background: radial-gradient(circle, rgba(139,92,246,0.3), transparent 70%); animation: cloudDrift 38s ease-in-out infinite; }

/* darkening vignette at the bottom, like the reference */
.empire-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 5, 14, 0.65) 100%);
}

@keyframes cloudDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -24px) scale(1.06); }
}

/* ---- Layout ---- */
.empire-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vh, 140px) 24px 60px;
}

.empire-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 7rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #fff;
  animation: empFadeUp 0.9s var(--ease) both;
}
.empire-title .accent {
  background: linear-gradient(120deg, #93c5fd 0%, #3b82f6 60%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.empire-tag {
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1rem, 2vw, 1.3rem);
  animation: empFadeUp 0.9s var(--ease) 0.1s both;
}

/* ---- App row ---- */
.app-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3.2vw, 44px);
  margin-top: clamp(56px, 9vw, 100px);
  animation: empFadeUp 0.9s var(--ease) 0.2s both;
}

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 120px;
}

/* float lives on the wrapper so it never fights the hover tilt */
.tile-float {
  animation: tileFloat 4.8s ease-in-out infinite;
  will-change: transform;
  border-radius: 28px;
}

.tile-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transform-origin: center;
  transition: transform 0.16s ease-out, box-shadow 0.3s var(--ease);
  will-change: transform;
}
.tile-icon:hover { box-shadow: 0 28px 64px rgba(59, 130, 246, 0.5); }

/* live app — themed glass tile with an accent glow so it reads as "active" */
.tile-icon--live {
  background:
    radial-gradient(135% 135% at 50% 0%, rgba(99, 102, 241, 0.32), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(139, 92, 246, 0.55);
  box-shadow: 0 22px 55px rgba(59, 130, 246, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
/* transparent-bg logo fills the box (scale crops its internal padding) */
.tile-icon--live img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.18);
}

/* coming-soon — translucent glass with a ? */
.tile-icon--soon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.28);
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

a.tile-link { display: block; border-radius: 28px; }

/* staggered float so they don't bob in unison */
.app-tile:nth-child(1) .tile-float { animation-delay: 0s;    animation-duration: 4.8s; }
.app-tile:nth-child(2) .tile-float { animation-delay: 0.5s;  animation-duration: 5.4s; }
.app-tile:nth-child(3) .tile-float { animation-delay: 1s;    animation-duration: 5.0s; }
.app-tile:nth-child(4) .tile-float { animation-delay: 1.5s;  animation-duration: 5.6s; }
.app-tile:nth-child(5) .tile-float { animation-delay: 0.8s;  animation-duration: 5.2s; }
.app-tile:nth-child(6) .tile-float { animation-delay: 1.3s;  animation-duration: 4.9s; }

.tile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.app-tile--soon .tile-name { color: var(--text-muted); }

.tile-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tile-status.live { color: #60a5fa; }
.tile-status.live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.9);
}

.tile-cta { margin-top: 4px; }

/* ---- Footer ---- */
.empire-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px clamp(24px, 5vw, 64px);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.empire-footer a { color: var(--text-2); transition: color 0.3s var(--ease); }
.empire-footer a:hover { color: #fff; }
.empire-footer .foot-mail { display: inline-flex; align-items: center; gap: 8px; }
.empire-footer .foot-mail svg { width: 16px; height: 16px; color: #60a5fa; }

/* ---- Motion ---- */
@keyframes tileFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes empFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .app-tile { width: 96px; }
  .tile-icon { width: 96px; height: 96px; border-radius: 22px; }
  .tile-name { font-size: 0.95rem; }
}
@media (max-width: 420px) {
  .app-tile { width: 84px; }
  .tile-icon { width: 84px; height: 84px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .empire-bg .cloud,
  .tile-float { animation: none !important; }
  .empire-title, .empire-tag, .app-row { animation: none !important; opacity: 1 !important; transform: none !important; }
}
