:root {
  color-scheme: dark;
  --bg: #0b1010;
  --panel: #101717;
  --border: #24302d;
  --muted: #84938d;
  --cream: #e9eee6;
  --green: #badf91;
  --gold: #d4bc80;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-size: 14px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 16px;
  background: #1c2924;
  color: var(--cream);
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover:not(:disabled) {
  background: #2c3c31;
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 86px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 28px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: Georgia, serif;
  font-size: 35px;
  letter-spacing: -2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  border: 1px solid #a9c791;
  font-size: 22px;
  color: var(--green);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.brand-sub {
  font-family: system-ui;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-left: 6px;
  margin-top: 9px;
}
nav {
  display: flex;
  gap: 28px;
  flex: 1;
  margin-left: 55px;
}
nav .active {
  color: var(--green);
}
.muted {
  color: var(--muted);
}
.network-panel {
  margin-top: 24px;
  overflow-wrap: anywhere;
}
.network-panel summary {
  cursor: pointer;
}
.small {
  font-size: 11px;
  line-height: 1.6;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 23px;
}
.network {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #b3c8a8;
  white-space: nowrap;
}
.network i,
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
}
.notice {
  min-height: 36px;
  background: #19201a;
  color: #a1ad9b;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 20px;
}
.notice strong {
  font-weight: 500;
  color: #cddac0;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d2be79;
}
main {
  display: flex;
  min-height: calc(100vh - 122px);
}
aside {
  width: 250px;
  padding: 36px 25px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.section-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 600;
}
.balance {
  font-size: 34px;
  letter-spacing: -1.2px;
  margin: 13px 0 4px;
  font-weight: 400;
}
.bank-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
}
.bank-actions button {
  font-size: 10px;
  padding: 9px;
}
.secondary {
  background: #151f1c;
}
.text-button {
  background: transparent;
  border-color: transparent;
  color: var(--green);
}
.primary {
  background: var(--green);
  color: #1a2819;
  border-color: var(--green);
  font-weight: 650;
}
.primary:hover:not(:disabled) {
  background: #cbedac;
}
.rule {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}
.section-label .live-dot {
  float: right;
  width: 5px;
  height: 5px;
  margin: 3px 0;
}
#lobby {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
}
.lobby-table {
  padding: 15px 12px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
}
.lobby-table.selected {
  background: #17211c;
  border-color: #3d503a;
}
.lobby-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.lobby-count {
  font-size: 10px;
  color: var(--green);
}
.lobby-detail {
  font-size: 10px;
  color: var(--muted);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 50px;
}
.sidebar-bottom strong {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}
.sidebar-bottom p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.lock {
  font-size: 27px;
  margin-bottom: 15px;
  color: var(--green);
}
.game {
  min-width: 0;
  flex: 1;
  padding: 33px 38px 0;
  overflow: hidden;
}
.table-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.5px;
  font-size: 31px;
  margin: 7px 0 8px;
}
.table-heading p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.stakes {
  color: #c3cdc6;
}
.divider {
  padding: 0 12px;
}
.hand-meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
  font-size: 11px;
  color: var(--green);
}
#hand {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.arena {
  height: 480px;
  position: relative;
  margin: 8px auto 0;
  max-width: 1050px;
}
.ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse, rgba(73, 115, 67, 0.1), transparent 65%);
  pointer-events: none;
}
.felt {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 90px;
  bottom: 97px;
  border-radius: 160px;
  background: #163c30;
  border: 13px solid #283a2f;
  box-shadow:
    0 0 0 1px #506348,
    inset 0 0 0 2px #46705a,
    0 14px 36px #0008;
}
.felt-inner {
  position: absolute;
  inset: 16px;
  border: 1px solid #3d6250;
  border-radius: 150px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 12px;
  background: radial-gradient(ellipse, #224b37aa, #12382baa);
  box-shadow: inset 0 0 45px #0a241b55;
}
.felt-brand {
  font-family: Georgia, serif;
  font-size: 28px;
  letter-spacing: -2px;
  color: #9ab08d55;
  font-style: italic;
}
.pot-label {
  font-size: 8px;
  letter-spacing: 2px;
  color: #9ab8a2;
  margin-top: 8px;
}
.pot {
  font-size: 21px;
  margin: 5px 0 13px;
  color: #e0e9d7;
  font-variant-numeric: tabular-nums;
}
.board {
  display: flex;
  gap: 7px;
  min-height: 65px;
}
.card {
  width: 43px;
  height: 61px;
  border-radius: 5px;
  background: #f2f0e6;
  box-shadow: 0 3px 5px #0004;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #17241d;
  font-size: 22px;
  font-family: Georgia, serif;
  font-weight: bold;
  line-height: 1;
}
.card small {
  font-size: 19px;
  margin-top: 4px;
}
.card.red {
  color: #b14a42;
}
.card.empty {
  background: #14322677;
  border: 1px solid #51725a;
  box-shadow: none;
  color: #6a927c;
  font-size: 18px;
  font-weight: 400;
}
.table-message {
  font-size: 10px;
  color: #a9bfac;
  margin-top: 14px;
  letter-spacing: 0.3px;
}
.seat {
  position: absolute;
  width: 144px;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.seat-0 {
  left: 50%;
  top: 89%;
}
.seat-1 {
  left: 12%;
  top: 72%;
}
.seat-2 {
  left: 12%;
  top: 28%;
}
.seat-3 {
  left: 50%;
  top: 10%;
}
.seat-4 {
  left: 88%;
  top: 28%;
}
.seat-5 {
  left: 88%;
  top: 72%;
}
.seat-avatar {
  height: 41px;
  width: 41px;
  border-radius: 50%;
  margin: auto auto -8px;
  background: #27372c;
  border: 3px solid #101714;
  box-shadow: 0 0 0 1px #52664b;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #c2d0b9;
  font-family: Georgia;
  font-size: 17px;
}
.seat-box {
  background: #101b15;
  border: 1px solid #344b38;
  padding: 15px 8px 9px;
  border-radius: 7px;
  box-shadow: 0 4px 15px #0003;
}
.seat.acting .seat-box {
  border-color: var(--green);
  box-shadow: 0 0 16px #badf9112;
}
.seat.self .seat-avatar {
  background: var(--green);
  color: #20331d;
}
.seat-name {
  font-size: 10px;
  margin-bottom: 5px;
  color: #bdc9bb;
}
.seat-stack {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.seat.folded {
  opacity: 0.5;
}
.seat-empty {
  border: 1px dashed #3d5142;
  background: #111b17a6;
  color: #98b18f;
  font-size: 11px;
  width: 118px;
  padding: 16px;
}
.seat-status {
  font-size: 9px;
  color: var(--gold);
  min-height: 13px;
  margin-top: 6px;
}
.dealer {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #dcdaca;
  color: #23301f;
  width: 16px;
  height: 16px;
  position: absolute;
  right: 0;
  bottom: 6px;
  font-size: 9px;
  font-weight: 700;
}
.action-bar {
  border: 1px solid var(--border);
  background: linear-gradient(110deg, #17211b, #111916);
  border-radius: 10px;
  min-height: 104px;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.your-hand {
  display: flex;
  align-items: center;
  gap: 17px;
}
.mini-cards {
  display: flex;
  gap: 5px;
}
.mini-cards .card {
  width: 35px;
  height: 49px;
  font-size: 18px;
}
.mini-cards .card small {
  font-size: 15px;
}
.your-hand .section-label {
  margin-bottom: 7px;
}
#position {
  font-size: 12px;
}
#countdown {
  color: var(--gold);
}
.controls {
  display: flex;
  gap: 9px;
  align-items: center;
}
.controls button {
  font-size: 12px;
}
.danger {
  color: #d6a0a0;
}
.raise-control {
  display: flex;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.raise-control input {
  width: 68px;
  border: 0;
  border-radius: 0;
  padding: 10px;
  background: #0c1510;
}
.raise-control button {
  border-radius: 0;
  border: 0;
}
.activity {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px 0;
  font-size: 10px;
  color: var(--muted);
}
.fairness {
  margin-left: auto;
  color: #99ac90;
  white-space: nowrap;
}
dialog {
  color: var(--cream);
  background: #141e18;
  border: 1px solid #3a4b37;
  border-radius: 14px;
  padding: 35px;
  width: 390px;
  max-width: 90vw;
  box-shadow: 0 25px 120px #0009;
}
dialog::backdrop {
  background: #050b08bb;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font: 30px Georgia;
  margin: 12px 0;
}
dialog p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.wide {
  width: 100%;
  margin-top: 12px;
}
.close-dialog {
  position: absolute;
  right: 13px;
  top: 10px;
  background: transparent;
  border: 0;
  font-size: 23px;
  padding: 4px 9px;
  color: var(--muted);
}
input {
  background: #0b1510;
  color: var(--cream);
  border: 1px solid #384934;
  border-radius: 6px;
  padding: 12px;
  min-width: 0;
}
dialog input {
  width: 100%;
  margin: 8px 0 13px;
}
dialog label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 15px;
}
.amount-input {
  display: flex;
  align-items: center;
  gap: 10px;
}
.amount-input input {
  font-size: 23px;
}
.amount-input span {
  font-size: 23px;
  color: var(--green);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 25px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 22px;
  background: #293c2b;
  border: 1px solid #6e8559;
  border-radius: 8px;
  z-index: 10;
  font-size: 12px;
  transition: all 0.2s;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
@media (min-width: 1500px) {
  .game {
    padding: 40px 65px;
  }
  .arena {
    height: 570px;
  }
  .felt {
    top: 110px;
    bottom: 115px;
  }
  .felt-inner {
    padding-top: 23px;
  }
  .pot {
    margin: 8px 0 20px;
  }
}
@media (max-width: 1100px) {
  header {
    padding: 0 20px;
  }
  nav {
    margin-left: 10px;
  }
  nav .muted {
    display: none;
  }
  aside {
    width: 205px;
    padding: 30px 18px;
  }
  .game {
    padding: 28px 20px;
  }
  .seat {
    width: 118px;
  }
  .seat-empty {
    width: 100px;
  }
  .controls {
    gap: 6px;
  }
  .controls button {
    padding: 10px;
  }
  .action-bar {
    padding: 15px;
  }
  .your-hand {
    gap: 8px;
  }
  .fairness {
    display: none;
  }
  .arena {
    height: 450px;
  }
  .felt {
    left: 12%;
    right: 12%;
  }
}
@media (max-width: 760px) {
  header {
    height: 70px;
    padding: 0 16px;
  }
  .brand {
    font-size: 29px;
  }
  .brand-sub {
    display: none;
  }
  nav {
    display: none;
  }
  .header-right {
    gap: 12px;
  }
  .header-right button {
    padding: 9px;
    font-size: 11px;
  }
  .network {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .notice {
    font-size: 10px;
    justify-content: flex-start;
  }
  .notice span:last-child {
    max-width: 75%;
  }
  main {
    display: block;
  }
  aside {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
  }
  .balance {
    font-size: 27px;
    margin: 0;
  }
  .bank-actions {
    grid-column: 2;
    grid-row: 1/4;
    margin: 0;
    align-items: center;
  }
  .rule,
  aside > .small,
  .sidebar-bottom,
  aside > .section-label:nth-of-type(2) {
    display: none;
  }
  #lobby {
    grid-column: 1/3;
    flex-direction: row;
    margin-top: 10px;
    gap: 5px;
  }
  .lobby-table {
    flex: 1;
    padding: 9px;
  }
  .lobby-name {
    font-size: 11px;
  }
  .lobby-detail {
    font-size: 9px;
  }
  .game {
    padding: 23px 13px;
  }
  .arena {
    height: 430px;
    margin-top: 0;
  }
  .felt {
    left: 11%;
    right: 11%;
    top: 91px;
    bottom: 107px;
    border-width: 8px;
    border-radius: 100px;
  }
  .felt-inner {
    inset: 9px;
    border-radius: 100px;
    padding-top: 10px;
  }
  .felt-brand {
    font-size: 20px;
  }
  .pot-label {
    margin-top: 3px;
    font-size: 7px;
  }
  .pot {
    font-size: 18px;
    margin: 4px 0 9px;
  }
  .board {
    gap: 4px;
    min-height: 50px;
  }
  .board .card {
    width: 33px;
    height: 47px;
    font-size: 18px;
  }
  .board .card small {
    font-size: 15px;
  }
  .table-message {
    font-size: 8px;
    margin-top: 9px;
  }
  .seat {
    width: 95px;
  }
  .seat-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .seat-box {
    padding: 14px 4px 7px;
  }
  .seat-name {
    font-size: 9px;
  }
  .seat-stack {
    font-size: 13px;
  }
  .seat-empty {
    width: 88px;
    padding: 12px 4px;
    font-size: 10px;
  }
  .seat-1,
  .seat-2 {
    left: 13%;
  }
  .seat-4,
  .seat-5 {
    left: 87%;
  }
  .seat-3 {
    top: 11%;
  }
  .seat-0 {
    top: 88%;
  }
  .action-bar {
    flex-wrap: wrap;
    padding: 14px;
  }
  .your-hand {
    flex: 1;
  }
  .controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .controls button {
    font-size: 11px;
  }
  .raise-control input {
    width: 55px;
  }
  .activity {
    padding: 16px 0;
    gap: 12px;
    align-items: flex-start;
  }
  .activity .section-label {
    white-space: nowrap;
    font-size: 8px;
  }
  h1 {
    font-size: 27px;
  }
  .hand-meta {
    font-size: 10px;
  }
  .table-heading p {
    font-size: 10px;
  }
}
