#gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px;
background: #140a0e; transition: opacity .5s ease; }
.gate-bg { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 2s ease; }
.gate-bg.an { opacity: 1; }
#gate.weg { opacity: 0; pointer-events: none; }
#gate[hidden] { display: none; }
#gate.laedt .gate-box { visibility: hidden; }
#gate::before { content: ""; position: absolute; inset: 0; z-index: 1;
background: radial-gradient(ellipse at 50% 45%, rgba(20, 8, 14, .25), rgba(20, 8, 14, .82) 75%),
linear-gradient(180deg, rgba(20, 8, 14, .2), rgba(20, 8, 14, .7)); }
.gate-box { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; width: min(560px, 100%); text-align: center; }
.gate-logo { width: min(520px, calc(92 * var(--vw1))); height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .7)); animation: gate-schweben 4s ease-in-out infinite; }
@keyframes gate-schweben { 50% { transform: translateY(-6px); } }
.gate-tag { margin: 0; color: #ffe2c4; font-size: 19px; text-shadow: 0 2px 6px #000; }
.gate-badge { display: inline-block; padding: 3px 12px; border-radius: 99px; background: rgba(255, 106, 26, .2); border: 1px solid rgba(255, 160, 90, .55);
color: #ffc796; font: 600 14px "Rajdhani", sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.gate-form { display: flex; gap: 10px; width: min(440px, 100%); }
.gate-form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25);
background: rgba(20, 10, 14, .75); color: #fff; font: 600 20px "Rajdhani", sans-serif; letter-spacing: 2px; text-align: center; text-transform: uppercase; }
.gate-form input:focus { outline: 2px solid #ff8a3d; }
.gate-form button { flex: none; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer; color: #fff;
background: linear-gradient(180deg, #ff8a3d, #e0531a); font: 600 18px "Rajdhani", sans-serif; box-shadow: 0 3px 0 #8f2e0a; }
.gate-form button:disabled { opacity: .6; cursor: wait; }
.gate-err { min-height: 1.3em; margin: 0; color: #ff9a8a; text-shadow: 0 1px 3px #000; }
.gate-form.wackeln { animation: gate-wackeln .35s; }
@keyframes gate-wackeln { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.recht-links { position: fixed; left: 0; right: 0; bottom: 8px; z-index: 5; text-align: center; font-size: 14px; }
#gate .recht-links { z-index: 2; }
.recht-links a { color: rgba(255, 235, 215, .75); text-decoration: none; margin: 0 8px; text-shadow: 0 1px 3px #000; }
.recht-links a:hover { color: #fff; text-decoration: underline; }
.speicher-hinweis { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 400; width: min(620px, calc(100% - 32px));
display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 10px 16px; font-size: 14px; line-height: 1.35;
color: #f3e6d6; background: rgba(30, 16, 12, .92); border: 1px solid rgba(255, 200, 120, .35); border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.speicher-hinweis[hidden] { display: none; }
.speicher-hinweis span { flex: 1 1 260px; }
.speicher-hinweis a { color: #ffc878; }
.speicher-hinweis button { padding: 6px 16px; font: inherit; font-weight: 700; color: #1a0d05; background: #ffb347; border: 0; border-radius: 6px; cursor: pointer; }
.speicher-hinweis button:hover { filter: brightness(1.1); }
@media (max-height: 500px) { .speicher-hinweis { bottom: 30px; font-size: 12px; padding: 7px 12px; } }
.lang-wahl { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255, 235, 215, .3); color: rgba(255, 235, 215, .75); text-shadow: 0 1px 3px #000; }
.lang-wahl a { margin: 0 0 0 8px; }
.lang-wahl a.on { color: #ffd36b; font-weight: 700; pointer-events: none; }
#game:not(.hidden) ~ .recht-links { display: none; }
@media (min-width: 1400px) and (min-height: 820px) {
#game:not(.hidden) ~ .recht-links { display: block; bottom: auto; top: calc(var(--ft) + var(--fh) + (var(--ft) - 18px) / 2); line-height: 18px; }
}
@media (max-height: 430px) {
.gate-box { gap: 8px; }
.gate-logo { width: min(380px, calc(70 * var(--vw1))); }
.gate-tag { font-size: 16px; }
}