/* Spiderpiggy Ultimate Points - Lucid Lime theme integration */


.icon-points { background-image: url("./images/icon_points.gif"); }
.icon-members { background-image: url("./images/icon_members.gif"); }

.sp-piggy-points {
    color: #dce4ec;
    margin-top: 10px;
}

.sp-piggy-points a {
    color: #ff9fc9;
}
.sp-piggy-points a:hover {
    color: #fff0f7;
}

.sp-piggy-points h2,
.sp-piggy-points h3,
.sp-piggy-points h4 {
    color: #f7f9fc;
}

.sp-piggy-points h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(230,106,164,.20);
}

.sp-piggy-points h3 {
    border-bottom: 1px solid rgba(128,191,255,.14);
    padding-bottom: 8px;
    margin-bottom: 12px;
}













.sp-piggy-points .panel.bg3,
.sp-piggy-points > .panel,
.sp-piggy-points .panel.points-main-main,
.sp-piggy-points .panel.bg1,
.sp-piggy-points .cp-mini,
.sp-piggy-points #cp-main > .panel,
.sp-piggy-points .notification_list,
.sp-piggy-points .bounty-row,
.sp-piggy-points .duel-row {
    background:
        radial-gradient(circle at top right, rgba(230,106,164,.08), transparent 34%),
        linear-gradient(180deg, rgba(33,39,50,.95), rgba(24,28,36,.95));
    border: 1px solid rgba(230,106,164,.18);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.03);
    color: #dce4ec;
}

.sp-piggy-points .panel.bg3,
.sp-piggy-points > .panel {
    padding: 0;
}

.sp-piggy-points .panel .inner,
.sp-piggy-points .cp-mini .inner {
    padding: 18px 20px;
}

.sp-piggy-points #cp-menu {
    float: left;
    width: 24%;
    margin-top: 0;
    margin-bottom: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.sp-piggy-points #cp-main {
    float: left;
    width: 76%;
    box-sizing: border-box;
}

.sp-piggy-points .cp-mini {
    padding: 0;
    overflow: hidden;
}

.sp-piggy-points .cp-mini h3,
.sp-piggy-points .cp-mini .mini dt,
.sp-piggy-points .cp-mini .mini dd h3 {
    color: #fff;
}

.sp-piggy-points .cp-mini .mini dd {
    color: #cbd5df;
}

.sp-piggy-points fieldset {
    margin: 16px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(128,191,255,.14);
    border-radius: 12px;
    background: rgba(16,19,24,.28);
}

.sp-piggy-points fieldset legend {
    color: #fff;
    font-weight: 700;
    padding: 0 8px;
}

.sp-piggy-points dl {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(66,74,90,.45);
}

.sp-piggy-points dl:last-child {
    border-bottom: 0;
}

.sp-piggy-points dt {
    width: 44%;
    min-width: 220px;
    color: #edf1f7;
    font-weight: 600;
}

.sp-piggy-points dd {
    margin: 0;
    flex: 1 1 auto;
    color: #cbd5df;
}

.sp-piggy-points .sp-trivia-rewards {
    border-color: rgba(230,106,164,.26);
    background: linear-gradient(180deg, rgba(185,41,112,.12), rgba(24,28,36,.28));
}

.sp-piggy-points .sp-trivia-rewards p {
    margin-bottom: 8px;
    color: #ffd9ea;
}

.sp-piggy-points .points-main-main {
    margin-bottom: 18px;
}

.sp-piggy-points .points-main-main fieldset {
    background:
        radial-gradient(circle at top left, rgba(128,191,255,.10), transparent 30%),
        linear-gradient(180deg, rgba(27,31,39,.95), rgba(18,22,28,.95));
    border-color: rgba(128,191,255,.22);
}

.sp-piggy-points .points-main-main p {
    margin: 0 0 10px;
    font-size: 1.12em;
    line-height: 1.55;
}

.sp-piggy-points .points-main-lists {
    display: inline-flex;
    vertical-align: top;
    float: none;
    margin: 0 14px 14px 0;
    width: calc(25% - 14px);
    min-width: 240px;
    box-sizing: border-box;
}

.sp-piggy-points .points-main-lists .inner {
    width: 100% !important;
}

.sp-piggy-points .points-main-lists .column1,
.sp-piggy-points .points-main-lists .column2 {
    display: inline-block;
    width: 49%;
    padding: 5px 0;
    font-size: .95em;
}

.sp-piggy-points .points-main-lists .column2 {
    text-align: right;
    color: #ffb0d3;
    font-weight: 700;
}

.sp-piggy-points table.table1 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(128,191,255,.14);
    background: rgba(20,24,31,.68);
}

.sp-piggy-points table.table1 thead th,
.sp-piggy-points table.table1 thead.logs_head th {
    color: #ffffff;
    background: linear-gradient(180deg, #2c3341, #222733);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(230,106,164,.24);
    padding: 12px 10px;
}

.sp-piggy-points table.table1 tbody td {
    color: #dce4ec;
    padding: 11px 10px;
    border-top: 1px solid rgba(66,74,90,.35);
    background: transparent;
}

.sp-piggy-points table.table1 tbody tr:nth-child(odd) td {
    background: rgba(255,255,255,.015);
}

.sp-piggy-points .topiclist,
.sp-piggy-points .topiclist.forums {
    border: 1px solid rgba(128,191,255,.14);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    background: rgba(20,24,31,.6);
}

.sp-piggy-points .topiclist li.header {
    background: linear-gradient(180deg, #2c3341, #222733);
    border-bottom: 1px solid rgba(230,106,164,.24);
}

.sp-piggy-points .topiclist li.header dt,
.sp-piggy-points .topiclist li.header dd,
.sp-piggy-points .topiclist li.header a {
    color: #ffffff;
}

.sp-piggy-points .topiclist li.row {
    background: transparent;
    border-top: 1px solid rgba(66,74,90,.32);
}

.sp-piggy-points .topiclist li.row:hover {
    background: rgba(255,255,255,.025);
}

.sp-piggy-points .topiclist .list-inner,
.sp-piggy-points .topiclist dt,
.sp-piggy-points .topiclist dd {
    color: #dce4ec;
}

.sp-piggy-points .notifications_title,
.sp-piggy-points .notifications_time {
    color: #dce4ec;
}

.sp-piggy-points input.inputbox,
.sp-piggy-points input[type="text"],
.sp-piggy-points input[type="number"],
.sp-piggy-points input[type="password"],
.sp-piggy-points input[type="search"],
.sp-piggy-points textarea,
.sp-piggy-points select {
    background: #13161c;
    border: 1px solid rgba(128,191,255,.18);
    border-radius: 10px;
    color: #f2f4f7;
    padding: 8px 10px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.3);
}

.sp-piggy-points input.inputbox:focus,
.sp-piggy-points input[type="text"]:focus,
.sp-piggy-points input[type="number"]:focus,
.sp-piggy-points input[type="password"]:focus,
.sp-piggy-points input[type="search"]:focus,
.sp-piggy-points textarea:focus,
.sp-piggy-points select:focus {
    border-color: rgba(255,115,179,.75);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230,106,164,.15);
}

.sp-piggy-points label {
    color: #dce4ec;
}

.sp-piggy-points .button1,
.sp-piggy-points .button2,
.sp-piggy-points button.button1,
.sp-piggy-points button.button2,
.sp-piggy-points input.button1,
.sp-piggy-points input.button2 {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    padding: 8px 14px;
    font-weight: 700;
    text-shadow: none;
    box-shadow: none;
}

.sp-piggy-points .button1,
.sp-piggy-points button.button1,
.sp-piggy-points input.button1 {
    background: linear-gradient(135deg, #b92970, #e66aa4);
    color: #fff;
    border-color: rgba(255,176,211,.35);
}

.sp-piggy-points .button2,
.sp-piggy-points button.button2,
.sp-piggy-points input.button2 {
    background: linear-gradient(180deg, #2d3442, #222733);
    color: #f2f4f7;
    border-color: rgba(128,191,255,.18);
}

.sp-piggy-points .button1:hover,
.sp-piggy-points .button2:hover,
.sp-piggy-points button.button1:hover,
.sp-piggy-points button.button2:hover,
.sp-piggy-points input.button1:hover,
.sp-piggy-points input.button2:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.sp-piggy-points .bounty-status,
.sp-piggy-points .duel-status {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .2px;
    padding: 4px 10px;
}

.sp-piggy-points .bounty-status-open { background: rgba(94,191,117,.16); color: #adf0b5; }
.sp-piggy-points .bounty-status-claimed,
.sp-piggy-points .duel-status-active { background: rgba(255,196,0,.14); color: #ffe39f; }
.sp-piggy-points .bounty-status-pending,
.sp-piggy-points .duel-status-pending { background: rgba(255,56,103,.16); color: #ffb4c7; }
.sp-piggy-points .bounty-status-completed { background: rgba(128,191,255,.16); color: #cfe4ff; }

.sp-piggy-points .bounty-reward,
.sp-piggy-points .duel-wager {
    color: #ffb0d3;
    font-size: 1.15em;
}

.sp-piggy-points .duel-awaiting-mod,
.sp-piggy-points .bounty-row-meta,
.sp-piggy-points .duel-row-meta {
    color: #aeb8c3;
}

.sp-piggy-points .back-lottery {
    color: #ffb0d3;
    font-weight: 700;
    font-size: 1.05em;
}

.sp-piggy-points .rich-user-avatar {
    width: 26px;
    height: 26px;
    margin-right: 6px;
}

.sp-piggy-points .rich-user-avatar img {
    max-width: 26px;
    max-height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(230,106,164,.28);
}

@media (max-width: 980px) {
    .sp-piggy-points #cp-menu,
    .sp-piggy-points #cp-main {
        float: none;
        width: 100%;
        padding-right: 0;
    }

    .sp-piggy-points .points-main-lists {
        width: calc(50% - 14px);
    }

    .sp-piggy-points dt {
        width: 40%;
        min-width: 190px;
    }
}

@media (max-width: 700px) {
    

    

    .sp-piggy-points .points-main-lists {
        width: 100%;
        margin-right: 0;
    }

    .sp-piggy-points dl {
        flex-direction: column;
        gap: 6px;
    }

    .sp-piggy-points dt {
        width: 100%;
        min-width: 0;
    }

    .sp-piggy-points .bounty-row,
    .sp-piggy-points .duel-row {
        display: block;
    }

    .sp-piggy-points .bounty-row-side,
    .sp-piggy-points .duel-row-side,
    .sp-piggy-points .bounty-row-actions,
    .sp-piggy-points .duel-row-actions {
        text-align: left;
        margin-top: 12px;
    }

    .sp-piggy-points .panel .inner,
    .sp-piggy-points .cp-mini .inner {
        padding: 16px;
    }
}


/* 1.0.3 refinement update */




.sp-piggy-points .button1,
.sp-piggy-points .button2,
.sp-piggy-points button.button1,
.sp-piggy-points button.button2,
.sp-piggy-points input.button1,
.sp-piggy-points input.button2 {
    padding: 6px 12px;
    font-size: .92em;
}

.sp-points-description-box .inner {
    padding: 16px 18px;
}

.sp-points-description-box h3 {
    margin-top: 0;
}

.sp-points-description-text {
    color: #dce4ec;
    font-size: 1.04em;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
}

.sp-points-page-points_info #cp-menu {
    width: 19%;
}

.sp-points-page-points_info #cp-main {
    width: 81%;
}

.sp-points-page-points_info .sp-points-balance {
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid rgba(128,191,255,.16);
    border-radius: 10px;
    background: rgba(19,22,28,.55);
    color: #edf1f7;
}

.sp-points-page-points_info .sp-points-balance strong {
    color: #ffd2e4;
}

.sp-points-page-points_info .sp-points-info-fieldset {
    padding-top: 14px;
}

.sp-points-page-points_info .sp-points-info-fieldset h3,
.sp-points-page-points_info .sp-trivia-rewards h3 {
    margin-top: 0;
}

.sp-points-page-points_info .sp-points-info-fieldset dl,
.sp-points-page-points_info .sp-trivia-rewards dl {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(260px, 1.4fr);
    gap: 14px 24px;
    align-items: start;
    padding: 12px 0;
}

.sp-points-page-points_info .sp-points-info-fieldset dt,
.sp-points-page-points_info .sp-trivia-rewards dt,
.sp-points-page-points_info .sp-points-info-fieldset dd,
.sp-points-page-points_info .sp-trivia-rewards dd {
    width: auto;
    min-width: 0;
}

.sp-points-page-points_info .sp-points-info-fieldset dt,
.sp-points-page-points_info .sp-trivia-rewards dt {
    line-height: 1.45;
}

.sp-points-page-points_info .sp-points-info-fieldset dd,
.sp-points-page-points_info .sp-trivia-rewards dd {
    line-height: 1.45;
    color: #cfd7e0;
}

.sp-points-page-points_list h2 {
    margin-bottom: 10px;
}

.sp-points-page-points_list .action-bar.top,
.sp-points-page-points_list .action-bar.bottom {
    margin: 6px 0 12px;
}

.sp-points-page-points_list .pagination {
    color: #dce4ec;
}

.sp-points-page-points_list .sp-up-list-wrap .inner {
    padding: 12px;
}

.sp-points-page-points_list .topiclist li.header dl.row-item,
.sp-points-page-points_list .topiclist.forums li.row dl {
    min-height: 0;
}

.sp-points-page-points_list .topiclist li.header {
    border-radius: 10px;
}

.sp-points-page-points_list .topiclist.forums {
    border-radius: 12px;
}

.sp-points-page-points_list .topiclist.forums li.row {
    padding: 0;
}

.sp-points-page-points_list .topiclist.forums li.row dl {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 180px;
    align-items: center;
}

.sp-points-page-points_list .sp-up-list-user,
.sp-points-page-points_list .sp-up-list-empty {
    font-size: 1.02em;
    line-height: 1.3;
    padding: 10px 0;
}

.sp-points-page-points_list .sp-up-list-user .list-inner {
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-points-page-points_list .sp-up-list-avatar {
    width: 42px;
    height: 42px;
    margin-right: 0;
    flex: 0 0 42px;
}

.sp-points-page-points_list .sp-up-list-avatar img,
.sp-points-page-points_list .sp-up-list-avatar .avatar {
    max-width: 42px;
    max-height: 42px;
}

.sp-points-page-points_list .sp-up-list-points {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1em;
    padding-top: 0;
    padding-bottom: 0;
}

.sp-points-page-points_list .sp-up-list-points span {
    font-size: 1.65em;
    line-height: 1;
    color: #edf1f7;
}

.sp-points-page-points_list .sp-up-list-empty {
    text-align: center;
}

@media (max-width: 1100px) {
    .sp-points-page-points_info #cp-menu {
        width: 23%;
    }

    .sp-points-page-points_info #cp-main {
        width: 77%;
    }

    .sp-points-page-points_info .sp-points-info-fieldset dl,
    .sp-points-page-points_info .sp-trivia-rewards dl {
        grid-template-columns: minmax(210px, 1fr) minmax(220px, 1.1fr);
    }
}

@media (max-width: 980px) {
    .sp-points-page-points_info #cp-menu,
    .sp-points-page-points_info #cp-main {
        width: 100%;
    }

    .sp-points-page-points_info .sp-points-info-fieldset dl,
    .sp-points-page-points_info .sp-trivia-rewards dl,
    .sp-points-page-points_list .topiclist.forums li.row dl {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .sp-points-page-points_info .sp-points-info-fieldset dl,
    .sp-points-page-points_info .sp-trivia-rewards dl {
        display: block;
    }

    .sp-points-page-points_info .sp-points-info-fieldset dt,
    .sp-points-page-points_info .sp-trivia-rewards dt {
        margin-bottom: 6px;
    }

    .sp-points-page-points_list .sp-up-list-points {
        padding-top: 6px;
    }

    .sp-points-page-points_list .sp-up-list-points span {
        font-size: 1.35em;
    }
}

/* 1.0.4: Respect the original phpBB tabs; no custom #tabs overrides. */

/* The phpBB .cp-mini default caps height at 200px and makes the content scroll.
   Ultimate Points descriptions must always display their complete text. */
.sp-piggy-points #cp-menu {
    float: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
    box-sizing: border-box;
}
.sp-piggy-points #cp-main,
.sp-points-page-points_info #cp-main {
    float: none;
    width: 100%;
    min-width: 0;
    clear: both;
}
.sp-points-page-points_info #cp-menu {
    width: 100%;
}
.sp-piggy-points #cp-menu .cp-mini {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none !important;
    overflow: visible;
    margin: 0;
    padding: 0;
}
.sp-piggy-points #cp-menu .cp-mini > .inner {
    padding: 12px 16px;
}
.sp-piggy-points #cp-menu .cp-mini dl,
.sp-piggy-points #cp-menu .cp-mini dl.mini {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
}
.sp-piggy-points #cp-menu .cp-mini dl > dd,
.sp-piggy-points #cp-menu .cp-mini dl > dt {
    font-size: 1.15em;
    display: block;
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-weight: normal;
    text-align: left;
    line-height: 1.5;
    color: #dce4ec;
    overflow-wrap: break-word;
    word-break: normal;
}
.sp-piggy-points #cp-menu .cp-mini dl > dd + dd,
.sp-piggy-points #cp-menu .cp-mini dl > dd + dt,
.sp-piggy-points #cp-menu .cp-mini dl > dt + dd {
    margin-top: 8px;
}
.sp-piggy-points #cp-menu .cp-mini h3 {
    margin: 0 0 10px;
    padding: 0 0 8px;
    font-size: 1.05em;
    line-height: 1.3;
}
.sp-piggy-points #cp-menu .sp-points-description-text,
.sp-piggy-points #cp-menu .cp-mini p {
    display: block;
    margin: 0;
    width: auto;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.55;
}
.sp-piggy-points #cp-menu .cp-mini p + p { margin-top: 8px; }

/* A compact, native table layout rather than oversized forum-list cards. */
.sp-points-page-points_list .sp-up-ranking-panel {
    margin: 8px 0 12px;
    padding: 0;
    border: 1px solid rgba(230,106,164,.20);
    border-radius: 10px;
    overflow: hidden;
    background: #1b1f27;
}
.sp-points-page-points_list table.sp-up-ranking {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
    color: #dce4ec;
    table-layout: fixed;
}
.sp-points-page-points_list .sp-up-ranking th {
    padding: 9px 14px;
    background: #252a35;
    border-bottom: 1px solid rgba(230,106,164,.20);
    color: #f2f4f7;
    font-size: .94em;
    font-weight: 700;
    text-align: left;
}
.sp-points-page-points_list .sp-up-ranking th:last-child,
.sp-points-page-points_list .sp-up-ranking td:last-child {
    width: 160px;
    text-align: right;
}
.sp-points-page-points_list .sp-up-ranking td {
    padding: 7px 14px;
    border-bottom: 1px solid rgba(66,74,90,.32);
    vertical-align: middle;
    background: transparent;
    font-size: 1em;
    color: #dce4ec;
}
.sp-points-page-points_list .sp-up-ranking tbody tr:last-child td { border-bottom: 0; }
.sp-points-page-points_list .sp-up-ranking tbody tr:hover { background: rgba(255,255,255,.025); }
.sp-points-page-points_list .sp-up-ranking .sp-up-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    line-height: 1.35;
}
.sp-points-page-points_list .sp-up-ranking .sp-up-user-name {
    min-width: 0;
    overflow-wrap: anywhere;
}
.sp-points-page-points_list .sp-up-ranking .sp-up-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
}
.sp-points-page-points_list .sp-up-ranking .sp-up-user-avatar img,
.sp-points-page-points_list .sp-up-ranking .sp-up-user-avatar .avatar {
    display: block;
    position: static;
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    object-fit: cover;
    border-radius: 50%;
}
.sp-points-page-points_list .sp-up-ranking .sp-up-amount {
    color: #ffd0e3;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.sp-points-page-points_list .sp-up-ranking .sp-up-empty {
    padding: 18px 14px;
    text-align: center;
}
.sp-points-page-points_list .action-bar {
    min-height: 0;
    margin: 6px 0 10px;
}

@media (max-width: 980px) {
    .sp-piggy-points #cp-menu,
    .sp-piggy-points #cp-main,
    .sp-points-page-points_info #cp-menu,
    .sp-points-page-points_info #cp-main {
        float: none;
        width: 100%;
        padding-right: 0;
    }
}
@media (max-width: 700px) {
    /* No tab rules here: leave native phpBB responsive navigation intact. */
    .sp-points-page-points_list .sp-up-ranking th,
    .sp-points-page-points_list .sp-up-ranking td { padding: 8px 10px; }
    .sp-points-page-points_list .sp-up-ranking th:last-child,
    .sp-points-page-points_list .sp-up-ranking td:last-child { width: 98px; }
    .sp-points-page-points_list .sp-up-ranking .sp-up-user-avatar,
    .sp-points-page-points_list .sp-up-ranking .sp-up-user-avatar img,
    .sp-points-page-points_list .sp-up-ranking .sp-up-user-avatar .avatar {
        width: 26px; height: 26px; max-width: 26px; max-height: 26px;
    }
    .sp-points-page-points_list .sp-up-ranking .sp-up-user-avatar { flex-basis: 26px; }
    .sp-points-page-points_list .sp-up-ranking .sp-up-user { gap: 8px; }
}

/* v1.0.5: Dedicated responsive management forms.
   Avoid phpBB's .column1/.column2 and the generic dl/dt/dd rules entirely. */
.sp-piggy-points .sp-points-editor {
    width: 100%;
	max-width: none;
    min-width: 0;
    box-sizing: border-box;
    margin: 12px auto 18px;
    padding: clamp(16px, 2.1vw, 25px);
    background: linear-gradient(145deg, #232835 0%, #191d25 75%);
    border: 1px solid rgba(230, 106, 164, .23);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
    color: #dce4ec;
}
.sp-piggy-points .sp-points-editor-heading {
    margin-bottom: 17px;
}
.sp-piggy-points .sp-points-editor-heading h2 {
    font-size: 19px;
    line-height: 1.35;
    margin: 0 0 11px;
    padding: 0 0 10px;
}
.sp-piggy-points .sp-points-editor-heading p {
    margin: 0;
    color: #cbd5df;
    font-size: 15px;
    line-height: 1.55;
}
.sp-piggy-points .sp-points-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(14px, 3vw, 34px);
    align-items: start;
}
.sp-piggy-points .sp-points-editor-summary,
.sp-piggy-points .sp-points-editor-controls {
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(128, 191, 255, .12);
    border-radius: 11px;
    background: rgba(13, 17, 23, .26);
    padding: 14px 16px;
}
.sp-piggy-points .sp-points-editor-detail {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
    gap: 10px 16px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128, 191, 255, .11);
}
.sp-piggy-points .sp-points-editor-detail:first-child { padding-top: 0; }
.sp-piggy-points .sp-points-editor-detail:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.sp-piggy-points .sp-points-editor-label,
.sp-piggy-points .sp-points-editor-controls > label {
    display: block;
    margin: 0 0 7px;
    color: #cbd5df;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}
.sp-piggy-points .sp-points-editor-detail .sp-points-editor-label { margin: 0; }
.sp-piggy-points .sp-points-editor-value {
    min-width: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #f3f6fb;
    overflow-wrap: break-word;
}
.sp-piggy-points .sp-points-editor-controls > label:not(:first-child) {
    margin-top: 15px;
}
.sp-piggy-points .sp-points-editor select.sp-points-editor-method,
.sp-piggy-points .sp-points-editor-amount input.inputbox {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 39px;
    padding: 8px 11px;
    background: #13161c;
    border: 1px solid rgba(128, 191, 255, .22);
    border-radius: 9px;
    color: #f2f4f7;
    font-size: 15px;
    line-height: 1.3;
}
.sp-piggy-points .sp-points-editor select.sp-points-editor-method:focus-visible,
.sp-piggy-points .sp-points-editor-amount input.inputbox:focus-visible {
    outline: 2px solid #ff73b3;
    outline-offset: 2px;
}
.sp-piggy-points .sp-points-editor-amount {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-width: 0;
}
.sp-piggy-points .sp-points-editor-amount input.inputbox {
    flex: 1 1 160px;
    width: auto;
}
.sp-piggy-points .sp-points-editor-currency {
    color: #ffb0d3;
    font-size: 14px;
    white-space: nowrap;
}
.sp-piggy-points .sp-points-editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: none;
}
.sp-piggy-points .sp-points-editor-actions input.button1 {
    min-width: 96px;
    padding: 7px 16px;
    font-size: 14px;
    cursor: pointer;
}
@media (max-width: 850px) {
    .sp-piggy-points .sp-points-editor-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}
@media (max-width: 520px) {
    .sp-piggy-points .sp-points-editor {
        padding: 14px;
    }
    .sp-piggy-points .sp-points-editor-summary,
    .sp-piggy-points .sp-points-editor-controls {
        padding: 12px;
    }
    .sp-piggy-points .sp-points-editor-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
    .sp-piggy-points .sp-points-editor-actions {
        justify-content: flex-start;
    }
    .sp-piggy-points .sp-points-editor-actions input.button1 {
        width: 100%;
    }
}

/* v1.0.5: Dedicated responsive management forms.
   Avoid phpBB's .column1/.column2 and the generic dl/dt/dd rules entirely. */
.sp-piggy-points .sp-points-editor {
    width: 100%;
	max-width: none;
    min-width: 0;
    box-sizing: border-box;
    margin: 12px auto 18px;
    padding: clamp(16px, 2.1vw, 25px);
    background: linear-gradient(145deg, #232835 0%, #191d25 75%);
    border: 1px solid rgba(230, 106, 164, .23);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
    color: #dce4ec;
}
.sp-piggy-points .sp-points-editor-heading {
    margin-bottom: 17px;
}
.sp-piggy-points .sp-points-editor-heading h2 {
    font-size: 19px;
    line-height: 1.35;
    margin: 0 0 11px;
    padding: 0 0 10px;
}
.sp-piggy-points .sp-points-editor-heading p {
    margin: 0;
    color: #cbd5df;
    font-size: 15px;
    line-height: 1.55;
}
.sp-piggy-points .sp-points-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(14px, 3vw, 34px);
    align-items: start;
}
.sp-piggy-points .sp-points-editor-summary,
.sp-piggy-points .sp-points-editor-controls {
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(128, 191, 255, .12);
    border-radius: 11px;
    background: rgba(13, 17, 23, .26);
    padding: 14px 16px;
}
.sp-piggy-points .sp-points-editor-detail {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
    gap: 10px 16px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128, 191, 255, .11);
}
.sp-piggy-points .sp-points-editor-detail:first-child { padding-top: 0; }
.sp-piggy-points .sp-points-editor-detail:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.sp-piggy-points .sp-points-editor-label,
.sp-piggy-points .sp-points-editor-controls > label {
    display: block;
    margin: 0 0 7px;
    color: #cbd5df;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}
.sp-piggy-points .sp-points-editor-detail .sp-points-editor-label { margin: 0; }
.sp-piggy-points .sp-points-editor-value {
    min-width: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #f3f6fb;
    overflow-wrap: break-word;
}
.sp-piggy-points .sp-points-editor-controls > label:not(:first-child) {
    margin-top: 15px;
}
.sp-piggy-points .sp-points-editor select.sp-points-editor-method,
.sp-piggy-points .sp-points-editor-amount input.inputbox {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 39px;
    padding: 8px 11px;
    background: #13161c;
    border: 1px solid rgba(128, 191, 255, .22);
    border-radius: 9px;
    color: #f2f4f7;
    font-size: 15px;
    line-height: 1.3;
}
.sp-piggy-points .sp-points-editor select.sp-points-editor-method:focus-visible,
.sp-piggy-points .sp-points-editor-amount input.inputbox:focus-visible {
    outline: 2px solid #ff73b3;
    outline-offset: 2px;
}
.sp-piggy-points .sp-points-editor-amount {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-width: 0;
}
.sp-piggy-points .sp-points-editor-amount input.inputbox {
    flex: 1 1 160px;
    width: auto;
}
.sp-piggy-points .sp-points-editor-currency {
    color: #ffb0d3;
    font-size: 14px;
    white-space: nowrap;
}
.sp-piggy-points .sp-points-editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: none;
}
.sp-piggy-points .sp-points-editor-actions input.button1 {
    min-width: 96px;
    padding: 7px 16px;
    font-size: 14px;
    cursor: pointer;
}
@media (max-width: 850px) {
    .sp-piggy-points .sp-points-editor-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}
@media (max-width: 520px) {
    .sp-piggy-points .sp-points-editor {
        padding: 14px;
    }
    .sp-piggy-points .sp-points-editor-summary,
    .sp-piggy-points .sp-points-editor-controls {
        padding: 12px;
    }
    .sp-piggy-points .sp-points-editor-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
    .sp-piggy-points .sp-points-editor-actions {
        justify-content: stretch;
    }
    .sp-piggy-points .sp-points-editor-actions input.button1 {
        width: 100%;
    }
}


/* 1.0.6: compact index statistics and top users (Lucid Lime) */
/* These selectors intentionally apply only to the two PiggyCoins index panels. */
.sp-piggy-index {
    margin: 16px 0 0;
    color: #dce4ec;
}

.sp-piggy-index > h3 {
    margin: 0 0 12px;
}

.sp-piggy-index > h3 .icon {
    color: #e66aa4;
    margin-right: 5px;
}

.sp-piggy-index-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
    gap: 10px;
    margin: 0 0 6px;
}

.sp-piggy-index-stat {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(230,106,164,.18);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(34,39,51,.85), rgba(23,27,35,.82));
    box-sizing: border-box;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.sp-piggy-index-stat > .icon {
    flex: 0 0 20px;
    width: 20px;
    margin-top: 3px;
    color: #ff9fc9;
    text-align: center;
}

.sp-piggy-index-stat span {
    flex: 1;
    min-width: 0;
    color: #dce4ec;
}

.sp-piggy-index a { color: #ffb0d3; }
.sp-piggy-index a:hover, .sp-piggy-index a:focus-visible { color: #ffffff; }

.sp-piggy-rich-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
    gap: 8px;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}

.sp-piggy-rich-item {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 56px;
    gap: 10px;
    padding: 8px 12px;
    box-sizing: border-box;
    border: 1px solid rgba(230,106,164,.16);
    border-radius: 10px;
    background: rgba(27,31,39,.85);
    transition: border-color .15s ease;
}

.sp-piggy-rich-item:hover { border-color: rgba(230,106,164,.40); }

.sp-piggy-rich-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(230,106,164,.12);
    color: #ffb0d3;
    font-size: .9em;
    font-weight: 700;
}

.sp-piggy-rich-item:nth-child(1) .sp-piggy-rich-rank {
    background: rgba(255,198,85,.13);
    color: #ffdf92;
}

.sp-piggy-rich-avatar {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #181c23;
    border: 1px solid rgba(230,106,164,.24);
    box-sizing: border-box;
}

/* phpBB generates native width/height attributes; override only on the index. */
.sp-piggy-index .sp-piggy-rich-avatar img,
.sp-piggy-index .sp-piggy-rich-avatar .avatar {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    object-fit: cover;
    border-radius: 50%;
}

.sp-piggy-rich-name {
    min-width: 0;
    flex: 1 1 auto;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.sp-piggy-rich-balance {
    flex: 0 0 auto;
    max-width: 46%;
    color: #f2b6d2;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.sp-piggy-rich-balance small {
    font-size: .85em;
    font-weight: 500;
    color: #aeb8c3;
}

@media (max-width: 600px) {
    .sp-piggy-index-stats-grid,
    .sp-piggy-rich-list {
        grid-template-columns: minmax(0, 1fr);
    }
    .sp-piggy-index-stat { padding: 10px 12px; }
    .sp-piggy-rich-item { padding: 7px 10px; min-height: 52px; }
    .sp-piggy-rich-avatar { width: 34px; height: 34px; min-width: 34px; min-height: 34px; flex-basis: 34px; }
}
