@font-face {
  font-family: Inter;
  src: url("/fonts/inter-variable-v4.1.woff2");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #070f16 url("/poker/lounge-scene-v1.webp") center/cover fixed;
  color: #ecfff9;
  font:
    14px Inter,
    system-ui,
    sans-serif;
}
button,
input {
  font: inherit;
}
button {
  border: 1px solid #4c9e9c;
  border-radius: 12px;
  background: #123436 url("/poker/glass-button-dark-v2.webp") center/100% 100%;
  color: #effffb;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}
button:hover {
  border-color: #8ef4d0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
header {
  min-height: 92px;
  padding: 18px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #335250;
  background: #081317dd;
}
.brand {
  font-size: 30px;
  font-weight: 850;
  color: #9af8ce;
  text-decoration: none;
  white-space: nowrap;
}
.brand small {
  font-size: 11px;
  display: block;
  color: #acc7bf;
  letter-spacing: 0.1em;
}
.account {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.account button {
  min-height: 50px;
}
strong {
  font-weight: 850;
}
#wallet-balance strong {
  display: block;
  color: #9af8ce;
  font-size: 17px;
}
main {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 30px;
  max-width: 1500px;
  margin: auto;
  padding: 28px;
}
aside {
  padding: 20px;
  border-radius: 20px;
  background: #102124 url("/poker/glass-panel-v2.webp") center/100% 100%;
  align-self: start;
}
h1,
h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
nav {
  display: grid;
  gap: 12px;
}
nav button {
  text-align: left;
}
nav button small {
  display: block;
  margin-top: 6px;
  color: #bbd4cb;
}
.muted,
footer {
  color: #a6c0b9;
  font-size: 12px;
  line-height: 1.65;
}
.table-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 45px;
}
.table-top h2 {
  margin: 0;
}
#phase {
  color: #9af8ce;
}
#arena {
  position: relative;
  min-height: 700px;
  isolation: isolate;
}
.table-art {
  position: absolute;
  inset: 60px 4%;
  background: url("/poker/table-studio-wide-v1.webp") center/100% 100% no-repeat;
  z-index: -1;
}
#board {
  position: absolute;
  left: 28%;
  right: 28%;
  top: 45%;
  display: flex;
  justify-content: center;
  gap: 6px;
}
img.card {
  width: 54px;
  max-width: 14vw;
  border-radius: 5px;
}
#pot {
  position: absolute;
  top: 36%;
  width: 100%;
  text-align: center;
  font-size: 17px;
  font-weight: 850;
}
.seat {
  position: absolute;
  width: 150px;
  transform: translate(-50%, -50%);
  text-align: center;
}
.seat .panel {
  background: #112329 url("/poker/glass-panel-v2.webp") center/100% 100%;
  border: 1px solid #477876;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 28px #0009;
}
.seat.active .panel {
  border: 2px solid #8affcd;
  box-shadow: 0 0 20px #7fffc522;
}
.seat img.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #8bd9bc;
  display: block;
  margin: -30px auto 7px;
}
.seat .cards {
  height: 72px;
  display: flex;
  justify-content: center;
  gap: 3px;
  padding-top: 6px;
}
.seat .card {
  width: 44px;
}
.seat .stack {
  font-size: 17px;
  font-weight: 850;
  color: #a5ffce;
}
.seat .name {
  font-size: 11px;
  color: #bed8ce;
}
.seat .state {
  font-size: 11px;
  min-height: 15px;
}
.seat .timer {
  font-weight: 900;
  color: #aaffdc;
}
.empty {
  width: 115px;
  border-style: dashed;
  background: #0f292d;
}
.choices,
#controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
#controls {
  min-height: 90px;
  padding: 22px;
  background: #0c1a20aa;
  border-radius: 16px;
}
#controls input {
  width: 110px;
}
#progress {
  min-height: 40px;
  text-align: center;
  color: #a6fad0;
  line-height: 1.6;
}
dialog {
  max-width: 440px;
  width: calc(100% - 32px);
  border: 1px solid #578b84;
  border-radius: 20px;
  color: #edfff9;
  background: #10232b url("/poker/glass-panel-v2.webp") center/100% 100%;
  padding: 28px;
  box-shadow: 0 30px 100px #000b;
}
dialog::backdrop {
  background: #02090de0;
}
.close {
  float: right;
  padding: 7px 12px;
  margin: 0 0 15px 15px;
}
dialog h2 {
  margin-top: 12px;
}
label {
  display: block;
  color: #c2dcd2;
  margin: 20px 0;
}
input {
  display: block;
  width: 100%;
  padding: 14px;
  color: #fff;
  background: #061419;
  border: 1px solid #497d76;
  border-radius: 10px;
  margin: 8px 0;
  font-size: 18px;
}
.choices button {
  flex: 1;
}
#wallet-options {
  display: grid;
  gap: 10px;
  clear: both;
}
.error {
  color: #ffb5b5 !important;
}
footer {
  padding: 20px;
  text-align: center;
}
button.selected,
#sit {
  background: #19584e url("/poker/glass-button-mint-v2.webp") center/100% 100%;
  color: #dffff0;
}
button.busy::after {
  content: " ◌";
  display: inline-block;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 850px) {
  header {
    padding: 14px;
    align-items: center;
  }
  .brand {
    font-size: 24px;
  }
  .brand small {
    max-width: 110px;
    font-size: 9px;
  }
  .account {
    gap: 6px;
  }
  .account button {
    padding: 7px 10px;
    font-size: 11px;
  }
  .account strong {
    font-size: 13px !important;
  }
  main {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 15px;
  }
  aside {
    padding: 14px;
  }
  aside h1,
  aside p {
    display: none;
  }
  nav {
    display: flex;
    gap: 8px;
    overflow: auto;
  }
  nav button {
    padding: 10px;
    min-width: 130px;
  }
  .table-top {
    font-size: 11px;
  }
  .table-top h2 {
    font-size: 16px;
  }
  #arena {
    min-height: 720px;
  }
  .table-art {
    inset: 50px 5%;
    background-image: url("/poker/table-studio-tall-v1.webp");
  }
  #board {
    left: 18%;
    right: 18%;
    top: 45%;
  }
  img.card {
    width: 38px;
  }
  .seat {
    width: 108px;
  }
  .seat .panel {
    padding: 8px;
  }
  .seat img.avatar {
    width: 46px;
    height: 46px;
    margin-top: -22px;
  }
  .seat .card {
    width: 32px;
  }
  .seat .cards {
    height: 55px;
  }
  .seat .stack {
    font-size: 14px;
  }
  .empty {
    width: 96px;
    padding: 10px;
    font-size: 11px;
  }
  #controls {
    padding: 18px;
    min-height: 95px;
  }
}

#wallet-balance {
  padding: 7px 12px;
  border: 1px solid #335250;
  border-radius: 12px;
  font-size: 11px;
  color: #bbd4cb;
}
#buy-wallet-balance {
  color: #a5ffce;
  font-size: 17px;
  font-weight: 850;
}

@media (max-width: 850px) {
  header {
    flex-wrap: wrap;
  }
  .account {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
