@font-face{font-family:Barlow;src:url('/workshop/assets/BarlowCondensed-ExtraBold.ttf')}@font-face{font-family:Bricolage;src:url('/workshop/assets/bricolage.woff2');font-weight:200 800}
:root{--ink:#101a32;--slate:#26375a;--paper:#f5e9cb;--amber:#f2bd53;--muted:#c0bac0;--line:#c9ac6940;--red:#b44440;color:var(--paper);font:15px/1.45 Bricolage,sans-serif;background:var(--ink);color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 75% 0,#29334c,transparent 60%),#101a32;min-height:100vh}button,a{-webkit-tap-highlight-color:transparent}button{font:600 14px Bricolage,sans-serif;color:var(--paper);background:#243249;border:1px solid #b6976266;box-shadow:inset 0 1px #ffffff12,0 2px 0 #070d17;min-height:44px;padding:10px 17px;border-radius:7px;cursor:pointer;transition:transform 120ms,background 120ms}button:active{transform:translateY(2px);box-shadow:inset 0 1px 3px #0007}button:disabled{cursor:default;opacity:.46}a{color:inherit;text-underline-offset:4px}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid var(--amber);outline-offset:4px}button:focus:not(:focus-visible){outline:none}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Barlow,sans-serif;font-weight:800;line-height:1}h2{font-size:30px}p+p{margin-top:12px}.primary{background:linear-gradient(#ffdb80,#e9ad42);border:2px solid #ffe3a3;color:#2b261d;box-shadow:inset 0 0 0 2px #ad712b88,0 4px 0 #79552c;font:800 22px/1 Barlow,sans-serif;padding:14px 30px;min-height:50px;letter-spacing:.2px}.secondary{background:#263e54;border-color:#7193a3;color:#e0edf1}.topbar{max-width:1320px;margin:auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.brand{font:800 22px Barlow;text-decoration:none}.topbar nav{display:flex;align-items:center;gap:18px}.topbar nav a{font-size:13px;text-decoration:none}.topbar button{background:transparent;border-color:transparent;box-shadow:none;padding:6px 8px;font-size:12px}main{max-width:1280px;margin:auto;padding:22px 32px;min-height:calc(100svh - 150px)}footer{max-width:1280px;margin:auto;padding:16px 32px 24px;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:11px}footer a{text-decoration:none}.loading{text-align:center;padding:15vh 20px}.loading h1{font-size:48px;margin:30px 0 12px}.load-cards{height:85px;position:relative;width:90px;margin:auto}.load-cards i{position:absolute;inset:0;border-radius:7px;border:2px solid #d2ae64;background:#28364b url('/poker/assets/card-back.webp') center/cover;transform:rotate(-12deg);transform-origin:bottom}.load-cards i:nth-child(2){transform:rotate(8deg)}.load-cards i:nth-child(3){transform:rotate(28deg)}
.welcome{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:340px;padding:12px 4% 30px;gap:28px}.chapter{color:var(--amber);font-size:13px;margin-bottom:14px}.welcome h1{font-size:clamp(72px,8vw,110px);line-height:.84;letter-spacing:-1px;text-transform:uppercase}.welcome h1 em{font-style:normal}.intro{font-size:22px;line-height:1.3;margin:22px 0 14px}.welcome p:not(.intro):not(.chapter){font-size:13px;color:#c5c5c8}.welcome-art{position:relative;min-height:330px;align-self:stretch;background:radial-gradient(ellipse at 50% 60%,#54736c66,transparent 68%)}.lobby-dealer{position:absolute;right:0;top:-6px;width:245px;height:260px;object-fit:contain;filter:drop-shadow(0 15px 15px #0007)}#display-hand{position:absolute;bottom:32px;left:12px;display:flex;transform:rotate(-9deg)}#display-hand .playing-card{width:120px;height:170px;margin-left:-38px;box-shadow:0 8px 18px #0008}#display-hand .playing-card:nth-child(2){transform:rotate(7deg) translateY(-8px)}#display-hand .playing-card:nth-child(3){transform:rotate(15deg)}.table-stamp{position:absolute;right:12px;bottom:12px;font-size:13px;color:#e7cc88;transform:rotate(-5deg)}.starter-heading{display:flex;align-items:center;justify-content:space-between;margin:16px 0 18px;gap:20px}.starter-heading h2{font-size:32px}.starter-heading p{font-size:13px;color:var(--muted);margin-top:6px}.switch{display:flex;border:1px solid var(--line);padding:4px;border-radius:10px}.switch button{border:0;box-shadow:none;background:none}.switch button[aria-pressed=true]{background:var(--paper);color:var(--ink)}.starters{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.starter{display:flex;align-items:center;gap:16px;text-align:left;padding:14px 18px;min-height:138px;border-color:#c2a06455;background:linear-gradient(120deg,#28384d,#182438);position:relative}.starter[aria-pressed=true]{border:2px solid var(--amber);background:linear-gradient(120deg,#33404d,#1b2b3a);padding:13px 17px}.starter .art{width:80px;flex:0 0 80px;max-height:112px}.starter h3{font-size:24px;margin-bottom:6px}.starter p{font-size:12px;font-weight:400;color:#ddd9cc}.starter small{display:block;color:var(--amber);font-size:10px;margin-top:7px}.start-line{display:flex;align-items:center;justify-content:flex-end;gap:24px;margin:24px 0 12px}.start-line p{font-size:13px;color:var(--paper)}.collection-note{color:var(--muted);font-size:11px;text-align:right}.pager{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:12px}.empty-collection{grid-column:1/-1;padding:28px;border:1px dashed var(--line);text-align:center}.empty-collection a{display:inline-block;margin-top:12px;color:var(--amber)}
.run-bar{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;gap:12px}.run-bar h1{font-size:28px}.run-bar>div>span{font-size:11px;color:var(--muted)}.run-tools{display:flex;align-items:center;gap:12px}.run-tools strong{font-size:18px;color:var(--amber);font-variant-numeric:tabular-nums}.run-tools button{font-size:12px}.game-table{border:2px solid #9f8149;border-radius:24px;box-shadow:0 0 0 5px #1b222e,inset 0 0 0 5px #c6a46440,0 12px 40px #0005;background:linear-gradient(#121d2ab8,#13252ce8),url('/poker/assets/arena-night.webp') center/cover;padding:20px 32px 26px;overflow:hidden;min-height:650px}.opponent{display:grid;grid-template-columns:120px minmax(100px,1fr) 290px;gap:18px;align-items:center;min-height:128px}.opponent-art{height:128px;position:relative}.opponent-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 6px #0006)}.villain-copy h2{font-size:30px;color:#e7c36b}.villain-copy p{font-size:12px;max-width:360px;margin-top:8px}.villain-copy small{color:#d2b67b;display:block;margin-top:8px;font-size:11px}.scoreboard{text-align:right;font-variant-numeric:tabular-nums}.scoreboard>span{font-size:11px;color:#dad2bf}.scoreboard strong{font:800 48px/1.2 Barlow;color:#ffda80}.scoreboard b{font-weight:400}.scoreboard div>span{font-size:19px;color:#e9dfc7}.scoreboard p{font-size:12px;color:#ccc6b4;margin-top:8px}meter{display:block;width:100%;height:8px;margin:4px 0;appearance:none;background:#080f19;border:0;border-radius:10px;overflow:hidden}meter::-webkit-meter-bar{background:#080f19;border:0}meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#a28b4e,#f5cb6d)}meter::-moz-meter-bar{background:#e2bd65}
.section-line{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:12px;margin:8px 0 10px}.section-line h2{font:500 12px Bricolage}.section-line span{font-size:10px;color:#b5bebd}.crew{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:670px;margin:auto}.crew-card{background:linear-gradient(140deg,#e9dcae,#cbbf9d);border:2px solid #c2a762;color:#222d37;padding:7px;display:grid;grid-template-columns:58px 1fr;align-items:center;gap:9px;text-align:left;border-radius:8px;min-height:100px;position:relative;box-shadow:0 4px 0 #060b17,0 8px 10px #0004;transform-origin:bottom}.crew-card h3{font-size:20px;line-height:1.05}.crew-card small{font-size:10px;font-weight:500;display:block;margin-top:6px}.crew-card .art{max-height:80px}.empty-seat{border:1px dashed #d8c69444;border-radius:8px;min-height:100px;display:flex;align-items:center;justify-content:center;font-size:11px;color:#c5b99c}.art{display:block;position:relative;overflow:hidden;aspect-ratio:2/3;background:#162031;border-radius:5px}.art img{position:absolute;max-width:none}.crew-card[data-finish=holo],.crew-card[data-finish=prism]{background:linear-gradient(125deg,#d2e3d3,#d5cef0,#e7c7bf,#dcc978)}.crew-card[data-finish=reverse]{border-color:#9bd5cd}.crew-card[data-finish=etched]{border:3px double #ddac4f}.crew-card[data-shiny=true]{box-shadow:0 0 0 1px #ddd4f6,0 5px 12px #b9b3ef33}.crew-card.active-effect{animation:crew-impact 350ms ease-out}@keyframes crew-impact{35%{transform:translateY(-9px) scale(1.045);filter:brightness(1.3)}100%{transform:none}}
.score-readout{height:88px;text-align:center;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;margin:6px auto 0;max-width:590px}.score-readout>span{font:800 29px Barlow;text-align:right;color:#ffdda2}.score-readout>strong{font:800 40px Barlow;color:#ffda80;font-variant-numeric:tabular-nums}.score-readout>small{font-size:11px;text-align:left;color:#c4cfcd;max-width:180px}.hand{display:flex;justify-content:center;padding:16px 0 15px;min-height:211px;isolation:isolate}.playing-card{display:block;position:relative;width:clamp(72px,9vw,116px);height:clamp(110px,13.5vw,172px);flex:0 0 auto;border-radius:9px;border:1px solid #b8a278;background:linear-gradient(135deg,#fff9e6,#e6dcc2);color:#213448;box-shadow:0 3px 0 #7f7358,0 7px 12px #0008;padding:0;transform-origin:50% 100%;overflow:hidden;text-align:left;transition:transform 160ms ease-out,box-shadow 160ms}.playing-card+.playing-card{margin-left:-9px}.playing-card:before{content:'';position:absolute;inset:5px;border:1px solid #b5a47e66;border-radius:5px;pointer-events:none}.playing-card[data-red=true]{color:#a03a3d}.playing-card[aria-pressed=true]{transform:translateY(-18px);box-shadow:0 0 0 3px var(--amber),0 10px 15px #0008;z-index:2}.playing-card:active{transform:translateY(-12px)}.rank{position:absolute;top:10px;left:10px;font:800 26px/.9 Barlow;text-align:center}.rank .suit{display:block;width:15px;height:15px;margin:5px auto 0}.rank.bottom{top:auto;left:auto;right:10px;bottom:10px;transform:rotate(180deg)}.big-suit{width:40%;height:38%;position:absolute;left:30%;top:31%;opacity:.9}.suit{fill:currentColor;width:1em;height:1em}.card-face-letter{position:absolute;inset:24% 20%;display:grid;place-items:center;font:800 70px Barlow;border:1px solid currentColor;border-radius:50%;opacity:.22}.hand-controls{display:flex;justify-content:center;align-items:center;gap:12px}.sort-controls{display:flex;gap:6px;margin-right:auto}.sort-controls button{font-size:11px;background:transparent;border-color:#a09a7844;box-shadow:none;padding:8px 12px}.hand-controls>.primary{min-width:155px}.hand-controls>.secondary{min-height:50px}.market{padding:20px 0 0}.market-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.market-heading h2{font-size:38px}.market-heading p{font-size:12px;color:#d6d8ca;margin-top:7px}.offers{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.offer{background:#142331d9;border:1px solid #b49b6566;border-radius:8px;padding:14px;display:grid;grid-template-columns:62px 1fr;gap:12px;align-items:center}.offer h3{font-size:23px}.offer p{font-size:11px;margin-top:5px;min-height:32px}.offer button{grid-column:1/-1}.market-bottom{display:flex;align-items:center;gap:18px;margin-top:22px}.market-bottom p{font-size:11px;color:#cccdbb;flex:1}.result{display:flex;align-items:center;justify-content:center;gap:45px;min-height:70svh;padding:40px}.result>img{width:32%;max-height:420px;object-fit:contain;filter:drop-shadow(0 20px 20px #0006)}.result h1{font-size:76px;line-height:.95;margin:12px 0 20px;max-width:500px}.result p{max-width:480px}.result #result-kicker{color:var(--amber)}#result-stats{color:#c7c6bd;font-size:13px;margin:18px 0}#reward{margin:18px 0}#reward a{display:inline-block;background:#2b413a;border:1px solid #b3c98999;padding:14px 20px;border-radius:6px;text-decoration:none;color:#f9e9b3}#reward small{display:block;max-width:370px;font-size:12px;margin-top:8px}.notice{position:sticky;bottom:16px;margin:15px auto 0;max-width:740px;background:#f2dfb5;color:#222e3f;border:2px solid #bf934c;border-radius:8px;padding:12px 18px;box-shadow:0 8px 35px #0008;z-index:8;font-size:13px}.notice button{margin-left:10px}dialog{background:#19283d;color:var(--paper);border:2px solid #a68c58;border-radius:16px;max-width:620px;width:calc(100% - 32px);max-height:85svh;padding:28px;box-shadow:0 20px 70px #0008}dialog::backdrop{background:#07101dcc;backdrop-filter:blur(3px)}dialog h2{font-size:38px;padding-right:60px;margin-bottom:18px}dialog p{font-size:14px;margin:12px 0}.close{position:absolute;right:16px;top:16px;font-size:12px}dialog .art{width:130px;float:left;margin:0 22px 15px 0}dialog table{width:100%;border-collapse:collapse;font-size:12px}dialog td{padding:8px;border-bottom:1px solid var(--line)}.dialog-actions{display:flex;flex-wrap:wrap;clear:both;gap:10px;margin-top:22px}.seen-cards{display:flex;flex-wrap:wrap;gap:7px}.seen-cards .playing-card{width:55px;height:80px;margin:0}.seen-cards .rank{font-size:18px;top:6px;left:6px}.seen-cards .rank.bottom{right:6px;bottom:6px;top:auto;left:auto}.seen-cards .rank .suit{width:9px;height:9px}.seen-cards .big-suit{display:none}.fade-in{animation:arrival 200ms ease-out}@keyframes arrival{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(hover:hover){button:not(:disabled):hover{filter:brightness(1.09)}.playing-card:not([aria-pressed=true]):hover{transform:translateY(-6px)}}
@media(max-width:900px){main{padding:18px}.topbar{padding:10px 18px}.welcome{padding:12px 15px 25px;gap:15px}.welcome h1{font-size:82px}.intro{font-size:19px}.starter{padding:10px;gap:9px}.starter[aria-pressed=true]{padding:9px}.starter .art{width:60px;flex-basis:60px}.starter h3{font-size:21px}.game-table{padding:14px 20px 22px}.crew-card{grid-template-columns:44px 1fr;gap:7px}.crew-card h3{font-size:18px}.opponent{grid-template-columns:95px 1fr 220px}.market-bottom{flex-wrap:wrap}.hand-controls{flex-wrap:wrap}.sort-controls{margin-right:0}.hand{min-height:180px}.offers{gap:9px}.offer{padding:10px;grid-template-columns:45px 1fr}}
@media(max-width:600px){.topbar{padding:7px 12px;gap:8px}.brand{font-size:18px;max-width:70px;line-height:1}.topbar nav{gap:8px}.topbar nav a,.topbar button{font-size:10px}.topbar button{padding:4px}.topbar nav a:nth-child(2){display:none}main{padding:14px 10px;min-height:calc(100svh - 120px)}footer{padding:14px;font-size:10px}footer span{display:none}.welcome{min-height:230px;padding:7px 6px 12px;grid-template-columns:1.2fr 1fr;gap:0}.welcome h1{font-size:60px}.chapter{font-size:10px;margin-bottom:11px}.intro{font-size:14px;margin:14px 0 10px}.welcome p:not(.intro):not(.chapter){font-size:11px}.welcome-art{min-height:230px}.lobby-dealer{width:155px;height:175px;right:-8px;top:-8px}#display-hand{bottom:25px;left:10px}#display-hand .playing-card{width:66px;height:100px;margin-left:-30px}.table-stamp{font-size:9px;right:0;bottom:4px}.starter-heading{align-items:flex-start;flex-direction:column;gap:12px;margin:18px 6px 12px}.starter-heading h2{font-size:26px}.starter-heading p{font-size:11px}.switch{padding:2px;width:100%}.switch button{flex:1;min-height:40px;font-size:12px}.starters{grid-template-columns:1fr;gap:8px}.starter{min-height:90px;padding:8px 14px;gap:14px}.starter[aria-pressed=true]{padding:7px 13px}.starter .art{width:48px;flex-basis:48px;max-height:70px}.starter h3{font-size:22px;margin:0 0 4px}.starter p{font-size:12px}.starter small{font-size:10px;margin-top:4px}.start-line{margin:17px 4px 10px;gap:12px;justify-content:space-between}.start-line p{font-size:11px;max-width:145px}.start-line .primary{font-size:23px;padding:14px 24px}.collection-note{text-align:left;font-size:10px;margin:0 6px}.run-bar{margin:0 2px 12px}.run-bar h1{font-size:23px}.run-bar>div>span{font-size:10px}.run-tools{gap:5px}.run-tools strong{font-size:14px}.run-tools button{font-size:10px;padding:6px;min-height:38px}.game-table{border-radius:17px;padding:9px 10px 14px;min-height:0}.opponent{grid-template-columns:65px 1fr 122px;gap:8px;min-height:107px}.opponent-art{height:100px}.villain-copy h2{font-size:20px}.villain-copy p{font-size:10px;margin-top:5px}.villain-copy small{font-size:9px;margin-top:5px}.scoreboard strong{font-size:35px}.scoreboard div>span{font-size:12px}.scoreboard p{font-size:10px;margin-top:5px}.scoreboard>span{font-size:10px}.section-line{margin-top:6px;padding-top:8px}.section-line span{font-size:9px}.crew{gap:6px}.crew-card{display:flex;flex-direction:column;gap:5px;padding:5px 4px;min-height:116px;text-align:center;border-radius:6px}.crew-card .art{width:100%;max-width:54px;height:64px;flex:none;aspect-ratio:auto}.crew-card h3{font-size:14px;line-height:.95}.crew-card small{font-size:9px;margin-top:4px}.empty-seat{font-size:9px;min-height:116px;text-align:center;padding:8px}.score-readout{height:75px;gap:8px;grid-template-columns:1fr auto 1fr;margin-top:3px}.score-readout>span{font-size:22px}.score-readout>strong{font-size:31px}.score-readout>small{font-size:10px}.hand{min-height:134px;padding:14px 0 10px}.playing-card{width:62px;height:96px;border-radius:6px}.playing-card+.playing-card{margin-left:calc((100vw - 30px - 8 * 62px) / 7);margin-left:clamp(-34px,calc((100vw - 56px - 496px) / 7),-10px)}.playing-card:before{inset:3px;border-radius:3px}.rank{font-size:23px;left:6px;top:8px}.rank.bottom{right:6px;bottom:8px;left:auto;top:auto}.rank .suit{width:12px;height:12px;margin-top:3px}.big-suit{width:30%;left:35%;height:26%;top:37%}.card-face-letter{font-size:42px}.hand-controls{display:grid;grid-template-columns:1fr 1.15fr;gap:10px}.sort-controls{grid-column:1/-1;justify-content:space-between;order:3;margin-top:2px}.sort-controls button{font-size:10px;padding:5px 9px;min-height:36px}.hand-controls>.primary{min-width:0;font-size:24px}.hand-controls>.secondary{font-size:13px;min-height:50px}.market-heading{gap:8px;margin:4px 0 13px}.market-heading h2{font-size:30px}.market-heading p{font-size:10px}.market-heading button{font-size:10px;padding:7px}.offers{grid-template-columns:1fr;gap:8px}.offer{grid-template-columns:42px 1fr auto;gap:10px;padding:9px}.offer h3{font-size:21px}.offer p{font-size:10px;min-height:0}.offer button{grid-column:auto;font-size:11px;padding:8px}.offer .art{height:60px}.market-bottom{gap:10px;margin-top:15px;display:grid;grid-template-columns:1fr 1fr}.market-bottom p{font-size:9px;grid-column:1/-1;grid-row:2}.market-bottom .primary{font-size:21px;padding:12px 14px}.market-bottom>button:first-child{font-size:11px}.result{flex-direction:column;gap:15px;padding:20px 15px;text-align:center;min-height:75svh}.result>img{width:165px;height:180px}.result h1{font-size:56px;margin:10px 0 18px}.result p{font-size:13px}.result #result-stats{font-size:12px}.notice{font-size:12px;padding:10px}.notice button{font-size:11px;margin:8px 0 0}dialog{padding:24px 20px}dialog h2{font-size:31px}dialog .art{width:100px}dialog p{font-size:12px}.loading h1{font-size:40px}}
@media(max-width:355px){.playing-card{width:57px;height:89px}.playing-card+.playing-card{margin-left:-22px}.crew-card h3{font-size:12px}.opponent{grid-template-columns:50px 1fr 105px}.welcome h1{font-size:53px}.welcome-art{min-width:0}.lobby-dealer{width:130px}.topbar nav{gap:5px}.topbar button{font-size:9px}.intro{font-size:13px}.rank{font-size:21px}.run-tools strong{font-size:12px}.run-bar h1{font-size:21px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.playing-card[aria-pressed=true]{transform:none;outline:3px solid var(--amber);outline-offset:1px}.load-cards i{animation:none}}

/* Physical materials make the table and its controls part of the Workshop. */
.topbar{border-bottom:1px solid #bb944c55;background:linear-gradient(#172238c0,#0e1729a0)}
.topbar .brand{text-transform:uppercase;letter-spacing:1px;color:#e4c583;text-shadow:0 2px #030c19;font-size:19px;position:relative;padding-left:18px}
.topbar .brand:before{content:'';position:absolute;width:8px;height:8px;left:0;top:50%;transform:translateY(-50%) rotate(45deg);background:#eac171;box-shadow:0 0 0 3px #614e2f}
.topbar nav a{color:#e5d1a4;padding:8px 0;border-bottom:1px solid #ad8c4a55}
.title-mark{line-height:0!important;max-width:470px;width:100%;margin-left:-18px!important}
.title-mark img{display:block;width:100%;height:auto;filter:drop-shadow(0 12px 12px #0005)}
.welcome{grid-template-columns:1.1fr 1fr;min-height:400px;padding-top:0}
.welcome .chapter{font-size:11px;text-transform:uppercase;letter-spacing:2px;margin-bottom:0}
.welcome .intro{margin-top:4px;font-size:19px}
.welcome-art{min-height:365px}.lobby-dealer{width:290px;height:300px;top:0}
.loading-mark{width:280px;margin:20px auto!important}.loading-mark img{width:100%;height:auto}
.run-identity{display:flex;align-items:center;gap:18px}.run-identity h1{width:118px;line-height:0}.run-identity img{display:block;width:100%;height:auto}.run-identity #stage-label{font-size:12px;max-width:200px;color:#d5c4a0}
.coin-wallet{border:1px solid #8d713e;box-shadow:inset 0 0 0 3px #0b1421,0 2px 0 #080d16;background:#121e2b;border-radius:4px;padding:8px 12px;font:800 21px Barlow!important;white-space:nowrap}
.coin-wallet:before{content:'';display:inline-block;width:16px;height:16px;border-radius:50%;border:3px double #ffdc81;box-shadow:0 0 0 1px #6a4828;background:linear-gradient(135deg,#ebc370,#8a642c);margin-right:8px;vertical-align:-1px}
.switch{background:#0c1727;border:1px solid #806c44;border-radius:7px;box-shadow:inset 0 2px 8px #0008;gap:3px}
.starter{box-shadow:inset 0 0 0 3px #0e192880,0 4px 0 #080e18;border-radius:5px 13px 5px 13px}
.starter[aria-pressed=true]:after{content:'AT YOUR TABLE';position:absolute;right:10px;top:-9px;padding:2px 8px;background:#eac37a;color:#19283a;border:1px solid #72522d;font:800 10px Bricolage;letter-spacing:.8px;box-shadow:0 2px 4px #0005}
.game-table{background:linear-gradient(#101c27a0,#0e242ce8),url('/poker/assets/arena-night.webp') center/cover;position:relative;border-radius:20px;border:3px double #c8a66c;box-shadow:0 0 0 5px #171e29,0 0 0 6px #5e5036,inset 0 0 50px #030d1580,0 12px 40px #0005}
.scoreboard{padding:8px 14px;background:linear-gradient(120deg,#08121baf,#152a31);border:1px solid #a5894f55;border-radius:4px;box-shadow:inset 0 0 0 3px #10202a,0 2px 0 #080f19}
.scoreboard strong{font-variant-numeric:tabular-nums;text-shadow:0 2px #000}
.crew-card{border:3px double #b48b48;background:linear-gradient(110deg,#f3e4ba,#dacba5 65%,#bbaa80);box-shadow:inset 0 0 0 2px #fff2cf55,0 4px 0 #060b17,0 8px 10px #0004}
.crew-card .art{border:1px solid #8e744b}.crew-card h3{color:#1b3341;text-shadow:0 1px #fff3cf88}.empty-seat{background:linear-gradient(135deg,#10212a44,#060e1933);box-shadow:inset 0 0 0 3px #bba76c0a;font-size:10px;color:#b8b39d}
.playing-card{background:radial-gradient(ellipse at 40% 20%,#fff9e7,#e9dbb9 90%);border:1px solid #e1c27f;box-shadow:inset 0 0 0 3px #fff3d2,0 3px 0 #897349,0 7px 12px #0008}
.playing-card:before{inset:4px;border:1px solid #977c4670}.rank{z-index:2;text-shadow:0 1px #fff6df}
.pip-pattern{position:absolute;inset:23% 23%;pointer-events:none}.pip{position:absolute;width:23%;height:22%;transform:translate(-50%,-50%)}.pip[data-inverted=true]{transform:translate(-50%,-50%) rotate(180deg)}
.ace-seal{position:absolute;inset:29% 24%;border:1px solid currentColor;transform:rotate(45deg);opacity:.92;display:grid;place-items:center;box-shadow:0 0 0 3px #d9c59a66}.ace-suit{width:74%;height:74%;transform:rotate(-45deg)}
.court-portrait{position:absolute;inset:21% 21%;border:2px double #a98a51;border-radius:45% 45% 6px 6px;overflow:hidden;box-shadow:0 0 0 2px #e3ca8f}.court-portrait .art{width:100%;height:100%;border-radius:0;aspect-ratio:auto}.court-letter{display:grid;place-items:center;height:100%;font:800 52px Barlow}.court-seal{position:absolute;left:40%;bottom:15%;width:20%;height:17%;padding:2px;background:#f3e6c7;border:1px solid #9e814a;border-radius:50%;z-index:2}
.playing-card[aria-pressed=true]{box-shadow:0 0 0 3px #f2bd53,0 0 0 5px #624827,0 14px 15px #0008}
.market-heading h2{color:#f1d18a;text-shadow:0 3px #101824}.offer{border:3px double #a18958;background:linear-gradient(125deg,#1b3039,#101d2b);box-shadow:0 3px 0 #070e18}.offer button{color:#ffdf9c}
#reward a{border:3px double #cbaa63;box-shadow:inset 0 0 0 2px #142b2b,0 3px 0 #0c171f;background:linear-gradient(#31524a,#193c39);font:800 23px Barlow}
dialog{border:4px double #b89b62;border-radius:9px;background:radial-gradient(ellipse at top,#344147,#192838 60%);box-shadow:inset 0 0 0 4px #0b1927,0 20px 70px #0008}
@media(min-width:601px) and (max-height:820px){main{padding-top:10px;padding-bottom:10px}.topbar{padding-top:7px;padding-bottom:7px}.run-bar{margin-bottom:8px}.run-identity h1{width:96px}.game-table{min-height:0;padding:10px 26px 14px}.opponent{min-height:100px;grid-template-columns:95px 1fr 255px}.opponent-art{height:100px}.scoreboard{padding:5px 12px}.scoreboard strong{font-size:40px}.crew-card,.empty-seat{min-height:80px}.crew-card{grid-template-columns:46px 1fr}.crew-card .art{max-height:63px}.section-line{padding-top:8px;margin:5px 0 8px}.score-readout{height:65px;margin:0 auto}.hand{min-height:162px;padding:14px 0 10px}.hand .playing-card{width:96px;height:140px}.hand-controls .primary{min-height:60px}.welcome{min-height:330px}.title-mark{max-width:390px}.welcome-art{min-height:320px}.lobby-dealer{height:265px;width:260px}}
@media(max-width:600px){.topbar .brand{font-size:15px;padding-left:13px;letter-spacing:.3px}.topbar .brand:before{width:6px;height:6px}.topbar button{padding:4px 7px;min-height:36px}.welcome{grid-template-columns:1fr;position:relative;padding:0 8px 12px;min-height:260px}.welcome>div:first-child{position:relative;z-index:1}.title-mark{width:76%;max-width:310px;margin:3px 0 0 -8px!important}.welcome .chapter{font-size:8px;letter-spacing:1.2px}.welcome .intro{font-size:14px;width:72%;margin:4px 0 10px}.welcome p:not(.intro):not(.chapter){max-width:76%;font-size:10px}.welcome-art{position:absolute;right:0;bottom:0;width:34%;height:210px;min-height:0;opacity:.9}.lobby-dealer{width:135px;height:150px;right:-6px;top:25px}#display-hand{display:none}.table-stamp{font-size:8px;bottom:15px;right:4px;max-width:80px;text-align:center}.run-identity{gap:9px;min-width:0}.run-identity h1{width:76px;flex:0 0 76px}.run-identity #stage-label{font-size:9px;max-width:100px}.run-bar{gap:5px;margin-bottom:10px}.run-tools{gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:158px}.run-tools .coin-wallet{font-size:15px!important;padding:4px 7px}.coin-wallet:before{width:12px;height:12px;margin-right:5px}.run-tools button{font-size:9px;min-height:30px;padding:5px 7px}.scoreboard{padding:6px 5px}.scoreboard strong{font-size:31px}.opponent{grid-template-columns:58px 1fr 112px;gap:7px}.game-table{padding:8px 9px 10px}.crew-card{padding:4px 3px}.crew-card .art{height:58px}.crew-card,.empty-seat{min-height:109px}.crew-card h3{font-size:14px}.score-readout{height:67px}.hand{min-height:128px}.rank{left:5px;top:7px}.rank.bottom{right:5px;bottom:7px}.pip-pattern{inset:25% 27%}.court-portrait{inset:24% 23%}.court-seal{bottom:17%;height:16%}.hand-controls>.primary,.market-bottom .primary{min-height:58px;font-size:23px;padding:16px 22px}.hand-controls>.secondary{min-height:48px}.sort-controls button{min-height:36px;font-size:10px}.start-line .primary{min-height:62px;font-size:24px;padding:18px 27px}.collection-note{margin-bottom:5px}.starter[aria-pressed=true]:after{font-size:8px;top:6px;right:7px}.starter h3{max-width:calc(100% - 20px)}.switch button{font-size:11px}.market-bottom p{line-height:1.5}}
@media(max-width:355px){.opponent{grid-template-columns:45px 1fr 100px}.villain-copy h2{font-size:19px}.scoreboard div>span{font-size:11px}.run-identity h1{width:61px;flex-basis:61px}.run-identity #stage-label{max-width:82px;font-size:8px}.run-tools{max-width:137px}.run-tools button{font-size:8px}.topbar nav{gap:5px}.topbar button{padding:4px 5px}.title-mark{width:80%}.welcome-art{width:30%;opacity:.7}.lobby-dealer{width:115px}.crew-card h3{font-size:12px}.coin-wallet:before{display:none}.playing-card+.playing-card{margin-left:-22px}}
@media(min-width:601px) and (max-height:820px){.hand .playing-card{width:clamp(64px,8.2vw,96px);height:clamp(102px,12vw,140px)}}

.starter{background:transparent var(--button-navy) center/100% 128% no-repeat;border:0;box-shadow:none;padding:20px 27px;min-height:138px;border-radius:0}.starter[aria-pressed=true]{background:transparent var(--button-teal) center/100% 158% no-repeat;border:0;padding:20px 27px;box-shadow:none}.starter .art{box-shadow:0 0 0 2px #a28348,0 4px 6px #0007;border-radius:3px}.starter[aria-pressed=true]:after{top:2px;right:24px}.starter small{color:#efd49b}.starter[aria-pressed=true] small{color:#ffe2a1}
@media(max-width:900px) and (min-width:601px){.starter,.starter[aria-pressed=true]{padding:18px 22px;gap:12px}.starters{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.starter,.starter[aria-pressed=true]{min-height:100px;padding:16px 24px;gap:14px}.starter[aria-pressed=true]:after{top:1px;right:18px}.starter h3{max-width:100%}.starter .art{flex-basis:46px;width:46px}.starters{gap:7px}}

@media(max-width:355px){.playing-card+.playing-card{margin-left:calc((100vw - 60px - 456px) / 7)}}

/* Let utility controls wrap while retaining their original painted label insets. */
.sort-controls{flex-wrap:wrap}dialog th{text-align:left;font-weight:600;padding:8px;border-bottom:1px solid var(--line)}dialog td:not(:first-child),dialog th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.score-breakdown{table-layout:fixed}.score-breakdown th:first-child{width:43%}.score-breakdown th,.score-breakdown td{overflow-wrap:anywhere}

:root {
  --button-navy: url('/poker/assets/button-navy-v1.webp');
  --button-teal: url('/poker/assets/button-teal-v1.webp');
  --button-amber: url('/poker/assets/button-amber-v1.webp');
}

/* The canvas includes transparent top/bottom margins. Only its quiet center stretches. */
.illustrated-control {
  --control-art: var(--button-navy);
  --control-height: 48px;
  --control-scale: 1.28;
  --control-slice: 0 245 0 310 fill;
  --control-left-ratio: .428177;
  --control-right-ratio: .338398;
  --control-art-height: calc(var(--control-height) * var(--control-scale));
  --control-left: calc(var(--control-art-height) * var(--control-left-ratio));
  --control-right: calc(var(--control-art-height) * var(--control-right-ratio));
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  height: var(--control-height);
  min-height: 44px;
  padding: 5px calc(var(--control-right) + 6px) 5px calc(var(--control-left) + 6px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  color: #f7e7c4;
  font: 600 14px/1.2 Bricolage, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-shadow: none !important;
  cursor: pointer;
  touch-action: manipulation;
  transition: filter 100ms, translate 100ms;
}
.illustrated-control::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--control-art-height);
  transform: translateY(-50%);
  border: 0 solid transparent;
  border-image: var(--control-art) var(--control-slice);
  border-image-width: 0 var(--control-right) 0 var(--control-left);
  border-image-repeat: stretch;
  pointer-events: none;
}
.control-size { visibility: hidden; pointer-events: none; text-wrap: balance; }
.control-label {
  position: absolute;
  inset: 4px calc(var(--control-right) + 6px) 4px calc(var(--control-left) + 6px);
  display: grid;
  place-items: center;
  align-content: center;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  pointer-events: none;
}
.illustrated-control:hover:not(:disabled) { filter: brightness(1.1); }
.illustrated-control:active:not(:disabled) { translate: 0 1px; transform: none; filter: brightness(.9); }
.illustrated-control:disabled { opacity: .65; filter: saturate(.25); cursor: default; }
.illustrated-control:focus-visible { outline: 3px solid #f2bd53; outline-offset: 3px; }
.illustrated-control.primary, .switch .illustrated-control[aria-pressed=true] {
  --control-art: var(--button-amber);
  --control-scale: 1.5;
  --control-slice: 0 245 0 360 fill;
  --control-left-ratio: .497238;
  --control-right-ratio: .338398;
  color: #302312;
}
.illustrated-control.primary { --control-height: 64px; font-size: 18px; font-weight: 650; }
.illustrated-control.secondary, .offer .illustrated-control, #polish, #reroll,
.dialog-actions .illustrated-control, #reward .illustrated-control {
  --control-art: var(--button-teal);
  --control-scale: 1.58;
  --control-slice: 0 245 0 340 fill;
  --control-left-ratio: .469613;
  --control-right-ratio: .338398;
  color: #fff0ce;
}
.switch { border: 0; background: none; box-shadow: none; padding: 0; gap: 5px; }
.switch .illustrated-control { --control-height: 48px; }
.switch .illustrated-control[aria-pressed=true] .control-label { text-decoration: underline; text-underline-offset: 4px; }
.topbar nav { gap: 8px; }
.topbar .illustrated-control, .run-tools .illustrated-control, .sort-controls .illustrated-control { --control-height: 44px; font-size: 13px; }
.run-tools { flex-wrap: wrap; justify-content: flex-end; }
.close.illustrated-control { position: absolute; right: 16px; top: 16px; --control-height: 44px; min-width: 88px; }
dialog h2 { padding-right: 88px; }
.dialog-actions .illustrated-control { --control-height: 54px; }
.offer .illustrated-control { --control-height: 48px; font-size: 13px; }
#polish, #reroll { min-width: min(100%, 240px); --control-height: 56px; }
#reward .illustrated-control { --control-height: 64px; font-size: 16px; }
.starter > span { transform: translateY(-5px); }
@media (max-width: 600px) {
  .topbar nav { flex-wrap: wrap; gap: 4px; }
  .run-tools { max-width: 190px; gap: 5px; }
  .hand-controls { align-items: center; }
  .hand-controls .primary { --control-height: 60px; font-size: 18px; }
  .hand-controls .secondary { --control-height: 52px; font-size: 14px; }
  .sort-controls { width: 100%; gap: 5px; }
  .sort-controls .illustrated-control { flex: 1 1 115px; }
  .offer .illustrated-control { grid-column: 1 / -1; width: 100%; }
  .market-heading { display: grid; grid-template-columns: minmax(0, 1fr); }
  .market-heading #reroll { justify-self: start; }
  .market-bottom { grid-template-columns: minmax(0, 1fr); }
  .market-bottom p { grid-column: auto; grid-row: auto; }
  .market-bottom #next { grid-row: 3; }
  .switch { width: 100%; flex-wrap: wrap; }
  .switch .illustrated-control { flex: 1 1 140px; }
  .start-line .primary { min-width: 210px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .illustrated-control { max-width: 100%; }
}
@media (max-width: 480px) {
  .hand-controls { grid-template-columns: minmax(0, 1fr); }
  .hand-controls > .illustrated-control { width: 100%; }
}
@media (max-width: 355px) {
  .offer { grid-template-columns: 37px minmax(0, 1fr); gap: 7px; }
  .offer .illustrated-control { grid-column: 1 / -1; width: 100%; }
  .start-line { flex-wrap: wrap; }
  .start-line .primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .illustrated-control { transition: none; } }
@media (forced-colors: active) {
  .illustrated-control { background: ButtonFace !important; border: 1px solid ButtonText !important; color: ButtonText; filter: none; }
  .illustrated-control::before { content: none; }
  .illustrated-control:disabled { color: GrayText; opacity: 1; }
}

/* A single physical table: every card has an origin and somewhere to land. */
.table-action{display:grid;grid-template-columns:76px minmax(0,1fr) 76px;align-items:center;gap:14px;max-width:760px;margin:4px auto 0;position:relative}
.table-center{min-width:0}.table-action .score-readout{height:57px;margin:0 auto;max-width:550px;gap:10px}.table-action .score-readout>span{font-size:26px}.table-action .score-readout>strong{font-size:34px}.table-action .score-readout>small{font-size:11px}
.played-zone{height:100px;max-width:300px;margin:0 auto;display:grid;place-items:center;border:1px solid #b8a16626;border-radius:50%;background:radial-gradient(ellipse,#07182066,transparent 70%)}
.played-zone>span{font-size:10px;letter-spacing:1px;color:#c5b98a69}.pile-station{display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:25px}.pile-station>span{font-size:10px;color:#c7b58a;white-space:nowrap}.card-pile{width:43px;height:63px;border:1px solid #baa46b;border-radius:5px;position:relative;background:#172c32;box-shadow:0 3px #c4b68d,0 4px #514633,0 7px #bbaa7c,0 8px #514633,0 12px 12px #0006}
.draw-pile,.discard-pile.has-cards{background:#142c32 url('/poker/assets/card-back.webp') center/cover}.draw-pile{transform:rotate(6deg)}.discard-pile{transform:rotate(-5deg);box-shadow:inset 0 0 0 3px #081923,0 3px 8px #0003;border:1px dashed #c2ab6450}.discard-pile.has-cards{box-shadow:0 2px #b3a87d,0 3px #62593e,0 5px 10px #0006;border-style:solid}
.table-status{height:20px;margin:2px auto 0;text-align:center;font-size:11px;color:#e9cc88;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game[data-motion=play] .played-zone>span,#game[data-motion=discard] .played-zone>span{visibility:hidden}
#game[data-motion] .playing-card:disabled{opacity:1}#game[data-motion] .playing-card{transition:none}
#hand{padding-top:8px}.playing-card{touch-action:manipulation;-webkit-user-select:none;user-select:none}
.poker-flights{position:fixed;inset:0;pointer-events:none;z-index:45;overflow:hidden;contain:strict;perspective:1100px}
.poker-flights .flying-card{position:absolute;margin:0!important;min-height:0;padding:0;opacity:1;visibility:visible;pointer-events:none;transform-origin:center;transition:none!important;will-change:transform,opacity;border-radius:6px}
.flying-card:disabled{opacity:1}.flying-back{position:absolute;inset:0;z-index:5;border:2px solid #d7ba72;border-radius:inherit;background:#142e32 url('/poker/assets/card-back.webp') center/cover;box-shadow:inset 0 0 0 2px #0e2427}
.table-banner{position:absolute;z-index:5;inset:30% 15% auto;padding:24px 30px;text-align:center;border-block:2px solid #bda062;background:linear-gradient(90deg,#11212a00,#11212af5 12%,#11212af5 88%,#11212a00);filter:drop-shadow(0 12px 18px #0007);pointer-events:none}
.table-banner>small{display:block;font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#dbc18b;margin-bottom:7px}.table-banner>strong{display:block;font:800 clamp(30px,5vw,58px)/1 Barlow;color:#ffe4a6;text-shadow:0 3px #0b141b}.table-banner[data-kind=loss]>strong{color:#e8b0a2}
.opponent-art img{transform-origin:50% 92%;animation:opponent-breathe 5s ease-in-out infinite}.opponent-art{transform-origin:50% 80%;will-change:auto}
.villain-copy p{position:relative;padding:8px 12px;border-left:2px solid #c2a569;background:#0b1b27a8;border-radius:0 8px 8px 8px;min-height:34px;color:#e6ddca}
.villain-copy p:before{content:'';position:absolute;left:-7px;top:10px;width:8px;height:8px;transform:rotate(45deg);background:#bc9c5c}
.game-table[data-tension=last-hand] .scoreboard{border-color:#c67754;box-shadow:inset 0 0 0 3px #30242a,0 0 20px #b956241c}.game-table[data-tension=last-hand] #resources{color:#ffc790;font-weight:700}
#result{position:relative;isolation:isolate}#result:before{content:'';position:absolute;inset:10%;z-index:-1;background:radial-gradient(ellipse at 35% 45%,#d5a13e22,transparent 65%);pointer-events:none}
@keyframes opponent-breathe{0%,100%{transform:translateY(0) rotate(-.6deg)}50%{transform:translateY(-3px) rotate(.6deg)}}
@media(max-width:600px){.table-action{grid-template-columns:37px minmax(0,1fr) 37px;gap:5px;margin-top:7px}.card-pile{width:29px;height:43px;border-radius:3px}.pile-station{gap:8px;padding-top:23px}.pile-station>span{font-size:8px}.table-action .score-readout{grid-template-columns:1fr auto;height:55px;gap:0 6px;align-content:center}.table-action .score-readout>span{font-size:21px;text-align:left}.table-action .score-readout>strong{font-size:27px}.table-action .score-readout>small{grid-column:1/-1;font-size:9px;max-width:none;text-align:left;min-height:16px}.played-zone{height:72px}.played-zone>span{font-size:8px;letter-spacing:.4px}.table-status{font-size:9px;height:17px}.table-banner{inset:29% 5% auto;padding:20px 12px}.table-banner>small{font-size:9px;letter-spacing:1px}.table-banner>strong{font-size:35px}.villain-copy p{font-size:10px;padding:6px 8px}.opponent{grid-template-columns:58px 1fr 100px}.opponent-art{height:112px}.scoreboard{padding:6px 4px}.scoreboard strong{font-size:29px}.crew-card:disabled{opacity:1}.run-tools button{min-height:44px}.sort-controls button{min-height:44px}}
@media(min-width:601px) and (max-height:820px){.table-action{grid-template-columns:50px minmax(0,1fr) 50px;max-width:680px}.table-action .score-readout{height:44px}.played-zone{height:82px}.card-pile{width:33px;height:48px}.pile-station{padding-top:15px}.hand{min-height:149px}.hand .playing-card{height:128px;width:88px}.table-status{height:16px;font-size:10px}.table-banner{inset:26% 15% auto}}
@media(prefers-reduced-motion:reduce){.opponent-art img{animation:none}.poker-flights{display:none}.table-banner{display:none}}

@media(min-width:901px) and (max-height:760px){.game-table{padding-block:8px 10px}.opponent{min-height:86px}.opponent-art{height:86px}.crew-card,.empty-seat{min-height:72px}.crew-card .art{max-height:55px}.table-action .score-readout{height:38px}.table-status{height:14px}.hand{min-height:133px;padding-block:5px 8px}.hand .playing-card{width:81px;height:118px}.run-identity h1{width:82px}.run-bar{margin-bottom:6px}}
@media(max-width:600px){
  .run-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center}.run-identity{grid-column:1;grid-row:1}.run-tools{display:contents}.run-tools .coin-wallet{grid-column:2;grid-row:1;justify-self:end}.run-tools #speed{grid-column:1;grid-row:2;justify-self:start}.run-tools #leave{grid-column:2;grid-row:2;justify-self:end}
  .hand-controls{grid-template-columns:1fr 1fr;gap:5px 8px}.hand-controls>.illustrated-control{width:100%;--control-height:50px;font-size:14px}.hand-controls>.primary{font-size:16px}.sort-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.sort-controls .illustrated-control{width:100%;font-size:10px;--control-height:44px}.sort-controls .control-label{line-height:1.1}
}
