body {
    background: var(--theme-raw-f3f3f1);
}

.builder-page {
    padding: 28px 0 60px;
}

.builder-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 35px;
    padding: 34px 40px;
    background: var(--theme-raw-0a0b0d);
    color: var(--theme-raw-fff);
    border: 1px solid var(--theme-raw-0a0b0d);
    margin-bottom: 22px;
}

.builder-kicker {
    display: inline-block;
    margin-bottom: 10px;
    background: var(--theme-raw-e9ff16);
    color: var(--theme-raw-08090b);
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .8px;
}

.builder-hero h1 {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: clamp(36px, 4.8vw, 60px);
    line-height: 1.02;
    letter-spacing: -1.5px;
    font-weight: 700;
}

.builder-hero p {
    max-width: 720px;
    margin: 15px 0 0;
    color: var(--theme-raw-d7d7da);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
}

.builder-badge {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--theme-raw-e9ff16);
    color: var(--theme-raw-08090b);
    border: 4px solid var(--theme-raw-fff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: end;
    text-align: center;
    transform: rotate(5deg);
    box-shadow: 7px 7px 0 var(--theme-raw-ef243f);
    font-size: 12px;
    font-weight: 650;
}

.builder-badge b {
    margin: 3px 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
}

.builder-error {
    margin-bottom: 18px;
    padding: 12px 15px;
    background: var(--theme-raw-ffdce1);
    border: 1px solid var(--theme-raw-ef243f);
    color: var(--theme-raw-7c1020);
    font-size: 13px;
    font-weight: 600;
}

.builder-form {
    display: grid;
    gap: 14px;
}

.builder-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    background: var(--theme-raw-fff);
    border: 1px solid var(--theme-raw-111216);
}

.builder-step {
    display: grid;
    place-items: center;
    background: var(--theme-raw-111216);
    color: var(--theme-raw-e9ff16);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 700;
}

.builder-card-body {
    padding: 22px 25px;
}

.builder-card-body.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.builder-card label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 650;
}

.builder-card small {
    display: block;
    margin-top: 7px;
    color: var(--theme-raw-777980);
    font-size: 11px;
    font-weight: 400;
}

.builder-card input,
.builder-card textarea,
.builder-card select {
    width: 100%;
    border: 1px solid var(--theme-raw-bfc0c4);
    background: var(--theme-raw-fafafa);
    color: var(--theme-raw-111216);
    padding: 12px 13px;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 15px;
    outline: none;
}

.builder-card input[type="file"] {
    background: var(--theme-raw-fff);
    padding: 10px;
}

.builder-card textarea {
    resize: vertical;
}

.builder-card input:focus,
.builder-card textarea:focus,
.builder-card select:focus {
    border-color: var(--theme-raw-111216);
    box-shadow: 0 0 0 2px var(--theme-raw-e9ff16);
}

.items-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 8px;
}

.items-heading label {
    margin-bottom: 2px;
}

.items-heading small {
    margin: 0;
}

#itemCount {
    flex: 0 0 auto;
    background: var(--theme-raw-111216);
    color: var(--theme-raw-fff);
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 650;
}

.items-card textarea {
    min-height: 260px;
    line-height: 1.6;
}

.builder-tip {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 5px solid var(--theme-raw-e9ff16);
    background: var(--theme-raw-f4f4f2);
    color: var(--theme-raw-55575d);
    font-size: 11px;
}

.builder-tip strong {
    color: var(--theme-raw-111216);
    margin-right: 6px;
    font-weight: 650;
}

.item-image-fields {
    display: grid;
    gap: 10px;
}

.item-image-row {
    display: grid;
    grid-template-columns: minmax(0, 230px) 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--theme-raw-d4d5d8);
    background: var(--theme-raw-fafafa);
}

.item-image-name {
    font-size: 13px;
    font-weight: 650;
}

.empty-image-note {
    padding: 15px;
    border: 1px dashed var(--theme-raw-c7c8cc);
    background: var(--theme-raw-fafafa);
    color: var(--theme-raw-7a7b80);
    font-size: 12px;
}

.publish-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 22px 25px;
    background: var(--theme-raw-fff);
    border: 1px solid var(--theme-raw-111216);
}

.publish-card strong {
    font-size: 15px;
    font-weight: 650;
}

.publish-card p {
    margin: 4px 0 0;
    color: var(--theme-raw-74767c);
    font-size: 12px;
}

.publish-btn {
    border: 2px solid var(--theme-raw-111216);
    background: var(--theme-raw-e9ff16);
    color: var(--theme-raw-08090b);
    padding: 14px 20px;
    font-weight: 650;
    box-shadow: 4px 4px 0 var(--theme-raw-111216);
}

.publish-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--theme-raw-111216);
}

@media (max-width: 760px) {
    .builder-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .builder-badge {
        display: none;
    }

    .builder-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .builder-step {
        font-size: 19px;
    }

    .builder-card-body {
        padding: 18px;
    }

    .builder-card-body.two-col {
        grid-template-columns: 1fr;
    }

    .item-image-row {
        grid-template-columns: 1fr;
    }

    .publish-card {
        flex-direction: column;
        align-items: stretch;
    }

    .publish-btn {
        width: 100%;
    }
}


/* ============================================================
   BattleRanker Builder — Electric Yellow Theme 1
   Shared by Create Ranking and Edit Ranking.
   ============================================================ */

.theme-builder-electric{
    background:
        radial-gradient(circle at 10% 0,var(--theme-raw-rgba-231-255-0-045-5d766f),transparent 390px),
        var(--theme-bg)!important;
    color:var(--theme-text);
}

.theme-builder-electric .breadcrumb-bar{
    background:var(--theme-bg-deep)!important;
    border-bottom:1px solid var(--theme-border)!important;
    color:var(--theme-text-muted)!important;
}
.theme-builder-electric .breadcrumb strong{
    color:var(--theme-page-accent)!important;
}

.theme-builder-electric .builder-page{
    background:transparent!important;
}

.theme-builder-electric .builder-hero{
    position:relative;
    overflow:hidden;
    border:1px solid var(--theme-border)!important;
    border-left:4px solid var(--theme-page-accent)!important;
    border-radius:11px!important;
    background:
        radial-gradient(circle at 88% 20%,var(--theme-raw-rgba-231-255-0-08-1625d1),transparent 28%),
        linear-gradient(135deg,var(--theme-raw-131924),var(--theme-raw-080c15))!important;
    color:var(--theme-raw-fff)!important;
    box-shadow:0 14px 34px var(--theme-raw-rgba-0-0-0-20-d5b06a);
}

.theme-builder-electric .builder-hero::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        repeating-radial-gradient(circle at 0 0,var(--theme-raw-rgba-231-255-0-08-1625d1) 0 1px,transparent 1px 11px);
    opacity:.12;
}

.theme-builder-electric .builder-hero > *{
    position:relative;
    z-index:1;
}

.theme-builder-electric .builder-kicker{
    background:var(--theme-page-accent)!important;
    color:var(--theme-ink)!important;
    border-radius:4px;
    box-shadow:3px 3px 0 var(--theme-shadow-deep);
}

.theme-builder-electric .builder-hero h1{
    color:var(--theme-raw-fff)!important;
    font-style:italic;
    text-transform:uppercase;
    letter-spacing:-.035em;
}

.theme-builder-electric .builder-hero p{
    color:var(--theme-raw-b7becf)!important;
}

.theme-builder-electric .builder-badge{
    border:3px solid var(--theme-page-accent)!important;
    background:var(--theme-raw-0d1322)!important;
    color:var(--theme-raw-fff)!important;
    box-shadow:7px 7px 0 var(--theme-page-accent)!important;
}
.theme-builder-electric .builder-badge b{
    color:var(--theme-page-accent)!important;
}

.theme-builder-electric .builder-error,
.theme-builder-electric .builder-success{
    border:1px solid var(--theme-border)!important;
    border-left:4px solid var(--theme-page-accent)!important;
    border-radius:6px;
    background:var(--theme-raw-151b34)!important;
    color:var(--theme-raw-fff)!important;
}

.theme-builder-electric .builder-error{
    border-left-color:var(--theme-battle-left)!important;
    background:var(--theme-raw-rgba-255-23-77-08-5c8e99)!important;
}

.theme-builder-electric .builder-card{
    border:1px solid var(--theme-border)!important;
    border-radius:8px!important;
    overflow:hidden;
    background:var(--theme-surface)!important;
}

.theme-builder-electric .builder-step{
    background:var(--theme-raw-0c1122)!important;
    color:var(--theme-page-accent)!important;
    border-right:1px solid var(--theme-border);
}

.theme-builder-electric .builder-card-body{
    background:var(--theme-surface)!important;
}

.theme-builder-electric .builder-card label{
    color:var(--theme-raw-fff)!important;
}

.theme-builder-electric .builder-card small,
.theme-builder-electric .items-heading small{
    color:var(--theme-raw-8992a9)!important;
}

.theme-builder-electric .builder-card input,
.theme-builder-electric .builder-card textarea,
.theme-builder-electric .builder-card select{
    border:1px solid var(--theme-raw-46506d)!important;
    border-radius:5px!important;
    background:var(--theme-raw-0d1329)!important;
    color:var(--theme-raw-fff)!important;
}

.theme-builder-electric .builder-card input[type="file"]{
    background:var(--theme-raw-10162d)!important;
}

.theme-builder-electric .builder-card input:focus,
.theme-builder-electric .builder-card textarea:focus,
.theme-builder-electric .builder-card select:focus{
    border-color:var(--theme-page-accent)!important;
    box-shadow:0 0 0 2px var(--theme-raw-rgba-231-255-0-22-cb9295)!important;
}

.theme-builder-electric #itemCount{
    background:var(--theme-page-accent)!important;
    color:var(--theme-ink)!important;
    border-radius:4px;
}

.theme-builder-electric .builder-tip{
    border-left-color:var(--theme-page-accent)!important;
    background:var(--theme-raw-10162d)!important;
    color:var(--theme-raw-9ca5ba)!important;
}
.theme-builder-electric .builder-tip strong{
    color:var(--theme-page-accent)!important;
}

.theme-builder-electric .item-image-row,
.theme-builder-electric .empty-image-note{
    border-color:var(--theme-raw-3d4665)!important;
    background:var(--theme-raw-11172e)!important;
    color:var(--theme-raw-fff)!important;
}

.theme-builder-electric .publish-card{
    border:1px solid var(--theme-border)!important;
    border-left:4px solid var(--theme-page-accent)!important;
    border-radius:8px!important;
    background:var(--theme-raw-11172e)!important;
}

.theme-builder-electric .publish-card strong{
    color:var(--theme-raw-fff)!important;
}
.theme-builder-electric .publish-card p{
    color:var(--theme-raw-9099af)!important;
}

.theme-builder-electric .publish-btn{
    border-color:var(--theme-page-accent)!important;
    border-radius:6px!important;
    background:var(--theme-page-accent)!important;
    color:var(--theme-ink)!important;
    box-shadow:4px 4px 0 var(--theme-shadow-deep)!important;
}
.theme-builder-electric .publish-btn:hover{
    background:var(--theme-raw-f2ff54)!important;
}

@media(max-width:760px){
    .theme-builder-electric .builder-badge{
        display:none!important;
    }

    .theme-builder-electric .builder-hero{
        grid-template-columns:1fr!important;
        padding:24px 22px!important;
    }

    .theme-builder-electric .builder-card{
        grid-template-columns:54px minmax(0,1fr)!important;
    }

    .theme-builder-electric .builder-step{
        font-size:20px!important;
    }

    .theme-builder-electric .builder-card-body{
        padding:18px 16px!important;
    }
}
