/* Startseite / Lobby */
/* Home / Lobby */
.home { gap: 16px; overflow-y: auto; }
.profile { display: flex; gap: 10px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #0b0b12; display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.profile b { display: block; font-size: 15px; }
.profile small { color: var(--muted); font-size: 12px; font-weight: 600; }
.xpbar { width: 110px; height: 5px; border-radius: 3px; background: #ffffff22; margin-top: 4px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.wallet { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
.wallet > small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; font-size: 12px; }
.wallet .big { display: flex; align-items: center; gap: 12px; font-size: 46px; font-weight: 900; font-variant-numeric: tabular-nums; }
.chip.mini { width: 40px; height: 40px; cursor: default; flex: none; }
.wallet .btn { flex: none; height: 46px; width: 100%; font-size: 14px; margin-top: 4px; }
.sec { margin: 4px 0 -6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.tables { display: flex; flex-direction: column; gap: 10px; }
.table-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.table-opt.sel { border-color: var(--accent); }
.table-opt:disabled { opacity: .45; cursor: default; }
.table-opt b { display: block; font-size: 16px; }
.table-opt small { color: var(--muted); font-size: 13px; }
.table-opt .stake { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.play { flex: none; height: 60px; font-size: 18px; margin-top: auto; }

/* Wischbare Seiten: Lobby | Perk-Karten */
.pager { display: flex; height: 100%; max-width: var(--col); margin: 0 auto; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.pager > .app { flex: 0 0 100%; max-width: none; margin: 0; padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); /* Platz für die Pager-Punkte */ scroll-snap-align: start; scroll-snap-stop: always; }
.dots { position: fixed; left: 50%; bottom: max(4px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 10px; border-radius: 999px; background: #000000aa; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 5; }
.dots.show { opacity: 1; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff55; transition: background .2s; }
.dots i.on { background: #fff; }

/* KI-Gegner-Auswahl */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.seg button { flex: 1; height: 40px; border: none; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.seg button.sel { background: var(--accent); color: #0b0b12; }
.hint { margin-top: -8px; color: var(--muted); font-size: 13px; }

/* Unsichtbare Nachbarseiten im Wisch-Pager nicht zeichnen (spart viel Arbeit beim Wischen) */
/* Nachbarseiten bleiben gezeichnet (sonst müssen sie beim schnellen Wischen erst aufgebaut werden und springen).
   Gespart wird stattdessen: Animationen auf Seiten, die ganz außerhalb liegen, pausieren (Klasse .off per IntersectionObserver). */
.pager > .app { contain: layout paint; }
.pager > .app.off, .pager > .app.off * { animation-play-state: paused !important; }
.pager { overflow-anchor: none; }
#aiBox .sec { display: block; margin-bottom: 8px; } /* Label nicht unter dem Rahmen der Auswahl */
