onlinemodus fix failed

This commit is contained in:
2026-11-19 00:55:39 +01:00
parent 64c5b65543
commit 347701d66f
10 changed files with 414 additions and 53 deletions

View File

@@ -84,8 +84,8 @@
input:focus { outline: none; border-color: var(--accent); }
/* menus fade in once per screen (#overlay.enter is removed again, so live lists do not flicker) */
@keyframes cardIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
#overlay.enter > * { animation: cardIn .14s ease-out; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.975); } to { opacity: 1; transform: none; } }
#overlay.enter > * { animation: cardIn .2s cubic-bezier(.2,.7,.2,1) both; will-change: transform, opacity; }
.tab, .item, .fitted .frow, .rroom, .prow { transition: border-color .1s, background-color .1s, transform .1s; }
@media (hover: hover) { .item:hover { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
@@ -150,10 +150,17 @@
background: linear-gradient(90deg, rgba(4,5,8,.93) 0%, rgba(4,5,8,.8) 30%, rgba(4,5,8,0) 62%); }
.tpanel { width: 420px; padding: 0 20px 0 44px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.tlogoimg { width: 100%; max-height: 170px; object-fit: contain; object-position: left center;
filter: drop-shadow(0 6px 18px #000); animation: logoglow 3.6s ease-in-out infinite; }
@keyframes logoglow { 50% { filter: drop-shadow(0 6px 18px #000) drop-shadow(0 0 14px rgba(255,122,26,.45)); } }
transform-origin: left center; will-change: transform, filter;
filter: drop-shadow(0 6px 18px #000); animation: logoglow 3.6s ease-in-out infinite, logofloat 5s ease-in-out infinite, logoin .7s cubic-bezier(.2,1.3,.3,1) both; }
@keyframes logoglow { 50% { filter: drop-shadow(0 6px 18px #000) drop-shadow(0 0 16px rgba(255,122,26,.55)); } }
/* gentle idle motion: slow bob + slight tilt + breath (small amplitude, comfort-safe) */
@keyframes logofloat { 0%, 100% { transform: translateY(0) rotate(-0.6deg) scale(1); } 50% { transform: translateY(-7px) rotate(0.6deg) scale(1.02); } }
@keyframes logoin { 0% { opacity: 0; transform: translateY(18px) scale(.86); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.title .big { font: 62px var(--head); letter-spacing: .05em; color: var(--accent); line-height: .98;
text-shadow: 0 5px 0 #5a2600, 0 0 40px rgba(255,122,26,.5); }
transform-origin: left center; will-change: transform;
text-shadow: 0 5px 0 #5a2600, 0 0 40px rgba(255,122,26,.5);
animation: logofloat 5s ease-in-out infinite, bigglow 3.6s ease-in-out infinite, logoin .7s cubic-bezier(.2,1.3,.3,1) both; }
@keyframes bigglow { 50% { text-shadow: 0 5px 0 #5a2600, 0 0 64px rgba(255,122,26,.85); } }
.title .tag { color: #c9cfdc; margin: 0; text-shadow: 0 2px 4px #000; }
.hazbar { height: 5px; border-radius: 3px; background: var(--hazard); opacity: .9; }
.tmenu { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
@@ -422,6 +429,28 @@
.achrow .an { font-weight: 700; }
.achrow .ad { font-size: 11.5px; color: var(--dim); font-weight: 400; }
.achrow .am { font-size: 16px; text-align: center; }
/* missions page */
.misslist { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; text-align: left; }
.missrow { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; background: var(--panel2);
border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.missrow.done { border-color: var(--good); }
.missrow .mm { font-size: 18px; text-align: center; }
.missrow .mn { font-weight: 700; font-size: 13px; }
.missrow .md { font-size: 11.5px; color: var(--dim); margin: 1px 0 4px; }
.missrow .mi .bar { height: 7px; }
.missrow .mr { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: 12px; white-space: nowrap; }
.missrow .mp { font-variant-numeric: tabular-nums; color: var(--dim); font-size: 11px; }
#bMissions { position: relative; }
#bMissions.alert::after { content: ''; position: absolute; top: 3px; right: 5px; width: 7px; height: 7px; border-radius: 50%;
background: var(--accent); box-shadow: 0 0 6px var(--accent); }
/* legal pages (Impressum / Datenschutz) */
.legalseg { margin: 6px auto 10px; max-width: 360px; }
.legaltext { max-height: 48vh; overflow: auto; text-align: left; font-size: 13px; line-height: 1.5; color: var(--text);
background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.legaltext p { margin: 0 0 9px; color: inherit; }
.legaltext b { color: var(--accent); }
.pgrid .sw.locked { cursor: not-allowed; opacity: .55; }
.pgrid .sw .lk { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; text-shadow: 0 1px 2px #000; }
/* paint tab: compact colour chips (must fit without scrolling) */
#shop.paintmode #tabs, #shop.paintmode #detail, #shop.paintmode #fittedwrap { display: none !important; }
@@ -508,6 +537,8 @@
.rroom .cnt.live { color: var(--good); font-weight: 700; }
.rroom.on { background: var(--accent); color: #1a0c02; border-color: var(--accent); font-weight: 700; }
.rroom.on .cnt { color: #1a0c02; }
.rroom.joined:not(.on) { border-color: var(--accent); }
.rroom .rhere { font-size: 10px; }
.lobbyRh { display: flex; align-items: center; gap: 8px; font: 18px var(--head); letter-spacing: .03em; margin-bottom: 8px; }
.lobbyRh .grow { flex: 1; }
.lobbyRh .flagpick { font: 12px "Segoe UI", sans-serif; color: var(--dim); display: flex; gap: 6px; align-items: center; }
@@ -728,6 +759,7 @@
<button id="bGMenu" data-i18n="menu">Menu</button>
<button id="bGMode">Kampagne</button>
<button id="bRankG" style="display:none">🏆</button>
<button id="bMissions" style="display:none">🎯</button>
<button id="bTrain" data-i18n="training">Training</button>
<button class="primary" id="bLeague">League</button>
</div>
@@ -791,6 +823,7 @@
<script src="net.js"></script>
<script src="cloudsave.js"></script>
<script src="ranking.js"></script>
<script src="missions.js"></script>
<script src="lobby.js"></script>
<script src="looks.js"></script>
<script src="render3d.js"></script>