:root {
  color-scheme: light;
  --ink: #202122;
  --muted: #96999c;
  --line: #eeeeef;
  --blue: #7fc5de;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: #fff;
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 12px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.casino {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.felt-noise,
.feed,
.state-pop {
  display: none !important;
}
header {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid #f0f0f0;
}
.logo {
  font-size: 22px;
  color: #313335;
  text-decoration: none;
}
.table-name {
  flex: 1;
  min-width: 0;
}
.table-name b {
  font-size: 13px;
  font-weight: 550;
}
.table-name > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.table-name em {
  font-style: normal;
}
.table-name i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #98b4a4;
  border-radius: 50%;
  margin-right: 4px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quiet {
  background: none;
  border: 0;
  padding: 8px;
  color: #73777a;
  font-size: 11px;
}
.codex-state {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  border-radius: 20px;
  font-size: 10px;
  color: #8a8d90;
}
.codex-state time {
  font-variant-numeric: tabular-nums;
}
.codex-state > i {
  width: 5px;
  height: 5px;
  background: #8caaa0;
  border-radius: 50%;
}
.table-area {
  position: absolute;
  inset: 58px 0 0;
}
.table-area:before {
  content: "";
  position: absolute;
  inset: 8% 12% 25%;
  background: #f7f7f7;
  border: 1px solid #f0f0f0;
  border-radius: 48% / 35%;
}
.dealer {
  position: absolute;
  left: 50%;
  top: 37%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 2;
}
.round {
  order: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a0a2a5;
  font-size: 10px;
}
.round b {
  font-size: 11px;
  font-weight: 500;
  color: #6d7175;
  font-variant-numeric: tabular-nums;
}
.pot {
  order: 1;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 30px;
  padding: 7px 13px;
  white-space: nowrap;
  color: #a2a4a6;
  font-size: 10px;
  box-shadow: 0 1px 2px #00000002;
}
.pot b {
  margin-left: 7px;
  color: #3b3d3f;
  font-weight: 600;
}
.pot em {
  font-style: normal;
}
.cards {
  order: 2;
  display: flex;
  gap: 7px;
}
.card {
  width: 54px;
  height: 77px;
  border: 1px solid #ececee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 4px #00000002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 10px;
  font-size: 20px;
  font-weight: 550;
  line-height: 1;
}
.card small {
  font-size: 27px;
  align-self: center;
  margin-top: 4px;
}
.card.back {
  align-items: center;
  justify-content: center;
  font-size: 29px;
  font-weight: 400;
  color: #424548;
}
.card.back span {
  position: relative;
  width: 26px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: rotate(30deg);
}
.card.back span:before,
.card.back span:after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid currentColor;
  border-radius: inherit;
  transform-origin: center;
}
.card.back span:before { transform: rotate(60deg); }
.card.back span:after { transform: rotate(120deg); }
.red-card {
  color: #bc4c4d;
}
.rail {
  position: absolute;
  top: 10%;
  bottom: 31%;
  width: 29%;
  max-width: 195px;
  z-index: 3;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  align-items: center;
  gap: 8px;
}
.rail-left {
  left: 3%;
}
.rail-right {
  right: 3%;
}
.player {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px;
  border: 1px solid #eeeeef;
  background: #ffffffed;
  border-radius: 40px;
  box-shadow: 0 1px 3px #00000004;
  min-width: 0;
}
.avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #f1f1f1;
  font-size: 10px;
  font-weight: 500;
  color: #54616c;
}
.a1 {
  background: linear-gradient(140deg, #daf7f2, #cfd2ef);
}
.a2 {
  background: linear-gradient(140deg, #eed1b7, #afbfaa);
}
.a3 {
  background: linear-gradient(140deg, #dbb8b8, #bfc7e5);
}
.a4 {
  background: linear-gradient(140deg, #f2e3b9, #b8d8cc);
}
.a5 {
  background: linear-gradient(140deg, #bdd7ec, #e0c9de);
}
.a6 {
  background: linear-gradient(140deg, #cce9d7, #c7c6df);
}
.pcopy {
  min-width: 0;
}
.pcopy b,
.pcopy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcopy b {
  font-size: 10px;
  font-weight: 550;
  line-height: 1.5;
}
.pcopy span {
  font-size: 9px;
  color: #a3a5a7;
  margin-top: 1px;
}
.pcopy .attn {
  color: #b4986c;
}
.me {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 23px;
  width: max-content;
  max-width: 94%;
}
.me-main {
  position: relative;
  display: grid;
  grid-template-columns: 38px auto;
  column-gap: 8px;
  align-items: center;
  padding: 8px 17px 8px 8px;
  min-width: 162px;
  border: 1.5px solid #82c4dc;
  border-radius: 40px;
  box-shadow:
    0 0 0 3px #eaf6fa,
    0 3px 9px #00000004;
  background: #fff;
}
.avatar.you {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #dac8ad, #a0b5ae);
  color: #536b61;
}
.me-copy b {
  font-size: 12px;
  font-weight: 550;
}
.me-copy > span {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #f0f0f0;
  background: #fff;
  border-radius: 30px;
  white-space: nowrap;
  padding: 5px 10px;
  color: #a0a3a5;
  font-size: 9px;
}
.me-copy i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #555;
  margin-right: 5px;
  box-shadow:
    5px 0 #999,
    10px 0 #ddd;
}
.me-copy > span > span {
  margin-left: 8px;
}
.me-main > strong {
  grid-column: 2;
  font-size: 12px;
  font-weight: 400;
  color: #969a9d;
  line-height: 1.5;
}
.bet-controls {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stake {
  width: min(290px, 82vw);
  border: 1px solid #eeeeef;
  padding: 9px 13px 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px #00000003;
}
.stake-head,
.stake-row,
.stake-marks {
  display: flex;
  align-items: center;
}
.stake-head {
  justify-content: space-between;
  color: #999da0;
  font-size: 10px;
}
.stake-head b {
  color: #45484a;
  font-size: 11px;
  font-weight: 600;
}
.stake-row {
  gap: 8px;
  margin-top: 7px;
  color: #b0b2b4;
  font-size: 8px;
}
.stake-row input {
  flex: 1;
  height: 4px;
  accent-color: #78bcd5;
  cursor: pointer;
}
.stake-marks {
  justify-content: space-between;
  margin-top: 6px;
}
.stake-marks button {
  border: 0;
  background: transparent;
  color: #999da0;
  border-radius: 10px;
  font-size: 9px;
  padding: 3px 6px;
}
.stake-marks button.active {
  background: #f0f0f0;
  color: #383a3c;
}
.chips{display:flex;align-items:center;gap:3px;height:41px;padding:5px 11px 5px 5px;border:1px solid var(--line);border-radius:999px;background:#fff;box-shadow:0 2px 10px #00000005;white-space:nowrap}
.chips button{border:0;background:transparent;color:#999da0;border-radius:20px;width:39px;height:29px;font-size:11px;padding:0;font-weight:500}
.chips button.active{background:#f0f0f0;color:#383a3c}
.effort{--fill:25%;position:relative;width:96px;height:20px;margin:0 7px;background:linear-gradient(to right,#467def var(--fill),#f0f1f3 var(--fill));border-radius:999px}
.effort input{appearance:none;-webkit-appearance:none;position:absolute;inset:0;width:100%;height:20px;margin:0;background:transparent;cursor:pointer;z-index:2}
.effort input::-webkit-slider-runnable-track{height:20px;background:transparent}
.effort input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;margin-top:-2px;border:1px solid #e9eaed;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0002}
.effort input::-moz-range-thumb{width:22px;height:22px;border:1px solid #e9eaed;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0002}
.effort-dots{position:absolute;inset:0 7px;background:radial-gradient(circle,#b9c4d8 1.5px,transparent 2px) left center/20% 100% repeat-x;pointer-events:none}
#betPercent{font-size:9px;color:var(--muted);width:27px;text-align:center;font-variant-numeric:tabular-nums}
#betAmount{font-size:11px;font-weight:500;margin-left:5px;min-width:78px;text-align:right;color:var(--ink);font-variant-numeric:tabular-nums}
@media(max-width:440px){.chips{gap:1px;padding-right:8px}.chips button{width:31px;font-size:10px}.effort{width:72px;margin:0 5px}#betAmount{min-width:66px;font-size:10px;margin-left:2px}#betPercent{width:24px}}
@media(prefers-color-scheme:dark){.chips{background:#202121}.chips button.active{background:#383939;color:#f1f1ef}.effort{background:linear-gradient(to right,#467def var(--fill),#353739 var(--fill))}}
.choices {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid #eeeeef;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 3px 12px #00000004;
}
.choices button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 111px;
  height: 38px;
  border: 1px solid #ededed;
  border-radius: 30px;
  background: #fff;
  color: #b64e50;
}
.choices button.black {
  background: #202122;
  color: #fff;
  border-color: #202122;
}
.choices button span {
  font-size: 16px;
}
.choices button b {
  font-size: 11px;
  font-weight: 500;
}
.choices button.selected {
  box-shadow: 0 0 0 2px #8ccade;
}
.choices button:disabled {
  opacity: 0.45;
  cursor: default;
}
.toast {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 10;
  transform: translate(-50%, -50%);
  max-width: 90%;
  border: 1px solid #e9e9e9;
  background: #fff;
  padding: 10px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 20px #00000008;
  font-size: 11px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.show {
  opacity: 1;
}
.demo-note {
  position: absolute;
  top: 62px;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 7px 12px;
  border: 1px solid #e9e9e9;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  color: #747779;
  font-size: 10px;
  text-align: center;
  backdrop-filter: blur(12px);
}
.demo-note[hidden] { display: none; }
@media (min-width: 900px) {
  .table-area:before {
    inset: 10% 16% 25%;
    border-radius: 45% / 48%;
  }
  .rail-left {
    left: 10%;
  }
  .rail-right {
    right: 10%;
  }
  .card {
    width: 65px;
    height: 91px;
  }
  .dealer {
    gap: 22px;
  }
}
@media (max-width: 480px) {
  header {
    padding: 0 12px;
  }
  .codex-state span {
    display: none;
  }
  .rail {
    width: 27%;
    top: 9%;
    bottom: 35%;
  }
  .rail-left {
    left: 2%;
  }
  .rail-right {
    right: 2%;
  }
  .player {
    flex-direction: column;
    border-radius: 23px;
    gap: 3px;
    padding: 6px 4px;
    text-align: center;
  }
  .avatar {
    width: 27px;
    height: 27px;
    font-size: 9px;
  }
  .pcopy {
    width: 100%;
  }
  .pcopy b {
    font-size: 9px;
  }
  .pcopy span {
    font-size: 8px;
  }
  .card {
    width: 39px;
    height: 58px;
    padding: 6px;
    font-size: 17px;
  }
  .card small {
    font-size: 20px;
  }
  .cards {
    gap: 4px;
  }
  .pot {
    font-size: 9px;
    padding: 6px 8px;
  }
  .pot b {
    margin-left: 3px;
  }
  .table-area:before {
    left: 10%;
    right: 10%;
  }
  .dealer {
    top: 34%;
    gap: 13px;
  }
}
@media (max-height: 620px) {
  header {
    height: 48px;
  }
  .table-area {
    top: 48px;
  }
  .me {
    bottom: 3%;
    gap: 14px;
  }
  .me-main {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .bet-controls {
    gap: 5px;
    margin-top: 18px;
  }
  .stake { padding-top: 6px; padding-bottom: 5px; }
  .choices button {
    height: 31px;
  }
  .rail {
    top: 5%;
    bottom: 40%;
    gap: 4px;
  }
  .dealer {
    top: 28%;
    gap: 10px;
  }
  .table-area:before {
    top: 4%;
    bottom: 32%;
  }
  .card {
    height: 60px;
    width: 43px;
  }
  .player {
    padding: 4px;
  }
  .avatar {
    width: 25px;
    height: 25px;
  }
  .me-copy > span {
    top: calc(100% + 6px);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #ededeb;
    --muted: #9c9e9f;
    --line: #303131;
    --blue: #679fb3;
  }
  body,
  .casino {
    background: #181919;
    color: var(--ink);
  }
  header {
    border-color: #292a2a;
  }
  .logo,
  .quiet {
    color: #ddd;
  }
  .codex-state,
  .player,
  .pot,
  .me-main,
  .me-copy > span,
  .stake,
  .choices,
  .choices button,
  .toast {
    background: #202121;
    border-color: #303131;
    color: #dededc;
  }
  .table-area::before {
    background: #202121;
    border-color: #292a2a;
  }
  .card {
    background: #242525;
    border-color: #333;
    color: #ececea;
  }
  .card.back {
    color: #bfc0bd;
  }
  .stake-marks button {
    color: #a4a6a7;
  }
  .stake-marks button.active {
    background: #383939;
    color: #f1f1ef;
  }
  .choices button.red {
    color: #dc8586;
  }
  .choices button.black {
    background: #e7e7e4;
    color: #202121;
    border-color: #e7e7e4;
  }
  .me-main {
    box-shadow: 0 0 0 3px #20333a;
  }
  .avatar {
    border-color: #242525;
    box-shadow: 0 0 0 1px #363737;
  }
  .toast {
    box-shadow: 0 4px 20px #0004;
  }
  .demo-note,
  .stake {
    background: rgba(32,33,33,.94);
    border-color: #303131;
    color: #b8baba;
  }
  .stake-head b {
    color: #ededeb;
  }
}
