.tierslist-app {
    width: 100%;
    max-width: 1400px;
    margin: 30px auto;
    font-family: inherit;
}

.tierslist-header {
    margin-bottom: 20px;
}

.tierslist-header h2 {
    margin: 0 0 5px;
    font-size: 32px;
}

.tierslist-demo-pool {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f7f7f7;
}

.tierslist-card {
    width: 90px;
    height: 120px;
    border-radius: 10px;
    background: #222;
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    cursor: grab;
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
}

.tierslist-card:active {
    cursor: grabbing;
}

.tierslist-board {
    display: grid;
    grid-template-columns: 60px repeat(7, minmax(120px, 1fr));
    gap: 6px;
    overflow-x: auto;
}

.tierslist-corner,
.tierslist-player-head,
.tierslist-tier-head,
.tierslist-cell {
    border-radius: 10px;
}

.tierslist-player-head {
    padding: 12px;
    text-align: center;
    font-weight: 700;
    background: #e9e9e9;
}

.tierslist-tier-head {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.tierslist-tier-s {
    background: #7c3aed;
}

.tierslist-tier-a {
    background: #2563eb;
}

.tierslist-tier-b {
    background: #16a34a;
}

.tierslist-tier-c {
    background: #ca8a04;
}

.tierslist-tier-d {
    background: #dc2626;
}

.tierslist-cell {
    min-height: 140px;
    padding: 8px;
    background: #f0f0f0;
    border: 2px dashed transparent;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-content: flex-start;
}

.tierslist-cell.is-over {
    border-color: #111;
    background: #e5e5e5;
}

@media (max-width: 768px) {
    .tierslist-board {
        grid-template-columns: 50px repeat(7, 120px);
    }

    .tierslist-card {
        width: 75px;
        height: 105px;
    }
}