/* OVERLAY HUNTER: paint for shared, dynamically mounted game surfaces.
 * Coordinates, dimensions, timers, motions and card/chip/avatar artwork stay
 * with their original controllers. Red ALL-IN, green wins and card suits retain
 * their meaning. Every rule requires the trusted Overlay document marker.
 */
/* The baseline skin deliberately excluded these states from ordinary plaque
 * paint. Repaint only their enclosure, and never the ten-second flash phase. */
html[data-site-skin="overlay"] #app #tableView :is(#seats,#seatGhosts) .seat:is(.folded,.all-in,.is-allin,.is-winner,.is-loser) .name-pill:not([data-action-timer-phase="flash"]),
html[data-site-skin="overlay"] #app #tableView #hero:is(.folded,.all-in,.is-allin,.is-winner,.is-loser) .hero-nameplate:not([data-action-timer-phase="flash"]) {
  background:linear-gradient(#37262c,#241c1f) !important;
  border-color:#b66d7f !important;
  box-shadow:inset 0 1px #e3d6d926,0 3px 6px #0005 !important;
}
html[data-site-skin="overlay"] #app #tableView :is(#seats,#seatGhosts) .seat.is-winner .name-pill:not([data-action-timer-phase="flash"]),
html[data-site-skin="overlay"] #app #tableView #hero.is-winner .hero-nameplate:not([data-action-timer-phase="flash"]) {
  box-shadow:inset 0 0 0 1px #9dc8b055,0 0 8px #76bb9b3d !important;
}
html[data-site-skin="overlay"] #app #tableView :is(#seats,#seatGhosts) .seat.is-loser .name-pill:not([data-action-timer-phase="flash"]),
html[data-site-skin="overlay"] #app #tableView #hero.is-loser .hero-nameplate:not([data-action-timer-phase="flash"]) {
  box-shadow:inset 0 0 0 1px #d59a9a33,0 0 8px #ba6d6d26 !important;
}
html[data-site-skin="overlay"] #app #tableView :is(#seats,#seatGhosts) .seat.folded .name-pill:not([data-action-timer-phase="flash"]) :is(.name,.chips),
html[data-site-skin="overlay"] #app #tableView #hero.folded .hero-nameplate:not([data-action-timer-phase="flash"]) :is(.name,.chips) {color:#cbb5ba !important;}

html[data-site-skin="overlay"] :is(#factoryBrassSheet,#hfhWaitDialog) {
  color:#eae0e3 !important;
  border-color:#b66d7f !important;
  background:linear-gradient(145deg,#38272c,#1f181b 32%,#271f21 82%,#2e2025) !important;
  box-shadow:inset 0 1px #e9e0e255,inset 0 -3px #0006,0 8px 22px #0008 !important;
}
html[data-site-skin="overlay"] #factoryBrassSheet :is(.fb-sheet-header,.fb-final-board,.fb-total,.fb-award,.fb-outs-player,.fb-result-pinned,.fb-result-total,.fb-loser,.fb-result-footer) {
  border-color:#b56b7e47 !important;
}
html[data-site-skin="overlay"] #factoryBrassSheet :is(h2,.fb-award-player>b,.fb-outs-player strong) {color:#ebe3e5 !important;}
html[data-site-skin="overlay"] #factoryBrassSheet :is(.fb-sheet-header small,small,.fb-total,.fb-hand-name,.fb-note,.fb-outs-player p,.fb-show-intro,.fb-result-sort,.fb-defeated h3,.fb-loser-detail small,.fb-result-total) {color:#c0a5ac !important;}
html[data-site-skin="overlay"] #factoryBrassSheet :is(.fb-result-eyebrow,.fb-pot-label,.fb-outs-player b,.fb-total strong,.fb-result-total strong,.fb-award-amount>strong:not(.fb-net)) {color:#e5dadc !important;}
html[data-site-skin="overlay"] #factoryBrassSheet [data-fb-close] {
  color:#d0bcc1 !important;
  border-color:#ac5b6f !important;
  background:linear-gradient(#37262c,#241c1f) !important;
}
html[data-site-skin="overlay"] #factoryBrassSheet[data-type="result"] [data-fb-close] {background:none !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-result-pinned {background:#1a151755 !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-award.is-selected {
  background:#d1bdc216 !important;
  box-shadow:inset 2px 0 #dacace !important;
}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-pot-group[data-pot="0"] .fb-pot-header,
html[data-site-skin="overlay"] #factoryBrassSheet .fb-pot-header {
  color:#e5dadd !important;
  border-color:#b9738580 !important;
  background:#a453672b !important;
}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-pot-header i {background:#cfbabf !important;color:#2b1e22 !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-pot-group:not([data-pot="0"]) .fb-pot-header {
  color:#d3c0c5 !important;
  border-color:#a7546980 !important;
  background:#5c404930 !important;
}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-pot-group:not([data-pot="0"]) .fb-pot-header i {background:#bea1a9 !important;color:#271e21 !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-outcome-tag.is-split {color:#decfd3 !important;border-color:#bea1a988 !important;background:#a9556a24 !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-net.is-even {color:#ccb6bc !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-result-footer {background:#1a141680 !important;}
html[data-site-skin="overlay"] #factoryBrassSheet [data-fb-result-countdown] {color:#cfbabf !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-result-progress {background:#af607340 !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-result-progress i {background:#ceb8bd !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-result-scroll-cue {color:#dccdd1 !important;background:#322328 !important;border-color:#b062764a !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-sheet-content {scrollbar-color:#b97385 #261e20 !important;}

/* Preserve the neutral ivory card faces and every suit/used-card treatment. */
html[data-site-skin="overlay"] #factoryBrassSheet .fb-mini-card.is-made {outline-color:#d9c8cc !important;}

/* The compact disclosure island and optional details sheet keep their states. */
html[data-site-skin="overlay"] #factoryBrassDock:not([data-mode="result"]),
html[data-site-skin="overlay"] #factoryBrassDock .fb-disclosure-inline {
  color:#e9e0e2 !important;
  border-color:#af6074 !important;
  background:linear-gradient(145deg,#342429,#1f181a 58%,#2c1f23) !important;
  box-shadow:inset 0 1px #e6dbdd40,inset 0 -2px #0005,0 4px 12px #0007 !important;
}
html[data-site-skin="overlay"] #factoryBrassDock button,
html[data-site-skin="overlay"] #factoryBrassSheet :is(.fb-show-cards>button,.fb-show-actions button) {
  color:#e3d6d9 !important;
  border-color:#aa576b !important;
  background:linear-gradient(145deg,#3c2a30,#251d1f) !important;
  box-shadow:inset 0 1px #e8dfe130,inset 0 -2px #0005,0 2px 4px #0006 !important;
}
html[data-site-skin="overlay"] #factoryBrassDock button:hover {border-color:#d9c8cc !important;}
html[data-site-skin="overlay"] #factoryBrassDock :is(.fb-head,.fb-equity-labels,.fb-rabbit small) {color:#c3a9b0 !important;}
html[data-site-skin="overlay"] #factoryBrassDock :is(.fb-head>strong,.fb-received b,.fb-row>button span[aria-hidden],.fb-equity-labels b) {color:#e4d8db !important;}
html[data-site-skin="overlay"] #factoryBrassDock .fb-equity-labels .is-me,
html[data-site-skin="overlay"] #factoryBrassDock .fb-equity-labels .is-me b {color:#a7d9be !important;}
html[data-site-skin="overlay"] #factoryBrassDock .fb-equity-bar {background:#1e181a !important;}
html[data-site-skin="overlay"] #factoryBrassDock .fb-equity-bar i:not(.is-me) {background:#b77182 !important;border-color:#231c1e !important;}
html[data-site-skin="overlay"] #factoryBrassDock .fb-equity-bar i[data-index="1"]:not(.is-me) {background:#a75469 !important;}
html[data-site-skin="overlay"] #factoryBrassDock .fb-equity-bar i[data-index="2"]:not(.is-me) {background:#c0a4ab !important;}
html[data-site-skin="overlay"] #factoryBrassDock .fb-disclosure-card>span:last-child {color:#d1bcc1 !important;background:#231c1ef2 !important;}
html[data-site-skin="overlay"] #factoryBrassDock button.is-selected,
html[data-site-skin="overlay"] #factoryBrassSheet .fb-show-cards>button.is-selected {
  color:#ebe3e5 !important;
  border-color:#dbcbcf !important;
  box-shadow:inset 0 0 0 1px #d3c0c5,0 0 8px #c2a8ae33 !important;
}
html[data-site-skin="overlay"] #factoryBrassDock .fb-disclosure-card.is-selected>span:last-child {color:#eae1e3 !important;background:#422e35f2 !important;}
html[data-site-skin="overlay"] #factoryBrassDock button.is-disclosed,
html[data-site-skin="overlay"] #factoryBrassSheet .fb-show-cards>button.is-disclosed {color:#b6d8c6 !important;border-color:#82aa8c !important;}
html[data-site-skin="overlay"] #factoryBrassDock .fb-disclosure-card.is-disclosed>span:last-child {color:#b6d8c6 !important;background:#172b22f2 !important;}
html[data-site-skin="overlay"] #factoryBrassDock .fb-rabbit.is-active {border-color:#dacace !important;background:linear-gradient(145deg,#4c353d,#281f22 55%,#3d2a31) !important;}
html[data-site-skin="overlay"] #factoryBrassSheet .fb-show-actions [data-fb-submit],
html[data-site-skin="overlay"] #factoryBrassDock button.fb-disclosure-submit:not(:disabled) {color:#2b1e22 !important;border-color:#d9c9cd !important;background:linear-gradient(135deg,#e8dde0,#c5abb1) !important;}
html[data-site-skin="overlay"] :is(#factoryBrassDock,#factoryBrassSheet) button:focus-visible {outline-color:#dfd1d4 !important;}

/* The SVG is the actual closed bubble outline, including its curved pointer.
 * Repaint its stops/stroke rather than laying a second rectangle across it. */
html[data-site-skin="overlay"] #app #tableView #betChipLayer .allin-outs-bubble:not(.has-contour) {
  color:#eae1e4 !important;
  border-color:#bb9ea5 !important;
  background:linear-gradient(145deg,#38272d,#241c1f 55%,#2d1f24) !important;
  box-shadow:inset 0 1px #e0d2d538,0 4px 10px #0008 !important;
}
html[data-site-skin="overlay"] #app #tableView #betChipLayer .inline-bubble-outline stop:nth-child(1) {stop-color:#38272d !important;}
html[data-site-skin="overlay"] #app #tableView #betChipLayer .inline-bubble-outline stop:nth-child(2) {stop-color:#241c1f !important;}
html[data-site-skin="overlay"] #app #tableView #betChipLayer .inline-bubble-outline stop:nth-child(3) {stop-color:#2d1f24 !important;}
html[data-site-skin="overlay"] #app #tableView #betChipLayer .inline-bubble-outline [data-bubble-contour="outline"] {stroke:#bb9ea5 !important;}
html[data-site-skin="overlay"] #app #tableView #betChipLayer .allin-outs-bubble:not(.is-leading) .inline-equity-pct {color:#e3d7da !important;}
html[data-site-skin="overlay"] #app #tableView #betChipLayer .allin-outs-label {color:#ceb8be !important;}

/* CHECK stays green and ALL-IN stays red; CALL/BET/RAISE use silver. */
html[data-site-skin="overlay"] body > #cardActionFeedbackLayer > .card-action-feedback:not(.all-in-stamp):is([data-card-action-type="call"],[data-card-action-type="bet"],[data-card-action-type="raise"]) {
  color:#2d1f24 !important;
  border-color:#e3d6d9 !important;
  background:linear-gradient(#e8dfe1,#c5abb1) !important;
  text-shadow:0 1px #efe8e980 !important;
}
html[data-site-skin="overlay"] body > #cardActionFeedbackLayer > .card-action-feedback:is([data-card-action-type="fold"],[data-card-action-type="checkfold"]) {color:#ede5e7 !important;border-color:#b76f81 !important;background:linear-gradient(#6d4c57,#4b343c) !important;text-shadow:0 1px #271e21 !important;}
html[data-site-skin="overlay"] #winFxLayer .wsf-stamp {color:#173a2e !important;border-color:#af6074 !important;background:linear-gradient(#eae1e3,#ccb5bb 55%,#8cbdb0) !important;box-shadow:0 3px #62444e,0 6px 14px #0006,inset 0 1px #ffffffa6 !important;}
html[data-site-skin="overlay"] #winFxLayer .wsf-flash {background:radial-gradient(circle,#ede5e7f2,#c7afb580 40%,transparent 70%) !important;}

/* Hidden rail and its existing screen-space menu: no gesture/layout changes. */
html[data-site-skin="overlay"] body #eightTableToolRail {background:#1f181b !important;}
html[data-site-skin="overlay"] body #eightTableToolRail .eight-table-tool,
html[data-site-skin="overlay"] body #eightTableToolRail .eight-tool-name {color:#d6c4c9 !important;}
html[data-site-skin="overlay"] body #eightTableToolRail .eight-tool-suffix {color:#b76f81 !important;}
html[data-site-skin="overlay"] body #eightMobileSafeBottom {background:#161113 !important;}
html[data-site-skin="overlay"] body.holdem-tools-revealed #eightMobileSafeBottom {background:#1f181b !important;}
html[data-site-skin="overlay"] #tableMenuDialog {color:#eae0e3 !important;}
html[data-site-skin="overlay"] #tableMenuDialog .gg-topbar-actions.has-menu-tabs {color:#eae0e3 !important;border-color:#b2677a !important;background:linear-gradient(145deg,#36262b,#261e21 57%,#1f181b) !important;box-shadow:0 18px 70px #000b,inset 0 1px #e4d8db30 !important;}
html[data-site-skin="overlay"] #tableMenuDialog :is(.tm-title,.tm-row) {color:#eae0e3 !important;border-bottom-color:#d5c3c812 !important;}
html[data-site-skin="overlay"] #tableMenuDialog :is(.tm-brand,.tm-icon,.tm-current) {color:#d0bcc1 !important;}
html[data-site-skin="overlay"] #tableMenuDialog :is(.tm-close,.tm-chevron,.tm-note,.tm-lobby) {color:#bc9fa7 !important;}
html[data-site-skin="overlay"] #tableMenuDialog .tm-tabs {border-color:#dac9cd1a !important;background:#1a1416 !important;}
html[data-site-skin="overlay"] #tableMenuDialog .tm-tab {color:#c1a5ac !important;}
html[data-site-skin="overlay"] #tableMenuDialog .tm-tab:is(.is-active,[aria-selected="true"]) {color:#2c1f23 !important;background:linear-gradient(#e3d7da,#c8afb6) !important;box-shadow:inset 0 1px #f1eaecbb !important;}
html[data-site-skin="overlay"] #tableMenuDialog .tm-content {scrollbar-color:#b77182 transparent !important;}
html[data-site-skin="overlay"] #tableMenuDialog .tm-switch {background:#563c44 !important;box-shadow:inset 0 0 0 1px #d4c1c622 !important;}
html[data-site-skin="overlay"] #tableMenuDialog .tm-switch::after {background:#eae1e4 !important;}
html[data-site-skin="overlay"] #tableMenuDialog .tm-toggle[aria-checked="true"] .tm-switch {background:#b99ba2 !important;}
html[data-site-skin="overlay"] #tableMenuDialog .tm-footer {border-color:#b974854d !important;}
html[data-site-skin="overlay"] #tableMenuDialog .tm-danger > #sitOutToggle {color:#d6c4c8 !important;border-color:#c9b2b84a !important;}
html[data-site-skin="overlay"] :is(#tableMenuDialog button,#eightTableToolRail .eight-table-tool,#eightToolToggleBtn):focus-visible {outline-color:#dfd1d4 !important;}

/* Waiting/hand-for-hand controls share the same surface; completion stays green. */
html[data-site-skin="overlay"] :is(#sitOutActionState,#hfhWaitPanel) {color:#e6dbde !important;border-color:#b06175 !important;background:linear-gradient(145deg,#37262c,#241c1f) !important;box-shadow:inset 0 1px #e4d8db40,inset 0 -2px #0006,0 3px 10px #0005 !important;}
html[data-site-skin="overlay"] #sitOutActionState small {color:#c1a6ad !important;}
html[data-site-skin="overlay"] #sitOutActionState>button {color:#2e2024 !important;border-color:#d6c4c9 !important;background:linear-gradient(#e7dcde,#c4aab0) !important;}
html[data-site-skin="overlay"] #hfhWaitDialog :is(.hfh-dialog-head,.hfh-counts,.hfh-progress,.hfh-short-row,.hfh-dialog-foot) {border-color:#b3697b4a !important;}
html[data-site-skin="overlay"] #hfhWaitDialog :is(.hfh-dialog-head small,.hfh-counts,.hfh-progress-label,.hfh-shorts-title span,.hfh-short-player small:not(.is-allin):not(.is-done),.hfh-short-bb small,.hfh-dialog-foot,.hfh-empty) {color:#c4aab1 !important;}
html[data-site-skin="overlay"] #hfhWaitDialog :is(.hfh-dialog-head h2,.hfh-counts strong,.hfh-progress-label strong,.hfh-shorts-title h3,.hfh-short-player strong,.hfh-short-bb,.hfh-dialog-close) {color:#e5dadc !important;}
html[data-site-skin="overlay"] #hfhWaitDialog .hfh-table-id {color:#e3d7da !important;border-color:#b7718277 !important;background:#9b4e6126 !important;}
html[data-site-skin="overlay"] #hfhWaitDialog .hfh-table-progress .is-playing {color:#ded0d4 !important;border-color:#b97485 !important;background:#48323966 !important;}
html[data-site-skin="overlay"] #hfhWaitDialog .hfh-table-progress .is-playing i {color:#ded0d4 !important;}
html[data-site-skin="overlay"] #hfhWaitDialog .hfh-dialog-foot {background:#1a151766 !important;}
html[data-site-skin="overlay"] #hfhWaitPanel .hfh-launch,
html[data-site-skin="overlay"] #hfhWaitPanel .hfh-launch>strong {color:#decfd3 !important;}
html[data-site-skin="overlay"] :is(#sitOutActionState>button,#hfhWaitDialog button,#hfhWaitPanel .hfh-launch):focus-visible {outline-color:#e0d2d5 !important;}
