.sg-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffe9b0;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}

.sg-back:hover {
  background: rgba(255, 255, 255, 0.14);
}

.sg-rule-chip {
  font-size: 12px;
  color: rgba(255, 241, 205, 0.8);
}

.top-actions .text-btn.active {
  color: #462600;
  background: linear-gradient(180deg, #ffe9a3, #f6c453 62%, #dd8f1c);
  border-color: rgba(255, 247, 209, 0.72);
}

.sg-team {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 160, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffe8a8;
  font-size: 10px;
  font-weight: 800;
}

.seat-bottom .sg-team {
  border-color: rgba(124, 224, 180, 0.34);
  color: #aef4d6;
}

.sg-rules {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
  padding: 10px 12px;
  text-align: left;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 230, 160, 0.14);
}

.sg-rules div {
  display: flex;
  gap: 7px;
  color: rgba(255, 241, 205, 0.7);
  font-size: 11px;
  line-height: 1.45;
}

.sg-rules b {
  flex: 0 0 auto;
  color: #ffd76a;
  font-size: 11px;
}

.sg-rules .sg-rule-wide {
  display: block;
}

.sg-table .seat-top {
  top: 94px;
}

.sg-table .last-cards .card {
  width: 40px;
  height: 58px;
  margin-left: -7px;
}

.sg-table .last-cards .card:first-child {
  margin-left: 0;
}

.sg-result-actions,
.result-actions {
  display: flex;
  gap: 9px;
  justify-content: center;
}

.result-actions .game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sg-empty {
  padding: 24px 0;
  color: rgba(255, 238, 194, 0.5);
  font-size: 12px;
  text-align: center;
}

.sg-result-note {
  margin: -6px 0 12px;
  color: rgba(255, 238, 194, 0.55);
  font-size: 11px;
}

@media (max-width: 760px) {
  .sg-table .seat-top {
    top: 80px;
  }

  .sg-rule-chip {
    display: none;
  }

  .sg-back {
    width: 26px;
    height: 32px;
    font-size: 22px;
  }

  .sg-rules {
    gap: 6px;
    padding: 9px 10px;
  }

  .sg-rules div,
  .sg-rules b {
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .topbar .brand {
    gap: 5px;
  }

  .topbar {
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .top-actions .text-btn {
    padding: 0 7px;
  }
}
