.points-game {
  --pg-felt: #123d2b;
  --pg-deep: #09271d;
  --pg-panel: #102e24;
  --pg-gold: #d4af62;
  --pg-gold-hi: #f0d99a;
  --pg-ivory: #f6f0e4;
  --pg-muted: #c6d2c8;
  --pg-alert: #b84a3a;
  box-sizing: border-box;
  max-width: 100%;
  margin-top: var(--space-6);
  padding: var(--space-4);
  overflow-x: hidden;
  border: 1px solid rgba(212, 175, 98, 0.32);
  border-radius: var(--radius-lg);
  background-color: var(--pg-deep);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 98, 0.08), transparent 42%),
    repeating-linear-gradient(45deg, rgba(212, 175, 98, 0.035) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, rgba(212, 175, 98, 0.035) 0 1px, transparent 1px 18px);
  color: var(--pg-ivory);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 98, 0.12);
}

.points-game *,
.points-game *::before,
.points-game *::after {
  box-sizing: border-box;
}

.points-game h2,
.points-game h3,
.points-game p {
  overflow-wrap: anywhere;
}

.points-game-page.site-main {
  padding-block: 0.35rem 1.25rem;
}

.points-game-page .crumbs {
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
}

.points-game-page > .wrap > h1 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.15;
  margin: 0 0 0.2rem;
}

.points-game-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 100%;
  margin-bottom: var(--space-3);
}

.points-game-bar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
}

.points-game-bar a {
  color: var(--pg-ivory);
  font-weight: 700;
}

.points-game-lead,
.points-game-status,
.points-game-live {
  color: var(--pg-muted);
}

.points-game-status {
  min-height: 2.8em;
  margin: 0;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--pg-panel);
  color: var(--pg-ivory);
}

.points-game-status.is-error {
  color: #f6f0e4;
  background: #3a221c;
  border: 1px solid var(--pg-alert);
}

.points-game-rules ul {
  list-style: disc;
  margin: var(--space-3) 0 0;
  padding-left: 1.2rem;
}

.points-game-rules li + li {
  margin-top: 0.4rem;
}

.points-game-seats,
.points-game-piles,
.points-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  max-width: 100%;
}

.points-game-seat,
.points-game-pile {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--pg-panel);
  color: var(--pg-ivory);
}

.points-game-seat.is-current {
  outline: 2px solid var(--color-accent);
}

.points-game-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 100%;
  margin: var(--space-3) 0;
}

.points-game-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 100%;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border: 1px solid rgba(232, 184, 74, 0.28);
  border-bottom: 1px solid rgba(232, 184, 74, 0.28);
}

.points-game-group-label {
  flex: 1 1 100%;
  margin: 0;
  color: var(--pg-gold-hi);
  font-size: 0.75rem;
  pointer-events: none;
}

.points-game-card,
.points-game-discard {
  flex: 0 1 3.1rem;
  width: 3.1rem;
  max-width: 22%;
  min-height: 4.2rem;
  padding: 0.3rem;
  border: 1px solid #e4d3ae;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #fffdf8, var(--pg-ivory));
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
  color: #1b1b1b;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  font: inherit;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.points-game-discard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
}

.points-game-card-rank,
.points-game-card-suit {
  display: block;
}

.points-game-card-rank {
  font-weight: 700;
}

.points-game-card.is-red,
.points-game-discard.is-red {
  color: #9d1c1c;
}

.points-game-card.is-joker,
.points-game-discard.is-joker {
  color: #8a5a00;
}

.points-game-card:hover {
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.32);
}

.points-game-card.is-selected,
.points-game-card.is-selected:hover {
  border-color: var(--pg-gold);
  box-shadow: 0 0 0 2px var(--pg-gold);
  transform: translateY(-6px);
}

.points-game-card:focus-visible,
.points-game-btn:focus-visible {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: 2px;
}

.points-game-btn {
  min-height: 44px;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--pg-gold);
  border-radius: 999px;
  background: var(--pg-deep);
  color: var(--pg-ivory);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.points-game-btn:hover:not(:disabled) {
  border-color: var(--pg-gold-hi);
}

.points-game-btn-primary {
  background: linear-gradient(180deg, var(--pg-gold-hi), var(--pg-gold));
  color: var(--pg-deep);
  border-color: var(--pg-gold-hi);
}

.points-game-result {
  margin-top: 0;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: rgba(9, 39, 29, 0.72);
  color: var(--pg-muted);
}

.points-game-result ul {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
}

@media (min-width: 768px) {
  .points-game {
    padding: var(--space-5);
  }

  .points-game-card,
  .points-game-discard {
    max-width: 3.4rem;
  }
}

.points-game-mode {
  margin: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(232, 184, 74, 0.55);
  border-radius: 999px;
  color: var(--color-accent-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.points-game-felt {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 100%;
  padding: 0.75rem;
  position: relative;
  border: 7px solid #3c2918;
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(255, 255, 255, 0.05), transparent 46%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.045) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 42%, #1a5c40 0%, var(--pg-felt) 58%, var(--pg-deep) 100%);
  box-shadow:
    inset 0 0 0 1px var(--pg-gold-hi),
    inset 0 0 0 4px var(--pg-deep),
    inset 0 0 0 5px var(--pg-gold),
    inset 0 0 28px rgba(0, 0, 0, 0.28);
}

.points-game-center {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.points-game-seat-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.points-game-avatar {
  display: block;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  border: 2px solid var(--pg-gold);
  border-radius: 50%;
}

.points-game-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.points-game-avatar.is-a .points-game-avatar-bg { fill: #1d4e3a; }
.points-game-avatar.is-b .points-game-avatar-bg { fill: #3d3424; }
.points-game-avatar.is-you .points-game-avatar-bg { fill: #204a62; }
.points-game-avatar.is-a .points-game-avatar-cloth { fill: #7a2e2a; }
.points-game-avatar.is-b .points-game-avatar-cloth { fill: #1d4f86; }
.points-game-avatar.is-you .points-game-avatar-cloth { fill: #6b3f16; }

.points-game-backs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-height: 2.4rem;
  margin: 0.55rem 0;
}

.points-game-back {
  width: 1.55rem;
  height: 2.2rem;
  border: 1px solid var(--pg-gold);
  border-radius: 0.28rem;
  background-color: var(--pg-felt);
  background-image:
    linear-gradient(var(--pg-gold), var(--pg-gold)),
    linear-gradient(var(--pg-gold), var(--pg-gold)),
    radial-gradient(circle at 50% 50%, var(--pg-gold-hi) 0 7%, transparent 8% 28%, var(--pg-gold) 29% 33%, transparent 34%);
  background-size: 62% 1px, 1px 62%, 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.points-game-score {
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  margin: 0.45rem 0 0;
  padding: 0.4rem 0.5rem 0.35rem;
  border: 1px solid var(--pg-gold);
  border-radius: 0.55rem;
  background: var(--pg-deep);
  color: var(--pg-muted);
}

.points-game-score-label,
.points-game-score-deal,
.points-game-score-meta {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--pg-muted);
}

.points-game-score-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.points-game-score-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  min-width: 2.6ch;
  text-align: center;
  color: var(--pg-gold-hi);
}

.points-game-score-value.is-pulse {
  animation: points-game-pulse 280ms ease;
}

.points-game-seat,
.points-game-pile {
  background: rgba(6, 18, 14, 0.55);
  border: 1px solid rgba(232, 184, 74, 0.16);
}

.points-game-seat.is-current {
  outline: 2px solid #e8b84a;
  box-shadow: 0 0 0 3px rgba(232, 184, 74, 0.18);
}

.points-game-pile.is-ready {
  box-shadow: 0 0 0 2px rgba(232, 184, 74, 0.72);
}

.points-game-group.is-pure { border-color: #3dba7a; }
.points-game-group.is-impure { border-color: #e8b84a; }
.points-game-group.is-set { border-color: #8fb4ff; }
.points-game-group.is-unmatched { border-color: rgba(255, 255, 255, 0.22); }

.points-game-group {
  padding: 0.45rem;
  border: 1px solid rgba(232, 184, 74, 0.28);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.18);
}

.points-game-card.is-in {
  animation: points-game-in 180ms ease;
}

.points-game-discard.is-land {
  animation: points-game-land 200ms ease;
}

.points-game-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.points-game-result.is-open {
  border: 1px solid rgba(232, 184, 74, 0.62);
  background: rgba(8, 18, 14, 0.92);
}

@keyframes points-game-pulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

@keyframes points-game-in {
  from { transform: translateY(-8px); opacity: 0.45; }
  to { transform: none; opacity: 1; }
}

@keyframes points-game-land {
  from { transform: translateY(-8px) rotate(-4deg); opacity: 0.55; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .points-game-score-value.is-pulse,
  .points-game-card.is-in,
  .points-game-discard.is-land {
    animation: none;
  }
}

@media (min-width: 768px) {
  .points-game-felt {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
    grid-template-areas: "seat1 center seat2";
  }

  .points-game-seat[data-seat="1"] { grid-area: seat1; }
  .points-game-center { grid-area: center; }
  .points-game-seat[data-seat="2"] { grid-area: seat2; }

  .points-game-felt {
    border-radius: 7rem 7rem 1.25rem 1.25rem;
  }

  .points-game-dock {
    grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
    align-items: start;
  }
}

.points-game-bar {
  border-bottom: 1px solid rgba(232, 184, 74, 0.4);
  padding-bottom: 0.6rem;
  background-image: repeating-linear-gradient(90deg, transparent 0 8px, rgba(232, 184, 74, 0.55) 8px 10px, transparent 10px 16px);
  background-size: auto 3px;
  background-repeat: repeat-x;
  background-position: left bottom;
}

.points-game-role {
  margin: 0;
  color: rgba(243, 231, 207, 0.8);
  font-size: 0.75rem;
}

.points-game h2,
.points-game h3,
.points-game-role,
.points-game-score-value,
.points-game-btn,
.points-game-seat p {
  overflow-wrap: normal;
  word-break: normal;
}

.points-game-center {
  position: relative;
}

.points-game-center::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 8.5rem;
  height: 8.5rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.45;
  background:
    repeating-conic-gradient(from 0deg, rgba(212, 175, 98, 0.45) 0 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 0 42%, #000 43% 58%, transparent 59%);
  mask: radial-gradient(circle, transparent 0 42%, #000 43% 58%, transparent 59%);
}

.points-game-center > * {
  position: relative;
  z-index: 1;
}

.points-game-deck {
  position: relative;
  z-index: 2;
  display: block;
  width: 2.45rem;
  height: 3.35rem;
  margin: 0.55rem 0 0.35rem 0.7rem;
  border: 1px solid var(--pg-gold);
  border-radius: 0.35rem;
  background-color: var(--pg-felt);
  background-image:
    linear-gradient(var(--pg-gold), var(--pg-gold)),
    linear-gradient(var(--pg-gold), var(--pg-gold)),
    radial-gradient(circle at 50% 50%, var(--pg-gold-hi) 0 8%, transparent 9% 30%, var(--pg-gold) 31% 36%, transparent 37%);
  background-size: 64% 1px, 1px 64%, 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.points-game-deck::before,
.points-game-deck::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--pg-gold);
  border-radius: inherit;
  background: inherit;
}

.points-game-deck::before { transform: translate(-4px, -3px); }
.points-game-deck::after { transform: translate(-8px, -6px); }

.points-game-pile.is-ready:hover,
.points-game-pile.is-ready:active {
  box-shadow: 0 0 0 2px rgba(232, 184, 74, 0.9);
}

.points-game-pile.is-drawing .points-game-deck,
.points-game-pile.is-drawing .points-game-discard {
  animation: points-game-flip 200ms ease;
}

.points-game-seat.is-current .points-game-avatar {
  box-shadow: 0 0 0 2px #e8b84a;
}

.points-game-card-rank {
  font-size: 1rem;
}

.points-game-btn-declare {
  background: linear-gradient(180deg, var(--pg-gold-hi), var(--pg-gold));
  color: var(--pg-deep);
  border-color: var(--pg-gold-hi);
}

.points-game-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.points-game-result.is-win {
  border-color: #3dba7a;
}

.points-game-result.is-invalid {
  border-color: var(--pg-alert);
}

.points-game-result.is-settled {
  border-color: rgba(232, 184, 74, 0.7);
}

@keyframes points-game-flip {
  from { transform: translateY(4px) scale(0.96); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .points-game-pile.is-drawing .points-game-deck,
  .points-game-pile.is-drawing .points-game-discard {
    animation: none;
  }
}

@media (max-width: 767px) {
  .points-game-felt {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "seat1 seat2"
      "center center";
    padding: 0.55rem;
    border-width: 4px;
    border-radius: 1rem;
  }

  .points-game-seat[data-seat="1"] { grid-area: seat1; }
  .points-game-seat[data-seat="2"] { grid-area: seat2; }
  .points-game-center { grid-area: center; }

  .points-game-seat-you {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7.2rem;
    align-items: center;
    gap: 0.45rem;
  }

  .points-game-seat-you .points-game-score {
    margin: 0;
  }

  .points-game-seat,
  .points-game-pile {
    padding: 0.55rem;
  }

  .points-game-backs {
    min-height: 0;
    margin: 0.3rem 0;
  }

  .points-game-back {
    width: 0.85rem;
    height: 1.2rem;
  }

  .points-game-avatar {
    width: 2rem;
    height: 2rem;
  }

  .points-game-seat h3 {
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .points-game-seat p {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .points-game-hand {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .points-game-group {
    flex: 0 0 auto;
  }

  .points-game-card {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    max-width: none;
  }
}

.points-game-dock {
  display: grid;
  gap: 0.65rem;
  max-width: 100%;
  margin-top: 0.75rem;
  padding: 0.7rem;
  border: 1px solid rgba(212, 175, 98, 0.4);
  border-radius: 1rem;
  background: var(--pg-panel);
}

.points-game-play {
  min-width: 0;
  max-width: 100%;
}

.points-game-felt::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 0 0, rgba(212, 175, 98, 0.16), transparent 16%),
    radial-gradient(circle at 100% 0, rgba(212, 175, 98, 0.16), transparent 16%);
}

.points-game-felt > * {
  position: relative;
  z-index: 1;
}

.points-game-felt:has(.points-game-result.is-open) > .points-game-center {
  z-index: 2;
}

.points-game-seat h3 {
  margin: 0;
  color: var(--pg-ivory);
}

.points-game-pile {
  background: var(--pg-panel);
}

.points-game-hand.is-sorting .points-game-card {
  animation: points-game-in 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .points-game-hand.is-sorting .points-game-card,
  .points-game-card {
    animation: none;
    transition: none;
  }
}

.points-game {
  margin-top: 0.15rem;
  padding: 0.35rem 0.45rem 0.5rem;
}

.points-game-stage {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 0;
  height: auto;
}

.points-game-stage > .points-game-bar,
.points-game-stage > .points-game-dock {
  flex: 0 0 auto;
}

.points-game-stage > .points-game-felt {
  flex: 0 1 auto;
  min-height: 0;
  overflow: visible;
}

.points-game-bar {
  margin-bottom: 0;
  padding-bottom: 0.2rem;
}

.points-game-dock {
  margin-top: 0;
  padding: 0.35rem 0.4rem;
  gap: 0.3rem;
}

.points-game-hand {
  flex-wrap: nowrap;
  margin: 0.1rem 0;
  padding-top: 0.35rem;
  gap: 0.25rem;
  overflow-x: auto;
}

.points-game-live {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.3;
}

.points-game-status {
  min-height: 0;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
}

.points-game-felt {
  gap: 0.35rem;
  padding: 0.4rem;
  border-width: 4px;
}

.points-game-center {
  gap: 0.3rem;
}

.points-game-center::before {
  width: 4.25rem;
  height: 4.25rem;
  opacity: 0.28;
}

.points-game-pile {
  padding: 0.35rem 0.4rem;
}

.points-game-deck {
  width: 1.9rem;
  height: 2.55rem;
  margin: 0.2rem 0 0.1rem 0.5rem;
}

.points-game-result {
  padding: 0.3rem 0.45rem;
}

.points-game-result:not(.is-open) {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.points-game-result:not(.is-open) h3,
.points-game-result:not(.is-open) p {
  margin: 0;
  font-size: 0.75rem;
}

.points-game-result:not(.is-open) p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-game-result.is-open {
  overflow: visible;
}

.points-game-seat:not(.points-game-seat-you) {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: start;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem;
}

.points-game-seat:not(.points-game-seat-you) .points-game-backs {
  display: none;
}

.points-game-seat:not(.points-game-seat-you) .points-game-seat-top {
  min-width: 0;
}

.points-game-seat:not(.points-game-seat-you) .points-game-score {
  margin: 0 0 0 auto;
  min-width: 4.4rem;
  padding: 0.15rem 0.3rem;
}

.points-game-seat:not(.points-game-seat-you) .points-game-score-value {
  font-size: 1.15rem;
}

.points-game-avatar {
  width: 1.85rem;
  height: 1.85rem;
}

.points-game-card,
.points-game-discard {
  width: 2.55rem;
  min-height: 3.45rem;
}

@media (min-width: 768px) {
  .points-game-felt {
    border-radius: 2.2rem 2.2rem 0.85rem 0.85rem;
  }

  .points-game-dock {
    grid-template-columns: minmax(8.5rem, 12rem) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .points-game-stage {
    height: auto;
  }

  .points-game-mode {
    display: none;
  }

  .points-game-felt {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "seat1 seat2"
      "center center";
  }

  .points-game-pile .points-game-btn {
    grid-column: 1 / -1;
    padding: 0.2rem 0.45rem;
    font-size: 0.72rem;
    white-space: normal;
  }

  .points-game-piles {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .points-game-pile {
    display: grid;
    flex: 1 1 0;
    min-width: 0;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.3rem;
    row-gap: 0.08rem;
  }

  .points-game-pile h3,
  .points-game-pile p {
    grid-column: 2;
    margin: 0;
  }

  .points-game-pile .points-game-btn {
    grid-column: 1 / -1;
    margin: 0;
  }

  .points-game-pile h3 {
    font-size: 0.75rem;
    line-height: 1.15;
  }

  .points-game-deck,
  .points-game-discard {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    justify-self: center;
  }

  .points-game-role,
  .points-game-score-deal,
  .points-game-seat:not(.points-game-seat-you) .points-game-score-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .points-game-score {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .points-game-seat-you {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .points-game-seat-you .points-game-score-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 6.5rem;
  }

  .points-game-actions {
    flex-wrap: nowrap;
    gap: 0.3rem;
  }

  .points-game-actions .points-game-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.35rem 0.25rem;
    font-size: 0.72rem;
  }

  .points-game-seat [data-seat-status] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .points-game-live {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .points-game-seat-you .points-game-score-value {
    font-size: 1.15rem;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .points-game-felt {
    gap: 0.1rem;
    padding: 0.2rem;
  }

  .points-game-seat:not(.points-game-seat-you) {
    padding: 0.12rem 0.35rem;
  }

  .points-game-result:not(.is-open) {
    display: none;
  }
}

@media (max-height: 700px) {
  .points-game-center::before {
    display: none;
  }

  .points-game-card,
  .points-game-discard {
    width: 2.35rem;
    min-height: 3.05rem;
  }

  .points-game-deck {
    height: 2.2rem;
  }
}

.points-game .points-game-card {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.points-game .points-game-group {
  flex-wrap: nowrap;
  margin-bottom: 0;
  padding-bottom: 0;
}

.points-game .points-game-group-label {
  flex: 0 0 auto;
  align-self: center;
}

.points-game.is-dragging-hand {
  position: relative;
}

.points-game-hand.is-reordering {
  cursor: grabbing;
}

.points-game .points-game-card.is-placeholder {
  opacity: 0.35;
  transform: none;
  border-style: dashed;
  border-color: var(--pg-gold);
  box-shadow: none;
}

.points-game .points-game-insert {
  flex: 0 0 3px;
  width: 3px;
  align-self: stretch;
  min-height: 3.2rem;
  border-radius: 2px;
  background: var(--pg-gold);
  pointer-events: none;
}

.points-game .points-game-card.is-float {
  position: absolute;
  z-index: 5;
  margin: 0;
  pointer-events: none;
  transform: translate(-50%, -70%) scale(1.04);
  border-color: var(--pg-gold);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--pg-gold);
  transition: none;
  cursor: grabbing;
}

.points-game .points-game-card.is-placed {
  animation: points-game-place 160ms ease;
}

.points-game .points-game-result li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  align-items: baseline;
  margin: 0 0 0.28rem;
  padding: 0.18rem 0.35rem;
}

.points-game .points-game-result-name {
  color: #f3e6cf;
  font-weight: 700;
}

.points-game .points-game-result-score {
  color: #e8b84a;
}

.points-game .points-game-result li.is-winner {
  border: 1px solid rgba(212, 175, 98, 0.9);
  background: rgba(212, 175, 98, 0.14);
}

.points-game .points-game-seat.is-winner {
  box-shadow: inset 0 0 0 1px rgba(212, 175, 98, 0.9);
}

.points-game .points-game-result.is-settling li {
  animation: points-game-settle 420ms ease both;
}

.points-game .points-game-result.is-complete li {
  opacity: 1;
}

.points-game .points-game-result.is-open.is-win.is-settling {
  animation: points-game-glow 0.8s ease;
}

@keyframes points-game-settle {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes points-game-glow {
  from { box-shadow: 0 0 0 rgba(212, 175, 98, 0); }
  to { box-shadow: 0 0 12px rgba(212, 175, 98, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .points-game .points-game-result.is-settling li,
  .points-game .points-game-result.is-open.is-win.is-settling {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes points-game-place {
  from { transform: translateY(-8px); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .points-game .points-game-card.is-placed,
  .points-game .points-game-card.is-float {
    animation: none;
    transition: none;
  }
}

.points-game .points-game-result-kicker {
  margin: 0;
  color: var(--pg-gold-hi);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.points-game .points-game-result-verdict,
.points-game .points-game-result-note {
  margin: 0.35rem 0 0;
}

.points-game .points-game-result:not(.is-open) .points-game-result-kicker,
.points-game .points-game-result:not(.is-open) .points-game-result-verdict,
.points-game .points-game-result:not(.is-open) .points-game-result-note,
.points-game .points-game-result:not(.is-open) .points-game-result-actions,
.points-game .points-game-result:not(.is-open) .points-game-result-scroll,
.points-game .points-game-result:not(.is-open) [data-result-list],
.points-game .points-game-result:not(.is-open) [data-points-ledger],
.points-game .points-game-result:not(.is-open) .points-game-result-points-note {
  display: none;
}

.points-game .points-game-result.is-open {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + 0.75rem);
  width: min(26rem, calc(100% - 1.5rem));
  max-height: calc(100% - var(--header-h) - 1.5rem);
  margin-right: auto;
  margin-left: auto;
  overflow: auto;
  padding: 0.9rem 0.85rem 0.85rem;
  border: 1px solid var(--pg-gold);
  border-radius: var(--radius-lg);
  background-color: var(--pg-deep);
  background-image:
    linear-gradient(180deg, rgba(18, 61, 43, 0.55), rgba(9, 39, 29, 0.2)),
    repeating-linear-gradient(45deg, rgba(212, 175, 98, 0.06) 0 1px, transparent 1px 16px);
  box-shadow:
    inset 0 0 0 1px rgba(240, 217, 154, 0.45),
    inset 0 0 0 6px rgba(9, 39, 29, 0.72),
    0 16px 32px rgba(0, 0, 0, 0.4);
  color: var(--pg-ivory);
}

.points-game .points-game-result.is-open h3,
.points-game .points-game-result.is-open p,
.points-game .points-game-result.is-open a,
.points-game .points-game-result.is-open button {
  white-space: normal;
  overflow-wrap: anywhere;
}

.points-game .points-game-result.is-open h3 {
  margin: 0.15rem 0 0;
  color: var(--pg-gold-hi);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.points-game .points-game-result.is-win .points-game-result-verdict {
  color: var(--pg-gold-hi);
  font-weight: 700;
}

.points-game .points-game-result.is-invalid {
  border-color: var(--pg-alert);
}

.points-game .points-game-result.is-invalid .points-game-result-verdict {
  color: #f3d2cb;
  font-weight: 700;
}

.points-game .points-game-result.is-open [data-result-list] {
  margin-top: 0.7rem;
  border-top: 1px solid rgba(212, 175, 98, 0.45);
}

.points-game .points-game-result.is-open li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0;
  padding: 0.45rem 0.15rem;
  border-bottom: 1px solid rgba(212, 175, 98, 0.28);
}

.points-game .points-game-result.is-open .points-game-result-score {
  min-width: 2.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.points-game .points-game-result.is-open li.is-winner {
  background: rgba(212, 175, 98, 0.16);
}

.points-game .points-game-result.is-open li.is-winner .points-game-result-name::before {
  content: "";
  display: inline-block;
  width: 0.95rem;
  height: 0.75rem;
  margin-right: 0.35rem;
  vertical-align: -0.05rem;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath fill='%23d4af62' d='M1.2 8.2 3.2 3.2l2.5 2.6L8 .8l2.3 5 2.5-2.6 2 5z'/%3E%3Cpath fill='%23f0d99a' d='M1 9.2h14v1.8H1z'/%3E%3C/svg%3E");
}

.points-game .points-game-result-note {
  color: var(--pg-muted);
  font-size: 0.85rem;
}

.points-game .points-game-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

@media (max-width: 767px) {
  .points-game .points-game-result.is-open {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: calc(100% - var(--header-h) - 0.35rem);
    max-height: calc(100dvh - var(--header-h) - 0.35rem);
    margin: 0;
    border-radius: 1rem 1rem 0 0;
    padding: 0.4rem 0.65rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  }

  .points-game .points-game-result-kicker {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .points-game .points-game-result.is-open h3 {
    margin-top: 0;
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .points-game .points-game-result.is-open p {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .points-game .points-game-result-verdict,
  .points-game .points-game-result-note,
  .points-game .points-game-result-points-note {
    margin-top: 0.15rem;
  }

  .points-game .points-game-result-scroll {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  .points-game .points-game-result.is-open [data-result-list] {
    margin-top: 0.25rem;
  }

  .points-game .points-game-result.is-open li {
    gap: 0.15rem 0.4rem;
    padding-top: 0.12rem;
    padding-bottom: 0.12rem;
    font-size: 0.78rem;
  }

  .points-game .points-game-ledger {
    margin-top: 0.2rem;
    padding-top: 0.2rem;
  }

  .points-game .points-game-result.is-open .points-game-ledger li {
    grid-template-columns: minmax(0, 1.15fr) auto auto auto;
    align-items: center;
    gap: 0.1rem 0.3rem;
    padding-top: 0.12rem;
    padding-bottom: 0.12rem;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .points-game .points-game-ledger-name,
  .points-game .points-game-ledger-change,
  .points-game .points-game-ledger-before,
  .points-game .points-game-ledger-after {
    white-space: nowrap;
  }

  .points-game .points-game-result-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-top: 0.3rem;
    padding-top: 0;
    background-color: transparent;
  }

  .points-game .points-game-result-actions .points-game-btn,
  .points-game .points-game-result-back {
    flex: 1 1 0;
    min-height: 44px;
    padding: 0.35rem 0.4rem;
    font-size: 0.85rem;
  }
}

.points-game .points-game-result-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--pg-gold);
  border-radius: 999px;
  color: var(--pg-ivory);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .points-game .points-game-result.is-open,
  .points-game .points-game-result.is-open li,
  .points-game .points-game-result.is-complete li,
  .points-game .points-game-ledger li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.points-game .points-game-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 0.4rem;
  max-width: 100%;
  margin: 0.2rem 0 0;
  color: var(--pg-gold-hi);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.points-game .points-game-ledger {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0.45rem 0 0;
  border-top: 1px solid rgba(212, 175, 98, 0.45);
}

.points-game .points-game-ledger li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 0.15rem 0.5rem;
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(212, 175, 98, 0.28);
}

.points-game .points-game-ledger-name,
.points-game .points-game-ledger-change {
  font-weight: 700;
}

.points-game .points-game-ledger-before,
.points-game .points-game-ledger-after {
  color: var(--pg-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.points-game .points-game-ledger-change.is-reward {
  color: var(--pg-gold-hi);
}

.points-game .points-game-ledger-change.is-deduct {
  color: #f3d2cb;
}

.points-game .points-game-result-points-note {
  margin: 0.45rem 0 0;
  color: var(--pg-muted);
  font-size: 0.85rem;
}

.points-game-session {
  max-width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(212, 175, 98, 0.45);
  border-radius: var(--radius-lg);
  background-color: var(--pg-deep);
  background-image: repeating-linear-gradient(45deg, rgba(212, 175, 98, 0.045) 0 1px, transparent 1px 16px);
  box-shadow: inset 0 0 0 1px rgba(240, 217, 154, 0.18);
  color: var(--pg-ivory);
}

.points-game-session h2,
.points-game-session h3 {
  margin: 0;
  color: var(--pg-gold-hi);
}

.points-game-session h3 {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.points-game-session dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.45rem 0.6rem;
  margin: 0.55rem 0 0;
}

.points-game-session dl div {
  min-width: 0;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(212, 175, 98, 0.28);
  border-radius: var(--radius);
}

.points-game-session dt,
.points-game-session p,
.points-game-session li {
  overflow-wrap: anywhere;
}

.points-game-session dt {
  color: var(--pg-muted);
  font-size: 0.75rem;
}

.points-game-session dd {
  margin: 0.15rem 0 0;
  color: var(--pg-gold-hi);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.points-game-session ol {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.points-game-session li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 0.65rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(212, 175, 98, 0.28);
}

.points-game-session li span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

@media (min-width: 768px) {
  .points-game-session dl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

html:has(.points-game-result.is-open) {
  overflow: hidden;
}

body:has(.points-game-result.is-open)::before {
  content: "";
  position: fixed;
  z-index: 35;
  inset: 0;
  background: rgba(4, 16, 12, 0.62);
}

.points-game:has(.points-game-result.is-open) {
  position: fixed;
  z-index: 40;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: min(26rem, calc(100% - 1.5rem));
  height: fit-content;
  max-height: calc(100% - var(--header-h) - 1.5rem);
  max-height: calc(100dvh - var(--header-h) - 1.5rem);
  margin: auto;
  overflow: auto;
  padding: 0.7rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--pg-gold);
  border-radius: 1rem;
  background-color: var(--pg-deep);
  background-image:
    linear-gradient(180deg, rgba(18, 61, 43, 0.55), rgba(9, 39, 29, 0.2)),
    repeating-linear-gradient(45deg, rgba(212, 175, 98, 0.06) 0 1px, transparent 1px 16px);
  box-shadow:
    inset 0 0 0 1px rgba(240, 217, 154, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.45);
  color: var(--pg-ivory);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

.points-game:has(.points-game-result.is-invalid) {
  border-color: var(--pg-alert);
}

.points-game:has(.points-game-result.is-open) .points-game-stage,
.points-game:has(.points-game-result.is-open) .points-game-felt,
.points-game:has(.points-game-result.is-open) .points-game-center,
.points-game:has(.points-game-result.is-open) .points-game-result.is-open {
  display: contents;
}

.points-game:has(.points-game-result.is-open) .points-game-bar,
.points-game:has(.points-game-result.is-open) .points-game-seat,
.points-game:has(.points-game-result.is-open) .points-game-dock,
.points-game:has(.points-game-result.is-open) .points-game-piles,
.points-game:has(.points-game-result.is-open) .points-game-status,
.points-game:has(.points-game-result.is-open) .points-game-rules,
.points-game:has(.points-game-result.is-open) > p,
.points-game:has(.points-game-result.is-open) noscript {
  display: none;
}

.points-game:has(.points-game-result.is-open) .points-game-result-kicker,
.points-game:has(.points-game-result.is-open) .points-game-result.is-open h3,
.points-game:has(.points-game-result.is-open) .points-game-result-verdict,
.points-game:has(.points-game-result.is-open) [data-result-text] {
  margin: 0;
  line-height: 1.2;
}

.points-game:has(.points-game-result.is-open) .points-game-result-kicker {
  font-size: 0.68rem;
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open h3 {
  font-size: 1.05rem;
}

.points-game:has(.points-game-result.is-open) .points-game-result-verdict,
.points-game:has(.points-game-result.is-open) [data-result-text],
.points-game:has(.points-game-result.is-open) .points-game-result-note,
.points-game:has(.points-game-result.is-open) .points-game-result-points-note {
  font-size: 0.75rem;
  line-height: 1.25;
}

.points-game:has(.points-game-result.is-open) .points-game-result-scroll {
  display: block;
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

.points-game:has(.points-game-result.is-open) [data-result-list] {
  margin-top: 0.15rem;
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open li,
.points-game:has(.points-game-result.is-open) .points-game-ledger li {
  padding-top: 0.08rem;
  padding-bottom: 0.08rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.points-game:has(.points-game-result.is-open) .points-game-ledger {
  margin-top: 0.15rem;
  padding-top: 0.15rem;
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open .points-game-ledger li {
  grid-template-columns: minmax(0, 1.15fr) auto auto auto;
}

.points-game:has(.points-game-result.is-open) .points-game-session {
  order: 2;
  flex: 0 0 auto;
  margin: 0.1rem 0 0;
  padding: 0.35rem 0.45rem;
  overflow: visible;
}

.points-game:has(.points-game-result.is-open) .points-game-result-actions {
  order: 3;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin-top: 0.15rem;
}

.points-game:has(.points-game-result.is-open) .points-game-session h2,
.points-game:has(.points-game-result.is-open) .points-game-session h3 {
  font-size: 0.85rem;
  line-height: 1.2;
}

.points-game:has(.points-game-result.is-open) .points-game-session h3 {
  margin-top: 0.25rem;
}

.points-game:has(.points-game-result.is-open) .points-game-session dl {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.2rem 0.35rem;
  margin-top: 0.25rem;
}

.points-game:has(.points-game-result.is-open) .points-game-session dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.12rem 0.35rem;
}

.points-game:has(.points-game-result.is-open) .points-game-session dt {
  font-size: 0.68rem;
}

.points-game:has(.points-game-result.is-open) .points-game-session dd {
  margin: 0;
  font-size: 0.78rem;
}

.points-game:has(.points-game-result.is-open) .points-game-session li {
  padding-top: 0.08rem;
  padding-bottom: 0.08rem;
  font-size: 0.72rem;
}

.points-game-session {
  margin-top: 0.45rem;
  padding: 0.45rem 0.55rem;
}

.points-game-session-recent {
  margin-top: 0.35rem;
}

.points-game-session-recent summary {
  min-height: 44px;
  color: var(--pg-gold-hi);
  font-weight: 700;
  cursor: pointer;
}

.points-game-session-recent p,
.points-game-session-recent ol {
  margin-top: 0.2rem;
}

.points-game-seat.is-current {
  outline: 2px solid var(--pg-gold-hi);
  box-shadow: 0 0 0 3px rgba(212, 175, 98, 0.22);
}

.points-game-pile.is-ready {
  border-color: var(--pg-gold-hi);
}

.points-game-hand {
  padding-top: 0.45rem;
}

.points-game-card.is-selected {
  z-index: 2;
}

.points-game-actions .points-game-btn:not(:disabled) {
  box-shadow: inset 0 0 0 1px rgba(240, 217, 154, 0.35);
}

@media (min-width: 768px) {
  .points-game {
    max-width: 72rem;
    margin-right: auto;
    margin-left: auto;
  }

  .points-game-piles {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
  }

  .points-game-pile {
    flex: 1 1 0;
    min-width: 0;
  }

  .points-game-seat-you {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.4rem 0.5rem;
  }

  .points-game-seat-you .points-game-seat-top p {
    margin: 0;
    line-height: 1.2;
  }

  .points-game-seat-you .points-game-score {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.1rem 0.35rem;
    margin-top: 0.15rem;
    padding: 0.2rem 0.35rem;
  }

  .points-game-seat-you .points-game-score-value {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) and (max-height: 860px) {
  .points-game-session {
    margin-top: 0.25rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
}

@media (max-width: 767px) {
  .points-game-stage {
    gap: 0.15rem;
  }

  .points-game-bar {
    gap: 0.3rem;
  }

  .points-game-bar .points-game-btn {
    min-height: 44px;
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
  }

  .points-game-seat:not(.points-game-seat-you) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.35rem;
    padding: 0.2rem 0.35rem;
  }

  .points-game-seat:not(.points-game-seat-you) .points-game-seat-top {
    flex: 1 1 5.5rem;
    min-width: 0;
  }

  .points-game-seat:not(.points-game-seat-you) .points-game-score,
  .points-game-seat:not(.points-game-seat-you) .points-game-bank {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    justify-content: flex-start;
  }

  .points-game-seat:not(.points-game-seat-you) .points-game-bank span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .points-game-dock {
    grid-template-columns: minmax(0, 1fr);
  }

  .points-game-seat-you {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.45rem;
    padding: 0.2rem 0.4rem;
  }

  .points-game-seat-you .points-game-role,
  .points-game-seat-you .points-game-score-deal,
  .points-game-seat-you .points-game-score-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .points-game-seat-you .points-game-score,
  .points-game-seat-you .points-game-bank {
    width: auto;
    margin: 0;
  }

  .points-game-session dl {
    gap: 0.25rem;
    margin-top: 0.3rem;
  }

  .points-game-session dl div {
    padding: 0.2rem 0.35rem;
  }
}

.points-game {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(212, 175, 98, 0.22);
}

.points-game-felt {
  border-color: #2a1b10;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px var(--pg-gold-hi),
    inset 0 0 0 5px #123226,
    inset 0 0 0 6px var(--pg-gold),
    inset 0 0 36px rgba(0, 0, 0, 0.34);
}

.points-game-felt::after {
  background-color: transparent;
  background-image:
    linear-gradient(45deg, rgba(212, 175, 98, 0.11) 25%, transparent 25%, transparent 75%, rgba(212, 175, 98, 0.11) 75%),
    linear-gradient(-45deg, rgba(212, 175, 98, 0.08) 25%, transparent 25%, transparent 75%, rgba(212, 175, 98, 0.08) 75%),
    radial-gradient(circle at 0 0, rgba(212, 175, 98, 0.16), transparent 18%),
    radial-gradient(circle at 100% 0, rgba(212, 175, 98, 0.16), transparent 18%);
  background-size: 22px 22px, 22px 22px, auto, auto;
  background-position: 0 0, 11px 11px, 0 0, 0 0;
  opacity: 0.7;
}

.points-game-seat,
.points-game-pile {
  background: rgba(6, 18, 14, 0.62);
  border-color: rgba(212, 175, 98, 0.34);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.points-game-seat:not(.is-current) {
  background: rgba(6, 18, 14, 0.48);
}

.points-game-avatar {
  box-shadow: inset 0 0 0 2px rgba(246, 240, 228, 0.35);
}

.points-game-card,
.points-game-discard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f4ecdc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 3px 6px rgba(0, 0, 0, 0.34);
}

.points-game-card-rank {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.points-game-card-suit {
  font-size: 0.82rem;
  line-height: 1;
}

.points-game-card.is-selected,
.points-game-card.is-selected:hover {
  border-color: var(--pg-gold-hi);
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.32),
    0 0 0 2px var(--pg-gold-hi);
  transform: translateY(-6px);
}

.points-game .points-game-card.is-float {
  box-shadow:
    0 12px 18px rgba(0, 0, 0, 0.4),
    0 0 0 2px var(--pg-gold-hi);
}

.points-game-deck {
  box-shadow:
    -4px -3px 0 #0c3324,
    -4px -3px 0 1px var(--pg-gold),
    -8px -6px 0 #0c3324,
    -8px -6px 0 1px rgba(212, 175, 98, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.points-game-pile.is-ready {
  box-shadow: 0 0 0 2px rgba(240, 217, 154, 0.45);
}

.points-game-pile .points-game-deck,
.points-game-pile .points-game-discard {
  max-width: none;
}

.points-game-pile [data-stock-count] {
  color: var(--pg-gold-hi);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.points-game-pile.is-ready [data-act="draw-stock"]:not(:disabled),
.points-game-pile.is-ready [data-act="draw-discard"]:not(:disabled) {
  border-color: #9ddec0;
  background: #176b42;
  color: #f6f0e4;
}

.points-game-actions [data-act="discard"]:not(:disabled) {
  border-color: #e7b2a8;
  background: #6d3128;
  color: #fff6f2;
}

.points-game-btn:disabled {
  opacity: 0.42;
  filter: grayscale(0.4);
  box-shadow: none;
  color: #b7c4bb;
}

.points-game-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.points-game-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.points-game-session dd {
  font-size: 1.05rem;
}

.points-game-session dd.is-up,
.points-game-session li.is-won span:last-child {
  color: #b7e7c8;
}

.points-game-session dd.is-down,
.points-game-session li.is-lost span:last-child,
.points-game-session li.is-invalid span:last-child {
  color: #f3c7be;
}

.points-game-status {
  transition: background-color 160ms ease;
}

.points-game-deck,
.points-game-back {
  background-color: #0e3a28;
  background-image: url("../images/points-rummy/card-back.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.points-game-deck::before,
.points-game-deck::after,
.points-game-back::before,
.points-game-back::after {
  pointer-events: none;
}

.points-game-seat.is-turn {
  animation: points-game-turn 220ms ease;
}

@keyframes points-game-turn {
  from { box-shadow: 0 0 0 2px rgba(240, 217, 154, 0.85); }
  to { box-shadow: 0 0 0 3px rgba(212, 175, 98, 0.22); }
}

.points-game [data-bank-value].is-pulse {
  animation: points-game-pulse 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .points-game-card,
  .points-game-btn,
  .points-game-status,
  .points-game-pile.is-ready,
  .points-game-seat.is-turn,
  .points-game [data-bank-value].is-pulse,
  .points-game-discard.is-land,
  .points-game-pile.is-drawing .points-game-deck,
  .points-game-pile.is-drawing .points-game-discard {
    transition: none;
    animation: none;
  }
}

.points-game {
  background-color: #0c3d28;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(126, 196, 232, 0.18), transparent 34%),
    radial-gradient(ellipse at 50% 18%, #1f8a4c 0%, #14683a 46%, #0c3d28 78%);
}

.points-game-felt {
  border: 8px solid #d7b15e;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(ellipse at 50% 46%, #3aaa62 0%, #1f8a48 58%, #146838 100%);
  box-shadow:
    inset 0 0 0 3px #8d6230,
    inset 0 0 0 6px #f0d48a,
    0 12px 22px rgba(0, 0, 0, 0.28);
}

.points-game-felt::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 78%, rgba(255, 255, 255, 0.16) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.14) 0 6px, transparent 7px);
}

.points-game-seat,
.points-game-pile {
  background: rgba(8, 28, 48, 0.78);
  border-color: rgba(240, 212, 138, 0.45);
  border-radius: 0.9rem;
}

.points-game-seat.is-current {
  outline: 2px solid #f6e3a8;
  box-shadow: 0 0 0 3px rgba(246, 227, 168, 0.35);
}

.points-game-avatar {
  box-shadow: 0 0 0 2px #f4e7c4;
}

.points-game .points-game-card,
.points-game .points-game-discard {
  border: 1px solid #d9d3c6;
  border-radius: 0.35rem;
  background: linear-gradient(180deg, #fff 0%, #f7f4ee 100%);
  color: #1c1c1c;
}

.points-game .points-game-card.is-red,
.points-game .points-game-discard.is-red {
  color: #d0122d;
}

.points-game-deck,
.points-game-back {
  background-color: #1c4f9c;
  border-color: #f0d48a;
}

.points-game-deck {
  box-shadow:
    -4px -3px 0 #163e86,
    -4px -3px 0 1px #f0d48a,
    -8px -6px 0 #163e86,
    -8px -6px 0 1px rgba(240, 212, 138, 0.85);
}

.points-game-pile h3 {
  color: #f7f3ea;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.points-game-pile [data-stock-count] {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #102033;
  color: #f6e3a8;
}

.points-game-pile.is-ready [data-act="draw-stock"]:not(:disabled),
.points-game-pile.is-ready [data-act="draw-discard"]:not(:disabled) {
  border-color: #b7ebc8;
  background: linear-gradient(180deg, #3dce73, #1f9a49);
  color: #fff;
}

.points-game-actions [data-act="discard"]:not(:disabled) {
  border-color: #ffd0d0;
  background: linear-gradient(180deg, #ff5d5d, #e03131);
  color: #fff;
}

.points-game-actions [data-act="declare"]:not(:disabled) {
  border-color: #d5e4ff;
  background: linear-gradient(180deg, #4c8dff, #2f6fe6);
  color: #fff;
}

.points-game-actions [data-act="arrange"]:not(:disabled),
.points-game-actions [data-act="again"]:not(:disabled) {
  background: #102033;
  border-color: rgba(240, 212, 138, 0.55);
  color: #f7f3ea;
}

.points-game-session {
  background-color: #102033;
  background-image: none;
  border-color: rgba(240, 212, 138, 0.35);
}

.points-game-session li {
  border-radius: 0.65rem;
  background: #17324a;
}

.points-game-session li.is-won {
  background: #143d32;
}

.points-game-session li.is-lost,
.points-game-session li.is-invalid {
  background: #4a2430;
}

@media (min-width: 768px) {
  .points-game-felt {
    border-radius: 3.25rem;
  }

  .points-game-hand .points-game-card + .points-game-card {
    margin-left: -0.75rem;
  }

  .points-game-hand .points-game-card.is-selected,
  .points-game-hand .points-game-card.is-selected:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .points-game-felt {
    border-width: 5px;
  }

  .points-game-pile [data-stock-count] {
    margin-top: 0;
    padding: 0 0.3rem;
  }
}

.points-game-actions .points-game-btn:disabled {
  opacity: 0.8;
  color: #e7eee8;
}

.points-game-mode,
.points-game-live,
.points-game-pile h3,
.points-game-role,
.points-game-score-label,
.points-game-score-deal,
.points-game-seat [data-seat-status],
.points-game-seat-you [data-seat-count],
.points-game-bank > span:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.points-game-result:not(.is-open) {
  display: none;
}

.points-game-bar {
  gap: 0.4rem 0.65rem;
}

.points-game-center > .points-game-status {
  min-height: 0;
  margin: 0;
  padding: 0.05rem 0.35rem 0.15rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f6e3a8;
}

.points-game-center > .points-game-status.is-error {
  border: 1px solid var(--pg-alert);
  border-radius: 0.5rem;
  background: #3a221c;
  color: #f6f0e4;
}

.points-game .points-game-pile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  padding: 0.15rem 0.2rem 0.25rem;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.points-game .points-game-pile .points-game-btn {
  width: min(100%, 10rem);
  min-height: 44px;
  margin-top: auto;
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.points-game .points-game-pile .points-game-btn:disabled {
  opacity: 0.72;
  color: #d7e2da;
}

.points-game .points-game-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .points-game .points-game-actions {
    margin-top: 0.35rem;
  }
}

.points-game .points-game-actions .points-game-btn {
  flex: 0 1 auto;
  min-width: 6.25rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}

.points-game .points-game-actions [data-act="discard"] {
  order: 1;
}

.points-game .points-game-actions [data-act="declare"] {
  order: 2;
}

.points-game .points-game-actions [data-act="arrange"] {
  order: 3;
  min-width: 0;
  margin-inline-start: 0.35rem;
}

.points-game .points-game-actions [data-act="again"] {
  order: 4;
  min-width: 0;
}

.points-game .points-game-seat {
  box-shadow: none;
}

.points-game .points-game-seat.is-current {
  outline: 2px solid #f6e3a8;
  box-shadow: 0 0 0 3px rgba(246, 227, 168, 0.35);
}

.points-game .points-game-dock {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.points-game .points-game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
}

.points-game-center > .points-game-status {
  box-sizing: border-box;
  height: 1.45rem;
  min-height: 1.45rem;
  padding: 0 0.4rem;
  line-height: 1.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.points-game .points-game-group {
  gap: 0;
  margin-bottom: 0;
  padding: 0 0 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -2px 0 rgba(240, 212, 138, 0.4);
}

.points-game .points-game-group.is-pure { box-shadow: inset 0 -2px 0 #3dba7a; }
.points-game .points-game-group.is-impure { box-shadow: inset 0 -2px 0 #e8b84a; }
.points-game .points-game-group.is-set { box-shadow: inset 0 -2px 0 #8fb4ff; }
.points-game .points-game-group.is-unmatched { box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.28); }

.points-game .points-game-group + .points-game-group {
  margin-left: 0.45rem;
}

.points-game-hand .points-game-card {
  position: relative;
}

.points-game-hand .points-game-card.is-selected,
.points-game-hand .points-game-card.is-selected:hover {
  z-index: 3;
}

@media (min-width: 768px) {
  .points-game-stage {
    gap: 0.5rem;
  }

  .points-game-hand {
    justify-content: center;
    padding-top: 0.75rem;
  }

  .points-game .points-game-actions {
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.45rem;
  }

  .points-game .points-game-actions [data-act="arrange"] {
    margin-inline-start: 1.15rem;
  }
}

@media (max-width: 767px) {
  .points-game-hand {
    justify-content: safe center;
    gap: 0;
    padding-top: 0.75rem;
  }

  .points-game-hand .points-game-card {
    flex: 0 0 2.15rem;
    width: 2.15rem;
    min-height: 3rem;
    padding: 0.12rem 0.1rem;
  }

  .points-game-hand .points-game-card-rank {
    font-size: 0.78rem;
  }

  .points-game-hand .points-game-card-suit {
    font-size: 0.68rem;
  }

  .points-game-hand .points-game-card + .points-game-card {
    margin-left: calc((100% - 14 * 2.15rem) / 13);
  }

  .points-game .points-game-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.4rem;
    margin-top: 0.35rem;
  }

  .points-game .points-game-actions .points-game-btn,
  .points-game .points-game-actions [data-act="arrange"],
  .points-game .points-game-actions [data-act="again"] {
    width: 100%;
    min-width: 0;
    margin-inline-start: 0;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .points-game-stage {
    gap: 0.08rem;
  }

  .points-game .points-game-dock {
    padding: 0.15rem 0.2rem 0.2rem;
  }

  .points-game-center > .points-game-status {
    height: 1.25rem;
    min-height: 1.25rem;
    line-height: 1.25rem;
    font-size: 0.82rem;
  }

  .points-game-hand {
    padding-top: 0.4rem;
  }
}

.points-game-stage > .points-game-felt {
  width: min(100%, 68rem);
  margin-inline: auto;
}

.points-game-rail {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  grid-column: 1 / -1;
  min-width: 0;
}

.points-game .points-game-seat {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.points-game-rail .points-game-seat-you {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-self: center;
  gap: 0.35rem 0.5rem;
  max-width: 11.5rem;
  margin: 0;
  padding: 0.15rem 0.2rem;
}

.points-game-rail .points-game-hand {
  flex: 1 1 auto;
  min-width: 0;
}

.points-game .points-game-dock {
  grid-template-columns: minmax(0, 1fr);
}

.points-game:has(.points-game-result.is-open) .points-game-rail {
  display: none;
}

@media (max-width: 767px) {
  .points-game-rail {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .points-game-rail .points-game-seat-you {
    max-width: none;
  }
}

.points-game .points-game-seat:not(.points-game-seat-you) {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, auto) auto;
  grid-template-areas:
    "avatar name name"
    "avatar score bank";
  align-items: center;
  align-self: start;
  justify-self: center;
  column-gap: 0.45rem;
  row-gap: 0.08rem;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  border: 1px solid rgba(240, 212, 138, 0.62);
  border-radius: 2.4rem;
  background: linear-gradient(180deg, rgba(16, 32, 51, 0.94), rgba(7, 24, 18, 0.9));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-seat-top {
  display: contents;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-avatar {
  grid-area: avatar;
  width: 2.7rem;
  height: 2.7rem;
  box-shadow: 0 0 0 2px #f0d48a;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-seat-top > div {
  grid-area: name;
  min-width: 0;
}

.points-game .points-game-seat:not(.points-game-seat-you) h3 {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-score,
.points-game .points-game-seat:not(.points-game-seat-you) .points-game-bank {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #f6e3a8;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-score {
  grid-area: score;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-bank {
  grid-area: bank;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #1f9a49;
  color: #fff;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-score-value {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #f6e3a8;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-score-value::before,
.points-game .points-game-seat:not(.points-game-seat-you) [data-bank-value]::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 0.22rem;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-score-value::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 2px;
  background: #f6e3a8;
}

.points-game .points-game-seat:not(.points-game-seat-you) [data-bank-value] {
  display: inline-flex;
  align-items: center;
}

.points-game .points-game-seat:not(.points-game-seat-you) [data-bank-value]::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c8, #e8b84a 58%, #a97820);
}

.points-game .points-game-seat:not(.points-game-seat-you).is-current {
  border-color: #f6e3a8;
  outline: none;
  box-shadow:
    0 0 0 2px rgba(246, 227, 168, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.28);
}

.points-game .points-game-seat:not(.points-game-seat-you).is-current .points-game-avatar {
  box-shadow: 0 0 0 2px #fff4cc;
}

@media (max-width: 767px) {
  .points-game .points-game-seat:not(.points-game-seat-you) {
    grid-template-columns: 2.25rem minmax(0, auto) auto;
    justify-self: start;
    padding-right: 0.5rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-avatar {
    width: 2.25rem;
    height: 2.25rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) h3 {
    font-size: 0.86rem;
  }
}

.points-game .points-game-pile .points-game-deck,
.points-game .points-game-pile .points-game-discard {
  width: 3.45rem;
  height: 4.7rem;
  min-height: 4.7rem;
  margin: 0.45rem 0 0;
}

.points-game .points-game-pile .points-game-card-rank {
  font-size: 1.2rem;
}

.points-game .points-game-pile .points-game-card-suit {
  font-size: 1.05rem;
}

.points-game .points-game-pile .points-game-btn {
  width: auto;
  min-width: 3.6rem;
  min-height: 1.65rem;
  margin-top: auto;
  padding: 0.08rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 767px) and (max-height: 700px) {
  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    width: 2.85rem;
    height: 3.9rem;
    min-height: 3.9rem;
    margin-top: 0.25rem;
  }
}

.points-game .points-game-card,
.points-game .points-game-discard {
  position: relative;
  border: 1px solid #b8893e;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #fffaf0 0%, #f4e4c4 100%);
  color: #1a2744;
  box-shadow:
    inset 0 0 0 1px #e8c56a,
    inset 0 0 0 3px #fffaf0,
    inset 0 0 0 4px #c4a15a,
    0 2px 5px rgba(0, 0, 0, 0.28);
}

.points-game .points-game-card.is-red,
.points-game .points-game-discard.is-red {
  color: #a32020;
}

.points-game .points-game-card.is-joker,
.points-game .points-game-discard.is-joker {
  color: #9a4e08;
}

.points-game .points-game-card::after,
.points-game .points-game-discard:has(.points-game-card-rank)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.62rem;
  height: 0.62rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.42;
  background:
    radial-gradient(circle, #c45c12 0 16%, transparent 17% 28%, #c4a15a 29% 38%, transparent 39%),
    repeating-conic-gradient(from 0deg, #c4a15a 0 10deg, transparent 10deg 45deg);
}

.points-game .points-game-card.is-selected,
.points-game .points-game-card.is-selected:hover {
  border-color: #f6e3a8;
  box-shadow:
    inset 0 0 0 1px #e8c56a,
    inset 0 0 0 3px #fffaf0,
    inset 0 0 0 4px #c4a15a,
    0 0 0 2px #f6e3a8,
    0 8px 12px rgba(0, 0, 0, 0.32);
}

.points-game .points-game-rail .points-game-seat-you {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, auto) auto;
  grid-template-areas:
    "avatar name name"
    "avatar score bank";
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  gap: 0.08rem 0.45rem;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  border: 1px solid rgba(240, 212, 138, 0.62);
  border-radius: 2.4rem;
  background: linear-gradient(180deg, rgba(16, 32, 51, 0.94), rgba(7, 24, 18, 0.9));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.points-game .points-game-rail .points-game-seat-you .points-game-seat-top {
  display: contents;
}

.points-game .points-game-rail .points-game-seat-you .points-game-avatar {
  grid-area: avatar;
  width: 2.7rem;
  height: 2.7rem;
  box-shadow: 0 0 0 2px #f0d48a;
}

.points-game .points-game-rail .points-game-seat-you .points-game-seat-top > div {
  grid-area: name;
  min-width: 0;
}

.points-game .points-game-rail .points-game-seat-you h3 {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.points-game .points-game-rail .points-game-seat-you .points-game-score,
.points-game .points-game-rail .points-game-seat-you .points-game-bank {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #f6e3a8;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.points-game .points-game-rail .points-game-seat-you .points-game-score {
  grid-area: score;
}

.points-game .points-game-rail .points-game-seat-you .points-game-bank {
  grid-area: bank;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #1f9a49;
  color: #fff;
}

.points-game .points-game-rail .points-game-seat-you .points-game-score-value {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #f6e3a8;
}

.points-game .points-game-rail .points-game-seat-you .points-game-score-value::before,
.points-game .points-game-rail .points-game-seat-you [data-bank-value]::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 0.22rem;
}

.points-game .points-game-rail .points-game-seat-you .points-game-score-value::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 2px;
  background: #f6e3a8;
}

.points-game .points-game-rail .points-game-seat-you [data-bank-value] {
  display: inline-flex;
  align-items: center;
}

.points-game .points-game-rail .points-game-seat-you [data-bank-value]::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c8, #e8b84a 58%, #a97820);
}

.points-game .points-game-rail .points-game-seat-you.is-current {
  border-color: #f6e3a8;
  outline: none;
  box-shadow:
    0 0 0 2px rgba(246, 227, 168, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.28);
}

.points-game .points-game-rail .points-game-seat-you.is-current .points-game-avatar {
  box-shadow: 0 0 0 2px #fff4cc;
}

@media (max-width: 767px) {
  .points-game .points-game-rail .points-game-seat-you {
    grid-template-columns: 2.25rem minmax(0, auto) auto;
    align-self: flex-start;
    padding-right: 0.5rem;
  }

  .points-game .points-game-rail .points-game-seat-you .points-game-avatar {
    width: 2.25rem;
    height: 2.25rem;
  }

  .points-game .points-game-rail .points-game-seat-you h3 {
    font-size: 0.86rem;
  }
}

.points-game {
  background-color: #071610;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(232, 212, 168, 0.07), transparent 46%);
  border-color: rgba(201, 176, 132, 0.28);
}

.points-game-felt {
  border: 2px solid #d9c39a;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.05), transparent 48%),
    radial-gradient(ellipse at 50% 48%, #2c9460 0%, #1b7348 58%, #124e34 100%);
  box-shadow:
    inset 0 0 0 7px #0c3426,
    inset 0 0 0 8px rgba(217, 195, 154, 0.72),
    0 12px 20px rgba(0, 0, 0, 0.3);
}

.points-game-felt::before {
  opacity: 0.28;
}

.points-game .points-game-card,
.points-game .points-game-discard {
  background: linear-gradient(180deg, #fffdf8 0%, #f6f0e4 100%);
  color: #172033;
}

.points-game .points-game-card::after,
.points-game .points-game-discard:has(.points-game-card-rank)::after {
  width: 0.5rem;
  height: 0.5rem;
  opacity: 0.2;
}

.points-game .points-game-pile .points-game-btn {
  min-width: 4.6rem;
  min-height: 44px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
}

.points-game .points-game-actions [data-act="discard"]:not(:disabled) {
  border-color: #e4c4be;
  background: linear-gradient(180deg, #9a534c, #7d3d38);
  color: #fff8f6;
}

.points-game .points-game-actions [data-act="declare"]:not(:disabled) {
  border-color: #e4d2a2;
  background: linear-gradient(180deg, #1f6b45, #0f3d2c);
  color: #f6e7c4;
}

@media (max-width: 767px) and (max-height: 700px) {
  .points-game-felt {
    border-width: 2px;
    box-shadow:
      inset 0 0 0 4px #0c3426,
      inset 0 0 0 5px rgba(217, 195, 154, 0.72),
      0 8px 14px rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .points-game {
    padding-top: 0;
  }

  .points-game-bar {
    gap: 0.25rem 0.5rem;
    padding-bottom: 0;
  }

  .points-game-felt {
    padding: 0.1rem 0.15rem;
  }

  .points-game-hand {
    margin-top: 0;
    margin-bottom: 0.1rem;
  }

  .points-game .points-game-dock {
    padding: 0.15rem 0.2rem 0;
  }

  .points-game .points-game-actions {
    margin-top: 0.25rem;
  }
}

@media (min-width: 768px) {
  .points-game .points-game-felt {
    min-height: clamp(26rem, 48vh, 32rem);
    grid-template-rows: auto minmax(0, 1fr);
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .points-game .points-game-rail {
    align-self: end;
  }

  .points-game .points-game-dock {
    width: min(100%, 68rem);
    margin: -0.5rem auto 0;
    padding: 0.45rem 0.75rem 0.6rem;
    border: 2px solid #d9c39a;
    border-top: 0;
    border-radius: 0 0 1.15rem 1.15rem;
    background: #124e34;
  }
}

@media (max-width: 767px) and (min-height: 800px) {
  .points-game .points-game-felt {
    min-height: clamp(26rem, 50vh, 28rem);
    grid-template-rows: auto auto minmax(0, 1fr);
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .points-game .points-game-rail {
    align-self: end;
  }

  .points-game .points-game-dock {
    margin-top: -0.15rem;
    padding-top: 0.35rem;
    border: 2px solid #d9c39a;
    border-top: 0;
    border-radius: 0 0 0.9rem 0.9rem;
    background: #124e34;
  }
}

.points-game-hand .points-game-card {
  flex: 0 0 auto;
  max-width: none;
}

@media (min-width: 768px) {
  .points-game-hand .points-game-card {
    flex-basis: 3.35rem;
    width: 3.35rem;
    min-height: 4.7rem;
    height: 4.7rem;
    padding: 0.28rem 0.32rem 0.34rem;
  }

  .points-game-hand .points-game-card-rank {
    font-size: 1.12rem;
  }

  .points-game-hand .points-game-card-suit {
    font-size: 1rem;
  }

  .points-game-hand .points-game-card + .points-game-card {
    margin-left: -0.85rem;
  }
}

@media (max-width: 767px) {
  .points-game-hand .points-game-card {
    flex-basis: 2.45rem;
    width: 2.45rem;
    min-height: 3.55rem;
    height: 3.55rem;
    padding: 0.16rem 0.14rem 0.18rem;
  }

  .points-game-hand .points-game-card-rank {
    font-size: 0.95rem;
  }

  .points-game-hand .points-game-card-suit {
    font-size: 0.84rem;
  }

  .points-game-hand .points-game-card + .points-game-card {
    margin-left: calc((100% - 14 * 2.45rem) / 13);
  }
}

.points-game .points-game-piles {
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  gap: 1.5rem;
}

.points-game .points-game-pile [data-stock-count] {
  position: absolute;
  left: 50%;
  bottom: calc(44px + 0.35rem);
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
}

.points-game .points-game-pile .points-game-btn {
  margin-top: 0.4rem;
}

.points-game .points-game-pile {
  flex: 0 0 auto;
  width: auto;
}

@media (min-width: 768px) {
  .points-game .points-game-felt {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .points-game .points-game-center {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 100%;
  }

  .points-game .points-game-rail {
    grid-row: 3;
  }

  .points-game .points-game-piles {
    gap: 2.4rem;
  }

  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    width: 4.6rem;
    height: 6.35rem;
    min-height: 6.35rem;
  }

  .points-game .points-game-pile .points-game-card-rank {
    font-size: 1.45rem;
  }

  .points-game .points-game-pile .points-game-card-suit {
    font-size: 1.25rem;
  }
}

@media (max-width: 767px) and (min-height: 800px) {
  .points-game .points-game-felt {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .points-game .points-game-center {
    align-self: center;
    justify-self: center;
  }

  .points-game .points-game-rail {
    grid-row: 3;
    align-self: end;
  }

  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    width: 3.7rem;
    height: 5.1rem;
    min-height: 5.1rem;
  }

  .points-game .points-game-piles {
    margin-top: 4.5rem;
  }
}

.points-game {
  position: relative;
  background-color: #10080a;
  background-image:
    radial-gradient(ellipse 18rem 8rem at 0% 0%, rgba(168, 28, 46, 0.92), rgba(80, 10, 22, 0.35) 48%, transparent 74%),
    radial-gradient(ellipse 18rem 8rem at 100% 0%, rgba(168, 28, 46, 0.92), rgba(80, 10, 22, 0.35) 48%, transparent 74%),
    radial-gradient(ellipse at 50% 42%, #2c1814 0%, #140c0e 46%, #070405 100%);
  border-color: rgba(232, 196, 150, 0.28);
}

.points-game::before,
.points-game::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 8rem;
  pointer-events: none;
  background: url("../images/points-rummy/curtain.svg") center / 100% 100% no-repeat;
}

.points-game::before { left: 0; }

.points-game::after {
  right: 0;
  transform: scaleX(-1);
}

.points-game .points-game-bar,
.points-game .points-game-dock {
  position: relative;
  z-index: 2;
}

.points-game .points-game-felt {
  border: 12px solid #f0e2b8;
  border-radius: 1.7rem;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.08), transparent 46%),
    radial-gradient(ellipse at 50% 48%, #2eae58 0%, #1b8d40 62%, #157438 100%);
  box-shadow:
    inset 0 0 0 3px #b8893e,
    inset 0 0 0 6px #f6ead0,
    0 14px 24px rgba(0, 0, 0, 0.4);
}

.points-game .points-game-center {
  justify-content: flex-start;
  padding-top: 0;
}

.points-game .points-game-piles {
  order: 1;
  margin-top: 0.15rem;
  gap: 1.75rem;
}

.points-game .points-game-center > .points-game-status {
  order: 2;
  margin-top: 0.2rem;
}

.points-game .points-game-pile .points-game-deck,
.points-game .points-game-pile .points-game-discard {
  width: 3.2rem;
  height: 4.4rem;
  min-height: 4.4rem;
}

.points-game .points-game-seat:not(.points-game-seat-you) {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  align-self: start;
  justify-self: center;
  column-gap: 0.4rem;
  row-gap: 0.12rem;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-avatar {
  grid-area: avatar;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #f3e6c4;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-seat-top > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.points-game .points-game-seat:not(.points-game-seat-you) h3 {
  margin: 0;
  padding: 0.14rem 0.6rem;
  border-radius: 0.35rem;
  background: #5b2d86;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.15;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-score {
  grid-area: score;
  margin: 0;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-bank {
  grid-area: bank;
  margin: 0;
}

.points-game .points-game-rail {
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.points-game .points-game-rail .points-game-hand {
  order: 1;
  width: min(100%, 46rem);
}

.points-game .points-game-rail .points-game-seat-you {
  order: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  align-self: center;
  column-gap: 0.4rem;
  row-gap: 0.12rem;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.points-game .points-game-rail .points-game-seat-you .points-game-avatar {
  grid-area: avatar;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #f3e6c4;
}

.points-game .points-game-rail .points-game-seat-you .points-game-seat-top > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.points-game .points-game-rail .points-game-seat-you h3 {
  margin: 0;
  padding: 0.14rem 0.7rem;
  border-radius: 0.35rem;
  background: #5b2d86;
  color: #fff;
  font-size: 0.8rem;
}

.points-game .points-game-rail .points-game-seat-you .points-game-score {
  grid-area: score;
  margin: 0;
}

.points-game .points-game-rail .points-game-seat-you .points-game-bank {
  grid-area: bank;
  margin: 0;
}

.points-game .points-game-dock {
  width: min(100%, 68rem);
  margin: 0.2rem auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 768px) {
  .points-game {
    padding-left: 8rem;
    padding-right: 8rem;
  }

  .points-game::before,
  .points-game::after {
    width: 8rem;
  }

  .points-game .points-game-felt {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "seat1 seat2"
      "center center";
    grid-template-rows: auto auto auto;
    padding: 0.65rem 1.2rem 0.35rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) {
    margin-bottom: -1.15rem;
  }

  .points-game .points-game-center {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .points-game .points-game-rail {
    grid-row: 3;
  }

  .points-game-hand .points-game-card + .points-game-card {
    margin-left: -1.45rem;
  }
}

@media (max-width: 767px) {
  .points-game::before,
  .points-game::after {
    width: 1.35rem;
  }

  .points-game .points-game-felt {
    border-width: 8px;
    padding: 0.85rem 0.4rem 0.9rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) {
    margin-top: 0;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-avatar,
  .points-game .points-game-rail .points-game-seat-you .points-game-avatar {
    width: 2.3rem;
    height: 2.3rem;
  }

  .points-game .points-game-piles {
    margin-top: 0.2rem;
    gap: 1rem;
  }

  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    width: 2.7rem;
    height: 3.7rem;
    min-height: 3.7rem;
  }

  .points-game .points-game-rail .points-game-seat-you {
    margin-bottom: -0.7rem;
  }

  .points-game .points-game-dock {
    margin-top: 0.85rem;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-avatar,
  .points-game .points-game-rail .points-game-seat-you .points-game-avatar {
    width: 2rem;
    height: 2rem;
  }

  .points-game .points-game-felt {
    border-width: 5px;
    padding: 0.3rem 0.25rem 0.12rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) {
    margin-bottom: -0.2rem;
  }

  .points-game .points-game-piles {
    margin-top: 0;
  }

  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    height: 3.25rem;
    min-height: 3.25rem;
  }

  .points-game .points-game-rail {
    gap: 0.12rem;
  }

  .points-game .points-game-dock {
    margin-top: 0.08rem;
  }

  .points-game .points-game-actions {
    margin-top: 0;
  }

  .points-game-hand {
    padding-top: 0.75rem;
  }
}

/* Phase B: emerald table. Curtain art stays on disk and is not the stage background. */
.points-game {
  --pg-felt: #123F32;
  --pg-deep: #0B2B23;
  --pg-panel: #185441;
  --pg-gold: #D6B779;
  --pg-gold-hi: #F0D9A0;
  --pg-ivory: #F7F3E8;
  --pg-muted: #C7D2C8;
  --pg-alert: #B94B45;
  margin-top: 0.35rem;
  padding: 0.35rem 0.45rem 0.45rem;
  background-color: var(--pg-deep);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(214, 183, 121, 0.1), transparent 38%),
    linear-gradient(180deg, #164e3c 0%, var(--pg-deep) 100%);
  border-color: rgba(214, 183, 121, 0.4);
}

.points-game::before,
.points-game::after {
  content: none;
  width: 0;
  background: none;
}

.points-game-page .crumbs {
  margin-bottom: 0.15rem;
}

.points-game-page h1 {
  margin: 0.1rem 0 0.35rem;
}

.points-game .points-game-felt {
  border: 8px solid var(--pg-gold);
  border-radius: 1.35rem;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 8px),
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.07), transparent 46%),
    radial-gradient(ellipse at 50% 50%, #185441 0%, var(--pg-felt) 64%, #0d3328 100%);
  box-shadow:
    inset 0 0 0 2px var(--pg-gold-hi),
    inset 0 12px 22px rgba(0, 0, 0, 0.16),
    0 10px 18px rgba(0, 0, 0, 0.22);
}

.points-game .points-game-seat:not(.points-game-seat-you) h3,
.points-game .points-game-rail .points-game-seat-you h3 {
  background: var(--pg-deep);
  color: var(--pg-ivory);
  box-shadow: inset 0 0 0 1px rgba(214, 183, 121, 0.45);
}

.points-game .points-game-seat.is-current .points-game-avatar {
  box-shadow: 0 0 0 3px var(--pg-gold-hi);
}

.points-game .points-game-seat.is-current h3 {
  background: #164e3c;
  color: var(--pg-gold-hi);
  box-shadow: 0 0 0 1px var(--pg-gold);
}

.points-game .points-game-seat:not(.points-game-seat-you) [data-seat-status] {
  position: static;
  width: auto;
  max-width: 7.2rem;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: auto;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 0;
  color: var(--pg-muted);
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: left;
  pointer-events: none;
}

.points-game .points-game-card {
  background: #FFFDF7;
  border-color: #e6d8bf;
  border-radius: 0.38rem;
  box-shadow: 0 1px 2px rgba(11, 43, 35, 0.18);
}

.points-game .points-game-hand .points-game-card.is-selected,
.points-game .points-game-hand .points-game-card.is-selected:hover {
  border-color: var(--pg-gold);
  box-shadow: 0 0 0 2px var(--pg-gold-hi), 0 8px 12px rgba(0, 0, 0, 0.22);
  transform: translateY(-7px);
}

.points-game .points-game-btn {
  border-radius: 999px;
  border-color: rgba(214, 183, 121, 0.55);
}

.points-game .points-game-btn:hover {
  border-color: var(--pg-gold-hi);
}

.points-game .points-game-btn:active {
  transform: translateY(1px);
}

.points-game .points-game-btn:focus-visible,
.points-game .points-game-card:focus-visible {
  outline: 2px solid var(--pg-gold-hi);
  outline-offset: 2px;
}

.points-game .points-game-btn:disabled,
.points-game .points-game-actions .points-game-btn:disabled,
.points-game .points-game-pile .points-game-btn:disabled {
  opacity: 0.5;
  color: var(--pg-muted);
  border-color: rgba(199, 210, 200, 0.35);
}

.points-game .points-game-result.is-open {
  border-color: var(--pg-gold);
  background-color: var(--pg-deep);
  color: var(--pg-ivory);
}

@media (min-width: 768px) {
  .points-game {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .points-game::before,
  .points-game::after {
    content: none;
    width: 0;
    background: none;
  }

  .points-game-hand .points-game-card + .points-game-card {
    margin-left: -0.85rem;
  }
}

@media (max-width: 767px) {
  .points-game::before,
  .points-game::after {
    content: none;
    width: 0;
    background: none;
  }

  .points-game .points-game-felt {
    border-width: 6px;
    padding: 0.55rem 0.35rem 0.45rem;
  }

  .points-game-hand .points-game-card + .points-game-card {
    margin-left: -0.72rem;
  }

  .points-game .points-game-result.is-open {
    width: min(22rem, calc(100% - 1rem));
    padding: 0.7rem 0.65rem;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .points-game {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0.2rem;
  }

  .points-game-page h1 {
    margin: 0 0 0.15rem;
    font-size: 1.2rem;
  }

  .points-game .points-game-bar {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .points-game .points-game-bar .points-game-btn {
    min-width: 0;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .points-game .points-game-felt {
    padding: 0.45rem 0.4rem 0.1rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    column-gap: 0.2rem;
    row-gap: 0;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) h3 {
    margin-top: 0;
  }

  .points-game .points-game-dock {
    margin-top: 0.15rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) [data-seat-status] {
    margin-top: 0.04rem;
    font-size: 0.62rem;
  }
}

@media (max-width: 932px) and (max-height: 480px) and (orientation: landscape) {
  body:has(.points-game-page) .site-header,
  body:has(.points-game-page) .header-inner {
    min-height: 40px;
  }

  body:has(.points-game-page) .brand {
    font-size: 0.95rem;
  }

  body:has(.points-game-page) .brand-mark {
    width: 28px;
    height: 28px;
  }

  .points-game {
    margin-top: 0;
    padding: 0.1rem 0.3rem 0.15rem;
  }

  .points-game-page .crumbs {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .points-game-page > .wrap > h1 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .points-game-page {
    padding-top: 0;
    padding-bottom: 0;
  }

  .points-game .points-game-bar {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .points-game .points-game-felt {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "seat1 center seat2"
      "rail rail rail";
    grid-template-rows: auto auto;
    border-width: 4px;
    padding: 0.2rem 0.4rem 0.1rem;
  }

  .points-game .points-game-seat[data-seat="1"] {
    grid-area: seat1;
  }

  .points-game .points-game-seat[data-seat="2"] {
    grid-area: seat2;
  }

  .points-game .points-game-center {
    position: relative;
    grid-area: center;
    grid-row: auto;
    grid-column: auto;
    padding-top: 0;
  }

  .points-game .points-game-center > .points-game-status {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    width: max-content;
    max-width: 14rem;
    margin: 0;
    padding: 0 0.3rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(11, 43, 35, 0.88);
    font-size: 0.72rem;
    line-height: 1.2;
    pointer-events: none;
  }

  .points-game .points-game-pile {
    gap: 0.1rem;
    padding: 0;
  }

  .points-game .points-game-rail {
    grid-area: rail;
    grid-row: auto;
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you),
  .points-game .points-game-rail .points-game-seat-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: 7.2rem;
    margin: 0;
    padding: 0;
  }

  .points-game .points-game-rail .points-game-seat-you {
    order: 0;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 6.5rem;
  }

  .points-game .points-game-rail .points-game-hand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-avatar,
  .points-game .points-game-rail .points-game-seat-you .points-game-avatar {
    width: 1.8rem;
    height: 1.8rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) h3,
  .points-game .points-game-rail .points-game-seat-you h3 {
    margin-top: 0.04rem;
    padding: 0.02rem 0.35rem;
    font-size: 0.68rem;
  }

  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    width: 2.4rem;
    height: 2.85rem;
    min-height: 2.85rem;
    margin-top: 0;
  }

  .points-game-hand .points-game-card {
    min-height: 3.15rem;
    height: 3.15rem;
  }

  .points-game .points-game-dock {
    margin-top: 0.05rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .points-game .points-game-actions {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 0;
  }

  .points-game .points-game-actions .points-game-btn {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 767px) and (max-height: 600px) {
  body:has(.points-game-page) .brand {
    font-size: 0.84rem;
    white-space: nowrap;
  }

  body:has(.points-game-page) .brand-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .points-game-page .crumbs {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.15;
  }

  .points-game-page h1 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
  }

  .points-game .points-game-bar {
    flex-wrap: nowrap;
    gap: 0.2rem;
  }

  .points-game .points-game-bar .points-game-btn {
    min-width: 0;
    padding: 0.15rem 0.4rem;
    font-size: 0.68rem;
  }

  .points-game .points-game-felt {
    border-width: 4px;
    padding: 0.45rem 0.5rem 0;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    column-gap: 0.15rem;
    row-gap: 0;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-avatar,
  .points-game .points-game-rail .points-game-seat-you .points-game-avatar {
    width: 1.65rem;
    height: 1.65rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) h3,
  .points-game .points-game-rail .points-game-seat-you h3 {
    margin-top: 0;
    padding: 0.04rem 0.35rem;
    font-size: 0.68rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) [data-seat-status] {
    margin: 0;
    max-width: 4.6rem;
    font-size: 0.58rem;
  }

  .points-game .points-game-pile {
    gap: 0.12rem;
    padding: 0;
  }

  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    width: 2.3rem;
    height: 2.85rem;
    min-height: 2.85rem;
    margin-top: 0;
  }

  .points-game .points-game-pile [data-stock-count] {
    position: absolute;
    top: 0.1rem;
    bottom: auto;
    left: 50%;
    z-index: 1;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 0.2rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(11, 43, 35, 0.88);
    line-height: 1.15;
  }

  .points-game .points-game-pile .points-game-btn {
    margin-top: 0;
  }

  .points-game .points-game-center > .points-game-status {
    margin: 0;
    padding: 0;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .points-game-hand {
    padding-top: 0.75rem;
    padding-bottom: 0;
  }

  .points-game .points-game-rail {
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
  }

  .points-game .points-game-rail .points-game-hand {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
  }

  .points-game .points-game-rail .points-game-seat-you {
    display: flex;
    flex: 0 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    order: 0;
    width: auto;
    max-width: 42%;
    margin: 0;
    column-gap: 0.2rem;
    row-gap: 0;
  }

  .points-game .points-game-rail .points-game-seat-you .points-game-score,
  .points-game .points-game-rail .points-game-seat-you .points-game-bank {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.1;
  }

  .points-game .points-game-dock {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .points-game .points-game-seat:not(.points-game-seat-you) {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "avatar name status"
      "avatar score bank";
    align-items: center;
    justify-content: start;
    column-gap: 0.25rem;
    row-gap: 0.04rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-seat-top,
  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-seat-top > div {
    display: contents;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-avatar {
    grid-area: avatar;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) h3 {
    grid-area: name;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) [data-seat-status] {
    grid-area: status;
    max-width: 100%;
    min-width: 0;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-score {
    grid-area: score;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-bank {
    grid-area: bank;
    justify-self: start;
  }
}

.points-game .points-game-pile {
  display: grid;
  grid-template-areas: "card";
  justify-items: center;
  align-items: start;
  width: max-content;
  max-width: 100%;
  gap: 0;
  padding: 0;
}

.points-game .points-game-pile .points-game-deck,
.points-game .points-game-pile .points-game-discard {
  grid-area: card;
  width: 4.15rem;
  height: 5.75rem;
  min-height: 5.75rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  cursor: default;
  touch-action: manipulation;
}

.points-game .points-game-pile .points-game-deck {
  padding: 0;
}

.points-game .points-game-pile .points-game-deck::before,
.points-game .points-game-pile .points-game-deck::after {
  pointer-events: auto;
}

.points-game .points-game-pile.is-ready .points-game-deck:not(:disabled),
.points-game .points-game-pile.is-ready .points-game-discard:not(:disabled) {
  cursor: pointer;
}

.points-game .points-game-pile.is-ready [data-act="draw-stock"]:not(:disabled) {
  border-color: #f0d48a;
  background-color: #1c4f9c;
  background-image: url("../images/points-rummy/card-back.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: inherit;
}

.points-game .points-game-pile.is-ready [data-act="draw-discard"]:not(:disabled) {
  border-color: #d9d3c6;
  background: linear-gradient(180deg, #fff 0%, #f7f4ee 100%);
  color: #1c1c1c;
}

.points-game .points-game-pile.is-ready [data-act="draw-discard"].is-red:not(:disabled) {
  color: #d0122d;
}

.points-game .points-game-pile.is-ready [data-act="draw-discard"].is-joker:not(:disabled) {
  color: #8a5a00;
}

.points-game .points-game-pile .points-game-deck:focus-visible,
.points-game .points-game-pile .points-game-discard:focus-visible {
  outline: 3px solid #FFF4C8;
  outline-offset: 2px;
}

.points-game .points-game-pile [data-stock-count] {
  grid-area: card;
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 3;
  width: auto;
  height: auto;
  margin: 0 0 0.35rem;
  padding: 0 0.24rem;
  transform: none;
  align-self: end;
  justify-self: center;
  border-radius: 999px;
  background: rgba(11, 43, 35, 0.72);
  color: #FFF4C8;
  font-size: 0.66rem;
  line-height: 1.2;
  pointer-events: none;
}

.points-game .points-game-pile:not(.is-ready) [data-stock-count] {
  opacity: 0.72;
}

@media (max-width: 767px) {
  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    width: 3.7rem;
    height: 5.05rem;
    min-height: 5.05rem;
  }
}

@media (max-width: 767px) and (max-height: 600px) {
  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    width: 3.35rem;
    height: 4.45rem;
    min-height: 4.45rem;
  }

  .points-game .points-game-pile [data-stock-count] {
    margin-top: 0;
  }
}

@media (max-width: 767px) and (max-height: 640px) and (orientation: portrait) {
  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    width: 3.35rem;
    height: 4.45rem;
    min-height: 4.45rem;
  }

  .points-game .points-game-pile [data-stock-count] {
    margin-top: 0;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-avatar,
  .points-game .points-game-rail .points-game-seat-you .points-game-avatar {
    width: 1.65rem;
    height: 1.65rem;
  }
}

@media (max-width: 932px) and (max-height: 480px) and (orientation: landscape) {
  .points-game .points-game-pile .points-game-deck,
  .points-game .points-game-pile .points-game-discard {
    width: 2.85rem;
    height: 3.7rem;
    min-height: 3.7rem;
  }

  .points-game .points-game-pile [data-stock-count] {
    margin-top: 0;
  }
}

.points-game .points-game-center > .points-game-status:not(.is-error) {
  width: max-content;
  max-width: calc(100% - 0.4rem);
  align-self: center;
  justify-self: center;
  height: auto;
  min-height: 0;
  margin-top: 0.2rem;
  padding: 0.08rem 0.6rem;
  border: 2px solid #FFF4C8;
  border-radius: 0.4rem;
  background: transparent;
  box-shadow: none;
  line-height: 1.25;
}

.points-game .points-game-hand .points-game-group-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.points-game .points-game-actions [data-act="discard"]:disabled {
  opacity: 1;
  filter: none;
  border-color: #f3d5ce;
  background: linear-gradient(180deg, #c48a82, #a86a62);
  color: #fff8f6;
}

.points-game .points-game-actions [data-act="declare"]:disabled {
  opacity: 1;
  filter: none;
  border-color: #e7d7a8;
  background: linear-gradient(180deg, #3d8f68, #2a6b4c);
  color: #f8edd0;
}

.points-game .points-game-seat.is-current,
.points-game .points-game-seat:not(.points-game-seat-you).is-current,
.points-game .points-game-rail .points-game-seat-you.is-current {
  outline: none;
  border-color: #D6B779;
  box-shadow:
    inset 0 0 0 3px #0B2B23,
    inset 0 0 0 4px rgba(214, 183, 121, 0.85);
}

.points-game .points-game-seat.is-turn {
  animation: none;
}

.points-game .points-game-seat:not(.points-game-seat-you).is-current .points-game-avatar,
.points-game .points-game-rail .points-game-seat-you.is-current .points-game-avatar {
  box-shadow: 0 0 0 3px #FFF6D0, 0 0 10px 2px rgba(255, 244, 200, 0.9);
}

.points-game .points-game-seat.is-current h3 {
  background: var(--pg-deep);
  color: var(--pg-ivory);
  box-shadow: inset 0 0 0 1px rgba(214, 183, 121, 0.45);
}

.points-game .points-game-seat:not(.points-game-seat-you),
.points-game .points-game-rail .points-game-seat-you {
  padding: 0.34rem 0.5rem 0.34rem 0.42rem;
  border: 1px solid #D6B779;
  border-radius: 2px;
  background-color: #0B2B23;
  background-image:
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    radial-gradient(circle at center, #C47A3A 0 2px, transparent 2.4px),
    radial-gradient(circle at center, #C47A3A 0 2px, transparent 2.4px),
    radial-gradient(circle at center, #C47A3A 0 2px, transparent 2.4px),
    radial-gradient(circle at center, #C47A3A 0 2px, transparent 2.4px);
  background-repeat: no-repeat;
  background-size:
    10px 1.5px, 1.5px 10px,
    10px 1.5px, 1.5px 10px,
    10px 1.5px, 1.5px 10px,
    10px 1.5px, 1.5px 10px,
    6px 6px, 6px 6px, 6px 6px, 6px 6px;
  background-position:
    left 6px top 6px, left 6px top 6px,
    right 6px top 6px, right 6px top 6px,
    left 6px bottom 6px, left 6px bottom 6px,
    right 6px bottom 6px, right 6px bottom 6px,
    left 4px top 4px, right 4px top 4px,
    left 4px bottom 4px, right 4px bottom 4px;
  box-shadow:
    inset 0 0 0 3px #0B2B23,
    inset 0 0 0 4px rgba(214, 183, 121, 0.85);
}

/* Indian table dress: jali, paisley corners, zari hems. */
.points-game .points-game-bar {
  position: relative;
  padding-bottom: 0.42rem;
  background-image:
    radial-gradient(circle at 50% calc(100% - 1px), #C47A3A 0 2.5px, #F0D9A0 2.6px 3.4px, transparent 3.6px),
    linear-gradient(#D6B779, #D6B779),
    linear-gradient(#D6B779, #D6B779),
    radial-gradient(circle at 50% 100%, #C47A3A 0 1.4px, transparent 1.7px);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat-x;
  background-size: 12px 8px, calc(50% - 10px) 1px, calc(50% - 10px) 1px, 12px 6px;
  background-position: center bottom, left bottom, right bottom, left bottom;
}

.points-game .points-game-dock {
  position: relative;
  padding-top: 0.42rem;
  background-image:
    radial-gradient(circle at 50% 1px, #C47A3A 0 2.5px, #F0D9A0 2.6px 3.4px, transparent 3.6px),
    linear-gradient(#D6B779, #D6B779),
    linear-gradient(#D6B779, #D6B779),
    radial-gradient(circle at 50% 0, #C47A3A 0 1.4px, transparent 1.7px);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat-x;
  background-size: 12px 8px, calc(50% - 10px) 1px, calc(50% - 10px) 1px, 12px 6px;
  background-position: center top, left top, right top, left top;
}

.points-game .points-game-felt {
  background:
    repeating-linear-gradient(45deg, rgba(240, 217, 160, 0.1) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-45deg, rgba(240, 217, 160, 0.08) 0 1px, transparent 1px 13px),
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.07), transparent 46%),
    radial-gradient(ellipse at 50% 50%, #185441 0%, var(--pg-felt) 64%, #0d3328 100%);
  box-shadow:
    inset 0 0 0 1px #F0D9A0,
    inset 0 0 0 4px #0B2B23,
    inset 0 0 0 5px #C47A3A,
    inset 0 12px 22px rgba(0, 0, 0, 0.16),
    0 10px 18px rgba(0, 0, 0, 0.22);
}

.points-game .points-game-felt::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g transform='rotate(135 12 12)'><path fill='%23C47A3A' d='M12 2c2.8 3.6 4.6 7 3.6 10.4C14.4 16.6 12 19 12 20c0-1-2.4-3.4-3.6-7.6C7.4 9 9.2 5.6 12 2z'/><path fill='none' stroke='%23F0D9A0' stroke-width='.8' d='M12 5c1.8 2.4 3 4.8 2.2 7.2-.7 2.4-2.2 4.2-2.2 5 0-.8-1.5-2.6-2.2-5C9 9.8 10.2 7.4 12 5z'/><circle cx='12' cy='11' r='1' fill='%23F0D9A0'/></g></svg>"),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g transform='rotate(225 12 12)'><path fill='%23C47A3A' d='M12 2c2.8 3.6 4.6 7 3.6 10.4C14.4 16.6 12 19 12 20c0-1-2.4-3.4-3.6-7.6C7.4 9 9.2 5.6 12 2z'/><path fill='none' stroke='%23F0D9A0' stroke-width='.8' d='M12 5c1.8 2.4 3 4.8 2.2 7.2-.7 2.4-2.2 4.2-2.2 5 0-.8-1.5-2.6-2.2-5C9 9.8 10.2 7.4 12 5z'/><circle cx='12' cy='11' r='1' fill='%23F0D9A0'/></g></svg>"),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g transform='rotate(45 12 12)'><path fill='%23C47A3A' d='M12 2c2.8 3.6 4.6 7 3.6 10.4C14.4 16.6 12 19 12 20c0-1-2.4-3.4-3.6-7.6C7.4 9 9.2 5.6 12 2z'/><path fill='none' stroke='%23F0D9A0' stroke-width='.8' d='M12 5c1.8 2.4 3 4.8 2.2 7.2-.7 2.4-2.2 4.2-2.2 5 0-.8-1.5-2.6-2.2-5C9 9.8 10.2 7.4 12 5z'/><circle cx='12' cy='11' r='1' fill='%23F0D9A0'/></g></svg>"),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g transform='rotate(-45 12 12)'><path fill='%23C47A3A' d='M12 2c2.8 3.6 4.6 7 3.6 10.4C14.4 16.6 12 19 12 20c0-1-2.4-3.4-3.6-7.6C7.4 9 9.2 5.6 12 2z'/><path fill='none' stroke='%23F0D9A0' stroke-width='.8' d='M12 5c1.8 2.4 3 4.8 2.2 7.2-.7 2.4-2.2 4.2-2.2 5 0-.8-1.5-2.6-2.2-5C9 9.8 10.2 7.4 12 5z'/><circle cx='12' cy='11' r='1' fill='%23F0D9A0'/></g></svg>");
  background-repeat: no-repeat;
  background-size: 28px 28px, 28px 28px, 28px 28px, 28px 28px;
  background-position: left 2px top 2px, right 2px top 2px, left 2px bottom 2px, right 2px bottom 2px;
}

.points-game .points-game-felt::after {
  content: none;
  background: none;
}

@media (max-width: 767px) {
  .points-game .points-game-felt::before {
    background-size: 18px 18px, 18px 18px, 18px 18px, 18px 18px;
  }
}

@media (min-width: 768px) {
  .points-game .points-game-seat:not(.points-game-seat-you) {
    margin-bottom: 0.45rem;
  }
}

.points-game .points-game-stage {
  position: relative;
}

.points-game .points-game-declare-prompt[hidden] {
  display: none;
}

.points-game .points-game-declare-prompt:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(7, 4, 5, 0.72);
}

.points-game .points-game-declare-card {
  width: 100%;
  max-width: 22rem;
  margin: 0;
  padding: 1rem 1rem 0.9rem;
  border: 1px solid #D6B779;
  border-radius: 2px;
  background: #0B2B23;
  color: #F7F3E8;
  box-shadow:
    inset 0 0 0 3px #0B2B23,
    inset 0 0 0 4px rgba(214, 183, 121, 0.85),
    0 12px 24px rgba(0, 0, 0, 0.35);
}

.points-game .points-game-declare-card h2 {
  margin: 0 0 0.4rem;
  color: #F0D9A0;
  font-size: 1.15rem;
}

.points-game .points-game-declare-card p {
  margin: 0 0 0.55rem;
  color: #F7F3E8;
}

.points-game .points-game-declare-points strong {
  color: #F0D9A0;
}

.points-game .points-game-declare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.points-game .points-game-declare-actions .points-game-btn {
  flex: 1 1 8rem;
  min-height: 44px;
}

.points-game .points-game-card.is-flight {
  position: absolute;
  z-index: 12;
  margin: 0;
  pointer-events: none;
  transform-origin: center center;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.35);
}

.points-game .points-game-discard.is-incoming,
.points-game .points-game-card.is-incoming {
  opacity: 0;
}

.points-game .points-game-card.is-flight.is-back {
  background-color: #0e3a28;
  background-image: url("../images/points-rummy/card-back.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .points-game .points-game-card.is-flight {
    transition: none;
  }
}

.points-game .points-game-actions [data-act="hint"] {
  order: 5;
  min-width: 0;
  min-height: 44px;
}

.points-game .points-game-center > .points-game-status.is-hint {
  height: auto;
  min-height: 0;
  max-width: calc(100% - 0.4rem);
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.points-game .points-game-card.is-hint,
.points-game .points-game-deck.is-hint,
.points-game .points-game-discard.is-hint {
  outline: 3px solid #C47A3A;
  outline-offset: 2px;
}

.points-game .points-game-card.is-flight.is-deal {
  transition-duration: 280ms;
}

.points-game .points-game-back.is-incoming {
  opacity: 0;
}

.points-game.is-dealing .points-game-hand,
.points-game.is-dealing .points-game-piles {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .points-game .points-game-card.is-flight.is-deal {
    transition: none;
  }
}

.points-game .points-game-card:not(.is-back)::after,
.points-game .points-game-discard:has(.points-game-card-rank)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 62%;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 0;
  opacity: 1;
  background-color: transparent;
  background-image: url("../images/points-rummy/card-mandala.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.points-game .points-game-card.is-back::after {
  content: none;
}

.points-game .points-game-card-rank,
.points-game .points-game-card-suit {
  position: relative;
  z-index: 1;
}

/* One table finish: deep green, gold line, saffron only as a thin accent. */
.points-game .points-game-btn {
  border-radius: 999px;
  border-color: #D6B779;
  background: #0B2B23;
  color: #F7F3E8;
}

.points-game .points-game-btn-primary {
  background: linear-gradient(180deg, #F0D9A0, #D6B779);
  color: #0B2B23;
  border-color: #F0D9A0;
}

.points-game .points-game-actions [data-act="arrange"]:not(:disabled),
.points-game .points-game-actions [data-act="again"]:not(:disabled),
.points-game .points-game-actions [data-act="hint"]:not(:disabled) {
  border-color: #D6B779;
  background: #0B2B23;
  color: #F7F3E8;
}

.points-game .points-game-actions [data-act="discard"]:not(:disabled) {
  border-color: #D6B779;
  background: #B94B45;
  color: #F7F3E8;
}

.points-game .points-game-actions [data-act="declare"]:not(:disabled) {
  border-color: #D6B779;
  background: #185441;
  color: #F0D9A0;
}

.points-game .points-game-actions [data-act="discard"]:disabled {
  opacity: 1;
  filter: none;
  border-color: #D6B779;
  background: linear-gradient(180deg, #c48a82, #a86a62);
  color: #fff8f6;
}

.points-game .points-game-actions [data-act="declare"]:disabled {
  opacity: 1;
  filter: none;
  border-color: #D6B779;
  background: linear-gradient(180deg, #3d8f68, #185441);
  color: #F0D9A0;
}

.points-game .points-game-seat:not(.points-game-seat-you) h3,
.points-game .points-game-rail .points-game-seat-you h3,
.points-game .points-game-seat.is-current h3 {
  border-radius: 2px;
  background: #185441;
  color: #F0D9A0;
  box-shadow: inset 0 0 0 1px rgba(214, 183, 121, 0.55);
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-bank,
.points-game .points-game-rail .points-game-seat-you .points-game-bank {
  border: 1px solid #D6B779;
  border-radius: 2px;
  background: #0B2B23;
  color: #F0D9A0;
}

.points-game .points-game-deck {
  border-color: #D6B779;
  background-color: #0B2B23;
  box-shadow:
    -4px -3px 0 #0B2B23,
    -4px -3px 0 1px #D6B779,
    -8px -6px 0 #0B2B23,
    -8px -6px 0 1px rgba(214, 183, 121, 0.85);
}

.points-game .points-game-pile.is-ready [data-act="draw-stock"]:not(:disabled) {
  border-color: #D6B779;
  background-color: #0B2B23;
}

.points-game .points-game-pile [data-stock-count] {
  border: 1px solid #D6B779;
  border-radius: 2px;
  background: #0B2B23;
  color: #F0D9A0;
}

.points-game .points-game-card,
.points-game .points-game-discard {
  border-color: #D6B779;
}

.points-game .points-game-group.is-pure { box-shadow: inset 0 -2px 0 #F0D9A0; }
.points-game .points-game-group.is-impure { box-shadow: inset 0 -2px 0 #C47A3A; }
.points-game .points-game-group.is-set { box-shadow: inset 0 -2px 0 #C7D2C8; }
.points-game .points-game-group.is-unmatched { box-shadow: inset 0 -2px 0 rgba(199, 210, 200, 0.4); }

.points-game-session {
  border: 1px solid #D6B779;
  border-radius: 2px;
  background-color: #0B2B23;
  background-image: none;
  box-shadow:
    inset 0 0 0 3px #0B2B23,
    inset 0 0 0 4px rgba(214, 183, 121, 0.85);
  color: #F7F3E8;
}

.points-game-session h2,
.points-game-session h3 {
  color: #F0D9A0;
}

.points-game-session dl div {
  border: 1px solid rgba(214, 183, 121, 0.45);
  border-radius: 2px;
  background: #123F32;
}

.points-game-session dt {
  color: #C7D2C8;
}

.points-game-session dd {
  color: #F0D9A0;
}

.points-game-session dd.is-up,
.points-game-session li.is-won span:last-child {
  color: #F0D9A0;
}

.points-game-session dd.is-down,
.points-game-session li.is-lost span:last-child,
.points-game-session li.is-invalid span:last-child {
  color: #B94B45;
}

.points-game-session li {
  border-radius: 2px;
  border-bottom-color: transparent;
  background: #123F32;
}

.points-game-session li.is-won {
  background: #185441;
}

.points-game-session li.is-lost,
.points-game-session li.is-invalid {
  background: #3a2422;
}

/* Card face: ivory, gold edge, saffron inner line. Suits stay S/H/D/C. */
.points-game .points-game-card:not(.is-back),
.points-game .points-game-discard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.04rem;
  border: 1px solid #D6B779;
  border-radius: 0.28rem;
  background: #FFFDF7;
  color: #0B2B23;
  box-shadow:
    inset 0 0 0 1px #FFFDF7,
    inset 0 0 0 2px rgba(196, 122, 58, 0.72);
}

.points-game .points-game-card[data-suit="H"],
.points-game .points-game-discard[data-suit="H"] {
  color: #C47A3A;
}

.points-game .points-game-card[data-suit="D"],
.points-game .points-game-discard[data-suit="D"] {
  color: #8E3D32;
}

.points-game .points-game-card[data-suit="S"],
.points-game .points-game-card[data-suit="C"],
.points-game .points-game-discard[data-suit="S"],
.points-game .points-game-discard[data-suit="C"] {
  color: #0B2B23;
}

.points-game .points-game-card[data-suit="JK"],
.points-game .points-game-discard[data-suit="JK"],
.points-game .points-game-card.is-joker,
.points-game .points-game-discard.is-joker {
  color: #C47A3A;
}

.points-game .points-game-card-rank {
  position: relative;
  z-index: 1;
  font-weight: 800;
  line-height: 1;
}

.points-game .points-game-card-suit[data-suit="H"],
.points-game .points-game-card-suit[data-suit="D"],
.points-game .points-game-card-suit[data-suit="S"],
.points-game .points-game-card-suit[data-suit="C"] {
  position: relative;
  z-index: 1;
  display: block;
  width: 0.95em;
  height: 1.05em;
  min-width: 0.72rem;
  min-height: 0.8rem;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.points-game .points-game-card-suit[data-suit="H"] {
  background-image: url("../images/points-rummy/suit-lotus.svg");
}

.points-game .points-game-card-suit[data-suit="D"] {
  background-image: url("../images/points-rummy/suit-diya.svg");
}

.points-game .points-game-card-suit[data-suit="S"] {
  background-image: url("../images/points-rummy/suit-peacock.svg");
}

.points-game .points-game-card-suit[data-suit="C"] {
  background-image: url("../images/points-rummy/suit-paisley.svg");
}

.points-game .points-game-card-suit[data-suit="JK"] {
  position: relative;
  z-index: 1;
  display: block;
  width: 0.95em;
  height: 1.05em;
  min-width: 0.72rem;
  min-height: 0.8rem;
  background-image: url("../images/points-rummy/suit-lotus.svg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.points-game .points-game-card:not(.is-back)::after,
.points-game .points-game-discard:has(.points-game-card-rank)::after {
  width: 38%;
  top: 72%;
  opacity: 0.7;
}

.points-game .points-game-hand .points-game-card.is-selected,
.points-game .points-game-hand .points-game-card.is-selected:hover {
  border-color: #F0D9A0;
  box-shadow:
    inset 0 0 0 1px #FFFDF7,
    inset 0 0 0 2px rgba(196, 122, 58, 0.72),
    0 0 0 2px #F0D9A0,
    0 8px 12px rgba(0, 0, 0, 0.22);
  transform: translateY(-7px);
}

.points-game .points-game-btn {
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(214, 183, 121, 0.45);
}

.points-game .points-game-btn-primary,
.points-game .points-game-btn-declare {
  box-shadow: inset 0 0 0 1px rgba(11, 43, 35, 0.28);
}

.points-game .points-game-actions [data-act="declare"],
.points-game .points-game-actions [data-act="discard"] {
  box-shadow: inset 0 0 0 1px rgba(240, 217, 160, 0.45);
}

/* Indian dress for the table: rangoli corners, toran hems, lotus badges. */
.points-game .points-game-felt::before {
  inset: 9px;
  opacity: 1;
  background-image:
    url("../images/points-rummy/table-corner-tl.svg"),
    url("../images/points-rummy/table-corner-tr.svg"),
    url("../images/points-rummy/table-corner-bl.svg"),
    url("../images/points-rummy/table-corner-br.svg");
  background-repeat: no-repeat;
  background-size: 46px 46px;
  background-position: left top, right top, left bottom, right bottom;
}

@media (max-width: 767px) {
  .points-game .points-game-felt::before {
    background-size: 26px 26px;
  }
}

.points-game:has(.points-game-result.is-open) .points-game-felt::before,
.points-game:has(.points-game-result.is-open) .points-game-center::before {
  display: none;
}

.points-game .points-game-bar {
  background-image:
    linear-gradient(#D6B779, #D6B779),
    url("../images/points-rummy/toran-down.svg");
  background-repeat: no-repeat, repeat-x;
  background-size: 100% 1px, 16px 8px;
  background-position: left bottom 8px, left bottom;
}

.points-game .points-game-dock {
  background-image:
    linear-gradient(#D6B779, #D6B779),
    url("../images/points-rummy/toran-down.svg");
  background-repeat: no-repeat, repeat-x;
  background-size: 100% 1px, 16px 8px;
  background-position: left top, left top 1px;
}

.points-game .points-game-center > .points-game-status:not(.is-error) {
  padding: 0.12rem 0.75rem 0.12rem 1.85rem;
  border: 1px solid #D6B779;
  border-radius: 999px;
  background-color: rgba(11, 43, 35, 0.82);
  background-image: url("../images/points-rummy/lotus-badge.svg");
  background-repeat: no-repeat;
  background-size: 1.1rem 0.6rem;
  background-position: 0.5rem center;
  box-shadow: inset 0 0 0 2px rgba(11, 43, 35, 0.82), inset 0 0 0 3px rgba(196, 122, 58, 0.7);
  color: #F0D9A0;
}

.points-game .points-game-pile.is-ready [data-act="draw-discard"]:not(:disabled) {
  border-color: #D6B779;
  background: #FFFDF7;
}

.points-game .points-game-pile [data-act="draw-discard"][data-suit="H"],
.points-game .points-game-pile.is-ready [data-act="draw-discard"][data-suit="H"]:not(:disabled) {
  color: #C47A3A;
}

.points-game .points-game-pile [data-act="draw-discard"][data-suit="D"],
.points-game .points-game-pile.is-ready [data-act="draw-discard"][data-suit="D"]:not(:disabled) {
  color: #8E3D32;
}

.points-game .points-game-pile [data-act="draw-discard"][data-suit="S"],
.points-game .points-game-pile [data-act="draw-discard"][data-suit="C"],
.points-game .points-game-pile.is-ready [data-act="draw-discard"][data-suit="S"]:not(:disabled),
.points-game .points-game-pile.is-ready [data-act="draw-discard"][data-suit="C"]:not(:disabled) {
  color: #0B2B23;
}

.points-game .points-game-pile [data-act="draw-discard"][data-suit="JK"],
.points-game .points-game-pile.is-ready [data-act="draw-discard"][data-suit="JK"]:not(:disabled) {
  color: #C47A3A;
}

/* Seat plaques: velvet panel, gold bevel, suit crest, chip and card tokens. */
.points-game .points-game-seat:not(.points-game-seat-you),
.points-game .points-game-rail .points-game-seat-you {
  background-color: #0B2B23;
  background-image:
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    linear-gradient(#F0D9A0, #F0D9A0),
    radial-gradient(circle at center, #C47A3A 0 2px, transparent 2.4px),
    radial-gradient(circle at center, #C47A3A 0 2px, transparent 2.4px),
    radial-gradient(circle at center, #C47A3A 0 2px, transparent 2.4px),
    radial-gradient(circle at center, #C47A3A 0 2px, transparent 2.4px),
    radial-gradient(ellipse at 50% 0%, rgba(240, 217, 160, 0.18), transparent 62%),
    repeating-linear-gradient(90deg, rgba(240, 217, 160, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #154A3A 0%, #0B2B23 100%);
  background-repeat: no-repeat;
  background-size:
    10px 1.5px, 1.5px 10px,
    10px 1.5px, 1.5px 10px,
    10px 1.5px, 1.5px 10px,
    10px 1.5px, 1.5px 10px,
    6px 6px, 6px 6px, 6px 6px, 6px 6px,
    100% 100%, 100% 100%, 100% 100%;
  background-position:
    left 6px top 6px, left 6px top 6px,
    right 6px top 6px, right 6px top 6px,
    left 6px bottom 6px, left 6px bottom 6px,
    right 6px bottom 6px, right 6px bottom 6px,
    left 4px top 4px, right 4px top 4px,
    left 4px bottom 4px, right 4px bottom 4px,
    center, center, center;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 208, 0.35),
    inset 0 0 0 3px #0B2B23,
    inset 0 0 0 4px rgba(214, 183, 121, 0.85),
    0 0 0 1px rgba(11, 43, 35, 0.9),
    0 4px 10px rgba(0, 0, 0, 0.32);
}

.points-game .points-game-seat:not(.points-game-seat-you)::before,
.points-game .points-game-rail .points-game-seat-you::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  z-index: 2;
  width: 64px;
  height: 16px;
  transform: translateX(-50%);
  pointer-events: none;
  background: url("../images/points-rummy/seat-crest.svg") center / 100% 100% no-repeat;
}

.points-game .points-game-rail .points-game-seat-you {
  position: relative;
  gap: 0.5rem 0.65rem;
  padding: 0.6rem 0.9rem 0.6rem 0.7rem;
}

.points-game .points-game-seat .points-game-avatar {
  position: relative;
}

.points-game .points-game-seat .points-game-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-conic-gradient(#F0D9A0 0 12deg, #C47A3A 12deg 22.5deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.6px));
  mask: radial-gradient(circle closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.6px));
}

.points-game .points-game-seat [data-seat-status]::before {
  content: "";
  display: inline-block;
  width: 0.95rem;
  height: 0.78rem;
  margin-right: 0.22rem;
  vertical-align: -0.16rem;
  background: url("../images/points-rummy/seat-cards.svg") center / contain no-repeat;
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-score-value::before,
.points-game .points-game-rail .points-game-seat-you .points-game-score-value::before {
  width: 0.55rem;
  height: 0.7rem;
  border-radius: 0;
  background: url("../images/points-rummy/seat-penalty.svg") center / contain no-repeat;
}

.points-game .points-game-seat:not(.points-game-seat-you) [data-bank-value]::before,
.points-game .points-game-rail .points-game-seat-you [data-bank-value]::before {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: url("../images/points-rummy/seat-chip.svg") center / contain no-repeat;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.points-game .points-game-seat:not(.points-game-seat-you) .points-game-bank,
.points-game .points-game-rail .points-game-seat-you .points-game-bank {
  border-radius: 999px;
  background: linear-gradient(180deg, #123F32, #0B2B23);
  box-shadow: inset 0 0 0 1px rgba(196, 122, 58, 0.55);
}

.points-game .points-game-seat:not(.points-game-seat-you) h3,
.points-game .points-game-rail .points-game-seat-you h3,
.points-game .points-game-seat.is-current h3 {
  border-radius: 999px;
  background: linear-gradient(180deg, #D6B779, #A8803C);
  color: #0B2B23;
  box-shadow: inset 0 1px 0 rgba(255, 246, 208, 0.7), inset 0 0 0 1px rgba(11, 43, 35, 0.35);
  text-shadow: 0 1px 0 rgba(255, 246, 208, 0.45);
}

@media (max-width: 767px) {
  .points-game .points-game-seat:not(.points-game-seat-you)::before,
  .points-game .points-game-rail .points-game-seat-you::before {
    top: -7px;
    width: 52px;
    height: 13px;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) [data-seat-status]::before {
    content: none;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-bank {
    padding-left: 0.2rem;
    padding-right: 0.3rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) [data-bank-value]::before {
    width: 0.7rem;
    height: 0.7rem;
  }
}

.points-game-session h2 {
  padding-left: 1.9rem;
  background-image: url("../images/points-rummy/lotus-badge.svg");
  background-repeat: no-repeat;
  background-size: 1.5rem 0.82rem;
  background-position: left center;
}

/* Button icons and layout: primary moves first, tools after a gold rule. */
.points-game [data-act="discard"] { --pg-icon: url("../images/points-rummy/btn-discard.svg"); }
.points-game [data-act="declare"],
.points-game [data-act="declare-yes"] { --pg-icon: url("../images/points-rummy/btn-declare.svg"); }
.points-game [data-act="arrange"] { --pg-icon: url("../images/points-rummy/btn-arrange.svg"); }
.points-game [data-act="hint"] { --pg-icon: url("../images/points-rummy/btn-hint.svg"); }
.points-game [data-act="again"] { --pg-icon: url("../images/points-rummy/btn-again.svg"); }
.points-game [data-act="new"] { --pg-icon: url("../images/points-rummy/btn-new.svg"); }
.points-game [data-act="refill"] { --pg-icon: url("../images/points-rummy/btn-refill.svg"); }

.points-game .points-game-btn:is([data-act="discard"], [data-act="declare"], [data-act="declare-yes"], [data-act="arrange"], [data-act="hint"], [data-act="again"], [data-act="new"], [data-act="refill"])::before {
  content: "";
  flex: none;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.42em;
  background: currentColor;
  -webkit-mask: var(--pg-icon) center / contain no-repeat;
  mask: var(--pg-icon) center / contain no-repeat;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .points-game .points-game-btn::before {
    transition: transform 160ms ease;
  }

  .points-game .points-game-btn:hover:not(:disabled)::before {
    transform: translateY(-1px) scale(1.08);
  }
}

.points-game .points-game-actions {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.points-game .points-game-actions [data-act="discard"] { order: 1; }
.points-game .points-game-actions [data-act="declare"] { order: 2; }
.points-game .points-game-actions [data-act="arrange"] { order: 3; }
.points-game .points-game-actions [data-act="hint"] { order: 4; }
.points-game .points-game-actions [data-act="again"] { order: 5; }

.points-game .points-game-actions [data-act="discard"],
.points-game .points-game-actions [data-act="declare"] {
  flex: 0 1 auto;
  min-width: 8.5rem;
  min-height: 48px;
  padding: 0.45rem 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.points-game .points-game-actions [data-act="arrange"],
.points-game .points-game-actions [data-act="hint"],
.points-game .points-game-actions [data-act="again"] {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
}

.points-game .points-game-actions [data-act="declare"] {
  position: relative;
  margin-right: 1.1rem;
}

.points-game .points-game-actions [data-act="declare"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-0.825rem - 2.5px);
  width: 5px;
  height: 30px;
  transform: translateY(-50%);
  pointer-events: none;
  background:
    radial-gradient(circle, #C47A3A 0 2px, transparent 2.4px) center / 5px 5px no-repeat,
    linear-gradient(transparent, #D6B779 30%, #D6B779 70%, transparent) center / 1px 100% no-repeat;
}

.points-game .points-game-bar [data-act="refill"] {
  border-color: rgba(214, 183, 121, 0.7);
}

@media (max-width: 767px) {
  .points-game .points-game-actions {
    display: flex;
    gap: 0.45rem;
  }

  .points-game .points-game-actions [data-act="discard"],
  .points-game .points-game-actions [data-act="declare"] {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .points-game .points-game-actions [data-act="arrange"],
  .points-game .points-game-actions [data-act="hint"],
  .points-game .points-game-actions [data-act="again"] {
    flex: 1 1 calc(33.333% - 0.45rem);
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    font-size: 0.8125rem;
  }

  .points-game .points-game-actions [data-act="declare"] {
    margin-right: 0;
  }

  .points-game .points-game-actions [data-act="declare"]::after {
    content: none;
  }

  .points-game .points-game-bar {
    flex-wrap: wrap;
  }

  .points-game .points-game-bar-links {
    flex: 1 0 100%;
  }

  .points-game .points-game-bar [data-act="new"],
  .points-game .points-game-bar [data-act="refill"] {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }
}

/*
  The unconditional 0.42rem dock hem and the 767px action gap are later than the
  short-screen trims, so those trims never applied. Repeat the non-zero values here.
  The bar keeps padding-bottom: 0.42rem.
*/
@media (max-width: 767px) and (max-height: 640px) and (orientation: portrait) {
  .points-game .points-game-dock {
    padding-top: 0.15rem;
  }

  .points-game .points-game-actions {
    gap: 0.15rem;
  }
}

/* Settlement panel: velvet plaque, centred header, scoreboard cards, pinned actions. */
.points-game:has(.points-game-result.is-open) {
  gap: 0.45rem;
  width: min(28rem, calc(100% - 1.5rem));
  padding: 0.85rem 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 183, 121, 0.6) transparent;
  border: 1px solid #D6B779;
  border-radius: 1rem;
  background-color: #0B2B23;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(240, 217, 160, 0.16), transparent 55%),
    repeating-linear-gradient(90deg, rgba(240, 217, 160, 0.03) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #154A3A 0%, #0B2B23 100%);
  background-attachment: local;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 208, 0.35),
    inset 0 0 0 4px #0B2B23,
    inset 0 0 0 5px rgba(214, 183, 121, 0.85),
    0 18px 40px rgba(0, 0, 0, 0.5);
}

.points-game:has(.points-game-result.is-invalid) {
  border-color: #D6B779;
}

.points-game:has(.points-game-result.is-open) .points-game-result-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #D6B779;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.points-game:has(.points-game-result.is-open) .points-game-result-kicker::before,
.points-game:has(.points-game-result.is-open) .points-game-result-kicker::after {
  content: "";
  flex: 1 1 0;
  height: 5px;
  background:
    radial-gradient(circle, #C47A3A 0 2px, transparent 2.4px) center / 5px 5px no-repeat,
    linear-gradient(#D6B779, #D6B779) center / 100% 1px no-repeat;
}

.points-game:has(.points-game-result.is-open) .points-game-result-kicker::before {
  background-position: right center, center;
}

.points-game:has(.points-game-result.is-open) .points-game-result-kicker::after {
  background-position: left center, center;
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open h3 {
  color: #F0D9A0;
  font-size: 1.3rem;
  line-height: 1.15;
  text-align: center;
}

.points-game:has(.points-game-result.is-open) .points-game-result-verdict {
  align-self: center;
  max-width: 100%;
  padding: 0.3rem 0.95rem;
  border: 1px solid rgba(214, 183, 121, 0.7);
  border-radius: 999px;
  background: #123F32;
  color: #F0D9A0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.points-game:has(.points-game-result.is-win) .points-game-result-verdict {
  border-color: #F0D9A0;
  background: linear-gradient(180deg, #F0D9A0, #D6B779);
  color: #0B2B23;
}

.points-game:has(.points-game-result.is-invalid) .points-game-result-verdict {
  border-color: #B94B45;
  background: #5A2620;
  color: #FFE7E1;
}

.points-game:has(.points-game-result.is-open) [data-result-text] {
  color: #D9E2DA;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

.points-game:has(.points-game-result.is-open) .points-game-result-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.points-game:has(.points-game-result.is-open) [data-result-list],
.points-game:has(.points-game-result.is-open) .points-game-ledger {
  margin: 0;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(214, 183, 121, 0.45);
  border-radius: 0.65rem;
  background: rgba(11, 43, 35, 0.72);
  box-shadow: inset 0 1px 0 rgba(240, 217, 160, 0.08);
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open [data-result-list] li {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  margin: 0 -0.7rem;
  padding: 0.34rem 0.7rem;
  border-bottom: 1px solid rgba(214, 183, 121, 0.2);
  font-size: 0.85rem;
  line-height: 1.2;
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open li:last-child {
  border-bottom: 0;
}

.points-game:has(.points-game-result.is-open) .points-game-result-name {
  overflow: hidden;
  color: #F7F3E8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-game:has(.points-game-result.is-open) .points-game-result-mark {
  color: #C7D2C8;
  font-size: 0.78rem;
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open .points-game-result-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 3.4rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #0B2B23;
  box-shadow: inset 0 0 0 1px rgba(196, 122, 58, 0.6);
  color: #F0D9A0;
  font-size: 0.85rem;
  text-align: center;
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open .points-game-result-score::before {
  content: "";
  width: 0.55rem;
  height: 0.7rem;
  background: url("../images/points-rummy/seat-penalty.svg") center / contain no-repeat;
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open li.is-winner {
  background: linear-gradient(90deg, rgba(214, 183, 121, 0.22), rgba(214, 183, 121, 0.05));
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open li.is-winner .points-game-result-mark {
  color: #F0D9A0;
  font-weight: 700;
}

.points-game:has(.points-game-result.is-open) .points-game-result.is-open .points-game-ledger li {
  grid-template-columns: minmax(0, 1fr) auto auto minmax(5.6rem, auto);
  align-items: baseline;
  gap: 0.6rem;
  margin: 0;
  padding: 0.36rem 0;
  border-bottom: 1px solid rgba(214, 183, 121, 0.2);
  font-size: 0.82rem;
  line-height: 1.2;
}

.points-game:has(.points-game-result.is-open) .points-game-ledger-name {
  overflow: hidden;
  color: #F7F3E8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-game:has(.points-game-result.is-open) .points-game-ledger-change {
  grid-column: 4;
  grid-row: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.points-game:has(.points-game-result.is-open) .points-game-ledger-change.is-deduct {
  color: #F3B4A9;
}

.points-game:has(.points-game-result.is-open) .points-game-ledger-change.is-reward {
  color: #F0D9A0;
}

.points-game:has(.points-game-result.is-open) .points-game-ledger-before,
.points-game:has(.points-game-result.is-open) .points-game-ledger-after {
  grid-row: 1;
  color: #AEBDB2;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.points-game:has(.points-game-result.is-open) .points-game-ledger-before {
  grid-column: 2;
}

.points-game:has(.points-game-result.is-open) .points-game-ledger-after {
  grid-column: 3;
  color: #F0D9A0;
}

.points-game:has(.points-game-result.is-open) .points-game-result-note,
.points-game:has(.points-game-result.is-open) .points-game-result-points-note {
  margin: 0;
  color: #AEBDB2;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.points-game:has(.points-game-result.is-open) .points-game-session {
  margin: 0;
  padding: 0.5rem 0.7rem 0.1rem;
  border-radius: 0.65rem;
}

.points-game:has(.points-game-result.is-open) .points-game-session dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.points-game:has(.points-game-result.is-open) .points-game-session dl div {
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.35rem 0.2rem;
  border-radius: 0.5rem;
  text-align: center;
}

.points-game:has(.points-game-result.is-open) .points-game-session dt {
  font-size: 0.66rem;
  line-height: 1.15;
}

.points-game:has(.points-game-result.is-open) .points-game-session dd {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.points-game:has(.points-game-result.is-open) .points-game-session-recent {
  margin-top: 0.2rem;
}

.points-game:has(.points-game-result.is-open) .points-game-result-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 -1rem;
  padding: 0.6rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(214, 183, 121, 0.45);
  background: linear-gradient(180deg, #123F32, #0B2B23);
  border-radius: 0 0 1rem 1rem;
}

.points-game:has(.points-game-result.is-open) .points-game-result-actions .points-game-btn,
.points-game:has(.points-game-result.is-open) .points-game-result-back {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
}

.points-game:has(.points-game-result.is-open) .points-game-result-back {
  background: #0B2B23;
  box-shadow: inset 0 0 0 1px rgba(214, 183, 121, 0.45);
}

.points-game:has(.points-game-result.is-open) .points-game-result-back:hover {
  border-color: #F0D9A0;
  color: #F0D9A0;
}

@media (max-width: 767px) {
  .points-game:has(.points-game-result.is-open) {
    gap: 0.5rem;
    width: min(26rem, calc(100% - 1rem));
    padding: 0.85rem 0.75rem 0;
  }

  .points-game:has(.points-game-result.is-open) .points-game-result.is-open h3 {
    font-size: 1.2rem;
  }

  .points-game:has(.points-game-result.is-open) .points-game-result-actions {
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 374px) {
  .points-game .points-game-seat:not(.points-game-seat-you) [data-bank-value]::before {
    content: none;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-bank {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .points-game .points-game-actions [data-act="arrange"],
  .points-game .points-game-actions [data-act="hint"],
  .points-game .points-game-actions [data-act="again"] {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .points-game .points-game-actions .points-game-btn::before {
    margin-right: 0.3em;
  }
}

/* Short portrait phones: hand keeps the full rail width, your seat sits under it. */
@media (max-width: 767px) and (max-height: 600px) and (orientation: portrait) {
  .points-game .points-game-rail {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .points-game .points-game-rail .points-game-hand {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
  }

  .points-game .points-game-rail .points-game-seat-you {
    order: 2;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    max-width: 100%;
  }
}

/* Short phones trim the felt bottom padding, so your seat must not hang over the rim. */
@media (max-width: 767px) and (max-height: 700px) and (orientation: portrait) {
  .points-game .points-game-rail .points-game-seat-you {
    margin-bottom: 0.15rem;
  }
}

@media (max-width: 400px) {
  body:has(.points-game-page) .brand {
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .points-game:has(.points-game-result.is-open) .points-game-result.is-open .points-game-ledger li {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 0.4rem;
    font-size: 0.74rem;
  }
}

/* Landscape phones: one-row bar and action row, status above the piles. */
@media (max-width: 932px) and (max-height: 480px) and (orientation: landscape) {
  .points-game .points-game-bar {
    flex-wrap: nowrap;
  }

  .points-game .points-game-bar-links {
    flex: 1 1 auto;
  }

  .points-game .points-game-bar [data-act="new"],
  .points-game .points-game-bar [data-act="refill"] {
    flex: 0 1 auto;
  }

  .points-game .points-game-actions {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .points-game .points-game-actions [data-act="discard"],
  .points-game .points-game-actions [data-act="declare"],
  .points-game .points-game-actions [data-act="arrange"],
  .points-game .points-game-actions [data-act="hint"],
  .points-game .points-game-actions [data-act="again"] {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    margin-right: 0;
    padding: 0.3rem 0.4rem;
    font-size: 0.82rem;
  }

  .points-game .points-game-actions [data-act="declare"]::after {
    content: none;
  }

  .points-game .points-game-center {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .points-game .points-game-center > .points-game-status {
    position: static;
    max-width: 100%;
    margin: 0 0 0.2rem;
    overflow: hidden;
    transform: none;
    text-overflow: ellipsis;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "avatar name status"
      "avatar score bank";
    align-items: center;
    justify-content: start;
    gap: 0.04rem 0.3rem;
    max-width: 15rem;
    padding: 0.35rem 0.6rem 0.35rem 0.45rem;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-seat-top,
  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-seat-top > div {
    display: contents;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-avatar { grid-area: avatar; }
  .points-game .points-game-seat:not(.points-game-seat-you) h3 { grid-area: name; }
  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-score { grid-area: score; }

  .points-game .points-game-seat:not(.points-game-seat-you) [data-seat-status] {
    grid-area: status;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .points-game .points-game-seat:not(.points-game-seat-you) .points-game-bank {
    grid-area: bank;
    justify-self: start;
  }

  .points-game:has(.points-game-result.is-open) {
    top: 2.8rem;
    gap: 0.3rem;
    width: min(42rem, calc(100% - 1.5rem));
    max-height: calc(100% - 2.8rem - 0.75rem);
    max-height: calc(100dvh - 2.8rem - 0.75rem);
    padding-top: 0.55rem;
  }

  .points-game:has(.points-game-result.is-open) .points-game-result.is-open h3 {
    font-size: 1.1rem;
  }

  .points-game:has(.points-game-result.is-open) .points-game-result-scroll {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 0.4rem;
  }

  .points-game:has(.points-game-result.is-open) .points-game-result-scroll > :not([data-result-list]):not([data-points-ledger]) {
    grid-column: 1 / -1;
  }

  .points-game:has(.points-game-result.is-open) .points-game-result.is-open .points-game-ledger li {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 0.35rem;
    font-size: 0.74rem;
  }

  .points-game:has(.points-game-result.is-open) .points-game-result-actions {
    padding-top: 0.4rem;
    padding-bottom: 0.45rem;
  }

  .points-game:has(.points-game-result.is-open) .points-game-result-actions > * {
    min-height: 44px;
  }
}

/* The old 2.4rem phone column is narrower than the pile cards, so they spilled into the gap. */
@media (max-width: 767px) {
  .points-game .points-game-pile {
    grid-template-columns: auto;
  }
}

/*
  Phone first screen: 44px header, one-line crumbs and h1, then a stage that fills the rest.
  --pg-lead must equal main padding-top + crumbs line + crumbs margin + h1 line + h1 margin + .points-game border-top,
  plus 1px for line-box rounding.
*/
@media (max-width: 767px) {
  body:has(.points-game-page) {
    --header-h: 44px;
  }

  body:has(.points-game-page) .site-header {
    height: var(--header-h);
    min-height: var(--header-h);
    border-bottom-width: 0;
    box-shadow: 0 1px 0 var(--color-line);
  }

  body:has(.points-game-page) .header-inner {
    height: 100%;
    min-height: 0;
  }

  body:has(.points-game-page) .brand-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .points-game-page.site-main {
    --pg-lead: calc(0.25rem + 0.75rem * 1.2 + 0.1rem + 1.05rem * 1.2 + 0.25rem + 0.05rem + 1px);
    padding-top: 0.25rem;
  }

  .points-game-page .crumbs {
    margin: 0 0 0.1rem;
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .points-game-page > .wrap > h1 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .points-game {
    margin-top: 0;
    padding-top: 0;
    border-top-width: 0.05rem;
  }

  .points-game .points-game-stage {
    min-height: calc(100svh - var(--header-h) - var(--pg-lead));
    min-height: calc(100dvh - var(--header-h) - var(--pg-lead));
  }

  .points-game .points-game-stage > .points-game-felt {
    flex: 1 1 auto;
  }
}

@media (max-width: 767px) and (max-height: 480px) and (orientation: landscape) {
  .points-game-page.site-main {
    --pg-lead: calc(0.15rem + 0.7rem * 1.2 + 0.05rem + 0.95rem * 1.2 + 0.15rem + 0.05rem + 1px);
    padding-top: 0.15rem;
  }

  .points-game-page .crumbs {
    margin: 0 0 0.05rem;
    font-size: 0.7rem;
  }

  .points-game-page > .wrap > h1 {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
  }

  .points-game:has(.points-game-result.is-open) {
    top: var(--header-h);
    max-height: calc(100% - var(--header-h) - 0.75rem);
    max-height: calc(100dvh - var(--header-h) - 0.75rem);
  }
}

/* Short portrait phones: the stage content is taller than the space left, so trim the felt top padding first. */
@media (max-width: 767px) and (max-height: 640px) and (orientation: portrait) {
  .points-game .points-game-felt {
    padding-top: 0.3rem;
  }
}

@media (max-width: 374px) {
  body:has(.points-game-page) .header-inner {
    gap: 0.5rem;
  }

  body:has(.points-game-page) .brand {
    gap: 0.4rem;
    font-size: 0.85rem;
  }

  body:has(.points-game-page) .lang-switch {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

/*
  Portrait phones: two rows, seven cards each. Groups stay in the DOM for the
  meld colors, but they do not form a box, so each card wraps on the hand.
  Landscape and 768px+ keep the single overlapping row.
*/
@media (max-width: 767px) and (orientation: portrait) {
  .points-game .points-game-rail .points-game-hand {
    --pg-hand-gap: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    column-gap: var(--pg-hand-gap);
    row-gap: 0.75rem;
    overflow: visible;
    padding-top: 0.75rem;
    padding-bottom: 0.15rem;
  }

  .points-game .points-game-group {
    display: contents;
  }

  .points-game .points-game-group + .points-game-group {
    margin-left: 0;
  }

  .points-game .points-game-hand .points-game-card {
    flex: 0 0 calc((100% - 6 * var(--pg-hand-gap)) / 7);
    width: calc((100% - 6 * var(--pg-hand-gap)) / 7);
    max-width: none;
    min-width: 0;
    height: 3.55rem;
    min-height: 3.55rem;
    margin-left: 0;
  }

  .points-game .points-game-hand .points-game-card + .points-game-card {
    margin-left: 0;
  }

  .points-game .points-game-group.is-pure > .points-game-card {
    border-bottom: 3px solid #F0D9A0;
  }

  .points-game .points-game-group.is-impure > .points-game-card {
    border-bottom: 3px solid #C47A3A;
  }

  .points-game .points-game-group.is-set > .points-game-card {
    border-bottom: 3px solid #C7D2C8;
  }

  .points-game .points-game-group.is-unmatched > .points-game-card {
    border-bottom: 3px solid rgba(199, 210, 200, 0.7);
  }
}

/*
  Batch C — short portrait (e.g. 320×568): Points dock sat ~58px below the fold
  because Discard/Declare + Arrange/Hint/Again wrapped to two rows. Keep all five
  buttons, one row, 44px targets. Card width / hand column-gap unchanged.
*/
@media (max-width: 767px) and (max-height: 600px) and (orientation: portrait) {
  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-bar {
    gap: 0.15rem 0.35rem;
    padding-bottom: 0.35rem;
  }

  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-bar-links,
  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-bar-links a {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-felt {
    border-width: 3px;
    padding-top: 0.15rem;
    padding-bottom: 0;
  }

  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-rail {
    gap: 0.1rem;
  }

  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-rail .points-game-seat-you {
    gap: 0.2rem 0.35rem;
    margin-bottom: 0;
    padding: 0.1rem 0.35rem;
  }

  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-rail .points-game-hand {
    padding-top: 0.45rem;
    padding-bottom: 0.1rem;
    row-gap: 0.45rem;
  }

  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-dock {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    margin-top: 0;
  }

  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-actions [data-act="discard"],
  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-actions [data-act="declare"],
  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-actions [data-act="arrange"],
  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-actions [data-act="hint"],
  .points-game:not([data-pool-game]):not([data-deals-game]) .points-game-actions [data-act="again"] {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0.25rem 0.15rem;
    font-size: 0.68rem;
    line-height: 1.1;
    white-space: nowrap;
  }
}
