@charset "UTF-8";
:root {
  color-scheme: light;
  --felt: #123e35;
  --felt-light: #1c5044;
  --ink: #173c33;
  --paper: #fcfcf7;
  --lime: #d7ed88;
  --muted: #61736b;
  --line: #dce3d8;
  --red: #c94335;
  font-family:
    Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  font-size: 16px;
  background: var(--felt);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #df9c38;
  outline-offset: 4px;
}
a {
  color: inherit;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
p {
  line-height: 1.7;
}
button {
  line-height: 1.35;
}
input,
select {
  width: 100%;
  height: 52px;
  border: 1px solid #bbc9bd;
  border-radius: 9px;
  background: white;
  padding: 0 14px;
  color: var(--ink);
  font-size: 1rem;
}
input::placeholder {
  color: #6a776e;
}
label,
legend {
  font-size: 0.875rem;
  font-weight: 650;
}
form > label {
  display: block;
  margin: 22px 0 9px;
}
form > label:first-child {
  margin-top: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
fieldset legend {
  padding: 0;
  margin-bottom: 10px;
}
.topbar {
  max-width: 1180px;
  margin: auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  gap: 16px;
  color: var(--paper);
  border-bottom: 1px solid #ffffff26;
}
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
  font-size: 1.7rem;
  letter-spacing: -0.8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.club-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--lime);
}
.brand-dot {
  color: var(--lime);
  margin-left: -8px;
}
.topbar nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.quiet {
  background: transparent;
  color: inherit;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 7px;
  font-size: 0.875rem;
}
.quiet:hover {
  background: #ffffff12;
}
.language {
  border: 1px solid #ffffff35;
  min-width: 46px;
}
.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 750;
  line-height: 1.4;
  color: #536a5c;
}
.eyebrow.light {
  color: #b8cabb;
}
.home-layout {
  max-width: 1120px;
  margin: 68px auto 78px;
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 60px;
  padding: 0 30px;
  align-items: center;
}
.intro {
  color: var(--paper);
  position: relative;
  padding: 15px 0 25px;
}
.intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.5rem, 8.5vw, 8.2rem);
  line-height: 0.88;
  font-weight: 500;
  letter-spacing: -6px;
  margin: 30px 0;
  position: relative;
}
.intro h1 em {
  font-weight: 400;
  color: var(--lime);
}
.hero-club {
  font-style: normal;
  font-size: 6rem;
  display: inline-block;
  vertical-align: middle;
  transform: rotate(17deg);
  color: var(--lime);
  margin-left: 14px;
  letter-spacing: 0;
}
.intro-line {
  font-size: 1.45rem;
  line-height: 1.6;
  margin: 24px 0;
  color: #f2f5e9;
}
.home-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d1dfd4;
  font-size: 0.875rem;
}
.home-facts span + span:before {
  content: "·";
  margin-right: 12px;
  color: var(--lime);
}
.intro-note {
  border-top: 1px solid #ffffff26;
  margin-top: 42px;
  padding-top: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.intro-note > span {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  white-space: nowrap;
  color: var(--lime);
  letter-spacing: 5px;
}
.intro-note p {
  font-size: 0.875rem;
  color: #b8cabb;
  line-height: 1.8;
  margin: 0;
}
.entry-panel,
.paper {
  background: var(--paper);
  border: 1px solid #ffffff35;
  border-radius: 18px;
}
.entry-panel {
  padding: 32px;
  box-shadow: 0 16px 40px #001b2220;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mini-club {
  font-family: Georgia, serif;
  font-size: 1.8rem;
}
.entry-panel h2 {
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin: 14px 0 25px;
}
.tabs {
  display: flex;
  padding: 4px;
  background: #e9ede4;
  border-radius: 10px;
  margin-bottom: 25px;
}
.tabs button {
  flex: 1;
  padding: 12px 6px;
  border-radius: 7px;
  background: none;
  font-size: 0.875rem;
  font-weight: 650;
  color: #586a5d;
  min-height: 44px;
}
.tabs button.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 5px #123e3510;
}
.mode-field {
  margin: 22px 0 0;
}
.mode-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cdd7c9;
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 9px;
  cursor: pointer;
  position: relative;
  font-weight: 400;
}
.mode-option.selected {
  border-color: #3d6244;
  background: #eff4e5;
  box-shadow: 0 0 0 1px #3d6244;
}
.mode-option input {
  position: absolute;
  opacity: 0;
  width: 24px;
  height: 24px;
  right: 12px;
}
.mode-option:focus-within {
  outline: 3px solid #df9c38;
  outline-offset: 2px;
}
.mode-option > span:first-of-type {
  flex: 1;
}
.mode-option strong {
  display: block;
  font-size: 0.875rem;
}
.mode-option small {
  display: block;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 5px;
  color: #536a5c;
}
.radio-dot {
  height: 17px;
  width: 17px;
  border-radius: 50%;
  border: 1.5px solid #a3b29e;
  flex-shrink: 0;
}
.selected .radio-dot {
  border: 5px solid var(--felt);
  background: var(--lime);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 52px;
  padding: 13px 22px;
  font-size: 1rem;
  font-weight: 650;
  border-radius: 10px;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  filter: brightness(0.96);
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.primary {
  background: var(--lime);
  color: #1e3c21;
  border: 1px solid #c8e276;
}
.secondary {
  background: #f3f5ed;
  color: var(--ink);
  border: 1px solid #cbd6c8;
}
.danger {
  background: #a93429;
  color: white;
}
.wide {
  width: 100%;
  justify-content: space-between;
}
.wide:not(:has(> span)) {
  justify-content: center;
}
.entry-note {
  font-size: 0.8rem;
  color: #526657;
  line-height: 1.7;
  text-align: center;
  margin: 15px 0 0;
}
.form-error {
  font-size: 0.875rem;
  color: #b42e25;
  min-height: 0;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.entry-panel form > .button {
  margin-top: 22px;
}
.code-input {
  font-family: ui-monospace, monospace;
  letter-spacing: 5px;
  font-size: 1.5rem;
  text-transform: uppercase;
}
.site-foot {
  max-width: 1120px;
  padding: 20px 30px 30px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: #b8cabb;
  border-top: 1px solid #ffffff26;
  font-size: 0.75rem;
}
.site-foot > a {
  text-decoration: none;
  letter-spacing: 1.5px;
  font-weight: 650;
}
.site-foot .quiet {
  font-size: 0.75rem;
}
.text-button {
  color: var(--felt);
  background: transparent;
  min-height: 44px;
  padding: 8px 4px;
  font-weight: 650;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.resume {
  padding: 10px 12px;
  background: #edf1de;
  border-radius: 8px;
  font-size: 0.8rem;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.room-shell {
  max-width: 1080px;
  margin: 30px auto 50px;
  padding: 0 28px;
}
.room-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--paper);
  margin-bottom: 25px;
}
.room-heading h1 {
  font-size: 1.25rem;
  margin: 8px 0 0;
  font-weight: 400;
}
.room-code {
  font-family: ui-monospace, monospace;
  font-weight: 750;
  letter-spacing: 3px;
  background: none;
  color: var(--lime);
  font-size: 1.6rem;
  padding: 4px;
}
.room-heading .eyebrow {
  font-size: 0.7rem;
}
.on-dark {
  color: #dae4d7;
  border: 1px solid #ffffff30;
}
.lobby-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
}
.seats-panel {
  padding: 28px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-title h2 {
  font-size: 1.3rem;
  letter-spacing: -0.4px;
  margin-bottom: 0;
}
.count-badge {
  font-size: 0.8rem;
  background: #e9eede;
  padding: 7px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.seat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}
.seat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  position: relative;
}
.seat-text {
  min-width: 0;
  flex: 1;
}
.seat strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  line-height: 1.4;
}
.seat small {
  display: block;
  color: #617365;
  font-size: 0.75rem;
  margin-top: 3px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #dbe9b6;
  color: #244a34;
  font-weight: 700;
  font-size: 1rem;
}
.color-1,
.color-5 {
  background: #f4d29e;
}
.color-2,
.color-6 {
  background: #d8def3;
}
.color-3,
.color-7 {
  background: #f4c4b2;
}
.seat-number {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: #7c8b7c;
}
.you {
  font-size: 0.65rem;
  background: #e5eddf;
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 5px;
  white-space: nowrap;
  display: inline-block;
}
.empty {
  border: 1px dashed #ced8c7;
  background: transparent;
  min-height: 76px;
  font-size: 0.75rem;
  color: #596b55;
}
.empty-avatar {
  width: 40px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
}
.remove-seat {
  align-self: flex-start;
  background: none;
  color: #6d7f70;
  padding: 1px 7px;
  font-size: 1.2rem;
  min-width: 30px;
  min-height: 34px;
  margin: -6px -6px 0 0;
}
.offline {
  opacity: 0.7;
}
.lobby-start {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 18px;
}
.lobby-start p {
  font-size: 0.875rem;
  color: #617365;
  margin-bottom: 14px;
}
.invite-panel {
  padding: 28px;
  text-align: center;
}
.invite-panel h2 {
  font-size: 1.3rem;
  margin: 16px 0 22px;
}
.qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e3e9dd;
  border-radius: 12px;
  width: fit-content;
  margin: 0 auto;
  padding: 10px;
}
.qr-wrap canvas {
  max-width: 100%;
  height: auto !important;
  display: block;
}
.invite-code {
  font-family: ui-monospace, monospace;
  font-size: 1.8rem;
  font-weight: 750;
  letter-spacing: 5px;
  margin: 16px 0;
}
.lobby-rules {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
  text-align: left;
}
.lobby-rules p {
  font-size: 0.8rem;
  margin-bottom: 0;
  color: #536a5c;
}
.lobby-rules strong {
  font-size: 0.875rem;
}
.waiting-label {
  padding: 15px 12px;
  background: #e9efe1;
  border-radius: 10px;
  text-align: center;
  font-size: 0.875rem;
  color: #52684e;
}
.connection {
  background: #fae2a3;
  color: #563e08;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.connection .text-button {
  flex-shrink: 0;
  color: inherit;
}
.game-shell {
  max-width: 1000px;
}
.game-shell .room-heading {
  margin-bottom: 16px;
}
.game-meta {
  color: #c1d1c3;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.meta-divider {
  margin: 0 10px;
  color: #6f9380;
}
.opponents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.opponents .seat {
  background: #204c40;
  border-color: #ffffff20;
  color: #f1f4e8;
  padding: 10px;
}
.opponents .seat small {
  color: #c2d3c1;
}
.opponents .seat-number {
  color: #acc4ab;
}
.opponents .seat.current {
  border: 1px solid var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}
.opponents .you {
  background: #416444;
  color: #f2f8e9;
}
.table-surface {
  min-height: 310px;
  background: #1a493d;
  border: 1px solid #648268;
  border-radius: 30px;
  box-shadow:
    inset 0 0 0 7px #164236,
    inset 0 0 0 8px #497056;
  position: relative;
  overflow: hidden;
  padding: 48px 22px 34px;
  color: #f9fbef;
}
.pile-counter {
  position: absolute;
  top: 17px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #c3d6bd;
}
.pile-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.table-center {
  text-align: center;
  max-width: 520px;
  margin: auto;
}
.table-label {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: #d7e6c7;
  overflow-wrap: anywhere;
}
.required-rank {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 1.15;
  color: var(--lime);
  margin-top: 10px;
}
.rank-any {
  font-size: 4.25rem;
}
.claim-question {
  font-size: 1rem;
  margin: 12px 0 6px;
}
.table-fine {
  font-size: 0.8rem;
  color: #bfceba;
  margin: 5px auto 15px;
  max-width: 420px;
}
.table-brand {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  color: #99b698;
  font-size: 0.6rem;
  letter-spacing: 2px;
}
.claim {
  display: flex;
  gap: 17px;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  margin: 8px 0 0;
  font-size: 4.1rem;
  color: var(--lime);
  line-height: 1.15;
}
.claim small {
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  color: #bfceba;
}
.claim b {
  font-weight: 500;
}
.challenge-actions {
  display: flex;
  gap: 12px;
  max-width: 390px;
  margin: 15px auto 0;
}
.challenge-actions > .button {
  flex: 1;
}
.call-bluff {
  background: #e17f66;
  color: #38180d;
  border: 1px solid #e59d7e;
}
.believe {
  background: #e0ecc3;
  color: #23412a;
}
.countdown-track {
  max-width: 220px;
  margin: 14px auto 0;
}
.countdown-track progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff20;
}
.countdown-track progress::-webkit-progress-bar {
  background: #ffffff20;
}
.countdown-track progress::-webkit-progress-value {
  background: var(--lime);
}
.countdown-track progress::-moz-progress-bar {
  background: var(--lime);
}
.timer-label {
  font-size: 0.75rem;
  color: #c9d7bc;
  margin: 7px 0 0;
  font-variant-numeric: tabular-nums;
}
.dark-label {
  background: #2a5744;
  color: #d6e5c7;
  max-width: 320px;
  margin: 14px auto 0;
}
.hand-panel {
  margin-top: 20px;
  padding: 22px 24px;
}
.hand-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.hand-heading h2 {
  font-size: 1rem;
  margin: 0;
}
.hand-heading h2 span {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 7px;
  background: #e9efdf;
  font-size: 0.875rem;
  margin-left: 6px;
}
.hand-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(61px, 1fr));
  gap: 9px;
}
.playing-card {
  position: relative;
  display: block;
  aspect-ratio: 2/2.75;
  background: #fffefa;
  border: 1px solid #bfcab8;
  border-radius: 8px;
  color: #1c3a31;
  text-align: left;
  box-shadow: 0 2px 3px #163c3410;
  min-width: 0;
  max-height: 118px;
  padding: 7px;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.card-corner {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 0.95;
}
.card-corner small {
  display: block;
  font-size: 0.85rem;
  margin-top: 5px;
}
.card-suit {
  font-family: Georgia, "Times New Roman", serif;
  position: absolute;
  right: 7px;
  bottom: 9px;
  font-size: 1.85rem;
  line-height: 1;
}
.playing-card.red {
  color: #b23c30;
}
.playing-card.picked {
  border: 2px solid #335f34;
  background: #edf6d9;
  box-shadow: 0 0 0 2px #bad981;
  transform: translateY(-3px);
}
.card-tick {
  display: none;
  position: absolute;
  right: 4px;
  top: 4px;
  background: #254b2e;
  color: #fff;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  text-align: center;
  font-size: 0.65rem;
  line-height: 15px;
}
.picked .card-tick {
  display: block;
}
.can-play .playing-card:hover {
  transform: translateY(-3px);
}
.hand-cards:not(.can-play) .playing-card {
  cursor: default;
}
.play-controls {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.play-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.play-summary strong {
  font-family: Georgia, serif;
  font-size: 1.4rem;
}
.play-summary select {
  width: 68px;
  height: 44px;
  font-weight: 700;
}
.selected-count {
  font-size: 0.75rem;
  color: #617365;
}
.play-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.play-buttons .button {
  font-size: 0.875rem;
  min-height: 48px;
}
.hidden-hand {
  width: 100%;
  background: #e7eedc;
  border-radius: 12px;
  min-height: 118px;
  color: #45633e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
}
.hidden-hand > span {
  font-family: Georgia, serif;
  font-size: 2.8rem;
}
.empty-hand {
  font-size: 0.875rem;
  grid-column: 1/-1;
  text-align: center;
  color: #63715d;
  margin: 16px;
}
.history {
  color: #c5d6c0;
  font-size: 0.875rem;
  margin-top: 20px;
}
.history summary {
  padding: 14px 0;
  cursor: pointer;
  min-height: 48px;
}
.history ol {
  padding-left: 24px;
  font-size: 0.8rem;
  line-height: 1.7;
}
.history li {
  padding: 6px 0;
}
.reveal-label {
  font-size: 1.5rem;
  font-weight: 650;
  margin: 2px 0 15px;
}
.reveal-cards {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}
.reveal-cards .playing-card {
  width: 62px;
}
.reveal-cards .card-tick {
  display: none;
}
.reveal p {
  font-size: 0.875rem;
  margin: 10px 0 4px;
}
.reveal strong {
  font-size: 1rem;
  color: var(--lime);
}
.winner-club {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--lime);
  line-height: 1.3;
}
.winner-name {
  font-family: Georgia, "PingFang SC", serif;
  font-size: 2.5rem;
  color: var(--lime);
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.winner-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 6px;
}
.winner-actions p {
  font-size: 0.875rem;
}
.final-reveal {
  font-size: 0.875rem;
  margin-top: 12px;
}
.final-reveal summary {
  cursor: pointer;
  padding: 8px;
}
.final-reveal .reveal-label {
  font-size: 1rem;
}
.scores {
  padding: 24px;
  margin-top: 20px;
}
.scores h2 {
  font-size: 1rem;
}
.scores > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.scores strong {
  font-size: 0.8rem;
  white-space: nowrap;
}
.scores span {
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 32px));
  background: #132d25;
  color: #f5f8e9;
  border: 1px solid #a8be92;
  box-shadow: 0 8px 25px #00160e40;
  padding: 14px 20px;
  border-radius: 12px;
  z-index: 30;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
  width: max-content;
}
.toast[hidden] {
  display: none;
}
dialog {
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 80px #00191060;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog::backdrop {
  background: #061d16b8;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  z-index: 1;
}
.modal-head h2 {
  font-size: 1.3rem;
  margin: 0;
}
.close-modal {
  background: #edf1e5;
  color: #3e5846;
  border-radius: 50%;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.modal-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
}
.modal-content > p {
  font-size: 0.875rem;
}
.modal-content .button + .button {
  margin-top: 12px;
}
.modal-content .invite-code {
  text-align: center;
}
.rules-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  background: #eaf1da;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 22px;
}
.rules-steps {
  padding-left: 23px;
}
.rules-steps li {
  padding: 0 0 8px 6px;
}
.rules-steps strong {
  font-size: 1rem;
}
.rules-steps p,
.rule-variant p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #53664f;
  margin: 7px 0 13px;
}
.rule-variant {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 8px;
}
.rule-variant h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.rules-note,
.source-links {
  font-size: 0.75rem !important;
  color: #596b55;
  line-height: 1.7;
}
.source-links a {
  display: inline-block;
  min-height: 30px;
  margin: 0 4px;
}
.save-settings {
  margin-top: 24px;
}
.loading {
  text-align: center;
  margin: 20vh auto;
  padding: 30px;
  color: var(--paper);
}
.loading h1 {
  font-family: Georgia, serif;
  font-size: 3rem;
}
.loading p {
  max-width: 520px;
  margin: auto;
}
.share-url {
  font-size: 0.875rem;
}
@media (min-width: 1100px) {
  .home-layout {
    min-height: 620px;
  }
  .game-shell {
    max-width: 980px;
  }
  .opponents {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .home-layout {
    grid-template-columns: 1fr 410px;
    gap: 28px;
    margin-top: 45px;
  }
  .intro h1 {
    font-size: 6rem;
  }
  .hero-club {
    font-size: 4rem;
  }
  .intro-line {
    font-size: 1.2rem;
  }
  .intro-note {
    display: block;
  }
  .intro-note p {
    margin-top: 10px;
  }
  .home-facts {
    gap: 7px;
    font-size: 0.8rem;
  }
  .home-facts span + span:before {
    margin-right: 7px;
  }
  .entry-panel {
    padding: 26px;
  }
  .lobby-grid {
    gap: 16px;
    grid-template-columns: 1.4fr 1fr;
  }
  .seat-grid {
    grid-template-columns: 1fr;
  }
  .seats-panel,
  .invite-panel {
    padding: 22px;
  }
  .empty:nth-last-child(-n + 3) {
    display: none;
  }
}
@media (max-width: 700px) {
  .topbar {
    min-height: 74px;
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 1.45rem;
  }
  .wordmark .club-mark {
    font-size: 1.9rem;
  }
  .topbar nav {
    gap: 2px;
  }
  .topbar .quiet {
    font-size: 0.8rem;
    padding: 9px;
  }
  .home-layout {
    display: block;
    margin: 26px auto 36px;
    padding: 0 20px;
    max-width: 500px;
  }
  .intro {
    padding: 0 0 24px;
  }
  .intro > .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }
  .intro h1 {
    font-size: 4.8rem;
    letter-spacing: -3px;
    line-height: 1;
    margin: 14px 0 10px;
    white-space: normal;
  }
  .intro h1 br {
    display: none;
  }
  .intro h1 em {
    margin-left: 12px;
  }
  .hero-club {
    font-size: 2.3rem;
    margin-left: 10px;
    vertical-align: 10px;
  }
  .intro-line {
    font-size: 1.1rem;
    margin: 8px 0 13px;
    line-height: 1.5;
  }
  .intro-line br {
    display: none;
  }
  .intro-note {
    display: none;
  }
  .home-facts {
    font-size: 0.75rem;
    gap: 9px;
  }
  .home-facts span + span:before {
    margin-right: 9px;
  }
  .entry-panel {
    padding: 24px;
    border-radius: 16px;
  }
  .entry-panel h2 {
    font-size: 1.4rem;
    margin: 10px 0 20px;
  }
  .entry-panel .panel-heading > .eyebrow {
    font-size: 0.65rem;
  }
  .entry-panel .mini-club {
    font-size: 1.3rem;
  }
  .entry-note {
    font-size: 0.75rem;
  }
  .site-foot {
    margin: 0 20px;
    padding: 14px 0 24px;
    font-size: 0.65rem;
    gap: 8px;
  }
  .site-foot .quiet {
    font-size: 0.7rem;
    padding-right: 0;
  }
  .room-shell {
    padding: 0 16px;
    margin: 24px auto 36px;
  }
  .room-heading {
    gap: 8px;
    margin-bottom: 20px;
  }
  .room-heading h1 {
    font-size: 1rem;
  }
  .room-code {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }
  .room-heading .quiet {
    font-size: 0.75rem;
    padding: 9px 10px;
  }
  .lobby-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .seat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .seats-panel,
  .invite-panel {
    padding: 22px;
  }
  .empty:nth-last-child(-n + 3) {
    display: flex;
  }
  .seat {
    padding: 11px 8px;
    gap: 7px;
    min-height: 70px;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .seat-number {
    display: none;
  }
  .seat small {
    font-size: 0.7rem;
  }
  .seat strong {
    font-size: 0.8rem;
  }
  .empty {
    font-size: 0.7rem;
  }
  .empty-avatar {
    width: 28px;
  }
  .section-title h2 {
    font-size: 1.1rem;
  }
  .invite-panel h2 {
    font-size: 1.25rem;
  }
  .invite-panel .qr-wrap {
    padding: 6px;
  }
  .invite-panel canvas {
    max-width: 180px;
  }
  .lobby-rules {
    text-align: left;
  }
  .lobby-start {
    margin-top: 20px;
  }
  .lobby-start p {
    font-size: 0.8rem;
  }
  .opponents {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }
  .opponents .seat {
    padding: 8px 10px;
    min-height: 62px;
  }
  .opponents .avatar {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  .game-meta {
    font-size: 0.7rem;
    line-height: 1.5;
    margin-bottom: 14px;
    gap: 10px;
  }
  .meta-divider {
    margin: 0 4px;
  }
  .game-meta > span:last-child {
    white-space: nowrap;
  }
  .table-surface {
    border-radius: 22px;
    min-height: 278px;
    padding: 46px 18px 33px;
  }
  .pile-counter {
    font-size: 0.7rem;
    left: 18px;
    top: 14px;
  }
  .required-rank {
    font-size: 4.1rem;
  }
  .rank-any {
    font-size: 3.5rem;
  }
  .claim-question {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .table-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
  .table-fine {
    font-size: 0.75rem;
    line-height: 1.6;
  }
  .table-brand {
    font-size: 0.5rem;
    letter-spacing: 1.4px;
    bottom: 14px;
  }
  .claim {
    font-size: 3.5rem;
    gap: 14px;
  }
  .challenge-actions {
    gap: 10px;
    margin-top: 13px;
  }
  .challenge-actions > .button {
    padding: 12px 10px;
    font-size: 0.875rem;
  }
  .timer-label {
    font-size: 0.7rem;
  }
  .hand-panel {
    padding: 16px 14px;
    margin-top: 16px;
    border-radius: 16px;
  }
  .hand-heading {
    margin-bottom: 14px;
  }
  .hand-heading .text-button {
    font-size: 0.8rem;
    padding: 5px;
    min-height: 36px;
  }
  .hand-cards {
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
  }
  .playing-card {
    padding: 5px;
    border-radius: 6px;
    min-height: 68px;
  }
  .card-corner {
    font-size: 1.1rem;
  }
  .card-corner small {
    font-size: 0.7rem;
    margin-top: 5px;
  }
  .card-suit {
    font-size: 1.4rem;
    bottom: 7px;
    right: 5px;
  }
  .card-tick {
    width: 13px;
    height: 13px;
    font-size: 0.55rem;
    line-height: 13px;
    top: 3px;
    right: 3px;
  }
  .play-controls {
    display: block;
    padding-top: 14px;
    margin-top: 16px;
  }
  .play-summary {
    gap: 8px;
    font-size: 0.8rem;
    min-height: 36px;
    margin-bottom: 12px;
  }
  .play-summary .selected-count {
    margin-left: auto;
    font-size: 0.75rem;
  }
  .play-buttons {
    width: 100%;
    gap: 10px;
  }
  .play-buttons .primary {
    flex: 1;
  }
  .play-buttons .secondary {
    padding: 12px 19px;
  }
  .play-buttons .button {
    font-size: 0.875rem;
    min-height: 50px;
  }
  .history {
    font-size: 0.8rem;
    margin-top: 10px;
  }
  .reveal-label {
    font-size: 1.25rem;
  }
  .reveal-cards .playing-card {
    width: 54px;
  }
  .modal-head {
    padding: 16px 20px;
  }
  .modal-head h2 {
    font-size: 1.15rem;
  }
  .modal-content {
    padding: 20px;
  }
  .rules-lead {
    font-size: 0.95rem;
  }
  .winner-name {
    font-size: 2rem;
  }
  .winner-actions .button {
    width: 100%;
  }
  .scores {
    padding: 20px;
  }
  .connection {
    padding: 9px 12px;
    font-size: 0.8rem;
  }
  .resume {
    font-size: 0.75rem;
    gap: 6px;
  }
  .resume .text-button {
    font-size: 0.8rem;
  }
  .hand-panel .hidden-hand {
    min-height: 105px;
  }
}
@media (max-width: 370px) {
  .topbar {
    padding: 12px 14px;
    gap: 8px;
  }
  .wordmark {
    font-size: 1.25rem;
  }
  .topbar .quiet {
    padding: 8px 7px;
  }
  .home-layout {
    padding: 0 14px;
  }
  .intro h1 {
    font-size: 4.1rem;
  }
  .hero-club {
    font-size: 1.8rem;
    margin-left: 5px;
  }
  .entry-panel {
    padding: 20px;
  }
  .room-shell {
    padding: 0 12px;
  }
  .room-code {
    font-size: 1.15rem;
    letter-spacing: 1px;
  }
  .hand-cards {
    grid-template-columns: repeat(5, 1fr);
  }
  .hand-panel {
    padding: 14px 12px;
  }
  .seat-grid {
    gap: 7px;
  }
  .seats-panel {
    padding: 18px;
  }
  .avatar {
    width: 29px;
    height: 29px;
  }
  .seat {
    gap: 5px;
  }
  .empty-avatar {
    width: 23px;
  }
  .game-meta {
    font-size: 0.65rem;
  }
  .table-surface {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 700px) {
  .intro h1 em {
    display: inline-block;
  }
  .intro h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }
  .hero-club {
    vertical-align: middle;
  }
  .entry-panel,
  .intro,
  .home-layout {
    min-width: 0;
  }
  .home-facts {
    overflow-wrap: anywhere;
  }
  .play-buttons {
    flex-wrap: wrap;
  }
  .play-summary {
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .opponents {
    display: flex;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scroll-snap-type: x proximity;
  }
  .opponents .seat {
    flex: 0 0 145px;
    scroll-snap-align: start;
  }
  .opponents .seat small {
    font-size: 0.75rem;
  }
  .table-surface.turn {
    min-height: 234px;
    padding-top: 42px;
  }
  .table-surface.turn .required-rank {
    font-size: 3.5rem;
  }
  .table-surface.turn .claim-question {
    margin-top: 8px;
  }
  .game-meta {
    font-size: 0.75rem;
  }
  .table-fine {
    font-size: 0.8rem;
  }
  .hand-panel .text-button {
    font-size: 0.875rem;
  }
}
