/* 🎮 lelz Game-Hub – gemeinsames Design (Apple-clean, leicht verspielt) */
:root {
  --bg: #f5f5f7; --card: #fff; --text: #1d1d1f; --text-2: #6e6e73; --text-3: #a1a1a6; --sep: rgba(0,0,0,.08); --fill: rgba(120,120,128,.12);
  --ink: #000; --paper: #fff; --accent: #5e5ce6; --pink: #ff375f; --orange: #ff9f0a; --green: #30d158; --blue: #0a84ff; --red: #ff3b30; --yellow: #ffd60a;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.07); --shadow-lg: 0 30px 80px rgba(0,0,0,.2);
  --ease: cubic-bezier(.32,.72,0,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not(.force-light) { --bg: #000; --card: #1c1c1e; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #6e6e73; --sep: rgba(255,255,255,.1); --fill: rgba(120,120,128,.24); --ink: #fff; --paper: #000; --shadow: 0 0 0 1px rgba(255,255,255,.06); color-scheme: dark; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.muted { color: var(--text-2); } .err { color: var(--red); font-size: 14px; margin: 0; }
.av { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; color: #fff; font-weight: 700; background: linear-gradient(135deg, hsl(var(--h, 220) 70% 58%), hsl(calc(var(--h, 220) + 40) 70% 46%)); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-xs { width: 22px; height: 22px; font-size: 11px; } .av-sm { width: 30px; height: 30px; font-size: 13px; } .av-md { width: 42px; height: 42px; font-size: 17px; } .av-lg { width: 64px; height: 64px; font-size: 26px; } .av-xl { width: 96px; height: 96px; font-size: 38px; } .av-xxl { width: 150px; height: 150px; font-size: 60px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 14px 20px; font-weight: 700; font-size: 16px; cursor: pointer; background: var(--fill); color: var(--text); text-decoration: none; transition: transform .2s var(--ease), opacity .2s; }
.btn:active { transform: scale(.96); } .btn:disabled { opacity: .4; pointer-events: none; }
.btn.primary { background: var(--ink); color: var(--paper); } .btn.block { width: 100%; } .btn.plain { background: var(--fill); }
.field { font: inherit; width: 100%; color: var(--text); background: var(--card); border: 1px solid var(--sep); border-radius: 14px; padding: 13px 15px; font-size: 16px; }
.link-btn { border: 0; background: none; font-weight: 700; font-size: 15px; cursor: pointer; padding: 12px; margin-top: 10px; }
.toast { position: fixed; z-index: 300; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -30px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 99px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: all .4s var(--ease); max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Login */
.login-card { max-width: 720px; margin: 20px auto 0; background: var(--card); border-radius: 30px; padding: 28px 22px; box-shadow: var(--shadow); text-align: center; animation: up .6s var(--ease) both; }
.login-card h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; } .login-card > p { margin: 6px 0 20px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pick { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border: 0; border-radius: 20px; background: var(--fill); cursor: pointer; transition: transform .25s var(--ease); animation: pop .5s var(--d, 0ms) var(--spring) both; }
.pick:active { transform: scale(.94); } .pick b { font-size: 14px; }
.sheet-root { position: fixed; inset: 0; z-index: 100; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); animation: fade .3s both; } @keyframes fade { from { opacity: 0; } }
.sheet { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(460px, 100%); max-height: 94vh; overflow: auto; background: var(--card); border-radius: 28px 28px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 10px; text-align: center; animation: sheetUp .5s var(--ease) both; box-shadow: var(--shadow-lg); }
@keyframes sheetUp { from { transform: translate(-50%, 100%); } }
.sheet h2 { margin: 4px 0; letter-spacing: -.02em; } .sheet p { margin: 0 0 4px; } .sheet-av { display: grid; place-items: center; }
.photo-pick { justify-self: center; position: relative; display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; background: var(--fill); cursor: pointer; }
.photo-pick > span { font-size: 32px; } .photo-pick img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--ink); }
.photo-pick small { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
