:root {
  --bg: #07101c;
  --panel: #0e1929;
  --panel2: #121f32;
  --line: #26374d;
  --blue: #2d82f7;
  --cyan: #2bd9ff;
  --text: #f4f7fb;
  --muted: #8ea0b8;
  --green: #28b77a;
  --red: #e4525b;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
.app {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 15%, #112b48, #07101c 55%);
  padding-bottom: 184px;
}
header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  background: #081321ef;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  margin-right: auto;
}
.brand span {
  font-size: 29px;
  color: var(--blue);
}
.switch {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  padding: 4px;
  background: #050b14;
  border: 1px solid #223247;
  border-radius: 10px;
}
.switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 22px;
  border-radius: 7px;
  font-weight: 700;
}
.switch button.on {
  background: #1b2b40;
  color: #fff;
  box-shadow: 0 1px 6px #000;
}
.share,
.icon-btn {
  padding: 9px 16px;
  border: 1px solid #31445f;
  background: #101d2f;
  border-radius: 9px;
}
.share {
  border-color: var(--blue);
  color: #72adff;
  font-weight: 800;
}
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #203047;
  background: #0b1625;
  padding: 0 22px;
  gap: 30px;
}
.topbar > button {
  border: 0;
  background: transparent;
  text-align: left;
  min-width: 190px;
}
.topbar > button b {
  display: block;
}
.topbar > button span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.street-tabs {
  display: flex;
  height: 100%;
  margin: auto;
}
.street-tabs button {
  min-width: 110px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  font-weight: 700;
}
.street-tabs button.on {
  color: #69a8ff;
  border-color: var(--blue);
}
.street-tabs button:disabled {
  cursor: default;
}
.main-area {
  height: calc(100vh - 130px);
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 8px 20px 18px;
}
.table {
  position: relative;
  width: min(96vw, 1200px);
  aspect-ratio: 2.05;
  border-radius: 50%;
  background: radial-gradient(ellipse, #0d3854, #09253b 65%, #061625);
  border: 6px solid #0878b5;
  box-shadow:
    0 0 0 15px #05111f,
    0 0 35px #079de866,
    inset 0 0 75px #020a12;
}
.table:after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid #1e526e;
  border-radius: 50%;
  pointer-events: none;
}
.pot {
  position: absolute;
  left: 50%;
  top: 39%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: #050d18;
  border: 2px solid #38cfff;
  border-radius: 12px;
  box-shadow: 0 0 18px #20bfe755;
}
.pot span {
  font-size: 11px;
  color: #a9c6d8;
  font-weight: 900;
  letter-spacing: 1px;
}
.pot b {
  color: #67ecff;
  font-size: 20px;
  line-height: 1;
}
.board {
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  gap: 5px;
  border: 0;
  background: transparent;
}
.card,
.empty-card {
  width: 44px;
  height: 62px;
  border-radius: 6px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  color: #141c28;
  padding: 5px;
  box-shadow: 0 3px 8px #0009;
  text-align: left;
}
.card b {
  font-size: 14px;
}
.card i {
  font-style: normal;
  font-size: 25px;
  margin: auto;
}
.card.red {
  color: #d52831;
}
.card.back {
  display: grid;
  place-items: center;
  color: #b6c8df;
  background: repeating-linear-gradient(
    45deg,
    #26384f,
    #26384f 4px,
    #53667d 4px 6px
  );
}
.empty-card {
  display: grid;
  place-items: center;
  border: 1px dashed #4b6078;
  color: #668099;
  background: #091a2a;
  font-size: 18px;
}
.seat {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 7;
  border: 0;
  background: transparent;
  padding: 0;
  transition: 0.2s;
}
.seat.active {
  filter: drop-shadow(0 0 18px #2bd9ff);
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 12;
}
.seat.active .plate {
  border: 3px solid #59e8ff;
  background: #12314a;
  box-shadow:
    0 0 0 5px #2bd9ff33,
    0 0 24px #2bd9ff99;
}
.seat.winner {
  filter: drop-shadow(0 0 22px #ffd43b);
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 13;
}
.seat.winner .plate {
  border: 3px solid #ffd43b;
  background: #3b3010;
}
.seat.folded {
  opacity: 0.55;
}
.seat.folded .plate {
  background: #101b29;
  border-color: #536980;
}
.seats-8 .seat,
.seats-9 .seat {
  transform: translate(-50%, -50%) scale(0.83);
}
.seats-8 .seat.active,
.seats-9 .seat.active,
.seats-8 .seat.winner,
.seats-9 .seat.winner {
  transform: translate(-50%, -50%) scale(0.94);
}
.hole {
  display: flex;
  justify-content: center;
  gap: 3px;
  height: 48px;
  margin: 0 0 6px;
}
.hole .card {
  width: 36px;
  height: 48px;
  padding: 4px;
}
.hole .card b {
  font-size: 12px;
}
.hole .card i {
  font-size: 19px;
}
.plate {
  min-width: 118px;
  padding: 8px 11px 9px;
  border: 1px solid #6a8099;
  border-radius: 12px;
  background: #0a1422;
  text-align: left;
  box-shadow: 0 5px 14px #000d;
}
.plate .player-line {
  display: flex;
  gap: 6px;
  align-items: center;
}
.plate b {
  font-size: 12px;
}
.plate em {
  font-style: normal;
  font-size: 8px;
  color: var(--cyan);
  border: 1px solid #1d7694;
  border-radius: 5px;
  padding: 2px 4px;
}
.plate > span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #f0f5fb;
}
.turn-badge {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translate(-50%);
  padding: 5px 13px;
  border-radius: 6px;
  background: #ffe23d;
  color: #07101c;
  font-size: 10px;
  font-weight: 1000;
  box-shadow: 0 0 15px #ffe23d;
  animation: turnPulse 0.8s ease-in-out infinite alternate;
  white-space: nowrap;
}
.table-bet {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #5ceaff;
  border-radius: 9px;
  background: #06121ef2;
  box-shadow: 0 0 10px #1ccbe555;
  white-space: nowrap;
}
.table-bet i {
  color: #ff4b4b;
  font-style: normal;
  text-shadow: 0 0 6px #ff3838;
}
.table-bet b {
  color: #fff;
  font-size: 12px;
}
.action-bubble {
  position: absolute;
  left: 50%;
  top: 65%;
  transform: translate(-50%, -50%);
  z-index: 6;
  padding: 9px 18px;
  background: #0b1929;
  border: 1px solid var(--blue);
  border-radius: 20px;
  box-shadow: 0 0 15px #2d82f744;
  animation: pop 0.2s ease;
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
}
@keyframes turnPulse {
  to {
    transform: translate(-50%) scale(1.1);
    filter: brightness(1.15);
  }
}
.recorder {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  background: #0b1422f5;
  border-top: 1px solid #30425a;
  box-shadow: 0 -10px 30px #0007;
  padding: 10px 22px 12px;
}
.recorder.complete .action-pad,
.recorder.complete .quick {
  opacity: 0.22;
  pointer-events: none;
}
.record-head {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1180px;
  margin: auto auto 9px;
}
.record-head > div {
  min-width: 150px;
}
.record-head span,
.record-head label {
  font-size: 10px;
  color: var(--muted);
}
.record-head b {
  display: block;
  color: var(--cyan);
  font-size: 18px;
}
.record-head label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.record-head input {
  flex: 1;
  max-width: 280px;
}
.undo {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.undo:disabled {
  opacity: 0.3;
}
input {
  color: var(--text);
  background: #081321;
  border: 1px solid #30435d;
  border-radius: 7px;
  padding: 9px;
  min-width: 0;
}
.action-pad {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 130px 1.25fr 1fr;
  gap: 8px;
}
.action-pad button {
  height: 52px;
  border: 1px solid #3b4b61;
  border-radius: 9px;
  background: #162339;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.action-pad button:hover {
  border-color: #6c87a8;
  background: #1b2d47;
}
.action-pad .fold {
  color: #ff8f95;
  border-color: #733b46;
}
.action-pad .raise {
  background: #174d83;
  border-color: #2d82f7;
}
.action-pad .allin {
  background: #702d3a;
  border-color: #b44758;
}
.amount {
  display: flex;
  align-items: center;
  border: 1px solid #3b4b61;
  border-radius: 9px;
  background: #081321;
}
.amount span {
  padding-left: 12px;
  color: var(--muted);
}
.amount input {
  width: 100%;
  border: 0;
  background: transparent;
}
.quick {
  max-width: 1180px;
  margin: 8px auto 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.quick > span {
  font-size: 10px;
  color: var(--muted);
  margin-right: 5px;
}
.quick button {
  border: 1px solid #2a3a50;
  background: #111e30;
  border-radius: 7px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 10px;
}
.quick button b {
  color: #dbe7f5;
  margin-left: 5px;
}
.replay-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0b1422f5;
  border-top: 1px solid #30425a;
  padding: 15px 6vw;
}
.replay-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid #35465e;
  background: #121f32;
  border-radius: 9px;
  font-size: 20px;
}
.replay-controls .play {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--blue);
  border-color: #70adff;
}
.replay-controls input {
  flex: 1;
  max-width: 560px;
  accent-color: var(--blue);
}
.replay-controls > b {
  font-size: 12px;
  color: var(--muted);
}
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #02060bbd;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  width: min(94vw, 620px);
  max-height: 90vh;
  overflow: auto;
  background: #111d2d;
  border: 1px solid #38506d;
  border-radius: 16px;
  box-shadow: 0 24px 80px #000;
  padding: 20px;
}
.modal-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-title small {
  color: var(--blue);
  font-weight: 800;
}
.modal-title h2 {
  margin: 3px 0;
  font-size: 22px;
}
.modal-title button {
  border: 0;
  background: transparent;
  font-size: 27px;
  color: var(--muted);
}
.modal label {
  font-size: 11px;
  color: var(--muted);
}
.seat-count {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin: 8px 0 18px;
}
.seat-count button {
  height: 40px;
  border: 1px solid #33465e;
  background: #0b1625;
  border-radius: 7px;
}
.seat-count button.on {
  background: var(--blue);
  border-color: #7eb7ff;
}
.blind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.blind-grid input,
.seat-modal input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.modal h3 {
  font-size: 13px;
  margin: 22px 0 8px;
}
.setup-players {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.setup-players > div {
  display: grid;
  grid-template-columns: 56px 1fr 76px 1fr 52px;
  gap: 6px;
  align-items: center;
}
.setup-players b {
  font-size: 10px;
  color: var(--muted);
}
.setup-players input {
  font-size: 11px;
  padding: 8px;
}
.hero {
  height: 34px;
  border: 1px solid #3b4a5f;
  border-radius: 6px;
  background: #152238;
  font-size: 9px;
}
.hero.on {
  color: var(--cyan);
  border-color: var(--cyan);
}
.primary {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  font-weight: 900;
}
.seat-modal label {
  display: block;
  margin-bottom: 12px;
}
.history {
  position: fixed;
  right: 0;
  top: 64px;
  bottom: 0;
  width: min(410px, 92vw);
  z-index: 40;
  background: #101c2c;
  border-left: 1px solid #354961;
  box-shadow: -15px 0 40px #0008;
  padding: 18px;
  overflow: auto;
}
.history > div {
  display: flex;
  justify-content: space-between;
}
.history > div button {
  border: 0;
  background: transparent;
  font-size: 24px;
}
.history > button:not(.danger) {
  display: grid;
  grid-template-columns: 30px 70px 1fr;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #273950;
  background: transparent;
}
.history > button span {
  color: var(--muted);
}
.history > button b {
  color: #6da9ff;
}
.history p {
  color: var(--muted);
}
.danger {
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #6d3340;
  background: #301722;
  color: #ff8e97;
  border-radius: 8px;
}
.share-layer {
  z-index: 90;
}
.share-modal {
  width: min(94vw, 560px);
}
.share-modal p {
  color: var(--muted);
  font-size: 13px;
}
.share-url {
  width: 100%;
  font-size: 12px;
}
@media (max-width: 800px) {
  .app {
    padding-bottom: 218px;
  }
  header {
    padding: 0 10px;
  }
  .brand b {
    font-size: 16px;
  }
  .switch {
    position: static;
    transform: none;
    margin-left: auto;
  }
  .switch button {
    padding: 7px 10px;
    font-size: 11px;
  }
  .icon-btn {
    display: none;
  }
  .share {
    padding: 8px 10px;
  }
  .topbar {
    height: 92px;
    display: block;
    padding: 8px 10px;
  }
  .topbar > button {
    min-width: 0;
  }
  .topbar > button b,
  .topbar > button span {
    display: inline;
    margin-right: 8px;
  }
  .street-tabs {
    height: 48px;
    width: 100%;
  }
  .street-tabs button {
    min-width: 0;
    flex: 1;
    font-size: 10px;
  }
  .main-area {
    height: 390px;
    min-height: 0;
    padding: 45px 9px 25px;
  }
  .table {
    width: 82vw;
    aspect-ratio: 1.15;
  }
  .plate {
    min-width: 76px;
    padding: 5px 7px;
  }
  .plate b,
  .plate span {
    font-size: 9px;
  }
  .seat {
    transform: translate(-50%, -50%) scale(0.85);
  }
  .seat.active {
    transform: translate(-50%, -50%) scale(0.92);
  }
  .pot {
    top: 30%;
    padding: 5px 10px;
  }
  .board {
    top: 47%;
    gap: 3px;
  }
  .card,
  .empty-card {
    width: 32px;
    height: 45px;
  }
  .card b {
    font-size: 10px;
  }
  .card i {
    font-size: 18px;
  }
  .action-bubble {
    top: 65%;
    font-size: 10px;
    padding: 7px 10px;
  }
  .recorder {
    padding: 7px 8px 9px;
  }
  .record-head {
    gap: 8px;
  }
  .record-head > div {
    min-width: 90px;
  }
  .record-head b {
    font-size: 14px;
  }
  .record-head label {
    display: none;
  }
  .undo {
    font-size: 11px;
  }
  .action-pad {
    grid-template-columns: repeat(3, 1fr);
  }
  .action-pad button {
    height: 44px;
    font-size: 10px;
  }
  .amount {
    height: 44px;
  }
  .raise,
  .allin {
    grid-column: auto;
  }
  .quick {
    overflow-x: auto;
  }
  .quick > span {
    display: none;
  }
  .quick button {
    white-space: nowrap;
  }
  .setup-players > div {
    grid-template-columns: 40px 1fr 62px;
  }
  .setup-players > div input:nth-of-type(3) {
    grid-column: 2/4;
  }
  .setup-players .hero {
    grid-column: 4;
    grid-row: 1;
  }
  .seat-count {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 801px) {
  .badugi .badugi-draw-history {
    top: 65%;
  }
}
.badugi-draw-pad.known-cards {
  grid-template-columns: 180px 1fr;
}
.badugi-draw-pad.known-cards > b {
  padding: 10px;
  border: 1px solid #34556c;
  border-radius: 9px;
  background: #091a29;
}
.badugi-draw-pad.known-cards > b strong {
  color: #ff7780;
  font-size: 21px;
}
.badugi-draw-pad .exchange-selected {
  border-color: #ff6672;
  background: #722d39;
  color: #fff;
  box-shadow: 0 0 15px #ff536044;
}
.hole-slot {
  position: relative;
}
.hole-slot.discard-selected {
  transform: translateY(-8px) rotate(-3deg);
  filter: drop-shadow(0 0 9px #ff4e5c);
}
.hole-slot.discard-selected .card {
  opacity: 0.38;
  border: 2px solid #ff5d68;
}
.hole-slot.discard-selected::after {
  content: "交換";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  padding: 2px 4px;
  border-radius: 4px;
  background: #dc3444;
  color: #fff;
  font-size: 8px;
  font-weight: 1000;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .badugi-draw-pad.known-cards {
    grid-template-columns: 92px 1fr;
  }
  .badugi-draw-pad.known-cards > b {
    grid-column: auto;
    padding: 6px;
    font-size: 9px;
  }
  .badugi-draw-pad.known-cards > b strong {
    font-size: 16px;
  }
  .hole-slot.discard-selected {
    transform: translateY(-5px) rotate(-2deg);
  }
  .hole-slot.discard-selected::after {
    font-size: 6px;
  }
}
@media (max-width: 430px) {
  .brand span {
    display: none;
  }
  .table {
    width: 76vw;
  }
  .seats-8 .seat,
  .seats-9 .seat {
    transform: translate(-50%, -50%) scale(0.67);
  }
  .seats-8 .seat.active,
  .seats-9 .seat.active {
    transform: translate(-50%, -50%) scale(0.74);
  }
}
.action-pad button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}
.main-area {
  height: calc(100vh - 300px);
  min-height: 0;
  padding: 14px 40px;
}
.table {
  height: min(calc(100vh - 315px), 470px);
  width: auto;
  max-width: 78vw;
  aspect-ratio: 1.9;
}
.board > button {
  border: 0;
  background: transparent;
  padding: 0;
}
.bet-chip {
  position: absolute;
  left: 50%;
  top: calc(100% + 5px);
  transform: translate(-50%);
  white-space: nowrap;
  color: #6ce5ff;
  font-size: 10px;
  font-weight: 800;
  text-shadow: 0 1px 4px #000;
}
.setup-players > div {
  grid-template-columns: 56px 1fr 76px 94px 52px;
}
.mini-card-select {
  height: 36px;
  display: flex;
  gap: 4px;
  justify-content: center;
}
.mini-card-select > button {
  width: 38px;
  height: 36px;
  border: 1px solid #40546c;
  border-radius: 5px;
  background: #0a1523;
  display: grid;
  place-items: center;
  padding: 0;
  color: #6c819a;
}
.mini-card-select .card {
  width: 31px;
  height: 34px;
  padding: 2px;
  box-shadow: none;
}
.mini-card-select .card b {
  font-size: 9px;
}
.mini-card-select .card i {
  font-size: 14px;
}
.board-hint {
  flex: 1;
  color: var(--muted);
  font-size: 11px;
}
.picker-layer {
  z-index: 80;
}
.card-picker {
  width: min(97vw, 1040px);
  padding: 15px;
  overflow: auto;
}
.card-picker .modal-title {
  margin-bottom: 8px;
}
.card-picker .modal-title h2 {
  font-size: 18px;
}
.suit-heads {
  display: none;
}
.deck-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(4, 76px);
  grid-auto-flow: row;
  gap: 7px;
  min-width: 860px;
}
.deck-grid > button {
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.deck-grid > button:hover {
  outline: 2px solid var(--cyan);
  transform: translateY(-2px);
}
.deck-grid > button:disabled {
  opacity: 0.18;
  cursor: not-allowed;
}
.deck-grid > button:disabled:hover {
  outline: 0;
  transform: none;
}
.deck-grid .card {
  width: 60px;
  height: 76px;
  padding: 5px;
  box-shadow: 0 2px 5px #000a;
}
.deck-grid .card b {
  font-size: 20px;
}
.deck-grid .card i {
  font-size: 32px;
}
.clear-card {
  width: 100%;
  margin-top: 8px;
  padding: 7px;
  border: 1px solid #536276;
  background: #121d2b;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 800px) {
  .main-area {
    height: 330px;
    padding: 34px 8px 20px;
  }
  .table {
    height: auto;
    width: 76vw;
    max-width: none;
    aspect-ratio: 1.2;
  }
  .setup-players > div {
    grid-template-columns: 40px 1fr 62px 86px;
  }
  .mini-card-select {
    grid-column: 4;
    grid-row: 1;
  }
  .setup-players .hero {
    grid-column: 4;
    grid-row: 2;
  }
  .bet-chip {
    font-size: 8px;
  }
  .deck-grid {
    grid-template-rows: repeat(4, 61px);
    min-width: 730px;
  }
  .deck-grid .card {
    width: 50px;
    height: 61px;
  }
  .deck-grid .card b {
    font-size: 16px;
  }
  .deck-grid .card i {
    font-size: 25px;
  }
}
.hand-complete {
  position: absolute;
  left: 50%;
  top: 67%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 260px;
  padding: 14px 24px;
  border: 2px solid #ffd43b;
  border-radius: 14px;
  background: #111a25f2;
  box-shadow: 0 0 35px #ffd43b77;
  text-align: center;
  animation: completePop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.hand-complete small {
  color: #ffd43b;
  font-weight: 900;
  letter-spacing: 2px;
}
.hand-complete b {
  font-size: 21px;
  margin: 4px 0;
}
.hand-complete span {
  color: #74eaff;
  font-size: 18px;
  font-weight: 900;
}
.flying-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 18;
  color: #ffd43b;
  font-size: 22px;
  text-shadow: 0 0 8px #ff8a00;
  animation: chipFly 1.15s cubic-bezier(0.3, 0.1, 0.6, 1) var(--delay) both;
}
@keyframes chipFly {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
      scale(1.15);
    opacity: 0;
  }
}
@keyframes completePop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.65);
  }
}
.main-area {
  height: calc(100dvh - 300px);
  min-height: 0;
  padding: 8px 20px;
}
.table {
  height: auto;
  width: min(92vw, 1100px, calc((100dvh - 315px) * 2.05));
  max-width: none;
  aspect-ratio: 2.05;
}
.reset-btn {
  padding: 9px 13px;
  border: 1px solid #5d6d82;
  background: #172335;
  border-radius: 9px;
  font-weight: 800;
}
.runout-panel {
  max-width: 1180px;
  margin: auto;
  padding: 14px;
  border: 2px solid #ffd43b;
  border-radius: 10px;
  background: #2b2510;
  color: #ffe75c;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.hand-complete button {
  margin-top: 10px;
  padding: 8px 18px;
  border: 0;
  border-radius: 7px;
  background: #2d82f7;
  font-weight: 900;
}
.recorder.complete .action-pad {
  display: none;
}
.hole-slot {
  display: block;
  border-radius: 5px;
}
.hole-slot:hover {
  outline: 2px solid var(--cyan);
}
.mobile-result {
  display: none;
}
.runout-guide {
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translate(-50%);
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 2px solid #ffe23d;
  border-radius: 10px;
  background: #241f09f2;
  box-shadow: 0 0 22px #ffe23d66;
  white-space: nowrap;
}
.runout-guide small {
  color: #ffe23d;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 1px;
}
.runout-guide b {
  font-size: 14px;
}
.runout-guide span {
  display: grid;
  place-items: center;
  min-width: 42px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ffe23d;
  color: #151000;
  font-size: 11px;
  font-weight: 1000;
}
.runout-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 5px 0 14px;
}
.runout-progress span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  border: 1px solid #334963;
  border-radius: 8px;
  background: #0b1726;
  color: #74879f;
  font-size: 11px;
}
.runout-progress span b {
  font-size: 9px;
}
.runout-progress span.done {
  border-color: #23865f;
  background: #102c24;
  color: #65e2ab;
}
.runout-progress span.now {
  border: 2px solid #ffe23d;
  background: #30290d;
  color: #ffe23d;
  box-shadow: 0 0 13px #ffe23d44;
}
@media (max-width: 800px) {
  .app {
    padding-bottom: 170px;
  }
  .main-area {
    height: calc(100dvh - 270px);
    padding: 12px 4px;
  }
  .table {
    width: min(96vw, calc((100dvh - 285px) * 0.92));
    max-width: none;
    aspect-ratio: 0.92;
  }
  .seat {
    left: var(--mobile-x) !important;
    top: var(--mobile-y) !important;
    transform: translate(-50%, -50%) scale(0.72);
  }
  .seat.active {
    transform: translate(-50%, -50%) scale(0.79);
  }
  .table-bet {
    left: var(--mobile-x) !important;
    top: var(--mobile-y) !important;
    flex-direction: column;
    gap: 0;
    width: 30px;
    min-height: 39px;
    padding: 3px 2px;
    border-radius: 9px;
  }
  .table-bet i {
    font-size: 17px;
    line-height: 18px;
  }
  .table-bet b {
    font-size: 9px;
    line-height: 12px;
  }
  .pot {
    top: 40%;
    padding: 6px 12px;
  }
  .board {
    top: 53%;
  }
  .action-bubble {
    top: 66%;
    padding: 6px 11px;
    font-size: 9px;
  }
  .runout-guide {
    top: 19%;
    flex-direction: column;
    gap: 2px;
    padding: 5px 9px;
  }
  .runout-guide span {
    min-width: 36px;
  }
  .seats-8 .seat,
  .seats-9 .seat {
    transform: translate(-50%, -50%) scale(0.58);
  }
  .seats-8 .seat.active,
  .seats-9 .seat.active {
    transform: translate(-50%, -50%) scale(0.64);
  }
  .reset-btn {
    padding: 8px 9px;
    font-size: 10px;
  }
  .runout-panel {
    padding: 10px;
    font-size: 11px;
  }
  .runout-progress {
    gap: 3px;
  }
  .runout-progress span {
    flex-direction: column;
    gap: 1px;
    padding: 4px 1px;
  }
}
@media (max-width: 800px) {
  .picker-layer {
    padding: 4px;
  }
  .card-picker {
    width: calc(100vw - 8px);
    max-height: calc(100dvh - 8px);
    padding: 10px 7px;
    overflow: hidden;
    border-radius: 12px;
  }
  .card-picker .modal-title {
    margin-bottom: 7px;
  }
  .card-picker .modal-title h2 {
    font-size: 16px;
  }
  .deck-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    gap: 3px;
  }
  .deck-grid .card {
    width: 100%;
    height: auto;
    aspect-ratio: 0.72;
    padding: 2px;
    border-radius: 4px;
  }
  .deck-grid .card b {
    font-size: clamp(8px, 2.8vw, 14px);
    line-height: 1;
  }
  .deck-grid .card i {
    font-size: clamp(13px, 4.6vw, 23px);
    line-height: 1;
  }
  .clear-card {
    margin-top: 7px;
    padding: 7px;
  }
  .runout-progress {
    margin-bottom: 7px;
  }
}
@media (max-width: 800px) {
  .table .hand-complete {
    display: none;
  }
  .recorder.complete {
    padding: 8px;
  }
  .recorder.complete .record-head,
  .recorder.complete .runout-panel {
    display: none;
  }
  .mobile-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
  }
  .mobile-result span {
    color: #ffd43b;
    font-size: 8px;
    font-weight: 1000;
    letter-spacing: 1px;
  }
  .mobile-result b {
    font-size: 14px;
  }
  .mobile-result strong {
    color: #67ecff;
    font-size: 18px;
  }
  .mobile-result button {
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    font-size: 11px;
    font-weight: 900;
  }
}
.main-area {
  height: calc(100dvh - 234px);
}
.table {
  width: min(58vw, 820px, calc((100dvh - 430px) * 2.05));
}
.pot {
  padding: 5px 10px;
}
.pot b {
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.hand-complete {
  top: 72%;
  min-width: 0;
  flex-direction: row;
  gap: 7px;
  padding: 7px 12px;
  border-width: 1px;
  border-radius: 9px;
  white-space: nowrap;
}
.hand-complete small {
  font-size: 7px;
  letter-spacing: 1px;
}
.hand-complete b {
  margin: 0;
  font-size: 12px;
}
.hand-complete span {
  font-size: 12px;
}
.hand-complete button {
  display: none;
}
.seat .plate,
.seat.active .plate,
.seat.winner .plate,
.seat.folded .plate {
  min-width: 86px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.seat.active .hole {
  filter: drop-shadow(0 0 11px #2bd9ff);
}
.seat.winner .hole {
  filter: drop-shadow(0 0 13px #ffd43b);
}
.seat .hole {
  height: 48px;
  margin-bottom: 3px;
}
.seat .player-line {
  justify-content: center;
}
.seat .player-line b {
  padding: 2px 6px;
  border-radius: 4px;
  background: #0a3049;
  color: #7edcff;
}
.seat .plate > span {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #07121e;
  color: #fff;
}
.seat.active {
  transform: translate(-50%, -50%) scale(1.04);
}
.seat.active .plate {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.board {
  width: 40%;
  justify-content: center;
}
.setup-link {
  margin-left: 0;
  padding: 7px 10px;
  border: 1px solid #40546d;
  border-radius: 7px;
  background: #132136;
  color: #d5e2f0;
}
@media (max-width: 800px) {
  .main-area {
    height: calc(100dvh - 234px);
    padding: 24px 4px;
  }
  .table {
    width: min(72vw, calc((100dvh - 340px) * 1.15));
    aspect-ratio: 1.15;
  }
  .record-head {
    flex-wrap: wrap;
  }
  .setup-link {
    margin-left: auto;
  }
  .record-head .setup-link + .undo {
    margin-left: 0;
  }
  .seat .plate,
  .seat.active .plate,
  .seat.winner .plate {
    min-width: 72px;
  }
  .seat.active {
    transform: translate(-50%, -50%) scale(0.79);
  }
  .pot {
    top: 30%;
  }
  .board {
    top: 53%;
    width: 40%;
    gap: 2px;
  }
  .action-bubble {
    top: 76%;
  }
  .board .card,
  .board .empty-card {
    width: 25px;
    height: 36px;
  }
  .board .card {
    padding: 2px;
  }
  .board .card b {
    font-size: 9px;
  }
  .board .card i {
    font-size: 15px;
  }
}
@media (max-width: 800px) {
  .seat.hero-seat .plate > span {
    margin-top: 4px;
    padding: 4px 9px;
    border: 1px solid #37dfff;
    background: #0b2940;
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
    box-shadow: 0 0 10px #28cfff55;
  }
}
@media (max-width: 800px) {
  .seat .plate > span {
    margin-top: 3px;
    padding: 3px 7px;
    border: 1px solid #37dfff;
    background: #0b2940;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 0 8px #28cfff44;
  }
  .seat.hero-seat .plate > span {
    margin-top: 4px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 1000;
    box-shadow: 0 0 10px #28cfff66;
  }
}
@media (min-width: 801px) {
  .pot {
    top: 30%;
  }
  .board {
    top: 53%;
  }
  .action-bubble {
    top: 68%;
  }
  .seat .plate > span {
    margin-top: 3px;
    padding: 3px 8px;
    border: 1px solid #37dfff;
    background: #0b2940;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 0 8px #28cfff44;
  }
}
.seat.top-seat .turn-badge {
  left: calc(100% + 8px);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  animation: sideTurnPulse 0.8s ease-in-out infinite alternate;
}
@keyframes sideTurnPulse {
  to {
    transform: translateY(-50%) scale(1.1);
    filter: brightness(1.15);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.save-btn {
  padding: 9px 14px;
  border: 1px solid #28cfff;
  background: #0b2940;
  color: #7feaff;
  border-radius: 9px;
  font-weight: 900;
}
.storage-note {
  padding: 9px;
  border: 1px solid #29415c;
  border-radius: 8px;
  background: #0a1625;
  font-size: 11px;
  line-height: 1.5;
}
.history h3 {
  margin: 18px 0 8px;
  font-size: 12px;
  color: #8ea0b8;
}
.saved-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.saved-hand {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: stretch;
}
.saved-hand > button:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px;
  border: 1px solid #2e4965;
  border-radius: 8px;
  background: #0c1a2b;
  text-align: left;
}
.saved-hand b {
  color: #67ecff;
}
.saved-hand span,
.saved-hand small {
  color: #8ea0b8;
  font-size: 10px;
}
.saved-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.saved-share {
  padding: 8px;
  border: 1px solid #2d82f7;
  border-radius: 8px;
  background: #174d83;
  color: #fff;
}
.saved-rename {
  padding: 8px;
  border: 1px solid #257493;
  border-radius: 8px;
  background: #0b2940;
  color: #7feaff;
}
.saved-delete {
  padding: 8px;
  border: 1px solid #743947;
  border-radius: 8px;
  background: #321923;
  color: #ff9099;
}
@media (max-width: 800px) {
  .save-btn {
    padding: 8px 9px;
    font-size: 10px;
  }
  .saved-hand {
    grid-template-columns: 1fr;
  }
  .saved-actions {
    flex-direction: row;
  }
  .saved-actions button {
    flex: 1;
  }
}
@media (max-width: 800px) {
  .table.replay .hand-complete {
    display: flex;
    top: 72%;
    max-width: 88%;
    padding: 6px 9px;
    gap: 5px;
  }
  .table.replay .hand-complete b,
  .table.replay .hand-complete span {
    font-size: 11px;
  }
  .table.replay .hand-complete small {
    font-size: 6px;
  }
}
.editable-stack {
  cursor: text;
}
.editable-stack:hover {
  filter: brightness(1.35);
}
.share:disabled,
.saved-share:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Keep every player's remaining stack readable at a glance. */
.seat .plate > span {
  min-width: 48px;
  padding: 4px 9px;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 1000;
}
@media (max-width: 800px) {
  .seat .plate > span,
  .seat.hero-seat .plate > span {
    min-width: 44px;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.15;
  }
  .seats-8 .seat .plate > span,
  .seats-9 .seat .plate > span {
    font-size: 16px;
  }
}
@media (max-width: 800px) {
  .turn-badge {
    display: none;
  }
  .seat:not(.top-seat) .turn-badge {
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(
      calc(-50% + var(--action-x)),
      calc(-50% + var(--action-y))
    );
    animation: mobileActionPulse 0.8s ease-in-out infinite alternate;
  }
}
@keyframes mobileActionPulse {
  to {
    transform: translate(
        calc(-50% + var(--action-x)),
        calc(-50% + var(--action-y))
      )
      scale(1.08);
    filter: brightness(1.15);
  }
}
@media (max-width: 800px) {
  .mobile-result .mobile-result-undo {
    border: 1px solid #40546d;
    background: #162339;
    color: #dce9f8;
  }
}
@media (max-width: 430px) {
  .mobile-result {
    gap: 6px;
  }
  .mobile-result > span {
    display: none;
  }
  .mobile-result button {
    padding: 8px 9px;
  }
}
@media (max-width: 800px) {
  .icon-btn {
    display: block;
    position: fixed;
    top: 72px;
    right: 10px;
    z-index: 30;
    padding: 7px 11px;
    border-color: #2d82f7;
    background: #0b2940ef;
    color: #7feaff;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 4px 14px #0008;
  }
}
.side-pot-summary {
  position: absolute;
  left: 50%;
  top: 39%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 76%;
  padding: 4px 8px;
  border: 1px solid #2b8fb0;
  border-radius: 999px;
  background: #07131fe8;
  color: #8deaff;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .side-pot-summary {
    top: 40%;
    max-width: 92%;
    padding: 3px 6px;
    font-size: 7px;
  }
}
.share-caption {
  display: block;
  width: 100%;
  margin: 12px 0 8px;
  padding: 10px 12px;
  border: 1px solid #2b516c;
  border-radius: 8px;
  background: #0a1725;
  color: #7ee8ff;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.social-share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.social-share-buttons a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.x-share {
  border: 1px solid #667080;
  background: #080b10;
}
.line-share {
  border: 1px solid #00d25b;
  background: #06c755;
}
.social-share-buttons + .primary {
  margin-top: 8px;
}
.install-btn {
  padding: 9px 12px;
  border: 1px solid #2bd9ff;
  border-radius: 9px;
  background: #0b2940;
  color: #7feaff;
  font-weight: 900;
  white-space: nowrap;
}
.install-layer {
  z-index: 95;
}
.install-modal {
  width: min(94vw, 520px);
}
.install-guide {
  display: grid;
  gap: 10px;
}
.install-guide section {
  padding: 13px;
  border: 1px solid #304964;
  border-radius: 10px;
  background: #0a1725;
}
.install-guide b {
  color: #69ddff;
}
.install-guide p {
  margin: 6px 0 0;
  color: #bdcad9;
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 800px) {
  header {
    gap: 5px;
  }
  .install-btn {
    padding: 8px 7px;
    font-size: 9px;
  }
  .install-modal {
    padding: 16px;
  }
}
.history-install-btn {
  display: block !important;
  width: 100% !important;
  height: 43px;
  margin: 0 0 13px !important;
  padding: 0 12px !important;
  border: 1px solid #2bd9ff !important;
  border-radius: 9px;
  background: #0b2940 !important;
  color: #7feaff !important;
  font-size: 12px !important;
  font-weight: 900;
  text-align: center !important;
}
.install-cta {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #35dcff;
  border-radius: 9px;
  background: linear-gradient(135deg, #123d58, #0b2940);
  color: #82ebff;
  font-size: 11px;
  font-weight: 1000;
  white-space: nowrap;
  box-shadow: 0 0 14px #28cfff33;
  animation: installCtaGlow 1.8s ease-in-out infinite alternate;
}
.bankroll-title .bankroll-install-cta {
  align-self: center;
}
.setup-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.setup-title-row h2 {
  margin: 3px 0 !important;
}
.setup-install-cta {
  min-height: 32px;
  padding: 0 10px;
  font-size: 9px;
}
@keyframes installCtaGlow {
  to {
    border-color: #8aedff;
    box-shadow: 0 0 20px #28cfff66;
  }
}
@media (max-width: 800px) {
  .bankroll-title {
    align-items: center;
  }
  .bankroll-title .bankroll-install-cta {
    min-height: 34px;
    padding: 0 9px;
    font-size: 8px;
  }
  .setup-title-row {
    gap: 7px;
  }
  .setup-install-cta {
    min-height: 30px;
    padding: 0 7px;
    font-size: 8px;
  }
}
@media (max-width: 800px) {
  input:not([type="range"]) {
    font-size: 16px !important;
  }
}
.replay-speed {
  min-width: 68px;
  padding: 8px;
  border: 1px solid #3b5878;
  border-radius: 8px;
  background: #101f32;
  color: #8fe9ff;
  font-weight: 900;
}
.straddle-setting {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  align-items: end;
}
.straddle-setting button {
  height: 42px;
  border: 1px solid #40536c;
  border-radius: 8px;
  background: #0b1625;
  color: #8ea0b8;
  font-weight: 900;
}
.straddle-setting button.on {
  border-color: #2bd9ff;
  background: #0b2940;
  color: #7feaff;
}
.straddle-setting button:disabled {
  opacity: 0.35;
}
.straddle-setting label {
  display: block;
}
.straddle-setting input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.replay-controls select {
  font: inherit;
}
@media (max-width: 800px) {
  .replay-controls {
    gap: 7px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .replay-speed {
    min-width: 60px;
    padding: 7px 4px;
    font-size: 13px;
  }
  .straddle-setting {
    grid-template-columns: 1fr;
  }
  .straddle-setting button {
    height: 40px;
  }
}
.board > .board-card-button {
  position: relative;
  overflow: visible;
}
.board-card-x {
  position: absolute;
  z-index: 4;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid #ff9aa0;
  border-radius: 50%;
  background: #a8202b;
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 2px 7px #000c;
}
.board-card-x:hover {
  background: #dc3543;
}
@media (max-width: 800px) {
  .board-card-x {
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    font-size: 11px;
  }
}
.passport-promo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #2b87b0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a2134, #0b1625);
  color: #eaf8ff;
  text-decoration: none;
  box-shadow: 0 5px 16px #0005;
}
.passport-promo > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #102f49;
  color: #44ddff;
  font-size: 20px;
}
.passport-promo div {
  min-width: 0;
}
.passport-promo small,
.passport-promo b {
  display: block;
}
.passport-promo small {
  color: #8eaec4;
  font-size: 9px;
}
.passport-promo b {
  margin-top: 2px;
  color: #72e8ff;
  font-size: 14px;
}
.passport-promo strong {
  color: #79adff;
  font-size: 11px;
  white-space: nowrap;
}
.passport-promo:hover {
  border-color: #62dcff;
  background: linear-gradient(135deg, #0c2d46, #0d1c2f);
}
@media (max-width: 800px) {
  .passport-promo {
    gap: 7px;
    padding: 8px 9px;
  }
  .passport-promo > span {
    width: 27px;
    height: 27px;
    font-size: 17px;
  }
  .passport-promo b {
    font-size: 12px;
  }
  .passport-promo strong {
    font-size: 9px;
  }
}
.all-stack-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 0 0 10px;
}
.all-stack-setting label {
  color: #9fb3c9;
  font-size: 11px;
}
.all-stack-setting input {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 5px;
  padding: 8px 11px;
  border: 1px solid #38516d;
  border-radius: 8px;
  background: #081524;
  color: #fff;
}
.all-stack-setting button {
  height: 42px;
  padding: 0 18px;
  border: 1px solid #2bd9ff;
  border-radius: 8px;
  background: #0b2940;
  color: #7feaff;
  font-weight: 900;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .all-stack-setting {
    grid-template-columns: 1fr 105px;
  }
  .all-stack-setting button {
    padding: 0 8px;
    font-size: 11px;
  }
}
.brand {
  color: inherit;
  text-decoration: none;
}
.brand:hover b {
  color: #8fe9ff;
}
.card {
  align-items: center;
  justify-content: center;
  padding: 1px;
  text-align: center;
  overflow: hidden;
  font-family: Inter, Arial, sans-serif;
}
.card b {
  width: 100%;
  font-size: 28px;
  font-weight: 800;
  line-height: 0.76;
  text-align: center;
}
.card i {
  width: 100%;
  margin: 2px 0 0;
  font-size: 31px;
  line-height: 0.76;
  text-align: center;
}
.hole .card b {
  font-size: 24px;
  line-height: 0.72;
}
.hole .card i {
  font-size: 26px;
  line-height: 0.72;
}
.mini-card-select .card b {
  font-size: 17px;
  line-height: 0.72;
}
.mini-card-select .card i {
  font-size: 18px;
  line-height: 0.72;
}
@media (max-width: 800px) {
  .board .card b {
    font-size: 19px;
    line-height: 0.72;
  }
  .board .card i {
    font-size: 21px;
    line-height: 0.72;
  }
}
.table-bet {
  gap: 4px;
  padding: 4px 7px;
}
.table-bet i {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1px solid #ff9b9b;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 27%,
    #ffb2b2 0 10%,
    #ff454d 13% 47%,
    #be111e 50% 68%,
    #ff5960 71% 78%,
    #8b0711 81% 100%
  );
  box-shadow:
    0 0 5px #ff3d47aa,
    inset 0 0 2px #fff8;
  color: transparent;
  font-size: 0;
  line-height: 0;
}
.table-bet i:after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed #ffd1d1aa;
  border-radius: 50%;
}
.table-bet b {
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}
@media (max-width: 800px) {
  .table-bet {
    width: 34px;
    min-height: 34px;
    padding: 3px 2px;
  }
  .table-bet i {
    width: 10px;
    height: 10px;
  }
  .table-bet i:after {
    inset: 2px;
  }
  .table-bet b {
    font-size: 14px;
    line-height: 16px;
  }
}
@media (min-width: 801px) {
  .seat .plate > span {
    padding: 4px 9px;
    font-size: 14px;
    line-height: 1.05;
  }
}
@media (max-width: 800px) {
  .seat .plate > span {
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.05;
  }
  .seat.hero-seat .plate > span {
    padding: 5px 10px;
    font-size: 15px;
  }
}
.share-export-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}
.share-export-buttons button {
  min-height: 48px;
  padding: 8px;
  border: 1px solid #3d5877;
  border-radius: 8px;
  background: #15243a;
  font-size: 11px;
  font-weight: 900;
}
.share-export-buttons button:first-child {
  border-color: #4c9cff;
  background: #245f9f;
}
.share-export-buttons .text-export {
  border-color: #25d8cf;
  background: #12504f;
  color: #c9fffb;
}
@media (max-width: 600px) {
  .share-export-buttons {
    grid-template-columns: 1fr;
  }
  .share-export-buttons button {
    min-height: 46px;
    font-size: 12px;
  }
}
.hero-select-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 15px 0 9px;
  padding: 9px 11px;
  border-left: 3px solid #2bd9ff;
  background: #0b2034;
}
.hero-select-note b {
  color: #71e8ff;
  font-size: 13px;
}
.hero-select-note span {
  color: #8ea0b8;
  font-size: 10px;
}
.setup-players > div {
  transition: 0.15s;
}
.setup-players > div.hero-row {
  margin: 1px -5px;
  padding: 4px 5px;
  border-radius: 8px;
  background: #10334b;
  box-shadow: inset 0 0 0 1px #2bd9ff66;
}
.setup-players .hero {
  font-size: 9px;
  white-space: nowrap;
}
.setup-players .hero.on {
  background: #0a5270;
  color: #b9f5ff;
  box-shadow: 0 0 10px #2bd9ff55;
}
@media (min-width: 801px) {
  .setup-players > div {
    grid-template-columns: 56px 1fr 76px 94px 72px;
  }
}
@media (max-width: 800px) {
  .hero-select-note {
    display: block;
  }
  .hero-select-note span {
    display: block;
    margin-top: 3px;
  }
  .setup-players .hero {
    font-size: 8px;
  }
}
.seat {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}
.seat.hero-seat {
  z-index: 11;
}
.seat.hero-seat .hole {
  position: relative;
  filter: drop-shadow(0 0 8px #b85cff) drop-shadow(0 0 15px #37ddff);
}
.seat.hero-seat .hole:after {
  content: "YOU";
  position: absolute;
  left: 50%;
  bottom: -7px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 2px 7px;
  border: 1px solid #e6b2ff;
  border-radius: 999px;
  background: #712ca9;
  color: #fff;
  box-shadow: 0 0 10px #b85cffcc;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 0.8px;
  line-height: 1;
}
.seat.hero-seat .hole .card {
  box-shadow:
    0 0 0 2px #d694ff,
    0 3px 8px #0009;
}
.seat.hero-seat .player-line em {
  padding: 2px 6px;
  border-color: #d694ff;
  background: #712ca9;
  color: #fff;
  box-shadow: 0 0 9px #b85cffaa;
  font-size: 9px;
  font-weight: 1000;
}
.seat.hero-seat .plate > span {
  border-color: #d694ff !important;
  box-shadow: 0 0 11px #b85cff88 !important;
}
@media (max-width: 800px) {
  .seat.hero-seat .hole:after {
    bottom: -6px;
    padding: 2px 5px;
    font-size: 6px;
  }
  .seat.hero-seat .player-line em {
    padding: 2px 4px;
    font-size: 7px;
  }
  .seat:active:before {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    border: 3px solid #c970ff;
    border-radius: 16px;
    box-shadow: 0 0 15px #b85cffaa;
    animation: heroHold 0.4s linear both;
    pointer-events: none;
  }
}
@keyframes heroHold {
  from {
    opacity: 0.25;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.equity-panel {
  position: absolute;
  left: 50%;
  top: 72%;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 82%;
  padding: 6px 9px;
  transform: translate(-50%, -50%);
  border: 1px solid #b487ff;
  border-radius: 9px;
  background: #130d25ed;
  box-shadow: 0 0 15px #8d5bff55;
  white-space: nowrap;
}
.equity-panel small {
  color: #bd99ff;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 0.7px;
}
.equity-panel span {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 7px;
  border-left: 1px solid #59467c;
}
.equity-panel b {
  font-size: 10px;
}
.equity-panel strong {
  color: #e8dcff;
  font-size: 13px;
}
@media (max-width: 800px) {
  .equity-panel {
    top: 70%;
    flex-wrap: wrap;
    gap: 3px 6px;
    max-width: 88%;
    padding: 4px 6px;
    white-space: normal;
  }
  .equity-panel small {
    width: 100%;
    text-align: center;
    font-size: 7px;
  }
  .equity-panel span {
    padding-left: 5px;
  }
  .equity-panel b {
    font-size: 8px;
  }
  .equity-panel strong {
    font-size: 11px;
  }
}
.game-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 8px 0 14px;
}
.game-type button {
  height: 42px;
  border: 1px solid #33465e;
  background: #0b1625;
  border-radius: 8px;
  font-weight: 900;
}
.game-type button.on {
  border-color: var(--cyan);
  background: #10344a;
  color: #72eaff;
  box-shadow: 0 0 10px #20cce433;
}
.table.plo .hole {
  gap: 1px;
}
.table.plo .hole .card {
  width: 29px;
  height: 46px;
  padding: 2px;
}
.table.plo .hole .card b {
  font-size: 18px;
}
.table.plo .hole .card i {
  font-size: 21px;
}
.table.plo .plate {
  min-width: 126px;
}
.mini-card-select.plo {
  gap: 2px;
}
.mini-card-select.plo > button {
  width: 22px;
}
.mini-card-select.plo .card {
  width: 21px;
}
.mini-card-select.plo .card b {
  font-size: 11px;
}
.mini-card-select.plo .card i {
  font-size: 13px;
}
@media (max-width: 800px) {
  .table.plo .plate {
    min-width: 94px;
  }
  .table.plo .hole .card {
    width: 23px;
    height: 39px;
  }
  .table.plo .hole .card b {
    font-size: 15px;
  }
  .table.plo .hole .card i {
    font-size: 17px;
  }
  .table.plo .hole {
    height: 40px;
  }
  .mini-card-select.plo > button {
    width: 20px;
  }
  .mini-card-select.plo .card {
    width: 19px;
  }
}
.amount {
  position: relative;
}
.amount .plo-limit {
  position: absolute;
  right: 7px;
  bottom: 3px;
  color: #62dfff;
  font-size: 7px;
  font-weight: 900;
  pointer-events: none;
}
.amount:has(.plo-limit) input {
  padding-right: 38px;
  padding-bottom: 14px;
}
@media (max-width: 800px) {
  .amount .plo-limit {
    right: 5px;
    bottom: 2px;
    font-size: 6px;
  }
  .amount:has(.plo-limit) input {
    padding-right: 30px;
    padding-bottom: 12px;
  }
}
.game-type {
  grid-template-columns: repeat(3, 1fr);
}
.table.plo5 .hole .card {
  width: 24px;
  height: 44px;
}
.table.plo5 .hole .card b {
  font-size: 16px;
}
.table.plo5 .hole .card i {
  font-size: 19px;
}
.table.plo5 .plate {
  min-width: 132px;
}
.mini-card-select.plo5 > button {
  width: 17px;
}
.mini-card-select.plo5 .card {
  width: 16px;
}
.mini-card-select.plo5 .card b {
  font-size: 9px;
}
.mini-card-select.plo5 .card i {
  font-size: 11px;
}
@media (max-width: 800px) {
  .game-type button {
    padding: 0 3px;
    font-size: 10px;
  }
  .table.plo5 .plate {
    min-width: 98px;
  }
  .table.plo5 .hole .card {
    width: 19px;
    height: 36px;
  }
  .table.plo5 .hole .card b {
    font-size: 13px;
  }
  .table.plo5 .hole .card i {
    font-size: 15px;
  }
  .table.plo5 .hole {
    height: 37px;
  }
  .mini-card-select.plo5 > button {
    width: 15px;
  }
  .mini-card-select.plo5 .card {
    width: 14px;
  }
}
.action-pad .allin.pot-action {
  border-color: #d89b2b;
  background: #76531b;
  color: #fff1bf;
  box-shadow: inset 0 0 0 1px #ffca5944;
}
.badugi .pot {
  top: 48%;
}
.badugi-draw-pad {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 140px repeat(5, 1fr);
  gap: 8px;
  align-items: center;
}
.badugi-draw-pad > b {
  color: #66e8ff;
  font-size: 13px;
  text-align: center;
}
.badugi-draw-pad button {
  height: 52px;
  border: 1px solid #3b5972;
  border-radius: 9px;
  background: #15304a;
  font-weight: 900;
}
.badugi-draw-pad button.pat {
  border-color: #35c98b;
  background: #123e31;
  color: #71f0b6;
}
@media (max-width: 800px) {
  .badugi .pot {
    top: 44%;
  }
  .badugi-draw-pad {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .badugi-draw-pad > b {
    grid-column: 1/-1;
  }
  .badugi-draw-pad button {
    height: 42px;
    font-size: 10px;
  }
}
.bankroll-page {
  min-height: calc(100dvh - 64px);
  padding: 28px 20px 70px;
  background: linear-gradient(180deg, #0d2035, #07101c 45%);
}
.bankroll-wrap {
  width: min(1120px, 100%);
  margin: auto;
}
.bankroll-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.bankroll-title small {
  color: #55dfff;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 1.4px;
}
.bankroll-title h1 {
  margin: 3px 0 0;
  font-size: 27px;
}
.bankroll-title > span {
  color: #8297b0;
  font-size: 11px;
}
.bankroll-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.bankroll-summary article {
  padding: 14px 16px;
  border: 1px solid #2b435e;
  border-radius: 12px;
  background: #0d1a2b;
  box-shadow: 0 8px 20px #0004;
}
.bankroll-summary small {
  display: block;
  color: #89a0ba;
  font-size: 10px;
}
.bankroll-summary b {
  display: block;
  margin-top: 5px;
  font-size: 23px;
}
.plus {
  color: #55e5a7 !important;
}
.minus {
  color: #ff7780 !important;
}
.bankroll-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
}
.bankroll-form,
.bankroll-chart,
.bankroll-history {
  border: 1px solid #2b435e;
  border-radius: 13px;
  background: #0d1a2b;
  padding: 16px;
}
.bankroll-form h2,
.bankroll-chart h2,
.bankroll-history h2 {
  margin: 0 0 13px;
  font-size: 15px;
}
.bankroll-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.bankroll-fields > * {
  min-width: 0;
}
.bankroll-fields label {
  color: #8da3bb;
  font-size: 10px;
}
.bankroll-fields input,
.bankroll-fields select {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: 41px;
  margin-top: 4px;
  border: 1px solid #344d69;
  border-radius: 8px;
  background: #071422;
  color: #fff;
  padding: 8px;
}
.bankroll-fields .wide {
  grid-column: 1/-1;
}
.bankroll-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.bankroll-form-actions button {
  height: 43px;
  margin-top: 13px;
  padding: 0 18px;
  border: 1px solid #3c526c;
  border-radius: 8px;
  background: #17263a;
}
.bankroll-form-actions .primary {
  width: auto;
  border-color: #2d82f7;
  background: #2d82f7;
}
.bankroll-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 190px;
  border-radius: 9px;
  background: linear-gradient(#0b1727, #08131f);
}
.bankroll-chart .chart-grid {
  stroke: #294158;
  stroke-width: 1;
  stroke-dasharray: 4 5;
  opacity: 0.8;
}
.bankroll-chart .chart-grid.vertical {
  opacity: 0.5;
}
.bankroll-chart .zero-line {
  stroke: #7189a2;
  stroke-width: 1.25;
  stroke-dasharray: none;
  opacity: 0.9;
}
.bankroll-chart .chart-y-label {
  fill: #a5b8ca;
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.bankroll-chart polyline {
  fill: none;
  stroke: #4de0ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px #28cfffaa);
}
.bankroll-chart p,
.bankroll-history > p {
  color: #8297b0;
  font-size: 12px;
}
.bankroll-history {
  margin-top: 14px;
}
.bankroll-history article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 7px;
}
.session-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #2b435e;
  border-radius: 9px;
  background: #091725;
  text-align: left;
}
.session-main span {
  min-width: 0;
}
.session-main b,
.session-main small,
.session-main em {
  display: block;
}
.session-main b {
  font-size: 14px;
}
.session-main small {
  margin-top: 3px;
  color: #8da3bb;
  font-size: 10px;
}
.session-main em {
  margin-top: 4px;
  overflow: hidden;
  color: #7890aa;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-main strong {
  font-size: 18px;
  white-space: nowrap;
}
.session-delete {
  padding: 0 14px;
  border: 1px solid #6b3541;
  border-radius: 8px;
  background: #351923;
  color: #ff8d96;
  font-size: 10px;
}
@media (max-width: 800px) {
  .bankroll-page {
    padding: 18px 9px 45px;
  }
  .bankroll-title h1 {
    font-size: 22px;
  }
  .bankroll-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
  .bankroll-summary article {
    padding: 11px;
  }
  .bankroll-summary b {
    font-size: 19px;
  }
  .bankroll-grid {
    grid-template-columns: 1fr;
  }
  .bankroll-fields {
    gap: 7px;
  }
  .bankroll-form,
  .bankroll-chart,
  .bankroll-history {
    padding: 12px;
  }
  .bankroll-chart svg {
    min-height: 180px;
  }
  .bankroll-chart .chart-y-label {
    font-size: 11px;
  }
  .bankroll-history article {
    grid-template-columns: 1fr 51px;
  }
  .session-main {
    padding: 9px;
  }
  .session-main strong {
    font-size: 15px;
  }
  .session-delete {
    padding: 0 7px;
  }
  .switch button {
    padding-left: 8px;
    padding-right: 8px;
  }
}
.live-session {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #2f87a8;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b2a3b, #0a1b2b);
  box-shadow: 0 0 22px #1dbbdf22;
}
.live-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.live-session-head span {
  color: #58dcff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 1px;
}
.live-session-head strong {
  color: #fff;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.live-session-head i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: #ff4e58;
  box-shadow: 0 0 9px #ff4e58;
  animation: livePulse 1s ease-in-out infinite alternate;
}
.live-start-fields {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.1fr 0.7fr 0.8fr 110px;
  gap: 8px;
  align-items: end;
}
.live-session label {
  color: #69cae7;
  font-size: 9px;
}
.live-session input,
.live-session select {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 4px;
  border: 1px solid #31566c;
  border-radius: 8px;
  background: #071725;
  color: #fff;
  padding: 8px;
}
.start-live,
.finish-live {
  height: 42px;
  border: 2px solid #55d8ff;
  border-radius: 9px;
  background: #10384b;
  color: #8ae9ff;
  font-weight: 1000;
}
.live-session-info b {
  display: block;
  font-size: 18px;
}
.live-session-info small {
  display: block;
  margin-top: 4px;
  color: #83a3b7;
}
.live-session-actions {
  display: grid;
  grid-template-columns: 1fr 70px 1fr 1fr 190px;
  gap: 8px;
  align-items: end;
  margin-top: 13px;
}
.live-session-actions > button:not(.finish-live) {
  height: 42px;
  border: 1px solid #38647a;
  border-radius: 8px;
  background: #153247;
}
.finish-live {
  background: #1a6781;
  color: #fff;
}
.live-session button:disabled {
  opacity: 0.35;
}
.live-session.active {
  border-color: #36dbff;
  box-shadow: 0 0 25px #20cce433;
}
@keyframes livePulse {
  to {
    opacity: 0.35;
    transform: scale(0.8);
  }
}
@media (max-width: 800px) {
  .live-session {
    padding: 12px;
  }
  .live-start-fields {
    grid-template-columns: 1fr 1fr;
  }
  .live-start-fields > label:first-child {
    grid-column: 1/-1;
  }
  .start-live {
    grid-column: 1/-1;
  }
  .live-session-head strong {
    font-size: 24px;
  }
  .live-session-info b {
    font-size: 15px;
  }
  .live-session-actions {
    grid-template-columns: 1fr 65px 1fr;
  }
  .live-session-actions label:nth-of-type(3) {
    grid-column: 1/2;
  }
  .finish-live {
    grid-column: 2/4;
  }
  .live-session-actions > button {
    font-size: 10px;
  }
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.chart-head h2 {
  margin: 0;
}
.chart-filters {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-rate-filter,
.chart-game-filter,
.chart-room-filter {
  width: auto;
  min-width: 108px;
  height: 34px;
  padding: 0 28px 0 9px;
  border: 1px solid #3b607d;
  border-radius: 8px;
  background: #071422;
  color: #7de7ff;
  font-size: 11px;
  font-weight: 900;
}
.chart-game-filter {
  min-width: 92px;
}
.chart-room-filter {
  min-width: 96px;
}
.chart-mode {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 10px;
  padding: 3px;
  border: 1px solid #304861;
  border-radius: 8px;
  background: #071422;
}
.chart-mode button {
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8da3bb;
  font-size: 10px;
  font-weight: 900;
}
.chart-mode button.on {
  background: #17648b;
  color: #74e8ff;
  box-shadow: 0 0 10px #20cce433;
}
.chart-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 7px;
  margin: 0 0 10px;
}
.chart-range label {
  color: #8da3bb;
  font-size: 9px;
}
.chart-range input {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 3px;
  color: #fff;
  background: #071422;
  border: 1px solid #344d69;
}
.chart-range span {
  padding-bottom: 10px;
  color: #8da3bb;
}
.chart-axis {
  position: relative;
  height: 31px;
  margin: 4px 10px 0;
}
.chart-axis span {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  color: #91a8c0;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.datetime-field {
  cursor: pointer;
}
.datetime-field input {
  cursor: pointer;
}
@media (max-width: 800px) {
  .chart-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
  }
  .chart-head h2 {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
  }
  .chart-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    gap: 4px;
    min-width: 0;
  }
  .chart-rate-filter,
  .chart-game-filter,
  .chart-room-filter {
    min-width: 0;
    width: 100% !important;
    height: 34px;
    padding-left: 7px;
    padding-right: 18px;
    font-size: 9px;
  }
  .chart-mode {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .chart-mode button {
    height: 31px;
    padding: 0 2px;
    font-size: 7px;
    line-height: 1.1;
  }
  .chart-range {
    gap: 4px;
  }
  .chart-range input {
    font-size: 16px !important;
  }
  .chart-axis {
    height: 27px;
    margin-left: 6px;
    margin-right: 6px;
  }
  .chart-axis span {
    font-size: 8px;
  }
}
@media (max-width: 410px) {
  .chart-head h2 {
    font-size: 12px;
  }
}
.chart-shell {
  position: relative;
}
.bankroll-chart circle {
  fill: #0d1a2b;
  stroke: #65e9ff;
  stroke-width: 3;
  opacity: 0.01;
  cursor: pointer;
}
.bankroll-chart circle:hover,
.bankroll-chart circle:focus {
  opacity: 1;
  outline: none;
}
.chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 108px;
  padding: 7px 9px;
  transform: translate(-50%, calc(-100% - 9px));
  border: 1px solid #47dcff;
  border-radius: 7px;
  background: #06111eee;
  box-shadow: 0 5px 18px #0009;
  pointer-events: none;
  text-align: center;
}
.chart-tooltip b,
.chart-tooltip strong {
  display: block;
  white-space: nowrap;
}
.chart-tooltip b {
  color: #a7bdd2;
  font-size: 9px;
}
.chart-tooltip strong {
  margin-top: 2px;
  font-size: 14px;
}
.active-edit-toggle {
  position: relative;
  display: block;
  width: 100%;
  padding: 0 86px 0 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}
.active-edit-toggle > span {
  position: absolute;
  right: 0;
  bottom: 1px;
  color: #66ddff;
  font-size: 10px;
  font-weight: 900;
}
.active-session-editor {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #2b657c;
  border-radius: 10px;
  background: #071a29;
}
.active-session-editor label {
  min-width: 0;
}
.active-session-editor input,
.active-session-editor select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 39px;
}
@media (max-width: 800px) {
  .active-edit-toggle {
    padding-right: 0;
    padding-bottom: 21px;
  }
  .active-edit-toggle > span {
    right: auto;
    left: 0;
  }
  .active-session-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .active-session-editor > label:nth-child(1),
  .active-session-editor > label:nth-child(2) {
    grid-column: 1/-1;
  }
  .active-session-editor label:nth-child(3) {
    grid-column: auto;
  }
  .chart-tooltip {
    min-width: 92px;
    padding: 6px;
  }
  .chart-tooltip b {
    font-size: 8px;
  }
  .chart-tooltip strong {
    font-size: 12px;
  }
}
.history-inline-edit {
  box-sizing: border-box;
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border: 1px solid #3181a2;
  border-radius: 10px;
  background: #071827;
}
.history-inline-edit > * {
  min-width: 0;
}
.history-inline-edit label {
  min-width: 0;
  color: #8da3bb;
  font-size: 9px;
}
.history-inline-edit input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  height: 39px;
  margin-top: 4px;
  padding: 7px;
  border: 1px solid #34516d;
  border-radius: 7px;
  background: #061321;
  color: #fff;
  font-size: 16px;
}
.inline-edit-actions {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 8px;
}
.inline-edit-actions button,
.inline-edit-actions .primary {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #3b526b;
  border-radius: 7px;
  background: #17263a;
}
.inline-edit-actions .history-share-button {
  border-color: #21bda9;
  background: #113b42;
  color: #7ff5df;
}
.inline-edit-actions .primary {
  border-color: #2589ba;
  background: #17648b;
}
@media (max-width: 800px) {
  .history-inline-edit {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 10px;
  }
  .history-inline-edit .stakes-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .history-inline-edit input,
  .bankroll-fields input,
  .live-session input,
  .active-session-editor input {
    font-size: 16px;
  }
  .inline-edit-actions {
    width: 100%;
  }
  .inline-edit-actions button,
  .inline-edit-actions .primary {
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 6px;
  }
  .bankroll-history article {
    min-width: 0;
  }
  .bankroll-history .history-inline-edit {
    max-width: 100%;
    overflow: hidden;
  }
}
.room-stats {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #2b435e;
  border-radius: 13px;
  background: #0d1a2b;
}
.room-stats h2 {
  margin: 0 0 10px;
  font-size: 14px;
}
.room-stats > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px;
}
.room-stats article {
  padding: 10px 12px;
  border: 1px solid #29445f;
  border-radius: 9px;
  background: #081725;
}
.room-stats b,
.room-stats strong,
.room-stats small {
  display: block;
}
.room-stats b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-stats strong {
  margin-top: 4px;
  font-size: 19px;
}
.room-stats small {
  margin-top: 3px;
  color: #8da3bb;
  font-size: 9px;
}
.start-live:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
@media (max-width: 800px) {
  .room-stats {
    padding: 11px;
  }
  .room-stats > div {
    display: flex;
    overflow-x: auto;
  }
  .room-stats article {
    min-width: 145px;
  }
}
.stakes-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  min-width: 0;
}
.stakes-pair label {
  min-width: 0;
}
.stakes-pair input {
  min-width: 0;
}
.bankroll-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid #2b435e;
  border-radius: 10px;
  background: #081522;
}
.bankroll-tabs button {
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8da3bb;
  font-size: 12px;
  font-weight: 900;
}
.bankroll-tabs button.on {
  background: #17648b;
  color: #78e9ff;
  box-shadow: 0 0 12px #20cce433;
}
.bankroll-wrap.session-view .room-stats,
.bankroll-wrap.session-view .bankroll-grid,
.bankroll-wrap.session-view .bankroll-history,
.bankroll-wrap.session-view .bankroll-summary,
.bankroll-wrap.session-view .profit-calendar {
  display: none;
}
.bankroll-wrap.graph-view .live-session,
.bankroll-wrap.graph-view .bankroll-summary,
.bankroll-wrap.graph-view .bankroll-history {
  display: none;
}
.bankroll-wrap.history-view .live-session,
.bankroll-wrap.history-view .bankroll-summary,
.bankroll-wrap.history-view .room-stats,
.bankroll-wrap.history-view .bankroll-grid,
.bankroll-wrap.history-view .profit-calendar {
  display: none;
}
@media (max-width: 800px) {
  .bankroll-tabs {
    position: sticky;
    top: 0;
    z-index: 8;
    margin-left: -3px;
    margin-right: -3px;
    background: #081522ee;
    backdrop-filter: blur(8px);
  }
  .bankroll-tabs button {
    height: 42px;
    padding: 0 3px;
    font-size: 9px;
    line-height: 1.25;
  }
}
@media (max-width: 800px) {
  header {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    align-content: center;
    padding: 7px 10px;
    gap: 6px;
  }
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
  .brand {
    flex: 0 0 108px;
    margin-right: 0;
    white-space: nowrap;
  }
  .switch {
    display: flex;
    flex: 1 1 210px;
    min-width: 0;
    margin-left: 0;
  }
  .switch button {
    flex: 1;
    min-width: 0;
    padding: 8px 4px !important;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .install-btn,
  .save-btn,
  .reset-btn,
  .share {
    flex: 1 1 auto;
    height: 40px;
    white-space: nowrap;
  }
  .bankroll-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .bankroll-fields > .wide {
    grid-column: auto;
  }
  .bankroll-fields input,
  .bankroll-fields select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .bankroll-fields .stakes-pair {
    grid-template-columns: 1fr 1fr;
  }
}
.bankroll-add-details {
  border: 1px solid #2b435e;
  border-radius: 13px;
  background: #0d1a2b;
  overflow: hidden;
}
.bankroll-add-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  cursor: pointer;
  color: #dce8f5;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
}
.bankroll-add-details > summary::-webkit-details-marker {
  display: none;
}
.bankroll-add-details > summary:after {
  content: "＋";
  color: #61ddff;
  font-size: 20px;
}
.bankroll-add-details[open] > summary {
  border-bottom: 1px solid #2b435e;
}
.bankroll-add-details[open] > summary:after {
  content: "－";
}
.bankroll-add-details .bankroll-form {
  border: 0;
  border-radius: 0;
}
.bankroll-wrap.graph-view {
  display: flex;
  flex-direction: column;
}
.bankroll-wrap.graph-view .bankroll-grid {
  display: contents;
}
.bankroll-wrap.graph-view .bankroll-chart {
  order: 10;
}
.bankroll-wrap.graph-view .bankroll-add-details {
  display: none;
}
.bankroll-wrap.history-view {
  display: flex;
  flex-direction: column;
}
.bankroll-wrap.history-view .bankroll-grid {
  display: contents;
}
.bankroll-wrap.history-view .bankroll-chart {
  display: none;
}
.bankroll-wrap.history-view .bankroll-add-details {
  display: block;
  order: 10;
  margin: 0 0 14px;
}
.bankroll-wrap.history-view .bankroll-add-details.editing-existing {
  display: none;
}
.bankroll-wrap.history-view .bankroll-add-details .bankroll-form {
  margin: 0;
}
.bankroll-wrap.history-view .bankroll-history {
  display: block;
  order: 20;
  margin-top: 0;
}
@media (max-width: 800px) {
  .bankroll-add-details > summary {
    min-height: 48px;
    padding: 0 13px;
    font-size: 13px;
  }
}
@media (max-width: 800px) {
  header .icon-btn {
    display: block;
    position: static;
    flex: 0 0 calc(50% - 3px);
    order: 30;
    height: 40px;
    margin-left: auto;
    padding: 8px 10px;
    border-color: #2d82f7;
    background: #0b2940;
    color: #7feaff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: none;
  }
}
@media (max-width: 800px) {
  header .reset-btn,
  header .share,
  header .save-btn,
  header .icon-btn {
    position: static;
    flex: 0 0 calc(25% - 5px);
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 7px 3px;
    font-size: 10px;
    white-space: nowrap;
  }
  header .reset-btn {
    order: 20;
  }
  header .share {
    order: 21;
  }
  header .save-btn {
    order: 22;
  }
  header .icon-btn {
    order: 23;
  }
}
.bankroll-tools {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin: -7px 0 12px;
}
.bankroll-tools button,
.bankroll-tools label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #31516d;
  border-radius: 7px;
  background: #0b1b2c;
  color: #8edff6;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}
.bankroll-tools input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 800px) {
  .bankroll-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: -6px;
  }
  .bankroll-tools button,
  .bankroll-tools label {
    padding: 0 4px;
    font-size: 7px;
    line-height: 1.15;
    text-align: center;
  }
}
.session-share-panel {
  position: fixed;
  z-index: 1001;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: min(580px, calc(100vw - 24px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #34536f;
  border-radius: 14px;
  background: #0d1b2d;
  box-shadow:
    0 0 0 100vmax #01060bba,
    0 24px 80px #000d;
  transform: translate(-50%, -50%);
}
.session-share-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.session-share-head small {
  display: block;
  color: #388cff;
  font-size: 10px;
  font-weight: 900;
}
.session-share-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
}
.session-share-head > button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #8fa3ba;
  font-size: 28px;
  line-height: 1;
}
.session-share-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #294964;
  border-radius: 10px;
  background: #081624;
}
.session-share-result span {
  overflow: hidden;
  color: #91a8be;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-share-result strong {
  font-size: 28px;
  white-space: nowrap;
}
.share-room-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #aac0d3;
  font-size: 11px;
}
.share-room-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #1fdcc1;
}
.session-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 15px;
}
.session-share-actions button,
.session-share-actions a {
  display: grid;
  place-items: center;
  height: 48px;
  border: 1px solid #2e5871;
  border-radius: 9px;
  background: #14587b;
  color: #d7f6ff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.session-share-actions .x-share {
  border-color: #dce6ef;
  background: #05080c;
  color: #fff;
}
.session-share-actions .share-close {
  background: #111d2b;
  color: #899caf;
}
@media (max-width: 800px) {
  .session-share-panel {
    padding: 16px;
  }
  .session-share-head h2 {
    font-size: 19px;
  }
  .session-share-result strong {
    font-size: 24px;
  }
  .session-share-actions button,
  .session-share-actions a {
    height: 46px;
    font-size: 11px;
  }
}
.period-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 10px;
}
.period-summary article {
  padding: 8px 10px;
  border: 1px solid #29445f;
  border-radius: 8px;
  background: #081725;
}
.period-summary small,
.period-summary b {
  display: block;
}
.period-summary small {
  color: #89a0ba;
  font-size: 8px;
}
.period-summary b {
  margin-top: 3px;
  font-size: 16px;
}
@media (max-width: 800px) {
  .period-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .period-summary article {
    padding: 7px 8px;
  }
  .period-summary b {
    font-size: 14px;
  }
}
.history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.history-title h2 {
  margin: 0 !important;
}
.history-clear-all {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #743744;
  border-radius: 7px;
  background: #351923;
  color: #ff8d96;
  font-size: 9px;
  font-weight: 900;
}
@media (max-width: 800px) {
  .history-clear-all {
    height: 30px;
    padding: 0 8px;
    font-size: 8px;
  }
}
@media (max-width: 800px) {
  .chart-head h2 {
    min-width: 0;
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .chart-head {
    gap: 5px;
  }
  .chart-head h2 {
    font-size: 11px;
  }
}
@media (max-width: 800px) {
  html,
  body,
  #root,
  .app,
  .bankroll-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .bankroll-wrap,
  .live-session,
  .live-start-fields,
  .active-session-editor {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
.bankroll-history > article:nth-of-type(n + 6) {
  display: none !important;
}
.bankroll-history.history-expanded > article:nth-of-type(n + 6) {
  display: grid !important;
}
.history-more-toggle {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: 1px solid #31516d;
  border-radius: 8px;
  background: #102238;
  color: #71e7ff;
  font-size: 11px;
  font-weight: 900;
}
@media (max-width: 800px) {
  .table-bet.mobile-bet-top {
    transform: translate(calc(-50% + 28px), -50%);
  }
  .table-bet.mobile-bet-lower-left {
    transform: translate(calc(-50% + 21px), calc(-50% - 7px));
  }
  .table-bet.mobile-bet-lower-right {
    transform: translate(calc(-50% - 21px), calc(-50% - 7px));
  }
}

/* Casino-table shape test: wide racetrack with gently flattened long rails. */
.table {
  border-radius: 46% / 38%;
}
.table:after {
  border-radius: 45% / 37%;
}

/* Folded players keep their seat/stack visible, but their hole cards disappear. */
.seat.folded .hole {
  visibility: hidden;
}

/* Mobile-only vertical table layout and per-seat equity. */
.seat-equity {
  display: none !important;
}
@media (max-width: 800px) {
  .main-area {
    height: calc(100dvh - 300px) !important;
    min-height: 360px !important;
    padding: 24px 8px 30px !important;
  }
  .table {
    width: 68vw !important;
    height: min(52dvh, 460px) !important;
    max-width: 290px !important;
    min-height: 380px !important;
    aspect-ratio: auto !important;
    border-radius: 44% / 23% !important;
  }
  .table:after {
    inset: 7%;
    border-radius: 42% / 21% !important;
  }
  .table .pot {
    top: 41%;
  }
  .table .board {
    top: 52%;
  }
  .equity-panel {
    display: none;
  }
  .seat-equity {
    display: block !important;
    width: max-content;
    margin: -3px auto 3px !important;
    padding: 2px 6px !important;
    border: 1px solid #9d79ef !important;
    border-radius: 6px;
    background: #170f2bea !important;
    color: #eadfff !important;
    font-size: 8px !important;
    font-weight: 1000 !important;
    line-height: 1.1 !important;
    box-shadow: 0 0 8px #8d5bff55 !important;
  }
  .table .seat.winner,
  .table.seats-8 .seat.winner,
  .table.seats-9 .seat.winner {
    transform: translate(-50%, -50%) scale(0.79);
  }
  .table.seats-8 .seat,
  .table.seats-9 .seat,
  .table.seats-8 .seat.active,
  .table.seats-9 .seat.active {
    transform: translate(-50%, -50%) scale(0.69);
  }
}
@media (max-width: 370px) {
  .main-area {
    height: calc(100dvh - 294px) !important;
    min-height: 348px !important;
    padding-top: 20px !important;
  }
  .table {
    width: 66vw !important;
    height: min(50dvh, 420px) !important;
    min-height: 350px !important;
  }
  .table .pot {
    top: 42%;
  }
}

/* The taller mobile table has enough room for the UTG bet directly below UTG. */
@media (max-width: 800px) {
  .table-bet.mobile-bet-top {
    transform: translate(-50%, -50%) !important;
  }
}

/* Live-session stack tracking. */
.live-session-actions {
  grid-template-columns: 1fr 70px 1fr 1fr 1fr 190px;
}
.current-stack-field input {
  border-color: #35dfff;
  box-shadow: 0 0 10px #25d9ff33;
}
.current-stack-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 6px;
  margin-top: 4px;
}
.current-stack-control input {
  margin-top: 0;
}
.current-stack-control button {
  height: 42px;
  border: 1px solid #35dfff;
  border-radius: 8px;
  background: #12415a;
  color: #8cecff;
  font-size: 10px;
  font-weight: 1000;
}
.current-stack-control button:disabled {
  opacity: 0.35;
}
.live-profit-chart {
  margin-top: 14px;
  padding: 12px 14px 9px;
  border: 1px solid #2d6177;
  border-radius: 11px;
  background: #071725;
}
.live-profit-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.live-profit-chart-head b {
  font-size: 12px;
}
.live-profit-chart-head strong {
  font-size: 20px;
}
.live-profit-chart svg {
  display: block;
  width: 100%;
  height: 150px;
  overflow: visible;
  border-radius: 8px;
  background: linear-gradient(180deg, #0a1d2c, #06131f);
}
.live-chart-shell {
  position: relative;
}
.live-chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 112px;
  padding: 7px 9px;
  transform: translate(-50%, calc(-100% - 10px));
  border: 1px solid #52e4ff;
  border-radius: 8px;
  background: #061321f2;
  box-shadow: 0 7px 20px #000b;
  pointer-events: none;
  text-align: center;
}
.live-chart-tooltip b,
.live-chart-tooltip strong,
.live-chart-tooltip small {
  display: block;
  white-space: nowrap;
}
.live-chart-tooltip b {
  color: #b8cee0;
  font-size: 10px;
}
.live-chart-tooltip strong {
  margin: 2px 0;
  font-size: 13px;
}
.live-chart-tooltip small {
  color: #8da8bb;
  font-size: 9px;
}
.live-profit-chart polyline {
  fill: none;
  stroke: #4de0ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px #28cfffaa);
}
.live-profit-chart circle {
  fill: #071725;
  stroke: #63eaff;
  stroke-width: 3;
  filter: drop-shadow(0 0 4px #28cfff);
  cursor: pointer;
}
.live-zero-line {
  stroke: #607d94;
  stroke-width: 1;
  stroke-dasharray: 5 5;
}
.profit-calendar {
  order: 15;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #2b435e;
  border-radius: 13px;
  background: #0d1a2b;
}
.profit-calendar-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-align: center;
}
.profit-calendar-head button {
  height: 38px;
  border: 1px solid #35516c;
  border-radius: 8px;
  background: #091725;
  color: #65e9ff;
  font-size: 25px;
}
.profit-calendar-head h2 {
  margin: 0;
  font-size: 17px;
}
.profit-calendar-head strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}
.calendar-month-hours {
  display: block;
  margin-top: 2px;
  color: #8da3bb;
  font-size: 9px;
  font-weight: 800;
}
.calendar-hours {
  color: #73cce7 !important;
  font-weight: 900;
}
.calendar-hourly {
  font-size: 7px !important;
  font-weight: 900;
}
.calendar-count {
  opacity: 0.78;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays span {
  padding: 6px 2px;
  color: #8199b2;
  font-size: 10px;
  text-align: center;
}
.calendar-weekdays span:first-child {
  color: #ff8992;
}
.calendar-weekdays span:last-child {
  color: #69b7ff;
}
.calendar-grid {
  overflow: hidden;
  border: 1px solid #29435e;
  border-radius: 10px;
  background: #29435e;
  gap: 1px;
}
.calendar-grid article,
.calendar-empty {
  box-sizing: border-box;
  min-width: 0;
  min-height: 84px;
  padding: 7px;
  background: #081725;
}
.calendar-grid article {
  display: flex;
  flex-direction: column;
}
.calendar-grid article:nth-child(7n + 1) > b {
  color: #ff8992;
}
.calendar-grid article:nth-child(7n) > b {
  color: #69b7ff;
}
.calendar-grid article.today {
  box-shadow: inset 0 0 0 2px #48dcff;
  background: #0b2437;
}
.calendar-grid article b {
  font-size: 11px;
}
.calendar-grid article strong {
  overflow: hidden;
  margin-top: auto;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-grid article small {
  overflow: hidden;
  margin-top: 2px;
  color: #7892aa;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bankroll-wrap.session-view .profit-calendar {
  display: none;
}
@media (max-width: 800px) {
  .profit-calendar {
    padding: 11px 8px;
  }
  .profit-calendar-head {
    grid-template-columns: 36px 1fr 36px;
  }
  .profit-calendar-head button {
    height: 35px;
  }
  .profit-calendar-head h2 {
    font-size: 15px;
  }
  .calendar-grid article,
  .calendar-empty {
    min-height: 68px;
    padding: 5px 3px;
  }
  .calendar-grid article strong {
    font-size: 11px;
  }
  .calendar-grid article small {
    font-size: 7px;
  }
  .live-chart-tooltip {
    min-width: 100px;
    padding: 6px 7px;
  }
}
.live-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #83a3b7;
  font-size: 9px;
}
@media (max-width: 800px) {
  .live-session-actions {
    grid-template-columns: 1fr 64px 1fr;
  }
  .live-session-actions .current-stack-field {
    grid-column: 1/3;
  }
  .live-session-actions label:nth-of-type(3) {
    grid-column: 3;
  }
  .live-session-actions label:nth-of-type(4) {
    grid-column: 1/2;
  }
  .finish-live {
    grid-column: 2/4;
  }
  .live-profit-chart {
    padding: 10px 9px 7px;
  }
  .live-profit-chart svg {
    height: 125px;
  }
}
@media (max-width: 800px) {
  .table {
    width: min(72vw, calc((100dvh - 340px) * 1.45));
    aspect-ratio: 1.45;
  }
  .table .seat.top-seat {
    top: 5.5% !important;
  }
  .table-bet.mobile-bet-top {
    top: 19% !important;
  }
  .table .seat.winner {
    transform: translate(-50%, -50%) scale(0.79);
  }
  .table.seats-8 .seat.winner,
  .table.seats-9 .seat.winner {
    transform: translate(-50%, -50%) scale(0.64);
  }
  .table .pot {
    top: 36.5%;
  }
}
@keyframes drawBadge {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.75);
  }
  20%,
  75% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -5px) scale(0.96);
  }
}
.badugi-draw-history {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%);
  z-index: 11;
  width: min(58%, 520px);
  display: grid;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid #24506a;
  border-radius: 10px;
  background: #061522df;
  box-shadow: 0 5px 18px #0008;
  pointer-events: none;
}
.badugi-draw-history > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  align-items: center;
}
.badugi-draw-history b {
  color: #5ce9ff;
  font-size: 8px;
  letter-spacing: 0.6px;
}
.badugi-draw-history span {
  overflow: hidden;
  color: #dcebf5;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draw-action-badge {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(-50%);
  z-index: 20;
  padding: 4px 9px;
  border: 1px solid #69edff;
  border-radius: 999px;
  background: #07283a;
  color: #7cf1ff;
  font-size: 9px;
  font-weight: 1000;
  white-space: nowrap;
  box-shadow: 0 0 14px #24d8ff99;
  animation: drawBadge 0.85s ease both;
}
.draw-motion .hole {
  filter: drop-shadow(0 0 12px #32dbff);
}
.draw-motion .hole-slot.drawn-card {
  animation: badugiCardSwap 0.82s cubic-bezier(0.35, 0.05, 0.25, 1) both;
}
.draw-motion .hole-slot.drawn-card:nth-child(2) {
  animation-delay: 0.06s;
}
.draw-motion .hole-slot.drawn-card:nth-child(3) {
  animation-delay: 0.12s;
}
.draw-motion .hole-slot.drawn-card:nth-child(4) {
  animation-delay: 0.18s;
}
.draw-pat .hole {
  animation: badugiPat 0.72s ease both;
}
@keyframes badugiCardSwap {
  0% {
    opacity: 1;
    transform: translate(0) rotate(0) scale(1);
  }
  42% {
    opacity: 0;
    transform: translate(34px, -32px) rotate(22deg) scale(0.72);
  }
  48% {
    opacity: 0;
    transform: translate(-28px, 24px) rotate(-18deg) scale(0.72);
  }
  100% {
    opacity: 1;
    transform: translate(0) rotate(0) scale(1);
  }
}
@keyframes badugiPat {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 17px #56efae);
  }
}
@keyframes drawBadge {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.75);
  }
  20%,
  75% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -5px) scale(0.96);
  }
}
@media (max-width: 800px) {
  .badugi-draw-history {
    top: 58%;
    width: 68%;
    padding: 5px 7px;
  }
  .badugi-draw-history > div {
    grid-template-columns: 54px 1fr;
    gap: 4px;
  }
  .badugi-draw-history b {
    font-size: 6px;
  }
  .badugi-draw-history span {
    font-size: 7px;
  }
  .draw-action-badge {
    bottom: calc(100% + 2px);
    padding: 3px 6px;
    font-size: 7px;
  }
}
