@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #163b32;
  background: #f6f5ef;
  font-synthesis: none;
  --green: #183f34;
  --muted: #77817a;
  --gold: #bd9453;
  --border: #dce0d6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #bf9a57;
  outline-offset: 4px;
}
header {
  height: 104px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: grid;
  grid-template-columns: 40px auto;
  text-decoration: none;
  color: var(--green);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  align-items: center;
}
.brand-icon {
  grid-row: span 2;
  font-size: 38px;
  letter-spacing: 0;
}
.brand-sub {
  font-size: 8px;
  letter-spacing: 2.3px;
  margin-top: 5px;
  font-weight: 500;
}
.quiet {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 10px;
  font-size: 13px;
}
.quiet span {
  margin-left: 12px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 56px 6% 64px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(42px, 4.4vw, 66px);
  letter-spacing: -2px;
  line-height: 1.14;
  margin-bottom: 23px;
}
h1 em {
  color: #64806a;
  font-weight: 500;
}
h2 {
  font-size: 32px;
  letter-spacing: -0.6px;
  margin-bottom: 15px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  font-size: 14px;
  line-height: 1.8;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #70816d;
}
.eyebrow i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #6f8968;
  border-radius: 50%;
  margin-right: 7px;
}
.muted {
  color: var(--muted);
}
.fine {
  font-size: 11px;
  line-height: 1.7;
  color: #859087;
  margin: 18px 0 0;
}
.landing {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro {
  position: relative;
}
.intro > p {
  color: #728077;
  line-height: 1.9;
}
.panel {
  background: #fdfdf9;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.entry {
  padding: 38px;
  box-shadow: 0 16px 45px #1b3f2f06;
}
.entry .eyebrow {
  color: var(--gold);
  margin-bottom: 14px;
}
.entry h2 {
  font-size: 32px;
  margin-bottom: 10px;
}
.entry .muted {
  font-size: 12px;
  margin-bottom: 28px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
input:not([type="checkbox"]),
select {
  border: 1px solid #dce0d7;
  background: #f8f9f4;
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--green);
  min-width: 0;
}
input:not([type="checkbox"]) {
  width: 100%;
  margin: 9px 0 20px;
}
input::placeholder {
  color: #9ca49b;
  font-size: 12px;
}
.primary,
.secondary {
  padding: 15px 21px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
}
.primary:hover {
  background: #2c5645;
}
.primary span {
  float: right;
}
.secondary {
  border: 1px solid #cbd4c7;
  background: #f0f3eb;
  color: var(--green);
}
.secondary:hover {
  background: #e5ecde;
}
.full {
  width: 100%;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #929b91;
  margin: 26px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e3e6dc;
}
.join-row {
  display: flex;
  gap: 10px;
  margin-top: 9px;
}
.join-row input {
  margin: 0 !important;
  width: 45% !important;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 600;
}
.join-row button {
  flex: 1;
  white-space: nowrap;
}
.entry > .fine {
  text-align: center;
}
.hero-cards {
  position: relative;
  height: 166px;
  margin-top: 32px;
  margin-bottom: 20px;
  padding-left: 16px;
  display: flex;
  align-items: center;
}
.hero-cards .card {
  width: 92px;
  height: 132px;
  transform: rotate(-12deg);
  box-shadow: 0 12px 20px #14362612;
}
.hero-cards .card:nth-child(2) {
  transform: rotate(12deg) translateY(8px);
  margin-left: -20px;
}
.card {
  width: 68px;
  height: 96px;
  border-radius: 7px;
  border: 1px solid #e2e3dc;
  background: #fffdf7;
  box-shadow: 0 3px 4px #0001;
  color: #16382f;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.card > span:first-child {
  position: absolute;
  top: 7px;
  left: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.card small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.card > b {
  font-size: 33px;
  line-height: 1;
}
.card .bottom {
  position: absolute;
  right: 7px;
  bottom: 7px;
  font-size: 13px;
  transform: rotate(180deg);
}
.card.red {
  color: #b25449;
}
.card.back {
  background: repeating-linear-gradient(
    45deg,
    #244e40,
    #244e40 4px,
    #2f594a 4px,
    #2f594a 5px
  );
  border: 4px solid #f1efdf;
  outline: 1px solid #d1d5c8;
}
.card.back > span:first-child {
  position: static;
  font-size: 33px;
  color: #bdba8e;
}
.chip {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 5px dashed #d7b97e;
  background: #234b3e;
  color: #f9f6e9;
  outline: 3px solid #234b3e;
  box-shadow:
    inset 0 0 0 2px #f1e2b733,
    0 5px 10px #16372b22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 23px;
}
.hero-chip {
  margin: 60px 0 0 30px;
  transform: rotate(-15deg);
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #748274;
  font-size: 10px;
}
.rule-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 33px;
  margin-top: 56px;
  gap: 35px;
}
.rule-strip > div + div {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}
.rule-strip span {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #899282;
}
.rule-strip h3 {
  font-family: "Playfair Display", serif;
  font-size: 23px;
  margin: 13px 0 8px;
  font-weight: 500;
}
.rule-strip p {
  font-size: 12px;
  color: #859081;
  margin-bottom: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 6%;
  border-top: 1px solid var(--border);
  color: #889283;
  font-size: 10px;
  gap: 15px;
}
.lobby-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
}
.lobby-layout h1 {
  font-size: 52px;
}
.invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px;
  margin-top: 30px;
}
.invite .eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
}
.invite strong {
  font-size: 35px;
  letter-spacing: 8px;
}
.settings {
  padding: 23px;
  margin-top: 18px;
}
.settings h3 {
  margin-bottom: 5px;
}
.settings p {
  font-size: 12px;
}
.settings label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.settings select {
  width: 110px;
}
.seats {
  padding: 30px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title h2 {
  font-size: 28px;
}
.section-title > span {
  font-size: 12px;
  color: var(--muted);
}
.guest {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #e7eadd;
}
.avatar {
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8eddf;
  color: #547044;
  font-size: 14px;
  font-family: Georgia, serif;
}
.guest > div {
  flex: 1;
}
.guest strong {
  font-size: 13px;
}
.guest small {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: #85907c;
  margin-top: 5px;
}
.ready {
  font-size: 10px;
  color: #718c61;
}
.empty-seat {
  padding: 23px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #97a18f;
}
.empty-seat > span {
  font-size: 25px;
}
.empty-seat p {
  margin: 0;
  flex: 1;
  font-size: 12px;
}
.seats > .primary {
  margin-top: 24px;
}
.seats > .fine {
  text-align: center;
}
.table-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}
.table-heading .eyebrow {
  margin-bottom: 10px;
}
.table-heading h2 {
  margin-bottom: 0;
  font-size: 31px;
}
.room-badge {
  font-size: 9px;
  color: var(--muted);
  text-align: right;
  letter-spacing: 1px;
}
.room-badge b {
  font-size: 19px;
  letter-spacing: 4px;
  margin-left: 10px;
  color: var(--green);
}
.room-badge > span {
  display: block;
  margin-top: 9px;
  font-size: 9px;
  letter-spacing: 0;
}
.online {
  color: #648152;
}
.offline {
  color: #af6c33;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
}
.felt {
  background: radial-gradient(ellipse at 50% 15%, #2a5847, #15382e);
  border-radius: 18px;
  padding: 25px;
  border: 5px solid #d1c9ae;
  box-shadow:
    inset 0 0 0 1px #9a98704d,
    0 8px 24px #143a2410;
  min-height: 300px;
}
.felt-label {
  text-align: center;
  color: #c6bf94;
  letter-spacing: 5px;
  font-size: 13px;
  margin: 1px 0 25px;
}
.felt-label span {
  display: block;
  font-size: 6px;
  letter-spacing: 3px;
  margin-top: 8px;
}
.hands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hand {
  background: #ffffff08;
  border: 1px solid #c6ceae26;
  border-radius: 10px;
  padding: 14px;
  color: #f1f2e3;
  min-width: 0;
}
.hand.active {
  border-color: #e2c383;
  box-shadow: 0 0 0 1px #e2c38344;
}
.hand.banker-hand {
  background: #ffffff0d;
}
.hand-top {
  display: flex;
  justify-content: space-between;
  gap: 7px;
}
.hand-top strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.hand-top span {
  display: block;
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #b8c2a6;
  margin-top: 5px;
}
.hand-top > b {
  font-size: 12px;
}
.hand .positive {
  color: #d4dfb2;
}
.hand .negative {
  color: #efa99a;
}
.cards {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin: 21px 0 18px;
}
.hand-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: #bdcbb4;
  font-size: 9px;
}
.hand-bottom b {
  font-size: 19px;
  color: #ecedda;
  margin-right: 3px;
}
.controls {
  padding: 28px;
  margin-top: 22px;
}
.controls .eyebrow {
  margin-bottom: 12px;
}
.controls h2 {
  font-size: 28px;
  margin-bottom: 9px;
}
.controls p {
  color: #7c8976;
  font-size: 12px;
}
.bets {
  display: flex;
  gap: 25px;
  margin: 24px 0;
}
.bets .chip:hover {
  transform: translateY(-4px);
}
.button-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.challenges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.challenges label {
  background: #edf1e6;
  border: 1px solid #d6dfcc;
  border-radius: 5px;
  padding: 10px;
  font-size: 11px;
}
.challenges input {
  accent-color: #254e39;
}
.ledger {
  padding: 25px;
  height: fit-content;
}
.ledger > .eyebrow {
  font-size: 8px;
  margin-bottom: 10px;
}
.ledger h2 {
  font-size: 23px;
}
.score-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e6e9df;
}
.place {
  font-size: 10px;
  color: #939e88;
  width: 10px;
}
.score-name {
  flex: 1;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.score-name small {
  font-size: 7px;
  display: block;
  color: #9ca58f;
  margin-top: 3px;
  letter-spacing: 1px;
}
.score-row > strong {
  font-size: 13px;
}
.positive {
  color: #446e41;
}
.negative {
  color: #b8614f;
}
.ledger .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.ledger-note {
  font-size: 10px;
  color: #88937d;
  line-height: 1.9;
  margin: 20px 0;
}
.ledger h3 {
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.settlements > div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  gap: 10px;
  font-size: 12px;
}
.settlements small {
  display: block;
  font-size: 9px;
  color: #88937d;
  margin-top: 5px;
  line-height: 1.5;
}
.final {
  max-width: 680px;
  margin: 40px auto;
  padding: 45px;
  text-align: center;
}
.final h1 {
  font-size: 48px;
}
.final .scoreboard {
  text-align: left;
  margin: 30px auto;
  max-width: 420px;
}
.final .score-row {
  padding: 18px 0;
}
.final .score-name {
  font-size: 15px;
}
details {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 18px;
  font-size: 11px;
  line-height: 1.8;
  color: #839079;
}
summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 600;
}
details p {
  font-size: 11px;
  margin-top: 15px;
}
dialog {
  background: #f8f8f0;
  border: 1px solid #bdc7b3;
  border-radius: 16px;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  padding: 35px;
  color: var(--green);
}
dialog::backdrop {
  background: #0e251acc;
  backdrop-filter: blur(4px);
}
dialog h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}
dialog p {
  font-size: 13px;
}
dialog .close {
  float: right;
  margin-top: -15px;
  margin-right: -15px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: 90%;
  padding: 14px 23px;
  background: #173b30;
  color: #fffce8;
  border: 1px solid #99ad84;
  border-radius: 9px;
  box-shadow: 0 8px 30px #0003;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 10;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1300px) {
  .hands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hand:first-child:nth-last-child(2),
  .hand:first-child:nth-last-child(2) ~ .hand {
    grid-column: auto;
  }
  .hands:has(.hand:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .landing {
    gap: 35px;
  }
  .entry {
    padding: 28px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .felt {
    padding: 17px;
  }
  .card {
    width: 54px;
    height: 80px;
  }
  .cards {
    gap: 5px;
  }
  .lobby-layout {
    gap: 35px;
  }
  .lobby-layout h1 {
    font-size: 43px;
  }
  .features {
    gap: 12px;
    font-size: 9px;
  }
  .ledger {
    padding: 18px;
  }
}
@media (max-width: 760px) {
  header {
    height: 83px;
    padding: 0 6%;
  }
  .brand {
    font-size: 15px;
    letter-spacing: 2px;
    grid-template-columns: 32px auto;
  }
  .brand-icon {
    font-size: 30px;
  }
  .brand-sub {
    font-size: 6px;
  }
  .quiet {
    font-size: 11px;
  }
  main {
    padding-top: 35px;
  }
  .landing,
  .lobby-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .intro h1 {
    font-size: 52px;
  }
  .intro > p {
    font-size: 13px;
  }
  .hero-cards {
    position: absolute;
    right: 5px;
    top: 92px;
    opacity: 0.2;
    pointer-events: none;
    transform: scale(0.8);
    transform-origin: right center;
  }
  .features {
    margin-top: 28px;
  }
  .entry {
    padding: 26px;
  }
  .rule-strip {
    gap: 18px;
    margin-top: 35px;
  }
  .rule-strip > div + div {
    padding-left: 16px;
  }
  .rule-strip h3 {
    font-size: 19px;
  }
  .rule-strip p {
    font-size: 10px;
  }
  .rule-strip span {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .table-heading {
    align-items: flex-start;
  }
  .table-heading h2 {
    font-size: 25px;
  }
  .table-heading .eyebrow {
    font-size: 8px;
  }
  .room-badge {
    flex-shrink: 0;
    font-size: 7px;
  }
  .room-badge b {
    display: block;
    margin: 4px 0;
  }
  .felt {
    padding: 16px 12px;
    border-width: 3px;
  }
  .hand {
    padding: 11px;
  }
  .cards .card {
    width: 52px;
    height: 76px;
  }
  .cards {
    gap: 4px;
  }
  .hand-bottom {
    font-size: 8px;
  }
  .hand-top strong {
    font-size: 11px;
  }
  .hand-top > b {
    font-size: 10px;
  }
  .controls {
    padding: 23px;
  }
  .controls h2 {
    font-size: 25px;
  }
  .ledger .scoreboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .ledger-note {
    margin-bottom: 0;
  }
  .seats {
    padding: 25px;
  }
  .final {
    padding: 30px 20px;
    margin-top: 15px;
  }
  .final h1 {
    font-size: 36px;
  }
  footer {
    font-size: 8px;
    line-height: 1.7;
    flex-direction: column;
    gap: 3px;
  }
  .button-row .primary,
  .button-row .secondary {
    padding: 14px 16px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .lobby-layout h1 {
    font-size: 42px;
  }
}
@media (max-width: 390px) {
  main {
    padding-left: 4%;
    padding-right: 4%;
  }
  .card {
    width: 45px !important;
    height: 70px !important;
  }
  .hero-cards .card {
    width: 80px !important;
    height: 115px !important;
  }
  .hand {
    padding: 9px;
  }
  .hands {
    gap: 9px;
  }
  .join-row .secondary {
    padding: 14px 12px;
  }
  .intro h1 {
    font-size: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 760px) {
  .cards:has(.card:nth-child(3)) .card {
    width: calc((100% - 8px) / 3) !important;
    min-width: 0;
  }
  .cards .card > span:first-child {
    font-size: 12px;
    left: 5px;
    top: 5px;
  }
  .cards .card small {
    font-size: 8px;
    margin-top: 2px;
  }
  .cards .card > b {
    font-size: 25px;
  }
  .cards .card .bottom {
    font-size: 10px;
    right: 5px;
    bottom: 5px;
  }
}
