/* ROGUES DECK — a complete print system and a single, flowing effects stage. */
.playing-card.rogue-card{--rogue-ink:#202c3e;--rogue-brass:#a18550;--rogue-paper:#f8f1df;display:block;position:relative;flex:0 0 auto;width:110px;height:158px;padding:0;overflow:hidden;border:1px solid #b9aa8c;border-radius:9px;background:radial-gradient(ellipse at 25% 15%,#fffdf5,var(--rogue-paper) 65%,#e8ddc6);color:var(--rogue-ink);box-shadow:inset 0 0 0 1px #fff9,0 2px 0 #b3a78d,0 4px 0 #e2d4ba,0 7px 15px #10131b40;isolation:isolate;transform:none;transform-origin:50% 90%;transition:transform .2s,box-shadow .2s;cursor:default}
button.playing-card.rogue-card{cursor:pointer}
.playing-card.rogue-card.red-card{--rogue-ink:#a12f3c}
.playing-card.rogue-card::before{content:"";inset:0;border:0;border-radius:inherit;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath d='M0 0h90v90H0z' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");box-shadow:inset 0 0 13px #a1844020;z-index:0}
.rogue-frame{position:absolute;inset:0;width:100%;height:100%;fill:none;pointer-events:none;z-index:1}
.rogue-frame .frame-outer{stroke:var(--rogue-brass);stroke-width:1.8}
.rogue-frame .frame-inner{stroke:var(--rogue-ink);stroke-width:.7;opacity:.4}
.rogue-frame .frame-corners{stroke:var(--rogue-ink);stroke-width:1.3;opacity:.8}
.rogue-frame .frame-flourish{stroke:var(--rogue-brass);stroke-width:1.2}
.rogue-frame .frame-diamonds{fill:var(--rogue-brass);stroke:none}
.rogue-index{position:absolute;z-index:4;display:flex;flex-direction:column;align-items:center;gap:2px;width:23px;padding:1px 1px 3px;background:var(--rogue-paper);color:var(--rogue-ink);border-radius:0 0 8px 0}
.rogue-index-top{top:8px;left:7px}.rogue-index-bottom{right:7px;bottom:8px;transform:rotate(180deg)}
.rogue-index b{font-family:Georgia,'Times New Roman',serif;font-size:28px;line-height:.9;letter-spacing:-.09em;font-weight:700}
.rogue-index .rogue-suit{width:19px;height:19px}.rogue-suit{display:block;width:100%;height:100%;overflow:visible}
.rogue-suit-engraving{fill:none;stroke:var(--rogue-paper);stroke-width:3.5;opacity:.65;stroke-linecap:round;stroke-linejoin:round}
.rogue-edition,.rogue-maker,.rogue-suit-name,.rogue-ace-name,.rogue-power{position:absolute;z-index:3;left:22%;right:22%;font-family:Outfit,sans-serif;color:var(--rogue-brass);text-align:center;font-weight:750;line-height:1;white-space:nowrap;pointer-events:none}
.rogue-edition{top:6%;font-size:6px;letter-spacing:.21em}.rogue-maker{bottom:5%;font-size:5px;letter-spacing:.14em}
.rogue-suit-name{bottom:15%;font-size:5px;letter-spacing:.2em;color:var(--rogue-ink);opacity:.62}
.rogue-pips{position:absolute;z-index:2;inset:23% 27%;color:var(--rogue-ink)}
.rogue-pip{position:absolute;left:var(--pip-x);top:var(--pip-y);width:21px;height:21px;transform:translate(-50%,-50%)}
.rogue-pip.is-inverted{transform:translate(-50%,-50%) rotate(180deg)}
.rogue-portrait{position:absolute;left:17%;right:17%;top:16%;bottom:14%;overflow:hidden;border:1px solid var(--rogue-brass);border-radius:3px;background:#efe4ca;z-index:2}
.rogue-portrait img{display:block;width:100%;height:100%;object-fit:fill}
.rogue-ace-crest{position:absolute;left:16%;top:17%;width:68%;height:67%;object-fit:contain;z-index:2}
.rogue-ace-name{bottom:14%;left:16%;right:16%;font-size:4px;letter-spacing:.07em;color:var(--rogue-ink)}
.rogue-joker-art{position:absolute;left:16%;top:15%;width:68%;height:72%;object-fit:fill;z-index:2;border-radius:3px}
.rogue-index-joker{width:20px}.rogue-index-joker b{font-family:Outfit,sans-serif;font-size:12px;letter-spacing:-.05em}.rogue-joker-star{font-size:16px;line-height:1}
.rogue-power{bottom:12%;font-size:5px;letter-spacing:.08em;color:var(--rogue-ink);background:var(--rogue-paper);padding:3px 0}
.rogue-foil{position:absolute;inset:0;z-index:5;border-radius:inherit;overflow:hidden;pointer-events:none}
.rogue-foil::before{content:"";position:absolute;top:-50%;left:-100%;width:55%;height:200%;transform:skewX(-23deg);background:linear-gradient(90deg,transparent,#f5deb466,#fff9,#e9d3ab44,transparent);opacity:0}
.rogue-card:hover .rogue-foil::before,.rogue-card.is-selected .rogue-foil::before{animation:rogue-foil-pass 1s ease both}
.hand-cards{display:flex;align-items:center;justify-content:safe center;gap:10px;min-height:202px;padding:25px 12px 19px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding:15px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.hand-cards .playing-card.rogue-card{width:110px;height:158px;scroll-snap-align:center}
.hand-cards .playing-card.rogue-card:not(:first-child){margin-left:0}
.hand-cards .playing-card.rogue-card:hover:not(:disabled){transform:translateY(-10px);z-index:4;box-shadow:0 5px 0 #b4a584,0 14px 25px #0005}
.hand-cards .playing-card.rogue-card.is-selected{transform:translateY(-13px);border-color:#7d693e;box-shadow:0 0 0 3px var(--gold,#d9b876),0 4px 0 #7e6d49,0 14px 25px #0005;z-index:3}
.hand-cards .playing-card.rogue-card.is-selected:hover{transform:translateY(-15px)}
.hand-cards .playing-card.rogue-card.is-playable::after{content:"";position:absolute;left:auto;right:7px;top:8px;width:5px;height:5px;background:var(--gold,#d9b876);border:1px solid #7d693e;border-radius:50%;z-index:5}
.rogue-card.deal-in{animation:rogue-deal .42s cubic-bezier(.15,.8,.25,1) backwards;animation-delay:calc(var(--card-index,0)*.025s)}
.pile-cards{min-height:176px;gap:0;padding:0 12px;align-items:center}
.pile-cards .playing-card.rogue-card{width:122px;height:176px;transform:rotate(-3deg)}
.pile-cards .playing-card.rogue-card+.playing-card.rogue-card{margin-left:-21px;transform:rotate(3deg)}
.pile-cards .playing-card.rogue-card:nth-child(3){transform:rotate(-1deg)}
.pile-cards .playing-card.rogue-card:nth-child(4){transform:rotate(4deg)}
.pile-cards.play-impact{animation:rogue-impact .44s cubic-bezier(.18,.8,.25,1) both}
.felt:has(.pile-cards){min-height:252px;max-height:none;flex:0 0 auto}
.pile-area:has(.pile-cards){padding:17px 14px 22px;gap:15px}
.felt:has(.pile-cards) .felt-wordmark{display:none}
.pile-caption{font-size:14px;line-height:1.45;letter-spacing:0;text-align:center;color:#f5f7ef}
.table-feedback{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:10px;width:min(100%,1100px);margin:13px auto 9px}
.table-feedback:has(.banter-bubble[hidden]){grid-template-columns:1fr}
.table-feedback .last-action.table-status,.table-feedback .banter-bubble{position:static;inset:auto;transform:none;z-index:auto;width:auto;max-width:none;min-height:44px;max-height:54px;margin:0;padding:7px 13px;border:1px solid var(--menu-border,#7e758c66);border-radius:12px;background:var(--menu-surface,#1c2b36);color:var(--text,#f5f2e9);font:500 14px/1.4 Outfit,'Avenir Next',sans-serif;letter-spacing:0;text-align:center;box-shadow:none;animation:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.table-feedback .banter-bubble{color:var(--gold-light,#f1d5a3)}
.table-feedback .banter-bubble::after{display:none}
.human-zone{margin-top:8px}
#joker-show.joker-show,#celebration.celebration{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:18px;overflow:hidden;pointer-events:none;opacity:0;visibility:hidden;isolation:isolate}
#joker-show.show,#celebration.show{opacity:1;visibility:visible}
.effect-content{position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;align-content:center;justify-items:center;gap:16px;width:min(680px,92vw);max-height:min(90dvh,640px);margin:0;padding:24px;transform:none;text-align:center;z-index:3;overflow:hidden}
#joker-show .effect-content{background:radial-gradient(ellipse at 50% 35%,#28213bc9,#101622cc);border:1px solid #e9cf964d;border-radius:26px;box-shadow:0 20px 90px #0006}
#joker-show .joker-mascot{position:relative;inset:auto;display:block;width:auto;max-width:60%;height:clamp(96px,32dvh,250px);max-height:36dvh;object-fit:contain;opacity:1;transform:none;filter:drop-shadow(0 12px 28px #0007)}
#joker-show h2,#joker-show p{position:relative;inset:auto;width:100%;max-width:100%;margin:0;transform:none;opacity:1;text-align:center;text-wrap:balance}
#joker-show h2{font:900 clamp(25px,4.5vw,48px)/1.04 Outfit,sans-serif;letter-spacing:-.04em;color:#fff3d4;text-shadow:0 3px 0 #131624}
#joker-show p{font:600 16px/1.5 Outfit,sans-serif;color:#e6dccc}
#joker-show.show .joker-mascot{animation:rogue-joker-reveal 1.8s cubic-bezier(.2,.75,.25,1) both}
#joker-show[data-color=red].show .joker-mascot{animation-name:rogue-red-reveal}
#joker-show.show h2,#joker-show.show p{animation:rogue-effect-copy 1.8s ease both}
#joker-show .joker-shockwave,#joker-show .joker-sparks>i{top:44%}
#celebration .celebration-banner{position:relative;inset:auto;display:grid;justify-items:center;align-content:center;gap:14px;width:min(600px,92vw);max-height:min(90dvh,600px);padding:30px 25px;transform:none;border-radius:25px;background:var(--menu-surface,#24293b);border:2px solid var(--gold,#dfbd7d);opacity:1;overflow:hidden}
#celebration .celebration-emoji{display:block;font-size:clamp(46px,12dvh,88px);line-height:1;margin:0}
#celebration #celebration-title{display:block;margin:0;font:900 clamp(25px,4.5vw,44px)/1.06 Outfit,sans-serif;letter-spacing:-.035em;color:var(--gold-light,#ead49b);text-wrap:balance}
#celebration #celebration-copy{display:block;margin:0;color:var(--text,#f4eee4);font:600 16px/1.5 Outfit,sans-serif;text-wrap:balance}
#celebration.show .celebration-banner{animation:rogue-panel-in .42s cubic-bezier(.15,.8,.3,1) both}
@keyframes rogue-foil-pass{0%{left:-100%;opacity:0}20%{opacity:.7}100%{left:150%;opacity:0}}
@keyframes rogue-deal{from{opacity:0;transform:translate(20px,-45px) rotate(7deg) scale(.92)}to{opacity:1;transform:none}}
@keyframes rogue-impact{0%{opacity:.65;transform:translateY(-26px) scale(1.04)}65%{opacity:1;transform:translateY(3px) scale(.99)}100%{transform:none}}
@keyframes rogue-joker-reveal{0%{opacity:0;transform:perspective(600px) rotateY(130deg) scale(.4)}25%{opacity:1;transform:perspective(600px) rotateY(0) scale(1.06)}45%,78%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-12px) scale(1.02)}}
@keyframes rogue-red-reveal{0%{opacity:0;transform:translateY(30px) rotate(-10deg) scale(.65)}28%{opacity:1;transform:translateY(-7px) rotate(4deg) scale(1.05)}50%,78%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-12px)}}
@keyframes rogue-effect-copy{0%,20%{opacity:0;transform:translateY(10px)}38%,78%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-4px)}}
@keyframes rogue-panel-in{from{opacity:0;transform:translateY(15px) scale(.94)}to{opacity:1;transform:none}}
@media(min-width:901px) and (max-height:1050px){
.topbar{min-height:78px;padding-top:7px;padding-bottom:7px}.brand .party-logo{height:64px;width:200px}.play-area{padding-top:13px}.opponents{margin-bottom:8px}.avatar{width:58px;height:58px}.opponent{padding-top:0;padding-bottom:15px}.opponent-name{margin-top:5px}.opponent-info{font-size:12px}.mini-cards{display:none}.felt:has(.pile-cards){min-height:250px}.hand-cards{min-height:198px;padding-top:24px;padding-bottom:16px}.hand-cards .playing-card.rogue-card{width:110px;height:158px}.action-bar{padding-top:5px;padding-bottom:10px;gap:6px}.selection-help{font-size:13px;min-height:18px}.coach-tip{font-size:12px;padding:5px 10px}.social-bar{padding-top:7px;padding-bottom:9px}.sidebar .table-note{display:none}
}
@media(min-width:601px) and (max-width:900px){
.topbar{min-height:73px;padding:6px 18px;gap:12px}.brand .party-logo{width:165px;height:60px}.header-actions{gap:7px}.header-actions .connection-pill{display:none}.header-actions .theme-select{width:108px;max-width:108px;font-size:12px}.header-actions .quiet-button,.header-actions .secondary-button{font-size:13px;padding-left:10px;padding-right:10px}.sidebar{min-height:36px;padding:3px 20px;gap:12px}.sidebar .round-heading{font-size:21px}.sidebar .standing-meta{font-size:11px}.sidebar .text-button{min-height:30px;padding-top:4px;padding-bottom:4px}.play-area{padding:9px 20px 0}.opponents{padding-top:0;gap:5px;margin-bottom:7px}.opponents:has(.role-president){padding-top:16px}.opponent{padding:0 2px 8px}.avatar{width:46px;height:46px;border-radius:16px}.opponent-name{font-size:13px;line-height:1.15;margin-top:4px}.opponent-info{font-size:11px;line-height:1.2;min-height:13px;margin-top:2px}.mini-cards,.opponent .turn-badge{display:none}.felt,.felt:has(.pile-cards){min-height:181px;max-height:none;border-width:6px;border-radius:65px;flex:0 0 auto}.pile-area:has(.pile-cards){padding:8px 12px 13px;gap:10px}.pile-cards{min-height:126px}.pile-cards .playing-card.rogue-card{width:88px;height:126px}.pile-caption{font-size:14px}.pile-area{padding-top:25px;padding-bottom:25px}.empty-pile{min-height:110px;gap:7px}.empty-symbol{height:45px;width:38px;font-size:27px}.felt-wordmark{display:none}.hand-cards{min-height:146px;padding:16px 9px 10px;gap:9px}.hand-cards .playing-card.rogue-card{width:84px;height:120px}.rogue-index b{font-size:23px}.rogue-index .rogue-suit{width:16px;height:16px}.rogue-index{width:20px;left:6px;top:7px}.rogue-index-bottom{left:auto;top:auto;right:6px;bottom:7px}.rogue-pip{width:17px;height:17px}.human-zone{margin-top:5px}.hand-heading{min-height:25px}.hand-heading .autoplay-control{min-height:25px}.coach-tip{margin-top:5px;padding:4px 9px;font-size:12px;line-height:1.35}.human-zone:has(.coach-tip:not([hidden])) .hand-cards{padding-top:16px}.action-bar{padding:5px 0 10px;gap:5px}.selection-help{font-size:12px;line-height:1.35;min-height:17px}.play-actions .primary-button,.play-actions .secondary-button,.play-actions .text-button{min-height:43px;padding-top:9px;padding-bottom:9px}.table-feedback{margin-top:9px;margin-bottom:6px;gap:8px}.table-feedback .last-action.table-status,.table-feedback .banter-bubble{padding:6px 10px;min-height:40px;font-size:13px;line-height:1.35;max-height:48px}.social-bar{padding-top:6px;padding-bottom:8px}.social-bar .reaction-bar button{width:36px;min-height:36px;font-size:19px}.table-footer{padding-top:8px;padding-bottom:10px}.felt:has(.waiting-panel){min-height:320px;border-radius:38px}
}
@media(max-width:600px){
.topbar{min-height:104px;padding:6px 14px 8px;gap:5px}.brand .party-logo{width:145px;height:42px}.header-actions{gap:6px}.header-actions .quiet-button,.header-actions .secondary-button{font-size:13px;padding-left:9px;padding-right:9px;min-height:42px}.header-actions .theme-select,.header-actions .icon-button{min-height:42px}.header-actions .theme-select{font-size:11px}.sidebar{min-height:37px;padding:3px 14px}.sidebar .round-heading{font-size:19px}.sidebar .text-button{min-height:29px;padding-top:4px;padding-bottom:4px}.play-area{padding:9px 12px 0}.opponents{gap:2px 4px;margin-bottom:8px}.opponent{padding-bottom:7px}.avatar{width:44px;height:44px;border-radius:15px}.opponent-name{font-size:13px;line-height:1.1;margin-top:4px}.opponent-info{font-size:10px;line-height:1.25;min-height:13px;margin-top:2px}.felt,.felt:has(.pile-cards){min-height:198px;max-height:none;border-width:5px;border-radius:55px;flex:0 0 auto}.pile-area:has(.pile-cards){padding:10px 12px 15px;gap:11px}.pile-cards{min-height:132px}.pile-cards .playing-card.rogue-card{width:92px;height:132px}.pile-cards .playing-card.rogue-card+.playing-card.rogue-card{margin-left:-21px}.pile-caption{font-size:14px;line-height:1.35}.felt-wordmark{display:none}.pile-area{padding-top:22px;padding-bottom:22px}.empty-pile{min-height:110px;gap:7px}.empty-symbol{width:37px;height:45px;font-size:26px}.empty-pile small{font-size:13px}.table-feedback{grid-template-columns:1fr;gap:7px;margin:9px auto 7px}.table-feedback .last-action.table-status,.table-feedback .banter-bubble{font-size:14px;line-height:1.35;min-height:40px;padding:6px 10px;max-height:51px}.human-zone{margin-top:5px}.hand-heading{min-height:26px}.hand-heading .autoplay-control{min-height:26px}.hand-cards{min-height:159px;padding:19px 9px 16px;gap:8px;justify-content:safe center}.hand-cards .playing-card.rogue-card{width:86px;height:124px}.hand-cards .playing-card.rogue-card:not(:first-child){margin-left:0}.human-zone:has(.coach-tip:not([hidden])) .hand-cards{padding-top:19px}.rogue-index{width:21px;top:7px;left:6px}.rogue-index-bottom{left:auto;top:auto;right:6px;bottom:7px}.rogue-index b{font-size:23px}.rogue-index .rogue-suit{width:16px;height:16px}.rogue-index-joker b{font-size:10px}.rogue-pip{width:17px;height:17px}.rogue-edition{font-size:5px}.rogue-maker{font-size:4px}.rogue-suit-name,.rogue-power{font-size:4px}.rogue-ace-name{font-size:3.5px}.coach-tip{font-size:12px;line-height:1.35;padding:5px 9px;margin-top:5px}.action-bar{padding:5px 7px 11px;gap:6px}.play-actions{gap:8px}.play-actions .primary-button,.play-actions .secondary-button,.play-actions .text-button{min-height:44px}.selection-help{font-size:12px;line-height:1.35;min-height:17px}.social-bar{padding-top:8px;padding-bottom:9px}.effect-content{gap:12px;padding:19px;width:94vw;max-height:88dvh}#joker-show .joker-mascot{height:clamp(96px,30dvh,205px);max-height:32dvh;max-width:65%}#joker-show h2{font-size:31px;line-height:1.06}#joker-show p{font-size:14px;line-height:1.4}#celebration .celebration-banner{padding:24px 20px;gap:13px}#celebration #celebration-title{font-size:31px}#celebration #celebration-copy{font-size:14px}.felt:has(.waiting-panel){min-height:310px;border-radius:32px}
}
@media(max-height:500px){.effect-content{gap:9px;padding:14px;max-height:90dvh}#joker-show .joker-mascot{height:27dvh;max-height:27dvh}#joker-show h2{font-size:26px}#joker-show p{font-size:14px}#celebration .celebration-banner{padding:18px;gap:10px}#celebration .celebration-emoji{font-size:48px}#celebration #celebration-title{font-size:27px}#celebration #celebration-copy{font-size:14px}}
@media(prefers-reduced-motion:reduce){.rogue-card.deal-in,.rogue-card:hover .rogue-foil::before,.rogue-card.is-selected .rogue-foil::before,.pile-cards.play-impact,#joker-show.show .joker-mascot,#joker-show.show h2,#joker-show.show p,#celebration.show .celebration-banner{animation:none}#joker-show.show .joker-mascot,#joker-show.show h2,#joker-show.show p{opacity:1;transform:none}.rogue-foil::before{display:none}}
