:root {
  --paper: #f5f1e7;
  --card: #fffdf5;
  --ink: #242c25;
  --muted: #555e54;
  --green: #153f32;
  --felt: #1d5944;
  --line: #d8d8c9;
  --red: #982f3f;
  --shadow: 0 3px 0 #0c2d23;
  --card-w: 92px;
  --card-h: 132px;
  --hand-step: 51px;
  color-scheme: light;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 18px;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 5px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid #929e90;
  border-radius: 7px;
  background: #fffdf5;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.35;
  box-shadow: 0 2px 0 #c6ccbe;
}
button:hover,
.button:hover {
  background: #e7eddf;
}
button:active {
  transform: translateY(1px);
  box-shadow: none;
}
.primary {
  background: var(--green);
  color: #fffdf5;
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.primary:hover {
  background: #245c46;
  color: #fff;
}
.danger {
  color: #8e2334;
  border-color: #8e2334;
}
.text-button {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.light-button {
  background: transparent;
  color: #fff9e8;
  border: 1px solid #91b39b;
  box-shadow: none;
  font-size: 18px;
  padding: 8px 13px;
  min-height: 44px;
}
.light-button:hover {
  background: #366d53;
}
button:disabled {
  cursor: default;
  opacity: 0.68;
}
a,
button,
summary,
input,
select,
textarea {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1478ba;
  outline-offset: 4px;
}
.felt-table :focus-visible {
  outline-color: #ffdf7e;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.08;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}
p,
li {
  line-height: 1.65;
}
small {
  font-size: 1rem;
}
.eyebrow {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #52614f;
  margin-bottom: 22px;
}
.lead {
  font-size: 1.16rem;
  line-height: 1.65;
  color: #4c594d;
  max-width: 600px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 15px;
  background: var(--card);
  padding: 15px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1480px;
  margin: auto;
  min-height: 100px;
  padding: 16px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  white-space: nowrap;
  letter-spacing: -0.04em;
}
.brand-mark {
  border: 1px solid #758976;
  display: grid;
  place-items: center;
  width: 42px;
  height: 52px;
  border-radius: 7px;
  transform: rotate(-8deg);
  font-size: 1.8rem;
  background: var(--card);
  box-shadow: 4px 2px 0 #e1e2d5;
}
.brand-note {
  display: block;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
.desktop-games {
  display: flex;
  gap: 5px;
  align-items: center;
}
.desktop-games a {
  padding: 14px 16px;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
}
.desktop-games a[aria-current] {
  background: #e5e9db;
  box-shadow: inset 0 -2px var(--green);
}
.header-help {
  font-size: 1rem;
  white-space: nowrap;
}
.mobile-games {
  display: none;
}
.welcome {
  max-width: 1480px;
  margin: 0 auto;
  padding: 70px 42px 65px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}
.welcome h1 {
  max-width: 610px;
  margin-bottom: 28px;
}
.welcome-copy {
  padding: 16px 0;
}
.tiny-suit {
  margin-right: 10px;
  color: var(--green);
}
.welcome-actions {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.big-button {
  min-height: 60px;
  padding: 16px 24px;
  font-size: 1.06rem;
}
.promises {
  display: flex;
  padding: 0;
  list-style: none;
  gap: 24px;
  margin: 26px 0 0;
  color: #54634f;
  font-size: 1rem;
}
.promises li:before {
  content: "✓";
  margin-right: 8px;
}
.welcome-table {
  height: 450px;
  position: relative;
  border-radius: 170px 170px 22px 22px;
  background-color: var(--green);
  background-image:
    radial-gradient(ellipse at 50% 40%, #39755388, transparent 75%),
    url("/static/felt.svg");
  box-shadow:
    inset 0 0 0 8px #244d39,
    0 9px 0 #d4d5c5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #f9f4e4;
  overflow: hidden;
}
.table-stitch {
  position: absolute;
  inset: 18px;
  border: 1px dashed #719b7755;
  border-radius: 155px 155px 12px 12px;
}
.welcome-label {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  position: absolute;
  top: 54px;
  color: #d5dfc7;
}
.welcome-table > p {
  position: absolute;
  bottom: 41px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  margin: 0;
  color: #e6e5d0;
}
.table-corner {
  position: absolute;
  bottom: 14px;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: #c3cdb4;
}
.card-fan {
  position: relative;
  width: 350px;
  height: 210px;
  top: 2px;
}
.playing-card {
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  border: 1px solid #cecfc1;
  border-radius: 8px;
  background: var(--card);
  color: #202b26;
  box-shadow: 0 3px 3px #061c2355;
  font-family: Georgia, serif;
  flex-shrink: 0;
}
.red {
  color: var(--red);
}
.card-corner {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 27px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
}
.card-corner small {
  font-size: 24px;
  line-height: 1.2;
}
.card-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 54px;
  padding-top: 5px;
}
.card-bottom {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 18px;
  transform: rotate(180deg);
}
.card-fan .playing-card {
  width: 125px;
  height: 184px;
  position: absolute;
  top: 15px;
}
.fan-one {
  left: 43px;
  transform: rotate(-21deg);
}
.fan-two {
  left: 112px;
  transform: rotate(-1deg);
  z-index: 1;
}
.fan-three {
  left: 180px;
  transform: rotate(19deg);
  z-index: 2;
}
.card-fan .card-center {
  font-size: 70px;
}
.resume-note {
  margin: 20px 0 0;
  font-weight: 600;
  color: var(--green);
}
.load-status {
  max-width: 1396px;
  margin: 0 auto;
  padding: 0 30px;
}
.load-status:empty {
  display: none;
}
.game-resources {
  max-width: 1480px;
  margin: auto;
  padding: 35px 42px 64px;
  border-top: 1px solid var(--line);
}
.resource-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}
.resource-heading .eyebrow {
  margin: 0;
}
.resource-heading h2 {
  font-size: 1.65rem;
  margin: 0;
}
.resource-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.resource-cards > a {
  position: relative;
  padding: 27px 27px 19px;
  border: 1px solid #cdd3c3;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.15s;
  background: #faf8ef;
}
.resource-cards > a:hover {
  background: #e9edde;
}
.resource-number {
  color: #637660;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.resource-cards h3 {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 1.4rem;
  margin: 15px 0 8px;
}
.resource-cards p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 12px;
  padding-right: 15px;
}
.resource-cards > a > span:last-child {
  position: absolute;
  right: 22px;
  top: 22px;
}
.article-wrap {
  max-width: 1000px;
  margin: auto;
  padding: 38px 42px 70px;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 1rem;
  margin: 0 0 50px;
  color: var(--muted);
}
.article-header {
  margin-bottom: 30px;
}
.article-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}
.article-header .lead {
  max-width: none;
}
.resource-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  margin: 35px 0 45px;
}
.prose section {
  margin-bottom: 42px;
}
.prose h2 {
  font-size: 1.8rem;
}
.prose p,
.prose li {
  max-width: 78ch;
}
.prose ul {
  padding-left: 25px;
}
.prose li {
  margin-bottom: 12px;
}
.game-copy {
  padding-top: 20px;
}
.source-note {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  font-size: 1rem;
  color: var(--muted);
}
.table-scroll {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  background: #fffdf555;
  font-size: 1rem;
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}
th {
  font-weight: 600;
}
tr:first-child {
  background: #e6eada;
}
.site-footer {
  max-width: 1480px;
  margin: auto;
  padding: 48px 42px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer p {
  color: var(--muted);
  font-size: 1rem;
  margin: 20px 0 0;
}
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 1rem;
}
.copyright {
  flex-basis: 100%;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.85rem !important;
}
.game-shell {
  max-width: 1530px;
  margin: auto;
  padding: 25px 32px 50px;
}
.game-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.game-heading .eyebrow {
  margin-bottom: 5px;
  font-size: 0.8rem;
}
.game-heading h1 {
  font-size: 2rem;
  margin: 0;
}
.table-tools {
  display: flex;
  gap: 8px;
}
.table-tools button {
  font-size: 1rem;
}
.table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
  align-items: start;
}
.felt-table {
  background: var(--felt) url("/static/felt.svg");
  border: 7px solid #244333;
  border-radius: 22px;
  padding: 22px 24px 0;
  color: #fff9e9;
  box-shadow: 0 6px 0 #acb39c;
  overflow: hidden;
}
.opponents {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 10px;
  text-align: center;
  align-items: center;
  margin-bottom: 20px;
}
.seat {
  font-size: 1rem;
  line-height: 1.4;
}
.seat strong {
  display: block;
  font-weight: 600;
}
.seat small {
  display: block;
  font-size: 1rem;
  color: #dce8d1;
}
.partner {
  padding: 10px;
  border: 1px solid #8cb19477;
  border-radius: 35px;
  background: #184c37;
}
.seat-icon {
  font-size: 1.4rem;
  display: block;
  color: #c3d4b2;
  margin-bottom: 4px;
}
.meld-region {
  padding: 12px 0;
  border-top: 1px solid #8bb39466;
}
.meld-region h2 {
  font:
    600 1rem system-ui,
    sans-serif;
  letter-spacing: 0;
  margin: 0 0 12px;
  color: #e4eddb;
}
.meld-region h2 > span {
  font-weight: 400;
  display: inline-block;
  margin-left: 10px;
  color: #e3dec4;
}
.melds {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 55px;
}
.empty-melds {
  font-size: 1rem;
  color: #d5dfc8;
  font-style: italic;
  padding: 9px 0;
}
.meld-chip {
  padding: 8px 12px;
  border: 1px solid #b4c5a9;
  border-radius: 6px;
  background: #f3f2df;
  color: #20422d;
  box-shadow: 0 3px 0 #071d2255;
  font-size: 1rem;
  text-align: left;
  display: block;
  min-height: 50px;
}
.meld-chip.complete {
  border-left: 5px solid #71924f;
}
.meld-chip .meld-detail {
  display: block;
  font-size: 1rem;
  color: #374f36;
  font-weight: 400;
  margin-top: 3px;
}
.meld-chip.complete.dirty {
  border-left-color: #273e3a;
}
.stock-area {
  display: flex;
  justify-content: center;
  gap: 28px;
  align-items: center;
  padding: 23px 0;
}
.stock-button {
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  color: #fff9e8;
  box-shadow: none;
  background: transparent;
  font-size: 1rem;
}
.stock-button:hover {
  background: transparent;
  color: white;
}
.card-back {
  width: 82px;
  height: 116px;
  display: grid;
  place-items: center;
  border: 5px solid var(--card);
  border-radius: 7px;
  background:
    repeating-linear-gradient(45deg, #4a6c86 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, #4a6c86 0 1px, #24445b 1px 7px);
  box-shadow:
    2px 2px 0 #cbcdbb,
    4px 4px 0 #ffffed,
    6px 6px 5px #08281977;
  margin-bottom: 5px;
}
.card-back span {
  font-size: 40px;
  background: #294b60;
  border-radius: 50%;
  width: 57px;
  height: 57px;
  border: 1px solid #aabcae;
  color: #e8ecda;
}
.stock-button small {
  color: #dce8d1;
}
.discard-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 130px;
}
.discard-area .playing-card {
  width: 82px;
  height: 116px;
}
.discard-area > small {
  color: #ffe5b0;
  font-size: 1rem;
  min-height: 1.3em;
}
.discard-area > span {
  font-size: 1rem;
}
.empty-discard {
  width: 82px;
  height: 116px;
  border: 1px dashed #9fbea4;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.turn-note {
  max-width: 260px;
  padding-left: 10px;
}
.turn-note strong {
  font-size: 1.15rem;
}
.turn-note p {
  margin: 7px 0 13px;
  line-height: 1.5;
  font-size: 1rem;
}
.turn-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e8d684;
  margin-right: 10px;
  box-shadow: 0 0 0 4px #fff1a111;
}
.hand-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 0;
  border-top: 1px solid #8bb39466;
}
.hand-header h2 {
  font: 600 1.05rem system-ui;
  margin: 0;
  letter-spacing: 0;
}
.hand-header > span {
  font-size: 1rem;
}
.hand {
  display: flex;
  align-items: flex-end;
  overflow-x: auto;
  padding: 24px 5px 13px;
  min-height: calc(var(--card-h) + 45px);
  scrollbar-color: #b7c6a1 #183f32;
  scrollbar-width: auto;
  margin: 0 -5px 10px;
  isolation: isolate;
}
.hand .playing-card {
  margin-right: calc(var(--hand-step) - var(--card-w));
  padding: 0;
  transition:
    transform 0.18s,
    outline-color 0.18s;
  min-height: var(--card-h);
  text-align: left;
  box-shadow: -2px 3px 4px #0a271e55;
  font-weight: 400;
}
.hand .playing-card:last-child {
  margin-right: 2px;
}
.hand .playing-card:hover {
  background: #fffdf5;
  transform: translateY(-5px);
}
.hand .playing-card[aria-pressed="true"] {
  transform: translateY(-14px);
  outline: 3px solid #ffe193;
  outline-offset: -1px;
  box-shadow: 0 5px 5px #123425aa;
}
.hand .playing-card:focus-visible {
  outline: 3px solid #8edcff;
  outline-offset: 2px;
  z-index: 2;
}
.hand .playing-card.staged {
  background: #dce1d1;
}
.hand .playing-card .card-center {
  opacity: 0.9;
}
.hand .playing-card .card-corner {
  left: 7px;
}
.hand .playing-card .card-bottom {
  font-size: 17px;
}
.action-panel {
  background: #eff0df;
  color: var(--ink);
  margin: 0 -24px;
  padding: 20px 24px 12px;
  border-top: 4px solid #173e2d;
  position: relative;
}
.meld-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.meld-controls label {
  font-size: 1rem;
  white-space: nowrap;
}
.meld-controls select {
  flex: 1;
  min-width: 210px;
  max-width: 400px;
}
.turn-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.turn-actions button {
  flex: 1;
  font-size: 1rem;
  min-width: 135px;
}
.action-panel p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 15px 0 0;
}
.action-panel #game-message {
  color: #7f2434;
  font-weight: 600;
}
.action-panel #game-message:empty {
  display: none;
}
.action-panel #game-message.hint-message {
  color: #204d3a;
}
.meld-plan {
  margin-top: 17px;
  padding: 17px;
  border: 1px solid #a1af91;
  border-radius: 8px;
  background: #fffdf2;
}
.meld-plan h3 {
  margin-bottom: 8px;
}
.plan-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.plan-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.score-pad {
  background: #fffcf2;
  border: 1px solid #d7d4bf;
  border-radius: 9px;
  box-shadow: 3px 4px 0 #dfdfd0;
  padding: 20px 22px;
  position: sticky;
  top: 123px;
  min-width: 0;
}
.score-pad-top {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #cdd4bd;
  padding-bottom: 17px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #526347;
}
.score-pad-top > span:first-child {
  font-size: 1.7rem;
}
.score-pad h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 18px 0;
}
.scores > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dce0cf;
  padding: 15px 0;
  font-size: 1rem;
}
.scores strong {
  font:
    500 1.7rem Georgia,
    serif;
  color: var(--green);
}
.score-goal {
  padding-top: 22px;
}
.score-goal h3,
.table-journal h3 {
  font-weight: 650;
  font-size: 1rem;
  margin-bottom: 8px;
}
.score-goal p {
  font-size: 1rem;
  line-height: 1.55;
}
.score-pad details {
  margin: 18px 0;
  border-block: 1px solid #d8dfca;
  padding: 15px 0;
}
.score-pad summary {
  cursor: pointer;
  font-size: 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-pad summary:before {
  content: "+";
}
.score-pad details[open] summary:before {
  content: "−";
}
.table-journal ol {
  padding-left: 20px;
  max-height: 260px;
  overflow: auto;
  font-size: 1rem;
}
.table-journal li {
  line-height: 1.5;
  margin-bottom: 10px;
  padding-left: 3px;
  color: #4c5847;
}
.save-status {
  font-size: 1rem;
  border-top: 1px dashed #bdc8b0;
  padding-top: 15px;
  color: #54644e;
}
.score-pad > a {
  font-size: 1rem;
}
.score-pad #history p {
  font-size: 1rem;
}
.felt-table #red-threes {
  font-size: 1rem;
  margin: 8px 0 0;
  color: #f5e2bf;
}
.felt-table #red-threes:empty {
  display: none;
}
select,
input,
textarea {
  padding: 12px;
  border: 1px solid #8e9d8a;
  border-radius: 6px;
  background: #fffef6;
  color: var(--ink);
  min-height: 48px;
  max-width: 100%;
}
dialog {
  border: 1px solid #b5c3ad;
  border-radius: 16px;
  padding: 28px 32px;
  background: var(--paper);
  color: var(--ink);
  max-width: min(680px, calc(100vw - 28px));
  width: 100%;
  max-height: 90dvh;
  box-shadow: 0 24px 80px #071a2277;
}
dialog::backdrop {
  background: #09251ccc;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 2rem;
  margin: 12px 0 23px;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-top .eyebrow {
  font-size: 0.8rem;
  margin: 0;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 26px;
}
dialog > label {
  display: block;
  margin: 18px 0 8px;
}
dialog > select {
  width: 100%;
}
.check {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
}
.check input {
  height: 24px;
  width: 24px;
  min-height: 24px;
  accent-color: var(--green);
}
.print-sheet {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid #c5cebb;
  background: white;
}
.sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-title h2 {
  margin-bottom: 10px;
}
.print-sheet th,
.print-sheet td {
  border: 1px solid #7b8678;
  height: 50px;
}
.print-sheet p {
  font-size: 1rem;
}
.busy {
  cursor: progress;
}
.busy #hand,
.busy .action-panel,
.busy .stock-button {
  pointer-events: none;
}
.busy .save-status {
  color: #814c16;
}
[data-card-size="large"] {
  --card-w: 110px;
  --card-h: 157px;
  --hand-step: 57px;
}
[data-card-size="extra"] {
  --card-w: 135px;
  --card-h: 192px;
  --hand-step: 65px;
}
[data-card-size="large"] .hand .card-corner {
  font-size: 32px;
}
[data-card-size="extra"] .hand .card-corner {
  font-size: 39px;
}
[data-card-size="extra"] .hand .card-corner small {
  font-size: 31px;
}
[data-contrast="true"] .felt-table {
  background: #103c2b;
}
[data-contrast="true"] .meld-region h2,
[data-contrast="true"] .empty-melds,
[data-contrast="true"] .seat small {
  color: white;
}
[data-contrast="true"] .playing-card {
  background: white;
  border-color: black;
}
[data-motion="reduced"] *,
[data-motion="reduced"] *:before,
[data-motion="reduced"] *:after {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}
@media (min-width: 1700px) {
  .welcome {
    padding-block: 90px;
  }
  .welcome-table {
    height: 510px;
  }
  .card-fan {
    transform: scale(1.12);
  }
}
@media (max-width: 1190px) {
  .header-inner {
    padding-inline: 25px;
    gap: 12px;
  }
  .header-help {
    display: none;
  }
  .welcome {
    gap: 35px;
    padding-inline: 30px;
  }
  .welcome-table {
    height: 420px;
  }
  .table-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 15px;
  }
  .game-shell {
    padding-inline: 20px;
  }
  .felt-table {
    padding-inline: 17px;
  }
  .action-panel {
    margin-inline: -17px;
    padding-inline: 17px;
  }
  .score-pad {
    padding-inline: 16px;
  }
  .stock-area {
    gap: 16px;
  }
  .turn-note {
    max-width: 220px;
  }
  .resource-cards {
    gap: 14px;
  }
}
@media (max-width: 950px) {
  .table-layout {
    grid-template-columns: 1fr;
  }
  .score-pad {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .score-pad-top {
    grid-column: 1/-1;
  }
  .score-pad h2 {
    grid-column: 1/-1;
  }
  .scores {
    grid-column: 1;
  }
  .score-goal {
    grid-column: 2;
    grid-row: 3;
  }
  .table-journal {
    grid-column: 1/-1;
  }
  .table-journal ol {
    max-height: 160px;
  }
  .score-pad details {
    grid-column: 1/-1;
  }
  .save-status {
    grid-column: 1/-1;
  }
  .welcome {
    gap: 25px;
  }
  .welcome h1 {
    font-size: 3rem;
  }
  .welcome-table {
    height: 390px;
  }
  .card-fan {
    transform: scale(0.85);
  }
  .promises {
    gap: 12px;
    flex-wrap: wrap;
  }
  .desktop-games {
    gap: 0;
  }
  .desktop-games a {
    padding: 12px 10px;
  }
  .brand {
    font-size: 1.4rem;
  }
  .brand-note {
    font-size: 0.65rem;
  }
  .resource-heading {
    display: block;
  }
  .resource-heading .eyebrow {
    margin-bottom: 12px;
  }
}
@media (max-width: 720px) {
  .header-inner {
    min-height: 90px;
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 9px;
  }
  .brand {
    font-size: 1.5rem;
  }
  .brand-note {
    display: none;
  }
  .brand-mark {
    width: 31px;
    height: 40px;
    font-size: 1.4rem;
  }
  .desktop-games {
    display: none;
  }
  .mobile-games {
    display: block;
    position: relative;
  }
  .mobile-games summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
    color: var(--green);
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
  }
  .mobile-games summary::-webkit-details-marker {
    display: none;
  }
  .mobile-games nav {
    position: absolute;
    right: 0;
    top: 100%;
    width: 280px;
    padding: 12px;
    border: 1px solid #abb8a1;
    background: var(--card);
    box-shadow: 0 8px 20px #12342533;
    border-radius: 8px;
  }
  .mobile-games a {
    display: block;
    padding: 15px 12px;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .mobile-games a[aria-current] {
    background: #e6ebdd;
  }
  .mobile-games a span {
    display: block;
    font-size: 1rem;
    color: var(--muted);
    margin-top: 3px;
  }
  .welcome {
    grid-template-columns: 1fr;
    padding: 37px 24px 43px;
    gap: 32px;
  }
  .welcome-copy {
    padding: 0;
  }
  .welcome h1 {
    font-size: 2.9rem;
    max-width: 600px;
  }
  .welcome .lead {
    font-size: 1.12rem;
  }
  .welcome .eyebrow {
    font-size: 0.83rem;
    margin-bottom: 20px;
  }
  .welcome-actions {
    gap: 20px;
    margin-top: 25px;
  }
  .welcome-table {
    height: 330px;
    border-radius: 110px 110px 18px 18px;
  }
  .table-stitch {
    border-radius: 95px 95px 8px 8px;
  }
  .welcome-label {
    top: 30px;
  }
  .card-fan {
    transform: scale(0.85);
    top: 10px;
  }
  .welcome-table > p {
    bottom: 29px;
  }
  .table-corner {
    display: none;
  }
  .promises {
    gap: 20px;
    font-size: 1rem;
  }
  .game-resources {
    padding: 32px 24px 40px;
  }
  .resource-cards {
    grid-template-columns: 1fr;
  }
  .resource-cards > a {
    padding: 22px 23px 15px;
  }
  .resource-cards h3 {
    margin-top: 8px;
  }
  .resource-heading h2 {
    font-size: 1.8rem;
  }
  .game-shell {
    padding: 20px 10px 35px;
  }
  .game-heading {
    flex-direction: column;
    align-items: stretch;
    padding-inline: 7px;
  }
  .game-heading h1 {
    font-size: 1.85rem;
  }
  .game-heading .eyebrow {
    display: none;
  }
  .table-tools {
    gap: 6px;
    justify-content: space-between;
  }
  .table-tools button {
    font-size: 1rem;
    padding: 9px 14px;
    flex: 1;
  }
  .felt-table {
    padding: 16px 13px 0;
    border-width: 4px;
    border-radius: 14px;
  }
  .action-panel {
    margin-inline: -13px;
    padding-inline: 13px;
  }
  .opponents {
    gap: 8px;
    margin-bottom: 15px;
  }
  .seat {
    font-size: 1rem;
  }
  .seat-icon {
    display: none;
  }
  .seat small {
    font-size: 1rem;
  }
  .partner {
    border-radius: 14px;
    padding: 10px 6px;
  }
  .stock-area {
    gap: 20px;
    flex-wrap: wrap;
    padding: 18px 0;
  }
  .turn-note {
    max-width: none;
    width: 100%;
    padding: 13px 0 0;
    border-top: 1px dashed #8bb39477;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
  }
  .turn-note > .turn-dot {
    display: none;
  }
  .turn-note strong {
    grid-column: 1;
  }
  .turn-note p {
    grid-column: 1;
    margin-bottom: 0;
  }
  .turn-note button {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
    max-width: 105px;
  }
  .hand-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hand-header h2 {
    flex: 1;
  }
  .hand-header > span {
    order: 3;
    flex-basis: 100%;
  }
  .hand {
    margin-bottom: 4px;
  }
  .meld-controls {
    gap: 8px;
  }
  .meld-controls label {
    flex-basis: 100%;
  }
  .meld-controls select {
    min-width: 0;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
  .meld-controls button {
    width: 100%;
  }
  .turn-actions {
    gap: 8px;
  }
  .turn-actions button {
    padding-inline: 10px;
  }
  .score-pad {
    padding: 18px;
  }
  .meld-region h2 > span {
    display: block;
    margin: 7px 0 0;
  }
  .article-wrap {
    padding: 28px 24px 45px;
  }
  .breadcrumbs {
    margin-bottom: 30px;
  }
  .article-header h1 {
    font-size: 2.7rem;
  }
  .resource-nav {
    gap: 20px;
  }
  .resource-nav .button {
    flex-basis: 100%;
  }
  .prose h2 {
    font-size: 1.65rem;
  }
  .site-footer {
    padding: 35px 24px;
  }
  .site-footer nav {
    gap: 20px;
  }
  .site-footer nav a {
    padding: 10px 0;
  }
  .site-footer .brand {
    font-size: 1.7rem;
  }
  dialog {
    padding: 23px 22px;
  }
  dialog h2 {
    font-size: 1.8rem;
  }
  .dialog-top .eyebrow {
    font-size: 0.75rem;
  }
  .sheet-title {
    display: block;
  }
  .print-sheet {
    padding: 15px;
  }
  .print-sheet table {
    font-size: 0.85rem;
  }
  .print-sheet th,
  .print-sheet td {
    padding: 7px;
  }
}
@media (max-width: 390px) {
  .header-inner {
    padding: 10px 15px;
  }
  .brand {
    font-size: 1.2rem;
  }
  .brand-mark {
    width: 26px;
    height: 34px;
  }
  .mobile-games summary {
    font-size: 1rem;
    gap: 5px;
  }
  .welcome h1 {
    font-size: 2.6rem;
  }
  .welcome-actions .big-button {
    width: 100%;
  }
  .welcome-actions > a {
    padding: 8px 0;
  }
  .promises {
    gap: 12px;
  }
  .score-pad {
    grid-template-columns: 1fr;
  }
  .score-goal {
    grid-column: 1;
    grid-row: auto;
  }
  .stock-area {
    gap: 13px;
  }
  .turn-note button {
    max-width: 95px;
  }
  .playing-card {
    --card-w: 85px;
    --card-h: 122px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  .site-header,
  .site-footer,
  .breadcrumbs,
  .resource-nav,
  .print-button,
  .article-header,
  .skip,
  dialog {
    display: none !important;
  }
  .article-wrap {
    max-width: none;
    padding: 0;
  }
  .print-sheet {
    border: 0;
    margin: 0;
    padding: 0;
  }
  .print-sheet th,
  .print-sheet td {
    height: 40px;
    padding: 8px;
    font-size: 11pt;
  }
  .print-sheet h2 {
    font-size: 26pt;
  }
  .print-sheet p {
    font-size: 11pt;
  }
  .sheet-title {
    display: flex;
  }
  a {
    color: black;
  }
  .prose {
    font-size: 12pt;
  }
  h2 {
    break-after: avoid;
  }
  section,
  tr {
    break-inside: avoid;
  }
  @page {
    size: letter;
    margin: 15mm;
  }
}

.game-shell {
  scroll-margin-top: 120px;
}
.skip {
  top: 10px;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
#events:focus-visible {
  outline: 3px solid #1478ba;
  outline-offset: 4px;
}
@media (min-width: 951px) {
  .site-header .header-inner {
    min-height: 80px;
    padding-block: 10px;
  }
  .game-shell {
    padding-top: 16px;
    scroll-margin-top: 90px;
  }
  .game-heading {
    margin-bottom: 13px;
  }
  .game-heading .eyebrow {
    display: none;
  }
  .game-heading {
    min-height: 48px;
  }
  .game-heading h1 {
    font-size: 1.8rem;
  }
  .felt-table {
    padding-top: 13px;
  }
  .seat-icon {
    display: none;
  }
  .opponents {
    margin-bottom: 10px;
  }
  .partner {
    padding: 7px 10px;
  }
  .meld-region {
    padding-block: 8px;
  }
  .meld-region h2 {
    margin-bottom: 5px;
  }
  .melds {
    min-height: 35px;
  }
  .empty-melds {
    padding: 3px 0;
  }
  .stock-area {
    padding: 12px 0;
    gap: 25px;
    justify-content: space-evenly;
  }
  .stock-button {
    display: grid;
    grid-template-columns: 82px auto;
    grid-template-rows: 1fr 1fr;
    gap: 0 13px;
    text-align: left;
    max-width: 205px;
  }
  .stock-button .card-back {
    grid-row: 1/3;
    margin: 0;
  }
  .stock-button > span:not(.card-back) {
    align-self: end;
  }
  .stock-button > small {
    align-self: start;
  }
  .discard-area {
    display: grid;
    grid-template-columns: 82px minmax(75px, 110px);
    grid-template-rows: 1fr 1fr;
    gap: 0 12px;
    text-align: left;
  }
  .discard-area #discard-card {
    grid-row: 1/3;
  }
  .discard-area > span {
    align-self: end;
  }
  .discard-area > small {
    align-self: start;
  }
  .turn-note {
    max-width: 225px;
    padding: 0;
  }
  .turn-note p {
    margin-bottom: 9px;
  }
  .hand-header {
    padding-top: 8px;
  }
  .hand {
    padding-top: 19px;
    padding-bottom: 8px;
    min-height: calc(var(--card-h) + 32px);
    margin-bottom: 4px;
  }
  .action-panel {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .action-panel p {
    margin-top: 9px;
  }
  .turn-actions {
    margin-top: 10px;
  }
  .meld-controls label {
    display: none;
  }
  .score-pad {
    top: 98px;
  }
  .felt-table #red-threes {
    margin-top: 5px;
  }
  .score-pad h2 {
    margin: 14px 0;
  }
  .table-journal ol {
    max-height: 180px;
  }
  .score-goal {
    padding-top: 16px;
  }
  .score-pad details {
    margin: 13px 0;
    padding: 8px 0;
  }
}
@media (min-width: 1191px) {
  .action-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .meld-controls,
  .turn-actions {
    display: contents;
  }
  .action-panel .meld-controls select {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
  }
  .action-panel .turn-actions button {
    flex: 0 1 auto;
    min-width: 110px;
  }
  .action-panel #action-help,
  .action-panel #game-message,
  .meld-plan,
  #merge-panel {
    flex-basis: 100%;
    width: 100%;
    margin-top: 0;
  }
  .meld-plan {
    margin-top: 7px;
  }
  .action-panel #action-help {
    margin-top: 0;
  }
}
.compare-links {
  max-width: 1396px;
  padding: 0 24px 35px;
  margin: auto;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.compare-links a {
  padding: 8px 0;
  font-size: 1rem;
}
.learning-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin: 30px 0;
}
.learning-links a {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: #e9eddf;
  border: 1px solid #b4c1a6;
  border-radius: 8px;
}

.article-heading-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.article-heading-tools .eyebrow {
  margin: 0;
}
.article-heading-tools [data-email-feedback] {
  min-height: 44px;
}
#email-feedback-dialog {
  width: min(560px, calc(100vw - 24px));
}
#email-feedback-fields label {
  display: block;
  margin-bottom: 8px;
}
#feedback-email-address {
  width: 100%;
  min-width: 0;
  font-size: 16px;
  padding: 12px;
}
.email-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.email-feedback-actions > * {
  flex: 1 1 180px;
  text-align: center;
}
.email-feedback-status {
  font-size: 15px;
  min-height: 24px;
}
