/* CASINOIR v0.52.02 — bespoke photorealistic 3 Card Poker table */
#threeCardPoker.tcp52{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;background:#051b16!important;overflow:hidden!important;isolation:isolate}
#threeCardPoker.tcp52 [hidden]{display:none!important}
#threeCardPoker .tcp-stage{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;isolation:isolate;container-type:size;background:#033b2c}
#threeCardPoker .tcp-stage-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
#threeCardPoker .tcp-stage-glow{position:absolute;inset:13% 4% 18%;pointer-events:none;background:radial-gradient(ellipse at 50% 48%,transparent 38%,#00150b4d 95%)}
#threeCardPoker .tcp-stage button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#threeCardPoker .tcp-back,#threeCardPoker .tcp-menu-open,#threeCardPoker .tcp-round-counter,#threeCardPoker .tcp-balance{position:absolute;z-index:9;display:grid;place-items:center;background:#071918eb;color:#ffe7b0;border:1px solid #d0a968;border-radius:7px;box-shadow:0 2px 8px #0008;font-weight:850}
#threeCardPoker .tcp-back{left:.9%;top:16%;width:8.5%;height:7.5%;font-size:clamp(8px,1.05vw,15px);padding:0}
#threeCardPoker .tcp-menu-open{right:1.2%;top:1.9%;width:4.5%;height:7%;font-size:clamp(12px,1.5vw,23px);padding:0}
#threeCardPoker .tcp-round-counter{left:27%;top:1.6%;padding:0 .7%;height:5.5%;font-size:clamp(8px,.91vw,14px)}
#threeCardPoker .tcp-balance{right:7%;top:1.8%;width:15%;height:7.5%;display:flex;gap:5%;white-space:nowrap}
#threeCardPoker .tcp-balance small{font-size:clamp(7px,.79vw,12px);color:#d8bc84}
#threeCardPoker .tcp-balance strong{font:900 clamp(12px,1.55vw,25px) system-ui;letter-spacing:.01em;color:#fff7dd}
#threeCardPoker .tcp-card-area{position:absolute;z-index:6;text-align:center;pointer-events:none;color:#ffe4ad}
#threeCardPoker .tcp-dealer-area{left:34%;top:19%;width:32%;height:22%}
#threeCardPoker .tcp-player-area{left:34%;top:42%;width:32%;height:22%}
#threeCardPoker .tcp-area-heading{height:20%;display:flex;justify-content:center;align-items:center;gap:2%;font:900 clamp(9px,1.11vw,17px) system-ui;white-space:nowrap;text-shadow:0 2px 5px #001c10}
#threeCardPoker .tcp-area-heading small{font-size:.7em;font-weight:650;color:#f4d9a0}
#threeCardPoker .tcp-side-dot{width:1.3em;height:1.3em;border-radius:50%;background:#b33b40;border:1px solid #ffdca4;box-shadow:0 0 9px #7e101c}
#threeCardPoker .tcp-side-dot--player{background:#2067b0;box-shadow:0 0 9px #18438a}
#threeCardPoker .tcp-cards{display:flex!important;align-items:center!important;justify-content:center!important;gap:2.4%!important;height:67%!important;min-height:0!important}
#threeCardPoker .tcp-slot{display:block;width:22%;height:95%;border-radius:5px;border:1px solid #e4cf9f6e;background:#0019112b;box-shadow:inset 0 0 0 1px #f2d29f23}
#threeCardPoker .tcp-card{display:flex!important;flex:0 0 22%!important;box-sizing:border-box!important;position:relative;align-items:center;justify-content:center;width:22%!important;height:95%!important;min-width:0!important;min-height:0!important;padding:0!important;border-radius:5px!important;background:#fffaf0!important;border:2px solid #b49b61!important;color:#171c24!important;font:900 clamp(11px,1.8vw,26px) Georgia,serif!important;box-shadow:inset 0 0 0 1px #fff,0 3px 8px #000a!important;overflow:hidden}
#threeCardPoker .tcp-player-area .tcp-card:not(.tcp-card-back){outline:2px solid #3985cf;outline-offset:1px}
#threeCardPoker .tcp-dealer-area .tcp-card:not(.tcp-card-back){outline:2px solid #b93e48;outline-offset:1px}
#threeCardPoker .tcp-card-red{color:#ae1830!important}
#threeCardPoker .tcp-card-face{position:absolute;inset:0;display:block}
#threeCardPoker .tcp-card-corner{position:absolute;display:flex;flex-direction:column;align-items:center;gap:0;font-size:clamp(10px,1.48vw,22px);line-height:.85;font-weight:900;color:inherit}
#threeCardPoker .tcp-card-corner small{font-size:.85em!important;line-height:.95!important;align-self:center!important}
#threeCardPoker .tcp-card-corner--tl{left:7%;top:5%}
#threeCardPoker .tcp-card-corner--br{right:7%;bottom:5%;transform:rotate(180deg)}
#threeCardPoker .tcp-card-suit{position:absolute;left:50%;top:51%;transform:translate(-50%,-50%);font-size:clamp(19px,3.4vw,50px);line-height:1;color:inherit}
#threeCardPoker .tcp-card-back{color:#ffda96!important;background:repeating-linear-gradient(45deg,#541628 0 5px,#731b34 5px 10px)!important;border:3px double #dbaf64!important}
#threeCardPoker .tcp-card-back-logo{display:grid;place-items:center;width:78%;height:62%;border:1px solid #cba46a;box-shadow:inset 0 0 0 3px #702338;background:#4b172a;border-radius:5px;font:900 clamp(6px,1vw,15px) Georgia,serif;letter-spacing:.04em;color:#ffdeaa;white-space:nowrap;overflow:hidden}
#threeCardPoker .tcp-card--enter{animation:tcp-card-fly .46s cubic-bezier(.12,.75,.2,1) both}
#threeCardPoker .tcp-card--reveal{animation:tcp-flip .42s ease-out both}
@keyframes tcp-card-fly{0%{opacity:0;transform:translate(120px,-150px) rotate(-20deg) scale(.55)}65%{opacity:1}100%{transform:none}}
@keyframes tcp-flip{0%{transform:rotateY(86deg);filter:brightness(.4)}100%{transform:rotateY(0deg);filter:brightness(1)}}
#threeCardPoker .tcp-hand-title{height:13%;font:850 clamp(8px,1vw,16px) system-ui;white-space:nowrap;text-shadow:0 1px 4px #000e;color:#f5d796}
#threeCardPoker .tcp-felt-brand{position:absolute;top:41%;left:3%;width:21%;text-align:center;display:grid;gap:0;z-index:2;color:#e7bf6b84;font:900 clamp(10px,1.4vw,22px) Georgia,serif;letter-spacing:.06em;transform:rotate(-8deg);pointer-events:none}
#threeCardPoker .tcp-felt-brand small{font-size:.72em;letter-spacing:.2em}
/* The selected playable character — visual portrait only, no host label or dialogue. */
#threeCardPoker .tcp-player-avatar{position:absolute;left:6.6%;top:57%;width:15.5%;height:23.8%;z-index:8;display:flex;align-items:flex-start;justify-content:center;overflow:hidden;pointer-events:none;filter:drop-shadow(0 4px 8px rgba(0,0,0,.7));mask-image:linear-gradient(#000 0%,#000 82%,transparent 100%);-webkit-mask-image:linear-gradient(#000 0%,#000 82%,transparent 100%)}
#threeCardPoker .tcp-player-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 5%;user-select:none;-webkit-user-drag:none}
#threeCardPoker .tcp-wager-area{position:absolute;inset:0;z-index:7;pointer-events:none}
#threeCardPoker .tcp-spot,#threeCardPoker .tcp-play-zone{position:absolute!important;display:flex!important;flex-direction:column!important;align-items:center;justify-content:flex-start;gap:3%;padding:1% 1%!important;min-width:0!important;min-height:0!important;background:#08251da8!important;color:#ffdda3!important;border:2px solid #ddbd71!important;box-shadow:inset 0 0 0 1px #c9a76c4d,0 3px 8px #0009!important;text-align:center!important;pointer-events:auto;cursor:pointer!important;overflow:visible!important}
#threeCardPoker .tcp-spot-pair{left:24%;top:68%;width:16%;height:13%;border-radius:50%!important}
#threeCardPoker .tcp-spot-ante{left:42%;top:68%;width:16%;height:13%;border-radius:8px!important;transform:rotate(-2deg)}
#threeCardPoker .tcp-play-zone{left:60%;top:68%;width:16%;height:13%;border-radius:8px!important;transform:rotate(2deg)}
#threeCardPoker .tcp-spot:disabled,#threeCardPoker .tcp-play-zone:disabled{opacity:1!important;cursor:default!important}
#threeCardPoker .tcp-spot-title{font:900 clamp(9px,1.55vw,23px) Georgia,serif;letter-spacing:.03em;line-height:1.05;color:#ffe5af}
#threeCardPoker .tcp-spot small,#threeCardPoker .tcp-play-zone small{font:750 clamp(7px,.82vw,12px) system-ui;color:#eee0bf}
#threeCardPoker .tcp-spot em{font:900 clamp(8px,1.05vw,16px) system-ui!important;line-height:1;color:#fff8da!important;margin:0!important;background:none!important;border:none!important;box-shadow:none!important;position:absolute;bottom:4%;font-style:normal}
#threeCardPoker .tcp-spot.is-bet{background:#225644b8!important;box-shadow:inset 0 0 0 2px #ffe6a4,0 0 11px #e0c170aa!important}
#threeCardPoker .tcp-play-zone.is-ready{animation:tcp-play-pulse 1.55s ease-in-out infinite;border-color:#f5e2a2!important;background:#435d4199!important}
@keyframes tcp-play-pulse{0%,100%{box-shadow:0 0 6px #e6cd6788}50%{box-shadow:0 0 20px #ffe09bca}}
#threeCardPoker .tcp-wager-chip{position:absolute;top:41%;left:50%;transform:translateX(-50%);display:none;place-items:center;width:clamp(17px,2.5vw,39px);height:clamp(17px,2.5vw,39px);border:2px dashed #ffe4ae;border-radius:50%;font:900 clamp(6px,.84vw,13px) system-ui;color:#fff8d4;text-shadow:0 1px 2px #000a;background:radial-gradient(circle at 35% 22%,#fa7a85,#b2182c 62%,#570a1a);box-shadow:inset 0 0 0 3px #752332,0 3px 7px #000b}
#threeCardPoker .tcp-wager-chip.has-wager{display:grid;animation:tcp-chip-land .22s ease-out}
#threeCardPoker .tcp-wager-chip.d25{background:radial-gradient(circle at 35% 22%,#82d9ab,#168355 62%,#063a27);box-shadow:inset 0 0 0 3px #165e3b,0 3px 7px #000b}
#threeCardPoker .tcp-wager-chip.d100{background:radial-gradient(circle at 35% 22%,#969eac,#242a35 62%,#090b0f);box-shadow:inset 0 0 0 3px #444651,0 3px 7px #000b}
#threeCardPoker .tcp-wager-chip.d500{background:radial-gradient(circle at 35% 22%,#c5a0f1,#6c2e9b 62%,#241033);box-shadow:inset 0 0 0 3px #793fa4,0 3px 7px #000b}
@keyframes tcp-chip-land{from{opacity:.3;transform:translate(-50%,-58%) scale(.66)}to{opacity:1;transform:translateX(-50%) scale(1)}}
#threeCardPoker .tcp-wager-chip.is-paying{animation:tcp-pay-chip .8s ease-out both}
@keyframes tcp-pay-chip{0%{filter:brightness(1);transform:translateX(-50%)}45%{filter:brightness(1.6);transform:translate(-50%,-20%) scale(1.3)}100%{filter:brightness(1);transform:translateX(-50%)}}
#threeCardPoker .tcp-result{position:absolute;z-index:8;left:35%;top:63.2%;width:30%;height:4.8%;min-height:0!important;text-align:center;font:900 clamp(9px,1.2vw,19px) Georgia,serif;color:#ffe4ad;text-shadow:0 2px 5px #000;background:#061c17bb;border-radius:999px;display:grid;place-items:center;white-space:nowrap;overflow:hidden}
#threeCardPoker .tcp-status{position:absolute;left:14%;top:81.5%;width:72%;height:3.1%;z-index:8;text-align:center;font:750 clamp(7px,.84vw,13px) system-ui;color:#ffebbd;text-shadow:0 1px 3px #000d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#threeCardPoker .tcp-action-feedback{position:absolute;left:37%;top:33%;width:26%;text-align:center;z-index:12;font:900 clamp(11px,1.3vw,22px) Georgia,serif;color:#ffe5a1;text-shadow:0 2px 9px #000;pointer-events:none}
#threeCardPoker .tcp-action-feedback:not(:empty){animation:tcp-announcement .8s ease-out both}
@keyframes tcp-announcement{from{opacity:0;transform:translateY(10px) scale(.9)}30%{opacity:1}to{opacity:1;transform:none}}
#threeCardPoker .tcp-decision-bubble{position:absolute;left:75%;top:48%;z-index:9;background:#17271be6;color:#fff1bd;padding:1% 2%;border:1px solid #edd19a;border-radius:9px;font:900 clamp(9px,1.1vw,15px) system-ui;box-shadow:0 0 18px #cda45888}
#threeCardPoker .tcp-console{position:absolute!important;left:1.7%;top:85.4%;width:96.6%;height:12.8%;z-index:10;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:2%!important;box-sizing:border-box;padding:.8% 1.8%!important;overflow:visible!important;border:1px solid #c8a467!important;border-radius:12px!important;background:linear-gradient(145deg,#141c1bdc,#060c0dfa)!important;box-shadow:inset 0 2px 12px #fbd08a22,0 4px 13px #000a}
#threeCardPoker .tcp-chips{width:36%;height:100%;display:flex!important;align-items:center;justify-content:space-between;flex-wrap:nowrap!important;gap:2%}
#threeCardPoker .tcp-chips button{flex:none;display:grid;place-items:center;width:clamp(23px,5.6cqh,54px);height:clamp(23px,5.6cqh,54px);max-width:24%;max-height:82%;aspect-ratio:1;border:3px dashed #ffeac5!important;border-radius:50%!important;background:radial-gradient(circle at 30% 22%,#f7808d,#b21732 64%,#500e1b)!important;color:#fff6da;font:900 clamp(8px,1.4vw,20px) system-ui;padding:0!important;box-shadow:inset 0 0 0 3px #7c1628,0 2px 6px #0009!important}
#threeCardPoker .tcp-chips button:nth-child(2){background:radial-gradient(circle at 30% 22%,#83ddae,#0c8553 64%,#06412a)!important;box-shadow:inset 0 0 0 3px #087448,0 2px 6px #0009!important}
#threeCardPoker .tcp-chips button:nth-child(3){background:radial-gradient(circle at 30% 22%,#999fac,#2a2d37 64%,#101014)!important;box-shadow:inset 0 0 0 3px #333b43,0 2px 6px #0009!important}
#threeCardPoker .tcp-chips button:nth-child(4){background:radial-gradient(circle at 30% 22%,#cc9de8,#6e2f96 64%,#261035)!important;box-shadow:inset 0 0 0 3px #803e9e,0 2px 6px #0009!important}
#threeCardPoker .tcp-chips button.is-active{outline:2px solid #ffe9ab;outline-offset:2px;transform:translateY(-2px)}
#threeCardPoker .tcp-chips button:disabled{filter:grayscale(.7)}
#threeCardPoker .tcp-actions{flex:1;display:flex!important;flex-wrap:nowrap!important;gap:1.2%!important;align-items:center;justify-content:flex-end;height:100%;min-width:0}
#threeCardPoker .tcp-actions button{flex:1;min-width:0!important;height:75%;font:850 clamp(8px,.95vw,14px) system-ui;white-space:nowrap;padding:0 1%!important;border:1px solid #a48d62!important;background:#1d3335!important;color:#fff1ca!important;border-radius:6px!important}
#threeCardPoker .tcp-actions .tcp-gold{flex:1.7;background:linear-gradient(180deg,#e3c582,#ad813f)!important;color:#1c211c!important;border:1px solid #ffe09e!important;font-weight:900}
#threeCardPoker .tcp-actions button:disabled{opacity:.42;filter:grayscale(.3)}
#threeCardPoker .tcp-coach{position:absolute;left:76%;top:58%;width:22%;z-index:11;text-align:center}
#threeCardPoker .tcp-coach button{border:1px solid #ccb16f;color:#fff1c8;background:#17362eec;border-radius:7px;font:800 clamp(8px,.82vw,12px) system-ui;padding:.4em .8em}
#threeCardPoker .tcp-coach p{font:650 clamp(8px,.9vw,13px) system-ui;color:#fff2bc;background:#0b2b23eb;border:1px solid #bca36b;padding:1%;border-radius:6px}
#threeCardPoker .tcp-panel{position:absolute;left:22%;top:13%;width:56%;height:68%;box-sizing:border-box;z-index:20;overflow:auto;background:linear-gradient(150deg,#0d2925fa,#071613fa);border:2px solid #c6a363;border-radius:14px;padding:1.3%;color:#f6e0b5;box-shadow:0 0 0 999px #0209038c,0 10px 40px #000e}
#threeCardPoker .tcp-panel-top{display:flex;align-items:center;justify-content:space-between;font:900 clamp(12px,1.5vw,20px) Georgia,serif}
#threeCardPoker .tcp-panel button{padding:.4em .75em;color:#ffecb9;border:1px solid #bda26d;border-radius:6px;background:#163a31;font:800 clamp(9px,.86vw,13px) system-ui}
#threeCardPoker .tcp-breakdown{display:grid;grid-template-columns:repeat(4,1fr);gap:1%;margin-top:2%}
#threeCardPoker .tcp-breakdown span{background:#183f31;border:1px solid #aa8d51;border-radius:6px;padding:2%;text-align:center}
#threeCardPoker .tcp-breakdown small{display:block;color:#ceb47b;font-size:clamp(7px,.8vw,11px)}
#threeCardPoker .tcp-breakdown strong{font:900 clamp(11px,1.2vw,16px) system-ui}
#threeCardPoker .tcp-history{margin-top:2%;font-size:clamp(9px,.95vw,13px)}
#threeCardPoker .tcp-history ol{list-style:none;margin:.5% 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
#threeCardPoker .tcp-history li{display:flex;justify-content:space-between;background:#15352e;padding:5px;font-size:clamp(8px,.8vw,12px)}
#threeCardPoker .tcp-win{color:#aff2be}#threeCardPoker .tcp-lose{color:#f4afb0}
#threeCardPoker .tcp-config{display:flex;gap:1%;margin-top:2%}
#threeCardPoker .tcp-rules{margin-top:2%;font-size:clamp(9px,.9vw,13px);line-height:1.5}
#threeCardPoker .tcp-rules summary{cursor:pointer;font-weight:900;color:#ffda93}
@media(max-width:700px) and (orientation:landscape){
 #threeCardPoker .tcp-area-heading{font-size:8px}
 #threeCardPoker .tcp-card-corner{font-size:9px}
 #threeCardPoker .tcp-card-suit{font-size:18px}
 #threeCardPoker .tcp-card-back-logo{font-size:6px}
 #threeCardPoker .tcp-wager-chip{width:17px;height:17px;font-size:6px}
 #threeCardPoker .tcp-spot-title{font-size:8px}
 #threeCardPoker .tcp-spot small,#threeCardPoker .tcp-play-zone small{font-size:6px}
 #threeCardPoker .tcp-spot em{font-size:7px!important}
 #threeCardPoker .tcp-chips button{width:23px;height:23px;font-size:8px}
 #threeCardPoker .tcp-console{padding:.3% 1%!important}
 #threeCardPoker .tcp-actions button{font-size:7px}
 #threeCardPoker .tcp-player-avatar{left:6.0%;top:57.5%;width:16%;height:23.4%}
}
@media(prefers-reduced-motion:reduce){#threeCardPoker .tcp-card--enter,#threeCardPoker .tcp-card--reveal,#threeCardPoker .tcp-wager-chip.has-wager,#threeCardPoker .tcp-wager-chip.is-paying,#threeCardPoker .tcp-play-zone.is-ready{animation:none!important}}

/* SKIP must visually land every card immediately, without replaying an interrupted flight/flip. */
#threeCardPoker .tcp-stage.tcp-skip-final .tcp-card{animation:none!important;transform:none!important;filter:none!important;opacity:1!important}
#threeCardPoker .tcp-stage.tcp-win-flash .tcp-player-area{filter:drop-shadow(0 0 12px #ecd072);animation:tcp-win-glow 1.3s ease-out}
@keyframes tcp-win-glow{0%{filter:drop-shadow(0 0 2px #fbe28f)}40%{filter:drop-shadow(0 0 23px #fbe28f)}100%{filter:drop-shadow(0 0 12px #ecd072)}}
