/* Kontoseite (/konto/) – Nebelfuchs-Look wie die Startseite (css/style.css): Nebelblau, Fuchsorange, Glas */
:root {
  --bg: #0b0d14;
  --surface: rgba(20, 25, 38, 0.72);
  --surface-solid: #121622;
  --field: #0c1019;
  --text: #e6f0f8;
  --text-2: #a9bacb;
  --muted: #6b7f92;
  --fox: #ff6a1a;
  --fox-soft: #f58436;
  --fox-glow: rgba(255, 106, 26, 0.35);
  --mist: #8cb3cf;
  --ice: #d2e8f7;
  --gold: #ffcf5a;
  --green: #5cf29a;
  --red: #ff6b6b;
  --border: rgba(140, 179, 207, 0.14);
  --border-hi: rgba(255, 106, 26, 0.45);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 106, 26, 0.10), transparent 60%),
    radial-gradient(800px 600px at 0% 20%, rgba(140, 179, 207, 0.10), transparent 60%),
    radial-gradient(circle at 50% 0%, #181e2e 0%, #0f131d 45%, var(--bg) 100%) fixed;
  color: var(--text-2);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--text); line-height: 1.2; margin: 0; }
a { color: var(--mist); }
a:hover { color: var(--fox); }
[hidden] { display: none !important; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist); }
.tag::before { content: ""; width: 18px; height: 2px; background: linear-gradient(90deg, var(--fox), var(--mist)); }
.grad { background: linear-gradient(90deg, var(--fox), var(--fox-soft) 40%, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }

main { padding: 48px 0 72px; }

/* ── Glas-Karte ── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.card h2 { font-size: 1.05rem; letter-spacing: 0.04em; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.card .lede { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); }
.ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(140, 179, 207, 0.1); border: 1px solid var(--border); font-size: 1rem; flex: none; }

/* ── Formulare ── */
label { display: block; margin: 14px 0 6px; font-size: 0.82rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }
input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--field); border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #4b5b6c; }
input:focus { outline: none; border-color: var(--fox); box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.18); }
.hint { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.msg { min-height: 1.4em; margin: 12px 0 0; font-size: 0.88rem; color: var(--gold); }
.msg.err { color: var(--red); }

/* ── Knöpfe ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--border); background: rgba(140, 179, 207, 0.06); color: var(--text);
  cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.btn:hover { border-color: var(--mist); color: var(--text); transform: translateY(-1px); }
.btn.primary { background: var(--fox); border-color: var(--fox); color: #170a02; box-shadow: 0 0 24px var(--fox-glow); }
.btn.primary:hover { color: #170a02; box-shadow: 0 0 34px var(--fox-glow); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1a1300; box-shadow: 0 0 24px rgba(255, 207, 90, 0.35); }
.btn.gold:hover { color: #1a1300; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: rgba(255, 107, 107, 0.55); color: var(--red); }
.btn.danger:hover { background: rgba(255, 107, 107, 0.1); border-color: var(--red); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

/* ── Abgemeldet: Einstieg ── */
.welcome { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.welcome h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: 0.01em; margin: 14px 0 16px; }
.welcome .intro { font-size: 1.05rem; max-width: 520px; margin: 0 0 28px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.perks .ico { width: 44px; height: 44px; font-size: 1.25rem; background: rgba(255, 106, 26, 0.08); border-color: rgba(255, 106, 26, 0.25); }
.perks strong { display: block; color: var(--text); font-size: 0.98rem; }
.perks span { font-size: 0.9rem; }
.no-account { margin: 26px 0 0; font-size: 0.88rem; color: var(--muted); }

.auth { padding: 30px; }
.auth::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 106, 26, 0.55), rgba(140, 179, 207, 0.15) 45%, rgba(140, 179, 207, 0.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--field); border: 1px solid var(--border); margin-bottom: 8px; }
.seg button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.seg button[aria-selected="true"] { background: rgba(255, 106, 26, 0.16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 106, 26, 0.5); }

/* Kauf-Hinweis (?kaufen=…) */
.buy-banner { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 26px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 207, 90, 0.12), rgba(255, 207, 90, 0.03)); border: 1px solid rgba(255, 207, 90, 0.4); }
.buy-banner img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.buy-banner strong { display: block; color: var(--gold); font-family: 'Montserrat', sans-serif; letter-spacing: 0.04em; }
.buy-banner p { margin: 2px 0 0; font-size: 0.9rem; }

/* ── Angemeldet: Profilkopf ── */
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 34px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.6rem; color: #170a02; background: linear-gradient(135deg, var(--fox), var(--fox-soft) 45%, var(--ice)); box-shadow: 0 0 30px var(--fox-glow); flex: none; }
.profile .who { flex: 1 1 260px; min-width: 0; }
.profile h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); overflow-wrap: anywhere; }
.profile .sub { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid currentColor; vertical-align: middle; }
.badge.supporter { color: var(--gold); background: rgba(255, 207, 90, 0.08); }
.badge.pilot { color: var(--mist); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.section-head h2 { font-size: 1.25rem; letter-spacing: 0.04em; }

/* ── Meine Spiele ── */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; margin-bottom: 40px; }
.game { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.game:hover { border-color: rgba(140, 179, 207, 0.35); transform: translateY(-2px); }
.game.wanted { border-color: rgba(255, 207, 90, 0.75); box-shadow: 0 0 0 1px rgba(255, 207, 90, 0.4), 0 0 40px rgba(255, 207, 90, 0.18); }
.game .cover { position: relative; aspect-ratio: 16 / 7; background: radial-gradient(circle at 30% 30%, rgba(140, 179, 207, 0.25), transparent 60%), linear-gradient(135deg, #1b2236, #0b0d14); }
.game .cover img.bg { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.game .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11, 13, 20, 0.95)); }
.game .cover .icon { position: absolute; left: 18px; bottom: -22px; z-index: 1; width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--surface-solid); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); background: #05050f; }
.game .cover .badge { position: absolute; right: 14px; top: 14px; z-index: 1; backdrop-filter: blur(6px); background: rgba(11, 13, 20, 0.6); }
.badge.full { color: var(--gold); }
.badge.demo { color: var(--mist); }
.badge.dev { color: var(--muted); }
.badge.free { color: var(--green); }
.game .body { padding: 30px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.game h3 { font-size: 1.15rem; }
.game .subtitle { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.stat { padding: 10px 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--border); }
.stat b { display: block; color: var(--text); font-family: 'Montserrat', sans-serif; font-size: 1rem; }
.stat span { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.game .row { margin-top: auto; padding-top: 18px; }
.game .row .btn { flex: 1 1 auto; }

/* ── Einstellungen ── */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.danger-zone { margin-top: 18px; border-color: rgba(255, 107, 107, 0.35); background: linear-gradient(180deg, rgba(255, 107, 107, 0.05), var(--surface)); }
.danger-zone h2 { color: var(--red); }
.danger-zone .ico { background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.35); }
.danger-zone form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.danger-zone label { grid-column: 1 / -1; margin-bottom: -6px; }
.danger-zone .msg { grid-column: 1 / -1; margin: 0; }
.footnote { margin: 28px 0 0; font-size: 0.85rem; color: var(--muted); text-align: center; }

footer { border-top: 1px solid var(--border); padding: 24px 16px; text-align: center; font-size: 0.85rem; color: var(--muted); }
footer a { margin: 0 8px; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fox); }

@media (max-width: 860px) {
  .welcome { grid-template-columns: 1fr; gap: 32px; }
  main { padding-top: 32px; }
}
@media (max-width: 480px) {
  .card, .auth { padding: 20px; }
  .danger-zone form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .profile .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ── OAuth / 1-Click Social Login ── */
.oauth-section {
  margin-bottom: 18px;
}
.oauth-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 12px;
  text-align: center;
}
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: all .2s ease;
  box-sizing: border-box;
}
.oauth-btn:hover {
  transform: translateY(-2px);
  border-color: var(--mist);
  color: var(--text);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.oauth-btn svg {
  flex-shrink: 0;
}
.oauth-google:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #4285F4;
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.25);
}
.oauth-github:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #f0f6fc;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
}
.oauth-discord:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: #5865F2;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}
.oauth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.oauth-divider span {
  padding: 0 12px;
}
.linked-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  background: rgba(140, 179, 207, 0.08);
  border: 1px solid var(--border);
  color: var(--text-2);
  margin-top: 6px;
  margin-right: 6px;
}
