.bst-tri-overlay{position:fixed;inset:0;z-index:2147483550;background:#080e11ed;display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box;overscroll-behavior:contain}.bst-tri{--tri-gold:#d7b76d;--tri-muted:#c3baa3;--tri-line:#655940;box-sizing:border-box;width:1480px;max-width:100%;max-height:96vh;max-height:96dvh;overflow:auto;overscroll-behavior:contain;color:#f0e7d2;background:radial-gradient(ellipse at 50% 0,#2b3430,#151e21 70%);border:1px solid #a98a4d;border-radius:12px;box-shadow:0 18px 100px #000d;font:15px/1.5 system-ui,sans-serif;scrollbar-color:#9b804b #172025;isolation:isolate}.bst-tri *{box-sizing:border-box}.bst-tri [hidden]{display:none!important}.bst-tri h2,.bst-tri h3,.bst-tri h4{font-family:Georgia,'Times New Roman',serif;font-weight:600;color:#f3e4bb;line-height:1.15;margin:0}.bst-tri h2{font-size:31px}.bst-tri h3{font-size:25px}.bst-tri h4{font-size:14px}.bst-tri p{margin:0 0 12px}.bst-tri button,.bst-tri .bst-tri-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:9px 13px;color:#f2e7c9;background:#273735;border:1px solid #887346;border-radius:6px;box-shadow:none;font:600 13px/1.35 system-ui,sans-serif;text-decoration:none;letter-spacing:0;white-space:normal;cursor:pointer}.bst-tri button:hover{background:#3e5046;color:#fff7df}.bst-tri button:disabled{opacity:.5;cursor:default}.bst-tri button:focus-visible,.bst-tri a:focus-visible,.bst-tri input:focus-visible,.bst-tri summary:focus-visible{outline:3px solid #f5d387;outline-offset:3px}.bst-tri input{width:100%;min-width:0;padding:11px 12px;border:1px solid #7f7153;border-radius:5px;background:#101b20;color:#f9ebc8;font:14px/1.4 system-ui,sans-serif}.bst-tri label{display:block;font-size:12px;font-weight:700;color:#d5c39a;margin-bottom:7px}.bst-tri .bst-tri-primary{background:#d8b771;border-color:#e6c98f;color:#1a2724}.bst-tri .bst-tri-primary:hover{background:#edd098;color:#10221d}.bst-tri .bst-tri-text-button{background:transparent;border-color:transparent;color:#d7c5a0}.bst-tri-kicker{font:700 10px/1.5 system-ui,sans-serif!important;letter-spacing:2px;text-transform:uppercase;color:var(--tri-gold);margin:0 0 7px!important}.bst-tri-top{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:20px 26px;border-bottom:1px solid var(--tri-line)}.bst-tri-tools{display:flex;align-items:center;gap:7px}.bst-tri-tools [data-tri-close]{font-size:26px;line-height:1;min-width:40px}.bst-tri-messages:empty{display:none}.bst-tri-messages{padding:12px 26px 0;color:#e5d5aa;font-size:13px}.bst-tri-error{border-left:3px solid #e7aa74;background:#423121;padding:12px;border-radius:3px}.bst-tri-error button{margin-top:7px}.bst-tri-muted{color:var(--tri-muted);font-size:13px}.bst-tri-lobby{max-width:790px;margin:0 auto;padding:65px 45px 75px}.bst-tri-lobby h3{font-size:42px;max-width:620px;margin-bottom:20px}.bst-tri-lobby>p{font-size:16px;color:#d4cbb7;margin-bottom:24px}.bst-tri-lobby-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:24px 0}.bst-tri-lobby-actions>span{font-size:12px;color:var(--tri-muted)}.bst-tri-lobby form{flex:1;min-width:250px}.bst-tri-lobby form>div,.bst-tri-copy{display:flex;gap:8px}.bst-tri-copy{margin-bottom:22px}.bst-tri-copy button{flex-shrink:0}.bst-tri-match-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 26px;border-bottom:1px solid var(--tri-line);background:#182425}.bst-tri-match-bar.is-your-turn{background:linear-gradient(105deg,#304b38,#1a2b29);border-bottom-color:#b4a665}.bst-tri-match-bar h3{font-size:28px;margin-bottom:6px}.bst-tri-match-bar p:last-child{font-size:12px;max-width:700px;color:#d2c9b5;margin:0}.bst-tri-control-count{display:grid;grid-template-columns:1fr 15px 1fr;min-width:150px;text-align:center;gap:0 7px}.bst-tri-control-count span{font-size:9px;color:#d9c79e;letter-spacing:1px}.bst-tri-control-count b{display:block;font:32px Georgia,serif;color:#ffe9ad}.bst-tri-control-count i{align-self:center;font-size:25px;font-style:normal}.bst-tri-control-count small{grid-column:1/-1;font-size:10px;color:var(--tri-muted)}.bst-tri-opponent{display:flex;align-items:center;justify-content:center;gap:22px;padding:12px 22px}.bst-tri-opponent strong{font:18px Georgia,serif}.bst-tri-opponent span{display:block;font-size:11px;color:var(--tri-muted)}.bst-tri-enemy-cards{display:flex;align-items:center;padding-left:8px}.bst-tri .bst-tri-card{display:block;padding:0;border:1px solid #b5a273;border-radius:6px;background:#21332e;min-height:0;overflow:hidden;line-height:0;transition:transform .12s ease,border-color .12s ease;width:100%;position:relative}.bst-tri .bst-tri-card:hover{transform:translateY(-2px);border-color:#ffe1a1}.bst-tri .bst-tri-card img{display:block;width:100%;height:auto;aspect-ratio:5/7;object-fit:contain}.bst-tri .bst-tri-card:disabled{opacity:1}.bst-tri .bst-tri-card:disabled:hover{transform:none}.bst-tri .bst-tri-card.is-enemy-hand{width:32px;flex:0 0 32px;margin-left:-8px;border-radius:3px}.bst-tri-back{display:flex;align-items:center;justify-content:center;aspect-ratio:5/7;background:repeating-linear-gradient(45deg,#2e453e,#2e453e 3px,#192a27 3px,#192a27 7px);color:#c5a763;font-size:32px}.bst-tri-table{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:18px;padding:0 26px 20px;align-items:start}.bst-tri-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.bst-tri-field{min-width:0;border:1px solid #716249;border-radius:10px;overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#58412b99,#2b302baa 70%),linear-gradient(150deg,#383d35,#202927);box-shadow:inset 0 0 0 4px #131f2066}.bst-tri-field-1{background:radial-gradient(ellipse at 50% 25%,#41694b88,#1c322ddd 75%),linear-gradient(150deg,#3b4f3c,#19352a)}.bst-tri-field-2{background:radial-gradient(ellipse at 50% 25%,#67618b77,#282d41dd 75%),linear-gradient(150deg,#3d4159,#252839)}.bst-tri-field.is-owned{border-color:#cebf70;box-shadow:inset 0 0 0 2px #c9b45d33}.bst-tri-field.is-lost{border-color:#bb846a}.bst-tri-field>header{position:relative;text-align:center;padding:14px 8px 8px;border-bottom:1px solid #b39b5833;overflow:hidden}.bst-tri-field h3{font-size:27px;text-shadow:0 2px 8px #000}.bst-tri-field>header p{margin:6px 0 0;font-size:10px;letter-spacing:2px;color:#dcc286}.bst-tri-field-icon{position:absolute;right:12px;top:0;font:65px Georgia,serif;opacity:.12;color:#ead293}.bst-tri-side{padding:9px 10px 10px;text-align:center}.bst-tri-side-label{display:block;color:#c3b995;letter-spacing:2px;font-size:8px;margin-bottom:5px}.bst-tri-side.is-own .bst-tri-side-label{color:#ffe4aa}.bst-tri-leader{width:104px;max-width:62%;margin:auto}.bst-tri-leader-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;aspect-ratio:5/7;border:1px dashed #bcac7777;border-radius:6px;color:#b7a56d99;font:33px Georgia,serif;background:#10231a44}.bst-tri-leader-empty span{font:10px system-ui,sans-serif;margin-top:7px}.bst-tri-stat-pair{display:flex;justify-content:center;gap:5px;margin:7px 0;font-size:11px}.bst-tri-stat-pair span{background:#071719aa;border:1px solid #94814c99;border-radius:4px;padding:3px 6px;color:#ffe9ad;white-space:nowrap}.bst-tri-stat-pair b{font-size:9px;color:#c6ac72;margin-right:3px}.bst-tri-supports{display:flex;justify-content:center;align-items:center;gap:7px;min-height:78px}.bst-tri-support{width:45px;max-width:43%}.bst-tri-support small{display:block;font-size:7px;margin-top:3px;color:#d4c8aa;white-space:nowrap}.bst-tri-support-empty{display:flex;align-items:center;justify-content:center;width:45px;aspect-ratio:5/7;border:1px dashed #ad976744;color:#b5a77855;border-radius:4px}.bst-tri-support .is-relic{border-color:#f0d477;box-shadow:0 0 9px #bca05d44}.bst-tri-supports.is-inactive{opacity:.55}.bst-tri-field-score{padding:8px 7px;text-align:center;background:#0e1d20c9;border-top:1px solid #ab905e55;border-bottom:1px solid #ab905e55}.bst-tri-field-score>strong{font-size:10px;display:block;color:#dec796}.bst-tri-field-score>b{display:block;font:20px Georgia,serif;margin:3px 0;color:#fff0c5}.bst-tri-field-score details{font-size:9px}.bst-tri-field-score summary{cursor:pointer;color:#c4bca6;min-height:22px;padding:4px}.bst-tri-field-score details>small{display:block;font-size:9px;color:#b4ad97;margin:6px 0}.bst-tri-point-row{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:4px;border-top:1px solid #89937533;padding:4px 0}.bst-tri-point-row b{font-size:9px;font-weight:500;color:#cfbd93}.bst-tri-point-row .is-point{color:#ffe29c;font-weight:700}.bst-tri-market{padding:16px;background:#172728;border:1px solid #716449;border-radius:9px}.bst-tri-market>h3{font-size:21px}.bst-tri-market>p{font-size:10px;color:var(--tri-muted);margin:6px 0 15px}.bst-tri-offers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bst-tri-offer{text-align:center;min-width:0}.bst-tri-offer h4{font:700 9px system-ui,sans-serif;letter-spacing:1px;color:#d9bd76;margin-bottom:9px}.bst-tri-offer>strong{font-size:10px;display:block;margin:7px 0;min-height:28px}.bst-tri-offer>button:not(.bst-tri-card){width:100%;font-size:10px;padding:7px 4px;min-height:37px}.bst-tri-no-offer{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:5/7;border:1px dashed #8b815444;border-radius:6px;color:#a9a18a;font-size:10px}.bst-tri-deck-count{font-size:11px;color:#d3c8af;border-top:1px solid #72613f66;margin-top:15px;padding-top:12px;line-height:1.8}.bst-tri-market>[data-tri-action]{width:100%;margin-top:14px}.bst-tri-market .bst-tri-market-note{font-size:11px;margin:15px 0 0;line-height:1.6}.bst-tri-hand{padding:18px 26px;border-top:1px solid var(--tri-line);background:#172322}.bst-tri-section-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}.bst-tri-section-heading h3{font-size:23px}.bst-tri-section-heading h3 span{font:13px system-ui,sans-serif;background:#394735;border:1px solid #867443;border-radius:20px;padding:2px 8px;vertical-align:middle}.bst-tri-section-heading p{font-size:11px;color:var(--tri-muted);margin:0}.bst-tri-hand-cards{display:flex;gap:12px;overflow-x:auto;padding:7px 4px 10px;scrollbar-color:#b09254 #162628}.bst-tri-hand-card{width:105px;flex:0 0 105px}.bst-tri-hand-card>span{display:block;margin-top:5px;color:#d6caae;font-size:10px;text-align:center}.bst-tri .bst-tri-card.is-selected{border:3px solid #ffe1a1;transform:translateY(-4px);box-shadow:0 0 0 2px #b29850,0 3px 12px #b2985055}.bst-tri-tactics{padding:14px 4px 5px;min-height:62px}.bst-tri-tactics>div>strong{font:20px Georgia,serif;color:#ecd49d}.bst-tri-tactics p{font-size:11px;color:#c9c1aa;margin:7px 0}.bst-tri-action-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.bst-tri-action-grid button{font-size:11px}.bst-tri-action-grid .is-relic-action{border-color:#c9ae5d;background:#443f24}.bst-tri-bottom{padding:18px 26px;border-top:1px solid var(--tri-line)}.bst-tri-bottom>div:first-child{display:flex;justify-content:space-between;gap:12px}.bst-tri-discard-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:12px;margin-top:20px}.bst-tri-confirm{border:1px solid #b68461;border-radius:6px;padding:16px;margin-top:12px;background:#382a24;font-size:13px}.bst-tri-confirm button{margin-right:8px}.bst-tri-finished-actions{padding:18px 26px 0}.bst-tri-inspect{position:fixed;inset:0;background:#050b0ef2;z-index:5;display:flex;justify-content:center;align-items:center;padding:28px;overflow:auto}.bst-tri-inspect>div{position:relative;max-width:420px;width:100%;text-align:center}.bst-tri-inspect img{display:block;width:auto;max-width:100%;height:auto;max-height:72vh;max-height:72dvh;margin:auto;border:1px solid #b39956;border-radius:8px}.bst-tri-inspect h3{margin:13px 0 7px;font-size:22px}.bst-tri-inspect p{font-size:12px;color:#d8c7a4}.bst-tri-inspect .bst-tri-inspect-close{position:absolute;right:-10px;top:-18px;font-size:27px;border-radius:50%;width:42px;height:42px;background:#23312c}
@media(min-width:1300px){.bst-tri-leader{width:118px}.bst-tri-support{width:50px}.bst-tri-support-empty{width:50px}.bst-tri-side{padding-bottom:12px}.bst-tri-supports{min-height:85px}.bst-tri-table{grid-template-columns:minmax(0,1fr) 290px}.bst-tri-hand-card{width:118px;flex-basis:118px}}
@media(max-width:1000px){.bst-tri-table{grid-template-columns:minmax(0,1fr);gap:14px}.bst-tri-market{display:grid;grid-template-columns:1fr 270px;gap:0 20px}.bst-tri-market>h3,.bst-tri-market>p,.bst-tri-deck-count,.bst-tri-market>[data-tri-action]{grid-column:1}.bst-tri-market .bst-tri-offers{grid-column:2;grid-row:1/6}.bst-tri-market .is-offer{max-width:88px;margin:auto}.bst-tri-no-offer{max-width:88px;margin:auto}.bst-tri-offer>strong{min-height:15px}.bst-tri-offer>button:not(.bst-tri-card){max-width:120px}.bst-tri-field h3{font-size:25px}}
@media(max-width:600px){.bst-tri-overlay{padding:3px}.bst-tri{max-height:99vh;max-height:99dvh;border-radius:7px;font-size:13px}.bst-tri-top{padding:14px 12px;gap:7px;align-items:flex-start}.bst-tri h2{font-size:24px}.bst-tri-top .bst-tri-kicker{font-size:8px!important;letter-spacing:1.5px}.bst-tri-tools{gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:160px}.bst-tri-tools button{font-size:10px;padding:7px;min-height:34px}.bst-tri-tools [data-tri-close]{min-width:32px;font-size:22px}.bst-tri-messages{padding:10px 12px 0}.bst-tri-match-bar{padding:14px 12px;gap:10px}.bst-tri-match-bar h3{font-size:23px}.bst-tri-match-bar .bst-tri-kicker{font-size:8px!important;letter-spacing:1px}.bst-tri-match-bar p:last-child{font-size:10px}.bst-tri-control-count{min-width:93px;gap:0 3px;grid-template-columns:1fr 10px 1fr}.bst-tri-control-count b{font-size:25px}.bst-tri-control-count span{font-size:8px;letter-spacing:0}.bst-tri-control-count small{font-size:8px}.bst-tri-opponent{padding:10px 12px;gap:15px;justify-content:space-between}.bst-tri-opponent strong{font-size:16px}.bst-tri-opponent span{font-size:9px}.bst-tri .bst-tri-card.is-enemy-hand{width:24px;flex-basis:24px;margin-left:-9px}.bst-tri-table{padding:0 8px 12px;gap:10px}.bst-tri-fields{gap:5px}.bst-tri-field{border-radius:7px}.bst-tri-field>header{padding:11px 3px 8px}.bst-tri-field h3{font-size:19px}.bst-tri-field>header p{font-size:8px;letter-spacing:1px}.bst-tri-field-icon{font-size:50px;right:2px;top:0}.bst-tri-side{padding:6px 4px}.bst-tri-side-label{font-size:7px;letter-spacing:1px}.bst-tri-leader{max-width:85%;width:83px}.bst-tri-stat-pair{gap:3px;font-size:9px;margin:6px 0}.bst-tri-stat-pair span{padding:3px 2px}.bst-tri-stat-pair b{font-size:7px;margin-right:1px}.bst-tri-supports{gap:5px;min-height:63px}.bst-tri-support,.bst-tri-support-empty{width:33px}.bst-tri-support small{font-size:6px}.bst-tri-field-score{padding:6px 3px}.bst-tri-field-score>strong{font-size:8px}.bst-tri-field-score>b{font-size:16px}.bst-tri-field-score summary{font-size:7px;padding:4px 0}.bst-tri-point-row b,.bst-tri-field-score details>small{font-size:7px}.bst-tri-market{grid-template-columns:1fr 170px;padding:11px;gap:0 10px}.bst-tri-market>h3{font-size:18px}.bst-tri-market>p{font-size:9px}.bst-tri-market .bst-tri-market-note{font-size:9px;margin-top:8px}.bst-tri-offers{gap:7px}.bst-tri-market .is-offer,.bst-tri-no-offer{max-width:72px}.bst-tri-offer h4{font-size:8px}.bst-tri-offer>strong{font-size:8px;min-height:24px}.bst-tri-offer>button:not(.bst-tri-card){font-size:8px;min-height:34px}.bst-tri-deck-count{font-size:9px;margin-top:7px;padding-top:7px}.bst-tri-hand{padding:15px 12px}.bst-tri-section-heading{gap:7px}.bst-tri-section-heading h3{font-size:20px}.bst-tri-section-heading p{font-size:9px;text-align:right;max-width:125px}.bst-tri-hand-cards{gap:10px}.bst-tri-hand-card{width:95px;flex-basis:95px}.bst-tri-tactics>div>strong{font-size:18px}.bst-tri-action-grid{gap:6px}.bst-tri-action-grid button{font-size:10px;padding:8px}.bst-tri-bottom{padding:14px 12px}.bst-tri-bottom button{font-size:11px;padding:8px}.bst-tri-lobby{padding:38px 22px 45px}.bst-tri-lobby h3{font-size:32px}.bst-tri-lobby>p{font-size:14px}.bst-tri-lobby-actions{gap:16px}.bst-tri-lobby form{min-width:100%}.bst-tri-copy{flex-wrap:wrap}.bst-tri-copy input{font-size:11px}.bst-tri-inspect{padding:23px}.bst-tri-inspect img{max-height:70dvh}.bst-tri-finished-actions{padding:14px 12px 0}}
@media(prefers-reduced-motion:reduce){.bst-tri *{transition:none!important;scroll-behavior:auto!important}}
.bst-tri .bst-tri-rules-note{margin:0;padding:10px 26px;color:#dfcfaa;font-size:13px;border-bottom:1px solid #655940;background:#182624}@media(max-width:600px){.bst-tri .bst-tri-rules-note{padding:10px 12px;font-size:11px}}
.bst-tri-field.is-captured{border:2px solid #d9ba71;box-shadow:inset 0 0 0 2px #d9ba7120}.bst-tri-captured-badge{position:relative;margin:10px auto 0;padding:7px 9px;max-width:235px;border:1px solid #dfc988;border-radius:5px;background:#17352f;color:#fff0bc;font:700 11px/1.4 system-ui,sans-serif;letter-spacing:.5px}.bst-tri-captured-badge small{display:block;font-size:9px;letter-spacing:0;font-weight:400}.bst-tri-field.is-captured.is-lost .bst-tri-captured-badge{background:#4b302a}.bst-tri-field.is-captured .bst-tri-support-empty{opacity:.3}.bst-tri-action-grid [data-tri-action-type="discard"]{border-color:#a57760;color:#f1c5ad}@media(max-width:600px){.bst-tri-captured-badge{font-size:8px;letter-spacing:0;padding:5px 2px;margin-top:6px}.bst-tri-captured-badge small{font-size:7px}.bst-tri-field.is-captured{border-width:1px}}
.bst-tri-play-modes{display:flex;flex-wrap:wrap;gap:12px;padding:5px 0 12px}.bst-tri-play-modes button{min-height:48px;padding:12px 22px;font-size:15px}.bst-tri-last-action{padding:10px 26px!important;margin:0!important;background:#30413066;border-bottom:1px solid #79826155;color:#e9d7ad;font-size:12px}.bst-tri-finished-actions{display:flex;flex-wrap:wrap;gap:9px}@media(max-width:600px){.bst-tri-last-action{padding:9px 12px!important;font-size:10px}.bst-tri-play-modes{gap:9px}.bst-tri-play-modes button{padding:11px 15px;font-size:13px}}

/* Profile abilities and the two opponent-turn capture window. */
.bst-tri-ability{font-size:.78rem;line-height:1.4;margin:.4rem 0;color:#f2e3b9}
.bst-tri-stat-pair .has-ability-bonus{background:#edf6df;color:#244812;border:1px solid #7c9858;border-radius:4px;padding:2px 5px}
.bst-tri-capture-progress{padding:.45rem;margin:.35rem 0;background:#fff0c4;border:1px solid #b18d32;border-radius:6px;font-weight:700;color:#513a10}
.bst-tri-capture-progress small{display:block;font-weight:400;margin-top:.2rem}
.bst-tri-capture-window{margin:12px 26px;padding:12px 16px;border:1px solid #b3a06c;border-left:4px solid #d8bc76;border-radius:6px;background:#393a2c;color:#f5e8c1;font:13px/1.5 system-ui,sans-serif}
.bst-tri-capture-window strong,.bst-tri-capture-window span{display:block}.bst-tri-capture-window strong{font-size:15px;margin-bottom:3px}.bst-tri-capture-window.is-eligible{border-left-color:#b9d18b;background:#273d32}
.bst-tri-rule-dialog{position:fixed;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;padding:24px;background:#07110ff2;overflow:auto}
.bst-tri-rule-dialog>section{position:relative;width:660px;max-width:100%;max-height:calc(100dvh - 48px);overflow:auto;padding:28px;border:1px solid #b89b5b;border-radius:10px;background:#21342c;color:#f4e6c5;font:15px/1.6 system-ui,sans-serif;box-shadow:0 15px 60px #0009}
.bst-tri-rule-dialog h3{font:28px Georgia,serif;margin:0 45px 20px 0}.bst-tri-rule-dialog p{margin:15px 0}.bst-tri-rule-dialog ol{padding-left:23px}.bst-tri-rule-dialog li{margin:10px 0}.bst-tri-rule-dialog a{color:#ffe0a0;text-decoration:underline}.bst-tri-rule-dialog small{display:block;font-size:12px;color:#d1c29f;margin-top:8px}.bst-tri .bst-tri-rules-close{position:absolute;top:12px;right:12px;font-size:24px;line-height:1;min-width:40px}
.bst-tri-rule-dialog h3{max-width:calc(100% - 50px);overflow-wrap:anywhere}
@media(max-width:600px){.bst-tri-capture-window{margin:10px 12px;padding:10px 12px;font-size:11px}.bst-tri-capture-window strong{font-size:13px}.bst-tri-rule-dialog{padding:12px}.bst-tri-rule-dialog>section{padding:22px 18px;max-height:calc(100dvh - 24px);font-size:13px}.bst-tri-rule-dialog h3{font-size:23px;margin-right:30px}.bst-tri-rule-dialog small{font-size:11px}}

.bst-tri-ability-icon{width:18px;height:18px;vertical-align:middle;background:#f5e6bc;border-radius:3px;padding:2px;box-sizing:content-box}

/* Direct card handling. Pointer events support both mouse and touch. */
.bst-tri [data-tri-drag]{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.bst-tri [data-tri-drag] img{-webkit-user-drag:none;pointer-events:none}
.bst-tri.is-dragging,.bst-tri.is-dragging [data-tri-drag]{cursor:grabbing}
.bst-tri .is-drag-source{opacity:.22!important;transform:none!important}
.bst-tri [data-tri-drop]{transition:box-shadow .12s ease,background-color .12s ease}
.bst-tri [data-tri-drop]:focus-visible{outline:3px solid #f5d387;outline-offset:-3px}
.bst-tri .is-drop-allowed{box-shadow:inset 0 0 0 2px #b9d18b,0 0 12px #a9cf7940}
.bst-tri .is-drop-over{box-shadow:inset 0 0 0 3px #e4f6a5,0 0 22px #cff29270;background-color:#426147b3}
.bst-tri .is-drop-denied{box-shadow:inset 0 0 0 3px #f2987c,0 0 14px #e5785355;background-color:#72403177}
.bst-tri .bst-tri-card.is-picked{outline:3px solid #ffe1a1;outline-offset:2px}
.bst-tri-drag-ghost{position:fixed;left:0;top:0;z-index:20;pointer-events:none;line-height:0;border:2px solid #ffdf91;border-radius:7px;box-shadow:0 18px 38px #000b,0 0 16px #eac77266;overflow:hidden;will-change:transform;user-select:none}
.bst-tri-drag-ghost img{display:block;width:100%;height:auto;aspect-ratio:5/7;object-fit:contain}
.bst-tri-hand-layout{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:20px;align-items:center}
.bst-tri-hand-cards{flex-wrap:wrap;overflow:visible}
.bst-tri-discard-zone{min-height:135px;padding:16px 9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;border:2px dashed #b49472;border-radius:10px;background:#342d26;color:#eed2ad}
.bst-tri-discard-zone>span{font:32px Georgia,serif;line-height:1}
.bst-tri-discard-zone strong{font-size:13px;line-height:1.3}
.bst-tri-discard-zone small{font-size:10px;line-height:1.4;color:#ccb799}
.bst-tri-payment{margin-bottom:15px;padding:15px 18px;border:1px solid #dab970;border-radius:8px;background:#3f442c;color:#ffe4a4}
.bst-tri-payment p{font-size:12px;margin:7px 0 10px;color:#e4d7b3}
.bst-tri-payment strong{font:20px Georgia,serif}
.bst-tri-extra-actions{margin-top:10px;font-size:12px;color:#d5c39c}
.bst-tri-extra-actions summary{cursor:pointer;padding:8px 0;min-height:32px}
.bst-tri-offer-actions{font-size:10px;margin-top:5px}
.bst-tri-offer-actions button{font-size:10px;padding:7px 5px}
.bst-tri-drop-feedback{position:fixed;right:max(18px,calc((100vw - 1460px)/2));bottom:18px;z-index:12;width:420px;max-width:calc(100vw - 36px);padding:15px 18px;background:#42331ef5;border:1px solid #e3be78;border-left:4px solid #f1c87d;border-radius:8px;box-shadow:0 8px 30px #0009;color:#fff0cd;font:14px/1.5 system-ui,sans-serif;pointer-events:none}
.bst-tri-messages{position:sticky;top:0;z-index:7;background:#182624}
.bst-tri-messages:has(.bst-tri-error){padding-bottom:1px}
@media(max-width:600px){
    .bst-tri-hand-layout{grid-template-columns:minmax(0,1fr);gap:8px}
    .bst-tri-hand-cards{gap:6px;padding:7px 2px 10px}
    .bst-tri-hand-card{width:calc((100% - 24px)/5);flex:0 0 calc((100% - 24px)/5);min-width:0}
    .bst-tri-hand-card>span{font-size:8px;overflow-wrap:anywhere}
    .bst-tri-discard-zone{min-height:72px;padding:10px;display:grid;grid-template-columns:30px 1fr;gap:2px 8px;text-align:left}
    .bst-tri-discard-zone>span{grid-row:1/3;text-align:center}
    .bst-tri-discard-zone strong{font-size:12px}
    .bst-tri-payment{padding:12px}
    .bst-tri-payment strong{font-size:18px}
    .bst-tri-drop-feedback{right:10px;bottom:10px;max-width:calc(100vw - 20px);font-size:12px;padding:12px 14px}
}
@media(prefers-reduced-motion:reduce){.bst-tri-drag-ghost{transition:none!important}}
/* Edition 1.1.7: explain authoritative trait, swap and relic interactions. */
.bst-tri-effects{list-style:none;padding:0;margin:10px 0 0;text-align:left}
.bst-tri-effects li{padding:8px 6px;border-left:2px solid #d8bc76;background:#d8bc7610;margin-top:6px;overflow-wrap:anywhere}
.bst-tri-effects li.is-inactive{border-color:#8c927e;background:#8c927e0d}
.bst-tri-effects b,.bst-tri-effects span,.bst-tri-effects small{display:block;font-size:10px;line-height:1.5;margin:0 0 4px}
.bst-tri-effects small{color:#caba97}
.bst-tri-point-row b small,.bst-tri-point-row .bst-tri-sealed{display:block;font-size:8px;line-height:1.4;font-weight:400;white-space:normal;margin-top:3px}
.bst-tri-point-row .bst-tri-sealed,.bst-tri-support small.is-sealed{color:#efba99}
.bst-tri-inspect>div{max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow:auto;padding:8px;overscroll-behavior:contain;scrollbar-color:#ac925a #182c25}
.bst-tri-inspect img{max-height:66vh;max-height:66dvh}
.bst-tri-inspect .bst-tri-inspect-close{position:fixed;right:14px;top:14px;z-index:1}
.bst-tri-inspect-meta{text-align:left;border-top:1px solid #9f874355;padding-top:8px}
.bst-tri-inspect-meta p{margin:5px 0;font-size:11px;line-height:1.5}
@media(max-width:600px){.bst-tri-effects b,.bst-tri-effects span,.bst-tri-effects small{font-size:9px}.bst-tri-inspect-meta p{font-size:10px}}

/* Rules 0.9: the printed relic effect replaces the old universal support bonus. */
.bst-tri-support.is-tactical-relic{align-self:flex-start}.bst-tri-support.is-tactical-relic small{white-space:normal;overflow-wrap:anywhere;line-height:1.3;font-size:9px}.bst-tri-support.is-tactical-relic[data-relic-state="disabled"] .bst-tri-card{filter:saturate(.35);border-color:#ad856d;box-shadow:none}.bst-tri-relic-aura{margin:8px 2px 2px;padding:6px;border:1px solid #b4a2d077;border-radius:4px;background:#262537;color:#f1d9f3;font:600 10px/1.4 system-ui,sans-serif}@media(max-width:600px){.bst-tri-support.is-tactical-relic small{font-size:7px}.bst-tri-relic-aura{padding:4px 2px;font-size:8px}}
.bst-tri-deck-choice{margin:18px 0;padding:15px 18px;border:1px solid #9e844b;border-radius:10px;background:#20382e;text-align:left}
.bst-tri-deck-choice label{display:block;margin:0 0 8px;color:#ead6a0;font-weight:600}
.bst-tri-deck-choice select{display:block;width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid #b7a069;border-radius:6px;background:#142b25;color:#f1e6c9;font:14px/1.4 system-ui,sans-serif}
.bst-tri-deck-choice select:disabled{opacity:.72;cursor:not-allowed}
.bst-tri-deck-choice p{margin:9px 0 0!important;font:12px/1.6 system-ui,sans-serif;color:#ddcfad}
.bst-tri-deck-choice a{color:#f2d78f;text-decoration:underline}
.bst-tri-deck-badge{margin:9px 0;color:#e8cf83;font:600 12px/1.5 system-ui,sans-serif}

/* A readable label accompanies every type colour. */
.bst-tri-type-legend{margin:1rem 0;padding:.8rem 1rem;border:1px solid #b99c59;border-radius:8px;background:#f3ead3;color:#292b30}
.bst-tri-type-legend summary{cursor:pointer;font-weight:700}
.bst-tri .bst-tri-type-legend summary{color:#493820}
.bst-tri-type-legend p{font-size:.9rem;line-height:1.5;margin:.6rem 0 0}
.bst-tri-type-chips{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.7rem}
.bst-tri-type-chip{display:inline-flex;align-items:center;gap:.35em;margin:.15em .5em .15em 0;white-space:nowrap;font-size:.9rem;color:inherit}
.bst-tri-type-chip i{display:inline-block;width:1em;height:1em;flex:none;border:1px solid #423b2d;clip-path:polygon(50% 0,62% 35%,100% 38%,70% 61%,80% 100%,50% 77%,20% 100%,30% 61%,0 38%,38% 35%)}
.bst-tri .bst-tri-relic-remove{width:100%;margin-top:6px;padding:7px 3px;font-size:11px;line-height:1.25;white-space:normal}
