/* ladi play – farbkarten: Kartentisch (eigene Datei) */

/* ---------- Raum ---------- */
#collection-dialog.farbkarten-room-active .fk-root {
  --fk-top: 96px;
  --gold: #ffd25e;
  --fh: 150px;
  --pw: 84px;
  --hw: 96px;
  --ow: 28px;
  position: fixed; inset: 0; z-index: 1;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0;
  padding: var(--fk-top) max(10px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  overflow: hidden; color: #fff; border-radius: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0) 30%, rgba(5, 10, 18, .62) 100%), linear-gradient(rgba(8, 14, 24, .48), rgba(8, 14, 24, .7));
  -webkit-user-select: none; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
#collection-dialog.farbkarten-room-active:not(.portal-fullscreen):not(:fullscreen) .fk-root { --fk-top: 150px; }
#collection-dialog.farbkarten-room-active.portal-fullscreen .fk-root,
#collection-dialog.farbkarten-room-active:fullscreen .fk-root { --fk-top: 70px; }
#collection-dialog.farbkarten-room-active .collection-stage:has(> .fk-root) { contain: none !important; }
#collection-dialog.farbkarten-room-active .collection-layout:has(.fk-root) { border-color: transparent; background: transparent; }
.fk-root button { font: inherit; }
.fk-svg { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; }

/* ---------- Anzeige oben ---------- */
.fk-hud { position: absolute; z-index: 25; top: calc(var(--fk-top) - 70px); left: 50%; transform: translateX(-50%); width: min(600px, calc(100% - 330px)); pointer-events: none; }
.fk-hud-main { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 8px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 16px; background: rgba(12, 20, 32, .88); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.fk-hud-round { display: grid; flex: 0 0 auto; justify-items: center; padding: 3px 12px; border-radius: 12px; line-height: 1.05; color: #1d1600; background: linear-gradient(160deg, #ffe48a, #f0b93f); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.fk-hud-round small { font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.fk-hud-round strong { font-size: clamp(1.05rem, 2.1vw, 1.45rem); font-weight: 950; }
.fk-hud-info { display: grid; min-width: 0; flex: 1 1 auto; gap: 1px; font-size: clamp(.72rem, 1.3vw, .88rem); line-height: 1.25; color: #dfe7f2; }
.fk-hud-info b { color: #fff; }
.fk-hud-info span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fk-hud-dir { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); font-size: 1.5rem; font-weight: 900; }
.fk-menu-button {
  position: absolute; z-index: 30; left: max(10px, env(safe-area-inset-left)); top: calc(var(--fk-top) - 70px);
  display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 14px; color: #fff; background: rgba(14, 22, 34, .84); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); cursor: pointer;
}
.fk-menu-button span { font-size: 1.2rem; line-height: 1; }
.fk-menu-button b { font-size: .92rem; }
.fk-menu-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Tisch ---------- */
.fk-arena { position: relative; min-height: 0; }
.fk-felt {
  position: absolute; z-index: 3; border-radius: 50%;
  border: clamp(10px, 1.5vw, 20px) solid #5b3a24;
  background: radial-gradient(ellipse at 50% 34%, #3b6fb0 0%, #2a548e 42%, #1b3a68 78%, #122a4d 100%);
  box-shadow: 0 0 0 3px #2e1b0e, 0 0 0 6px rgba(255, 214, 150, .14), 0 30px 60px rgba(0, 0, 0, .6), inset 0 16px 40px rgba(0, 0, 0, .45), inset 0 -10px 26px rgba(255, 255, 255, .06);
}
.fk-felt::before { content: ''; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none; box-shadow: inset 0 3px 0 rgba(255, 220, 160, .3), inset 0 -2px 0 rgba(0, 0, 0, .4); }
.fk-felt-line { position: absolute; inset: 9%; border: 2px dashed rgba(255, 255, 255, .1); border-radius: 50%; }
.fk-felt-mark { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); color: rgba(255, 255, 255, .16); font-size: clamp(.68rem, 1.3vw, .95rem); font-weight: 950; letter-spacing: .14em; white-space: nowrap; text-transform: uppercase; }

.fk-center { position: absolute; z-index: 8; width: calc(var(--pw) * 3.3); height: calc(var(--pw) * 2); transform: translate(-50%, -50%); --glow: #fff; }
.fk-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * 3.25); height: calc(var(--pw) * 3.25); transform: translate(-50%, -50%) scaleY(.62); pointer-events: none; }
.fk-ring svg { width: 100%; height: 100%; overflow: visible; }
.fk-ring-g { transform-origin: 100px 100px; animation: fk-spin 22s linear infinite; }
.fk-ring path { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 3; stroke-dasharray: 10 8; }
.fk-ring path.fk-ring-head { fill: rgba(255, 255, 255, .45); stroke: none; }
.fk-ring.ccw svg { transform: scaleX(-1); }
.fk-drawpile, .fk-discard { position: absolute; top: 50%; width: var(--pw); transform: translateY(-50%); }
.fk-drawpile { left: calc(50% - var(--pw) * 1.22); height: calc(var(--pw) * 1.4); padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.fk-drawpile .fk-stack { position: absolute; inset: 0; }
.fk-drawpile .fk-stack i { position: absolute; left: 0; top: 0; width: 100%; transform: translate(calc(var(--i) * -1.5px), calc(var(--i) * -2px)); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.fk-drawpile .fk-stack i.empty { height: 100%; border: 2px dashed rgba(255, 255, 255, .3); border-radius: 10px; }
.fk-drawcount { position: absolute; right: -8px; bottom: -8px; z-index: 3; min-width: 30px; padding: 2px 7px; border-radius: 999px; color: #1b2430; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); font-size: .82rem; font-weight: 950; }
.fk-drawpile.ready .fk-stack i:last-child { box-shadow: 0 0 0 4px var(--gold), 0 0 22px rgba(255, 210, 94, .8); border-radius: 10px; animation: fk-breathe 1.4s ease-in-out infinite; }
.fk-drawpile:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.fk-discard { left: calc(50% + var(--pw) * .22); height: calc(var(--pw) * 1.4); }
.fk-discard::before { content: ''; position: absolute; inset: -14%; border-radius: 22%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 70%, transparent), transparent); opacity: .75; transition: background .4s ease; }
.fk-under i, .fk-top i { position: absolute; left: 0; top: 0; width: 100%; }
.fk-under i { transform: rotate(var(--r)) translate(calc(var(--i) * 1px), 0); filter: brightness(.9) drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.fk-top i { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.fk-colorbadge {
  position: absolute; left: calc(50% + var(--pw) * .72); top: calc(50% + var(--pw) * .82); z-index: 4; transform: translate(-50%, 0);
  display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 6px; border: 3px solid var(--c, #fff); border-radius: 999px; color: #fff; background: rgba(10, 16, 28, .9);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .4); font-size: clamp(.8rem, 1.4vw, 1rem); font-weight: 950; white-space: nowrap;
}
.fk-colorbadge.pop { animation: fk-pop2 .4s ease-out; }
.fk-dot { display: inline-grid; place-items: center; line-height: 0; vertical-align: -0.2em; }
.fk-pending { position: absolute; left: calc(50% - var(--pw) * .72); top: calc(50% + var(--pw) * .82); z-index: 4; transform: translate(-50%, 0); padding: 3px 12px; border-radius: 999px; color: #fff; background: #d6402f; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); font-size: clamp(.8rem, 1.4vw, 1rem); font-weight: 950; white-space: nowrap; animation: fk-breathe 1.2s ease-in-out infinite; }
.fk-pending[hidden] { display: none; }
.fk-say { position: absolute; z-index: 14; padding: 5px 16px; transform: translate(-50%, -50%); border-radius: 999px; color: #1f1600; background: linear-gradient(180deg, #fff3c4, #f0c75a); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); font-size: clamp(.9rem, 1.7vw, 1.15rem); font-weight: 950; white-space: nowrap; pointer-events: none; }
.fk-say.hot { color: #fff; background: linear-gradient(180deg, #ff7a63, #d6402f); }
.fk-say[hidden] { display: none; }
.fk-say.pop { animation: fk-pop .34s ease-out; }

/* ---------- Plätze ---------- */
.fk-seat { position: absolute; inset: 0; pointer-events: none; }
.fk-seat > * { position: absolute; }
.fk-figure { z-index: 2; width: calc(var(--fh) * .92); height: var(--fh); transform: translate(-50%, -100%); transition: transform .3s ease, filter .3s ease; }
.fk-figure canvas { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); }
.fk-seat.low .fk-figure { z-index: 4; }
.fk-seat.active .fk-figure { transform: translate(-50%, calc(-100% - 8px)); }
.fk-seat.away .fk-figure { filter: grayscale(.7) brightness(.7); }
.fk-fan { z-index: 6; display: flex; transform: translate(-50%, -50%); }
.fk-fan i { display: block; width: var(--ow); margin: 0 calc(var(--ow) * -.32); transform: rotate(calc(var(--k) * 7deg)) translateY(calc(var(--k) * var(--k) * .6px)); transform-origin: 50% 120%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.fk-plate {
  z-index: 10; display: grid; justify-items: center; gap: 0; min-width: 92px; max-width: 190px; padding: 4px 11px 5px; transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, .7); border-radius: 13px; color: #fff; background: rgba(14, 22, 34, .92); box-shadow: 0 8px 16px rgba(0, 0, 0, .4); line-height: 1.12;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.fk-name { max-width: 100%; overflow: hidden; font-size: clamp(.74rem, 1.35vw, .92rem); font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.fk-count { white-space: nowrap; color: var(--gold); font-size: clamp(.82rem, 1.5vw, 1rem); font-weight: 950; }
.fk-tag { display: none; margin-top: 2px; padding: 0 8px; border-radius: 999px; color: #10221a; background: #c8f0da; font-size: .7rem; font-style: normal; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.fk-tag.show { display: block; }
.fk-tag.turn { color: #2a1d00; background: var(--gold); }
.fk-tag.warn { color: #fff; background: #d6402f; }
.fk-seat.active .fk-plate { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 210, 94, .35), 0 8px 18px rgba(0, 0, 0, .4); }
.fk-seat.last .fk-plate { border-color: #ff7a63; }
.fk-seat.winner .fk-plate { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(255, 210, 94, .45), 0 0 26px rgba(255, 210, 94, .6); }
.fk-seat.away .fk-name::after { content: ' · weg'; color: #ffb4a6; }
.fk-bubble {
  z-index: 24; max-width: 200px; padding: 6px 12px; transform: translate(-50%, -50%); border-radius: 14px; color: #1b2430; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  font-size: clamp(.82rem, 1.5vw, 1rem); font-weight: 950; white-space: nowrap; pointer-events: none;
}
.fk-bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); background: #fff; }
.fk-bubble[hidden] { display: none; }
.fk-bubble.pop { animation: fk-pop .32s ease-out; }
.fk-root[data-phase="roundEnd"] .fk-seat .fk-bubble, .fk-root[data-phase="over"] .fk-seat .fk-bubble { z-index: 24; }

/* Farbwahl / Tauschwahl in der Tischmitte */
.fk-picker { position: absolute; z-index: 30; transform: translate(-50%, -50%); display: grid; gap: 8px; justify-items: center; padding: 12px 14px 14px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 22px; background: rgba(10, 16, 28, .93); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); animation: fk-pop .3s ease-out; }
.fk-picker[hidden] { display: none; }
.fk-picker p { margin: 0; font-size: clamp(.95rem, 1.8vw, 1.2rem); font-weight: 950; text-align: center; }
.fk-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fk-colors button {
  display: grid; justify-items: center; gap: 2px; width: clamp(78px, 11vw, 120px); min-height: clamp(96px, 13vw, 132px); padding: 8px 6px; border: 0; border-radius: 18px; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, var(--c), var(--d)); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .22), 0 8px 18px rgba(0, 0, 0, .35); transition: transform .12s ease;
}
.fk-colors button svg { width: 56%; height: auto; }
.fk-colors button b { font-size: clamp(.95rem, 1.7vw, 1.15rem); font-weight: 950; text-shadow: 0 2px 3px rgba(0, 0, 0, .4); }
.fk-colors button small { font-size: .7rem; font-weight: 800; opacity: .92; }
.fk-colors button:active, .fk-swaps button:active { transform: scale(.96); }
.fk-colors button:focus-visible, .fk-swaps button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fk-swaps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; }
.fk-swaps button { display: grid; min-width: 110px; min-height: 58px; padding: 6px 12px; border: 0; border-radius: 14px; color: #1d1600; background: linear-gradient(180deg, #ffe48a, #f0b93f); font-weight: 950; cursor: pointer; }
.fk-swaps small { font-size: .74rem; font-weight: 800; }

/* ---------- Unten: eigene Karten und Knöpfe ---------- */
.fk-dock { position: relative; z-index: 20; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, auto) minmax(150px, 1fr); grid-template-areas: 'online online online' 'left mine right' 'line line line'; align-items: end; gap: 4px 12px; padding: 0 4px; }
.fk-online { grid-area: online; justify-self: center; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; font-size: .8rem; }
.fk-online[hidden] { display: none; }
.fk-online .skt-room-tag { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 900; }
.fk-online .skt-away { padding: 2px 9px; border-radius: 999px; color: #ffe1db; background: rgba(160, 40, 30, .55); }
.fk-online button { min-height: 36px; padding: 4px 12px; border: 0; border-radius: 10px; color: #1b1b1b; background: var(--gold); font-weight: 900; cursor: pointer; }
.fk-mine { grid-area: mine; position: relative; justify-self: center; display: grid; justify-items: center; gap: 2px; min-width: 0; max-width: 100%; padding: 4px 10px 6px; border-radius: 18px; background: rgba(10, 16, 28, .66); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); transition: box-shadow .25s ease; }
.fk-mine.turn { box-shadow: 0 0 0 3px var(--gold), 0 10px 24px rgba(0, 0, 0, .35); }
.fk-mine.winner { box-shadow: 0 0 0 4px var(--gold), 0 0 30px rgba(255, 210, 94, .55); }
.fk-myinfo { display: flex; align-items: baseline; gap: 10px; line-height: 1.2; }
.fk-myname { color: #d6e6ff; font-size: .82rem; font-weight: 900; }
.fk-myscore { color: var(--gold); font-size: .9rem; font-weight: 950; }
.fk-mytag { padding: 0 8px; border-radius: 999px; color: #2a1d00; background: var(--gold); font-size: .74rem; font-style: normal; font-weight: 950; }
.fk-mytag:empty { display: none; }
.fk-mybubble { left: 50%; top: -26px; }
.fk-hand { position: relative; height: calc(var(--hw) * 1.4 + 16px); min-width: var(--hw); margin-top: 12px; }
.fk-card {
  position: absolute; top: 12px; width: var(--hw); padding: 0; border: 0; border-radius: 12% / 8.6%; background: transparent; cursor: pointer;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); transition: transform .16s ease, filter .2s ease;
}
.fk-card.ok { transform: translateY(-12px); }
.fk-card.ok .fk-svg { border-radius: 12% / 8.6%; box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(255, 210, 94, .7); }
.fk-card.jump .fk-svg { box-shadow: 0 0 0 3px #7ef0c0, 0 0 16px rgba(126, 240, 192, .8); }
.fk-card.dim { filter: brightness(.66) saturate(.75) drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.fk-card.drawn { transform: translateY(-22px); }
.fk-card.sent { opacity: .35; pointer-events: none; }
.fk-card:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .fk-card.ok:hover { transform: translateY(-22px); } }
.fk-left, .fk-right { display: grid; align-content: end; gap: 8px; min-width: 0; padding-bottom: 4px; }
.fk-left { grid-area: left; justify-items: start; }
.fk-right { grid-area: right; justify-items: end; }
.fk-btn {
  display: grid; justify-items: center; gap: 1px; min-width: clamp(130px, 15vw, 190px); min-height: 58px; padding: 6px 16px; border: 0; border-radius: 16px; color: #fff;
  font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 950; line-height: 1.1; cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25), 0 8px 18px rgba(0, 0, 0, .35); transition: transform .12s ease; animation: fk-rise .3s ease-out;
}
.fk-btn small { font-size: .62em; font-weight: 800; opacity: .9; }
.fk-btn:active { transform: translateY(2px); }
.fk-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fk-btn.draw { background: linear-gradient(180deg, #3a7fd6, #22579f); }
.fk-btn.pass { background: linear-gradient(180deg, #5d6b80, #3d4858); }
.fk-btn.challenge { background: linear-gradient(180deg, #8a5bd6, #5c349f); }
.fk-btn.call { min-height: 66px; color: #2a1d00; background: linear-gradient(180deg, #ffe48a, #f0b93f); font-size: clamp(1.1rem, 2vw, 1.35rem); animation: fk-rise .3s ease-out, fk-breathe 1.2s ease-in-out .3s infinite; }
.fk-btn.catch { background: linear-gradient(180deg, #ff7a63, #c73a2a); animation: fk-rise .3s ease-out, fk-breathe 1s ease-in-out .3s infinite; }
.fk-line { grid-area: line; min-height: 1.3em; margin: 0; color: #f1f6f4; font-size: clamp(.8rem, 1.45vw, .98rem); font-weight: 800; text-align: center; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }

/* ---------- Fliegende Karten ---------- */
.fk-fly { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.fk-flycard { position: absolute; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45)); }

/* ---------- Overlays ---------- */
.fk-overlay { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5, 10, 18, .55); }
.fk-overlay[hidden] { display: none; }
.fk-sheet { position: relative; width: min(600px, 100%); max-height: calc(100% - 24px); overflow: auto; padding: 18px 20px; border-radius: 20px; color: #23303e; background: #fbf8f2; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); animation: fk-sheet .3s ease-out; }
.fk-sheet h3 { margin: 0 0 8px; color: #1e2a38; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.fk-sheet p { margin: 0 0 10px; color: #4b5767; }
.fk-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fk-sheet-actions button { min-height: 48px; }
.fk-menu-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; font-weight: 800; }
.fk-check { flex-wrap: nowrap; justify-content: flex-start; }
.fk-check input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: #2a548e; }
.fk-segment { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(40, 60, 80, .1); }
.fk-segment button { min-height: 40px; min-width: 78px; padding: 4px 12px; border: 0; border-radius: 9px; color: #2b3a4a; background: transparent; font-weight: 900; cursor: pointer; }
.fk-segment button.on { color: #fff; background: #2a548e; }
.fk-rules { display: grid; gap: 7px; margin: 0; padding: 0 0 0 20px; font-size: .92rem; line-height: 1.4; }
.fk-rules .fk-dot { margin: 0 2px; }
.fk-rules i { font-style: normal; font-weight: 900; }
.fk-overlay.result .fk-sheet { text-align: center; }
.fk-overlay.result .fk-sheet-actions { justify-content: center; }
.fk-hands { display: grid; gap: 5px; margin: 8px 0; padding: 0; list-style: none; text-align: left; }
.fk-hands li { display: grid; grid-template-columns: minmax(70px, 120px) minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 10px; background: rgba(40, 60, 80, .06); }
.fk-hands li.win { background: #fff1c2; }
.fk-hands li.me .fk-hn { font-weight: 950; }
.fk-hn { overflow: hidden; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.fk-hc { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.fk-hc i { display: block; width: 26px; }
.fk-hc em { font-size: .8rem; color: #6b5a10; font-style: normal; font-weight: 900; }
.fk-hands b { font-weight: 950; }
.fk-standings { display: grid; gap: 4px; max-width: 360px; margin: 8px auto; padding: 0; list-style: none; text-align: left; }
.fk-standings li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(40, 60, 80, .06); }
.fk-standings li.me { background: #fff1c2; font-weight: 900; }
.fk-note { font-size: .86rem; }
.fk-burst { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 0%, rgba(255, 210, 94, .35), transparent 60%); }
.fk-trophy { position: relative; width: 110px; height: 120px; margin: 0 auto 8px; }
.fk-trophy i { position: absolute; left: 20px; top: 0; width: 70px; height: 62px; border-radius: 8px 8px 40px 40px; background: linear-gradient(120deg, #fff3b0, #f2c235 45%, #b9850f); box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .12); }
.fk-trophy i::before, .fk-trophy i::after { content: ''; position: absolute; top: 8px; width: 22px; height: 30px; border: 7px solid #e3b32c; border-radius: 50%; }
.fk-trophy i::before { left: -24px; border-right-color: transparent; }
.fk-trophy i::after { right: -24px; border-left-color: transparent; }
.fk-trophy b { position: absolute; left: 47px; top: 60px; width: 16px; height: 26px; background: linear-gradient(90deg, #d9a51f, #f5d35a, #b9850f); }
.fk-trophy span { position: absolute; left: 25px; top: 86px; width: 60px; height: 22px; border-radius: 6px; background: linear-gradient(180deg, #6b4a2a, #3f2a16); box-shadow: 0 6px 12px rgba(0, 0, 0, .3); }
.fk-overlay.won .fk-trophy { animation: fk-trophy 1.6s ease-in-out infinite alternate; }

/* ---------- Einstellungen ---------- */
.fk-settings .skat-hero { align-items: center; }
.fk-preview { position: relative; display: flex; justify-content: center; min-width: 220px; height: 120px; padding-top: 6px; }
.fk-preview i { display: block; width: 66px; margin: 0 -14px; transform: rotate(calc(var(--k) * 9deg)) translateY(calc(var(--k) * var(--k) * 3px)); transform-origin: 50% 110%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
.fk-settings .fk-grid { margin-top: 14px; }
.fk-settings .fk-play-settings { grid-template-columns: minmax(170px, 1fr) repeat(3, auto); align-items: center; }
.fk-house-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fk-house-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(42, 84, 142, .06); cursor: pointer; }
.fk-house-item input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: #2a548e; }
.fk-house-item span { display: grid; gap: 2px; }
.fk-house-item b { color: #23303e; font-size: .92rem; }
.fk-house-item small { color: #5b6677; font-size: .8rem; line-height: 1.3; }
.fk-name-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fk-name-grid label { display: grid; gap: 4px; color: #566176; font-size: .8rem; font-weight: 800; }
.fk-name-grid input { min-height: 40px; padding: 6px 10px; border: 1px solid rgba(73, 91, 118, .25); border-radius: 10px; font: inherit; }
.fk-online-start .fk-duo { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.fk-online-start .fk-duo input { width: 22px; height: 22px; min-height: 0; padding: 0; flex: 0 0 auto; accent-color: #2a548e; }

@keyframes fk-pop { from { transform: translate(-50%, -50%) scale(.7); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes fk-pop2 { from { transform: translate(-50%, 0) scale(.6); } 60% { transform: translate(-50%, 0) scale(1.12); } to { transform: translate(-50%, 0) scale(1); } }
@keyframes fk-sheet { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fk-rise { from { transform: translateY(12px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes fk-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@keyframes fk-spin { to { transform: rotate(360deg); } }
@keyframes fk-trophy { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-6px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) {
  .fk-root *, .fk-sheet { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Hochformat (iPad hoch, Telefon) ---------- */
.fk-root.portrait .fk-hud { left: 112px; transform: none; width: calc(100% - 360px); min-width: 200px; }
#collection-dialog.farbkarten-room-active:not(.portal-fullscreen) .fk-root.portrait .fk-hud { left: 50%; transform: translateX(-50%); width: calc(100% - 240px); }
.fk-root.portrait .fk-dock { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'online online' 'mine mine' 'left right' 'line line'; }
.fk-root.portrait .fk-mine { width: 100%; }
.fk-root.portrait .fk-left, .fk-root.portrait .fk-right { padding-bottom: 0; }
.fk-root.portrait .fk-btn { min-width: 0; width: 100%; }
.fk-root.portrait .fk-left:empty + .fk-mine + .fk-right, .fk-root.portrait .fk-right:empty { min-height: 0; }
@media (max-width: 700px) {
  .fk-hud-info span:last-child { display: none; }
  .fk-menu-button b { display: none; }
  .fk-name-grid, .fk-house-grid { grid-template-columns: 1fr; }
  .fk-settings .fk-play-settings { grid-template-columns: 1fr; }
  .fk-settings .skat-hero { grid-template-columns: 1fr; }
  .fk-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 640px) and (orientation: landscape) {
  #collection-dialog.farbkarten-room-active.portal-fullscreen .fk-root { --fk-top: 64px; }
  .fk-btn { min-height: 46px; }
}
