/* پاشبنەمای گشتی یارییەکە */
body {
    background-color: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #f8fafc;
}

.game-container {
    width: min(96vw, 1000px);
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.84) 100%);
    box-shadow: 0 20px 60px rgba(15,23,42,0.45);
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 2.5vw, 3rem);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

button {
    padding: 12px 18px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    background: #1d4ed8;
}

button.secondary {
    background: #475569;
}

button.secondary:hover {
    background: #334155;
}

.info-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.info-card {
    min-width: 140px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 14px 16px;
    text-align: center;
}

.info-card strong {
    display: block;
    margin-bottom: 10px;
    color: #f8fafc;
}

.info-card span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.section {
    margin-top: 24px;
    text-align: center;
}

.section h2 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.board {
    min-height: 140px;
    padding: 16px;
    background: #111827;
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    border: 1px solid #374151;
}

.players-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.player-info {
    padding: 14px;
    background: #0f172a;
    border-radius: 16px;
    border: 1px solid #334155;
}

.rack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    background: #111827;
    padding: 18px;
    border-radius: 18px;
    min-height: 160px;
    border: 1px solid #334155;
}

.tile {
    width: 60px;
    height: 80px;
    background-color: #f3e5ab;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    box-shadow: 0 8px 14px rgba(15,23,42,0.15);
    border: 1px solid #d4c58d;
}

.tile-number {
    font-size: 22px;
    font-weight: 700;
}

.tile-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
}

.red { color: #ef4444; }
.red-dot { background-color: #ef4444; }

.blue { color: #3b82f6; }
.blue-dot { background-color: #3b82f6; }

.black { color: #111827; }
.black-dot { background-color: #111827; }

.yellow { color: #f59e0b; }
.yellow-dot { background-color: #f59e0b; }

.status {
    margin-top: 24px;
    font-size: 1rem;
    padding: 14px 18px;
    background: #111827;
    border-radius: 16px;
    border: 1px solid #334155;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tile.selectable {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.tile.selectable:hover {
    transform: translateY(-3px);
    border-color: #2563eb;
}

.tile.selected {
    outline: 4px solid rgba(37, 99, 235, 0.8);
    transform: translateY(-2px);
}

.player-info.active {
    border-color: #60a5fa;
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.16);
}

.tile-back {
    background: #1f2937;
    color: #f8fafc;
    border-color: #475569;
}

@media (max-width: 520px) {
    .tile {
        width: 52px;
        height: 70px;
    }

    .tile-number {
        font-size: 20px;
    }
}
