/* ==================== 基础样式 ==================== */
* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0a6e23 0%, #095c1e 50%, #084518 100%);
  min-height: 100vh;
  margin: 0;
  padding: 4px;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.game {
  width: 100%;
  max-width: 1600px;
  min-width: 320px;
  margin: 0 auto;
  background: linear-gradient(180deg, #0f7d2e 0%, #0a6e23 100%);
  padding: 8px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  min-height: calc(100vh - 16px);
  max-height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

h2 {
  text-align: center;
  margin: 4px 0;
  font-size: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h3 {
  text-align: center;
  margin: 4px 0;
  color: #ffc107;
  font-size: 16px;
}

/* ==================== 模式选择 ==================== */
.mode-select {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.mode-btn {
  padding: 12px 35px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffc107 0%, #ff9800 100%);
  color: #000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.mode-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

/* ==================== 房间界面 ==================== */
.room-create, .room-join {
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: 10px 0;
}

.room-create input, .room-join input {
  padding: 10px 15px;
  margin: 8px 5px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  text-align: center;
}

.room-create button, .room-join button {
  padding: 10px 20px;
  margin: 5px;
  font-size: 14px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
  color: #fff;
  transition: all 0.3s ease;
}

.room-create button:hover, .room-join button:hover {
  transform: translateY(-2px);
}

.player-list {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.player-slot {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  font-size: 13px;
}

/* ==================== 信息显示 ==================== */
.info {
  text-align: center;
  margin: 4px 0;
  font-size: 14px;
  font-weight: bold;
  padding: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info.tip-show {
  animation: tipPulse 0.5s ease;
  background: rgba(255, 193, 7, 0.3);
}

@keyframes tipPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.landlord-info {
  display: none;
  text-align: center;
  margin: 6px 0;
  padding: 6px 15px;
  background: linear-gradient(90deg, #8B0000, #DC143C, #8B0000);
  border-radius: 20px;
  font-size: 15px;
  font-weight: bold;
}

/* ==================== 三人玩家区域 ==================== */
.players-container {
  position: relative;
  height: 110px;
  margin: 4px 0;
  flex-shrink: 0;
}

.player-area {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-player {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
}

.left-player {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  flex-direction: column;
}

.right-player {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  flex-direction: column;
}

.player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
}

.player-name {
  font-weight: bold;
  font-size: 12px;
}

.player-role {
  font-size: 10px;
  color: #ffc107;
}

.player-area .player-cards {
  display: flex;
  gap: 2px;
}

/* 玩家区域卡牌样式 */
.player-area .card {
  width: 28px;
  height: 40px;
  font-size: 8px;
  cursor: default;
}

.left-player .player-cards,
.right-player .player-cards {
  flex-direction: column;
}

.left-player .card,
.right-player .card {
  width: 24px;
  height: 35px;
}

/* ==================== 桌面区域 - 横排显示 ==================== */
.desk-container {
  min-height: 65px;
  max-height: 85px;
  background: linear-gradient(180deg, #095c1e 0%, #074d17 100%);
  margin: 4px auto;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  flex-shrink: 0;
}

.desk-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  min-height: 45px;
  padding: 4px;
  width: 100%;
}

.desk-cards .card {
  transform: none;
  cursor: default;
  animation: none;
}

.desk-info {
  color: #aaa;
  font-size: 12px;
  margin-top: 2px;
}

.pass-text {
  color: #ff9800;
  font-size: 14px;
  font-weight: bold;
  margin-top: 8px;
}

/* ==================== 底牌区域 ==================== */
.landlord-cards-area {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.landlord-cards-area span {
  font-size: 13px;
  color: #aaa;
}

.landlord-cards {
  display: flex;
  gap: 4px;
}

/* ==================== 策略选择 ==================== */
.strategy-select {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 3px 0;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
}

.strategy-select span {
  font-size: 13px;
  color: #ccc;
}

.strategy-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.strategy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.strategy-btn.active {
  background: linear-gradient(180deg, #2196F3 0%, #1976D2 100%);
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.4);
}

/* ==================== 托管状态 ==================== */
.auto-play-status {
  display: none;
  text-align: center;
  margin: 3px 0;
  padding: 4px 10px;
  background: linear-gradient(90deg, #E65100, #FF9800, #E65100);
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ==================== 托管按钮 ==================== */
#autoPlay {
  background: linear-gradient(180deg, #607D8B 0%, #455A64 100%);
  box-shadow: 0 3px 10px rgba(96, 125, 139, 0.3);
}

#autoPlay:hover:not(:disabled) {
  box-shadow: 0 5px 15px rgba(96, 125, 139, 0.5);
}

#autoPlay.auto-play-active {
  background: linear-gradient(180deg, #FF5722 0%, #E64A19 100%);
  box-shadow: 0 3px 10px rgba(255, 87, 34, 0.4);
  animation: autoPlayGlow 1.5s ease-in-out infinite;
}

@keyframes autoPlayGlow {
  0%, 100% { box-shadow: 0 3px 10px rgba(255, 87, 34, 0.4); }
  50% { box-shadow: 0 3px 20px rgba(255, 87, 34, 0.8); }
}

/* ==================== 我的区域 ==================== */
.my-area {
  min-height: 95px;
  max-height: 115px;
  margin: 4px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow-y: auto;
  flex-shrink: 0;
}

.bottom-area {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 125, 46, 0.98) 0%, rgba(10, 110, 35, 1) 100%);
  padding: 6px 0;
  margin: 0 -10px -10px -10px;
  border-radius: 0 0 12px 12px;
}

.btns {
  text-align: center;
  margin: 4px 0;
}

button {
  padding: 6px 18px;
  margin: 0 5px;
  font-size: 13px;
  font-weight: bold;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #2196F3 0%, #1976D2 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.5);
}

button:disabled {
  background: linear-gradient(180deg, #9E9E9E 0%, #757575 100%);
  cursor: not-allowed;
  box-shadow: none;
}

#pass {
  background: linear-gradient(180deg, #ff9800 0%, #f57c00 100%);
  box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}

#pass:hover:not(:disabled) {
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.5);
}

#play {
  background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

#play:hover:not(:disabled) {
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.5);
}

/* ==================== 按钮样式 ==================== */
.btn {
  background: linear-gradient(180deg, #ffc107 0%, #ff9800 100%);
  color: #000;
  padding: 10px 28px;
  text-align: center;
  border-radius: 22px;
  cursor: pointer;
  margin: 10px auto;
  font-size: 16px;
  font-weight: bold;
  width: 180px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  display: block;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

.bid-btns {
  display: none;
  text-align: center;
  margin: 10px 0;
}

.bid-btn {
  padding: 8px 18px;
  margin: 0 6px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.bid-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.5);
}

.bid-btn.pass {
  background: linear-gradient(180deg, #9E9E9E 0%, #757575 100%);
  box-shadow: 0 3px 10px rgba(158, 158, 158, 0.3);
}

/* ==================== 卡牌样式 ==================== */
.card {
  width: 42px;
  height: 62px;
  background: #fff;
  color: #000;
  border-radius: 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  user-select: none;
  flex-shrink: 0;
}

.card::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 1px solid #ddd;
  border-radius: 3px;
  pointer-events: none;
}

.card.red {
  color: #d32f2f;
}

.card.selected {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #fff 0%, #e3f2fd 100%);
}

.card.card-back {
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1a237e 100%);
  color: #fff;
}

.card.card-back::before {
  content: '?';
  font-size: 22px;
  color: #ffc107;
  border: none;
}

.card.card-back::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(255, 193, 7, 0.1) 3px,
    rgba(255, 193, 7, 0.1) 6px
  );
  border-radius: 3px;
}

.card .suit {
  font-size: 16px;
  line-height: 1;
}

.card .rank {
  font-size: 11px;
  line-height: 1;
  margin-top: 2px;
}

/* ==================== 桌面端优化 (1200px+) ==================== */
@media (min-width: 1200px) {
  .game {
    max-width: 1700px;
    min-width: 1100px;
    padding: 15px;
  }
  
  h2 {
    font-size: 22px;
    margin: 6px 0;
  }
  
  .players-container {
    height: 120px;
  }
  
  .player-area .card {
    width: 32px;
    height: 46px;
    font-size: 9px;
  }
  
  .left-player .card,
  .right-player .card {
    width: 28px;
    height: 40px;
  }
  
  .desk-container {
    min-height: 75px;
    padding: 10px;
  }
  
  .desk-cards {
    gap: 4px;
    min-height: 55px;
  }
  
  .card {
    width: 48px;
    height: 70px;
    font-size: 14px;
  }
  
  .card .suit {
    font-size: 18px;
  }
  
  .card .rank {
    font-size: 12px;
  }
  
  .card.selected {
    transform: translateY(-12px);
  }
  
  .my-area {
    min-height: 105px;
    max-height: 125px;
    gap: 2px;
  }
  
  button {
    padding: 8px 24px;
    font-size: 14px;
    margin: 0 8px;
  }
  
  .info {
    font-size: 16px;
    min-height: 38px;
    padding: 8px;
  }
}

/* ==================== 大屏桌面端优化 (1400px+) ==================== */
@media (min-width: 1400px) {
  .game {
    max-width: 1800px;
    min-width: 1200px;
  }
  
  .players-container {
    height: 130px;
  }
  
  .player-area .card {
    width: 36px;
    height: 52px;
    font-size: 10px;
  }
  
  .left-player .card,
  .right-player .card {
    width: 32px;
    height: 45px;
  }
  
  .card {
    width: 52px;
    height: 76px;
    font-size: 15px;
  }
  
  .card .suit {
    font-size: 20px;
  }
  
  .card .rank {
    font-size: 13px;
  }
  
  .my-area {
    min-height: 115px;
    max-height: 135px;
  }
}

/* ==================== 中等屏幕响应式设计 (768px - 1199px) ==================== */
@media (max-width: 1199px) {
  .game {
    max-width: 100%;
    min-width: 768px;
    padding: 8px;
  }
  
  h2 {
    font-size: 19px;
    margin: 3px 0;
  }
  
  h3 {
    font-size: 15px;
    margin: 3px 0;
  }
  
  .players-container {
    height: 105px;
    margin: 3px 0;
  }
  
  .player-area {
    gap: 6px;
  }
  
  .player-area .card {
    width: 28px;
    height: 40px;
    font-size: 8px;
  }
  
  .left-player .card,
  .right-player .card {
    width: 24px;
    height: 35px;
  }
  
  .card {
    width: 42px;
    height: 60px;
    font-size: 11px;
  }
  
  .card .suit {
    font-size: 15px;
  }
  
  .card .rank {
    font-size: 10px;
  }
  
  .card.selected {
    transform: translateY(-10px);
  }
  
  .my-area {
    min-height: 95px;
    max-height: 110px;
    margin: 3px 0;
    padding: 5px;
  }
  
  .desk-container {
    min-height: 60px;
    max-height: 80px;
    margin: 3px 0;
    padding: 6px;
  }
  
  .desk-cards {
    gap: 3px;
    min-height: 42px;
    padding: 3px;
  }
  
  button {
    padding: 6px 18px;
    font-size: 13px;
    margin: 0 5px;
    border-radius: 14px;
  }
  
  .info {
    font-size: 13px;
    min-height: 30px;
    padding: 5px;
    margin: 3px 0;
  }
  
  .strategy-select {
    margin: 2px 0;
    padding: 3px 8px;
  }
  
  .strategy-btn {
    padding: 3px 8px;
    font-size: 10px;
  }
}

/* ==================== 平板端响应式设计 (500px - 767px) ==================== */
@media (max-width: 767px) {
  .game {
    width: 100%;
    max-width: 100%;
    min-width: 320px;
    padding: 6px;
    border-radius: 10px;
  }
  
  h2 {
    font-size: 17px;
    margin: 3px 0;
  }
  
  h3 {
    font-size: 14px;
    margin: 3px 0;
  }
  
  .mode-select {
    gap: 10px;
    margin: 5px 0;
  }
  
  .mode-btn {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 20px;
  }
  
  .players-container {
    height: 95px;
    margin: 2px 0;
  }
  
  .player-area {
    gap: 5px;
  }
  
  .player-info {
    padding: 3px 6px;
  }
  
  .player-name {
    font-size: 11px;
  }
  
  .player-role {
    font-size: 9px;
  }
  
  .left-player {
    left: 8px;
  }
  
  .right-player {
    right: 8px;
  }
  
  .player-area .card {
    width: 24px;
    height: 36px;
    font-size: 7px;
  }
  
  .left-player .card,
  .right-player .card {
    width: 20px;
    height: 30px;
  }
  
  .desk-container {
    min-height: 55px;
    max-height: 70px;
    margin: 2px 0;
    padding: 6px;
    border-radius: 5px;
  }
  
  .desk-cards {
    gap: 2px;
    min-height: 40px;
    padding: 3px;
  }
  
  .card {
    width: 36px;
    height: 52px;
    font-size: 10px;
    border-radius: 3px;
  }
  
  .card .suit {
    font-size: 13px;
  }
  
  .card .rank {
    font-size: 9px;
  }
  
  .card.selected {
    transform: translateY(-8px);
  }
  
  .my-area {
    min-height: 85px;
    max-height: 100px;
    margin: 2px 0;
    padding: 5px;
    gap: 2px;
    border-radius: 5px;
  }
  
  .bottom-area {
    padding: 4px 0;
    margin: 0 -6px -6px -6px;
    border-radius: 0 0 10px 10px;
  }
  
  button {
    padding: 5px 14px;
    font-size: 12px;
    margin: 0 4px;
    border-radius: 12px;
  }
  
  .info {
    font-size: 13px;
    min-height: 28px;
    padding: 4px;
    margin: 2px 0;
    border-radius: 5px;
  }
  
  .strategy-select {
    margin: 2px 0;
    padding: 3px 8px;
    border-radius: 12px;
  }
  
  .strategy-btn {
    padding: 3px 8px;
    font-size: 10px;
  }
  
  .auto-play-status {
    margin: 2px 0;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 10px;
  }
  
  .landlord-info {
    margin: 3px 0;
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 15px;
  }
  
  .bid-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* ==================== 手机端响应式设计 (max-width: 499px) ==================== */
@media (max-width: 499px) {
  body {
    padding: 2px;
    min-height: 100vh;
  }
  
  .game {
    width: 100%;
    max-width: 100%;
    min-width: 320px;
    padding: 4px;
    border-radius: 8px;
    min-height: calc(100vh - 4px);
    max-height: calc(100vh - 4px);
  }
  
  h2 {
    font-size: 15px;
    margin: 2px 0;
  }
  
  h3 {
    font-size: 12px;
    margin: 2px 0;
  }
  
  .mode-select {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
  }
  
  .mode-btn {
    width: 90%;
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 18px;
  }
  
  .mode-btn:hover {
    transform: none;
  }
  
  .players-container {
    height: 75px;
    margin: 2px 0;
  }
  
  .player-area {
    gap: 3px;
  }
  
  .player-info {
    padding: 2px 4px;
  }
  
  .player-name {
    font-size: 9px;
  }
  
  .player-role {
    font-size: 7px;
  }
  
  .left-player {
    left: 4px;
  }
  
  .right-player {
    right: 4px;
  }
  
  .player-area .card {
    width: 18px;
    height: 28px;
    font-size: 6px;
    border-radius: 3px;
  }
  
  .left-player .card,
  .right-player .card {
    width: 15px;
    height: 22px;
  }
  
  .desk-container {
    min-height: 45px;
    max-height: 55px;
    padding: 4px;
    margin: 2px 0;
    border-radius: 4px;
  }
  
  .desk-cards {
    gap: 1px;
    min-height: 32px;
    padding: 2px;
  }
  
  .card {
    width: 28px;
    height: 42px;
    font-size: 9px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }
  
  .card::before {
    display: none;
  }
  
  .card .suit {
    font-size: 11px;
  }
  
  .card .rank {
    font-size: 8px;
  }
  
  .card.selected {
    transform: translateY(-6px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  
  .card.card-back::before {
    display: block;
    font-size: 16px;
  }
  
  .my-area {
    min-height: 70px;
    max-height: 85px;
    gap: 1px;
    padding: 3px;
    margin: 2px 0;
    border-radius: 4px;
  }
  
  .bottom-area {
    margin: 0 -4px -4px -4px;
    padding: 4px 0;
    border-radius: 0 0 8px 8px;
  }
  
  .btns {
    margin: 2px 0;
  }
  
  button {
    padding: 4px 10px;
    font-size: 11px;
    margin: 0 3px;
    border-radius: 10px;
    min-width: 60px;
  }
  
  button:hover:not(:disabled) {
    transform: none;
  }
  
  .info {
    font-size: 11px;
    min-height: 24px;
    padding: 3px;
    margin: 2px 0;
    border-radius: 4px;
  }
  
  .landlord-info {
    padding: 3px 8px;
    font-size: 11px;
    margin: 2px 0;
    border-radius: 12px;
  }
  
  .strategy-select {
    margin: 2px 0;
    padding: 2px 6px;
    border-radius: 10px;
  }
  
  .strategy-select span {
    font-size: 10px;
  }
  
  .strategy-btn {
    padding: 2px 6px;
    font-size: 9px;
    border-radius: 8px;
  }
  
  .auto-play-status {
    padding: 2px 8px;
    font-size: 11px;
    margin: 2px 0;
    border-radius: 8px;
  }
  
  .bid-btns {
    margin: 4px 0;
  }
  
  .bid-btn {
    padding: 4px 10px;
    font-size: 11px;
    margin: 0 4px;
    border-radius: 10px;
  }
  
  .bid-btn:hover {
    transform: none;
  }
  
  .room-create, .room-join {
    padding: 8px;
    margin: 4px 0;
    border-radius: 6px;
  }
  
  .room-create input, .room-join input {
    padding: 6px 10px;
    margin: 4px 3px;
    font-size: 12px;
    border-radius: 12px;
    width: 80%;
  }
  
  .room-create button, .room-join button {
    padding: 6px 12px;
    font-size: 11px;
    margin: 3px;
  }
  
  .player-list {
    gap: 6px;
    margin-top: 6px;
  }
  
  .player-slot {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 10px;
  }
  
  .btn {
    padding: 8px 20px;
    font-size: 13px;
    margin: 6px auto;
    width: 140px;
    border-radius: 16px;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* ==================== 动画效果 ==================== */
@keyframes cardDeal {
  from {
    transform: scale(0.5) rotate(-10deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.card {
  animation: cardDeal 0.2s ease-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.3s ease;
}

/* ==================== 测试按钮 ==================== */
.test-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: bold;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  background: linear-gradient(180deg, #9C27B0 0%, #7B1FA2 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(156, 39, 176, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.test-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(156, 39, 176, 0.6);
}

@media (max-width: 767px) {
  .test-btn {
    padding: 6px 10px;
    font-size: 10px;
    bottom: 15px;
    right: 15px;
  }
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
