@import url("https://fonts.googleapis.com/css2?family=Lilita+One&display=swap");


:root {
  --brand: #814ee8;
  --surface: rgba(0, 0, 0, 0.25);
  --card: #161616;
  --text: #ffffff;
  --muted: #bdbdbd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--brand);
  color: var(--text);
  padding-bottom: 120px;
}

/* 🔑 GLOBAL LINK COLOR FIX */
a,
a:visited,
a:hover,
a:active {
  color: var(--text);
  text-decoration: none;
}

/* ================= HEADER ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.header-logo {
  width: 32px;
  height: 32px;
}

.company-name {
  font-weight: 700;
  font-size: 16px;
}

/* ================= NAV ================= */

nav {
  display: flex;
  gap: 24px;
}

nav button {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.45);
}

nav button.active {
  color: #fff;
  border-bottom: none;
}

/* ================= CONTENT ================= */

#content {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
}

/* ================= GAME GRID ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 200px);
  justify-content: center; /* keeps grid centered */
  gap: 12px;
  row-gap: 28px;
  padding: 28px 24px;
}


.card {
  background: rgba(0, 0, 0, 0.45);
  padding: 28px 24px 16px;
  border-radius: 24px;
  text-align: center;

  aspect-ratio: 3 / 4;
  max-width: 200px;
  width: 100%;

  /* ✅ critical fixes */
  min-height: 340px;
  height: auto;
  overflow: hidden;

  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.card img.main {
  width: 112px;
  height: 112px;
  border-radius: 12px;

  /* ✨ Shine outline */
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
  border: 3px solid rgba(0, 0, 0, 0.9); /* ✅ black border */
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.game-name {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0 6px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}





/* ================= STORE ICONS ================= */

.store-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;

  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 480px) {
  .store-icons img {
    height: 42px; /* smaller but still readable */
  }
}

.store-icons img {
  height: 48px;     /* slightly smaller = safer */
  width: auto;
  max-width: 100%;
  display: block;
}

.store-icons img.disabled {
  opacity: 0.15;
  pointer-events: none;
}

/* ================= TEAM PAGE ================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 180px); /* fixed columns */
  justify-content: center;                        /* centered grid */
  gap: 24px;
  padding: 48px 24px;
}

.team-card {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;

  width: 180px;          /* 🔒 fixed width */
  height: 260px;
  margin: 0;

  position: relative;
  min-width: 0;          /* grid safety */

  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.team-card img {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;

  /* ✨ Shine outline */
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
  border: 3px solid rgba(0, 0, 0, 0.9);
}

.team-card h3 {
  margin: 16px 0 6px;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}


/* ================= ABOUT PAGE ================= */

.about-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.about-icon {
  width: 24px;
  height: 24px;
  opacity: 0.85;
}

/* ================= FOOTER ================= */

footer {
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  max-width: 100%;
  padding: 20px 24px;
  text-align: center;
  font-size: 14px;
  color: #eee;
  z-index: 2;
}

/* ================= GAME META ICONS ================= */

.game-meta-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
}

.game-meta-icons img {
  height: 24px;
  width: auto;
  opacity: 0.7;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9); /* ✅ black border */
}

/* ================= SKELETON LOADING ================= */

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.skeleton-img {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  margin: 0 auto;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  margin: 10px auto;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.long { width: 80%; }

/* ================= CARD BANNER ================= */

.card-banner {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);

  padding: 3px 12px;
  font-weight: 400;
  text-transform: uppercase;

  color: #FFFFFF;
  background: #db291d;

  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.135);

  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 32px);
  
  font-family: "Lilita One", system-ui, sans-serif;
  letter-spacing: 0.5px;
  font-size: 11px;
}
