/* Cashee's existing palette, characters and real cards, with a spatial board. */
.board-dashboard.live-table{padding:20px;gap:10px;overflow:visible}
.board-dashboard.live-table>.felt-top{order:0}
.board-dashboard.live-table>.prefs{order:1}
.board-dashboard.live-table>.move-prompt{order:2;margin:0;font-size:14px;padding:12px 16px}
.board-dashboard.live-table>.table-arena{order:3}
.board-dashboard.live-table>.player-dashboard{order:4}
.board-dashboard.live-table>.handline{order:5;margin:8px 0 0;opacity:.8}
.table-arena{display:grid;grid-template-columns:minmax(110px,1fr) minmax(310px,460px) minmax(110px,1fr);grid-template-rows:120px auto;gap:12px;align-items:center;width:100%;margin:auto}
.table-arena>.seat{margin:0;padding:10px;min-width:0;max-width:180px;width:100%;justify-self:center;text-align:center;border-radius:22px;background:#311951dd;border:1px solid #b397e7;box-shadow:0 8px 22px #14092555}
.table-arena>.seat.turn{border:2px solid var(--turquoise,#19e5cf);box-shadow:0 0 22px #19e5cf44}
.table-arena>.seat-north{grid-area:1/2;display:grid;grid-template-columns:72px 1fr;align-items:center;max-width:270px;text-align:left;column-gap:10px}
.table-arena>.seat-west{grid-area:2/1}.table-arena>.seat-east{grid-area:2/3}.table-arena>.seat-south{grid-area:3/2}
.board-dashboard .table-arena .stage{height:auto;min-height:0;margin:0}
.board-dashboard .table-arena .crew-holder{width:82px;height:92px;margin:auto}
.board-dashboard .table-arena .seat-north .stage{grid-row:1/5}
.board-dashboard .table-arena .seat .nm{font-size:14px;justify-content:center;margin:0;overflow-wrap:anywhere}
.board-dashboard .table-arena .seat .st{font-size:11px;margin:3px 0}
.board-dashboard .table-arena .seat .hand{display:flex;gap:3px;justify-content:center;margin:5px 0}
.board-dashboard .table-arena .seat .hand .pcard{width:27px;min-width:0;max-width:27px;font-size:12px}
.board-dashboard .table-arena .dropzone{font-size:10px;margin:3px 0;min-height:0;gap:4px;justify-content:center}
.board-dashboard .table-arena .dropzone .pcard{width:30px;min-width:30px;font-size:12px}
.board-surface{grid-area:2/2;aspect-ratio:1;width:100%;display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:24px 18px 16px;border:8px solid #9771ce;border-radius:38px;background:radial-gradient(ellipse at 50% 40%,#7945b8,#45216e 75%);box-shadow:inset 0 0 0 2px #19e5cf99,inset 0 0 45px #16062688,0 15px 35px #16062655;color:#fff8ed}
.board-title{display:flex;flex-direction:column;align-items:center;gap:6px;letter-spacing:.15em;font-size:18px}
.board-title .chip{font-size:10px;letter-spacing:.03em;background:#25113988;color:#fff8ed;border-color:#bba2dc}
.board-dashboard .board-surface .pot{margin:0;padding:0;order:initial;text-align:center}
.board-dashboard .board-surface .pot .amt{font-size:25px}
.board-dashboard .board-surface .pot .sub{font-size:11px}
.board-dashboard .board-surface .poolwrap{padding:0;margin:0;border:0;background:transparent;order:initial;width:100%}
.pickup-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:13px;color:#fff8ed}
.board-dashboard .board-surface .pool{display:flex;flex-wrap:nowrap;justify-content:center;align-items:flex-start;gap:7px;min-height:90px;padding:0;margin:0}
.board-dashboard .board-surface .poolcard{flex:1 1 0;max-width:72px;min-width:0;padding:0;margin:0;background:transparent;border:0;overflow:visible;opacity:1;position:relative}
.board-dashboard .board-surface .poolcard .pcard{width:100%;min-width:0;max-width:none;font-size:clamp(15px,2vw,24px)}
.board-dashboard .board-surface .poolcard.locked{opacity:1;filter:none}
.board-dashboard .board-surface .poolcard.picked{transform:translateY(-8px);filter:drop-shadow(0 0 6px #19e5cf)}
.board-dashboard .board-surface .poolcard:not(:disabled):focus-visible{outline:3px solid #19e5cf;outline-offset:4px;border-radius:10px}
.board-dashboard .board-surface .ord{font-size:8px;line-height:16px;position:static;display:block;white-space:nowrap;color:#fff8ed;background:transparent;margin:0 0 3px;letter-spacing:.02em}
.board-dashboard .board-surface .front-tag{color:#19e5cf;font-weight:900}
.board-deck{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:14px;opacity:.85}
.board-dashboard .board-deck .deckstack{margin:0;width:23px;height:31px;min-width:23px;transform:none}
.board-dashboard .board-deck .deckstack .pcard{width:23px;min-width:23px;font-size:9px}
.board-dashboard .board-deck .cnt{display:none}
.your-seat-marker{text-align:center;font-size:11px;color:#19e5cf;letter-spacing:.12em;text-transform:uppercase}
.board-dashboard .player-dashboard{width:min(100%,720px);margin:0 auto;padding:16px 20px;border-radius:26px;background:#fff8ed;color:#24113e;box-shadow:0 8px 25px #17062b55;display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;border:3px solid #9e78e1}
.board-dashboard .player-dashboard.turn{border-color:#19e5cf;box-shadow:0 0 0 3px #19e5cf30}
.board-dashboard .player-dashboard .you-head{grid-column:1/-1;margin:0;gap:12px;display:flex;min-height:45px}
.board-dashboard .player-dashboard .you-head .crew-holder{width:52px;height:58px;flex:0 0 52px}
.board-dashboard .player-dashboard .you-head strong{font-size:15px}
.board-dashboard .player-dashboard .you-head .mono{margin-left:auto;color:#713cff;font-weight:800}
.board-dashboard .player-dashboard>.hand{grid-column:1;grid-row:2/5;display:flex;justify-content:center;align-items:center;gap:9px;margin:0;min-height:100px}
.board-dashboard .player-dashboard>.hand .pcard{width:66px;min-width:0;max-width:66px;font-size:24px}
.board-dashboard .player-dashboard>.dropzone{grid-column:2;font-size:11px;margin:0;min-height:0}
.board-dashboard .player-dashboard>.dropzone .pcard{width:26px;min-width:26px;font-size:10px}
.board-dashboard .player-dashboard>.score{grid-column:2;text-align:left;margin:0;font-size:17px;color:#713cff}
.board-dashboard .player-dashboard>.timer{grid-column:2;width:100%;height:7px;margin:0;background:#dacbea}
.board-dashboard .player-dashboard>.actions{grid-column:2;display:flex;gap:6px;flex-wrap:wrap;margin:0}
.board-dashboard .player-dashboard>.actions .btn{padding:10px 12px;font-size:12px;flex:1}
.board-dashboard .player-dashboard>.emote-row{grid-column:1/-1;margin:0;padding-top:8px;border-top:1px solid #ded0ee;justify-content:center}
@media(max-width:760px){
 .board-dashboard.live-table{padding:10px 8px;gap:8px;border-width:3px}
 .table-arena{grid-template-columns:68px minmax(0,1fr) 68px;grid-template-rows:115px auto;gap:0;width:min(100%,460px);position:relative}
 .table-arena>.board-surface{grid-column:1/-1;grid-row:2;max-width:460px;padding:20px 16px 14px;border-width:6px;border-radius:30px;gap:8px}
 .table-arena>.seat{grid-row:1;max-width:112px;width:112px;padding:5px;border-radius:15px;z-index:1}
 .table-arena>.seat-north{grid-column:2;display:block;text-align:center;justify-self:center;margin-top:0}
 .table-arena>.seat-west{grid-column:1;justify-self:start}.table-arena>.seat-east{grid-column:3;justify-self:end}
 .board-dashboard .table-arena .crew-holder{width:43px;height:46px}
 .board-dashboard .table-arena .seat .nm{font-size:10px;line-height:1.2}
 .board-dashboard .table-arena .seat .st{font-size:9px;line-height:1.2;margin:2px 0}
 .board-dashboard .table-arena .seat .hand{margin:2px 0}
 .board-dashboard .table-arena .seat .hand .pcard{width:14px;max-width:14px;font-size:6px}
 .board-dashboard .table-arena .dropzone{font-size:8px;display:flex;gap:2px}
 .board-dashboard .table-arena .dropzone .pcard{width:14px;min-width:14px;font-size:6px}
 .board-title{font-size:15px;gap:3px}.board-title .chip{font-size:9px}
 .board-dashboard .board-surface .pot .amt{font-size:21px}
 .board-dashboard .board-surface .pool{gap:6px;min-height:75px}
 .board-dashboard .board-surface .poolcard .pcard{font-size:20px}
 .pickup-heading{font-size:12px;margin-bottom:7px}.board-deck{margin-top:9px}
 .board-dashboard .player-dashboard{padding:10px;gap:7px 10px;border-radius:20px}
 .board-dashboard .player-dashboard .you-head strong{font-size:12px}
 .board-dashboard .player-dashboard .you-head .mono{font-size:11px}
 .board-dashboard .player-dashboard>.hand{gap:5px;min-height:80px}
 .board-dashboard .player-dashboard>.hand .pcard{width:50px;max-width:50px;font-size:19px}
 .board-dashboard .player-dashboard>.score{font-size:14px}
 .board-dashboard .player-dashboard>.actions .btn{padding:9px 6px;font-size:11px}
 .board-dashboard.live-table>.move-prompt{font-size:12px;padding:9px}
}
@media(prefers-reduced-motion:reduce){.board-dashboard .poolcard{transition:none!important}}
.board-dashboard .board-surface .ord{transform:none;left:auto;top:auto;min-width:0;height:auto}
.board-dashboard .player-dashboard>.taunt-controls{grid-column:1/-1;border-top:1px solid #ded0ee;padding-top:7px;font-size:12px}
.board-dashboard .taunt-controls summary{cursor:pointer;font-weight:800;color:#713cff}
.board-dashboard .player-dashboard .emotes{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;justify-content:center}
.board-dashboard .player-dashboard .emotes button{font-size:11px;padding:7px;color:#fff8ed;min-height:36px}
.board-dashboard .player-dashboard>.actions .btn{min-height:44px}
@media(max-width:760px){
 .board-dashboard.live-table>.felt-top{min-height:30px;padding-right:122px;font-size:12px}
 .board-dashboard.live-table>.felt-top>.chip{display:none}
 .board-dashboard.live-table>.prefs{position:absolute;right:10px;top:9px;margin:0!important;gap:4px}
 .board-dashboard.live-table>.prefs .pref{padding:5px 8px;font-size:10px;min-height:30px}
 .table-arena{grid-template-rows:84px auto}
 .table-arena>.seat-north{width:116px;grid-row:1;margin:0;align-self:center}
 .table-arena>.seat-west,.table-arena>.seat-east{position:absolute;top:155px;width:78px;max-width:78px;grid-area:auto;align-self:start}
 .table-arena>.seat-west{left:1px}.table-arena>.seat-east{right:1px}
 .table-arena>.board-surface{position:relative;height:auto;aspect-ratio:1;display:block;padding:15px}
 .board-dashboard .board-surface .pot{position:absolute;top:69px;left:85px;right:85px}
 .board-dashboard .board-surface .poolwrap{position:absolute;left:15px;right:15px;bottom:40px;width:auto}
 .board-dashboard .board-surface .your-seat-marker{position:absolute;bottom:13px;left:0;right:0}
 .board-dashboard .table-arena .seat .stage{line-height:0}
 .board-dashboard .table-arena .seat .who{gap:2px}
 .board-dashboard .table-arena .seat .dealer-pip{font-size:7px;padding:1px 3px}
 .board-dashboard .table-arena .seat .dropzone .drop-label{display:none}
 .board-dashboard .table-arena .seat .dropzone{margin:0}
 .board-dashboard .table-arena .seat .dropzone .drop-arrow{display:none}
 .board-dashboard .table-arena .seat .dropzone .dropped{line-height:0}
 .board-dashboard .table-arena .seat .st{margin:0}
 .board-dashboard .table-arena .seat .crew-holder{height:35px;width:35px}
 .board-dashboard .player-dashboard .you-head .crew-holder{width:38px;height:42px;flex-basis:38px}
}
/* The face-up queue stays in front of the deck; the last card remains clickable. */
.pickup-queue{position:relative;padding-right:12px}
.board-dashboard .board-surface .pool{position:relative;z-index:2;overflow:visible}
.board-dashboard .pickup-queue .board-deck{position:absolute;right:0;top:28px;margin:0;z-index:1;pointer-events:none;opacity:1;transform:rotate(5deg)}
.board-dashboard .pickup-queue .deckstack{width:58px;height:81px;min-width:0}
.board-dashboard .pickup-queue .deckstack .pcard{width:58px;min-width:0;max-width:none;font-size:18px}
.board-dashboard .pickup-queue .board-deck.empty-pool{position:relative;top:auto;right:auto;margin:8px auto}
.deck-caption{text-align:right;margin-top:10px;font-size:10px;color:#e9d8ff}
@media(max-width:760px){
 .board-dashboard .pickup-queue .deckstack{width:49px;height:69px}
 .board-dashboard .pickup-queue .deckstack .pcard{width:49px}
 .board-dashboard .pickup-queue .board-deck{top:25px}
}
.board-dashboard .table-arena .seat .hand{min-height:0}
.board-dashboard .table-arena .seat .hand .pcard{--cw:27px;height:auto;aspect-ratio:5/7}
.board-dashboard .table-arena .seat .dropzone .pcard{--cw:30px;height:auto;aspect-ratio:5/7}
@media(max-width:760px){
 .table-arena>.seat-west,.table-arena>.seat-east{top:105px;width:82px;max-width:82px}
 .board-dashboard .table-arena .seat .hand .pcard{--cw:14px;height:auto;aspect-ratio:5/7}
 .board-dashboard .table-arena .seat .dropzone .pcard{--cw:14px;height:auto;aspect-ratio:5/7}
 .board-dashboard .table-arena .seat .dropzone>.small{font-size:8px;line-height:1.2}
 .board-dashboard .table-arena .seat .who{line-height:1.15}
 .board-dashboard .table-arena .seat .dropzone{height:21px}
 .board-dashboard .table-arena .seat .nm{line-height:1.15}
 .board-dashboard .table-arena .seat-north{padding:3px;max-width:116px}
}
@media(min-width:761px){
 .board-dashboard.live-table>.prefs{position:absolute;right:22px;top:56px;margin:0!important;z-index:3}
 .board-dashboard.live-table>.move-prompt{margin-top:32px}
 .table-arena{grid-template-columns:minmax(130px,1fr) minmax(310px,370px) minmax(130px,1fr);grid-template-rows:120px auto;max-width:1000px}
 .board-dashboard .board-surface .pot{margin-top:25px}
 .board-dashboard .table-arena .seat-north .dropzone .pcard{--cw:22px;width:22px;min-width:22px}
 .board-dashboard .table-arena .seat-north .hand .pcard{--cw:23px;width:23px;max-width:23px}
 .board-dashboard .table-arena .seat-north .nm{font-size:12px}
 .board-dashboard .player-dashboard{padding:12px 18px;gap:6px 14px}
 .board-dashboard .player-dashboard .you-head .crew-holder{height:42px;width:38px;flex-basis:38px}
 .board-dashboard .player-dashboard .you-head{min-height:42px}
}
.board-dashboard .player-dashboard .actions .btn{color:#24113e;background:#fff8ed;border:1px solid #9771ce}
.board-dashboard .player-dashboard .actions .btn.primary{background:#713cff;color:#fff8ed;border-color:#713cff}
.board-dashboard .player-dashboard .actions .btn:disabled{color:#71617e;background:#e2d7eb;border-color:#c9b9d9;opacity:.7}
.board-dashboard .table-arena .seat .st.stood{color:#e9d8ff}
.draggable-card{touch-action:none;cursor:grab!important;user-select:none;-webkit-user-select:none}
.draggable-card.dragging{opacity:.3!important;cursor:grabbing!important}
.drag-card-ghost{position:fixed!important;z-index:10000;pointer-events:none!important;transform:translate(-50%,-50%) rotate(-5deg)!important;margin:0!important;animation:none!important;box-shadow:0 14px 30px #24113e77!important;opacity:.96}
.board-dashboard .player-dashboard.drop-ready{outline:3px dashed #19e5cf;outline-offset:5px}
.board-dashboard .player-dashboard.drop-hover{outline-style:solid;box-shadow:0 0 30px #19e5cf88;background:#dcfff6}
.board-dashboard .player-dashboard>.pickup-ready{grid-column:1/-1;margin:0;font-size:12px;color:#713cff;text-align:center}
.board-dashboard .player-dashboard .pending-pickup{position:relative;display:inline-flex;flex-direction:column;align-items:center;flex:0 1 54px;border:2px dashed #713cff;border-radius:9px;padding:2px;background:#efe5ff;opacity:.85}
.board-dashboard .player-dashboard .pending-pickup small{font-size:8px;font-weight:900;letter-spacing:.08em;color:#713cff}
.board-dashboard .player-dashboard .hand{flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){.drag-card-ghost{transform:translate(-50%,-50%)!important}}
.learn-choices{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}
.learn-choices .tutorial-entry{margin:0}
.written-rules{max-width:850px;margin:0 auto;padding-bottom:25px}
.rules-heading{padding:10px 4px 12px}
.rules-heading h1{font-size:clamp(2.1rem,6vw,3.5rem);margin:5px 0 12px}
.written-rules p,.written-rules li{line-height:1.7;font-size:16px}
.written-rules h2{font-size:1.35rem;line-height:1.3}
.written-rules .rule-section{scroll-margin-top:90px}
.rules-quick li{padding:5px 0 5px 5px}
.rules-contents{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.rules-contents a{color:#713cff;border:1px solid #c6b0df;padding:8px 12px;border-radius:20px;background:#fff8ed;font-size:13px}
@media(max-width:760px){.tabs{overflow-x:auto;justify-content:flex-start!important}.tabs a{flex:0 0 auto;min-width:60px;white-space:nowrap;padding:0 10px!important}.written-rules .panel{padding:18px}.written-rules p,.written-rules li{font-size:15px}}
.stake-result{display:flex;flex-direction:column;gap:12px}
.stake-result>.result-summary{order:0;max-width:720px;width:100%;margin:0 auto}
.stake-result>.prefs{order:1}
.stake-result>.seats{order:2}
.stake-result .stake-price{font-size:24px;font-weight:900;color:#19e5cf;margin:8px 0}
.stake-result .stake-countdown{font-weight:800;color:#fff8ed;min-height:24px}
.stake-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:16px 0}
.stake-actions .btn{min-height:48px;min-width:140px}
.stake-preview-entry{padding:14px;border:1px solid #bda0e6;border-radius:18px;background:#f4edff;margin-top:14px}
.table-screen[data-table-layout="compact"] .stake-result .result-summary{padding:14px}
.table-screen[data-table-layout="compact"] .stake-result .stake-actions{margin:10px 0;gap:7px}
.table-screen[data-table-layout="compact"] .stake-result .stake-actions .btn{min-width:110px;flex:1;font-size:12px}

.player-mute-controls {font-size:.85rem; max-width:100%;}
.player-mute-controls summary {cursor:pointer; min-height:44px; padding:12px;}
.player-mute-controls[open] {flex-basis:100%; padding:8px; border:1px solid #596e7c; border-radius:12px;}
.player-mute-controls .pref {min-height:44px; margin:4px; white-space:normal; overflow-wrap:anywhere;}
.prefs {flex-wrap:wrap;}

.cast3d{position:relative;display:inline-block;isolation:isolate;overflow:visible;background:none!important;border:none!important;box-shadow:none!important}
.cast3d canvas{display:block;width:100%;height:100%;object-fit:contain}
.cast3d canvas[hidden],.cast3d .model-fallback[hidden]{display:none!important}
.preview-character>.cast3d{width:100%!important;height:100%!important;min-height:280px}
.cast3d .model-fallback{position:absolute;inset:0;width:100%;height:100%}
.cast3d canvas{background:transparent!important;border-radius:0!important}
