:root {
  color-scheme: dark;
  --bg: #102b26;
  --panel: #15362e;
  --text: #edeade;
  --muted: #9aafa4;
  --gold: #dfc391;
  --gold-bright: #ecd5ab;
  --line: #ffffff13;
  --red: #b64d48;
  --card: #fcf8ed;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --cw: 91px;
  --ch: calc(var(--cw) * 1.4);
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--text);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(ellipse at 40% 10%, #21433855, transparent 65%), #102b26;
  min-height: 100svh;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}
button:not(:disabled),
a {
  touch-action: manipulation;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.topbar {
  height: 91px;
  padding: 0 3.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 28px;
  background: #0c251e42;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  border: 1px solid #cfb4829c;
  border-radius: 7px;
  width: 43px;
  height: 48px;
  display: grid;
  place-items: center;
  font: 26px var(--serif);
  color: var(--gold);
  position: relative;
  box-shadow: inset 0 0 0 4px #d8bd8b08;
  transform: rotate(-5deg);
}
.brand-mark span {
  position: absolute;
  bottom: -6px;
  right: -5px;
  font: 16px Georgia;
  background: var(--bg);
  padding: 0 2px;
}
.brand-type {
  font: 27px var(--serif);
  letter-spacing: 6px;
}
.brand-type > span {
  display: block;
  font: 8px/2.4 sans-serif;
  letter-spacing: 2px;
  color: var(--gold);
  margin-top: 2px;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 100%;
  margin-right: auto;
  margin-left: 55px;
  color: var(--muted);
  font-size: 13px;
}
.topbar nav > * {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.nav-active {
  color: var(--gold-bright);
}
.nav-active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #b9c6b9;
  background: #ffffff02;
  flex-shrink: 0;
}
.icon-button:hover {
  color: var(--gold);
  border-color: #d5bb814f;
  background: #d5bb8110;
}
.connection {
  font-size: 11px;
  color: var(--muted);
  margin-right: 12px;
  white-space: nowrap;
}
.connection i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8dbfa2;
  margin-right: 7px;
  box-shadow: 0 0 8px #8dbfa244;
}
.connection.offline i {
  background: #dd9a78;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 28px;
  max-width: 1600px;
  margin: auto;
  padding: 26px 3.3% 18px;
}
.game-section {
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  min-height: 53px;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 2.8px;
  color: #9eb2a0;
}
.section-heading h1 {
  font: 24px/1.4 var(--serif);
  font-weight: 500;
  margin: 6px 0 0;
  letter-spacing: 2px;
}
.heading-dot {
  color: var(--gold);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #adbdaf;
  padding: 5px 0;
}
.text-button:hover {
  color: var(--gold);
}
.text-button svg {
  width: 14px;
  height: 14px;
}
.table-shell {
  border: 1px solid #d7c19427;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(155deg, #1b4036, #15372e 58%, #183a30);
  box-shadow: 0 15px 45px #02150e26;
}
.table-meta {
  height: 65px;
  display: flex;
  align-items: center;
  padding: 0 27px;
  border-bottom: 1px solid #ffffff09;
  background: #0f2c2338;
  gap: 0;
}
.table-meta > div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 24px;
  border-right: 1px solid #ffffff12;
  font-size: 12px;
}
.table-meta > div:first-child {
  padding-left: 0;
}
.table-meta > div:last-child {
  border: 0;
  margin-left: auto;
  padding-right: 0;
}
.table-meta span {
  color: #91a99b;
  white-space: nowrap;
}
.table-meta strong {
  color: #e4d4b1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.arena {
  height: 360px;
  position: relative;
  margin: 5px 16px 0;
}
.table-rim {
  position: absolute;
  inset: 53px 52px 20px;
  border-radius: 47% / 47%;
  padding: 8px;
  background: linear-gradient(
    145deg,
    #797556,
    #4d5140 34%,
    #93835b 58%,
    #4d5140 88%
  );
  box-shadow:
    0 10px 15px #061b184d,
    0 1px 1px #eee1b032,
    inset 0 0 0 1px #d3b77c38;
  transform: perspective(1300px) rotateX(8deg);
}
.felt {
  height: 100%;
  border: 2px solid #172d25;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 48% 40%,
    #326b54,
    #215340 70%,
    #183f31
  );
  box-shadow: inset 0 4px 12px #071f1b99;
  position: relative;
  overflow: hidden;
}
.felt:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.6' filter='url(%23n)'/%3E%3C/svg%3E");
}
.felt-line {
  position: absolute;
  inset: 14px;
  border: 1px solid #b5bf8a35;
  border-radius: inherit;
}
.table-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #d8d4ac16;
  gap: 5px;
  user-select: none;
}
.table-watermark > span {
  font: 52px var(--serif);
  letter-spacing: 10px;
}
.table-watermark small {
  font-size: 10px;
  letter-spacing: 5px;
}
.table-edition {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 7px;
  letter-spacing: 2px;
  color: #c4cfac42;
}
.seats,
.trick-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.seat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 148px;
  z-index: 2;
}
.seat.pos-1 {
  right: 0;
  top: 46%;
}
.seat.pos-2 {
  right: 17%;
  top: 14px;
}
.seat.pos-3 {
  left: 17%;
  top: 14px;
}
.seat.pos-4 {
  left: 0;
  top: 46%;
  flex-direction: row-reverse;
  text-align: right;
}
.avatar {
  width: 47px;
  height: 47px;
  flex-shrink: 0;
  border: 2px solid #9aa77e3b;
  border-radius: 50%;
  padding: 3px;
  background: #142f28;
  position: relative;
  box-shadow: 0 3px 8px #06201844;
}
.avatar > svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  stroke: none;
}
.seat.active .avatar {
  border-color: #e4c78c;
  box-shadow:
    0 0 0 4px #e4c78c10,
    0 0 18px #d7bb8055;
}
.seat.active .avatar:after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid #d5bb8155;
  animation: pulse 2s ease infinite;
}
.seat-name {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #ede9d7;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.seat.pos-4 .seat-name {
  justify-content: flex-end;
}
.seat-info small {
  display: block;
  font-size: 10px;
  color: #a7b6a7;
  margin-top: 3px;
  white-space: nowrap;
}
.role-badge {
  font-size: 8px;
  color: #e5ca92;
  border: 1px solid #e5ca9244;
  border-radius: 3px;
  padding: 0 3px;
  letter-spacing: 0;
}
.card-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-count:before {
  content: "";
  width: 7px;
  height: 10px;
  border: 1px solid #9caf9a;
  border-radius: 1px;
  transform: rotate(-8deg);
}
.seat-action {
  position: absolute;
  font-size: 10px;
  top: 55px;
  left: 0;
  right: 0;
  text-align: center;
  color: #d4c8a8;
  min-height: 15px;
}
.seat.active .seat-action {
  color: var(--gold-bright);
}
.table-center {
  position: absolute;
  top: 100px;
  left: 20%;
  right: 20%;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
.table-center button,
.table-center select {
  pointer-events: auto;
}
.welcome .welcome-kicker {
  color: #bfc9a9;
  font-size: 8px;
  letter-spacing: 4px;
}
.welcome h2 {
  font: 38px var(--serif);
  font-weight: 500;
  letter-spacing: 7px;
  margin: 12px 0 9px;
  color: #f3e4c2;
  text-shadow: 0 2px 12px #103227;
}
.welcome p {
  font-size: 11px;
  color: #c2ceb5;
  letter-spacing: 2px;
  margin: 0 0 18px;
}
.primary-button,
.secondary-button,
.choice-button {
  min-height: 42px;
  padding: 0 24px;
  border-radius: 7px;
  font-size: 13px;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}
.primary-button {
  background: linear-gradient(120deg, #e7ce9e, #cdb07a);
  color: #25382c;
  box-shadow:
    0 4px 12px #071b2333,
    inset 0 1px #fff6;
  font-weight: 600;
  letter-spacing: 1px;
}
.primary-button:hover:not(:disabled) {
  background: linear-gradient(120deg, #f2ddba, #dfc28d);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px #071b2344;
}
.primary-button svg {
  width: 15px;
  margin-left: 15px;
}
.welcome .primary-button {
  padding: 0 29px;
  min-height: 45px;
}
.secondary-button {
  border: 1px solid #c6c5a92d;
  color: #d9dcc8;
  background: #0a231d22;
}
.secondary-button:hover:not(:disabled) {
  background: #ffffff08;
  border-color: #d5bb8180;
}
.choice-button {
  border: 1px solid #c4bf9944;
  padding: 0 16px;
  background: #1c4135;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.choice-button:hover:not(:disabled),
.choice-button.selected {
  border-color: var(--gold);
  color: var(--gold);
  background: #d5bb8112;
}
.choice-button.recommended:after {
  content: "·";
  color: var(--gold);
  margin-left: 2px;
}
.choice-button .suit {
  font: 24px Georgia;
}
.choice-button .red {
  color: #e49788;
}
.table-status {
  display: inline-block;
  border: 1px solid #d2c29124;
  background: #173e31b3;
  border-radius: 7px;
  padding: 9px 18px;
  font-size: 12px;
  color: #ddd8b9;
  backdrop-filter: blur(8px);
}
.trick-card-slot {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: play-in 0.28s ease-out;
}
.trick-card-slot.pos-0 {
  left: calc(50% - 32px);
  bottom: 22px;
}
.trick-card-slot.pos-1 {
  right: 19%;
  top: 45%;
}
.trick-card-slot.pos-2 {
  right: 34%;
  top: 25%;
}
.trick-card-slot.pos-3 {
  left: 34%;
  top: 25%;
}
.trick-card-slot.pos-4 {
  left: 19%;
  top: 45%;
}
.trick-card-slot .card {
  --cw: 64px;
  --ch: calc(var(--cw) * 1.4);
  box-shadow: 0 3px 8px #041a2044;
}
.trick-card-slot .card-ribbon,
.trick-card-slot .points-dot {
  display: none;
}
.winner-card .card {
  box-shadow:
    0 0 0 2px #e4c78c,
    0 0 20px #e4c78c22;
}
.trick-card-slot > small {
  font-size: 8px;
  color: #d3c5a1;
  background: #173e31b3;
  border-radius: 5px;
  padding: 1px 5px;
}
.human-name {
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #c3cdb8;
}
.human-name strong {
  font-weight: 500;
  color: #e7e4d4;
}
.human-icon {
  height: 22px;
  width: 22px;
  border: 1px solid #d5bb8170;
  background: #3e5b44;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font: 13px var(--serif);
  color: var(--gold);
}
.play-zone {
  position: relative;
  padding: 12px 25px 0;
  background: linear-gradient(transparent, #0e2c2455);
  min-height: 239px;
}
.action-strip {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}
.action-message {
  color: #b6c6b5;
  font-size: 12px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.action-group {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
}
.action-group .action-label {
  font-size: 12px;
  color: #c7d1bf;
  margin-right: 9px;
}
.action-group .subtle {
  font-size: 11px;
  color: #91aa98;
}
.thinking-dots {
  display: inline-flex;
  gap: 3px;
}
.thinking-dots i {
  width: 3px;
  height: 3px;
  background: #ddc58f;
  border-radius: 50%;
  animation: pulse 1s infinite;
}
.thinking-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.thinking-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
.hand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #93ac99;
  margin: 12px 0 0;
  position: relative;
  z-index: 2;
}
.hand-header > span:first-child {
  color: #c0cbb6;
  letter-spacing: 1px;
}
.hand-header b {
  margin-left: 5px;
  font-size: 10px;
  color: #d7c193;
  font-weight: 400;
}
.hand-header > span:nth-child(2) {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.hand-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #60765c transparent;
  margin: 0 -10px;
  padding: 25px 12px 14px;
  min-height: 171px;
}
.hand {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  padding: 0 9px;
}
.hand .card + .card {
  margin-left: var(--overlap, -27px);
}
.hand .card {
  transition:
    transform 0.18s,
    filter 0.18s,
    box-shadow 0.18s;
  transform: translateY(0);
  flex-shrink: 0;
  box-shadow: -2px 3px 8px #071e1855;
  animation: deal-in 0.4s both;
  animation-delay: calc(var(--index) * 0.035s);
}
.hand .card:hover:not(:disabled) {
  transform: translateY(-7px);
}
.hand .card.selected {
  transform: translateY(-17px);
  box-shadow:
    0 0 0 2px #dfc391,
    0 4px 15px #0b1e1a99;
  z-index: auto;
}
.card {
  padding: 0;
  text-align: left;
  position: relative;
  width: var(--cw);
  height: var(--ch);
  border-radius: calc(var(--cw) * .067);
  background: #fffdf7;
  border: 0;
  color: #202b32;
  user-select: none;
  overflow: hidden;
}
.card-face {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: none;
  stroke-width: 1;
  pointer-events: none;
}
.card:disabled {
  opacity: 1;
}
.hand .card.unplayable {
  filter: brightness(0.76) saturate(0.65);
}
.card-ribbon {
  position: absolute;
  left: 5%;
  top: 36%;
  background: #285c48;
  color: #fff6db;
  border-radius: 3px;
  padding: 1px 3px;
  font: 8px sans-serif;
}
.points-dot {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font: 8px sans-serif;
  color: #80643c;
}
.card.back {
  box-shadow: -2px 3px 8px #071e1855;
}
.hand .card.back {
  --cw: 80px;
  --ch: calc(var(--cw) * 1.4);
  margin-left: -29px;
  animation: none;
  transform: rotate(calc((var(--index) - 4.5) * 2deg))
    translateY(calc(abs(var(--index) - 4.5) * 1px));
}
.game-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px 0;
  color: #829c88;
  font-size: 10px;
}
.game-footnote > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.tiny-diamond {
  width: 4px;
  height: 4px;
  background: #b59d6e;
  transform: rotate(45deg);
  display: inline-block;
}
.sidebar {
  padding-top: 75px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.score-panel,
.steps-panel,
.journal-panel {
  border: 1px solid #d5c89c1b;
  background: linear-gradient(130deg, #20433466, #19392f33);
  border-radius: 12px;
  padding: 22px;
}
.panel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: #dddcca;
}
.panel-caption > span + span {
  font-size: 9px;
  letter-spacing: 0.1px;
  color: #7f9a86;
}
.score-title {
  margin-top: 25px;
  color: #a9b9a4;
  font-size: 12px;
}
.score-title > span {
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-left: 8px;
  color: #647e6c;
}
.score-number {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 5px 0 13px;
}
.score-number > strong {
  font: 64px/1.1 Georgia;
  color: #ecdbb4;
  font-weight: 400;
}
.score-number > span {
  font: 22px Georgia;
  color: #9aab8d;
  display: block;
}
.score-number b {
  font-weight: 400;
}
.score-number small {
  display: block;
  font: 9px sans-serif;
  color: #889e87;
  margin-top: 3px;
  margin-left: 13px;
  letter-spacing: 1px;
}
.score-track {
  height: 4px;
  border-radius: 3px;
  background: #081f1766;
  position: relative;
}
.score-track > div {
  height: 100%;
  border-radius: inherit;
  background: #d1b57e;
  transition: width 0.5s;
  max-width: 100%;
}
.score-track > i {
  position: absolute;
  right: 0;
  top: -3px;
  height: 10px;
  border-left: 1px solid #84957b;
}
.score-note {
  font-size: 10px;
  color: #8da38f;
  margin-top: 12px;
  min-height: 16px;
}
.score-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0 18px;
}
.friend-note {
  display: flex;
  align-items: center;
  gap: 13px;
}
.friend-emblem {
  width: 34px;
  height: 34px;
  border: 1px solid #c8b38544;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #cdb888;
  font: 24px Georgia;
  flex-shrink: 0;
}
.friend-note strong {
  font-size: 11px;
  font-weight: 500;
  color: #d9d4b8;
}
.friend-note p {
  font-size: 9px;
  color: #8fa58f;
  margin: 5px 0 0;
}
.steps-panel {
  padding: 18px 20px;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  font-size: 9px;
  color: #778f7b;
}
.steps i {
  height: 1px;
  width: 9px;
  background: #607b5e44;
}
.steps span.active {
  color: #e3c58c;
}
.steps span.done {
  color: #bbbf9a;
}
.journal-panel {
  padding: 18px 20px;
  flex: 1;
  min-height: 140px;
}
.journal-panel .panel-caption .text-button {
  font-size: 9px;
  padding: 0;
}
.journal {
  margin-top: 16px;
  max-height: 155px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #4d6553 transparent;
}
.journal-item {
  position: relative;
  padding: 0 0 13px 13px;
  color: #90a58f;
  font-size: 10px;
  line-height: 1.7;
  border-left: 1px solid #bca3741c;
  margin-left: 3px;
}
.journal-item:before {
  content: "";
  position: absolute;
  left: -3px;
  top: 5px;
  width: 5px;
  height: 5px;
  border: 1px solid #819778;
  background: #17382c;
  border-radius: 50%;
}
.journal-item:first-child {
  color: #d5d1b2;
}
.journal-item:first-child:before {
  background: #ceb783;
  border-color: #ceb783;
}
.journal-empty {
  font: 19px var(--serif);
  color: #c2c5a1;
  margin-top: 4px;
}
.journal-empty p {
  font: 10px/2 sans-serif;
  color: #79927d;
  margin-top: 12px;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 9px var(--serif);
  color: #788f78;
  padding: 0 4px;
}
.sidebar-footer > div {
  letter-spacing: 3px;
  font: 13px Georgia;
}
.sidebar-footer > div span {
  color: #b6886e;
}
.mobile-history {
  display: none;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border: 1px solid #cfb47d5c;
  border-radius: 9px;
  background: #0b261ff5;
  backdrop-filter: blur(14px);
  color: #f1dfbb;
  box-shadow: 0 8px 30px #0004;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
  z-index: 100;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  color: var(--text);
  background: linear-gradient(145deg, #244637, #15352c);
  border: 1px solid #d7c19440;
  border-radius: 17px;
  box-shadow: 0 24px 100px #0008;
  width: min(570px, calc(100vw - 28px));
  padding: 28px;
  max-height: 85svh;
  overflow: auto;
  scrollbar-width: thin;
}
dialog::backdrop {
  background: #041a16b8;
  backdrop-filter: blur(6px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font: 26px var(--serif);
  letter-spacing: 2px;
  margin: 7px 0 0;
}
.rule-intro {
  font-size: 12px;
  color: #bac9b7;
  line-height: 1.9;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.rule-grid h3 {
  font-size: 12px;
  color: #e0c797;
  margin: 0 0 7px;
}
.rule-grid p {
  font-size: 11px;
  color: #a8bda7;
  line-height: 1.9;
  margin: 0;
}
.rule-detail {
  font-size: 11px;
  color: #acc0aa;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.rule-detail summary {
  cursor: pointer;
  color: #dbc18e;
  padding: 4px 0;
}
.rule-detail table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 10px;
  text-align: right;
}
.rule-detail td,
.rule-detail th {
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
}
.rule-detail th:first-child,
.rule-detail td:first-child {
  text-align: left;
}
.rule-detail p {
  line-height: 1.9;
}
.dialog-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.setting-row {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.setting-row small {
  display: block;
  font-size: 10px;
  color: #9cb198;
  margin-top: 4px;
}
.segmented {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.segmented button {
  padding: 8px 10px;
  font-size: 10px;
  border-radius: 5px;
  color: #a5b69f;
}
.segmented button.selected {
  background: #d9bf8d;
  color: #20382a;
}
.friend-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.friend-picker .card {
  --cw: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
  border-radius: 4px;
}
.friend-picker > button {
  padding: 0;
  border-radius: 4px;
}
.friend-picker .card-ribbon,
.friend-picker .points-dot {
  display: none;
}
.friend-picker .selected {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  transform: translateY(-3px);
}
.picker-note {
  font-size: 11px;
  color: #b5c6ac;
  margin-bottom: 18px;
}
.picker-suit {
  font: 13px Georgia;
  color: #c8c9a9;
  grid-column: 1/-1;
  margin-top: 8px;
}
.settlement-hero {
  text-align: center;
  padding: 8px 0 24px;
}
.settlement-seal {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid #d4ba803d;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #d4ba8008;
  color: #e2c58e;
  margin: 0 auto 20px;
}
.settlement-seal svg {
  width: 35px;
  height: 35px;
}
.settlement-hero h3 {
  font: 27px var(--serif);
  letter-spacing: 4px;
  color: #e9d2a5;
  margin: 0;
}
.settlement-hero > strong {
  display: block;
  font: 46px Georgia;
  color: #e9d2a5;
  margin-top: 9px;
}
.settlement-hero p {
  font-size: 11px;
  color: #a8bea6;
  margin-bottom: 0;
}
.result-list {
  border-top: 1px solid var(--line);
}
.result-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 5px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.result-row em {
  font-size: 9px;
  font-style: normal;
  color: #b4bc9e;
}
.result-row strong {
  margin-left: auto;
  font: 19px Georgia;
  color: #ddc28a;
}
.result-row.me {
  background: #e4c78c09;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.history-list p {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #b5c6af;
  line-height: 1.7;
}
.history-list p:before {
  content: attr(data-index);
  font: 10px Georgia;
  color: #8da487;
  padding-right: 12px;
}
.history-list .history-intro {
  font-size: 11px;
  margin-bottom: 15px;
  color: #9bb093;
}
.confirm-copy {
  font-size: 13px;
  color: #b5c6af;
  line-height: 1.9;
}
.score-mini {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  font-size: 10px;
  color: #b9c9b0;
}
.score-mini b {
  color: #e8ce9b;
  font: 18px Georgia;
  margin-left: 5px;
}
.card.selected:focus-visible {
  outline: 2px solid #edcf97;
}
.round-stamp {
  font-size: 8px;
  letter-spacing: 3px;
  color: #a6b995;
  margin-bottom: 6px;
}
.trick-point-tag {
  color: #ecd4a2;
}
.banner-note {
  font-size: 10px;
  color: #aabd9e;
  margin-top: 9px;
}
.finished-center h2 {
  font: 25px var(--serif);
  color: #ecd4a2;
  letter-spacing: 3px;
  margin: 5px 0 12px;
}
.finished-center .primary-button {
  font-size: 11px;
  min-height: 36px;
  padding: 0 18px;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@keyframes play-in {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes deal-in {
  from {
    opacity: 0;
    translate: 18px -4px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1500px) {
  .arena {
    height: 410px;
  }
  .layout {
    padding-top: 34px;
  }
  .table-rim {
    inset: 59px 75px 20px;
  }
  .table-center {
    top: 120px;
  }
  .welcome h2 {
    font-size: 43px;
  }
  .play-zone {
    padding-top: 18px;
  }
}
@media (max-width: 1180px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 18px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .topbar {
    padding: 0 25px;
  }
  .sidebar > * {
    padding-left: 17px;
    padding-right: 17px;
  }
  .table-meta {
    padding: 0 20px;
  }
  .table-meta > div {
    padding: 0 13px;
    font-size: 11px;
  }
  .arena {
    margin-left: 8px;
    margin-right: 8px;
  }
  .seat {
    width: 127px;
    gap: 7px;
  }
  .seat.pos-2 {
    right: 15%;
  }
  .seat.pos-3 {
    left: 15%;
  }
  .avatar {
    width: 43px;
    height: 43px;
  }
  .table-rim {
    inset: 53px 34px 22px;
  }
  .trick-card-slot.pos-1 {
    right: 18%;
  }
  .trick-card-slot.pos-4 {
    left: 18%;
  }
  .welcome h2 {
    font-size: 31px;
  }
  .action-group {
    gap: 6px;
  }
  .choice-button {
    padding: 0 11px;
    min-width: 40px;
  }
  .topbar nav {
    margin-left: 25px;
  }
  .hand {
    --cw: 83px;
    --ch: calc(var(--cw) * 1.4);
  }
  .play-zone {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hand-scroll {
    min-height: 160px;
  }
}
@media (max-width: 980px) {
  .layout {
    display: block;
    max-width: 900px;
  }
  .sidebar {
    display: none;
  }
  .mobile-history {
    display: inline-flex;
  }
  .game-footnote {
    font-size: 9px;
  }
  .topbar {
    height: 74px;
  }
  .section-heading {
    margin-bottom: 18px;
  }
  .section-heading h1 {
    font-size: 23px;
  }
  .table-meta > div {
    padding: 0 23px;
  }
  .arena {
    height: 365px;
  }
  .table-center {
    top: 109px;
  }
  .table-rim {
    inset: 49px 55px 23px;
  }
  .hand-scroll {
    min-height: 165px;
  }
  .play-zone {
    min-height: 226px;
  }
  .hand {
    --cw: 89px;
    --ch: calc(var(--cw) * 1.4);
  }
  .hand-header > span:nth-child(2) {
    margin-right: 10px;
  }
  .score-mini {
    display: block;
  }
}
@media (max-width: 600px) {
  body {
    background: #102c25;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
    gap: 10px;
  }
  .brand {
    gap: 9px;
  }
  .brand-mark {
    width: 30px;
    height: 35px;
    font-size: 21px;
    border-radius: 4px;
  }
  .brand-mark span {
    font-size: 13px;
  }
  .brand-type {
    font-size: 22px;
    letter-spacing: 4px;
  }
  .brand-type > span {
    font-size: 6px;
    letter-spacing: 1.4px;
    line-height: 1.7;
  }
  .topbar nav,
  .connection,
  .fullscreen {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .icon-button {
    height: 33px;
    width: 33px;
  }
  .icon-button svg {
    height: 16px;
    width: 16px;
  }
  .layout {
    padding: 17px 12px 12px;
  }
  .section-heading {
    margin: 0 5px 16px;
    min-height: 42px;
  }
  .section-heading h1 {
    font-size: 19px;
    letter-spacing: 1px;
  }
  .eyebrow {
    font-size: 6px;
    letter-spacing: 2.1px;
  }
  .section-heading h1 .heading-dot {
    display: none;
  }
  .section-heading .text-button {
    font-size: 10px;
    gap: 4px;
  }
  .table-shell {
    border-radius: 12px;
  }
  .table-meta {
    height: 55px;
    padding: 0 14px;
    justify-content: space-between;
  }
  .table-meta > div {
    flex-direction: column;
    gap: 3px;
    padding: 0 15px;
    font-size: 9px;
    align-items: flex-start;
    line-height: 1.3;
  }
  .table-meta strong {
    font-size: 11px;
  }
  .table-meta > div:last-child {
    margin: 0;
  }
  .arena {
    height: 345px;
    margin: 8px 0 0;
  }
  .table-rim {
    inset: 58px 12px 20px;
    padding: 5px;
    border-radius: 45% / 35%;
  }
  .felt-line {
    inset: 11px;
  }
  .table-edition {
    font-size: 5px;
    letter-spacing: 1.2px;
    bottom: 23px;
  }
  .table-watermark > span {
    font-size: 36px;
  }
  .table-watermark small {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .seat {
    width: 83px;
    gap: 5px;
    flex-direction: column !important;
    text-align: center !important;
  }
  .seat.pos-1 {
    right: 1px;
    top: 41%;
  }
  .seat.pos-4 {
    left: 1px;
    top: 41%;
  }
  .seat.pos-2 {
    right: 16%;
    top: 10px;
  }
  .seat.pos-3 {
    left: 16%;
    top: 10px;
  }
  .avatar {
    width: 40px;
    height: 40px;
    padding: 2px;
  }
  .seat-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0;
  }
  .seat-name {
    font-size: 10px;
    gap: 4px;
  }
  .seat-name .role-badge {
    font-size: 7px;
  }
  .seat-info small {
    font-size: 8px;
    margin-top: 2px;
  }
  .seat-action {
    font-size: 8px;
    top: 91px;
    left: -8px;
    right: -8px;
    line-height: 1.5;
  }
  .seat.pos-2 .seat-action,
  .seat.pos-3 .seat-action {
    top: 78px;
  }
  .table-center {
    left: 16%;
    right: 16%;
    top: 133px;
  }
  .welcome h2 {
    font-size: 29px;
    letter-spacing: 5px;
    margin: 7px 0;
  }
  .welcome .welcome-kicker {
    font-size: 6px;
    letter-spacing: 2.5px;
  }
  .welcome p {
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 14px;
  }
  .welcome .primary-button {
    min-height: 40px;
    padding: 0 22px;
    font-size: 12px;
  }
  .table-status {
    padding: 7px 12px;
    font-size: 10px;
  }
  .human-name {
    bottom: -1px;
    font-size: 10px;
    gap: 5px;
  }
  .human-icon {
    height: 20px;
    width: 20px;
    font-size: 11px;
  }
  .play-zone {
    padding: 8px 12px 0;
    min-height: 226px;
  }
  .action-strip {
    gap: 5px;
    min-height: 68px;
  }
  .primary-button,
  .secondary-button {
    min-height: 40px;
    padding: 0 20px;
    font-size: 12px;
  }
  .action-group {
    gap: 6px;
  }
  .action-group .action-label {
    font-size: 10px;
    flex-basis: 100%;
    text-align: center;
    margin: 0 0 4px;
  }
  .action-group .subtle {
    font-size: 9px;
  }
  .choice-button {
    min-height: 35px;
    padding: 0 10px;
    min-width: 36px;
    font-size: 11px;
  }
  .choice-button .suit {
    font-size: 21px;
  }
  .action-message {
    font-size: 10px;
    max-width: 95%;
    text-align: center;
    line-height: 1.7;
    justify-content: center;
  }
  .hand-header {
    font-size: 9px;
    margin-top: 8px;
    gap: 5px;
  }
  .hand-header b {
    font-size: 9px;
  }
  .hand-header > span:nth-child(2) {
    font-size: 8px;
    letter-spacing: 0;
    margin-right: 2px;
    max-width: 45%;
    text-align: right;
  }
  .mobile-history {
    font-size: 8px;
    gap: 3px;
    white-space: nowrap;
  }
  .mobile-history svg {
    width: 10px;
    height: 10px;
  }
  .hand-scroll {
    padding-top: 24px;
    min-height: 137px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -8px;
    margin-right: -8px;
  }
  .hand {
    --cw: 67px;
    --ch: calc(var(--cw) * 1.4);
    padding: 0 2px;
  }
  .card-ribbon {
    font-size: 6px;
  }
  .points-dot {
    font-size: 6px;
  }
  .hand .card.back {
    --cw: 61px;
    --ch: calc(var(--cw) * 1.4);
    margin-left: -31px;
  }
  .hand .card.selected {
    transform: translateY(-14px);
  }
  .trick-card-slot .card {
    --cw: 48px;
    --ch: calc(var(--cw) * 1.4);
    border-radius: 4px;
  }
  .trick-card-slot.pos-0 {
    left: calc(50% - 24px);
    bottom: 28px;
  }
  .trick-card-slot.pos-1 {
    right: 24%;
    top: 51%;
  }
  .trick-card-slot.pos-4 {
    left: 24%;
    top: 51%;
  }
  .trick-card-slot.pos-2 {
    right: 34%;
    top: 31%;
  }
  .trick-card-slot.pos-3 {
    left: 34%;
    top: 31%;
  }
  .round-stamp {
    font-size: 6px;
    letter-spacing: 2px;
    margin-bottom: 4px;
  }
  .score-mini {
    top: 0;
    right: 12px;
    font-size: 8px;
  }
  .score-mini b {
    font-size: 15px;
  }
  .game-footnote {
    padding: 12px 5px 0;
    gap: 8px;
    font-size: 8px;
    align-items: center;
  }
  .game-footnote > span {
    max-width: 76%;
    gap: 4px;
  }
  .game-footnote .text-button {
    font-size: 9px;
    gap: 4px;
  }
  .game-footnote .text-button svg {
    width: 11px;
    height: 11px;
  }
  .toast {
    bottom: 18px;
    font-size: 11px;
    padding: 10px 15px;
    width: max-content;
  }
  .finished-center h2 {
    font-size: 22px;
  }
  .finished-center .banner-note {
    font-size: 9px;
  }
  dialog {
    padding: 21px;
    max-height: 88svh;
  }
  .dialog-heading h2 {
    font-size: 24px;
  }
  .rule-grid {
    gap: 17px;
  }
  .rule-grid p {
    font-size: 10px;
  }
  .friend-picker {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .setting-row {
    font-size: 11px;
  }
  .segmented button {
    padding: 8px;
  }
  .rule-detail table {
    font-size: 9px;
  }
}
@media (max-width: 370px) {
  .table-meta > div {
    padding: 0 9px;
  }
  .hand-header > span:nth-child(2) {
    display: none;
  }
  .mobile-history {
    margin-left: auto;
  }
  .welcome h2 {
    font-size: 25px;
  }
  .hand {
    --cw: 61px;
    --ch: calc(var(--cw) * 1.4);
  }
  .seat.pos-2 {
    right: 14%;
  }
  .seat.pos-3 {
    left: 14%;
  }
  .table-center {
    left: 19%;
    right: 19%;
  }
  .action-group {
    gap: 4px;
  }
  .choice-button {
    padding: 0 8px;
    min-width: 32px;
  }
}
@media (max-height: 600px) and (min-width: 601px) {
  .topbar {
    height: 45px;
    padding: 0 18px;
  }
  .brand-mark {
    height: 28px;
    width: 24px;
    font-size: 18px;
  }
  .brand-type {
    font-size: 20px;
  }
  .brand-type > span {
    display: none;
  }
  .brand-mark > span {
    font-size: 10px;
  }
  .topbar nav {
    font-size: 11px;
    gap: 22px;
  }
  .top-actions {
    gap: 8px;
  }
  .icon-button {
    width: 29px;
    height: 29px;
  }
  .icon-button svg {
    width: 15px;
    height: 15px;
  }
  .layout {
    display: block;
    padding: 8px 14px;
    max-width: 1000px;
  }
  .sidebar,
  .section-heading,
  .game-footnote {
    display: none;
  }
  .table-shell {
    border-radius: 10px;
  }
  .table-meta {
    height: 36px;
    padding: 0 20px;
  }
  .table-meta > div {
    padding: 0 15px;
    font-size: 9px;
  }
  .table-meta strong {
    font-size: 11px;
  }
  .arena {
    height: 192px;
    margin: 0 8px;
  }
  .table-rim {
    inset: 31px 73px 11px;
    padding: 5px;
  }
  .felt-line {
    inset: 8px;
  }
  .felt .table-edition {
    font-size: 5px;
    bottom: 12px;
  }
  .felt .table-watermark > span {
    font-size: 32px;
  }
  .table-watermark small {
    font-size: 7px;
  }
  .seat {
    width: 115px;
    gap: 6px;
  }
  .seat .avatar {
    width: 34px;
    height: 34px;
    padding: 2px;
  }
  .seat-name {
    font-size: 10px;
  }
  .seat-info small {
    font-size: 8px;
  }
  .seat-action {
    top: 39px;
    font-size: 8px;
  }
  .seat.pos-2 {
    right: 22%;
    top: 3px;
  }
  .seat.pos-3 {
    left: 22%;
    top: 3px;
  }
  .seat.pos-1,
  .seat.pos-4 {
    top: 41%;
  }
  .table-center {
    top: 58px;
  }
  .welcome h2 {
    font-size: 25px;
    margin: 5px 0;
  }
  .welcome .welcome-kicker,
  .welcome p {
    display: none;
  }
  .welcome .primary-button {
    min-height: 32px;
    font-size: 11px;
    padding: 0 22px;
  }
  .table-status {
    font-size: 10px;
    padding: 5px 12px;
  }
  .table-edition {
    bottom: 18px;
  }
  .human-name {
    bottom: -1px;
    font-size: 9px;
  }
  .human-icon {
    width: 17px;
    height: 17px;
    font-size: 9px;
  }
  .play-zone {
    padding: 0 16px;
    min-height: 139px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    grid-template-rows: 19px 1fr;
    column-gap: 10px;
  }
  .action-strip {
    grid-row: 1/3;
    grid-column: 2;
    min-height: 0;
    align-content: center;
    gap: 6px;
  }
  .action-group {
    gap: 5px;
  }
  .action-group .action-label {
    flex-basis: 100%;
    font-size: 9px;
    text-align: center;
    margin: 0;
  }
  .action-group .choice-button {
    min-height: 28px;
    font-size: 10px;
    min-width: 32px;
    padding: 0 7px;
  }
  .action-group .choice-button .suit {
    font-size: 16px;
  }
  .action-strip .primary-button,
  .action-strip .secondary-button {
    min-height: 33px;
    font-size: 11px;
    padding: 0 13px;
  }
  .action-message {
    font-size: 10px;
    text-align: center;
    line-height: 1.8;
  }
  .hand-header {
    margin: 4px 0 0;
    font-size: 8px;
    grid-column: 1;
    grid-row: 1;
  }
  .hand-header > span:nth-child(2) {
    font-size: 8px;
  }
  .mobile-history {
    display: none;
  }
  .hand-scroll {
    grid-column: 1;
    grid-row: 2;
    min-height: 110px;
    padding: 16px 8px 8px;
    margin: 0 -5px;
  }
  .hand {
    --cw: 63px;
    --ch: calc(var(--cw) * 1.4);
    padding: 0 3px;
  }
  .hand .card.back {
    --cw: 61px;
    --ch: calc(var(--cw) * 1.4);
    margin-left: -23px;
  }
  .hand .card.selected {
    transform: translateY(-10px);
  }
  .card-ribbon {
    font-size: 6px;
  }
  .trick-card-slot .card {
    --cw: 42px;
    --ch: calc(var(--cw) * 1.4);
    border-radius: 4px;
  }
  .trick-card-slot > small {
    font-size: 6px;
  }
  .trick-card-slot.pos-0 {
    bottom: 13px;
    left: calc(50% - 21px);
  }
  .trick-card-slot.pos-2,
  .trick-card-slot.pos-3 {
    top: 27%;
  }
  .trick-card-slot.pos-1 {
    right: 22%;
    top: 43%;
  }
  .trick-card-slot.pos-4 {
    left: 22%;
    top: 43%;
  }
  .round-stamp {
    display: none;
  }
  .score-mini {
    display: block;
    font-size: 8px;
    top: 3px;
    right: 4px;
  }
  .score-mini b {
    font-size: 13px;
  }
  .finished-center h2 {
    font-size: 20px;
    margin: 3px 0 8px;
  }
  .finished-center .banner-note {
    font-size: 8px;
    margin-top: 4px;
  }
  .finished-center .primary-button {
    min-height: 29px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.friend-picker > button {
  padding: 0;
  min-width: 0;
  border-radius: 5px;
}
.friend-picker + .picker-note {
  margin-bottom: 0;
}
dialog .dialog-footer {
  position: sticky;
  bottom: -28px;
  background: #18392e;
  padding: 14px 0;
  margin-bottom: -8px;
  z-index: 5;
}
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
@media (max-width: 600px) {
  dialog .dialog-footer {
    bottom: -21px;
  }
  .hand .card.selected:hover {
    transform: translateY(-14px);
    z-index: auto;
  }
}

/* Each overlapping card has a hit target matching its exposed portion. */
.hand .card-target {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: calc(var(--cw) + var(--overlap, -27px));
  height: var(--ch);
  padding: 0;
  overflow: visible;
  text-align: left;
  transition: transform 0.18s;
  outline-offset: 2px;
}
.hand .card-target:last-child {
  width: var(--cw);
}
.hand .card-target > .card {
  display: block;
  margin: 0;
  pointer-events: none;
  transform: none !important;
}
.hand .card-target:disabled {
  opacity: 1;
}
.hand .card-target.unplayable > .card {
  filter: brightness(0.76) saturate(0.65);
}
.hand .card-target.selected {
  transform: translateY(-17px);
}
.hand .card-target.selected > .card {
  box-shadow:
    0 0 0 2px #dfc391,
    0 4px 15px #0b1e1a99;
}
@media (hover: hover) {
  .hand .card-target:hover:not(:disabled) {
    transform: translateY(-7px);
  }
  .hand .card-target.selected:hover {
    transform: translateY(-17px);
  }
}
@media (max-width: 600px) {
  .hand .card-target.selected,
  .hand .card-target.selected:hover {
    transform: translateY(-14px);
  }
}
@media (max-height: 600px) and (min-width: 601px) {
  .hand .card-target.selected,
  .hand .card-target.selected:hover {
    transform: translateY(-10px);
  }
}
@media (max-height: 600px) and (min-width: 601px) {
  .arena {
    height: clamp(115px, calc(100svh - 239px), 192px);
  }
}
@media (min-width: 981px) and (min-height: 601px) and (max-height: 850px) {
  .layout {
    padding-top: 18px;
  }
  .section-heading {
    margin-bottom: 14px;
  }
  .arena {
    height: clamp(205px, calc(100svh - 515px), 335px);
  }
  .table-center {
    top: 70px;
  }
  .welcome h2 {
    font-size: 32px;
  }
  .welcome p {
    margin-bottom: 13px;
  }
  .play-zone {
    padding-top: 8px;
    min-height: 220px;
  }
  .action-strip {
    min-height: 48px;
  }
  .hand-header {
    margin-top: 8px;
  }
  .hand-scroll {
    min-height: 156px;
    padding-top: 22px;
    padding-bottom: 13px;
  }
  .hand {
    --cw: 83px;
    --ch: calc(var(--cw) * 1.4);
  }
  .hand .card.back {
    --cw: 77px;
    --ch: calc(var(--cw) * 1.4);
  }
  .game-footnote {
    padding-top: 10px;
  }
}
@media (min-width: 981px) and (min-height: 601px) and (max-height: 850px) {
  .sidebar {
    padding-top: 67px;
    gap: 14px;
  }
  .score-panel {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .score-title {
    margin-top: 17px;
  }
  .score-number > strong {
    font-size: 52px;
  }
  .score-divider {
    margin: 16px 0;
  }
  .journal {
    max-height: 115px;
  }
  .journal-panel {
    min-height: 118px;
  }
  .sidebar-footer {
    font-size: 8px;
  }
}

/* Round feedback stays beside the controls, never over the five card faces. */
.trick-message {
  display: grid;
  gap: 3px;
  text-align: left;
}
.trick-message strong {
  color: #eddbb4;
  font-size: 12px;
  font-weight: 500;
}
.trick-message small {
  font-size: 10px;
  color: #a9bdaa;
}
@media (max-width: 600px), (max-height: 600px) {
  .trick-message strong { font-size: 10px; }
  .trick-message small { font-size: 8px; }
}
