/* Casino Lokal – Anmeldekarte (js/seiten/anmeldekarte.js)
 * Gemeinsames Anmelde-Panel: auf der Startseite im Dialog, auf anmelden.html als Karte.
 * Gestaltung aus dem Startseiten-Entwurf „Neon-Boulevard“. Alle Klassen mit Präfix ak- und eigenen Variablen,
 * damit die Karte neben casino.css, start.css und anmelden.css bestehen kann (kein .btn, .input, .tab …).
 */
.ak {
  --ak-gold: #f6c453; --ak-gold-hi: #ffe7a3; --ak-gold-ink: #241300; --ak-cyan: #58ecff;
  --ak-text: #f5f0fd; --ak-muted: #bfb7d6; --ak-muted-2: #a39bbd;
  --ak-ok: #9ff5c6; --ak-fehler: #ffa8b3;
  --ak-f-body: "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ak-f-disp: Bahnschrift, "DIN Alternate", "Segoe UI", "Arial Narrow", sans-serif;
  --ak-f-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --ak-f-script: "Segoe Script", "Brush Script MT", cursive;
  --ak-ease: cubic-bezier(.22, .7, .2, 1);
  position: relative; box-sizing: border-box;
  padding: 30px clamp(20px, 5vw, 34px) 26px; border-radius: 26px;
  background: radial-gradient(120% 50% at 50% 0%, rgba(255, 190, 90, .16), transparent 60%), linear-gradient(180deg, #1d1236 0%, #0f0a22 100%);
  border: 1px solid rgba(255, 214, 140, .5);
  box-shadow: 0 0 0 7px rgba(255, 214, 140, .06), 0 50px 120px -30px #000, 0 0 90px -10px rgba(255, 170, 70, .35);
  color: var(--ak-text); font: 400 16px/1.6 var(--ak-f-body); text-align: left;
  -webkit-font-smoothing: antialiased;
  transition: box-shadow .5s var(--ak-ease), border-color .5s;
}
.ak *, .ak *::before, .ak *::after { box-sizing: border-box; }
:where(.ak) svg { display: block; }
:where(.ak) button, :where(.ak) input { font: inherit; color: inherit; }   /* ohne Gewicht: .ak-btn, .ak-tab … setzen eigene Schrift */
:where(.ak) :focus-visible { outline: 3px solid var(--ak-cyan); outline-offset: 3px; border-radius: 6px; }
.ak [hidden] { display: none !important; }
.ak-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Schließen (nur im Dialog) */
.ak-schliessen {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .25); cursor: pointer; color: #fff;
}
.ak-schliessen:hover { background: rgba(255, 255, 255, .1); }
.ak-schliessen svg { width: 16px; height: 16px; }
.ak-schliessen:focus-visible { border-radius: 50%; }

/* Kopf: Emblem, „Willkommen im“, Schriftzug */
.ak-kopf { text-align: center; }
.ak-emblem { width: 56px; height: 56px; margin: 0 auto; filter: drop-shadow(0 0 10px rgba(255, 190, 90, .45)); }
.ak-kicker { margin: 12px 0 0; font: 400 20px/1 var(--ak-f-script); color: var(--ak-gold-hi); }
.ak-titel { display: flex; flex-direction: column; align-items: center; margin: 10px 0 0; font-weight: 400; line-height: 1; }
.ak-wm-a {
  padding-left: .52em; font: 700 19px/1 var(--ak-f-disp); font-stretch: condensed; font-variation-settings: "wdth" 75;
  letter-spacing: .52em; text-transform: uppercase; color: #ffeef8;
  text-shadow: 0 0 2px rgba(255, 150, 205, .9), 0 0 10px rgba(255, 63, 164, .8), 0 0 22px rgba(255, 63, 164, .35);
}
.ak-wm-b {
  margin-top: 4px; padding-right: .08em; font: italic 400 42px/1 var(--ak-f-serif); letter-spacing: .01em;
  background: linear-gradient(180deg, #fff3c8 10%, #ffd36a 55%, #e39a2c 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Reiter */
.ak-reiter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 22px 0 20px; padding: 4px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08);
}
.ak-tab {
  height: 42px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 13px/1 var(--ak-f-disp); letter-spacing: .16em; text-transform: uppercase; color: var(--ak-muted);
  transition: background .3s, color .3s;
}
.ak-tab:hover { color: #fff; }
.ak-tab[aria-selected="true"] {
  color: var(--ak-gold-ink); background: linear-gradient(180deg, #fff0bf, #f2bd4e); box-shadow: 0 4px 16px -6px rgba(246, 180, 70, .8);
}
.ak-tab:focus-visible { border-radius: 999px; }

/* Felder */
.ak-label { display: block; margin: 0 0 7px; font: 600 12px/1 var(--ak-f-disp); letter-spacing: .2em; text-transform: uppercase; color: var(--ak-muted); }
.ak-feld { margin-bottom: 14px; }
.ak-input {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(4, 2, 12, .55); color: #fff; font: 400 16px/1 var(--ak-f-body);
  transition: border-color .25s, box-shadow .25s;
}
.ak-input::placeholder { color: rgba(191, 183, 214, .55); }
.ak-input:focus { outline: none; border-color: var(--ak-gold); box-shadow: 0 0 0 3px rgba(246, 196, 83, .25); }
.ak-input[aria-invalid="true"] { border-color: #ff7d8d; box-shadow: 0 0 0 3px rgba(255, 93, 108, .22); }
.ak-pw { position: relative; }
.ak-pw .ak-input { padding-right: 52px; }
.ak-pw-knopf {
  position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 9px; background: transparent; color: var(--ak-muted); cursor: pointer;
}
.ak-pw-knopf:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ak-pw-knopf svg { width: 20px; height: 20px; }
.ak-pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ak-caps { margin: 6px 0 0; font-size: 12.5px; line-height: 1.3; color: #ffd38a; }

/* Spieler an diesem PC */
.ak-spieler {
  display: flex; flex-wrap: wrap; gap: 8px; margin: -4px -4px 14px; padding: 4px; list-style: none;
  max-height: 100px; overflow-y: auto; scrollbar-width: thin;
}
.ak-spieler.ak-mehr {
  -webkit-mask: linear-gradient(180deg, #000 70%, transparent); mask: linear-gradient(180deg, #000 70%, transparent);
}
.ak-spieler li { min-width: 0; max-width: 100%; }
.ak-chip {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 5px 14px 5px 5px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); cursor: pointer;
  font-size: 14px; line-height: 1.6; transition: border-color .25s, background .25s;
}
.ak-chip:hover, .ak-chip[aria-pressed="true"] { border-color: var(--ak-gold); background: rgba(255, 214, 140, .1); }
.ak-chip:focus-visible { outline-offset: 1px; border-radius: 999px; }
.ak-chip .avatar {
  --av-size: 30px; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%;
  font: 700 14px/1 var(--ak-f-disp); color: #140a20; background: var(--av); box-shadow: none;
}
.ak-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-leer { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--ak-muted); }

/* Startguthaben (Reiter „Neuer Spieler“) */
.ak-bonus {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 214, 140, .3); background: linear-gradient(90deg, rgba(255, 200, 90, .14), rgba(255, 200, 90, .03));
}
.ak-bonus svg { width: 36px; height: 36px; flex: none; }
.ak-bonus p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ak-muted); }
.ak-bonus b { display: block; font: 700 18px/1.2 var(--ak-f-disp); color: var(--ak-gold-hi); }

/* Häkchen */
.ak-check { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; font-size: 14.5px; line-height: 1.4; color: var(--ak-muted); cursor: pointer; }
.ak-check input { width: 18px; height: 18px; flex: none; accent-color: var(--ak-gold); cursor: pointer; }
.ak-check input[aria-invalid="true"] { outline: 2px solid #ff7d8d; outline-offset: 2px; }

/* Knopf (wie .btn.btn-gold der Startseite) */
.ak-btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 1.7em;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 15px/1 var(--ak-f-disp); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--ak-gold-ink); background: linear-gradient(180deg, #fff2c4 0%, #ffd76c 36%, #eeab3d 70%, #cf8d24 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 0 rgba(110, 60, 0, .35), 0 0 0 1px rgba(120, 70, 0, .4), 0 12px 34px -10px rgba(246, 180, 70, .75);
  transition: transform .3s var(--ak-ease), box-shadow .3s var(--ak-ease), opacity .3s;
}
.ak-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(110, 60, 0, .35), 0 0 0 1px rgba(120, 70, 0, .4), 0 18px 44px -10px rgba(255, 190, 80, .95); }
.ak-btn:active { transform: translateY(0) scale(.98); }
.ak-btn:disabled { cursor: progress; transform: none; opacity: .72; }
.ak-btn:focus-visible { border-radius: 999px; }
.ak-btn-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Statuszeile, Fuß */
.ak-status { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-size: 13.5px; line-height: 1.45; color: var(--ak-ok); }
.ak-status.ak-ist-fehler { color: var(--ak-fehler); }
.ak-fuss { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--ak-muted-2); }
.ak-link {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ak-gold-hi);
  text-decoration: underline; text-decoration-color: rgba(255, 231, 163, .45); text-underline-offset: 3px;
}
.ak-link:hover { color: #fff; text-decoration-color: currentColor; }
.ak-fuss .ak-link { color: var(--ak-muted-2); }
.ak-fuss .ak-link:hover { color: var(--ak-gold-hi); }

/* Fehler: kurz wackeln · Erfolg: goldener Schimmer */
.ak.ak-wackeln { animation: akWackeln .42s var(--ak-ease); }
@keyframes akWackeln { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.ak.ak-erfolg {
  border-color: var(--ak-gold-hi);
  box-shadow: 0 0 0 7px rgba(255, 214, 140, .16), 0 50px 120px -30px #000, 0 0 140px -6px rgba(255, 190, 80, .8);
}
.ak.ak-erfolg .ak-btn { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(110, 60, 0, .35), 0 0 0 1px rgba(120, 70, 0, .4), 0 0 46px -4px rgba(255, 200, 90, 1); opacity: 1; }

@media (max-width: 640px) {
  .ak-pw-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ak, .ak * { transition-duration: .01ms !important; }
  .ak.ak-wackeln { animation: none; }
}
