/* ===== Cribbage Patience — the table =====
 * Page chrome (hero, panels, cards, board, lounge overlay) comes from
 * ecrib-word.css; everything here is the solitaire table itself: the hand you
 * pick from, the face-down crib, the deck waiting to be cut, the counted
 * rows and the running scoresheet. */
.cwordy .cp-titlerow { align-items: center; }
.cwordy .cp-titlecrest { flex: 0 0 auto; width: clamp(110px, 22vw, 180px); filter: drop-shadow(0 4px 10px #000); }
.cwordy .cp-crest-svg { width: 100%; height: auto; display: block; }
.cwordy .cp-clue-sub { text-align: center; color: var(--parchment); font-size: 0.95rem; margin: -0.3rem 0 0.4rem; }
.cwordy .cp-clue-sub b { color: var(--gold-hi); }

/* ---- compact vertical rhythm (same trim as Cribble: a laptop screen must
   keep Start and the result buttons above the fold) ---- */
.cp-page .cw-hero { padding: 0.45rem 1rem 0.7rem; }
.cp-page .cw-titlerow { margin: 0; gap: 0.6rem; }
.cp-page .cw-titletext .cw-bigtitle { font-size: clamp(1.5rem, 4.6vw, 2.4rem); }
.cp-page .cw-kicker { font-size: clamp(0.7rem, 2vw, 0.85rem); }
.cp-page .cp-titlecrest { width: clamp(96px, 15vw, 132px); }
.cp-page .cw-lede { margin: 0.25rem auto 0; font-size: 0.95rem; }
.cp-page .cw-main { gap: 0.6rem; padding-bottom: 1.5rem; }
.cp-page .cw-panel { padding: 0.75rem 1rem 0.85rem; gap: 0.5rem; }
.cp-page .cw-panel h2 { font-size: clamp(1.05rem, 3vw, 1.3rem); }
.cp-page .cw-result-word { font-size: clamp(1.3rem, 4vw, 1.9rem); }
.cp-page .cw-result-time { font-size: clamp(1.4rem, 4.5vw, 1.9rem); }
.cp-page .cw-datenav { margin-top: 0.4rem; padding-top: 0.4rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); }

.cp-page, .cp-embed, .cwordy .cp-pick, .cwordy .cp-table, .cp-page .cw-btn, .cp-embed .cw-btn { touch-action: manipulation; }
.cwordy .cp-pick { -webkit-tap-highlight-color: transparent; }

/* ---- instructions ---- */
.cwordy .cp-how { text-align: left; max-width: 660px; margin: 0.3rem auto 0.2rem; }
.cwordy .cp-how-title {
  font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem;
  cursor: pointer; list-style: none; user-select: none;
}
.cwordy .cp-how-title::-webkit-details-marker { display: none; }
.cwordy .cp-how-more { display: inline-block; transition: transform 0.15s ease; margin-left: 0.2rem; }
.cwordy .cp-how[open] .cp-how-more { transform: rotate(180deg); }
.cwordy .cp-how-title:hover { color: var(--gold-hi); }
.cwordy .cp-how:not([open]) .cp-how-title { text-align: center; margin-bottom: 0; }
.cwordy .cp-board-hint { padding: 0.15rem 1rem 0.35rem; font-size: 0.78rem; color: var(--parchment-dim); }
.cwordy .cp-how-list { margin: 0; padding-left: 1.3rem; line-height: 1.4; font-size: 0.9rem; color: var(--parchment); }
.cwordy .cp-how-list li { margin-bottom: 0.25rem; }
.cwordy .cp-how-list b { color: var(--gold-hi); }
.cwordy .cp-demo-row { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; margin-top: 0.5rem; }
.cwordy .cp-demo-cards { justify-content: center; }
.cwordy .cp-demo-cards .cw-card { width: clamp(36px, 8vw, 56px); }
.cwordy .cp-demo-cap { font-size: 0.82rem; color: var(--parchment-dim); text-align: center; max-width: 520px; }
.cwordy .cp-demo-cap b { color: var(--gold-hi); }

/* ---- play: status strip ---- */
.cwordy .cp-status {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 1.8rem;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 0.4rem 1rem; margin-bottom: 0.5rem;
}
.cwordy .cp-status > div { display: flex; align-items: baseline; gap: 0.5rem; }
.cwordy .cp-total-n { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--gold-hi); line-height: 1; }

/* ---- the table ---- */
.cwordy .cp-table {
  display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 0.7rem 1rem 0.8rem; max-width: 760px; margin: 0 auto; width: 100%; box-sizing: border-box;
}
.cwordy .cp-zone { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.cwordy .cp-zone-lab {
  font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  text-align: center;
}
.cwordy .cp-zone-sub { font-family: var(--body); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--parchment-dim); font-size: 0.8rem; margin-left: 0.4rem; }
.cwordy .cp-cards { display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 1.2vw, 10px); flex-wrap: nowrap; padding-top: 14px; }
.cwordy .cp-cards .cw-card { width: clamp(44px, 11vw, 74px); flex: 0 0 auto; }
.cwordy .cp-hand .cw-card { width: clamp(48px, 13vw, 84px); }
.cwordy .cp-pick { cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.cwordy .cp-pick:hover { transform: translateY(-4px); }
.cwordy .cp-pick.sel { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--gold-hi), 0 8px 16px rgba(0, 0, 0, 0.7); }
.cwordy .cp-pick:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.cwordy .cw-card.carry::after {
  content: 'last cut'; position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(26, 16, 6, 0.85); color: var(--gold-hi); font-family: var(--display); font-weight: 700;
  font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 2px 0;
}
.cwordy .cw-card.thrown { box-shadow: 0 0 0 2px var(--gold-hi), 0 2px 5px rgba(0, 0, 0, 0.7); }

/* Face-down cards and the empty crib slots. */
.cwordy .cw-card.cp-back {
  background: #1a1006 url('/images/blackCardBack.png?v=1.66j') center / 100% 100% no-repeat; border-color: #3a2a12;
}
.cwordy .cw-card.cp-deck { position: relative; overflow: visible; }
/* Crib and the deck share a row where there's room; the hand gets its own. */
.cwordy .cp-top { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1rem, 6vw, 4rem); flex-wrap: wrap; }
.cwordy .cp-zone-deck { max-width: 190px; }
.cwordy .cp-zone-deck .cp-mycrib-note { text-align: center; line-height: 1.3; }
.cwordy .cp-pc.red { color: #ff8a7a; }
.cwordy .cp-sheet-full td i .cp-pc { color: var(--gold); }
.cwordy .cp-deck-n {
  position: absolute; right: -6px; top: -8px; min-width: 1.4em; padding: 0 0.35em; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 0.7rem; line-height: 1.5;
  text-align: center; box-shadow: 0 1px 3px #000;
}
.cwordy .cp-slot {
  width: clamp(44px, 11vw, 74px); aspect-ratio: 69 / 94; border-radius: 5px; flex: 0 0 auto;
  border: 2px dashed var(--rule); background: rgba(0, 0, 0, 0.25); transition: border-color 0.15s ease, background-color 0.15s ease;
}
.cwordy .cp-slot.filled { border-style: solid; border-color: var(--gold-hi); background: rgba(242, 201, 76, 0.18); }

/* The counted rows: number first, breakdown after. */
.cwordy .cp-score {
  display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  animation: cp-rise 0.4s ease both; animation-delay: 0.25s;
}
.cwordy .cp-score b { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--gold-hi); line-height: 1; }
.cwordy .cp-score span { font-size: 0.85rem; color: var(--parchment-dim); }
.cwordy .cp-counted .cp-cards { padding-top: 4px; }
.cwordy .cw-card.cp-flip { animation: cp-flip 0.45s ease-in-out both; }
@keyframes cp-flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes cp-rise { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }

.cwordy .cp-actions { display: flex; justify-content: center; margin-top: 0.2rem; }
.cwordy .cp-actions .cw-btn { min-width: 240px; }
.cwordy .cp-actions .cw-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cwordy .cp-next-sub { display: block; font-size: 0.72rem; font-weight: 400; letter-spacing: 0; opacity: 0.8; }

/* ---- "your crib" — it has to be obvious whose it is ---- */
.cwordy .cp-mycrib { padding: 0.4rem 0.9rem 0.5rem; border: 1px solid var(--gold); border-radius: var(--radius); background: rgba(242, 201, 76, 0.07); }
.cwordy .cp-mycrib-lab { color: var(--gold-hi); font-size: 0.95rem; letter-spacing: 0.16em; }
.cwordy .cp-mycrib-lab .cp-zone-sub b { color: var(--gold-hi); font-weight: 900; }
.cwordy .cp-mycrib-note { font-size: 0.72rem; color: var(--parchment-dim); margin-top: 0.1rem; }
.cwordy .cp-linkbtn { background: none; border: none; color: var(--gold); font-family: var(--body); font-size: 0.8rem; cursor: pointer; text-decoration: underline; padding: 0.2rem 0.4rem; }
.cwordy .cp-linkbtn:hover { color: var(--gold-hi); }
.cwordy .cp-kept { padding-top: 6px; }
.cwordy .cp-actions .cw-btn u { text-decoration: underline; text-underline-offset: 3px; }

/* ---- the cut: the deck fanned face down, like the table ---- */
.cwordy .cp-zone-cut { margin-top: 0.2rem; }
.cwordy .cp-cut-lab { color: var(--gold-hi); }
.cwordy .cp-fanwrap { width: 100%; overflow-x: auto; overflow-y: hidden; padding: 0.25rem 0 0.4rem; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.cwordy .cp-fan { --cp-fan-w: 56px; position: relative; margin: 0 auto; }
.cwordy .cp-fan-card {
  position: absolute; width: var(--cp-fan-w); cursor: pointer;
  transition: left 0.3s ease-out, top 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.15s ease;
  transform-origin: 50% 90%;
}
.cwordy .cp-fan-card:hover, .cwordy .cp-fan-card:focus-visible { box-shadow: 0 0 0 2px var(--gold-hi), 0 8px 16px rgba(0, 0, 0, 0.7); z-index: 200 !important; margin-top: -10px; outline: none; }
.cwordy .cp-fan-card.picked { box-shadow: 0 0 0 3px var(--gold-hi), 0 8px 18px rgba(0, 0, 0, 0.8); z-index: 300 !important; margin-top: -14px; }
@media (prefers-reduced-motion: reduce) { .cwordy .cp-fan-card { transition: none; } }

/* ---- the scoresheet ---- */
.cwordy .cp-sheet { max-width: 760px; margin: 0.6rem auto 0; width: 100%; }
.cwordy .cp-sheet-t {
  width: 100%; border-collapse: collapse; font-size: 0.85rem; color: var(--parchment);
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
}
.cwordy .cp-sheet-t th {
  font-family: var(--display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  padding: 0.35rem 0.6rem; text-align: center; border-bottom: 1px solid var(--rule);
}
.cwordy .cp-sheet-t td { padding: 0.28rem 0.6rem; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.cwordy .cp-sheet-t td.n { font-family: var(--display); font-weight: 700; color: var(--parchment-dim); }
.cwordy .cp-sheet-t td.run { font-weight: 900; color: var(--gold-hi); }
.cwordy .cp-sheet-t tr.todo td { color: var(--parchment-dim); opacity: 0.55; }
.cwordy .cp-sheet-full td { font-size: 0.8rem; }
.cwordy .cp-sheet-full td i { color: var(--gold); font-style: normal; }
.cwordy .cp-sheet-done { margin: 0.4rem auto 0.3rem; }
.cwordy .cp-board-counts { padding: 0.4rem 1rem 0.6rem; font-size: 0.78rem; color: var(--parchment-dim); text-align: right; }

/* ---- lounge: overlay bar crest + Play-panel preview ---- */
.cwordy .cp-barcrest { width: 54px; height: auto; vertical-align: middle; margin-right: 8px; }
.cw-preview-banner .cp-logo { width: 100%; max-width: 190px; height: auto; display: block; }
.cs-mini-logo.cp-mini-logo { height: 22px; width: auto; }
.lounge-create-puzzles-fan .cs-mini-logo.cp-mini-logo { height: 16px; width: auto; }
.cs-mini-logo-wrap .cs-mini-logo.cp-mini-logo { width: 80%; height: auto; }
.cp-embed .cw-lb-panel .cw-table th:nth-child(3), .cp-embed .cw-lb-panel .cw-table td.ms { width: 3.6rem; }
/* In the overlay the puzzle column is narrower. */
.cp-embed .cp-table, .cp-embed .cp-sheet { max-width: 720px; }

/* ---- lounge overlay, wide: the table alone in the middle column, the
   deal · total · time strip and the running scoresheet in the right-hand
   panel above the board. Nothing below the table, so a laptop screen holds a
   whole deal without scrolling and the sheet never pushes the cards around
   (Damien 2026-10-20: "way too much scrolling … have the running scores and
   total on the right"). ---- */
.cp-embed .cp-inpage { display: none; }
.cp-embed .cp-playing .cw-hero { display: none; }
.cp-embed .cp-playing .cw-main { padding-top: 0.6rem; padding-bottom: 0.6rem; gap: 0.45rem; }
.cp-embed .cp-playing .cp-table { padding: 0.55rem 0.8rem 0.65rem; gap: 0.45rem; }
.cp-embed .cp-playing .cp-top { gap: clamp(1rem, 3vw, 2.5rem); }
.cp-embed .cp-side { display: flex; flex-direction: column; padding-bottom: 150px; }   /* room under the board for the avatar */
.cp-embed .cp-side .cw-board { display: block; flex: 0 0 auto; border: none; border-radius: 0; background: transparent; }
.cp-embed .cp-side-score { padding: 0.55rem 0.6rem 0.45rem; border-bottom: 1px solid var(--rule); background: rgba(0, 0, 0, 0.18); }
.cp-embed .cp-side-score .cp-status { gap: 0.4rem 1.1rem; padding: 0.35rem 0.6rem; margin-bottom: 0.45rem; }
.cp-embed .cp-side-score .cp-total-n { font-size: 1.5rem; }
.cp-embed .cp-side-score .cw-clock { font-size: 1.25rem; }
.cp-embed .cp-side-score .cw-miss { font-size: 1rem; }
.cp-embed .cp-side-score .cp-sheet { margin: 0; }
.cp-embed .cp-side-score .cp-sheet-t { font-size: 0.82rem; }
.cp-embed .cp-side-score .cp-sheet-t th { padding: 0.3rem 0.4rem; }
.cp-embed .cp-side-score .cp-sheet-t td { padding: 0.22rem 0.4rem; }
.cp-embed .cw-avatar-img { width: 84px; height: 84px; }
@media (max-width: 820px) {
  /* Phone: the side panel is gone, so the strip and the sheet come back in-page. */
  .cp-embed .cp-inpage { display: block; }
  .cp-embed .cp-playing .cw-hero { display: block; }
  .cp-embed .cp-playing .cw-lede { display: none; }
}

@media (max-width: 560px) {
  .cwordy .cp-cards { gap: 4px; }
  .cwordy .cp-cards .cw-card, .cwordy .cp-slot { width: clamp(38px, 12.5vw, 52px); }
  .cwordy .cp-hand .cw-card { width: clamp(44px, 14vw, 58px); }
  .cwordy .cp-table { padding: 0.6rem 0.5rem 0.7rem; }
  .cwordy .cp-zone-sub { display: block; margin: 0.1rem 0 0; }
  .cwordy .cp-score b { font-size: 1.3rem; }
  .cwordy .cp-sheet-t td, .cwordy .cp-sheet-t th { padding-left: 0.35rem; padding-right: 0.35rem; }
  .cwordy .cp-sheet-full td { font-size: 0.7rem; }
  .cwordy .cp-barcrest { width: 44px; }
  .cwordy .cp-actions .cw-btn { min-width: 0; width: 100%; }
  .cwordy .cp-fan { --cp-fan-w: 46px; }
  .cwordy .cp-mycrib { padding: 0.35rem 0.5rem 0.45rem; }
}

/* The scoresheet runs the length of the puzzle column, so the shared
   bottom-left avatar would sit on top of it; in this overlay it lives at the
   bottom of the board panel instead, where nothing scrolls under it. */
.cp-embed .cw-avatar { left: auto; right: 18px; }
@media (max-width: 1180px) { .cp-embed .cw-avatar { display: none; } }

/* ---- compare: your deal next to another player's (click a board row) ----
   Same six cards and starter every deal for everyone, so each deal shows the
   dealt cards once and the two keeps side by side — green glow when the four
   kept match, red when they don't. ---- */
.cwordy .cw-table tr.cp-row { cursor: pointer; }
.cwordy .cw-table tr.cp-row:hover td { background: rgba(242, 201, 76, 0.1); }
.cp-cmp-overlay {
  position: fixed; inset: 0; z-index: 13000; background: rgba(0, 0, 0, 0.74);
  display: flex; align-items: center; justify-content: center; padding: 0.75rem; box-sizing: border-box;
}
.cp-cmp-overlay .cp-cmp {
  position: relative; width: min(880px, 100%); max-height: 94vh; overflow-y: auto; box-sizing: border-box;
  background: var(--ground); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 0.8rem 1rem 1rem; color: var(--parchment); box-shadow: 0 20px 60px #000;
}
.cp-cmp-overlay .cp-cmp-x {
  position: absolute; top: 0.35rem; right: 0.5rem; background: none; border: none; color: var(--gold);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem;
}
.cp-cmp-overlay .cp-cmp-x:hover { color: var(--gold-hi); }
.cp-cmp-overlay .cp-cmp-head { text-align: center; margin-bottom: 0.5rem; }
.cp-cmp-overlay .cp-cmp-head h2 { margin: 0 1.5rem 0.3rem; font-size: clamp(1.05rem, 3vw, 1.35rem); }
.cp-cmp-overlay .cp-cmp-totals { display: flex; justify-content: center; gap: 0.6rem 1.6rem; flex-wrap: wrap; }
.cp-cmp-overlay .cp-cmp-total { display: flex; align-items: baseline; gap: 0.5rem; }
.cp-cmp-overlay .cp-cmp-who { font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.cp-cmp-overlay .cp-cmp-total.me .cp-cmp-who { color: var(--gold-hi); }
.cp-cmp-overlay .cp-cmp-tot { font-family: var(--display); font-weight: 900; font-size: 1.15rem; color: var(--gold-hi); }
.cp-cmp-overlay .cp-cmp-note { font-size: 0.82rem; color: var(--parchment-dim); margin-top: 0.35rem; }
.cp-cmp-overlay .cp-cmp-key { font-weight: 700; padding: 0 0.3rem; border-radius: 4px; }
.cp-cmp-overlay .cp-cmp-key.same { color: #3fe08f; box-shadow: 0 0 0 1px #3fe08f; }
.cp-cmp-overlay .cp-cmp-key.diff { color: #ff6b6b; box-shadow: 0 0 0 1px #ff6b6b; }
.cp-cmp-overlay .cp-cmp-deals { display: flex; flex-direction: column; gap: 0.45rem; }
.cp-cmp-overlay .cp-cmp-deal { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.45rem 0.6rem 0.55rem; }
.cp-cmp-overlay .cp-cmp-dealhead { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.cp-cmp-overlay .cp-cmp-n { font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); flex: 0 0 auto; }
.cp-cmp-overlay .cp-cmp-dealt { display: flex; align-items: center; gap: 3px; flex: 1 1 auto; }
.cp-cmp-overlay .cp-cmp-dealt .cw-card.mini { width: 36px; }
.cp-cmp-overlay .cp-cmp-dealt .cw-cut-sep { margin: 0 2px; }
.cp-cmp-overlay .cp-cmp-verdict { font-family: var(--display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; margin-left: auto; white-space: nowrap; }
.cp-cmp-overlay .cp-cmp-verdict.same { color: #3fe08f; }
.cp-cmp-overlay .cp-cmp-verdict.diff { color: #ff6b6b; }
.cp-cmp-overlay .cp-cmp-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cp-cmp-overlay .cp-cmp-side {
  border: 2px solid var(--rule); border-radius: 8px; padding: 0.4rem 0.5rem 0.45rem; text-align: center;
  background: rgba(0, 0, 0, 0.2);
}
.cp-cmp-overlay .cp-cmp-side.same { border-color: #3fe08f; box-shadow: 0 0 0 1px rgba(63, 224, 143, 0.5), 0 0 16px 2px rgba(63, 224, 143, 0.6), inset 0 0 12px rgba(63, 224, 143, 0.12); }
.cp-cmp-overlay .cp-cmp-side.diff { border-color: #ff5a5a; box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.5), 0 0 16px 2px rgba(255, 90, 90, 0.55), inset 0 0 12px rgba(255, 90, 90, 0.12); }
.cp-cmp-overlay .cp-cmp-sidehead { font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; display: flex; align-items: baseline; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.cp-cmp-overlay .cp-cmp-sidehead b { font-size: 1.15rem; color: var(--gold-hi); font-weight: 900; }
.cp-cmp-overlay .cp-cmp-sub { font-family: var(--body); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--parchment-dim); font-size: 0.78rem; }
.cp-cmp-overlay .cp-cmp-cards { display: flex; justify-content: center; gap: 5px; }
.cp-cmp-overlay .cp-cmp-cards .cw-card { width: clamp(46px, 9.5vw, 76px); }
.cp-cmp-overlay .cp-cmp-threw { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 0.45rem; }
.cp-cmp-overlay .cp-cmp-threw-lab { font-family: var(--display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment-dim); margin-right: 0.3rem; }
.cp-cmp-overlay .cp-cmp-threw .cw-card.tossed { width: clamp(36px, 7vw, 54px); outline: 2px solid var(--gold-hi); outline-offset: 1px; box-shadow: 0 0 8px rgba(242, 201, 76, 0.7); }
.cp-cmp-overlay .cp-cmp-none { opacity: 0.6; }
.cp-cmp-overlay .cw-btnrow { margin-top: 0.7rem; }
@media (max-width: 520px) {
  .cp-cmp-overlay { padding: 0.4rem; }
  .cp-cmp-overlay .cp-cmp { padding: 0.7rem 0.6rem 0.8rem; }
  .cp-cmp-overlay .cp-cmp-dealt .cw-card.mini { width: 26px; }
  .cp-cmp-overlay .cp-cmp-cards .cw-card { width: 38px; }
  .cp-cmp-overlay .cp-cmp-threw .cw-card.tossed { width: 30px; }
  .cp-cmp-overlay .cp-cmp-sides { gap: 0.35rem; }
}
.cp-cmp-overlay .cp-cmp-last .cp-cmp-dealt .cw-card.mini { width: clamp(46px, 9.5vw, 76px); }
.cp-cmp-overlay .cp-cmp-last .cp-cmp-dealt { gap: 5px; }

/* ---- result: points and time on one line (Damien 2026-10-20), and a
   tighter sheet in the overlay so the result screen fits without a scroll ---- */
.cwordy .cp-result-line { display: flex; justify-content: center; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.cwordy .cp-result-sep { color: var(--gold); font-size: 1.4rem; line-height: 1; }
.cp-embed .cp-sheet-done .cp-sheet-t td { padding-top: 0.18rem; padding-bottom: 0.18rem; }
.cp-embed .cp-sheet-done .cp-sheet-t th { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.cp-embed .cp-sheet-done { margin: 0.3rem auto 0.2rem; }
.cp-embed .cw-result-sub { margin-top: -0.2rem; }
