/* ============================================================
   Greek Game Translations — Part 1: Hero
   Design tokens
   ============================================================ */
:root {
  --bg:        #05060d;
  --bg-2:      #0a0d1f;
  --surface:   rgba(255, 255, 255, 0.04);
  --border:    rgba(255, 255, 255, 0.10);
  --text:      #e8ecf7;
  --text-dim:  #9aa3bd;
  --accent:    #38e8ff;   /* cyan  */
  --accent-2:  #b14bff;   /* violet */
  --accent-3:  #ff4bd8;   /* magenta */
  --glow:      0 0 40px rgba(56, 232, 255, 0.35);
  --radius:    16px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   Animated background
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(177, 75, 255, 0.22), transparent 60%),
    radial-gradient(50% 50% at 85% 15%, rgba(56, 232, 255, 0.18), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(255, 75, 216, 0.15), transparent 60%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 6, 13, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.nav__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(56,232,255,0.5));
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.nav__name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.15px;
  white-space: nowrap;
  margin-top: 1px;
}
@media (max-width: 820px) {
  .nav__name    { font-size: 0.85rem; }
  .nav__tagline { font-size: 0.62rem; }
}
@media (max-width: 560px) {
  .nav__brand-text { display: none; }
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

/* Nav auth state */
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__auth { display: flex; align-items: center; gap: 10px; }
.nav__auth-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav__auth-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: #05060d;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.nav__auth-btn:hover { box-shadow: var(--glow); transform: translateY(-1px); }
.nav__auth-login { /* subtler than the dashboard button */ }
.nav__auth-link-plain {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__auth-link-plain:hover { color: var(--text); }
.nav__auth-logout {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nav__auth-logout:hover { color: var(--accent-3); border-color: var(--accent-3); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lang-toggle:hover { border-color: var(--accent); box-shadow: var(--glow); }
.lang-toggle__opt { transition: color 0.2s; }
.lang-toggle__opt.is-active { color: var(--accent); }
.lang-toggle__sep { opacity: 0.4; }

/* ============================================================
   Hero
   ============================================================ */
main { position: relative; z-index: 1; }

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(70px, 12vh, 150px) 24px 90px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  animation: fade-up 0.6s ease both;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s infinite;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero__title-line { display: block; animation: fade-up 0.6s ease both; }
.hero__title-line:nth-child(1) { animation-delay: 0.05s; }
.hero__title-line--accent {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation-delay: 0.15s;
}

.hero__subtitle {
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 40px;
  animation: fade-up 0.6s ease 0.25s both;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
  animation: fade-up 0.6s ease 0.35s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: #05060d;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  background-clip: padding-box;
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(56, 232, 255, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 10px 40px rgba(56, 232, 255, 0.55);
  transform: translateY(-2px);
}
.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 30px rgba(177, 75, 255, 0.3);
  transform: translateY(-2px);
}

/* Stats */
.hero__stats {
  display: flex;
  gap: clamp(24px, 6vw, 64px);
  animation: fade-up 0.6s ease 0.45s both;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   Section headings
   ============================================================ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 10px; padding: 0 24px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub { color: var(--text-dim); font-size: 1rem; line-height: 1.6; }

/* ============================================================
   Games carousel (coverflow)
   ============================================================ */
.games { padding: 70px 0 40px; }

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
  margin: 24px 0 8px;
  perspective: 1600px;
}

.carousel__stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(10, 13, 31, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.carousel__nav:hover { border-color: var(--accent); box-shadow: var(--glow); background: rgba(10,13,31,0.9); }
.carousel__nav--prev { left: 3%; }
.carousel__nav--next { right: 3%; }

/* --- Card --- */
.game-card {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px;
  height: 380px;
  transform: translate(-50%, -50%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.game-card.is-front {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px color-mix(in srgb, var(--c1) 45%, transparent);
  border-color: color-mix(in srgb, var(--c1) 60%, transparent);
}
.game-card.is-front .game-card__title { color: #fff; }

/* Cover: real image, or a generated gradient poster fallback */
.game-card__img { width: 100%; height: 62%; object-fit: cover; display: block; }
.game-card__art {
  height: 62%;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--c1) 85%, transparent), transparent 60%),
    linear-gradient(150deg, var(--c1), var(--c2));
  position: relative;
}
.game-card__art::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(160deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%);
}
.game-card__art span {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.5px;
}

.game-card__status {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
}
.game-card__status.is-complete { color: #4ade80; }
.game-card__status.is-progress { color: #38e8ff; }
.game-card__status.is-beta     { color: #fbbf24; }

.game-card__body { padding: 18px 18px 20px; }
.game-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.game-card__genre {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.game-card__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 6px;
}
.game-card__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.game-card__pct { font-size: 0.8rem; color: var(--text-dim); }

/* ============================================================
   Games grid page (games.html) — reuses .game-card visuals
   but overrides the carousel's absolute positioning.
   ============================================================ */
.games-page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 40px 24px 20px;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.games-grid .game-card {
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  height: 380px;
  transform: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}
.games-grid .game-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c1) 60%, transparent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55),
              0 0 40px color-mix(in srgb, var(--c1) 30%, transparent);
}
.games-grid__empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
}

/* ---------- Search + filter toolbar ---------- */
.games-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
  background: rgba(10, 13, 31, 0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  backdrop-filter: blur(10px);
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 232, 255, 0.15);
  background: rgba(10, 13, 31, 0.75);
}
.search__icon {
  flex: none;
  color: var(--text-dim);
  margin-right: 8px;
}
.search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.search__input::placeholder { color: var(--text-dim); opacity: 0.9; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  transition: color 0.15s, background 0.15s;
}
.search__clear:hover { color: var(--text); background: rgba(255,255,255,0.12); }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.pill-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.pill:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.pill.is-active {
  color: #05060d;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  background-clip: padding-box;
  border-color: transparent;
}

.genre-wrap { display: inline-flex; align-items: center; gap: 8px; }
.genre-label { font-size: 0.85rem; color: var(--text-dim); font-weight: 600; }
.filter-select {
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(10, 13, 31, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3bd' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}
.filter-select:hover, .filter-select:focus { border-color: var(--accent); outline: none; }
.filter-select option { background: #0a0d1f; color: var(--text); }

.results-count {
  margin: 18px 0 -10px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --- Dots --- */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.carousel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}
.carousel__dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

@media (max-width: 680px) {
  .carousel { height: 420px; }
  .game-card { width: 220px; height: 340px; }
  .carousel__nav--prev { left: 1%; }
  .carousel__nav--next { right: 1%; }
}

/* ============================================================
   Placeholder sections (future parts)
   ============================================================ */
.placeholder {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ============================================================
   Team section
   ============================================================ */
.team {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 40px 24px 20px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c1, var(--accent)) 45%, transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35),
              0 0 40px color-mix(in srgb, var(--c1, var(--accent)) 25%, transparent);
}
.team-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
              inset 0 0 20px rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.team-avatar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}
.team-avatar span {
  font-size: 2.4rem;
  font-weight: 800;
  color: #05060d;
  letter-spacing: -1px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}
.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  word-break: break-all;
}
.team-role {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: -6px;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Verify / reset / forgot pages
   ============================================================ */
.verify-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0; }
.verify-spinner { font-size: 2rem; animation: pulse 1.4s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }
.verify-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.2rem; font-weight: 800;
  margin: 4px auto 8px;
}
.verify-icon--ok  { background: linear-gradient(135deg, #4bffa0, #38e8ff); color: #05060d; box-shadow: 0 8px 30px rgba(75,255,160,0.25); }
.verify-icon--err { background: linear-gradient(135deg, #ff6b6b, #ff4bd8); color: #ffffff; box-shadow: 0 8px 30px rgba(255,107,107,0.25); }

/* Unverified-email banner (rendered by auth-ui.js when logged in + unverified) */
.verify-banner {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 20px; font-size: 0.88rem;
  background: linear-gradient(90deg, rgba(251,191,36,0.15), rgba(255,138,75,0.15));
  border-bottom: 1px solid rgba(251,191,36,0.35);
  color: #fbbf24; text-align: center;
}
.verify-banner button {
  font: inherit; font-weight: 700;
  color: #05060d; background: #fbbf24;
  border: 0; border-radius: 999px; padding: 4px 14px; cursor: pointer;
}
.verify-banner button:disabled { opacity: 0.5; cursor: default; }

/* ============================================================
   Profile page
   ============================================================ */
.profile-page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 32px 24px 20px;
}
.profile-loading, .profile-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
}
.profile-hero {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 30px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.profile-hero__avatar { flex: none; width: 120px; height: 120px; }
.profile-hero__avatar span { font-size: 3rem; }
.profile-hero__info { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 260px; }
.profile-hero__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-hero__name { font-size: 2rem; font-weight: 800; color: var(--text); }
.profile-hero__joined { font-size: 0.88rem; color: var(--text-dim); }
.profile-stats { display: flex; gap: 28px; margin-top: 4px; flex-wrap: wrap; }
.profile-stat { display: flex; flex-direction: column; gap: 2px; }
.profile-stat b {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.profile-stat span { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.profile-edit-btn { padding: 8px 18px; font-size: 0.9rem; }
.profile-hero__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }

/* Donate button + popover */
.profile-donate-wrap { position: relative; display: inline-block; }
.profile-donate-btn {
  padding: 8px 18px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.profile-donate-btn > span:first-child { font-size: 1.1rem; }
.donate-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: rgba(10,13,31,0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  animation: fade-up 0.18s ease both;
  backdrop-filter: blur(12px);
}
.donate-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: #05060d;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.donate-item:hover { transform: translateX(2px); filter: brightness(1.05); }
.donate-item svg { flex: none; }
.donate-item--bmc     { background: #ffdd00; }
.donate-item--kofi    { background: #ff5f5f; color: #fff; }
.donate-item--paypal  { background: #003087; color: #fff; }
.donate-item--revolut { background: #0075eb; color: #fff; }

/* Download button size + file size chip */
.gd__dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gd__dl-meta {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
  padding-left: 6px;
  border-left: 1px solid rgba(0,0,0,0.15);
  margin-left: 2px;
}

.profile-section { margin-bottom: 38px; }
.profile-section .section-title {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 1.15rem; font-weight: 700; margin-bottom: 18px;
  text-align: left;
}
.profile-section .section-count { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; }

.profile-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.profile-mini-grid .game-card {
  position: static; top: auto; left: auto;
  width: 100%; height: 260px;
  transform: none; opacity: 1; pointer-events: auto;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.profile-mini-grid .game-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c1) 55%, transparent);
}
.profile-mini-grid .game-card__body { padding: 12px 14px 14px; }
.profile-mini-grid .game-card__title { font-size: 0.95rem; }

.profile-comments { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.profile-comment {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px;
}
.profile-comment__game {
  color: var(--accent); text-decoration: none; font-weight: 700; font-size: 0.9rem;
}
.profile-comment__game:hover { text-decoration: underline; }
.profile-comment__body {
  color: var(--text); line-height: 1.55; margin: 6px 0 6px;
  white-space: pre-wrap; word-wrap: break-word;
}
.profile-comment__time { font-size: 0.78rem; color: var(--text-dim); }

/* Profile edit modal — extend generic .modal-overlay */
.modal { max-width: 460px; }
.modal__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; text-align: center; }
.modal__form { display: flex; flex-direction: column; gap: 12px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.editor-sep { border: 0; border-top: 1px solid var(--border); margin: 8px 0; }
.editor-note { font-size: 0.85rem; color: var(--text-dim); text-align: center; margin: 4px 0; }

/* Author links (comments, admin, translators, nav name) */
.author-link, .nav__auth-name a {
  color: inherit; text-decoration: none;
  border-bottom: 1px dashed transparent; transition: color 0.15s, border-color 0.15s;
}
.author-link:hover, .nav__auth-name a:hover {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 60%, transparent);
}
.gd__chip.author-link {
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.gd__chip.author-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Team cards — becomes a link, add hover */
a.team-card { text-decoration: none; color: inherit; cursor: pointer; }

@media (max-width: 600px) {
  .profile-hero { padding: 24px 20px; }
  .profile-hero__avatar { width: 90px; height: 90px; }
  .profile-hero__avatar span { font-size: 2.2rem; }
  .profile-hero__name { font-size: 1.5rem; }
}

/* ============================================================
   Game detail page
   ============================================================ */
.gamepage {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.gamepage__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.gamepage__back:hover { color: var(--accent); }
.gamepage__notfound { text-align: center; padding: 80px 0; color: var(--text-dim); font-size: 1.2rem; }

.gd {
  display: block;
  animation: fade-up 0.5s ease both;
}
.gd__cover {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--c1) 50%, var(--border));
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 50px color-mix(in srgb, var(--c1) 30%, transparent);
  aspect-ratio: 3 / 4;
}
.gd__cover-img { width: 100%; height: 100%; object-fit: cover; }
.gd__cover-art {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--c1) 85%, transparent), transparent 60%),
    linear-gradient(150deg, var(--c1), var(--c2));
}
.gd__cover-art span {
  font-size: 2rem; font-weight: 800; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.gd__cover .game-card__status { top: 16px; right: 16px; }

.gd__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.gd__tags { display: flex; gap: 8px; margin-bottom: 22px; }
.gd__tag {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--c1) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent);
}
.gd__desc { color: var(--text); font-size: 1.05rem; line-height: 1.75; white-space: pre-wrap; word-wrap: break-word; margin: 0; }

/* --- New: hero (top) + sections (bottom) layout --- */
.gd__hero {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 820px) {
  .gd__hero { grid-template-columns: 1fr; }
  .gd__cover { max-width: 300px; margin: 0 auto; }
}
.gd__section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.gd__section-h {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.gd__section-empty {
  color: var(--text-dim);
  font-style: italic;
  padding: 14px 0;
}

/* Install steps — numbered list with subtle chrome */
.gd__steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.gd__steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  line-height: 1.55;
  transition: border-color 0.2s;
}
.gd__steps li:hover { border-color: color-mix(in srgb, var(--c1, var(--accent)) 45%, var(--border)); }
.gd__steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 800; font-size: 0.95rem;
  color: #05060d;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* Downloads row: primary + nexus buttons side by side */
.gd__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.gd__dl--nexus {
  color: #05060d;
  background: linear-gradient(100deg, #ffa726, #ff6b35);
  background-clip: padding-box;
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.28);
}
.gd__dl--nexus:hover {
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.5);
  transform: translateY(-2px);
}

.gd__meta { margin-bottom: 24px; }
.gd__meta-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.gd__bar { height: 10px; margin: 4px 0 8px; max-width: 420px; }

.gd__translators { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.gd__chip {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}
.gd__dl.is-disabled { opacity: 0.6; cursor: not-allowed; }

/* Favourite toggle on the game page */
.gd__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gd__fav {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.gd__fav svg { fill: none; transition: fill 0.2s; }
.gd__fav:hover { border-color: var(--accent-3); color: var(--accent-3); }
.gd__fav.is-on { color: var(--accent-3); border-color: var(--accent-3); box-shadow: 0 0 24px rgba(255,75,216,0.25); }
.gd__fav.is-on svg { fill: var(--accent-3); }

/* ============================================================
   Favourites page grid
   ============================================================ */
.favpage {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.favpage__empty {
  text-align: center;
  color: var(--text-dim);
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.favpage__empty a { color: var(--accent); text-decoration: none; font-weight: 600; }

.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.fav-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.fav-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c1) 55%, transparent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px color-mix(in srgb, var(--c1) 30%, transparent);
}
.fav-card__link { display: block; position: relative; text-decoration: none; }
.fav-card__img { width: 100%; height: 180px; object-fit: cover; display: block; }
.fav-card__art {
  height: 180px;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--c1) 85%, transparent), transparent 60%),
    linear-gradient(150deg, var(--c1), var(--c2));
}
.fav-card__art span { font-size: 1.25rem; font-weight: 800; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.fav-card .game-card__status { top: 12px; right: 12px; }
.fav-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.fav-card__title { font-size: 1.05rem; font-weight: 700; color: var(--text); text-decoration: none; }
.fav-card__title:hover { color: var(--accent); }
.fav-card__meta { font-size: 0.82rem; color: var(--text-dim); }
.fav-card__remove {
  position: absolute;
  top: 12px; left: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  color: #fff;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.fav-card:hover .fav-card__remove { opacity: 1; }
.fav-card__remove:hover { background: var(--accent-3); }

@media (max-width: 720px) {
  .gd { grid-template-columns: 1fr; gap: 26px; }
  .gd__cover { max-width: 300px; margin: 0 auto; }
}

/* ============================================================
   Shared form fields (used by login, admin, comments, modal)
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field__label { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 232, 255, 0.15);
}
.field select option { background: var(--bg-2); color: var(--text); }
.field input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }
.field input[type="range"] { padding: 0; accent-color: var(--accent); cursor: pointer; }
.field input[type="file"] { padding: 9px; font-size: 0.85rem; color: var(--text-dim); }

.auth-error {
  color: #ff6b6b;
  font-size: 0.9rem;
  background: rgba(255, 75, 75, 0.1);
  border: 1px solid rgba(255, 75, 75, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 4px 0;
}

/* Report-a-problem button on the game page */
.gd__report {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 20px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.gd__report:hover { color: var(--text); border-color: var(--text-dim); }

/* ============================================================
   Modal (report form)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 4, 10, 0.7);
  backdrop-filter: blur(6px);
  animation: fade-up 0.2s ease;
}
/* the class sets display:grid, which would otherwise beat the [hidden]
   attribute — this makes hiding actually work */
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), var(--glow);
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.modal__close:hover { color: var(--accent-3); border-color: var(--accent-3); }
.modal__title { font-size: 1.35rem; font-weight: 800; margin-bottom: 22px; }
.modal form .field { margin-bottom: 16px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.modal__done { text-align: center; padding: 20px 0 6px; }
.modal__done-icon { font-size: 3rem; margin-bottom: 12px; }
.modal__done p { color: var(--text-dim); margin-bottom: 22px; }

/* ============================================================
   Comments
   ============================================================ */
.comments {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 40px 24px 0;
}
.comments__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.comments__count { font-size: 1rem; color: var(--text-dim); font-weight: 600; }

/* compose */
.comment-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,232,255,0.15);
}
.comment-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.comment-form__as { font-size: 0.85rem; color: var(--text-dim); }
.comment-form__as strong { color: var(--text); }

.comment-login {
  padding: 16px 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.comment-login a { color: var(--accent); text-decoration: none; font-weight: 700; }
.comment-login a:hover { text-decoration: underline; }

/* list */
.comments__list { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.comments__empty { color: var(--text-dim); padding: 20px 0; }

.comment { display: flex; gap: 14px; }
.comment__avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #05060d;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.comment__main { flex: 1; min-width: 0; }
.comment__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.comment__author { font-weight: 700; font-size: 0.95rem; }
.comment__badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 9px;
  border-radius: 999px;
}
.comment__badge--admin { color: var(--accent-3); background: rgba(255,75,216,0.14); border: 1px solid rgba(255,75,216,0.3); }
.comment__badge--moderator { color: var(--accent-2); background: rgba(177,75,255,0.14); border: 1px solid rgba(177,75,255,0.3); }
.comment__time { font-size: 0.78rem; color: var(--text-dim); }
.comment__del {
  margin-left: auto;
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  transition: color 0.2s, border-color 0.2s;
}
.comment__del:hover { color: var(--accent-3); border-color: var(--accent-3); }
.comment__body { color: var(--text); line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 680px) {
  .nav { padding: 12px 18px; }
  .nav__links { display: none; }
  .hero { padding-top: 60px; }
}
