/* Portal homepage — shares the game's dark/neon language
   (#7c5eff purple, #d500f9 magenta, #14ffe9 / #00e5ff cyan). */
:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #02020a;
}

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

html, body {
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(124, 94, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(213, 0, 249, 0.10), transparent 60%),
    #02020a;
  color: #edf5ff;
}

/* Language toggle, fixed to the top-right of the page */
.corner-lang {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  gap: 6px;
}

.lang-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-btn.active {
  background: rgba(20, 255, 233, 0.15);
  border-color: #14ffe9;
  color: #14ffe9;
  box-shadow: 0 0 12px rgba(20, 255, 233, 0.3);
}

.lang-btn:focus-visible {
  outline: 3px solid #14ffe9;
  outline-offset: 2px;
}

.portal {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.portal-header {
  text-align: center;
  margin-bottom: 40px;
}

.portal-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(124, 94, 255, 0.55));
  margin-bottom: 14px;
}

.portal-title {
  color: #ffe8ff;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(255, 85, 255, 0.32);
}

.portal-tagline {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.game-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(6, 5, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card:not(.coming-soon):hover,
.game-card:not(.coming-soon):focus-visible {
  transform: translateY(-4px);
  border-color: rgba(20, 255, 233, 0.6);
  box-shadow: 0 28px 70px rgba(124, 94, 255, 0.30);
}

.game-card:focus-visible {
  outline: 3px solid #14ffe9;
  outline-offset: 2px;
}

.game-thumb {
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(160deg, rgba(124, 94, 255, 0.18), rgba(2, 2, 10, 0.4));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.18);
}

.game-thumb img {
  max-width: 96px;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
}

.game-info {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.game-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.game-tagline {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.game-cta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7d4cff, #14ffe9);
  color: #060712;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 24px rgba(124, 94, 255, 0.28);
}

.game-badge {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.game-card.coming-soon {
  opacity: 0.55;
  cursor: default;
}

.portal-footer {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}
