/* ═══════════════ AsteriaFlip ═══════════════ */
:root {
  --bg: #07040f;
  --bg-2: #0d0720;
  --panel: rgba(26, 15, 52, 0.62);
  --panel-solid: #140c2a;
  --panel-2: rgba(42, 25, 82, 0.55);
  --border: rgba(167, 139, 250, 0.14);
  --border-strong: rgba(167, 139, 250, 0.32);
  --text: #f1edff;
  --muted: #a39bc6;
  --dim: #6f6893;
  --primary: #8b5cf6;
  --primary-2: #a855f7;
  --primary-3: #c084fc;
  --accent: #e879f9;
  --glow: rgba(139, 92, 246, 0.55);
  --win: #4ade80;
  --lose: #fb7185;
  --gold: #fcd34d;
  --radius: 18px;
  --radius-sm: 12px;
  --grad: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 40%, #d946ef 100%);
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 700px at 70% -10%, #2a1260 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 30%, #1d0b45 0%, transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }

/* ─── Hintergrund ─── */
#stars, #confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#stars { z-index: -2; }
#confetti { z-index: 1000; }
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; filter: blur(80px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 520px; height: 520px; background: #6d28d9; top: -120px; left: 10%; }
.aurora span:nth-child(2) { width: 420px; height: 420px; background: #a21caf; top: 30%; right: -80px; animation-duration: 28s; opacity: .6; }
.aurora span:nth-child(3) { width: 380px; height: 380px; background: #4338ca; bottom: -120px; left: 30%; animation-duration: 34s; opacity: .5; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 40px) scale(1.15); }
  100% { transform: translate(-60px, 80px) scale(.95); }
}

/* ─── Topbar ─── */
:root { --top-h: 64px; --side-w: 232px; --chat-w: 320px; }
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--top-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 18px;
  background: rgba(10, 6, 22, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.top-spacer { flex: 1; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.brand img { filter: drop-shadow(0 0 12px var(--glow)); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(180deg) scale(1.08); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.small { font-size: 17px; }
.account { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.burger span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }
.chat-toggle { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border-strong); background: rgba(139, 92, 246, .1); color: var(--primary-3); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.chat-toggle:hover { background: rgba(139, 92, 246, .25); color: #fff; }
.chat-toggle svg { width: 20px; height: 20px; }

/* ─── Shell: Sidebar | Inhalt | Chat ─── */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) var(--chat-w); min-height: calc(100vh - var(--top-h)); }
body.chat-hidden .shell { grid-template-columns: var(--side-w) minmax(0, 1fr) 0; }
body.chat-hidden .chat { display: none; }
.sidebar {
  position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 12px; border-right: 1px solid var(--border); background: rgba(10, 6, 22, .45); backdrop-filter: blur(12px);
  scrollbar-width: thin;
}
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 14px 12px 6px; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--muted); font-weight: 500; transition: color .2s, background .2s, transform .2s var(--ease);
}
.side-nav a:hover { color: var(--text); background: rgba(139, 92, 246, .1); transform: translateX(2px); }
.side-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(139, 92, 246, .28), rgba(139, 92, 246, .06)); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .25); }
.side-nav a.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 12px var(--primary); }
.side-nav i { width: 22px; height: 22px; display: grid; place-items: center; color: var(--primary-3); flex: none; }
.side-nav i svg { width: 20px; height: 20px; }
.side-nav span { flex: 1; }
.live-count { font-style: normal; font-size: 11px; font-weight: 700; color: var(--win); background: rgba(74, 222, 128, .1); padding: 2px 7px; border-radius: 99px; }
.live-count:empty { display: none; }
.side-foot { padding: 12px; font-size: 12px; color: var(--dim); }
.side-foot p { margin: 10px 0 0; line-height: 1.5; }
.online-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .2); color: var(--muted); font-size: 13px; }
.online-pill b { color: var(--text); }
.online-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--win); box-shadow: 0 0 10px var(--win); animation: pulse 1.6s infinite; }
.online-pill.small { padding: 3px 9px; font-size: 12px; }

/* ─── Chat ─── */
.chat {
  position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h));
  display: flex; flex-direction: column; border-left: 1px solid var(--border); background: rgba(10, 6, 22, .55); backdrop-filter: blur(12px);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); }
.chat-head b { font-family: var(--display); font-size: 17px; flex: 1; }
.chat-close { display: none; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.chat-msg { display: flex; gap: 10px; padding: 8px; border-radius: 12px; animation: chatIn .35s var(--ease); position: relative; }
.chat-msg:hover { background: rgba(139, 92, 246, .07); }
.chat-msg img { width: 30px; height: 30px; border-radius: 8px; image-rendering: pixelated; flex: none; }
.chat-msg .meta { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.chat-msg .meta b { color: var(--primary-3); }
.chat-msg .meta b.admin { color: var(--gold); }
.chat-msg .meta time { font-size: 11px; color: var(--dim); }
.chat-msg .txt { font-size: 14px; color: var(--text); overflow-wrap: anywhere; line-height: 1.4; }
.chat-msg .del { position: absolute; right: 6px; top: 6px; display: none; background: rgba(251, 113, 133, .15); color: var(--lose); border: 0; border-radius: 6px; font-size: 11px; padding: 2px 6px; cursor: pointer; }
.chat-msg:hover .del { display: block; }
.chat-sys { text-align: center; font-size: 12px; color: var(--dim); padding: 6px; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border); background: rgba(8, 4, 20, .7); outline: 0; transition: border-color .2s, box-shadow .2s; }
.chat-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(4, 2, 10, .6); backdrop-filter: blur(3px); display: none; }
.scrim.show { display: block; animation: fade .2s; }

.balance-pill {
  display: flex; align-items: center; gap: 0; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 20px rgba(139, 92, 246, .15);
  overflow: hidden;
}
.balance-pill .amount { padding: 7px 14px; font-family: var(--mono); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.balance-pill .amount.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); color: var(--win); } }
.balance-pill a { padding: 7px 14px; background: var(--grad); font-weight: 600; font-size: 13px; }
.coin-ico { width: 16px; height: 16px; flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-strong); image-rendering: pixelated; background: var(--panel-solid); }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 2px; border-radius: 12px; position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 6px;
  background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); display: none; text-align: left; z-index: 60;
  animation: pop .2s var(--ease);
}
.dropdown.open { display: block; }
.dropdown .dd-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-weight: 600; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; background: none; border: 0; cursor: pointer; color: var(--muted); }
.dropdown a:hover, .dropdown button:hover { background: rgba(139, 92, 246, .14); color: var(--text); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* ─── Layout ─── */
.view { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 36px) 80px; min-width: 0; overflow-x: clip; }
.view > * { animation: rise .55s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: .06s; }
.view > *:nth-child(3) { animation-delay: .12s; }
.view > *:nth-child(4) { animation-delay: .18s; }
.view > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(14px); padding: 22px; position: relative;
}
.card.glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(167, 139, 250, .6), transparent 40%, transparent 60%, rgba(232, 121, 249, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 48px 0 16px; }
.section-title h2 { font-family: var(--display); font-size: 24px; margin: 0; letter-spacing: -.02em; }
.section-title .sub { color: var(--muted); font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.win { color: var(--win); }
.lose { color: var(--lose); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; letter-spacing: -.03em; display: flex; align-items: center; gap: 12px; }
.page-head p { margin: 0; color: var(--muted); max-width: 640px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(139, 92, 246, .14); border: 1px solid var(--border-strong); color: var(--primary-3);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.badge.live { color: var(--win); background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .25); }
.badge.live .dot { animation: pulse 1.6s infinite; }
.badge.off { color: var(--lose); background: rgba(251, 113, 133, .08); border-color: rgba(251, 113, 133, .25); }
@keyframes pulse { 50% { opacity: .3; } }

/* ─── Buttons & Inputs ─── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 600;
  background: var(--grad); color: #fff; overflow: hidden; isolation: isolate;
  box-shadow: 0 8px 28px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s var(--ease), box-shadow .25s, filter .2s;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 12px 36px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .3); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { filter: grayscale(.6) brightness(.7); cursor: not-allowed; transform: none; }
.btn.big { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.ghost { background: rgba(139, 92, 246, .1); border: 1px solid var(--border-strong); box-shadow: none; }
.btn.ghost:hover { background: rgba(139, 92, 246, .2); }
.btn.green { background: linear-gradient(135deg, #22c55e, #4ade80); box-shadow: 0 8px 28px -8px rgba(74, 222, 128, .6); color: #052e12; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

label.field { display: block; margin-bottom: 16px; }
label.field > span { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.input-wrap {
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 14px; border-radius: 12px;
  background: rgba(8, 4, 20, .7); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.input-wrap input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 8px 0; font-family: var(--mono); font-size: 15px; }
.input-wrap .mini { padding: 6px 10px; border-radius: 8px; border: 0; background: rgba(139, 92, 246, .14); color: var(--primary-3); font-weight: 600; font-size: 12px; cursor: pointer; transition: background .15s; }
.input-wrap .mini:hover { background: rgba(139, 92, 246, .3); color: #fff; }
input.plain {
  width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(8, 4, 20, .7); border: 1px solid var(--border);
  outline: 0; font-family: var(--mono); transition: border-color .2s, box-shadow .2s;
}
input.plain:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 13px; background: rgba(8, 4, 20, .7); border: 1px solid var(--border); }
.seg button {
  padding: 9px 6px; border-radius: 9px; border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .2s, color .2s, box-shadow .2s;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 16px -4px var(--glow); }
.seg button img, .seg button svg { width: 20px; height: 20px; }

.kv { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv b { font-family: var(--mono); font-weight: 600; }

/* ─── Home ─── */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 40px 0 10px; }
.hero h1 { font-family: var(--display); font-size: clamp(42px, 6.5vw, 76px); line-height: .98; letter-spacing: -.045em; margin: 18px 0; }
.hero h1 .shine {
  background: linear-gradient(90deg, #c4b5fd, #e879f9, #8b5cf6, #c4b5fd); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.hero-visual .orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(167, 139, 250, .25); animation: spin 40s linear infinite; }
.hero-visual .orbit.o2 { inset: 12%; animation-duration: 28s; animation-direction: reverse; border-style: solid; border-color: rgba(167, 139, 250, .12); }
.hero-visual .orbit i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--primary-3); box-shadow: 0 0 18px var(--primary-3); top: -6px; left: 50%; }
.hero-visual .orbit.o2 i { background: var(--accent); box-shadow: 0 0 18px var(--accent); top: auto; bottom: -6px; }
.hero-visual .hero-coin { position: absolute; inset: 22%; animation: float 5s ease-in-out infinite; perspective: 900px; }
.hero-visual .hero-coin .coin { animation: heroSpin 7s var(--ease) infinite; }
@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes heroSpin { 0%, 30% { transform: rotateY(0); } 50%, 80% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.stat { padding: 20px; }
.stat .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stat .value { font-family: var(--display); font-size: 28px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; }
.stat .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(139, 92, 246, .16); color: var(--primary-3); }
.stat .ico svg { width: 17px; height: 17px; }

.game-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px; padding: 26px; border-radius: 22px; border: 1px solid var(--border);
  background: var(--panel); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
  transform-style: preserve-3d;
}
.game-card:hover { border-color: var(--border-strong); box-shadow: 0 30px 60px -20px rgba(139, 92, 246, .5); }
.game-card .art { position: absolute; top: 18px; right: 18px; width: 140px; height: 140px; transition: transform .6s var(--ease); }
.game-card:hover .art { transform: scale(1.1) rotate(-6deg) translateZ(30px); }
.game-card .bg { position: absolute; inset: 0; z-index: -1; opacity: .9; }
.game-card h3 { font-family: var(--display); font-size: 28px; margin: 0 0 4px; letter-spacing: -.02em; position: relative; }
.game-card p { margin: 0 0 14px; color: var(--muted); position: relative; max-width: 260px; }
.game-card .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary-3); position: relative; }
.game-card .go svg { transition: transform .3s var(--ease); }
.game-card:hover .go svg { transform: translateX(5px); }
.game-card.cf .bg { background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, .45), transparent 60%); }
.game-card.mn .bg { background: radial-gradient(circle at 80% 20%, rgba(217, 70, 239, .4), transparent 60%); }
.game-card.iv .bg { background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, .45), transparent 60%); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 24px; }
.step .num { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; opacity: .9; }
.step h4 { margin: 12px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }
code.cmd { font-family: var(--mono); background: rgba(139, 92, 246, .14); border: 1px solid var(--border); padding: 2px 8px; border-radius: 7px; color: var(--primary-3); font-size: .92em; white-space: nowrap; }

/* Live-Feed */
.feed { width: 100%; border-collapse: collapse; }
.feed th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 600; padding: 0 12px 10px; }
.feed td { padding: 11px 12px; border-top: 1px solid var(--border); font-size: 14px; }
.feed td.r, .feed th.r { text-align: right; }
.feed tr.new { animation: slideIn .6s var(--ease); }
.feed tr.new td { animation: flash 1.6s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } }
@keyframes flash { from { background: rgba(139, 92, 246, .22); } }
.feed .player { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.feed .player img { width: 24px; height: 24px; border-radius: 6px; image-rendering: pixelated; }
.game-tag { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; color: var(--muted); }
.game-tag svg { width: 16px; height: 16px; color: var(--primary-3); }
.empty { text-align: center; padding: 30px; color: var(--dim); }

.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border: 0; }
.lb-row .rank { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(139, 92, 246, .14); color: var(--primary-3); }
.lb-row:nth-child(1) .rank { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3b2300; }
.lb-row:nth-child(2) .rank { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2937; }
.lb-row:nth-child(3) .rank { background: linear-gradient(135deg, #fdba74, #c2410c); color: #2a0e00; }
.lb-row img { width: 30px; height: 30px; border-radius: 8px; image-rendering: pixelated; }
.lb-row .name { flex: 1; font-weight: 500; }

.transparency { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.transparency .vs { font-family: var(--display); font-size: 22px; color: var(--dim); }
.meter { height: 10px; border-radius: 99px; background: rgba(8, 4, 20, .8); overflow: hidden; margin-top: 12px; border: 1px solid var(--border); }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width 1s var(--ease); box-shadow: 0 0 16px var(--primary); }

/* ─── Spiel-Layout ─── */
.game-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.controls { position: sticky; top: 90px; }
.stage { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.stage .stage-bg { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, .22), transparent 60%); pointer-events: none; transition: background .6s; }
.stage.win .stage-bg { background: radial-gradient(circle at 50% 45%, rgba(74, 222, 128, .22), transparent 60%); }
.stage.lose .stage-bg { background: radial-gradient(circle at 50% 45%, rgba(251, 113, 133, .2), transparent 60%); }
.potential { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin: 6px 0 18px; border-radius: 12px; background: rgba(139, 92, 246, .08); border: 1px dashed var(--border-strong); }
.potential span { color: var(--muted); font-size: 13px; }
.potential b { font-family: var(--mono); font-size: 17px; color: var(--win); }
.limits { font-size: 12px; color: var(--dim); margin-top: 14px; line-height: 1.6; }

/* ─── Münze ─── */
.coin-scene { perspective: 1100px; width: 260px; height: 260px; position: relative; }
.coin-toss { width: 100%; height: 100%; }
.coin-toss.tossing { animation: toss 2.4s var(--ease); }
@keyframes toss {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-140px) scale(1.15); }
  75% { transform: translateY(8px) scale(.98); }
  85% { transform: translateY(-12px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}
.coin { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 2.4s cubic-bezier(.15, .7, .15, 1); }
.coin .face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.coin .face svg { width: 100%; height: 100%; }
.coin .face.back { transform: rotateY(180deg); }
.coin-shadow { position: absolute; left: 15%; right: 15%; bottom: -46px; height: 22px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .55), transparent 70%); transition: transform .3s; }
.coin-toss.tossing + .coin-shadow { animation: shadow 2.4s var(--ease); }
@keyframes shadow { 35% { transform: scale(.55); opacity: .5; } }
.result-text { margin-top: 80px; font-family: var(--display); font-size: 30px; font-weight: 700; min-height: 44px; text-align: center; letter-spacing: -.02em; }
.result-text.show { animation: popIn .5s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(.7); } }
.history-dots { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; justify-content: center; min-height: 30px; }
.history-dots i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; animation: popIn .4s var(--ease); border: 2px solid; }
.history-dots i svg { width: 16px; height: 16px; }
.history-dots i.w { border-color: var(--win); background: rgba(74, 222, 128, .1); }
.history-dots i.l { border-color: var(--lose); background: rgba(251, 113, 133, .08); opacity: .75; }

/* ─── Mines ─── */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: min(100%, 520px); aspect-ratio: 1; position: relative; }
.mines-grid.shake { animation: shake .5s; }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-6px, 2px); }
  40%, 60% { transform: translate(6px, -1px); }
}
.tile {
  position: relative; border: 0; border-radius: 14px; cursor: pointer; padding: 0;
  background: linear-gradient(160deg, #2c1a5a, #1b1040);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -4px 0 rgba(0, 0, 0, .35), 0 6px 16px -6px rgba(0, 0, 0, .6);
  transition: transform .18s var(--ease), background .2s, box-shadow .2s;
  transform-style: preserve-3d;
}
.tile:not(:disabled):hover { transform: translateY(-3px); background: linear-gradient(160deg, #3b2577, #24154f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -4px 0 rgba(0, 0, 0, .35), 0 10px 26px -6px var(--glow); }
.tile:disabled { cursor: default; }
.tile.idle { opacity: .55; cursor: not-allowed; }
.tile .inner { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; }
.tile svg { width: 58%; height: 58%; }
.tile.gem { background: linear-gradient(160deg, rgba(139, 92, 246, .35), rgba(76, 29, 149, .4)); box-shadow: inset 0 0 0 2px rgba(196, 181, 253, .5), 0 0 30px -4px var(--glow); animation: flipIn .45s var(--ease); }
.tile.gem svg { animation: gemPop .5s var(--ease); filter: drop-shadow(0 0 10px rgba(196, 181, 253, .9)); }
.tile.bomb { background: linear-gradient(160deg, rgba(244, 63, 94, .45), rgba(127, 29, 29, .5)); box-shadow: inset 0 0 0 2px rgba(251, 113, 133, .7), 0 0 40px rgba(244, 63, 94, .6); animation: flipIn .3s var(--ease), boom .6s .2s; }
.tile.bomb svg { animation: gemPop .4s var(--ease); }
.tile.ghost { opacity: .38; animation: none; box-shadow: none; transform: scale(.94); }
.tile.ghost.bomb { background: linear-gradient(160deg, rgba(244, 63, 94, .25), rgba(127, 29, 29, .2)); }
.tile.ghost.gem { background: linear-gradient(160deg, rgba(139, 92, 246, .2), rgba(76, 29, 149, .2)); }
@keyframes flipIn { from { transform: rotateY(90deg) scale(.9); } }
@keyframes gemPop { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.2) rotate(6deg); } }
@keyframes boom { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .9); } 100% { box-shadow: 0 0 0 30px rgba(244, 63, 94, 0); } }
.mult-strip { display: flex; gap: 8px; overflow-x: auto; width: min(100%, 520px); margin-bottom: 18px; padding-bottom: 6px; scrollbar-width: thin; scroll-behavior: smooth; }
.mult-strip span { flex: none; padding: 6px 12px; border-radius: 9px; background: rgba(8, 4, 20, .6); border: 1px solid var(--border); font-family: var(--mono); font-size: 13px; color: var(--dim); transition: all .3s var(--ease); }
.mult-strip span.done { color: var(--primary-3); border-color: var(--border-strong); background: rgba(139, 92, 246, .12); }
.mult-strip span.next { color: #fff; background: var(--grad); border-color: transparent; transform: scale(1.06); box-shadow: 0 4px 16px -4px var(--glow); }
.mines-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.mines-overlay .box { padding: 20px 34px; border-radius: 18px; background: rgba(10, 6, 22, .85); border: 2px solid var(--win); text-align: center; backdrop-filter: blur(8px); animation: popIn .45s var(--ease); box-shadow: 0 0 60px rgba(74, 222, 128, .35); }
.mines-overlay .box b { display: block; font-family: var(--display); font-size: 34px; color: var(--win); }
.mines-overlay .box span { font-family: var(--mono); color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.chips button { padding: 7px 0; border-radius: 9px; border: 1px solid var(--border); background: rgba(8, 4, 20, .6); color: var(--muted); cursor: pointer; font-weight: 600; font-size: 13px; transition: all .15s; }
.chips button.on, .chips button:hover { color: #fff; border-color: var(--primary); background: rgba(139, 92, 246, .2); }
input[type=range] { width: 100%; accent-color: var(--primary); }

/* ─── Invest ─── */
.invest-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.big-number { font-family: var(--display); font-size: clamp(36px, 5vw, 54px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.chart-wrap { position: relative; height: 260px; margin-top: 18px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-tip { position: absolute; pointer-events: none; padding: 7px 10px; border-radius: 9px; background: var(--panel-solid); border: 1px solid var(--border-strong); font-size: 12px; font-family: var(--mono); white-space: nowrap; transform: translate(-50%, -120%); display: none; }
.change { font-family: var(--mono); font-size: 14px; padding: 3px 8px; border-radius: 7px; }
.change.up { color: var(--win); background: rgba(74, 222, 128, .1); }
.change.down { color: var(--lose); background: rgba(251, 113, 133, .1); }
.pos-card .pnl { font-family: var(--display); font-size: 30px; font-weight: 700; }
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 12px; padding: 10px 0; color: var(--muted); }
.info-list li svg { flex: none; width: 20px; height: 20px; color: var(--primary-3); margin-top: 2px; }
.info-list b { color: var(--text); }

/* ─── Tabellen / Wallet ─── */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 0 10px 10px; }
.table td { padding: 11px 10px; border-top: 1px solid var(--border); }
.table .r { text-align: right; }
.status { display: inline-flex; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.status.done { background: rgba(74, 222, 128, .12); color: var(--win); }
.status.pending, .status.processing { background: rgba(252, 211, 77, .12); color: var(--gold); }
.status.failed { background: rgba(251, 113, 133, .12); color: var(--lose); }
.status.review { background: rgba(232, 121, 249, .12); color: var(--accent); }
.copy-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: rgba(8, 4, 20, .75); border: 1px solid var(--border-strong); font-family: var(--mono); font-size: 18px; font-weight: 600;
  box-shadow: inset 0 0 30px rgba(139, 92, 246, .12);
}
.copy-box .cmd-text { color: var(--primary-3); overflow-wrap: anywhere; }
.copy-box .cmd-text em { font-style: normal; color: var(--text); }
.seed { font-family: var(--mono); font-size: 13px; word-break: break-all; padding: 10px 12px; border-radius: 10px; background: rgba(8, 4, 20, .6); border: 1px solid var(--border); color: var(--primary-3); }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-color: var(--primary); }

/* ─── Modal ─── */
.modal-bg { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(4, 2, 10, .7); backdrop-filter: blur(8px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(460px, 100%); padding: 30px; border-radius: 22px; background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 80px -20px var(--glow); position: relative; animation: modalIn .4s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.modal h2 { font-family: var(--display); margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.modal .close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(139, 92, 246, .12); color: var(--muted); cursor: pointer; font-size: 18px; }
.modal .close:hover { color: #fff; background: rgba(139, 92, 246, .3); }
.verify-wait { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border-radius: 12px; background: rgba(139, 92, 246, .08); color: var(--muted); font-size: 14px; }
.radar { width: 26px; height: 26px; border-radius: 50%; position: relative; flex: none; }
.radar::before, .radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary-3); animation: radar 1.8s ease-out infinite; }
.radar::after { animation-delay: .9s; }
@keyframes radar { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.success-check { width: 80px; height: 80px; margin: 10px auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(74, 222, 128, .12); border: 2px solid var(--win); animation: popIn .5s var(--ease); }
.success-check svg { width: 40px; height: 40px; color: var(--win); stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ─── Toasts ─── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 380px; padding: 14px 16px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); animation: toastIn .4s var(--ease); font-size: 14px; }
.toast.out { animation: toastOut .3s forwards; }
.toast .t-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(139, 92, 246, .16); color: var(--primary-3); }
.toast.error .t-ico { background: rgba(251, 113, 133, .15); color: var(--lose); }
.toast.success .t-ico { background: rgba(74, 222, 128, .15); color: var(--win); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ─── Responsive ─── */
@media (max-width: 1280px) {
  .shell, body.chat-hidden .shell { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .chat { position: fixed; right: 0; top: var(--top-h); bottom: 0; width: min(360px, 100vw); height: auto; z-index: 58; transform: translateX(105%); transition: transform .35s var(--ease); display: flex; }
  body.chat-open .chat { transform: none; }
  body.chat-hidden .chat { display: flex; }
  .chat-close { display: block; }
}
@media (max-width: 1100px) {
  .hero, .game-layout, .invest-top { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 320px; }
  .controls { position: static; order: 2; }
  .grid-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .stats-strip, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell, body.chat-hidden .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: var(--top-h); bottom: 0; height: auto; width: 260px; z-index: 58; background: rgba(10, 6, 22, .97); transform: translateX(-105%); transition: transform .35s var(--ease); }
  body.nav-open .sidebar { transform: none; }
  .burger { display: block; }
}
@media (max-width: 760px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .brand span { display: none; }
  .grid-2, .transparency { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
  .table { display: block; overflow-x: auto; }
  .input-wrap .mini { padding: 6px 8px; }
  .transparency .vs { text-align: center; }
  .stage { min-height: 420px; }
  .coin-scene { width: 200px; height: 200px; }
  .feed .hide-sm { display: none; }
  .balance-pill a { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
select.plain {
  width: 100%; padding: 11px 12px; border-radius: 12px; background: rgba(8, 4, 20, .7); border: 1px solid var(--border); outline: 0; color: var(--text); font: inherit; cursor: pointer;
}
select.plain:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
select.plain option { background: var(--panel-solid); }
