:root{--bg:#140d08;--panel:#1d140e;--panel2:#281b12;--wood:#6d4025;--gold:#e7b85e;--cream:#f6ebd6;--muted:#b8a48a;--green:#07502f;--line:#604126;--red:#c5322d}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 20%,#3a2415 0,#170f0a 62%);color:var(--cream);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px clamp(14px,2vw,32px);border-bottom:1px solid #67462d;background:#1b120cfa;position:sticky;top:0;z-index:5;backdrop-filter:blur(12px);min-height:76px}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--gold);border-radius:12px;color:var(--gold);font-size:26px}.brand strong{display:block;font-family:Georgia,serif;font-size:23px}.brand small{color:var(--muted);font-size:11px;letter-spacing:.1em;text-transform:uppercase}.topbar nav{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.nav,button{cursor:pointer;border:1px solid var(--line);border-radius:10px;background:linear-gradient(#38271a,#26180f);color:var(--cream);padding:10px 14px;font-weight:650;transition:filter .15s,transform .15s}.nav.active,.primary{background:linear-gradient(#f4cf79,#dca84c);color:#24170c;border-color:#f4cf79}.nav:hover,button:hover{filter:brightness(1.13)}button:disabled{opacity:.5;cursor:not-allowed}main{max-width:1680px;margin:0 auto;padding:26px clamp(12px,2vw,30px) 64px}.eyebrow{color:var(--gold);font-size:12px;letter-spacing:.15em;text-transform:uppercase;font-weight:800}.hero{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.hero h1{font-family:Georgia,serif;font-size:clamp(30px,5vw,46px);line-height:1.05;margin:8px 0}.hero p{color:var(--muted);max-width:720px;line-height:1.55}.card,.side-panel{background:linear-gradient(145deg,#261a11,#1b120c);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 18px 50px #0004}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.table-card h3{font-family:Georgia,serif;font-size:23px;margin:8px 0}.muted{color:var(--muted)}.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #796040;border-radius:99px;padding:5px 9px;color:var(--gold);font-size:12px}.seat-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.seat{background:#1b130e;border:1px solid #523924;border-radius:10px;padding:10px;font-size:13px}.seat strong{display:block;margin-top:4px}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.spread{justify-content:space-between}.form-row{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.field{display:flex;flex-direction:column;gap:6px;flex:1;min-width:180px}.field label{font-size:13px;color:var(--muted)}input,select{width:100%;background:#170f0b;border:1px solid #68492f;border-radius:10px;padding:12px;color:var(--cream);font:inherit}.action-field{flex:0 0 auto;justify-content:end}h2{font-family:Georgia,serif;font-size:28px;margin:0 0 10px}h3{font-size:15px}.section{margin-top:28px}.rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.rule h3{margin:0 0 8px;color:var(--gold)}.rule p,.rule li{font-size:14px;line-height:1.55;color:#ddcdb6}.empty{padding:28px;text-align:center;border:1px dashed var(--line);border-radius:16px;color:var(--muted)}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 18px;background:#f4e4c4;color:#21160f;border-radius:10px;box-shadow:0 10px 30px #0005;display:none;z-index:10}.settings-row{display:grid;grid-template-columns:2fr 1fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #4c3524}.settings-row input{max-width:140px}.loading{color:var(--muted);padding:50px;text-align:center}
/* Wirtshaustisch-Spielansicht */
.game-layout{display:grid;grid-template-columns:minmax(250px,330px) minmax(500px,1fr) minmax(240px,320px);gap:18px;align-items:stretch}.side-panel{padding:16px;min-width:0}.table-title{padding-bottom:16px;border-bottom:1px solid #4d3422;margin-bottom:16px}.table-title h2{display:flex;align-items:center;gap:8px}.icon-btn{padding:2px 7px;font-size:16px}.side-panel>h3{margin:18px 0 10px}.roster{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #49321f;border-radius:12px;background:#19110b;margin:8px 0}.roster.active{border-color:#f0c96d;box-shadow:0 0 0 2px #f0c96d}.avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#26362b;border:2px solid #8d6b37;font-size:24px;flex-shrink:0}.roster-text{min-width:0;flex:1}.roster-text strong,.roster-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.roster-text small{font-size:11px;color:var(--muted);margin-top:4px}.online{font-size:10px;color:#7fe4a0}.seat-action{display:grid;grid-template-columns:1fr 85px;gap:6px;align-items:center;margin:8px 0;font-size:12px}.seat-action button{grid-column:1/-1}.seat-action select{padding:7px}.felt-area{min-width:0;display:flex;align-items:stretch}.felt-table{width:100%;min-height:690px;background:linear-gradient(135deg,#432817,#8a5733 24%,#3b2113 50%,#8a5733 80%,#321b10);padding:12px;border-radius:36% / 12%;box-shadow:0 20px 50px #0009,inset 0 0 0 2px #a97546}.wood-rim{height:100%;min-height:666px;padding:13px;border-radius:36% / 12%;background:linear-gradient(140deg,#9b6b40,#402514 30%,#7b4a29 55%,#321b10);box-shadow:inset 0 0 0 2px #b5834d}.felt{position:relative;min-height:640px;height:100%;border-radius:36% / 12%;background:radial-gradient(ellipse at 50% 45%,#08703d 0,#07512f 56%,#02351f 100%);border:2px solid #b48b4e;box-shadow:inset 0 0 35px #001b10;overflow:hidden}.opponent{position:absolute;display:flex;align-items:center;flex-direction:column;z-index:1}.opponent-top{top:10px;left:50%;transform:translateX(-50%)}.opponent-left{left:8px;top:38%;transform:translateY(-50%)}.opponent-right{right:8px;top:38%;transform:translateY(-50%)}.opponent-bottom{bottom:12px;left:50%;transform:translateX(-50%);width:92%}.player-badge{background:#1d1712e8;border:1px solid #987044;border-radius:14px;padding:7px 13px;text-align:center;white-space:nowrap;box-shadow:0 4px 12px #0005}.player-badge small{display:block;color:#ddc8a6;font-size:11px;margin-top:3px}.backs{display:flex;justify-content:center;margin-top:5px}.back-card{width:clamp(25px,3vw,40px);height:clamp(46px,5vw,68px);border:2px solid #f2e6cf;border-radius:6px;background:repeating-linear-gradient(45deg,#eaf2f2 0 3px,#2773a2 3px 6px,#f8f0df 6px 8px);box-shadow:0 4px 8px #0005;margin-left:-10px;transform:rotate(var(--rot,0deg))}.backs .back-card:nth-child(odd){transform:rotate(-7deg) translateY(2px)}.backs .back-card:nth-child(even){transform:rotate(6deg)}.vertical{flex-direction:column}.vertical .back-card{margin: -16px 0 0 0;width:clamp(30px,3vw,42px);height:clamp(45px,4vw,60px)}.table-center{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%);width:min(62%,480px);z-index:2}.game-notice{background:#032e1de8;border:1px solid #44845b;border-radius:18px;padding:18px;text-align:center;box-shadow:0 12px 30px #001b0d88}.game-notice h2{font-family:Georgia,serif;font-size:clamp(18px,2vw,26px);margin:8px 0}.game-notice p{color:#e0d2b5;font-size:13px}.start-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.start-controls button{grid-column:1/-1}.trick-area{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin-top:14px}.played-slot{display:flex;flex-direction:column;align-items:center;gap:4px}.played-slot small{font-size:10px;color:#e6d3b4}.hand{display:flex;justify-content:center;align-items:flex-end;margin-top:4px;padding-top:6px;max-width:100%;overflow:visible}.playing-card{position:relative;width:clamp(58px,5.3vw,88px);height:clamp(108px,11vw,154px);flex:0 1 88px;min-width:0;border-radius:9px;background:linear-gradient(130deg,#fff6df,#f0dfbd);border:2px solid #d9c69e;color:#19140e;box-shadow:0 6px 14px #0006;display:flex;flex-direction:column;justify-content:space-between;padding:5px 6px;margin-left:clamp(-15px,-.9vw,-4px);font-family:Georgia,'Times New Roman',serif;transition:transform .16s,box-shadow .16s;overflow:hidden}.playing-card:first-child{margin-left:0}.playing-card:hover:not(:disabled){transform:translateY(-13px) rotate(-1deg);box-shadow:0 12px 20px #0008;z-index:4}.playing-card.red{color:#ba2825}.playing-card .corner{display:flex;flex-direction:column;align-items:center;line-height:.9;z-index:1}.playing-card .corner b{font-size:clamp(15px,1.4vw,21px)}.playing-card .corner i{font-style:normal;font-size:clamp(15px,1.3vw,20px)}.playing-card .bottom{transform:rotate(180deg)}.card-art{position:absolute;inset:24% 4% 24%;border:1px solid currentColor;border-radius:50% 50% 8px 8px / 22% 22% 8px 8px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:repeating-linear-gradient(0deg,transparent 0 9px,#c6a97833 9px 10px)}.art-symbol{font-size:clamp(25px,2.3vw,38px);line-height:1}.art-glyph{font-size:clamp(24px,2vw,34px);line-height:1.1}.art-title{font-family:system-ui,sans-serif;font-size:7px;font-weight:900;letter-spacing:.08em;margin-top:3px}.playing-card.court .card-art{background:linear-gradient(145deg,#f6e7bf,#d7b77d);box-shadow:inset 0 0 0 3px #f7edcf,inset 0 0 0 4px currentColor}.playing-card:disabled{cursor:default}.last-trick{display:flex;flex-wrap:wrap;gap:2px;margin:8px 0}.last-trick .playing-card{width:48px;height:82px;flex:none;margin:0;padding:3px}.last-trick .art-title{display:none}.last-trick .art-symbol{font-size:18px}.last-trick .art-glyph{font-size:16px}.last-trick .corner b,.last-trick .corner i{font-size:11px}.last-trick p{width:100%;font-size:12px;color:var(--gold)}.right-panel{display:flex;flex-direction:column;gap:8px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.panel-heading h2{font-size:24px}.score-list{border:1px solid #49321f;border-radius:12px;overflow:hidden}.score-row{display:flex;justify-content:space-between;gap:8px;padding:12px 10px;border-bottom:1px solid #49321f;font-size:12px}.score-row:last-child{border:0}.score-row b{color:var(--gold);white-space:nowrap}.compact{font-size:12px;margin-top:auto}.full-button{width:100%;margin-top:10px}.result-line{font-size:12px;color:var(--gold);line-height:1.5;margin-top:8px}
@media(max-width:1200px){.game-layout{grid-template-columns:250px minmax(400px,1fr)}.right-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:start}.right-panel .panel-heading,.right-panel .score-list{grid-column:1}.right-panel h3,.right-panel .last-trick{grid-column:2}.right-panel .compact,.right-panel .full-button{grid-column:1/-1}.felt-table{min-height:620px}.wood-rim{min-height:596px}.felt{min-height:570px}}
@media(max-width:760px){.topbar{align-items:flex-start;flex-direction:column}.topbar nav{justify-content:flex-start}.hero{align-items:flex-start;flex-direction:column}.game-layout{grid-template-columns:1fr}.felt-table{min-height:550px;border-radius:28% / 10%}.wood-rim{min-height:526px;border-radius:28% / 10%;padding:8px}.felt{min-height:500px;border-radius:28% / 10%}.side-panel{padding:14px}.right-panel{display:flex}.opponent-left{left:2px}.opponent-right{right:2px}.player-badge{padding:6px 8px;font-size:11px}.player-badge small{font-size:9px}.table-center{width:72%;top:43%}.game-notice{padding:10px}.game-notice h2{font-size:18px}.game-notice p{font-size:11px}.opponent-bottom{width:98%}.playing-card{height:clamp(98px,25vw,128px);width:clamp(47px,13vw,66px);flex:0 1 66px;margin-left:-11px;padding:4px}.playing-card .corner b{font-size:14px}.playing-card .corner i{font-size:14px}.art-symbol{font-size:24px}.art-glyph{font-size:22px}.art-title{font-size:5px}.back-card{width:25px;height:42px;margin-left:-8px}.backs.vertical .back-card{width:26px;height:39px;margin-top:-13px}.seat-list{grid-template-columns:1fr 1fr}.card{padding:15px}}

/* Traditionelles bayerisches Kartenblatt als Vektorgrafik */
.playing-card.bavarian-card{padding:0;background:#f5e8c6;border:1px solid #b9904d;overflow:hidden}
.playing-card.bavarian-card img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}
.table-actions{display:flex;flex-direction:column;gap:7px;margin-top:14px}
.table-actions button{white-space:normal}

/* v0.7: Jeder Stichplatz entspricht fest einem Sitzplatz. */
.trick-compass{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto auto;gap:6px;justify-items:center;align-items:center;margin-top:12px;min-height:225px}
.trick-compass .played-seat-2{grid-column:2;grid-row:1}.trick-compass .played-seat-3{grid-column:1;grid-row:2}.trick-compass .played-seat-1{grid-column:3;grid-row:2}.trick-compass .played-seat-0{grid-column:2;grid-row:3}
.trick-compass .played-slot{min-width:0;gap:3px}.trick-compass .played-slot small{display:block;font-size:11px;font-weight:700;color:#ffe1a0;white-space:nowrap;text-shadow:0 1px 3px #000}
.trick-compass .playing-card{width:clamp(44px,4vw,58px);height:clamp(68px,6.5vw,88px);margin:0;flex:none;padding:0}.trick-compass .slot-placeholder{display:block;border:1px dashed #c5d3a75e;border-radius:7px;width:46px;height:60px;line-height:60px;color:#d1e2c170}
.last-trick .last-card{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;flex:1}.last-trick .last-card small{font-size:10px;color:#ffe1a0;white-space:nowrap}.last-trick .last-card .playing-card{width:clamp(37px,3vw,48px);height:78px}.last-trick p{margin-top:7px}
@media(max-width:760px){.trick-compass{min-height:180px;gap:2px}.trick-compass .playing-card{width:39px;height:62px}.trick-compass .slot-placeholder{width:35px;height:48px;line-height:48px}.trick-compass .played-slot small{font-size:9px}.last-trick .last-card small{font-size:9px}}

/* v0.8 – Ansage sichtbar oberhalb der Hand, Handkarten nicht ausgegraut */
.felt:has(#gameType) .table-center{top:36%;width:min(68%,540px)}
.felt:has(#gameType) .game-notice{padding:14px 18px;background:#042c1df2}
.felt:has(#gameType) .game-notice h2{font-size:21px;margin:6px 0}
.felt:has(#gameType) .game-notice p{margin:6px 0}
.felt:has(#gameType) .opponent-bottom{bottom:10px;z-index:3}
.felt:has(#gameType) .opponent-bottom .player-badge{margin-bottom:6px}
.felt:has(#gameType) .hand{gap:3px;flex-wrap:nowrap}
.felt:has(#gameType) .hand .playing-card{margin-left:0;width:clamp(48px,5vw,77px);height:clamp(85px,9vw,130px);flex:0 1 77px;opacity:1;filter:none;box-shadow:0 3px 8px #0007;cursor:default}
.felt:has(#gameType) .hand .playing-card:disabled{opacity:1;filter:none}
.felt:has(#gameType) .start-controls{grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
.felt:has(#gameType) .start-controls label{align-self:center}
.felt:has(#gameType) .start-controls button{grid-column:auto}
.felt:has(#gameType) .start-controls .bidding-hint{grid-column:1/-1;color:#d4b98c;font-size:10px;line-height:1.35}
.felt:has(#gameType) .start-controls .pass-button{background:#271b11;border:1px solid #c69d55;color:#f5d99e}
@media(max-width:760px){.felt:has(#gameType) .table-center{top:35%;width:78%}.felt:has(#gameType) .game-notice{padding:8px}.felt:has(#gameType) .game-notice h2{font-size:16px}.felt:has(#gameType) .game-notice p{font-size:10px}.felt:has(#gameType) .hand{gap:1px}.felt:has(#gameType) .hand .playing-card{width:clamp(39px,11vw,54px);height:clamp(70px,19vw,100px)}}

/* Version 0.10: klassisches Kartenblatt und sichtbare Hand */
.playing-card.bavarian-card { background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important; overflow:visible!important; }
.playing-card.bavarian-card img { display:block; width:100%; height:100%; object-fit:fill; border-radius:8px; box-shadow:0 3px 9px rgba(0,0,0,.38); }
.hand .playing-card.bavarian-card:disabled { opacity:1!important; filter:none!important; }
.game-notice:has(.start-controls) { max-height:55%; overflow:auto; }

.bid-history{margin:10px auto;max-height:140px;overflow-y:auto;text-align:left;width:min(100%,360px);font-size:12px;color:#f4e6c5}.bid-history div{padding:3px 8px;border-bottom:1px solid #ffffff25}.bid-history b{color:#f7c96c}

.declarer-tag{display:block;color:#ffd36e!important;font-weight:800;font-size:11px}
.declaration-main{font-size:clamp(12px,1.15vw,16px);font-weight:800;color:#ffe5a2;margin:6px 0 4px}
.declaration-sidebar{padding:12px 10px;border:1px solid #8a6337;border-radius:10px;margin:15px 0;color:#f7d18b}
.declaration-sidebar strong{display:block;font-size:12px;margin-bottom:6px}
.declaration-sidebar div{font-size:14px;font-weight:700;color:#fff0c6}

/* v0.14: Spielfeld – Stich oberhalb der Hand, keine Überlagerung */
.felt:not(:has(#gameType)) .table-center{top:36%;width:min(54%,450px)}
.felt:not(:has(#gameType)) .game-notice{padding:10px 12px}
.felt:not(:has(#gameType)) .game-notice h2{font-size:clamp(17px,1.5vw,23px);margin:4px 0}
.felt:not(:has(#gameType)) .game-notice p{margin:5px 0}
.felt:not(:has(#gameType)) .trick-compass{margin-top:8px}
.felt:not(:has(#gameType)) .trick-compass .playing-card{width:clamp(40px,3.5vw,64px);height:clamp(68px,6.5vw,103px);flex:none;margin:0}
.felt:not(:has(#gameType)) .opponent-bottom{z-index:4;bottom:12px}
.felt:not(:has(#gameType)) .opponent-bottom .hand{position:relative;z-index:5}
@media(max-width:760px){.felt:not(:has(#gameType)) .table-center{top:34%;width:66%}.felt:not(:has(#gameType)) .game-notice{padding:7px}.felt:not(:has(#gameType)) .trick-compass .playing-card{width:38px;height:65px}}

/* v0.15: Abrechnung und Kontostand */
.settlement-box{background:#21180ed9;border:1px solid #b38b4c;border-radius:12px;padding:12px;margin:12px 0;color:#f7e7cb;font-size:13px}
.settlement-box h3{margin:0 0 8px;color:#ffd77c;font-size:16px}
.settlement-box p{margin:5px 0 10px}.settlement-rows{display:grid;gap:5px}
.settlement-row{display:grid;grid-template-columns:minmax(90px,1fr) 75px 75px;gap:5px;align-items:center;border-bottom:1px solid #6b5435;padding:5px 0}
.settlement-row b,.settlement-row strong{text-align:right}.settlement-row .plus{color:#83e0a1}.settlement-row .minus{color:#ff9999}
.settlement-sidebar .settlement-box{font-size:11px;padding:9px}.settlement-sidebar .settlement-row{grid-template-columns:minmax(65px,1fr) 58px 60px;gap:3px}
.counter-actions{display:flex;justify-content:center;gap:8px;margin:12px 0}
.counter-button{background:#a63626!important;color:#fff!important;border:2px solid #f4be63!important;padding:10px 18px;border-radius:9px;font-weight:800;cursor:pointer}
.counter-status{color:#ffce80;font-size:12px;font-weight:800;text-align:center;margin:5px 0}

/* V0.20: Karten offen direkt auf dem Filz, ohne extra Feld */
.felt:not(:has(#gameType)) .table-center{
 top:44%!important;left:50%!important;width:min(66%,570px)!important;
 transform:translate(-50%,-50%)!important;z-index:2;
}
.felt:not(:has(#gameType)) .game-notice{
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;padding:0!important;overflow:visible!important;
}
.felt:not(:has(#gameType)) .game-notice>.eyebrow,
.felt:not(:has(#gameType)) .game-notice>.declaration-main,
.felt:not(:has(#gameType)) .game-notice>h2,
.felt:not(:has(#gameType)) .game-notice>p{
 position:relative;z-index:5;text-shadow:0 2px 5px #002b18,0 0 9px #002b18;
}
.felt:not(:has(#gameType)) .game-notice>.eyebrow{display:block;font-size:11px}
.felt:not(:has(#gameType)) .game-notice>.declaration-main{margin:3px 0}
.felt:not(:has(#gameType)) .game-notice>h2{margin:2px 0;font-size:clamp(18px,1.7vw,25px)}
.felt:not(:has(#gameType)) .game-notice>p{margin:4px 0;font-size:12px}
.felt:not(:has(#gameType)) .trick-compass{
 position:relative!important;display:block!important;
 width:min(100%,430px)!important;height:290px!important;
 min-height:0!important;margin:9px auto 0!important;
}
.felt:not(:has(#gameType)) .trick-compass .played-slot{
 position:absolute!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;gap:2px!important;width:110px!important;
 min-width:0!important;z-index:2;
}
.felt:not(:has(#gameType)) .trick-compass .played-seat-2{top:0!important;left:50%!important;transform:translateX(-50%)!important;z-index:2}
.felt:not(:has(#gameType)) .trick-compass .played-seat-3{top:63px!important;left:calc(50% - 103px)!important;transform:translateX(-50%)!important;z-index:3}
.felt:not(:has(#gameType)) .trick-compass .played-seat-1{top:63px!important;left:calc(50% + 103px)!important;transform:translateX(-50%)!important;z-index:3}
.felt:not(:has(#gameType)) .trick-compass .played-seat-0{top:125px!important;left:50%!important;transform:translateX(-50%)!important;z-index:4}
.felt:not(:has(#gameType)) .trick-compass .playing-card{
 width:clamp(65px,6.2vw,90px)!important;height:clamp(105px,10vw,145px)!important;
 flex:none!important;margin:0!important;
 filter:drop-shadow(0 4px 5px #001a0cb3);
}
.felt:not(:has(#gameType)) .trick-compass .played-slot small{
 font-size:11px!important;color:#ffdb83!important;
 text-shadow:0 1px 5px #00150a,0 0 5px #00150a!important;
 background:#003b278c;border-radius:4px;padding:1px 4px;
}
.felt:not(:has(#gameType)) .trick-compass .played-empty{display:none!important}
.felt:not(:has(#gameType)) .trick-compass .slot-placeholder{display:none!important}
@media(max-width:760px){
 .felt:not(:has(#gameType)) .table-center{top:42%!important;width:74%!important}
 .felt:not(:has(#gameType)) .trick-compass{height:210px!important}
 .felt:not(:has(#gameType)) .trick-compass .played-seat-3{left:calc(50% - 64px)!important;top:45px!important}
 .felt:not(:has(#gameType)) .trick-compass .played-seat-1{left:calc(50% + 64px)!important;top:45px!important}
 .felt:not(:has(#gameType)) .trick-compass .played-seat-0{top:90px!important}
 .felt:not(:has(#gameType)) .trick-compass .playing-card{width:56px!important;height:92px!important}
 .felt:not(:has(#gameType)) .trick-compass .played-slot{width:80px!important}
}

/* v0.21: freie Tischfläche, Karten klar, linkes Panel als ausklappbarer Tab */
.table-tabs{display:flex;justify-content:flex-start;margin:0 0 10px}
.table-tab{border:1px solid #ad7840;border-radius:10px;background:#302015;color:#f5d38a;padding:10px 17px;font-weight:700;cursor:pointer}
.game-layout{grid-template-columns:minmax(0,1fr) minmax(250px,320px)!important;position:relative}
.game-layout>.players-panel{display:none!important}
.game-layout>.players-panel.players-open{
 display:block!important;position:absolute;z-index:50;left:0;top:0;
 width:min(330px,90vw);max-height:80vh;overflow:auto;
 background:#21160f;border:1px solid #956331;border-radius:15px;
 box-shadow:0 15px 45px #000c;
}
.game-layout>.felt-area{grid-column:1!important;grid-row:1!important}
.game-layout>.right-panel{grid-column:2!important;grid-row:1!important}
.felt .opponent-left .backs.side-fan,
.felt .opponent-right .backs.side-fan{
 display:flex!important;flex-direction:row!important;
 justify-content:center!important;align-items:center!important;
 width:max-content!important;max-width:180px!important;margin-top:8px!important;
}
.felt .opponent-left .backs.side-fan .back-card,
.felt .opponent-right .backs.side-fan .back-card{
 width:clamp(30px,3vw,41px)!important;height:clamp(49px,5vw,64px)!important;
 margin:0 0 0 -23px!important;transform:rotate(-90deg)!important;
 transform-origin:center!important;flex:none!important;
}
.felt .opponent-left .backs.side-fan .back-card:first-child,
.felt .opponent-right .backs.side-fan .back-card:first-child{margin-left:0!important}
.felt .opponent-left{left:15px!important;top:35%!important}
.felt .opponent-right{right:15px!important;top:35%!important}
/* Der deaktivierte Button wird vom globalen CSS abgeblendet. Stichkarten immer vollfarbig. */
.felt .trick-compass .playing-card,
.felt .trick-compass .playing-card:disabled,
.felt .trick-compass .playing-card img{
 opacity:1!important;filter:none!important;visibility:visible!important;
}
.felt .trick-compass .playing-card{
 background:#fff!important;box-shadow:0 5px 12px #001b0d9c!important;
 border-color:#f8f1e0!important;
}
.felt .trick-compass .playing-card img{
 width:100%!important;height:100%!important;object-fit:fill!important;
}
@media(max-width:950px){
 .game-layout{grid-template-columns:minmax(0,1fr)!important}
 .game-layout>.right-panel{grid-column:1!important;grid-row:2!important}
 .game-layout>.felt-area{grid-column:1!important;grid-row:1!important}
}
/* v0.22 – Seitenkarten: jede Karte quer, Kartenstapel senkrecht untereinander */
.felt .opponent-left .backs.side-fan,
.felt .opponent-right .backs.side-fan {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100px !important;
  max-width: 100px !important;
  height: auto !important;
  max-height: 260px !important;
  margin: 9px auto 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
.felt .opponent-left .backs.side-fan .back-card,
.felt .opponent-right .backs.side-fan .back-card,
.felt .opponent-left .backs.side-fan .back-card:first-child,
.felt .opponent-right .backs.side-fan .back-card:first-child {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  width: 54px !important;
  height: 78px !important;
  margin: -39px 0 0 !important;
  transform: rotate(-90deg) !important;
  transform-origin: center center !important;
}
.felt .opponent-left .backs.side-fan .back-card:first-child,
.felt .opponent-right .backs.side-fan .back-card:first-child {
  margin-top: 0 !important;
}
.felt .opponent-left, .felt .opponent-right {
  top: 29% !important;
}
/* Version 0.23: Informationen rechts, Mitte ausschließlich Karten im Spiel */
.felt .game-notice.playing-notice > .eyebrow,
.felt .game-notice.playing-notice > .declaration-main,
.felt .game-notice.playing-notice > h2,
.felt .game-notice.playing-notice > p {display:none!important}
.felt .game-notice.playing-notice > .trick-compass {margin-top:0!important}
.felt .game-notice.playing-notice > .counter-status {display:none!important}
.felt .table-center:has(.playing-notice){top:47%!important}
.turn-info-panel{margin:18px 0;padding:14px 12px;border:1px solid #73502d;border-radius:12px;background:#24170e}
.turn-info-panel h3{margin:0 0 10px;font-size:16px}
.turn-info-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #53351e}
.turn-info-row span{color:#d4bb92;font-size:13px}
.turn-info-row strong{color:#ffdb86;font-size:14px;text-align:right}

/* Version 0.24: nachvollziehbare Preisabrechnung */
.price-breakdown{background:rgba(0,0,0,.23);border:1px solid rgba(234,188,98,.45);border-radius:11px;margin:13px 0 16px;padding:13px 16px;text-align:left}
.price-breakdown-title{font-size:14px;font-weight:800;color:#ffd786;text-align:center;margin-bottom:11px}
.price-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;font-size:13px;color:#f5e5c7}
.price-line strong{white-space:nowrap;color:#f7d58a;font-variant-numeric:tabular-nums}
.price-line.price-total{border-top:1px solid #a67c44;margin-top:8px;padding-top:12px;font-size:15px;font-weight:800;color:#fff}
.price-line.price-total strong{color:#9df3b0;font-size:17px}
.settlement-box{max-width:680px!important;margin-left:auto!important;margin-right:auto!important}
@media(max-width:650px){.price-breakdown{padding:10px}.price-line{font-size:12px}.price-line.price-total{font-size:13px}}
/* Schafkopf v0.43 – maximaler rechteckiger Filztisch ohne Holzrahmen */
.game-layout > .felt-area {
  min-width: 0 !important;
  width: 100% !important;
  align-items: stretch !important;
}
.game-layout .felt-table {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: max(690px, calc(100vh - 175px)) !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.game-layout .wood-rim {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: max(690px, calc(100vh - 175px)) !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: none !important;
  box-shadow: none !important;
}
.game-layout .felt {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: max(690px, calc(100vh - 175px)) !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 20px !important;
  border: 1px solid rgba(155, 204, 148, .34) !important;
  background: radial-gradient(ellipse at 50% 42%, #08703d 0%, #07512f 65%, #02351f 100%) !important;
  box-shadow: inset 0 0 26px rgba(0, 24, 12, .36), 0 8px 25px rgba(0, 0, 0, .17) !important;
  overflow: hidden !important;
}
@media (max-width: 760px) {
  .game-layout .felt-table,
  .game-layout .wood-rim,
  .game-layout .felt {
    min-height: 570px !important;
    border-radius: 14px !important;
  }
}
/* Schafkopf 0.45 – Desktop-Bildschirmfüllendes Spielfeld, keine Daten-/Logikänderung */
@media (min-width: 900px) {
  body:has(.game-layout) { overflow-x: hidden; }
  body:has(.game-layout) main {
    max-width: none !important;
    width: 100% !important;
    padding: 10px clamp(10px, 1.2vw, 22px) 10px !important;
  }
  body:has(.game-layout) .topbar {
    min-height: 55px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
  body:has(.game-layout) .table-tabs {
    margin: 0 0 6px !important;
    padding: 0 !important;
  }
  body:has(.game-layout) .table-tab { padding: 7px 12px !important; }
  body:has(.game-layout) .game-layout {
    grid-template-columns: minmax(0, 1fr) clamp(255px, 20vw, 315px) !important;
    gap: 12px !important;
    align-items: stretch !important;
    height: calc(100dvh - 130px) !important;
    min-height: 510px !important;
  }
  body:has(.game-layout) .game-layout > .felt-area {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 0 !important;
    height: 100% !important;
  }
  body:has(.game-layout) .game-layout > .right-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    padding: 9px !important;
    scrollbar-width: thin;
  }
  body:has(.game-layout) .game-layout > .players-panel { display: none !important; }
  body:has(.game-layout) .felt-table,
  body:has(.game-layout) .wood-rim,
  body:has(.game-layout) .felt {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 14px !important;
  }
  body:has(.game-layout) .right-panel .panel-heading h2 { font-size: 19px !important; margin: 0 !important; }
  body:has(.game-layout) .right-panel .pill { font-size: 10px !important; padding: 3px 7px !important; }
  body:has(.game-layout) .right-panel .score-row { padding: 6px 7px !important; font-size: 11px !important; }
  body:has(.game-layout) .right-panel .declaration-sidebar { padding: 7px 8px !important; margin: 5px 0 !important; }
  body:has(.game-layout) .right-panel .declaration-sidebar div { font-size: 12px !important; }
  body:has(.game-layout) .right-panel .settlement-sidebar { margin: 3px 0 !important; }
  body:has(.game-layout) .right-panel .settlement-sidebar .settlement-box { padding: 7px !important; font-size: 10px !important; }
  body:has(.game-layout) .right-panel .settlement-sidebar .settlement-row { padding-top: 5px !important; padding-bottom: 5px !important; }
  body:has(.game-layout) .right-panel .settlement-sidebar h3 { margin: 2px 0 5px !important; font-size: 13px !important; }
  body:has(.game-layout) .right-panel .turn-info-panel { margin: 4px 0 !important; padding: 8px !important; }
  body:has(.game-layout) .right-panel .turn-info-row { padding: 5px 0 !important; font-size: 11px !important; }
  body:has(.game-layout) .right-panel .compact { font-size: 10px !important; margin-top: 3px !important; }
  body:has(.game-layout) .right-panel .full-button { padding: 7px 9px !important; margin-top: 4px !important; font-size: 11px !important; }
  body:has(.game-layout) .right-panel button { padding-top: 7px !important; padding-bottom: 7px !important; }
  body:has(.game-layout) .opponent-top { top: 7px !important; }
  body:has(.game-layout) .opponent-bottom { bottom: 6px !important; }
  body:has(.game-layout) .opponent-left,
  body:has(.game-layout) .opponent-right { top: 47% !important; }
  body:has(.game-layout) .table-center { top: 47% !important; }
}
@media (min-width: 900px) and (max-height: 760px) {
  body:has(.game-layout) .game-layout { height: calc(100dvh - 115px) !important; }
  body:has(.game-layout) .right-panel .score-row { padding: 4px 6px !important; }
  body:has(.game-layout) .right-panel .settlement-sidebar .settlement-row { padding-top: 3px !important; padding-bottom: 3px !important; }
  body:has(.game-layout) .opponent-bottom .playing-card { max-height: 112px !important; }
}

/* Schafkopf 0.59 – groessere Karten, klassisches Kartenbild bleibt erhalten.
   Auf grossen Bildschirmen ca. 20–25% groesser; mobil platzsparend. */
@media (min-width: 1000px) {
  .felt .hand .playing-card.bavarian-card {
    width: clamp(76px, 5.6vw, 96px) !important;
    height: clamp(126px, 9.2vw, 158px) !important;
    flex: 0 1 96px !important;
    min-width: 0 !important;
  }
  .felt .trick-compass .playing-card.bavarian-card {
    width: clamp(66px, 4.6vw, 83px) !important;
    height: clamp(106px, 7.4vw, 134px) !important;
  }
}
.felt .playing-card.bavarian-card img {
  image-rendering: auto;
  object-fit: fill;
  border-radius: 7px;
}
@media (max-width: 999px) {
  .felt .hand .playing-card.bavarian-card {
    width: clamp(45px, 10vw, 75px) !important;
    height: clamp(76px, 17vw, 124px) !important;
    flex: 0 1 75px !important;
  }
  .felt .trick-compass .playing-card.bavarian-card {
    width: clamp(43px, 7vw, 63px) !important;
    height: clamp(69px, 11vw, 99px) !important;
  }
}

/* Version 0.67 – klassisches Bild, mehr Abstand in der Tischmitte */
.trick-area.trick-compass {
  display:grid;
  width:min(100%, 470px);
  max-width:470px;
  margin:12px auto 0;
  grid-template-columns:minmax(100px,1fr) minmax(100px,1fr) minmax(100px,1fr);
  grid-template-rows:100px 112px 100px;
  column-gap:28px;
  row-gap:0;
  justify-items:center;
  align-items:center;
  min-height:312px;
}
.trick-compass .played-seat-2 {grid-column:2;grid-row:1}
.trick-compass .played-seat-3 {grid-column:1;grid-row:2}
.trick-compass .played-seat-1 {grid-column:3;grid-row:2}
.trick-compass .played-seat-0 {grid-column:2;grid-row:3}
.trick-compass .playing-card.bavarian-card {
  width:clamp(64px,5vw,79px) !important;
  height:clamp(103px,8.1vw,127px) !important;
  flex:none !important;
  margin:0 !important;
}
.playing-card.bavarian-card img {width:100%;height:100%;object-fit:fill;image-rendering:auto;}
@media(max-width:850px){
  .trick-area.trick-compass {width:min(100%,360px);grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:82px 94px 82px;column-gap:10px;min-height:258px;}
  .trick-compass .playing-card.bavarian-card {width:clamp(48px,7vw,65px) !important;height:clamp(78px,11vw,105px) !important;}
}


/* Mobile Querformat: nur kleine Touch-Geräte, Desktop bleibt unverändert. */
#rotateHint{display:none}
@media (pointer:coarse) and (max-width:950px) and (orientation:portrait){
 #rotateHint{position:fixed;inset:0;z-index:20000;background:#170f0a;color:#f4cf79;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;text-align:center;padding:25px;font-size:20px}
 #rotateHint span{font-size:14px;color:#ddc8a6}.rotate-symbol{font-size:70px}
 body{overflow:hidden}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:1100px){
 html,body{width:100%;min-height:100%;overflow-x:hidden}
 body:has(.game-layout) .topbar{position:relative;min-height:38px!important;height:38px!important;padding:3px 8px!important;gap:6px}
 body:has(.game-layout) .brand-mark,body:has(.game-layout) .brand small{display:none}
 body:has(.game-layout) .brand strong{font-size:15px}
 body:has(.game-layout) .topbar nav{flex-wrap:nowrap;gap:3px;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}
 body:has(.game-layout) .topbar nav button{padding:5px 7px!important;font-size:10px!important;white-space:nowrap;border-radius:6px}
 body:has(.game-layout) main{max-width:none!important;padding:3px 5px!important;width:100%!important}
 body:has(.game-layout) .game-layout{display:block!important;width:100%!important;height:calc(100dvh - 45px)!important;min-height:0!important;overflow:hidden}
 body:has(.game-layout) .felt-area{display:block!important;width:100%!important;height:100%!important;min-height:0!important}
 body:has(.game-layout) .felt-table,body:has(.game-layout) .wood-rim,body:has(.game-layout) .felt{height:100%!important;min-height:0!important;max-height:none!important;border-radius:12px!important}
 body:has(.game-layout) .felt-table,body:has(.game-layout) .wood-rim{padding:3px!important}
 body:has(.game-layout) .opponent-top{top:2px!important}
 body:has(.game-layout) .opponent-left{left:3px!important;top:42%!important}
 body:has(.game-layout) .opponent-right{right:3px!important;top:42%!important}
 body:has(.game-layout) .opponent-bottom{bottom:2px!important}
 body:has(.game-layout) .player-badge{padding:3px 7px!important;font-size:11px!important;border-radius:8px}
 body:has(.game-layout) .player-badge small{font-size:9px!important;margin-top:0}
 body:has(.game-layout) .table-center{top:44%!important;width:min(66%,500px)!important;max-height:75%;overflow-y:auto;scrollbar-width:thin}
 body:has(.game-layout) .game-notice{padding:6px!important;border-radius:9px!important}
 body:has(.game-layout) .game-notice h2{font-size:17px!important;margin:2px!important}
 body:has(.game-layout) .game-notice p{font-size:10px!important;margin:3px!important}
 body:has(.game-layout) .game-notice button{padding:6px!important;font-size:11px!important}
 body:has(.game-layout) .hand{margin:1px 0!important;padding:0!important}
 body:has(.game-layout) .felt .hand .playing-card.bavarian-card{width:clamp(42px,7.3vw,65px)!important;height:clamp(65px,18dvh,103px)!important;flex:0 1 65px!important;margin-left:-5px!important}
 body:has(.game-layout) .felt .trick-compass .playing-card.bavarian-card{width:clamp(31px,5vw,50px)!important;height:clamp(47px,13dvh,76px)!important}
 body:has(.game-layout) .trick-area.trick-compass{width:min(100%,320px)!important;grid-template-rows:repeat(3,clamp(48px,14dvh,75px))!important;column-gap:5px!important;min-height:0!important;margin:2px auto!important}
 body:has(.game-layout) .right-panel{display:none!important}
 body:has(.game-layout) .right-panel.mobile-score-open{display:flex!important;position:fixed!important;z-index:9999!important;right:5px!important;top:42px!important;bottom:5px!important;width:min(340px,65vw)!important;height:auto!important;max-height:none!important;overflow-y:auto!important;background:#21160f!important;border:1px solid #a77b42!important;padding:9px!important;box-shadow:0 12px 40px #000b!important}
 body:has(.game-layout) .players-panel.players-open{top:42px!important;max-height:calc(100dvh - 48px)!important}
 #mobileScoreToggle{display:inline-block!important}
}
@media not ((pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:1100px)){
 #mobileScoreToggle{display:none!important}
}

/* Mobile Querformat v2: seitliche Navigation und volle Spielflaeche */
#mobileMenuToggle,.mobile-drawer-title,#mobileDrawerBackdrop{display:none}
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px){
 html,body{height:100%;overflow:hidden!important;overscroll-behavior:none}
 body:has(.game-layout) .topbar{height:0!important;min-height:0!important;padding:0!important;border:0!important;overflow:visible!important;position:static!important}
 body:has(.game-layout) .topbar .brand{display:none!important}
 #mobileMenuToggle{display:block;position:fixed;top:max(5px,env(safe-area-inset-top));left:max(6px,env(safe-area-inset-left));z-index:11002;padding:5px 11px;font-size:21px;line-height:1.2;background:#24180fe8;border:1px solid #e7b85e;border-radius:9px;color:#f4cf79}
 #mobileDrawerBackdrop.mobile-open{display:block;position:fixed;inset:0;z-index:11003;background:#0009}
 body:has(.game-layout) .topbar nav#mobileDrawer{display:flex!important;position:fixed!important;z-index:11004!important;top:0;bottom:0;left:0;width:min(310px,75vw);height:100dvh;overflow-y:auto!important;overflow-x:hidden!important;background:#21160f!important;border-right:2px solid #a77b42;padding:12px 14px calc(12px + env(safe-area-inset-bottom))!important;box-shadow:8px 0 28px #000a;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;transform:translateX(-105%);transition:transform .18s ease;visibility:hidden}
 body:has(.game-layout) .topbar nav#mobileDrawer.mobile-open{transform:translateX(0);visibility:visible}
 body:has(.game-layout) .topbar nav#mobileDrawer button{display:block;text-align:left;font-size:14px!important;padding:10px 12px!important;flex-shrink:0;white-space:normal}
 body:has(.game-layout) .topbar nav#mobileDrawer button[style*="display: none"]{display:none!important}
 body:has(.game-layout) .topbar nav#mobileDrawer .mobile-drawer-title{display:flex!important;align-items:center;justify-content:space-between;color:#f4cf79;font-weight:800;font-size:18px;margin-bottom:8px}
 body:has(.game-layout) .topbar nav#mobileDrawer #mobileMenuClose{width:auto!important;padding:4px 10px!important}
 body:has(.game-layout) main{padding:0!important;margin:0!important;max-width:none!important;width:100vw!important;height:100dvh!important}
 body:has(.game-layout) .game-layout{height:100dvh!important;width:100vw!important;margin:0!important;overflow:hidden!important}
 body:has(.game-layout) .felt-area,body:has(.game-layout) .felt-table,body:has(.game-layout) .wood-rim,body:has(.game-layout) .felt{height:100%!important;min-height:0!important;border-radius:0!important}
 body:has(.game-layout) .felt-table,body:has(.game-layout) .wood-rim{padding:0!important}
 body:has(.game-layout) .felt{border-radius:0!important}
 body:has(.game-layout) .right-panel.mobile-score-open{top:4px!important}
 body:has(.game-layout) .table-center:has(#gameType){top:38%!important;width:min(62%,550px)!important;max-height:62dvh!important;overflow-y:auto!important}
 body:has(.game-layout) .felt:has(#gameType) .opponent-bottom{bottom:2px!important;z-index:6!important}
 body:has(.game-layout) .felt:has(#gameType) .hand{position:relative;z-index:7!important}
 body:has(.game-layout) .felt:has(#gameType) .game-notice{padding:6px 9px!important}
 body:has(.game-layout) .felt:has(#gameType) .game-notice h2{font-size:15px!important;margin:2px!important}
 body:has(.game-layout) .felt:has(#gameType) .game-notice p{font-size:10px!important;margin:2px!important}
}

/* Mobile Querformat – Anmeldung und Bildschirmhöhe */
@media (max-width: 950px) and (orientation: landscape) {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  input, select, button {
    max-width: 100%;
  }

  input {
    scroll-margin-bottom: 80px;
  }
}

/* iPhone landscape repair v3: isolated to short, touch landscape viewports. */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {
 html { background:#170f0a!important; color-scheme:dark; }
 body { background:#170f0a!important; margin:0!important; padding:0!important; }
 body:not(:has(.game-layout)) { overflow-y:auto!important; overflow-x:hidden!important; height:auto!important; min-height:100dvh!important; }
 body:not(:has(.game-layout)) .topbar,
 body:has(.game-layout) .topbar { position:relative!important; height:0!important; min-height:0!important; padding:0!important; margin:0!important; border:0!important; background:transparent!important; overflow:visible!important; z-index:11001!important; }
 .topbar .brand { display:none!important; }
 #mobileMenuToggle { display:block!important; position:fixed!important; top:calc(7px + env(safe-area-inset-top,0px))!important; left:calc(8px + env(safe-area-inset-left,0px))!important; z-index:11002!important; min-width:42px; min-height:38px; }
 #mobileDrawerBackdrop.mobile-open { display:block!important; position:fixed!important; inset:0!important; z-index:11003!important; background:#000b!important; }
 .topbar nav#mobileDrawer,
 body:has(.game-layout) .topbar nav#mobileDrawer { display:flex!important; position:fixed!important; top:0!important; bottom:0!important; left:0!important; width:min(310px,78vw)!important; height:100dvh!important; max-height:100dvh!important; padding:calc(12px + env(safe-area-inset-top,0px)) 14px calc(12px + env(safe-area-inset-bottom,0px))!important; background:#21160f!important; border-right:2px solid #a77b42!important; z-index:11004!important; flex-direction:column!important; align-items:stretch!important; justify-content:flex-start!important; gap:7px!important; overflow-y:auto!important; overflow-x:hidden!important; transform:translateX(-105%)!important; visibility:hidden!important; transition:transform .18s ease!important; }
 .topbar nav#mobileDrawer.mobile-open,
 body:has(.game-layout) .topbar nav#mobileDrawer.mobile-open { transform:translateX(0)!important; visibility:visible!important; }
 .topbar nav#mobileDrawer .mobile-drawer-title { display:flex!important; justify-content:space-between; align-items:center; font-size:17px; color:#f4cf79; margin-bottom:8px; }
 .topbar nav#mobileDrawer button { width:100%; flex:0 0 auto!important; text-align:left!important; white-space:normal!important; padding:9px 12px!important; font-size:13px!important; }
 .topbar nav#mobileDrawer #mobileMenuClose { width:auto!important; }
 body:not(:has(.game-layout)) main#app { display:block!important; width:100%!important; max-width:100%!important; height:auto!important; min-height:100dvh!important; margin:0!important; padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px))!important; overflow:visible!important; }
 body:not(:has(.game-layout)) main#app > .card:has(#loginPass) { width:min(520px,calc(100vw - 96px))!important; max-width:none!important; margin:0 auto!important; padding:12px 20px!important; }
 main#app > .card:has(#loginPass) h1 { font-size:clamp(19px,4.2dvh,26px)!important; margin:0 0 8px!important; }
 main#app > .card:has(#loginPass) .field { gap:3px!important; margin:0 0 7px!important; min-width:0!important; }
 main#app > .card:has(#loginPass) label { font-size:12px!important; }
 main#app > .card:has(#loginPass) input { font-size:16px!important; min-height:34px!important; padding:5px 9px!important; }
 main#app > .card:has(#loginPass) button { padding:7px 14px!important; }
 body:has(.game-layout) main#app { padding:0!important; margin:0!important; width:100vw!important; height:100dvh!important; }
 body:has(.game-layout) .game-layout { height:100dvh!important; }
}

/* v4: bottom bidding sheet, only mobile landscape */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px){
 body:has(.game-layout) .table-tabs{display:none!important}
 body:has(.game-layout) .sk-bid-sheet{
  position:absolute!important;top:auto!important;bottom:clamp(95px,22dvh,132px)!important;
  left:50%!important;transform:translateX(-50%)!important;
  width:min(65vw,580px)!important;max-height:min(48dvh,260px)!important;
  overflow-y:auto!important;overflow-x:hidden!important;z-index:9!important;
  border-radius:12px!important;scrollbar-width:thin;
 }
 body:has(.game-layout) .sk-bid-sheet:not(.sk-bid-open){max-height:44px!important;overflow:hidden!important}
 body:has(.game-layout) .sk-bid-sheet .game-notice{padding:6px 10px!important;max-height:none!important;overflow:visible!important;border-radius:12px!important}
 body:has(.game-layout) .sk-bid-sheet .sk-bid-handle{
  display:block!important;width:100%!important;min-height:31px!important;
  padding:5px 10px!important;background:#51371b!important;color:#ffe1a0!important;
  border:1px solid #cda257!important;border-radius:8px!important;font-weight:800!important;
  font-size:13px!important;cursor:pointer!important;position:sticky;top:0;z-index:1;
 }
 body:has(.game-layout) .sk-bid-sheet:not(.sk-bid-open) .game-notice>*:not(.sk-bid-handle){display:none!important}
 body:has(.game-layout) .sk-bid-sheet .game-notice h2{font-size:14px!important;margin:3px 0!important}
 body:has(.game-layout) .sk-bid-sheet .game-notice p{font-size:10px!important;margin:2px!important}
 body:has(.game-layout) .sk-bid-sheet .start-controls{margin-top:4px!important;gap:4px!important}
 body:has(.game-layout) .sk-bid-sheet .start-controls select,
 body:has(.game-layout) .sk-bid-sheet .start-controls button{font-size:13px!important;min-height:32px!important;padding:5px 8px!important}
 body:has(.game-layout) #mobileMenuToggle{top:calc(5px + env(safe-area-inset-top,0px))!important;left:calc(5px + env(safe-area-inset-left,0px))!important;min-width:36px!important;min-height:32px!important;font-size:17px!important;padding:3px 7px!important;opacity:.92}
 body:has(.game-layout) .opponent-left{top:48%!important}
}

/* v5: Ansage direkt ueber der Hand; Desktop bleibt unberuehrt */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px){
 body:has(.game-layout) .felt .table-center.sk-bid-sheet,
 body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet{
  position:absolute!important;top:auto!important;bottom:clamp(88px,20dvh,118px)!important;
  left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  width:min(64vw,570px)!important;max-height:min(48dvh,240px)!important;
  margin:0!important;overflow-y:auto!important;z-index:8!important;
 }
 body:has(.game-layout) .felt .table-center.sk-bid-sheet:not(.sk-bid-open){height:43px!important;max-height:43px!important;overflow:hidden!important}
 body:has(.game-layout) .felt .table-center.sk-bid-sheet.sk-bid-open{height:auto!important}
 body:has(.game-layout) .sk-bid-sheet .game-notice{max-height:none!important}
 body:has(.game-layout) .sk-bid-sheet .start-controls{min-width:0!important;padding:3px!important}
 body:has(.game-layout) .sk-bid-sheet .sk-bid-handle{position:sticky!important;top:0!important;z-index:2!important}
 body:has(.game-layout) #mobileMenuToggle{left:calc(6px + env(safe-area-inset-left,0px))!important;top:calc(6px + env(safe-area-inset-top,0px))!important}
 body:has(.game-layout) .opponent-left .player-badge{margin-top:28px!important}
}

/* V6: Spielansage unter den oberen Karten, nur Touch-Querformat */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px){
 body:has(.game-layout) .felt .table-center.sk-bid-sheet,
 body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet{
  top:clamp(96px,24dvh,155px)!important;bottom:auto!important;
  left:50%!important;transform:translateX(-50%)!important;
  width:min(62vw,560px)!important;max-height:min(47dvh,255px)!important;
  overflow-y:auto!important;z-index:8!important;
 }
 body:has(.game-layout) .felt .table-center.sk-bid-sheet:not(.sk-bid-open){height:43px!important;max-height:43px!important}
 body:has(.game-layout) .felt .table-center.sk-bid-sheet.sk-bid-open{height:auto!important}
 #sk-v6-results{position:fixed;inset:0;z-index:12000;background:#000b;display:flex;align-items:center;justify-content:center;padding:env(safe-area-inset-top,6px) env(safe-area-inset-right,10px) env(safe-area-inset-bottom,6px) env(safe-area-inset-left,10px)}
 #sk-v6-results .sk-v6-dialog{width:min(700px,88vw);max-height:92dvh;display:flex;flex-direction:column;background:#23170f;border:2px solid #d6aa60;border-radius:15px;color:#f5e6ce;box-shadow:0 15px 55px #000c;overflow:hidden}
 #sk-v6-results .sk-v6-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 15px;background:#362315;color:#f5d18a;font-size:18px}
 #sk-v6-results button{cursor:pointer;border:1px solid #b78b4c;border-radius:9px;background:#4a301c;color:#ffe5b5;padding:7px 12px;font-size:13px}
 #sk-v6-results .sk-v6-content{overflow-y:auto;padding:8px 15px;min-height:0;flex:1;scrollbar-width:thin}
 #sk-v6-results .settlement-box{margin:0!important;padding:8px!important;max-height:none!important}
 #sk-v6-results .settlement-box h3{font-size:17px;margin:2px 0 6px}
 #sk-v6-results .price-breakdown{margin:8px 0;padding:8px}
 #sk-v6-results .settlement-row{padding:5px 2px;font-size:12px}
 #sk-v6-results .sk-v6-actions{display:flex;gap:10px;justify-content:center;padding:10px;border-top:1px solid #78562f}
 #sk-v6-results #sk-v6-next{background:linear-gradient(#f6d583,#dca949);color:#26160b;font-weight:800}
}

/* Mobile V7: first-trick Kontra / Re decision */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px){
 #sk-v7-counter-prompt{position:fixed;inset:0;z-index:12500;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.65);padding:12px 20px;box-sizing:border-box}
 #sk-v7-counter-prompt .sk-v7-counter-card{box-sizing:border-box;width:min(420px,85vw);max-height:90dvh;overflow:auto;background:#18251b;border:2px solid #d8ae62;border-radius:16px;box-shadow:0 16px 50px #000b;color:#f8ead3;text-align:center;padding:18px 22px}
 #sk-v7-counter-prompt .sk-v7-overline{color:#f1c77c;font-weight:800;letter-spacing:2px;font-size:11px}
 #sk-v7-counter-prompt h2{color:#fff;font-size:27px;margin:7px 0}
 #sk-v7-counter-prompt p{font-size:14px;margin:8px 0 15px}
 #sk-v7-counter-prompt .sk-v7-buttons{display:flex;gap:12px}
 #sk-v7-counter-prompt button{flex:1;min-height:44px;border:1px solid #d3a454;border-radius:10px;background:#49301d;color:#fff0d2;font-size:16px;font-weight:800}
 #sk-v7-counter-prompt .sk-v7-yes{background:linear-gradient(#f6d585,#d7a447);color:#25160a}
}

/* V8 – grosse, scrollbar Spielansage unter den oberen Karten.
   Nur iPhone/Touch-Querformat; PC bleibt unveraendert. */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {
 body:has(.game-layout) .felt .table-center.sk-bid-sheet,
 body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet {
   box-sizing:border-box!important;
   position:absolute!important;
   top:clamp(95px,24dvh,160px)!important;
   bottom:auto!important;
   left:50%!important;
   right:auto!important;
   transform:translateX(-50%)!important;
   width:min(78vw,760px)!important;
   margin:0!important;
   z-index:30!important;
   overflow-x:hidden!important;
   overscroll-behavior:contain!important;
   -webkit-overflow-scrolling:touch!important;
 }
 body:has(.game-layout) .felt .table-center.sk-bid-sheet.sk-bid-open,
 body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet.sk-bid-open {
   height:auto!important;
   max-height:calc(100dvh - clamp(95px,24dvh,160px) - 8px)!important;
   overflow-y:auto!important;
 }
 body:has(.game-layout) .felt .table-center.sk-bid-sheet:not(.sk-bid-open),
 body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet:not(.sk-bid-open) {
   height:43px!important;
   max-height:43px!important;
   overflow:hidden!important;
 }
 body:has(.game-layout) .sk-bid-sheet .game-notice {
   box-sizing:border-box!important;
   height:auto!important;
   max-height:none!important;
   overflow:visible!important;
   padding:7px 12px 18px!important;
 }
 body:has(.game-layout) .sk-bid-sheet .sk-bid-handle {
   position:sticky!important;
   top:0!important;
   z-index:3!important;
 }
 body:has(.game-layout) .sk-bid-sheet .start-controls {
   box-sizing:border-box!important;
   width:100%!important;
   max-width:100%!important;
   min-width:0!important;
   padding:5px!important;
   margin:3px auto!important;
 }
 body:has(.game-layout) .sk-bid-sheet .start-controls > * { min-width:0!important; }
 body:has(.game-layout) .sk-bid-sheet #declareGame {
   min-height:38px!important;
   margin-bottom:7px!important;
 }
}

/* Mobile V8 – oberen Leerraum entfernen */
@media (max-width: 950px) and (orientation: landscape) {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100dvh !important;
    min-height: 0 !important;
  }

  body {
    overflow: hidden !important;
  }

  body > header,
  body > .topbar,
  body > .app-header {
    display: none !important;
  }

  #app,
  main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Mobile V8 – oberen Leerraum entfernen */
@media (max-width: 950px) and (orientation: landscape) {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100dvh !important;
    min-height: 0 !important;
  }

  body {
    overflow: hidden !important;
  }

  body > header,
  body > .topbar,
  body > .app-header {
    display: none !important;
  }

  #app,
  main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* V8 FIX – Spielansage ganz oben */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {

  body:has(.game-layout) .felt .table-center.sk-bid-sheet,
  body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet {
    top:8px!important;
    bottom:auto!important;
  }

  body:has(.game-layout) .felt .table-center.sk-bid-sheet.sk-bid-open,
  body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet.sk-bid-open {
    max-height:calc(100dvh - 16px)!important;
    overflow-y:auto!important;
  }

}

/* V8 FIX – Handkarten sichtbar lassen */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {

  body:has(.game-layout) .felt .table-center.sk-bid-sheet,
  body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet {
    top:8px!important;
    bottom:auto!important;
  }

  body:has(.game-layout) .felt .table-center.sk-bid-sheet.sk-bid-open,
  body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet.sk-bid-open {
    max-height:calc(100dvh - 165px)!important;
    overflow-y:auto!important;
  }

}

/* Mobile V8 – Spielansage 80px weiter nach unten */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {

  body:has(.game-layout) .felt .table-center.sk-bid-sheet.sk-bid-open,
  body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet.sk-bid-open {
    max-height:calc(100dvh - 85px)!important;
    overflow-y:auto!important;
  }

}

/* V9: Live-Ansagen direkt am Spieler, nur waehrend der Ansagerunde. */
.player-badge .sk-live-bid { display:block; width:max-content; max-width:100%; margin:5px auto 0; padding:3px 7px; border-radius:7px; border:1px solid #9a783e; font-size:12px; font-weight:800; line-height:1.2; text-align:center; white-space:normal; color:#f4d081; background:#3b2a17; }
.player-badge .sk-bid-pass { color:#c9c6c0; border-color:#777067; background:#302c27; }
.player-badge .sk-bid-wait { color:#b7b1a8; border-color:#615b51; background:#28231f; }
.player-badge .sk-bid-turn { color:#1f1608; border-color:#f3d48a; background:#f0c96c; }
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {
 .player-badge .sk-live-bid { font-size:11px; margin-top:3px; padding:2px 5px; }
}

/* V9 FIX – Live-Ansagen sichtbar halten */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {

  /* Spielansage geschlossen: unter den oberen Karten */
  body:has(.game-layout) .felt .table-center.sk-bid-sheet:not(.sk-bid-open),
  body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet:not(.sk-bid-open) {
    top:clamp(120px,27dvh,175px)!important;
  }

  /* Spielansage geöffnet: Platz für Spielernamen lassen */
  body:has(.game-layout) .felt .table-center.sk-bid-sheet.sk-bid-open,
  body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet.sk-bid-open {
    top:clamp(60px,12dvh,85px)!important;
    max-height:calc(100dvh - 175px)!important;
    overflow-y:auto!important;
  }

}

/* Mobile V9 – Menü rechts unten */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {

  body #mobileMenuToggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;

    z-index: 20000 !important;

    width: 48px !important;
    height: 48px !important;

    align-items: center !important;
    justify-content: center !important;

    background: #24180f !important;
    color: #f5cf83 !important;
    border: 2px solid #d8ae62 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }
}

/* V9 – Menübutton unabhängig von der Topbar */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {
  body > #mobileMenuToggle {
    display:flex!important;
    position:fixed!important;
    top:auto!important;
    left:auto!important;
    right:12px!important;
    bottom:12px!important;
    z-index:20000!important;
    visibility:visible!important;
    opacity:1!important;
  }
}

/* V10 – Menü rechts unten */
@media (orientation: landscape) and (max-width: 1200px) {

  html body #mobileMenuToggle {
    display: flex !important;
    position: fixed !important;

    top: auto !important;
    left: auto !important;

    right: 12px !important;
    bottom: 12px !important;

    width: 48px !important;
    height: 48px !important;

    z-index: 2147483647 !important;
    visibility: visible !important;
    opacity: 1 !important;

    align-items: center !important;
    justify-content: center !important;

    background: #24180f !important;
    color: #f5cf83 !important;
    border: 2px solid #d8ae62 !important;
    border-radius: 12px !important;
  }

}

/* V11 – iPhone Querformat Bildschirmhöhe */
@media (orientation: landscape) and (max-width: 1200px) {

  html,
  body {
    height: var(--mobile-screen-height, 100dvh) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:has(.game-layout) main#app,
  body:has(.game-layout) .game-layout {
    height: var(--mobile-screen-height, 100dvh) !important;
    min-height: 0 !important;
  }

}

/* V12 – Menüposition unabhängig vom Header */
@media (orientation: landscape) and (max-width: 1200px) {

  html body:has(.game-layout) #mobileMenuToggle {
    position: fixed !important;
    inset: auto 12px 12px auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 2147483647 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

}

/* V13 – Menü rechts unten auf dem iPhone */
@media (pointer:coarse) and (orientation:landscape) {
  html body #mobileMenuToggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 30000 !important;
    width: 48px !important;
    height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
  }
}

/* V14 – Spieltisch ohne feste Mindesthoehen */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {

  body:has(.game-layout) .felt-area,
  body:has(.game-layout) .felt-table,
  body:has(.game-layout) .wood-rim,
  body:has(.game-layout) .felt {
    min-height: 0 !important;
    height: 100% !important;
  }

  body:has(.game-layout) .felt-table,
  body:has(.game-layout) .wood-rim {
    padding: 0 !important;
    margin: 0 !important;
  }

}

/* V15 – Mobiles Menü sichtbar machen */
@media (pointer:coarse) and (orientation:landscape) {

  body #mobileDrawer.mobile-open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(310px, 80vw) !important;
    height: 100dvh !important;
    z-index: 30001 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
    background: #21160f !important;
  }

  body #mobileDrawerBackdrop.mobile-open {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 30000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(0,0,0,.65) !important;
  }

}

/* V18 – Kompaktes vertikales iPhone-Menü */
@media (pointer:coarse) and (orientation:landscape) {

  html body > nav#mobileDrawer,
  html body > nav#mobileDrawer.mobile-open {
    width: min(290px, 75vw) !important;
    max-width: 290px !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  html body > nav#mobileDrawer > button {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 42px !important;
    max-height: 52px !important;
    flex: 0 0 auto !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 14px !important;
  }

  html body > nav#mobileDrawer > button[style*="display:none"],
  html body > nav#mobileDrawer > button[style*="display: none"] {
    display: none !important;
  }

  html body > nav#mobileDrawer > .mobile-drawer-title {
    display: flex !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    min-height: 38px !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  html body > nav#mobileDrawer #mobileMenuClose {
    width: 40px !important;
    height: 34px !important;
    flex: 0 0 auto !important;
    padding: 4px !important;
    text-align: center !important;
  }
}

/* V20 – Kompakte obere Navigation auf Mobilgeraeten */
#mobileTopNav {
  display: none;
}

@media (pointer:coarse) {

  body:not(.sk-in-game) #mobileTopNav {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 20000;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
    background: #21160f;
    border-bottom: 1px solid #a77b42;
  }

  #mobileTopNav .mobile-top-brand {
    flex-shrink: 0;
    color: #f4cf79;
    font-weight: 800;
    font-size: 16px;
  }

  #mobileTopNav .mobile-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
  }

  #mobileTopNav button {
    font-size: 12px;
    padding: 7px 9px;
    border-radius: 8px;
    white-space: nowrap;
  }

  #mobileTopNav button.active {
    background: #e7b85e;
    color: #24170c;
  }

  #mobileTopNav button[hidden],
  #mobileTopNav[hidden] {
    display: none !important;
  }

  body.sk-in-game #mobileTopNav {
    display: none !important;
  }

  body:not(.sk-in-game) #mobileMenuToggle {
    display: none !important;
  }

  body.sk-in-game #mobileMenuToggle {
    display: flex !important;
  }
}

/* Desktop – kompakter Spielstatus oberhalb des Tisches */
@media (pointer: fine) and (min-width: 1201px) {
  .game-layout:has(#sk-desktop-status) {
    grid-template-rows: auto minmax(0, 1fr);
  }

  #sk-desktop-status {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid #987044;
    border-radius: 14px;
    background: #21170f;
  }

  .game-layout:has(#sk-desktop-status) > .felt-area {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .game-layout:has(#sk-desktop-status) > .right-panel {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
  }

  .sk-desktop-status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 9px;
    border: 1px solid #604126;
    border-radius: 9px;
    background: #302115;
  }

  .sk-desktop-status-item span {
    color: #d4bb92;
    font-size: 12px;
  }

  .sk-desktop-status-item strong {
    color: #ffdb86;
    font-size: 14px;
    overflow-wrap: anywhere;
  }
}

/* Desktop – kompakte Spielansage wie am Handy */
@media (pointer: fine) and (min-width: 1201px) {

  /* Ansagefenster kompakt in der Tischmitte */
  .felt .table-center.sk-bid-sheet.sk-bid-my-turn {
    top: 32% !important;
    left: 50% !important;
    width: min(420px, 42%) !important;
    max-width: 420px !important;
    max-height: 55% !important;
    overflow-y: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 30 !important;
  }

  /* Wenn ein anderer Spieler ansagt, Fenster ausblenden */
  .felt .table-center.sk-bid-sheet:not(.sk-bid-my-turn) {
    display: none !important;
  }

  /* Unnötige Texte ausblenden */
  .felt .sk-bid-sheet .game-notice > .eyebrow,
  .felt .sk-bid-sheet .game-notice > .declaration-main,
  .felt .sk-bid-sheet .game-notice > h2,
  .felt .sk-bid-sheet .game-notice > p,
  .felt .sk-bid-sheet .bid-history,
  .felt .sk-bid-sheet .bidding-hint,
  .felt .sk-bid-sheet div:has(> .sk-wedding-protocol-title) {
    display: none !important;
  }

  /* Kompaktes Fenster */
  .felt .sk-bid-sheet .game-notice {
    padding: 12px !important;
    background: #10271cf2 !important;
    border: 1px solid #b78a38 !important;
    border-radius: 12px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Spielauswahl */
  .felt .sk-bid-sheet .start-controls {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .felt .sk-bid-sheet .start-controls > * {
    width: 100% !important;
    flex: none !important;
  }

  .felt .sk-bid-sheet #gameType,
  .felt .sk-bid-sheet #trumpSuit {
    min-height: 44px !important;
    font-size: 15px !important;
  }

  .felt .sk-bid-sheet #declareGame {
    min-height: 44px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  /* Handkarten bleiben vor dem Fenster sichtbar */
  .felt:has(#gameType) .opponent-bottom {
    z-index: 35 !important;
  }
}

/* Namenskarten links neben den Karten – PC und Handy */
.felt .opponent-top,
.felt .opponent-bottom {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

.felt .opponent-top .player-badge,
.felt .opponent-bottom .player-badge {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.felt .opponent-top .backs,
.felt .opponent-bottom .hand {
  margin-top: 0 !important;
}

/* Handy: kompakter Abstand */
@media (pointer: coarse) and (orientation: landscape)
       and (max-height: 650px) and (max-width: 1200px) {

  body:has(.game-layout) .felt .opponent-top,
  body:has(.game-layout) .felt .opponent-bottom {
    gap: 6px !important;
  }

  body:has(.game-layout) .felt .opponent-bottom {
    width: 98% !important;
  }
}

/* Namen über ausgespielten Stichkarten ausblenden */
.felt .trick-compass .played-slot > small {
  display: none !important;
}


/* V16 – Mobiles Menü mittig statt links */
@media (pointer: coarse) and (orientation: landscape)
       and (max-width: 1200px) {

  html body nav#mobileDrawer.mobile-open {
    position: fixed !important;
    inset: 50% auto auto 50% !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;

    width: min(520px, 82vw) !important;
    max-width: 82vw !important;
    height: auto !important;
    max-height: 86dvh !important;
    overflow-y: auto !important;

    padding: 16px !important;
    border: 2px solid #a77b49 !important;
    border-radius: 18px !important;
    box-shadow: 0 15px 60px #000b !important;
    z-index: 2147483646 !important;
  }

}

/* V17 – Zurück zum Spieltisch immer sichtbar */
@media (pointer: coarse) and (orientation: landscape)
       and (max-width: 1200px) {

  html body #backToTableButton {
    position: fixed !important;
    top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;

    z-index: 2147483000 !important;
    padding: 10px 18px !important;
    background: #51371b !important;
    color: #ffe1a0 !important;
    border: 2px solid #cda257 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px #0008 !important;
    white-space: nowrap !important;
  }
}

/* V18 – Zurück-Button unterhalb der Navigation */
@media (pointer: coarse) and (orientation: landscape)
       and (max-width: 1200px) {

  html body #backToTableButton {
    position: fixed !important;
    top: calc(112px + env(safe-area-inset-top, 0px)) !important;
    left: 16px !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;

    padding: 7px 13px !important;
    font-size: 13px !important;
    z-index: 1000 !important;
  }
}

/* V21 – Mobile Navigation bereinigt */
@media (pointer: coarse) and (orientation: landscape) {

  /* Geschlossenes Menü vollständig ausblenden */
  html body > nav#mobileDrawer:not(.mobile-open) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html body > #mobileDrawerBackdrop:not(.mobile-open) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Menü nur am Spieltisch anzeigen */
  html body:not(.sk-in-game) > nav#mobileDrawer {
    display: none !important;
  }

  /* Geöffnetes Menü mittig */
  html body.sk-in-game > nav#mobileDrawer.mobile-open {
    display: flex !important;
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(440px, 80vw) !important;
    height: auto !important;
    max-height: 85dvh !important;
    overflow-y: auto !important;
    z-index: 30001 !important;
  }

  /* Zurück-Button unter der Navigation */
  html body:not(.sk-in-game) #backToTableButton {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    transform: none !important;
    margin: 8px 12px !important;
    z-index: 1000 !important;
  }

  html body.sk-in-game #backToTableButton {
    display: none !important;
  }
}

/* V22 – Desktop-Spielmenü wie auf dem Handy */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {

  /* Am Spieltisch bisherige Navigation ausblenden */
  body.sk-in-game .topbar,
  body.sk-in-game #mobileTopNav {
    display: none !important;
  }

  /* Menüknopf rechts unten */
  body.sk-in-game #mobileMenuToggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    top: auto !important;
    left: auto !important;
    width: 56px !important;
    height: 56px !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 30000 !important;
    cursor: pointer !important;
  }

  /* Geschlossenes Menü verstecken */
  body > #mobileDrawer:not(.mobile-open),
  body > #mobileDrawerBackdrop:not(.mobile-open) {
    display: none !important;
  }

  /* Hintergrund abdunkeln */
  body.sk-in-game > #mobileDrawerBackdrop.mobile-open {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.72) !important;
    z-index: 30000 !important;
  }

  /* Menü mittig öffnen */
  body.sk-in-game > #mobileDrawer.mobile-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 400px !important;
    max-width: 90vw !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    padding: 18px !important;
    gap: 10px !important;
    background: #21160f !important;
    border: 2px solid #a77b49 !important;
    border-radius: 18px !important;
    z-index: 30001 !important;
  }

  body.sk-in-game > #mobileDrawer.mobile-open > button {
    display: block;
    width: 100%;
  }

  body.sk-in-game > #mobileDrawer.mobile-open .mobile-drawer-title {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
}

/* V23 – Desktop-Menü in der rechten Spielstatus-Spalte */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {

  body.sk-in-game #mobileMenuToggle {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 28px !important;
    bottom: 80px !important;

    width: 160px !important;
    height: 38px !important;
    border-radius: 9px !important;
    font-size: 18px !important;
    z-index: 100 !important;
  }
}

/* V24 – Aufgeräumte Desktop-Seitenleiste */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {

  body.sk-in-game #sk-desktop-status {
    display: none !important;
  }

  body.sk-in-game #sk-desktop-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
  }

  body.sk-in-game #sk-desktop-sidebar-actions #togglePlayers,
  body.sk-in-game #sk-desktop-sidebar-actions #mobileMenuToggle {
    display: flex !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    z-index: auto !important;
  }
}


/* V25 – Tisch beenden: Wirtshaus-Bestätigungsfenster */
.sk-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.78);
}

.sk-confirm-box {
  box-sizing: border-box;
  width: min(440px, 100%);
  padding: 28px 24px;
  border: 2px solid #b78a38;
  border-radius: 20px;
  background: #21160f;
  color: #f8e7c4;
  text-align: center;
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
}

.sk-confirm-icon {
  font-size: 44px;
  color: #e9b75e;
}

.sk-confirm-box h2 {
  margin: 8px 0 18px;
  color: #f4c66d;
  font-size: 23px;
}

.sk-confirm-box p {
  line-height: 1.5;
}

.sk-confirm-hint {
  color: #cbb7a1;
  font-size: 14px;
}

.sk-confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.sk-confirm-actions button {
  flex: 1;
  min-width: 0;
  padding: 13px 8px;
  border: 1px solid #806044;
  border-radius: 10px;
  background: #3b291e;
  color: #f8e7c4;
  font-weight: 700;
  cursor: pointer;
}

.sk-confirm-actions button[data-choice="confirm"] {
  border-color: #e9b75e;
  background: #e9b75e;
  color: #24170d;
}

.sk-confirm-actions button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* V26 – Doppelten Spieltische-Button am PC ausblenden */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body.sk-in-game .right-panel #back {
    display: none !important;
  }
}


/* Schafkopf – Bot umbenennen */
.sk-bot-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(5px);
}

.sk-bot-dialog {
  box-sizing: border-box;
  width: min(100%, 410px);
  padding: 25px;
  border: 1px solid #a67b42;
  border-radius: 17px;
  background: linear-gradient(145deg,#2d1e14,#170f0b);
  box-shadow: 0 25px 75px rgba(0,0,0,.65);
  color: #f4e2c9;
}

.sk-bot-dialog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #61472d;
}

.sk-bot-dialog-icon {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #44301d;
  font-size: 25px;
}

.sk-bot-dialog h2 {
  margin: 0 0 5px;
  color: #f5cf8c;
  font-size: 21px;
}

.sk-bot-dialog p {
  margin: 0;
  color: #bca58a;
  font-size: 12px;
}

.sk-bot-dialog label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.sk-bot-dialog input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #997142;
  border-radius: 9px;
  background: #120c08;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.sk-bot-dialog input:focus {
  border-color: #efc37a;
  box-shadow: 0 0 0 3px rgba(239,195,122,.14);
}

.sk-bot-dialog-error {
  min-height: 20px;
  margin-top: 7px;
  color: #ffaaa0;
  font-size: 12px;
}

.sk-bot-dialog-buttons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sk-bot-dialog-buttons button {
  flex: 1;
  min-height: 44px;
  border: 1px solid #755334;
  border-radius: 9px;
  background: #39281b;
  color: #f0ddc4;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.sk-bot-dialog-buttons [data-save] {
  background: linear-gradient(135deg,#bc8a46,#956526);
  border-color: #d5a35d;
  color: #fff;
}

.sk-bot-dialog-buttons button:hover {
  filter: brightness(1.15);
}

/* Ramsch-Anzeige unter allen vier Spielern */
.sk-ramsch-tag {
  display: block;
  margin-top: 4px;
  color: #ffd36e !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-shadow: 0 0 8px rgba(255, 190, 70, 0.35);
}



/* Kompakte Partieabrechnung – PC und Handy */
.sk-settlement-v2 {
  max-width: 680px !important;
  padding: 12px !important;
}

.sk-settlement-winner {
  text-align: center;
  background: #123425;
  border: 1px solid #4d7955;
  border-radius: 11px;
  padding: 10px;
}

.sk-settlement-trophy {
  font-size: 23px;
}

.sk-settlement-winner h3 {
  margin: 3px 0 !important;
  color: #f4d18d;
  font-size: 19px;
}

.sk-settlement-winner p {
  margin: 3px 0 !important;
  color: #f4e5d0;
  font-size: 13px;
}

.sk-price-compact {
  margin: 9px 0 !important;
  padding: 9px 12px !important;
}

.sk-price-compact .price-line {
  padding: 4px 0;
}

.sk-settlement-grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 8px !important;
}

.sk-settlement-player {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 3px !important;
  min-width: 0;
  padding: 9px !important;
  background: #302117;
  border: 1px solid #6d4c2c !important;
  border-radius: 9px;
}

.sk-settlement-player-name {
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sk-settlement-player b {
  text-align: left !important;
  font-size: 15px;
}

.sk-settlement-player small {
  color: #d5bea1;
  font-size: 12px;
}

.sk-settlement-player small strong {
  color: #fff0d2;
}

@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {
  #sk-v6-results .sk-v6-dialog {
    width: min(700px,94vw);
  }
  #sk-v6-results .sk-v6-content {
    padding: 6px 12px;
  }
  #sk-v6-results .sk-settlement-v2 {
    padding: 6px !important;
  }
  #sk-v6-results .sk-settlement-winner {
    padding: 5px;
  }
  #sk-v6-results .sk-settlement-trophy {
    font-size: 17px;
  }
  #sk-v6-results .sk-settlement-winner h3 {
    font-size: 16px;
  }
  #sk-v6-results .sk-price-compact {
    padding: 5px 9px !important;
    margin: 5px 0 !important;
  }
  #sk-v6-results .sk-settlement-player {
    padding: 6px !important;
  }
}

/* Handy-Abrechnung: kompakter ohne Kopfzeile und Siegerpokal */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {
  #sk-v6-results .sk-v6-head {
    display: none !important;
  }

  #sk-v6-results .sk-v6-content {
    padding: 7px 12px !important;
  }

  #sk-v6-results .sk-v6-actions {
    padding: 7px 10px !important;
  }
}

/* Handy-Abrechnung: Pokal über Gewinner ausblenden */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {
  #sk-v6-results .sk-settlement-trophy {
    display: none !important;
  }
}


/* PC – Partieende nur zwei Buttons V2 */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {

  /* SK-LAST-TRICK-FINISHED-FIX-V8 */
  .felt .table-center.sk-pc-finished:not(.sk-last-trick-cross)
  .game-notice > :not(.start-controls) {
    display: none !important;
  }

  .felt .table-center.sk-pc-finished .start-controls {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .felt .table-center.sk-pc-finished .start-controls button {
    margin: 0 !important;
    width: 100%;
    max-width: 330px;
  }

  .felt .table-center.sk-pc-finished .game-notice {
    padding: 12px !important;
  }
}

/* PC: Ansagefenster nicht vollständig verstecken */
@media (pointer: fine) and (min-width: 1201px) {

  /* Bei fremder Ansage kompakt anzeigen statt unsichtbar */
  .felt .table-center.sk-bid-sheet:not(.sk-bid-my-turn) {
    display: block !important;
    top: 32% !important;
    left: 50% !important;
    width: min(420px, 42%) !important;
    max-width: 420px !important;
    height: 43px !important;
    max-height: 43px !important;
    overflow: hidden !important;
    transform: translate(-50%, -50%) !important;
    z-index: 30 !important;
  }

  /* Wenn du an der Reihe bist, vollständige Auswahl öffnen */
  .felt .table-center.sk-bid-sheet.sk-bid-my-turn {
    display: block !important;
    height: auto !important;
    max-height: 55% !important;
    overflow-y: auto !important;
  }

}

/* Ansagefenster ausschließlich beim eigenen Ansagezug anzeigen */

/* Standardmäßig vollständig unsichtbar */
body:has(.game-layout) .felt .table-center.sk-bid-sheet:not(.sk-bid-my-turn),
body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet:not(.sk-bid-my-turn) {
  display: none !important;
}

/* Nur beim eigenen Zug sichtbar und vollständig geöffnet */
body:has(.game-layout) .felt .table-center.sk-bid-sheet.sk-bid-my-turn,
body:has(.game-layout) .table-center:has(#gameType).sk-bid-sheet.sk-bid-my-turn {
  display: block !important;
  height: auto !important;
  max-height: 94dvh !important;
  overflow-y: auto !important;
}


/* Tablet-/Handy-Fix: Tischübersicht und Menüs scrollbar */
@media (pointer: coarse) {
  html:has(body:not(:has(.game-layout))) {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body:not(:has(.game-layout)) {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: static !important;
    touch-action: pan-y !important;
  }

  body:not(:has(.game-layout)) main#app {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    touch-action: pan-y !important;
  }
}

/* Schafkopf: Scroll-Fix für Android-Tablets */
@media (pointer: coarse) {
  html:not(:has(.game-layout)),
  html:has(body:not(:has(.game-layout))) {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: auto !important;
  }

  body:not(:has(.game-layout)) {
    position: relative !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    touch-action: auto !important;
    overscroll-behavior-y: auto !important;
  }

  body:not(:has(.game-layout)) main#app {
    position: relative !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
    touch-action: auto !important;
  }
}

/* Android Tablet: Scrollen außerhalb des Spielfelds */
@media (pointer: coarse) and (orientation: landscape) {
  html:has(body:not(:has(.game-layout))) {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
  }

  html:has(body:not(:has(.game-layout))) body {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
  }
}

/* SK-LOBBY-STATISTIK-V1 */
.sk-lobby-stats {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #73502c;
  border-radius: 12px;
  background: #17110d;
}
.sk-lobby-gamecount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.sk-lobby-gamecount strong {
  color: #e7b85e;
  font-size: 17px;
}
.sk-lobby-gamecount span {
  color: #cbb99d;
  font-size: 12px;
}
.sk-lobby-balances > strong {
  display: block;
  color: #e7b85e;
  font-size: 13px;
  margin-bottom: 8px;
}
.sk-lobby-balance-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #3b2b1d;
  font-size: 12px;
}
.sk-lobby-balance-row:last-child {
  border-bottom: 0;
}
.sk-lobby-balance-row b {
  white-space: nowrap;
}


/* SK-DELETE-DIALOG-V1 */

.sk-delete-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,.82);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  backdrop-filter: blur(6px);
}

.sk-delete-modal {
  width: 100%;
  max-width: 460px;
  max-height: 95vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 30px;
  background: linear-gradient(145deg,#302016,#170e09);
  border: 1px solid #a77a3c;
  border-radius: 20px;
  box-shadow: 0 25px 90px rgba(0,0,0,.75);
  color: #f6e5ca;
  text-align: center;
}

.sk-delete-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.sk-delete-modal h2 {
  font-size: 25px;
  color: #f0c46c;
  margin: 0 0 16px;
}

.sk-delete-description {
  font-size: 15px;
  line-height: 1.6;
  color: #d9c3a4;
}

.sk-delete-table-name {
  display: block;
  color: #fff;
  font-size: 21px;
  margin: 10px 0;
}

.sk-delete-warning {
  background: rgba(170,35,35,.15);
  border: 1px solid #a43b3b;
  color: #ffaaaa;
  border-radius: 12px;
  padding: 14px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.5;
}

.sk-delete-modal label {
  display: block;
  text-align: left;
  font-size: 13px;
  margin-bottom: 7px;
  color: #d9c3a4;
}

.sk-delete-expected {
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  color: #f0c46c;
  margin-bottom: 10px;
}

.sk-delete-modal input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #100b08;
  border: 1px solid #8e6939;
  border-radius: 10px;
  padding: 13px;
  color: white;
  font-size: 16px;
  outline: none;
  margin-bottom: 22px;
}

.sk-delete-modal input:focus {
  border-color: #f0c46c;
  box-shadow: 0 0 0 2px rgba(240,196,108,.15);
}

.sk-delete-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.sk-delete-actions button {
  flex: 1;
  min-width: 140px;
  padding: 13px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.sk-delete-cancel {
  background: #493525;
  color: #f6e5ca;
  border: 1px solid #8e6939;
}

.sk-delete-confirm {
  background: #a52c2c;
  color: white;
  border: 1px solid #e15b5b;
}

.sk-delete-confirm:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.sk-delete-confirm:not(:disabled):hover {
  background: #c63737;
}

@media(max-width:480px) {
  .sk-delete-modal {
    padding: 22px 17px;
  }
  .sk-delete-actions {
    flex-direction: column;
  }
}

/* SK-DESKTOP-MENUE-RESTORE-V1 */
@media (min-width: 1100px) {

  html body:not(.sk-in-game) > header.topbar {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    box-sizing: border-box !important;
    padding: 0 24px !important;
    margin: 0 !important;
    background: #1b120c !important;
    border-bottom: 1px solid #684625 !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
    z-index: 1000 !important;
  }

  html body:not(.sk-in-game) > header.topbar .brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  html body:not(.sk-in-game) > header.topbar nav#mobileDrawer {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  html body:not(.sk-in-game) > header.topbar nav#mobileDrawer > button {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }

  html body:not(.sk-in-game) > header.topbar nav#mobileDrawer > button[style*="display:none"],
  html body:not(.sk-in-game) > header.topbar nav#mobileDrawer > button[style*="display: none"] {
    display: none !important;
  }

  html body:not(.sk-in-game) > header.topbar .mobile-drawer-title,
  html body:not(.sk-in-game) > #mobileMenuToggle,
  html body:not(.sk-in-game) > header.topbar #mobileDrawerBackdrop {
    display: none !important;
  }
}

/* SK-MENUE-POSITION-FIX-V2 */

/* Desktop und breitere Tablet-Ansichten */
@media (min-width: 600px) {

  html body:not(.sk-in-game) > header.topbar {
    display: flex !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #1b120c !important;
    border-bottom: 1px solid #684625 !important;
    z-index: 10000 !important;
  }

  html body:not(.sk-in-game) > header.topbar > nav#mobileDrawer {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body:not(.sk-in-game) > header.topbar > nav#mobileDrawer > button {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 12px !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }

  html body:not(.sk-in-game) > header.topbar > nav#mobileDrawer > button[style*="display:none"],
  html body:not(.sk-in-game) > header.topbar > nav#mobileDrawer > button[style*="display: none"] {
    display: none !important;
  }

  html body:not(.sk-in-game) > header.topbar > nav#mobileDrawer > .mobile-drawer-title {
    display: none !important;
  }
}

/* SK-DESKTOP-MENUE-POPUP-FIX */
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {

  body.sk-drawer-open #mobileDrawerBackdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, .72) !important;
    z-index: 30000 !important;
  }

  body.sk-drawer-open header.topbar {
    z-index: 30002 !important;
    overflow: visible !important;
  }

  body.sk-drawer-open #mobileDrawer.mobile-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(420px, 90vw) !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    background: #21160f !important;
    border: 2px solid #a77b49 !important;
    border-radius: 18px !important;
    padding: 20px !important;
    z-index: 30003 !important;
  }
}


/* SK-EINHEITLICHES-SPIELMENUE-V1 */
#mobileDrawer #skMenuPlayers {
  display: none !important;
}

body.sk-in-game #mobileDrawer.mobile-open #skMenuPlayers {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

body.sk-in-game #sk-desktop-sidebar-actions #togglePlayers {
  display: none !important;
}

body.sk-in-game .right-panel #sk-desktop-sidebar-actions {
  width: 100%;
}

body.sk-in-game .right-panel #mobileMenuToggle {
  width: 100% !important;
}

/* SK-HANDY-MENUE-BUTTONS-ZENTRIERT */
@media (max-width: 1099px) {

  body #mobileDrawer.mobile-open > button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

}


/* SK-EINKLAPPBARE-TISCHUEBERSICHT-V1 */
.sk-collapsible-table {
  padding: 0 !important;
  overflow: hidden;
}

.sk-collapsible-table details {
  width: 100%;
}

.sk-table-summary {
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  padding: 18px 42px 18px 18px;
  cursor: pointer;
  list-style: none;
}

.sk-table-summary::-webkit-details-marker {
  display: none;
}

.sk-table-name {
  color: #f6ebd6;
  font-family: Georgia, serif;
  font-size: 22px;
}

.sk-table-players {
  color: #d0b99b;
  font-size: 13px;
  line-height: 1.5;
}

.sk-table-chevron {
  position: absolute;
  right: 17px;
  top: 20px;
  color: #e7b85e;
  font-size: 23px;
  transition: transform .2s;
}

.sk-collapsible-table details[open] .sk-table-chevron {
  transform: rotate(180deg);
}

.sk-table-details {
  padding: 0 18px 18px;
  border-top: 1px solid #604126;
}

.sk-table-details > .pill {
  margin-top: 15px;
}

.sk-table-summary:hover {
  background: #ffffff08;
}

@media (max-width: 760px) {
  .sk-table-summary {
    padding: 15px 38px 15px 14px;
  }

  .sk-table-name {
    font-size: 20px;
  }

  .sk-table-details {
    padding: 0 14px 14px;
  }
}

/* SK-TISCHERSTELLER-ANZEIGE */
.sk-table-creator {
  display: block;
  color: #e7b85e;
  font-size: 12px;
  font-weight: 600;
}

/* SK-NEUEN-TISCH-EINKLAPPEN */
.sk-create-table {
  padding: 0 !important;
  overflow: hidden;
}

.sk-create-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}

.sk-create-summary::-webkit-details-marker {
  display: none;
}

.sk-create-summary h2 {
  margin: 0;
}

.sk-create-arrow {
  color: #e7b85e;
  font-size: 25px;
  transition: transform .2s;
}

.sk-create-table details[open] .sk-create-arrow {
  transform: rotate(180deg);
}

.sk-create-content {
  padding: 0 20px 20px;
}

.sk-create-summary:hover {
  background: #ffffff08;
}


/* SK-STAMMTISCH-CHAT-V1 */
.sk-chat-card{
  padding:0!important;
  overflow:hidden;
  margin-bottom:20px;
}
.sk-chat-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:19px 20px;
  cursor:pointer;
  list-style:none;
  font-family:Georgia,serif;
  font-weight:bold;
  font-size:25px;
}
.sk-chat-summary::-webkit-details-marker{display:none}
.sk-chat-chevron{
  color:#e7b85e;
  font-family:Arial,sans-serif;
  transition:transform .2s;
}
.sk-chat-details[open] .sk-chat-chevron{
  transform:rotate(180deg);
}
.sk-chat-content{padding:0 20px 20px}
.sk-chat-messages{
  height:260px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px;
  border:1px solid rgba(231,184,94,.2);
  border-radius:12px;
  background:rgba(0,0,0,.18);
}
.sk-chat-empty{
  color:#bba995;
  text-align:center;
  padding:30px 10px;
}
.sk-chat-message{
  max-width:82%;
  align-self:flex-start;
  background:#35251b;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:10px 13px;
  overflow-wrap:anywhere;
}
.sk-chat-mine{
  align-self:flex-end;
  background:#604020;
  border-color:rgba(231,184,94,.25);
}
.sk-chat-message-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:5px;
  font-size:12px;
}
.sk-chat-message-head strong{color:#efc078}
.sk-chat-message-head span{color:#bba995}
.sk-chat-message-text{
  white-space:pre-wrap;
  line-height:1.45;
}
.sk-chat-delete{
  border:0;
  background:transparent;
  color:#e6a4a4;
  padding:0 5px;
  cursor:pointer;
}
.sk-chat-form{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.sk-chat-form input{
  flex:1;
  min-width:0;
}
.sk-chat-hint{
  display:block;
  color:#bba995;
  margin-top:8px;
}
@media(max-width:600px){
  .sk-chat-message{max-width:95%}
  .sk-chat-summary{font-size:21px}
  .sk-chat-form button{padding:10px}
}


/* SK-CHAT-MOBILE-V1 */
@media(max-width:768px){
  .sk-chat-card{
    margin-bottom:16px;
  }

  .sk-chat-summary{
    padding:16px;
    font-size:20px;
  }

  .sk-chat-content{
    padding:0 12px 14px;
  }

  .sk-chat-messages{
    height:230px;
    padding:10px;
    gap:9px;
  }

  .sk-chat-message{
    max-width:94%;
    padding:9px 11px;
  }

  .sk-chat-form{
    gap:7px;
  }

  .sk-chat-form input{
    font-size:16px;
  }
}


/* SK-TISCHCHAT-V1 */
.sk-table-chat-card{
  width:100%;
  max-width:100%;
  margin-top:18px;
  box-sizing:border-box;
}
@media(max-width:768px){
  .sk-table-chat-card{
    margin-top:12px;
  }
  .sk-table-chat-card .sk-chat-messages{
    height:210px;
  }
}


/* SK-CHAT-OVERLAY-V1 */
#skTableChatOverlayRoot{
  position:relative;
  z-index:9998;
}

.sk-chat-float-button{
  position:fixed;
  top:76px;
  left:14px;
  z-index:9999;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #c79b55;
  border-radius:14px;
  background:#38251a;
  color:#f4d397;
  box-shadow:0 4px 18px #0008;
  cursor:pointer;
}

.sk-chat-float-icon{
  font-size:23px;
}

.sk-chat-unread-badge{
  position:absolute;
  top:-8px;
  right:-8px;
  min-width:21px;
  height:21px;
  padding:0 5px;
  border-radius:20px;
  background:#d62828;
  color:white;
  font:bold 12px Arial,sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
}

.sk-chat-unread-badge[hidden],
.sk-table-chat-backdrop[hidden],
.sk-table-chat-panel[hidden]{
  display:none!important;
}

.sk-table-chat-backdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.3);
}

.sk-table-chat-panel{
  position:fixed;
  top:135px;
  left:14px;
  z-index:10000;
  width:min(390px,calc(100vw - 28px));
  height:min(480px,calc(100dvh - 155px));
  display:flex;
  flex-direction:column;
  padding:14px;
  box-sizing:border-box;
  background:#2c1e16;
  border:2px solid #ba8c49;
  border-radius:16px;
  box-shadow:0 12px 45px #000b;
  color:#f7e9d2;
}

.sk-table-chat-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  color:#f4cf88;
}

.sk-table-chat-header button{
  background:transparent;
  border:0;
  color:#f4cf88;
  font-size:22px;
  cursor:pointer;
}

.sk-table-chat-panel .sk-chat-messages{
  flex:1;
  min-height:0;
  height:auto;
}

.sk-table-chat-panel .sk-chat-form{
  flex-shrink:0;
}

@media(max-width:768px){
  .sk-chat-float-button{
    top:66px;
    left:10px;
    width:44px;
    height:44px;
  }

  .sk-table-chat-panel{
    top:120px;
    left:10px;
    width:calc(100vw - 20px);
    height:80dvh;
    max-height:calc(100dvh - 135px);
  }
}

/* SK-CHAT-POSITION-V2 */
/* Handy: Chat-Button unten links */
@media (max-width:768px) {
  #skChatFloatButton {
    position:fixed !important;
    top:auto !important;
    bottom:20px !important;
    left:12px !important;
    right:auto !important;
    width:42px !important;
    height:42px !important;
    z-index:10001 !important;
  }

  #skChatFloatButton .sk-chat-float-icon {
    font-size:21px;
  }

  /* Chatfenster über dem Spielfeld */
  #skTableChatPanel {
    top:10px !important;
    left:10px !important;
    bottom:auto !important;
    width:calc(100vw - 20px) !important;
    height:80dvh !important;
    max-height:calc(100dvh - 20px) !important;
  }
}


/* SK-CHAT-LANDSCAPE-FIX-V3 */

/* Smartphones im Hoch- UND Querformat */
@media (pointer:coarse) and (max-height:950px) {

  body #skChatFloatButton {
    position:fixed !important;
    top:auto !important;
    bottom:20px !important;
    left:14px !important;
    right:auto !important;
    width:44px !important;
    height:44px !important;
    z-index:10001 !important;
  }

  body #skTableChatPanel {
    position:fixed !important;
    top:10px !important;
    left:10px !important;
    right:auto !important;
    bottom:auto !important;
    width:min(420px,calc(100vw - 20px)) !important;
    height:calc(100dvh - 20px) !important;
    max-height:600px !important;
    z-index:10002 !important;
  }
}


/* SK-CHAT-TOP-LEFT-V4 */
/* Handy im Hoch- und Querformat */

@media (pointer:coarse) and (max-height:950px) {

  body #skChatFloatButton {
    position:fixed !important;
    top:12px !important;
    left:12px !important;
    right:auto !important;
    bottom:auto !important;
    width:44px !important;
    height:44px !important;
    z-index:10001 !important;
  }

  body #skTableChatPanel {
    top:65px !important;
    left:12px !important;
    bottom:auto !important;
    width:min(420px,calc(100vw - 24px)) !important;
    height:calc(100dvh - 80px) !important;
    max-height:600px !important;
  }
}



/* SK-LOBBY-OVERLAY-V1 */
.sk-lobby-chat-float{
  position:fixed;
  top:75px;
  right:20px;
  z-index:9999;
  width:48px;
  height:48px;
  border:2px solid #c79b55;
  border-radius:14px;
  background:#38251a;
  color:#f4d397;
  box-shadow:0 4px 18px #0008;
  font-size:23px;
  cursor:pointer;
}

.sk-lobby-chat-panel{
  left:auto;
  right:20px;
  top:135px;
}

@media(max-width:768px){
  .sk-lobby-chat-float{
    top:65px;
    right:12px;
    width:44px;
    height:44px;
  }

  .sk-lobby-chat-panel{
    left:10px;
    right:10px;
    top:120px;
    width:calc(100vw - 20px);
    height:80dvh;
    max-height:calc(100dvh - 135px);
  }
}


/* SK-ONLINE-SIDEBAR-V1 */
.sk-lobby-columns{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:20px;
  align-items:start;
  margin-top:20px;
}

.sk-lobby-sidebar{
  min-width:0;
}

.sk-lobby-sidebar .sk-global-online{
  position:sticky;
  top:75px;
  padding:16px;
  box-sizing:border-box;
}

.sk-lobby-sidebar .sk-global-online h2{
  font-size:22px;
  margin:0;
}

.sk-lobby-sidebar .sk-global-online .row.spread{
  display:flex;
  flex-direction:column;
  align-items:flex-start!important;
  gap:10px;
}

.sk-lobby-sidebar #skOnlineUsers{
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:9px!important;
}

.sk-lobby-sidebar #skOnlineUsers>*{
  box-sizing:border-box;
  max-width:100%;
  overflow-wrap:anywhere;
}

.sk-lobby-main{
  min-width:0;
}

.sk-lobby-main>.section{
  margin-top:20px;
}

@media(max-width:768px){
  .sk-lobby-columns{
    grid-template-columns:115px minmax(0,1fr);
    gap:10px;
  }

  .sk-lobby-sidebar .sk-global-online{
    padding:9px;
    top:10px;
  }

  .sk-lobby-sidebar .sk-global-online h2{
    font-size:15px;
  }

  .sk-lobby-sidebar .pill{
    font-size:10px;
  }

  .sk-lobby-sidebar #skOnlineUsers>*{
    font-size:12px;
    padding:7px 5px;
  }

  .sk-lobby-main h2{
    font-size:20px;
  }
}


/* SK-BID-BUTTONS-V1 */
.felt:has(#gameType) #gameType,
.felt:has(#gameType) #trumpSuit {
 display:none!important;
}

.felt:has(#gameType) .sk-bid-button-group {
 grid-column:1/-1!important;
 display:flex!important;
 flex-wrap:wrap;
 justify-content:center;
 gap:7px;
 width:100%;
}

.felt:has(#gameType) .sk-bid-choice,
.felt:has(#gameType) .sk-bid-tout {
 appearance:none;
 background:#251a12!important;
 color:#f6e5c3!important;
 border:1px solid #a47c3c!important;
 border-radius:9px!important;
 padding:9px 14px!important;
 min-height:38px;
 font-size:14px!important;
 font-weight:700!important;
 cursor:pointer;
 flex:1 1 auto;
 grid-column:auto!important;
}

.felt:has(#gameType) .sk-bid-choice.selected,
.felt:has(#gameType) .sk-bid-tout.selected {
 background:#e0b45e!important;
 color:#24180b!important;
 border-color:#ffe2a0!important;
 box-shadow:0 0 0 2px #f5d38b55;
}

.felt:has(#gameType) .sk-bid-choice:disabled,
.felt:has(#gameType) .sk-bid-tout:disabled {
 opacity:.55;
 cursor:default;
}

.felt:has(#gameType) .sk-bid-tout {
 grid-column:1/-1!important;
 width:100%;
}

.felt:has(#gameType) #declareGame {
 grid-column:1/-1!important;
 width:100%!important;
 min-height:40px!important;
 font-weight:800!important;
}

@media(max-width:760px){
 .felt:has(#gameType) .sk-bid-button-group {
   gap:4px;
 }
 .felt:has(#gameType) .sk-bid-choice,
 .felt:has(#gameType) .sk-bid-tout {
   padding:6px 9px!important;
   min-height:32px;
   font-size:12px!important;
 }
}

/* SK-RAMSCH-EYES-V1 */
.sk-ramsch-eyes {
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:5px;
 width:100%;
 margin-top:8px;
}

.sk-ramsch-player {
 display:flex;
 flex-direction:column;
 align-items:center;
 gap:3px;
 min-width:0;
 padding:5px 2px;
 border:1px solid #795d32;
 border-radius:6px;
 background:#1c291f;
}

.sk-ramsch-player b {
 font-size:11px;
 color:#f5e7c9;
 max-width:100%;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
}

.sk-ramsch-player strong {
 font-size:11px;
 color:#f0c875;
 white-space:nowrap;
}

@media(max-width:760px){
 .sk-ramsch-eyes {gap:3px}
 .sk-ramsch-player b,
 .sk-ramsch-player strong {font-size:9px}
 .sk-ramsch-player {padding:4px 1px}
}


/* SK-WAIT-BUBBLE-V1 */
.felt .player-badge .sk-wait-bubble {
 display:block;
 width:max-content;
 max-width:100%;
 box-sizing:border-box;
 margin:0 auto 5px;
 padding:5px 9px;
 border:1px solid #d8aa4e;
 border-radius:11px;
 background:#fff0c7;
 color:#463010;
 font-size:12px;
 font-weight:800;
 line-height:1.25;
 white-space:normal;
 box-shadow:0 3px 9px #0005;
}

@media(max-width:760px){
 .felt .player-badge .sk-wait-bubble {
   font-size:10px;
   padding:3px 5px;
   margin-bottom:3px;
 }
}


/* SK-CHAT-TOPBAR-V1 */
@media (min-width:769px) {
  #skChatFloatButton {
    position:fixed !important;
    top:5px !important;
    right:calc(100vw - 100% + 670px) !important;
    bottom:auto !important;
    left:auto !important;
    width:auto !important;
    height:35px !important;
    min-width:42px !important;
    padding:5px 10px !important;
    border-radius:9px !important;
    z-index:1000 !important;
  }
}


/* SK-CHAT-NAV-FINAL-V1 */
@media (min-width:769px) and (pointer:fine) {
  .topbar nav #skChatFloatButton {
    position:static !important;
    inset:auto !important;
    transform:none !important;
    margin:0 6px 0 0 !important;
    padding:7px 11px !important;
    width:auto !important;
    min-width:42px !important;
    height:auto !important;
    min-height:34px !important;
    flex:0 0 auto !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    border-radius:9px !important;
  }
}


/* SK-LOBBY-CHAT-NAV-V1 */
@media (min-width:769px) {
  .topbar nav #skLobbyChatFloat {
    position:static !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    width:42px !important;
    height:36px !important;
    min-width:42px !important;
    padding:5px 9px !important;
    margin:0 3px 0 0 !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    flex:0 0 auto !important;
    font-size:19px !important;
    border-radius:9px !important;
  }
}











/* SK-TABLE-CHAT-SIDEBAR-FIX-V1 */
@media (min-width:769px) {
  .game-layout .right-panel #skTableChatOverlayRoot {
    position:relative !important;
    display:block !important;
    width:100% !important;
    margin-top:8px !important;
  }

  .game-layout .right-panel #skChatFloatButton {
    position:static !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    height:38px !important;
    margin:0 !important;
    border-radius:9px !important;
  }

  .game-layout .right-panel #skTableChatPanel,
  .game-layout .right-panel #skTableChatBackdrop {
    position:fixed !important;
  }
}


/* SK-TABLE-CHAT-MENU-LAYER-FIX-V1 */
@media (min-width:769px) {
  .game-layout .right-panel #skTableChatOverlayRoot {
    z-index:auto !important;
    isolation:auto !important;
  }

  .game-layout .right-panel #skChatFloatButton {
    z-index:auto !important;
  }
}


/* SK-CHAT-MENU-OVERLAY-FIX-V2 */
@media (min-width:769px) {
  .game-layout .right-panel #skTableChatOverlayRoot {
    position:relative !important;
    z-index:0 !important;
    isolation:isolate !important;
  }

  .game-layout .right-panel #skChatFloatButton {
    position:relative !important;
    z-index:0 !important;
  }
}

/* SK-CHAT-MENU-VISIBILITY-FIX-V3 */
/* PC: Chat bleibt in der Seitenleiste,
   wird aber bei geöffnetem Menü ausgeblendet. */
@media (min-width:1100px) and (hover:hover) and (pointer:fine) {

  body.sk-in-game.sk-drawer-open
  .right-panel #skTableChatOverlayRoot {
    visibility:hidden !important;
    pointer-events:none !important;
  }

  body.sk-in-game.sk-drawer-open
  #mobileDrawerBackdrop {
    z-index:20000 !important;
  }

  body.sk-in-game.sk-drawer-open
  #mobileDrawer.mobile-open {
    z-index:20001 !important;
  }
}

/* SK-CHAT-DRAWER-HIDE-FINAL */
@media (min-width:1100px) and (hover:hover) and (pointer:fine) {
  body.sk-drawer-open #skChatFloatButton,
  body:has(#mobileDrawer.mobile-open) #skChatFloatButton {
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }
}


/* SK-LOBBY-CHAT-IN-GAME-FIX-V1 */
/* Stammtisch-Chat nur außerhalb des Spieltisches anzeigen */
body.sk-in-game #skLobbyChatFloat {
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* SK-BACK-TO-TABLE-NO-OVERLAP-V1 */
/* Am PC den Zurueck-Button links von der Navigation halten */
@media (min-width:1100px) and (pointer:fine) {
  body #backToTableButton {
    left:auto !important;
    right:calc(50% + 80px) !important;
    transform:none !important;
    top:8px !important;
    white-space:nowrap !important;
  }
}

/* SK-BACK-BUTTON-NAV-V1 */
@media (min-width:1100px) and (pointer:fine) {
  .topbar nav #backToTableButton {
    position:static !important;
    inset:auto !important;
    transform:none !important;
    margin-right:8px !important;
    white-space:nowrap !important;
    flex:0 0 auto !important;
  }
}

/* SK-STARTMENUE-NUR-AUSSERHALB-LOBBY-V1 */
/* Startmenue-Button auf der Startseite ausblenden */
body:has(.topbar nav .nav[data-view="lobby"].active)
.topbar nav .nav[data-view="lobby"] {
  display:none !important;
}

/* SK-TABLE-CHAT-OVER-CARDS-V1 */
/* Geoeffnetes Chatfenster ueber allen Spielkarten */
@media (min-width:1100px) and (pointer:fine) {
  body #skTableChatPanel:not([hidden]) {
    position:fixed !important;
    z-index:2147483646 !important;
    isolation:isolate !important;
  }

  body #skTableChatBackdrop:not([hidden]) {
    position:fixed !important;
    z-index:2147483645 !important;
  }
}

/* SK-CHAT-BODY-LAYER-V1 */
@media (min-width:1100px) and (pointer:fine) {
  body > #skTableChatPanel:not([hidden]) {
    position:fixed !important;
    z-index:2147483646 !important;
  }
  body > #skTableChatBackdrop:not([hidden]) {
    position:fixed !important;
    z-index:2147483645 !important;
  }
}

/* WEIDIS SCHAFKOPF – BAYERISCHE KARTENRÜCKSEITE */
.back-card,
.backs .back-card,
.backs.vertical .back-card {
  background-color: #ffffff !important;
  background-image: url('/Back.png') !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  border: 1px solid #ffffff !important;
  border-radius: 5px !important;
}


/* Optimierte Kartenrückseite */
.back-card,
.backs .back-card,
.backs.vertical .back-card {
  background-image: url('/Back.webp') !important;
}


/* SK-MOBILE-CHAT-RESTORE-V1 */
@media (max-width:768px), (pointer:coarse) and (max-height:950px) {

  body #skTableChatOverlayRoot {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
  }

  body #skChatFloatButton {
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    position:fixed !important;
    top:12px !important;
    left:12px !important;
    right:auto !important;
    bottom:auto !important;
    width:42px !important;
    height:42px !important;
    align-items:center !important;
    justify-content:center !important;
    z-index:10001 !important;
  }
}


/* SK-FARBEN-EINHEITLICH-V1 */
/* Die normalen Farbbuttons aus app.js bleiben technisch vorhanden,
   werden aber nicht angezeigt. */
.felt:has(#gameType) .sk-bid-suits {
  display: none !important;
}

/* Original-Auswahl bleibt für die Spiellogik erhalten. */
.felt:has(#gameType) #trumpSuit {
  display: none !important;
}

/* Farbauswahl mit Originalbildern auf PC und Handy */
.felt:has(#gameType) .sk-farben-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  grid-column: 1 / -1 !important;
}

.felt:has(#gameType) .sk-farben-buttons .sk-farbe {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  padding: 5px 3px !important;
  background: #123c2c !important;
  border: 2px solid #66816a !important;
  border-radius: 10px !important;
  color: white !important;
  cursor: pointer !important;
}

.felt:has(#gameType) .sk-farben-buttons .sk-farbe img {
  display: block !important;
  height: 30px !important;
  width: auto !important;
  max-width: 90% !important;
  object-fit: contain !important;
}

.felt:has(#gameType) .sk-farben-buttons .sk-farbe span {
  font-size: 12px !important;
  font-weight: 700 !important;
}

.felt:has(#gameType) .sk-farben-buttons .sk-farbe.selected {
  border-color: #f5c76d !important;
  background: #514021 !important;
  box-shadow: 0 0 8px #e8b95477 !important;
}

/* SK-MOBILE-ANSAGE-GROSS-V2 */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {

  body:has(.game-layout) .felt .table-center.sk-bid-sheet.sk-bid-my-turn {
    position: fixed !important;
    inset: 3dvh 5vw auto 5vw !important;
    transform: none !important;
    width: 90vw !important;
    max-width: none !important;
    height: auto !important;
    max-height: 94dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
  }

  body:has(.game-layout) .sk-bid-sheet.sk-bid-my-turn .game-notice {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body:has(.game-layout) .sk-bid-sheet.sk-bid-my-turn .start-controls {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body:has(.game-layout) .sk-bid-sheet.sk-bid-my-turn #declareGame {
    display: block !important;
    min-height: 48px !important;
  }
}

/* SK-MOBILE-ANSAGE-FIX-V3 */
@media (pointer: coarse) and (orientation: landscape)
       and (max-height: 650px) and (max-width: 1200px) {

  body:has(.game-layout) .felt
  .table-center.sk-bid-sheet.sk-bid-my-turn {
    position: fixed !important;
    top: 8dvh !important;
    left: 10vw !important;
    right: auto !important;
    bottom: auto !important;
    width: 80vw !important;
    max-width: none !important;
    height: auto !important;
    max-height: 88dvh !important;
    transform: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
  }

  body:has(.game-layout) .felt
  .table-center.sk-bid-sheet.sk-bid-my-turn
  .game-notice {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body:has(.game-layout) .felt
  .table-center.sk-bid-sheet.sk-bid-my-turn
  #declareGame {
    display: block !important;
    visibility: visible !important;
    min-height: 48px !important;
  }
}

/* SK-CARD-DRAG-V1 – Kartenauswahl und Ziehbewegung */
.felt .opponent-bottom .hand .playing-card.bavarian-card {
  touch-action: none;
}

.felt .opponent-bottom .hand .playing-card.bavarian-card.sk-card-selected {
  transform: translateY(calc(-15px - var(--sk-drag-y, 0px))) !important;
  z-index: 30 !important;
  box-shadow: 0 12px 22px rgba(0,0,0,.65) !important;
}

.felt .opponent-bottom .hand .playing-card.bavarian-card.sk-card-selected:hover {
  transform: translateY(calc(-15px - var(--sk-drag-y, 0px))) !important;
}

/* SK-WAIT-CENTER-V2 */
.felt .opponent-bottom .sk-wait-center {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 12px) !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  z-index: 100 !important;
  padding: 10px 18px;
  border: 2px solid #d8ad5d;
  border-radius: 18px;
  background: #fff0bd;
  color: #30200c;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  pointer-events: none;
}

/* SK-REST-ZU-MIR-STYLE-V1 */
.felt .opponent-bottom .sk-rest-zu-mir {
  display: block;
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  align-self: center;
  margin: 5px auto 7px;
  padding: 9px 20px;
  width: max-content;
  max-width: 90%;
  border: 2px solid #f5d17a;
  border-radius: 12px;
  background: linear-gradient(145deg, #d7a544, #926015);
  color: #201405;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 4px 14px #0008;
  cursor: pointer;
}

.felt .opponent-bottom .sk-rest-zu-mir:hover:not(:disabled) {
  background: linear-gradient(145deg, #f7d98a, #bb8328);
}

.felt .opponent-bottom .sk-rest-zu-mir:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 760px) {
  .felt .opponent-bottom .sk-rest-zu-mir {
    margin: 2px auto 4px;
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 9px;
  }
}

/* SK-BID-SPEECH-BUBBLE-V1 */
.felt .player-badge .sk-live-bid {
  display: block;
  position: relative;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 7px auto 3px;
  padding: 5px 10px;
  border: 1px solid #d8aa4e;
  border-radius: 11px;
  background: #fff0c7;
  color: #463010;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  box-shadow: 0 3px 9px #0005;
}

.felt .player-badge .sk-live-bid::before {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(50% - 5px);
  width: 9px;
  height: 9px;
  background: inherit;
  border-left: 1px solid #d8aa4e;
  border-top: 1px solid #d8aa4e;
  transform: rotate(45deg);
}

.felt .player-badge .sk-bid-pass {
  background: #e6e3dc;
  color: #514d47;
  border-color: #a9a39b;
}

.felt .player-badge .sk-bid-wait {
  background: #dce8df;
  color: #34513c;
  border-color: #8bab94;
}

.felt .player-badge .sk-bid-turn {
  background: #f5d47c;
  color: #392606;
  border-color: #e4b648;
}

@media (max-width: 760px) {
  .felt .player-badge .sk-live-bid {
    font-size: 10px;
    padding: 3px 6px;
    margin-top: 5px;
    border-radius: 8px;
  }
}

/* SK-BID-SPEECH-POSITION-V1 */
.felt .player-badge .sk-live-bid {
  display: inline-block;
  vertical-align: middle;
  width: auto;
  max-width: 150px;
  margin: 0 0 0 8px;
  padding: 5px 9px;
}

.felt .player-badge .sk-live-bid::before {
  top: calc(50% - 5px);
  left: -6px;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .felt .player-badge .sk-live-bid {
    max-width: 100px;
    margin-left: 4px;
    padding: 3px 5px;
    font-size: 10px;
  }
}

/* SK-BID-BUBBLE-OUTSIDE-V1 */
.felt .opponent .player-badge {
  position: relative;
}

.felt .opponent .player-badge .sk-live-bid {
  position: absolute !important;
  display: block !important;
  width: max-content !important;
  max-width: 135px !important;
  margin: 0 !important;
  z-index: 30 !important;
  white-space: normal !important;
  background: #fff0c7;
  color: #463010;
  border: 1px solid #d8aa4e;
  border-radius: 11px;
  box-shadow: 0 4px 12px #0007;
}

/* Spieler oben und unten: Blase über dem Namen */
.felt .opponent-top .sk-live-bid,
.felt .opponent-bottom .sk-live-bid {
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
}

/* Spieler links: Blase rechts neben dem Namen */
.felt .opponent-left .sk-live-bid {
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%);
}

/* Spieler rechts: Blase links neben dem Namen */
.felt .opponent-right .sk-live-bid {
  top: 50%;
  right: calc(100% + 12px);
  left: auto;
  transform: translateY(-50%);
}

/* Pfeil der seitlichen Sprechblasen */
.felt .opponent-left .sk-live-bid::before {
  top: calc(50% - 5px);
  left: -6px;
  transform: rotate(-45deg);
}

.felt .opponent-right .sk-live-bid::before {
  top: calc(50% - 5px);
  left: auto;
  right: -6px;
  transform: rotate(135deg);
}

@media (max-width: 760px) {
  .felt .opponent .player-badge .sk-live-bid {
    max-width: 95px !important;
    font-size: 10px !important;
    padding: 3px 6px !important;
  }
}

/* SK-TOP-BID-BUBBLE-BELOW-V1 */

/* Oberer Spieler: Sprechblase unterhalb des Namenskastens */
.felt .opponent-top .player-badge .sk-live-bid {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 40 !important;
}

/* Pfeil zeigt nach oben zum Spieler */
.felt .opponent-top .player-badge .sk-live-bid::before {
  top: -6px !important;
  bottom: auto !important;
  left: calc(50% - 5px) !important;
  right: auto !important;
  transform: rotate(45deg) !important;
}



/* SK-MOBILE-LOBBY-KOMPAKT-V3 */

.sk-mobile-lobby-bar,
.sk-table-free {
  display: none;
}

@media (orientation: landscape) and (max-height: 750px) and (max-width: 1200px) {

  /* Nur die Startseite */
  body:not(.sk-in-game) .hero {
    display: none !important;
  }

  body:not(.sk-in-game) main {
    padding: 8px 12px 24px !important;
  }

  /* Obere Navigationsleiste ausblenden */
  body:not(.sk-in-game) header.topbar {
    display: none !important;
  }

  /* Neue kompakte Kopfzeile */
  body:not(.sk-in-game) .sk-mobile-lobby-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #24180f;
    border: 1px solid #70502d;
    border-radius: 10px;
  }

  body:not(.sk-in-game) .sk-mobile-lobby-bar strong {
    color: #f3cd82;
    font-size: 17px;
    white-space: nowrap;
  }

  body:not(.sk-in-game) .sk-mobile-online-count {
    color: #9ee3a8;
    font-size: 12px;
    white-space: nowrap;
  }

  body:not(.sk-in-game) #skMobileCreateBtn {
    padding: 8px 12px;
    border-radius: 8px;
    background: #e6b660;
    color: #23170e;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }

  /* Formular bleibt über die neue Schaltfläche erreichbar */
  body:not(.sk-in-game) .sk-create-table {
    padding: 0 !important;
    margin: 0 0 8px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body:not(.sk-in-game) .sk-create-table:not(:has(details[open])) {
    display: none !important;
  }

  body:not(.sk-in-game) .sk-create-table details > summary {
    display: none !important;
  }

  body:not(.sk-in-game) .sk-create-table details[open] {
    padding: 12px;
    background: #24180f;
    border: 1px solid #70502d;
    border-radius: 10px;
  }

  /* Online-Anzeige der Desktop-Seite ausblenden */
  body:not(.sk-in-game) .sk-global-online {
    display: none !important;
  }

  /* Tischübersicht */
  body:not(.sk-in-game) .section {
    margin-top: 8px !important;
  }

  body:not(.sk-in-game) .section h2 {
    font-size: 18px !important;
    margin: 0 !important;
  }

  body:not(.sk-in-game) .section .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  body:not(.sk-in-game) .table-card {
    padding: 0 !important;
    border-radius: 9px !important;
  }

  body:not(.sk-in-game) .sk-table-summary {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
  }

  body:not(.sk-in-game) .sk-table-name {
    flex: 1 1 40%;
    min-width: 0;
    font-size: 15px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.sk-in-game) .sk-table-creator {
    flex: 1 1 30%;
    min-width: 0;
    font-size: 12px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.sk-in-game) .sk-table-players {
    display: none !important;
  }

  body:not(.sk-in-game) .sk-table-free {
    display: block !important;
    flex: 0 0 135px;
    text-align: right;
    color: #9ee3a8;
    font-size: 12px;
    font-weight: 700;
  }

  body:not(.sk-in-game) .sk-table-chevron {
    flex: 0 0 auto;
  }

  body:not(.sk-in-game) .sk-table-details {
    padding: 10px !important;
  }
}


/* SK-MOBILE-LOBBY-FIX-V4 */
@media (orientation:landscape) and (max-height:750px) and (max-width:1200px) {

  /* Alte Navigation auf der Startseite ausblenden */
  html body:not(.sk-in-game) > header.topbar {
    display:none!important;
  }

  /* Neue Kopfzeile */
  html body:not(.sk-in-game) .sk-mobile-lobby-bar {
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:10px!important;
  }

  html body:not(.sk-in-game) #skMobileLobbyMenuBtn {
    display:flex!important;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    padding:8px 13px;
    border:1px solid #8d6338;
    border-radius:8px;
    background:#352318;
    color:#f3cd82;
    font-size:19px;
  }

  /* Tischübersicht volle Breite */
  html body:not(.sk-in-game) main > .section {
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }

  html body:not(.sk-in-game) .section .grid {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    gap:7px!important;
  }

  /* Tischkarten flach */
  html body:not(.sk-in-game) .sk-collapsible-table {
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
  }

  html body:not(.sk-in-game) .sk-collapsible-table details {
    width:100%!important;
  }

  html body:not(.sk-in-game) .sk-table-summary {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    width:100%!important;
    height:auto!important;
    min-height:46px!important;
    padding:8px 14px!important;
  }

  html body:not(.sk-in-game) .sk-table-name {
    display:block!important;
    flex:1 1 35%!important;
    min-width:0!important;
    font-size:16px!important;
    line-height:1.2!important;
  }

  html body:not(.sk-in-game) .sk-table-creator {
    display:block!important;
    flex:1 1 30%!important;
    min-width:0!important;
    font-size:12px!important;
    line-height:1.2!important;
  }

  html body:not(.sk-in-game) .sk-table-free {
    display:block!important;
    flex:0 0 145px!important;
    font-size:12px!important;
    line-height:1.2!important;
    text-align:right!important;
  }

  html body:not(.sk-in-game) .sk-table-chevron {
    position:static!important;
    flex:0 0 18px!important;
    transform:none;
  }

  html body:not(.sk-in-game)
  .sk-collapsible-table details[open] .sk-table-chevron {
    transform:rotate(180deg)!important;
  }

  html body:not(.sk-in-game) .sk-table-players {
    display:none!important;
  }
}


/* SK-MOBILE-LOBBY-FIX-V5 */
@media (orientation: landscape) and (max-height: 750px) and (max-width: 1200px) {

  /* Alte Navigationsleiste vollständig ausblenden */
  html body:not(.sk-in-game) > header.topbar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Gesamtes Startmenü einspaltig */
  html body:not(.sk-in-game) main,
  html body:not(.sk-in-game) #app {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Online-Seitenleiste entfernen */
  html body:not(.sk-in-game) .sk-global-online {
    display: none !important;
  }

  /* Tischübersicht über die volle Breite */
  html body:not(.sk-in-game) main {
    display: block !important;
  }

  html body:not(.sk-in-game) main > .section {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
  }

  html body:not(.sk-in-game) .section .grid {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Neue Kopfzeile */
  html body:not(.sk-in-game) .sk-mobile-lobby-bar {
    width: 100% !important;
    min-height: 52px !important;
    padding: 7px 12px !important;
    margin: 0 0 12px !important;
  }

  /* Kompakte Tischzeilen */
  html body:not(.sk-in-game) .sk-table-summary {
    min-height: 42px !important;
    padding: 7px 12px !important;
  }

  html body:not(.sk-in-game) .sk-table-name {
    font-size: 15px !important;
  }

  /* Neuer Menü-Button */
  html body:not(.sk-in-game) #skMobileLobbyMenuBtn {
    display: flex !important;
    position: relative !important;
    z-index: 10 !important;
    min-width: 42px !important;
    height: 38px !important;
    padding: 6px 12px !important;
  }
}


/* SK-MOBILE-LOBBY-LAYOUT-FIX-V6 */
@media (orientation: landscape) and (max-height: 750px) and (max-width: 1200px) {

  /* Lobby auf eine einzige Spalte umstellen */
  html body:not(.sk-in-game) .sk-lobby-columns {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  html body:not(.sk-in-game) .sk-lobby-sidebar {
    display: none !important;
  }

  html body:not(.sk-in-game) .sk-lobby-main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Tischübersicht volle Breite */
  html body:not(.sk-in-game) .sk-lobby-main > .section,
  html body:not(.sk-in-game) main#app > .section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 0 !important;
  }

  html body:not(.sk-in-game) .section .grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    width: 100% !important;
  }

  /* Ein Tisch pro Zeile */
  html body:not(.sk-in-game) .sk-table-summary {
    display: grid !important;
    grid-template-columns:
      minmax(90px, 1fr)
      minmax(120px, 1fr)
      minmax(110px, 1fr)
      20px !important;
    align-items: center !important;
    column-gap: 10px !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
  }

  html body:not(.sk-in-game) .sk-table-name,
  html body:not(.sk-in-game) .sk-table-creator,
  html body:not(.sk-in-game) .sk-table-free {
    min-width: 0 !important;
    width: auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body:not(.sk-in-game) .sk-table-name {
    font-size: 16px !important;
  }

  html body:not(.sk-in-game) .sk-table-creator {
    font-size: 12px !important;
  }

  html body:not(.sk-in-game) .sk-table-free {
    display: block !important;
    font-size: 12px !important;
    text-align: right !important;
  }

  html body:not(.sk-in-game) .sk-table-chevron {
    position: static !important;
    grid-column: 4 !important;
    justify-self: end !important;
  }

  /* Kompakte obere Leiste */
  html body:not(.sk-in-game) .sk-mobile-lobby-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 12px !important;
  }

}


/* SK-MOBILE-LOBBY-NAV-FIX-V7 */
@media (pointer: coarse) and (orientation: landscape)
       and (max-height: 750px) and (max-width: 1200px) {

  /* Beide alten Navigationsleisten auf der Lobby entfernen */
  html body:not(.sk-in-game) > header.topbar,
  html body:not(.sk-in-game) > #mobileTopNav {
    display: none !important;
  }

  /* Bestehenden Menü-Auslöser verfügbar halten */
  html body:not(.sk-in-game) > #mobileMenuToggle {
    display: none !important;
  }

  /* Neue mobile Kopfzeile */
  html body:not(.sk-in-game) .sk-mobile-lobby-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  /* Chat-Button aus der rechten Ecke verschieben */
  html body:not(.sk-in-game) .sk-lobby-chat-float {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    left: auto !important;
    z-index: 9000 !important;
    width: 42px !important;
    height: 42px !important;
  }

  /* Neuer Menübutton in der Kopfzeile */
  html body:not(.sk-in-game) #skMobileLobbyMenuBtn {
    display: flex !important;
    position: relative !important;
    z-index: 10 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 40px !important;
    flex: 0 0 42px !important;
    font-size: 21px !important;
  }
}

/* SK-MOBILE-LOBBY-CHAT-OBEN-V1 */
@media (orientation: landscape) and
       (max-height: 750px) and
       (max-width: 1200px) {

  body:not(.sk-in-game) .sk-lobby-chat-float {
    position: fixed !important;
    top: 62px !important;
    right: 88px !important;
    bottom: auto !important;
    left: auto !important;

    width: 52px !important;
    height: 52px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    font-size: 25px !important;
    line-height: 1 !important;
    text-align: center !important;

    border-radius: 12px !important;
    z-index: 9999 !important;
  }
}


/* SK-MOBILE-CHAT-HEADER-V2 */
@media (orientation: landscape) and
       (max-height: 750px) and
       (max-width: 1200px) {

  body:not(.sk-in-game) .sk-mobile-lobby-bar {
    position: relative !important;
    padding-right: 125px !important;
  }

  body:not(.sk-in-game) .sk-lobby-chat-float {
    position: absolute !important;
    top: 50% !important;
    right: 75px !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;

    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 25px !important;
    line-height: 1 !important;
    text-align: center !important;
    z-index: 20 !important;
  }
}


/* SK-MOBILE-CHAT-HEADER-V3 */
@media (orientation: landscape) and
       (max-height: 750px) and
       (max-width: 1200px) {

  html body:not(.sk-in-game) .sk-mobile-lobby-bar {
    position: relative !important;
  }

  html body:not(.sk-in-game) #skLobbyChatFloat {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;

    width: 42px !important;
    height: 40px !important;
    min-width: 42px !important;
    min-height: 40px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    font-size: 22px !important;
    line-height: 1 !important;
    text-align: center !important;

    transform: translate(
      calc(var(--sk-chat-x, 0px)),
      calc(var(--sk-chat-y, 0px))
    ) !important;

    z-index: 9999 !important;
  }

  html body:not(.sk-in-game) #skMobileLobbyMenuBtn {
    width: 42px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* SK-MOBILE-TISCH-PARTIEN-V1 */
.sk-table-partien {
  display: none;
}

@media (orientation: landscape) and
       (max-height: 750px) and
       (max-width: 1200px) {

  body:not(.sk-in-game) .sk-table-summary {
    flex-direction: row !important;
  }

  body:not(.sk-in-game) .sk-table-name {
    flex: 1 1 25% !important;
  }

  body:not(.sk-in-game) .sk-table-creator {
    flex: 1 1 28% !important;
  }

  body:not(.sk-in-game) .sk-table-partien {
    display: block !important;
    flex: 0 0 auto;
    color: #f3cd82;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  body:not(.sk-in-game) .sk-table-free {
    flex: 0 0 145px !important;
  }
}

/* SK-MOBILE-TISCH-PARTIEN-LAYOUT-V2 */
@media (orientation: landscape) and
       (max-height: 750px) and
       (max-width: 1200px) {

  body:not(.sk-in-game) .sk-table-summary {
    display: grid !important;
    grid-template-columns:
      minmax(0, 1.2fr)
      minmax(0, 1.5fr)
      85px
      minmax(0, 1.1fr)
      20px !important;
    align-items: center !important;
    column-gap: 10px !important;
    min-height: 46px !important;
    padding: 8px 12px !important;
  }

  body:not(.sk-in-game) .sk-table-name,
  body:not(.sk-in-game) .sk-table-creator,
  body:not(.sk-in-game) .sk-table-partien,
  body:not(.sk-in-game) .sk-table-free,
  body:not(.sk-in-game) .sk-table-chevron {
    flex: none !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
  }

  body:not(.sk-in-game) .sk-table-name {
    grid-column: 1;
    grid-row: 1;
  }

  body:not(.sk-in-game) .sk-table-creator {
    grid-column: 2;
    grid-row: 1;
  }

  body:not(.sk-in-game) .sk-table-partien {
    grid-column: 3;
    grid-row: 1;
    display: block !important;
    white-space: nowrap;
    text-align: center;
    font-size: 12px !important;
  }

  body:not(.sk-in-game) .sk-table-free {
    grid-column: 4;
    grid-row: 1;
    display: block !important;
    text-align: right;
    white-space: nowrap;
    font-size: 12px !important;
  }

  body:not(.sk-in-game) .sk-table-chevron {
    grid-column: 5;
    grid-row: 1;
    position: static !important;
    transform: none;
    justify-self: center;
  }

  body:not(.sk-in-game)
  .sk-collapsible-table details[open]
  .sk-table-chevron {
    transform: rotate(180deg) !important;
  }
}

/* SK-MOBILE-TISCH-SPALTEN-LINKS-V3 */
@media (orientation: landscape) and
       (max-height: 750px) and
       (max-width: 1200px) {

  body:not(.sk-in-game) .sk-table-summary {
    grid-template-columns:
      minmax(0, 27%)
      minmax(0, 24%)
      minmax(0, 13%)
      minmax(0, 1fr)
      20px !important;

    column-gap: 8px !important;
  }

  body:not(.sk-in-game) .sk-table-partien {
    text-align: left !important;
  }

  body:not(.sk-in-game) .sk-table-free {
    text-align: center !important;
    white-space: nowrap !important;
  }

  body:not(.sk-in-game) .sk-table-chevron {
    justify-self: end !important;
  }
}

/* SK-MOBILE-TISCH-ENGER-V4 */
@media (orientation: landscape) and
       (max-height: 750px) and
       (max-width: 1200px) {

  body:not(.sk-in-game) .sk-table-summary {
    grid-template-columns:
      minmax(0, 25%)
      minmax(0, 27%)
      minmax(0, 13%)
      minmax(0, 1fr)
      22px !important;

    column-gap: 6px !important;
  }

  body:not(.sk-in-game) .sk-table-creator {
    font-size: 12px !important;
  }

  body:not(.sk-in-game) .sk-table-partien {
    font-size: 12px !important;
    text-align: left !important;
  }

  body:not(.sk-in-game) .sk-table-free {
    font-size: 12px !important;
    text-align: left !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  body:not(.sk-in-game) .sk-table-chevron {
    position: static !important;
    justify-self: end !important;
  }
}

/* SK-MOBILE-TISCH-LAYOUT-FIX-V5 */
@media (orientation: landscape) and
       (max-height: 750px) and
       (max-width: 1200px) {

  html body:not(.sk-in-game) .sk-table-summary {
    display: grid !important;
    grid-template-columns:
      minmax(0, 27%)
      minmax(0, 26%)
      minmax(0, 13%)
      minmax(0, 1fr)
      20px !important;
    column-gap: 6px !important;
    align-items: center !important;
  }

  html body:not(.sk-in-game) .sk-table-name {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  html body:not(.sk-in-game) .sk-table-creator {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  html body:not(.sk-in-game) .sk-table-partien {
    grid-column: 3 !important;
    grid-row: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  html body:not(.sk-in-game) .sk-table-free {
    grid-column: 4 !important;
    grid-row: 1 !important;
    display: block !important;
    min-width: 0 !important;
    width: auto !important;
    flex: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: left !important;
    font-size: 12px !important;
  }

  html body:not(.sk-in-game) .sk-table-chevron {
    grid-column: 5 !important;
    grid-row: 1 !important;
    position: static !important;
    justify-self: end !important;
    flex: none !important;
    margin: 0 !important;
  }

}

/* SK-DESKTOP-LOBBY-LISTE-V1 */
/* Nur PC – Handy bleibt unverändert */

@media (min-width: 1201px) {

  /* Spieltische untereinander statt nebeneinander */
  html body:not(.sk-in-game) .sk-lobby-main .section .grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  /* Kompakte Tischkarten */
  html body:not(.sk-in-game) .sk-collapsible-table {
    width: 100% !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  /* Fünf Spalten */
  html body:not(.sk-in-game) .sk-table-summary {
    display: grid !important;
    grid-template-columns:
      minmax(0, 25%)
      minmax(0, 28%)
      minmax(0, 14%)
      minmax(0, 1fr)
      24px !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 12px 18px !important;
  }

  /* Tischname */
  html body:not(.sk-in-game) .sk-table-name {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    font-size: 21px !important;
  }

  /* Ersteller */
  html body:not(.sk-in-game) .sk-table-creator {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 14px !important;
  }

  /* Gespielte Partien */
  html body:not(.sk-in-game) .sk-table-partien {
    display: block !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  /* Freie/belegte Plätze */
  html body:not(.sk-in-game) .sk-table-free {
    display: block !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  /* Pfeil ganz rechts */
  html body:not(.sk-in-game) .sk-table-chevron {
    grid-column: 5 !important;
    grid-row: 1 !important;
    position: static !important;
    justify-self: end !important;
    margin: 0 !important;
    font-size: 23px !important;
  }

  /* Spielernamen nur im ausgeklappten Bereich */
  html body:not(.sk-in-game) .sk-table-players {
    display: none !important;
  }

}

/* SK-DESKTOP-LOBBY-HEADER-V1 */
@media (min-width: 1201px) and (hover: hover) and (pointer: fine) {

  /* Alte obere Navigation auf der Lobby ausblenden */
  html body:not(.sk-in-game) > header.topbar {
    display: none !important;
  }

  /* Neue Kopfzeile wie auf dem Handy */
  html body:not(.sk-in-game) .sk-mobile-lobby-bar {
    display: flex !important;
    position: relative !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 12px 150px 12px 20px !important;
    margin: 0 0 20px !important;
    min-height: 64px !important;
    background: #24180f !important;
    border: 1px solid #70502d !important;
    border-radius: 12px !important;
  }

  html body:not(.sk-in-game) .sk-mobile-lobby-bar strong {
    font-size: 23px !important;
    color: #f3cd82 !important;
  }

  html body:not(.sk-in-game) .sk-mobile-online-count {
    color: #9ee3a8 !important;
    font-size: 16px !important;
  }

  html body:not(.sk-in-game) #skMobileCreateBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e6b660 !important;
    color: #23170e !important;
    font-weight: 800 !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
  }

  html body:not(.sk-in-game) #skMobileLobbyMenuBtn {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    transform: translateY(-50%) !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 25px !important;
    z-index: 20 !important;
  }

  html body:not(.sk-in-game) .sk-lobby-chat-float {
    position: absolute !important;
    top: 50% !important;
    right: 78px !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  /* Tisch erstellen nur bei geöffnetem Formular */
  html body:not(.sk-in-game) .sk-create-table:not(:has(details[open])) {
    display: none !important;
  }

  html body:not(.sk-in-game) .sk-create-table details > summary {
    display: none !important;
  }
}

/* SK-DESKTOP-LOBBY-MENUE-V1 */
@media (min-width: 1201px) and (hover: hover) and (pointer: fine) {

  html body:not(.sk-in-game) > #mobileMenuToggle {
    display: none !important;
  }

  html body.sk-drawer-open #mobileDrawerBackdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 30000 !important;
    background: rgba(0,0,0,.72) !important;
  }

  html body.sk-drawer-open #mobileDrawer.mobile-open {
    display: flex !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%,-50%) !important;
    width: min(420px,90vw) !important;
    max-height: 85vh !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 30003 !important;
    background: #21160f !important;
    border: 2px solid #a77b49 !important;
    border-radius: 18px !important;
    padding: 20px !important;
  }
}

/* SK-DESKTOP-LOBBY-TITEL-V1 */
/* Nur PC – Handy unverändert */

@media (min-width: 1201px) and (hover: hover) and (pointer: fine) {

  /* Große Begrüßung vollständig entfernen */
  html body:not(.sk-in-game) .hero {
    display: none !important;
  }

  /* Überschrift in der Statuszeile ersetzen */
  html body:not(.sk-in-game) .sk-mobile-lobby-bar > strong {
    font-size: 0 !important;
  }

  html body:not(.sk-in-game) .sk-mobile-lobby-bar > strong::after {
    content: "♠ Weidi's Schafkopf" !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #f3cd82 !important;
    white-space: nowrap !important;
  }

}





/* SK-DESKTOP-CHAT-MENUE-SAUBER-V3 */
@media (min-width: 1201px) and (hover: hover) and (pointer: fine) {

  html body:not(.sk-in-game) .sk-mobile-lobby-bar {
    position: relative !important;
  }

  /* Menü rechts in der Statusleiste */
  html body:not(.sk-in-game) #skMobileLobbyMenuBtn {
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    z-index: 101 !important;
  }

  /* Chat direkt links neben dem Menü */
  html body:not(.sk-in-game) #skLobbyChatFloat {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    right: 76px !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 23px !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
  }

  /* Chat bei geöffnetem Menü ausblenden */
  html body.sk-drawer-open #skLobbyChatFloat {
    display: none !important;
  }

}

/* SK-HANDY-MENUE-SICHTBAR-FIX-V1 */
/* Nur Handy/Tablet – Desktop unverändert */

@media (max-width: 1200px) {

  body.sk-drawer-open #mobileDrawerBackdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 30000 !important;
    background: rgba(0, 0, 0, 0.72) !important;
  }

  body.sk-drawer-open #mobileDrawer.mobile-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;

    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;

    width: min(420px, 90vw) !important;
    max-height: 85dvh !important;
    overflow-y: auto !important;

    flex-direction: column !important;
    gap: 6px !important;

    background: #21160f !important;
    border: 2px solid #a77b49 !important;
    border-radius: 18px !important;
    padding: 20px !important;
    box-sizing: border-box !important;

    z-index: 30003 !important;
  }

  body.sk-drawer-open #mobileDrawer.mobile-open > button {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}


/* SK-HANDY-MENUE-KOMPAKT-V1 */

@media (max-width: 1200px) {

  body.sk-drawer-open #mobileDrawer.mobile-open {
    width: min(360px, 82vw) !important;
    max-height: 82dvh !important;
    padding: 12px 16px !important;
    gap: 4px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  body.sk-drawer-open #mobileDrawer.mobile-open > button {
    min-height: 34px !important;
    height: 36px !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
  }

  body.sk-drawer-open #mobileDrawer.mobile-open .mobile-drawer-title {
    font-size: 18px !important;
    margin: 0 0 4px !important;
  }

  body.sk-drawer-open #mobileDrawer.mobile-open #mobileMenuClose {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
}



/* SK-COMPACT-PLAYERS-PANEL-V1 */
.game-layout > .players-panel.players-open {
  box-sizing: border-box !important;
  padding: 10px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  scrollbar-width: thin;
}

.game-layout > .players-panel .table-title {
  padding-bottom: 7px !important;
  margin-bottom: 8px !important;
}

.game-layout > .players-panel .table-title h2 {
  font-size: 21px !important;
  line-height: 1.2 !important;
  margin: 0 0 5px !important;
}

.game-layout > .players-panel .table-title .muted {
  font-size: 11px !important;
}

.game-layout > .players-panel > h3 {
  font-size: 14px !important;
  margin: 10px 0 6px !important;
}

.game-layout > .players-panel .roster {
  gap: 8px !important;
  padding: 7px !important;
  margin: 5px 0 !important;
  border-radius: 9px !important;
}

.game-layout > .players-panel .avatar {
  width: 32px !important;
  height: 32px !important;
  font-size: 18px !important;
}

.game-layout > .players-panel .roster-text strong {
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.game-layout > .players-panel .roster-text small {
  font-size: 10px !important;
  margin-top: 2px !important;
}

.game-layout > .players-panel .online {
  font-size: 10px !important;
}

.game-layout > .players-panel button,
.game-layout > .players-panel select {
  font-size: 11px !important;
  padding: 5px 7px !important;
}

.game-layout > .players-panel .bot-manage-actions {
  margin-top: 4px !important;
  gap: 4px !important;
}

@media (pointer: coarse) and (orientation: landscape) {
  .game-layout > .players-panel.players-open {
    padding: 8px !important;
  }
}


/* SK-PLAYERS-GRID-2X2-V1 */
.game-layout > .players-panel.players-open {
  width: min(470px, 94vw) !important;
}

.game-layout > .players-panel .sk-players-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  align-items: start;
}

.game-layout > .players-panel .sk-players-grid > .roster {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  align-content: start;
}

.game-layout > .players-panel .sk-players-grid .avatar {
  width: 28px !important;
  height: 28px !important;
  font-size: 16px !important;
}

.game-layout > .players-panel .sk-players-grid .roster-text {
  flex: 1 1 calc(100% - 40px);
  min-width: 0;
}

.game-layout > .players-panel .sk-players-grid .roster-text strong {
  font-size: 12px !important;
}

.game-layout > .players-panel .sk-players-grid .roster-text small {
  font-size: 10px !important;
}

.game-layout > .players-panel .sk-players-grid .online {
  font-size: 10px !important;
}

.game-layout > .players-panel .sk-players-grid .bot-manage-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}

.game-layout > .players-panel .sk-players-grid select {
  max-width: 95px !important;
}

@media (pointer: coarse) and (orientation: landscape) {
  .game-layout > .players-panel.players-open {
    width: min(470px, 94vw) !important;
  }
}


/* SK-MOBILE-PLAYERS-1X4-V1 */
@media (pointer: coarse) and (orientation: landscape) {
  .game-layout > .players-panel.players-open {
    width: min(96vw, 900px) !important;
    max-width: 96vw !important;
  }

  .game-layout > .players-panel .sk-players-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .game-layout > .players-panel .sk-players-grid > .roster {
    min-width: 0 !important;
    padding: 6px !important;
  }

  .game-layout > .players-panel .sk-players-grid .avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 15px !important;
  }

  .game-layout > .players-panel .sk-players-grid .roster-text strong {
    font-size: 11px !important;
  }

  .game-layout > .players-panel .sk-players-grid .roster-text small {
    font-size: 9px !important;
  }

  .game-layout > .players-panel .sk-players-grid button,
  .game-layout > .players-panel .sk-players-grid select {
    max-width: 100% !important;
    font-size: 10px !important;
    padding: 4px !important;
  }
}


/* SK-MOBILE-PLAYERS-WIDE-V1 */
@media (pointer: coarse) and (orientation: landscape) {
  .game-layout > .players-panel.players-open {
    width: 94vw !important;
    max-width: 94vw !important;
    left: 3vw !important;
    right: auto !important;
    top: 12px !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
  }

  .game-layout > .players-panel .sk-players-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .game-layout > .players-panel .sk-players-grid > .roster {
    min-width: 0 !important;
    padding: 10px !important;
  }

  .game-layout > .players-panel .sk-players-grid .roster-text {
    min-width: 0 !important;
  }

  .game-layout > .players-panel .sk-players-grid .roster-text strong,
  .game-layout > .players-panel .sk-players-grid .roster-text small {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .game-layout > .players-panel .sk-players-grid button {
    white-space: normal !important;
    min-width: 0 !important;
  }
}


/* SK-MOBILE-PLAYERS-FIX-V2 */
@media (pointer: coarse) and (orientation: landscape) {
  .game-layout > .players-panel .sk-players-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .game-layout > .players-panel .sk-players-grid .roster-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .game-layout > .players-panel .sk-players-grid .roster-text strong {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .game-layout > .players-panel .sk-players-grid .roster-text small {
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .game-layout > .players-panel .sk-players-grid .bot-manage-actions {
    width: 100% !important;
  }
}


/* SK-BOT-IN-PLAYER-CARD-CSS-V1 */

.game-layout > .players-panel .sk-players-grid > .roster {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
}

.game-layout > .players-panel .sk-seat-bot-controls {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-top: 10px !important;
}

.game-layout > .players-panel .sk-seat-bot-controls select,
.game-layout > .players-panel .sk-seat-bot-controls button {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 12px !important;
  padding: 7px 5px !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.game-layout > .players-panel .sk-seat-bot-controls button {
  font-weight: 700 !important;
  cursor: pointer;
}

@media (pointer: coarse) and (orientation: landscape) {
  .game-layout > .players-panel .sk-players-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }

  .game-layout > .players-panel .sk-players-grid > .roster {
    padding: 8px !important;
  }

  .game-layout > .players-panel .sk-seat-bot-controls {
    margin-top: auto !important;
    padding-top: 10px !important;
  }
}

/* SK-LOBBY-COMPACT-DETAILS-V1 */

.sk-collapsible-table .sk-table-details {
  padding: 12px 16px !important;
}

.sk-collapsible-table .sk-lobby-quick-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
}

.sk-collapsible-table .sk-lobby-quick-actions button {
  padding: 8px 14px !important;
}

.sk-collapsible-table .seat-list {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
}

.sk-collapsible-table .seat {
  padding: 8px 12px !important;
  min-width: 0 !important;
}

.sk-collapsible-table .seat strong {
  margin-top: 2px !important;
}

.sk-collapsible-table .seat small {
  margin-top: 2px !important;
}

.sk-lobby-balance-collapse {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.sk-lobby-balance-collapse > summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--gold);
  font-weight: 650;
  font-size: 13px;
}

.sk-lobby-balance-collapse .sk-lobby-stats {
  margin: 0 !important;
  padding: 8px 12px !important;
}

/* SK-LOBBY-BALANCE-IN-SEATS-V1 */

.sk-collapsible-table .seat-list .seat {
  position: relative;
  padding-right: 100px !important;
  min-height: 62px;
}

.sk-collapsible-table .sk-seat-balance {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 750;
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* SK-MOBILE-CHAT-FIXED-HEADER-V1 */
@media (orientation: landscape) and
       (max-height: 750px) and
       (max-width: 1200px) {

  html body:not(.sk-in-game) .sk-mobile-lobby-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9500 !important;
  }

  html body:not(.sk-in-game) .sk-mobile-lobby-bar
  #skLobbyChatFloat {
    position: absolute !important;
    top: 50% !important;
    right: 78px !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    z-index: 20 !important;
  }
}

/* SK-MOBILE-CHAT-SAME-SIZE-V1 */
@media (orientation: landscape) and
       (max-height: 750px) and
       (max-width: 1200px) {

  html body:not(.sk-in-game)
  .sk-mobile-lobby-bar #skLobbyChatFloat {

    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;

    padding: 0 !important;
    font-size: 24px !important;
    line-height: 1 !important;

    border-radius: 12px !important;
    box-sizing: border-box !important;
    flex: 0 0 48px !important;
  }
}

/* SK-UNIFIED-SUBPAGES-V1 */

/* Gemeinsame Kopfzeile auf Unterseiten */
html body.sk-has-unified-subpage
.sk-unified-subpage-bar {
  display: flex !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9500 !important;
  width: 100% !important;
  min-height: 64px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 16px !important;
  margin: 0 0 16px !important;
}

/* Alten, freistehenden Menübutton ausblenden */
html body.sk-has-unified-subpage
#mobileMenuToggle {
  display: none !important;
}

/* Titel */
html body.sk-has-unified-subpage
.sk-unified-subpage-bar > strong {
  display: block !important;
  font-size: clamp(17px,2vw,24px) !important;
  white-space: nowrap !important;
}

/* Startseite-Button */
html body.sk-has-unified-subpage
.sk-unified-subpage-bar .sk-subpage-home {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  padding: 8px 14px !important;
  white-space: nowrap !important;
}

/* Chat und Menü exakt gleich groß */
html body.sk-has-unified-subpage
.sk-unified-subpage-bar #skLobbyChatFloat,
html body.sk-has-unified-subpage
.sk-unified-subpage-bar #skMobileLobbyMenuBtn {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  flex: 0 0 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 23px !important;
  border-radius: 11px !important;
  box-sizing: border-box !important;
  z-index: 2 !important;
}

/* Aufklappbare Regelkarten */
.sk-compact-rules .hero {
  margin-bottom: 12px !important;
}

.sk-compact-rules .section {
  margin-top: 16px !important;
}

.sk-compact-rules .section h2 {
  font-size: clamp(19px,2vw,25px) !important;
  margin-bottom: 8px !important;
}

.sk-compact-rules .section .grid {
  display: grid !important;
  grid-template-columns:
    repeat(auto-fit,minmax(230px,1fr)) !important;
  gap: 10px !important;
}

.sk-compact-rules .sk-rule-compact-card {
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}

.sk-rule-details > summary {
  cursor: pointer;
  padding: 13px 15px;
  font-weight: 750;
  font-size: 14px;
  color: var(--cream);
  list-style: none;
}

.sk-rule-details > summary::-webkit-details-marker {
  display: none;
}

.sk-rule-details > summary::after {
  content: "⌄";
  float: right;
  color: var(--gold);
}

.sk-rule-details[open] > summary::after {
  content: "⌃";
}

.sk-rule-body {
  padding: 0 15px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.sk-rule-body p {
  margin: 8px 0 !important;
}

@media (max-width: 650px) {
  html body.sk-has-unified-subpage
  .sk-unified-subpage-bar {
    gap: 7px !important;
    padding: 6px 9px !important;
  }

  html body.sk-has-unified-subpage
  .sk-unified-subpage-bar .sk-subpage-home {
    padding: 7px !important;
    font-size: 12px !important;
  }

  html body.sk-has-unified-subpage
  .sk-unified-subpage-bar
  .sk-mobile-online-count {
    display: none !important;
  }

  .sk-compact-rules .section .grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr)) !important;
  }
}

/* SK-ACCOUNT-COMPACT-V1 */

.sk-account-compact {
  padding: 18px 22px !important;
}

.sk-account-compact h1 {
  font-size: 26px !important;
  margin: 0 0 5px !important;
}

.sk-account-compact h2 {
  font-size: 21px !important;
  margin-top: 18px !important;
  margin-bottom: 6px !important;
}

.sk-account-compact p {
  margin: 5px 0 10px !important;
  line-height: 1.35 !important;
}

.sk-account-compact .field {
  gap: 4px !important;
}

.sk-account-compact .field input {
  padding: 8px 11px !important;
  min-height: 36px !important;
}

.sk-account-compact button {
  padding: 8px 12px !important;
  font-size: 13px !important;
}

.sk-account-compact .field label {
  font-size: 12px !important;
}

@media (max-width: 650px) {
  .sk-account-compact {
    padding: 12px 14px !important;
    width: 100% !important;
  }

  .sk-account-compact h1 {
    font-size: 22px !important;
  }

  .sk-account-compact h2 {
    font-size: 18px !important;
  }
}

/* SK-ACCOUNT-TWO-COLUMNS-V1 */

.sk-account-compact {
  max-width: 1150px !important;
  width: min(1150px, 98%) !important;
}

.sk-account-columns {
  display: grid !important;
  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
  margin-top: 12px !important;
}

.sk-account-left,
.sk-account-right {
  min-width: 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(231,184,94,.25);
  border-radius: 12px;
  background: rgba(0,0,0,.10);
}

.sk-account-columns h2 {
  margin: 0 0 12px !important;
  font-size: 19px !important;
}

.sk-account-columns .field {
  margin-top: 9px !important;
}

.sk-account-columns .field input {
  width: 100% !important;
  min-height: 36px !important;
}

.sk-account-columns button {
  margin-top: 9px !important;
}

.sk-account-columns p {
  margin: 5px 0 8px !important;
}

@media (max-width: 600px) {
  .sk-account-columns {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px !important;
  }

  .sk-account-left,
  .sk-account-right {
    padding: 10px !important;
  }
}

/* SK-ACCOUNT-PASSWORD-ROW-V1 */

.sk-account-password-row {
  margin-top: 14px !important;
  padding: 14px !important;
  border: 1px solid rgba(231,184,94,.25);
  border-radius: 12px;
  background: rgba(0,0,0,.10);
}

.sk-account-password-row h2 {
  margin: 0 0 10px !important;
  font-size: 19px !important;
}

.sk-account-password-fields {
  display: grid !important;
  grid-template-columns:
    repeat(3,minmax(0,1fr)) !important;
  gap: 12px !important;
  align-items: end !important;
}

.sk-account-password-fields .field {
  min-width: 0 !important;
  margin: 0 !important;
}

.sk-account-password-fields input {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.sk-account-password-row
#changeAccountPassword {
  margin-top: 12px !important;
}

@media (max-width: 650px) {
  .sk-account-password-fields {
    grid-template-columns: minmax(0,1fr) !important;
  }
}

/* SK-USERS-COMPACT-V1 */

.sk-users-compact {
  padding: 16px 20px !important;
}

.sk-users-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sk-users-heading h1 {
  font-size: 25px !important;
  margin: 0 !important;
}

.sk-users-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sk-user-entry {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(231,184,94,.25);
  border-radius: 10px;
  background: rgba(0,0,0,.12);
}

.sk-user-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.sk-user-summary::-webkit-details-marker {
  display: none;
}

.sk-user-name {
  flex: 1;
  min-width: 0;
  font-weight: 650;
}

.sk-user-meta {
  font-size: 12px;
  opacity: .8;
}

.sk-user-chevron {
  color: #e7b85e;
  font-size: 19px;
}

.sk-user-entry[open] .sk-user-chevron {
  transform: rotate(180deg);
}

.sk-user-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(231,184,94,.2);
}

.sk-user-actions button {
  padding: 7px 11px !important;
  font-size: 12px !important;
}

#skUserCreatePanel {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(231,184,94,.3);
  border-radius: 10px;
}

#skUserCreatePanel[hidden] {
  display: none !important;
}

.sk-user-create-grid {
  display: grid;
  grid-template-columns:
    minmax(0,1fr) minmax(0,1fr) auto;
  gap: 10px;
  align-items: end;
}

#skHeaderCreateUser {
  flex-shrink: 0;
  padding: 8px 12px !important;
  white-space: nowrap;
  font-size: 13px !important;
}

@media(max-width:650px) {
  .sk-users-compact {
    padding: 12px !important;
  }

  .sk-user-create-grid {
    grid-template-columns: 1fr;
  }

  #skHeaderCreateUser {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }

  .sk-user-summary {
    padding: 9px;
    gap: 7px;
  }
}

/* SK-ADMIN-EDIT-USER-V1 */

.sk-user-edit-form {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(231,184,94,.2);
}

.sk-user-edit-form[hidden] {
  display: none !important;
}

.sk-user-edit-fields {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

.sk-user-edit-fields .field {
  min-width: 0;
}

.sk-user-edit-fields input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sk-user-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sk-user-edit-actions button {
  padding: 8px 12px;
}

@media(max-width:650px) {
  .sk-user-edit-fields {
    grid-template-columns: 1fr;
  }
}


/* SK-ADMIN-ACCORDION-V1 */

.sk-admin-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #654426;
  border-radius: 16px;
  background: linear-gradient(145deg,#281b12,#1a110c);
}

.sk-admin-heading {
  padding: 10px 12px 14px;
}

.sk-admin-heading h1 {
  margin: 0 0 6px;
  font-family: Georgia,serif;
  font-size: clamp(23px,3vw,30px);
  color: #f5d58f;
}

.sk-admin-heading p {
  margin: 0;
  color: #bda789;
  font-size: 13px;
}

.sk-admin-accordion {
  border: 1px solid #76502b;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(130deg,#291b12,#1b120d);
}

.sk-admin-accordion > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(90deg,#392517,#25180f);
}

.sk-admin-accordion > summary::-webkit-details-marker {
  display: none;
}

.sk-admin-accordion > summary:hover {
  background: linear-gradient(90deg,#48301c,#302014);
}

.sk-admin-accordion-icon {
  font-size: 25px;
  width: 34px;
  text-align: center;
}

.sk-admin-accordion-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.sk-admin-accordion-title strong {
  font-size: 18px;
  color: #f5dfb6;
}

.sk-admin-accordion-title small {
  color: #bda789;
  font-size: 12px;
}

.sk-admin-chevron {
  color: #e7b85e;
  font-size: 24px;
  transition: transform .2s;
}

.sk-admin-accordion[open] .sk-admin-chevron {
  transform: rotate(180deg);
}

.sk-admin-accordion-body {
  padding: 8px 18px 14px;
  border-top: 1px solid #563a24;
}

.sk-admin-price-row {
  display: grid;
  grid-template-columns: 38px minmax(110px,1fr)
    minmax(150px,2fr) minmax(130px,190px);
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 7px 4px;
  border-bottom: 1px solid #493222;
}

.sk-admin-price-row:last-of-type {
  border-bottom: 0;
}

.sk-admin-price-icon {
  font-size: 22px;
}

.sk-admin-price-row strong {
  font-size: 14px;
}

.sk-admin-price-description {
  color: #bda789;
  font-size: 12px;
}

.sk-admin-price-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sk-admin-price-input input {
  width: 110px;
  min-width: 0;
  padding: 8px 10px;
}

.sk-admin-price-input span {
  color: #d4b888;
  font-size: 12px;
}

.sk-admin-note {
  color: #bda789;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 4px 4px;
}

.sk-admin-speed {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
}

.sk-admin-speed input {
  flex: 1;
  min-width: 140px;
  max-width: 420px;
  accent-color: #e7b85e;
}

.sk-admin-speed strong {
  color: #f5d58f;
}

.sk-admin-save-row {
  display: flex;
  justify-content: flex-end;
  padding: 4px 2px;
}

.sk-admin-save-row button {
  padding: 10px 18px;
}

.sk-admin-ki-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width:650px) {
  .sk-admin-page {
    padding: 9px;
  }

  .sk-admin-accordion > summary {
    padding: 12px;
  }

  .sk-admin-price-row {
    grid-template-columns: 28px minmax(0,1fr)
      minmax(105px,135px);
    gap: 8px;
  }

  .sk-admin-price-description {
    display: none;
  }

  .sk-admin-price-input input {
    width: 76px;
  }

  .sk-admin-accordion-body {
    padding: 7px 10px 12px;
  }

  .sk-admin-accordion-title strong {
    font-size: 16px;
  }
}

/* SK-DESKTOP-GAME-BUTTONS-V1 */
/* PC-Spieltisch: Chat oben links, Menü unten rechts */
@media (min-width: 769px) and (pointer: fine) {

  body.sk-in-game #skChatFloatButton {
    display: flex !important;
    position: fixed !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 11010 !important;
    width: 46px !important;
    height: 46px !important;
  }

  body.sk-in-game #mobileMenuToggle {
    display: flex !important;
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 16px !important;
    bottom: 16px !important;
    z-index: 11010 !important;
    width: 52px !important;
    height: 52px !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
  }

}

/* SK-PC-GAME-MENU-FIX-V1 */
/* Menü am PC sichtbar, sobald das Spielfeld vorhanden ist */
@media (min-width: 769px) and (pointer: fine) {

  html body:has(.game-layout):not(.sk-has-unified-subpage)
  > #mobileMenuToggle {
    display: flex !important;
    visibility: visible !important;
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 18px !important;
    bottom: 18px !important;
    width: 54px !important;
    height: 54px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 30010 !important;
    background: #24170f !important;
    border: 2px solid #d6a650 !important;
    border-radius: 14px !important;
    color: #f4cf79 !important;
    font-size: 26px !important;
    box-shadow: 0 4px 16px #0008 !important;
  }
}


/* SK-GAME-MENU-CLEAN-V1 */
@media (min-width: 769px) and (pointer: fine) {
  html body.sk-in-game > #mobileMenuToggle {
    display: flex !important;
    visibility: visible !important;
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 16px !important;
    bottom: 16px !important;

    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;

    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;

    align-items: center !important;
    justify-content: center !important;

    background: #24170f !important;
    border: 2px solid #d6a650 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px #0008 !important;

    color: #f4cf79 !important;
    font-size: 28px !important;
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
    line-height: 1 !important;
    text-align: center !important;

    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
  }

  html body.sk-in-game > #mobileMenuToggle::before,
  html body.sk-in-game > #mobileMenuToggle::after {
    content: none !important;
    display: none !important;
  }
}

/* SK-GAME-MENU-ICON-V4 */
/* PC: Menübutton mit drei zentrierten Linien */
@media (min-width: 769px) and (pointer: fine) {

  html body.sk-in-game > #mobileMenuToggle {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body.sk-in-game > #mobileMenuToggle::before {
    content: "" !important;
    display: block !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 18px !important;
    background: linear-gradient(
      to bottom,
      #f4cf79 0 3px,
      transparent 3px 8px,
      #f4cf79 8px 11px,
      transparent 11px 15px,
      #f4cf79 15px 18px
    ) !important;
    border-radius: 1px !important;
  }

  html body.sk-in-game > #mobileMenuToggle::after {
    content: none !important;
    display: none !important;
  }
}

/* SK-MENU-REAL-BARS-V1 */
html body.sk-in-game > #mobileMenuToggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

html body.sk-in-game > #mobileMenuToggle::before,
html body.sk-in-game > #mobileMenuToggle::after {
  content: none !important;
  display: none !important;
}

html body.sk-in-game > #mobileMenuToggle .sk-menu-bars {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 26px !important;
  height: 24px !important;
  flex: 0 0 26px !important;
}

html body.sk-in-game > #mobileMenuToggle .sk-menu-bars i {
  display: block !important;
  width: 26px !important;
  height: 3px !important;
  flex: 0 0 3px !important;
  background: #f4cf79 !important;
  border-radius: 3px !important;
}


/* SK-UNIFIED-RESULTS-V2 */
/* Gleiche Abrechnung auf PC und Handy */

html body #sk-v6-results {
  position: fixed !important;
  inset: 0 !important;
  z-index: 12000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  background: rgba(0,0,0,.82) !important;
  box-sizing: border-box !important;
}

html body #sk-v6-results .sk-v6-dialog {
  width: min(900px,96vw) !important;
  max-height: 94dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #23170f !important;
  border: 2px solid #d6aa60 !important;
  border-radius: 16px !important;
  color: #f5e6ce !important;
  box-shadow: 0 15px 55px rgba(0,0,0,.8) !important;
}

html body #sk-v6-results .sk-v6-head {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 12px !important;
  border-bottom: 1px solid #78562f !important;
  color: #f4cf79 !important;
  font-size: 18px !important;
}

html body #sk-v6-results .sk-v6-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 12px !important;
}

html body #sk-v6-results .settlement-box {
  margin: 0 !important;
  max-height: none !important;
}

html body #sk-v6-results .sk-v6-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px !important;
  border-top: 1px solid #78562f !important;
  flex-shrink: 0 !important;
}

html body #sk-v6-results .sk-v6-actions button {
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
}

html body #sk-v6-results #sk-v6-next {
  background: linear-gradient(#f6d583,#dca949) !important;
  color: #26160b !important;
  border: 1px solid #d6aa60 !important;
}

html body #sk-v6-results #sk-v6-hands {
  background: #382317 !important;
  color: #ffe5b5 !important;
  border: 1px solid #b78b4c !important;
}

@media (max-width:700px) {
  html body #sk-v6-results .sk-v6-dialog {
    width: 98vw !important;
    max-height: 96dvh !important;
  }

  html body #sk-v6-results .sk-v6-actions button {
    font-size: 12px !important;
  }
}


/* SK-RESULTS-PREMIUM-V1 */
/* Einheitliches Premium-Design für Handy und PC */

html body #sk-v6-results {
  padding: 12px !important;
}

html body #sk-v6-results .sk-v6-dialog {
  width: min(1050px, 94vw) !important;
  max-height: 94dvh !important;
  border: 2px solid #e9b95e !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #26170e, #160f0a) !important;
  box-shadow: 0 25px 80px #000d, 0 0 25px #b8893522 !important;
}

html body #sk-v6-results .sk-v6-head {
  padding: 16px 20px !important;
  background: linear-gradient(90deg, #241409, #38200e, #241409) !important;
  border-bottom: 1px solid #c18a3b !important;
  color: #ffd47d !important;
  font-size: clamp(16px, 1.7vw, 25px) !important;
  font-weight: 900 !important;
  text-align: center !important;
}

html body #sk-v6-results .sk-v6-content {
  padding: 14px 18px !important;
}

html body #sk-v6-results .settlement-box {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: 14px !important;
  border: 1px solid #aa7939 !important;
  border-radius: 17px !important;
  background: #1d130c !important;
}

html body #sk-v6-results .sk-settlement-winner {
  padding: 17px 12px !important;
  background: linear-gradient(135deg, #06432d, #005b3c) !important;
  border: 1px solid #b18a46 !important;
  border-radius: 12px !important;
  text-align: center !important;
}

html body #sk-v6-results .sk-settlement-winner h3 {
  color: #ffd77f !important;
  font-size: clamp(19px, 2vw, 28px) !important;
  font-weight: 900 !important;
  margin: 0 0 5px !important;
}

html body #sk-v6-results .sk-settlement-winner p {
  color: #fff1d6 !important;
  font-size: clamp(12px, 1.3vw, 17px) !important;
  margin: 0 !important;
}

html body #sk-v6-results .sk-price-compact {
  padding: 12px 16px !important;
  margin: 12px 0 !important;
  border: 1px solid #a87a3d !important;
  border-radius: 12px !important;
  background: #160f09 !important;
}

html body #sk-v6-results .sk-price-compact .price-line {
  font-size: clamp(12px, 1.25vw, 17px) !important;
}

html body #sk-v6-results .sk-settlement-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body #sk-v6-results .sk-settlement-player {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 10px !important;
  padding: 10px 13px !important;
  border: 1px solid #936632 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #3d2619, #2b1b12) !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

html body #sk-v6-results .sk-settlement-player-name {
  color: #ffdf9c !important;
  font-size: clamp(14px, 1.5vw, 20px) !important;
  font-weight: 900 !important;
}

html body #sk-v6-results .sk-settlement-player b {
  font-size: clamp(15px, 1.6vw, 22px) !important;
  text-align: inherit !important;
}

html body #sk-v6-results .sk-settlement-player-details,
html body #sk-v6-results .sk-settlement-player-money {
  display: grid;
  gap: 2px;
}

html body #sk-v6-results .sk-settlement-player-details {
  min-width: 0;
  overflow-wrap: anywhere;
}

html body #sk-v6-results .sk-settlement-player-money {
  flex: none;
  text-align: right;
  white-space: nowrap;
}

html body #sk-v6-results .sk-settlement-player small {
  font-size: clamp(11px, 1.2vw, 15px) !important;
}

html body #sk-v6-results .sk-v6-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 15px 20px !important;
  background: #21140c !important;
}

html body #sk-v6-results .sk-v6-actions button {
  width: 100% !important;
  min-height: 52px !important;
  font-size: clamp(12px, 1.4vw, 18px) !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
}

html body #sk-v6-results #sk-v6-next {
  grid-column: 1 / -1;
  background: linear-gradient(#ffe098, #e6ad43) !important;
  color: #241408 !important;
}

html body #sk-v6-results #sk-v6-hands {
  background: linear-gradient(#55301a, #392012) !important;
  color: #ffe2ad !important;
}

/* Kompakt auf Handys im Querformat */
@media (max-height: 650px) {
  html body #sk-v6-results .sk-v6-dialog {
    width: min(900px, 96vw) !important;
    max-height: 96dvh !important;
    border-radius: 14px !important;
  }

  html body #sk-v6-results .sk-v6-head {
    padding: 7px 12px !important;
    font-size: 15px !important;
  }

  html body #sk-v6-results .sk-v6-content {
    padding: 7px !important;
  }

  html body #sk-v6-results .settlement-box {
    padding: 7px !important;
  }

  html body #sk-v6-results .sk-settlement-winner {
    padding: 7px !important;
  }

  html body #sk-v6-results .sk-settlement-winner h3 {
    font-size: 16px !important;
  }

  html body #sk-v6-results .sk-price-compact {
    padding: 6px 9px !important;
    margin: 6px 0 !important;
  }

  html body #sk-v6-results .sk-settlement-grid {
    gap: 6px !important;
  }

  html body #sk-v6-results .sk-settlement-player {
    padding: 7px 9px !important;
    gap: 2px !important;
  }

  html body #sk-v6-results .sk-settlement-player-name {
    font-size: 12px !important;
  }

  html body #sk-v6-results .sk-settlement-player b {
    font-size: 13px !important;
  }

  html body #sk-v6-results .sk-settlement-player small {
    font-size: 10px !important;
  }

  html body #sk-v6-results .sk-v6-actions {
    padding: 7px !important;
    gap: 7px !important;
  }

  html body #sk-v6-results .sk-v6-actions button {
    min-height: 34px !important;
    padding: 5px !important;
    font-size: 11px !important;
  }
}


/* SK-ALL-PLAYER-POTS-V2 */
/* Einheitlicher Pot für alle vier Spieler */

body:has(.game-layout) .felt .opponent .player-badge .sk-player-pot {
  display: block !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}

body:has(.game-layout) .felt .player-badge .sk-pot-positive {
  color: #83e0a1 !important;
}

body:has(.game-layout) .felt .player-badge .sk-pot-negative {
  color: #ff9292 !important;
}

body:has(.game-layout) .felt .player-badge .sk-pot-neutral {
  color: #e4d1ae !important;
}

@media (max-height: 650px) {
  body:has(.game-layout) .felt .opponent .player-badge .sk-player-pot {
    font-size: 10px !important;
    margin-top: 2px !important;
  }
}


/* SK-DESKTOP-OWN-POT-FIX-V1 */
/* Eigenen Pot auch am PC anzeigen */

body:has(.game-layout) .felt .opponent-bottom .player-badge {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

body:has(.game-layout) .felt .opponent-bottom .player-badge .sk-player-pot {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}


/* SK-OWN-POT-DESKTOP-V2 */
/* Vorhandenen Pot von Andy auf PC und Handy sichtbar machen */

body:has(.game-layout) .felt
.opponent-bottom .player-badge .sk-mobile-own-pot {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin-top: 4px !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

@media (max-height:650px) {
  body:has(.game-layout) .felt
  .opponent-bottom .player-badge .sk-mobile-own-pot {
    font-size: 10px !important;
    margin-top: 2px !important;
  }
}


/* SK-KONTRA-ALL-DEVICES-V1 */
/* Kontra/Re auf PC und Handy neben der Warteanzeige */

body:has(.game-layout) .felt .opponent-bottom
.sk-counter-near-wait {
  position: absolute !important;
  left: calc(50% + 120px) !important;
  bottom: calc(100% + 12px) !important;
  z-index: 110 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  width: max-content !important;
  max-width: 45vw !important;
  margin: 0 !important;
}

body:has(.game-layout) .felt .opponent-bottom
.sk-counter-near-wait .counter-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 14px !important;
  border-radius: 10px !important;
  background: #a63626 !important;
  color: #fff !important;
  border: 2px solid #f4be63 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

@media (max-width:768px), (pointer:coarse) {
  body:has(.game-layout) .felt .opponent-bottom
  .sk-counter-near-wait {
    gap: 6px !important;
  }

  body:has(.game-layout) .felt .opponent-bottom
  .sk-counter-near-wait .counter-button {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
}


/* SK-DESKTOP-LOBBY-HEADER-FIX-V1 */
/* Nur PC: Kopfzeile ohne schwebende Doppel-Elemente */

@media (min-width:901px) and (pointer:fine) {

  body:not(.sk-in-game) .topbar nav #backToTableButton {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: auto !important;
    margin: 0 8px 0 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  body:not(.sk-in-game) .topbar nav #skLobbyChatFloat {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  /* Alten Tisch-Chat außerhalb des Spieltischs ausblenden */
  body:not(.sk-in-game) #skChatFloatButton {
    display: none !important;
  }
}


/* SK-AUSSPIELER-HIGHLIGHT-V1 */
/* Ausspieler auf PC und Handy hervorheben */

body:has(.game-layout) .felt
.player-badge.sk-ausspieler-active {
  border: 2px solid #ffd166 !important;
  background: #332315 !important;
  box-shadow:
    0 0 0 2px rgba(255,209,102,.3),
    0 0 18px rgba(255,190,60,.7) !important;
  animation: skAusspielerPulse 2s ease-in-out infinite;
}

body:has(.game-layout) .felt
.player-badge.sk-ausspieler-active small {
  color: #ffdc81 !important;
  font-weight: 900 !important;
}

@keyframes skAusspielerPulse {
  0%,100% {
    box-shadow:
      0 0 0 2px rgba(255,209,102,.25),
      0 0 10px rgba(255,190,60,.4);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255,209,102,.55),
      0 0 24px rgba(255,190,60,.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.game-layout) .felt
  .player-badge.sk-ausspieler-active {
    animation: none !important;
  }
}


/* SK-CURRENT-GAME-BADGE-V1 */
/* Aktuelle Spielansage neben dem Chat auf PC und Handy */

.sk-current-game-badge {
  position: fixed;
  top: 8px;
  left: 64px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(330px, 44vw);
  padding: 7px 12px;
  background: rgba(42, 27, 18, .96);
  border: 1px solid #d7a449;
  border-radius: 10px;
  color: #ffe0a0;
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
  pointer-events: none;
}

.sk-current-game-label {
  color: #c9a977;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .6px;
}

.sk-current-game-badge strong {
  color: #ffdc81;
  font-size: 14px;
}

.sk-current-game-badge small {
  font-size: 11px;
  color: #e7d6ba;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .sk-current-game-badge {
    top: 5px;
    left: 55px;
    max-width: min(260px, 53vw);
    padding: 5px 8px;
  }

  .sk-current-game-badge strong {
    font-size: 11px;
  }

  .sk-current-game-badge small {
    font-size: 9px;
  }
}


/* SK-CURRENT-GAME-POSITION-V1 */
/* Aktuelles Spiel auf Desktop weiter rechts anzeigen */
@media (min-width: 769px) {
  .felt-area .sk-current-game-badge {
    left: 135px;
    right: auto;
  }
}


/* SK-LAST-TRICK-CSS-FIX-V3 */
/* Letzten Stich vor der Abrechnung sichtbar lassen. */
@media (min-width:901px) and (hover:hover) and (pointer:fine) {
  .felt .table-center.sk-pc-finished
  .game-notice > .trick-compass {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .felt .table-center.sk-pc-finished
  .game-notice > .start-controls[style*="display:none"] {
    display: none !important;
  }
}

/* SK-LAST-TRICK-REVIEW-V4 */
.sk-last-trick-review {
  position: fixed !important;
  left: 50% !important;
  top: 46% !important;
  transform: translate(-50%,-50%) !important;
  z-index: 11000 !important;
  width: min(520px,90vw);
  text-align: center;
  pointer-events: none;
}

.sk-last-trick-title {
  color: #ffe098;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
}

.sk-last-trick-cards {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.sk-last-trick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffe098;
}

.sk-last-trick-card .playing-card {
  width: clamp(48px,6vw,76px) !important;
  height: clamp(76px,9vw,116px) !important;
}


/* SK-LAST-TRICK-DISPLAY-FIX-V5 */
/* Vier Karten des letzten Stichs bis zur Bestätigung anzeigen. */

body:has(#sk-last-trick-confirm) .sk-last-trick-review {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  left: 50% !important;
  top: 45% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 11000 !important;
}

body:has(#sk-last-trick-confirm) .sk-last-trick-cards {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

body:has(#sk-last-trick-confirm) .sk-last-trick-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}


/* SK-LAST-TRICK-BUTTON-POSITION-V6 */
/* Ergebnisbutton direkt unter den vier Stichkarten */

body:has(#sk-last-trick-confirm) #sk-last-trick-confirm {
  position: fixed !important;
  top: calc(45% + 115px) !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 12000 !important;
  margin: 0 !important;
}

@media (max-height: 500px) {
  body:has(#sk-last-trick-confirm) #sk-last-trick-confirm {
    top: calc(45% + 95px) !important;
  }
}


/* SK-CURRENT-GAME-RESPONSIVE-V2 */
/* PC: links unten | Handy: vollständig ausblenden */

/* PC mit Maus */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  body:has(.game-layout) .felt-area .sk-current-game-badge {
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    bottom: 16px !important;
    left: 16px !important;
    transform: none !important;
    z-index: 1000 !important;
    margin: 0 !important;
  }
}

/* Handy und Touchgeräte */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  body:has(.game-layout) .felt-area .sk-current-game-badge {
    display: none !important;
  }
}


/* SK-LAST-TRICK-CROSS-V7 */
/* Letzten Stich wie ausgespielt auf dem Tisch lassen. */

body:has(#sk-last-trick-confirm)
.felt .table-center.sk-last-trick-cross {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body:has(#sk-last-trick-confirm)
.felt .table-center.sk-last-trick-cross
.game-notice {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body:has(#sk-last-trick-confirm)
.felt .table-center.sk-last-trick-cross
.game-notice > .trick-area.trick-compass {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Vorzeitige Bedienelemente weiterhin ausblenden */
body:has(#sk-last-trick-confirm)
.felt .table-center.sk-last-trick-cross
.start-controls {
  display: none !important;
}

/* Zusätzliche Kartenreihe aus älteren Versionen verstecken */
body:has(#sk-last-trick-confirm)
.sk-last-trick-review {
  display: none !important;
}

/* Ergebnisbutton unter der Kreuzanordnung */
body:has(#sk-last-trick-confirm)
#sk-last-trick-confirm {
  position: fixed !important;
  top: calc(50% + 160px) !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 12000 !important;
}

@media (max-height: 550px) {
  body:has(#sk-last-trick-confirm)
  #sk-last-trick-confirm {
    top: calc(50% + 110px) !important;
  }
}


/* SK-LAST-TRICK-CLEAN-V9 */
/* Während der Stichbestätigung nur die Karten anzeigen. */

/* Überschrift, Spielansage und Ergebnistext ausblenden */
body:has(#sk-last-trick-confirm)
.felt .table-center.sk-last-trick-cross
.game-notice > :not(.trick-area) {
  display: none !important;
}

/* Ursprüngliche vier Stichkarten sichtbar lassen */
body:has(#sk-last-trick-confirm)
.felt .table-center.sk-last-trick-cross
.game-notice > .trick-area.trick-compass {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Kein Hintergrundkasten um die Karten */
body:has(#sk-last-trick-confirm)
.felt .table-center.sk-last-trick-cross
.game-notice {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}


/* SK-LAST-TRICK-VISIBLE-V12 */

/* Letzten Stich nach Spielende sichtbar halten */
.felt .table-center.sk-last-trick-cross
.game-notice .sk-v11-last-trick {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  width: 100% !important;
  min-height: 240px !important;
  overflow: visible !important;
}

/* Vorhandene Kreuzanordnung wieder aktivieren */
.felt .table-center.sk-last-trick-cross
.game-notice .sk-v11-last-trick .trick-area.trick-compass {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Alle vier Kartenpositionen anzeigen */
.felt .table-center.sk-last-trick-cross
.game-notice .sk-v11-last-trick .played-slot {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* SK-LAST-TRICK-FINAL-V13 */

/* Vorhandenes Kartenkreuz nach Spielende anzeigen */
.felt .table-center.sk-last-trick-cross
.game-notice > .sk-v11-last-trick {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 290px !important;
  position: relative !important;
  overflow: visible !important;
}

/* Originale Kreuzanordnung erhalten */
.felt .table-center.sk-last-trick-cross
.game-notice > .sk-v11-last-trick
.trick-area.trick-compass {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Button unterhalb des Kartenkreuzes */
body:has(.table-center.sk-last-trick-cross)
#sk-last-trick-confirm {
  top: calc(50% + 215px) !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 12000 !important;
}

@media (max-width: 900px) {
  body:has(.table-center.sk-last-trick-cross)
  #sk-last-trick-confirm {
    top: calc(50% + 155px) !important;
    max-width: 90vw !important;
  }
}


/* SK-CURRENT-GAME-PC-HIGHLIGHT-V3 */

/* Aktuelles Spiel am PC deutlicher hervorheben */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .felt-area .sk-current-game-badge {
    position: absolute !important;
    left: 18px !important;
    bottom: 18px !important;
    z-index: 500 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;

    min-width: 200px !important;
    max-width: 280px !important;
    padding: 13px 17px !important;

    background: linear-gradient(145deg, #2e2112, #171b13) !important;
    border: 2px solid #e9b95e !important;
    border-radius: 13px !important;

    box-shadow:
      0 0 20px rgba(233,185,94,.24),
      0 8px 24px rgba(0,0,0,.45) !important;

    color: #f5d38b !important;
  }

  .felt-area .sk-current-game-badge .sk-current-game-label {
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px !important;
    color: #f7d795 !important;
  }

  .felt-area .sk-current-game-badge strong {
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    color: #ffe4a0 !important;
  }

  .felt-area .sk-current-game-badge small {
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #e5d0a2 !important;
  }
  /* SK-CURRENT-GAME-TEXT-WRAP-V1 */
  .felt-area .sk-current-game-badge {
    box-sizing: border-box !important;
    height: auto !important;
    white-space: normal !important;
  }
  .felt-area .sk-current-game-badge > * {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* Auf dem Handy weiterhin vollständig ausblenden */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .felt-area .sk-current-game-badge {
    display: none !important;
  }
}

@media (min-width:901px) and (hover:hover) and (pointer:fine),
       (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {
  html body:has(.game-layout) .felt-area .sk-table-status-stack {
    position:fixed;
    right:20px;
    bottom:125px;
    width:200px;
    display:grid;
    gap:8px;
    container-type:inline-size;
    z-index:40;
    pointer-events:none;
  }
  html body:has(.game-layout) .felt-area .sk-table-status-stack > :is(.sk-current-game-badge,.sk-mobile-partien) {
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
    margin:0!important;
    transform:none!important;
  }
  html body:has(.game-layout) .felt-area .sk-table-status-stack > .sk-mobile-partien {
    font-size:clamp(10px,8cqi,16px)!important;
    white-space:nowrap!important;
    padding-inline:6px!important;
  }
  html body:has(.game-layout) .felt-area .sk-table-status-stack .sk-current-game-label {
    font-size:clamp(8px,5.5cqi,11px)!important;
    letter-spacing:.06em!important;
  }
  html body:has(.game-layout) .felt-area .sk-table-status-stack .sk-current-game-badge strong {
    font-size:clamp(11px,8.5cqi,17px)!important;
    overflow-wrap:anywhere!important;
  }
  html body:has(.game-layout) .felt-area .sk-table-status-stack .sk-current-game-badge small {
    font-size:clamp(9px,6cqi,12px)!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px) and (max-width:1200px) {
  html body:has(.game-layout) .felt-area .sk-table-status-stack {
    right:10px;
    bottom:68px;
    width:110px;
    gap:6px;
  }
}

/* SK-HIGHSCORE-STYLE-V1 */
.sk-highscore-page{
  max-width:1100px;
  margin:0 auto;
  padding:22px 16px 40px;
  color:#f4e8d6;
}
.sk-highscore-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:24px;
}
.sk-highscore-heading h1{
  margin:0 0 8px;
  color:#f1c66e;
  font-size:clamp(24px,3vw,34px);
}
.sk-highscore-heading p{
  margin:0;
  color:#c5b49b;
}
.sk-highscore-live{
  color:#69d99a;
  font-size:13px;
}
.sk-highscore-tabs{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}
.sk-highscore-tabs button{
  padding:12px 18px;
  border:1px solid #775a35;
  border-radius:10px;
  background:#241a12;
  color:#e8d7bf;
  cursor:pointer;
}
.sk-highscore-tabs button.active{
  background:#e7b85e;
  color:#24170c;
  font-weight:700;
}
.sk-highscore-table-wrap{
  overflow-x:auto;
  background:#21170f;
  border:1px solid #76552f;
  border-radius:14px;
}
.sk-highscore-table{
  width:100%;
  border-collapse:collapse;
  min-width:480px;
}
.sk-highscore-table th,
.sk-highscore-table td{
  padding:15px 12px;
  text-align:left;
  border-bottom:1px solid #443122;
}
.sk-highscore-table th{
  color:#c7a77a;
  font-size:12px;
}
.sk-highscore-table tr:last-child td{
  border-bottom:none;
}
.sk-highscore-table td:first-child{
  font-size:19px;
}
.sk-score-plus{color:#69d99a;font-weight:700}
.sk-score-minus{color:#f18b80;font-weight:700}
.sk-highscore-empty{
  text-align:center;
  padding:55px 20px;
  background:#21170f;
  border:1px solid #76552f;
  border-radius:14px;
}
.sk-highscore-empty>div{font-size:45px}
.sk-highscore-empty h2{color:#f1c66e}
.sk-highscore-empty p{color:#c5b49b}

@media(max-width:650px){
  .sk-highscore-page{padding:12px 8px 25px}
  .sk-highscore-tabs button{
    flex:1;
    padding:10px 8px;
    font-size:12px;
  }
  .sk-highscore-table th,
  .sk-highscore-table td{
    padding:10px 8px;
    font-size:12px;
  }
}

/* SK-SPIELEABEND-INTEGRATION-V1 */
.sk-spieleabend-container{width:100%;height:calc(100dvh - 115px);min-height:500px;overflow:hidden;background:#f6f3e9;border-radius:14px}
.sk-spieleabend-frame{width:100%;height:100%;border:0;display:block}
@media(max-width:800px){.sk-spieleabend-container{height:calc(100dvh - 55px);min-height:300px;border-radius:0}}

/* SK-SPEED-SLIDER-FILL-V1 */
#gameSpeed[type="range"]{
  -webkit-appearance:none;appearance:none;
  padding:0!important;border:0!important;height:8px;min-height:0;
  border-radius:999px;cursor:pointer;
  background:linear-gradient(to right,#e7b85e 0%,#e7b85e var(--sk-speed-fill,33.333%),#555 var(--sk-speed-fill,33.333%),#555 100%)!important;
}
#gameSpeed::-webkit-slider-runnable-track{height:8px;border:0;border-radius:999px;background:transparent}
#gameSpeed::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin-top:-4px;border:0;border-radius:50%;background:#e7b85e}
#gameSpeed::-moz-range-track{height:8px;border:0;border-radius:999px;background:transparent}
#gameSpeed::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:#e7b85e}
#gameSpeed:focus-visible{outline:2px solid #fff0c7;outline-offset:5px}



/* SK-LAST-GAME-REVIEW-V1 */
.felt :is(.hand,.backs):has(> .sk-rest-reveal-hand) > :not(.sk-rest-reveal-hand){display:none!important}
.felt .sk-rest-reveal-hand{display:flex;flex:none;gap:3px;justify-content:center;align-items:center;position:relative;z-index:8}
.felt .sk-rest-reveal-hand img{display:block;width:clamp(30px,5.2vw,70px);height:auto;aspect-ratio:.62;object-fit:contain;border-radius:4px;box-shadow:0 3px 8px #0007}
.sk-review-overlay{position:fixed;inset:0;z-index:100010;background:#000a;display:flex;align-items:center;justify-content:center;padding:16px}
.sk-review-dialog{width:min(900px,100%);max-height:92dvh;overflow:auto;background:#21170f;color:#f6ebd6;border:1px solid #b58c45;border-radius:14px;padding:20px;box-shadow:0 14px 50px #0008}
.sk-review-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sk-review-dialog h2{margin:0;font-size:22px}
.sk-review-dialog h3{margin:20px 0 10px}
.sk-review-initial-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:8px 12px}
.sk-review-initial-grid .sk-review-trick{min-width:0;margin:0}
.sk-review-initial-hand{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:8px}
.sk-review-initial-hand img{display:block;width:100%;max-width:64px;aspect-ratio:0.62;object-fit:contain;border-radius:4px}
.sk-review-dialog table{width:100%;border-collapse:collapse}
.sk-review-dialog th,.sk-review-dialog td{padding:9px;text-align:left;border-bottom:1px solid #76552f;white-space:nowrap}
.sk-review-trick{border:1px solid #76552f;border-radius:9px;padding:10px;margin:8px 0}
.sk-review-trick summary{cursor:pointer;font-weight:700}
.sk-review-cards{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px}
.sk-review-cards figure{margin:0;flex:0 1 100px;text-align:center}
.sk-review-cards img{width:62px;height:96px;object-fit:contain;border-radius:5px}
.sk-review-cards figcaption{font-size:12px;margin-top:5px;overflow-wrap:anywhere}
.felt .opponent-bottom .hand .playing-card.sk-card-legal{outline:2px solid #e7b85e99!important;outline-offset:-2px;box-shadow:0 0 5px #e7b85e66!important}
@media(max-width:800px){.sk-review-overlay{padding:8px}.sk-review-dialog{padding:12px;max-height:95dvh}.sk-review-dialog h2{font-size:18px}.sk-review-cards{gap:8px}.sk-review-cards figure{flex-basis:70px}}

/* SK-LOBBY-FILTER-BAR-V1 */
.sk-table-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 18px;padding:12px;border:1px solid #76552f;border-radius:12px;background:#21170f}
.sk-table-filters #skTableSearch{flex:1 1 260px;min-width:0;width:auto;margin:0}
.sk-table-filter-options{display:flex;gap:6px;flex-wrap:wrap}
.sk-table-filter-options button{padding:8px 12px;white-space:nowrap}
.sk-table-filter-options button[aria-pressed="true"]{background:#e7b85e;color:#21170f;border-color:#e7b85e}
.sk-table-filter-options button:focus-visible{outline:2px solid #fff0c7;outline-offset:3px}
@media(max-width:800px){.sk-table-filters{gap:8px;padding:10px}.sk-table-filters #skTableSearch{flex-basis:100%;width:100%}.sk-table-filter-options{gap:5px}.sk-table-filter-options button{font-size:12px;padding:8px 10px}}

/* SK-COMPLETED-TABLE-DELETE-V1 */
html body:not(.sk-in-game) .sk-table-summary:has(.sk-table-delete){
 grid-template-columns:minmax(0,1fr) minmax(0,.8fr) auto auto minmax(0,1.4fr) 24px!important;
}
html body:not(.sk-in-game) .sk-table-summary .sk-table-delete{
 grid-column:3!important;grid-row:1!important;justify-self:start;
 background:#8b2525;color:#fff;border:1px solid #d45b5b;
 padding:7px 10px;white-space:nowrap;font-size:13px;
}
html body:not(.sk-in-game) .sk-table-summary:has(.sk-table-delete) .sk-table-partien{grid-column:4!important}
html body:not(.sk-in-game) .sk-table-summary:has(.sk-table-delete) .sk-table-free{grid-column:5!important}
html body:not(.sk-in-game) .sk-table-summary:has(.sk-table-delete) .sk-table-chevron{grid-column:6!important}
@media(max-width:800px){
 html body:not(.sk-in-game) .sk-table-summary:has(.sk-table-delete){grid-template-columns:minmax(0,1fr) auto auto 24px!important}
 html body:not(.sk-in-game) .sk-table-summary:has(.sk-table-delete) .sk-table-name{grid-column:1 / -1!important;grid-row:1!important}
 html body:not(.sk-in-game) .sk-table-summary:has(.sk-table-delete) .sk-table-creator{grid-column:1!important;grid-row:2!important}
 html body:not(.sk-in-game) .sk-table-summary .sk-table-delete{grid-column:2!important;grid-row:2!important}
 html body:not(.sk-in-game) .sk-table-summary:has(.sk-table-delete) .sk-table-partien{grid-column:3!important;grid-row:2!important}
 html body:not(.sk-in-game) .sk-table-summary:has(.sk-table-delete) .sk-table-chevron{grid-column:4!important;grid-row:2!important}
 html body:not(.sk-in-game) .sk-table-summary:has(.sk-table-delete) .sk-table-free{grid-column:1 / -1!important;grid-row:3!important}
}


