.build-page .container {
    max-width: 90rem;
}

.build-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.build-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(30, 30, 70, 0.45);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
}

.build-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.build-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
}

.build-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.build-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-template-rows: auto minmax(20rem, auto);
    gap: 1rem;
}

.build-panel {
    position: relative;
    overflow: hidden;
    background: rgba(18, 18, 48, 0.72);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 1.125rem;
    box-shadow: var(--shadow-soft);
    min-height: 0;
}

.build-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.build-panel-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem;
}

.build-panel-title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
}

.build-panel-hint {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.build-panel-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 17.5rem;
}

.build-panel-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1rem 1.875rem rgba(0, 0, 0, 0.35));
}

.build-equipment .build-panel-inner {
    padding: 0.35rem;
}

.build-equipment-board {
    position: relative;
    width: 100%;
    height: auto;
}

.build-equipment-clear {
    position: absolute;
    top: 0.625rem;
    right: 1.25rem;
    z-index: 4;
    width: 2.25rem;
    height: 2.25rem;
    border: 0.0625rem solid rgba(129, 140, 248, 0.45);
    border-radius: 0.5625rem;
    background: rgba(49, 46, 129, 0.92);
    color: #22d3ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.build-equipment-clear:hover {
    transform: translateY(-0.0625rem);
    border-color: rgba(165, 180, 252, 0.72);
    background: rgba(67, 56, 202, 0.95);
}

.build-equipment-base {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 92%;
    object-fit: contain;
    filter: none;
}

.build-equipment-slots {
    position: absolute;
    inset: 0;
}

.build-equipment-slot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 18%;
    height: 16%;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.build-equipment-slot.is-ring {
    width: 20%;
    height: 15%;
}

.build-equipment-slot.is-tall {
    height: 19%;
}

.build-equipment-slot.is-shoes {
    width: 17%;
    height: 14%;
}

.build-equipment-slot-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translateY(-6%);
    filter: drop-shadow(0 0.5rem 0.875rem rgba(0, 0, 0, 0.35));
}

.build-equipment-slot-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    font-size: 0.95rem;
    font-weight: 800;
    text-shadow:
        -0.0625rem -0.0625rem 0 #fff,
         0.0625rem -0.0625rem 0 #fff,
        -0.0625rem  0.0625rem 0 #fff,
         0.0625rem  0.0625rem 0 #fff,
         0 0 0.5rem rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.build-artifact-picker {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.3rem;
    border-radius: 0.625rem;
    background: rgba(15, 23, 42, 0.94);
    border: 0.0625rem solid rgba(129, 140, 248, 0.45);
    box-shadow: 0 0.625rem 1.5rem rgba(0, 0, 0, 0.28);
}

.build-artifact-picker[hidden] {
    display: none;
}

.build-artifact-picker-list {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    width: 13.75rem;
    max-height: 18.75rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.build-artifact-option {
    display: grid;
    grid-template-columns: 2.125rem minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.3rem 0.4rem;
    border: 0.0625rem solid rgba(129, 140, 248, 0.2);
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.95);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
}

.build-artifact-option:hover {
    border-color: rgba(165, 180, 252, 0.6);
    background: rgba(51, 65, 85, 0.98);
}

.build-artifact-option.is-selected {
    border-color: rgba(250, 204, 21, 0.72);
    background: rgba(67, 56, 202, 0.28);
}

.build-artifact-option-image {
    width: 2.125rem;
    height: 2.125rem;
    object-fit: contain;
}

.build-artifact-option-name {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

.build-artifact-option-tier {
    display: block;
    color: var(--text-secondary);
    font-size: 0.66rem;
    line-height: 1.15;
}

.build-artifact-picker-close {
    width: 1.5rem;
    height: 1.5rem;
    border: 0;
    border-radius: 62.4375rem;
    background: rgba(99, 102, 241, 0.22);
    color: #e0e7ff;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}

.build-equipment {
    grid-column: 1;
    grid-row: 2;
}

.build-skills {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.build-top {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    width: 100%;
    max-width: 21.25rem;
}

.build-top .build-panel-inner {
    width: 100%;
    padding: 0.45rem;
    gap: 0;
}

.build-bottom {
    grid-column: 3;
    grid-row: 1 / span 2;
    height: clamp(32.5rem, calc(100vh - 11.25rem), 47.5rem);
}

.build-bottom .build-panel-inner {
    height: 100%;
    overflow: hidden;
}

.build-skills .build-panel-inner {
    height: 100%;
    padding: 0.8rem;
}

.build-skills-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.build-skills-link {
    border: 0.0625rem solid rgba(129, 140, 248, 0.45);
    border-radius: 62.4375rem;
    padding: 0.22rem 0.65rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(139, 92, 246, 0.2));
    color: #eef2ff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.build-skills-link:hover {
    transform: translateY(-0.0625rem);
    border-color: rgba(165, 180, 252, 0.78);
    box-shadow: 0 0.5rem 1.125rem rgba(79, 70, 229, 0.18);
}

.build-skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    height: 100%;
}

.build-level-actions {
    display: flex;
    align-items: center;
    gap: 0.28rem;
}

.build-icon-detail {
    position: relative;
    width: 1rem;
    height: 0.625rem;
    border: 0.1rem solid rgba(226, 232, 240, 0.88);
    border-radius: 100% / 70%;
    transition: border-color 0.18s ease, opacity 0.18s ease;
}

.build-icon-detail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 62.4375rem;
    background: #e2e8f0;
    transform: translate(-50%, -50%);
    transition: background 0.18s ease, opacity 0.18s ease;
}

.build-stat-toggle-button:not(.is-active) .build-icon-detail {
    opacity: 0.5;
}

.build-stat-toggle-button.is-active .build-icon-detail {
    border-color: rgba(34, 211, 238, 0.95);
}

.build-stat-toggle-button.is-active .build-icon-detail::after {
    background: rgba(34, 211, 238, 0.95);
}

.build-stat-toggle-button {
    border-radius: 62.4375rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(139, 92, 246, 0.2));
    box-shadow: 0 0.5rem 1.125rem rgba(79, 70, 229, 0.18);
}

.build-stat-toggle-button:hover {
    border-color: rgba(165, 180, 252, 0.78);
    box-shadow: 0 0.625rem 1.5rem rgba(79, 70, 229, 0.22);
}

.build-icon-clear {
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 700;
}

.build-skill-row-card {
    display: flex;
    align-items: stretch;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    padding: 0.28rem;
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.72));
    box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.03);
}

.build-skill-row-bg {
    display: none;
}

.build-skill-slot-track {
    display: grid;
    grid-template-columns: 1.18fr repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.32rem;
    width: 100%;
    min-height: 0;
}

.build-skill-slot {
    display: flex;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
    border-radius: 0.625rem;
    border: 0.0625rem solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.02);
}

.build-skill-slot:first-child {
    border: 0.125rem solid rgba(250, 204, 21, 0.7);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.32), rgba(120, 53, 15, 0.36));
    box-shadow:
        inset 0 0 1.125rem rgba(251, 191, 36, 0.18),
        0 0 0 0.0625rem rgba(251, 191, 36, 0.16),
        0 0.5rem 1.125rem rgba(120, 53, 15, 0.18);
}

.build-skill-slot.is-ultimate {
    border: 0;
    background: transparent;
    box-shadow:
        0 0 0 0.0625rem rgba(56, 189, 248, 0.18),
        0 0.5rem 1.125rem rgba(30, 64, 175, 0.2);
}

.build-skill-slot.is-ultimate::before,
.build-skill-slot.is-ultimate::after {
    content: '';
    position: absolute;
    border-radius: inherit;
}

.build-skill-slot.is-ultimate::before {
    inset: -42%;
    background: conic-gradient(
        rgba(45, 212, 191, 0.02) 0deg,
        rgba(45, 212, 191, 0.96) 65deg,
        rgba(253, 224, 71, 0.7) 120deg,
        rgba(56, 189, 248, 0.22) 180deg,
        rgba(99, 102, 241, 0.9) 255deg,
        rgba(45, 212, 191, 0.18) 315deg,
        rgba(45, 212, 191, 0.96) 360deg
    );
    animation: build-ultimate-frame-spin 3.2s linear infinite;
}

.build-skill-slot.is-ultimate::after {
    inset: 0.125rem;
    z-index: 1;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: inset 0 0 0.625rem rgba(45, 212, 191, 0.08);
}

@keyframes build-ultimate-frame-spin {
    to { transform: rotate(360deg); }
}

.build-skill-slot img,
.build-skill-slot-empty {
    display: block;
    position: relative;
    z-index: 2;
    width: min(100%, 2.375rem);
    height: min(100%, 2.375rem);
    object-fit: contain;
    object-position: center;
}

.build-skill-slot:first-child img,
.build-skill-slot:first-child .build-skill-slot-empty {
    width: min(100%, 2.625rem);
    height: min(100%, 2.625rem);
}

.build-skill-slot-empty {
    border-radius: 0.5rem;
    border: 0.0625rem dashed rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.build-top-grid {
    display: grid;
    grid-template-columns: 6.75rem minmax(0, 1fr);
    gap: 0.4rem;
    justify-content: start;
    align-items: start;
}

.build-top-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.build-avatar-card,
.build-stats-card,
.build-save-card {
    min-height: 8.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    border-radius: 0.625rem;
    padding: 0.3rem;
}

.build-save-card {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 0;
    width: 100%;
}

.build-avatar-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    padding-top: 0.2rem;
}

.build-avatar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 5.25rem);
    min-height: 5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 1.125rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.build-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    height: 2rem;
    padding: 0 0.82rem;
    border: 0.0625rem solid rgba(245, 158, 11, 0.34);
    border-radius: 62.4375rem;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.18));
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.build-avatar-shell .build-share-button {
    width: min(100%, 5.25rem);
    min-width: 0;
    height: 1.72rem;
    padding: 0 0.5rem;
    font-size: 0.68rem;
}

.build-save-card .build-share-button {
    width: auto;
    min-width: 0;
    height: 2rem;
    padding: 0 0.72rem;
    font-size: 0.72rem;
}

.build-share-button:hover {
    transform: translateY(-0.0625rem);
    border-color: rgba(245, 158, 11, 0.52);
    box-shadow: 0 0.625rem 1.375rem rgba(245, 158, 11, 0.2);
}

.build-avatar-button:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.625rem 1.5rem rgba(79, 70, 229, 0.2);
}

.build-avatar-image {
    width: min(100%, 4.25rem);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.625rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.24);
    background: rgba(0, 0, 0, 0.2);
}

.build-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 4.25rem);
    aspect-ratio: 1;
    border-radius: 0.625rem;
    border: 0.0625rem dashed rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
    box-shadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.02);
}

.build-avatar-caption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.64rem;
    line-height: 1.2;
}

.build-avatar-caption strong {
    color: var(--text-primary);
}

.build-hero-trait-preview {
    position: fixed;
    z-index: 1200;
    pointer-events: none;
    padding: 0.35rem;
    border-radius: 0.875rem;
    background: rgba(15, 23, 42, 0.92);
    border: 0.0625rem solid rgba(129, 140, 248, 0.45);
    box-shadow: 0 1.125rem 2.25rem rgba(0, 0, 0, 0.35);
}

.build-hero-trait-preview-image {
    display: block;
    width: 26.25rem;
    max-width: calc(100vw - 3rem);
    height: auto;
    max-height: calc(100vh - 3rem);
    object-fit: contain;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.04);
}

.build-artifact-hover-preview {
    position: fixed;
    z-index: 1200;
    pointer-events: none;
    width: min(20rem, calc(100vw - 2rem));
    padding: 0.55rem 0.65rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.96);
    border: 0.0625rem solid rgba(129, 140, 248, 0.45);
    box-shadow: 0 1.125rem 2.25rem rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
}

.build-artifact-hover-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.build-artifact-hover-meta {
    margin-top: 0.18rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.25;
}

.build-artifact-hover-text {
    margin-top: 0.45rem;
    color: #e2e8f0;
    font-size: 0.74rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.build-artifact-hover-block + .build-artifact-hover-block {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 0.0625rem solid rgba(148, 163, 184, 0.18);
}

.build-artifact-hover-set-title {
    margin-bottom: 0.32rem;
    color: #c4b5fd;
    font-weight: 700;
}

.build-artifact-hover-subtitle {
    margin-top: 0.28rem;
    margin-bottom: 0.16rem;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.build-artifact-hover-set-count {
    color: #94a3b8;
    font-weight: 600;
}

.build-set-bonus-line {
    display: block;
    color: #cbd5e1;
}

.build-set-bonus-line.is-active {
    color: #f59e0b;
    font-weight: 700;
}

.build-inline-highlight {
    color: #f59e0b;
    font-weight: 700;
}

.build-skill-hover-preview {
    position: fixed;
    z-index: 1200;
    pointer-events: none;
    width: min(21.25rem, calc(100vw - 2rem));
    padding: 0.55rem 0.65rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.97);
    border: 0.0625rem solid rgba(250, 204, 21, 0.38);
    box-shadow: 0 1.125rem 2.25rem rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
}

.build-skill-hover-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fde68a;
}

.build-skill-hover-text {
    margin-top: 0.4rem;
    color: #e2e8f0;
    font-size: 0.74rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.build-level-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.build-save-select {
    flex: 1 1 auto;
    min-width: 0;
    height: 2rem;
    padding: 0 0.55rem;
    border: 0.0625rem solid rgba(129, 140, 248, 0.38);
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 600;
}

.build-save-select:focus {
    outline: none;
    border-color: rgba(165, 180, 252, 0.82);
    box-shadow: 0 0 0 0.125rem rgba(99, 102, 241, 0.14);
}

.build-save-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.4rem;
    align-items: center;
    width: 100%;
}

.build-save-local-button {
    border-color: rgba(129, 140, 248, 0.36);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.18), rgba(79, 70, 229, 0.18));
    color: #c7d2fe;
}

.build-save-local-button:hover {
    border-color: rgba(165, 180, 252, 0.52);
    box-shadow: 0 0.625rem 1.375rem rgba(99, 102, 241, 0.2);
}

.build-level-control {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.build-level-label {
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.build-level-input {
    width: 2.75rem;
    height: 1.5rem;
    padding: 0 0.28rem;
    border: 0.0625rem solid rgba(129, 140, 248, 0.45);
    border-radius: 0.4375rem;
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.build-level-input::-webkit-outer-spin-button,
.build-level-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.build-level-input:focus {
    outline: none;
    border-color: rgba(165, 180, 252, 0.85);
    box-shadow: 0 0 0 0.125rem rgba(99, 102, 241, 0.16);
}

.build-level-stepper {
    display: inline-flex;
    flex-direction: column;
    gap: 0.14rem;
}

.build-level-adjust {
    border: 0.0625rem solid rgba(129, 140, 248, 0.45);
    border-radius: 0.375rem;
    width: 1.25rem;
    height: 0.875rem;
    padding: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(139, 92, 246, 0.2));
    color: #e0e7ff;
    font-size: 0.56rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.build-level-adjust:hover:not(:disabled) {
    transform: translateY(-0.0625rem);
    border-color: rgba(165, 180, 252, 0.78);
    box-shadow: 0 0.375rem 0.875rem rgba(79, 70, 229, 0.18);
}

.build-level-adjust:disabled {
    opacity: 0.42;
    cursor: default;
}

.build-reroll-button {
    border: 0.0625rem solid rgba(129, 140, 248, 0.45);
    border-radius: 62.4375rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(139, 92, 246, 0.2));
    color: #e0e7ff;
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.build-reroll-button:hover {
    transform: translateY(-0.0625rem);
    border-color: rgba(165, 180, 252, 0.78);
    box-shadow: 0 0.5rem 1.125rem rgba(79, 70, 229, 0.18);
}

.build-attribute-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.22rem;
    margin: 0;
    padding: 0;
}

.build-attribute-item {
    display: grid;
    grid-template-columns: 0.9375rem auto;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.24rem;
    border-radius: 0.4375rem;
    background: rgba(255, 255, 255, 0.04);
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
}

.build-attribute-icon {
    width: 0.875rem;
    height: 0.875rem;
    object-fit: contain;
}

.build-attribute-value {
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 600;
    justify-self: end;
    white-space: nowrap;
}

.build-stat-breakdown {
    color: rgba(226, 232, 240, 0.82);
}

.build-stat-base-highlight {
    color: #fbbf24;
    font-weight: 700;
}

.build-stat-total {
    color: var(--text-primary);
}

.build-stat-total-up {
    color: #34d399;
}

.build-stat-total-down {
    color: #f87171;
}

.build-trait-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.build-trait-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.04);
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
}

.build-trait-item.is-set-active {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.04));
}

.build-trait-name {
    flex: 0 0 auto;
    color: #dbeafe;
    font-weight: 600;
    white-space: nowrap;
}

.build-trait-desc {
    display: block;
    flex: 1 1 auto;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.build-trait-item.is-set-active .build-trait-name,
.build-trait-item.is-set-active .build-trait-desc {
    color: #fbbf24;
}

@media (max-width: 73.75rem) {
    .build-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(18.75rem, auto) minmax(18.75rem, auto) minmax(18.75rem, auto);
    }

    .build-top {
        grid-column: 1 / span 2;
        grid-row: 1;
    }

    .build-equipment {
        grid-column: 1;
        grid-row: 2;
    }

    .build-skills {
        grid-column: 2;
        grid-row: 2;
    }

    .build-bottom {
        grid-column: 1 / span 2;
        grid-row: 3;
    }
}

@media (max-width: 48rem) {
    .build-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .build-layout {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }

    .build-equipment,
    .build-skills,
    .build-top,
    .build-bottom {
        grid-column: 1;
        grid-row: auto;
    }

    .build-top-grid {
        grid-template-columns: 1fr;
    }

    .build-skills .build-panel-inner {
        height: auto;
        min-height: 0;
    }

    .build-skills-grid {
        height: auto;
    }

    .build-skill-row-card {
        min-height: 4.5rem;
    }

    .build-skill-slot-track {
        gap: 0.24rem;
    }

    .build-top-side {
        gap: 0.32rem;
    }

    .build-attribute-list {
        grid-template-columns: 1fr;
    }

    .build-level-row {
        flex-wrap: wrap;
    }

    .build-save-actions {
        flex-wrap: wrap;
    }

    .build-save-select {
        flex: 1 1 100%;
        min-width: 0;
    }

}
