/* Current game-wide clarity and metal materials, after the original poker skin. */
.poker-card.gold{--card-ink:#30200b;--metal:#79500a;background:linear-gradient(125deg,#f5dc8b,#dbb447 58%,#e9c75d)}
.poker-card.silver{--card-ink:#152b3b;--metal:#38596f;background:linear-gradient(125deg,#e3eff7,#b5ccdc 58%,#cbdee9)}
.poker-card.bronze{--card-ink:#302219;--metal:#65452e;background:linear-gradient(125deg,#dfb995,#b78b61 58%,#cba078)}
.poker-card.black{--card-ink:#fff2ce;--metal:#eddfb9;background:linear-gradient(125deg,#42505b,#202d36 58%,#303e49);border-color:#b6c4c8}
.poker-card:not(.card-back) .card-number,.poker-card:not(.card-back) .card-corner,.poker-card:not(.card-back) .card-metal{color:var(--card-ink)}
.poker-card:not(.card-back) .card-metal{font-weight:700}
.tie-card{outline:2px solid #fff2c5;outline-offset:3px;box-shadow:0 0 0 3px #102c23,0 0 0 5px #fff2c540,0 6px 12px #0004}
.tie-card::after{display:grid;place-items:center;width:13px;height:13px;border-radius:3px;background:#153629;color:#fff2c5;border:1px solid #fff2c5;font-size:11px;bottom:3px;left:3px}
.hand-result{display:block;margin-top:5px}.hand-result>.tie-legend{margin:5px 0 7px;font-size:12px;line-height:1.3}
.winner-banner{display:flex;align-items:center;gap:15px;min-height:54px;padding:7px 13px;margin:0 0 5px;border:1px solid #d7bc70;border-radius:11px;background:linear-gradient(110deg,#766a3444,#294632 55%,#1e392c);box-shadow:inset 0 1px #efdca433,0 4px 12px #0002}
.winner-label{font-size:21px;letter-spacing:1px;color:#f5dc99;white-space:nowrap}.winner-recipients{display:flex;align-items:center;gap:20px;flex:1;min-width:0}.winner-recipient{display:flex;align-items:center;gap:9px;flex:1;min-width:0}.winner-chip-icon{position:relative;width:35px;height:35px;flex-shrink:0;border:4px dashed #fff1b8;border-radius:50%;background:#bd9441;box-shadow:inset 0 0 0 2px #7b591f,0 3px 0 #79602b,0 5px 0 #b08a36,0 7px 0 #705122}
.winner-recipients p.payout-summary{display:flex;align-items:baseline;gap:7px;min-width:0;margin:0;color:#f7e7bc;font-size:24px;line-height:1.1}.payout-summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.winner-amount{font-size:36px;line-height:1;color:#ffecb0;flex-shrink:0}.winner-chip-label{font-size:13px;color:#d9d7ba;white-space:nowrap}.winner-note{max-width:250px;font-size:12px;line-height:1.3;color:#ddcf9b}.winner-burn{border-color:#ba8e72;background:linear-gradient(110deg,#60423577,#273b2b)}.winner-burn .winner-recipients>.discard-summary{margin:0;font-size:23px;line-height:1.2}.winner-burn .winner-label{font-size:19px}
.settlement-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.settlement-entries>.reveal{min-width:0;margin:0;padding:8px 11px}.settlement-entries>.reveal-swing{grid-column:span 2}.settlement-entries .reveal-heading{margin-bottom:6px}.settlement-entries .reveal-heading h3{font-size:19px;line-height:1.1}.hand-result .result-receipt{margin-top:5px;padding:0;gap:4px 18px}.hand-result .result-receipt .accounting{font-size:12px;line-height:1.25}
.hand-result.normal-results .settlement-entries .operator-token{width:40px;height:40px;min-width:40px;border-width:2px}.hand-result.normal-results .settlement-entries .operator-token svg{width:30px;height:30px;stroke-width:3.1}
.hand-result.normal-results .settlement-entries .reveal-card-row{gap:2px}.hand-result.normal-results .settlement-entries .poker-card{--card-w:70px;--card-h:98px}.hand-result.normal-results .result-value{font-size:43px}.hand-result.normal-results .reveal .result-distance{font-size:23px}.hand-result.normal-results .equation-side{margin:0 0 1px;font-size:14px;line-height:1.1}
@media(min-width:1101px){
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .settlement-entries{display:block;column-count:2;column-gap:12px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal{display:inline-block;width:100%;break-inside:avoid;page-break-inside:avoid;margin:0 0 7px;padding:4px 8px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal-heading{margin-bottom:3px;gap:8px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal-heading h3{font-size:18px;line-height:1.1}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .equation-result{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:center;gap:10px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .poker-card{--card-w:56px;--card-h:79px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal-card-row{padding-top:4px;gap:2px;justify-content:flex-start}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .result-metrics{display:block;margin:0}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .result-value{font-size:39px;line-height:1.05}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal .result-distance{font-size:20px;line-height:1.1;margin-top:3px;white-space:nowrap}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .equation-result+.equation-result{margin-top:5px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal .reveal-equations{display:block}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal .swing-outcome{font-size:12px!important;line-height:1.2;margin-top:4px!important;padding-top:4px}
}
@media(min-width:1101px){
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .settlement-entries{grid-auto-rows:102px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .result-card-group{position:relative}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .result-card-group>.equation-side{position:absolute;top:0;left:58px;width:40px;text-align:center;white-space:nowrap;font-size:10.5px;line-height:1.1;letter-spacing:-.2px;margin:0;border-radius:4px;background:#122e23;color:#e4cf98}
}
.hand-result.stress-results .settlement-entries{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.hand-result.stress-results .settlement-entries>.reveal{grid-column:auto;padding:6px}.hand-result.stress-results .settlement-entries .operator-token{width:32px;height:32px;min-width:32px}.hand-result.stress-results .settlement-entries .operator-token svg{width:24px;height:24px;stroke-width:3}.hand-result.stress-results .poker-card{--card-w:32px;--card-h:53px}.hand-result.stress-results .settlement-entries .reveal-card-row{gap:0}.hand-result.stress-results .reveal .result-distance{font-size:16px;line-height:1.1}.hand-result.stress-results .result-value{font-size:28px;line-height:1}.hand-result.stress-results .reveal-heading h3{font-size:16px}.hand-result.stress-results .equation-side{font-size:12px;line-height:1;margin:0 0 3px}.hand-result.stress-results .reveal .result-metrics{margin-top:4px}.hand-result.stress-results .equation-result+.equation-result{margin-top:5px}.hand-result.stress-results .reveal .swing-outcome{font-size:12px!important;line-height:1.15;padding-top:4px;margin-top:4px!important}
.display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9) .seat .poker-card{--card-w:64px;--card-h:90px}
.display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9) .game-seats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px) and (min-width:701px){.hand-result.normal-results .settlement-entries .poker-card{--card-w:50px;--card-h:70px}.hand-result.normal-results .settlement-entries .operator-token{width:32px;height:32px;min-width:32px}.hand-result.normal-results .settlement-entries .operator-token svg{width:24px;height:24px}.hand-result.stress-results .settlement-entries{grid-template-columns:repeat(3,minmax(0,1fr))}.display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9) .seat .poker-card{--card-w:44px;--card-h:62px}}
@media(max-width:700px){.hand-result .settlement-entries{display:block!important;column-count:1!important}.hand-result .settlement-entries>.reveal{display:block;width:100%;margin:0 0 10px;padding:10px!important}.hand-result .reveal .reveal-equations{display:block!important}.hand-result .equation-result{display:block!important}.hand-result.normal-results .settlement-entries .operator-token{width:34px!important;height:34px!important;min-width:34px!important}.hand-result.normal-results .settlement-entries .operator-token svg{width:26px!important;height:26px!important}.hand-result.normal-results .settlement-entries .poker-card{--card-w:48px;--card-h:70px}.hand-result .result-value{font-size:37px!important}.hand-result .reveal .result-distance{font-size:20px!important}.hand-result .reveal-card-row{gap:0!important}.winner-banner{padding:10px;gap:8px;flex-wrap:wrap}.winner-label{font-size:19px}.winner-recipients{flex-basis:100%;display:block}.winner-recipient{margin-top:8px}.winner-recipients p.payout-summary{font-size:21px}.winner-amount{font-size:34px}.winner-note{max-width:none;font-size:12px}.winner-chip-icon{width:31px;height:31px}.display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9) .seat .poker-card{--card-w:24px;--card-h:35px}}

@media(min-width:1101px){
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .settlement-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:102px;grid-auto-flow:row dense;gap:7px 12px;column-count:auto}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal{display:block;height:100%;width:auto;margin:0;padding:4px 8px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal-swing{grid-column:auto;grid-row:span 2}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .result-metrics .reveal-heading{margin:0 0 2px;gap:6px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .result-metrics .reveal-heading h3{font-size:18px;line-height:1.05}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .result-metrics .result-payout{font-size:21px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .equation-side{font-size:12px;line-height:1;margin:0 0 1px}
 .hand-result.normal-results:is(.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal .swing-outcome{font-size:11.5px!important;line-height:1;margin:0!important;padding-top:2px;border:0}
 .hand-result.normal-results .winner-banner{padding-top:5px;padding-bottom:5px;min-height:50px}
}

.game-progress{color:#eddfbd;font-size:17px;font-weight:700;white-space:nowrap;margin-left:30px;margin-right:auto}.game-progress[hidden]{display:none}.app-header:has(.game-progress:not([hidden])) nav{margin-left:auto}
.seat-operators{display:flex;align-items:center;gap:4px}.seat-operators .operator-token{width:26px;height:26px;min-width:26px}.seat-operators .operator-token svg{width:21px;height:21px;stroke-width:3.2}.retained-root{display:grid;place-items:center;width:26px;height:26px;border:1px solid #d7c790;border-radius:7px;font-size:21px;font-weight:900;color:#f9eabb;background:#345542}
@media(max-width:1100px){.game-progress{font-size:13px;margin-left:12px}.seat-operators{gap:2px}.seat-operators .operator-token{width:22px;height:22px;min-width:22px}.seat-operators .operator-token svg{width:18px;height:18px}}
@media(max-width:700px){.game-progress{display:none}.seat-operators .operator-token{width:19px;height:19px;min-width:19px}.seat-operators .operator-token svg{width:15px;height:15px}.retained-root{width:19px;height:19px;font-size:16px}}
@media(min-width:1101px){.display-mode .game-board:has(.hand-result)>.board-top{display:none}.display-mode .game-board:has(.hand-result)>.dealt-cards:not([open])>summary{position:fixed;top:24px;right:263px;z-index:3;font-size:12px;min-height:20px;padding:0}.display-mode .game-board:has(.hand-result)>.dealt-cards:not([open]){height:0}}

@media(min-width:1101px){
 .hand-result.normal-results:is(.result-count-1,.result-count-2,.result-count-3,.result-count-4) .settlement-entries{grid-auto-rows:154px;grid-auto-flow:row dense}
 .hand-result.normal-results:is(.result-count-1,.result-count-2,.result-count-3,.result-count-4) .settlement-entries>.reveal-swing{grid-column:auto;grid-row:span 2}
 .hand-result.normal-results:is(.result-count-1,.result-count-2,.result-count-3,.result-count-4) .reveal .reveal-equations{display:block}
 .hand-result.normal-results:is(.result-count-1,.result-count-2,.result-count-3,.result-count-4) .equation-result{display:grid;grid-template-columns:minmax(0,1fr) 168px;align-items:center;gap:8px}
 .hand-result.normal-results:is(.result-count-1,.result-count-2,.result-count-3,.result-count-4) .reveal-card-row{justify-content:flex-start;gap:2px}
 .hand-result.normal-results:is(.result-count-1,.result-count-2,.result-count-3,.result-count-4) .result-value{font-size:39px;line-height:1.05}
 .hand-result.normal-results:is(.result-count-1,.result-count-2,.result-count-3,.result-count-4) .reveal .result-distance{font-size:20px;line-height:1.1;white-space:nowrap}
 .display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9) .game-seats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9) .seat .poker-card{--card-w:80px;--card-h:112px}
}
@media(min-width:1101px){.display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9){padding:14px 24px}.display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9) .game-seats{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 12px}.display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9) .seat{grid-column:span 2;padding:4px 9px}.display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9) .seat .cards{margin:3px 0 4px}.display-layout .large-table .poker-table:is(.player-count-7,.player-count-8,.player-count-9) .table-center{margin-bottom:6px}.display-layout .large-table .player-count-8 .seat:nth-child(7){grid-column:2/span 2}.display-layout .large-table .player-count-7 .seat:nth-child(7){grid-column:3/span 2}}
@media(min-width:1101px){.display-layout .large-table .player-count-9 .seat:nth-child(9){grid-column:span 2;max-width:none;width:auto;justify-self:stretch}}

.game-progress{display:flex;align-items:center;gap:5px}.game-progress h2,.game-progress .match-progress{font:inherit;color:inherit;margin:0}.table-center>.turn-inline{margin:0;font-size:14px;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:700px){.game-progress{display:none}}
/* The shared Display already has phase/hand in its global header. */
.display-mode .results-header>.hand-counter{display:none}
/* Owner review: larger mathematical symbols; retain all number-card and result sizes. */
.hand-result.normal-results .settlement-entries .operator-token{width:48px;height:48px;min-width:48px}
.hand-result.normal-results .settlement-entries .operator-token svg{width:38px;height:38px;stroke-width:3.1}
.hand-result.normal-results:is(.result-count-1,.result-count-2,.result-count-3,.result-count-4,.result-count-5,.result-count-6,.result-count-7,.result-count-8,.result-count-9,.result-count-10) .reveal-card-row{gap:0}
.hand-result.stress-results .settlement-entries .operator-token{width:36px;height:36px;min-width:36px}
.hand-result.stress-results .settlement-entries .operator-token svg{width:28px;height:28px;stroke-width:3.1}
.hand-result.normal-results .root-token{width:32px;height:30px;top:-12px!important;right:-4px!important}
.hand-result.normal-results .root-token svg{width:28px;height:28px;stroke-width:3.1}
.hand-result.has-swings.stress-results .root-token{width:28px;height:26px;top:-12px!important}
.hand-result.has-swings.stress-results .root-token svg{width:24px;height:24px;stroke-width:3.1}
.seat-operators{gap:2px}.seat-operators .operator-token{width:32px;height:32px;min-width:32px}.seat-operators .operator-token svg{width:26px;height:26px;stroke-width:3.2}.retained-root{width:27px;height:27px;font-size:25px;font-weight:900}
@media(max-width:700px){
 .hand-result.normal-results .settlement-entries .operator-token{width:40px!important;height:40px!important;min-width:40px!important}
 .hand-result.normal-results .settlement-entries .operator-token svg{width:32px!important;height:32px!important}
 .hand-result .settlement-entries>.reveal{padding-left:4px!important;padding-right:4px!important}
 .seat-operators .operator-token{width:24px;height:24px;min-width:24px}.seat-operators .operator-token svg{width:20px;height:20px}.retained-root{width:24px;height:24px;font-size:22px}
}
/* Tablet settlement: use the available width and keep each physical equation together. */
@media(min-width:701px) and (max-width:1100px){
 .game-layout:has(.hand-result){grid-template-columns:minmax(0,1fr)}
 .hand-result.normal-results .settlement-entries{grid-template-columns:minmax(0,1fr)}
 .hand-result.normal-results .settlement-entries>.reveal-swing{grid-column:auto}
 .hand-result.normal-results .reveal .reveal-equations{display:block}
 .hand-result.normal-results .equation-result{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
 .hand-result.normal-results .result-card-group{flex:0 0 344px;min-width:0}
 .hand-result.normal-results .result-metrics{flex:1;min-width:220px}
 .hand-result.normal-results .reveal-card-row{justify-content:flex-start}
 .game-layout:not(.display-layout):has(.hand-result)>.controls{order:-1}
}
@media(min-width:701px) and (max-width:899px){
 .hand-result.stress-results .settlement-entries{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Private results may scroll: give physical cards and complete metrics separate rows.
   The read-only public reveal/comparison keeps its native card and60px result rules. */
body:not(.display-mode) .hand-result:is(.normal-results,.stress-results) .settlement-entries{grid-auto-rows:auto;align-items:start}
body:not(.display-mode) .hand-result:is(.normal-results,.stress-results) .settlement-entries>.reveal{height:auto;min-width:0}
body:not(.display-mode) .hand-result:is(.normal-results,.stress-results) .settlement-entries>.reveal-swing{grid-row:auto}
body:not(.display-mode) .hand-result:is(.normal-results,.stress-results) .reveal .equation-result{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
body:not(.display-mode) .hand-result:is(.normal-results,.stress-results) .result-card-group{width:100%;flex:auto;min-width:0}
body:not(.display-mode) .hand-result:is(.normal-results,.stress-results) .reveal .result-metrics{width:100%;min-width:0;margin-top:4px;flex:auto}
body:not(.display-mode) .hand-result:is(.normal-results,.stress-results) .result-value{white-space:nowrap}
body:not(.display-mode) .hand-result:is(.normal-results,.stress-results) .reveal .result-distance{white-space:normal;overflow-wrap:normal;word-break:normal}
@media(min-width:701px){body:not(.display-mode) .hand-result.stress-results .settlement-entries{grid-template-columns:repeat(2,minmax(0,1fr))}}

body:not(.display-mode) .hand-result:is(.normal-results,.stress-results) .reveal .reveal-equations{display:block}
