/* Video poker strategy trainer (/tools/video-poker-trainer/). Loaded after site.css, guides.css and pay-table.css
   (for .pt-steps, .pt-sources and the paper sections); builds on the .calc panel. Mobile first: five cards fit
   at 320px and every control is at least 44px. */
.vt h2 { color: #fff; font-size: 1.2rem; }
.vt .vt-h { color: #fff; font-size: 1.05rem; margin: 22px 0 8px; }
.vt-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; margin-top: 10px; }
.vt-field label { display: block; font-size: .85rem; margin-bottom: 4px; }
.vt-field select { font-size: 16px; min-height: 44px; padding: 8px 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.22); font-family: inherit; }
.vt-keys { font-size: .85rem; color: var(--dim); margin: 0; flex: 1 1 220px; }
.vt kbd { display: inline-block; min-width: 1.5em; padding: 0 5px; border: 1px solid rgba(255,255,255,.3); border-radius: 5px; font: inherit; font-size: .8rem; text-align: center; color: #fff; }
.vt-status { margin: 14px 0 8px; color: #e9eef5; font-weight: 600; }

.vt-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.vt-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 40px; min-height: 76px; aspect-ratio: 5 / 7; padding: 4px 2px 18px; border-radius: 10px; border: 2px solid #c9d2de; background: #fff; color: #1b2533; font-family: Georgia, "Times New Roman", serif; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.vt-card:disabled, .vt-card[aria-disabled="true"] { cursor: default; }
.vt-card .vt-k { position: absolute; top: 3px; left: 5px; font: 600 .7rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #6b7686; }
.vt-card .vt-face { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.vt-card .vt-r { font-size: clamp(1.25rem, 6vw, 2rem); font-weight: 700; }
.vt-card .vt-s { font-size: clamp(1.1rem, 5.5vw, 1.8rem); margin-top: 2px; }
.vt-card.red { color: #b3261e; }
.vt-card .vt-tag { position: absolute; left: 0; right: 0; bottom: 3px; font: 700 .62rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #0d6b60; }
.vt-card[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); transform: translateY(-4px); }
.vt-card.best { outline: 3px dashed var(--teal); outline-offset: 3px; }
.vt-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vt-card.best:focus-visible { outline: 3px solid #fff; }
.vt-card.dim { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .vt-card { transition: none; } .vt-card[aria-pressed="true"] { transform: none; } }

.vt-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.vt .btn { min-height: 44px; min-width: 120px; }
.vt .btn:disabled { opacity: .5; cursor: default; }
.vt .btn.primary:focus-visible, .vt .btn.ghost:focus-visible, .vt-field select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vt .btn.ghost { color: #e9eef5; border-color: rgba(255,255,255,.3); }

.vt-result { margin-top: 18px; padding: 14px; border-radius: 12px; background: rgba(7,26,51,.55); border: 1px solid rgba(255,255,255,.14); }
.vt-verdict { font-weight: 700; font-size: 1.05rem; color: #fff; margin: 0 0 10px; }
.vt-verdict.ok { color: #9be3c0; }
.vt-verdict.miss { color: #ffd2a8; }
.vt .vt-evs, .vt .vt-score { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.vt .theo-out span { display: block; font-size: .8rem; color: var(--dim); margin-top: 2px; overflow-wrap: anywhere; }
.vt .theo-out b { overflow-wrap: anywhere; }
.vt-reason { margin-top: 12px; color: #e9eef5 !important; }
.vt-drawn { margin-top: 6px; font-size: .9rem; }
.vt-top-wrap { margin-top: 12px; overflow-x: auto; }
.vt-top { width: 100%; border-collapse: collapse; font-size: .88rem; }
.vt-top caption { text-align: left; font-size: .82rem; color: var(--dim); padding: 6px 8px; }
.vt-top th, .vt-top td { padding: 6px 8px; border-top: 1px solid rgba(255,255,255,.12); text-align: left; color: #e9eef5; vertical-align: top; }
.vt-top th.num, .vt-top td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vt-top tr.mine td { background: rgba(232,182,76,.14); }
.vt-top td.cards { font-family: Georgia, "Times New Roman", serif; }
.vt-top td.cards span { display: inline-block; white-space: nowrap; }
.vt-top th:first-child, .vt-top td.cards { width: 34%; }
.vt-top .red, .vt-mistakes .red { color: #ff9d94; }
.vt-score-note { margin-top: 8px; font-size: .82rem; }
.vt-mistakes { margin: 6px 0 0 20px; }
.vt-mistakes li { color: #e9eef5; margin-top: 10px; font-size: .9rem; }
.vt-mistakes li b { color: #fff; }
.vt-mistakes .cards { font-family: Georgia, "Times New Roman", serif; white-space: nowrap; }
@media (max-width: 400px) {
  .vt { padding: 18px 12px; }
  .vt-hand { gap: 5px; }
  .vt .vt-evs, .vt .vt-score { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vt-top th, .vt-top td { padding: 6px 5px; }
  .vt-card .vt-tag { font-size: .56rem; }
}
