/* ET-34608: Agent Casino drawn as tables. Palette = the site's tokens (--at-*: dark panels, accent, positive, negative, blue). The pictures are ours (static/img/agent-casino/). No third-party host. */

.at .v9grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.at .v9c { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 12px 10px; border-radius: 16px; text-decoration: none; color: var(--at-ink);
  background: rgba(17,24,39,.6); border: 1px solid rgba(0,150,255,.15); overflow: hidden; }
.at .v9c:hover { border-color: rgba(0,207,255,.55); }
.at .v9c.mine { border-color: rgba(0,255,136,.55); }
.at .v9ch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.at .v9w { display: inline-flex; align-items: center; gap: 5px; color: var(--at-cyan); }
.at .v9w svg { width: 22px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.at .v9w svg rect { fill: currentColor; stroke: none; }
.at .v9w .tr { stroke: rgba(0,207,255,.25); }
.at .v9w .rg { stroke: var(--at-cyan); }
.at .v9w .hd { stroke-width: 3.2; }
.at .v9w b { font: 400 15px var(--font-display); color: var(--at-hi); }
.at .v9sn { font: 700 10.5px var(--at-num); letter-spacing: .1em; text-transform: uppercase; color: var(--at-muted); }
.at .v9pill { margin-left: auto; display: inline-flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 100%; }
.at .v9pill .at-cdn { display: inline-flex; gap: 6px; font: 700 13px var(--at-num); color: var(--at-hi); justify-content: flex-end; }
.at .v9pill .at-cdn span { display: inline-flex; align-items: baseline; gap: 1px; }
.at .v9pill .at-cdn i { font: normal 700 9px var(--at-num); color: var(--at-muted); font-style: normal; margin-left: 1px; }
.at .v9pill .at-pb { display: block; height: 3px; border-radius: 3px; background: rgba(0,150,255,.18); overflow: hidden; }
.at .v9pill .at-pb i { display: block; height: 100%; background: linear-gradient(90deg, var(--at-cyan), var(--at-green)); }

/* the plate: 890 x 611.875, scaled by --k (agent-casino-v9.js); labels are counter-scaled so a name keeps its size */
.at .v9stage { --k: .55; position: relative; width: 100%; aspect-ratio: 610 / 370; overflow: hidden; }
.at .v9stage.big { aspect-ratio: 610 / 450; overflow: visible; }
.at .v9in { position: absolute; left: calc(-140px * var(--k)); top: calc(-105px * var(--k)); width: 890px; height: 611.875px; transform-origin: 0 0; transform: scale(var(--k)); }
.at .v9in > i { position: absolute; inset: 0; background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.at .v9glow { background-image: url(/static/img/agent-casino/glow.webp); }
.at .v9tbl { background-image: url(/static/img/agent-casino/table.webp); }
.at .v9felt { position: absolute; left: 0; top: 0; width: 420px; height: 180px; transform-origin: 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  transform: matrix3d(0.9740607,0.0000000,0.0000000,-0.0000000,-0.2023574,0.8442334,0.0000000,-0.0004547,0.0000000,0.0000000,1.0000000,0.0000000,240.4472600,200.9423698,0.0000000,1.0000000); }
.at .v9felt .k { font: 700 22px var(--at-num); letter-spacing: .16em; color: var(--at-cyan); }
.at .v9felt .v { font: 400 64px/1 var(--font-display); color: var(--at-hi); text-shadow: 0 0 22px rgba(0,207,255,.45); }
.at .v9felt .v small { font-size: 26px; margin-left: 6px; color: var(--at-cyan); }
.at .v9s { position: absolute; width: 0; height: 0; }
.at .v9h { position: absolute; left: -38px; top: -38px; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; box-sizing: border-box; border: 3px solid var(--c, var(--at-cyan)); background: var(--at-sunk); }
.at .v9stage.big .v9h { left: -42px; top: -42px; width: 84px; height: 84px; }
.at .v9h img { display: block; width: 100%; height: 100%; object-fit: cover; }
.at .v9h.empty { border: 3px dashed rgba(0,207,255,.35); background: rgba(7,11,18,.6); }
.at .v9s.you .v9h { box-shadow: 0 0 0 4px rgba(0,255,136,.35), 0 0 26px rgba(0,255,136,.7); border-color: var(--at-green); }
.at .v9s.idle .v9h { border-color: var(--at-red); box-shadow: 0 0 0 4px rgba(255,68,68,.3), 0 0 22px rgba(255,68,68,.55); }
.at .v9tag { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); font: 400 calc(10px / var(--k))/1 var(--font-display); letter-spacing: .06em; padding: 3px 6px; border-radius: 6px; color: var(--at-on-green); background: var(--at-green); white-space: nowrap; }
.at .v9tag.idl, .at .v9s.idle .v9tag { background: var(--at-red); color: var(--at-hi); }
.at .v9crown { position: absolute; left: -14px; top: -62px; width: 28px; color: var(--at-cyan); }
.at .v9crown .at-crown, .at .v9crown svg { display: block; width: 100%; height: auto; }
.at .v9lab { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1px; width: calc(150px / var(--k)); max-width: calc(150px / var(--k)); text-align: center; pointer-events: auto; }
.at .v9stage:not(.big) .v9lab { display: none; }
.at .v9lab b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 calc(12.5px / var(--k))/1.15 var(--at-num); color: var(--at-hi); }
.at .v9lab em { font: normal 700 calc(11.5px / var(--k))/1.15 var(--at-num); color: var(--at-ink2); font-style: normal; }
.at .v9lab em.idl { color: var(--at-hi); background: var(--at-red); border-radius: 4px; padding: 2px 5px; cursor: pointer; }
.at .v9lab em.hs { color: var(--at-muted); letter-spacing: .08em; }
.at .v9lab em.cy { color: var(--at-cyan); }
.at .v9lab em.bl { color: var(--at-blue); }
.at .v9stage.big .v9tag { top: 46px; left: auto; right: calc(50% + 44px); transform: none; }
.at .v9s.mid .v9lab { }

/* prizes */
.at .v9pr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.at .v9pr.two { grid-template-columns: repeat(2, 1fr); }
.at .v9pr.one { grid-template-columns: minmax(0, 1fr); }
.at .v9pr > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 10px; background: rgba(7,11,18,.7); border: 1px solid rgba(0,150,255,.15); min-width: 0; }
.at .v9pr > div.w { border-color: rgba(0,255,136,.45); }
.at .v9pr .k { font: 700 10.5px var(--at-num); letter-spacing: .14em; color: var(--at-muted); }
.at .v9pr b { font: 400 18px/1.1 var(--font-display); color: var(--at-hi); }
.at .v9pr b small { font-size: 10px; margin-left: 3px; color: var(--at-cyan); }
.at .v9pr .e { font: 700 11px var(--at-num); color: var(--at-cyan); text-align: center; }
.at .v9big { margin-top: 12px; }
.at .v9cf { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; font: 700 12.5px var(--at-num); color: var(--at-ink2); }
.at .v9cf .who { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at .v9cf .who b { overflow: hidden; text-overflow: ellipsis; color: var(--at-hi); }
.at .v9cf .v { flex: none; color: var(--at-hi); }
.at .v9cf .cy { color: var(--at-cyan); }
.at .v9cf .bl { color: var(--at-blue); }
.at .v9cf .zero { color: var(--at-muted); }
.at .v9cf .v9tag { position: static; transform: none; font-size: 9.5px; }
.at .v9cf em.idl { font: 400 9.5px var(--font-display); font-style: normal; color: var(--at-hi); background: var(--at-red); border-radius: 5px; padding: 3px 5px; }

/* the table page: heads and names on a wide table; on a phone the plate is 358 px wide and the names sit under the heads */
.at .v9big .v9stage { max-width: 640px; margin: 0 auto; }
.at .v9 .ar-idle, .at .at-ar .idl { font: 400 9.5px var(--font-display); color: var(--at-hi); background: var(--at-red); border-radius: 5px; padding: 3px 6px; margin-left: 6px; letter-spacing: .06em; }
.at .at-ar .ended { color: var(--at-muted); }

/* the finished list: one row per finished table with a small drawing */
.at .v9done { display: grid; gap: 10px; margin-top: 14px; }
.at .v9df { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(17,24,39,.6); border: 1px solid rgba(0,150,255,.15); color: var(--at-ink); text-decoration: none; min-width: 0; }
.at .v9df .v9stage { width: 150px; }
.at .v9df .hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 700 12px var(--at-num); color: var(--at-muted); }
.at .v9df .pl { display: grid; gap: 4px; margin-top: 6px; }
.at .v9df .pl > div { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font: 700 12.5px var(--at-num); }
.at .v9df .pl .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--at-hi); }
.at .v9df .pl .mine .nm { color: var(--at-green); }
.at .v9df .pl .amt { color: var(--at-cyan); }
.at .v9df .pl .hs, .at .v9df .pl .no { color: var(--at-muted); }
.at .v9df .nt { margin: 6px 0 0; font: 600 12px/1.4 var(--at-num); color: var(--at-ink2); }
.at .v9dsum { font: 700 12px var(--at-num); color: var(--at-ink2); margin-left: 8px; }
@media (max-width: 520px) {
  .at .v9df { grid-template-columns: minmax(0, 1fr); }
  .at .v9df .v9stage { width: 100%; max-width: 260px; margin: 0 auto; }
  .at .v9grid { grid-template-columns: minmax(0, 1fr); }
  .at .v9pr b { font-size: 16px; }
}

/* names: under the head of the top and bottom seats, outside the head of the side seats */
.at .v9s.l .v9lab { left: auto; right: 48px; transform: none; top: -12px; align-items: flex-end; text-align: right; }
.at .v9s.r .v9lab { left: 48px; transform: none; align-items: flex-start; text-align: left; top: -12px; }
.at .v9stage.big .v9s.l .v9tag, .at .v9stage.big .v9s.r .v9tag { top: 30px; }
.at .v9lg { display: none; list-style: none; margin: 10px 0 0 !important; padding: 0 !important; width: 100%; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.at .v9lg li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 10px; background: rgba(7,11,18,.7); border: 1px solid rgba(0,150,255,.15); font: 700 12px var(--at-num); color: var(--at-hi); }
.at .v9lg li.you { border-color: rgba(0,255,136,.55); }
.at .v9lg li.idle { border-color: rgba(255,68,68,.7); }
.at .v9lg .hh { position: relative; flex: none; width: 26px; height: 26px; }
.at .v9lg .hh .v9h { left: 0; top: 0; width: 26px; height: 26px; border-width: 2px; }
.at .v9lg .nn { font-weight: 700; min-width: 0; flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at .v9lg em { margin-left: auto; font: normal 700 11.5px var(--at-num); color: var(--at-ink2); }
.at .v9lg em.idl { color: var(--at-hi); background: var(--at-red); border-radius: 4px; padding: 2px 5px; }
@media (max-width: 640px) {
  .at .v9stage.big { overflow: hidden; }
  .at .v9stage.big .v9lab, .at .v9stage.big .v9tag { display: none; }
  .at .v9lg { display: grid; }
}

/* ET-34608 rework: a house head is neutral with an H (the page muted tokens, no tint) */
.at .v9h.house { --c: var(--at-muted); }
.at .v9h.house img { filter: saturate(0) brightness(.85); }
.at .v9s .v9hh { left: 16px; top: 16px; }
.at .v9stage.big .v9s .v9hh { left: 20px; top: 20px; }
.at .v9hh { position: absolute; min-width: 16px; padding: 1px 4px; border-radius: 6px; text-align: center; font: 400 11px/1.2 var(--font-display); color: var(--at-hi); background: var(--at-muted); }
.at .v9stage.big .v9hh { min-width: 18px; font-size: 12px; }
.at .v9lg .hh .v9hh { display: none; }

/* Live now: the four switch groups */
.at .v9lh { margin-bottom: 8px; }
.at .v9sw { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 0 0 16px; }
.at .v9sw > div, .at .v9octl > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.at .v9sw .at-seg, .at .v9octl .at-seg { align-self: flex-start; }

/* Open: ONE large table with the switches beside it, "Table N of M" with arrows, TAKE A SEAT, and a rail of small tables under it */
.at .v9ohd .v9create { margin-left: auto; padding: 11px 18px; color: var(--at-cyan); border: 1.5px solid var(--at-cyan); background: var(--at-cyan-soft); box-shadow: 0 0 18px rgba(0,207,255,.25); }
.at .v9open { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 22px 28px; align-items: start; }
.at .v9oleft { min-width: 0; }
.at .v9oc { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; border-radius: 18px; background: rgba(17,24,39,.6); border: 1px solid rgba(0,150,255,.15); }
.at .v9oc[hidden], .at .v9rl[hidden] { display: none; }
.at .v9oc .v9ch { flex-wrap: nowrap; }
.at .v9oc .v9sn { margin-left: auto; font-size: 12px; }
.at .v9oc .v9w svg { width: 30px; height: 33px; }
.at .v9oc .v9w b { font-size: 17px; }
.at .v9oc .v9felt .v { font-size: 64px; }
.at .v9sl { margin: 0; font: 700 12.5px var(--at-num); color: var(--at-ink2); }
.at .v9octl { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.at .v9nav { display: flex; align-items: center; gap: 8px; }
.at .v9nav button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--at-line); background: var(--at-sunk); color: var(--at-hi); font: 400 18px/1 var(--font-display); cursor: pointer; }
.at .v9nav button:hover { border-color: rgba(0,207,255,.55); }
.at .v9ni { padding: 0 10px; font: 700 13px var(--at-num); color: var(--at-ink2); white-space: nowrap; }
.at .v9ni b { color: var(--at-hi); }
.at .v9take { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 380px; min-height: 58px; border-radius: 14px; text-decoration: none; font: 400 17px var(--font-display); letter-spacing: .06em; color: var(--at-on-green); background: var(--at-green); box-shadow: 0 10px 30px -10px rgba(0,255,136,.7); }
.at .v9take[aria-disabled="true"] { background: var(--at-panel2); color: var(--at-muted); box-shadow: none; pointer-events: none; }
.at .v9take .at-to svg { width: 18px; height: 18px; }
.at .v9ohint { margin: 0; max-width: 380px; }
.at .v9rail { grid-column: 1 / -1; display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; }
.at .v9rl { flex: none; width: 150px; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 14px; text-align: left; cursor: pointer; color: var(--at-ink); background: rgba(17,24,39,.6); border: 1px solid rgba(0,150,255,.15); }
.at .v9rl[aria-current="true"] { border-color: var(--at-cyan); box-shadow: 0 0 0 1px rgba(0,207,255,.5); }
.at .v9rl .v9felt .k { font-size: 18px; }
.at .v9rl .v9felt .v { font-size: 56px; }
.at .v9rm { display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 700 11px var(--at-num); color: var(--at-green); }
.at .v9rm .v9w svg { width: 20px; height: 22px; }
.at .v9rm .v9w b { font-size: 11px; }
.at .v9rs { font: 700 11px var(--at-num); color: var(--at-ink2); }

/* Finished tables: one line, the rows folded under it */
.at details.at-done > summary { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.at details.at-done > summary::-webkit-details-marker { display: none; }
.at .v9dsum { margin-left: 0; }
.at .v9dsum b { color: var(--at-hi); }
.at .v9dsum b.pos { color: var(--at-green); } .at .v9dsum b.neg { color: var(--at-red); } .at .v9dsum b.zero { color: var(--at-muted); }
.at .v9chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--at-muted); border-bottom: 2px solid var(--at-muted); transform: rotate(45deg); }
.at details.at-done[open] .v9chev { transform: rotate(-135deg); }

/* Your agents: a column for each thing */
.at .v9agents { gap: 8px; }
.at .v9ah, .at .at-ar.v9r { grid-template-columns: 44px minmax(0, 1.5fr) 150px minmax(124px, 150px) 64px 92px minmax(0, 1fr); }
.at .v9ah { display: grid; gap: 12px; padding: 0 14px; font: 700 10.5px var(--at-num); letter-spacing: .14em; text-transform: uppercase; color: var(--at-muted); }
.at .at-ar.v9r .nm { display: flex; align-items: center; align-content: center; flex-wrap: wrap; gap: 4px 8px; overflow: visible; }
.at .at-ar.v9r .nm .idl { white-space: nowrap; line-height: 1.2; }
.at .at-ar.v9r .nm b { display: inline; max-width: 100%; }
.at .at-ar.v9r .nm .idl { margin-left: 0; }
.at .at-ar.v9r .tb { display: flex; align-items: center; gap: 10px; }
.at .at-ar.v9r .tl { min-width: 0; }
.at .at-ar.v9r .tl small { font: 700 10.5px var(--at-num); letter-spacing: .08em; color: var(--at-ink2); }
.at .at-ar.v9r .tl small.ended { color: var(--at-muted); }
.at .at-ar.v9r .tl .v9pill { margin-left: 0; width: 100%; }
.at .at-ar.v9r .tl .v9pill .at-cdn { justify-content: flex-start; }
.at .at-ar.v9r .wn { font: 700 12px var(--at-num); text-align: left; }
.at .at-ar.v9r .ask2 { grid-column: 5 / -1; }
.at .at-ar.v9r.idle { border-color: rgba(255,68,68,.45); }
@media (max-width: 860px) {
  .at .v9ah { display: none; }
  .at .at-ar.v9r { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "av nm roi" "av tb rk" "tl tl tl" "wn wn wn"; gap: 6px 10px; }
  .at .at-ar.v9r > .at-ava { grid-area: av; } .at .at-ar.v9r .nm { grid-area: nm; } .at .at-ar.v9r .tb { grid-area: tb; }
  .at .at-ar.v9r .tl { grid-area: tl; } .at .at-ar.v9r .roi { grid-area: roi; } .at .at-ar.v9r .arank { grid-area: rk; text-align: right; } .at .at-ar.v9r .wn { grid-area: wn; }
  .at .at-ar.v9r .ask2 { grid-column: 1 / -1; grid-area: auto; }
  .at .v9open { grid-template-columns: minmax(0, 1fr); }
}

/* Approve all: its words wrap inside the button instead of running over each other (phone) */
.at .at-asks .at-btn.blue { white-space: normal; flex-wrap: wrap; text-align: center; line-height: 1.25; }
.at .at-asks .at-btn.blue .sm-note { flex-basis: 100%; margin: 0; opacity: 1; color: var(--at-hi); }
@media (max-width: 640px) {
  .at .at-asks-all { flex-direction: column; align-items: stretch; }
  .at .at-asks-all .at-btn { flex: none; width: 100%; padding: 12px 14px; }
}

.at .v9octl > div.v9nav { flex-direction: row; }
.at .v9octl .at-mode { align-self: flex-start; }
.at .v9h.empty { display: flex; align-items: center; justify-content: center; }
.at .v9h.empty::after { content: "+"; font: 400 34px/1 var(--font-display); color: var(--at-cyan); }
.at .v9rl .v9h.empty::after { font-size: 26px; }
/* the stopwatch icons are green */
.at .v9w { color: var(--at-green); }
.at .v9w .tr { stroke: rgba(0,255,136,.25); }
.at .v9w .rg { stroke: var(--at-green); }

/* a tag that is also a button (IDLE explains itself on a tap) keeps its own size, not the 44 px touch box */
.at em.idl[role="button"], .at .at-tag[role="button"], .at .at-seat-idle[role="button"] { min-height: 0; min-width: 0; }
/* the top seat's name sits ABOVE its head so it never lies across the felt */
.at .v9s.top .v9lab { top: auto; bottom: 46px; }
