* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #121921;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 🪙 全局 100% 纯 CSS 高光黄金发光金豆 Icon (彻底替代 Unicode 乱码字符) */
.coin-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 35% 35%, #fffbeb, #f59e0b 60%, #b45309 100%);
    border: 1px solid #fef08a;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    position: relative;
    vertical-align: -2px;
    margin: 0 3px;
}

.coin-icon::after {
    content: "￥";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    color: #78350f;
    font-weight: 900;
    font-size: 11px;
    font-style: normal;
}

.game-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    max-height: 860px;
    background: radial-gradient(circle at center, #1b3022 0%, #0d1710 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid #2d4a34;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.view-panel {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.view-panel.active {
    display: flex;
}

/* ---- 模式选择器 ---- */
.mode-selector-wrapper {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 12px;
}

.mode-selector {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.mode-pill {
    flex: 1;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-pill.active {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    border-color: #a855f7;
    color: #fef08a;
    box-shadow: 0 0 10px rgba(168,85,247,0.4);
}

.mode-tag {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #a855f7;
    color: #e9d5ff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
    margin-right: 4px;
}

/* ---- 大厅视图样式 (Lobby UI) ---- */
.lobby-header {
    background: rgba(0,0,0,0.5);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lobby-title {
    font-size: 14px;
    font-weight: bold;
    color: #fbbf24;
}

.header-nav-btns {
    display: flex;
    gap: 4px;
}

.btn-nav {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fef08a;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav:hover {
    background: rgba(245, 158, 11, 0.4);
}

.btn-gold { background: rgba(234, 179, 8, 0.3); border-color: #eab308; color: #fef08a; }
.btn-danger { background: rgba(239, 68, 68, 0.3); border-color: #ef4444; color: #fca5a5; }
.btn-success { background: rgba(34, 197, 94, 0.3); border-color: #22c55e; color: #bbf7d0; }

.lobby-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tier-section-title {
    font-size: 13px;
    font-weight: bold;
    color: #94a3b8;
    margin-bottom: 6px;
}

.tier-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tier-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.tier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.tier-novice { border-left: 4px solid #10b981; }
.tier-master { border-left: 4px solid #3b82f6; }
.tier-king { border-left: 4px solid #f59e0b; }

.tier-icon { font-size: 24px; }
.tier-info { flex: 1; }
.tier-name { font-size: 14px; font-weight: bold; color: #f8fafc; }
.tier-desc { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.btn-match {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.custom-input-group {
    display: flex;
    gap: 8px;
}

.input-short {
    width: 100px;
}

.active-rooms-section {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.room-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.btn-refresh {
    background: none;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

.room-list-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 140px;
    overflow-y: auto;
}

.room-item {
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.room-item-empty {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    padding: 16px 0;
}

/* ---- 签到与商城 Modal 样式 ---- */
.signin-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.signin-day {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #cbd5e1;
}

.signin-day.day-7 {
    grid-column: span 2;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    border-color: #a855f7;
    color: #fef08a;
    font-weight: bold;
}

.shop-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.shop-item {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.shop-title { font-size: 13px; font-weight: bold; color: #f8fafc; }
.shop-desc { font-size: 10px; color: #94a3b8; margin-top: 2px; }

.btn-buy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

/* ---- 排行榜与战绩 Modal 样式 ---- */
.leaderboard-modal-content, .history-modal-content, .shop-modal-content {
    border-color: #f59e0b;
    max-width: 380px;
}

.list-modal-container {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.leader-item {
    background: rgba(30, 41, 59, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    border-left: 4px solid #475569;
}

.rank-badge {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
}

.rank-1 { border-left-color: #ffd700; color: #ffd700; }
.rank-2 { border-left-color: #c0c0c0; color: #e2e8f0; }
.rank-3 { border-left-color: #cd7f32; color: #f97316; }

.history-item {
    background: rgba(15, 23, 42, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    font-size: 12px;
    border: 1px solid #334155;
}

.history-row {
    display: flex;
    justify-content: space-between;
}

.win-text { color: #4ade80; font-weight: bold; }
.lose-text { color: #f87171; font-weight: bold; }

/* ---- 牌桌对局 View 样式 ---- */
.game-header {
    background: rgba(0,0,0,0.4);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.btn-back-lobby {
    background: #334155;
    color: #cbd5e1;
    border: 1px solid #475569;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}

.btn-back-lobby:hover {
    background: #475569;
}

.user-badge {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    color: #93c5fd;
    transition: all 0.2s;
}

.user-badge:hover {
    background: rgba(59, 130, 246, 0.4);
}

.pot-info {
    color: #ffd700;
    font-weight: bold;
}

.status-bar {
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #4ade80;
}

.poker-table {
    flex: 1;
    position: relative;
    margin: 10px;
    border-radius: 120px;
    border: 8px solid #3d2612;
    background: radial-gradient(ellipse at center, #1e5128 0%, #0e2e14 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.table-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chip-pool {
    background: rgba(0,0,0,0.6);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #ffd700;
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
}

.action-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #a7f3d0;
}

.table-seats-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.player-seat {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    pointer-events: auto;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.avatar {
    width: 44px;
    height: 44px;
    background: #2a3744;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: 2px solid #e2e8f0;
}

.active-turn .avatar {
    border-color: #ef4444;
    box-shadow: 0 0 12px #ef4444;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.player-name {
    font-size: 11px;
    margin-top: 2px;
    color: #cbd5e1;
}

.coins {
    font-size: 11px;
    color: #facc15;
}

.bet-tag {
    font-size: 10px;
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 8px;
    color: #93c5fd;
    margin-top: 2px;
}

/* 房主踢人小按钮 */
.btn-seat-kick {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #ffffff;
    border: 1px solid #f87171;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    z-index: 10;
    transition: transform 0.2s ease;
}

.btn-seat-kick:hover {
    transform: scale(1.25);
    background: #dc2626;
}

/* 终局座位浮动盈亏标签 */
.seat-net-tag {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 3px;
    animation: popNetTag 0.4s ease-out;
}

.net-win {
    background: rgba(34, 197, 94, 0.25);
    border: 1px solid #22c55e;
    color: #4ade80;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.net-lose {
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid #ef4444;
    color: #f87171;
}

@keyframes popNetTag {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.card-box {
    margin: 4px 0;
}

.card {
    width: 44px;
    height: 60px;
    background: #ffffff;
    border-radius: 6px;
    color: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border: 1px solid #cbd5e1;
}

.card-red { color: #dc2626; }
.card-black { color: #0f172a; }

.card-hidden {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #64748b;
}

.card-blind {
    background: linear-gradient(135deg, #334155, #1e293b);
    border: 2px dashed #f59e0b;
}

.blind-text {
    font-size: 9px;
    color: #fbbf24;
    text-align: center;
    line-height: 1.2;
}

.folded {
    opacity: 0.4;
    filter: grayscale(1);
}

.prop-bar {
    background: rgba(0,0,0,0.4);
    padding: 6px 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-prop {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: #f3e8ff;
    border: 1px solid #a855f7;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prop-fire {
    background: linear-gradient(135deg, #ea580c, #9a3412);
    border-color: #f97316;
}

.btn-prop:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(168,85,247,0.5);
}

.btn-prop:disabled {
    background: #334155;
    border-color: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.5;
}

.action-bar-wrapper {
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}

.action-bar {
    padding: 10px 14px;
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-fold { background: #ef4444; color: white; }
.btn-call { background: #3b82f6; color: white; }
.btn-raise { background: #10b981; color: white; }

.btn:disabled {
    background: #475569;
    opacity: 0.5;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

.modal-content {
    background: #1e293b;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #fbbf24;
    max-width: 340px;
    width: 100%;
    position: relative;
}

.auth-modal-content {
    border-color: #3b82f6;
}

.close-btn {
    position: absolute;
    top: 10px; right: 14px;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    margin: 16px 0;
    border-bottom: 1px solid #334155;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 8px 0;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.tab-btn.active {
    color: #60a5fa;
    border-bottom: 2px solid #60a5fa;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.tab-content.active {
    display: flex;
}

.auth-input {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 10px 12px;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    outline: none;
}

.auth-input:focus {
    border-color: #3b82f6;
}

.btn-full {
    width: 100%;
    margin-top: 4px;
}

.btn-oauth {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.btn-wechat {
    background: #07c160;
    color: white;
}

.btn-github {
    background: #24292e;
    color: white;
    border: 1px solid #444c56;
}

.auth-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #f87171;
    min-height: 18px;
}

/* ---- 快捷聊天气泡栏 ---- */
.chat-quick-bar {
    background: rgba(0,0,0,0.35);
    padding: 5px 10px;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-chat {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.btn-chat:hover {
    background: rgba(99, 102, 241, 0.4);
    border-color: #818cf8;
    color: #e0e7ff;
}

/* ---- 玩家头像气泡 ---- */
.speech-bubble {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid #6366f1;
    color: #e0e7ff;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: bubblePop 0.3s ease-out;
    z-index: 50;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #6366f1;
}

@keyframes bubblePop {
    from { transform: translateX(-50%) scale(0.5); opacity: 0; }
    to   { transform: translateX(-50%) scale(1);   opacity: 1; }
}

/* ---- 幸运大转盘 Modal ---- */
.wheel-modal-content {
    border-color: #f59e0b;
    max-width: 300px;
}

.wheel-sub {
    font-size: 12px;
    color: #94a3b8;
    margin: 6px 0 12px;
}

.wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    color: #ef4444;
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 0 4px #ef4444);
    z-index: 10;
}


.wheel-result {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #fbbf24;
    min-height: 20px;
    text-align: center;
}

/* 🔒 自建私人房规则看板与房主控制栏样式 */
.custom-room-info-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px 12px;
    margin: 4px 12px;
    font-size: 11px;
    color: #e2e8f0;
}

.custom-room-info-bar span {
    color: #38bdf8;
    font-weight: 600;
}

.host-control-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.9);
    border-bottom: 1px solid #475569;
}

.btn-host-start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 24px;
    border-radius: 20px;
    border: 1px solid #34d399;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-host-start:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
}

.host-wait-tip {
    font-size: 13px;
    color: #f87171;
    font-weight: bold;
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.form-group-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    text-align: left;
}

.form-group-row label {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 4px;
    font-weight: bold;
}

/* 📜 协议勾选框与条款样式 */
.legal-agree-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.legal-agree-wrapper input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.legal-agree-wrapper a {
    color: #38bdf8;
    text-decoration: underline;
    cursor: pointer;
}

.legal-modal-content {
    max-width: 480px;
}

.legal-body-text {
    max-height: 280px;
    overflow-y: auto;
    text-align: left;
    font-size: 12px;
    line-height: 1.6;
    color: #cbd5e1;
    background: #0f172a;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #334155;
    margin-top: 10px;
}

/* 📖 游戏玩法规则说明卡片 */
.rules-modal-content {
    max-width: 600px;
    background: #1e293b;
    border: 1px solid #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.rules-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
    text-align: left;
}

.rule-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
}

.rule-card:hover {
    border-color: #60a5fa;
}

.rule-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.rule-title {
    font-size: 13px;
    font-weight: bold;
    color: #38bdf8;
    margin-bottom: 4px;
}

.rule-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

/* 👤 个人中心 Modal 样式 */
.profile-modal-content {
    max-width: 420px;
}

.profile-header-card {
    display: flex;
    align-items: center;
    background: #0f172a;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    margin-top: 12px;
    text-align: left;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid #38bdf8;
    margin-right: 12px;
}

.profile-name {
    font-size: 16px;
    font-weight: bold;
    color: #f8fafc;
}

.profile-id {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.profile-assets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.asset-card {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asset-title {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.asset-value {
    font-size: 18px;
    font-weight: bold;
    color: #facc15;
}

.profile-props-section {
    margin-top: 14px;
    text-align: left;
}

.props-section-title {
    font-size: 12px;
    font-weight: bold;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.props-inventory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.inventory-item {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #cbd5e1;
}

.inventory-item b {
    color: #38bdf8;
    font-size: 15px;
    margin-top: 2px;
}

/* 🎲 全屏居中 3D 大骰子与单行说明 CSS 样式 */
.dice-rolling-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.dice-overlay-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 2px solid #f59e0b;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.4), inset 0 0 15px rgba(245, 158, 11, 0.2);
    border-radius: 18px;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.dice-scene-3d {
    width: 80px;
    height: 80px;
    perspective: 600px;
    margin: 10px 0;
}

.cube-dice-giant {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.cube-face-giant {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    padding: 8px;
    box-sizing: border-box;
}

/* 实物点位 Dot 设计 */
.dot {
    width: 14px;
    height: 14px;
    background: #0f172a;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
    justify-self: center;
    align-self: center;
}

.dot-red {
    background: #dc2626;
    box-shadow: inset 0 2px 4px rgba(153, 27, 27, 0.8), 0 0 8px rgba(220, 38, 38, 0.5);
}

.face-1 .dot-center { grid-column: 2; grid-row: 2; width: 22px; height: 22px; }

.face-2 .dot-top-left { grid-column: 1; grid-row: 1; }
.face-2 .dot-bottom-right { grid-column: 3; grid-row: 3; }

.face-3 .dot-top-left { grid-column: 1; grid-row: 1; }
.face-3 .dot-center { grid-column: 2; grid-row: 2; }
.face-3 .dot-bottom-right { grid-column: 3; grid-row: 3; }

.face-4 .dot-top-left { grid-column: 1; grid-row: 1; }
.face-4 .dot-top-right { grid-column: 3; grid-row: 1; }
.face-4 .dot-bottom-left { grid-column: 1; grid-row: 3; }
.face-4 .dot-bottom-right { grid-column: 3; grid-row: 3; }

.face-5 .dot-top-left { grid-column: 1; grid-row: 1; }
.face-5 .dot-top-right { grid-column: 3; grid-row: 1; }
.face-5 .dot-center { grid-column: 2; grid-row: 2; width: 16px; height: 16px; }
.face-5 .dot-bottom-left { grid-column: 1; grid-row: 3; }
.face-5 .dot-bottom-right { grid-column: 3; grid-row: 3; }

.face-6 .dot-top-left { grid-column: 1; grid-row: 1; }
.face-6 .dot-top-right { grid-column: 3; grid-row: 1; }
.face-6 .dot-middle-left { grid-column: 1; grid-row: 2; }
.face-6 .dot-middle-right { grid-column: 3; grid-row: 2; }
.face-6 .dot-bottom-left { grid-column: 1; grid-row: 3; }
.face-6 .dot-bottom-right { grid-column: 3; grid-row: 3; }

/* 3D 6 面空间定位 (距离 40px) */
.face-1 { transform: rotateY(0deg) translateZ(40px); }
.face-2 { transform: rotateY(90deg) translateZ(40px); }
.face-3 { transform: rotateY(180deg) translateZ(40px); }
.face-4 { transform: rotateY(-90deg) translateZ(40px); }
.face-5 { transform: rotateX(90deg) translateZ(40px); }
.face-6 { transform: rotateX(-90deg) translateZ(40px); }

/* 3D 定格旋转角度 */
.cube-dice-giant.show-1 { transform: rotateX(720deg) rotateY(1440deg); }
.cube-dice-giant.show-2 { transform: rotateX(720deg) rotateY(1350deg); }
.cube-dice-giant.show-3 { transform: rotateX(720deg) rotateY(1260deg); }
.cube-dice-giant.show-4 { transform: rotateX(720deg) rotateY(1530deg); }
.cube-dice-giant.show-5 { transform: rotateX(630deg) rotateY(1440deg); }
.cube-dice-giant.show-6 { transform: rotateX(810deg) rotateY(1440deg); }

/* 单行高亮说明文字 */
.dice-single-line-tip {
    font-size: 15px;
    font-weight: bold;
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
    white-space: nowrap;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

