/* The world's card games: the score chips, the status line, the choice panel and the little boards laid over the felt (see cardtable.js). */ .ct-scores { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; padding: 0 8px; pointer-events: none; z-index: 30; flex-wrap: wrap; } /* The player chip, on felt: translucent black, 28px, a dot, the name and a number. The current player has an amber outline and glow; the name stays light, never white on amber. */ .ct-chip { display: inline-flex; gap: 6px; align-items: center; height: 28px; padding: 0 var(--sp-3); border: 1px solid transparent; border-radius: 999px; background: rgba(0, 0, 0, 0.34); color: rgba(255, 255, 255, 0.86); font: var(--fs-small) var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; } .ct-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); } .ct-chip b { font: 650 var(--fs-small) var(--font); color: #fff; } .ct-chip .ct-dealer { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff; font: 700 var(--fs-caption) var(--font); font-style: normal; } .ct-chip.ct-trump::before { display: none; } .ct-chip b.ct-red { color: #ff9e94; } .ct-chip.ct-turn { border-color: var(--select-ring); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22); } .ct-chip.ct-turn::before { background: var(--select-ring); } .ct-chip.ct-think::before { animation: gs-pulse 0.9s ease-in-out infinite alternate; } @keyframes gs-pulse { from { opacity: 0.35; } to { opacity: 1; } } /* Phones drop the dot, so a computer's thinking is the ring itself breathing. */ .ct-chip.ct-think { animation: ct-think 0.9s ease-in-out infinite alternate; } @keyframes ct-think { from { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1); } to { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.32); } } /* A figure that just changed: the chip lifts for a moment. */ .ct-chip.ct-bump { animation: ct-bump 0.42s ease-out; } @keyframes ct-bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); background: rgba(245, 158, 11, 0.55); } 100% { transform: scale(1); } } .ct-status { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; z-index: 30; pointer-events: none; } .ct-status-text { padding: 5px var(--sp-3); border-radius: 999px; background: rgba(0, 0, 0, 0.34); color: #fff; font-size: var(--fs-body); line-height: 1.3; text-align: center; max-width: 100%; } .ct-status .ar-btn { pointer-events: auto; } .ct-status .ar-btn[hidden] { display: none; } .ct-panel { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); width: min(100% - 16px, 520px); padding: var(--sp-2); border-radius: var(--r-sheet); background: rgba(0, 0, 0, 0.5); z-index: 35; } .ct-panel[hidden] { display: none; } .ct-choice { min-width: var(--target); min-height: var(--target); padding: 0 14px; font-weight: 600; } .ct-choice.ct-red { color: var(--suit-red); } .ct-choice[aria-pressed="true"] { background: linear-gradient(var(--accent-glow), var(--accent-glow)), var(--surface); border-color: var(--select-ring); color: var(--ink); } .ct-choice.ct-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .ct-choice.ct-primary:disabled { opacity: 0.45; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .ct-lines { flex: 1 1 100%; color: #fff; font-size: var(--fs-small); line-height: 1.45; } .ct-lines p { margin: 1px 0; } .ct-lines .ct-total { font-weight: 700; color: var(--select-ring); } /* On a phone four players and a trump chip share one row: no dot, tight padding, the trump chip is its suit alone. */ @media (max-width: 440px) { .ct-chip { padding: 0 8px; gap: 4px; } .ct-chip::before { display: none; } .ct-scores { flex-wrap: nowrap; gap: 4px; padding: 0 4px; } .ct-chip.ct-trump span { display: none; } } @media (max-width: 400px) { .ct-chip { padding: 0 6px; } } .ct-status-text:empty { display: none; } /* Chip stacks: tokens in the casino colours (materials: they keep their hues), a column to a denomination. */ .ct-pile { position: absolute; left: 0; right: 0; z-index: 18; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); pointer-events: none; } .ct-caption { padding: 2px var(--sp-3); border-radius: 999px; background: rgba(0, 0, 0, 0.34); color: #fff; font-size: var(--fs-small); } .ct-pile:empty { display: none; } .ct-stack { display: inline-flex; align-items: flex-end; gap: 6px; } .ct-col { position: relative; width: 30px; } .ct-token { position: absolute; left: 0; width: 30px; height: 30px; box-sizing: border-box; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, 0.92); background: var(--ct-chip, #b3261e); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.45); } .ct-token::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.55); } .ct-d500 { --ct-chip: #6b46c1; } .ct-d100 { --ct-chip: #232a33; } .ct-d50 { --ct-chip: #d9780b; } .ct-d25 { --ct-chip: #2f855a; } .ct-d10 { --ct-chip: #2b6cb0; } .ct-d5 { --ct-chip: #b3261e; } .ct-d1 { --ct-chip: #9aa3ad; }