:root {
  --bg: #0d0a1f;
  --bg2: #17123a;
  --panel: rgba(30, 24, 74, 0.78);
  --panel2: rgba(46, 36, 104, 0.85);
  --line: rgba(160, 140, 255, 0.25);
  --text: #f2eeff;
  --muted: #a99fd6;
  --pink: #ff4fa3;
  --cyan: #3de2ff;
  --yellow: #ffd23f;
  --green: #3ddc84;
  --red: #ff5a6e;
  --r0: #9aa3ad; --r1: #3ddc84; --r2: #3d9bff; --r3: #b45cff; --r4: #ffc531; --r5: #7ff6ff;
  --radius: 16px;
  font-family: "Segoe UI", "Trebuchet MS", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(ellipse at top, #2a1a6b 0%, var(--bg) 60%) fixed; color: var(--text); }
body { overflow-x: hidden; }
#bg-stars { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, #fff8, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff6, transparent),
  radial-gradient(1px 1px at 40% 70%, #fff7, transparent), radial-gradient(2px 2px at 85% 60%, #ffd23f88, transparent),
  radial-gradient(1.5px 1.5px at 10% 85%, #3de2ff88, transparent), radial-gradient(1px 1px at 55% 45%, #ff4fa388, transparent);
  background-size: 600px 600px; animation: drift 120s linear infinite; }
@keyframes drift { to { background-position: 600px 1200px; } }
#app { position: relative; z-index: 1; }
a { color: var(--cyan); }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }
h1, h2, h3 { margin: 0 0 12px; letter-spacing: 0.5px; }
h2 { font-size: 22px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }

/* Titel-Schrift im Anime-Stil */
.logo { font-weight: 900; font-style: italic; font-size: 30px; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--yellow), var(--pink) 50%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(255, 79, 163, 0.35); white-space: nowrap; }
.logo.big { font-size: 64px; line-height: 1; }

.btn { display: inline-block; text-decoration: none; border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 800; color: #1a0f3d; letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--yellow), #ff9d3d); box-shadow: 0 4px 0 #b05a12, 0 8px 20px rgba(255, 157, 61, 0.35); transition: transform .1s, filter .1s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b05a12; }
.btn:disabled { filter: grayscale(1) brightness(.7); cursor: not-allowed; transform: none; }
.btn.alt { background: linear-gradient(135deg, var(--cyan), #7a5cff); color: #fff; box-shadow: 0 4px 0 #3b2a9e, 0 8px 20px rgba(122, 92, 255, .35); }
.btn.pink { background: linear-gradient(135deg, var(--pink), #b45cff); color: #fff; box-shadow: 0 4px 0 #7a1e5a, 0 8px 20px rgba(255, 79, 163, .35); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { background: linear-gradient(135deg, #ff5a6e, #c0263d); color: #fff; box-shadow: 0 4px 0 #6d0e1c; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; padding: 30px 6vw; }
.auth-hero .parade { display: flex; gap: 0; margin: 24px 0; }
.auth-hero .parade .mon { width: 110px; height: 110px; margin-right: -18px; animation: bob 2.4s ease-in-out infinite; }
.auth-hero .parade .mon:nth-child(2n) { animation-delay: -1.2s; }
.auth-hero .tag { font-size: 18px; color: var(--muted); max-width: 560px; line-height: 1.5; }
.auth-box { max-width: 420px; width: 100%; }
.auth-box label { display: block; margin: 12px 0 4px; font-weight: 700; font-size: 14px; }
.auth-box input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text); }
.auth-box input:focus { outline: 2px solid var(--cyan); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 800; }
.tabs button.active { background: var(--panel2); color: var(--text); border-color: var(--cyan); }
.err { color: var(--red); min-height: 20px; margin-top: 10px; font-weight: 600; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .logo.big { font-size: 44px; } }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* Layout */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 22px;
  background: rgba(13, 10, 31, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.nav a.active, .nav a:hover { color: var(--text); background: var(--panel2); }
.wallet { display: flex; gap: 12px; align-items: center; font-weight: 800; }
.coin { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 210, 63, .12); color: var(--yellow); border: 1px solid rgba(255, 210, 63, .35); }
.coin::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6b0, #ffc531 50%, #b07800); box-shadow: 0 0 8px #ffc531; }
.lvl { padding: 6px 12px; border-radius: 999px; background: rgba(61, 226, 255, .12); color: var(--cyan); border: 1px solid rgba(61, 226, 255, .35); }
main { padding: 22px; max-width: 1400px; margin: 0 auto; }

/* Monsterkarte */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.mcard { position: relative; border-radius: 16px; padding: 10px; cursor: pointer; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .25)), var(--panel2);
  border: 2px solid var(--rc, #9aa3ad); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 18px -4px var(--rc, transparent); transition: transform .15s; }
.mcard:hover { transform: translateY(-4px) rotate(-.5deg); }
.mcard .art { width: 100%; aspect-ratio: 1; }
.mcard .art svg { width: 100%; height: 100%; }
.mcard .nm { font-weight: 900; font-size: 15px; }
.mcard .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.mcard .ovr { position: absolute; top: 8px; left: 8px; font-weight: 900; font-size: 20px; text-shadow: 0 2px 4px #000; }
.mcard .role { position: absolute; top: 10px; right: 8px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .45); }
.mcard .ab { font-size: 11px; color: var(--yellow); margin-top: 2px; }
.mcard.r3, .mcard.r4, .mcard.r5 { animation: glow 2.5s ease-in-out infinite; }
.mcard.r5 { background: linear-gradient(130deg, rgba(127, 246, 255, .25), rgba(255, 79, 163, .2), rgba(255, 210, 63, .2), rgba(127, 246, 255, .25)), var(--panel2); background-size: 300% 300%; animation: glow 2.5s ease-in-out infinite, prism 6s linear infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 30px 2px var(--rc); } }
@keyframes prism { to { background-position: 300% 0; } }
.rar { font-weight: 800; }
.rar-0 { color: var(--r0); } .rar-1 { color: var(--r1); } .rar-2 { color: var(--r2); } .rar-3 { color: var(--r3); } .rar-4 { color: var(--r4); } .rar-5 { color: var(--r5); }
.badge-ai { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 90, 110, .2); color: #ff9aa8; font-weight: 800; }
.badge-human { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(61, 220, 132, .2); color: #8dffbf; font-weight: 800; }
.sparkle { transform-origin: center; transform-box: fill-box; animation: twinkle 1.6s ease-in-out infinite; }
.sparkle.s1 { animation-delay: -.4s } .sparkle.s2 { animation-delay: -.8s } .sparkle.s3 { animation-delay: -1.2s }
@keyframes twinkle { 50% { transform: scale(.3) rotate(45deg); opacity: .4 } }

/* Tabellen */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.tbl tr.mine { background: rgba(255, 210, 63, .12); }
.tbl tr.promo td:first-child { border-left: 4px solid var(--green); }
.tbl tr.releg td:first-child { border-left: 4px solid var(--red); }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover { background: rgba(255, 255, 255, .05); }
.form span { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 4px; font-size: 11px; font-weight: 800; margin-right: 2px; }
.form .S { background: var(--green); color: #002; } .form .U { background: #888; } .form .N { background: var(--red); }

/* Stats-Balken */
.stat { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; }
.bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.xpbar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.xpbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), #ff9d3d); }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 3, 15, .75); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s; }
.modal { width: min(900px, 100%); max-height: 92vh; overflow: auto; position: relative; }
.modal .close { position: absolute; top: 12px; right: 12px; }
@keyframes fade { from { opacity: 0 } }
.monster-detail { display: grid; grid-template-columns: 280px 1fr; gap: 22px; }
.monster-detail .bigart { border-radius: 20px; border: 3px solid var(--rc); background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .12), transparent 70%); box-shadow: 0 0 40px -8px var(--rc); }
@media (max-width: 760px) { .monster-detail { grid-template-columns: 1fr; } }
.equip-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot { border: 1px dashed var(--line); border-radius: 12px; padding: 8px; display: flex; gap: 8px; align-items: center; min-height: 58px; font-size: 13px; }
.slot .ic { width: 40px; height: 40px; flex: none; }
.slot .ic svg { width: 100%; height: 100%; }
.req { display: flex; gap: 8px; align-items: center; margin: 4px 0; font-size: 14px; }
.req .ok { color: var(--green); } .req .no { color: var(--red); }

/* Toasts */
#toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--cyan); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); max-width: 380px; animation: slidein .3s; font-weight: 600; }
.toast.error { border-color: var(--red); }
.toast.gold { border-color: var(--yellow); }
@keyframes slidein { from { transform: translateX(120%) } }

/* Aufstellung */
.lineup-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 16px; }
@media (max-width: 1000px) { .lineup-wrap { grid-template-columns: 1fr; } }
.pitch { position: relative; aspect-ratio: 68/90; max-height: 78vh; margin: 0 auto; border-radius: 18px; overflow: hidden;
  background: repeating-linear-gradient(0deg, #2fa24a 0 8%, #34b153 8% 16%); border: 3px solid #ffffff55; box-shadow: inset 0 0 60px rgba(0, 0, 0, .35); }
.pitch::before { content: ""; position: absolute; inset: 4%; border: 2px solid #ffffffaa; border-radius: 4px; }
.pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid #ffffffaa; border-radius: 50%; }
.pitch .midline { position: absolute; left: 4%; right: 4%; top: 50%; border-top: 2px solid #ffffffaa; }
.pitch .box { position: absolute; left: 25%; right: 25%; height: 14%; border: 2px solid #ffffffaa; }
.pitch .box.top { top: 4%; border-top: 0; } .pitch .box.bot { bottom: 4%; border-bottom: 0; }
.pslot { position: absolute; transform: translate(-50%, -50%); width: 86px; text-align: center; cursor: pointer; z-index: 2; }
.pslot .face { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: rgba(0, 0, 0, .35); border: 3px solid var(--rc, #fff8); overflow: hidden; transition: transform .15s; }
.pslot .face svg { width: 100%; height: 100%; }
.pslot.sel .face { transform: scale(1.15); box-shadow: 0 0 0 4px var(--yellow), 0 0 24px var(--yellow); }
.pslot .lbl { font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .6); border-radius: 8px; padding: 2px 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pslot .pos { font-size: 10px; color: var(--yellow); font-weight: 900; }
.pslot.warn .lbl { color: #ffb3bd; }
.bench { display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow: auto; }
.benchrow { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; background: rgba(0, 0, 0, .15); }
.benchrow:hover { background: rgba(255, 255, 255, .06); }
.benchrow.sel { border-color: var(--yellow); background: rgba(255, 210, 63, .12); }
.benchrow.inxi { opacity: .55; }
.benchrow .face { width: 40px; height: 40px; flex: none; }
.benchrow .face svg { width: 100%; height: 100%; }

/* Shop */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pack { position: relative; border-radius: 20px; padding: 20px; text-align: center; overflow: hidden; border: 2px solid var(--pc);
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 35%, transparent), rgba(0, 0, 0, .35)), var(--panel2); }
.pack .foil { height: 170px; margin: 0 auto 12px; width: 120px; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--pc), #1a0f3d 120%); box-shadow: 0 10px 30px -6px var(--pc); transform: rotate(-4deg); }
.pack .foil::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); animation: shine 3s infinite; }
.pack .foil b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; font-style: italic; color: #fff; text-shadow: 0 2px 6px #000; padding: 6px; }
@keyframes shine { from { transform: translateX(-60%) } to { transform: translateX(60%) } }
.odds { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 12px; margin: 8px 0; }
.price { font-size: 22px; font-weight: 900; color: var(--yellow); margin: 6px 0; }
.lock { color: #ff9aa8; font-size: 13px; font-weight: 700; min-height: 20px; }

/* Posteingang */
.inbox { max-height: 360px; overflow: auto; }
.inbox div { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.inbox time { color: var(--muted); font-size: 11px; display: block; }

/* Spielansicht */
.match-view { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
@media (max-width: 1100px) { .match-view { grid-template-columns: 1fr; } }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 12px 18px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 79, 163, .25), rgba(13, 10, 31, .8), rgba(61, 226, 255, .25)); border: 1px solid var(--line); margin-bottom: 10px; }
.scoreboard .tn { font-weight: 900; font-size: 18px; }
.scoreboard .tn.away { text-align: right; }
.scoreboard .sc { font-size: 40px; font-weight: 900; font-style: italic; letter-spacing: 2px; text-align: center; }
.scoreboard .clock { font-size: 13px; color: var(--yellow); text-align: center; font-weight: 800; }
canvas.pitchc { width: 100%; border-radius: 16px; display: block; background: #1b7a35; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.ticker { height: 520px; overflow: auto; font-size: 14px; }
.ticker div { padding: 7px 4px; border-bottom: 1px solid var(--line); animation: fade .3s; }
.ticker .m { color: var(--yellow); font-weight: 900; margin-right: 6px; }
.ticker .goal { background: linear-gradient(90deg, rgba(255, 210, 63, .25), transparent); font-weight: 800; }
.ticker .abil { color: var(--pink); font-weight: 800; }
.mstats { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; font-size: 14px; text-align: center; }

/* Pack-Opening Overlay */
.po { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 50%, #2a1a6b, #05030f 70%); overflow: hidden; }
.po canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.po .rays { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s;
  background: repeating-conic-gradient(from 0deg, var(--glow, #fff3) 0deg 6deg, transparent 6deg 18deg); animation: spin 18s linear infinite; mask-image: radial-gradient(circle, #000 0%, transparent 45%); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 45%); }
.po .rays.on { opacity: 1; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.po .bigpack { position: absolute; left: 50%; top: 50%; width: 220px; height: 320px; margin: -160px 0 0 -110px; border-radius: 18px;
  background: linear-gradient(135deg, var(--pc), #1a0f3d 130%); box-shadow: 0 0 60px var(--pc); display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; font-style: italic; color: #fff; text-shadow: 0 3px 10px #000; text-align: center; padding: 20px; overflow: hidden; }
.po .bigpack::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .6) 50%, transparent 60%); animation: shine 1.4s infinite; }
.po .bigpack.enter { animation: packIn 1s cubic-bezier(.2, 1.4, .4, 1) both; }
.po .bigpack.shake { animation: shake .09s linear infinite; }
.po .bigpack.shake2 { animation: shake2 .06s linear infinite; filter: brightness(1.4); }
@keyframes packIn { from { transform: translateY(80vh) rotate(-30deg) scale(.4); } to { transform: none; } }
@keyframes shake { 0%, 100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) translateX(3px) } }
@keyframes shake2 { 0%, 100% { transform: rotate(-6deg) scale(1.06) } 50% { transform: rotate(6deg) scale(1.1) translateX(6px) } }
.po .half { position: absolute; left: 50%; top: 50%; width: 220px; height: 160px; margin-left: -110px; background: linear-gradient(135deg, var(--pc), #1a0f3d 130%); border-radius: 18px; transition: transform 1s cubic-bezier(.3, .7, .3, 1), opacity 1s; }
.po .half.top { margin-top: -160px; border-radius: 18px 18px 4px 4px; }
.po .half.bot { margin-top: 0; border-radius: 4px 4px 18px 18px; }
.po .half.top.fly { transform: translate(-60vw, -60vh) rotate(-80deg); opacity: 0; }
.po .half.bot.fly { transform: translate(60vw, 60vh) rotate(80deg); opacity: 0; }
.po .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.po .flash.go { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 1 } 100% { opacity: 0 } }
.po .stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.po .card3d { width: 300px; height: 440px; position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.3, .5, 1); cursor: pointer; }
.po .card3d.enter { animation: cardIn .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes cardIn { from { transform: translateY(60vh) rotateY(180deg) scale(.5); } to { transform: rotateY(180deg); } }
.po .card3d.back { transform: rotateY(180deg); }
.po .card3d.flipped { transform: rotateY(0deg) scale(1.04); }
.po .face, .po .backside { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.po .backside { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #2a1a6b 0 14px, #3a2690 14px 28px); border: 4px solid #ffd23f; display: flex; align-items: center; justify-content: center; }
.po .backside::before { content: "ML"; font-size: 80px; font-weight: 900; font-style: italic; color: #ffd23f; text-shadow: 0 0 20px #ff4fa3; }
.po .face { border: 4px solid var(--rc); background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc) 45%, transparent), #120c2e 70%); box-shadow: 0 0 60px var(--rc); text-align: center; padding: 16px; }
.po .face .art { width: 230px; height: 230px; margin: 4px auto 0; }
.po .face .art svg { width: 100%; height: 100%; }
.po .face.revealed .art { animation: monPop .8s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes monPop { from { transform: scale(0) rotate(-20deg); } }
.po .face .nm { font-size: 28px; font-weight: 900; font-style: italic; text-shadow: 0 2px 8px #000; }
.po .face .rl { font-size: 15px; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; color: var(--rc); text-shadow: 0 0 12px var(--rc); }
.po .face .new { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); background: var(--pink); color: #fff; font-weight: 900; padding: 4px 40px; font-size: 13px; }
.po .face .ab { color: var(--yellow); font-weight: 800; margin-top: 6px; font-size: 14px; }
.po .face.r5 { background: radial-gradient(circle at 50% 38%, rgba(127, 246, 255, .55), #120c2e 70%), linear-gradient(130deg, #7ff6ff, #ff4fa3, #ffd23f, #3ddc84, #7ff6ff); background-size: 100% 100%, 400% 400%; animation: prism 3s linear infinite; }
.po .hud { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; z-index: 5; }
.po .counter { position: absolute; top: 24px; left: 0; right: 0; text-align: center; font-weight: 900; font-size: 18px; color: var(--muted); z-index: 5; }
.po .rarity-banner { position: absolute; top: 12%; left: 0; right: 0; text-align: center; font-size: 56px; font-weight: 900; font-style: italic; letter-spacing: 4px; color: var(--rc);
  text-shadow: 0 0 30px var(--rc), 0 4px 0 #000; z-index: 6; animation: banner 1.6s ease-out both; pointer-events: none; }
@keyframes banner { 0% { transform: scale(3); opacity: 0 } 25% { transform: scale(1); opacity: 1 } 80% { opacity: 1 } 100% { opacity: 0; transform: scale(1.1) } }
.po .summary { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 20px; z-index: 7; }
.po .summary .cards { width: min(1000px, 100%); }
.po.shakescreen .stage, .po.shakescreen canvas { animation: shake .08s linear 8; }

.dex-card { opacity: 1; }
.dex-card.unknown .art svg { filter: brightness(0) drop-shadow(0 0 2px #fff6); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 700; margin: 2px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .15); }
.ach.done { border-color: var(--yellow); background: rgba(255, 210, 63, .1); }
.ach .ico { font-size: 28px; width: 40px; text-align: center; }
.countdown { font-size: 26px; font-weight: 900; color: var(--cyan); }
select.inp, input.inp { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text); }

.stats2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.stats2 .stat { grid-template-columns: 112px 1fr 32px; }
@media (max-width: 760px) { .stats2 { grid-template-columns: 1fr; } }
.pack-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; border-color: var(--pink); background: linear-gradient(90deg, rgba(255, 79, 163, .25), var(--panel)); animation: glowpink 2s ease-in-out infinite; }
.pack-banner .btn { margin-left: auto; }
@keyframes glowpink { 50% { box-shadow: 0 0 30px rgba(255, 79, 163, .45); } }
.equip-slots { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .equip-slots { grid-template-columns: repeat(2, 1fr); } }
.modal { width: min(1080px, 100%); }
.monster-detail .stats2 .stat { grid-template-columns: 104px 1fr 30px; }
.monster-detail .equip-slots { grid-template-columns: repeat(2, 1fr); }
.slot select { width: 100%; }
.logo-mini { display: inline-block; width: 30px; height: 30px; vertical-align: middle; margin: 0 8px; }
.logo-mini svg, .logo-big svg, .logo-sm svg { width: 100%; height: 100%; }
.logo-sm { display: inline-block; width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; }
.logo-big { width: 120px; height: 120px; }

/* ---------- Neu: Verein, Taktik, Training ---------- */
.topbar { flex-wrap: wrap; gap: 10px; }
.nav a { padding: 7px 9px; font-size: 13px; }
.teamlogo { width: 40px; height: 40px; display: block; }
.teamlogo svg { width: 100%; height: 100%; }
.logo-mid { display: inline-block; width: 56px; height: 56px; margin-right: 10px; }
.logo-mid svg { width: 100%; height: 100%; }
.coin.neg { color: var(--red); border-color: var(--red); }
.warn-banner { border-color: var(--yellow); margin-bottom: 16px; display: flex; gap: 14px; align-items: center; }
.formbar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 5px; }
.formbar > i { display: block; height: 100%; }
.mcard .inj { position: absolute; top: 34px; right: 8px; font-size: 11px; font-weight: 800; background: rgba(255, 90, 110, .85); border-radius: 8px; padding: 1px 6px; }
.mcard .nr { display: inline-block; min-width: 22px; padding: 0 4px; margin-right: 5px; border-radius: 6px; background: rgba(255, 255, 255, .15); font-size: 12px; }
.pill.bad { background: rgba(255, 90, 110, .3); color: #ffb3bd; }
.pill.okz { background: rgba(61, 220, 132, .25); color: #a9ffd0; }
.ttabs { display: flex; gap: 6px; flex-wrap: wrap; }
.params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.params label, .editor label, .station label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.tpitch { position: relative; aspect-ratio: 68/90; max-height: 76vh; margin: 0 auto; border-radius: 18px; overflow: hidden; touch-action: none; user-select: none;
  background: repeating-linear-gradient(0deg, #2fa24a 0 8%, #34b153 8% 16%); border: 3px solid #ffffff55; }
.tpitch .zone { position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(255, 255, 255, .35); pointer-events: none; }
.tpitch .zone span { position: absolute; right: 8px; top: 4px; font-size: 11px; font-weight: 900; color: rgba(255, 255, 255, .55); letter-spacing: 1px; text-transform: uppercase; }
.tpitch .z-st { top: 0; height: 30%; border-top: 0; background: rgba(255, 79, 163, .08); }
.tpitch .z-mf { top: 30%; height: 30%; background: rgba(255, 210, 63, .06); }
.tpitch .z-abw { top: 60%; height: 40%; background: rgba(61, 155, 255, .08); }
.tpitch .z-tw { left: 30%; right: 30%; top: 88%; height: 12%; border: 2px solid rgba(255, 255, 255, .7); border-bottom: 0; background: rgba(255, 255, 255, .08); }
.tpitch .z-tw span { right: auto; left: 6px; }
.tok { position: absolute; transform: translate(-50%, -50%); width: 80px; text-align: center; cursor: grab; z-index: 3; touch-action: none; }
.tok:active { cursor: grabbing; }
.tok .face { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; background: rgba(0, 0, 0, .35); border: 3px solid var(--rc, #fff8); overflow: hidden; }
.tok .face svg { width: 100%; height: 100%; pointer-events: none; }
.tok .plus { display: block; line-height: 52px; font-size: 26px; color: #fff8; }
.tok.sel .face { box-shadow: 0 0 0 4px var(--yellow), 0 0 22px var(--yellow); }
.tok .lbl { font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .6); border-radius: 8px; padding: 1px 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok .zn { font-size: 10px; color: var(--yellow); font-weight: 900; }
.benchrow.subslot { min-height: 52px; }
.rule { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .15); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.station .benchrow { margin-top: 6px; }
.station select { width: 100%; margin-bottom: 6px; }
.coachface { width: 64px; height: 64px; }
.coachface svg { width: 100%; height: 100%; }
.cards.coaches { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mcard.coach { cursor: default; --rc: #c9a227; }
.cskills { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin: 6px 0; text-align: left; }
.cskills > div { display: grid; grid-template-columns: 30px 1fr 16px; gap: 4px; align-items: center; font-size: 10px; }
.cskills .bar { height: 6px; }
.cskills .bar > i { background: linear-gradient(90deg, #c9a227, #ffd23f); }
.cskills .hl { color: var(--yellow); font-weight: 900; }
.sponsor { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.sponsor.active { border-color: var(--green); background: rgba(61, 220, 132, .08); }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.editor input[type=color] { width: 100%; height: 34px; border: 0; background: none; padding: 0; }
.jprev { width: 160px; height: 160px; border-radius: 16px; background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 70%); }
.jprev svg { width: 100%; height: 100%; }
.numgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.numrow { display: flex; gap: 8px; align-items: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; }
.numrow .face { width: 38px; height: 38px; }
.numrow .face svg { width: 100%; height: 100%; }
.pos { color: var(--green); } .negv { color: var(--red); }
.buildbox { border-color: var(--yellow); margin: 10px 0; }

.panel > .row.small { margin: 6px 0; gap: 8px; }

/* ---------- Vereinsgelände-Karte ---------- */
.map-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .map-wrap { grid-template-columns: 1fr; } }
.map-scroll { overflow: auto; max-height: 80vh; border-radius: 20px; border: 2px solid var(--line);
  background: radial-gradient(circle at 50% 50%, #4fb85a, #2f7d3a 70%, #255f2e); padding: 18px; }
.mapgrid { display: grid; grid-template-columns: repeat(var(--n), var(--tile)); grid-auto-rows: var(--tile); gap: 6px; justify-content: center; margin: 0 auto; width: max-content; }
.tile { position: relative; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform .12s; }
.tile.wild { background: rgba(0, 0, 0, .06); }
.tile.locked { background: rgba(20, 20, 30, .35); color: #ffffff70; border: 2px dashed rgba(255, 255, 255, .18); cursor: not-allowed; }
.tile.free { background: rgba(255, 255, 255, .12); border: 2px dashed rgba(255, 255, 255, .7); cursor: pointer; flex-direction: column; }
.tile.free:hover, .tile.built:hover { transform: scale(1.06); background: rgba(255, 255, 255, .22); }
.tile.free .plus { font-size: calc(var(--tile) * .35); font-weight: 900; color: #fff; line-height: 1; }
.tile .mult { font-size: 11px; font-weight: 900; border-radius: 8px; padding: 1px 5px; margin-top: 2px; }
.tile .mult.good { background: rgba(255, 210, 63, .9); color: #2a1838; } .tile .mult.bad { background: rgba(255, 90, 110, .8); color: #fff; }
.tile.built { cursor: pointer; background: rgba(0, 0, 0, .08); }
.tile.busy { background: repeating-linear-gradient(45deg, #ffd23f55 0 8px, #2a183855 8px 16px); border: 2px solid #ffd23f; flex-direction: column; }
.tile .crane { font-size: calc(var(--tile) * .45); animation: bob 1.4s ease-in-out infinite; }
.tile.center { z-index: 2; }
.tile.center .stadium-svg { width: 138%; height: 138%; position: absolute; left: -19%; top: -22%; pointer-events: none; }
.tile .bld-svg { width: 92%; height: 92%; }
.tile .tlabel { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 800;
  background: rgba(0, 0, 0, .65); border-radius: 6px; padding: 1px 5px; max-width: calc(var(--tile) * 1.3); overflow: hidden; text-overflow: ellipsis; }
.tile.center .tlabel { bottom: -10px; z-index: 3; }
.catalog { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.cat { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .15); }
.cat.facility { border-color: rgba(61, 155, 255, .45); }
.cat .ci { font-size: 28px; width: 40px; text-align: center; }

.map-side h3 { margin-top: 16px; }
.map-side .btn { margin-top: 6px; }
.tile.built { z-index: 3; }

.lchain { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0 12px; font-size: 12px; }
.lchain span { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); }
.lchain span.done { color: var(--text); }
.lchain span.cur { background: var(--yellow); color: #2a1838; font-weight: 900; }
.lchain i { color: var(--muted); font-style: normal; }

.mcard.coach.head { --rc: #ffc531; box-shadow: 0 0 24px -4px #ffc531; }
.traits { display: grid; gap: 4px; margin: 6px 0; text-align: left; }
.trait { font-size: 11px; padding: 4px 6px; border-radius: 8px; background: rgba(61, 220, 132, .12); border-left: 3px solid var(--green); }
.trait.mixed { background: rgba(255, 210, 63, .1); border-left-color: var(--yellow); }
.trait b { display: block; font-size: 12px; }
.contract { margin-top: 4px; color: var(--cyan); }
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.offer label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.neg-msg { min-height: 24px; margin: 6px 0 10px; font-weight: 700; color: var(--yellow); }
.hc-seat { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
.hc-seat .coachface { width: 56px; height: 56px; }

/* ---------- Freunde, Chat, Gästebuch ---------- */
.social-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .social-wrap { grid-template-columns: 1fr; } }
.srow { display: flex; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line); }
.srow.friend { cursor: pointer; border-radius: 10px; }
.srow.friend:hover, .srow.friend.active { background: rgba(255, 255, 255, .06); }
.srow .sl { width: 28px; height: 28px; flex: none; }
.srow .sl .logo-sm { width: 28px; height: 28px; }
.badge-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 900; text-align: center; }
.chat { display: flex; flex-direction: column; min-height: 520px; }
.msgs { flex: 1; overflow: auto; max-height: 56vh; min-height: 360px; display: flex; flex-direction: column; gap: 6px; padding: 10px 2px; margin: 10px 0; }
.msg { max-width: 75%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .09); align-self: flex-start; word-wrap: break-word; }
.msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, #7a5cff, #3d9bff); }
.msg time, .gbe time { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.msg.me time { color: #e6e0ff; }
textarea.inp { resize: vertical; font: inherit; }
.gb { margin-top: 12px; display: grid; gap: 8px; }
.gbe { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .15); }
.gbe .sl { width: 32px; height: 32px; flex: none; }
.gbe .sl .logo-sm { width: 32px; height: 32px; }
textarea.inp { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text); }

.tpitch.small-pitch { max-height: 560px; }
.tpitch.small-pitch .tok { width: 92px; }
.tpitch.small-pitch .tok .face { width: 50px; height: 50px; }
.sections { display: grid; gap: 8px; margin: 10px 0; }
.secrow { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.15); }
.secrow .ic { font-size: 22px; width: 30px; text-align: center; }

.pairnav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px 16px; }
.pairnav .btn { margin-left: auto; }

/* Finanzen */
.fweek h4 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ftiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.frow { display: grid; grid-template-columns: minmax(120px, 1.3fr) 1fr auto; gap: 10px; align-items: center; padding: 3px 0; font-size: 14px; }
.frow .fv { font-variant-numeric: tabular-nums; text-align: right; min-width: 70px; }
.fbar { height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.fbar i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.fbar i.inc, .sw.inc { background: #3987e5; }
.fbar i.exp, .sw.exp { background: #d95926; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.flegend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.fchart-wrap { position: relative; }
.fchart { width: 100%; height: auto; display: block; }
.fchart text { fill: var(--muted); font-size: 11px; }
.fchart text.run { fill: var(--text); font-weight: 700; }
.fchart line.grid { stroke: rgba(255,255,255,.07); }
.fchart line.base { stroke: rgba(255,255,255,.3); }
.fchart path.inc { fill: #3987e5; }
.fchart path.exp { fill: #d95926; }
.fchart .hit { fill: transparent; }
.fchart .wk.on .hit { fill: rgba(255,255,255,.05); }
.ftip { position: absolute; pointer-events: none; background: #120e2e; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; min-width: 170px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.ftip div { margin-top: 3px; }

/* Segment-Umschalter, Test-Kennzeichen, Admin */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); border: 0; padding: 7px 14px; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--text); }
.test-badge { background: #ffd23f; color: #241a00; font-weight: 900; border-radius: 8px; padding: 3px 10px; margin-right: 8px; letter-spacing: .08em; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover { background: rgba(255, 255, 255, .05); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; word-break: break-all; max-width: 380px; }
.sev-high { color: #ff6b7d; font-weight: 700; }
.sev-mid { color: #ffc531; font-weight: 700; }
.sev-low { color: var(--muted); }
.pin-input { font-size: 28px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.holdwrap { margin: 16px 0 8px; }
.btn.hold { position: relative; overflow: hidden; width: 100%; padding: 18px; font-size: 16px; user-select: none; touch-action: none; }
.btn.hold .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, .35); }
.btn.hold .lbl { position: relative; }

/* Spielstatistik: Heim (blau) gegen Gast (orange) */
.statbars { margin-top: 8px; }
.srow2 { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 8px; padding: 5px 0; }
.srow2 .sv { font-variant-numeric: tabular-nums; font-weight: 700; text-align: center; }
.srow2 .sn { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--muted); margin-top: -2px; }
.srow2 .sbar { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 8px; }
.srow2 .sl, .srow2 .sr { background: rgba(255, 255, 255, .06); border-radius: 4px; overflow: hidden; display: flex; }
.srow2 .sl { justify-content: flex-end; }
.srow2 .sl i { background: #3987e5; border-radius: 4px 0 0 4px; }
.srow2 .sr i { background: #d95926; border-radius: 0 4px 4px 0; }

/* Erste Schritte */
.onboard { margin-bottom: 14px; border-color: var(--cyan); }
.obsteps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.obstep { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.obstep.ready { border-color: var(--yellow); background: rgba(255, 210, 63, .08); }
.obstep.claimed { opacity: .55; }
.obstep .ck { font-size: 18px; }

.tbl tr.playoff td:first-child { border-left: 4px solid var(--yellow); }
.zk { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; margin: 0 4px 0 6px; }
.zk.promo { background: var(--green); } .zk.playoff { background: var(--yellow); } .zk.releg { background: var(--red); }
.potie { border-bottom: 1px solid var(--line); padding: 8px 0; }

/* Kartenstapel zum Durchwischen */
.po .deck { position: absolute; left: 50%; bottom: 70px; width: 90px; height: 130px; margin-left: -45px; z-index: 4; }
.po .deck::after { content: attr(data-left); position: absolute; right: -34px; top: 50%; transform: translateY(-50%); font-weight: 900; color: var(--muted); }
.po .deckcard { position: absolute; inset: 0; border-radius: 10px; border: 2px solid #ffd23f; background: repeating-linear-gradient(45deg, #2a1a6b 0 8px, #3a2690 8px 16px); box-shadow: 0 4px 10px #0008; }
.po .card3d.arrive { animation: cardArrive .42s cubic-bezier(.2, 1.3, .4, 1) both; transform: rotateY(180deg); }
@keyframes cardArrive { from { transform: translateY(42vh) rotateY(180deg) scale(.35); opacity: .2; } to { transform: rotateY(180deg); opacity: 1; } }
.po .card3d.tease { animation: tease .12s linear infinite; }
.po .card3d.tease .backside { box-shadow: 0 0 40px 10px var(--tease), inset 0 0 30px var(--tease); border-color: var(--tease); }
@keyframes tease { 0%, 100% { transform: rotateY(180deg) rotate(-2deg); } 50% { transform: rotateY(180deg) rotate(2deg) scale(1.03); } }
.po .card3d.flyup { animation: flyUp .55s cubic-bezier(.5, 0, .8, .4) forwards; }
@keyframes flyUp { from { transform: scale(1.04); opacity: 1; } to { transform: translateY(-115vh) rotate(-14deg) scale(.8); opacity: 0; } }
.po .swipehint { position: absolute; left: 0; right: 0; bottom: 214px; text-align: center; font-weight: 800; color: #fff; opacity: 0; transition: opacity .3s; z-index: 5; pointer-events: none; }
.po .swipehint.show { opacity: .85; animation: hintBob 1.2s ease-in-out infinite; }
@keyframes hintBob { 50% { transform: translateY(-8px); } }
.po .rays.rainbow { background: repeating-conic-gradient(from 0deg, #7ff6ff88 0deg 6deg, transparent 6deg 12deg, #ff4fa388 12deg 18deg, transparent 18deg 24deg, #ffd23f88 24deg 30deg, transparent 30deg 36deg); animation-duration: 3s; }
.po.frenzy { animation: frenzyBg 0.5s linear infinite; }
@keyframes frenzyBg { 0% { background: radial-gradient(circle, #3a1a6b, #05030f 70%); } 33% { background: radial-gradient(circle, #1a4a6b, #05030f 70%); } 66% { background: radial-gradient(circle, #6b1a4a, #05030f 70%); } }
.po .rarity-banner.b4 { font-size: 72px; }
.po .rarity-banner.b5 { font-size: 92px; background: linear-gradient(90deg, #7ff6ff, #ff4fa3, #ffd23f, #3ddc84, #7ff6ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: banner 3.8s ease-out both, prism 1s linear infinite; text-shadow: none; filter: drop-shadow(0 0 24px #fff); }
.po .stage { touch-action: none; user-select: none; }

/* Logos als Bild */
.logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-sm .logo-img, .logo-mini .logo-img { display: inline-block; }
.upload-box { margin-top: 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.sponsor.offer { border-style: dashed; }
/* Spielkarten (Paarungen) */
.fixlist { display: flex; flex-direction: column; gap: 6px; }
.fixcard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(57,135,229,.10), rgba(255,255,255,.03) 50%, rgba(217,89,38,.10)); border: 1px solid var(--line); transition: transform .12s, border-color .12s; }
.fixcard:hover { transform: translateY(-1px); border-color: var(--cyan); }
.fixcard.mine { border-color: var(--yellow); box-shadow: 0 0 18px rgba(255,210,63,.18); }
.fixcard .ft { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; min-width: 0; font-weight: 700; }
.fixcard .ft .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixcard .ft.home { justify-content: flex-end; text-align: right; }
.fixcard .ft.won .tn { color: var(--yellow); }
.fixcard .sc { min-width: 70px; text-align: center; font-weight: 900; font-size: 18px; padding: 4px 10px; border-radius: 10px; background: rgba(0,0,0,.35); color: var(--muted); letter-spacing: 1px; }
.fixcard .sc.played { color: #fff; background: linear-gradient(135deg, #3a2690, #1a1046); text-decoration: none; position: relative; }
.fixcard .sc .play { font-size: 10px; margin-left: 6px; color: var(--cyan); }
.logo-fx { display: inline-block; width: 30px; height: 30px; flex: none; }
.logo-fx svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
/* Liga-Kopf */
.league-hero { display: flex; align-items: center; gap: 18px; padding: 16px 20px; margin-bottom: 14px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(255,79,163,.18), rgba(61,226,255,.12)), var(--panel); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.lh-badge { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #241a00;
  background: linear-gradient(135deg, var(--yellow), #ff9d3d); box-shadow: 0 4px 0 #b05a12, 0 0 24px rgba(255,210,63,.4); transform: rotate(-6deg); }
.lh-title { font-size: 28px; font-weight: 900; font-style: italic; letter-spacing: .5px; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.lh-sub { color: var(--muted); font-weight: 700; margin: 2px 0 8px; }
.lh-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; max-width: 420px; }
.lh-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pink)); border-radius: 4px; }
.lh-next { text-align: right; }
/* Büro: VS-Karte */
.vscard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; margin: 8px 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,79,163,.25), transparent 60%), rgba(0,0,0,.25); border: 1px solid var(--line); }
.vsteam { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.vscard > * { min-width: 0; }
.logo-vs { display: block; width: 76px; height: 76px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); animation: bob 3s ease-in-out infinite; }
.logo-vs svg { width: 100%; height: 100%; }
.vsmid { text-align: center; }
.vs { font-size: 40px; font-weight: 900; font-style: italic; background: linear-gradient(180deg, var(--yellow), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.5)); animation: vsPulse 1.6s ease-in-out infinite; }
@keyframes vsPulse { 50% { transform: scale(1.12); } }
/* etwas mehr Spiel-Gefühl überall */
.panel h2, .panel h3 { letter-spacing: .3px; }
.panel h2 { font-style: italic; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.tbl tbody tr { transition: background .12s; }
.tbl tr.mine td { background: rgba(255,210,63,.08); }

/* Mehr Effekte beim Aufdecken */
.po .cardwrap { position: relative; perspective: 1400px; transform-style: preserve-3d; }
.po .cardwrap.pop { animation: cwPop .45s cubic-bezier(.2, 1.6, .4, 1); }
.po .cardwrap.jackpot { animation: cwJackpot 1.1s cubic-bezier(.2, 1.4, .4, 1); }
.po .cardwrap.mega { animation: cwMega 1.8s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes cwPop { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes cwJackpot { 0% { transform: scale(.7) rotate(-8deg); } 30% { transform: scale(1.22) rotate(5deg); } 50% { transform: scale(1.05) rotate(-4deg); } 70% { transform: scale(1.12) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes cwMega { 0% { transform: scale(.5) rotate(-20deg); } 20% { transform: scale(1.35) rotate(10deg); } 35% { transform: scale(1.1) rotate(-8deg); } 50% { transform: scale(1.25) rotate(6deg); } 65% { transform: scale(1.08) rotate(-4deg); } 80% { transform: scale(1.15) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }
.po .face .sheen { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.65) 50%, transparent 60%); transform: translateX(-120%); pointer-events: none; mix-blend-mode: screen; }
.po .face.sheen-once .sheen { animation: sheen 1s ease-out .15s both; }
.po .face.holo .sheen { animation: sheen 1s ease-out .15s both, sheenLoop 2.4s ease-in-out 1.3s infinite; background: linear-gradient(115deg, transparent 35%, rgba(127,246,255,.5) 45%, rgba(255,79,163,.5) 50%, rgba(255,210,63,.5) 55%, transparent 65%); }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes sheenLoop { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
.po .face.blink1 { animation: borderBlink .32s ease-in-out 2; }
.po .face.blink2 { animation: borderBlink .28s ease-in-out 4; }
.po .face.blink3 { animation: borderBlink .22s ease-in-out 8, glowPulse 1.2s ease-in-out 1.8s infinite; }
@keyframes borderBlink { 50% { box-shadow: 0 0 120px 20px var(--rc), inset 0 0 50px var(--rc); border-color: #fff; } }
@keyframes glowPulse { 50% { box-shadow: 0 0 110px 14px var(--rc); } }
.po .face.r5.revealed { animation: borderBlink .18s ease-in-out 12, rainbowBorder 1.2s linear infinite, prism 3s linear infinite; }
@keyframes rainbowBorder { 0% { border-color: #7ff6ff; } 25% { border-color: #ff4fa3; } 50% { border-color: #ffd23f; } 75% { border-color: #3ddc84; } 100% { border-color: #7ff6ff; } }
.po .edgeglow { position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: inset 0 0 120px 30px var(--ec, #fff); transition: opacity .25s; z-index: 3; }
.po .edgeglow.on { opacity: 1; }
.po .edgeglow.pulse { animation: edgePulse .5s ease-in-out infinite; }
.po .edgeglow.rainbow { animation: edgeRainbow .6s linear infinite; }
@keyframes edgePulse { 50% { opacity: .35; } }
@keyframes edgeRainbow { 0% { box-shadow: inset 0 0 140px 40px #7ff6ff; } 33% { box-shadow: inset 0 0 140px 40px #ff4fa3; } 66% { box-shadow: inset 0 0 140px 40px #ffd23f; } 100% { box-shadow: inset 0 0 140px 40px #7ff6ff; } }
.po .strobe { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 3; mix-blend-mode: screen; }
.po .strobe.go { animation: strobe .12s ease-out; }
@keyframes strobe { 0% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .po .strobe, .po .edgeglow.pulse, .po .edgeglow.rainbow, .po.frenzy { animation: none !important; } }

/* Aufgaben */
.missions { margin-bottom: 14px; border-color: var(--yellow); }
.mission { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; }
.mission.ready { border-color: var(--yellow); background: rgba(255, 210, 63, .08); box-shadow: 0 0 14px rgba(255, 210, 63, .15); }
.mission.claimed { opacity: .5; }
.mbar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 5px; }
.mbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), #ff9d3d); }
.coinchip { font-size: 12px; font-weight: 800; color: var(--yellow); border: 1px solid rgba(255,210,63,.4); border-radius: 999px; padding: 2px 8px; }
.money { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(61, 220, 132, .12); color: #7dffb0; border: 1px solid rgba(61, 220, 132, .35); font-weight: 800; }
.money::before { content: "💵"; font-size: 13px; }
.money.neg { color: var(--red); border-color: var(--red); }

/* Fähigkeiten, Stärken/Schwächen, Eigenschaften */
.stat .bar { position: relative; }
.stat .bar em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: rgba(255,255,255,.55); border-radius: 1px; }
.sw-up { color: var(--green); font-size: 11px; }
.sw-down { color: var(--red); font-size: 11px; }
.ts { color: var(--yellow); letter-spacing: 1px; }
.trait { padding: 6px 8px; border-left: 3px solid var(--line); margin: 4px 0; background: rgba(255,255,255,.03); border-radius: 0 8px 8px 0; }
.trait.gut { border-left-color: var(--green); }
.trait.gemischt { border-left-color: var(--yellow); }
.trait.schwach { border-left-color: var(--red); }
.mcard .inj.light { background: rgba(255, 197, 49, .85); color: #241a00; }
.mcard .inj.camp { background: rgba(61, 226, 255, .85); color: #001820; right: auto; left: 6px; }

.shop-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.shopitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-bottom: 20px; }
.shopitem { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.si-ic { font-size: 34px; }
.pill.up { color: #7dffb0; } .pill.down { color: #ff9aa8; }

/* Live-Spiele */
.badge-live { font-size: 12px; font-weight: 900; color: #fff; background: #ff3b5c; padding: 3px 8px; border-radius: 8px; animation: livepulse 1.4s infinite; }
.badge-lock { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: rgba(255, 210, 63, .18); color: #ffd23f; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; display: inline-block; animation: livepulse 1.4s infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.live-banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; text-decoration: none; color: inherit; border: 1px solid rgba(255, 59, 92, .5); }
.kickoff-box { text-align: center; margin: 14px 0; }
.kick-in { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.kick-cd { font-size: 40px; font-weight: 900; margin: 6px 0; font-variant-numeric: tabular-nums; }

/* Startseite: knackiger */
.auth-sub { font-size: 15px; font-weight: 900; letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); margin-top: 6px; }
.auth-hero .tag.catchy { font-size: 34px; font-weight: 900; color: var(--text); line-height: 1.15; margin: 0 0 8px;
  background: linear-gradient(90deg, #ff4fa3, #ffd23f, #3de2ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-box .agb-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 13px; line-height: 1.4; }
.auth-box .agb-check input { width: auto; margin-top: 2px; }
.auth-box .code-input { letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.auth-foot { grid-column: 1 / -1; text-align: center; }
.auth-foot a { color: inherit; }

/* Profil, Feedback */
.avatar-mini { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--panel2); border: 2px solid var(--cyan); text-decoration: none; }
.avatar-mini img, .avatar-mini svg, .avatar-big img, .avatar-big svg { width: 100%; height: 100%; object-fit: cover; }
.avatar-big { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--panel2); border: 3px solid var(--cyan); display: flex; align-items: center; justify-content: center; font-size: 40px; flex-shrink: 0; }
.av-empty { font-size: 16px; }
.fb-item { border-bottom: 1px solid var(--line); padding: 8px 0; }
.fb-reply { color: var(--cyan); margin-top: 4px; }
.badge-st { font-size: 11px; padding: 2px 8px; border-radius: 8px; background: var(--panel2); }
.danger-zone { border-color: rgba(255, 80, 100, .4); }

.codes { font-size: 18px; letter-spacing: .15em; user-select: all; }
.mono { font-family: ui-monospace, monospace; letter-spacing: .08em; }

/* ---------- Handy & Tablet ---------- */
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.menu-btn { display: none; }
img, svg, canvas { max-width: 100%; }
.pitchc { width: 100%; height: auto; }

@media (max-width: 1100px) {
  .nav a { padding: 6px 8px; font-size: 13px; }
}
/* Tablet hochkant und Handy: Menü einklappen */
@media (max-width: 900px) {
  .topbar { padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 20px; flex-shrink: 0; }
  .topbar .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 10px 12px 14px; background: rgba(13, 10, 31, .97); border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: calc(100vh - 70px); overflow: auto; }
  .topbar.menu-open .nav { display: grid; }
  .nav a { padding: 12px 8px; font-size: 15px; text-align: center; background: var(--panel); border-radius: 12px; }
  .wallet { gap: 6px; font-size: 13px; }
  .wallet .lvl { display: none; }
  .coin, .money { padding: 5px 9px; }
  .fb-btn { padding: 6px 9px; font-size: 16px; }
  .fb-txt { display: none; }
  .test-badge { display: none; }
  main { padding: 12px; }
  .panel { padding: 14px; }
  .modal-bg { padding: 8px; align-items: flex-start; }
  .modal { max-height: 96vh; }
  .ticker { height: 320px; }
}
@media (max-width: 600px) {
  .topbar .nav { grid-template-columns: repeat(2, 1fr); }
  .teamlogo { width: 32px; height: 32px; }
  main { padding: 8px; }
  .panel { padding: 12px; border-radius: 14px; }
  h2 { font-size: 19px; }
  .grid { gap: 10px; }
  /* breite Tabellen seitlich scrollen statt das Layout zu sprengen */
  .cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .tok { width: 64px; }
  .tok .face { width: 42px; height: 42px; border-width: 2px; }
  .tok .lbl, .tok .zn { font-size: 10px; }
  .tpitch.small-pitch .tok { width: 64px; }
  .tpitch.small-pitch .tok .face { width: 38px; height: 38px; }
  .seg { flex-wrap: wrap; }
  .row > .inp { min-width: 0; flex: 1 1 140px; }
  .kick-cd { font-size: 30px; }
  .auth-wrap { padding: 20px 16px; gap: 16px; }
  .auth-hero .parade .mon { width: 64px; height: 64px; margin-right: -12px; }
  .auth-hero .tag.catchy { font-size: 26px; }
  .auth-hero .tag { font-size: 16px; }
  .fixcard .tn { font-size: 12px; }
  .live-banner { font-size: 14px; }
}

.auth-wrap > * { min-width: 0; }
.auth-hero .parade { overflow: hidden; }
@media (max-width: 600px) { .auth-sub { letter-spacing: .12em; font-size: 12px; } .auth-box { max-width: none; } }

.lineup-wrap > * { min-width: 0; }
.tpitch { max-width: 100%; }
.money, .coin { white-space: nowrap; }
@media (max-width: 600px) { .tpitch { max-height: none; width: 100%; } }

/* Taktik-Anweisungen */
.pgroup { margin-top: 12px; }
.pgroup-t { font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.plan-list span { display: inline-block; margin: 2px 10px 2px 0; }

/* Nie seitlich scrollen – auf keinem Gerät */
html, body { max-width: 100%; overflow-x: hidden; }
main, .panel, .modal { min-width: 0; overflow-wrap: break-word; }
.map-scroll { overflow-x: hidden; }
.logo.big { font-size: clamp(34px, 11vw, 72px); }
.params { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
/* Tabellen werden auf schmalen Bildschirmen zu Karten (Beschriftung aus der Kopfzeile) */
@media (max-width: 760px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tbl td { display: block; position: relative; padding: 3px 4px; border: 0; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  .tbl td[data-label] { padding-left: calc(38% + 10px); }
  .tbl td[data-label]::before { content: attr(data-label); position: absolute; left: 4px; top: 4px; width: 38%; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: none; overflow-wrap: anywhere; }
  .tbl td:empty { display: none; }
  .mapgrid { gap: 4px; }
  .map-scroll { padding: 10px; }
}
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .topbar .wallet { flex: 1 1 100%; justify-content: flex-end; }
  .topbar .nav { top: 100%; }
}
@media (max-width: 600px) {
  .scoreboard { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; padding: 8px 10px; }
  .scoreboard > * { min-width: 0; }
  .scoreboard .tn { font-size: 13px; overflow-wrap: anywhere; }
  .scoreboard .sc { font-size: 28px; }
  .editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .editor > *, .editor label { min-width: 0; }
  .editor select, .editor input { min-width: 0; width: 100%; }
}
input[type=file] { max-width: 100%; min-width: 0; }
.scoreboard .pen-sc { font-size: 12px; font-weight: 900; color: var(--yellow); text-align: center; min-height: 0; }

/* Beta-Kennzeichnung */
.logo-row { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.beta-badge { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .14em; padding: 3px 7px; border-radius: 7px; color: #1a1030;
  background: linear-gradient(90deg, #ff4fa3, #ffd23f); box-shadow: 0 0 12px rgba(255, 79, 163, .45); align-self: center; }
.beta-badge.big { font-size: 16px; padding: 5px 12px; border-radius: 10px; margin-top: 10px; align-self: flex-start; transform: rotate(-4deg); }
/* Obere Leiste am Desktop: alles in einer Zeile */
.fb-btn { display: inline-flex; gap: 6px; align-items: center; }
@media (min-width: 901px) { .topbar { flex-wrap: nowrap; gap: 12px; } .topbar .nav { flex-wrap: nowrap; } }
@media (max-width: 1720px) and (min-width: 901px) {
  .topbar { gap: 8px; padding: 8px 14px; }
  .nav a { padding: 6px 7px; font-size: 13px; }
  .wallet { gap: 6px; }
  .wallet .lvl { display: none; }
  .coin, .money { padding: 5px 9px; font-size: 13px; }
  .fb-txt, .adm-txt { display: none; }
  .test-badge { padding: 3px 6px; margin-right: 0; }
}
@media (max-width: 1300px) and (min-width: 901px) {
  .nav a { padding: 6px 5px; font-size: 12.5px; }
  .teamlogo { width: 34px; height: 34px; }
}

/* Kleine Laptops und Tablets quer: Menü einklappen statt abschneiden */
@media (max-width: 1320px) and (min-width: 901px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 20px; flex-shrink: 0; }
  .topbar .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 10px 14px 14px; background: rgba(13, 10, 31, .97); border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .topbar.menu-open .nav { display: grid; }
  .topbar .nav a { padding: 12px 8px; font-size: 15px; text-align: center; background: var(--panel); border-radius: 12px; }
  .topbar .spacer { flex: 1; }
}

/* Countdown bis zum Saisonstart (Startseite) */
.season-cd { margin: 18px 0 4px; padding: 12px 16px; border-radius: 16px; display: inline-block; max-width: 100%;
  background: linear-gradient(135deg, rgba(255, 79, 163, .18), rgba(61, 226, 255, .14)); border: 1px solid rgba(255, 210, 63, .45); box-shadow: 0 0 24px rgba(255, 79, 163, .2); }
.cd-title { font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.cd-boxes { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-box { min-width: 64px; text-align: center; padding: 6px 8px; border-radius: 12px; background: rgba(0, 0, 0, .35); }
.cd-box b { display: block; font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-box span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cd-when { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .cd-box { min-width: 54px; } .cd-box b { font-size: 24px; } }

/* Handbuch im Spiel */
#view .hb { max-width: 900px; margin: 0 auto; line-height: 1.6; }
#view .hb h2 { font-size: 21px; margin-top: 30px; padding-top: 8px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
#view .hb .toc { columns: 2; column-gap: 24px; padding-left: 18px; }
#view .hb table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 14px; }
#view .hb td, #view .hb th { border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: left; vertical-align: top; }
@media (max-width: 600px) { #view .hb .toc { columns: 1; } }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--panel2); }
.kpis b { font-size: 18px; }

/* Gemeinschaft: Liga-Reiter, Zeitung, Pinnwand, Bestenlisten, Ruhmeshalle, Vitrine, Chronik */
.league-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.league-tabs a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 800; background: var(--panel); border: 1px solid var(--line); }
.league-tabs a.on { color: var(--text); border-color: var(--cyan); background: var(--panel2); }
.news { display: grid; gap: 12px; }
.newspaper { background: linear-gradient(180deg, #f6efe0, #e9dfc8); color: #2a2218; border-color: #cbb98f; }
.newspaper .muted { color: #6f6150; }
.newspaper.latest { box-shadow: 0 0 0 2px #ffd23f, 0 10px 30px rgba(0,0,0,.35); }
.news-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; border-bottom: 3px double #2a2218; padding-bottom: 4px; }
.news-mast { font-family: Georgia, 'Times New Roman', serif; font-weight: 900; letter-spacing: .12em; }
.news-title { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; margin: 10px 0 6px; color: #1d160e; }
.newspaper ul { margin: 0; padding-left: 18px; }
.newspaper li { margin: 4px 0; }
.board { margin-top: 12px; display: grid; gap: 8px; }
.board-item { padding: 10px; border-radius: 12px; background: var(--panel2); }
.board-text { white-space: pre-wrap; margin-top: 4px; overflow-wrap: anywhere; }
.mini-face { display: inline-block; width: 28px; height: 28px; vertical-align: middle; margin-right: 6px; }
.mini-face svg { width: 100%; height: 100%; }
.eleven-row { margin: 8px 0; }
.eleven-players { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.eleven-p { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 90px; padding: 6px; border-radius: 12px; background: var(--panel2); }
.eleven-p .mini-face { width: 40px; height: 40px; margin: 0; }
.hall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.hall-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--panel2); }
.hall-ic { width: 46px; height: 46px; flex-shrink: 0; }
.trophy-svg { width: 100%; height: 100%; }
.vitrine { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px; padding: 14px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.25)); border: 1px solid rgba(255, 210, 63, .35); }
.trophy { text-align: center; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.25); }
.trophy.hidden-t { opacity: .45; }
.trophy-art { width: 90px; height: 90px; margin: 0 auto 6px; filter: drop-shadow(0 0 10px rgba(255, 210, 63, .45)); }
.chron { padding: 4px 0; border-bottom: 1px solid var(--line); }
.chron.titel, .chron.pokal { color: var(--yellow); font-weight: 800; }
.chron.aufstieg { color: #7dffb0; }
.chron.abstieg { color: #ff9aa8; }

/* Konferenz */
.conf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.conf-card { display: block; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.conf-card.mine { border-color: var(--cyan); }
.conf-card.live { box-shadow: 0 0 0 1px rgba(255, 59, 92, .35); }
.conf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin: 6px 0; }
.conf-team { font-weight: 800; overflow-wrap: anywhere; }
.conf-team.away { text-align: right; }
.conf-score { font-size: 26px; font-weight: 900; font-style: italic; }
.conf-clock { text-align: center; color: var(--yellow); font-weight: 800; font-size: 13px; }
.conf-goals { margin-top: 6px; color: var(--muted); }
.conf-list { display: grid; gap: 4px; max-height: 40vh; overflow-y: auto; margin-top: 8px; }
.conf-goal-banner { margin-top: 12px; padding: 12px 16px; border-radius: 14px; font-weight: 900; font-size: 18px; background: linear-gradient(90deg, #ffd23f, #ff4fa3); color: #1a1030; }
.goal-flash { animation: goalflash 1.2s ease-in-out 3; }
@keyframes goalflash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,210,63,0); } 50% { box-shadow: 0 0 0 4px rgba(255,210,63,.9); } }
@media (prefers-reduced-motion: reduce) { .goal-flash { animation: none; } }

/* Wettbewerbe */
.cup-row { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--panel2); margin: 6px 0; flex-wrap: wrap; }
.cup-ic { width: 42px; height: 42px; flex-shrink: 0; }
.cup-big { width: 80px; height: 80px; flex-shrink: 0; }
.cup-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cup-winner { margin-top: 6px; font-weight: 900; color: var(--yellow); }
.design-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.design { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; min-width: 0; }
.design.on { border-color: var(--yellow); box-shadow: 0 0 10px rgba(255, 210, 63, .4); }
.design svg { width: 44px; height: 44px; }
.design span { overflow-wrap: anywhere; text-align: center; font-size: 11px; }
.invite-list { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.cup-fx { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); }
.cup-fx .won { font-weight: 900; color: var(--yellow); }
@media (max-width: 600px) { .cup-fx { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; } .cup-fx > .small.muted:first-child { grid-column: 1 / -1; } .design-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* mehr Menüpunkte: auf mittleren Bildschirmen kompakter, damit alles in eine Zeile passt */
@media (max-width: 1560px) and (min-width: 1321px) {
  .topbar { gap: 6px; padding: 8px 10px; }
  .topbar .nav { gap: 1px; }
  .nav a { padding: 6px 5px; font-size: 12.5px; }
  .topbar .beta-badge { font-size: 9px; padding: 2px 5px; }
  .teamlogo { width: 32px; height: 32px; }
}
#view .hb table { table-layout: fixed; } #view .hb td, #view .hb th { overflow-wrap: anywhere; hyphens: auto; }
.mcard .inj.ban { top: 56px; background: rgba(40, 10, 20, .85); }
.day-pick { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 8px; }
.mach { display: flex; flex-wrap: wrap; gap: 6px; }
.mach .pill.locked { opacity: .45; }
.mach .pill.done { border-color: var(--gold, #ffc531); }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.award { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(255, 197, 49, .08); border: 1px solid rgba(255, 197, 49, .3); min-width: 0; }
.award > div { min-width: 0; overflow-wrap: anywhere; }

/* Entwicklung (Qualitätsaufstieg) */
.po.evo .stage { display: grid; place-items: center; }
.evo-card { transition: transform .3s, filter .3s; }
.evo-card.evo-charge { animation: evoShake .18s infinite; filter: brightness(1.25) drop-shadow(0 0 22px var(--rc, #fff)); }
.evo-card.evo-white { filter: brightness(6) saturate(0); transform: scale(1.08); }
.evo-card.evo-reveal { animation: evoPop .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes evoShake { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-3px, 1px) rotate(-1deg); } 75% { transform: translate(3px, -1px) rotate(1deg); } }
@keyframes evoPop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.evo-sum { position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); text-align: center; background: rgba(10, 8, 30, .8); border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px; padding: 12px 18px; max-width: calc(100vw - 24px); z-index: 5; }
.evo-line { font-size: 22px; font-weight: 900; margin: 6px 0; }
@media (prefers-reduced-motion: reduce) { .evo-card.evo-charge { animation: none; } }
/* Erfolgs-Board */
.ach-head { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, rgba(255, 197, 49, .14), rgba(40, 20, 90, .6)); border-color: rgba(255, 197, 49, .45); }
.ach-head .ach-shield { width: 74px; height: 84px; font-size: 22px; }
.ach-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.ach-nav { display: flex; flex-direction: column; gap: 6px; }
.ach-tab { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 197, 49, .18); color: inherit; text-decoration: none; font-weight: 700; min-width: 0; }
.ach-tab:hover { border-color: rgba(255, 197, 49, .5); }
.ach-tab.on { background: linear-gradient(90deg, rgba(255, 197, 49, .25), rgba(255, 197, 49, .05)); border-color: #ffc531; color: #fff3c4; }
.ach-tab small { color: #ffd76a; }
.ach-main { min-width: 0; }
.ach-panel { border-color: rgba(255, 197, 49, .3); }
.ach-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin: 8px 0; border-radius: 14px; min-width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); border: 1px solid rgba(255, 255, 255, .1); }
.ach-row.done { background: linear-gradient(90deg, rgba(255, 197, 49, .2), rgba(120, 70, 0, .08)); border-color: rgba(255, 197, 49, .6); box-shadow: inset 0 0 18px rgba(255, 197, 49, .12); }
.ach-row.open { filter: saturate(.55); }
.ach-row.open .ach-title { color: #c9c3e6; }
.ach-ic { flex: 0 0 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 12px; background: radial-gradient(circle at 35% 30%, #3b2f7a, #120c33);
  border: 2px solid #8a6a1c; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), inset 0 0 10px rgba(255, 197, 49, .25); }
.ach-row.done .ach-ic { border-color: #ffc531; box-shadow: 0 0 12px rgba(255, 197, 49, .55), inset 0 0 10px rgba(255, 197, 49, .35); }
.ach-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ach-title { font-weight: 900; font-size: 16px; color: #ffe9a8; }
.ach-desc { font-size: 13px; opacity: .85; }
.ach-date { font-size: 12px; color: #ffd76a; margin-top: 3px; }
.ach-reward { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; }
.ach-bar { position: relative; height: 16px; border-radius: 8px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 197, 49, .35); overflow: hidden; margin-top: 5px; }
.ach-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #a86a00, #ffc531); }
.ach-bar span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 14px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.ach-shield { position: relative; flex: 0 0 auto; width: 44px; height: 50px; display: grid; place-items: center; font-size: 14px; }
.ach-shield svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ach-shield path { fill: #3a3358; stroke: #6e6690; stroke-width: 2; }
.ach-shield.on path { fill: #c48a12; stroke: #ffe27a; }
.ach-shield b { position: relative; color: #fff; text-shadow: 0 1px 3px #000; }
.ach-count { flex: 0 0 auto; font-weight: 900; font-size: 18px; color: #ffd76a; min-width: 30px; text-align: center; }
.ach-cat-line { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto; gap: 10px; align-items: center; color: inherit; text-decoration: none; margin: 8px 0; }
.ach-cat-line .ach-bar { margin: 0; }
.ach-pop { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; display: flex; gap: 12px; align-items: center; cursor: pointer;
  padding: 12px 18px; border-radius: 16px; background: linear-gradient(135deg, #2a1e5c, #120c33); border: 2px solid #ffc531;
  box-shadow: 0 0 30px rgba(255, 197, 49, .5); max-width: calc(100vw - 24px); animation: achIn .5s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .7s, transform .7s; }
.ach-pop.out { opacity: 0; transform: translate(-50%, 20px); }
.ach-pop-k { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #ffd76a; font-weight: 800; }
.ach-pop-n { font-size: 18px; font-weight: 900; color: #fff3c4; }
@keyframes achIn { from { opacity: 0; transform: translate(-50%, 40px) scale(.8); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@media (max-width: 900px) {
  .ach-layout { grid-template-columns: minmax(0, 1fr); }
  .ach-nav { flex-direction: row; flex-wrap: wrap; }
  .ach-tab { flex: 1 1 140px; padding: 8px 10px; font-size: 13px; }
  .ach-cat-line { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.po.evo .cardwrap { transform: translateY(-9vh) scale(.86); }
.evo-sum { bottom: 3vh; }

/* Entwicklungsbalken und Monster-Erfolge in Stufen */
.evo-box { margin-top: 16px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .04)); border: 1px solid var(--rc); box-shadow: 0 0 18px color-mix(in srgb, var(--rc) 35%, transparent); }
.evo-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 15px; }
.evo-bar { position: relative; height: 22px; border-radius: 11px; background: rgba(0, 0, 0, .5); overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); }
.evo-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--rc), var(--nc)); box-shadow: 0 0 12px var(--nc); transition: width .6s; }
.evo-bar.full i { animation: evoFull 1.4s ease-in-out infinite; }
.evo-bar span { position: relative; display: block; text-align: center; line-height: 20px; font-size: 12px; font-weight: 900; text-shadow: 0 1px 3px #000; }
@keyframes evoFull { 50% { filter: brightness(1.5); } }
.mfam { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 8px; }
.mfam-i { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); min-width: 0; opacity: .6; }
.mfam-i.on { opacity: 1; border-color: rgba(255, 197, 49, .55); background: linear-gradient(90deg, rgba(255, 197, 49, .14), rgba(255, 255, 255, .02)); }
.mfam-ic { font-size: 22px; flex: 0 0 auto; }
.mfam-b { min-width: 0; overflow-wrap: anywhere; }
.mfam-stars { color: #ffc531; font-size: 11px; letter-spacing: 1px; }
