/* Tournament Blackjack Trainer - the landing page's styles.
   The markup keeps the design's inline styles (drawn at 1440px); the classes below widen it on big
   screens and fold it down for laptops, tablets and phones. Fonts are served from /landing/fonts
   (SIL Open Font License, see the .txt files there). */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/landing/fonts/archivo-latin-wght.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/landing/fonts/ibm-plex-mono-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/landing/fonts/ibm-plex-mono-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/landing/fonts/ibm-plex-mono-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body{margin:0;background:#0B0B10;font-family:Archivo,"Helvetica Neue",Arial,sans-serif;color:#F4F4F8;-webkit-font-smoothing:antialiased}
a{color:#F4F4F8}a:hover{color:#4ADE80}
.tbj-lang-short{display:none}
.cs-page a:hover { text-decoration: none; }

/* Responsive layer. The markup keeps the design's inline styles (drawn at 1440px);
   these rules widen it on big screens and fold it down for laptops, tablets and phones. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
.cs-page { overflow-x: clip; }
.cs-img { width: 100% !important; height: auto !important; }
.cs-w { max-width: 100%; }
.cs-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cs-logo-mark { flex-shrink: 0; }
.cs-hdr-left { min-width: 0; }
.cs-hdr-cta, .cs-nav > a { white-space: nowrap; flex-shrink: 0; }
.cs-btn { white-space: nowrap; }
.cs-skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: #F4F4F8; color: #0B0B10 !important; font: 700 14px Archivo, sans-serif; text-decoration: none; }
.cs-skip:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

/* Wider than the 1440 artboard: content stays 1248 wide, section backgrounds run edge to edge. */
@media (min-width: 1201px) {
  .cs-g96 { padding-left: max(96px, calc(50% - 624px)) !important; padding-right: max(96px, calc(50% - 624px)) !important; }
  .cs-g48 { padding-left: max(48px, calc(50% - 672px)) !important; padding-right: max(48px, calc(50% - 672px)) !important; }
  .cs-m96 { margin-left: max(96px, calc(50% - 624px)) !important; margin-right: max(96px, calc(50% - 624px)) !important; }
}
@media (min-width: 1441px) {
  .cs-bleed { border-right: 1px solid var(--bc) !important; border-radius: 16px !important; }
}

/* Laptops */
@media (max-width: 1200px) {
  .cs-p { padding-left: min(var(--pl), 48px) !important; padding-right: min(var(--pr), 48px) !important; }
  .cs-m96 { margin-left: 48px !important; margin-right: 48px !important; }
  .cs-noshrink { flex-shrink: 1 !important; min-width: 0 !important; }
  .cs-bleed { width: 58vw !important; flex-shrink: 0 !important; margin-right: -48px !important; }
  .cs-fs { font-size: calc(16px + (var(--fs) - 16px) * 0.86) !important; }
}
@media (max-width: 1200px) {
  .cs-wrap { flex-wrap: wrap !important; }
  .cs-eq { flex-wrap: nowrap !important; }
}
@media (min-width: 1001px) and (max-width: 1400px) {
  .cs-tables { flex-wrap: wrap !important; justify-content: flex-start !important; row-gap: 28px !important; }
}
@media (min-width: 1001px) and (max-width: 1200px) {
  .cs-noshrink { min-width: min(var(--w), 360px) !important; }
}
@media (max-width: 1200px) {
  .cs-navlink { display: none !important; }
}
@media (max-width: 1100px) {
  .cs-grid[data-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cs-stats > * { padding: 28px 0 !important; border-left: 0 !important; }
  .cs-stats > *:nth-child(even) { padding-left: 32px !important; border-left: 1px solid rgba(244,244,248,0.1) !important; }
  .cs-stats > *:nth-child(n+3) { border-top: 1px solid rgba(244,244,248,0.1) !important; }
}

/* Tablets: two-column rows stack. */
@media (max-width: 1000px) {
  .cs-row { flex-direction: column !important; align-items: stretch !important; }
  .cs-row > .cs-w { width: 100% !important; max-width: max(var(--w), 720px) !important; }
  .cs-row > figure.cs-w, .cs-row > .cs-w.cs-bleed { max-width: var(--w) !important; }
  .cs-bleed { width: 100% !important; margin: 0 !important; border-right: 1px solid var(--bc) !important; border-radius: 16px !important; }
  .cs-grid[data-cols="5"], .cs-grid[data-cols="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .cs-hdr-extra { display: none !important; }
  .cs-row > .cs-divider { border-right: 0 !important; border-bottom: 1px solid var(--dc) !important; }
}

/* Phones */
@media (max-width: 760px) {
  .cs-p { padding-top: calc(var(--pt) * 0.6) !important; padding-bottom: calc(var(--pb) * 0.6) !important; padding-left: min(var(--pl), 20px) !important; padding-right: min(var(--pr), 20px) !important; }
  .cs-m96 { margin-left: 20px !important; margin-right: 20px !important; }
  .cs-gap { row-gap: calc(var(--gr) * 0.55) !important; column-gap: calc(var(--gc) * 0.55) !important; }
  .cs-fs { font-size: calc(16px + (var(--fs) - 16px) * 0.55) !important; }
  .cs-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .cs-grid.cs-keep2, .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cs-hdr-extra, .cs-nav-account { display: none !important; }
  .cs-header { height: 64px !important; }
  .cs-hdr-cta { height: 40px !important; padding: 0 14px !important; font-size: 12px !important; }
  .cs-bleed-b { margin-bottom: calc(var(--pb) * -0.6) !important; align-self: center !important; }
  .cs-fs-xl { font-size: min(calc(16px + (var(--fs) - 16px) * 0.55), 14vw) !important; }
  .cs-scroll > table { min-width: 520px; }
  .cs-eq { flex-wrap: wrap !important; justify-content: center !important; }
  .cs-eq > span[aria-hidden="true"] { flex-basis: 100%; text-align: center; line-height: 1; }
  .cs-stats > * { padding-top: 22px !important; padding-bottom: 22px !important; padding-right: 12px !important; }
  .cs-stats > *:nth-child(odd) { padding-left: 0 !important; }
  .cs-stats > *:nth-child(even) { padding-left: 16px !important; }
}
@media (max-width: 440px) {
  .cs-wordmark { font-size: 12px !important; letter-spacing: 0.03em !important; }
  .cs-hdr-left a[aria-label] { gap: 9px !important; }
  .cs-hdr-cta { padding: 0 12px !important; font-size: 11px !important; letter-spacing: 0.06em !important; }
  .cs-hdr-cta > span[aria-hidden="true"] { display: none !important; }
}
@media (max-width: 440px) {
  .cs-rgrid { padding: 10px !important; gap: 2px !important; }
  .cs-rgrid > div { gap: 2px !important; }
  .cs-rgrid span { font-size: 7.5px !important; letter-spacing: -0.02em; }
}
@media (max-width: 440px) {
  .cs-btn-lg:not(.cs-hdr-cta) { white-space: normal !important; height: auto !important; min-height: 48px; padding-top: 12px !important; padding-bottom: 12px !important; text-align: center; }
}
@media (max-width: 380px) {
  .cs-heq { gap: 6px !important; }
  .cs-heq > div { padding-left: 12px !important; padding-right: 12px !important; }
}
@media (max-width: 360px) {
  .cs-p { padding-left: min(var(--pl), 14px) !important; padding-right: min(var(--pr), 14px) !important; }
  .cs-m96 { margin-left: 14px !important; margin-right: 14px !important; }
  .cs-shrink { zoom: 0.88; }
}

/* Phones: the name stays in the bar. A page's own header rules (or its measured fit) shrink it,
   stack it on two lines and only then drop it, after everything else in the bar has gone. */

/* Phones: everything below the bar is centered (the owner's call, 2026-09-29). A working widget
   that is laid out as one (a live table, a chart, a demo with rows and bars) carries
   data-cs-keep and keeps its own alignment; its surroundings still center. */
@media (max-width: 760px) {
  .cs-page section:not([data-cs-keep] *), .cs-page footer:not([data-cs-keep] *) { text-align: center; }
  .cs-page section *:not([data-cs-keep] *), .cs-page footer *:not([data-cs-keep] *) { text-align: center !important; }
  .cs-page section [data-cs-keep], .cs-page footer [data-cs-keep] { text-align: start !important; }
  .cs-page section [style*="display: flex"]:not([style*="flex-direction: column"]):not([data-cs-keep] *):not([data-cs-keep]),
  .cs-page footer [style*="display: flex"]:not([style*="flex-direction: column"]):not([data-cs-keep] *) { justify-content: center !important; }
  .cs-page section [style*="flex-direction: column"][style*="align-items: flex-start"]:not([data-cs-keep] *):not([data-cs-keep]),
  .cs-page footer [style*="flex-direction: column"][style*="align-items: flex-start"]:not([data-cs-keep] *) { align-items: center !important; }
  .cs-page section [style*="justify-content: space-between"]:not([style*="gap"]):not([data-cs-keep] *):not([data-cs-keep]),
  .cs-page footer [style*="justify-content: space-between"]:not([style*="gap"]):not([data-cs-keep] *) { flex-wrap: wrap; column-gap: 12px; row-gap: 6px; }
  .cs-page section [style*="align-self: flex-start"]:not([data-cs-keep] *), .cs-page footer [style*="align-self: flex-start"] { align-self: center !important; }
  .cs-page section ul:not([data-cs-keep] *), .cs-page section ol:not([data-cs-keep] *) { padding-left: 0 !important; }
}


/* This page's own additions: the language switcher in the header, and Japanese type. */
.tbj-lang-short { display: none; }
[data-intl-only][hidden] { display: none !important; }
#land-chart svg { display: block; }
#land-readout b { font-weight: 600; }

/* The header carries a language switcher as well as its links, so it folds a little earlier than
   the other Counter.Software pages: the section links go first, then the product label, then the
   switcher's long labels and Account. Past that, landing.js measures the bar and sheds, in order: a
   smaller wordmark, the header's language switcher (the footer keeps one), the wordmark on two
   lines, the button's arrow and some of its padding, and only then the wordmark (lp-fit-1 to lp-fit-5). The name is the last
   thing to go, so a phone shows Counter.Software beside Launch trainer. */
.cs-wordmark { white-space: nowrap; }
@media (min-width: 441px) {
  .cs-header.lp-fit-1 .cs-wordmark { font-size: 14px !important; letter-spacing: 0.04em !important; }
}
.cs-header.lp-fit-2 [data-lang-group] { display: none !important; }
.cs-page .cs-header.lp-fit-3 .cs-wordmark { display: inline-flex !important; flex-direction: column; font-size: 11px !important; line-height: 1.15; letter-spacing: 0.05em !important; }
.cs-header.lp-fit-4 .cs-hdr-cta > span[aria-hidden="true"] { display: none !important; }
.cs-page .cs-header.lp-fit-4 .cs-hdr-cta { padding: 0 10px !important; letter-spacing: 0.02em !important; }
.cs-page .cs-header.lp-fit-5 .cs-wordmark { display: none !important; }
@media (max-width: 1400px) {
  .cs-navlink { display: none !important; }
}
@media (max-width: 1100px) {
  .cs-hdr-extra { display: none !important; }
}
@media (max-width: 1000px) {
  .tbj-lang-full { display: none; }
  .tbj-lang-short { display: inline; }
}
@media (max-width: 900px) {
  header .cs-nav-account { display: none !important; }
}
@media (max-width: 760px) {
  header [data-lang-group] button { height: 28px !important; padding: 0 8px !important; }
  #land-chart { height: 260px !important; }
}
@media (max-width: 480px) {
  [data-hero] [role="listitem"] { gap: 8px !important; }
  [data-hero] [role="listitem"] > span:nth-child(2) { width: 104px !important; flex-shrink: 0; }
  [data-hero] [role="listitem"] > span:last-child { width: 56px !important; flex-shrink: 0; }
}

/* Japanese: phrases wrap as phrases, the spaced-out caps of the Latin labels are tightened, and the
   monospace labels take a Japanese face for the characters IBM Plex Mono does not have. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) figcaption span { word-break: auto-phrase; }
:lang(ja) h1, :lang(ja) h2 { letter-spacing: 0 !important; word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) [style*="IBM Plex Mono"] {
  font-family: 'IBM Plex Mono', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, 'Noto Sans JP', Meiryo, sans-serif !important;
  letter-spacing: 0.04em !important;
}

/* The gameplay screenshots enlarge (landing.js), as on every Counter.Software page. */
.cs-page [data-zoom] { cursor: zoom-in; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cs-page [data-zoom]:focus-visible { outline: 2px solid #86EFAC; outline-offset: -2px; }
.lp-zoom { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 68px 16px 24px; background: rgba(5, 5, 9, 0.94); cursor: zoom-out; overscroll-behavior: contain; }
.lp-zoom-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lp-zoom-img { display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 12px; border: 1px solid rgba(74, 222, 128, 0.3); background: #0D1A12; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); cursor: default; }
.lp-zoom-fig figcaption { max-width: 760px; margin: 0; color: #C9C9D6; font: 400 14px/1.55 Archivo, "Helvetica Neue", Arial, sans-serif; text-align: center; cursor: default; }
.lp-zoom-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; border: 1px solid rgba(244, 244, 248, 0.22); background: rgba(20, 20, 28, 0.92); color: #F4F4F8; font: 400 26px/1 Archivo, sans-serif; cursor: pointer; }
.lp-zoom-close:hover { background: rgba(40, 40, 52, 0.95); }
.lp-zoom-close:focus-visible { outline: 2px solid #86EFAC; outline-offset: 2px; }

/* In play: stacked on a tablet, the phone shot sits beside its caption; on a phone it centers above it. */
@media (min-width: 761px) and (max-width: 1000px) {
  #play figure:last-child { width: 100% !important; max-width: none !important; display: grid !important; grid-template-columns: 260px minmax(0, 1fr); column-gap: 36px; align-items: center; }
}
@media (max-width: 760px) {
  #play figure:last-child { align-self: center; }
}
