/* blackjack — استایل بازی، محدودشده به #tk-stage
   تولید خودکار توسط tools/build-kit.mjs — دستی ویرایش نکنید. */
#tk-stage{font-family:var(--hb-font)}



#tk-stage{
  --ink: #0c1016;
  --ink-2: #121924;
  --surface: #17202c;
  --surface-2: #1e2937;
  --line: #2a3646;
  --line-soft: #212c3a;
  --text: #e9eef6;
  --muted: #9daabc;
  --accent: #e6b45f;
  --accent-2: #f2cd8b;
  --accent-ink: #171008;
  --felt: #0f3d2b;
  --felt-2: #145338;
  --felt-edge: #1d6b48;
  --win: #5ddb95;
  --loss: #f4867f;
  --radius: 12px;
  --wrap: 74rem;

  /* table theme tokens consumed by game.css */
  --bjc-felt: linear-gradient(160deg, #145338 0%, #0d3325 100%);
  --bjc-felt-edge: #1d6b48;
  --bjc-felt-text: #eef6f1;
  --bjc-surface: #17202c;
  --bjc-border: #2a3646;
  --bjc-text: #e9eef6;
  --bjc-muted: #9daabc;
  --bjc-accent: #e6b45f;
  --bjc-accent-ink: #171008;
  --bjc-secondary: #2f8f63;
  --bjc-win: #5ddb95;
  --bjc-loss: #f4867f;
  --bjc-radius: 12px;
}


#tk-stage,#tk-stage *, #tk-stage *::before, #tk-stage *::after{ box-sizing: border-box; }


#tk-stage{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }


@media (prefers-reduced-motion: reduce){

  #tk-stage{ scroll-behavior: auto; }

  #tk-stage,#tk-stage *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }


}


#tk-stage{
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.95;
  text-rendering: optimizeLegibility;
}


#tk-stage body.nav-locked{ overflow: hidden; }


#tk-stage img{ max-width: 100%; height: auto; }


#tk-stage a{ color: var(--accent-2); text-decoration: none; }

#tk-stage a:hover{ text-decoration: underline; }


#tk-stage :focus-visible{ outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }


#tk-stage .wrap{ width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }


#tk-stage .skip{
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .6rem 1rem;
  z-index: 100;
}

#tk-stage .skip:focus{ inset-inline-start: 0; }




#tk-stage h1, #tk-stage h2, #tk-stage h3, #tk-stage h4{ line-height: 1.5; margin: 0 0 .6rem; font-weight: 800; letter-spacing: -.01em; }

#tk-stage h1{ font-size: clamp(1.6rem, 4.5vw, 2.5rem); }

#tk-stage h2{ font-size: clamp(1.25rem, 3vw, 1.7rem); margin-top: 2.2rem; }

#tk-stage h3{ font-size: clamp(1.05rem, 2.4vw, 1.22rem); margin-top: 1.5rem; }

#tk-stage h4{ font-size: 1rem; margin-top: 1.1rem; }

#tk-stage p{ margin: 0 0 1rem; }


#tk-stage main ul, #tk-stage main ol{ padding-inline-start: 1.3rem; margin: 0 0 1.1rem; }

#tk-stage main li{ margin-bottom: .45rem; }


#tk-stage .lead{ font-size: 1.06rem; color: #cfd8e5; }

#tk-stage .muted{ color: var(--muted); }

#tk-stage .small{ font-size: .87rem; }




#tk-stage .site-head{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 16, 22, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}


#tk-stage .head-inner{ display: flex; align-items: center; gap: 1rem; min-height: 62px; }

#tk-stage .brand{ display: inline-flex; align-items: center; flex: 0 0 auto; }

#tk-stage .brand img{ display: block; }


#tk-stage .nav-btn{
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

#tk-stage .nav-btn span{ display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }


#tk-stage .site-nav{ display: none; }

#tk-stage .site-nav ul{ list-style: none; margin: 0; padding: 0; }

#tk-stage .site-nav a{ color: var(--text); font-size: .93rem; font-weight: 600; }

#tk-stage .site-nav a[aria-current="page"]{ color: var(--accent); }


#tk-stage .site-nav.is-open{
  display: block;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding: .8rem 1rem 1.1rem;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
}

#tk-stage .site-nav.is-open ul li{ border-bottom: 1px solid var(--line-soft); }

#tk-stage .site-nav.is-open ul a{ display: block; padding: .75rem .2rem; }

#tk-stage .nav-cta{ display: block; margin-top: .8rem; text-align: center; }


@media (min-width: 60rem){

  #tk-stage .nav-btn{ display: none; }

  #tk-stage .site-nav{
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-inline-start: auto;
    position: static;
    padding: 0;
    background: none;
    border: 0;
  }

  #tk-stage .site-nav ul{ display: flex; gap: 1.1rem; }

  #tk-stage .nav-cta{ margin: 0; }


}




#tk-stage .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .55rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease;
}

#tk-stage .btn:hover{ text-decoration: none; transform: translateY(-1px); }


#tk-stage .btn-accent{
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: var(--accent);
  color: var(--accent-ink);
}

#tk-stage .btn-felt{ background: var(--felt-2); border-color: var(--felt-edge); color: #eafaf1; }

#tk-stage .btn-ghost{ background: transparent; }

#tk-stage .btn-lg{ min-height: 54px; font-size: 1.05rem; padding-inline: 1.6rem; }

#tk-stage .btn-block{ width: 100%; }

#tk-stage .btn-sm{ min-height: 40px; font-size: .85rem; padding: .3rem .8rem; }




#tk-stage .hero{
  position: relative;
  padding: 2.6rem 0 2rem;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(20, 83, 56, .55) 0%, transparent 60%),
    linear-gradient(180deg, #101823 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line-soft);
}


#tk-stage .hero-grid{ display: grid; gap: 1.6rem; align-items: center; }

@media (min-width: 62rem){
 #tk-stage .hero-grid{ grid-template-columns: 1.05fr .95fr; gap: 2.4rem; }
 
}


#tk-stage .hero h1{ margin-bottom: .8rem; }

#tk-stage .hero p{ color: #cbd6e4; }

#tk-stage .hero-actions{ display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }


#tk-stage .hero-facts{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; list-style: none; padding: 0; }

#tk-stage .hero-facts li{
  font-size: .8rem;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .02);
  margin: 0;
}


#tk-stage .hero-card{
  border-radius: 18px;
  padding: 1.1rem;
  background: linear-gradient(160deg, #145338 0%, #0d3325 100%);
  border: 1px solid var(--felt-edge);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

#tk-stage .hero-card h2{ margin: 0 0 .5rem; font-size: 1rem; color: #dff3e7; }

#tk-stage .hero-cards-row{ display: flex; gap: .4rem; justify-content: center; margin: .6rem 0 .3rem; }


#tk-stage .mini-card{
  width: 58px;
  aspect-ratio: 5/7;
  border-radius: 7px;
  background: #fff;
  color: #1c1c22;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

#tk-stage .mini-card.is-red{ color: #c62828; }

#tk-stage .mini-card.is-back{
  background: #1b3a5c;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 3px, transparent 3px 6px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 3px, transparent 3px 6px);
}

#tk-stage .hero-card p{ font-size: .85rem; color: #bcdcc9; margin: .5rem 0 0; }




#tk-stage .section{ padding: 2.4rem 0; }

#tk-stage .section-tight{ padding: 1.6rem 0; }

#tk-stage .section-head{ margin-bottom: 1.1rem; }

#tk-stage .section-head h2{ margin-top: 0; }

#tk-stage .section-head p{ color: var(--muted); margin: 0; }


#tk-stage .panel{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

#tk-stage .panel + .panel{ margin-top: .9rem; }

#tk-stage .panel h2:first-child, #tk-stage .panel h3:first-child{ margin-top: 0; }


#tk-stage .callout{
  border-inline-start: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: .9rem 1.05rem;
  margin: 1.2rem 0;
}

#tk-stage .callout p:last-child{ margin-bottom: 0; }

#tk-stage .callout-green{ border-inline-start-color: var(--felt-edge); }


#tk-stage .grid{ display: grid; gap: .9rem; }

#tk-stage .grid-2{ grid-template-columns: 1fr; }

#tk-stage .grid-3{ grid-template-columns: 1fr; }

@media (min-width: 48rem){

  #tk-stage .grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

  #tk-stage .grid-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }


}

@media (min-width: 64rem){
 #tk-stage .grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
 
}


#tk-stage .card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  min-width: 0;
}

#tk-stage .card h3{ margin-top: 0; font-size: 1.02rem; }

#tk-stage .card p{ font-size: .92rem; color: var(--muted); margin-bottom: .6rem; }

#tk-stage .card a.more{ font-weight: 700; font-size: .88rem; }




#tk-stage .crumbs{ padding: .9rem 0 .2rem; font-size: .82rem; color: var(--muted); }

#tk-stage .crumbs ol{ list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }

#tk-stage .crumbs li + li::before{ content: "‹"; margin-inline-end: .35rem; color: var(--line); }

#tk-stage .crumbs a{ color: var(--muted); }




#tk-stage .article{ max-width: 48rem; margin-inline: auto; padding-bottom: 2rem; }

#tk-stage .article > h1{ margin-top: 1rem; }

#tk-stage .byline{
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line-soft);
}

#tk-stage .byline-team{ font-weight: 700; color: #c4d0df; }

#tk-stage .byline-sep{ opacity: .5; }


#tk-stage .toc{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin: 1.2rem 0 1.6rem;
}

#tk-stage .toc h2{ margin: 0 0 .5rem; font-size: .95rem; }

#tk-stage .toc ol{ margin: 0; padding-inline-start: 1.2rem; }

#tk-stage .toc li{ margin-bottom: .25rem; }

#tk-stage .toc a{ color: var(--text); font-size: .9rem; }




#tk-stage .table-scroll{ overflow-x: auto; margin: 1rem 0; -webkit-overflow-scrolling: touch; }

#tk-stage table{ border-collapse: collapse; width: 100%; min-width: 40rem; font-size: .9rem; }

#tk-stage caption{ text-align: start; font-size: .84rem; color: var(--muted); padding-bottom: .5rem; }

#tk-stage th, #tk-stage td{ padding: .65rem .7rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }

#tk-stage thead th{ background: var(--surface-2); font-size: .82rem; color: #cbd6e4; white-space: nowrap; }

#tk-stage tbody tr:hover{ background: rgba(255, 255, 255, .02); }

#tk-stage td.num, #tk-stage th.num{ font-variant-numeric: tabular-nums; }


#tk-stage .table-simple{ min-width: 0; }

#tk-stage .table-simple th, #tk-stage .table-simple td{ white-space: normal; }




#tk-stage .brand-logo{
  display: grid;
  place-items: center;
  background: #0a0e14;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem .7rem;
  width: 108px;
  height: 54px;
  flex: 0 0 auto;
}

#tk-stage .brand-logo img{ max-height: 38px; width: auto; object-fit: contain; }


#tk-stage .brand-card{ display: flex; flex-direction: column; gap: .7rem; }

#tk-stage .brand-card-head{ display: flex; align-items: center; gap: .8rem; }

#tk-stage .brand-card-head h3{ margin: 0; font-size: 1.05rem; }

#tk-stage .brand-card-head .rank{
  font-size: .75rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .05rem .5rem;
}

#tk-stage .brand-card p{ margin: 0; font-size: .9rem; color: var(--muted); }

#tk-stage .brand-card-actions{ display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }


#tk-stage .score-pill{
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
  font-size: .8rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

#tk-stage .score-pill b{ color: var(--text); font-size: .95rem; }

#tk-stage .pending{ color: var(--muted); font-style: normal; opacity: .8; }


#tk-stage .data-note{
  font-size: .82rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  margin: 1rem 0;
}




#tk-stage .faq details{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .55rem;
  background: var(--surface);
}

#tk-stage .faq summary{
  cursor: pointer;
  padding: .8rem 1rem;
  font-weight: 700;
  font-size: .95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: .6rem;
}

#tk-stage .faq summary::-webkit-details-marker{ display: none; }

#tk-stage .faq summary::after{ content: "+"; color: var(--accent); font-size: 1.15rem; line-height: 1; }

#tk-stage .faq details[open] summary::after{ content: "−"; }

#tk-stage .faq .faq-a{ padding: 0 1rem .9rem; color: var(--muted); font-size: .92rem; }

#tk-stage .faq .faq-a p:last-child{ margin-bottom: 0; }




#tk-stage .related{ margin: 2rem 0 1rem; }

#tk-stage .related h2{ margin-top: 0; font-size: 1.1rem; }

#tk-stage .related-list{ list-style: none; padding: 0; display: grid; gap: .5rem; }

@media (min-width: 48rem){
 #tk-stage .related-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
 
}

#tk-stage .related-list li{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .65rem .8rem;
  background: var(--surface);
  margin: 0;
}

#tk-stage .related-list a{ font-weight: 700; font-size: .93rem; }

#tk-stage .related-list span{ display: block; font-size: .82rem; color: var(--muted); }




#tk-stage .comment{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem .95rem;
  background: var(--surface);
  margin-bottom: .6rem;
}

#tk-stage .comment-head{ display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .35rem; }

#tk-stage .comment-name{ font-weight: 700; font-size: .92rem; }

#tk-stage .comment p{ margin: 0 0 .35rem; font-size: .92rem; }

#tk-stage .comment time{ font-size: .78rem; color: var(--muted); }

#tk-stage .comment.is-pending{ border-style: dashed; }

#tk-stage .comment-badge{
  font-size: .7rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

#tk-stage .stars{ font-size: .85rem; letter-spacing: .05em; }

#tk-stage .stars-on{ color: var(--accent); }

#tk-stage .stars-off{ color: var(--line); }


#tk-stage .form-grid{ display: grid; gap: .7rem; }

@media (min-width: 44rem){
 #tk-stage .form-row-2{ display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
 
}

#tk-stage label{ display: block; font-size: .85rem; font-weight: 600; margin-bottom: .25rem; }

#tk-stage input, #tk-stage select, #tk-stage textarea{
  width: 100%;
  font: inherit;
  font-size: .93rem;
  padding: .6rem .7rem;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text);
}

#tk-stage textarea{ min-height: 7rem; resize: vertical; line-height: 1.8; }

#tk-stage .form-status{ font-size: .85rem; color: var(--accent-2); min-height: 1.4rem; }




#tk-stage .pill-row{ display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; }

#tk-stage .pill-row li{ margin: 0; }

#tk-stage .pill{
  display: inline-block;
  font-size: .82rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

#tk-stage .pill:hover{ border-color: var(--accent); text-decoration: none; }


#tk-stage .steps{ counter-reset: step; list-style: none; padding: 0; }

#tk-stage .steps li{
  counter-increment: step;
  position: relative;
  padding-inline-start: 2.4rem;
  margin-bottom: .9rem;
}

#tk-stage .steps li::before{
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: .25rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: .85rem;
}


#tk-stage .split-list{ display: grid; gap: .8rem; }

@media (min-width: 48rem){
 #tk-stage .split-list{ grid-template-columns: 1fr 1fr; }
 
}

#tk-stage .split-list h3{ margin-top: 0; font-size: .98rem; }

#tk-stage .list-good li::marker{ color: var(--win); }

#tk-stage .list-bad li::marker{ color: var(--loss); }


#tk-stage .game-shell{ padding: 1.2rem 0 .5rem; }




#tk-stage .site-foot{
  margin-top: 3rem;
  padding: 2.2rem 0 1.6rem;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

#tk-stage .foot-grid{ display: grid; gap: 1.4rem; grid-template-columns: 1fr; }

@media (min-width: 40rem){
 #tk-stage .foot-grid{ grid-template-columns: repeat(2, 1fr); }
 
}

@media (min-width: 62rem){
 #tk-stage .foot-grid{ grid-template-columns: repeat(4, 1fr); }
 
}

#tk-stage .foot-col h2{ font-size: .92rem; margin: 0 0 .6rem; color: var(--accent); }

#tk-stage .foot-col ul{ list-style: none; padding: 0; margin: 0; }

#tk-stage .foot-col li{ margin-bottom: .4rem; }

#tk-stage .foot-col a{ color: var(--muted); font-size: .88rem; }

#tk-stage .foot-col a:hover{ color: var(--text); }

#tk-stage .foot-note{
  margin: 1.8rem 0 .6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .83rem;
  color: var(--muted);
}

#tk-stage .foot-copy{ font-size: .8rem; color: var(--muted); margin: 0; }




#tk-stage .err-wrap{ text-align: center; padding: 3.5rem 0 2rem; }

#tk-stage .err-code{ font-size: clamp(3.5rem, 14vw, 6rem); font-weight: 800; color: var(--accent); line-height: 1; }




#tk-stage .bj{
  --bj-card-w: clamp(52px, 13vw, 78px);
  position: relative;
  color: var(--bjc-text);
}


#tk-stage .bj *, #tk-stage .bj *::before, #tk-stage .bj *::after{ box-sizing: border-box; }




#tk-stage .bj-topbar{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}


#tk-stage .bj-balance{
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  padding: .45rem .85rem;
  border: 1px solid var(--bjc-border);
  border-radius: 999px;
  background: var(--bjc-surface);
}


#tk-stage .bj-balance-label{ font-size: .78rem; color: var(--bjc-muted); }

#tk-stage .bj-balance-amount{ font-size: 1.15rem; font-weight: 800; color: var(--bjc-accent); }


#tk-stage .bj-topbar-actions{ display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }


#tk-stage .bj-mode-switch{
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--bjc-border);
  border-radius: 999px;
  background: var(--bjc-surface);
}


#tk-stage .bj-mode-switch button{
  border: 0;
  background: transparent;
  color: var(--bjc-muted);
  font: inherit;
  font-size: .82rem;
  padding: .35rem .8rem;
  min-height: 34px;
  border-radius: 999px;
  cursor: pointer;
}


#tk-stage .bj-mode-switch button.is-active{
  background: var(--bjc-accent);
  color: var(--bjc-accent-ink);
  font-weight: 700;
}




#tk-stage .bj-notice{
  margin: 0 0 .75rem;
  padding: .55rem .8rem;
  font-size: .84rem;
  line-height: 1.7;
  border-radius: var(--bjc-radius);
  border: 1px solid var(--bjc-border);
  background: var(--bjc-surface);
  color: var(--bjc-muted);
}


#tk-stage .bj-notice-warn{ border-inline-start: 3px solid var(--bjc-secondary); }

#tk-stage .bj-notice-info{ border-inline-start: 3px solid var(--bjc-accent); }




#tk-stage .bj-wrap{ display: grid; gap: 1rem; grid-template-columns: 1fr; }


@media (min-width: 62rem){

  #tk-stage .bj-wrap{ grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; }


}


#tk-stage .bj-main{ min-width: 0; }

#tk-stage .bj-side{ display: grid; gap: .8rem; min-width: 0; }




#tk-stage .bj-felt{
  position: relative;
  padding: .9rem;
  border-radius: calc(var(--bjc-radius) * 1.5);
  background: var(--bjc-felt);
  border: 1px solid var(--bjc-felt-edge);
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}


#tk-stage .bj-badges{ display: flex; flex-wrap: wrap; gap: .35rem; }


#tk-stage .bj-badge{
  font-size: .7rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--bjc-felt-edge);
  color: var(--bjc-felt-text, var(--bjc-text));
}


#tk-stage .bj-badge-mode{ background: var(--bjc-accent); color: var(--bjc-accent-ink); font-weight: 700; }


#tk-stage .bj-area{ display: flex; flex-direction: column; gap: .4rem; min-width: 0; }


#tk-stage .bj-area-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}


#tk-stage .bj-area-head h3{
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
  color: var(--bjc-felt-text, var(--bjc-text));
  display: flex;
  align-items: center;
  gap: .35rem;
}


#tk-stage .bj-tag{
  font-size: .65rem;
  font-weight: 600;
  padding: .1rem .4rem;
  border-radius: 4px;
  background: var(--bjc-secondary);
  color: var(--bjc-accent-ink);
}


#tk-stage .bj-score{
  font-size: 1rem;
  font-weight: 800;
  min-width: 2.4rem;
  text-align: center;
  padding: .15rem .5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  color: var(--bjc-felt-text, var(--bjc-text));
  font-variant-numeric: tabular-nums;
}


#tk-stage .bj-hand-cards{
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  min-height: calc(var(--bj-card-w) * 1.42);
}


#tk-stage .bj-hands{ display: grid; gap: .7rem; grid-template-columns: 1fr; }

#tk-stage .bj-hands.count-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

#tk-stage .bj-hands.count-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

#tk-stage .bj-hands.count-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }


#tk-stage .bj-player.is-active{
  outline: 2px solid var(--bjc-accent);
  outline-offset: 4px;
  border-radius: 10px;
}


#tk-stage .bj-player.is-win{ animation: bj-pulse .7s ease-out 1; }


@keyframes bj-pulse{
  0% { filter: brightness(1); }
  40% { filter: brightness(1.35); }
  100% { filter: brightness(1); }
}


#tk-stage .bj-hand-bet{ font-size: .76rem; color: var(--bjc-felt-text, var(--bjc-muted)); opacity: .85; }


#tk-stage .bj-tutorial-hint{
  padding: .6rem .8rem;
  border-radius: var(--bjc-radius);
  background: rgba(0, 0, 0, .3);
  border: 1px dashed var(--bjc-felt-edge);
  color: var(--bjc-felt-text, var(--bjc-text));
  font-size: .84rem;
  line-height: 1.8;
}


#tk-stage .bj-tutorial-hint strong{ display: block; margin-bottom: .2rem; }

#tk-stage .bj-tutorial-hint p{ margin: 0; }




#tk-stage .pcard{
  width: var(--bj-card-w);
  aspect-ratio: 5 / 7;
  perspective: 700px;
  flex: 0 0 auto;
}


#tk-stage .pcard--anim{ animation: bj-deal .28s ease-out both; }


@keyframes bj-deal{
  from { transform: translateY(-14px) scale(.9); opacity: 0; }
  to { transform: none; opacity: 1; }
}


@media (prefers-reduced-motion: reduce){

  #tk-stage .pcard--anim{ animation: none; }

  #tk-stage .bj-player.is-win{ animation: none; }


}


#tk-stage .pcard-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .32s ease;
}


#tk-stage .pcard-inner.is-down{ transform: rotateY(180deg); }


#tk-stage .pcard-face{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}


#tk-stage .pcard-front{
  background: #fff;
  border: 1px solid #d8d8de;
  display: grid;
  place-items: center;
  position: absolute;
}


#tk-stage .pcard-front.is-red{ color: #c62828; }

#tk-stage .pcard-front.is-black{ color: #1c1c22; }


#tk-stage .pcard-back{
  transform: rotateY(180deg);
  background: #1b3a5c;
  border: 1px solid #12283f;
  padding: 4px;
}


#tk-stage .pcard-back-pattern{
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 3px, transparent 3px 6px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 3px, transparent 3px 6px);
}


#tk-stage .pcard-corner{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-size: calc(var(--bj-card-w) * .2);
  font-weight: 700;
}


#tk-stage .pcard-corner.tl{ inset-block-start: 4px; inset-inline-start: 5px; }

#tk-stage .pcard-corner.br{ inset-block-end: 4px; inset-inline-end: 5px; transform: rotate(180deg); }

#tk-stage .pcard-corner i{ font-style: normal; font-size: calc(var(--bj-card-w) * .17); }

#tk-stage .pcard-pip{ font-size: calc(var(--bj-card-w) * .42); line-height: 1; }


#tk-stage .bj-card-slot{
  width: var(--bj-card-w);
  aspect-ratio: 5 / 7;
  border-radius: 7px;
  border: 1px dashed var(--bjc-felt-edge);
  background: rgba(0, 0, 0, .12);
}




#tk-stage .bj-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border-radius: var(--bjc-radius);
  border: 1px solid var(--bjc-border);
  background: var(--bjc-surface);
  color: var(--bjc-text);
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}


#tk-stage .bj-btn:hover:not(:disabled){ transform: translateY(-1px); }

#tk-stage .bj-btn:active:not(:disabled){ transform: none; }

#tk-stage .bj-btn:disabled{ opacity: .45; cursor: not-allowed; }


#tk-stage .bj-btn:focus-visible, #tk-stage .bj-chip:focus-visible, #tk-stage .bj-mode-switch button:focus-visible{
  outline: 3px solid var(--bjc-accent);
  outline-offset: 2px;
}


#tk-stage .bj-btn-primary{
  background: var(--bjc-accent);
  border-color: var(--bjc-accent);
  color: var(--bjc-accent-ink);
}


#tk-stage .bj-btn-secondary{
  background: var(--bjc-secondary);
  border-color: var(--bjc-secondary);
  color: var(--bjc-accent-ink);
}


#tk-stage .bj-btn-ghost{ background: transparent; }

#tk-stage .bj-btn-lg{ min-height: 52px; font-size: 1.02rem; }

#tk-stage .bj-btn-block{ width: 100%; }

#tk-stage .bj-btn-xs{ min-height: 30px; padding: 0 .55rem; font-size: .75rem; font-weight: 500; }


#tk-stage .bj-controls{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

#tk-stage .bj-row{ display: flex; flex-wrap: wrap; gap: .5rem; }




#tk-stage .bj-bet-display{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .45rem;
  margin-top: .85rem;
  padding: .55rem;
  border-radius: var(--bjc-radius);
  border: 1px solid var(--bjc-border);
  background: var(--bjc-surface);
}


#tk-stage .bj-bet-label{ font-size: .8rem; color: var(--bjc-muted); }

#tk-stage .bj-bet-amount{ font-size: 1.35rem; font-weight: 800; color: var(--bjc-accent); }


#tk-stage .bj-chips{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  margin-top: .7rem;
}


#tk-stage .bj-chip{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, .55);
  background: var(--bjc-chip, #2c6e4a);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: .8rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
  transition: transform .12s ease;
}


#tk-stage .bj-chip:hover{ transform: translateY(-2px); }

#tk-stage .bj-chip.is-selected{ transform: translateY(-3px); box-shadow: 0 0 0 3px var(--bjc-accent); }


#tk-stage .bj-chip-10{ background: #4a6fa5; }

#tk-stage .bj-chip-25{ background: #2c7a4b; }

#tk-stage .bj-chip-50{ background: #b04a3f; }

#tk-stage .bj-chip-100{ background: #3b3b57; }

#tk-stage .bj-chip-250{ background: #8a6d1f; }

#tk-stage .bj-chip-500{ background: #6a3b7a; }

#tk-stage .bj-chip-1000{ background: #1f5f6a; }

#tk-stage .bj-chip-2500{ background: #7a2f4a; }


#tk-stage .bj-fineprint{ font-size: .78rem; color: var(--bjc-muted); margin: .7rem 0 0; line-height: 1.8; }




#tk-stage .bj-status, #tk-stage .bj-result{
  margin-top: .85rem;
  padding: .8rem 1rem;
  border-radius: var(--bjc-radius);
  border: 1px solid var(--bjc-border);
  background: var(--bjc-surface);
  text-align: center;
}


#tk-stage .bj-result-headline{ display: block; font-size: 1.1rem; font-weight: 800; }

#tk-stage .bj-result-message{ margin: .35rem 0 .7rem; font-size: .9rem; color: var(--bjc-muted); line-height: 1.9; }

#tk-stage .bj-result.is-win{ border-color: var(--bjc-win); }

#tk-stage .bj-result.is-loss{ border-color: var(--bjc-loss); }


#tk-stage .bj-insurance{
  margin-top: .85rem;
  padding: .8rem 1rem;
  border-radius: var(--bjc-radius);
  border: 1px solid var(--bjc-secondary);
  background: var(--bjc-surface);
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  justify-content: space-between;
}


#tk-stage .bj-insurance p{ margin: 0; font-size: .88rem; }




#tk-stage .bj-panel{
  padding: .85rem;
  border-radius: var(--bjc-radius);
  border: 1px solid var(--bjc-border);
  background: var(--bjc-surface);
}


#tk-stage .bj-panel h3{
  margin: 0 0 .6rem;
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}


#tk-stage .bj-stat-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }


@media (min-width: 62rem){

  #tk-stage .bj-stat-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }


}


#tk-stage .bj-stat-cell{
  padding: .45rem;
  border-radius: 8px;
  background: var(--bjc-felt);
  border: 1px solid var(--bjc-border);
  text-align: center;
}


#tk-stage .bj-stat-label{ font-size: .7rem; color: var(--bjc-muted); }

#tk-stage .bj-stat-value{ font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }


#tk-stage .bj-linkstack{ display: grid; gap: .4rem; }


#tk-stage .bj-history{ display: grid; gap: .3rem; max-height: 15rem; overflow-y: auto; }


#tk-stage .bj-history-row{
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .78rem;
  padding: .35rem .5rem;
  border-radius: 6px;
  background: var(--bjc-felt);
}


#tk-stage .bj-history-profit{ font-weight: 700; font-variant-numeric: tabular-nums; }

#tk-stage .bj-history-profit.is-pos{ color: var(--bjc-win); }

#tk-stage .bj-history-profit.is-neg{ color: var(--bjc-loss); }

#tk-stage .bj-empty{ font-size: .82rem; color: var(--bjc-muted); margin: 0; }




#tk-stage .bj-toast{
  position: fixed;
  inset-block-end: 1rem;
  inset-inline: 1rem;
  margin-inline: auto;
  max-width: 24rem;
  padding: .65rem 1rem;
  border-radius: var(--bjc-radius);
  background: #1b1b22;
  color: #fff;
  font-size: .86rem;
  text-align: center;
  z-index: 70;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}




#tk-stage .bj-modal-host{ display: none; }

#tk-stage .bj-modal-host.is-open{ display: block; }


#tk-stage .bj-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 16, .68);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 80;
}


#tk-stage .bj-modal{
  width: min(28rem, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.1rem;
  border-radius: calc(var(--bjc-radius) * 1.4);
  background: var(--bjc-surface);
  border: 1px solid var(--bjc-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}


#tk-stage .bj-modal-title{ margin: 0 0 .6rem; font-size: 1.15rem; }

#tk-stage .bj-modal-body p{ margin: 0 0 .7rem; font-size: .9rem; line-height: 1.9; color: var(--bjc-muted); }


#tk-stage .bj-modal-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }


#tk-stage .bj-modal-cell{
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .5rem;
  border-radius: 8px;
  background: var(--bjc-felt);
  border: 1px solid var(--bjc-border);
}


#tk-stage .bj-modal-cell-label{ font-size: .72rem; color: var(--bjc-muted); }

#tk-stage .bj-modal-cell-value{ font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }

#tk-stage .bj-modal-actions{ display: flex; gap: .5rem; margin-top: .9rem; }

#tk-stage .bj-modal-actions .bj-btn{ flex: 1; }


#tk-stage [hidden]{ display: none !important; }

