@charset "UTF-8";

.tier-page {
    min-height: 72vh;
    padding: 46px 0 84px;
    background: #111216;
    color: #eef0f3;
}
.tier-shell { width: min(1220px, calc(100% - 32px)); }
.tier-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}
.tier-hero h1 { margin: 0; color: #f1f2f4; font-size: clamp(34px, 5vw, 50px); letter-spacing: -.045em; }
.tier-admin-badge { padding: 7px 10px; border: 1px solid #6b3b37; background: #2b1919; color: #e6aaa4; font-weight: 800; }

.tier-alert { margin: -8px 0 18px; padding: 11px 14px; border: 1px solid #343841; background: #1a1d22; color: #b9bec7; font-size: 12px; }
.tier-alert.is-success { border-color: #405b48; color: #b8d3bf; }
.tier-alert.is-error { border-color: #664143; color: #e0acad; }

.tier-class-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    padding: 12px;
    overflow-x: auto;
    border: 1px solid #2c2f36;
    background: #181a1f;
    scrollbar-width: thin;
}
.tier-class-filter a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 42px;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #343841;
    background: #202329;
    color: #c5c9d0;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.tier-class-filter a:first-child { padding-inline: 18px; }
.tier-class-filter a.is-current { border-color: #8b4a44; background: #2b1e1d; color: #fff; }
.tier-class-filter img { width: 28px; height: 28px; border: 1px solid #464a52; border-radius: 50%; object-fit: cover; }

.tier-board { display: grid; gap: 12px; }
.tier-row {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    min-height: 176px;
    border: 1px solid #2c2f35;
    background: #17191e;
}
.tier-label-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 22px 20px;
    border-right: 1px solid #30333a;
    overflow: hidden;
}
.tier-label-panel::after {
    position: absolute;
    right: -28px;
    bottom: -52px;
    color: rgba(255,255,255,.025);
    font: 900 126px/1 Arial, sans-serif;
    content: attr(data-tier);
}
.tier-label-panel > strong { font: 900 52px/.95 Arial, sans-serif; letter-spacing: -.06em; }
.tier-add-button {
    position: relative;
    z-index: 1;
    width: fit-content;
    min-height: 32px;
    margin-top: 16px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 4px;
    background: rgba(10,11,14,.36);
    color: #e4e6ea;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.tier-add-button:hover { border-color: rgba(255,255,255,.32); background: rgba(10,11,14,.58); }
.tier-row--s .tier-label-panel { background: linear-gradient(145deg, #4a1d1a, #221817); }
.tier-row--s .tier-label-panel > strong { color: #ff8c80; }
.tier-row--a .tier-label-panel { background: linear-gradient(145deg, #49311c, #201b16); }
.tier-row--a .tier-label-panel > strong { color: #e8ae65; }
.tier-row--b .tier-label-panel { background: linear-gradient(145deg, #263c2e, #171d19); }
.tier-row--b .tier-label-panel > strong { color: #80bc91; }
.tier-row--c .tier-label-panel { background: linear-gradient(145deg, #24364b, #171b21); }
.tier-row--c .tier-label-panel > strong { color: #7fa6d6; }
.tier-row--d .tier-label-panel { background: linear-gradient(145deg, #34313b, #1b1a1e); }
.tier-row--d .tier-label-panel > strong { color: #a9a5b4; }

.tier-builds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
    padding: 12px;
}
.tier-row-empty {
    grid-column: 1 / -1;
    display: grid;
    min-height: 150px;
    place-items: center;
    color: #666b74;
    font-size: 12px;
}
.tier-build-card { min-width: 0; border: 1px solid #30333a; background: #1d1f24; }
.tier-build-link { display: block; padding: 14px; color: inherit; text-decoration: none; }
.tier-build-head { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.tier-build-head > img { width: 38px; height: 38px; border: 1px solid #484c55; border-radius: 50%; object-fit: cover; }
.tier-build-head span { display: block; margin-bottom: 3px; color: #868c96; font-size: 10px; }
.tier-build-head h2 { margin: 0; overflow: hidden; color: #eef0f3; font-size: 14px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.tier-build-head b { color: #696e78; font-size: 16px; }
.tier-build-link:hover .tier-build-head b { color: #d5d8dd; }
.tier-build-skills { display: flex; gap: 5px; min-height: 32px; margin-top: 12px; }
.tier-build-skills > span { display: block; width: 30px; height: 30px; border: 1px solid #3d4149; background: #101115; }
.tier-build-skills img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tier-build-skills small { color: #6f747d; font-size: 10px; }
.tier-build-link footer { margin-top: 11px; padding-top: 9px; border-top: 1px solid #2d3036; color: #747a84; font-size: 10px; }
.tier-build-link footer strong { color: #b9bdc5; }
.tier-admin-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding: 0 14px 14px;
}
.tier-admin-form label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; }
.tier-admin-form label > span { color: #777d86; font-size: 10px; }
.tier-admin-form select,
.tier-admin-form button {
    min-height: 34px;
    border: 1px solid #3a3e46;
    background: #15171b;
    color: #d7dae0;
    font: inherit;
    font-size: 11px;
}
.tier-admin-form select { width: 100%; padding: 0 28px 0 9px; }
.tier-admin-form button { padding: 0 11px; background: #2b2423; border-color: #65423e; color: #dfaaa4; cursor: pointer; font-weight: 700; }


body.tier-modal-open { overflow: hidden; }
.tier-search-layer {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}
.tier-search-layer[hidden] { display: none; }
.tier-search-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(4,5,7,.78);
    cursor: default;
}
.tier-search-modal {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: hidden;
    border: 1px solid #3a3e46;
    border-radius: 8px;
    background: #181a1f;
    box-shadow: 0 24px 80px rgba(0,0,0,.48);
}
.tier-search-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid #30333a;
}
.tier-search-modal-head h2 { margin: 0; color: #f0f1f3; font-size: 19px; }
.tier-search-close {
    width: 34px;
    height: 34px;
    border: 1px solid #383c44;
    border-radius: 4px;
    background: #202329;
    color: #aeb3bc;
    font: 300 24px/1 Arial, sans-serif;
    cursor: pointer;
}
.tier-search-close:hover { color: #fff; border-color: #515660; }
.tier-search-controls {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid #2d3036;
    background: #15171b;
}
.tier-search-controls select,
.tier-search-controls input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #3a3e46;
    border-radius: 4px;
    outline: 0;
    background: #202329;
    color: #e5e7eb;
    font: inherit;
    font-size: 12px;
}
.tier-search-controls select { padding: 0 32px 0 11px; }
.tier-search-controls input { padding: 0 13px; }
.tier-search-controls input:focus,
.tier-search-controls select:focus { border-color: #82514b; }
.tier-search-state { padding: 46px 20px; color: #777d87; text-align: center; font-size: 12px; }
.tier-search-results {
    display: grid;
    gap: 8px;
    max-height: 520px;
    padding: 10px;
    overflow-y: auto;
}
.tier-search-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px;
    border: 1px solid #30333a;
    border-radius: 5px;
    background: #1d1f24;
}
.tier-search-result-main {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.tier-search-result-main > img { width: 42px; height: 42px; border: 1px solid #484c55; border-radius: 50%; object-fit: cover; }
.tier-search-result-main span,
.tier-search-result-main small { display: block; color: #7f858f; font-size: 10px; }
.tier-search-result-main strong { display: block; margin: 4px 0; overflow: hidden; color: #eceef1; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.tier-search-result-main:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.tier-search-result-action { display: flex; align-items: center; gap: 8px; }
.tier-search-result-action > small { color: #767c85; font-size: 10px; }
.tier-search-result-action button {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #69433f;
    border-radius: 4px;
    background: #2b201f;
    color: #e2aaa4;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.tier-search-result-action button:hover { border-color: #915a54; background: #352321; }
.tier-search-current {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #3c5544;
    border-radius: 4px;
    color: #9fc2a8;
    font-size: 10px;
    font-weight: 800;
}

.tier-empty { display: grid; min-height: 250px; place-items: center; gap: 8px; border: 1px solid #30333a; background: #181a1f; color: #858b95; text-align: center; }
.tier-empty strong { color: #dfe2e6; font-size: 17px; }
.tier-empty.is-error { color: #dda4a4; }

@media (max-width: 1040px) {
    .tier-builds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .tier-page { padding-top: 28px; }
    .tier-shell { width: min(100% - 20px, 1220px); }
    .tier-hero { align-items: flex-start; flex-direction: column; }
    .tier-row { grid-template-columns: 118px minmax(0, 1fr); }
    .tier-label-panel { padding: 18px 14px; }
    .tier-label-panel > strong { font-size: 42px; }
    .tier-builds { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .tier-row { grid-template-columns: 82px minmax(0, 1fr); }
    .tier-label-panel { align-items: center; padding-inline: 8px; text-align: center; }
    .tier-label-panel > strong { font-size: 34px; }
    .tier-builds { padding: 8px; }
    .tier-add-button { min-height: 30px; margin-top: 12px; padding: 0 8px; font-size: 10px; }
    .tier-search-layer { padding: 10px; }
    .tier-search-modal { max-height: calc(100vh - 20px); }
    .tier-search-controls { grid-template-columns: 1fr; }
    .tier-search-result { grid-template-columns: 1fr; }
    .tier-search-result-action { justify-content: flex-end; }
}

