/* Startbildschirm der App (Caligo Mobile). Wird nur in der App gezeigt (js/app-start.js). */
#app-start {
  position: fixed; inset: 0; z-index: 2147483000; box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--sat, 0px) + 1rem) calc(var(--sar, 0px) + 1rem) calc(var(--sab, 0px) + 1rem) calc(var(--sal, 0px) + 1rem);
  background: linear-gradient(rgba(7,8,15,.80), rgba(7,8,15,.93)), url("../assets/art/table_felt_dark.webp") center / cover no-repeat, #07080f;
  color: #ece8dc; font-family: 'Inter', system-ui, sans-serif; text-align: center;
}
#app-start * { box-sizing: border-box; }
#app-start .as-wrap { width: 100%; max-width: 420px; margin: auto; display: flex; flex-direction: column; gap: .9rem; }
#app-start .as-title { font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: clamp(2.2rem, 11vw, 3.4rem); letter-spacing: .28em; margin: 0; padding-left: .28em; color: #f3d596; text-shadow: 0 2px 18px rgba(0,0,0,.9), 0 0 30px rgba(230,182,85,.25); }
#app-start .as-sub { margin: -.5rem 0 .4rem; font-size: .8rem; letter-spacing: .45em; text-transform: uppercase; color: #b9a572; padding-left: .45em; }
#app-start .as-name { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .2rem 0 .6rem; min-height: 44px; }
#app-start .as-chip { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(230,182,85,.45);
  background: rgba(6,7,13,.55); color: #ece8dc; font: inherit; font-size: 1rem; cursor: pointer; min-height: 44px; }
#app-start .as-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
#app-start button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#app-start .as-btn { width: 100%; min-height: 54px; border-radius: 999px; border: 1px solid rgba(230,182,85,.5); background: rgba(6,7,13,.6); color: #f3d596; font-size: 1.05rem; font-weight: 600; padding: .7rem 1.2rem; }
#app-start .as-btn:active { transform: scale(.98); background: rgba(230,182,85,.18); }
#app-start .as-play { min-height: 62px; font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; color: #1a1205; background: linear-gradient(135deg, #f0be53, #b8860b); border-color: #ffdc8a; box-shadow: 0 6px 24px rgba(230,182,85,.28); }
#app-start .as-play:active { background: linear-gradient(135deg, #d9a843, #9b7009); }
#app-start .as-soon { margin-top: .6rem; font-size: .75rem; color: #8f8a7d; }
#app-start .as-h { font-family: 'Cinzel', Georgia, serif; font-size: 1.4rem; margin: 0 0 .2rem; color: #f3d596; letter-spacing: .06em; }
#app-start .as-p { margin: 0; color: #b9b4a6; font-size: .92rem; line-height: 1.45; }
#app-start input.as-input { width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid rgba(230,182,85,.55); background: rgba(6,7,13,.75); color: #fff; font-size: 1.15rem; padding: .6rem 1rem; text-align: center; outline: none; }
#app-start input.as-input:focus { border-color: #f3d596; box-shadow: 0 0 0 3px rgba(230,182,85,.25); }
#app-start .as-row { display: flex; gap: .6rem; } #app-start .as-row .as-btn { flex: 1; }
#app-start .as-err { min-height: 1.2em; font-size: .85rem; color: #ff9b9b; margin: 0; }
#app-start .as-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
#app-start .as-stat { padding: .65rem .3rem; border-radius: 12px; border: 1px solid rgba(230,182,85,.28); background: rgba(6,7,13,.55); }
#app-start .as-stat b { display: block; font-size: 1.5rem; color: #f3d596; line-height: 1.15; } #app-start .as-stat span { font-size: .72rem; color: #b9b4a6; }
#app-start .as-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; font-size: .82rem; color: #d8d3c4; }
#app-start .as-tables div { padding: .4rem; border-radius: 10px; background: rgba(255,255,255,.04); }
#app-start .as-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; text-align: left; }
#app-start .as-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem .75rem; border-radius: 10px; background: rgba(255,255,255,.05); font-size: .88rem; }
#app-start .as-list small { display: block; color: #9d9888; font-size: .74rem; }
#app-start .as-win { color: #f3d596; font-weight: 700; } #app-start .as-lose { color: #c9c5b8; }
#app-start .as-empty { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.04); color: #b9b4a6; font-size: .95rem; }
#app-start .as-danger { background: transparent; border-color: rgba(255,120,120,.4); color: #ff9b9b; min-height: 44px; font-size: .9rem; }
@media (max-height: 460px) {   /* Querformat am Handy: enger, Titel kleiner */
  #app-start .as-wrap { gap: .5rem; max-width: 520px; }
  #app-start .as-title { font-size: 1.8rem; } #app-start .as-sub { margin: -.3rem 0 0; } #app-start .as-play { min-height: 52px; }
  #app-start .as-name { margin: 0 0 .2rem; }
}

/* === Hauptseite mit unterer Leiste (13.11.2026), Entwurf: app_design/hauptseite_entwurf.html === */
#app-start.as-tabs { justify-content: flex-start; padding: 0; overflow: hidden; }
#app-start .as-app { width: 100%; max-width: 520px; height: 100%; margin: 0 auto; display: flex; flex-direction: column; }
#app-start .as-main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: .7rem; padding: calc(var(--sat, 0px) + .8rem) calc(var(--sar, 0px) + 1rem) 1rem calc(var(--sal, 0px) + 1rem); text-align: center; }
#app-start .as-nav { display: flex; flex: 0 0 auto; background: rgba(10,11,18,.98); border-top: 1px solid rgba(230,182,85,.25); padding-bottom: var(--sab, 0px); }
#app-start .as-tab { flex: 1; min-height: 60px; background: none; border: 0; color: #8f8a7d; font-size: .68rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; }
#app-start .as-tab .i { font-size: 1.3rem; }
#app-start .as-tab.on { color: #f3d596; }
#app-start .as-tab.on::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: #f0be53; }
#app-start .as-top { display: flex; align-items: center; gap: .6rem; text-align: left; }
#app-start .as-avatar { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; border: 1px solid rgba(230,182,85,.6); background: radial-gradient(#3a2d12, #120d05); color: #f3d596; font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.2rem; }
#app-start .as-avatar.big { width: 64px; height: 64px; font-size: 1.6rem; }
#app-start .as-who { line-height: 1.2; min-width: 0; }
#app-start .as-who b { display: block; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#app-start .as-who b.big { font-size: 1.3rem; }
#app-start .as-who span { font-size: .74rem; color: #9d9888; }
#app-start .as-play small { display: block; font-weight: 600; font-size: .7rem; letter-spacing: .03em; opacity: .8; }
#app-start .as-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
#app-start .as-tile { position: relative; min-height: 88px; padding: .7rem; border-radius: 14px; border: 1px solid rgba(230,182,85,.3); background: rgba(6,7,13,.6); color: #ece8dc; text-align: left; display: flex; flex-direction: column; gap: 2px; }
#app-start .as-tile .ic { font-size: 1.3rem; }
#app-start .as-tile b { font-size: .95rem; }
#app-start .as-tile span:last-child { font-size: .72rem; color: #9d9888; }
#app-start .as-tile.dim { opacity: .6; }
#app-start .as-tile:active { background: rgba(230,182,85,.14); }
#app-start .as-badge { position: absolute; top: 8px; right: 10px; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.12); color: #b9b4a6; border-radius: 6px; padding: 2px 6px; }
#app-start .as-soonbox { margin: auto; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
#app-start .as-soonbox .ic { font-size: 2.4rem; }
#app-start .as-card { text-align: left; padding: .8rem; border-radius: 14px; border: 1px solid rgba(230,182,85,.3); background: rgba(6,7,13,.6); }
#app-start .as-card b { color: #f3d596; }
#app-start .as-menu li { align-items: center; }
#app-start .as-link { background: none; border: 0; color: #f3d596; font-size: 1.4rem; min-width: 44px; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
#app-start .as-ver { margin: auto 0 0; font-size: .7rem; color: #6f6b60; }

/* Menue-Knopf im Spiel (App): fest links oben, die Kopfleiste laesst vorne Platz */
#btn-menu-home { position: fixed; z-index: 3000; left: calc(var(--sal, 0px) + 6px); top: calc(var(--sat, 0px) + 4px); width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.15rem; line-height: 1; padding: 0;
  border-radius: 50%; border: 1px solid rgba(230,182,85,.6); background: rgba(6,7,13,.85); color: #f3d596; }
body.app-menu .game-topbar { margin-left: calc(var(--sal, 0px) + 46px) !important; }

/* Menue-Blatt im Spiel (App), Entwurf: app_design/hauptseite_entwurf.html Reiter 5 */
#app-menu-sheet { position: fixed; inset: 0; z-index: 3100; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
#app-menu-sheet .ams-box { width: 100%; max-width: 520px; background: #12131b; border-top: 1px solid rgba(230,182,85,.5); border-radius: 22px 22px 0 0; padding: 1rem 1rem calc(var(--sab, 0px) + 1rem); display: flex; flex-direction: column; gap: .5rem; box-shadow: 0 -10px 30px rgba(0,0,0,.6); }
#app-menu-sheet .ams-title { margin: 0 0 .2rem; font-family: 'Cinzel', Georgia, serif; font-size: 1.15rem; color: #f3d596; letter-spacing: .06em; }
#app-menu-sheet .ams-item { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 56px; padding: .6rem .8rem; border-radius: 14px; border: 1px solid rgba(230,182,85,.3); background: rgba(6,7,13,.6); color: #ece8dc; font: inherit; text-align: left; cursor: pointer; }
#app-menu-sheet .ams-item:active { background: rgba(230,182,85,.16); }
#app-menu-sheet .ams-item .ic { font-size: 1.4rem; }
#app-menu-sheet .ams-item b { display: block; font-size: .95rem; }
#app-menu-sheet .ams-item small { display: block; font-size: .72rem; color: #9d9888; }
#app-menu-sheet #ams-leave b { color: #ff9b9b; }
@media (max-height: 460px) { #app-menu-sheet .ams-box { max-height: 100dvh; overflow-y: auto; } #app-menu-sheet .ams-item { min-height: 44px; } }

/* Muenz-Konto auf der Hauptseite (13.11.2026) */
#app-start .as-coinbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; }
#app-start .as-coinpill { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(230,182,85,.55); background: rgba(6,7,13,.6); color: #f3d596; font-size: 1rem; min-height: 44px; }
#app-start .as-daily { width: auto; min-height: 44px; padding: 0 1rem; font-size: .88rem; background: rgba(230,182,85,.14); }

/* Ambiente-Knopf auf dem Startbildschirm (13.11.2026) */
#app-start .as-sound { margin-left: auto; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(230,182,85,.55); background: rgba(6,7,13,.6); color: #f3d596; font-size: 1.25rem; line-height: 1; padding: 0; }
#app-start .as-sound.off { color: #8f8a7d; border-color: rgba(255,255,255,.18); }

/* Zurueck an den Tisch (13.11.2026) */
#app-start .as-table { position: relative; }
#app-start .as-back-table { min-height: 58px; font-size: 1.05rem; }
#app-start .as-back-table small { display: block; font-weight: 600; font-size: .7rem; opacity: .8; }
#app-start .as-forget { position: absolute; top: -8px; right: -4px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(6,7,13,.9); color: #d8d3c4; font-size: .9rem; line-height: 1; padding: 0; min-width: 44px; min-height: 44px; display: grid; place-items: center; transform: scale(.82); }

/* Online-Tische (13.11.2026) */
.mp-tablelist { display: flex; flex-direction: column; gap: .5rem; max-height: 46vh; overflow-y: auto; }
.mp-table-row, .mp-figuren { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 56px; padding: .6rem .8rem; border-radius: 14px; border: 1px solid rgba(230,182,85,.4); background: rgba(6,7,13,.6); color: #ece8dc; font: inherit; text-align: left; cursor: pointer; }
.mp-figuren { border-color: rgba(230, 182, 85, .75); background: linear-gradient(135deg, rgba(240, 190, 83, .18), rgba(200, 124, 31, .1)); margin-bottom: .6rem; }
.mp-figuren em { font-style: normal; font-weight: 700; color: #f0be53; margin-top: 2px; }
.mp-table-row.mp-laeuft { border-color: rgba(120, 170, 255, .55); }
.mp-table-row .mp-zu { font-style: normal; font-weight: 700; color: #9fc2ff; margin-top: 2px; }
.mp-sub { margin: .8rem 0 .4rem; font-size: .85rem; color: #b9b4a6; font-weight: 600; letter-spacing: .02em; }
.mp-table-row b, .mp-figuren b { color: #f3d596; } .mp-table-row span, .mp-figuren span { font-size: .78rem; color: #b9b4a6; }
.mp-vote { margin: .6rem 0; color: #f3d596; font-weight: 600; }

/* Freunde (13.11.2026) */
#app-start .as-fh { margin: .8rem 0 .2rem; font-family: 'Cinzel', serif; font-size: .95rem; color: #f3d596; text-align: left; letter-spacing: .05em; }
#app-start .as-fbtns { display: inline-flex; gap: .4rem; align-items: center; }
#app-start .as-fb { min-height: 44px; padding: 0 .8rem; border-radius: 999px; border: 1px solid rgba(230,182,85,.45); background: rgba(6,7,13,.6); color: #ece8dc; font: inherit; font-size: .82rem; }
#app-start .as-fb.ok { background: rgba(230,182,85,.2); color: #f3d596; }
#app-start .as-fb:disabled { opacity: .5; }
