body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #1b1b1f; color: #fff; font-family: system-ui, sans-serif; }

#device { position: relative; width: 360px; height: 360px; }
#case { position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background: linear-gradient(145deg, #e8e8ea, #9a9aa0); box-shadow: 0 10px 30px #000a; }

.btn { position: absolute; top: 21px; width: 22px; height: 50px; border: 0; border-radius: 6px; background: #ff8a00; cursor: pointer; z-index: 0; touch-action: none; }
#bl { left: 35px; transform: rotate(-45deg); }
#br { left: 303px; transform: rotate(45deg); }

#screen { position: absolute; inset: 25px; z-index: 2; box-sizing: border-box; padding: 20px 30px; overflow: hidden;
  border-radius: 50%; clip-path: circle(50%); background: #000; cursor: pointer; user-select: none; text-align: center; touch-action: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }

main { display: flex; flex-direction: column; align-items: center; padding: 50px 0 30px; }
.lbl { position: absolute; top: -34px; width: 150px; font-size: 13px; color: #ccc; }
#ll { left: 0; }
#lr { right: 0; text-align: right; }

/* Inhalt, der sich zum aktiven Spieler dreht */
.rot { position: absolute; inset: 0; box-sizing: border-box; padding: 20px 30px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; transition: transform .5s ease; }

h2, h3, p { margin: 0; }
h3 { font-size: 15px; }
small { color: #aaa; font-size: 10px; }
.big { font-size: 64px; line-height: 1; }

.row { display: flex; justify-content: space-between; gap: 8px; width: 80%; box-sizing: border-box; padding: 3px 10px; border-radius: 10px; font-size: 14px; }
.row.sel { background: #fc0; color: #000; }
.row.done { background: #1e1e1e; color: #7a7a7a; }
.row.go { justify-content: center; background: #1f9d55; }
.row.go.sel { background: #fc0; }
.stand .row { padding: 1px 10px; font-size: 12px; }
.stand .row span { flex: 1; text-align: left; }
.stand .row i { flex: 1; text-align: right; font-style: normal; color: #888; }
.stand .row i.up { color: #5f5; }
.stand .row i.dn { color: #ff6b61; }

/* Tisch: vier Aktionsfelder, Spieler am Rand, Pot in der Mitte */
.tbl { position: absolute; inset: 0; }
.q { position: absolute; width: 50%; height: 50%; box-sizing: border-box; border: 2px solid #000; }
.q span { position: absolute; width: 58px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.q b { font-size: 13px; letter-spacing: .5px; }
.q em { font-size: 12px; font-style: normal; opacity: .9; min-height: 14px; }
.qf { left: 0; top: 0; background: #c0392b; } .qf span { right: 30px; bottom: 34px; }
.qc { right: 0; top: 0; background: #1f9d55; } .qc span { left: 30px; bottom: 34px; }
.qr { right: 0; bottom: 0; background: #2563eb; } .qr span { left: 30px; top: 34px; }
.qa { left: 0; bottom: 0; background: #7c3aed; } .qa span { right: 30px; top: 34px; }
.q.dis { opacity: .25; }

.hub { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; z-index: 1;
  background: #0d1f14; border: 3px solid #000; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hub strong { font-size: 22px; line-height: 1.1; color: #fc0; }
.hub small { font-size: 9px; }

.seat { position: absolute; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: #202024; color: #fff; box-shadow: 0 0 0 2px #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.seat b { font-size: 14px; }
.seat small { font-size: 9px; color: #bbb; }
.seat.on { background: #fc0; color: #000; box-shadow: 0 0 0 3px #fff, 0 0 16px 4px #fc0; animation: glow 1.2s ease-in-out infinite alternate; }
.seat.on small { color: #333; }
.seat.fold { opacity: .3; }
.seat.allin { box-shadow: 0 0 0 2px #000, 0 0 0 4px #ff453a; }
.seat.out { opacity: .1; }
@keyframes glow { to { box-shadow: 0 0 0 3px #fff, 0 0 6px 1px #fc0; } }
.tag { position: absolute; z-index: 3; transform: translate(-50%, -50%); min-width: 14px; height: 13px; padding: 0 3px; box-sizing: border-box;
  border-radius: 7px; background: #fff; color: #000; font: 700 8px/13px system-ui, sans-serif; font-style: normal; text-align: center; }

/* Raise, Flop/Turn/River, Gewinner */
.amt { font-size: 52px; line-height: 1; color: #6aa5ff; font-weight: 700; }
.two { display: flex; gap: 14px; margin-top: 4px; }
.two span { padding: 7px 16px; border-radius: 20px; font-size: 14px; font-weight: 700; }
.two .no { background: #444; }
.two .ok { background: #2563eb; }
.felt { color: #fff; }
.felt h2 { font-size: 30px; color: #7ee2a0; }

/* Warnfenster: Spiel verlassen */
#home { position: absolute; left: 287px; top: 287px; z-index: 3; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: #ff8a00; color: #000; font-size: 13px; line-height: 22px; cursor: pointer; }
#home:disabled { background: #8a8a90; color: #ccc; cursor: default; }
#warn { position: absolute; inset: 25px; z-index: 4; border-radius: 50%; clip-path: circle(50%); display: none; }
#warn.on { display: block; }
.wbox { position: absolute; inset: 0; box-sizing: border-box; padding: 20px 30px; background: radial-gradient(circle at 50% 38%, #c0141f, #5c070d 78%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  animation: warnin .35s cubic-bezier(.2, 1.4, .4, 1), warnpulse 1.4s ease-in-out .35s infinite; }
@keyframes warnin { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes warnpulse { 50% { box-shadow: inset 0 0 40px 8px #ff3b30aa; } }
.wbox p { font-size: 12px; color: #ffd9d6; }
.wbox small { color: #ffb3ae; }
#hold { position: relative; width: 92px; height: 92px; margin: 10px 0 8px; padding: 0; border: 0; border-radius: 50%; background: #ff453a; color: #fff;
  font-size: 40px; line-height: 92px; cursor: pointer; touch-action: none; user-select: none; box-shadow: 0 4px 14px #0008; transition: transform .2s, background .15s; }
#hold svg { position: absolute; left: -8px; top: -8px; width: 108px; height: 108px; transform: rotate(-90deg); pointer-events: none; }
#hold circle { fill: none; stroke-width: 6; }
#hold .ring-bg { stroke: #ffffff33; }
#hold .ring { stroke: #fff; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; }
#hold.holding { transform: scale(.92); animation: tremble .1s 2s infinite alternate; } /* zittert in der letzten Sekunde */
#hold.holding .ring { animation: ringfill 3s linear forwards; }
#hold.ok { background: #30d158; }
@keyframes ringfill { to { stroke-dashoffset: 0; } }
@keyframes tremble { from { transform: scale(.92) translateX(-2px); } to { transform: scale(.92) translateX(2px); } }
#wcancel { padding: 2px 8px; border: 0; background: none; color: #fff; font-size: 12px; text-decoration: underline; cursor: pointer; }
