:root {
  color-scheme: dark;
  --ink: #f6f1de;
  --muted: #afc0ae;
  --line: #34483e;
  --gold: #f1cc76;
  --base: #101d17;
  --red: #a42938;
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #0a1510;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 15%, #223b2d, transparent 75%);
}
main {
  max-width: 750px;
  margin: auto;
  padding: 0 clamp(12px, 3vw, 28px) 22px;
}
header,
.entry-head,
.room-head,
.dialoghead,
footer,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
header {
  min-height: 58px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.035em;
}
.chipcount,
.eyebrow,
#street {
  font:
    700 0.74rem/1.2 ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chipcount {
  color: var(--gold);
}
.chipcount:before {
  content: "◉";
  margin-right: 6px;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-family: "DM Serif Text", Georgia, serif;
}
h2 {
  font-weight: normal;
  font-size: 1.65rem;
}
.hero {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(162px, 26vw, 240px);
  border: 1px solid #4a6250;
  border-radius: 18px 18px 0 0;
  background: #0e3325;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0 0 0 24%;
  z-index: -2;
  background: url("/assets/poker.png") 52% 50% / cover no-repeat;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #123626 5%, #123626f5 22%, #12362600 60%);
}
.hero > div {
  padding: 18px clamp(16px, 4vw, 34px);
}
.eyebrow {
  color: #e5ca8c;
  font-size: 0.69rem;
}
.hero h1 {
  margin-top: 7px;
  font-weight: 500;
  font-size: clamp(3.35rem, 9vw, 5.9rem);
  line-height: 0.79;
  letter-spacing: -0.07em;
}
.hero em {
  color: var(--gold);
}
.entry,
.lists,
.controls {
  background: var(--base);
  border: 1px solid var(--line);
  padding: 18px;
}
.entry {
  border-top: 0;
  border-radius: 0 0 18px 18px;
}
.entry-head {
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.entry-head span,
.hint,
.row small {
  font-size: 0.86rem;
  color: var(--muted);
}
label {
  display: block;
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.buttons,
.inlineform {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
input,
button,
.button {
  font: inherit;
  border-radius: 9px;
}
input {
  padding: 0.65rem 0.8rem;
  background: #09150f;
  border: 1px solid #526558;
  color: var(--ink);
  min-width: 0;
  width: 100%;
  font-size: 1rem;
}
button,
.button {
  border: 1px solid #496050;
  background: #23382b;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  text-align: center;
}
.gold {
  background: var(--gold);
  color: #242512;
  border-color: var(--gold);
}
button:hover,
.button:hover {
  filter: brightness(1.15);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #a4eed0;
  outline-offset: 2px;
}
.entry .buttons,
#sharebox .buttons {
  margin: 10px 0;
}
.entry .buttons > * {
  flex: 1;
}
.lists {
  border-radius: 14px;
  margin-top: 14px;
}
.tabs {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.tabs button,
footer button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0.4rem 0;
}
.tabs button[aria-pressed="true"] {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
}
.row {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.row:last-child {
  border: 0;
}
.row small {
  display: block;
  margin-top: 2px;
}
#listing > .hint {
  padding: 14px 0 0;
}
#notice {
  border-left: 3px solid var(--gold);
  padding: 8px 10px;
  background: #303427;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.room-head {
  margin: 3px 0 8px;
}
.room-head h2 {
  line-height: 1.15;
}
.room-head .eyebrow {
  margin-bottom: 3px;
}
.felt {
  background: repeating-linear-gradient(128deg, #163e2d 0 2px, #173e2d 2px 4px);
  border: 1px solid #4b7153;
  border-radius: 22px;
  padding: 9px;
}
.rail {
  height: clamp(216px, 34vw, 290px);
  position: relative;
  border: 1px solid #73906a77;
  border-radius: 32% / 42%;
}
.board {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -45%);
  text-align: center;
  width: 58%;
}
#street {
  color: #c3d6be;
  font-size: 0.65rem;
}
.cards {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 5px 0;
}
.card {
  display: grid;
  place-content: center;
  background: #fff6e0;
  color: #142a21;
  width: clamp(24px, 6.5vw, 42px);
  height: clamp(33px, 8vw, 55px);
  font:
    800 clamp(0.95rem, 2.6vw, 1.35rem) / 0.92 Georgia,
    serif;
  border-radius: 4px;
  box-shadow: 0 2px 1px #041a1380;
}
.card i {
  font-style: normal;
}
.card.red {
  color: #ab3140;
}
.card.blank {
  background: #28523c;
  border: 1px dashed #72917277;
  box-shadow: none;
}
#pot {
  font:
    700 0.83rem ui-monospace,
    monospace;
  color: var(--gold);
}
.seat {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  min-width: 55px;
  max-width: 29%;
  background: #11291f;
  border: 1px solid #52725a;
  border-radius: 9px;
  padding: 4px 7px;
  line-height: 1.05;
}
.seat strong,
.seat small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.seat strong {
  font-size: 0.8rem;
}
.seat small {
  font:
    normal 0.72rem ui-monospace,
    monospace;
  color: #eed098;
}
.seat.active {
  outline: 2px solid var(--gold);
}
.seat.folded {
  opacity: 0.7;
}
.seat.mine {
  min-width: 86px;
}
.seat .cards {
  margin: 3px 0;
}
.seat .card {
  width: 22px;
  height: 29px;
  font-size: 0.88rem;
}
.seat.mine .card {
  width: 29px;
  height: 37px;
  font-size: 1.08rem;
}
.controls {
  border-radius: 12px;
  margin: 8px 0;
  padding: 12px 14px;
}
.controls .hint {
  margin: 3px 0;
}
#handrank {
  color: var(--gold);
  font-size: .94rem;
  font-weight: 650;
  margin-bottom: .3rem;
}
.controls .buttons {
  margin-top: 9px;
}
.controls .buttons button {
  flex: 1;
}
#betform,
#chatform {
  margin-top: 9px;
  flex-wrap: nowrap;
}
#betform label {
  font-size: 0.76rem;
  max-width: 62px;
}
#amount,
#message {
  flex: 1;
}
footer {
  justify-content: flex-start;
  gap: 20px;
}
#leave {
  margin-left: auto;
}
dialog {
  width: min(425px, 96vw);
  max-height: 92dvh;
  overflow: auto;
  background: #15251c;
  color: var(--ink);
  border: 1px solid #667660;
  border-radius: 15px;
  padding: 17px;
}
dialog::backdrop {
  background: #030c08b8;
}
dialog p {
  margin: 0.7rem 0;
  color: #c9d5c6;
}
.dialoghead {
  margin-bottom: 8px;
}
#messages {
  max-height: 48dvh;
  min-height: 64px;
  overflow: auto;
}
#messages p {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
#messages b {
  color: var(--gold);
}
[hidden] {
  display: none !important;
}
@media (max-width: 500px) {
  main {
    padding-inline: 9px;
  }
  header {
    min-height: 38px;
  }
  .room-head h2 {
    font-size: 1.3rem;
  }
  .felt {
    padding: 5px;
  }
  .rail {
    height: 208px;
  }
  .seat {
    padding: 3px 5px;
  }
  .entry,
  .lists {
    padding: 13px;
  }
  .controls {
    padding: 9px;
  }
  .room-head button {
    min-height: 36px;
  }
  footer {
    gap: 12px;
  }
  footer button {
    font-size: 0.85rem;
  }
}
@media (max-height: 520px) {
  main {
    padding-bottom: 4px;
  }
  header {
    min-height: 32px;
  }
  .rail {
    height: 195px;
  }
  .room-head {
    margin: 0 0 5px;
  }
  .controls {
    margin: 5px 0;
  }
  .hero {
    min-height: 127px;
  }
  .hero h1 {
    font-size: 3rem;
  }
}

#lobby .lists {
  margin: 0;
  padding: 0 13px;
  border-radius: 0;
  border-top: 0;
}
#lobby .tabs {
  border-bottom: 0;
}
#lobby .tabs button {
  color: var(--gold);
  min-height: 44px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: .85rem;
}
#listing .row > :first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
#listing .row > :last-child {
  flex-shrink: 0;
}
@media (max-height: 520px) {
  #lobby .hero {
    min-height: 80px;
  }
  #lobby .hero > div {
    padding-block: 12px;
  }
  #lobby .entry-head {
    margin-bottom: 8px;
    gap: 4px 10px;
  }
}
