/* Doppel-Aufstellung (assets/ui/doubles-seats.js): cremefarbene Comic-Plätze wie das Menü; der Platz, der gerade gewählt
   wird, leuchtet golden und pulsiert; gewählte Plätze zeigen den Kopf und ploppen beim Landen auf.
   Grundform: Leiste über der Karte (Handy, schmale Fenster). .beside: Spalte rechts neben dem Stapel (Desktop), die Karte
   bleibt in der Mitte. */
#app #opponent-screen .doubles-seats{position:relative;z-index:4;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;
 width:auto;max-width:560px;margin:0 auto 10px;padding:6px 8px;border:3px solid #032633;border-radius:20px;
 background:#FFF1D9;box-shadow:0 6px 0 #0326338c;color:#032633}
#app #opponent-screen .doubles-seats[hidden]{display:none}
/* Leiste: im Inhalt über dem Stapel */
#app #opponent-screen[data-doubles-pick] .opponent-content:has(>.doubles-seats:not(.beside)){display:flex;flex-direction:column;align-items:center;gap:6px}
#app #opponent-screen .opponent-content>.doubles-seats{order:-1;flex:none}
#app #opponent-screen .doubles-team{display:flex;flex-direction:row;gap:5px}
#app #opponent-screen .doubles-team-label{display:none;font:900 11px/1 var(--font-body,'Nunito',sans-serif);letter-spacing:.12em;text-transform:uppercase;color:#a14a08}
#app #opponent-screen .doubles-vs{align-self:center;padding:2px 7px;border:2.5px solid #032633;border-radius:10px;background:#ffc744;font:400 14px/1 var(--font-display);transform:rotate(-4deg)}

#app #opponent-screen .doubles-seat{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;width:auto;min-height:0;margin:0;padding:4px 6px 5px;
 border:2.5px solid #032633;border-radius:12px;background:#FFE7C2;color:#032633;text-align:left;box-shadow:0 3px 0 #0326338c;transform:none;font:inherit}
#app #opponent-screen button.doubles-seat{cursor:pointer}
#app #opponent-screen button.doubles-seat::before,#app #opponent-screen button.doubles-seat::after{content:none}
#app #opponent-screen .doubles-seat-face{position:relative;flex:none;width:40px;height:40px;border:2.5px solid #032633;border-radius:50%;overflow:hidden;background:#2e8370}
#app #opponent-screen .doubles-seat-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
#app #opponent-screen .doubles-seat-face img:not([src]){display:none}
#app #opponent-screen .doubles-seat-empty{position:absolute;inset:0;display:none;place-items:center;color:#fff1d6;font:400 24px/1 var(--font-display)}
#app #opponent-screen .doubles-seat-copy{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
#app #opponent-screen .doubles-seat-copy small{font:900 9px/1 var(--font-body,'Nunito',sans-serif);text-transform:uppercase;color:#4a3b2a;text-align:center}
/* Namen nie abkürzen: doubles-seats.js verkleinert die Schrift, bis der Name passt (Marcel 25.10.). */
#app #opponent-screen .doubles-seat-copy strong{display:none;font:400 var(--name-size,16px)/1.05 var(--font-display);white-space:nowrap}
#app #opponent-screen .doubles-seat[data-seat="you"]{background:#ffd98a}

/* Desktop: Spalte rechts neben dem Stapel, mittig zur Karte (Position aus doubles-seats.js). */
#app #opponent-screen .doubles-seats.beside{position:absolute;margin:0;transform:translateY(-50%);flex-direction:column;align-items:stretch;gap:8px;width:210px;max-width:none;padding:10px 10px 12px}
#app #opponent-screen .doubles-seats.beside .doubles-team{flex-direction:column;gap:7px}
#app #opponent-screen .doubles-seats.beside .doubles-team-label{display:block}
#app #opponent-screen .doubles-seats.beside .doubles-vs{font-size:18px;padding:3px 12px}
#app #opponent-screen .doubles-seats.beside .doubles-seat{flex-direction:row;gap:10px;width:100%;padding:6px 10px 6px 6px;border-radius:14px}
#app #opponent-screen .doubles-seats.beside .doubles-seat-face{width:50px;height:50px}
#app #opponent-screen .doubles-seats.beside .doubles-seat-copy{align-items:flex-start}
#app #opponent-screen .doubles-seats.beside .doubles-seat-copy small{font-size:11px;letter-spacing:.06em;text-align:left}
#app #opponent-screen .doubles-seats.beside .doubles-seat-copy{flex:1}
#app #opponent-screen .doubles-seats.beside .doubles-seat-copy strong{display:block;width:100%}

/* noch frei: gestrichelt und blass */
#app #opponent-screen .doubles-seat[data-state="empty"]{border-style:dashed;background:#fff1d980;box-shadow:none;opacity:.75;cursor:default}
#app #opponent-screen .doubles-seat[data-state="empty"] .doubles-seat-face{border-style:dashed;background:#03263322}
#app #opponent-screen .doubles-seat[data-state="empty"] .doubles-seat-empty{display:grid;color:#03263366}
/* wird gerade gewählt: goldener Rahmen, pulsiert, „?“ blinkt */
#app #opponent-screen .doubles-seat[data-state="current"]{background:#ffc744;animation:doubles-seat-pulse 1.1s ease-in-out infinite}
#app #opponent-screen .doubles-seat[data-state="current"] .doubles-seat-face{background:#fff1d6}
#app #opponent-screen .doubles-seat[data-state="current"] .doubles-seat-empty{display:grid;color:#032633;animation:doubles-seat-blink 1.1s steps(2,jump-none) infinite}
#app #opponent-screen .doubles-seat[data-state="filled"]:hover{transform:translateY(-1px)}
#app #opponent-screen .doubles-seat:focus-visible{outline:3px solid #032633;outline-offset:3px}
/* gelandet: Platz ploppt auf, kurzer Glanz */
#app #opponent-screen .doubles-seat.landed{animation:doubles-seat-land .5s cubic-bezier(.2,.9,.3,1.6)}
#app #opponent-screen .doubles-seat.landed .doubles-seat-face{animation:doubles-seat-flash .6s ease-out}
.doubles-seat-ghost{position:fixed;left:0;top:0;z-index:10000;pointer-events:none;object-fit:contain;image-rendering:pixelated;border-radius:50%;
 background:#2e8370;border:4px solid #032633;box-shadow:0 14px 24px #0007;will-change:transform}
@keyframes doubles-seat-pulse{50%{box-shadow:0 3px 0 #0326338c,0 0 0 5px #ffc74488,0 0 22px #ffc744}}
@keyframes doubles-seat-blink{50%{opacity:.25}}
@keyframes doubles-seat-land{0%{transform:scale(.9)}50%{transform:scale(1.08)}100%{transform:none}}
@keyframes doubles-seat-flash{0%{box-shadow:0 0 0 0 #fff}40%{box-shadow:0 0 0 8px #ffffffaa}100%{box-shadow:0 0 0 14px #fff0}}
@media(prefers-reduced-motion:reduce){
 #app #opponent-screen .doubles-seat,#app #opponent-screen .doubles-seat *{animation:none!important}
}
/* Bestätigen bleibt am Handy einzeilig (kurze Beschriftung aus app.js). */
@media(max-width:520px){#app #opponent-screen[data-doubles-pick] #rival-play{white-space:nowrap}}
