/* Use the card's reserved border and one exterior pixel, never the face.
   Adjacent board cards have a 3px gutter, so their rings stay separate. */
.card-slot.winning-card-gold .playing-card { outline:none;border-color:#d7a331;box-shadow:0 0 0 1px #d7a331,0 2px 3px #0006; }
.card-slot.winning-card-cyan .playing-card { outline:none;border-color:#36aaa7;box-shadow:0 0 0 1px #36aaa7,0 2px 3px #0006; }
.card-slot.winning-card-gold.winning-card-cyan .playing-card { border-color:#d7a331;box-shadow:0 0 0 1px #36aaa7,0 2px 3px #0006; }
/* Size the frame from its actual lines. A made hand stays on one line; only
   separate board/hand components occupy separate rows. */
.winner-note { position:absolute;top:calc(100% + 22px);left:50%;transform:translateX(-50%);width:max-content;min-width:0;max-width:none;display:grid;justify-items:start;row-gap:1px;padding:3px 6px;border:1px solid #776246;border-radius:4px;background:#171316f5;box-shadow:0 2px 6px #0008;text-align:left;white-space:nowrap;z-index:9;pointer-events:none;font-size:10px;line-height:12px; }
.winner-note[hidden] { display:none; }
.winner-note-header { display:flex;align-items:baseline;justify-content:space-between;flex-wrap:nowrap;column-gap:8px;width:100%;white-space:nowrap; }
.winner-note-header:empty { display:none; }
.winner-note-header > small { flex:0 0 auto;color:#c7ac75;font-size:9px;line-height:12px;font-weight:650;white-space:nowrap;text-transform:uppercase;letter-spacing:.2px; }
.winner-note-header > strong,.winner-note > strong { flex:0 0 auto;color:#f0d18b;font-size:10px;line-height:12px;font-weight:750;white-space:nowrap; }
.winner-note-line { min-width:0;width:max-content;max-width:none;display:block;font-size:10px;line-height:12px;white-space:nowrap; }
.winner-note-line > small { display:block;color:#c7ac75;font-size:9px;line-height:12px;text-transform:uppercase;letter-spacing:.2px;white-space:nowrap; }
.winner-note-line > span { display:block;color:#f4ddb0;font-size:10px;line-height:12px;font-weight:650;white-space:nowrap;word-break:normal;overflow-wrap:normal; }
.winner-note-line > em { display:block;margin-top:1px;color:#d0c0af;font-size:9px;line-height:12px;font-style:normal;white-space:nowrap;word-break:normal;overflow-wrap:normal; }
.winner-note-line[data-tone=cyan] > :is(small,span) { color:#afe2df; }
/* Side seats open towards the centre; the top seat keeps its natural width. */
.seat-3 .winner-note { top:calc(100% + 4px); }
.seat-1 .winner-note,.seat-2 .winner-note { left:0;transform:none;text-align:left; }
.seat-4 .winner-note,.seat-5 .winner-note { left:auto;right:0;transform:none;text-align:right; }
/* Keep lower-side captions in separate columns, clear of the hero's fan. */
.seat-1 .winner-note,.seat-5 .winner-note { top:100%; }
/* Upper-side captions sit in the space above their hands, away from the board. */
.seat-2 .winner-note,.seat-4 .winner-note { top:auto;bottom:100%; }
.seat.hero .winner-note { top:calc(100% + 4px);left:calc(50% - var(--nameplate-half));transform:none;width:max-content;max-width:none; }
.seat.has-winner-note :is(.player-action,.draw-declaration) { visibility:hidden; }
/* Winning faces lift gently inside the original fan. Neither its anchor,
   width nor permanent card layers change when a result is revealed. */
.seat.winner-step-focus .hole-cards .card-slot:is(.winning-card-gold,.winning-card-cyan) { --winning-lift:-5px; }
.community-cards[data-award-label]::before { content:attr(data-award-label);position:absolute;left:0;bottom:calc(100% + 4px);color:#efd18c;font-size:9px;font-weight:650;letter-spacing:.2px;white-space:nowrap; }
.community-cards[data-award-tone=cyan]::before { color:#9edbd8; }
.draw-offer-panel { position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);z-index:7;display:grid;justify-items:center;gap:5px;width:190px;padding:12px 10px;border:1px solid #a38a58;border-radius:8px;background:#21191ef5;box-shadow:0 5px 22px #0009;text-align:center; }
.draw-offer-panel[hidden] { display:none; }
.draw-offer-panel>small{color:#cbb68e;font-size:10px}.draw-offer-panel>strong{font-size:12px;color:#f0e5d1;max-width:100%;overflow:hidden;text-overflow:ellipsis}.draw-offer-panel>span{color:#bdb0b6;font-size:11px;line-height:15px}
.offer-public-card{width:46px;height:65px;position:relative;margin:3px 0}.offer-public-card .playing-card{width:100%;height:100%;transform:none;animation:none}
.offer-decision{display:grid;grid-template-rows:16px minmax(16px,1fr) 44px;gap:4px;padding:2px 0;height:100%;min-height:0}.offer-decision>strong{font-size:13px;color:#dfc797}.offer-decision>p{margin:0;min-height:0;color:#bbaeb6;font-size:11px;line-height:14px}.offer-decision>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.offer-decision button{min-height:44px;padding:6px;border:1px solid #78634b;border-radius:5px;background:#3e302b;color:#eddbb5;font-size:12px;font-weight:650}.offer-decision button:disabled{opacity:.4}
.draw-offer-note{position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;max-width:140px;width:max-content;padding:3px 5px;border:1px solid #6b6256;border-radius:4px;background:#1e181ef2;z-index:8;pointer-events:none}.draw-offer-note[hidden]{display:none}.draw-offer-note>.playing-card{position:relative;flex:0 0 19px;width:19px;height:27px;transform:none;animation:none}.draw-offer-note>.playing-card .card-corner{font-size:10px}.draw-offer-note>.playing-card .card-corner small{font-size:8px}.draw-offer-note>.playing-card .card-suit{font-size:11px}.draw-offer-note>span{color:#ddd0b5;font-size:9px;line-height:12px}.seat-1 .draw-offer-note,.seat-2 .draw-offer-note{left:0;transform:none}.seat-4 .draw-offer-note,.seat-5 .draw-offer-note{left:auto;right:0;transform:none}
.action-panel:has(.choice-participation){padding-top:2px;padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}
.choice-participation{display:grid;grid-template-rows:17px minmax(22px,1fr) 44px;gap:3px;padding:0;height:100%;min-height:0}.choice-participation>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.choice-participation strong{font-size:13px;color:#ecd5a5}.choice-participation [data-choice-countdown]{font-size:11px;font-variant-numeric:tabular-nums;color:#bda579}.choice-participation>p{margin:0;color:#b4a7af;font-size:11px;line-height:14px}.choice-participation>p:first-of-type{display:none}.choice-response-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;gap:3px;min-height:0}.choice-response-list>span{display:flex;flex-direction:column;gap:0;min-width:0;max-width:100%;padding:1px 4px;border:1px solid #4d434a;border-radius:3px;color:#cfc3cc;font-size:9px;line-height:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.choice-response-list small{font-size:8px;line-height:9px;color:#a99ca6}.choice-response-list>[data-choice-status=accepted]{border-color:#537b64}.choice-response-list>[data-choice-status=accepted] small{color:#a9d6b8}.choice-response-list>[data-choice-status=declined]{opacity:.6}.choice-response-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.choice-response-buttons button{min-height:44px;border:1px solid #76644e;border-radius:5px;background:#33282f;color:#ead5af;font-size:13px;font-weight:650}.choice-response-buttons button[aria-pressed=true]{border-color:#b99b61;background:#57422b}.choice-response-buttons button:disabled{opacity:.45}

/* Each public Montana offer stays beside its owner, towards the table centre. */
.offer-note { position:absolute;left:calc(100% + 8px);top:0;transform:none;z-index:14;display:flex;align-items:center;gap:5px;width:106px;padding:4px;border:1px solid #68584a;border-radius:4px;background:#21191ef5;box-shadow:0 2px 6px #0007;pointer-events:none; }
.offer-note[hidden] { display:none; }
.offer-note.pending { border-color:#d4b576;background:#2b211df7; }
.offer-note .offered-card { position:relative;flex:0 0 30px;width:30px;height:43px;border-radius:3px; }
.offer-note .offered-card .playing-card { position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;transform:none;animation:none;border-radius:inherit; }
.offer-note .offered-card .card-corner { top:2px;left:2px;font-size:17px;line-height:.95;letter-spacing:-.6px; }
.offer-note .offered-card .card-corner small { font-size:10px;line-height:1; }
.offer-note .offered-card .card-suit { display:block;right:2px;bottom:2px;font-size:14px;line-height:1; }
.offer-note .offer-status { min-width:0;color:#d1c0aa;font-size:9px;line-height:12px;overflow-wrap:anywhere;text-align:left; }
.offer-note.pending .offer-status { color:#efd9a7; }
.seat-1 .offer-note,.seat-2 .offer-note { left:calc(100% + 8px);right:auto;transform:none; }
.seat-4 .offer-note,.seat-5 .offer-note { left:auto;right:calc(100% + 8px); }
.seat.hero .offer-note { top:0; }
@media(max-width:350px) { .offer-note { width:98px;gap:4px;padding:3px; } }
