/* flippingreality Kosmos – Kontoleiste, Anmeldung, Figur-Editor. Unabhängig von den Spiel-Stilen (Präfix k-). */
.k-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e2d9c8; background: #fffdf8; color: #1f2430; border-radius: 999px;
  padding: 3px 12px 3px 4px; cursor: pointer; font: 600 14px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; white-space: nowrap; }
.k-chip:hover { border-color: #1f2430; }
.k-chip .k-fig { width: 26px; height: 39px; margin: -6px 0 -4px; }
.k-chip .k-coins { color: #b7791f; }
.k-chip .k-lv { font-size: 11px; color: #6b6f7a; font-weight: 700; }
.k-chip.k-gast { padding: 8px 14px; background: #1f2430; color: #fff; border-color: #1f2430; }
.k-float { position: fixed; top: 10px; right: 10px; z-index: 40; }
.k-fig { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
@media (max-width: 480px) { .k-chip .k-name, .k-chip .k-lv { display: none; } .k-chip { padding-right: 9px; } }

.k-veil { position: fixed; inset: 0; background: rgba(20, 22, 30, .5); display: grid; place-items: center; padding: 14px; z-index: 1000;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1f2430; }
.k-dlg { background: #fffdf8; border-radius: 18px; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.3); position: relative; }
.k-dlg.k-wide { max-width: 680px; }
.k-dlg h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.02em; }
.k-x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ece5d7; cursor: pointer; font-size: 16px; color: #1f2430; }
.k-form { display: grid; gap: 10px; }
.k-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.k-form label.k-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.k-form label.k-check input { margin-top: 3px; width: 18px; height: 18px; }
.k-form input[type=text], .k-form input[type=password], .k-form input[type=email] { font: inherit; padding: 11px 13px; border-radius: 10px; border: 2px solid #e2d9c8; background: #fff; color: inherit; }
.k-form input:focus { outline: none; border-color: #1f2430; }
.k-form small, .k-note { color: #6b6f7a; font-size: 13px; font-weight: 500; }
.k-btn { border: 0; border-radius: 999px; padding: 12px 20px; font: 700 15px system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; background: #1f2430; color: #fff; }
.k-btn.k-alt { background: #ece5d7; color: #1f2430; }
.k-btn.k-gold { background: #e0a526; color: #1f2430; }
.k-btn:disabled { opacity: .45; cursor: default; }
.k-link { background: none; border: 0; padding: 0; color: #1f2430; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.k-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 12px; }
.k-err { color: #c0392b; font-size: 14px; font-weight: 600; margin: 0; }
.k-ok { color: #1f7a5a; font-size: 14px; font-weight: 600; margin: 0; }
.k-err:empty, .k-ok:empty { display: none; }
.k-head { display: flex; gap: 14px; align-items: center; }
.k-head .k-fig { width: 64px; height: 96px; }
.k-head b { font-size: 20px; display: block; }
.k-bar { height: 10px; background: #ece5d7; border-radius: 5px; overflow: hidden; margin: 6px 0 2px; }
.k-bar i { display: block; height: 100%; background: #e0a526; }
.k-stat { display: flex; gap: 14px; font-weight: 700; margin-top: 4px; }
.k-menu { display: grid; gap: 8px; margin-top: 16px; }
.k-menu a, .k-menu button { display: block; text-align: center; text-decoration: none; }

/* Figur-Editor */
.k-ed { display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.k-ed-prev { display: grid; justify-items: center; align-content: start; gap: 8px; background: #ece5d7; border-radius: 14px; padding: 14px 8px; }
.k-ed-prev .k-fig { width: 112px; height: 168px; }
.k-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.k-tabs button { border: 1px solid #e2d9c8; background: #fff; border-radius: 999px; padding: 6px 11px; cursor: pointer; font: 600 13px system-ui, sans-serif; color: #1f2430; }
.k-tabs button.on { background: #1f2430; color: #fff; border-color: #1f2430; }
.k-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; max-height: 330px; overflow: auto; padding: 2px; }
.k-tile { border: 2px solid #e2d9c8; background: #fff; border-radius: 12px; padding: 6px 2px 4px; cursor: pointer; display: grid; justify-items: center; gap: 2px; font: 600 11px system-ui, sans-serif; color: #1f2430; }
.k-tile .k-fig { width: 40px; height: 60px; }
.k-tile.on { border-color: #1f2430; box-shadow: 0 0 0 2px #1f2430 inset; }
.k-tile.k-preis { color: #b7791f; }
.k-tile:disabled { opacity: .45; cursor: default; }
@media (max-width: 560px) { .k-ed { grid-template-columns: 1fr; } .k-ed-prev { grid-template-columns: auto 1fr; justify-items: start; align-items: center; } .k-ed-prev .k-fig { width: 64px; height: 96px; } }

/* Münz-Meldung */
.k-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f2430; color: #fff; padding: 12px 18px; border-radius: 14px;
  font: 700 15px system-ui, sans-serif; z-index: 1100; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: center; animation: k-up .35s both; max-width: 92vw; }
.k-toast .k-btn { padding: 7px 12px; font-size: 13px; }
@keyframes k-up { from { transform: translate(-50%, 30px); opacity: 0; } }
.k-blist { display: grid; gap: 4px; }
.k-blist div { display: grid; grid-template-columns: 28px 32px 1fr auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 10px; }
.k-blist div.ich { background: #fff4d6; }
.k-blist .k-fig { width: 24px; height: 36px; }
.k-blist small { color: #6b6f7a; }

/* Spielkit: Upgrade-Shop, Touch-Tasten, Joystick */
.sk-shop { display: grid; gap: 8px; margin-top: 10px; }
.sk-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; text-align: left; border: 2px solid #e2d9c8; background: #fff; border-radius: 12px; padding: 10px; cursor: pointer; font: 14px system-ui, sans-serif; color: #1f2430; }
.sk-item:hover:not(:disabled) { border-color: #1f2430; }
.sk-item:disabled { cursor: default; }
.sk-item.has { border-color: #1f9e89; background: #effaf6; }
.sk-item .sk-i { font-size: 24px; text-align: center; }
.sk-item small { display: block; color: #6b6f7a; font-size: 12px; margin-top: 2px; }
.sk-item em { font-style: normal; font-weight: 700; color: #b7791f; white-space: nowrap; }
.sk-item.has em { color: #1f9e89; }
/* Mehrspieler-Fenster */
.ms-box { display: grid; gap: 12px; margin-top: 8px; }
.ms-wahl { display: grid; gap: 10px; }
.ms-oder { text-align: center; color: #6b6f7a; font-size: 13px; }
.ms-code { display: flex; gap: 8px; }
.ms-code input { flex: 1; min-width: 0; font: 700 22px ui-monospace, Consolas, monospace; letter-spacing: 6px; text-transform: uppercase; text-align: center; border: 2px solid #e2d9c8; border-radius: 12px; padding: 8px; }
.ms-raum { text-align: center; background: #f7f2e8; border-radius: 14px; padding: 12px; }
.ms-raum span { display: block; font-size: 12px; color: #6b6f7a; text-transform: uppercase; letter-spacing: .08em; }
.ms-raum b { display: block; font: 800 34px ui-monospace, Consolas, monospace; letter-spacing: 8px; color: #1f2430; }
.ms-raum small { color: #6b6f7a; }
.ms-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ms-liste li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e2d9c8; border-radius: 10px; padding: 6px 10px; font-weight: 600; }
.ms-liste em { font-style: normal; font-size: 11px; background: #ece5d7; border-radius: 99px; padding: 2px 8px; margin-left: auto; }
.ms-liste em + em { margin-left: 4px; }
.ms-status { margin: 0; text-align: center; color: #6b6f7a; font-size: 14px; }
.ms-status:empty { display: none; }
.sk-item.frage { border-color: #b7791f; background: #fff8e8; }
.sk-item.frage em { white-space: normal; max-width: 130px; text-align: right; font-size: 13px; }
.sk-pad { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; user-select: none; -webkit-user-select: none; touch-action: none; }
.sk-grp { display: flex; gap: 10px; }
.sk-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(31,36,48,.85); color: #fff; font: 700 24px system-ui, sans-serif; touch-action: none; -webkit-tap-highlight-color: transparent; }
.sk-btn.on { background: #e0a526; color: #1f2430; transform: scale(.94); }
.sk-stick { position: relative; width: 130px; height: 130px; border-radius: 50%; background: rgba(31,36,48,.18); border: 2px solid rgba(31,36,48,.35); touch-action: none; flex: none; }
.sk-stick i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; border-radius: 50%; background: rgba(31,36,48,.85); transform: translate(-50%, -50%); }
