/* Poker odds calculator. Colours come from the theme variables. */
.po { --po-card: #f4f5f7; --po-s: #111317; --po-h: #dc2626; --po-d: #2563eb; --po-c: #15803d; }
.po .po-calc { grid-template-columns: 1.12fr 1fr; align-items: start; }
.po .po-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.po .po-head small { font-size: 13px; font-weight: 500; color: var(--c-muted); }
.po .po-lbl { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 8px; }
.po .po-lbl em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--c-accent); font-weight: 600; }
.po .po-lbl__hint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.po .po-muted { color: var(--c-muted); font-size: 13.5px; margin: 0; }
.po .po-small { font-size: 12px; margin-top: 8px; }

/* table felt + slots */
.po .po-felt { background: radial-gradient(120% 90% at 50% 0%, #1d2530 0, #151a22 70%); border: 1px solid var(--c-line); border-radius: var(--radius-lg, 14px); padding: 18px; display: grid; gap: 16px; }
.po .po-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.po .po-slots { display: flex; gap: 7px; }
.po .po-slot { width: 52px; height: 72px; padding: 0; border-radius: 7px; border: 1.5px dashed #3a4250; background: transparent; color: #5b6474; font: 500 20px var(--font, sans-serif); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, box-shadow .15s; }
.po .po-slot:hover { border-color: #5b6474; }
.po .po-slot.is-active { border: 2px solid var(--c-accent); color: var(--c-accent); background: rgba(163, 230, 53, .07); box-shadow: 0 0 0 4px rgba(163, 230, 53, .12); }
.po .po-slot--full { border: 0; background: none; }
.po .po-slot--full.is-active .po-card { box-shadow: 0 0 0 2px var(--c-accent), 0 0 0 6px rgba(163, 230, 53, .15); }
.po .po-slot--sm { width: 34px; height: 46px; font-size: 15px; border-radius: 5px; }
.po .po-slot--xs { width: 26px; height: 36px; font-size: 13px; border-radius: 4px; }

/* cards (four-colour deck) */
.po .po-card { width: 100%; height: 100%; min-width: 26px; border-radius: 7px; background: var(--po-card); display: flex; flex-direction: column; justify-content: space-between; padding: 5px 6px; font: 800 22px/1 var(--font, sans-serif); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6); }
.po .po-card span:last-child { align-self: flex-end; }
.po .po-card--sm { font-size: 15px; padding: 3px 4px; border-radius: 5px; }
.po .po-card--xs { width: 26px; height: 36px; font-size: 12px; padding: 2px 3px; border-radius: 4px; }
.po .po-s { color: var(--po-s); } .po .po-h { color: var(--po-h); } .po .po-d { color: var(--po-d); } .po .po-c { color: var(--po-c); }

/* opponents */
.po .po-stepper { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: 9px; overflow: hidden; background: var(--bg, #0e1014); text-transform: none; letter-spacing: 0; }
.po .po-stepper button { width: 32px; height: 28px; border: 0; background: none; color: var(--c-muted); font-size: 16px; cursor: pointer; }
.po .po-stepper button:hover { color: var(--text, #fff); }
.po .po-stepper b { width: 28px; text-align: center; font: 700 14px var(--mono, monospace); color: var(--text, #fff); }
.po .po-opps { display: grid; gap: 8px; }
.po .po-opp { display: flex; align-items: center; gap: 12px; background: var(--surface-2, #1c212a); border: 1px solid var(--c-line); border-radius: var(--radius, 10px); padding: 7px 12px; }
.po .po-opp__nm { font-weight: 600; font-size: 14px; min-width: 88px; }
.po .po-opp__eq { margin-left: auto; font: 600 13px var(--mono, monospace); color: var(--c-muted); }
.po .po-pill { font: 500 12px var(--font, sans-serif); padding: 3px 9px; border-radius: 99px; border: 1px solid var(--c-line); background: none; color: var(--c-muted); cursor: pointer; }
.po .po-pill.is-on { border-color: rgba(96, 165, 250, .5); color: var(--c-accent-2); background: rgba(96, 165, 250, .08); cursor: default; }

/* picker */
.po .po-pick { margin-top: 16px; }
.po .po-picker { display: grid; grid-template-columns: repeat(13, 1fr); gap: 5px; }
.po .po-pk { aspect-ratio: .72; border: 0; border-radius: 5px; background: #eef0f3; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 800 15px/1.05 var(--font, sans-serif); cursor: pointer; padding: 0; transition: transform .1s; }
.po .po-pk small { font-size: 13px; }
.po .po-pk:hover:not(:disabled) { transform: translateY(-2px); }
.po .po-pk.is-used { opacity: .16; cursor: default; }
.po .po-pk.is-dead { opacity: .35; outline: 2px solid var(--danger, #f87171); outline-offset: -2px; }
.po .po-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.po .po-btn { border: 1px solid var(--c-line); background: var(--surface-2, #1c212a); color: var(--text, #fff); border-radius: 9px; padding: 8px 13px; font: 600 13px var(--font, sans-serif); cursor: pointer; }
.po .po-btn:hover { border-color: #3a4250; }
.po .po-btn--ghost { border-color: rgba(96, 165, 250, .55); color: var(--c-accent-2); background: transparent; }
.po .po-quick { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-muted); }
.po .po-quick input { width: 140px; background: var(--bg, #0e1014); border: 1px solid var(--c-line); color: var(--text, #fff); font: 600 13px var(--mono, monospace); padding: 7px 9px; border-radius: 7px; }

/* results */
.po .po-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--bg, #0e1014); margin: 0 0 12px; }
.po .po-bar i { display: block; width: 0; transition: width .25s; }
.po [data-bar="win"] { background: var(--c-accent); } .po [data-bar="tie"] { background: var(--c-accent-2); } .po [data-bar="lose"] { background: var(--danger, #f87171); opacity: .85; }
.po .po-wtl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.po .po-wtl .cc-stat b { font-size: 28px; }
.po .po-tie b { color: var(--c-accent-2); }
.po.is-busy .po-wtl b { opacity: .75; }
.po .po-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--c-muted); margin: 10px 0 0; }
.po .po-meta b { color: var(--text, #fff); font-weight: 600; }
.po .po-box { background: var(--surface-2, #1c212a); border: 1px solid var(--c-line); border-radius: var(--radius, 10px); padding: 14px 16px; margin-top: 14px; }
.po .po-made { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.po .po-made b { font-size: 16px; }
.po .po-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.po .po-chip { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(163, 230, 53, .1); color: var(--c-accent); border: 1px solid rgba(163, 230, 53, .35); font-weight: 600; white-space: nowrap; }
.po .po-chip--b { background: rgba(96, 165, 250, .1); color: var(--c-accent-2); border-color: rgba(96, 165, 250, .35); }
.po .po-outs { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.po .po-big { font: 700 44px/1 var(--mono, monospace); color: var(--c-accent); }
.po .po-big small { display: block; font: 500 12px var(--font, sans-serif); color: var(--c-muted); margin-top: 4px; max-width: 90px; }
.po .po-oc-list { display: grid; gap: 6px; }
.po .po-oc { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.po .po-oc em { font-style: normal; font-size: 12px; color: var(--c-muted); min-width: 92px; }
.po .po-oc__cards { display: flex; gap: 4px; flex-wrap: wrap; }
.po .po-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.po .po-split--one { grid-template-columns: 1fr; }
.po .po-mini { background: var(--bg, #0e1014); border: 1px solid var(--c-line); border-radius: 9px; padding: 9px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--c-muted); }
.po .po-mini b { font: 700 17px var(--mono, monospace); color: var(--text, #fff); }
.po .po-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0; }
.po .po-table th { font-size: 11.5px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .07em; text-align: right; font-weight: 600; padding: 0 0 6px; border: 0; background: none; }
.po .po-table th:first-child, .po .po-table td:first-child { text-align: left; font-family: var(--font, sans-serif); }
.po .po-table td { padding: 6px 0; border: 0; border-top: 1px solid var(--c-line); text-align: right; font-family: var(--mono, monospace); background: none; }
.po .po-table td.is-zero { color: #4b5361; }
.po .po-table tr.is-made td:first-child { color: var(--c-accent); }
.po .po-pot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.po .po-pot label { display: block; background: var(--bg, #0e1014); border: 1px solid var(--c-line); border-radius: 9px; padding: 8px 12px; }
.po .po-pot span { display: block; font-size: 12px; color: var(--c-muted); }
.po .po-pot input { width: 100%; background: none; border: 0; padding: 0; color: var(--text, #fff); font: 700 18px var(--mono, monospace); outline: none; }
.po .po-verdict { margin-top: 10px; display: flex; align-items: center; gap: 12px; border-radius: var(--radius, 10px); padding: 12px 14px; border: 1px solid var(--c-line); }
.po .po-verdict p { margin: 0; font-size: 13.5px; color: var(--c-muted); }
.po .po-verdict p b { color: var(--text, #fff); font-family: var(--mono, monospace); }
.po .po-verdict.is-good { border-color: rgba(163, 230, 53, .55); background: rgba(163, 230, 53, .07); }
.po .po-verdict.is-bad { border-color: rgba(248, 113, 113, .55); background: rgba(248, 113, 113, .07); }
.po .po-tag { white-space: nowrap; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 7px; }
.po .is-good .po-tag { background: var(--c-accent); color: var(--accent-ink, #0d1404); }
.po .is-bad .po-tag { background: var(--danger, #f87171); color: #1a0505; }
.po .is-good .po-ev { color: var(--c-accent); } .po .is-bad .po-ev { color: var(--danger, #f87171); }
.po.is-empty .po-wtl, .po.is-empty .po-bar { opacity: .45; }

/* bottom sheet (phones) */
.po .po-sheet[hidden] { display: none; }
.po .po-sheet__scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 90; }
.po .po-sheet__panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; background: var(--surface, #161a21); border-top: 1px solid var(--c-line); border-radius: 18px 18px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -30px 60px -10px rgba(0, 0, 0, .8); }
.po .po-sheet__grab { width: 40px; height: 4px; border-radius: 9px; background: #3a4250; margin: 0 auto 12px; }
.po .po-sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 17px; }
.po .po-sheet__head button { background: none; border: 0; color: var(--c-muted); font-size: 18px; cursor: pointer; }
.po .po-suits { display: flex; gap: 6px; margin-bottom: 10px; }
.po .po-suits button { flex: 1; padding: 8px 0; border-radius: 8px; border: 1px solid var(--c-line); font-size: 20px; background: var(--surface-2, #1c212a); cursor: pointer; }
.po .po-suits .po-s { color: #e7eaf0; } .po .po-suits .po-h { color: #f87171; } .po .po-suits .po-d { color: #60a5fa; } .po .po-suits .po-c { color: #4ade80; }
.po .po-suits button.is-on { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(163, 230, 53, .12); }
.po .po-ranks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.po .po-ranks button { background: #eef0f3; border: 0; border-radius: 8px; padding: 11px 0; font: 800 17px var(--font, sans-serif); cursor: pointer; }
.po .po-ranks button.is-used { opacity: .16; }
.po .po-ranks .po-ranks__skip { background: var(--surface-2, #1c212a); color: var(--text, #fff); font-size: 13px; }
.po .po-sheet__hint { font-size: 12px; color: var(--c-muted); text-align: center; margin: 10px 0 0; }
html.po-noscroll { overflow: hidden; }

@media (max-width: 960px) {
	.po .po-calc { grid-template-columns: 1fr; }
	.po .po-sum { position: sticky; top: 68px; z-index: 20; background: rgba(14, 16, 20, .94); backdrop-filter: blur(8px); margin: -22px -22px 0; padding: 14px 22px 12px; border-radius: var(--radius-lg, 14px) var(--radius-lg, 14px) 0 0; border-bottom: 1px solid var(--c-line); }
}
@media (max-width: 600px) {
	.po .po-pick { display: none; }
	.po .po-felt { padding: 14px; gap: 12px; }
	.po .po-row { gap: 10px; }
	.po .po-slot { width: 44px; height: 62px; }
	.po .po-slot--sm { width: 34px; height: 46px; }
	.po .po-slot--xs { width: 26px; height: 36px; }
	.po .po-card { font-size: 19px; }
	.po .po-card--sm { font-size: 15px; } .po .po-card--xs { font-size: 12px; }
	.po .po-opp { flex-wrap: wrap; gap: 8px; }
	.po .po-opp__nm { min-width: 0; }
	.po .po-wtl { gap: 8px; }
	.po .po-wtl .cc-stat { padding: 9px 10px; }
	.po .po-wtl .cc-stat b { font-size: 21px; }
	.po .po-sum { padding: 12px 22px 10px; }
	.po .po-sum .cc-panel__title { display: none; }
	.po .po-quick { margin-left: 0; width: 100%; }
	.po .po-quick input { flex: 1; }
	.po .po-outs { grid-template-columns: 1fr; gap: 10px; }
	.po .po-big small { max-width: none; }
	.po .po-mini { font-size: 12px; } .po .po-mini b { font-size: 15px; }
	.po .po-verdict { flex-wrap: wrap; }
}
