.bts-bj-page { --bts-bj-font: var(--font); width: 100%; clear: both; font-family: var(--bts-bj-font); }
.bts-bj-article { max-width: 1160px; margin: 0 auto 6rem; padding: 0 4.5%; }
.bts-bj-intro { max-width: 780px; margin: .75rem auto 1.75rem; text-align: center; }
.bts-bj-eyebrow { display: block; font-size: .8333rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8a7145; }
.bts-bj-title { margin: .8rem 0 1rem; color: #30312f; font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.2; letter-spacing: -.028em; }
.bts-bj-lead { max-width: 680px; margin: 0 auto; color: #666; font-size: 1rem; line-height: 1.6; }
.bts-bj { --felt: #174c41; --felt-dark: #103c34; --gold: #d3b77a; --ivory: #f7f3e8; color: #30312f; }
.bts-bj-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.bts-bj-table { position: relative; padding: 12px; background: #514437; border: 1px solid #3d352e; box-shadow: 0 12px 30px rgba(28, 29, 26, .12); }
.bts-bj-table__inner { position: relative; display: flex; flex-direction: column; padding: 24px 28px 18px; overflow: clip; border: 2px solid #bd9b65; background: radial-gradient(ellipse at 50% 42%, rgba(74, 130, 105, .34), transparent 64%), repeating-linear-gradient(91deg, rgba(255, 255, 255, .009) 0 1px, transparent 1px 4px), var(--felt); box-shadow: inset 0 0 0 5px var(--felt-dark), inset 0 0 0 6px rgba(239, 217, 163, .28); }
.bts-bj-table__inner:after { content: ''; position: absolute; width: 880px; height: 580px; top: 22px; left: 50%; transform: translateX(-50%); border: 1px solid rgba(233, 215, 168, .24); border-radius: 50%; pointer-events: none; }
.bts-bj-table__top { position: relative; z-index: 5; display: flex; align-items: center; gap: 9px; color: #e0d4aa; font-size: .8333rem; font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.bts-bj-table__top .bts-bj-rules-link:link, .bts-bj-table__top .bts-bj-rules-link:visited, .bts-bj-table__top .bts-bj-rules-link:hover, .bts-bj-table__top .bts-bj-rules-link:focus-visible { margin-left: auto; color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.bts-bj-rules-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bts-bj-seat { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.bts-bj-seat--dealer { padding-top: 18px; }
.bts-bj-seat--player { margin-top: 0; }
.bts-bj-seat__heading { position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 11px; }
.bts-bj-seat__score { display: inline-flex; align-items: center; gap: 8px; }
.bts-bj[data-phase=ready] .bts-bj-seat__score { display: none; }
.bts-bj-seat__label { color: #f9f5e9; font-size: 1rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.bts-bj-seat__total { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 31px; padding: 0 7px; border: 1px solid rgba(244, 230, 192, .65); color: #f9f5e9; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.bts-bj-cards { display: flex; align-items: center; justify-content: flex-start; width: max-content; min-width: 0; max-width: 100%; margin: 0 auto; padding: 3px 2px 7px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ad976d transparent; }
.bts-bj-card { position: relative; flex: 0 0 106px; width: 106px; height: 150px; margin-left: -20px; overflow: hidden; border: 1px solid #d4cfc4; border-radius: 7px; background: #fffdfa; color: #252b2b; box-shadow: 1px 5px 9px rgba(0, 0, 0, .28); animation: bts-bj-card-in .2s ease-out both; }
.bts-bj-card:first-child { margin-left: 0; }
.bts-bj-card--red { color: #b5413d; }
.bts-bj-card--empty { border: 1px dashed rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); box-shadow: none; }
.bts-bj-card--back { display: flex; align-items: center; justify-content: center; border: 5px solid #fffaf0; background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(255, 255, 255, .12) 5px 7px), #8a423d; }
.bts-bj-card--back:before { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(255, 255, 255, .77); }
.bts-bj-card__back-mark { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid #e9d3a4; border-radius: 50%; color: #fff4dc; background: #74302d; font: 700 1.8rem Georgia, serif; }
.bts-bj-card__corner { position: absolute; z-index: 2; top: 6px; left: 6px; display: flex; flex-direction: column; align-items: center; min-width: 20px; line-height: 1; font: 700 1.42rem Georgia, serif; }
.bts-bj-card__corner .bts-bj-card__suit { width: 14px; height: 14px; margin-top: 3px; }
.bts-bj-card__corner--bottom { top: auto; left: auto; right: 5px; bottom: 5px; transform: rotate(180deg); }
.bts-bj-card__suit { display: block; width: 18px; height: 18px; fill: currentColor; }
.bts-bj-card__pips { position: absolute; inset: 10px 18px; }
.bts-bj-card__pip { position: absolute; transform: translate(-50%, -50%); }
.bts-bj-card__pip .bts-bj-card__suit { width: 17px; height: 17px; }
.bts-bj-card__ace { position: absolute; display: grid; place-items: center; inset: 18px; }
.bts-bj-card__ace .bts-bj-card__suit { width: 52px; height: 52px; }
.bts-bj-card__court { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; inset: 21px 20px; border: 1px solid currentColor; color: inherit; }
.bts-bj-card__court:before, .bts-bj-card__court:after { content: ''; position: absolute; height: 1px; width: 18px; background: currentColor; opacity: .5; }
.bts-bj-card__court:before { top: 5px; }
.bts-bj-card__court:after { bottom: 5px; }
.bts-bj-card__crown { width: 42px; height: 30px; fill: currentColor; }
.bts-bj-card__court-rank { font: 700 1.95rem Georgia, serif; line-height: .95; }
.bts-bj-card__court .bts-bj-card__suit { width: 12px; height: 12px; }
.bts-bj-table__divider { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; width: min(600px, 85%); margin: 4px auto; text-align: center; color: #ead7a5; font: 400 .91rem var(--bts-bj-font); letter-spacing: .08em; text-transform: uppercase; }
.bts-bj[data-phase=ready] .bts-bj-table__divider { visibility: hidden; }
.bts-bj-table__divider:before, .bts-bj-table__divider:after { content: ''; flex: 1; border-top: 1px solid rgba(231, 213, 168, .35); }
.bts-bj-table__center { position: relative; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 9px; width: min(100%, 670px); margin: 0 auto; padding: 8px 4px; text-align: center; }
.bts-bj-table__center:has(.bts-bj-action:is(:hover, :focus-within)) { z-index: 80; }
.bts-bj-player-hands { display: flex; justify-content: center; gap: 18px; width: 100%; max-width: 100%; }
.bts-bj-player-hands--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; }
.bts-bj-hand { min-width: 0; padding: 0 8px 5px; border: 1px solid transparent; text-align: center; }
.bts-bj-hand--active { border-color: rgba(240, 215, 161, .65); background: rgba(255, 255, 255, .035); }
.bts-bj-hand__heading { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 24px; color: #f8f2e4; font-size: .91rem; font-weight: 700; }
.bts-bj-hand__heading:empty { display: none; }
.bts-bj-hand__number { text-transform: uppercase; letter-spacing: .06em; }
.bts-bj-hand__score { display: none; }
.bts-bj-player-hands--split .bts-bj-hand__score { display: inline; color: #e9d6ab; }
.bts-bj-hand__outcome { padding: 2px 5px; border: 1px solid rgba(255, 255, 255, .44); font-size: .8333rem; text-transform: uppercase; }
.bts-bj-feedback__overline { margin: 0; color: #f1d391; font-size: .84rem; font-weight: 700; letter-spacing: .12em; }
.bts-bj-feedback__message { max-width: 630px; margin: 0; color: #fff9ea; font-size: 1.04rem; line-height: 1.5; }
.bts-bj-feedback__win { color: #ffdfa2; font-size: 1.12em; }
.bts-bj-controls { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center; width: 100%; min-height: 54px; }
.bts-bj-actions { position: relative; z-index: 4; grid-area: 1 / 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(100%, 690px); }
.bts-bj .bts-bj-actions[hidden] { display: none; }
.bts-bj .bts-bj-button[hidden] { display: none; }
.bts-bj-action { position: relative; display: flex; min-width: 0; }
.bts-bj-action--deal { grid-area: 1 / 1; justify-self: center; min-height: 54px; }
.bts-bj[data-phase=player] .bts-bj-action--deal { visibility: hidden; pointer-events: none; }
.bts-bj .bts-bj-button { width: 100%; min-height: 52px; margin: 0; padding: 10px 36px 10px 14px; border: 1px solid rgba(250, 239, 210, .73); border-radius: 4px; color: #fffaf0; background: rgba(9, 38, 32, .56); font: 700 1rem/1.4 var(--bts-bj-font); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.bts-bj .bts-bj-button--primary { min-width: 218px; min-height: 54px; padding: 12px 38px 12px 25px; border-color: #f0cc82; background: #f0cc82; color: #1b332c; font-size: 1.08rem; box-shadow: 0 6px 15px rgba(0, 0, 0, .22); }
.bts-bj .bts-bj-button--decision { border-color: #fff6e3; background: #fff6e3; color: #174238; }
.bts-bj .bts-bj-button:hover:not(:disabled), .bts-bj .bts-bj-button:focus-visible:not(:disabled) { border-color: #f0cc82; background: #f0cc82; color: #17362e; }
.bts-bj .bts-bj-button:disabled { border-color: rgba(247, 245, 233, .25); color: rgba(255, 250, 236, .56); background: rgba(9, 38, 32, .25); cursor: default; box-shadow: none; }
.bts-bj .bts-bj-button:focus-visible, .bts-bj-hint-toggle:focus-visible, .bts-bj-help__trigger:focus-visible { outline: 3px solid #fff6e3; outline-offset: 3px; }
.bts-bj-teaching { position: relative; z-index: 2; width: min(100%, 660px); text-align: left; }
.bts-bj-teaching:has(.bts-bj-help:is(:hover, :focus-within, .bts-bj-help--open)) { z-index: 60; }
.bts-bj-teaching__heading { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; }
.bts-bj-hint-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 3px 7px; border: none; color: #f5e5c1; background: transparent; font: 700 .96rem/1.4 var(--bts-bj-font); cursor: pointer; }
.bts-bj-hint { display: block; min-height: 90px; margin-top: 4px; padding: 13px 17px; border-left: 3px solid #f0cc82; background: #f7f2e5; color: #293e34; font-size: .96rem; line-height: 1.5; }
.bts-bj-hint strong { display: block; margin-bottom: 3px; }
.bts-bj-hint[hidden] { display: none; }
.bts-bj-decision-feedback { margin: 6px 0 0; color: #f7e5be; font-size: .91rem; line-height: 1.4; text-align: center; }
.bts-bj-decision-feedback:empty { display: none; }
.bts-bj-help { position: relative; z-index: 10; display: inline-flex; flex: 0 0 auto; align-items: center; vertical-align: middle; }
.bts-bj-help:is(:hover, :focus-within, .bts-bj-help--open) { z-index: 50; }

.bts-bj-table__top:has(.bts-bj-help:is(:hover, :focus-within, .bts-bj-help--open)), .bts-bj-seat:has(.bts-bj-help:is(:hover, :focus-within, .bts-bj-help--open)), .bts-bj-table__divider:has(.bts-bj-help:is(:hover, :focus-within, .bts-bj-help--open)), .bts-bj-table__center:has(.bts-bj-help:is(:hover, :focus-within, .bts-bj-help--open)) { z-index: 100; }
.bts-bj-action:is(:hover, :focus-within) { z-index: 50; }
.bts-bj-help__trigger { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid rgba(245, 220, 164, .7); border-radius: 50%; color: #f4d99c; background: rgba(9, 38, 32, .4); font: italic 700 .8rem Georgia, serif; line-height: 1; cursor: help; }
.bts-bj-help__text { display: none; position: absolute; z-index: 30; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 284px; max-width: calc(100vw - 44px); padding: 12px 14px; border: 1px solid #d5c6a8; background: #fff9eb; color: #263b33; box-shadow: 0 6px 18px rgba(0, 0, 0, .24); font: 400 .92rem/1.6 var(--bts-bj-font); letter-spacing: normal; text-align: left; text-transform: none; white-space: normal; }
.bts-bj-help--open .bts-bj-help__text, .bts-bj-help:hover .bts-bj-help__text, .bts-bj-help__trigger:focus-visible + .bts-bj-help__text, .bts-bj-action:hover .bts-bj-help__text, .bts-bj-action .bts-bj-button:focus-visible ~ .bts-bj-help .bts-bj-help__text { display: block; }
.bts-bj-table__top .bts-bj-help { position: static; }
.bts-bj-table__top .bts-bj-help__text { top: calc(100% + 8px); bottom: auto; left: 0; transform: none; }
.bts-bj-seat--dealer .bts-bj-seat__heading .bts-bj-help__text { top: calc(100% + 8px); bottom: auto; }
.bts-bj-seat__heading .bts-bj-help, .bts-bj-table__divider .bts-bj-help, .bts-bj-teaching__heading .bts-bj-help { position: static; }
.bts-bj-action .bts-bj-help { position: static; }
.bts-bj-action .bts-bj-help__trigger { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); }
.bts-bj-action .bts-bj-help__text { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.bts-bj-noscript { margin: 0; padding: 12px; color: #8b3d3a; }
.bts-bj-explainer { margin: 4rem 0 0; padding: 0 1.5%; }
.bts-bj-explainer h2, .bts-bj-rules h2, .bts-bj-method h2 { margin: .6rem 0 1.5rem; color: #333; font-size: 1.6rem; }
.bts-bj-explainer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.bts-bj-explainer__grid > div { padding-top: 14px; border-top: 1px solid #bbb4a5; }
.bts-bj-explainer__number { color: #a5885c; font: 400 1.1rem Georgia, serif; }
.bts-bj-explainer h3 { margin: 10px 0 8px; color: #333; font-size: 1rem; }
.bts-bj-explainer p { margin: 0; color: #666; font-size: 1rem; line-height: 1.7; }
.bts-bj-method { max-width: 820px; margin: 3.5rem auto 0; }
.bts-bj-method ol { margin: 0; padding-left: 1.4rem; }
.bts-bj-method li { margin: 0 0 .95rem; color: #555; font-size: 1rem; line-height: 1.7; }
.bts-bj-method p { margin: 1.2rem 0 0; color: #555; font-size: 1rem; line-height: 1.7; }
.bts-bj-method a { text-decoration: underline; text-underline-offset: 2px; }
.bts-bj-rules { max-width: 750px; margin: 3.5rem auto 0; padding: 25px 30px; border-top: 3px solid #8e785a; background: #f6f4ef; scroll-margin-top: 24px; }
.bts-bj-rules h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.bts-bj-rules p { margin: .85rem 0 0; color: #555; font-size: 1rem; line-height: 1.75; }
.bts-bj-rules a { text-decoration: underline; text-underline-offset: 2px; }
.bts-bj-editorial { max-width: 750px; margin: 3.5rem auto; }
@keyframes bts-bj-card-in { from { opacity: .4; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .bts-bj-article { padding: 0 4%; }
  .bts-bj-table__inner { padding: 18px 14px; }
  .bts-bj-table__top { font-size: .8333rem; letter-spacing: .07em; }
  .bts-bj-controls { min-height: 114px; }
  .bts-bj-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bts-bj-explainer__grid { gap: 18px; }
}
@media (max-width: 520px) {
  .bts-bj-article { padding: 0 12px; margin-bottom: 4rem; }
  .bts-bj-intro { margin: 1rem auto 1.7rem; padding: 0 8px; }
  .bts-bj-lead { font-size: .91rem; }
  .bts-bj-table { padding: 6px; }
  .bts-bj-table__inner { padding: 13px 8px; }
  .bts-bj-table__top { flex-wrap: wrap; gap: 6px; font-size: .8333rem; letter-spacing: .02em; }
  .bts-bj-rules-link { font-size: .8333rem; }
  .bts-bj-table__inner:after { width: 560px; height: 480px; top: 30px; }
  .bts-bj-seat--dealer { padding-top: 12px; }
  .bts-bj-seat__heading { flex-wrap: wrap; max-width: 100%; gap: 5px; }
  .bts-bj-seat__label { font-size: .9rem; }
  .bts-bj-seat__total { font-size: .91rem; }
  .bts-bj-card { flex-basis: 75px; width: 75px; height: 108px; margin-left: -26px; border-radius: 5px; }
  .bts-bj-card__corner { top: 4px; left: 4px; min-width: 16px; font-size: 1.05rem; }
  .bts-bj-card__corner--bottom { top: auto; left: auto; right: 4px; bottom: 4px; }
  .bts-bj-card__corner .bts-bj-card__suit { width: 10px; height: 10px; }
  .bts-bj-card__pips { inset: 10px 13px; }
  .bts-bj-card__pip .bts-bj-card__suit { width: 12px; height: 12px; }
  .bts-bj-card__ace .bts-bj-card__suit { width: 34px; height: 34px; }
  .bts-bj-card__court { inset: 16px 14px; }
  .bts-bj-card__crown { width: 29px; height: 20px; }
  .bts-bj-card__court-rank { font-size: 1.3rem; }
  .bts-bj-card__court .bts-bj-card__suit { width: 9px; height: 9px; }
  .bts-bj-card__back-mark { width: 44px; height: 44px; font-size: 1.2rem; }
  .bts-bj-player-hands--split { gap: 2px; }
  .bts-bj-player-hands--split .bts-bj-card { flex-basis: 64px; width: 64px; height: 92px; margin-left: -32px; }
  .bts-bj-player-hands--split .bts-bj-card:first-child { margin-left: 0; }
  .bts-bj-player-hands--split .bts-bj-hand { padding: 0 1px 3px; }
  .bts-bj-hand__heading { font-size: .8333rem; gap: 3px; }
  .bts-bj-hand__outcome { font-size: .8333rem; }
  .bts-bj-table__divider { width: 96%; font-size: .8333rem; letter-spacing: .02em; }
  .bts-bj-table__center { gap: 7px; }
  .bts-bj-feedback__message { font-size: .96rem; }
  .bts-bj-actions { gap: 7px; }
  .bts-bj .bts-bj-button { padding: 8px 30px 8px 8px; font-size: .87rem; }
  .bts-bj .bts-bj-button--primary { font-size: 1rem; }
  .bts-bj-action .bts-bj-help__trigger { right: 5px; width: 21px; height: 21px; font-size: .8333rem; }
  .bts-bj-hint { min-height: 108px; padding: 10px 12px; font-size: .88rem; }
  .bts-bj-decision-feedback { font-size: .8333rem; }
  .bts-bj-help__text { max-width: calc(100vw - 72px); font-size: .88rem; }
  .bts-bj-actions .bts-bj-action:nth-child(odd) .bts-bj-help__text { left: 0; transform: none; }
  .bts-bj-actions .bts-bj-action:nth-child(even) .bts-bj-help__text { right: 0; left: auto; transform: none; }
  .bts-bj-explainer { margin-top: 3rem; padding: 0 8px; }
  .bts-bj-explainer__grid { grid-template-columns: 1fr; gap: 22px; }
  .bts-bj-rules { padding: 23px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .bts-bj-card { animation: none; }
  .bts-bj .bts-bj-button { transition: none; }
}
@media (hover: none) {
  .bts-bj-help:hover .bts-bj-help__text, .bts-bj-action:hover .bts-bj-help__text { display: none; }
  .bts-bj-help--open .bts-bj-help__text, .bts-bj-help__trigger:focus-visible + .bts-bj-help__text { display: block; }
}
