/* Chip Table (TV): an oval felt table on the night page. Accent Felt Green (--felt). 1920×1080, safe area from cc.css. */
.ct-logo { width: 72px; height: 72px; border-radius: 22px; background: var(--felt) url('../assets/icon.png') center / cover; box-shadow: var(--cushion); }
.ct-main { flex: 1; position: relative; }
.ct-code b { color: var(--text-1); letter-spacing: .12em; }
.cc-header__meta b { color: var(--text-1); font-weight: 700; }

/* ---------- lobby ---------- */
#lobby { margin-top: 56px; }
.ct-lobby__foot { text-align: center; margin-top: 56px; }
.ct-tag { color: var(--text-2); margin: 0 0 32px; }
.ct-need { color: var(--text-2); font-size: 28px; min-height: 36px; margin: 24px 0 0; }
#dealBtn { font-size: 40px; padding: 24px 72px; }

/* ---------- the table ---------- */
.ct-stage { position: absolute; left: 0; top: 0; width: 1760px; height: 840px; }
.ct-felt { position: absolute; left: 290px; top: 165px; width: 1180px; height: 510px; border-radius: 255px; background: #2A1F35;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 14px 0 var(--edge), 0 30px 80px rgba(0,0,0,.45); padding: 22px; }
.ct-felt__inner { width: 100%; height: 100%; border-radius: 233px; position: relative;
  background: radial-gradient(ellipse at 50% 40%, #27B57C 0%, #1E9E6A 45%, #157552 100%);
  box-shadow: inset 0 0 0 4px rgba(255,246,232,.10), inset 0 18px 60px rgba(0,0,0,.35); }
.ct-felt__inner::after { content: ''; position: absolute; left: 70px; right: 70px; top: 54px; bottom: 54px; border-radius: 190px; border: 3px solid rgba(255,246,232,.10); }
.ct-felt__mark { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; font-weight: 900; font-size: 30px; letter-spacing: .5em; color: rgba(12,9,20,.22); direction: ltr; }

.ct-board { position: absolute; left: 880px; top: 348px; transform: translate(-50%, -50%); display: flex; gap: 16px; direction: ltr; }
.ct-slot { width: 112px; height: 157px; border-radius: 12px; background: rgba(12,9,20,.18); box-shadow: inset 0 0 0 3px rgba(255,246,232,.10); position: relative; transition: transform var(--t-fast); }
.ct-slot .ct-card { position: absolute; left: 0; top: 0; }
.ct-slot.is-best { transform: translateY(-14px); }
.ct-slot.is-best .ct-card { box-shadow: 0 0 0 5px var(--warn), 0 7px 0 #0C0914; }
.ct-card.is-new { animation: ct-deal .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ct-deal { from { transform: translate(0, -260px) rotate(-14deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.ct-pots { position: absolute; left: 880px; top: 458px; transform: translateX(-50%); display: flex; gap: 18px; align-items: center; white-space: nowrap; }
.ct-pot { display: flex; align-items: baseline; gap: 12px; background: rgba(12,9,20,.42); border-radius: 999px; padding: 8px 28px; font-size: 30px; color: var(--text-2); font-weight: 700; }
.ct-pot b { color: var(--text-1); font-size: 44px; font-weight: 800; }
.ct-pot--side b { font-size: 34px; }

.ct-banner { position: absolute; left: 880px; top: 440px; transform: translateX(-50%); z-index: 6; pointer-events: none; }
.ct-banner__box { background: rgba(21,17,31,.92); border-radius: 26px; padding: 10px 36px; box-shadow: var(--cushion); text-align: center; white-space: nowrap; animation: cc-pop .4s cubic-bezier(.3,1.6,.5,1); }
.ct-banner__line { font-size: 34px; font-weight: 800; }
.ct-banner__line small { font-size: 28px; color: var(--text-3); font-weight: 700; }
.ct-banner__hand { color: var(--warn); }
.ct-banner__next { font-size: 28px; line-height: 1.2; color: var(--text-2); font-weight: 600; margin-top: 4px; }
.ct-banner__next:empty { display: none; }

/* ---------- seats ---------- */
.ct-pos { position: absolute; width: 0; height: 0; z-index: 3; }
.ct-seat { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.ct-seat__plate { display: flex; align-items: center; gap: 14px; background: var(--surface-1); border-radius: 999px; padding: 8px 30px 8px 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--cushion); min-width: 270px; max-width: 320px; position: relative; z-index: 2; transition: transform var(--t-fast); }
[dir=rtl] .ct-seat__plate { padding: 8px 8px 8px 30px; }
.ct-seat__info { line-height: 1.15; }
.ct-seat__name { font-size: 30px; font-weight: 800; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-seat__chips { font-size: 30px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.ct-status { font-size: 28px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.ct-chipicon { width: 24px; height: 24px; border-radius: 50%; background: var(--felt); box-shadow: inset 0 0 0 4px var(--text-1), inset 0 0 0 7px var(--felt); flex: none; }
.ct-seat.is-turn .ct-seat__plate { background: var(--surface-2); transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--cushion-lift), 0 0 0 6px var(--brand); }
/* out of the hand: dim the avatar only, so the name and status stay readable (AA contrast) */
.ct-seat.is-folded .ct-seat__plate, .ct-seat.is-out .ct-seat__plate { background: #1B1529; }
.ct-seat.is-folded .ct-avwrap, .ct-seat.is-out .ct-avwrap { opacity: .45; }
.ct-seat.is-folded .ct-seat__name, .ct-seat.is-out .ct-seat__name { color: var(--text-2); }
.ct-seat.is-away .ct-avwrap { opacity: .3; }
.ct-seat.is-away .ct-seat__name { color: var(--text-2); }
.ct-seat.is-win .ct-seat__plate { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--cushion), 0 0 0 6px var(--warn); animation: ct-bounce .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes ct-bounce { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: none; } }

/* face-down cards peek out above the plate; shown cards sit larger above it */
.ct-backs { display: flex; margin-bottom: -38px; direction: ltr; }
.ct-backs .ct-card { --cw: 54px; }
.ct-backs .ct-card + .ct-card { margin-left: -22px; transform: rotate(8deg); }
.ct-backs .ct-card:first-child { transform: rotate(-6deg); }
.ct-seat.is-folded .ct-backs { display: none; }
.ct-shown { display: flex; gap: 6px; margin-bottom: -6px; direction: ltr; z-index: 3; position: relative; }
.ct-shown .ct-card { --cw: 84px; animation: ct-flip .5s ease-out both; }
@keyframes ct-flip { from { transform: rotateY(90deg); } to { transform: none; } }
.ct-handname { margin-top: 10px; background: var(--surface-2); color: var(--text-1); border-radius: 999px; padding: 4px 18px; font-size: 28px; font-weight: 800; white-space: nowrap; box-shadow: 0 5px 0 var(--edge); }
.ct-handname.is-win { background: var(--warn); color: #1A0E0A; }
.ct-won { color: var(--good); font-weight: 800; animation: cc-pop .4s cubic-bezier(.3,1.6,.5,1); }

/* anchors: top seats hang down, bottom seats stand up (their labels go above the cards), sides are centred */
.ct-pos--0 .ct-seat, .ct-pos--1 .ct-seat { transform: translate(-50%, 0); }
.ct-pos--4 .ct-seat, .ct-pos--5 .ct-seat { transform: translate(-50%, -100%); }
.ct-pos--0 .ct-seat__plate, .ct-pos--1 .ct-seat__plate { order: -1; }
.ct-pos--0 .ct-backs, .ct-pos--1 .ct-backs { margin: -38px 0 0; }
.ct-pos--0 .ct-shown, .ct-pos--1 .ct-shown { margin: -6px 0 0; }
.ct-pos--0 .ct-shown .ct-card, .ct-pos--1 .ct-shown .ct-card { --cw: 68px; }
.ct-pos--4 .ct-handname, .ct-pos--5 .ct-handname { order: -1; margin: 0 0 10px; }

/* side seats: anchor on the plate's outer edge so a wide hand name never runs past the safe area */
.ct-pos--6 .ct-seat, .ct-pos--7 .ct-seat { align-items: flex-start; transform: translate(-135px, -50%); }
.ct-pos--2 .ct-seat, .ct-pos--3 .ct-seat { align-items: flex-end; transform: translate(calc(-100% + 135px), -50%); }
[dir=rtl] .ct-pos--6 .ct-seat, [dir=rtl] .ct-pos--7 .ct-seat { align-items: flex-end; }   /* flex-start/end follow the text direction */
[dir=rtl] .ct-pos--2 .ct-seat, [dir=rtl] .ct-pos--3 .ct-seat { align-items: flex-start; }
.ct-pos--6 .ct-backs, .ct-pos--7 .ct-backs, .ct-pos--6 .ct-shown, .ct-pos--7 .ct-shown { margin-left: 40px; }
.ct-pos--2 .ct-backs, .ct-pos--3 .ct-backs, .ct-pos--2 .ct-shown, .ct-pos--3 .ct-shown { margin-right: 40px; }

/* turn timer ring around the avatar */
.ct-avwrap { position: relative; display: inline-grid; place-items: center; flex: none; }
.ct-ring { position: absolute; left: -12px; top: -12px; width: 116px; height: 116px; z-index: 4; pointer-events: none; transform: rotate(-90deg); }
.ct-ring__bg { fill: none; stroke: rgba(255,246,232,.14); stroke-width: 8; }
.ct-ring__fg { fill: none; stroke: var(--good); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 0; animation-name: ct-ring; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes ct-ring { 0% { stroke-dashoffset: 0; stroke: var(--good); } 70% { stroke: var(--warn); } 100% { stroke-dashoffset: 339.3; stroke: var(--bad); } }
.ct-ring--plain { border-radius: 50%; box-shadow: 0 0 0 6px var(--brand); left: -6px; top: -6px; width: 104px; height: 104px; transform: none; }

/* action bubble */
.ct-bubble { position: absolute; left: 0; top: -116px; transform: translate(-50%, 10px) scale(.8); opacity: 0; background: var(--text-1); color: #1A0E0A; font-weight: 800; font-size: 30px; padding: 10px 26px; border-radius: 22px; white-space: nowrap; box-shadow: 0 6px 0 var(--edge); transition: transform .25s cubic-bezier(.3,1.5,.5,1), opacity .25s; z-index: 8; }
.ct-bubble::after { content: ''; position: absolute; left: 50%; bottom: -12px; margin-left: -12px; border: 12px solid transparent; border-bottom: 0; border-top-color: var(--text-1); }
.ct-bubble.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ct-pos--0 .ct-bubble, .ct-pos--1 .ct-bubble { top: 150px; }
.ct-pos--4 .ct-bubble, .ct-pos--5 .ct-bubble { top: -196px; }
.ct-pos--2 .ct-bubble, .ct-pos--3 .ct-bubble, .ct-pos--6 .ct-bubble, .ct-pos--7 .ct-bubble { top: -140px; }
.ct-pos--0 .ct-bubble::after, .ct-pos--1 .ct-bubble::after { bottom: auto; top: -12px; border: 12px solid transparent; border-top: 0; border-bottom-color: var(--text-1); }
.ct-bubble--fold { background: var(--bad); } .ct-bubble--fold::after { border-top-color: var(--bad) !important; }
.ct-bubble--raise, .ct-bubble--bet { background: var(--brand); } .ct-bubble--raise::after, .ct-bubble--bet::after { border-top-color: var(--brand) !important; }
.ct-bubble--call, .ct-bubble--check { background: var(--good); } .ct-bubble--call::after, .ct-bubble--check::after { border-top-color: var(--good) !important; }
.ct-pos--0 .ct-bubble--fold::after, .ct-pos--1 .ct-bubble--fold::after { border-top-color: transparent !important; border-bottom-color: var(--bad); }
.ct-pos--0 .ct-bubble--raise::after, .ct-pos--1 .ct-bubble--raise::after, .ct-pos--0 .ct-bubble--bet::after, .ct-pos--1 .ct-bubble--bet::after { border-top-color: transparent !important; border-bottom-color: var(--brand); }
.ct-pos--0 .ct-bubble--call::after, .ct-pos--1 .ct-bubble--call::after, .ct-pos--0 .ct-bubble--check::after, .ct-pos--1 .ct-bubble--check::after { border-top-color: transparent !important; border-bottom-color: var(--good); }

/* bets in front of each seat */
.ct-bet { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 800; z-index: 2; color: var(--text-1); text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.ct-bet:empty { display: none; }
.ct-stack { position: relative; width: 40px; height: 40px; }
.ct-stack i { position: absolute; left: 0; width: 40px; height: 16px; border-radius: 50%; background: var(--brand); box-shadow: inset 0 0 0 3px #FFF6E8, 0 3px 0 #8C2F24; }
.ct-stack i:nth-child(1) { top: 22px; } .ct-stack i:nth-child(2) { top: 14px; } .ct-stack i:nth-child(3) { top: 6px; }

.ct-dealer { position: absolute; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--text-1); color: #1A0E0A; font-weight: 900; font-size: 32px; display: grid; place-items: center; box-shadow: 0 6px 0 var(--edge), inset 0 0 0 4px #D9CCB6; z-index: 5; left: 0; top: 0; transition: transform .4s ease-out; direction: ltr; }
.ct-dealer[hidden] { display: none; }

/* ---------- layers ---------- */
.ct-settings { width: 980px; }
.ct-settings h2, .ct-info h2, .ct-confirm h2 { font-size: 48px; margin-bottom: 24px; }
.ct-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; padding: 22px 34px; }
.ct-row b { font-weight: 800; color: var(--text-1); }
.ct-row b i { font-style: normal; color: var(--text-3); font-size: 28px; padding: 0 10px; }
.ct-row.is-focused b i { color: var(--accent); }
.ct-note { font-size: 28px; margin: 10px 0 0; }
.ct-info { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1640px !important; width: 1640px; }
.ct-info ol { margin: 0; padding: 0 0 0 40px; font-size: 30px; }
[dir=rtl] .ct-info ol { padding: 0 40px 0 0; }
.ct-info li { margin-bottom: 16px; }
.ct-rank { display: flex; align-items: center; gap: 18px; height: 68px; }
.ct-rank__n { width: 40px; color: var(--text-3); font-weight: 800; }
.ct-rank__name { flex: 1; font-size: 30px; font-weight: 700; }
.ct-rank__cards { display: flex; gap: 6px; direction: ltr; }
.ct-rank__cards .ct-card { --cw: 42px; }
.ct-dim { width: 42px; height: 59px; border-radius: 6px; background: rgba(255,246,232,.08); }
.ct-confirm { text-align: center; }
.ct-confirm__keys { display: flex; gap: 24px; justify-content: center; margin-top: 32px; }

/* ---------- Penny the raccoon dealer (placeholder SVG) ---------- */
.ct-dealerpenny { position: absolute; left: 880px; top: 40px; width: 150px; height: 150px; margin-left: -75px; z-index: 1; pointer-events: none; }
.ct-dealerpenny svg { display: block; }
.ct-lobby__penny { display: inline-block; vertical-align: middle; margin-bottom: 8px; }

/* Privacy policy layer (INFO → ▶) */
.ct-info__more { grid-column: 1 / -1; font-size: 30px; margin: 0; }
.ct-privacy { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; max-width: 1640px !important; width: 1640px; }
.ct-privacy h2 { font-size: 48px; margin-bottom: 24px; }
.ct-privacy__text p { font-size: 28px; line-height: 1.45; margin: 0 0 16px; }
.ct-privacy__qr { text-align: center; font-size: 26px; overflow-wrap: anywhere; padding-top: 72px; }
.ct-privacy__qr svg { display: block; margin: 0 auto 16px; }
