/* ScorpionMods.ru — only styles for pages that do not exist in Scorpion Shop.
   Transferred header/search/footer/profile/background styles come from the original
   style.css and shopscorpion-ui-transfer.css without overrides. */

.scmods-home-stage {
    min-height: clamp(420px, 65vh, 760px);
}

.scmods-empty-legal {
    min-height: 260px;
}

@media (max-width: 760px) {
    .scmods-home-stage {
        min-height: 55vh;
    }
}

/* ===== Scorpion Mods catalog: game slider transferred from Scorpion Shop ===== */
.scmods-games-catalog {
    margin-top: 8px;
}
.scmods-games-section {
    width: 100%;
}
.scmods-games-section .compact-catalog-head {
    margin-bottom: 14px;
}
.scmods-game-card {
    text-decoration: none;
}
.scmods-game-card .scmods-game-cover > img {
    width: 100% !important;
    height: 100% !important;
    inset: 0 !important;
    object-fit: cover !important;
}
.scmods-game-card .scmods-game-title {
    display: -webkit-box !important;
    color: #fff !important;
    text-decoration: none !important;
    text-align: left;
}
.scmods-game-card .scmods-game-title:hover {
    color: #e7b6ff !important;
}
.scmods-games-empty {
    min-height: 150px;
}

/* ===== Public game section ===== */
.scmods-game-page {
    padding: clamp(18px, 3vw, 34px);
}
.scmods-game-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}
.scmods-game-heading > img {
    width: 112px;
    height: 144px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 16px 34px rgba(0,0,0,.28);
}
.scmods-game-heading h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.04;
}
.scmods-game-heading p {
    margin: 0;
    color: #9299ad;
    font-weight: 700;
}
.scmods-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.scmods-category-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 170px;
    padding: 18px 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16,19,29,.95), rgba(8,11,18,.97));
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
    text-align: center;
}
.scmods-category-icon {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    overflow: hidden;
}
.scmods-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.scmods-category-name {
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
}

/* ===== Catalog editor in admin ===== */
.scmods-admin-title-row,
.scmods-admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.scmods-admin-title-row p,
.scmods-admin-panel-head p {
    margin: -7px 0 0;
    color: #8f96aa;
    font-size: 13px;
}
.scmods-admin-back {
    display: inline-block;
    margin-bottom: 10px;
    color: #bda5d0;
    text-decoration: none;
    font-weight: 800;
}
.scmods-admin-panel {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 17px;
    background: rgba(255,255,255,.025);
}
.scmods-admin-panel > h2,
.scmods-admin-panel-head h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 20px;
}
.scmods-admin-form {
    display: grid;
    gap: 14px;
}
.scmods-admin-form label,
.scmods-admin-category-edit label {
    display: grid;
    gap: 7px;
    color: #d8dced;
    font-size: 13px;
    font-weight: 800;
}
.scmods-admin-form input[type="text"],
.scmods-admin-form input[type="file"],
.scmods-admin-category-edit input[type="text"],
.scmods-admin-category-edit input[type="file"] {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    background: rgba(0,0,0,.23);
    color: #fff;
}
.scmods-admin-form input[type="file"],
.scmods-admin-category-edit input[type="file"] {
    padding: 8px;
}
.scmods-admin-create-game,
.scmods-admin-category-add {
    max-width: 620px;
}
.scmods-admin-games-list,
.scmods-admin-categories-list {
    display: grid;
    gap: 12px;
}
.scmods-admin-game-row,
.scmods-admin-category-row {
    display: grid;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    background: rgba(0,0,0,.18);
}
.scmods-admin-game-row {
    grid-template-columns: 64px minmax(0,1fr) auto;
}
.scmods-admin-game-row > img {
    width: 64px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
}
.scmods-admin-game-meta {
    min-width: 0;
    display: grid;
    gap: 5px;
}
.scmods-admin-game-meta strong {
    color: #fff;
    font-size: 16px;
}
.scmods-admin-game-meta span {
    overflow: hidden;
    color: #81899f;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.scmods-admin-row-actions,
.scmods-admin-category-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}
.scmods-admin-row-actions form,
.scmods-admin-category-actions form {
    margin: 0;
}
.scmods-admin-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}
.scmods-order-btn {
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    font-size: 20px !important;
}
.scmods-order-btn:disabled {
    opacity: .28;
    cursor: default;
}
.danger-btn {
    border-color: rgba(255,86,107,.26) !important;
    color: #ff929f !important;
}
.scmods-admin-game-editor {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.scmods-admin-game-preview {
    width: 180px;
    height: 230px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.10);
}
.scmods-admin-category-row {
    grid-template-columns: 34px 66px minmax(0,1fr) auto;
    transition: border-color .16s ease, opacity .16s ease, transform .16s ease;
}
.scmods-admin-category-row.is-dragging {
    opacity: .48;
    border-color: rgba(217,47,255,.58);
}
.scmods-admin-category-row > img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,.045);
}
.scmods-drag-handle {
    width: 32px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7f879c;
    font-size: 24px;
    cursor: grab;
}
.scmods-drag-handle:active { cursor: grabbing; }
.scmods-admin-category-edit {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(170px, .8fr) auto;
    gap: 10px;
    align-items: end;
}
.scmods-admin-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 14px;
}
.scmods-admin-summary-card {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.03);
    color: #fff;
    text-decoration: none;
}
.scmods-admin-summary-card strong { font-size: 32px; }
.scmods-admin-summary-card span { color: #959caf; font-weight: 800; }

@media (max-width: 1000px) {
    .scmods-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .scmods-admin-game-row { grid-template-columns: 58px minmax(0,1fr); }
    .scmods-admin-game-row > img { width: 58px; height: 74px; }
    .scmods-admin-row-actions { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
    .scmods-admin-category-row { grid-template-columns: 30px 58px minmax(0,1fr); }
    .scmods-admin-category-row > img { width: 58px; height: 58px; }
    .scmods-admin-category-edit { grid-template-columns: 1fr; }
    .scmods-admin-category-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 640px) {
    .scmods-game-heading { align-items: flex-start; gap: 15px; }
    .scmods-game-heading > img { width: 82px; height: 108px; border-radius: 12px; }
    .scmods-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
    .scmods-category-card { min-height: 138px; padding: 14px 9px; border-radius: 15px; }
    .scmods-category-icon { width: 66px; height: 66px; border-radius: 14px; }
    .scmods-category-name { font-size: 13px; }
    .scmods-admin-title-row { flex-direction: column; }
    .scmods-admin-panel { padding: 14px; }
    .scmods-admin-game-editor { grid-template-columns: 1fr; }
    .scmods-admin-game-preview { width: 126px; height: 164px; }
    .scmods-admin-game-row { grid-template-columns: 48px minmax(0,1fr); padding: 10px; }
    .scmods-admin-game-row > img { width: 48px; height: 62px; }
    .scmods-admin-row-actions { justify-content: flex-start; }
    .scmods-admin-category-row { grid-template-columns: 28px 52px minmax(0,1fr); padding: 9px; gap: 9px; }
    .scmods-admin-category-row > img { width: 52px; height: 52px; }
    .scmods-admin-category-edit { grid-column: 3; }
    .scmods-admin-category-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
    .scmods-admin-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ===== Scorpion Mods V7: catalog refinements ===== */
.scmods-game-card::before,
.scmods-mod-card::before {
    display: none !important;
    content: none !important;
}

.scmods-category-card {
    color: inherit;
    text-decoration: none;
}
.scmods-category-card:hover { border-color: rgba(217,47,255,.42); }
.scmods-category-icon,
.scmods-category-page-icon,
.scmods-admin-category-row > img {
    background: transparent !important;
}
.scmods-game-description {
    max-width: 820px;
    line-height: 1.6;
    white-space: normal;
}

/* ===== Mods category page ===== */
.scmods-svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.scmods-category-page-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 26px;
}
.scmods-category-page-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
}
.scmods-category-page-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.scmods-category-page-heading h1 {
    margin: 0 0 4px;
    color: #fff;
    font-size: clamp(26px, 4vw, 42px);
}
.scmods-category-page-heading p {
    margin: 0;
    color: #949bae;
    font-weight: 800;
}
.scmods-mod-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.scmods-mod-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(17,20,31,.96), rgba(9,12,20,.96));
    box-shadow: 0 16px 34px rgba(0,0,0,.24);
    transition: transform .18s ease, border-color .18s ease;
}
@media (hover:hover) and (pointer:fine) {
    .scmods-mod-card:hover {
        transform: translateY(-3px);
        border-color: rgba(217,47,255,.4);
    }
}
.scmods-mod-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #090b12;
}
.scmods-mod-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.scmods-mod-body { padding: 15px 16px 14px; }
.scmods-mod-body h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
}
.scmods-mod-description {
    min-height: 40px;
    margin: 0 0 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #a1a8ba;
    font-size: 13px;
    line-height: 1.5;
}
.scmods-mod-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
    color: #8f96a9;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}
.scmods-mod-meta > span,
.scmods-mod-meta > time {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.scmods-mod-meta svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.scmods-mod-meta .scmods-mod-author {
    min-width: 0;
    max-width: 34%;
    color: #cbd0de;
}
.scmods-mod-author b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
}
.scmods-mod-meta time {
    margin-left: auto;
    color: #777f94;
}

/* ===== Admin: descriptions, authors and mod editor ===== */
.scmods-admin-form textarea,
.scmods-admin-form select,
.scmods-admin-form input[type="datetime-local"],
.scmods-admin-category-edit textarea,
.scmods-admin-category-edit select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    background: rgba(0,0,0,.23);
    color: #fff;
    font: inherit;
}
.scmods-admin-form textarea { resize: vertical; min-height: 92px; }
.scmods-admin-form select,
.scmods-admin-form input[type="datetime-local"] { min-height: 44px; }
.scmods-admin-author-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}
.scmods-admin-mod-form { max-width: 760px; }
.scmods-admin-mods-list { display: grid; gap: 14px; }
.scmods-admin-mod-row {
    display: grid;
    grid-template-columns: 190px minmax(0,1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(0,0,0,.18);
}
.scmods-admin-mod-row > img {
    width: 190px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 11px;
}
.scmods-admin-mod-edit { min-width: 0; }
.scmods-admin-mod-delete { margin: 0; }
.scmods-admin-mod-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #8f96aa;
    font-size: 12px;
}
.scmods-admin-mod-stats b { color: #dfe3ef; }
.scmods-crop-status {
    margin-top: -5px;
    color: #80d9a4;
    font-size: 12px;
    font-weight: 800;
}

/* ===== Image cropper ===== */
.scmods-crop-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2,3,8,.82);
    backdrop-filter: blur(8px);
}
.scmods-crop-overlay[hidden] { display: none !important; }
.scmods-crop-dialog {
    width: min(520px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(217,47,255,.32);
    border-radius: 20px;
    background: #0d101a;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.scmods-crop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.scmods-crop-head h2 { margin: 0; color: #fff; font-size: 20px; }
.scmods-crop-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    background: rgba(255,255,255,.04);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.scmods-crop-stage-wrap {
    display: grid;
    place-items: center;
    min-height: 240px;
    padding: 8px;
    border-radius: 15px;
    background: #05070c;
}
.scmods-crop-stage {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: var(--crop-aspect, 3 / 4);
    overflow: hidden;
    border: 2px solid #d92fff;
    border-radius: 12px;
    background: #05070c;
    touch-action: none;
    cursor: grab;
}
.scmods-crop-stage.is-dragging { cursor: grabbing; }
.scmods-crop-stage img {
    position: absolute;
    max-width: none !important;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.scmods-crop-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.scmods-crop-controls { display: grid; gap: 12px; margin-top: 15px; }
.scmods-crop-controls label { display: grid; gap: 6px; color: #cdd2df; font-size: 13px; font-weight: 800; }
.scmods-crop-controls input[type="range"] { width: 100%; accent-color: #d92fff; }
.scmods-crop-actions { display: flex; justify-content: flex-end; gap: 9px; }
.scmods-crop-hint { margin: 0; color: #8991a5; font-size: 12px; line-height: 1.45; }

@media (max-width: 1100px) {
    .scmods-mod-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .scmods-admin-mod-row { grid-template-columns: 150px minmax(0,1fr); }
    .scmods-admin-mod-row > img { width: 150px; }
    .scmods-admin-mod-delete { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 640px) {
    .scmods-mod-grid { grid-template-columns: 1fr; gap: 13px; }
    .scmods-mod-meta { gap: 8px; font-size: 10.5px; }
    .scmods-mod-meta .scmods-mod-author { max-width: 30%; }
    .scmods-category-page-icon { width: 58px; height: 58px; flex-basis: 58px; }
    .scmods-admin-author-grid { grid-template-columns: 1fr; }
    .scmods-admin-mod-row { grid-template-columns: 1fr; }
    .scmods-admin-mod-row > img { width: 100%; max-width: 360px; }
    .scmods-admin-mod-delete { grid-column: auto; justify-self: start; }
    .scmods-crop-overlay { padding: 8px; }
    .scmods-crop-dialog { padding: 13px; border-radius: 16px; }
}

/* ===== Scorpion Mods V8: category counts and public sorting ===== */
.scmods-category-count,
.scmods-category-heading-count {
    color: #8f96a9;
    font-weight: 800;
}
.scmods-category-heading-count {
    font-size: .72em;
    vertical-align: .06em;
}
.scmods-mod-sort {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: -6px 0 20px;
}
.scmods-mod-sort-label {
    color: #8f96a9;
    font-size: 13px;
    font-weight: 800;
    margin-right: 2px;
}
.scmods-mod-sort a,
.scmods-mod-sort > span:not(.scmods-mod-sort-label) {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(11,14,23,.72);
    color: #aab0c0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.scmods-mod-sort a:hover {
    color: #fff;
    border-color: rgba(217,47,255,.42);
}
.scmods-mod-sort a.is-active {
    color: #fff;
    border-color: rgba(217,47,255,.55);
    background: rgba(125,43,255,.18);
}
.scmods-mod-sort-empty > span:not(.scmods-mod-sort-label) {
    opacity: .55;
}

@media (max-width: 560px) {
    .scmods-mod-sort {
        gap: 7px;
        margin-bottom: 16px;
    }
    .scmods-mod-sort-label {
        flex: 0 0 100%;
        font-size: 12px;
    }
    .scmods-mod-sort a,
    .scmods-mod-sort > span:not(.scmods-mod-sort-label) {
        min-height: 32px;
        padding: 7px 9px;
        font-size: 11px;
    }
}

/* ===== Scorpion Mods V9: centered catalog layout + one large mod card per row ===== */
.scmods-games-section .catalog-head.compact-catalog-head {
    justify-content: center;
    text-align: center;
}
.scmods-games-section .catalog-head.compact-catalog-head h2 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.scmods-game-heading {
    justify-content: center;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}
.scmods-game-heading > img {
    width: 160px;
    height: 205px;
    flex: 0 0 160px;
}

.scmods-category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.scmods-category-grid .scmods-category-card {
    flex: 0 1 180px;
    width: 180px;
    max-width: 180px;
}

.scmods-category-page-heading {
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.scmods-mod-sort {
    justify-content: center;
    width: 100%;
}

.scmods-mod-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
    gap: 22px;
}
.scmods-mod-card {
    width: 100%;
    max-width: none;
    border-radius: 22px;
}
.scmods-mod-body {
    padding: 20px 22px 18px;
}
.scmods-mod-body h2 {
    font-size: 24px;
    margin-bottom: 10px;
}
.scmods-mod-description {
    min-height: 0;
    margin-bottom: 17px;
    font-size: 14.5px;
}
.scmods-mod-meta {
    gap: 14px;
    font-size: 12.5px;
}

@media (max-width: 640px) {
    .scmods-game-heading {
        justify-content: center;
        align-items: center;
        gap: 16px;
    }
    .scmods-game-heading > img {
        width: 108px;
        height: 140px;
        flex-basis: 108px;
    }
    .scmods-category-grid {
        gap: 11px;
    }
    .scmods-category-grid .scmods-category-card {
        flex: 0 1 calc(50% - 6px);
        width: calc(50% - 6px);
        max-width: 180px;
    }
    .scmods-category-page-heading {
        justify-content: center;
    }
    .scmods-mod-sort {
        justify-content: center;
    }
    .scmods-mod-sort-label {
        text-align: center;
    }
    .scmods-mod-body {
        padding: 16px 16px 15px;
    }
    .scmods-mod-body h2 {
        font-size: 20px;
    }
    .scmods-mod-description {
        font-size: 13.5px;
    }
    .scmods-mod-meta {
        gap: 9px;
        font-size: 11px;
    }
}


/* ===== Scorpion Mods V10: compact single mod card + category heading/sort layout ===== */
.scmods-category-page-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}
.scmods-category-page-heading h1 {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.scmods-category-page-heading > .scmods-category-page-icon {
    margin: 0;
}
.scmods-category-page-heading p {
    display: none !important;
}

.scmods-mod-sort-title {
    width: 100%;
    margin: -6px auto 9px;
    color: #8f96a9;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}
.scmods-mod-sort {
    margin-top: 0;
}

.scmods-mod-grid {
    max-width: 780px;
    gap: 18px;
}
.scmods-mod-card {
    width: 100%;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
}
.scmods-mod-body {
    padding: 17px 18px 15px;
}
.scmods-mod-body h2 {
    font-size: 21px;
    margin-bottom: 8px;
}
.scmods-mod-description {
    margin-bottom: 14px;
    font-size: 13.5px;
}
.scmods-mod-meta {
    gap: 11px;
    font-size: 11.5px;
}

@media (max-width: 840px) {
    .scmods-mod-grid,
    .scmods-mod-card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .scmods-category-page-heading {
        gap: 11px;
    }
    .scmods-category-page-heading h1 {
        font-size: clamp(24px, 8vw, 34px);
        gap: 6px;
    }
    .scmods-mod-sort-title {
        margin-bottom: 7px;
        font-size: 12px;
    }
    .scmods-mod-body {
        padding: 15px 15px 14px;
    }
    .scmods-mod-body h2 {
        font-size: 19px;
    }
}

/* ===== Scorpion Mods V11: mobile game layout + mod pages/editor ===== */
.scmods-mod-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
.scmods-mod-card:hover h2 { color: #f0c3ff; }

.scmods-admin-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.scmods-admin-mod-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}
.scmods-admin-mod-table th,
.scmods-admin-mod-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
    vertical-align: middle;
}
.scmods-admin-mod-table th { border-bottom-color: rgba(255,255,255,.12); }
.scmods-admin-mod-table th:last-child,
.scmods-admin-mod-table td:last-child { text-align: right; }
.scmods-admin-mod-cell img {
    width: 92px;
    height: 54px;
    border-radius: 9px;
    object-fit: cover;
}
.scmods-admin-mod-cell small {
    max-width: 390px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.scmods-admin-table-stats {
    white-space: nowrap;
    color: #9aa1b4;
    font-weight: 800;
    font-size: 12px;
}
.scmods-admin-mod-editor .scmods-admin-wide-field { grid-column: 1 / -1; }
.scmods-admin-main-image-row {
    display: grid;
    grid-template-columns: minmax(180px, 320px) minmax(260px, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}
.scmods-admin-main-image-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 15px;
}
.scmods-admin-gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.scmods-admin-gallery-item {
    display: grid !important;
    gap: 8px !important;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(0,0,0,.18);
}
.scmods-admin-gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 9px;
}
.scmods-admin-gallery-item span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #b7bdcd;
    font-size: 12px;
    font-weight: 800;
}
.scmods-admin-gallery-item input[type="checkbox"] {
    width: 17px !important;
    min-height: 17px !important;
    height: 17px;
}
.scmods-admin-gallery-upload { max-width: 560px; }
.scmods-admin-mod-editor .admin-savebar {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: rgba(9,11,19,.92);
    backdrop-filter: blur(16px);
}
.scmods-admin-mod-editor .admin-description-media-preview img {
    max-height: 260px;
    object-fit: contain;
}

/* Public mod detail */
.scmods-mod-detail-page {
    max-width: 1180px;
    margin-inline: auto;
}
.scmods-mod-detail-head {
    max-width: 930px;
    margin: 26px auto 24px;
    text-align: center;
}
.scmods-mod-detail-head h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -.025em;
}
.scmods-mod-detail-head p {
    max-width: 860px;
    margin: 15px auto 0;
    color: #9ca3b6;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 700;
}
.scmods-mod-gallery {
    width: min(960px, 100%);
    margin: 0 auto 34px;
}
.scmods-mod-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 22px;
    background: #05070d;
    box-shadow: 0 22px 54px rgba(0,0,0,.32);
}
.scmods-mod-gallery-main > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.scmods-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    background: rgba(6,8,14,.78);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.scmods-gallery-arrow:hover { border-color: rgba(217,47,255,.65); }
.scmods-gallery-arrow.is-prev { left: 16px; }
.scmods-gallery-arrow.is-next { right: 16px; }
.scmods-mod-gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 3px 3px;
    scrollbar-width: thin;
}
.scmods-mod-gallery-thumb {
    flex: 0 0 112px;
    width: 112px;
    aspect-ratio: 16 / 9;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    cursor: pointer;
}
.scmods-mod-gallery-thumb.is-active {
    border-color: #d92fff;
    box-shadow: 0 0 0 2px rgba(217,47,255,.17);
}
.scmods-mod-gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 7px;
}
.scmods-mod-content {
    width: min(900px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 30px;
}
.scmods-mod-content-block {
    padding-top: 4px;
}
.scmods-mod-content-block + .scmods-mod-content-block {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.scmods-mod-content-block h2 {
    margin: 0 0 13px;
    color: var(--block-heading-color, #d92fff);
    font-size: clamp(25px, 3.5vw, 38px);
    line-height: 1.1;
}
.scmods-mod-content-text {
    color: #d2d7e5;
    font-size: 16px;
    line-height: 1.7;
}
.scmods-mod-content-media {
    margin-top: 18px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.09);
    background: #05070d;
}
.scmods-mod-content-media img {
    width: 100%;
    height: auto;
    max-height: 780px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 720px) {
    /* The desktop row made the description a narrow column on phones. */
    .scmods-game-page { padding: 18px 15px 24px; }
    .scmods-game-heading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        max-width: 100%;
        margin: 18px auto 24px;
        text-align: center;
    }
    .scmods-game-heading > img {
        width: 148px;
        height: 194px;
        flex: 0 0 auto;
        border-radius: 17px;
    }
    .scmods-game-heading > div {
        width: 100%;
        min-width: 0;
    }
    .scmods-game-heading h1 {
        max-width: 100%;
        margin: 0 0 12px;
        font-size: clamp(29px, 9vw, 38px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }
    .scmods-game-heading p,
    .scmods-game-description {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        color: #9ca3b6;
        font-size: 14px;
        line-height: 1.62;
        font-weight: 650;
        text-align: center;
        overflow-wrap: normal;
        word-break: normal;
    }
    .game-breadcrumbs {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .game-breadcrumbs::-webkit-scrollbar { display: none; }

    .scmods-admin-head-actions { width: 100%; }
    .scmods-admin-head-actions > a { flex: 1 1 auto; justify-content: center; }
    .scmods-admin-main-image-row { grid-template-columns: 1fr; }
    .scmods-admin-main-image-preview { max-width: 440px; }
    .scmods-admin-mod-editor .scmods-admin-wide-field { grid-column: auto; }

    .scmods-mod-detail-head {
        margin-top: 20px;
        text-align: left;
    }
    .scmods-mod-detail-head h1 {
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.07;
    }
    .scmods-mod-detail-head p {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.58;
    }
    .scmods-mod-gallery { margin-bottom: 27px; }
    .scmods-mod-gallery-main { border-radius: 15px; }
    .scmods-gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 29px;
    }
    .scmods-gallery-arrow.is-prev { left: 8px; }
    .scmods-gallery-arrow.is-next { right: 8px; }
    .scmods-mod-gallery-thumbs {
        justify-content: flex-start;
        gap: 8px;
    }
    .scmods-mod-gallery-thumb { flex-basis: 86px; width: 86px; }
    .scmods-mod-content { gap: 24px; }
    .scmods-mod-content-block + .scmods-mod-content-block { padding-top: 24px; }
    .scmods-mod-content-block h2 { font-size: 26px; }
    .scmods-mod-content-text { font-size: 14px; line-height: 1.65; }
    .scmods-mod-content-media { margin-top: 14px; border-radius: 14px; }
}


/* V12: mod gallery/lightbox/download */
.scmods-mod-gallery-main > img {
    object-fit: cover;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}
.scmods-mod-gallery-main > img:focus,
.scmods-mod-gallery-main > img:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(217,47,255,.82);
}
.scmods-mod-gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    box-shadow: none;
}
.scmods-mod-gallery-thumb.is-active {
    border-color: #d92fff;
    box-shadow: 0 0 0 1px rgba(217,47,255,.18);
}
.scmods-mod-gallery-thumb img {
    border-radius: 8px;
    object-fit: cover;
}
.scmods-image-viewer[hidden] { display: none !important; }
.scmods-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background: rgba(2,3,8,.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .18s ease;
}
.scmods-image-viewer.is-open { opacity: 1; }
.scmods-image-viewer-image {
    display: block;
    max-width: min(94vw, 1500px);
    max-height: 90dvh;
    object-fit: contain;
    border-radius: 14px;
    user-select: none;
    -webkit-user-drag: none;
}
.scmods-image-viewer-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    z-index: 1;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(24,27,40,.94);
    font-size: 31px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.scmods-image-viewer-close:focus,
.scmods-image-viewer-close:focus-visible { outline: none; box-shadow: none; }
html.scmods-image-viewer-open { overflow: hidden; }
.scmods-mod-download-row {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}
.scmods-mod-download-btn,
.scmods-download-ready-btn {
    min-width: 190px;
    min-height: 50px;
    padding: 12px 28px;
    border: 1px solid rgba(217,47,255,.72);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg,#d92fff,#7d2bff);
    box-shadow: 0 14px 34px rgba(125,43,255,.22);
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s ease, filter .18s ease;
}
.scmods-mod-download-btn:hover,
.scmods-download-ready-btn:hover { filter: brightness(.9); transform: translateY(-1px); }
.scmods-download-page {
    width: min(760px, calc(100% - 30px));
    min-height: 380px;
    margin: 42px auto;
    padding: 34px;
    border: 1px solid rgba(217,47,255,.28);
    border-radius: 24px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 22px;
    text-align: center;
    background: rgba(7,9,20,.88);
    box-shadow: 0 24px 64px rgba(0,0,0,.38);
}
.scmods-download-page h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px,5vw,46px);
    line-height: 1.1;
}
.scmods-download-wait {
    margin: 0;
    color: #aeb5c7;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 750;
}
.scmods-download-ready-btn[hidden] { display: none !important; }
@media (max-width:720px) {
    .scmods-mod-detail-head h1 { text-align: center; }
    .scmods-mod-gallery-main > img { object-fit: cover; }
    .scmods-mod-gallery-thumb { padding: 0; }
    .scmods-download-page { margin: 24px auto; padding: 26px 18px; min-height: 320px; }
}

/* V13: swipe gallery, symmetric fullscreen viewer and download thanks state */
.scmods-mod-gallery-main {
    touch-action: pan-y;
}
.scmods-mod-gallery-main > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.scmods-mod-gallery-thumbs {
    padding: 12px 3px 10px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color .15s ease;
}
.scmods-mod-gallery-thumbs.is-scrolling {
    scrollbar-color: rgba(151,158,183,.62) transparent;
}
.scmods-mod-gallery-thumbs::-webkit-scrollbar {
    height: 5px;
}
.scmods-mod-gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.scmods-mod-gallery-thumbs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: transparent;
}
.scmods-mod-gallery-thumbs.is-scrolling::-webkit-scrollbar-thumb {
    background: rgba(151,158,183,.58);
}
.scmods-mod-gallery-thumb,
.scmods-mod-gallery-thumb img {
    width: 100%;
    height: 100%;
}
.scmods-mod-gallery-thumb {
    flex: 0 0 112px;
    width: 112px;
    aspect-ratio: 16 / 9;
    padding: 0 !important;
    border: 2px solid transparent;
    background: transparent !important;
}
.scmods-mod-gallery-thumb img {
    border-radius: 8px;
    object-fit: cover;
}
.scmods-image-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 56px 18px 72px !important;
    touch-action: none;
}
.scmods-image-viewer-stage {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.scmods-image-viewer-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    border-radius: 14px;
    user-select: none;
    -webkit-user-drag: none;
}
.scmods-image-viewer-counter {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 2;
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .02em;
}
.scmods-image-viewer-arrow {
    position: fixed;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 64px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(12,14,24,.76);
    font-size: 46px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.scmods-image-viewer-arrow.is-prev { left: 16px; }
.scmods-image-viewer-arrow.is-next { right: 16px; }
.scmods-image-viewer-arrow[hidden] { display: none !important; }
.scmods-image-viewer-open,
html.scmods-image-viewer-open,
body.scmods-image-viewer-open { overflow: hidden !important; }

.scmods-mod-download-btn,
.scmods-download-ready-btn {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: 0 14px 34px rgba(125,43,255,.22);
    gap: 10px;
}
.scmods-mod-download-btn:focus,
.scmods-mod-download-btn:focus-visible,
.scmods-download-ready-btn:focus,
.scmods-download-ready-btn:focus-visible {
    outline: 0 !important;
    border: 0 !important;
}
.scmods-mod-download-btn img,
.scmods-download-ready-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: invert(1);
    flex: 0 0 24px;
}
.scmods-download-ready-state {
    display: grid;
    justify-items: center;
    gap: 22px;
}
.scmods-download-ready-state[hidden],
.scmods-download-thanks[hidden] { display: none !important; }
.scmods-download-thanks {
    width: min(520px,100%);
    display: grid;
    justify-items: center;
    gap: 14px;
}
.scmods-download-thanks-icon {
    width: min(220px,52vw);
    height: auto;
    display: block;
}
.scmods-download-thanks-title {
    margin: 0;
    color: #fff;
    font-size: clamp(20px,4vw,28px);
    line-height: 1.35;
    font-weight: 900;
}
.scmods-download-retry {
    margin: 0;
    color: #aeb5c7;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}
.scmods-download-retry a {
    color: #d92fff;
    text-decoration: none;
    font-weight: 900;
}
.scmods-download-retry a:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .scmods-mod-gallery-thumb {
        flex-basis: 86px;
        width: 86px;
    }
    .scmods-image-viewer {
        padding: 58px 10px 76px !important;
    }
    .scmods-image-viewer-image {
        border-radius: 10px;
    }
    .scmods-image-viewer-counter {
        top: 15px;
        left: 12px;
    }
    .scmods-image-viewer-close {
        top: 10px;
        right: 10px;
    }
    .scmods-image-viewer-arrow {
        top: auto;
        bottom: 12px;
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 40px;
        transform: none;
    }
    .scmods-image-viewer-arrow.is-prev { left: 12px; }
    .scmods-image-viewer-arrow.is-next { right: 12px; }
    .scmods-download-thanks-icon { width: min(190px,58vw); }
}

/* V14: stable gallery controls, mod likes and live search page */
.scmods-gallery-arrow,
.scmods-image-viewer-arrow {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.scmods-gallery-arrow:focus,
.scmods-gallery-arrow:focus-visible,
.scmods-image-viewer-arrow:focus,
.scmods-image-viewer-arrow:focus-visible {
    outline: none;
    box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
    .scmods-gallery-arrow:hover { border-color: rgba(217,47,255,.65); }
    .scmods-image-viewer-arrow:hover { border-color: rgba(217,47,255,.65); }
}
@media (hover: none), (pointer: coarse) {
    .scmods-gallery-arrow:hover,
    .scmods-gallery-arrow:active,
    .scmods-gallery-arrow:focus,
    .scmods-image-viewer-arrow:hover,
    .scmods-image-viewer-arrow:active,
    .scmods-image-viewer-arrow:focus {
        border-color: rgba(255,255,255,.15) !important;
        box-shadow: none !important;
        filter: none !important;
    }
}

.scmods-mod-title-row {
    --like-slot: 72px;
    display: grid;
    grid-template-columns: var(--like-slot) minmax(0, 1fr) var(--like-slot);
    align-items: center;
    gap: 10px;
    width: 100%;
}
.scmods-mod-title-row h1 {
    margin: 0;
    min-width: 0;
    text-align: center;
}
.scmods-mod-like-spacer {
    width: var(--like-slot);
    height: 1px;
}
.scmods-mod-like {
    width: var(--like-slot);
    min-width: var(--like-slot);
    height: 46px;
    padding: 5px 10px 5px 7px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255,255,255,.94);
    color: #11131d;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, border-color .15s ease, opacity .15s ease;
}
.scmods-mod-like:hover { transform: translateY(-1px); border-color: rgba(217,47,255,.72); }
.scmods-mod-like:focus,
.scmods-mod-like:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(217,47,255,.22); }
.scmods-mod-like:disabled { cursor: wait; opacity: .7; }
.scmods-mod-like img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 28px;
}
.scmods-mod-like-filled { display: none; }
.scmods-mod-like.is-liked .scmods-mod-like-outline { display: none; }
.scmods-mod-like.is-liked .scmods-mod-like-filled { display: block; }
.scmods-mod-like span {
    min-width: 1ch;
    text-align: center;
    font-size: 14px;
}

.scmods-search-page {
    width: min(1080px, 100%);
    margin-inline: auto;
}
.scmods-search-heading {
    margin: 22px auto 28px;
    text-align: center;
}
.scmods-search-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px,4vw,46px);
    line-height: 1.08;
}
.scmods-search-heading p {
    margin: 10px 0 0;
    color: #aeb5c7;
    font-weight: 750;
}
.scmods-search-location {
    margin-top: 8px;
    color: #979fb4;
    font-size: 13px;
    font-weight: 750;
}
.scmods-search-mod-grid {
    width: min(780px,100%);
    margin-inline: auto;
}

@media (max-width: 720px) {
    .scmods-mod-title-row {
        --like-slot: 64px;
        gap: 7px;
    }
    .scmods-mod-title-row h1 { text-align: center; }
    .scmods-mod-like {
        width: var(--like-slot);
        min-width: var(--like-slot);
        height: 42px;
        padding: 5px 8px 5px 6px;
        border-radius: 14px;
    }
    .scmods-mod-like img {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }
    .scmods-mod-like span { font-size: 13px; }
}


/* V15: compact mobile mod header, robust gallery drag, WebM, views and cleaner content */
.scmods-image-viewer-counter { display: none !important; }
.scmods-mod-gallery-thumbs {
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}
.scmods-mod-gallery-thumbs.is-dragging {
    cursor: grabbing;
    user-select: none;
}
.scmods-mod-content-block + .scmods-mod-content-block {
    border-top: 0 !important;
    padding-top: 10px;
}
.scmods-mod-content-media video,
.admin-description-media-preview video {
    width: 100%;
    height: auto;
    max-height: 780px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    border-radius: inherit;
    background: #05070d;
}
.scmods-mod-download-row { margin-top: 10px; }
.scmods-mod-detail-head > h1 {
    margin: 0;
    text-align: center;
}
.scmods-mod-head-meta {
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
}
.scmods-mod-detail-author {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbd1e0;
    font-size: 14px;
    line-height: 1.2;
}
.scmods-mod-detail-author svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 20px;
}
.scmods-mod-detail-author b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.scmods-mod-like {
    width: auto;
    min-width: 0;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    gap: 7px;
    background: transparent;
    color: #cbd1e0;
    box-shadow: none;
}
.scmods-mod-like:hover { transform: none; border-color: transparent; }
.scmods-mod-like:focus,
.scmods-mod-like:focus-visible { box-shadow: none; }
.scmods-mod-like-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.scmods-mod-like img {
    width: 24px;
    height: 24px;
    flex: none;
}
.scmods-mod-like span[data-mod-like-count] {
    min-width: 1ch;
    color: #d7dbea;
    font-size: 14px;
}
.scmods-mod-meta svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
    .scmods-mod-detail-head > h1 {
        width: 100%;
        font-size: clamp(28px, 7.3vw, 36px);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }
    .scmods-mod-head-meta {
        width: 100%;
        margin-top: 11px;
        gap: 10px 14px;
    }
    .scmods-mod-detail-author { max-width: calc(100% - 80px); }
    .scmods-mod-like {
        width: auto;
        min-width: 0;
        height: 36px;
        padding: 0;
    }
    .scmods-mod-like-icon { width: 36px; height: 36px; }
    .scmods-mod-like img { width: 23px; height: 23px; }
    .scmods-mod-like span[data-mod-like-count] { font-size: 13px; }
    .scmods-mod-download-row { margin-top: 8px; }
}

/* V15 follow-up: tighter block spacing and mobile card statistics */
.scmods-mod-content { gap: 18px; }
.scmods-mod-content-block + .scmods-mod-content-block { padding-top: 0; }
.scmods-mod-download-row { margin-top: 6px; }
@media (max-width: 640px) {
    .scmods-mod-meta {
        flex-wrap: wrap;
        overflow: visible;
        row-gap: 8px;
    }
    .scmods-mod-meta .scmods-mod-author {
        max-width: 100%;
    }
    .scmods-mod-meta time {
        margin-left: 0;
    }
}


/* V16: desktop image scale, gallery download placement and compact mobile card meta */
.scmods-gallery-downloads {
    width: min(820px, 100%);
    margin: -18px auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (min-width: 900px) {
    .scmods-mod-gallery {
        width: min(820px, 100%);
    }
    .scmods-mod-content-media {
        width: min(820px, 100%);
        margin-left: auto;
        margin-right: auto;
    }
    .scmods-image-viewer {
        padding: 24px !important;
    }
    .scmods-image-viewer-stage {
        width: calc(100vw - 48px);
        height: calc(100dvh - 48px);
    }
    .scmods-image-viewer-image {
        width: auto;
        height: auto;
        max-width: calc(100vw - 72px);
        max-height: calc(100dvh - 72px);
        object-fit: contain;
    }
}

@media (max-width: 640px) {
    .scmods-gallery-downloads {
        width: 100%;
        margin: -14px auto 20px;
    }
    .scmods-mod-meta {
        display: flex;
        align-items: center;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        overflow: visible;
        white-space: nowrap;
        font-size: 9.8px !important;
    }
    .scmods-mod-meta > span,
    .scmods-mod-meta > time {
        gap: 3px;
        flex: 0 0 auto;
    }
    .scmods-mod-meta svg {
        width: 12px;
        height: 12px;
    }
    .scmods-mod-meta .scmods-mod-author {
        min-width: 0;
        max-width: 27% !important;
        flex: 1 1 auto;
    }
    .scmods-mod-meta .scmods-mod-author b {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .scmods-mod-meta time {
        margin-left: auto !important;
        color: #8f96a9;
        font-size: 9.6px;
    }
}

@media (max-width: 380px) {
    .scmods-mod-meta {
        gap: 5px !important;
        font-size: 9px !important;
    }
    .scmods-mod-meta .scmods-mod-author { max-width: 23% !important; }
    .scmods-mod-meta time { font-size: 8.8px; }
}

/* V17: mod comments, content alignment and centered footer links */
.scmods-mod-content-block,
.scmods-mod-content-block h2,
.scmods-mod-content-text {
    text-align: left !important;
}
.scmods-mod-content-media {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}
.scmods-mod-content-media img,
.scmods-mod-content-media video {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}
.scmods-mod-detail-page .game-comments-section {
    width: min(900px, 100%);
    margin-left: auto;
    margin-right: auto;
}
.site-footer-v56 .footer-links-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px 18px !important;
    text-align: center !important;
}
.site-footer-v56 .footer-links-row a {
    text-align: center !important;
}


/* V18: comment UX, badges, voting and mobile width */
.scmods-mod-detail-page .game-comments-head {
    justify-content: flex-start;
}
.scmods-mod-detail-page .game-comments-kicker {
    display: none !important;
}
.game-comment-textarea-wrap {
    position: relative;
    display: block;
}
.game-comment-textarea-wrap textarea {
    box-sizing: border-box;
    padding-right: 58px !important;
    padding-bottom: 30px !important;
}
.game-comment-char-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    color: #8f99ad;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    pointer-events: none;
}
.game-comment-char-counter.is-low {
    color: #ff8799;
}
.game-comment-name-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.game-comment-meta strong.is-admin {
    color: #ff4b55 !important;
}
.game-comment-author-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(217, 47, 255, .12);
    border: 1px solid rgba(217, 47, 255, .34);
    color: #d92fff;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 900;
}
.game-comment-body a {
    color: #c985ff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}
.game-comment-body a:hover {
    color: #fff;
}
.game-comment-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 11px;
}
.game-comment-bottom .game-comment-actions {
    margin-top: 0;
}
.game-comment-votes {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}
.game-comment-vote {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 42px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: #8f99ad;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}
.game-comment-vote svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}
.game-comment-vote:hover {
    color: #fff;
    border-color: rgba(217,47,255,.4);
}
.game-comment-vote.is-active {
    color: #d92fff;
    border-color: rgba(217,47,255,.6);
    background: rgba(217,47,255,.12);
}
.game-comment-vote:disabled {
    opacity: .65;
    cursor: wait;
}

@media (max-width: 800px) {
    .scmods-mod-detail-page .game-comments-section {
        width: 100% !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .scmods-mod-detail-page .game-comments-head {
        padding-left: 0;
        padding-right: 0;
    }
    .scmods-mod-detail-page .game-comment-form,
    .scmods-mod-detail-page .game-comments-login-note {
        width: 100%;
        box-sizing: border-box;
    }
    .game-comments-login-note {
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    .game-comments-login-note .primary-btn {
        align-self: center;
        min-width: 150px;
    }
    .game-comment-form-footer {
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        text-align: center;
    }
    .game-comment-form-footer .primary-btn {
        align-self: center;
        min-width: 150px;
    }
    .game-comment-form-status {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .game-comment-main {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .game-comment-form {
        padding: 13px 10px !important;
    }
    .game-comment-bottom {
        align-items: flex-start;
    }
    .game-comment-votes {
        margin-left: 0;
    }
}

/* V19: comment moderation, color-coded votes and desktop action row */
.game-comment-meta .game-comment-author-badge {
    color: #d92fff !important;
}

.game-comment-vote {
    min-width: 0 !important;
    height: auto !important;
    padding: 2px 1px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 4px !important;
    transition: color .16s ease, opacity .16s ease, transform .16s ease !important;
}
.game-comment-vote[data-comment-vote="1"] {
    color: #56cf7e !important;
}
.game-comment-vote[data-comment-vote="-1"] {
    color: #ff6873 !important;
}
.game-comment-vote[data-comment-vote="1"]:hover,
.game-comment-vote[data-comment-vote="1"].is-active {
    color: #35e871 !important;
}
.game-comment-vote[data-comment-vote="-1"]:hover,
.game-comment-vote[data-comment-vote="-1"].is-active {
    color: #ff3f4d !important;
}
.game-comment-vote.is-active {
    background: transparent !important;
    border: 0 !important;
    transform: scale(1.05);
}
.game-comment-vote:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.game-comment.is-pending.is-admin-review > .game-comment-main,
.game-comment.is-pending.is-admin-review > .game-comment-form-slot,
.game-comment.is-pending.is-admin-review > .game-comment-replies {
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    user-select: auto !important;
}
.game-comment.is-pending.is-admin-review > .game-comment-pending-overlay {
    position: static !important;
    inset: auto !important;
    display: block !important;
    padding: 7px 16px 9px !important;
    background: rgba(217,47,255,.07) !important;
    backdrop-filter: none !important;
    color: #dca1ff !important;
    font-size: 11px !important;
    text-align: left !important;
    letter-spacing: 0 !important;
}

@media (min-width: 801px) {
    .game-comment-bottom {
        flex-wrap: nowrap !important;
        width: 100%;
    }
    .game-comment-bottom .game-comment-actions {
        min-width: 0;
    }
    .game-comment-votes {
        flex: 0 0 auto;
        margin-left: auto !important;
    }
}

@media (max-width: 800px) {
    .game-comment-bottom {
        flex-wrap: wrap !important;
    }
}

/* V20: public profiles, reply pagination and stronger comment vote state */
.game-comment-avatar-link {
    display: block;
    flex: 0 0 auto;
    border-radius: 50%;
    line-height: 0;
}
.game-comment-name-link {
    color: inherit;
    text-decoration: none;
}
.game-comment-name-link:hover strong { color: #fff; }
.comment-link-btn.is-publish { color: #67e88f !important; }
.game-comment-more-replies {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 2px 54px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #b97cff;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}
.game-comment-more-replies:hover { color: #e5c4ff; }
.game-comment-vote {
    opacity: .5;
}
.game-comment-vote.is-active {
    opacity: 1 !important;
    transform: translateY(-1px) scale(1.16) !important;
    font-weight: 950 !important;
}
.game-comment-vote.is-active svg {
    transform: scale(1.12);
    filter: drop-shadow(0 0 5px currentColor);
}
.game-comment-vote[data-comment-vote="1"].is-active {
    text-shadow: 0 0 10px rgba(53,232,113,.65);
}
.game-comment-vote[data-comment-vote="-1"].is-active {
    text-shadow: 0 0 10px rgba(255,63,77,.65);
}

.profile-social-fields {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.profile-social-fields label { display: grid; gap: 6px; }
.public-profile-link { margin-top: 14px; width: 100%; box-sizing: border-box; justify-content: center; }

.scmods-public-profile-page { max-width: 1100px; margin-inline: auto; }
.scmods-public-profile-head {
    width: min(860px, 100%);
    margin: 28px auto 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: left;
}
.scmods-public-profile-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}
.scmods-public-profile-avatar {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(217,47,255,.45);
    box-shadow: 0 18px 40px rgba(0,0,0,.3);
}
.scmods-profile-like {
    position: absolute;
    right: -8px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 58px;
    height: 42px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(12,14,24,.94);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}
.scmods-profile-like-icon { position: relative; width: 24px; height: 24px; }
.scmods-profile-like-icon img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.scmods-profile-like-icon .filled { opacity:0; }
.scmods-profile-like.is-liked .outline { opacity:0; }
.scmods-profile-like.is-liked .filled { opacity:1; }
.scmods-profile-like.is-self { opacity:.55; cursor:default; }
.scmods-public-profile-info h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
}
.scmods-public-profile-date { color:#959daf; font-size:14px; font-weight:750; }
.scmods-public-profile-contacts { margin-top: 20px; }
.scmods-public-profile-contacts h2 { margin:0 0 10px; font-size:16px; }
.scmods-public-profile-socials { display:flex; flex-wrap:wrap; gap:10px; }
.scmods-public-profile-socials a {
    display:inline-flex; align-items:center; gap:8px; padding:8px 12px;
    border:1px solid rgba(255,255,255,.1); border-radius:12px;
    color:#dce1ef; text-decoration:none; background:rgba(255,255,255,.025);
    font-size:13px; font-weight:800;
}
.scmods-public-profile-socials a:hover { border-color:rgba(217,47,255,.45); color:#fff; }
.scmods-public-profile-socials img { width:22px; height:22px; object-fit:contain; }
.scmods-public-profile-mods { width:min(900px,100%); margin:0 auto 38px; }
.scmods-public-profile-mods > .section-title { text-align:center; }
.scmods-profile-mod-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }
.scmods-profile-mod-card {
    display:grid; grid-template-columns:150px minmax(0,1fr); gap:14px;
    padding:10px; border:1px solid rgba(255,255,255,.09); border-radius:16px;
    background:rgba(6,8,14,.74); color:inherit; text-decoration:none;
}
.scmods-profile-mod-card:hover { border-color:rgba(217,47,255,.45); }
.scmods-profile-mod-card > img { width:150px; aspect-ratio:16/9; object-fit:cover; border-radius:11px; }
.scmods-profile-mod-card h3 { margin:2px 0 6px; color:#fff; font-size:17px; }
.scmods-profile-mod-card p { margin:0 0 8px; color:#a9b0c2; font-size:12.5px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.scmods-profile-mod-card small { color:#7f879b; font-size:11px; }
.public-profile-comments { width:min(900px,100%); margin:0 auto; }
.scmods-mod-detail-author { text-decoration:none; }
.scmods-mod-detail-author:hover b { color:#e6c5ff; }

@media (max-width: 720px) {
    .game-comment-more-replies { margin-left: 44px; }
    .scmods-public-profile-head { flex-direction:column; gap:16px; text-align:center; margin-top:22px; }
    .scmods-public-profile-avatar { width:138px; height:138px; }
    .scmods-public-profile-info h1 { font-size:34px; }
    .scmods-public-profile-socials { justify-content:center; }
    .scmods-profile-mod-grid { grid-template-columns:1fr; }
    .scmods-profile-mod-card { grid-template-columns:118px minmax(0,1fr); }
    .scmods-profile-mod-card > img { width:118px; }
}

/* ===== Scorpion Mods V21 — public profile polish / admin site profile ===== */
.profile-public-link {
    width: 100% !important;
    max-width: 340px !important;
    min-height: 40px !important;
    margin-top: 14px !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    justify-content: center !important;
}

.scmods-public-profile-page {
    padding-top: 8px;
}
.scmods-profile-like {
    z-index: 2;
    right: -10px;
    bottom: 8px;
    min-width: 64px;
    height: 44px;
    border-color: rgba(255,255,255,.28);
    background: rgba(15,18,30,.98);
    box-shadow: 0 10px 28px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.04) inset;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.scmods-profile-like:hover,
.scmods-profile-like:focus-visible {
    border-color: rgba(217,47,255,.62);
    background: rgba(25,21,39,.98);
    box-shadow: 0 10px 30px rgba(0,0,0,.42), 0 0 18px rgba(217,47,255,.18);
    outline: none;
}
.scmods-profile-like:active { transform: scale(.96); }
.scmods-profile-like-icon .outline {
    opacity: 1;
    filter: brightness(0) invert(1);
}
.scmods-profile-like-icon .filled {
    opacity: 0;
    filter: none;
}
.scmods-profile-like.is-liked {
    border-color: rgba(255,70,86,.58);
    background: rgba(52,18,25,.96);
    box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 18px rgba(255,56,76,.18);
}
.scmods-profile-like.is-liked .outline { opacity: 0; }
.scmods-profile-like.is-liked .filled { opacity: 1; }
.scmods-profile-like.is-self { opacity: 1; cursor: pointer; }

.scmods-profile-mod-card {
    align-items: center;
}
.scmods-profile-mod-card h3 {
    margin-bottom: 8px;
}
.scmods-profile-mod-card small {
    display: block;
    color: #a5adbf;
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 720px) {
    .scmods-public-profile-page { padding-top: 0; }
    .scmods-profile-like {
        right: -4px;
        bottom: 3px;
        min-width: 60px;
        height: 40px;
        padding-inline: 9px;
    }
}

/* ===== Scorpion Mods V22 — profile contacts, gallery controls, search and hover polish ===== */

/* Account tabs / contacts: keep the exact Scorpion Shop account-section structure. */
.profile-contacts-card.active {
    display: block !important;
}
.profile-contacts-card > h2 {
    margin: 0 0 18px !important;
    text-align: center;
}
.profile-contacts-card .profile-social-fields {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    gap: 8px;
}
.profile-contacts-card .profile-social-fields label {
    display: grid;
    gap: 8px;
    width: 100%;
    margin: 0;
    color: #d8dced;
    font-size: inherit;
    font-weight: 800;
}
.profile-contacts-card .profile-social-fields input {
    width: 100%;
    box-sizing: border-box;
    font-size: inherit;
}
.profile-public-link {
    width: 100% !important;
    max-width: 240px !important;
    min-height: 50px !important;
    margin-top: 14px !important;
    border: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #d92fff, #7d2bff) !important;
    color: #fff !important;
    box-shadow: 0 14px 34px rgba(125,43,255,.22) !important;
    text-decoration: none !important;
}
.profile-public-link:hover {
    filter: brightness(.92);
    transform: translateY(-1px);
}

/* Public profile: likes only make sense for another signed-in user. */
.scmods-profile-like.is-self,
.scmods-profile-like:disabled {
    cursor: not-allowed !important;
    opacity: .55 !important;
    transform: none !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.32) !important;
}
.scmods-public-profile-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.scmods-public-profile-date {
    width: 100%;
    text-align: center;
}
.scmods-public-profile-contacts {
    max-width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
}
.scmods-public-profile-contacts-label {
    color: #dce1ef;
    font-size: 13px;
    font-weight: 850;
}
.scmods-public-profile-socials {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.scmods-public-profile-socials a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #cfd5e3;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: color .16s ease, transform .16s ease;
}
.scmods-public-profile-socials a:hover {
    color: #dca1ff !important;
    transform: translateY(-1px);
}
.scmods-public-profile-socials img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.scmods-profile-mod-grid.is-single {
    grid-template-columns: minmax(0, 520px) !important;
    justify-content: center;
}

/* Search: no shadow, and JS now closes quick results on page scroll like Scorpion Shop. */
.header-search,
.header-search:focus-within,
.search-box,
.header-search input:focus,
.search-box input:focus {
    box-shadow: none !important;
}

/* Gallery controls: SVGs are geometrically centered rather than relying on font glyph metrics. */
.scmods-gallery-arrow,
.scmods-image-viewer-arrow,
.scmods-image-viewer-close {
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    line-height: 0 !important;
}
.scmods-gallery-arrow svg,
.scmods-image-viewer-arrow svg,
.scmods-image-viewer-close svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.scmods-image-viewer-close svg {
    width: 21px;
    height: 21px;
}

/* Comment date sits under the nickname. */
.game-comment-meta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: start !important;
    align-items: start !important;
    gap: 2px !important;
}
.game-comment-name-wrap {
    min-width: 0;
}
.game-comment-meta > span:not(.game-comment-name-wrap) {
    display: block;
    margin: 0 !important;
}

/* Missing hover feedback. */
.comment-link-btn.is-danger {
    transition: color .16s ease, text-shadow .16s ease, transform .16s ease;
}
.comment-link-btn.is-danger:hover,
.comment-link-btn.is-danger:focus-visible {
    color: #ff4051 !important;
    text-shadow: 0 0 9px rgba(255,64,81,.28);
    transform: translateY(-1px);
}
.game-comment-name-link strong {
    transition: color .16s ease, text-shadow .16s ease;
}
.game-comment-name-link:hover strong,
.game-comment-name-link:focus-visible strong {
    color: #dca1ff !important;
    text-shadow: 0 0 10px rgba(217,47,255,.22);
}
.game-comment-avatar {
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.game-comment-avatar-link:hover .game-comment-avatar,
.game-comment-avatar-link:focus-visible .game-comment-avatar,
.game-comment-avatar:hover {
    transform: scale(1.055);
    border-color: rgba(217,47,255,.66);
    box-shadow: 0 0 0 2px rgba(217,47,255,.1), 0 0 14px rgba(217,47,255,.18);
}
.scmods-mod-like-icon {
    transition: transform .16s ease, filter .16s ease;
}
.scmods-mod-like:hover .scmods-mod-like-icon,
.scmods-mod-like:focus-visible .scmods-mod-like-icon {
    transform: scale(1.09);
    filter: drop-shadow(0 0 7px rgba(217,47,255,.32));
}
.scmods-mod-like.is-liked:hover .scmods-mod-like-icon,
.scmods-mod-like.is-liked:focus-visible .scmods-mod-like-icon {
    filter: drop-shadow(0 0 7px rgba(255,62,79,.34));
}

@media (max-width: 720px) {
    .profile-contacts-card .profile-social-fields {
        max-width: 240px;
    }
    .scmods-public-profile-contacts {
        width: 100%;
        gap: 7px;
        overflow-x: auto;
        justify-content: center;
        scrollbar-width: none;
    }
    .scmods-public-profile-contacts::-webkit-scrollbar { display: none; }
    .scmods-public-profile-contacts-label { font-size: 12px; }
    .scmods-public-profile-socials { gap: 8px; }
    .scmods-public-profile-socials a { font-size: 11px; }
    .scmods-public-profile-socials img { width: 19px; height: 19px; }
    .scmods-profile-mod-grid.is-single {
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: center;
    }
    .scmods-profile-mod-grid.is-single .scmods-profile-mod-card {
        width: 100%;
        max-width: 520px;
        box-sizing: border-box;
    }
}


/* V23: Scorpion Shop-style content alignment, full panel download page. */
.scmods-mod-detail-page .scmods-mod-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
}
.scmods-mod-detail-page .scmods-mod-content-block {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: left !important;
}
.scmods-mod-detail-page .scmods-mod-content-block h2,
.scmods-mod-detail-page .scmods-mod-content-text {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}
.scmods-mod-detail-page .scmods-mod-content-media {
    width: min(760px, 100%) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.scmods-download-page {
    width: 100% !important;
    max-width: 1180px !important;
    box-sizing: border-box !important;
}
@media (max-width: 720px) {
    .scmods-mod-detail-page .scmods-mod-content-media {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===== Scorpion Mods V24 — auth focus / exact profile controls ===== */

/* Login / registration fields: keep focus border, remove glow. */
#authModal .auth-form input:focus,
#authModal .auth-form input:focus-visible,
#authModal .auth-form .password-field input:focus,
#authModal .auth-form .password-field input:focus-visible {
    box-shadow: none !important;
}

/* New-name input and logout are one row; logout is centered to the input height. */
#profile .profile-name-row {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
#profile .profile-name-row .profile-name-field {
    flex: 0 0 240px;
    width: 240px !important;
    max-width: 240px !important;
    margin: 0 !important;
}
#profile .profile-name-row .profile-name-field input[name="display_name"] {
    width: 240px !important;
    max-width: 240px !important;
    min-height: 40px !important;
    height: 40px !important;
    box-sizing: border-box !important;
}
#profile .profile-name-row .logout-profile-btn {
    flex: 0 0 auto;
    align-self: flex-end;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Contacts inputs must be exactly the same 240x40 control size as password inputs. */
.profile-contacts-card .profile-social-fields,
.profile-contacts-card .profile-social-fields label {
    width: 240px !important;
    max-width: 240px !important;
}
.profile-contacts-card .profile-social-fields label {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 800 !important;
}
.profile-contacts-card .profile-social-fields input[type="text"] {
    display: block !important;
    width: 240px !important;
    max-width: 240px !important;
    min-width: 240px !important;
    min-height: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    padding: 9px 12px !important;
    box-sizing: border-box !important;
}

@media (max-width: 760px) {
    #profile .profile-name-row {
        width: min(100%, 340px) !important;
        justify-content: center;
    }
    #profile .profile-name-row .profile-name-field {
        flex-basis: min(240px, calc(100vw - 124px));
        width: min(240px, calc(100vw - 124px)) !important;
    }
    #profile .profile-name-row .profile-name-field input[name="display_name"] {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Contact labels match the password section spacing exactly. */
.profile-contacts-card .profile-social-fields label {
    gap: 4px !important;
}
.profile-contacts-card .profile-social-fields input[type="text"] {
    margin-top: 2px !important;
}

/* ===== Scorpion Mods V25 — Scorpion Mods identity / logout placement ===== */

#profile .profile-name-row {
    display: block !important;
}
#profile .profile-name-row .profile-name-field {
    width: 240px !important;
    max-width: 240px !important;
}
#profile .logout-profile-password {
    width: 240px !important;
    max-width: 240px !important;
    min-height: 40px !important;
    margin: 2px 0 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

@keyframes scmodsAdminFlameText {
    0%   { background-position: 0% 50%; filter: drop-shadow(0 0 3px rgba(255,46,46,.24)); }
    35%  { background-position: 55% 50%; filter: drop-shadow(0 0 7px rgba(255,83,24,.38)); }
    70%  { background-position: 100% 50%; filter: drop-shadow(0 0 6px rgba(255,182,39,.30)); }
    100% { background-position: 0% 50%; filter: drop-shadow(0 0 3px rgba(255,46,46,.24)); }
}

/* Flame effect ONLY for Scorpion Mods. */
.game-comment-meta strong.is-admin,
.scmods-admin-flame-name {
    color: #ff3d49 !important;
    background: linear-gradient(90deg, #ff2437 0%, #ff5630 22%, #ffb11f 42%, #ff394d 63%, #ff241f 82%, #ff7830 100%);
    background-size: 260% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: scmodsAdminFlameText 3.2s linear infinite;
}

.game-comment-name-link:hover strong.is-admin,
.game-comment-name-link:focus-visible strong.is-admin {
    background-size: 300% 100%;
    filter: drop-shadow(0 0 9px rgba(255,76,34,.48));
}

@media (prefers-reduced-motion: reduce) {
    .game-comment-meta strong.is-admin,
    .scmods-admin-flame-name {
        animation: none;
        background: none;
        -webkit-text-fill-color: #ff3d49;
        color: #ff3d49 !important;
        filter: none;
    }
}

@media (max-width: 760px) {
    #profile .logout-profile-password {
        width: 240px !important;
        max-width: 240px !important;
    }
}


/* ===== Scorpion Mods V26 — fire-flow admin name / no field shadows ===== */

/* All form fields across the site: no box-shadow in any state. */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select,
input:not([type="checkbox"]):not([type="radio"]):hover,
textarea:hover,
select:hover,
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus,
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus-visible,
select:focus-visible {
    box-shadow: none !important;
}

/* Comment avatar hover: keep only a subtle movement/border change, never a shadow. */
.game-comment-avatar {
    transition: transform .16s ease, border-color .16s ease !important;
}
.game-comment-avatar-link:hover .game-comment-avatar,
.game-comment-avatar-link:focus-visible .game-comment-avatar,
.game-comment-avatar:hover {
    transform: scale(1.055);
    border-color: rgba(217,47,255,.72);
    box-shadow: none !important;
}

/* Nickname hover must be clearly visible for regular users too. */
.game-comment-name-link strong {
    display: inline-block;
    transition: color .16s ease, transform .16s ease, filter .16s ease, text-shadow .16s ease;
}
.game-comment-name-link:hover strong:not(.is-admin),
.game-comment-name-link:focus-visible strong:not(.is-admin) {
    color: #efc8ff !important;
    transform: translateY(-1px) scale(1.025);
    filter: brightness(1.12);
    text-shadow: 0 0 8px rgba(217,47,255,.24);
}

/* Seamless flame stream: always moves left -> right, never ping-pongs. */
@keyframes scmodsAdminFireFlow {
    from { background-position: 200% 50%; }
    to   { background-position: 0% 50%; }
}

/* Small irregular glow changes make the letters look like they are burning. */
@keyframes scmodsAdminFireFlicker {
    0%, 100% {
        text-shadow:
            0 -1px 4px rgba(255,214,60,.32),
            0  1px 7px rgba(255,70,28,.34),
            0  0 11px rgba(255,38,31,.22);
        filter: brightness(1.02) saturate(1.08);
    }
    18% {
        text-shadow:
            -1px -2px 5px rgba(255,231,101,.43),
             1px  1px 9px rgba(255,91,24,.40),
             0    0   13px rgba(255,40,31,.28);
        filter: brightness(1.12) saturate(1.16);
    }
    37% {
        text-shadow:
             1px -1px 4px rgba(255,192,43,.30),
            -1px  1px 7px rgba(255,51,26,.33),
             0    0   10px rgba(255,34,38,.22);
        filter: brightness(.98) saturate(1.08);
    }
    61% {
        text-shadow:
             0   -2px 6px rgba(255,222,73,.45),
             1px  1px 10px rgba(255,99,22,.42),
            -1px  0   14px rgba(255,33,38,.30);
        filter: brightness(1.16) saturate(1.2);
    }
    82% {
        text-shadow:
            -1px -1px 5px rgba(255,178,31,.33),
             0    1px 8px rgba(255,62,23,.36),
             1px  0   11px rgba(255,35,42,.24);
        filter: brightness(1.04) saturate(1.12);
    }
}

/* Flame effect ONLY for Scorpion Mods. Regular users remain unchanged. */
.game-comment-meta strong.is-admin,
.scmods-admin-flame-name {
    color: #ff3d49 !important;
    background: repeating-linear-gradient(
        90deg,
        #ff252f 0%,
        #ff252f 8%,
        #ff5b22 16%,
        #ffb21f 24%,
        #ffe066 30%,
        #ff8a22 37%,
        #ff3138 46%,
        #ff252f 50%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        scmodsAdminFireFlow 2.8s linear infinite,
        scmodsAdminFireFlicker .95s steps(1, end) infinite;
    will-change: background-position, filter;
}

.game-comment-name-link:hover strong.is-admin,
.game-comment-name-link:focus-visible strong.is-admin {
    transform: translateY(-1px) scale(1.025);
    animation-duration: 2.05s, .72s;
}

@media (prefers-reduced-motion: reduce) {
    .game-comment-meta strong.is-admin,
    .scmods-admin-flame-name {
        animation: none !important;
        background: none !important;
        -webkit-text-fill-color: #ff3d49 !important;
        color: #ff3d49 !important;
        filter: none !important;
        text-shadow: none !important;
    }
}

/* ===== Scorpion Mods V27 — logo / gallery hover / thanks line / overflow fix ===== */

/* Scorpion Mods: keep only the continuous left-to-right color flow. */
.game-comment-meta strong.is-admin,
.scmods-admin-flame-name {
    animation: scmodsAdminFireFlow 2.8s linear infinite !important;
    text-shadow: none !important;
    filter: none !important;
    will-change: background-position;
}
.game-comment-name-link:hover strong.is-admin,
.game-comment-name-link:focus-visible strong.is-admin {
    animation: scmodsAdminFireFlow 2.05s linear infinite !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Gallery thumbnails: simple purple border feedback on hover/focus. */
.scmods-mod-gallery-thumb {
    transition: border-color .16s ease !important;
}
.scmods-mod-gallery-thumb:hover,
.scmods-mod-gallery-thumb:focus-visible {
    border-color: rgba(217,47,255,.78) !important;
    outline: none !important;
    box-shadow: none !important;
}
.scmods-mod-gallery-thumb.is-active {
    border-color: #d92fff !important;
}

/* Desktop thank-you copy should remain on one line. */
@media (min-width: 721px) {
    .scmods-download-thanks {
        width: min(760px, 100%) !important;
    }
    .scmods-download-thanks-title {
        white-space: nowrap !important;
    }
}

/* Never allow page-level horizontal scrolling when moving between download/mod pages. */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}


/* ===== Scorpion Mods V28 — stable browser scrollbar / identity ===== */
/* Reserve vertical scrollbar width on short and long pages so centered content never shifts. */
html {
    overflow-y: scroll !important;
    scrollbar-gutter: stable !important;
}
body {
    overflow-x: hidden !important;
}

/* ===== Scorpion Mods V29: optional subcategories + live author search ===== */
.scmods-subcategory-grid {
    margin-top: 8px;
    margin-bottom: 30px;
}
.scmods-subcategory-card .scmods-category-icon {
    background: transparent;
}

.scmods-admin-subcategory-settings {
    margin-bottom: 22px;
}
.scmods-subcategory-toggle-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.scmods-subcategory-toggle {
    margin: 0;
}
.scmods-subcategory-admin-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.09);
}
.scmods-admin-subcategory-add {
    display: grid;
    grid-template-columns: minmax(220px,1fr) minmax(220px,1fr) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
}
.scmods-admin-subcategories-list {
    display: grid;
    gap: 12px;
}
.scmods-admin-subcategory-row {
    display: grid;
    grid-template-columns: 68px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: rgba(8,11,18,.7);
}
.scmods-admin-subcategory-row > img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 12px;
    background: transparent;
}
.scmods-admin-subcategory-edit {
    display: grid;
    grid-template-columns: minmax(180px,1fr) minmax(180px,1fr) auto;
    gap: 12px;
    align-items: end;
}
.scmods-admin-subcategory-edit label,
.scmods-admin-subcategory-add label {
    display: grid;
    gap: 7px;
}
.scmods-admin-subcategory-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.scmods-admin-subcategory-actions form { margin: 0; }
.scmods-subcategory-empty { margin-top: 14px; }

.scmods-admin-subcategory-choice {
    display: grid;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(7,9,20,.42);
}
.scmods-admin-subcategory-choice > label:not(.checkbox-row) {
    display: grid;
    gap: 7px;
    max-width: 520px;
}

.scmods-admin-author-picker {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(7,9,20,.42);
}
.scmods-author-custom-toggle { margin: 0; }
.scmods-author-search-wrap {
    position: relative;
    max-width: 720px;
}
.scmods-author-search-wrap > label,
.scmods-admin-author-picker > label[data-custom-author-field] {
    display: grid;
    gap: 7px;
}
.scmods-author-search-results {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 300px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(217,47,255,.35);
    border-radius: 13px;
    background: #0b0e18;
}
.scmods-author-search-item {
    width: 100%;
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}
.scmods-author-search-item:hover,
.scmods-author-search-item:focus-visible {
    background: rgba(217,47,255,.12);
    outline: 1px solid rgba(217,47,255,.42);
}
.scmods-author-search-item strong { font-size: 14px; }
.scmods-author-search-item small { color: #9299ad; font-size: 12px; }
.scmods-author-search-empty {
    padding: 12px;
    color: #9299ad;
    text-align: center;
}

@media (max-width: 900px) {
    .scmods-admin-subcategory-add { grid-template-columns: 1fr; align-items: stretch; }
    .scmods-admin-subcategory-row { grid-template-columns: 56px minmax(0,1fr); }
    .scmods-admin-subcategory-row > img { width: 56px; height: 56px; }
    .scmods-admin-subcategory-edit { grid-template-columns: 1fr; }
    .scmods-admin-subcategory-actions { grid-column: 1 / -1; justify-content: flex-start; }
}


/* V30: native mobile thumbnail scrolling (Yandex/Chromium friendly) */
.scmods-mod-gallery-thumbs {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-inline: contain;
    scroll-behavior: auto;
}

/* V30: download button inside content block */
.scmods-block-download { margin-top: 16px; display: flex; justify-content: flex-start; }
.scmods-block-download .scmods-mod-download-btn { margin: 0; }


/* V31: center block download on phones */
@media (max-width: 720px) {
  .scmods-block-download { justify-content: center; }
}

/* V32: user moderation / bans */
.scmods-admin-user-search {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}
.scmods-admin-user-search label { min-width: min(420px, 100%); }
.scmods-admin-users-list { display: grid; gap: 14px; }
.scmods-admin-user-card {
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(190px, .8fr) minmax(300px, 1.35fr);
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
}
.scmods-admin-user-card.is-blocked { border-color: rgba(255,78,96,.38); }
.scmods-admin-user-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.scmods-admin-user-main img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.12);
}
.scmods-admin-user-main > div,
.scmods-admin-user-status { min-width: 0; display: grid; gap: 3px; }
.scmods-admin-user-main strong,
.scmods-admin-user-main span,
.scmods-admin-user-status span { overflow-wrap: anywhere; }
.scmods-admin-user-main small,
.scmods-admin-user-status small { color: #8f97ad; }
.scmods-user-status-badge {
    width: max-content;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(79,220,141,.11);
    color: #7ce6ad;
    font-weight: 800;
    font-size: 12px;
}
.scmods-user-status-badge.is-banned { background: rgba(255,78,96,.12); color: #ff6d7c; }
.scmods-user-status-badge.is-admin { background: rgba(217,47,255,.12); color: #dc6dff; }
.scmods-admin-user-ban-form {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(130px, .55fr) auto;
    align-items: end;
    gap: 10px;
}
.scmods-admin-user-ban-form:has(> input[name="action"][value="unban"]) { grid-template-columns: auto; justify-content: end; }

/* V32: rich block message shown when a banned account attempts to sign in */
.auth-ban-message {
    display: grid;
    gap: 5px;
    white-space: normal;
    line-height: 1.45;
}
.auth-ban-message strong { color: #ff6575; }
.auth-ban-message span { display: block; }
.auth-ban-contacts a { color: #c982ff; text-decoration: none; font-weight: 800; }
.auth-ban-contacts a:hover { text-decoration: underline; }

/* V32: legal documents */
.legal-rich-panel .legal-card.scmods-legal-document {
    width: min(980px, 100%);
    max-width: 980px !important;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}
.scmods-legal-document h2 { margin: 10px 0 0; }
.scmods-legal-document h3 { margin: 4px 0 0; color: #fff; }
.scmods-legal-document p,
.scmods-legal-document li { line-height: 1.72; }
.scmods-legal-document ul,
.scmods-legal-document ol { margin: 0; padding-left: 24px; display: grid; gap: 8px; }
.scmods-legal-document a { color: #c982ff; }
.scmods-legal-note {
    padding: 14px 16px;
    border: 1px solid rgba(217,47,255,.2);
    border-radius: 14px;
    background: rgba(217,47,255,.05);
}

@media (max-width: 980px) {
    .scmods-admin-user-card { grid-template-columns: 1fr; align-items: stretch; }
    .scmods-admin-user-ban-form { grid-template-columns: 1fr 1fr; }
    .scmods-admin-user-ban-form button { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .scmods-admin-user-search { display: grid; align-items: stretch; }
    .scmods-admin-user-search label { min-width: 0; }
    .scmods-admin-user-ban-form { grid-template-columns: 1fr; }
    .scmods-admin-user-ban-form button { grid-column: auto; }
}

/* ===== Scorpion Mods V33 — mobile profile, ban card and Yandex thumbnail swipe ===== */
.auth-ban-contacts {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.auth-ban-contact-link {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}
.auth-ban-contact-link img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    flex: 0 0 17px;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    .profile-panel > .section-title {
        text-align: center !important;
    }
    .profile-tabs {
        justify-content: center !important;
        text-align: center !important;
    }
    .profile-tabs .tab-btn {
        justify-content: center !important;
        text-align: center !important;
    }
    #profile .profile-identity-title,
    #profile .profile-name-row,
    #profile .profile-name-row .profile-name-field,
    #profile .profile-name-row .profile-name-label {
        text-align: center !important;
    }
    #profile .profile-name-row .profile-name-field {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #profile .profile-name-row .profile-name-field input[name="display_name"] {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .auth-ban-message {
        text-align: center !important;
        justify-items: center !important;
    }
    .auth-ban-contacts {
        justify-content: center !important;
    }

    /* Pure native horizontal scrolling for Chromium/Yandex Browser. */
    .scmods-mod-gallery-thumbs {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: auto !important;
        scroll-snap-type: none !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x pan-y !important;
        overscroll-behavior-x: contain !important;
    }
    .scmods-mod-gallery-thumb {
        flex: 0 0 112px !important;
        touch-action: pan-x pan-y !important;
        -webkit-tap-highlight-color: transparent;
    }
    .scmods-mod-gallery-thumb img {
        pointer-events: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-user-drag: none !important;
    }
}

/* ===== Scorpion Mods V34 — centered mobile profile tabs + Yandex thumbnail touch drag ===== */
@media (max-width: 760px) {
    .profile-panel .profile-tabs {
        display: flex !important;
        width: fit-content !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .profile-panel .profile-tabs .tab-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Yandex Browser: horizontal movement is handled explicitly in JS.
       Vertical page scroll remains native. */
    .scmods-mod-gallery-thumbs {
        touch-action: pan-y !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        scroll-behavior: auto !important;
    }
    .scmods-mod-gallery-thumb {
        touch-action: pan-y !important;
    }
}


/* V37: public image download deterrent and mobile mod description alignment */
img {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}
@media (max-width: 720px) {
    .scmods-mod-detail-head > p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}


/* V38: registered mod author avatar + safe content links */
.scmods-mod-detail-author-avatar {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
}
.scmods-mod-detail-author:hover .scmods-mod-detail-author-avatar {
    border-color: rgba(217,47,255,.68);
}
.scmods-content-link {
    color: #c868ff;
    text-decoration: underline;
    text-decoration-color: rgba(200,104,255,.52);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.scmods-content-link:hover {
    color: #e3a6ff;
    text-decoration-color: currentColor;
}


/* V39: mod card stat icons, white content links and larger author avatar */
.scmods-mod-meta .scmods-meta-download svg,
.scmods-mod-meta .scmods-meta-comments svg,
.scmods-mod-meta .scmods-meta-views svg {
    color: #fff;
    stroke: #fff;
}
.scmods-mod-meta .scmods-meta-like svg {
    color: #ff3b4f;
    fill: #ff3b4f;
    stroke: #ff3b4f;
}
.scmods-content-link,
.scmods-content-link:visited {
    color: #fff;
    text-decoration-color: rgba(255,255,255,.58);
}
.scmods-content-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}
.scmods-mod-detail-author-avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}
