:root {
    --bg-color: #000;
    --surface-color: #0a0a0a;
    --primary-purple: #9333ea;
    --glow-purple: rgba(147, 51, 234, 0.4);
    --muted-text: #a7b0c0;
    --soft-text: #cbd5e1;
}

html,
body,
#app,
#rdpedia-main {
    font-family: 'Inter', sans-serif;
    background-color: #000;
}

body {
    color: #f8fafc;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Rajdhani', sans-serif;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #3b0764;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}

.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-panel {
    background: rgba(14, 14, 18, 0.74);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top: 1px solid rgba(147, 51, 234, 0.28);
}

.gallery-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.gallery-card:hover {
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 10px 30px -10px var(--glow-purple);
    transform: translateY(-5px);
}

.player-card {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 8px;
    background: #050505;
}

.player-card__character {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.35rem 0;
    overflow: hidden;
}

.avatar-stage--player-card {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
}

.player-card__footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 3.75rem;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    background: #080808;
}

.player-card__identity {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.player-card__pfp {
    width: 2.1rem;
    height: 2.1rem;
    flex: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 5px;
    object-fit: cover;
    background: #000;
}

.player-card__name-wrap {
    min-width: 0;
}

.player-card__name {
    overflow: hidden;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-card__guest {
    display: block;
    margin-top: 0.2rem;
    color: #c084fc;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.player-card__link {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex: none;
    color: #c084fc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.player-card__link svg {
    width: 0.75rem;
    height: 0.75rem;
}

.player-card:hover .player-card__name,
.player-card:focus-visible .player-card__name {
    color: #c084fc;
}

@media (max-width: 520px) {
    .player-card__footer {
        align-items: flex-end;
        padding: 0.55rem;
    }

    .player-card__pfp {
        width: 1.75rem;
        height: 1.75rem;
    }

    .player-card__name {
        max-width: 4.5rem;
        font-size: 0.78rem;
    }

    .player-card__link {
        font-size: 0.58rem;
    }
}

.ambient-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: -1;
    pointer-events: none;
}

.stat-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(147, 51, 234, 0.05);
    border-color: rgba(147, 51, 234, 0.2);
}

.tier-badge {
    background: linear-gradient(135deg, #a855f7, #6b21a8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    background: linear-gradient(to bottom, #fff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rdp-hero {
    min-height: min(76vh, 760px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #000;
}

.rdp-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.rdp-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.32) 58%, rgba(0, 0, 0, 0.88));
}

.rdp-hero__content {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 3rem));
    padding: 0 0 4.5rem;
    text-align: center;
}

.home-action,
.join-rdp,
.contacts-placeholder {
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.045);
    padding: 1.5rem;
}

.home-action {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.home-action__button {
    align-self: flex-start;
    border-radius: 0.75rem;
    background: #7e22ce;
    padding: 0.85rem 1.35rem;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-action__button:hover {
    background: #9333ea;
    transform: translateY(-1px);
}

.join-rdp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.contacts-placeholder {
    min-height: 220px;
}

.contact-slot {
    min-height: 72px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
    .rdp-hero {
        min-height: 58vh;
    }

    .rdp-hero__content {
        padding-bottom: 3rem;
    }

    .join-rdp {
        align-items: flex-start;
        flex-direction: column;
    }
}

.form-control {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.075);
    padding: 0.85rem 1rem;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-control:focus {
    border-color: rgba(147, 51, 234, 0.65);
    background: rgba(255, 255, 255, 0.11);
}

.players-heading {
    margin-bottom: 1.75rem;
}

.site-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem max(1.5rem, calc((100vw - 80rem) / 2));
    background: #030303;
    color: #6b7280;
}

.site-footer__sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    min-height: 4.5rem;
}

.site-footer__section h2 {
    margin: 0 0 0.65rem;
    color: #d1d5db;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.site-footer__section--feedback {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0.1rem;
    text-align: right;
}

.site-footer__section a {
    color: #c084fc;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.site-footer__section a:hover,
.site-footer__section a:focus-visible {
    color: #fff;
}

.site-footer__empty {
    min-height: 1.25rem;
}

.site-footer__meta {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.feedback-page {
    position: relative;
    width: min(100%, 52rem);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.feedback-back {
    position: static;
    margin-bottom: 1.5rem;
}

.feedback-panel {
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 8px;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: #050505;
}

.feedback-panel h2 {
    margin: 0 0 1.75rem;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
}

.feedback-closed-message {
    max-width: 36rem;
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.6;
}

.feedback-form {
    display: grid;
    gap: 0.75rem;
}

.feedback-form > label:not(.feedback-trap) {
    color: #9ca3af;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.feedback-form textarea {
    width: 100%;
    min-height: 13rem;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 1rem;
    background: #000;
    color: #fff;
    line-height: 1.55;
    outline: none;
}

.feedback-form textarea:focus {
    border-color: #a855f7;
}

.feedback-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.feedback-form__note {
    color: #6b7280;
    font-size: 0.7rem;
}

.feedback-form__actions button,
.feedback-form > button {
    min-width: 7rem;
    min-height: 2.75rem;
    border: 1px solid #a855f7;
    border-radius: 6px;
    padding: 0 1.25rem;
    background: #7e22ce;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.feedback-form__actions button:hover,
.feedback-form__actions button:focus-visible {
    background: #9333ea;
}

.feedback-form__actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.feedback-message {
    border: 1px solid;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
}

.feedback-message--success {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}

.feedback-message--error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.feedback-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .site-footer__sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .site-footer__section--feedback {
        text-align: left;
    }
}

.players-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.players-search,
.players-filters > summary,
.players-filters-placeholder {
    min-height: 3.5rem;
    border: 1px solid rgba(168, 85, 247, 0.72);
    border-radius: 8px;
    background: #050505;
    color: #fff;
}

.players-search {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0 1.125rem;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.1);
}

.players-search svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #c084fc;
    flex: none;
}

.players-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
}

.players-search input::placeholder {
    color: #6b7280;
}

.players-filters {
    position: relative;
}

.players-filters > summary,
.players-filters-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-width: 8rem;
    padding: 0 1rem;
    cursor: pointer;
    list-style: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.players-filters > summary::-webkit-details-marker {
    display: none;
}

.players-filters[open] > summary,
.players-filters > summary:hover {
    background: #7e22ce;
}

.players-filters__panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.5rem);
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: min(32rem, calc(100vw - 3rem));
    padding: 1.25rem;
    border: 1px solid rgba(168, 85, 247, 0.55);
    border-radius: 8px;
    background: #050505;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.72);
}

.players-filter-field {
    display: grid;
    gap: 0.4rem;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.players-filter-field select {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    padding: 0 0.75rem;
    background: #0a0a0a;
    color: #fff;
    outline: none;
}

.players-filter-field select:focus {
    border-color: #a855f7;
}

@media (max-width: 640px) {
    .players-toolbar {
        grid-template-columns: 1fr;
    }

    .players-filters > summary,
    .players-filters-placeholder {
        width: 100%;
    }

    .players-filters__panel {
        position: static;
        width: 100%;
        grid-template-columns: 1fr;
        margin-top: 0.5rem;
    }
}

.perk-pair {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
}

.perk-chip {
    display: flex;
    min-width: 3.5rem;
    max-width: 6rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.perk-chip__image {
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    object-fit: contain;
    image-rendering: pixelated;
}

.perk-chip__label {
    max-width: 100%;
    color: #d1d5db;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: center;
}

.perk-editor {
    margin: 0;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.22);
}

.perk-editor__legend {
    color: #f8fafc;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.perk-editor__legend {
    padding: 0 0.4rem;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.perk-editor__note {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.9rem;
}

.perk-editor__summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.perk-editor__equipped {
    flex: 0 0 auto;
    color: #a7b0c0;
    font-size: 0.82rem;
}

.perk-editor__equipped span {
    color: #d8b4fe;
    font-weight: 700;
}

.perk-choice-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    align-items: start;
    gap: 1rem 0.75rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.perk-choice {
    min-width: 0;
    height: 9.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.35rem 0.2rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    background: transparent;
    color: #d1d5db;
    text-align: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.perk-choice:hover:not(:disabled) {
    color: #d8b4fe;
}

.perk-choice--selected {
    border-color: #fff;
    color: #d1d5db;
}

.perk-choice__image {
    width: clamp(2.75rem, 7vw, 3.5rem);
    height: clamp(2.75rem, 7vw, 3.5rem);
    max-width: 100%;
    flex: 0 0 auto;
    object-fit: contain;
    image-rendering: pixelated;
}

.perk-choice__label {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.1;
}

.perk-choice__description {
    display: block;
    min-height: 2.2rem;
    max-width: 100%;
    color: #8f98a8;
    font-size: 0.68rem;
    line-height: 1.15;
    opacity: 0;
    overflow-wrap: anywhere;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.perk-choice:hover .perk-choice__description,
.perk-choice:focus-visible .perk-choice__description {
    opacity: 1;
}

@media (max-width: 700px) {
    .perk-editor__summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .perk-choice-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .perk-choice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem 0.4rem;
    }
}

.profile-balance {
    margin: 0;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    background: #000;
}

.profile-balance__legend {
    padding: 0 0.4rem;
    color: #f8fafc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-balance__range {
    flex: 1;
    min-width: 0;
    accent-color: #9333ea;
    cursor: pointer;
}

.profile-balance__control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-slider-number {
    width: 4.5rem;
    min-height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.5rem;
    background: #050505;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.profile-slider-number:focus {
    border-color: rgba(168, 85, 247, 0.8);
    outline: 2px solid rgba(147, 51, 234, 0.18);
}

.profile-balance__values {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    color: #a7b0c0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    width: calc(100% - 5.5rem);
}

.profile-balance__values strong {
    color: #fff;
}

.profile-color {
    margin: 0;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    background: #000;
}

.profile-color__legend {
    padding: 0 0.4rem;
    color: #f8fafc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-color__control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-editor__preview > .profile-color {
    width: 100%;
    margin-bottom: 0.75rem;
}

.profile-color__range {
    flex: 1;
    min-width: 0;
    accent-color: #9333ea;
    cursor: pointer;
}

.profile-shell {
    position: relative;
}

.profile-main {
    align-items: stretch;
}

.profile-character-column {
    width: min(100%, 22rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.profile-character-details {
    display: grid;
    gap: 0.75rem;
}

.profile-character-details .stat-card {
    padding: 1rem;
}

.profile-loadout-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.profile-loadout-values {
    display: grid;
    gap: 0.25rem;
    color: #a7b0c0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.profile-loadout-values strong {
    color: #fff;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.profile-identity h2 {
    overflow-wrap: anywhere;
    line-height: 0.95;
}

.profile-name-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.55rem 0.8rem;
}

.profile-account-badge {
    flex: 0 0 auto;
    color: #a7b0c0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-picture {
    width: 4.25rem;
    height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 4.25rem;
    overflow: hidden;
    border: 1px solid rgba(192, 132, 252, 0.55);
    border-radius: 50%;
    background: #050505;
}

.profile-picture__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture__icon {
    width: 1.75rem;
    height: 1.75rem;
    color: #c084fc;
}

.profile-picture--editable {
    position: relative;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.profile-picture--editable:hover,
.profile-picture--editable:focus-within {
    border-color: #c084fc;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.16);
}

.profile-picture__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.profile-role {
    margin-top: 0.15rem;
    color: #c084fc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: capitalize;
}

.profile-bio {
    width: 100%;
    display: block;
    margin: 0 0 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    background: transparent;
    padding: 0.55rem 0.65rem;
    color: #a7b0c0;
    text-align: left;
}

button.profile-bio {
    cursor: text;
}

button.profile-bio:hover,
button.profile-bio:focus-visible,
.profile-bio--editing {
    border-color: rgba(192, 132, 252, 0.35);
    background: rgba(255, 255, 255, 0.025);
}

.profile-bio__label {
    display: block;
    margin-bottom: 0.3rem;
    color: #c084fc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-bio__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-bio__counter {
    color: #7f8795;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-bio__text {
    display: block;
    min-height: 1.5rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.profile-bio__input {
    width: 100%;
    min-height: 6.5rem;
    resize: vertical;
    border: 0;
    outline: 0;
    background: transparent;
    color: #d1d5db;
    font: inherit;
    line-height: 1.55;
}

.profile-detail__button,
.profile-detail__control,
.profile-detail__value {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    background: transparent;
    padding: 0.25rem 0.35rem;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: left;
}

.profile-detail__button {
    cursor: text;
}

.profile-detail__button:hover,
.profile-detail__button:focus-visible,
.profile-detail__control:focus {
    border-color: rgba(192, 132, 252, 0.35);
    background: rgba(255, 255, 255, 0.025);
    outline: 0;
}

.profile-detail__control option {
    background: #050505;
    color: #fff;
}

.profile-panel-footer {
    position: relative;
    min-height: 3.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 7rem;
    background: rgba(0, 0, 0, 0.35);
}

.profile-card-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.profile-member-number {
    color: #c084fc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.profile-summary-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.profile-summary-list:not(.profile-summary-list--editing) .stat-card {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.profile-summary-list:not(.profile-summary-list--editing) .stat-card:hover {
    border-color: transparent;
    background: transparent;
}

.profile-summary-list--editing .stat-card,
.profile-bio--editing {
    border-color: rgba(192, 132, 252, 0.38);
    background: rgba(255, 255, 255, 0.035);
}

.profile-stat-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.5rem;
}

.profile-stat-description {
    color: #8f97a5;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.35;
}

.profile-balance-values {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.profile-balance-values strong {
    color: #fff;
}

.profile-edit-link {
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    padding: 0.15rem 0;
    color: #a7b0c0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-panel-footer .profile-edit-link {
    position: absolute;
    left: 1.5rem;
}

.profile-panel-footer .profile-edit-link--right {
    right: 1.5rem;
    left: auto;
}

.profile-edit-actions {
    position: absolute;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-panel-footer .profile-edit-actions .profile-edit-link {
    position: static;
}

.profile-edit-link:hover,
.profile-edit-link:focus-visible {
    border-bottom-color: #c084fc;
    color: #fff;
}

.profile-edit-link--save {
    border-bottom-color: #a855f7;
    color: #c084fc;
    font-weight: 700;
}

.profile-edit-link--save:hover,
.profile-edit-link--save:focus-visible {
    color: #fff;
    border-bottom-color: #c084fc;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
}

.profile-edit-link:disabled {
    cursor: wait;
    opacity: 0.65;
}

.avatar-stage {
    position: relative;
    width: 22rem;
    height: auto;
    aspect-ratio: 1.1;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: #000;
}

.avatar-layer {
    position: absolute;
    display: block;
    width: var(--asset-width);
    height: var(--asset-height);
    object-fit: contain;
    image-rendering: auto;
    pointer-events: none;
    filter: hue-rotate(var(--avatar-hue, 0deg));
    transform: translate(-50%, -50%);
}

.avatar-choice__image {
    filter: hue-rotate(var(--avatar-hue, 0deg));
}

.avatar-layer--head {
    left: 25.5%;
    top: 18%;
}

.avatar-layer--shoulders {
    left: 25.5%;
    top: 29%;
}

.avatar-layer--torso {
    left: 25.5%;
    top: 43%;
}

.avatar-layer--wheel {
    left: 25.5%;
    top: 63%;
}

.avatar-layer--weapon {
    left: 72%;
    top: 45%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.avatar-layer--melee {
    left: 88%;
    top: 45%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.avatar-layer--hidden {
    display: none;
}

.avatar-editor {
    margin: 0;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    background: #000;
}

.avatar-editor__legend {
    padding: 0 0.4rem;
    color: #f8fafc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.avatar-editor__layout {
    display: grid;
    grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.avatar-editor__preview {
    position: sticky;
    top: 6rem;
}

.avatar-stage--editor {
    width: 100%;
}

.avatar-editor__categories {
    min-width: 0;
}

.avatar-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
    border-radius: 0.65rem 0.65rem 0 0;
    background: #050505;
}

.avatar-tab {
    min-width: 0;
    min-height: 3.2rem;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #8f98a8;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.avatar-tab:last-child {
    border-right: 0;
}

.avatar-tab:hover,
.avatar-tab:focus-visible {
    background: rgba(147, 51, 234, 0.12);
    color: #d8b4fe;
}

.avatar-tab--active {
    background: rgba(147, 51, 234, 0.28);
    color: #fff;
}

.avatar-panel {
    min-height: 18rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0 0 0.65rem 0.65rem;
    background: #050505;
    padding: 1rem;
}

.avatar-category[hidden] {
    display: none;
}

.avatar-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
    gap: 0.55rem;
}

.avatar-choice {
    min-width: 0;
    min-height: 6.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.55rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0.45rem;
    background: #050505;
    color: #a7b0c0;
}

.avatar-choice:hover,
.avatar-choice:focus-visible {
    border-color: rgba(192, 132, 252, 0.7);
    color: #fff;
}

.avatar-choice--selected {
    border-color: #fff;
    color: #fff;
}

.avatar-choice__image {
    width: 100%;
    height: 3.8rem;
    object-fit: contain;
    image-rendering: auto;
}

.avatar-choice span {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
}

@media (max-width: 760px) {
    .profile-character-column {
        width: 100%;
    }

    .avatar-editor__layout {
        grid-template-columns: 1fr;
    }

    .avatar-editor__preview {
        position: static;
        width: min(100%, 22rem);
        margin: 0 auto;
    }

    .avatar-tabs {
        display: flex;
        overflow-x: auto;
    }

    .avatar-tab {
        min-width: 6.5rem;
        flex: 1 0 auto;
    }

    .profile-identity {
        align-items: flex-start;
    }

    .profile-panel-footer {
        justify-content: center;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .profile-panel-footer .profile-edit-link {
        left: 1.25rem;
    }

    .profile-panel-footer .profile-edit-link--right {
        right: 1.25rem;
        left: auto;
    }
}

@media (max-width: 430px) {
    .profile-identity {
        gap: 0.75rem;
    }

    .profile-picture {
        width: 3.5rem;
        height: 3.5rem;
        flex-basis: 3.5rem;
    }

    .profile-panel-footer {
        min-height: 5rem;
        align-items: flex-start;
        padding-top: 0.8rem;
    }

    .profile-panel-footer .profile-edit-link {
        left: 1.25rem;
        bottom: 0.65rem;
        transform: none;
    }

    .profile-panel-footer .profile-edit-link--right {
        right: 1.25rem;
        left: auto;
    }

    .profile-loadout-summary {
        grid-template-columns: 1fr;
    }

    .profile-loadout-values {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        white-space: normal;
    }
}

.form-control--error,
.form-control--error:focus {
    border-color: rgba(248, 113, 113, 0.9);
    background: rgba(127, 29, 29, 0.18);
}

.form-control--success,
.form-control--success:focus {
    border-color: rgba(52, 211, 153, 0.9);
    background: rgba(6, 78, 59, 0.14);
}

.form-field-error {
    display: block;
    margin-top: 0.45rem;
    color: #fca5a5;
    font-size: 0.82rem;
    line-height: 1.25rem;
}

.form-field-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.5rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.form-control option {
    background: #0a0a0a;
}

.text-gray-600 {
    color: #7f8a9c !important;
}

.text-gray-500 {
    color: var(--muted-text) !important;
}

.text-gray-400 {
    color: var(--soft-text) !important;
}

footer#site-footer {
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.72);
}

footer#site-footer .site-version {
    color: #e9d5ff;
    font-weight: 700;
}
