/* ============================================
   TIER LIST - MOBILE STYLES (max-width: 768px)
   ============================================ */

.tierlist-page {
    padding: 80px 12px 100px;
}

.tierlist-title {
    font-size: 1.4rem;
}

.tierlist-back {
    width: 32px;
    height: 32px;
}
.tierlist-back svg { width: 16px; height: 16px; }

.tierlist-view-top > .tierlist-back {
    margin-left: 0;
    margin-right: 8px;
    margin-top: 20px;
}

.tierlist-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
}

.tierlist-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
}

.tierlist-grid-wrapper {
    padding: 4px;
}

.vote-btn {
    padding: 6px 10px;
}

/* Tier grid mobile */
.tier-label {
    width: 50px;
    font-size: 1rem;
}

.tier-items {
    gap: 4px;
    padding: 6px 8px;
    min-height: 64px;
}

/* Oku-card mobile sizing */
.tier-items .oku-card {
    width: 75px;
}
.tier-items .oku-card-image {
    width: 75px;
    height: 105px;
}
.tier-items .oku-card-title span {
    font-size: 0.5rem;
}

.tier-item {
    width: 56px;
    height: 78px;
}

.tier-item .item-name {
    font-size: 0.5rem;
}

/* Editor mobile */
.editor-top > .tierlist-back {
    margin-left: 0;
    margin-right: 8px;
    margin-top: 16px;
}
.editor-header {
    padding: 16px;
}

.editor-title-input {
    font-size: 1rem;
}

.editor-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.editor-tier-label {
    width: 50px;
    font-size: 1rem;
}

.editor-tier-items {
    gap: 4px;
    padding: 6px 8px;
    min-height: 64px;
}

.pool-items {
    max-height: 200px;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
}
/* On mobile, oku-card pool can scroll since slide-outs are hidden */
.pool-items:has(.oku-card) {
    max-height: 300px;
    overflow-y: auto;
}

.pool-item {
    width: 48px;
    height: 68px;
}

.pool-item .item-name {
    font-size: 0.5rem;
}

.editor-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    z-index: 100;
}

.btn-save, .btn-cancel {
    flex: 1;
}

/* Tier label editor */
.tier-label-editor {
    width: calc(100% - 32px);
    max-width: 320px;
}

.tier-label-editor .color-options {
    gap: 6px;
}

.color-swatch {
    width: 24px;
    height: 24px;
}
