/* Konto-UI (DOM über dem Canvas): Auth-Screen, Zahnrad, Sync-Punkt, Banner, Overlays. Look wie das Spiel: Glas + Neon. */
.acc-layer { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px;
  font: 600 15px system-ui, -apple-system, "Segoe UI", sans-serif; color: #ede9fe; touch-action: manipulation; }
.acc-layer.boot { background: radial-gradient(900px 700px at 50% 30%, rgba(124, 58, 237, 0.32), transparent 70%), #07050c; }
.acc-layer.dim { background: rgba(4, 3, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.acc-panel { width: 100%; max-width: 380px; padding: 26px 22px 22px; border-radius: 26px; position: relative;
  background: linear-gradient(180deg, rgba(40, 26, 72, 0.72), rgba(14, 10, 28, 0.86));
  border: 1.5px solid rgba(196, 181, 253, 0.38);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25) inset, 0 0 60px rgba(124, 58, 237, 0.35), 0 20px 60px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.acc-logo { text-align: center; font-weight: 900; font-size: 34px; letter-spacing: 0.22em; color: #f5f3ff; margin: 0 0 4px;
  text-shadow: 0 0 12px #a855f7, 0 0 32px rgba(168, 85, 247, 0.7); }
.acc-sub { text-align: center; color: #a59bc4; font-size: 13px; margin-bottom: 18px; }
.acc-tabs { display: flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(167, 139, 250, 0.25); margin-bottom: 14px; }
.acc-tabs button { flex: 1; border: 0; background: transparent; color: rgba(255, 255, 255, 0.55); font: 800 14px system-ui, sans-serif; letter-spacing: 0.06em; padding: 9px; border-radius: 999px; cursor: pointer; }
.acc-tabs button.on { color: #fff; background: rgba(124, 58, 237, 0.88); box-shadow: 0 0 18px rgba(139, 92, 246, 0.8); }
.acc-panel label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #a59bc4; margin: 12px 2px 5px; }
.acc-panel input { width: 100%; box-sizing: border-box; font: 600 16px system-ui, sans-serif; color: #fff; padding: 11px 13px; border-radius: 13px;
  background: rgba(0, 0, 0, 0.4); border: 1.5px solid rgba(167, 139, 250, 0.3); outline: none; -webkit-user-select: text; user-select: text; }
.acc-panel input:focus { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.28), 0 0 18px rgba(168, 85, 247, 0.35); }
.acc-panel input.code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.acc-btn { display: block; width: 100%; margin-top: 18px; padding: 13px; border-radius: 15px; cursor: pointer; font: 900 16px system-ui, sans-serif; letter-spacing: 0.08em; color: #fff;
  background: linear-gradient(180deg, #8b5cf6, #6d28d9); border: 1.5px solid rgba(221, 214, 254, 0.7); box-shadow: 0 0 22px rgba(139, 92, 246, 0.7); }
.acc-btn:active { transform: scale(0.98); }
.acc-btn:disabled { opacity: 0.55; }
.acc-btn.ghost { background: rgba(255, 255, 255, 0.05); border-color: rgba(167, 139, 250, 0.4); box-shadow: none; font-weight: 800; }
.acc-btn.danger { background: rgba(244, 63, 94, 0.16); border-color: rgba(244, 63, 94, 0.75); box-shadow: 0 0 16px rgba(244, 63, 94, 0.35); }
.acc-err { min-height: 20px; margin-top: 12px; text-align: center; color: #fb7185; font-size: 14px; font-weight: 700; }
.acc-note { margin: 0 0 6px; text-align: center; color: #fbbf24; font-size: 14px; }
.acc-msg { text-align: center; line-height: 1.5; margin: 6px 0 4px; }
.acc-msg small { display: block; color: #a59bc4; margin-top: 8px; font-weight: 500; }
.acc-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(167, 139, 250, 0.4); background: rgba(0, 0, 0, 0.3); color: #ddd6fe; font: 700 18px system-ui; cursor: pointer; }
.acc-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid rgba(167, 139, 250, 0.16); }
.acc-row span:first-child { color: #a59bc4; }
.acc-row b { color: #fff; text-align: right; }
.acc-link { display: block; text-align: center; margin-top: 14px; color: #67e8f9; font-weight: 700; text-decoration: none; }
/* Zahnrad + Sync-Punkt */
.acc-gear { position: fixed; z-index: 15; width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(14, 10, 28, 0.7); border: 1.5px solid rgba(196, 181, 253, 0.45); box-shadow: 0 0 14px rgba(124, 58, 237, 0.45);
  display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); touch-action: manipulation; }
.acc-gear svg { width: 24px; height: 24px; }
/* Konflikt-Banner (im laufenden Spiel, tippen zum Entscheiden). Offline zeigt nur das Icon. */
.acc-banner { position: fixed; z-index: 16; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8px); transform: translate(-50%, -150%); transition: transform 0.25s;
  padding: 8px 16px; border-radius: 999px; font: 800 13px system-ui, sans-serif; letter-spacing: 0.04em; color: #fff; white-space: nowrap; pointer-events: none;
  background: rgba(127, 29, 29, 0.85); border: 1.5px solid #f43f5e; box-shadow: 0 0 18px rgba(244, 63, 94, 0.55); }
.acc-banner.on { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .acc-banner, .acc-toast { transition: none; } }

/* ---- Offline-First: Status-Icon, Toast, Konflikt ---- */
.acc-layer { overflow: hidden; }
.acc-panel { max-height: calc(100dvh - 32px); overflow-y: auto; touch-action: pan-y; }
.acc-badge { flex: none; min-width: 20px; height: 20px; padding: 0 3px; box-sizing: border-box; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 1px;
  border: 2px solid #0b0818; font: 900 10px system-ui, sans-serif; color: #0b0818; line-height: 1; }
.acc-badge svg { width: 12px; height: 12px; flex: none; }
.acc-badge.ok { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.acc-badge.pending { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }
.acc-badge.offline { background: #94a3b8; }
.acc-badge.error { background: #f43f5e; color: #fff; box-shadow: 0 0 10px rgba(244, 63, 94, 0.9); }
.acc-badge.local { background: #64748b; color: #fff; }
.acc-toast { position: fixed; z-index: 30; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); transform: translate(-50%, 16px); opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 14px; text-align: center; font: 700 14px system-ui, sans-serif; color: #fff;
  background: rgba(24, 16, 48, 0.94); border: 1.5px solid rgba(196, 181, 253, 0.6); box-shadow: 0 0 22px rgba(124, 58, 237, 0.55); }
.acc-toast.on { opacity: 1; transform: translate(-50%, 0); }
.acc-banner { pointer-events: auto; cursor: pointer; border: 1.5px solid #f43f5e; font-family: system-ui, sans-serif; }
.acc-cf-title { text-align: center; font-weight: 900; font-size: 19px; color: #fff; margin: 0 0 4px; }
.acc-cf-sub { text-align: center; color: #a59bc4; font-size: 13px; line-height: 1.4; margin: 0 0 14px; font-weight: 500; }
.acc-cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acc-cf-card { display: flex; flex-direction: column; min-width: 0; padding: 12px 10px; border-radius: 16px; background: rgba(0, 0, 0, 0.32); border: 1.5px solid rgba(96, 165, 250, 0.65); box-shadow: 0 0 18px rgba(59, 130, 246, 0.28); }
.acc-cf-card.other { border-color: rgba(244, 114, 182, 0.7); box-shadow: 0 0 18px rgba(236, 72, 153, 0.28); }
.acc-cf-card h3 { margin: 0 0 8px; text-align: center; font-size: 13px; font-weight: 900; letter-spacing: 0.04em; color: #fff; }
.acc-cf-v { display: flex; justify-content: space-between; gap: 6px; padding: 4px 0; font-size: 12px; color: #a59bc4; }
.acc-cf-v b { color: #fff; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.acc-cf-coins { text-align: center; font-weight: 900; font-size: 22px; color: #fde68a; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.acc-cf-coins small { display: block; font-size: 11px; font-weight: 700; color: #a59bc4; letter-spacing: 0.04em; }
.acc-cf-card .acc-btn { margin-top: auto; padding: 10px 4px; font-size: 13px; letter-spacing: 0.02em; }
.acc-cf-card .acc-cf-spacer { height: 12px; }
/* Konto-Menü */
.acc-btn.small { margin-top: 10px; padding: 10px; font-size: 14px; }
.acc-row input { width: 62%; padding: 6px 9px; font-size: 14px; text-align: right; border-radius: 9px; }
.acc-row.tight { align-items: center; padding: 7px 2px; }
.acc-ok { min-height: 18px; margin-top: 8px; text-align: center; color: #6ee7b7; font-size: 13px; }
.acc-ver { padding: 10px 2px; border-bottom: 1px solid rgba(167, 139, 250, 0.16); }
.acc-ver .l1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #fff; font-weight: 800; }
.acc-ver .l2 { color: #a59bc4; font-size: 12px; font-weight: 500; margin: 3px 0 7px; }
.acc-ver button { font: 800 12px system-ui, sans-serif; color: #fff; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(167, 139, 250, 0.5); background: rgba(124, 58, 237, 0.3); cursor: pointer; }
.acc-ver button.sure { background: #be123c; border-color: #fda4af; }
.acc-skip { display: block; width: 100%; margin-top: 12px; background: none; border: 0; color: #a59bc4; font: 700 13px system-ui, sans-serif; text-decoration: underline; cursor: pointer; }

/* ---- Ton und Vibration ---- */
.acc-sound { margin-top: 12px; padding: 10px 12px 6px; border-radius: 16px; background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(167, 139, 250, 0.26); box-shadow: 0 0 18px rgba(124, 58, 237, 0.14) inset; }
.acc-sound-title { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #a59bc4; margin: 0 2px 2px; }
.acc-sound-row { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.acc-sound-row.between { justify-content: space-between; color: #ede9fe; font-size: 14px; }
.acc-mute { flex: none; width: 48px; height: 48px; padding: 11px; border-radius: 50%; cursor: pointer; color: #ede9fe; background: rgba(124, 58, 237, 0.3); border: 1.5px solid rgba(196, 181, 253, 0.6); box-shadow: 0 0 14px rgba(139, 92, 246, 0.5); touch-action: manipulation; }
.acc-mute svg { display: block; width: 100%; height: 100%; }
.acc-mute.off { color: #fda4af; background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.7); box-shadow: 0 0 12px rgba(244, 63, 94, 0.35); }
.acc-panel input.acc-range { flex: 1; width: auto; min-width: 0; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; cursor: pointer; touch-action: none; -webkit-appearance: none; appearance: none; --v: 70%; --c: #a855f7; }
.acc-panel input.acc-range.off { --c: #6b6480; }
.acc-range::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; border: 1px solid rgba(196, 181, 253, 0.32); background: linear-gradient(90deg, var(--c) var(--v), rgba(255, 255, 255, 0.08) var(--v)); box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
.acc-range::-moz-range-track { height: 10px; border-radius: 5px; border: 1px solid rgba(196, 181, 253, 0.32); background: linear-gradient(90deg, var(--c) var(--v), rgba(255, 255, 255, 0.08) var(--v)); box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
.acc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #f5f3ff; border: 3px solid var(--c); box-shadow: 0 0 14px rgba(168, 85, 247, 0.95); }
.acc-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #f5f3ff; border: 3px solid var(--c); box-shadow: 0 0 14px rgba(168, 85, 247, 0.95); }
.acc-panel input.acc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.4), 0 0 14px rgba(168, 85, 247, 0.95); }
.acc-pct { flex: none; width: 50px; text-align: right; font-weight: 800; font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }
.acc-switch { position: relative; flex: none; width: 60px; height: 34px; padding: 0; border-radius: 17px; cursor: pointer; background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(167, 139, 250, 0.4); transition: background 0.15s, box-shadow 0.15s; touch-action: manipulation; }
.acc-switch::before { content: ''; position: absolute; inset: -9px -4px; } /* Touchfläche über 48 px */
.acc-switch span { position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: #cbc5dc; transition: transform 0.15s, background 0.15s; }
.acc-switch[aria-checked="true"] { background: rgba(124, 58, 237, 0.9); border-color: rgba(221, 214, 254, 0.75); box-shadow: 0 0 14px rgba(139, 92, 246, 0.8); }
.acc-switch[aria-checked="true"] span { transform: translateX(26px); background: #fff; }
@media (prefers-reduced-motion: reduce) { .acc-switch, .acc-switch span { transition: none; } }

/* ---- Einstellungen: Neon auf Schwarz ---- */
.acc-alert { position: absolute; right: -2px; top: -2px; width: 13px; height: 13px; border-radius: 50%; background: #f43f5e; border: 2px solid #000; box-shadow: 0 0 8px rgba(244, 63, 94, 0.9); }
.acc-alert[hidden] { display: none; }
.acc-settings { max-width: 400px; background: #000; border: 1.5px solid #a855f7; box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.28) inset, 0 0 42px rgba(168, 85, 247, 0.5); -webkit-backdrop-filter: none; backdrop-filter: none; }
.acc-settings-title { margin: 0 44px 14px 2px; font-weight: 900; font-size: 22px; letter-spacing: 0.04em; color: #fff; text-shadow: 0 0 12px #a855f7, 0 0 28px rgba(168, 85, 247, 0.65); }
.acc-settings .acc-tabs { background: #000; border-color: rgba(168, 85, 247, 0.65); }
.acc-settings .acc-tabs button { font-size: 12.5px; padding: 11px 6px; }
.acc-settings .acc-tabs button.on { background: #a855f7; color: #000; box-shadow: 0 0 16px rgba(168, 85, 247, 0.95); }
.acc-settings .acc-sound { background: #000; border-color: rgba(168, 85, 247, 0.55); box-shadow: none; }
.acc-settings .acc-row { border-bottom-color: rgba(168, 85, 247, 0.28); }
.acc-settings .acc-row input { background: #000; border-color: rgba(168, 85, 247, 0.55); }
.acc-settings .acc-btn.ghost { background: #000; border-color: rgba(168, 85, 247, 0.65); }
.acc-status { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acc-seg { margin: 8px 0 8px; }
.acc-hint { font-size: 12px; font-weight: 500; line-height: 1.4; color: #a59bc4; margin: 0 2px 6px; }
/* ---- Low: keine teuren Compositor-Effekte über dem laufenden Canvas ---- */
html[data-quality="low"] .acc-layer.dim { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(2, 1, 6, 0.88); }
html[data-quality="low"] .acc-panel { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; background: #07040f; }
html[data-quality="low"] .acc-settings { background: #000; }
html[data-quality="low"] .acc-gear { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; background: rgba(14, 10, 28, 0.85); }
html[data-quality="low"] .acc-toast, html[data-quality="low"] .acc-banner, html[data-quality="low"] .acc-cf-card, html[data-quality="low"] .acc-btn, html[data-quality="low"] .acc-mute, html[data-quality="low"] .acc-range::-webkit-slider-runnable-track { box-shadow: none; }

/* ---- Was ist neu ---- */
.acc-news-list { display: flex; flex-direction: column; gap: 12px; }
.acc-news-entry { padding: 12px 14px; border-radius: 16px; background: #000; border: 1px solid rgba(168, 85, 247, 0.55); }
.acc-news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.acc-news-head b { color: #fff; font-size: 16px; font-weight: 900; }
.acc-news-head span { flex: none; color: #c4b5fd; font-size: 12px; font-weight: 700; }
.acc-news-entry ul { margin: 0; padding-left: 18px; color: #ede9fe; font-size: 14px; font-weight: 500; line-height: 1.45; }
@media (max-width: 390px) { .acc-banner { left: calc(50% + 28px); padding: 8px 10px; font-size: 12px; } } /* frei vom Zahnrad oben links */
.acc-news-entry li + li { margin-top: 6px; }

/* Was ist neu: Seiten (Boss-Update). Neon auf Schwarz wie die Einstellungen; Seitenwechsel nur per transform/opacity (High), Low hart. */
.acc-news-pagewrap { min-height: 200px; overflow: hidden; touch-action: pan-y; }
.acc-news-page { padding: 16px 16px 14px; border-radius: 16px; background: #000; border: 1px solid rgba(168, 85, 247, 0.6); }
html[data-quality="high"] .acc-news-page { transition: transform 0.22s ease-out, opacity 0.22s ease-out; }
.acc-news-page.from-right { transform: translateX(40px); opacity: 0; }
.acc-news-page.from-left { transform: translateX(-40px); opacity: 0; }
.acc-news-ptitle { color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 10px; text-shadow: 0 0 10px rgba(168, 85, 247, 0.6); }
html[data-quality="low"] .acc-news-ptitle { text-shadow: none; }
.acc-news-page ul { margin: 0; padding-left: 18px; color: #ede9fe; font-size: 15px; font-weight: 500; line-height: 1.5; }
.acc-news-page li + li { margin-top: 8px; }
.acc-news-dots { display: flex; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.acc-news-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(196, 181, 253, 0.3); }
.acc-news-dots span.on { background: #c4b5fd; }
