/* Moderner Look (v2.5.0): liegt ueber style.css. Zum Abschalten die Zeile mit modern.css in lib.php (page_head) entfernen. */
:root {
    --bg: #0c0f13; --panel: #171b22; --panel2: #202632; --line: rgba(255, 255, 255, .08);
    --text: #e8ebf1; --muted: #98a1b3; --accent: #2fb5a3; --accent2: #62dccb;
    --glass: linear-gradient(180deg, rgba(36, 42, 54, .78), rgba(20, 24, 31, .80));
    --glass-line: rgba(255, 255, 255, .075);
    --shadow: 0 10px 28px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .045);
    --radius: 14px;
}
html { color-scheme: dark; scrollbar-color: #39414f #0c0f13; }
body {
    font-family: Inter, "Segoe UI Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(1100px 520px at 15% -8%, rgba(47, 181, 163, .11), transparent 62%),
        radial-gradient(800px 460px at 100% 0%, rgba(98, 220, 203, .05), transparent 58%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .013) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #151a21 0%, #0b0d11 100%);
    background-attachment: fixed;
}
h1 { font-size: 1.65rem; letter-spacing: -.01em; }
h2 { letter-spacing: .01em; }
a { transition: color .15s ease; }

/* Kopfzeile: durchscheinend mit Unschaerfe */
.top { background: rgba(14, 17, 22, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--glass-line); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.brand { background: linear-gradient(90deg, #62dccb, #2fb5a3 60%, #8de9dd); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .01em; }
.top nav a { border-radius: 9px; color: #cfd5e1; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.top nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.top nav a.on { background: rgba(47, 181, 163, .16); color: var(--accent2); box-shadow: inset 0 0 0 1px rgba(98, 220, 203, .28); }
.who a { color: var(--text); font-weight: 600; }
.who a:hover { color: var(--accent2); text-decoration: none; }

/* Karten und Kacheln: Glas mit weichem Schatten */
.tile, .panel, .filters, .card, .detail .oracle, .login {
    background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tile { padding: 1rem 1.1rem; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tile:hover { transform: translateY(-2px); border-color: rgba(98, 220, 203, .28); box-shadow: 0 14px 30px rgba(0, 0, 0, .42), 0 0 0 1px rgba(98, 220, 203, .08), inset 0 1px 0 rgba(255, 255, 255, .05); }
.tile .v { font-size: clamp(1.35rem, 1.1vw + .95rem, 1.75rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel { padding: 1.1rem 1.15rem; }
.panel h2 { font-size: 1rem; }
.card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(98, 220, 203, .45); box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 22px rgba(47, 181, 163, .16); }
.card .img { border-radius: 0; }
.tiles { gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.grid2 { gap: 1.1rem; }

/* Tabellen */
table.list tbody tr, .tbl tbody tr { transition: background .12s ease; }
.tbl tbody tr:hover, table.list tbody tr:hover { background: rgba(255, 255, 255, .03); }
th, td { border-bottom-color: rgba(255, 255, 255, .06); }
th { text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }

/* Eingabefelder und Knoepfe */
input, select, textarea { background: rgba(10, 13, 18, .6); border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 181, 163, .22); }
button, .btn { background: linear-gradient(180deg, #3cc7b4, #27a291); color: #041a17; border-radius: 9px; box-shadow: 0 4px 14px rgba(47, 181, 163, .25); transition: filter .15s ease, transform .1s ease, box-shadow .15s ease; }
button:hover, .btn:hover { background: linear-gradient(180deg, #4ad6c2, #2fb5a3); filter: brightness(1.04); box-shadow: 0 6px 18px rgba(47, 181, 163, .35); }
button:active { transform: translateY(1px); }
button:disabled { filter: grayscale(.7) brightness(.7); box-shadow: none; cursor: not-allowed; }
button.ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: none; border: 1px solid rgba(255, 255, 255, .1); }
button.ghost:hover { background: rgba(255, 255, 255, .11); box-shadow: none; }
button.danger { background: rgba(211, 32, 42, .18); color: #ff9a9a; box-shadow: none; border: 1px solid rgba(211, 32, 42, .5); }
button.danger:hover { background: rgba(211, 32, 42, .3); }

/* Kleinteile */
.pill { border-radius: 999px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.chip { border-radius: 999px; }
.pager a, .pager span { border-radius: 9px; background: var(--glass); border-color: var(--glass-line); }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.warn, .ok, .err { border-radius: 10px; }
.subnav { border-radius: var(--radius); }
.badge { box-shadow: 0 0 10px rgba(245, 158, 66, .5); }

/* Login */
.login { padding: 1.9rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0c0f13; }
::-webkit-scrollbar-thumb { background: #2d3441; border-radius: 8px; border: 2px solid #0c0f13; }
::-webkit-scrollbar-thumb:hover { background: #3b4454; }

@media (max-width: 720px) {
    h1 { font-size: 1.4rem; }
    .tile .v { font-size: 1.45rem; }
    .top { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .tile:hover, .card:hover { transform: none; }
}

/* Profilfoto (v2.6.0): rund, oder Kreis mit Anfangsbuchstaben */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; vertical-align: middle;
    margin-right: .5rem; color: #fff; font-weight: 600; flex: none; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.who .avatar { margin-right: .45rem; }
.avatarbox { display: flex; gap: 1.2rem; align-items: center; max-width: 720px; margin-bottom: 1rem; }
.avatarbox .avatar { margin-right: 0; border-width: 2px; border-color: rgba(98, 220, 203, .45); box-shadow: 0 0 0 4px rgba(47, 181, 163, .12), 0 6px 18px rgba(0, 0, 0, .4); }
@media (max-width: 720px) { .avatarbox { flex-direction: column; align-items: flex-start; } }

/* Manakurve als Ringe (v2.7.0) */
.phead { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; }
.phead h2 { margin: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.seg button, .seg button:hover, .seg button:active { width: auto; padding: .2rem .8rem; font-size: .8rem; background: transparent; box-shadow: none; filter: none; color: var(--muted); border: 0; border-radius: 999px; transform: none; }
.seg button:hover { color: var(--text); }
.seg button.on, .seg button.on:hover { background: rgba(47, 181, 163, .22); color: var(--accent2); box-shadow: inset 0 0 0 1px rgba(98, 220, 203, .35); }
.ringwrap { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.ringcanvas { position: relative; width: min(100%, 270px); aspect-ratio: 1; flex: none; }
.ringcanvas canvas { max-height: none !important; }
.ringlegend { list-style: none; margin: 0; padding: 0; flex: 1 1 170px; min-width: 170px; }
.ringlegend li { display: grid; grid-template-columns: 12px 1fr auto 3.2rem; align-items: center; gap: .55rem; padding: .28rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .88rem; font-variant-numeric: tabular-nums; }
.ringlegend li:last-child { border-bottom: 0; }
.ringlegend .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.ringlegend .nm { color: var(--muted); }
.ringlegend .pc { text-align: right; color: var(--muted); font-size: .8rem; }

/* Menue mit Aufklappmenues (v2.8.0) */
.top { gap: .6rem 1rem; }
.top nav { display: flex; align-items: center; gap: .2rem; flex: 1; overflow: visible; white-space: nowrap; }
.top nav .navlink, .ddbtn { padding: .42rem .85rem; border-radius: 9px; color: #cfd5e1; font-weight: 500; }
.dd { position: relative; }
.ddbtn { display: inline-flex; align-items: center; gap: .4rem; width: auto; background: transparent; border: 0; box-shadow: none; cursor: pointer; font-size: inherit; }
.ddbtn:hover, .dd.open > .ddbtn { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: none; filter: none; }
.dd.on > .ddbtn { background: rgba(47, 181, 163, .16); color: var(--accent2); box-shadow: inset 0 0 0 1px rgba(98, 220, 203, .28); }
.ddbtn:focus-visible, .navlink:focus-visible, .ddmenu a:focus-visible, .navtoggle:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.car { width: .42rem; height: .42rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; opacity: .8; }
.dd.open .car { transform: translateY(1px) rotate(225deg); }
.ddmenu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: .4rem; border-radius: 14px; z-index: 30;
    background: linear-gradient(180deg, #1b3136, #142226);   /* deckend und tuerkis getoent (v2.81.0): hebt sich von Seite und Kacheln ab */
    border: 1px solid rgba(95, 214, 198, .38); box-shadow: 0 20px 44px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(95, 214, 198, .55); animation: ddin .15s ease-out; }
.ddmenu.right { left: auto; right: 0; }
.dd.open .ddmenu { display: block; }
html:not(.js) .dd:hover .ddmenu, html:not(.js) .dd:focus-within .ddmenu { display: block; }
.top nav .ddmenu a, .ddmenu a { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .5rem .75rem; border-radius: 9px; color: var(--text); white-space: nowrap; transition: background .12s ease; }
.ddmenu a:hover { background: rgba(95, 214, 198, .12); text-decoration: none; }
.ddmenu a.on { background: rgba(47, 181, 163, .16); color: var(--accent2); }
.ddmenu .v { color: var(--muted); }
.ddhead { display: flex; flex-direction: column; padding: .45rem .75rem .55rem; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: .3rem; }
.ddhead small { color: var(--muted); }
.ddsep { height: 1px; background: rgba(255, 255, 255, .08); margin: .35rem .4rem; }
.usermenu .ddbtn { padding: .22rem .65rem .22rem .3rem; }
.usermenu .avatar { margin-right: .1rem; }
.uname { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.top .hsearch { min-width: 190px; }
.navtoggle { display: none; }
@keyframes ddin { from { opacity: 0; transform: translateY(-5px); } }

@media (max-width: 1320px) {   /* Handy-Menü (Burger) schon unter 1320 px, weil die Kopfzeile mit vielen Menüpunkten sonst überläuft (v2.101.0) */
    .top { flex-wrap: wrap; }
    .brand { order: 1; }
    .navtoggle { display: inline-flex; order: 3; width: auto; padding: .35rem .75rem; font-size: 1.15rem; line-height: 1; }
    .usermenu { order: 2; margin-left: auto; }
    .top .hsearch { order: 4; flex: 1 0 100%; }
    .top nav { order: 5; flex: 1 0 100%; display: none; flex-direction: column; align-items: stretch; gap: .15rem; overflow: visible; white-space: normal; padding-bottom: .2rem; }
    .top nav.open { display: flex; }
    .top nav .navlink, .top nav .ddbtn { width: 100%; justify-content: space-between; padding: .65rem .8rem; }
    .top nav .ddmenu { position: static; min-width: 0; box-shadow: none; animation: none; background: rgba(95, 214, 198, .08); border-color: rgba(95, 214, 198, .25); backdrop-filter: none; margin: .15rem 0 .35rem .8rem; }
    .top nav .ddmenu a { padding: .65rem .8rem; }
    .usermenu .ddmenu { position: absolute; }
}
@media (max-width: 600px) { .uname { display: none; } .usermenu .ddbtn { padding-right: .4rem; } }

/* Systemstatus (v3.0.0) */
.statust td { vertical-align: top; padding: .5rem .5rem; }
.statust .lv { width: 5.2rem; white-space: nowrap; }
.statust .lb { font-weight: 600; width: 32%; }
.statust .dt { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.statusgrid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); }

/* Preisentwicklung (v2.11.0) */
.gain { color: #6fe39c; } .loss { color: #ff8a8a; }
.tile .v.gain, .tile .v.loss { text-shadow: 0 0 16px currentColor; }
a.pill.on { background: rgba(47, 181, 163, .22); border-color: rgba(98, 220, 203, .45); color: var(--accent2); }
.modebar a.pill { padding: .25rem .8rem; }

/* Sets (v2.11.0) */
.bar { display: inline-block; vertical-align: middle; width: 150px; max-width: 100%; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2fb5a3, #62dccb); box-shadow: 0 0 10px rgba(47, 181, 163, .5); }
.bar.full i { background: linear-gradient(90deg, #4bd87f, #9be7a8); }
.tile .bar { width: 100%; }
.seticon { width: 22px; height: 22px; vertical-align: middle; margin-right: .5rem; filter: invert(1) opacity(.85); }
.seticon.big { width: 34px; height: 34px; }
.card.missing { opacity: .42; filter: grayscale(.85); } .card.missing:hover { opacity: .9; filter: none; }
.card.alt { opacity: .7; }
.card .flag { position: absolute; left: 6px; bottom: 6px; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(12, 15, 19, .85); border: 1px solid rgba(255, 255, 255, .2); color: var(--text); }
.card .flag.miss { background: rgba(211, 32, 42, .8); border-color: rgba(255, 130, 130, .6); color: #fff; }
.pricelist { font-size: .9rem; } .pricelist td, .pricelist th { padding: .35rem .4rem; } .pricelist td:first-child { min-width: 190px; white-space: normal; }

/* Logo (v2.13.0) */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand span { background: linear-gradient(90deg, #62dccb, #2fb5a3 60%, #8de9dd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brandlogo { width: 38px; height: 38px; border-radius: 50%; flex: none; filter: drop-shadow(0 0 8px rgba(47, 181, 163, .45)); transition: transform .3s ease, filter .3s ease; }
.brandlogo.custom, .loginlogo.custom { border-radius: 0; object-fit: contain; }
.brand:hover .brandlogo { transform: rotate(-8deg) scale(1.06); filter: drop-shadow(0 0 12px rgba(98, 220, 203, .7)); }
.brand { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
.loginlogo { display: block; width: 200px; height: 200px; margin: -4.2rem auto .4rem; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(47, 181, 163, .25)); }
.login { margin-top: 20vh; }
.login h1 { text-align: center; }
@media (max-width: 720px) { .brandlogo { width: 32px; height: 32px; } .loginlogo { width: 160px; height: 160px; margin-top: -3.4rem; } }

/* Ideenliste */
.idea.doing { border-color: rgba(245, 158, 66, .55); box-shadow: 0 0 0 1px rgba(245, 158, 66, .2), var(--shadow); }
.idea.done, .idea.dropped { opacity: .75; }

/* Funktionsuebersicht (v2.18.0) */
.loginwrap { position: relative; max-width: 360px; margin: 20vh auto 0; }
.loginwrap .login { margin: 0 auto; }
.infobtn { position: absolute; left: calc(100% + 1.6rem); top: 4.2rem; display: flex; align-items: center; gap: .8rem; width: auto; white-space: nowrap; text-align: left;
    padding: .7rem 1.1rem .7rem .8rem; border-radius: 999px; color: var(--text); cursor: pointer;
    background: linear-gradient(180deg, rgba(36, 42, 54, .85), rgba(20, 24, 31, .88)); border: 1px solid rgba(98, 220, 203, .35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 0 rgba(47, 181, 163, .5); animation: infopulse 3.2s ease-out infinite; transition: transform .18s ease, border-color .18s ease; }
.infobtn:hover { background: linear-gradient(180deg, rgba(44, 52, 66, .9), rgba(24, 29, 38, .92)); border-color: var(--accent2); transform: translateY(-2px); filter: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 22px rgba(47, 181, 163, .35); }
.infobtn .ii { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; flex: none; font: italic 700 1.3rem Georgia, serif; color: #041a17; background: linear-gradient(180deg, #62dccb, #2fb5a3); box-shadow: 0 0 14px rgba(47, 181, 163, .6); }
.infobtn .it { display: flex; flex-direction: column; line-height: 1.25; }
.infobtn .it b { font-size: .98rem; } .infobtn .it small { color: var(--muted); font-size: .78rem; }
@keyframes infopulse { 0% { box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 0 rgba(47, 181, 163, .45); } 70% { box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 16px rgba(47, 181, 163, 0); } 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 0 rgba(47, 181, 163, 0); } }
@media (max-width: 1000px) { .infobtn { position: static; margin: 1.1rem auto 0; } }
@media (prefers-reduced-motion: reduce) { .infobtn { animation: none; } }

.featdlg { border: 1px solid var(--glass-line); border-radius: 18px; padding: 0; width: min(1100px, 94vw); max-height: 90vh; color: var(--text); overflow: hidden;
    background: linear-gradient(180deg, #171c25, #0f131a); box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.featdlg[open] { display: flex; flex-direction: column; animation: ddin .18s ease-out; }
.featdlg::backdrop { background: rgba(6, 8, 11, .74); backdrop-filter: blur(6px); }
.fhead { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--glass-line); flex-wrap: wrap; }
.fhead img { border-radius: 50%; filter: drop-shadow(0 0 8px rgba(47, 181, 163, .45)); }
.fhead h2 { margin: 0; font-size: 1.25rem; color: var(--text); } .fhead small { color: var(--muted); }
.fhead #featq { flex: 1; min-width: 180px; max-width: 320px; margin-left: auto; }
.fclose { width: 2.3rem; height: 2.3rem; padding: 0; border-radius: 50%; flex: none; background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: none; font-size: 1rem; }
.fclose:hover { background: rgba(255, 255, 255, .16); }
.fbody { overflow: auto; padding: 1.2rem 1.4rem 1.6rem; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 1rem; align-items: start; }
.fgroup { border: 1px solid var(--glass-line); border-top: 3px solid var(--fc); border-radius: 14px; padding: 1rem 1.1rem .5rem; background: rgba(255, 255, 255, .03); }
.fgroup header h3 { margin: 0; font-size: 1.05rem; color: var(--fc); } .fgroup header span { color: var(--muted); font-size: .82rem; }
.fgroup ul { list-style: none; margin: .7rem 0 0; padding: 0; }
.fgroup li { padding: .55rem 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.fgroup li b { display: block; } .fgroup li p { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; }
.fgroup li a { color: var(--text); } .fgroup li a:hover { color: var(--accent2); }
.fsince { font-style: normal; font-weight: 600; font-size: .68rem; padding: .05rem .5rem; border-radius: 999px; margin-left: .4rem; background: rgba(47, 181, 163, .18); color: var(--accent2); vertical-align: middle; }
.fnone { color: var(--muted); text-align: center; padding: 1.5rem 0; }
.funkbar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; } .funkbar input { max-width: 340px; }

/* Sammlungs-Battle (v2.19.0) */
.battle-form { max-width: 720px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.battle { max-width: 980px; }
.bhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.bside { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; min-width: 0; overflow-wrap: anywhere; }
.bside .avatar { border: 2px solid var(--glass-line); box-shadow: 0 0 22px rgba(47, 181, 163, .25); }
.bscore { display: flex; align-items: center; gap: .6rem; font-size: 3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.bscore i { font-style: normal; color: var(--muted); font-weight: 400; }
.bscore span { min-width: 1.2ch; text-align: center; text-shadow: 0 0 18px rgba(47, 181, 163, .45); }
.bverdict { text-align: center; margin: .7rem 0 1.1rem; font-weight: 700; color: var(--accent2); letter-spacing: .02em; }
.brounds { display: flex; flex-direction: column; gap: .5rem; }
.bround { display: grid; grid-template-columns: 1fr minmax(150px, 1.1fr) 1fr; grid-template-areas: "num num num" "a mid b"; gap: .2rem .8rem; align-items: center;
    padding: .55rem .8rem; border: 1px solid var(--glass-line); border-radius: 12px; background: rgba(255, 255, 255, .03); transition: opacity .35s, transform .35s, border-color .35s, box-shadow .35s; }
.bnum { grid-area: num; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bmid { grid-area: mid; text-align: center; display: flex; flex-direction: column; min-width: 0; }
.bmid small { color: var(--muted); font-size: .74rem; }
.bmid em { font-style: normal; font-size: .78rem; color: var(--accent2); margin-top: .1rem; }
.bcell.a { grid-area: a; } .bcell.b { grid-area: b; }
.bcell { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.bcell.a { align-items: flex-end; text-align: right; } .bcell.b { align-items: flex-start; }
.bv { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.bv small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.bbar { display: block; width: 100%; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bbar i { display: block; height: 100%; border-radius: 999px; background: var(--muted); opacity: .55; transition: width .6s ease .1s; }
.bcell.a .bbar i { margin-left: auto; }
.bcell.won .bbar i { background: linear-gradient(90deg, #2fb5a3, #62dccb); opacity: 1; box-shadow: 0 0 10px rgba(47, 181, 163, .6); }
.bcell.won .bv { color: var(--accent2); }
.bround.pending { opacity: .18; transform: scale(.985); }
.bround.pending .bbar i { width: 0 !important; }
.bround.live { border-color: var(--accent2); box-shadow: 0 0 22px rgba(47, 181, 163, .3); }
.playing .bverdict { visibility: hidden; }
.bactions { margin-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.bactions .ghost { background: rgba(255, 255, 255, .08); color: var(--text); }
.bactions .ghost:hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 640px) {
    .bscore { font-size: 2.2rem; }
    .bround { grid-template-columns: 1fr 1fr; grid-template-areas: "num num" "mid mid" "a b"; }
    .bcell.a { align-items: flex-start; text-align: left; }
    .bcell.a .bbar i { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .bround, .bbar i { transition: none; } }
.battle.playing .bstick { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 4.2rem); z-index: 3; padding: .5rem 0 .3rem; margin: -.5rem 0 .3rem; background: #181c25; box-shadow: 0 10px 14px -6px rgba(0, 0, 0, .55); border-radius: 0 0 12px 12px; }
.bstick .bactions { justify-content: center; margin: 0 0 .6rem; }
.battle.playing .bverdict { display: none; }
.battle.playing .bside .avatar { width: 40px !important; height: 40px !important; }

/* Battle beginnt von selbst: vor dem Start und waehrend des Spiels nichts verraten (nur mit JavaScript) */
.js .battle:not(.finished):not(.playing) .bscore span, .js .battle:not(.finished) .bverdict { visibility: hidden; }
.js .battle:not(.finished):not(.playing) .bround { opacity: 0; }
.bround.pending { opacity: 0; transform: translateY(10px) scale(.98); }
.bround.live { animation: bpop .5s ease-out; }
@keyframes bpop { 0% { transform: translateY(12px) scale(.97); } 60% { transform: translateY(-2px) scale(1.01); } 100% { transform: none; } }
.battle.finished .bverdict { animation: bpop .6s ease-out; }
.battle.playing .bverdict { visibility: hidden; }

/* Tauschbar-Kennzeichen auf Kartenkacheln */
.card .img .tflag { position: absolute; left: .4rem; bottom: .4rem; backdrop-filter: blur(4px); background: rgba(12, 15, 19, .75); }
/* Zeilen ohne Tabelle (Tauschbar-Seite), brechen auf schmalen Bildschirmen um */
.rowlist > div { display: flex; gap: .4rem .8rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.rowlist > div > :first-child { flex: 1 1 220px; min-width: 0; }

/* Anleitung */
.guidebar { display: flex; gap: .8rem 1rem; flex-wrap: wrap; align-items: center; margin: .8rem 0 1rem; }
.guidebar .gmodes { display: flex; gap: .4rem; }
.guidebar .gmodes .pill { cursor: pointer; border: 1px solid var(--glass-line, var(--line)); background: transparent; color: var(--text); }
.guidebar .gmodes .pill.on { background: var(--accent); color: #06231f; border-color: transparent; }
.guidebar input[type=search] { flex: 1 1 240px; max-width: 420px; }
.gprog { color: var(--muted); font-size: .85rem; }
.guide { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.gtoc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 4.6rem); max-height: calc(100vh - 6rem); overflow: auto; padding-right: .3rem; }
.gtocgroup { margin-bottom: .9rem; }
.gtocgroup h3 { margin: 0 0 .25rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fc); }
.gtocgroup a { display: flex; gap: .5rem; align-items: baseline; padding: .28rem .5rem; border-radius: 8px; color: var(--text); font-size: .9rem; line-height: 1.3; }
.gtocgroup a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.gtocgroup a.on { background: rgba(255, 255, 255, .1); box-shadow: inset 3px 0 0 var(--fc); }
.gdone { flex: none; width: .9rem; height: .9rem; border-radius: 50%; border: 1.5px solid var(--muted); align-self: center; }
.gtocgroup a.read .gdone { background: var(--fc); border-color: var(--fc); box-shadow: inset 0 0 0 2px #0c0f13; }
.gchap { border: 1px solid var(--glass-line, var(--line)); border-top: 3px solid var(--fc); border-radius: 14px; padding: 1.1rem 1.3rem 1rem; background: rgba(255, 255, 255, .03); margin-bottom: 1rem; }
.gchap[hidden] { display: none; }
.gchap h2 { margin: .2rem 0 .4rem; font-size: 1.35rem; }
.gchap h3 { margin: 1.1rem 0 .3rem; font-size: .95rem; color: var(--fc); }
.gkicker { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.glead { font-size: 1.02rem; margin: 0; }
.gsteps { margin: .3rem 0 0; padding-left: 1.4rem; }
.gsteps li { margin: .45rem 0; padding-left: .2rem; }
.gsteps li::marker { color: var(--fc); font-weight: 700; }
.gtips { margin: .3rem 0 0; padding-left: 1.2rem; color: var(--text); }
.gtips li { margin: .3rem 0; }
.gtips li::marker { color: var(--fc); }
.gactions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.1rem; }
.gopen { padding: .45rem 1rem; border-radius: 9px; display: inline-block; }
.gread { color: var(--muted); font-size: .88rem; display: flex; gap: .4rem; align-items: center; }
.gread input { width: auto; margin: 0; }
.gsee { color: var(--muted); font-size: .88rem; margin: .8rem 0 0; }
.gsee a { margin-right: .7rem; }
.gnav { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin: 1rem 0 2rem; }
.gnav button { width: auto; }
.gnav button:disabled { opacity: .4; cursor: default; }
.gnav[hidden], .gnone[hidden] { display: none; }
.gnav span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
    .guide { grid-template-columns: minmax(0, 1fr); }
    .gtoc { position: static; max-height: none; display: none; }
    .guide:not(.js) .gtoc { display: block; }
}
/* Hilfe-Knopf "?" unten rechts auf jeder Seite */
.helpfab { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 6; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; background: var(--accent); color: #06231f; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); text-decoration: none; }
.helpfab:hover { text-decoration: none; filter: brightness(1.1); }
@media print { .helpfab { display: none; } }

.gselwrap { display: none; margin-bottom: .8rem; }
.gsellabel { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.gselwrap select { width: 100%; }
.guidebar .gmodes .pill { white-space: nowrap; }
@media (max-width: 860px) { .gselwrap { display: block; } }
.guide, .gchap { scroll-margin-top: 7.5rem; }

/* Daumen hoch bei Ideen */
.thumb { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--glass-line, var(--line)); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; cursor: pointer; width: auto; }
.thumb b { font-weight: 700; }
.thumb:hover { background: rgba(255, 255, 255, .1); }
.thumb.on { background: var(--accent); color: #06231f; border-color: transparent; }
.thumb.ro { cursor: default; color: var(--muted); }
.thumbico { vertical-align: -.15em; }

/* Menue v2.38.0: Punkte mit Symbol und kurzer Erklaerung, Zwischenueberschriften */
.ddmenu.mega { min-width: 300px; }
.top nav .ddmenu a.mi, .ddmenu a.mi { display: grid; grid-template-columns: 1.9rem 1fr; grid-template-rows: auto auto; column-gap: .55rem; row-gap: 0;
    align-items: center; justify-content: stretch; padding: .45rem .7rem; white-space: normal; }
.mi .mic { grid-row: 1 / span 2; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 9px; font-size: 1.05rem;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-line); }
.mi .mit { font-weight: 600; display: flex; align-items: center; gap: .45rem; }
.mi .mid { color: var(--muted); font-size: .78rem; line-height: 1.25; }
.ddmenu a.mi.on .mic { background: rgba(47, 181, 163, .2); border-color: rgba(98, 220, 203, .35); }
.ddmenu a.mi:hover .mic { border-color: rgba(98, 220, 203, .35); }
.ddsec { padding: .55rem .75rem .2rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ddsec:not(:first-child) { margin-top: .25rem; border-top: 1px solid var(--glass-line); padding-top: .6rem; }
@media (max-width: 900px) {
    .ddmenu.mega { min-width: 0; }
    .top nav .ddmenu a.mi { padding: .5rem .7rem; }
    .mi .mid { font-size: .75rem; }
}

/* Tabellen sortieren (assets/sort.js) */
th.sorth { cursor: pointer; user-select: none; white-space: nowrap; }
th.sorth:hover, th.sorth:focus-visible { text-decoration: underline dotted; text-underline-offset: 3px; }
th.sorth::after { content: " ↕"; font-size: .7em; opacity: .35; }
th.sorth.asc::after { content: " ▲"; opacity: .9; }
th.sorth.desc::after { content: " ▼"; opacity: .9; }

/* Starthand testen (starthand.php, assets/starthand.js) */
.shpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.shlist { list-style: none; margin: 0; padding: 0; }
.shlist li { padding: .35rem 0; border-bottom: 1px solid var(--glass-line); }
.shbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.shfree { display: flex; gap: .4rem; align-items: center; margin-left: auto; color: var(--muted); cursor: pointer; }
.shinfo { min-height: 2.8em; }
.shh { font-size: 1rem; margin: .8rem 0 .4rem; color: var(--muted); }
.shand { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.shcmd { grid-template-columns: repeat(auto-fill, minmax(110px, 150px)); }
.shcard { position: relative; display: block; padding: 0; border: 0; border-radius: 4.5% / 3.3%; overflow: hidden; aspect-ratio: 63 / 88; background: rgba(255, 255, 255, .06); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); color: var(--text); font: inherit; text-align: left; transition: transform .12s ease, opacity .12s ease, outline-color .12s ease; outline: 3px solid transparent; outline-offset: 2px; }
.shcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shcard.pick { cursor: pointer; }
.shcard.pick:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .06); filter: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.shcard.sel { outline-color: #f59e42; opacity: .55; transform: translateY(6px); }
.shcard.new { outline-color: var(--accent); }
.shname { display: flex; flex-direction: column; gap: .3rem; padding: .6rem; height: 100%; box-sizing: border-box; }
.shname small { color: var(--muted); }
.shbadge { position: absolute; top: 6px; right: 6px; background: var(--accent); color: #041a17; font-size: .72rem; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; }
.shodds { display: flex; gap: .4rem; align-items: flex-end; flex-wrap: wrap; }
.shodd { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 64px; height: 150px; font-size: .8rem; color: var(--muted); }
.shodd i { display: block; width: 70%; background: rgba(255, 255, 255, .18); border-radius: 4px 4px 0 0; order: 1; }
.shodd.shok i { background: var(--accent); }
.shodd span { order: 3; }
.shodd b { order: 2; color: var(--text); font-weight: 600; }
.shgood { width: 100%; margin: .6rem 0 0; }

/* Daten loeschen (datenloeschen.php) */
.wipeopt { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--glass-line); cursor: pointer; }
.wipeopt input { margin-top: .25rem; }
.wipeconfirm { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: 1rem; }
.dangerzone { border-color: rgba(211, 32, 42, .45); }
.joblog { white-space: pre-wrap; max-height: 22rem; overflow: auto; font-size: .82rem; background: rgba(0, 0, 0, .25); padding: .6rem; border-radius: 8px; }

/* Commander-Precons (v2.49.0) */
.preconfilter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.preconfilter input[type=search] { flex: 1 1 16rem; min-width: 0; }
table.precons td { vertical-align: top; white-space: normal; }
table.precons td:first-child, table.precons td:nth-child(3), table.precons td:last-child { white-space: nowrap; width: 1%; }

/* Austausch mit Claude (v2.50.0) */
.xform label[for] { display: block; margin-bottom: .3rem; }
.xdrop { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.4rem 1rem; border: 2px dashed var(--glass-line); border-radius: 12px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.xdrop:hover, .xdrop.over, .xdrop:focus-within { border-color: var(--accent); background: rgba(47, 181, 163, .07); }
.xdrop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.xdropicon { font-size: 1.8rem; }
.xpick { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.xpick li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .2rem .6rem; align-items: center; }
.xpn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xbar2 { grid-column: 1 / -1; grid-row: 2; height: 4px; border-radius: 4px; background: var(--glass-line); overflow: hidden; }
.xbar2 i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.xsend { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: .8rem; }
.xbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin: 1.2rem 0 .4rem; }
.xfilter { margin: 0; }
.xfilter .pill { cursor: pointer; width: auto; border: 1px solid var(--glass-line); color: var(--text); padding: .3rem .8rem; }
.xfilter .pill small { opacity: .7; margin-left: .2rem; }
.xlist { display: flex; flex-direction: column; gap: .8rem; }
.xmsg { max-width: 46rem; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--shadow); }
.xmsg.xin { align-self: flex-end; width: min(100%, 46rem); border-color: rgba(47, 181, 163, .45); }
.xmsg.xout { align-self: flex-start; width: min(100%, 46rem); border-color: rgba(224, 180, 58, .5); }
.xmsg header { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .9rem; }
.xmsg header .muted { margin-left: auto; font-size: .82rem; }
.xnew { background: rgba(224, 180, 58, .2); color: var(--gold, #e0b43a); }
.xnote { margin: .5rem 0 0; white-space: normal; overflow-wrap: anywhere; }
.xfile { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: .6rem; padding: .6rem; border-radius: 10px; background: var(--panel2); }
.xthumb img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.xicon { font-size: 2rem; width: 72px; text-align: center; }
.xmeta { flex: 1 1 10rem; min-width: 0; display: flex; flex-direction: column; }
.xname { overflow-wrap: anywhere; }
.xact { display: flex; gap: .4rem; flex-wrap: wrap; }
.xact .btn { padding: .35rem .8rem; border-radius: 8px; }
.xdel { margin-top: .5rem; display: flex; justify-content: flex-end; }
.xdel button { font-size: .82rem; padding: .25rem .6rem; }
.xform textarea { font-family: inherit; }

/* Warnung bei Fehlern im Nachtbetrieb (v2.51.0): rote Leiste fuer Admins, rotes "!" im Admin-Menue */
.badge.bad { background: var(--r); color: #fff; box-shadow: 0 0 10px rgba(239, 68, 68, .55); }
.syswarn { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; background: #3b1518; border: 1px solid var(--r); border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1rem; }
.syswarn .swi { font-size: 1.4rem; }
.syswarn > div { flex: 1 1 18rem; }
.syswarn ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.syswarn .btn { white-space: nowrap; padding: .4rem .9rem; text-decoration: none; }

/* Wants-Liste (v2.52.0): Menge und Entfernen in einer Spalte, auf dem Handy ohne Kartenbild */
table.wantlist td.r { vertical-align: middle; }
table.wantlist td.r form + form { margin-left: .4rem; }
@media (max-width: 600px) {
    table.wantlist img.wimg { display: none; }
    table.wantlist td.r form { display: block; margin: 0 0 .3rem 0 !important; }
    table.wantlist td.r input { width: 3.4rem !important; }
}
/* Fenster "Aus Cardmarket einfügen" (v2.53.0) */
.cmdlg { width: min(900px, 94vw); }
.cmdlg .fhead > div { flex: 1; }
.cmgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.cmgrid label { display: flex; flex-direction: column; gap: .3rem; color: var(--muted); font-size: .88rem; }
.cmgrid textarea { font-family: ui-monospace, monospace; font-size: .85rem; }

/* ---- Kartenscanner (v2.55.0, scanner.php) ---- */
.scanner [hidden], .scanstack [hidden] { display: none !important; }
.scanner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.scanner .panel { margin: 0; }
.camview { position: relative; background: #000; border-radius: 10px; overflow: hidden; height: min(68vh, 620px); }
.camview video { width: 100%; height: 100%; object-fit: contain; display: block; }
.camframe { position: absolute; border: 2px solid var(--accent2); border-radius: 4.5% / 3.3%; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .38); pointer-events: none; }
.camframe::before { content: ""; position: absolute; left: 5%; right: 19%; top: 3.5%; height: 7%; border: 1px dashed rgba(255, 255, 255, .7); border-radius: 4px; }
.camframe::after { content: "Name hier"; position: absolute; left: 6%; top: 11%; font-size: .72rem; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 2px #000; }
.camoff { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .8rem; align-items: center; justify-content: center; padding: 1rem; }
.camoff button.big { width: auto; text-align: center; }
.camfile { cursor: pointer; padding: .45rem .9rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; color: #fff; }
.camctl { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; }
.camctl button, .camctl select { width: auto; }
.camctl #scanbtn { padding: .55rem 1.4rem; font-size: 1.05rem; }
.camauto { display: flex; align-items: center; gap: .35rem; cursor: pointer; }
#camtorch.on { background: var(--orange); color: #111; }
.camstatus { margin-top: .5rem; font-size: .88rem; color: var(--muted); min-height: 1.3em; }
.camstatus.bad { color: var(--orange); }
.scandefs { margin-top: .6rem; }
.scandefs summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.scanopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-top: .5rem; }
.scanopts label { display: flex; flex-direction: column; gap: .2rem; font-size: .78rem; color: var(--muted); }
.scanres { display: flex; flex-direction: column; gap: .8rem; }
.resimgs { display: flex; gap: .8rem; justify-content: center; }
.resimgs figure { margin: 0; text-align: center; max-width: 48%; }
.resimgs canvas, .resimgs img { width: 146px; max-width: 100%; height: auto; aspect-ratio: 146 / 204; border-radius: 6px; background: var(--panel2); display: block; }
.resimgs figcaption { font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.namebox { position: relative; }
.namebox input { font-size: 1.05rem; font-weight: 600; }
.namesugg { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: .2rem 0 0; padding: .25rem; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.namesugg li { padding: .4rem .55rem; border-radius: 6px; cursor: pointer; }
.namesugg li:hover { background: var(--panel2); }
.resocr { font-size: .8rem; margin-top: .25rem; word-break: break-word; }
.resalts { display: flex; flex-wrap: wrap; gap: .4rem; }
button.altp { width: 78px; padding: 2px; background: transparent; border: 2px solid transparent; border-radius: 6px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1px; font-weight: 500; }
button.altp:hover { background: var(--panel2); }
button.altp.on { border-color: var(--accent2); color: var(--text); }
button.altp img { width: 73px; height: auto; aspect-ratio: 146 / 204; border-radius: 4px; }
button.altp span { font-size: .68rem; white-space: nowrap; }
.scanner button.go, .stackact button.go { background: var(--orange); color: #1b1206; }
.stackact { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 .4rem; }
.stackact form { display: inline-block; margin: 0; }
.stacktbl { width: 100%; }
.stacktbl td { vertical-align: middle; }
.stacktbl input[type=number] { width: 4.2rem; }
.stacktbl select { width: auto; max-width: 9.5rem; }
.stacktbl input[name=binder] { min-width: 8rem; }
.stacktbl tr.sent { opacity: .55; }
.stacktbl tr.flash td { animation: scanflash 1.6s ease-out; }
@keyframes scanflash { from { background: rgba(98, 220, 203, .28); } to { background: transparent; } }
.sthumb { width: 37px; height: auto; border-radius: 3px; display: block; }
@media (max-width: 900px) {
    .scanner { grid-template-columns: 1fr; }
    .camview { height: 62vh; }
}
@media (max-width: 700px) {
    /* Stapel als Kacheln: Bild, Name (Entfernen oben rechts) / Anzahl, Foil, Sprache / Zustand, Ordner */
    .stacktbl thead { display: none; }
    .stacktbl, .stacktbl tbody { display: block; }
    .stacktbl tr { display: grid; grid-template-columns: 4.2rem 1fr 1fr; grid-template-areas: "img name name" "qty foil lang" "cond cond bnd";
        gap: .4rem; padding: .7rem 2.6rem .7rem 0; border-bottom: 1px solid var(--line); position: relative; }
    .stacktbl td { display: block; padding: 0; border: 0; min-width: 0; }
    .stacktbl td:nth-child(1) { grid-area: img; } .stacktbl td:nth-child(2) { grid-area: name; } .stacktbl td:nth-child(3) { grid-area: qty; }
    .stacktbl td:nth-child(4) { grid-area: foil; } .stacktbl td:nth-child(5) { grid-area: lang; } .stacktbl td:nth-child(6) { grid-area: cond; }
    .stacktbl td:nth-child(7) { grid-area: bnd; } .stacktbl td:nth-child(8) { position: absolute; right: 0; top: .7rem; }
    .stacktbl select, .stacktbl input[type=number], .stacktbl input[name=binder] { width: 100%; max-width: none; min-width: 0; }
    .stackact button { width: 100%; }
    .stackact form { display: block; flex: 1 1 100%; }
}
/* Kartenscanner v2.56.0: zuletzt erfasste Karten im Kamerabild */
.camlast { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; display: flex; flex-direction: column; gap: .3rem; pointer-events: none; }
.lastitem { display: flex; align-items: center; gap: .5rem; padding: .3rem .45rem; border-radius: 8px; background: rgba(10, 14, 18, .82); color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4); pointer-events: auto; animation: lastin .25s ease-out; }
.lastitem:not(:first-child) { opacity: .72; }
.lastitem img { width: 30px; height: auto; border-radius: 3px; }
.lastitem span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.lastitem b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lastitem small { font-size: .74rem; color: #c9d2de; }
.lastitem button { padding: .2rem .55rem; color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
@keyframes lastin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Karten-Duell (Quartett, v2.57.0) */
.duel .dround { text-align: center; margin-top: .8rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.duel .dstatus { text-align: center; margin: .3rem 0 1rem; font-weight: 600; min-height: 1.4em; }
.duel .dstatus.dfinal { font-size: 1.3rem; color: var(--accent2); animation: bpop .6s ease-out; }
.dtable { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; }
.dvs { align-self: center; font-weight: 800; font-size: 1.4rem; color: var(--muted); letter-spacing: .05em; }
.dcard { border: 1px solid var(--glass-line); border-radius: 14px; padding: .7rem; background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: .5rem; min-width: 0;
    transition: border-color .3s, box-shadow .3s; }
.dcard.won { border-color: var(--accent2); box-shadow: 0 0 22px rgba(47, 181, 163, .35); }
.dcard.lost { opacity: .8; }
.dimg { position: relative; aspect-ratio: 63 / 88; max-width: 220px; width: 100%; margin: 0 auto; border-radius: 4.5% / 3.3%; overflow: hidden; background: #0c0f13; }
.dimg img { width: 100%; height: 100%; object-fit: cover; display: block; animation: dflip .45s ease-out; }
.dcard.back .dimg { display: flex; align-items: center; justify-content: center; border: 3px solid #3a2a18;
    background: radial-gradient(circle at 50% 45%, #6b4a2b 0, #3b2716 45%, #1d130a 100%); }
.dcard.back .dimg span { font-size: 3.5rem; font-weight: 800; color: rgba(255, 220, 170, .55); }
.dfoil { position: absolute; right: .35rem; top: .35rem; font-size: .68rem; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; color: #1a1030;
    background: linear-gradient(90deg, #ffd6f5, #c8f1ff, #fff3b8); }
.dname { text-align: center; font-weight: 700; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.dname small { font-weight: 400; color: var(--muted); font-size: .74rem; }
.dprops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.dprops button { width: 100%; display: flex; justify-content: space-between; gap: .6rem; padding: .35rem .6rem; border-radius: 8px; font-weight: 500;
    background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: none; text-align: left; }
.dprops button:disabled { cursor: default; opacity: 1; filter: none; }
.dprops button:not(:disabled):hover { background: rgba(47, 181, 163, .25); }
.dprops .dv { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dprops li.sel button { background: rgba(255, 255, 255, .14); outline: 2px solid var(--muted); }
.dcard.won .dprops li.sel button { background: rgba(47, 181, 163, .3); outline-color: var(--accent2); }
.dactions { justify-content: center; }
.dactions .btn { padding: .5rem 1rem; text-decoration: none; }
.dlog { margin: 1rem 0 .5rem; padding-left: 1.4rem; font-size: .85rem; color: var(--muted); display: flex; flex-direction: column; gap: .2rem; }
.dlog b { color: var(--text); margin-right: .3rem; }
.dlog li.wa::marker, .dlog li.wb::marker { color: var(--accent2); }
@keyframes dflip { from { transform: rotateY(90deg); } to { transform: none; } }
@media (max-width: 640px) {
    .dtable { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .dvs { display: none; }
    .dcard { padding: .45rem; }
    .dprops button { padding: .3rem .4rem; font-size: .8rem; flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .dimg img { animation: none; } }

/* Suchvorschlaege mit Vorschaubild (v2.59.0, assets/suggest.js) */
.hsearch { position: relative; }
.hsugg { position: absolute; z-index: 60; top: calc(100% + .35rem); left: 0; width: max(100%, 340px); max-width: calc(100vw - 2rem); }
.hsugg ul { list-style: none; margin: 0; padding: .3rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.hsugg li a { display: flex; align-items: center; gap: .65rem; padding: .35rem .45rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.hsugg li a img, .hsugg li a i { width: 34px; aspect-ratio: 63 / 88; border-radius: 3px; object-fit: cover; flex: none; background: var(--panel2); }
.hsugg li a span { display: flex; flex-direction: column; min-width: 0; }
.hsugg li a b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hsugg li a small { color: var(--accent2); font-size: .74rem; }
.hsugg li a small.other { color: var(--muted); }
.hsugg li[aria-selected="true"] a, .hsugg li a:focus-visible { background: rgba(47, 181, 163, .18); }
.hsugg li.all a { justify-content: center; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: .2rem; }
.hsugg li.all a:hover { color: var(--text); }
.hsugg-big { position: absolute; top: 0; right: calc(100% + .6rem); width: 244px; aspect-ratio: 63 / 88; border-radius: 11px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); pointer-events: none; }
@media (max-width: 900px) { .hsugg-big { display: none; } }

/* Versiegelte Precons (v2.61.0) */
.sealedform { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.sealedform button { padding: .2rem .55rem; font-size: .8rem; }

/* Bracket-Einstufung (v2.63.0) */
.bbadge { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.bbadge.b1, .bbadge.b2 { background: rgba(98, 220, 203, .14); color: #62dccb; border-color: rgba(98, 220, 203, .35); }
.bbadge.b3 { background: rgba(255, 206, 102, .14); color: #ffce66; border-color: rgba(255, 206, 102, .4); }
.bbadge.b4 { background: rgba(255, 138, 101, .15); color: #ff8a65; border-color: rgba(255, 138, 101, .45); }
.bbadge.b5 { background: rgba(229, 115, 255, .15); color: #e573ff; border-color: rgba(229, 115, 255, .45); }
a.bblink { text-decoration: none; }
.deck .bbadge { margin: .25rem 0 .1rem; }
.bracketinfo { margin-bottom: 1rem; }
.bracketinfo .bihead { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.bracketinfo .bihead .bbadge { font-size: .95rem; padding: .25rem .8rem; }
.bracketinfo h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
.biwhy { margin: 0; padding-left: 1.2rem; }
.biwhy li { margin: .15rem 0; }
.bitable tr.hit td:first-child b { color: var(--accent2); }
.bitable details summary { cursor: pointer; font-size: .78rem; color: var(--muted); }
.bisig { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.bisig li.hit { color: #ffce66; }
.bisig details.inline { display: inline; }
.bisig details.inline summary { display: inline; cursor: pointer; color: var(--muted); font-size: .8rem; }

/* Verliehene Karten (v2.64.0) */
.loangrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem .8rem; }
.loangrid label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--muted); }
.loangrid label.wide { grid-column: 1 / -1; }
tr.loandue td { background: rgba(255, 138, 101, .08); }
.u-nowrap { white-space: nowrap; }
.loangrid label[hidden] { display: none; }

/* Format-Pruefung (v2.65.0) */
.fmtcheck.ok h2 { color: var(--accent2); }
.fmtcheck.bad h2 { color: #ff8a65; }
.fmtcheck ul { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
#dcmode[hidden] { display: none; }

/* Manabasis (v2.66.0) */
.manabase { margin-bottom: 1rem; }
.mbar { display: inline-block; width: 70px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; vertical-align: middle; margin-right: .45rem; }
.mbar i { display: block; height: 100%; border-radius: 999px; }
.mbar i.cW { background: #f4ecc9; } .mbar i.cU { background: #3d8fd8; } .mbar i.cB { background: #8d7ba3; } .mbar i.cR { background: #e25a3e; } .mbar i.cG { background: #3f9d5d; }
.manabase details.inline { display: inline; } .manabase details.inline summary { display: inline; cursor: pointer; }
.manawarn { margin: 0 0 .3rem; padding-left: 1.2rem; }

/* Kombo-Finder (v2.67.0) */
.kombolist { display: flex; flex-direction: column; gap: .7rem; }
.kombo { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 0; }
.kcards { display: flex; gap: .5rem; flex-wrap: wrap; }
.kcard { width: 112px; display: flex; flex-direction: column; gap: .2rem; }
.kcard img { width: 112px; aspect-ratio: 63 / 88; border-radius: 6px; display: block; background: var(--panel2); object-fit: cover; }
.kcard small { font-size: .7rem; color: var(--muted); line-height: 1.25; overflow-wrap: anywhere; }
.kcard.miss img { opacity: .45; filter: grayscale(.6); outline: 2px dashed #ff8a65; outline-offset: -2px; }
.kneed { color: #ff8a65; }
.kinfo { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: .25rem; }
@media (max-width: 640px) { .kcard, .kcard img { width: 88px; } }

/* Token und Marker (v2.68.0) */
.tokens { margin-bottom: 1rem; }
.tokgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .7rem; }
.tok { display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; min-width: 0; }
.tok img { width: 100%; aspect-ratio: 63 / 88; border-radius: 6px; object-fit: cover; background: var(--panel2); }
.tok b { overflow-wrap: anywhere; } .tok small { color: var(--muted); font-size: .7rem; }

/* Spielabende (v2.69.0) */
.gameseats td { padding: .3rem .4rem; }
.gameseats select, .gameseats input:not([type="radio"]) { width: 100%; min-width: 120px; }
.gameseats [hidden] { display: none !important; }
.gameseats input[type="radio"] { width: 1.1rem; height: 1.1rem; }
tr.gameme td { background: rgba(120, 170, 255, .07); }
.gamep { display: inline-block; margin: .1rem .5rem .1rem 0; padding: .1rem .5rem; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.gamep.won { background: rgba(255, 196, 0, .16); box-shadow: inset 0 0 0 1px rgba(255, 196, 0, .45); }
.gamep.won::before { content: "🏆 "; }
@media (max-width: 640px) {
    .gameseats thead { display: none; }
    .gameseats tbody tr { display: grid; grid-template-columns: 1fr 1fr 3rem; gap: .3rem; padding: .45rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .gameseats tbody tr[hidden] { display: none; }
    .gameseats td { padding: 0; border: 0; }
    .gameseats select, .gameseats input:not([type="radio"]) { min-width: 0; }
    .gameseats tr.seat td:nth-child(3) { grid-column: 1 / 3; }
    .gameseats tr.seat td:nth-child(4), .gameseats tr:not(.seat) td:last-child { grid-column: 3; grid-row: 1 / 3; align-self: center; }
    .gameseats tr:not(.seat) td:first-child { grid-column: 1 / 3; align-self: center; }
    .gameseats tr.seat td:nth-child(4)::before { content: "Sieg"; display: block; font-size: .7rem; color: var(--muted); }
    .gameseats tr.seat:has(.seatname[hidden]) td:first-child { grid-column: 1 / 3; }
    .gameseats tr.seat:has(.seatname[hidden]) td:nth-child(2) { display: none; }
    .gamelist thead { display: none; }
    .gamelist, .gamelist tbody, .gamelist tr, .gamelist td { display: block; }
    .gamelist tr { padding: .5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
    table.gamelist td { padding: .15rem 0; border: 0; white-space: normal; }
    .gamelist { width: 100%; min-width: 0 !important; }
}

/* Aenderungsverlauf je Deck (v2.70.0) */
.dhlist { list-style: none; margin: 0; padding: 0; }
.dhlist li { padding: .5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.dhitems { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.dh { padding: .1rem .5rem; border-radius: 8px; font-size: .85rem; }
.dh.add { background: rgba(46, 204, 113, .14); color: #8fe0b0; }
.dh.rem { background: rgba(255, 90, 90, .14); color: #ff9a9a; }
.dh small { opacity: .75; }

/* Salt-Score (v2.71.0) */
.saltbadge { display: inline-block; padding: .1rem .6rem; border-radius: 12px; font-size: .8rem; font-weight: 700; border: 1px solid var(--line); background: var(--panel2); vertical-align: middle; }
.saltbadge.s-mild, .saltinfo b.s-mild { color: #8fe0b0; } .saltbadge.s-mild { border-color: rgba(46, 204, 113, .5); }
.saltbadge.s-normal, .saltinfo b.s-normal { color: #9cc8ff; } .saltbadge.s-normal { border-color: rgba(78, 168, 255, .5); }
.saltbadge.s-salty, .saltinfo b.s-salty { color: #ffc46b; } .saltbadge.s-salty { border-color: rgba(255, 170, 60, .6); }
.saltbadge.s-very, .saltinfo b.s-very { color: #ff9a9a; } .saltbadge.s-very { border-color: rgba(255, 90, 90, .6); }
.saltlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.saltlist li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 30%) 3rem; gap: .6rem; align-items: center; }
.saltlist li b { text-align: right; font-variant-numeric: tabular-nums; }
.saltbar { height: .5rem; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.saltbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb347, #ff8a3d); border-radius: 4px; }
.saltbar.hot i { background: linear-gradient(90deg, #ff8a3d, #ff4d4d); }

/* Ziehwahrscheinlichkeit (v2.72.0) */
.dcform { display: flex; flex-wrap: wrap; gap: .6rem .9rem; align-items: flex-end; margin-bottom: .6rem; }
.dcform label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; }
.dcform select, .dcform input:not([type="checkbox"]) { width: auto; min-width: 180px; }
.dcform input[hidden] { display: none; }
.dcform label.dcfirst { flex-direction: row; align-items: center; gap: .4rem; font-size: .85rem; }
.dcform label.dcfirst input { width: auto; }
.dcsum { margin: .2rem 0 .6rem; }
.dctable td.dcp { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.dctable td:nth-child(2) { color: var(--muted); text-align: right; }
.dcbar { display: block; width: 180px; max-width: 22vw; height: .5rem; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.dcbar i { display: block; height: 100%; background: #4ea8ff; }
.dcbar.good i { background: #2ecc71; } .dcbar.low i { background: #ff8a3d; }
@media (max-width: 640px) {
    .dctable th:nth-child(2), .dctable td:nth-child(2) { display: none; }
    .dctable td, .dctable th { padding-left: .35rem; padding-right: .35rem; }
    .dcform select, .dcform input:not([type="checkbox"]) { min-width: 0; width: 100%; }
    .dcform label:not(.dcfirst), .dcform > input { flex: 1 1 140px; }
}

/* Eigene Kategorien und Vielleicht-Liste (v2.73.0) */
.dlcards input.dlcat, input.dlcat { width: 9rem; min-width: 0; }
.dlcards select { min-width: 0; padding-right: 1.6rem; }
.dlcards tr.dlmaybe th { border-top: 1px dashed rgba(255, 255, 255, .2); }
@media (max-width: 640px) { .dlcards th:nth-child(5), .dlcards td:nth-child(5) { display: none; } .dlcards th[colspan] { display: table-cell; } }

/* Geteiltes Deck (v2.74.0) */

/* Guenstiger bauen (v2.75.0) */
.cheaphead { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; font-size: 1.05rem; }
.cheapcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .4rem 1.4rem; }
.cheapcols h3 { font-size: .9rem; margin: .8rem 0 .3rem; color: var(--muted); }
.cheaplist { list-style: none; margin: 0; padding: 0; }
.cheaplist li { padding: .25rem 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: center; }

/* Goldfish-Testspiel (v2.78.0) */
.gfbar { display: grid; gap: .5rem; }
@media (min-width: 900px) { .gfbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 4.2rem); z-index: 3; } }   /* unter dem Kopf, Menues bleiben darueber (Idee #108) */
.gfbtns, .gfcount { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; }
.gfbtns button { padding: .35rem .7rem; }
.gfcount > span { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; }
.gfcount b { min-width: 2.2rem; text-align: center; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.gfcount button { padding: .15rem .55rem; }
.gffirst { display: inline-flex; gap: .35rem; align-items: center; font-size: .85rem; color: var(--muted); }
.gfstats { font-size: .9rem; }
.gfmull { margin-top: .6rem; }
.gfzone { margin-top: .9rem; }
.gfzone .shh { margin: 0 0 .4rem; font-size: 1rem; }
.gfrow { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.gfhand .gfrow { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.gfcard { cursor: pointer; }
.gfcard:hover { transform: translateY(-3px); }
.gfcard.tapped { transform: rotate(12deg) scale(.92); opacity: .72; }
.gfcard.sel { outline-color: #f59e42; opacity: .55; }
.gfcnt, .gftok { position: absolute; left: 4px; bottom: 4px; padding: .05rem .35rem; border-radius: 6px; font-size: .72rem; font-weight: 700; background: rgba(0, 0, 0, .78); color: #fff; }
.gftok { left: auto; right: 4px; background: rgba(78, 168, 255, .85); }
.gfempty { margin: .2rem 0; font-size: .85rem; }
.gfpiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1.2rem; }
.gflog { margin: .4rem 0 0; padding-left: 1.4rem; font-size: .85rem; max-height: 16rem; overflow: auto; }
dialog.gfmenu { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); padding: 1rem; max-width: min(640px, 94vw); width: auto; }
dialog.gfmenu::backdrop { background: rgba(0, 0, 0, .55); }
.gfmenu-in { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.gfmenu-img img { width: 100%; border-radius: 10px; display: block; }
.gfmenu-act { display: flex; flex-direction: column; gap: .4rem; }
.gfmenu-act button { width: 100%; text-align: left; }
.gfmname { font-size: 1.05rem; }
.gfpick { width: min(760px, 94vw); }
.gfplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; max-height: 60vh; overflow: auto; margin-top: .6rem; }
.gfpitem { display: flex; flex-direction: column; gap: .3rem; }
.gfpitem .shcard { cursor: default; }
.gfpitem button { padding: .25rem .5rem; font-size: .8rem; width: 100%; }
@media (max-width: 640px) {
    .gfmenu-in { grid-template-columns: 1fr; }
    .gfmenu-img img { max-width: 200px; margin: 0 auto; }
    .gfrow { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .35rem; }
    .gfhand .gfrow { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .gfbtns button { padding: .3rem .5rem; font-size: .85rem; }
}

/* EDHREC-Vergleich (v2.79.0) */
.edhlist { columns: 3 240px; column-gap: 1.6rem; margin-top: .6rem; }
.edhlist section { break-inside: avoid; margin-bottom: .9rem; }
.edhlist h3 { margin: 0 0 .3rem; font-size: 1rem; }
.edhlist ul { list-style: none; margin: 0; padding: 0; }
.edhlist li { padding: .1rem 0; }
.edhlist li.in { color: var(--muted); }
.edhlist li .q { display: inline-block; min-width: 1.6rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Mehrere Karten auf einem Foto (v2.80.0) */
.scanmulti { margin-top: 1rem; }
.scanmulti .camfile { cursor: pointer; }
.mview { position: relative; margin-top: .8rem; line-height: 0; }
.mview img { width: 100%; height: auto; border-radius: 10px; display: block; }
.moverlay { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.mcard { cursor: pointer; }
.mcard polygon { fill: rgba(255, 255, 255, .06); stroke-width: 6; vector-effect: non-scaling-stroke; }
.mcard circle { fill: rgba(0, 0, 0, .7); }
.mcard text { fill: #fff; font-weight: 700; text-anchor: middle; font-family: system-ui, sans-serif; }
.m-sure polygon, .m-added polygon { stroke: #2ecc71; }
.m-added polygon { fill: rgba(46, 204, 113, .18); }
.m-unsure polygon { stroke: #ff9f43; }
.m-none polygon { stroke: #ff5a5a; }
.m-wait polygon, .m-busy polygon { stroke: #9aa7b8; stroke-dasharray: 10 8; }
.m-busy polygon { stroke: #4ea8ff; }
.mlist { display: grid; gap: .35rem; margin-top: .8rem; }
.mrow { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; border-radius: 10px; background: rgba(255, 255, 255, .04); border-left: 4px solid #9aa7b8; flex-wrap: wrap; }
.mrow.m-sure, .mrow.m-added { border-left-color: #2ecc71; } .mrow.m-unsure { border-left-color: #ff9f43; } .mrow.m-none { border-left-color: #ff5a5a; }
.mrow.m-added { opacity: .65; }
.mrow canvas { width: 38px; height: 53px; border-radius: 4px; flex: none; }
.mnr { min-width: 1.6rem; font-weight: 700; color: var(--muted); }
.mtxt { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; }
.mtxt small { color: var(--muted); }
.mpick { display: inline-flex; gap: .3rem; align-items: center; font-size: .85rem; }
.mpick input { width: auto; }
.mrow button { padding: .25rem .6rem; }
@media (min-width: 640px) { .mrow { flex-wrap: nowrap; } }
tr.loginforeign td { background: rgba(255, 90, 90, .08); }

/* Preis-Check im Kartenscanner (v2.84.0) */
.scanmode { display: inline-flex; margin-top: .6rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.scanmode label { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; cursor: pointer; font-size: .92rem; }
.scanmode input { width: auto; margin: 0; }
.scanmode label:has(input:checked) { background: rgba(95, 214, 198, .16); color: var(--accent2); font-weight: 600; }
.scanner.checkmode .camframe { border-color: #ffc46b; }
.rescheck { margin: .5rem 0; padding: .55rem .7rem; border-radius: 10px; background: rgba(255, 196, 107, .08); border: 1px solid rgba(255, 196, 107, .3); display: grid; gap: .25rem; font-size: .92rem; }
.rescheck .cknew { color: #8fe0b0; }
.rescheck .ckseek, .ckrow.sought small { color: #ffc46b; }
.checklist { margin-top: 1rem; }
.ckrow { display: flex; align-items: center; gap: .6rem; padding: .35rem .2rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ckrow img { border-radius: 4px; flex: none; }
.cktxt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cktxt small { color: var(--muted); }
.ckrow.new .cktxt b::after { content: " · neu für dich"; color: #8fe0b0; font-weight: 400; font-size: .8rem; }
.ckp { font-weight: 700; font-variant-numeric: tabular-nums; }
.ckrow button { padding: .2rem .55rem; }
.lastitem.ckitem.sought { box-shadow: inset 3px 0 0 #ffc46b; }

/* Benachrichtigungen aufs Handy (v2.85.0) */
.pushprefs { display: grid; gap: .35rem; margin-top: .8rem; }
.pushprefs label { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.pushprefs input { width: auto; }
.syswarn form { margin: 0; }

/* Zubehör: 3D-Drucke und Sonstiges (v2.94.0) */
.zsearch { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .6rem 0; }
.zsearch input[type=search] { flex: 1 1 14rem; width: auto; min-width: 0; }
.zsearch button, .zsearch .btn { width: auto; padding: .4rem .8rem; border-radius: 8px; text-decoration: none; }
.zbar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .4rem 0 1rem; }
.zbar .pill { text-decoration: none; margin: 0; padding: .1rem .7rem; color: var(--text); }
.zbar .pill.on { background: rgba(95, 214, 198, .16); border-color: var(--accent); color: var(--accent2); font-weight: 600; }
.zgap { margin-left: .8rem; }
.zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; margin-top: .8rem; }
.zcard { display: flex; flex-direction: column; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.zcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.zimg { position: relative; aspect-ratio: 4 / 3; background: var(--panel2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zimg img { width: 100%; height: 100%; object-fit: cover; }
.zno { font-size: 2.6rem; opacity: .55; }
.zno.big { display: block; text-align: center; font-size: 5rem; padding: 2rem 0; }
.zcount { position: absolute; right: .4rem; bottom: .4rem; background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; padding: .05rem .5rem; border-radius: 10px; }
.zbody { display: flex; flex-direction: column; gap: .35rem; padding: .7rem .8rem .8rem; }
.zmeta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .82rem; }
.zprice { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent2); }
.zmine .zrow, .zrow { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .4rem 0; border-top: 1px solid var(--line); }
.zacts { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.zacts form { margin: 0; }
.zacts .btn, .zacts button { width: auto; padding: .3rem .75rem; border-radius: 8px; text-decoration: none; }
.zdetail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 760px) { .zdetail { grid-template-columns: 1fr; } }
.zviewer img { width: 100%; border-radius: 10px; display: block; }
.zthumbs { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.zthumbs a { display: block; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.zthumbs a.on { border-color: var(--accent); }
.zthumbs img { width: 100%; height: 100%; object-fit: cover; }
.zdl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .6rem 0; }
.zdl dt { color: var(--muted); }
.zdl dd { margin: 0; overflow-wrap: anywhere; }
.zform { max-width: 820px; }
.zform label { display: block; margin: .6rem 0 .2rem; font-size: .88rem; color: var(--muted); }
.zform textarea { font: inherit; }
.zfields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .2rem 1rem; }
.zinputs { display: flex; gap: .4rem; }
.zphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.zphoto { margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.zphoto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.zphoto figcaption { align-self: flex-start; }
.zbarwrap { margin: .4rem 0; }
.zbar2 { display: block; height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; }
.zbar2 i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.zqueue { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; margin-bottom: .8rem; }
@media (max-width: 560px) { .zqueue { grid-template-columns: 1fr; } }
.zqimg { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--panel2); display: flex; align-items: center; justify-content: center; }
.zqimg img { width: 100%; height: 100%; object-fit: cover; }
.zqueue h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.zrej { display: flex; gap: .4rem; flex: 1 1 14rem; }
.zrej input { min-width: 0; }
.ztcell { width: 56px; }
.zthumb { width: 48px; height: 36px; object-fit: cover; border-radius: 5px; display: block; }
.zgrid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.zcatform { display: flex; gap: .4rem; margin: 0; flex: 1 1 12rem; }
.zcatform input { min-width: 0; }
.zcatform button { width: auto; }
.zcard, .zcard:hover, .zcard *, .zcard:hover * { text-decoration: none; }
.zdetail .btn, .zmine .btn, .zqueue .btn { display: inline-block; padding: .35rem .85rem; border-radius: 8px; text-decoration: none; }
.zmine { margin-bottom: 1rem; }

/* Events (v2.95.0) */
.evbar { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: .6rem 0 1rem; }
.evbar .pill { text-decoration: none; margin: 0; padding: .1rem .8rem; color: var(--text); }
.evbar .pill.on { background: rgba(95, 214, 198, .16); border-color: var(--accent); color: var(--accent2); font-weight: 600; }
.evbar .btn, .evnav .btn { display: inline-block; width: auto; padding: .35rem .85rem; border-radius: 8px; text-decoration: none; }
.evgap { flex: 1 1 1rem; }
.evlist { display: grid; gap: .7rem; }
.evcard { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .7rem .9rem; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.evcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.evcard.off { opacity: .6; }
.evcard, .evcard:hover, .evcard * { text-decoration: none; }
.evdate { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: var(--panel2); padding: .35rem 0; line-height: 1.15; }
.evdate b { font-size: 1.5rem; }
.evdate small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.evbody { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.evmeta { font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) { .evcard { grid-template-columns: 52px minmax(0, 1fr); } .evmine { grid-column: 2; } }
.evnav { display: flex; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.evnav b { min-width: 9rem; text-align: center; }
.ecal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ecal-h { text-align: center; color: var(--muted); font-size: .8rem; padding: .2rem 0; }
.ecal-d { min-height: 5.2rem; padding: .25rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ecal-d.empty { background: transparent; border-color: transparent; }
.ecal-d.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ecal-n { font-size: .8rem; color: var(--muted); }
.ecal-e { display: block; padding: .05rem .3rem; border-radius: 5px; font-size: .74rem; background: rgba(47, 181, 163, .16); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecal-e.yes { background: rgba(95, 214, 198, .38); font-weight: 600; }
.ecal-e.off { text-decoration: line-through; opacity: .55; }
@media (max-width: 640px) { .ecal-d { min-height: 3.6rem; } .ecal-e { font-size: .66rem; } }
.evchoice { display: flex; gap: .5rem; flex-wrap: wrap; }
.evchoice label { margin: 0; cursor: pointer; }
.evchoice label { position: relative; }
.evchoice input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 0; top: 0; }
.evchoice span { display: inline-block; padding: .35rem .9rem; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); }
.evchoice input:checked + span { background: rgba(95, 214, 198, .2); border-color: var(--accent); color: var(--accent2); font-weight: 600; }
.evchoice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.evrsvp label { display: block; margin: .6rem 0 .2rem; font-size: .88rem; color: var(--muted); }
.evrsvp .evchoice label { display: inline; margin: 0; }
.evwho { margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.5rem; }
.evwho h2, .evwho .note { grid-column: 1 / -1; }
.evgroup h3 { margin: .4rem 0; font-size: .95rem; }
.evgroup ul { margin: 0; padding-left: 1.1rem; }
.evcheck { display: flex !important; gap: .5rem; align-items: center; color: var(--text) !important; }
.evcheck input { width: auto; }
.evfeed { display: flex; gap: .5rem; flex-wrap: wrap; }
.evfeed input { flex: 1 1 18rem; min-width: 0; font-family: ui-monospace, monospace; font-size: .85rem; }
.evfeed button { width: auto; }

/* Events: Kalenderseite (v2.97.0) */
.kal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .kal { grid-template-columns: 1fr; } }
.kal-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }
.kal-bar .btn { display: inline-block; width: auto; padding: .35rem .85rem; border-radius: 8px; text-decoration: none; }
.kal-title { margin: 0 .4rem; font-size: 1.5rem; min-width: 11rem; text-align: center; }
.kal-jump { display: flex; gap: .3rem; margin: 0 0 0 auto; }
.kal-jump input { width: auto; padding: .3rem .5rem; }
.kal-jump button { width: auto; }
.kal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.kal-h { text-align: center; color: var(--muted); font-size: .8rem; font-weight: 600; padding: .3rem 0; text-transform: uppercase; letter-spacing: .05em; }
.kal-h.we { color: var(--accent2); }
.kal-d { min-height: 6.6rem; padding: .3rem; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: border-color .15s; }
.kal-d.out { background: transparent; border-color: transparent; box-shadow: none; }
.kal-d.we { background: rgba(255, 255, 255, .025); }
.kal-d:hover:not(.out) { border-color: rgba(98, 220, 203, .45); }
.kal-d.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 18px rgba(47, 181, 163, .18); }
.kal-top { display: flex; justify-content: space-between; align-items: center; }
.kal-n { font-size: .85rem; color: var(--muted); font-weight: 600; width: 1.7rem; height: 1.7rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.today .kal-n { background: var(--accent); color: #06231f; }
.kal-add { opacity: 0; width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent2); text-decoration: none; font-weight: 700; transition: opacity .15s, background .15s; }
.kal-d:hover .kal-add, .kal-add:focus-visible { opacity: 1; }
.kal-add:hover { background: rgba(95, 214, 198, .18); }
@media (hover: none) { .kal-add { opacity: .45; } }
.kal-e { display: block; padding: .12rem .4rem; border-radius: 6px; font-size: .76rem; line-height: 1.25; text-decoration: none; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--muted); background: rgba(255, 255, 255, .06); }
.kal-e b { font-variant-numeric: tabular-nums; }
.kal-e:hover { filter: brightness(1.2); }
.kal-e.s-yes, .kal-legend .s-yes::before { border-left-color: #4fd68a; background: rgba(79, 214, 138, .16); }
.kal-e.s-maybe, .kal-legend .s-maybe::before { border-left-color: #ffc46b; background: rgba(255, 196, 107, .16); }
.kal-e.s-no, .kal-legend .s-no::before { border-left-color: #ff8a8a; background: rgba(255, 138, 138, .1); }
.kal-e.s-no { text-decoration: line-through; opacity: .6; }
.kal-e.s-none, .kal-legend .s-none::before { border-left-color: var(--accent); background: rgba(47, 181, 163, .14); }
.kal-e.off { text-decoration: line-through; opacity: .5; }
.kal-more { font-size: .72rem; color: var(--muted); text-decoration: none; padding-left: .3rem; }
.kal-more:hover { color: var(--accent2); }
.kal-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .7rem; font-size: .8rem; color: var(--muted); }
.kal-legend span::before { content: ""; display: inline-block; width: .9rem; height: .9rem; border-radius: 4px; border-left: 3px solid; margin-right: .35rem; vertical-align: -.15rem; }
.kal-side { position: sticky; top: 4.5rem; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); max-height: calc(100vh - 6rem); overflow: auto; }
@media (max-width: 1000px) { .kal-side { position: static; max-height: none; } }
.kal-side h2 { margin: 0 0 .7rem; font-size: 1.05rem; }
.kal-links { font-size: .85rem; margin-bottom: 0; }
.evcard.compact { grid-template-columns: 52px minmax(0, 1fr); padding: .55rem .65rem; gap: .65rem; box-shadow: none; }
.evcard.compact .evmine { grid-column: 2; }
.evcard.compact .evdate b { font-size: 1.25rem; }
@media (max-width: 640px) { .kal-d { min-height: 4.3rem; padding: .2rem; } .kal-e { font-size: .64rem; padding: .05rem .2rem; } .kal-e b { display: none; } .kal-title { min-width: 0; font-size: 1.2rem; } .kal-jump { margin-left: 0; } }

/* Lange Menüs (Decks, Tauschen) scrollen, wenn der Bildschirm niedrig ist (v2.97.2) */
@media (min-width: 901px) { .ddmenu.mega { max-height: calc(100vh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; } }
.evshare { display: inline-block; width: auto; padding: .4rem .9rem; border-radius: 8px; text-decoration: none; border: 1px solid rgba(37, 211, 102, .5); }
.evshare:hover { background: rgba(37, 211, 102, .16); }

/* Suchfeld in der Kopfzeile deutlich abgesetzt: heller Rand, beim Überfahren und Fokus in der Akzentfarbe (v2.98.1) */
.top .hsearch input { border: 1.5px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); transition: border-color .15s, box-shadow .15s, background .15s; }
.top .hsearch input:hover { border-color: rgba(255, 255, 255, .9); }
.top .hsearch input:focus { border-color: var(--accent2); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 3px rgba(98, 220, 203, .25); outline: none; }

/* Zubehör: mehrere Dateien je Druck (v2.100.0) */
.zfiles { margin: .4rem 0 .8rem; }
.zfiles .zrow:first-child { border-top: 0; }
.zuplist { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .5rem; }
.zuplist li { display: grid; gap: .25rem; }
.zuplist .zbar2 { height: 6px; }

/* Links (v2.101.0) */
.lk-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .6rem 0 1rem; }
.lk-bar .btn { display: inline-block; width: auto; padding: .35rem .85rem; border-radius: 8px; text-decoration: none; }
.lk-view .pill { text-decoration: none; margin: 0 .3rem 0 0; padding: .1rem .8rem; color: var(--text); }
.lk-view .pill.on { background: rgba(95, 214, 198, .16); border-color: var(--accent); color: var(--accent2); font-weight: 600; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.lk-tile { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.lk-card { display: flex; flex-direction: column; flex: 1; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.lk-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.lk-card, .lk-card:hover, .lk-card * { text-decoration: none; }
.lk-img { display: block; aspect-ratio: 16 / 9; background: var(--panel2); overflow: hidden; }
.lk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lk-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2.4rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
.lk-body { display: flex; flex-direction: column; gap: .25rem; padding: .7rem .85rem .85rem; min-width: 0; }
.lk-body b { overflow-wrap: anywhere; }
.lk-desc { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lk-adm, .lk-act { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.lk-adm .btn, .lk-act .btn { display: inline-block; width: auto; padding: .25rem .7rem; border-radius: 8px; text-decoration: none; }
.lk-mv { margin: 0; }
.lk-mv button { width: auto; padding: .2rem .55rem; }
.lk-tablewrap { overflow-x: auto; }
.lk-tcell { width: 64px; }
.lk-mini { width: 56px; height: 36px; object-fit: cover; border-radius: 6px; display: block; }
.lk-tcell .lk-ph { width: 56px; height: 36px; font-size: 1.1rem; border-radius: 6px; }
.lk-prev { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1rem; }
@media (max-width: 600px) { .lk-prev { grid-template-columns: 1fr; } }
.lk-tcell .lk-ph { display: flex; }
.lk-act { flex-wrap: nowrap; white-space: nowrap; }

/* Kopfzeile bei vielen Menüpunkten (v2.101.0): zwischen Handy-Menü und breitem Bildschirm enger setzen, damit nichts abgeschnitten wird */
@media (min-width: 1321px) and (max-width: 1560px) {
    .top { gap: .7rem; padding-left: .8rem; padding-right: .8rem; }
    .top nav { gap: .1rem; }
    .top nav a, .top nav .ddbtn { padding-left: .5rem; padding-right: .5rem; }
    .top .hsearch { min-width: 120px; flex: 0 1 150px; }
    .uname { max-width: 90px; }
}

/* Links: Kategorien (v2.102.0) */
.lk-filter { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0 0 1rem; }
.lk-filter .pill { text-decoration: none; margin: 0; padding: .1rem .75rem; color: var(--text); }
.lk-filter .pill.on { background: rgba(95, 214, 198, .16); border-color: var(--accent); color: var(--accent2); font-weight: 600; }
.lk-cat { align-self: flex-start; font-size: .72rem; padding: .05rem .55rem; margin-bottom: .1rem; }

/* Konfiguration (v2.107.0): lange Pfade und Fehlermeldungen umbrechen statt über den Rand laufen (Handy) */
.cfg-wrap, .syswarn li { overflow-wrap: anywhere; }
.cfg-plan { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }
/* Konfiguration: einklappbare Abschnitte (v2.108.0) */
.cfg-sec { margin: 0 0 1rem; }
.cfg-sec > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; cursor: pointer; list-style: none; padding: .15rem 0; }
.cfg-sec > summary::-webkit-details-marker { display: none; }
.cfg-sec > summary::before { content: '▸'; color: var(--accent2); transition: transform .15s; }
.cfg-sec[open] > summary::before { transform: rotate(90deg); }
.cfg-sec[open] > summary { margin-bottom: .75rem; }
.cfg-title { font-size: 1.15rem; font-weight: 700; color: var(--accent2); }
.cfg-badge { font-size: .85rem; }
.cfg-badge.is-ok { color: var(--accent2); }
.cfg-badge.is-bad { color: #e5534b; font-weight: 600; }
.cfg-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
.cfg-sec h3 { margin: 1rem 0 .4rem; }
/* Abmelden im Benutzermenue als Formular-Knopf (v2.110.0), sieht aus wie die Menuelinks */
.ddform { margin: 0; }
.ddmenu .ddlogout { display: flex; width: 100%; padding: .5rem .75rem; border: 0; border-radius: 9px; background: none; box-shadow: none; color: var(--text); font: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.ddmenu .ddlogout:hover { background: rgba(95, 214, 198, .12); }
.ddmenu .ddlogout:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
/* Reiter zusammengelegter Seiten (v2.111.0): Optik wie der Umschalter .seg */
.ptabs { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: -.4rem 0 1.2rem; }
.ptabs a { padding: .35rem .95rem; font-size: .9rem; color: var(--muted); border-radius: 999px; text-decoration: none; white-space: nowrap; }
.ptabs a:hover { color: var(--text); text-decoration: none; }
.ptabs a.on { background: rgba(47, 181, 163, .22); color: var(--accent2); box-shadow: inset 0 0 0 1px rgba(98, 220, 203, .35); font-weight: 600; }
.ptabs .badge { margin-left: .2rem; }
@media (max-width: 560px) { .ptabs { flex-wrap: nowrap; overflow-x: auto; border-radius: 14px; } }
/* Grundmenue (v2.111.0): "Alle Funktionen zeigen" als dezenter Menuepunkt */
.navform { margin: 0; display: inline-flex; }
.top nav .navmore { width: auto; background: none; border: 1px dashed var(--line); box-shadow: none; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; }
.top nav .navmore:hover { color: var(--text); border-color: var(--accent2); filter: none; transform: none; }
/* Einstieg fuer neue Konten (v2.111.0) */
.welcome { max-width: 760px; }
.wsteps { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 1rem; }
.wsteps li { display: flex; gap: .9rem; align-items: flex-start; }
.wsteps p { margin: .3rem 0 0; }
.wnum { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(47, 181, 163, .22); color: var(--accent2); box-shadow: inset 0 0 0 1px rgba(98, 220, 203, .35); }
.wbtns { display: flex; flex-wrap: wrap; gap: .6rem; }
.wbtns .btn { width: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; text-decoration: none; }

/* Meldung nach Import oder Pruefung (v2.112.0, Idee #130) */
.jobdlg { width: min(460px, calc(100vw - 32px)); padding: 1.3rem 1.4rem 1.1rem; }
.jobdlg[open] { display: block; position: fixed; inset: 0; margin: auto; height: fit-content; }
.jobdlg h2 { margin: 0 0 .6rem; font-size: 1.2rem; }
.jobdlg.ok h2 { color: var(--accent, #3cc7b4); }
.jobdlg.bad h2 { color: #f08a8a; }
.jobdlg p { margin: 0 0 1.1rem; white-space: pre-line; line-height: 1.5; }
.jobbtns { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.jobbtns button, .jobbtns .btn { width: auto; padding: .5rem 1.2rem; border-radius: 9px; text-decoration: none; display: inline-block; }
.jobbtns .btn.ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: none; border: 1px solid rgba(255, 255, 255, .1); }

/* Admin > Werbematerial (v2.115.0, Idee #132) */
.werbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; align-items: start; }
.werbitem { display: flex; flex-direction: column; gap: .4rem; }
.werbitem h3 { margin: .4rem 0 0; }
.werbitem p { margin: 0; }
.werbprev { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--glass-line); }
.werbprev img { display: block; width: 100%; height: auto; transition: transform .2s ease; }
.werbprev:hover img { transform: scale(1.02); }
.werblist { margin: .3rem 0 0; padding-left: 1.3rem; font-size: .9rem; }
.werbbtns { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.werbbtns .btn { display: inline-block; width: auto; padding: .45rem .9rem; border-radius: 8px; text-decoration: none; }
.werbbtns .btn.ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: none; border: 1px solid rgba(255, 255, 255, .1); }

/* Private Events (v2.116.0, Idee #134) */
.evinvite { border: 1px solid var(--glass-line); border-radius: 12px; padding: .6rem 1rem .4rem; margin: .6rem 0; }
.evinvite legend { padding: 0 .4rem; font-weight: 600; }
.evpeople { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: .1rem 1rem; }
.chip.evpriv { background: rgba(199, 107, 255, .16); color: #d9a8ff; border-color: rgba(199, 107, 255, .35); }
.evextra { margin-top: 1rem; }
.evextra form + form { margin-top: .8rem; }

/* Termin finden (v2.117.0, Idee #135) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evmode { margin: .7rem 0 .2rem; }
.evopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .5rem; }
.evpollbox #pu { max-width: 320px; }
.chip.evpollchip { background: rgba(255, 200, 87, .16); color: #ffd98a; border-color: rgba(255, 200, 87, .35); }
.evcard.poll .evdate b { color: #ffd98a; }
.evpollp { margin-top: 1rem; }
.evpoll { border-collapse: separate; border-spacing: 3px; width: auto; min-width: 100%; }
.evpoll th, .evpoll td { text-align: center; padding: .4rem .5rem; border-radius: 8px; white-space: nowrap; }
.evpoll thead th { font-weight: 500; color: var(--muted); line-height: 1.25; }
.evpoll thead th span, .evpoll thead th b { display: block; }
.evpoll thead th b { color: var(--text); font-size: 1.05rem; }
.evpoll tbody th, .evpoll tfoot th { text-align: left; font-weight: 600; }
.evpoll .best { background: rgba(79, 214, 138, .12); }
.evpoll thead th.best { box-shadow: inset 0 0 0 1px rgba(79, 214, 138, .5); }
.evpoll td.v-yes { background: rgba(79, 214, 138, .22); color: #7ff0ae; font-weight: 700; }
.evpoll td.v-maybe { background: rgba(255, 196, 107, .2); color: #ffd58f; font-weight: 700; }
.evpoll td.v-no { background: rgba(255, 138, 138, .14); color: #ff9e9e; }
.evpoll td.v-none { color: var(--muted); }
.evpoll tr.pend td { text-align: left; font-style: italic; }
.evpoll tr.me th { color: var(--accent2); }
.evpoll tfoot td { color: var(--text); }
.evpoll tr.fix button { font-size: .78rem; padding: .3rem .6rem; white-space: normal; max-width: 7.5rem; line-height: 1.2; }
.evvote { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.evvote label { position: relative; margin: 0; cursor: pointer; }
.evvote input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.evvote label span[aria-hidden] { display: inline-block; min-width: 1.9rem; padding: .25rem .35rem; border-radius: 999px; color: var(--muted); font-weight: 700; }
.evvote label:hover span[aria-hidden] { color: var(--text); }
.evvote input:focus-visible + span { outline: 2px solid var(--accent); }
.evvote .v-yes input:checked + span { background: rgba(79, 214, 138, .3); color: #7ff0ae; }
.evvote .v-maybe input:checked + span { background: rgba(255, 196, 107, .3); color: #ffd58f; }
.evvote .v-no input:checked + span { background: rgba(255, 138, 138, .25); color: #ff9e9e; }
.kal-e.opt, .kal-legend .s-opt::before { border-left: 3px dashed #ffc857; background: rgba(255, 200, 87, .08); opacity: .8; }

/* Bann- und Game-Changer-Waechter (v2.119.0) auf decks.php */
.legalbox { margin-bottom: 1.2rem; border-left: 3px solid #ff8a8a; }
.legallist { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .55rem; }
.legallist li { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem .6rem; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.legallist li.new { background: rgba(255, 138, 138, .08); box-shadow: inset 0 0 0 1px rgba(255, 138, 138, .25); }
.legallist .lic { font-size: 1.15rem; line-height: 1.4; }
.legaldecks { font-size: .88rem; color: var(--muted); margin-top: .15rem; }

/* Kartensuche mit Scryfall-Syntax (v2.120.0) */
.linkbtn { display: inline; width: auto; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; color: var(--accent2); font: inherit; cursor: pointer; text-decoration: underline dotted; }
.linkbtn:hover { background: none; filter: none; transform: none; color: var(--text); }
.sqdlg { width: min(860px, 94vw); }
.sqdlg .fhead > div { flex: 1; }
.sqhelp td { vertical-align: top; white-space: normal !important; }
.sqhelp td:first-child, .sqhelp td:nth-child(2) { white-space: nowrap !important; }
.sqhelp code { font-size: .86rem; }
@media (max-width: 640px) { .sqhelp td:first-child { display: none; } }

/* Tauschpaket fuer ein Event (v2.121.0) */
.evpacklink { margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.evpacklink .btn { width: auto; }
.evpimg { width: 30px; border-radius: 3px; vertical-align: middle; margin-right: .45rem; }
.evptable td { vertical-align: middle; }
.evptable td.evpwhere { white-space: normal !important; color: var(--muted); font-size: .86rem; min-width: 8rem; }
.evpartner { margin-bottom: 1rem; }
.evpacklist { margin-bottom: 1rem; }
.evpacklist h2 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.evpacklist h2 button { margin-left: auto; }
.evpacklist h3 { margin: .8rem 0 .3rem; font-size: .95rem; }
.evpcheck { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 1.5rem; }
.evpcheck li { break-inside: avoid; padding: .2rem 0; display: flex; gap: .5rem; align-items: baseline; }
.evpcheck .box { flex: none; width: .85rem; height: .85rem; border: 1.5px solid var(--muted); border-radius: 3px; transform: translateY(.1rem); }
@media print {
    body:has(.evpack) header.top, body:has(.evpack) .helpfab, body:has(.evpack) .syswarn, .evpack .noprint, .evpack .evpartner, .evpack .tiles { display: none !important; }
    body:has(.evpack) { background: #fff !important; color: #000 !important; }
    body:has(.evpack) main { padding: 0 !important; max-width: none !important; }
    .evpack .panel { background: #fff !important; border: 0 !important; box-shadow: none !important; color: #000 !important; }
    .evpack h1, .evpack h2, .evpack h3, .evpack .muted { color: #000 !important; }
    .evpcheck .box { border-color: #000; }
}

/* Verkaufen (v2.122.0) */
.sellexp { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin: 0 0 1rem; }
.sellexp .btn { width: auto; }
.selllist td { vertical-align: middle; }

/* Erwartungswert je Booster (v2.123.0) */
.evbox { margin-bottom: 1rem; }
.evbox > summary { cursor: pointer; list-style: none; }
.evbox > summary::-webkit-details-marker { display: none; }
.evbox > summary h2 { display: inline; margin: 0; }
.evbox > summary::before { content: '▸ '; color: var(--accent2); }
.evbox[open] > summary::before { content: '▾ '; }
.evbox .evform { margin: .9rem 0; }
.evbox .tiles { margin-bottom: .9rem; }
.evhits { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.evhits li { display: flex; gap: .6rem; align-items: center; }
.evhits img { width: 36px; border-radius: 4px; flex: none; }
.evbox .grid2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 900px) { .evbox .grid2 { grid-template-columns: 1fr; } }
.evrar td:last-child { white-space: normal !important; min-width: 11rem; }

/* Neue Sets (v2.125.0) */
.nssets { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.nsset { display: flex; flex-direction: column; gap: .25rem; padding: .6rem .85rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); min-width: 12rem; }
.nsset > a { color: var(--text); display: flex; flex-direction: column; }
.nsset small { color: var(--muted); font-size: .8rem; }
.nsset.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(98, 220, 203, .35); }
a.nsset:hover, .nsset > a:hover { text-decoration: none; color: var(--accent2); }
.nsset .nscal { font-size: .82rem; color: var(--accent2); }
.nsdeck { margin-bottom: 1rem; }
.nscmd { width: 30px; border-radius: 3px; }
.nsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .6rem; }
.nscard { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem; border-radius: 10px; background: rgba(255, 255, 255, .03); color: var(--text); }
.nscard:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }
.nscard img { width: 58px; border-radius: 4px; flex: none; }
.nsmeta { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.nsmeta small { color: var(--muted); font-size: .8rem; }
.nswhy { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .15rem; }
.nswhy .chip { font-size: .7rem; }

/* Wants mit Hoechstpreis (v2.126.0): auf dem Handy Felder unter die Karte statt in eine zweite Spalte */
.wmax { white-space: nowrap; color: var(--muted); font-size: .88rem; }
@media (max-width: 600px) {
    table.wantlist, table.wantlist tbody, table.wantlist tr, table.wantlist td { display: block; width: auto; }
    table.wantlist thead { display: none; }
    table.wantlist tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
    table.wantlist td { border: 0 !important; padding: .2rem 0 !important; }
    table.wantlist td.r { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-start; text-align: left; }
    table.wantlist td.r form { display: inline-flex !important; margin: 0 !important; }
    table.wantlist td.r input { width: 4.6rem !important; }
    table.wantlist td.r input[name=category] { width: 8rem !important; }
}

/* Sammelziele (v2.127.0) */
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
a.goal { display: flex; flex-direction: column; gap: .35rem; color: var(--text); }
a.goal:hover { text-decoration: none; border-color: var(--accent); }
a.goal h2 { margin: 0; }
.goalq { font-size: .82rem; color: var(--accent2); background: rgba(255, 255, 255, .05); padding: .05rem .4rem; border-radius: 6px; }
.goalnum { margin-top: .3rem; }
.goalnum b { font-size: 1.25rem; }
.goalform { display: grid; grid-template-columns: max-content 1fr; gap: .5rem .8rem; align-items: center; }
.goalform label { margin: 0; }
.goalform p { grid-column: 1 / -1; margin: .3rem 0 0; }
@media (max-width: 600px) { .goalform { grid-template-columns: 1fr; } }
.goalex { margin: .15rem 0; }

/* Sammelbestellung (v2.128.0) */
table.orderlist tr.ordergrp th { text-align: left; padding-top: .9rem; border-bottom: 1px solid var(--line); }
table.orderlist td form, table.orderbill td form { margin: 0; }
table.orderlist td button, table.orderbill td button { width: auto; padding: .2rem .6rem; }
table.orderbill button.paid { color: var(--g); border-color: var(--g); }
.ordercopy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: .8rem; margin-top: 1rem; }
.ordercopy .panel { margin: 0; }
.ordercopy textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .85rem; }
@media (max-width: 700px) {
    table.orderlist, table.orderlist tbody, table.orderlist tr, table.orderlist td, table.orderlist th,
    table.orderbill, table.orderbill tbody, table.orderbill tfoot, table.orderbill tr, table.orderbill td, table.orderbill th { display: block; width: auto; }
    table.orderlist thead, table.orderbill thead { display: none; }
    table.orderlist tr, table.orderbill tr { padding: .4rem 0; border-bottom: 1px solid var(--line); }
    table.orderlist td, table.orderbill td, table.orderbill tfoot th { border: 0 !important; padding: .15rem 0 !important; text-align: left !important; white-space: normal !important; }
    table.orderlist td[data-l]:not(:first-child)::before, table.orderbill td[data-l]:not(:first-child)::before, table.orderbill tfoot th[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
    table.orderlist td:empty, table.orderbill tfoot th:empty { display: none; }
}

/* Testumgebung (v2.130.0) */
.envbar { background: #b45309; color: #fff; text-align: center; font-weight: 600; font-size: .85rem; padding: .3rem .6rem; position: sticky; top: 0; z-index: 60; }

.legalfoot { margin: 2.5rem 0 1rem; text-align: center; font-size: .8rem; color: var(--muted); }
.legalfoot a { color: inherit; }
.legaltext { max-width: 46rem; }
.legaltext h2 { margin-top: 1.6rem; }

/* Turnier (v2.139.0) */
.u-inline { display: inline-block; margin: 0 0 0 .4rem; }
.tn-list { list-style: none; margin: .4rem 0; padding: 0; }
.tn-list li { padding: .25rem 0; border-bottom: 1px solid var(--line); }
.tn-round select { width: auto; max-width: 11rem; }
.tn-round tr.me { background: rgba(47, 181, 163, .12); }
table tr.best td, table tr.best th { background: rgba(79, 214, 138, .12); }
