* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #0a0e27;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* 登录界面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    font-size: 2rem;
    margin-bottom: 25px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.input-group input {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #ff7e5f;
    background: rgba(255, 255, 255, 0.15);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 按钮样式 */
.btn, .btn-action {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    color: #fff;
}

.btn-primary, .btn-action.btn-primary {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.4);
}

.btn-primary:hover, .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 移动端游戏容器 */
.mobile-game-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #0a0e27;
}

/* 顶部信息栏 */
.top-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.game-info-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.info-item {
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
}

.info-value {
    color: #fff;
    font-weight: bold;
}

.game-mode {
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(255, 126, 95, 0.3);
    border-radius: 5px;
    font-size: 0.75rem;
}

.top-right-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.round-info {
    font-size: 0.9rem;
    font-weight: bold;
    color: #feb47b;
}

.menu-icon {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

/* 匹配大厅 */
.match-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 80px 20px 20px;
}

.lobby-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.match-status {
    margin-bottom: 30px;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.match-status h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.match-status p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.match-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    border-radius: 10px;
    transition: width 0.3s;
}

.player-queue {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.queue-title {
    font-size: 1rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.queue-players {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.queue-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}

.queue-player.empty {
    opacity: 0.5;
}

.player-avatar-small-container {
    position: relative;
    display: inline-block;
}

.player-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s;
}

.queue-player:not(.empty) .player-avatar-small {
    border: 2px solid transparent;
}

.queue-player:not(.empty) .player-avatar-small-container:hover .player-avatar-small {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.ready-badge-small {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.9);
    animation: pulse-ready 2s infinite;
}

@keyframes pulse-ready {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(46, 204, 113, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 12px rgba(46, 204, 113, 0.8);
        transform: scale(1.1);
    }
}

.player-name-small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.ready-status-text {
    font-size: 0.7rem;
    color: #2ecc71;
    font-weight: bold;
    margin-top: 2px;
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-ready-lobby {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 126, 95, 0.4);
}

.ready-status {
    padding: 15px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    color: #3498db;
}

/* 游戏桌面容器 */
.game-table-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* 长方形桌子 */
.poker-table {
    width: 100%;
    flex: 1;
    max-width: 100%;
    margin: 80px auto 0;
    position: relative;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.table-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 65%;
    max-width: 600px;
    border: 20px solid #8b4513;
    border-radius: 20px;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.5);
    background: #1a5f2e;
    z-index: 1;
}

.table-border::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: inherit;
    background: linear-gradient(135deg, #2d5a3d, #1a5f2e);
    z-index: -1;
}

/* 玩家位置 */
.player-positions {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    z-index: 2;
    min-height: 400px;
}

.player-position {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
}

/* 位置分布 - 长方形桌子布局，最多5个其他玩家 */
.pos-1 {
    top: 8%;
    left: 8%;
}

.pos-2 {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
}

.pos-3 {
    top: 8%;
    right: 8%;
}

.pos-4 {
    bottom: 8%;
    right: 8%;
}

.pos-5 {
    bottom: 8%;
    left: 8%;
}

.my-position {
    z-index: 10;
}

.player-info-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 100px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.player-position.is-me .player-info-card {
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.player-position.is-dealer .player-info-card {
    border-color: #f39c12;
}

.player-position.current-turn .player-info-card {
    border-color: #2ecc71;
    animation: pulse-turn 2s infinite;
}

.player-position.out .player-info-card {
    opacity: 0.5;
    border-color: #e74c3c;
}

@keyframes pulse-turn {
    0%, 100% { box-shadow: 0 0 20px rgba(46, 204, 113, 0.5); }
    50% { box-shadow: 0 0 30px rgba(46, 204, 113, 0.8); }
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 5px;
}

.player-name {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.player-score {
    font-size: 0.75rem;
    color: #feb47b;
    margin-bottom: 3px;
}

.player-bet {
    font-size: 0.7rem;
    color: #f39c12;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.chip-icon {
    font-size: 0.9rem;
}

.dealer-badge-small, .out-badge-small, .seen-badge-small {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
}

.dealer-badge-small {
    background: #f39c12;
    color: #000;
}

.out-badge-small {
    background: #e74c3c;
    color: #fff;
}

.seen-badge-small {
    background: #3498db;
    color: #fff;
}

.player-cards-position {
    margin-top: 8px;
    display: flex;
    gap: 3px;
}

.cards-visible-small, .cards-hidden-small {
    display: flex;
    gap: 3px;
}

.card-small {
    width: 35px;
    height: 50px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.card-small.hearts, .card-small.diamonds {
    color: #e74c3c;
}

.card-small.spades, .card-small.clubs {
    color: #2c3e50;
}

.card-value-small {
    font-size: 0.8rem;
}

.card-suit-small {
    font-size: 1rem;
}

.card-back-small {
    width: 35px;
    height: 50px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* 中央区域 */
.table-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    min-width: 150px;
    pointer-events: none;
}

.pot-info {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.pot-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.pot-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #feb47b;
}

.chips-stack {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 15px 0;
}

.chip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chip-1 {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #333;
}

.chip-5 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.chip-10 {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: #fff;
}

.game-stats {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 8px;
    font-size: 0.8rem;
}

.stat-item {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* 我的牌区域 - 放在桌子下方，操作按钮上方 */
.my-cards-area {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    text-align: center;
    width: 90%;
    max-width: 500px;
    padding: 10px 15px;
    background: transparent;
    border-radius: 12px;
}

.my-cards-title {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.my-cards-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.my-card {
    width: 60px;
    height: 84px;
    border-radius: 6px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    transition: all 0.3s;
    position: relative;
    overflow: visible;
}

.my-card.seen {
    border: 3px solid #3498db;
    transform: translateY(-5px);
}

.my-card.hearts, .my-card.diamonds {
    color: #e74c3c;
}

.my-card.spades, .my-card.clubs {
    color: #2c3e50;
}

.my-card-back {
    width: 60px;
    height: 84px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1a1a2e, #2c3e50);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-pattern, .card-back-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
    opacity: 0.6;
}

.my-hand-type {
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #feb47b;
}

.card-top, .card-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 2;
    line-height: 1.1;
}

.card-value-text, .card-suit-text {
    display: block;
}

.card-bottom {
    align-items: flex-end;
    transform: rotate(180deg);
}

.card-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    font-size: 1.5rem;
    line-height: 1;
}

/* 游戏操作按钮 */
.game-actions-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 15px;
    z-index: 100;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    min-height: 140px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.action-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 90px;
    max-width: 120px;
}

.btn-see {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: #fff;
}

.btn-bet {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: #fff;
}

.btn-fold {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
}

.btn-compare {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
}

.btn-confirm {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: #fff;
}

.bet-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.bet-input-group input {
    flex: 1;
    max-width: 150px;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.85rem;
}

.bet-input-group input:focus {
    outline: none;
    border-color: #ff7e5f;
}

.bet-input-group .btn-confirm {
    flex: 0 0 auto;
    max-width: 80px;
}

.waiting-other-player {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(52, 152, 219, 0.2);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 50;
}

/* 准备按钮区域 */
.ready-button-area {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.btn-ready-large {
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 126, 95, 0.4);
}

.ready-status-large {
    padding: 15px 30px;
    background: rgba(52, 152, 219, 0.3);
    border-radius: 15px;
    font-size: 1rem;
    color: #3498db;
}

/* 离开房间按钮 */
.leave-room-btn {
    position: fixed;
    top: 80px;
    right: 15px;
    z-index: 100;
}

.btn-leave-room {
    padding: 10px 18px;
    background: rgba(231, 76, 60, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-leave-room:hover {
    background: rgba(231, 76, 60, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.btn-leave-room:active {
    transform: translateY(0);
}

/* 结算界面 */
.settlement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 20px;
    overflow-y: auto;
}

.settlement-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.settlement-content h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.winner-info {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    color: #1a1a2e;
}

.winner-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.winner-hand {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.winner-prize {
    font-size: 1.5rem;
    font-weight: bold;
}

/* 玩家对比区域 */
.players-comparison {
    margin: 20px 0;
    text-align: left;
}

.comparison-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.players-list-settlement {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.player-item-settlement {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.player-item-settlement.winner {
    background: rgba(255, 126, 95, 0.2);
    border-color: rgba(255, 126, 95, 0.6);
    box-shadow: 0 0 15px rgba(255, 126, 95, 0.3);
}

.player-item-settlement.is-me {
    border-color: rgba(52, 152, 219, 0.6);
    background: rgba(52, 152, 219, 0.1);
}

.player-header-settlement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.player-name-settlement {
    font-weight: bold;
    font-size: 1rem;
    flex: 1;
}

.winner-badge {
    font-size: 1.2rem;
}

.me-badge {
    background: rgba(52, 152, 219, 0.8);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
}

.player-cards-settlement {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 10px 0;
}

.card-settlement {
    width: 45px;
    height: 63px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.card-settlement.hearts, .card-settlement.diamonds {
    color: #e74c3c;
}

.card-settlement.spades, .card-settlement.clubs {
    color: #2c3e50;
}

.card-value-settlement {
    font-size: 0.8rem;
}

.card-suit-settlement {
    font-size: 1rem;
}

.hand-type-settlement {
    font-size: 0.9rem;
    font-weight: bold;
    color: #feb47b;
    margin: 8px 0;
    text-align: center;
}

.player-bet-settlement {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.settlement-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 比牌结果弹窗 */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
    padding: 20px;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}


/* 消息提示 */
.message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    animation: slideDown 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.message.success {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.2);
}

.message.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
}

.message.info {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* 离线提示横幅 */
.offline-banner {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    animation: slideDown 0.3s ease;
}

.offline-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.offline-text {
    font-size: 0.9rem;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .poker-table {
        padding: 10px;
        margin-top: 70px;
    }
    
    .table-border {
        width: 95%;
        height: 70%;
        border-width: 15px;
    }
    
    .player-positions {
        min-height: 350px;
    }
    
    .player-info-card {
        min-width: 70px;
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .player-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .my-card {
        width: 50px;
        height: 70px;
        padding: 4px;
    }
    
    .my-card-back {
        width: 50px;
        height: 70px;
    }
    
    .card-center {
        font-size: 1.2rem;
    }
    
    .btn-action {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .game-actions-bottom {
        padding: 10px 12px;
    }
    
    .my-cards-area {
        bottom: 130px;
        width: 95%;
        padding: 8px 10px;
    }
    
    .my-cards-title {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
    
    .game-actions-bottom {
        min-height: 120px;
        padding: 10px 12px;
    }
}
