.tile {
    width: 48px;
    height: 64px;
    background: #fdf6e3;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: none;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.tile.selected {
    background: #dbeafe;
    /* blue-100 */
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f6;
    transform: translateY(-4px);
}

.tile-black {
    color: #1e293b;
}

.tile-red {
    color: #ef4444;
}

.tile-blue {
    color: #3b82f6;
}

.tile-orange {
    color: #f97316;
}

.tile-joker {
    font-size: 32px;
}

/* 牌桌区域 */
.board-area {
    background: #1e293b;
    /* slate-800 */
    border-radius: 12px;
    padding: 16px;
    min-height: 300px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.meld-set {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 6px;
    flex-wrap: wrap;
    margin-bottom: 0;
    /* Let flex gap handle spacing */
    width: fit-content;
    transition: all 0.2s;
}

/* 玩家手牌区域 */
.rack-area {
    background: #e2e8f0;
    /* slate-200 */
    border-radius: 12px 12px 0 0;
    padding: 16px;
    min-height: 120px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rack-section {
    border-top: 4px solid #cbd5e1;
}

.opponent-rack {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 8px;
    min-height: 60px;
}

.tile-back {
    width: 32px;
    height: 44px;
    background: #334155;
    border-radius: 4px;
    border: 1px solid #475569;
}

/* Drafting State */
.my-turn-active .board-area {
    box-shadow: inset 0 0 0 2px #f59e0b, inset 0 0 20px rgba(0, 0, 0, 0.3);
    /* Orange border */
}

.my-turn-active .rack-area {
    background: #dbeafe;
    /* lighter blue */
}