@charset "UTF-8";
:root {
  color-scheme: light;
  --canvas: #f2f5f4; --surface: #ffffff; --text: #142b31; --muted: #52666c;
  --line: #d3dfdd; --teal: #006b64; --blue: #245ab3; --error: #ad231c;
  --soft-teal: #edf8f5; --soft-blue: #f0f5ff; --focus: #1b6bc2;
  --shadow: 0 2px 10px #163e3410;
  --first-size: 72px; --later-size: 40px; --raise-size: 54px; --percent-size: 34px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #142025; --surface: #1b2c32; --text: #f3f8f8; --muted: #b6c7cb;
    --line: #3e545a; --teal: #68dac5; --blue: #9bbdff; --error: #ffb4aa;
    --soft-teal: #183b36; --soft-blue: #213349; --focus: #afd3ff;
    --shadow: 0 2px 10px #0002;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #142025; --surface: #1b2c32; --text: #f3f8f8; --muted: #b6c7cb;
  --line: #3e545a; --teal: #68dac5; --blue: #9bbdff; --error: #ffb4aa;
  --soft-teal: #183b36; --soft-blue: #213349; --focus: #afd3ff;
  --shadow: 0 2px 10px #0002;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--text); padding: max(16px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
button, input, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, select { color: var(--text); }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, select, input { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); }
a { color: var(--teal); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1,h2,h3,p { margin: 0; }
.app-header, main { max-width: 1440px; margin-inline: auto; }
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; direction: ltr; min-height: 46px; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: -.4px; color: var(--text); white-space: nowrap; }
.brand strong { color: var(--teal); font-weight: 800; }
.toolbar { display: flex; gap: 10px; align-items: center; }
.language-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 3px; direction: ltr; }
.language-switch button { min-width: 44px; height: 38px; background: transparent; border: 0; border-radius: 7px; font-size: 14px; font-weight: 700; }
.language-switch button[aria-pressed="true"] { color: var(--surface); background: var(--teal); }
.theme-control { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding-inline-start: 9px; }
.theme-control select { min-height: 44px; max-width: 112px; background: transparent; border: 0; padding: 6px; font-size: 14px; }
.reset-button { display: flex; align-items: center; gap: 7px; min-height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 13px; font-size: 14px; font-weight: 650; }
.calculator-grid { display: grid; grid-template-columns: minmax(0,1fr) 326px; gap: 16px; align-items: stretch; }
.panel { min-width: 0; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-radius: 18px; padding: 18px; }
.postflop { display: flex; flex-direction: column; gap: 14px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.section-heading h1,.section-heading h2 { font-size: 17px; font-weight: 750; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.primary-inputs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 125px; gap: 14px; }
.amount-field { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.amount-field label { display: flex; gap: 4px; align-items: baseline; justify-content: space-between; font-size: 14px; font-weight: 650; }
kbd { font-family: inherit; font-size: 10px; color: var(--muted); font-weight: 400; white-space: nowrap; direction: ltr; }
input { display: block; width: 100%; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 11px; background: var(--canvas); color: var(--text); height: 54px; font-size: 28px; font-weight: 550; font-variant-numeric: tabular-nums lining-nums; text-align: left; caret-color: var(--teal); }
input::placeholder { color: var(--muted); opacity: .6; }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px var(--soft-teal); }
input[aria-invalid="true"] { border-color: var(--error); }
:root[dir="rtl"] input { text-align: right; }
.input-hint, .field-error { font-size: 11px; line-height: 1.35; min-height: 26px; }
.input-hint { color: var(--muted); }
.field-error { color: var(--error); }
.amount-field:has(.field-error:not([hidden])) .input-hint { display: none; }
.spr-display { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; }
.spr-display .number { --size: 36px; min-height: 54px; align-content: center; text-align: start; }
.number { display: block; font-size: var(--size); font-weight: 750; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; min-width: 0; width: 100%; }
.number.empty { color: var(--muted); opacity: .55; }
.street-plans { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; flex: 1; }
.street-plan { position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; padding: 14px; gap: 12px; min-height: 338px; }
.two { --accent: var(--teal); --soft: var(--soft-teal); }
.three { --accent: var(--blue); --soft: var(--soft-blue); }
.plan-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.plan-top h2 { font-size: 21px; color: var(--accent); }
.plan-top span { color: var(--muted); font-size: 11px; }
.percentage { min-width: 0; flex: 1; text-align: end; }
.percentage .number { --size: var(--percent-size); color: var(--accent); text-align: end; margin-bottom: 2px; }
.bet-now { background: var(--soft); margin-inline: -3px; padding: 0 9px 9px; border-radius: 10px; }
.bet-label { display: flex; align-items: center; justify-content: space-between; min-height: 39px; gap: 4px; }
.bet-label strong { font-size: 12px; letter-spacing: .09em; color: var(--accent); }
:root[dir="rtl"] .bet-label strong { letter-spacing: 0; }
.bet-now .number { --size: var(--first-size); min-height: calc(var(--first-size) * 1.12); text-align: right; align-content: center; }
.copy { display: inline-flex; align-items: center; justify-content: center; width: 36px; min-width: 36px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--teal); padding: 6px; }
.copy svg { width: 17px; height: 17px; }
.copy:disabled { color: var(--muted); opacity: .35; }
.copy:not(:disabled):hover, .app-footer button:hover { background: var(--soft-teal); }
.future-bets { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: auto 0 0; }
.future-bets li { display: grid; grid-template-columns: minmax(60px,auto) minmax(0,1fr) 32px; align-items: center; gap: 5px; min-height: 55px; }
.future-bets li + li { border-top: 1px solid var(--line); padding-top: 8px; }
.future-bets .number { --size: var(--later-size); text-align: right; }
.future-bets .copy { width: 32px; min-width: 32px; }
.step-label { display: flex; flex-direction: column; gap: 3px; }
.step-label strong { font-size: 13px; }
.step-label span { color: var(--muted); font-size: 10px; }
.over-pot { position: absolute; inset-inline-start: 14px; bottom: 74px; color: var(--accent); font-size: 10px; }
.three .over-pot { bottom: 136px; }
.calculation-note { font-size: 11px; line-height: 1.4; color: var(--muted); min-height: 32px; }
.calculation-note p + p { margin-top: 2px; }
.error { color: var(--error) !important; }
.preflop { display: flex; flex-direction: column; gap: 14px; }
.raise-group { flex: 1; padding-top: 2px; display: flex; flex-direction: column; justify-content: center; }
.raise-group + .raise-group { border-top: 1px solid var(--line); padding-top: 14px; }
.raise-group h3 { color: var(--muted); font-size: 12px; letter-spacing: .07em; margin-bottom: 8px; }
.raise-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.raise-target { min-width: 0; }
.raise-target > span { font-size: 12px; font-weight: 650; }
.raise-target .number { --size: var(--raise-size); min-height: calc(var(--raise-size) * 1.15); align-content: center; margin-top: 4px; }
.raise-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.reference { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 14px; align-items: center; padding: 13px 18px; margin-top: 4px; color: var(--muted); }
.reference h2 { font-size: 12px; margin-bottom: 4px; }
.reference p { font-size: 11px; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: center; font-size: 12px; padding: 3px 1px; }
th:first-child { width: 32px; }
td { direction: ltr; unicode-bidi: isolate; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.app-footer nav { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.app-footer button { border: 0; background: transparent; color: var(--teal); min-height: 44px; padding: 6px; font-size: 12px; }
.app-footer a { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; text-decoration: none; font-size: 12px; padding: 6px; }
.app-footer a:hover { text-decoration: underline; }
.privacy-note { text-align: center; font-size: 10px; color: var(--muted); margin-top: 4px; }
.feedback { position: fixed; bottom: max(16px,env(safe-area-inset-bottom)); inset-inline: 16px; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); font-size: 14px; line-height: 1.4; border-radius: 12px; background: var(--text); color: var(--surface); padding: 12px 18px; box-shadow: var(--shadow); z-index: 10; }
.feedback:empty { display: none; }
.feedback[data-error="true"] { border: 2px solid var(--error); }
dialog { width: min(560px,calc(100vw - 24px)); max-height: min(800px,calc(100dvh - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: var(--surface); }
dialog::backdrop { background: #081923aa; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dialog-heading h2 { font-size: 21px; }
.dialog-heading button { font-size: 28px; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
dialog p { font-size: 14px; line-height: 1.6; margin-block: 12px; }
dialog h3 { font-size: 16px; margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -100px; background: var(--surface); padding: 12px; z-index: 20; }
.skip-link:focus { top: 8px; }
#startup { position: fixed; bottom: 16px; inset-inline: 16px; text-align: center; background: var(--surface); padding: 12px; color: var(--error); }
.noscript { padding: 20px; background: var(--surface); color: var(--error); }
@media (max-height: 830px) and (min-width: 1050px) {
  :root { --first-size: 64px; --later-size: 36px; --raise-size: 48px; --percent-size: 32px; }
  body { padding-block: 12px; }
  .app-header { margin-bottom: 12px; }
  .panel { padding: 14px; }
  .postflop,.preflop { gap: 10px; }
  .street-plan { min-height: 304px; gap: 8px; }
  .reference { padding-block: 9px; }
}
@media (max-width: 1100px) {
  .calculator-grid { grid-template-columns: minmax(0,1fr) 292px; gap: 12px; }
  .panel { padding: 14px; }
  .primary-inputs { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 94px; gap: 10px; }
  :root { --first-size: 60px; --later-size: 32px; --raise-size: 46px; --percent-size: 28px; }
  .street-plan { padding: 12px; }
}
@media (max-width: 960px) {
  body { padding-inline: max(18px,env(safe-area-inset-left)) max(18px,env(safe-area-inset-right)); }
  .calculator-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  :root { --first-size: 68px; --later-size: 40px; --raise-size: 52px; --percent-size: 32px; }
  .preflop { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .preflop > .section-heading, .preflop > .amount-field, .preflop > .calculation-note { grid-column: 1 / -1; }
  .raise-group + .raise-group { border-top: 0; padding-top: 2px; border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
  .preflop > .amount-field { max-width: 420px; width: 100%; }
  .app-footer { align-items: flex-start; flex-direction: column; gap: 0; }
  .app-footer nav { align-self: flex-end; }
}
@media (max-width: 600px) {
  body { padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  .app-header { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
  .brand { font-size: 18px; }
  .brand img { width: 28px; height: 28px; }
  .toolbar { width: 100%; justify-content: space-between; gap: 6px; }
  .language-switch { padding: 2px; }
  .language-switch button { height: 44px; }
  .reset-button { min-height: 44px; padding-inline: 9px; }
  .theme-control { padding-inline-start: 7px; }
  .theme-control select { height: 44px; font-size: 13px; max-width: 100px; }
  .theme-control svg { width: 16px; }
  .panel { padding: 14px 12px; border-radius: 14px; }
  .section-heading > span { font-size: 11px; }
  .primary-inputs { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
  .amount-field label { font-size: 14px; min-height: 34px; align-items: center; }
  kbd { display: none; }
  input { height: 54px; font-size: 26px; padding-inline: 9px; }
  .input-hint,.field-error { font-size: 11px; min-height: 30px; }
  .spr-display { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; gap: 10px; }
  .spr-display .number { --size: 30px; min-height: 34px; text-align: start; }
  .spr-display .input-hint { min-height: 0; }
  .street-plans { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .street-plan { min-height: 0; padding: 14px; gap: 10px; }
  .bet-now .number { --first-size: 64px; }
  .copy,.future-bets .copy { width: 44px; min-width: 44px; height: 44px; }
  .bet-label { min-height: 44px; }
  .future-bets li { grid-template-columns: auto minmax(0,1fr) 44px; min-height: 62px; }
  .future-bets .number { --size: 38px; }
  .over-pot { position: static; font-size: 12px; }
  .preflop { display: flex; }
  .raise-group + .raise-group { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .raise-target .number { --raise-size: 50px; }
  .reference { display: block; padding: 18px 0 10px; }
  .reference > div { display: flex; justify-content: space-between; margin-bottom: 9px; padding-inline: 4px; }
  th,td { font-size: 10px; padding-block: 6px; letter-spacing: -.2px; }
  th:first-child { width: 24px; }
  .app-footer { padding-inline: 4px; font-size: 11px; }
  .privacy-note { text-align: start; padding-inline: 4px; }
  dialog { padding: 16px; }
}
@media (prefers-contrast: more) {
  :root { --line: #647b78; --muted: #2d444b; }
  :root[data-theme="dark"] { --line: #bdcdcf; --muted: #deebed; }
  input,.street-plan,.panel { border-width: 2px; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --line: #bdcdcf; --muted: #deebed; }
}
@media (forced-colors: active) {
  :root { --canvas: Canvas; --surface: Canvas; --text: CanvasText; --muted: CanvasText; --line: CanvasText; --teal: LinkText; --blue: LinkText; --error: CanvasText; --soft-teal: Canvas; --soft-blue: Canvas; --focus: Highlight; }
  .language-switch button[aria-pressed="true"] { background: Highlight; color: HighlightText; }
  .number.empty { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
