/* Chip Table, cook pass (2026-12-04): a lit card room. Loads after game.css and only restyles (same markup and
 * geometry), so going back is deleting this file's <link>. Every texture is CSS or inline SVG made here. */
:root {
  --room: #0B0D0C;
  --rail-hi: #4A2A22; --rail: #2B1712; --rail-lo: #160B08;
  --brass: #D9B26A; --brass-hi: #F4DDA4; --brass-lo: #8C6A2E;
  --felt-hi: #2FA676; --felt-mid: #17825A; --felt-lo: #0A4A33;
  --glass: rgba(14, 12, 18, .82); --glass-line: rgba(244, 221, 164, .16);
  --chip-gold: #F2C46B;
}
/* the room: dark, one warm light over the table, falling off to the corners */
body { background:
  radial-gradient(1500px 820px at 50% 55%, rgba(255, 214, 150, .10), transparent 62%),
  radial-gradient(1200px 700px at 50% 52%, rgba(30, 120, 80, .10), transparent 70%),
  radial-gradient(140% 120% at 50% 45%, #15181A 0%, #0C0E0E 55%, #060707 100%), var(--room) !important; }
.cc-header__logo span b, .cc-header__logo b { color: var(--brass); }
.cc-header__meta { color: rgba(255, 246, 232, .62); }
.cc-header__meta b { color: var(--text-1); }
.cc-hint { color: rgba(255, 246, 232, .55); }

/* ---------- the table: padded leather rail, brass trim, lit felt ---------- */
.ct-felt { padding: 34px; background:
    radial-gradient(120% 90% at 50% 18%, var(--rail-hi) 0%, var(--rail) 45%, var(--rail-lo) 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 220, 190, .14),             /* top edge catches the light */
    inset 0 -8px 18px rgba(0, 0, 0, .55),
    0 0 0 3px #0A0504,
    0 40px 60px -10px rgba(0, 0, 0, .75),               /* the table sits on the floor */
    0 80px 160px rgba(0, 0, 0, .55); }
/* stitched seam along the middle of the rail */
.ct-felt::before { content: ''; position: absolute; inset: 15px; border-radius: 245px; border: 2px dashed rgba(255, 214, 170, .16); pointer-events: none; }
.ct-felt__inner { border-radius: 221px; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E"),
    radial-gradient(70% 75% at 50% 42%, var(--felt-hi) 0%, var(--felt-mid) 48%, var(--felt-lo) 100%);
  box-shadow:
    0 0 0 4px var(--brass-lo), 0 0 0 6px var(--brass), 0 0 0 7px rgba(0, 0, 0, .6),   /* brass trim between rail and felt */
    inset 0 22px 50px rgba(0, 0, 0, .45), inset 0 -10px 40px rgba(0, 0, 0, .35); }
/* the betting line: a thin gold hairline, not a white ring */
.ct-felt__inner::after { left: 86px; right: 86px; top: 64px; bottom: 64px; border-radius: 180px; border: 2px solid rgba(244, 221, 164, .20);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .10); }
/* the table's name, printed into the felt: normal case, darker than the felt */
.ct-felt__mark { bottom: 26px; font-size: 0; letter-spacing: 0; }
.ct-felt__mark::after { content: 'Chip Table'; font-size: 40px; font-weight: 800; letter-spacing: .04em; color: rgba(4, 40, 26, .55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .07); }

/* empty card places on the felt */
.ct-board { gap: 18px; }
.ct-slot { background: rgba(4, 40, 26, .32); box-shadow: inset 0 0 0 2px rgba(244, 221, 164, .18), inset 0 6px 14px rgba(0, 0, 0, .25); border-radius: 11px; }
.ct-slot .ct-card { --cw: 112px; }
.ct-slot.is-best { transform: translateY(-16px); }
.ct-slot.is-best .ct-card { box-shadow: inset 0 0 0 1px rgba(80, 60, 30, .18), 0 0 0 5px var(--brass-hi), 0 0 28px 6px rgba(244, 221, 164, .45), 0 18px 26px rgba(0, 0, 0, .45); }

/* ---------- chips: a real clay chip, edge spots made with a conic gradient ---------- */
.ct-stack { width: 46px; height: 46px; }
.ct-stack i { width: 46px; height: 20px; left: 0; box-sizing: border-box; background: var(--c, #C8243A); border: 3px dashed rgba(255, 246, 232, .92);
  box-shadow: inset 0 0 0 3px var(--c, #C8243A), 0 4px 0 var(--cd, #6E1020), 0 5px 4px rgba(0, 0, 0, .45); }
.ct-stack i:nth-child(1) { top: 24px; --c: #1F3E8C; --cd: #10204B; }
.ct-stack i:nth-child(2) { top: 15px; --c: #C8243A; --cd: #6E1020; }
.ct-stack i:nth-child(3) { top: 6px;  --c: #1B1720; --cd: #000; }
.ct-bet { font-size: 32px; gap: 10px; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.ct-bet b { background: rgba(6, 30, 20, .62); padding: 2px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(244, 221, 164, .2); }

/* the pot: chips + a big number on a dark glass pill with a brass hairline */
.ct-pots { top: 452px; }
.ct-pot { background: rgba(5, 22, 15, .72); box-shadow: inset 0 0 0 1.5px rgba(244, 221, 164, .35), 0 10px 24px rgba(0, 0, 0, .35); padding: 8px 30px 8px 18px; gap: 14px; align-items: center; color: rgba(255, 246, 232, .7); }
[dir=rtl] .ct-pot { padding: 8px 18px 8px 30px; }
.ct-pot::before { content: ''; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: radial-gradient(closest-side, #E0A93C 58%, transparent 60%), repeating-conic-gradient(#FFF6E8 0 14deg, #B9832A 14deg 45deg);
  box-shadow: 0 5px 0 #6B4A14, 0 -3px 0 -1px #E0A93C, 0 6px 8px rgba(0, 0, 0, .5); }
.ct-pot b { color: var(--chip-gold); font-size: 46px; font-variant-numeric: tabular-nums; }
.ct-pot--side::before { width: 30px; height: 30px; }

/* dealer button: a white chip with a printed D */
.ct-dealer { width: 60px; height: 60px; margin: -30px 0 0 -30px; color: #141014; font-size: 30px;
  background: radial-gradient(closest-side, #FFFDF7 62%, #E7DCC6 64%, #FFFDF7 66%, #FFFDF7 100%);
  box-shadow: 0 5px 0 #A69A86, 0 8px 10px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(0, 0, 0, .08); }

/* ---------- seats: dark glass plates with a brass hairline ---------- */
.ct-seat__plate { background: linear-gradient(180deg, rgba(34, 30, 40, .92), rgba(14, 12, 18, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1.5px var(--glass-line), 0 14px 28px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ct-seat__name { color: #FFFDF7; letter-spacing: .01em; }
.ct-seat__chips { color: var(--chip-gold); font-variant-numeric: tabular-nums; }
.ct-chipicon { width: 26px; height: 26px; background: radial-gradient(closest-side, #E0A93C 56%, transparent 58%), repeating-conic-gradient(#FFF6E8 0 16deg, #B9832A 16deg 45deg);
  box-shadow: 0 2px 0 #6B4A14; }
.ct-status { color: rgba(255, 246, 232, .62); }
.cc-av { box-shadow: 0 0 0 3px rgba(244, 221, 164, .55), 0 4px 10px rgba(0, 0, 0, .5); border-radius: 50%; }
/* whose turn: a warm light on the plate and a brass ring, readable across the room */
.ct-seat.is-turn .ct-seat__plate { background: linear-gradient(180deg, #3A3020, #1C160E);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 4px var(--brass-hi), 0 0 36px 6px rgba(244, 200, 110, .40), 0 16px 30px rgba(0, 0, 0, .6); }
.ct-seat.is-folded .ct-seat__plate, .ct-seat.is-out .ct-seat__plate { background: rgba(14, 12, 18, .75); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .06), 0 10px 20px rgba(0, 0, 0, .4); }
.ct-seat.is-folded .ct-avwrap, .ct-seat.is-out .ct-avwrap { opacity: .4; filter: grayscale(1); }
.ct-seat.is-win .ct-seat__plate { background: linear-gradient(180deg, #4A3A18, #20180A);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 5px var(--brass-hi), 0 0 48px 10px rgba(244, 200, 110, .50), 0 16px 30px rgba(0, 0, 0, .6); }
.ct-won { color: #7CF0B6; }
.ct-ring__fg { stroke-width: 9; }
.ct-ring--plain { box-shadow: 0 0 0 6px var(--brass-hi); }

/* face-down cards at a seat: bigger, with a real shadow */
.ct-backs .ct-card { --cw: 60px; }
.ct-shown .ct-card { --cw: 90px; }
.ct-pos--0 .ct-shown .ct-card, .ct-pos--1 .ct-shown .ct-card { --cw: 74px; }

.ct-handname { background: rgba(14, 12, 18, .9); box-shadow: inset 0 0 0 1.5px var(--glass-line), 0 8px 18px rgba(0, 0, 0, .5); }
.ct-handname.is-win { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: #241806; box-shadow: 0 8px 18px rgba(0, 0, 0, .5), 0 0 24px rgba(244, 200, 110, .45); }

/* action bubbles: solid, with a soft shadow instead of the hard offset */
.ct-bubble { box-shadow: 0 10px 22px rgba(0, 0, 0, .5); }

/* ---------- result banner: dark glass with a brass edge, the hand in gold ---------- */
.ct-banner { top: 448px; }
.ct-banner__box { background: linear-gradient(180deg, rgba(20, 16, 12, .94), rgba(8, 7, 6, .96)); border-radius: 22px; padding: 14px 44px 12px;
  box-shadow: inset 0 0 0 2px rgba(244, 221, 164, .45), 0 20px 50px rgba(0, 0, 0, .65); }
.ct-banner__line { font-size: 38px; }
.ct-banner__hand { color: var(--brass-hi); }
.ct-banner__next { color: rgba(255, 246, 232, .7); }

/* ---------- Penny sits on the rail, with a contact shadow ---------- */
.ct-dealerpenny { top: 22px; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .6)); z-index: 2; }

/* ---------- lobby: the join panel as a lit card on the dark room ---------- */
#lobby .cc-lobby { background: linear-gradient(180deg, rgba(30, 26, 22, .86), rgba(12, 10, 9, .9)); border-radius: 36px; padding: 44px 56px;
  box-shadow: inset 0 0 0 1.5px var(--glass-line), 0 30px 70px rgba(0, 0, 0, .6); }
#lobby .cc-label { text-transform: none; letter-spacing: 0; font-size: 34px; font-weight: 800; color: #FFFDF7; font-family: inherit; }
#lobby .cc-lobby__code i { background: linear-gradient(170deg, #FFFDF7, #F1E6D0); color: #1B1720; border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(80, 60, 30, .18), 0 6px 0 #8C7B5C, 0 14px 24px rgba(0, 0, 0, .5); }
#lobby .cc-lobby__qr svg { box-shadow: 0 0 0 6px var(--brass), 0 20px 40px rgba(0, 0, 0, .6); }
#lobby .cc-chip { background: linear-gradient(180deg, rgba(34, 30, 40, .92), rgba(14, 12, 18, .94)); box-shadow: inset 0 0 0 1.5px var(--glass-line), 0 10px 20px rgba(0, 0, 0, .5); }
.ct-lobby__foot { margin-top: 40px; }
.ct-lobby__penny { filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .6)); }
.ct-tag { color: rgba(255, 246, 232, .78); }
#dealBtn { background: linear-gradient(180deg, #2FBF85, #178A5D); color: #04170F; box-shadow: 0 8px 0 #0B5236, 0 18px 30px rgba(0, 0, 0, .5); }
#dealBtn.is-disabled { filter: saturate(.3) brightness(.7); }

/* ---------- layers ---------- */
.cc-layer .cc-card { background: linear-gradient(180deg, #1E1A16, #0F0D0B); box-shadow: inset 0 0 0 1.5px var(--glass-line), 0 30px 80px rgba(0, 0, 0, .7); }

/* lobby, round 2: Penny and the Deal button sit at the near edge of the table (felt + rail coming up from below) */
.ct-lobby__foot { position: relative; padding-top: 10px; }
.ct-lobby__foot > * { position: relative; z-index: 1; }
.ct-lobby__foot::before { content: ''; position: absolute; left: 50%; top: 92px; width: 1500px; height: 620px; margin-left: -750px; border-radius: 50%; z-index: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E"),
    radial-gradient(60% 50% at 50% 30%, var(--felt-hi) 0%, var(--felt-mid) 50%, var(--felt-lo) 100%);
  box-shadow: 0 0 0 4px var(--brass-lo), 0 0 0 6px var(--brass), 0 0 0 40px var(--rail), 0 -3px 0 40px rgba(255, 220, 190, .14), 0 0 0 43px #0A0504, 0 -30px 80px 40px rgba(0, 0, 0, .5); }
.ct-lobby__foot .ct-tag { color: #FFFDF7; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.ct-lobby__foot .ct-need { color: #FFFDF7; }

/* ---------- round 2 (critic: room too flat, rail too thin, felt too even, pot too bare, small dim text) ---------- */
body { background:
  radial-gradient(1500px 820px at 50% 55%, rgba(255, 196, 120, .14), transparent 62%),
  radial-gradient(140% 120% at 50% 45%, #2A1F17 0%, #140E0A 52%, #050404 100%) !important; }
.ct-felt { padding: 42px; background: linear-gradient(180deg, #6A3E2A 0%, #4A2A1C 22%, #2E180F 70%, #1A0C07 100%);
  box-shadow: inset 0 6px 8px rgba(255, 220, 180, .22), inset 0 -10px 14px rgba(0, 0, 0, .6), 0 0 0 3px #0A0504,
    0 40px 60px -10px rgba(0, 0, 0, .8), 0 90px 160px rgba(0, 0, 0, .6); }
.ct-felt::before { inset: 19px; border-radius: 240px; border-color: rgba(255, 214, 170, .22); }
.ct-felt__inner { border-radius: 213px;
  box-shadow: 0 0 0 4px #7A5524, 0 0 0 7px #D9AE5E, 0 0 0 8px rgba(0, 0, 0, .6),
    inset 0 0 120px 30px rgba(0, 0, 0, .5), inset 0 24px 50px rgba(0, 0, 0, .35); }
.ct-felt__mark { display: none; }
/* pot: a stack of three play chips beside the number */
.ct-pot::before { width: 42px; height: 42px; margin: -10px 4px 0 0;
  box-shadow: 0 5px 0 #6B4A14, 0 9px 0 #1F3E8C, 0 13px 0 #10204B, 0 17px 0 #C8243A, 0 21px 0 #6E1020, 0 24px 8px rgba(0, 0, 0, .6); }
.ct-pot b { font-size: 50px; }
/* header numbers and the key hints are read from the couch */
.cc-header__meta { color: rgba(255, 246, 232, .8); font-size: 34px; }
.cc-hint { color: rgba(255, 246, 232, .72); }
/* face-down cards stand fully above the plate */
.ct-backs { margin-bottom: -14px; }
.ct-pos--0 .ct-backs, .ct-pos--1 .ct-backs { margin: -14px 0 0; }
.ct-bubble { font-size: 32px; padding: 10px 28px; }
/* lobby table edge: Penny sits on the rail */
.ct-lobby__foot::before { top: 150px; }
.cc-hint { position: relative; z-index: 2; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
.ct-lobby__foot::before { top: 96px; }
