/* Layout: sticky study-tool header with six views; each view pairs an input panel with a read-out panel and stacks on phones. */
:root {
  --bg: #edf1ef;
  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --ink: #15201d;
  --muted: #5a6763;
  --line: #d3dcd8;
  --accent: #9a5800;
  --accent-ink: #ffffff;
  --accent-soft: #f5e5cb;
  --raise: #c8453d;
  --call: #2e8754;
  --fold: #7b889c;
  --cell-empty: #e2e8e5;
  --cell-ink: #ffffff;
  --good: #2e8754;
  --bad: #c8453d;
  --warn: #a86a00;
  --card-bg: #ffffff;
  --card-line: #c6cfcb;
  --suit-s: #1b1f24;
  --suit-h: #cf2f2a;
  --suit-d: #1f5dc6;
  --suit-c: #1d873c;
  --shadow: 0 1px 2px rgba(20, 32, 29, 0.06), 0 4px 14px rgba(20, 32, 29, 0.06);
  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1514;
    --surface: #162020;
    --surface-2: #1b2726;
    --ink: #e5ece9;
    --muted: #95a49f;
    --line: #2a3735;
    --accent: #e6a445;
    --accent-ink: #1b1206;
    --accent-soft: #3a2b12;
    --raise: #d5554c;
    --call: #36a066;
    --fold: #4a5669;
    --cell-empty: #212d2c;
    --good: #45b377;
    --bad: #e0665d;
    --warn: #e6a445;
    --card-bg: #f3f1eb;
    --card-line: #9aa19c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0f1514;
  --surface: #162020;
  --surface-2: #1b2726;
  --ink: #e5ece9;
  --muted: #95a49f;
  --line: #2a3735;
  --accent: #e6a445;
  --accent-ink: #1b1206;
  --accent-soft: #3a2b12;
  --raise: #d5554c;
  --call: #36a066;
  --fold: #4a5669;
  --cell-empty: #212d2c;
  --good: #45b377;
  --bad: #e0665d;
  --warn: #e6a445;
  --card-bg: #f3f1eb;
  --card-line: #9aa19c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  background: var(--bg);
  color: var(--ink);
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
}
h2 {
  font-size: 1.3rem;
  font-weight: 800;
}
h3 {
  font-size: 1.02rem;
  font-weight: 600;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 600;
}
.fine {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 75ch;
}
.small-text {
  font-size: 0.86rem;
}
.tiny {
  font-size: 0.8rem;
}
.strong {
  font-weight: 600;
}
.mb-6 {
  margin-bottom: 6px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mt-6 {
  margin-top: 6px;
}

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.12rem;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: flex;
}
.brand-mark span {
  width: 15px;
  height: 21px;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  background: var(--card-bg);
  margin-right: -6px;
  transform: rotate(-8deg);
}
.brand-mark span:nth-child(2) {
  transform: rotate(7deg);
  background: var(--accent);
  border-color: var(--accent);
}
nav.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1;
}
nav.tabs a {
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
nav.tabs a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
nav.tabs a[aria-current='page'] {
  color: var(--ink);
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.gh-link {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.88rem;
}
.gh-link:hover {
  color: var(--ink);
}
.gh-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

main {
  padding-block: 28px 40px;
}
.view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.view-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 72ch;
}
.lede {
  color: var(--muted);
  font-size: 1.02rem;
}
footer {
  border-top: 1px solid var(--line);
  padding-block: 22px 40px;
  color: var(--muted);
  font-size: 0.85rem;
}
footer .wrap {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel > * + * {
  margin-top: 14px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* controls */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  border-color: var(--muted);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn.primary:hover {
  filter: brightness(1.06);
}
.btn.small {
  padding: 5px 10px;
  font-size: 0.86rem;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.row.between {
  justify-content: space-between;
}
.row.start {
  align-items: flex-start;
}
.row.center {
  justify-content: center;
}
.row.tight {
  gap: 6px;
}
.row.wide-gap {
  gap: 28px;
}
.gap {
  width: 14px;
  display: inline-block;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
  min-width: 0;
}
input[type='text'],
input[type='number'],
select,
textarea {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
select.auto {
  width: auto;
}
textarea {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  resize: vertical;
  min-height: 64px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  flex-wrap: wrap;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  font-size: 0.85rem;
  color: var(--muted);
}
.seg button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--surface);
}
.err {
  color: var(--bad);
  font-size: 0.86rem;
}
.err:empty {
  display: none;
}

/* playing cards: four-colour deck */
.pc {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 52px;
  border-radius: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  line-height: 1;
  font-family: var(--f-mono);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  flex: none;
}
.pc b {
  font-size: 1.05rem;
  font-weight: 600;
}
.pc i {
  font-style: normal;
  font-size: 1rem;
  margin-top: 2px;
}
.pc.s0 {
  color: var(--suit-s);
}
.pc.s1 {
  color: var(--suit-h);
}
.pc.s2 {
  color: var(--suit-d);
}
.pc.s3 {
  color: var(--suit-c);
}
.pc.empty {
  background: transparent;
  border: 1.5px dashed var(--line);
  box-shadow: none;
}
.pc.sm {
  width: 28px;
  height: 38px;
  border-radius: 5px;
}
.pc.sm b {
  font-size: 0.82rem;
}
.pc.sm i {
  font-size: 0.78rem;
}
.cards {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}
.slot {
  border: 0;
  background: none;
  padding: 0;
  border-radius: 7px;
}
.slot.active .pc {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.picker {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 3px;
}
.picker button {
  border: 1px solid var(--card-line);
  background: var(--card-bg);
  border-radius: 5px;
  padding: 4px 0;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.picker button.s0 {
  color: var(--suit-s);
}
.picker button.s1 {
  color: var(--suit-h);
}
.picker button.s2 {
  color: var(--suit-d);
}
.picker button.s3 {
  color: var(--suit-c);
}
.picker button:disabled {
  opacity: 0.18;
  cursor: default;
}
.picker button:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}
.preview {
  min-height: 52px;
  display: flex;
  gap: 4px;
  align-items: center;
}

/* equity */
.players {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.player {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-2);
}
.player.hero {
  border-color: var(--accent);
}
.player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.player-name {
  font-weight: 600;
}
.x {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 2px 6px;
}
.res-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.res-row:last-child {
  border-bottom: 0;
}
.res-eq {
  font-family: var(--f-mono);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 4px;
  background: var(--cell-empty);
  overflow: hidden;
  display: flex;
}
.bar span {
  display: block;
  height: 100%;
}
.bar .w {
  background: var(--accent);
}
.bar .t {
  background: var(--muted);
  opacity: 0.5;
}
.dist {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 3.6rem;
  gap: 5px 10px;
  align-items: center;
  font-size: 0.86rem;
}
.dist .track {
  height: 6px;
  border-radius: 3px;
  background: var(--cell-empty);
  overflow: hidden;
}
.dist .track.flex {
  display: flex;
}
.dist .track span {
  display: block;
  height: 100%;
  background: var(--ink);
  opacity: 0.7;
}
.dist .track span.beat {
  background: var(--bad);
  opacity: 1;
}
.dist .v {
  text-align: right;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

/* range grid */
.spotbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.chips .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  min-width: 7.5rem;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.86rem;
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.rg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 920px) {
  .rg-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.gridwrap {
  overflow-x: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 2px;
  min-width: 320px;
  max-width: 640px;
  user-select: none;
  touch-action: manipulation;
}
.cell {
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: clamp(0.5rem, 1.25vw, 0.74rem);
  font-weight: 600;
  color: var(--cell-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--cell-empty);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  max-width: 100%;
}
.cell small {
  font-size: 0.8em;
  opacity: 0.8;
}
.cell.sel {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  z-index: 1;
}
.cell.zero {
  color: var(--muted);
  text-shadow: none;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  align-items: center;
}
.sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: -1px;
  margin-right: 6px;
}
.hand-title {
  font-size: 1.7rem;
}
.freqs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.freq {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 3.2rem;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}
.freq .track {
  height: 10px;
  border-radius: 5px;
  background: var(--cell-empty);
  overflow: hidden;
}
.freq .track span {
  display: block;
  height: 100%;
}
.freq .v {
  text-align: right;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
ul.notes {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: var(--surface-2);
}
.stat .k {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.stat .n {
  font-family: var(--f-mono);
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat .s {
  font-size: 0.8rem;
  color: var(--muted);
}

/* analyzer */
.verdict {
  border-radius: 9px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--muted);
  background: var(--surface-2);
}
.verdict.good {
  border-left-color: var(--good);
}
.verdict.bad {
  border-left-color: var(--bad);
}
.verdict.warn {
  border-left-color: var(--warn);
}
.verdict strong {
  font-family: var(--f-display);
  font-size: 1.25rem;
}
.stack {
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  background: var(--cell-empty);
}
.stack span {
  height: 100%;
}
table.tbl {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}
.tbl th,
.tbl td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.tbl th:first-child,
.tbl td:first-child {
  text-align: left;
}
.tbl th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}
.tbl td {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.tablewrap {
  overflow-x: auto;
}

/* review */
.tbl.hands tbody tr {
  cursor: pointer;
}
.tbl.hands tbody tr:hover td {
  background: var(--surface-2);
}
.tbl.hands tbody tr.sel td {
  background: var(--accent-soft);
}
.pill {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.pill.good {
  color: var(--good);
}
.pill.warn {
  color: var(--warn);
}
.pill.bad {
  color: var(--bad);
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.street-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.acts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}
.acts-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 6px;
}
.acts-list li.hero {
  background: var(--accent-soft);
}
.drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.drop.over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.scan-stage canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--line);
}
.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  font-size: 0.88rem;
}

/* learn */
.learn {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 880px) {
  .learn {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
}
.toc {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}
.toc a {
  text-decoration: none;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
}
.toc a:hover {
  color: var(--ink);
  background: var(--surface);
}
.lesson {
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  scroll-margin-top: 80px;
}
.lesson:last-child {
  border-bottom: 0;
}
.lesson h2 {
  font-size: 1.5rem;
}
.lesson .k {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lesson ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.formula {
  font-family: var(--f-mono);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  overflow-x: auto;
}
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget .wt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  font-weight: 600;
}
input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart text {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--muted);
}

/* practice */
.drill-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drill-card > * + * {
  margin-top: 0;
}
.table-felt {
  border-radius: 12px;
  padding: 22px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.table-felt .pc {
  width: 58px;
  height: 80px;
  border-radius: 8px;
}
.table-felt .pc b {
  font-size: 1.55rem;
}
.table-felt .pc i {
  font-size: 1.45rem;
}
.table-felt .pc.sm {
  width: 38px;
  height: 52px;
}
.table-felt .pc.sm b {
  font-size: 1.05rem;
}
.table-felt .pc.sm i {
  font-size: 1rem;
}
.scen {
  font-size: 1.02rem;
  max-width: 46ch;
}
.acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.acts .btn {
  min-width: 96px;
  padding: 10px 16px;
  font-weight: 600;
  justify-content: center;
}
.act-fold {
  border-color: var(--fold) !important;
}
.act-call {
  border-color: var(--call) !important;
}
.act-raise {
  border-color: var(--raise) !important;
}
.feedback {
  border-radius: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feedback.good {
  border-left: 5px solid var(--good);
}
.feedback.bad {
  border-left: 5px solid var(--bad);
}
.feedback.warn {
  border-left: 5px solid var(--warn);
}
.feedback .head {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.15rem;
}
kbd {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 5px;
  color: var(--muted);
}
kbd.inv {
  color: inherit;
  border-color: currentColor;
}
.answer {
  width: 110px !important;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 1.1rem;
}
.guess-box {
  width: 100%;
  max-width: 360px;
}
.guess {
  font-family: var(--f-mono);
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 520px) {
  .two {
    grid-template-columns: 1fr;
  }
  .pc {
    width: 34px;
    height: 47px;
  }
  .panel {
    padding: 14px;
  }
  .freq {
    grid-template-columns: 5.2rem minmax(0, 1fr) 3rem;
  }
}

/* PayPalPoker.net hosting tweaks: keep the header and 13x13 grid usable
   when the app is framed at typical tips-page column widths (about 360px). */
@media (max-width: 640px) {
  .top .wrap {
    gap: 8px 12px;
  }
  nav.tabs {
    flex: 1 0 100%;
    order: 3;
  }
  .gh-link {
    margin-left: auto;
  }
  .grid {
    min-width: 0;
  }
}
