.pachinko-games {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line, #2b2c36);
  margin: 22px 0;
}
.pachinko-games button {
  padding: 11px 18px;
  border: 1px solid #353b45;
  border-radius: 8px;
  background: #191c23;
  color: #b8bfcb;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pachinko-games button.active {
  background: #234339;
  border-color: #4d7963;
  color: #c9edd6;
}
.pachinko-games > span {
  font-size: 11px;
  color: #8e96a6;
  margin-left: 12px;
}
.facet-panel {
  border: 1px solid #3a4551;
  border-radius: 16px;
  padding: 28px;
  background: radial-gradient(ellipse at top, #253047, #171c29 70%);
}
.facet-panel h2 {
  margin: 8px 0;
  font-size: 24px;
}
.facet-panel p {
  font-size: 12px;
  color: #aeb9cc;
  line-height: 1.7;
}
.facet-panel .section-head {
  margin: 0;
  align-items: center;
  gap: 20px;
}
.facet-chance {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.facet-chance small {
  font-size: 9px;
  letter-spacing: 1px;
  color: #b5c2dc;
}
.facet-chance strong {
  font-size: 40px;
  color: #bde3d4;
}
.facet-gem {
  font-size: 90px;
  line-height: 1.2;
  text-align: center;
  color: #bfb8ff;
  text-shadow: 0 0 22px #9a8ee74d;
  margin: 14px 0;
}
.facet-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #53607840;
}
.facet-row h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.facet-row h3 span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 5px;
}
.facet-row small {
  font-size: 10px;
  color: #9faac0;
}
.facet-row.good h3 {
  color: #bbdfdc;
}
.facet-row.bad h3 {
  color: #e6a3b3;
}
.facet-row .button {
  font-size: 11px;
  white-space: nowrap;
  padding: 10px 13px;
}
.facet-nodes {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
}
.facet-node {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid #5a657954;
  background: #0e14216b;
  font-size: clamp(15px, 2vw, 26px);
  color: #59647a;
}
.facet-node.success.good {
  color: #b2f1db;
  background: #315648;
  border-color: #89ba9e;
  box-shadow: 0 0 12px #99d3ad25;
}
.facet-node.success.bad {
  color: #edb2c1;
  background: #65354d;
  border-color: #aa657c;
}
.facet-node.miss {
  color: #697286;
  background: #1b2030;
}
.facet-last {
  min-height: 20px;
  margin: 6px 0 16px;
}
.facet-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid #53607840;
}
.facet-summary.complete {
  grid-template-columns: repeat(2, 1fr);
}
.mj-riichi-status {
  margin: 20px 0 12px;
  padding: 12px 16px;
  border: 1px solid #c7b87888;
  border-radius: 10px;
  background: #c7b8780d;
  color: #e4d49f;
  line-height: 1.6;
}
.mj-tile.mj-riichi-choice {
  outline: 2px solid #b4dfc8;
  outline-offset: 3px;
}
.mj-hand .mj-tile:disabled {
  opacity: 0.85;
  cursor: default;
}
.facet-summary > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.facet-summary small {
  font-size: 9px;
  letter-spacing: 1px;
  color: #a6b0c7;
}
.facet-summary strong {
  font-size: 23px;
  color: #eee5b0;
}
.facet-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #53607840;
  padding-top: 18px;
}
.facet-start .button {
  white-space: nowrap;
}
#main > .daily-pack {
  margin-bottom: 24px;
}
@media (max-width: 1100px) {
  .facet-row {
    grid-template-columns: 1fr auto;
  }
  .facet-nodes {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .facet-row .button {
    grid-row: 1;
    grid-column: 2;
  }
  .facet-gem {
    font-size: 70px;
  }
}
@media (max-width: 600px) {
  .facet-panel {
    padding: 18px 14px;
  }
  .facet-panel h2 {
    font-size: 21px;
  }
  .facet-chance strong {
    font-size: 32px;
  }
  .facet-chance small {
    font-size: 8px;
  }
  .facet-panel .section-head {
    flex-wrap: wrap;
  }
  .facet-summary {
    gap: 10px;
  }
  .facet-summary strong {
    font-size: 18px;
  }
  .facet-summary small {
    font-size: 8px;
  }
  .facet-start {
    align-items: flex-start;
    flex-direction: column;
  }
  .pachinko-games button {
    padding: 9px 11px;
  }
  .pachinko-games > span {
    margin: 8px 0 0;
  }
  .facet-node {
    border-radius: 4px;
    font-size: 18px;
  }
  .facet-nodes {
    gap: 3px;
  }
}

.blackjack-panel {
  max-width: 1040px;
  margin: auto;
}
.blackjack-panel > .section-head {
  margin-top: 24px;
}
.blackjack-table {
  border: 1px solid #668a79;
  border-radius: 30px;
  background: radial-gradient(ellipse at center, #1e5346, #102d28);
  padding: 26px 30px;
  box-shadow: inset 0 0 65px #0006;
}
.blackjack-seat h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  color: #deecdf;
  font-size: 16px;
}
.blackjack-seat h3 span {
  border: 1px solid #8db6a466;
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.blackjack-hand {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 130px;
}
.blackjack-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f6f1e6;
  color: #202630;
  border-radius: 11px;
  border: 2px solid #d4c9af;
  width: 88px;
  height: 124px;
  padding: 9px 11px;
  box-shadow: 0 7px 16px #0005;
  font-family: Georgia, serif;
}
.blackjack-card b {
  font-size: 23px;
}
.blackjack-card > span {
  font-size: 32px;
  text-align: center;
}
.blackjack-card small {
  font:
    11px Inter,
    sans-serif;
  align-self: flex-end;
  opacity: 0.8;
  color: currentColor;
}
.blackjack-card.red {
  color: #b73648;
}
.blackjack-card.blackjack-back {
  align-items: center;
  justify-content: center;
  color: #e6d9b7;
  border-color: #d1b77b;
  background: repeating-linear-gradient(45deg, #263b52 0 5px, #1f3045 5px 10px);
}
.blackjack-card.blackjack-back span {
  border: 1px solid #d1b77b88;
  padding: 14px 10px;
  border-radius: 50%;
  font-size: 28px;
}
.blackjack-card.is-dealt {
  animation: blackjack-deal 0.45s both;
  animation-delay: var(--deal-delay, 0ms);
}
.blackjack-table-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d0b67a66, transparent);
  margin: 24px 0;
}
.blackjack-table-empty {
  font:
    42px Georgia,
    serif;
  color: #dfd4a83b;
  min-height: 95px;
  padding: 10px;
}
.blackjack-controls {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.blackjack-controls .quantity-field {
  margin: 0;
}
.blackjack-result {
  text-align: center;
  padding: 20px 0 0;
}
.blackjack-result h3 {
  margin: 0 0 8px;
}
.blackjack-result p {
  margin: 0;
}
.blackjack-result span {
  margin-left: 20px;
  color: var(--muted, #b0b4c4);
}
.blackjack-result.is-win {
  color: #b7e7cc;
}
.blackjack-result.is-loss {
  color: #f07d92;
}
.blackjack-result.is-push {
  color: #d6c99e;
}
@keyframes blackjack-deal {
  from {
    opacity: 0;
    transform: translateY(-25px) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 600px) {
  .blackjack-table {
    padding: 18px;
  }
  .blackjack-card {
    width: 65px;
    height: 100px;
    padding: 7px;
  }
  .blackjack-hand {
    gap: 8px;
    min-height: 105px;
  }
  .blackjack-card > span {
    font-size: 25px;
  }
}

.gambling-history-tabs {
  margin: 16px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gambling-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 4px;
}
.gambling-history-entry {
  background: #181d28;
  border: 1px solid #2d3646;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gambling-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.gambling-history-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gambling-history-date {
  font-size: 11px;
  color: #8893a7;
}
.gambling-game-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: #2b3344;
  color: #cdd5e4;
}
.gambling-game-badge.game-mahjong {
  background: #1e3a35;
  color: #84e4bf;
  border: 1px solid #2d5a52;
}
.gambling-game-badge.game-horse-racing,
.gambling-game-badge.game-horse {
  background: #3e321e;
  color: #f7ca72;
  border: 1px solid #634f2d;
}
.gambling-game-badge.game-faceting,
.gambling-game-badge.game-gem {
  background: #25284b;
  color: #afb8f9;
  border: 1px solid #43497c;
}
.gambling-game-badge.game-roulette {
  background: #44222a;
  color: #f99cb0;
  border: 1px solid #6c3743;
}
.gambling-game-badge.game-blackjack67,
.gambling-game-badge.game-blackjack {
  background: #223744;
  color: #9cd4f9;
  border: 1px solid #37596c;
}
.gambling-game-badge.game-climb {
  background: #26382b;
  color: #9fe2a8;
  border: 1px solid #3d5d44;
}
.gambling-net {
  font-weight: 700;
  font-size: 13px;
}
.gambling-history-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #222938;
}
.gambling-summary {
  font-size: 13px;
  color: #d1d8e5;
}
