/* Miethai – Gestaltung. Farbenfroh und plastisch: leicht gekipptes 3D-Brett, gerenderte Spielzeug-Figuren,
   Knöpfe und Karten mit Tiefe. Alle Maße im Brett hängen an dessen Breite (cqw), damit es auf jedem Gerät passt. */
@font-face { font-family: Fredoka; font-weight: 400; font-display: swap; src: url(/assets/fonts/fredoka-400.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 500; font-display: swap; src: url(/assets/fonts/fredoka-500.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/assets/fonts/fredoka-600.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(/assets/fonts/fredoka-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-condensed-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Lilita One'; font-weight: 400; font-display: swap; src: url(/assets/fonts/lilita-one-400.woff2) format('woff2'); }
@font-face { font-family: Anton; font-weight: 400; font-display: swap; src: url(/assets/fonts/anton-400.woff2) format('woff2'); }

:root {
  --himmel-1: #3a5cf0; --himmel-2: #6a4df2; --himmel-3: #9a4fe8;
  --tinte: #231d4f; --tinte-2: #5b5685; --weiss: #ffffff; --wolke: #f3f1ff; --linie: #e4e0fa;
  --gelb: #ffcf2e; --gelb-2: #ffab1a; --gelb-3: #d98600;
  --blau: #4aa3ff; --blau-2: #2f7df6; --blau-3: #1b55c4;
  --rot: #ff7080; --rot-2: #f43f55; --rot-3: #b81f38;
  --gruen: #55e094; --gruen-2: #1fb866; --gruen-3: #108446;
  --lila: #a66bff;
  --text: Fredoka, system-ui, sans-serif; --eng: 'Barlow Condensed', 'Arial Narrow', sans-serif; --dick: 'Lilita One', Fredoka, sans-serif;
  --feder: cubic-bezier(.3, 1.6, .5, 1); --weich: cubic-bezier(.2, .8, .2, 1);
  --kipp: 24deg;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0 !important; padding: 0 !important; border: 0 !important; min-height: 100%; overflow-x: clip; }   /* !important: Browser-Erweiterungen schieben sonst Ränder hinein */
body { font-family: var(--text); font-size: 16px; line-height: 1.4; color: var(--tinte); min-height: 100dvh;
  background: radial-gradient(900px 600px at 12% 8%, rgba(120, 220, 255, .55), transparent 60%), radial-gradient(800px 700px at 92% 90%, rgba(255, 120, 200, .42), transparent 60%), linear-gradient(160deg, var(--himmel-1), var(--himmel-2) 55%, var(--himmel-3));
  background-attachment: fixed; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(35, 29, 79, .55); }
h2 { font-family: var(--dick); font-weight: 400; font-size: 1.45rem; line-height: 1.1; margin: 0 0 .55rem; }
h3 { font-weight: 600; font-size: 1.05rem; margin: 0 0 .35rem; }
p { margin: 0 0 .6rem; }
.kleintext { font-size: .9rem; color: var(--tinte-2); }
.lade, .ladefehler { text-align: center; padding: 22vh 1rem; font-family: var(--dick); font-size: 1.6rem; color: #fff; }
.ico { width: 1em; height: 1em; display: block; }
.obj { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.ic { display: inline-block; width: 1.25em; vertical-align: -.25em; }
.flosse { display: inline-block; width: .9em; height: .9em; vertical-align: -.08em; }

/* ---------- Knöpfe und Eingaben ---------- */
.knopf { --o: #f5f3ff; --m: #e6e2fb; --u: #bdb6ea; --schrift: var(--tinte);
  font-family: var(--text); font-weight: 600; font-size: 1.08rem; line-height: 1.1; color: var(--schrift); padding: .68em 1.15em; border-radius: 16px; border: 0;
  background: linear-gradient(180deg, var(--o), var(--m)); box-shadow: 0 5px 0 var(--u), 0 9px 16px rgba(35, 29, 79, .22), inset 0 2px 0 rgba(255, 255, 255, .55);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4em; text-align: center; position: relative; top: 0;
  transition: transform .18s var(--feder), box-shadow .12s, top .08s, filter .15s; }
.knopf:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); filter: saturate(1.1) brightness(1.04); }
.knopf:active:not(:disabled) { top: 4px; transform: none; box-shadow: 0 1px 0 var(--u), 0 3px 6px rgba(35, 29, 79, .2), inset 0 2px 0 rgba(255, 255, 255, .4); }
.knopf:disabled { filter: grayscale(.8) opacity(.55); }
.knopf.gelb { --o: #ffe066; --m: var(--gelb-2); --u: var(--gelb-3); --schrift: #3d2a00; }
.knopf.blau { --o: #6db8ff; --m: var(--blau-2); --u: var(--blau-3); --schrift: #fff; }
.knopf.rot { --o: #ff8d98; --m: var(--rot-2); --u: var(--rot-3); --schrift: #fff; }
.knopf.gruen { --o: #6fe8a4; --m: var(--gruen-2); --u: var(--gruen-3); --schrift: #fff; }
.knopf.discord { --o: #7b86ff; --m: #5865f2; --u: #3a45c2; --schrift: #fff; margin-top: .8rem; }
.knopf.breit { width: 100%; }
.knopf.gross { font-family: var(--dick); font-weight: 400; font-size: 1.5rem; padding: .62em 1.5em; border-radius: 20px; letter-spacing: .01em; }
.knopf.haupt { animation: atmen 2.2s ease-in-out infinite; }
@keyframes atmen { 50% { box-shadow: 0 5px 0 var(--u), 0 9px 16px rgba(35, 29, 79, .22), inset 0 2px 0 rgba(255, 255, 255, .55), 0 0 0 7px rgba(255, 255, 255, .28); } }
.knopfreihe { display: flex; gap: .6rem; justify-content: center; align-items: stretch; }
.knopfreihe.umbruch { flex-wrap: wrap; margin-top: .9rem; }
.link { background: none; border: 0; padding: 0; color: var(--blau-2); text-decoration: underline; font-size: .9rem; font-weight: 500; }
.x { background: var(--wolke); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--tinte-2); display: grid; place-items: center; transition: transform .18s var(--feder), background .15s; flex: none; }
.x:hover { transform: rotate(90deg) scale(1.08); background: var(--linie); }
.x.klein { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; font-size: 1.1rem; }
.eingabe { background: #fff; color: var(--tinte); border: 2.5px solid var(--linie); border-radius: 14px; padding: .6em .8em; min-width: 0; flex: 1; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.eingabe:focus { outline: 0; border-color: var(--blau-2); box-shadow: 0 0 0 4px rgba(47, 125, 246, .2); }
.eingabe.code { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 1.15rem; }
.eingabe.linkfeld { font-size: .9rem; background: rgba(255, 255, 255, .95); }
.eingabe.betrag { max-width: 9rem; flex: none; }
.zeile { display: flex; gap: .55rem; align-items: center; }
.wahl { background: #fff; color: var(--tinte); border: 2.5px solid var(--linie); border-radius: 12px; padding: .35em .6em; font-weight: 600; }
.schalter { position: relative; display: inline-block; width: 56px; height: 32px; flex: none; }
.schalter input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.schieber { position: absolute; inset: 0; background: #cfcbe6; border-radius: 30px; transition: background .2s; box-shadow: inset 0 2px 4px rgba(35, 29, 79, .2); }
.schieber::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(35, 29, 79, .35); transition: transform .25s var(--feder); }
.schalter input:checked + .schieber { background: linear-gradient(180deg, var(--gruen), var(--gruen-2)); }
.schalter input:checked + .schieber::after { transform: translateX(24px); }
.schalter input:focus-visible + .schieber { outline: 3px solid var(--blau-2); outline-offset: 2px; }

/* ---------- Logo ---------- */
.ortsschild { text-align: center; color: #fff; }
.os-name { font-family: var(--dick); font-size: clamp(3.6rem, 15vw, 7.5rem); line-height: .95; color: var(--gelb); display: flex; align-items: center; justify-content: center; gap: .12em;
  text-shadow: 0 .03em 0 #ffb01a, 0 .06em 0 #f09400, 0 .09em 0 #d47c00, 0 .12em 0 #a85f00, 0 .2em .25em rgba(20, 10, 70, .45); transform: rotate(-3deg); animation: logorein .7s var(--feder) both; }
@keyframes logorein { from { transform: rotate(-12deg) scale(.4); opacity: 0; } }
.os-name .flosse { color: #fff; filter: drop-shadow(0 .06em 0 #b9c6ff) drop-shadow(0 .14em .12em rgba(20, 10, 70, .4)); }
.os-kreis { font-weight: 600; font-size: clamp(1rem, 3.6vw, 1.4rem); margin-top: .9rem; text-shadow: 0 2px 6px rgba(20, 10, 70, .4); }
.ortsschild.klein .os-name { font-size: 2.6rem; animation: none; }
.ortsschild.klein .os-kreis { display: none; }

/* ---------- Startseite und Lobby ---------- */
.start, .lobby { max-width: 1060px; margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem) 1rem 3rem; }
.start > .ortsschild { margin: 3vh auto 0; }
.hero-figuren { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.2rem, 2vw, 1.2rem); margin: 1.4rem auto 2rem; height: clamp(110px, 24vw, 190px); }
.hero-figur { width: clamp(46px, 10vw, 84px); animation: wippen 2.4s ease-in-out infinite; animation-delay: var(--versatz, 0s); transform-origin: 50% 100%; filter: drop-shadow(0 10px 8px rgba(20, 10, 70, .35)); }
.hero-figur .fig-kopf { animation: nicken 3.1s ease-in-out infinite; animation-delay: var(--versatz, 0s); }
.start-spalten, .lobby-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.3rem; align-items: start; }
.tafel { background: #fff; border-radius: 26px; padding: 1.15rem 1.25rem 1.3rem; box-shadow: 0 8px 0 rgba(35, 29, 79, .18), 0 22px 44px rgba(35, 29, 79, .28); position: relative; animation: tafelrein .5s var(--weich) both; }
.tafel:nth-child(2) { animation-delay: .07s; } .spalte:nth-child(2) .tafel { animation-delay: .12s; }
@keyframes tafelrein { from { transform: translateY(26px); opacity: 0; } }
.spalte { display: grid; gap: 1.3rem; }
.aufklapp { margin: .4rem 0 1rem; background: var(--wolke); border-radius: 16px; padding: .2rem .9rem; }
.aufklapp summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: .55rem 0; }
.fuss { text-align: center; color: rgba(255, 255, 255, .8); font-size: .88rem; margin-top: 2rem; }
.regeln { display: grid; }
.regel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 2px solid var(--wolke); }
.regel:first-child { border-top: 0; }
.regel-name { font-weight: 600; line-height: 1.2; }
.regel-hinweis { font-size: .82rem; color: var(--tinte-2); line-height: 1.25; margin-top: .1rem; }
.wert { font-weight: 700; padding: .15em .7em; border-radius: 30px; background: var(--wolke); flex: none; }
.wert.an { background: var(--gruen-2); color: #fff; } .wert.aus { background: #cfcbe6; color: var(--tinte); }
.konto { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; font-size: .9rem; }
.konto-bild { width: 30px; height: 30px; border-radius: 50%; }
.lobby-kopf { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin-bottom: 1.3rem; }
.einladung { flex: 1; min-width: 280px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 2px solid rgba(255, 255, 255, .45); border-radius: 24px; padding: .8rem 1rem .95rem; color: #fff; }
.einladung-text { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .5rem; }
.einladung-text strong { font-family: var(--dick); font-weight: 400; font-size: 1.6rem; }
.plaetze { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.platz { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--farbe, #cfcbe6) 22%, #fff), color-mix(in srgb, var(--farbe, #cfcbe6) 42%, #fff)); border-radius: 20px; padding: .5rem .3rem .45rem; text-align: center; min-width: 0;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--farbe, #cfcbe6) 70%, #231d4f 12%); animation: plopp .45s var(--feder) both; }
@keyframes plopp { from { transform: scale(.5); opacity: 0; } }
.platz.ich { outline: 4px solid var(--tinte); outline-offset: 2px; }
.platz.frei { background: var(--wolke); box-shadow: inset 0 0 0 2.5px var(--linie); animation: none; color: #b3aed6; }
.platz.weg { filter: grayscale(.8); opacity: .6; }
.platz-figur { height: 96px; display: grid; place-items: end center; font-family: var(--dick); font-size: 2.2rem; }
.platz-figur .fig { width: 44px; animation: wippen 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.platz.frei .platz-figur { place-items: center; }
.platz-name { font-weight: 600; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .2rem; }
.platz-status { font-size: .75rem; color: var(--rot-3); font-weight: 600; }
.krone { color: var(--gelb-3); }
.warten { text-align: center; color: var(--tinte-2); margin: .2rem 0 0; font-weight: 500; }
.beschriftung { font-weight: 600; }
.farben { display: flex; gap: .55rem; margin: .9rem 0; flex-wrap: wrap; }
.farbe { width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), inset 0 3px 0 rgba(255, 255, 255, .35), 0 3px 6px rgba(35, 29, 79, .25); transition: transform .2s var(--feder); }
.farbe:hover:not(:disabled) { transform: scale(1.12); }
.farbe.aktiv { outline: 4px solid var(--tinte); outline-offset: 3px; transform: scale(1.08); }
.farbe:disabled { opacity: .18; }
.figurwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; }
.figurknopf { background: var(--wolke); border: 0; border-radius: 18px; padding: .3rem .2rem .35rem; display: grid; justify-items: center; min-width: 0; box-shadow: 0 4px 0 var(--linie); transition: transform .2s var(--feder), background .15s; }
.figurknopf:hover:not(:disabled) { transform: translateY(-3px) scale(1.04); }
.figurknopf .kopf { width: 58px; }
.figurknopf.aktiv { background: linear-gradient(180deg, #ffe066, var(--gelb-2)); box-shadow: 0 4px 0 var(--gelb-3); }
.figurknopf.aktiv .kopf { animation: nicken 1.4s ease-in-out infinite; }
.figurknopf:disabled { opacity: .28; filter: grayscale(1); }
.figurname { font-weight: 500; font-size: .76rem; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatliste, .logliste { overflow-y: auto; font-size: .92rem; overscroll-behavior: contain; }
.chat-tafel .chatliste { height: 130px; margin-bottom: .6rem; }
.chatzeile { padding: .14rem 0; overflow-wrap: anywhere; }
.chatzeile.frisch { animation: zeilerein .3s var(--weich) both; }   /* nur frisch angekommene Zeilen, nicht beim Neuzeichnen */
.chatzeile b { color: var(--blau-2); font-weight: 600; }
@keyframes zeilerein { from { transform: translateX(-12px); opacity: 0; } }

/* ---------- Figuren (gerenderte Ebenen) ---------- */
@keyframes wippen { 0%, 100% { transform: scaleY(1) scaleX(1); } 50% { transform: scaleY(.965) scaleX(1.025); } }
@keyframes nicken { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg) translateY(-1.5%); } }

/* ---------- Figuren, Häuser, Gitter auf dem Brett ---------- */
.figuren { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
.figur { position: absolute; width: 5cqw; transform: translate(-50%, -100%) rotateX(calc(var(--kipp) * -1)); transform-origin: 50% 100%; transform-style: preserve-3d; transition: left var(--schritt, .16s) linear, top var(--schritt, .16s) linear, width .3s; }
.figur.ohne-anim { transition: none; }
.figur-bild { transform-origin: 50% 100%; animation: wippen 2.6s ease-in-out infinite; animation-delay: var(--versatz, 0s); }
.figur .fig-kopf { animation: nicken 3.4s ease-in-out infinite; animation-delay: var(--versatz, 0s); }
.figur-ring { position: absolute; left: 50%; bottom: -8%; width: 150%; aspect-ratio: 2.6; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(35, 29, 79, .38), rgba(35, 29, 79, 0)); }
.figur.dran .figur-ring { background: radial-gradient(closest-side, transparent 52%, var(--farbe) 56%, var(--farbe) 78%, transparent 82%), radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent); animation: ring 1.2s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.18); opacity: .75; } }
.figur.dran .figur-bild { animation: dranhuepf 1s ease-in-out infinite; } @keyframes dranhuepf { 0%, 100% { transform: translateY(0) scaleY(.96) scaleX(1.03); } 45% { transform: translateY(-16%) scaleY(1.04) scaleX(.97); } }
.figur.huepft .figur-bild { animation: hop var(--schritt, .135s) ease-out infinite; } @keyframes hop { 0% { transform: translateY(0) scaleY(.86) scaleX(1.1); } 50% { transform: translateY(-42%) scaleY(1.1) scaleX(.93); } 100% { transform: translateY(0) scaleY(.88) scaleX(1.08); } }
.figur.huepft .fig-kopf { animation: kopfhop var(--schritt, .135s) ease-out infinite; } @keyframes kopfhop { 50% { transform: translateY(-5%) rotate(6deg); } }
.figur.schunkelt .figur-bild { animation: schunkeln .43s ease-in-out infinite alternate; } @keyframes schunkeln { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.figur.froh .figur-bild { animation: froh 1.1s var(--weich); } @keyframes froh { 20% { transform: translateY(-38%) scaleY(1.1) rotate(-8deg); } 40% { transform: translateY(0) scaleY(.88); } 60% { transform: translateY(-26%) scaleY(1.06) rotate(8deg); } 80% { transform: translateY(0) scaleY(.92); } }
.figur.sauer .figur-bild { animation: sauer 1.1s var(--weich); } @keyframes sauer { 0%, 100% { transform: none; } 15%, 45%, 75% { transform: translateX(-9%) rotate(-5deg); } 30%, 60% { transform: translateX(9%) rotate(5deg); } }
.figur.sauer .fig-kopf { animation: kopfschuetteln .28s ease-in-out 4; } @keyframes kopfschuetteln { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.figur.umzug .figur-bild { animation: umzug .5s var(--feder); } @keyframes umzug { 0% { transform: scale(.4) rotate(-200deg); opacity: .3; } }
.figur.sitzt { width: 4.2cqw; } .figur.sitzt .figur-bild { animation-duration: 4s; }
.figur.pleite { animation: pleite 1.7s forwards; } @keyframes pleite { 25% { transform: translate(-50%, -130%) rotateX(calc(var(--kipp) * -1)) rotate(-14deg); filter: grayscale(1); } 100% { transform: translate(-50%, 60%) rotateX(calc(var(--kipp) * -1)) rotate(120deg) scale(.4); opacity: 0; filter: grayscale(1); } }
.schild { position: absolute; left: 50%; top: 100%; translate: -50% -10%; background: linear-gradient(180deg, #ffd766, #f0a800); color: #4a3200; border-radius: .4cqw; font-family: var(--eng); font-weight: 700; font-size: 1.05cqw; line-height: 1.15; padding: 0 .5cqw; white-space: nowrap; box-shadow: 0 .15cqw 0 #a87400; }
.schild:empty { display: none; }
.bau { position: absolute; width: 2.5cqw; transform: translate(-50%, -100%) rotateX(calc(var(--kipp) * -1)); transform-origin: 50% 100%; animation: wachsen .5s var(--feder) both; }
.bau.hotel { width: 3.7cqw; }
@keyframes wachsen { from { transform: translate(-50%, -100%) rotateX(calc(var(--kipp) * -1)) scale(0); } }
.gitter { position: absolute; height: 5.6cqw; display: flex; justify-content: space-between; padding: 0 3%; transform: translateY(-100%) rotateX(calc(var(--kipp) * -1)); transform-origin: 50% 100%; border-top: .5cqw solid #3d4160; border-bottom: .4cqw solid #3d4160; border-radius: .3cqw; }
.gitter i { width: 7%; height: 100%; border-radius: .3cqw; background: linear-gradient(90deg, #2c2f4a, #a9aecd 45%, #2c2f4a); }
.gitter.zu { animation: gitterzu .5s; } @keyframes gitterzu { 0% { transform: translateY(-260%) rotateX(calc(var(--kipp) * -1)); } 60% { transform: translateY(-100%) rotateX(calc(var(--kipp) * -1)); } 78% { transform: translateY(-118%) rotateX(calc(var(--kipp) * -1)); } }
.gitter.auf { animation: gitterauf .9s; } @keyframes gitterauf { 30%, 70% { transform: translateY(-240%) rotateX(calc(var(--kipp) * -1)); opacity: .6; } }
.gitter.ruettelt { animation: ruetteln .5s; } @keyframes ruetteln { 20%, 60% { translate: -.5cqw 0; } 40%, 80% { translate: .5cqw 0; } }
.brett.wackelt { animation: wackeln .45s; } @keyframes wackeln { 20% { transform: rotateX(var(--kipp)) translate(-.8%, .4%) rotate(-.6deg); } 40% { transform: rotateX(var(--kipp)) translate(.8%, -.4%) rotate(.6deg); } 60% { transform: rotateX(var(--kipp)) translate(-.5%, 0); } 80% { transform: rotateX(var(--kipp)) translate(.4%, 0); } }

/* ---------- Effekte ---------- */
#fx { position: fixed; inset: 0; z-index: 900; pointer-events: none; overflow: hidden; }
#fx > * { position: absolute; }
/* Die Effekte selbst stehen seit Etappe 3 in fx.css (alte Schilder, Breaking News, Push und Razzia entfernt). */
@keyframes einblenden { from { opacity: 0; } }

/* ---------- Dialoge ---------- */
.dialog-ov { position: fixed; inset: 0; z-index: 500; background: rgba(20, 12, 70, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1rem; animation: einblenden .18s; }
.dialog { background: #fff; border-radius: 28px; width: min(100%, 560px); max-height: min(92dvh, 900px); display: flex; flex-direction: column; box-shadow: 0 9px 0 rgba(35, 29, 79, .25), 0 30px 70px rgba(20, 10, 70, .55); overflow: hidden; animation: dialogrein .4s var(--feder); }
@keyframes dialogrein { from { transform: translateY(40px) scale(.85); opacity: 0; } }
.dialog.klein { width: min(100%, 400px); } .dialog.schmal { width: min(100%, 390px); } .dialog.breit { width: min(100%, 880px); } .dialog.ende { width: min(100%, 480px); }
.dialog-kopf { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .9rem .9rem .3rem 1.3rem; }
.dialog-kopf h2 { margin: 0; font-size: 1.6rem; }
.dialog-inhalt { padding: .7rem 1.3rem 1.3rem; overflow-y: auto; overscroll-behavior: contain; }
.frage { font-size: 1.05rem; font-weight: 500; }
.menue { display: grid; gap: .8rem; }
#toasts { position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 950; display: grid; gap: .5rem; justify-items: center; width: min(94vw, 520px); pointer-events: none; }
.toast { background: #fff; color: var(--tinte); border-radius: 18px; padding: .6rem 1.1rem; font-weight: 600; box-shadow: 0 5px 0 rgba(35, 29, 79, .22), 0 12px 26px rgba(20, 10, 70, .4); animation: dialogrein .35s var(--feder); text-align: center; }
.toast.fehler { background: linear-gradient(180deg, #ff8d98, var(--rot-2)); color: #fff; box-shadow: 0 5px 0 var(--rot-3), 0 12px 26px rgba(20, 10, 70, .4); } .toast.weg { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.offline-hinweis { position: fixed; top: 0; left: 50%; translate: -50% -120%; z-index: 960; background: var(--rot-2); color: #fff; font-weight: 600; padding: .45rem 1.2rem; border-radius: 0 0 18px 18px; box-shadow: 0 6px 16px rgba(20, 10, 70, .4); transition: translate .3s var(--feder); }
body.offline[data-view='game'] .offline-hinweis, body.offline[data-view='lobby'] .offline-hinweis { translate: -50% 0; }

/* Feldkarte */
.feldkarte { background: var(--wolke); border-radius: 22px; overflow: hidden; }
.fk-kopf { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14), inset 0 4px 0 rgba(255, 255, 255, .3); }
.fk-kopf.neutral { background: linear-gradient(180deg, #6db8ff, var(--blau-2)); } .fk-kopf img { height: 58px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.fk-name { font-family: var(--dick); font-size: 1.7rem; line-height: 1.05; } .fk-gruppe { font-weight: 600; }
.fk-zeile, .fk-besitzer, .fk-info, .fk-klein { padding: .5rem 1.1rem; margin: 0; } .fk-zeile { display: flex; justify-content: space-between; font-size: 1.05rem; }
.fk-tab { width: 100%; border-collapse: collapse; font-size: .95rem; } .fk-tab td { padding: .2rem 1.1rem; } .fk-tab td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fk-tab tr.jetzt { background: linear-gradient(90deg, #ffe066, #ffd23f); } .fk-tab tr.trenn td { border-top: 2px solid var(--linie); padding-top: .4rem; }
.fk-klein { font-size: .8rem; color: var(--tinte-2); } .fk-besitzer { background: #fff; margin: .5rem; border-radius: 16px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding: .5rem .7rem; }
.fk-jetzt { margin-left: auto; font-weight: 700; color: var(--gruen-3); } .feldkarte .knopfreihe { padding: 0 .7rem .9rem; margin-top: .6rem; } .feldkarte .knopf { font-size: .98rem; }

/* Besitz */
.bz-kopf { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1rem; background: var(--wolke); border-radius: 20px; padding: .7rem 1rem; } .bz-figur { width: 46px; flex: none; margin: 0 .6rem; }
.bz-figur .fig { animation: wippen 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.bz-zahl { display: flex; gap: .8rem; justify-content: space-between; min-width: 210px; align-items: baseline; } .bz-zahl b { font-family: var(--dick); font-weight: 400; font-size: 1.3rem; }
.gutscheine { background: #e3faee; border: 2.5px dashed var(--gruen-2); border-radius: 18px; padding: .6rem .9rem; margin-bottom: .8rem; } .gutscheine.vergeben { background: var(--wolke); border-color: #bdb6ea; }
.gutscheine h3 { display: flex; align-items: center; gap: .35em; } .gs { font-size: .95rem; font-weight: 500; }
.bz-gruppe { margin-bottom: .8rem; } .bz-gtitel { font-weight: 700; margin-bottom: .3rem; display: flex; gap: .5rem; align-items: center; } .bz-gtitel::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--farbe); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.bz { display: grid; grid-template-columns: minmax(0, 1fr) auto 58px auto; gap: .5rem; align-items: center; padding: .35rem .5rem .35rem .7rem; border-left: 10px solid var(--farbe); background: var(--wolke); border-radius: 6px 14px 14px 6px; margin-bottom: 4px; }
.bz-name { background: none; border: 0; text-align: left; font-weight: 600; padding: 0; text-decoration: underline dotted; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-stand { display: flex; gap: 1px; min-width: 22px; align-items: flex-end; } .bz-stand .haus { width: 20px; } .bz-stand .hotel { width: 28px; } .bz-miete { text-align: right; font-weight: 700; color: var(--gruen-3); }
.bz-knoepfe { display: flex; gap: 5px; }
.mini { background: #fff; color: var(--tinte); border: 0; border-radius: 12px; min-width: 38px; height: 38px; font-weight: 700; font-size: 1.1rem; padding: 0 .5em; box-shadow: 0 3px 0 #bdb6ea; transition: transform .15s var(--feder), top .08s; position: relative; top: 0; }
.mini:hover:not(:disabled) { transform: scale(1.08); } .mini:active:not(:disabled) { top: 3px; box-shadow: none; }
.mini.plus { background: linear-gradient(180deg, #6fe8a4, var(--gruen-2)); color: #fff; box-shadow: 0 3px 0 var(--gruen-3); } .mini.minus { background: linear-gradient(180deg, #ff8d98, var(--rot-2)); color: #fff; box-shadow: 0 3px 0 var(--rot-3); } .mini.breit { font-size: .82rem; font-weight: 600; } .mini:disabled { opacity: .3; }

/* Handel */
.h-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.hs { background: var(--wolke); border-radius: 20px; padding: .7rem .9rem .9rem; min-width: 0; } .hs h3 { font-family: var(--dick); font-weight: 400; font-size: 1.25rem; display: flex; align-items: center; gap: .4rem; } .hs h3::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--farbe, var(--gelb-2)); }
.hs-teil { margin-top: .7rem; } .hs-label { font-weight: 600; display: flex; align-items: center; gap: .3em; margin-bottom: .25rem; } .hs-label small { font-weight: 500; color: var(--tinte-2); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.chip { background: #fff; color: var(--tinte); border: 0; border-left: 10px solid var(--farbe); border-radius: 8px 14px 14px 8px; padding: .3rem .65rem; font-weight: 600; font-size: .95rem; box-shadow: 0 3px 0 #cfcbe6; transition: transform .18s var(--feder), background .15s; }
.chip:hover:not(:disabled) { transform: translateY(-2px); }
.chip.an { background: linear-gradient(180deg, #ffe066, var(--gelb-2)); box-shadow: 0 3px 0 var(--gelb-3); transform: scale(1.04); } .chip:disabled { opacity: .35; } .chip.gutschein { border-left-style: dashed; }
.stepper { display: flex; align-items: center; gap: .7rem; } .stepper b { font-size: 1.2rem; min-width: 1.2em; text-align: center; }
.h-summe { background: var(--tinte); color: #fff; border-radius: 18px; padding: .6rem .9rem; margin: .9rem 0; font-size: .95rem; display: grid; gap: .2rem; } .h-summe b { color: var(--gelb); }
.h-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; } .h-liste li { display: flex; align-items: center; gap: .45rem; font-weight: 600; } .h-liste .leer { color: var(--tinte-2); font-weight: 400; }
.punkt { width: 16px; height: 16px; border-radius: 50%; background: var(--farbe); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); flex: none; } .h-liste .gs { color: var(--gruen-3); }
.handel > .knopfreihe { margin-top: 1rem; flex-wrap: wrap; }
.partnerwahl { display: grid; gap: .6rem; } .partner { display: flex; align-items: center; gap: .7rem; background: var(--wolke); border: 0; border-radius: 18px; padding: .45rem .9rem .45rem .5rem; font-weight: 600; font-size: 1.1rem; box-shadow: 0 4px 0 var(--linie); transition: transform .2s var(--feder); } .partner:hover { transform: translateX(4px) scale(1.02); } .partner small { margin-left: auto; font-weight: 700; color: var(--tinte-2); }

/* Ende */
.ende-inhalt { text-align: center; } .sieger-figur { width: 74px; margin: 3.6rem auto .6rem; position: relative; } .sieger-figur .fig { animation: froh 1.2s var(--weich) infinite; transform-origin: 50% 100%; }
.krone-gross { position: absolute; left: 50%; top: -58px; width: 78px; translate: -50% 0; animation: krone 1.4s ease-in-out infinite; z-index: 2; } @keyframes krone { 50% { transform: translateY(-8px) rotate(6deg); } }
.sieger-name { font-family: var(--dick); font-size: 2.4rem; line-height: 1; } .sieger-titel { font-weight: 700; font-size: 1.15rem; color: var(--gelb-3); margin-bottom: 1rem; }
.rangliste { list-style: none; padding: 0; margin: 0 0 .9rem; display: grid; gap: .4rem; text-align: left; } .rangliste li { display: flex; align-items: center; gap: .5rem; background: var(--wolke); border-left: 10px solid var(--farbe); border-radius: 6px 16px 16px 6px; padding: .3rem .8rem; animation: zeilerein .4s var(--weich) both; }
.rangliste li:nth-child(2) { animation-delay: .1s; } .rangliste li:nth-child(3) { animation-delay: .2s; } .rangliste li:nth-child(4) { animation-delay: .3s; } .rangliste li:nth-child(5) { animation-delay: .4s; } .rangliste li:nth-child(6) { animation-delay: .5s; }
.rang { font-family: var(--dick); font-size: 1.25rem; width: 1.6em; } .rl-name { font-weight: 600; flex: 1; } .rl-wert { font-weight: 700; color: var(--tinte-2); }

/* ---------- Schmale Bildschirme (Handy, Tablet hochkant) ---------- */
@keyframes dialoghoch { from { transform: translateY(100%); } }
@media (max-width: 560px) { .h-spalten { grid-template-columns: 1fr; } .plaetze { gap: .4rem; } .platz-figur { height: 78px; } .platz-figur .fig { width: 36px; } .tafel { padding: 1rem; border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
