.valorant-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.valorant-hidden {
    display: none !important;
}

.valorant-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(1.6rem, 5vw, 4rem);
    border: 1px solid var(--line);
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 70, 84, .34), transparent 28%),
        linear-gradient(135deg, #111b22 0%, #21323c 60%, #8f2028 100%);
    box-shadow: 9px 9px 0 rgba(28, 25, 23, .09);
}

.valorant-hero-copy {
    position: relative;
    z-index: 1;
}

.valorant-eyebrow {
    margin: 0 0 .65rem;
    color: var(--maroon);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.valorant-hero .valorant-eyebrow {
    color: #ffd2d5;
}

.valorant-hero h1 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 7vw, 5.3rem);
    line-height: .98;
}

.valorant-hero p:not(.valorant-eyebrow) {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .83);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.75;
}

.valorant-hero-badge {
    display: grid;
    width: clamp(92px, 14vw, 155px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 1;
    transform: skew(-7deg);
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .07);
}

.valorant-privacy {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    margin: 1.25rem 0 2rem;
    padding: 1rem 1.15rem;
    border-left: 4px solid #bf2934;
    background: #f8eeee;
}

.valorant-privacy > span {
    flex: 0 0 auto;
    font-size: 1.3rem;
}

.valorant-privacy strong {
    display: block;
    color: #68120f;
}

.valorant-privacy p {
    margin: .3rem 0 0;
    color: var(--ink-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.valorant-card {
    padding: clamp(1.2rem, 4vw, 2.2rem);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 7px 7px 0 rgba(28, 25, 23, .06);
}

.valorant-state {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.valorant-state h2,
.valorant-section-heading h2,
.valorant-directory-header h2,
.valorant-dialog h2 {
    margin: 0 0 .65rem;
    color: var(--maroon);
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.2;
}

.valorant-state p,
.valorant-section-heading p,
.valorant-directory-header p,
.valorant-dialog p {
    color: var(--ink-muted);
    line-height: 1.7;
}

.valorant-state-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--paper-dark);
    font-size: 2rem;
}

.valorant-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 1rem;
    border: 4px solid #e2d7c9;
    border-top-color: var(--maroon);
    border-radius: 50%;
    animation: valorant-spin .8s linear infinite;
}

@keyframes valorant-spin {
    to { transform: rotate(360deg); }
}

.valorant-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .75rem 1rem;
    border: 1px solid var(--maroon);
    font-weight: 800;
    line-height: 1.2;
    transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.valorant-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.valorant-btn-primary {
    color: #fff;
    background: var(--maroon);
}

.valorant-btn-primary:hover {
    background: #690c08;
}

.valorant-btn-secondary {
    color: var(--maroon);
    background: #fff;
}

.valorant-btn-secondary:hover {
    background: #fff2ef;
}

.valorant-btn-danger {
    border-color: #9e2b32;
    color: #8f1720;
    background: transparent;
}

.valorant-btn-danger:hover {
    background: #fff1f2;
}

.valorant-btn-danger-solid {
    border-color: #a51f29;
    color: #fff;
    background: #a51f29;
}

.valorant-inline-actions,
.valorant-form-actions,
.valorant-dialog-actions,
.valorant-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.valorant-state .valorant-inline-actions {
    justify-content: center;
    margin-top: 1.2rem;
}

.valorant-section-heading,
.valorant-directory-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.6rem;
}

.valorant-account-chip {
    flex: 0 0 auto;
    max-width: 100%;
    padding: .45rem .65rem;
    border: 1px solid var(--line);
    color: var(--ink-muted);
    background: var(--paper-dark);
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.valorant-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.valorant-field {
    display: block;
    min-width: 0;
    margin-bottom: 1rem;
    font-weight: 800;
}

.valorant-field > span:first-child,
.valorant-fieldset legend {
    display: block;
    margin-bottom: .5rem;
}

.valorant-field b,
.valorant-fieldset b {
    color: #a51f29;
}

.valorant-field input,
.valorant-field select,
.valorant-field textarea,
.valorant-filters input,
.valorant-filters select {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: .72rem .78rem;
    border: 1px solid #a99e90;
    border-radius: 0;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-weight: 500;
}

.valorant-field textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.55;
}

.valorant-field input:focus,
.valorant-field select:focus,
.valorant-field textarea:focus,
.valorant-filters input:focus,
.valorant-filters select:focus {
    outline: 3px solid rgba(207, 172, 67, .42);
    outline-offset: 1px;
    border-color: var(--maroon);
}

.valorant-field small {
    display: block;
    margin-top: .4rem;
    color: var(--ink-muted);
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.45;
}

.valorant-fieldset {
    min-width: 0;
    margin: .2rem 0 1.2rem;
    padding: 0;
    border: 0;
    font-weight: 800;
}

.valorant-fieldset-help {
    margin: -.1rem 0 .9rem;
    color: var(--ink-muted);
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.55;
}

.valorant-legacy-notice {
    margin: .25rem 0 1.2rem;
    padding: .9rem 1rem;
    border: 1px solid #d6b860;
    border-left: 4px solid #c69f2d;
    background: #fff9e8;
}

.valorant-legacy-notice strong {
    display: block;
    color: #6b4f0e;
}

.valorant-legacy-notice p {
    margin: .35rem 0 0;
    color: var(--ink-muted);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.55;
}

.valorant-account-fieldset {
    margin-top: .45rem;
    padding-top: .2rem;
}

.valorant-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.valorant-channel-card {
    min-width: 0;
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.valorant-channel-card:has(input:checked) {
    border-color: var(--maroon);
    box-shadow: inset 0 0 0 1px var(--maroon);
    background: #fff9f8;
}

.valorant-channel-card.is-unavailable {
    color: #756f68;
    background: #f5f1eb;
}

.valorant-channel-select {
    min-height: 68px;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    box-sizing: border-box;
    padding: .9rem;
    cursor: pointer;
}

.valorant-channel-card.is-unavailable .valorant-channel-select {
    cursor: not-allowed;
}

.valorant-channel-select > input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    margin-top: .08rem;
    accent-color: var(--maroon);
}

.valorant-channel-select > span:not(.valorant-channel-lock) {
    min-width: 0;
}

.valorant-channel-select strong,
.valorant-channel-select small {
    display: block;
}

.valorant-channel-select strong {
    color: var(--maroon);
    line-height: 1.35;
}

.valorant-channel-select small {
    margin-top: .28rem;
    color: var(--ink-muted);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.4;
}

.valorant-channel-lock {
    width: 22px;
    flex: 0 0 auto;
    text-align: center;
}

.valorant-channel-fields {
    margin: 0 .9rem .9rem;
    padding: .85rem;
    border-top: 1px solid var(--line);
    background: #faf7f2;
}

.valorant-channel-fields > small {
    display: block;
    color: var(--ink-muted);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
}

.valorant-account-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.valorant-account-inputs-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.valorant-account-inputs .valorant-field,
.valorant-channel-single-field {
    margin-bottom: .65rem;
}

.valorant-choice-grid {
    display: grid;
    gap: .75rem;
}

.valorant-choice-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.valorant-choice {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.valorant-choice:has(input:checked) {
    border-color: var(--maroon);
    box-shadow: inset 0 0 0 1px var(--maroon);
    background: #fff5f3;
}

.valorant-choice input {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    accent-color: var(--maroon);
}

.valorant-consent {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    margin: .35rem 0 1rem;
    padding: .9rem;
    border: 1px solid var(--line);
    background: #faf7f2;
    color: var(--ink-muted);
    font-size: .9rem;
    line-height: 1.55;
    cursor: pointer;
}

.valorant-consent input {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    accent-color: var(--maroon);
}

.valorant-form-status {
    min-height: 1.5rem;
    margin: .35rem 0;
    font-weight: 700;
}

.valorant-form-status.is-error {
    color: #a51f29;
}

.valorant-form-status.is-success {
    color: #2e6c50;
}

.valorant-form-actions {
    justify-content: flex-end;
    margin-top: .5rem;
}

#valorant-directory-section {
    margin-top: 2rem;
}

.valorant-directory-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.valorant-profile-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.valorant-filters {
    position: sticky;
    z-index: 10;
    top: 88px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(165px, .34fr) minmax(170px, .34fr);
    gap: .75rem;
    padding: .9rem;
    border: 1px solid var(--line);
    background: rgba(249, 246, 240, .96);
    backdrop-filter: blur(7px);
}

.valorant-search {
    position: relative;
}

.valorant-search > span[aria-hidden] {
    position: absolute;
    z-index: 1;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--maroon);
    font-size: 1.3rem;
}

.valorant-search input {
    padding-left: 2.4rem;
}

.valorant-results-count {
    margin: .9rem 0;
    color: var(--ink-muted);
    font-size: .9rem;
}

.valorant-player-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.valorant-player-card {
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-top: 4px solid #bb2d38;
    background: #fff;
    box-shadow: 5px 5px 0 rgba(28, 25, 23, .055);
}

.valorant-player-card.is-mine {
    border-top-color: #cda936;
}

.valorant-player-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.valorant-player-name {
    margin: 0;
    color: var(--maroon);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    overflow-wrap: anywhere;
}

.valorant-player-subtitle {
    margin-top: .2rem;
    color: var(--ink-muted);
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.valorant-mine-badge {
    flex: 0 0 auto;
    padding: .25rem .45rem;
    color: #5b4512;
    background: #f4e4ad;
    font-size: .72rem;
    font-weight: 800;
}

.valorant-player-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: .85rem 0;
}

.valorant-player-fact {
    padding: .3rem .5rem;
    border: 1px solid var(--line);
    color: var(--ink-muted);
    background: #faf7f2;
    font-size: .78rem;
}

.valorant-player-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: .65rem;
    padding: .55rem 0;
    border-top: 1px solid #eee6dc;
    font-size: .9rem;
}

.valorant-player-row dt {
    color: var(--ink-muted);
    font-weight: 700;
}

.valorant-player-row dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.valorant-copy-row {
    display: flex;
    gap: .45rem;
    align-items: center;
}

.valorant-copy-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.valorant-copy-button {
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 auto;
    padding: .4rem .55rem;
    border: 1px solid var(--maroon);
    color: var(--maroon);
    background: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.valorant-empty {
    text-align: center;
}

.valorant-empty > span {
    display: block;
    margin-bottom: .45rem;
    font-size: 2rem;
}

.valorant-dialog-backdrop {
    position: fixed;
    z-index: 130;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(22, 14, 12, .7);
}

.valorant-dialog {
    width: min(520px, 100%);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: clamp(1.2rem, 5vw, 2rem);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, .18);
}

.valorant-dialog-actions {
    justify-content: flex-end;
    margin-top: 1.2rem;
}

@media (max-width: 760px) {
    .valorant-shell {
        width: min(100% - 1.25rem, 1120px);
    }

    .valorant-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .valorant-hero-badge {
        width: 84px;
    }

    .valorant-section-heading,
    .valorant-directory-header {
        flex-direction: column;
    }

    .valorant-form-grid,
    .valorant-choice-grid-three,
    .valorant-channel-grid,
    .valorant-account-inputs,
    .valorant-account-inputs-three,
    .valorant-player-grid,
    .valorant-filters {
        grid-template-columns: 1fr;
    }

    .valorant-account-chip,
    .valorant-profile-actions,
    .valorant-profile-actions .valorant-btn {
        width: 100%;
    }

    .valorant-filters {
        top: 70px;
    }
}

@media (max-width: 480px) {
    .valorant-hero {
        padding: 1.35rem;
    }

    .valorant-card {
        padding: 1rem;
    }

    .valorant-inline-actions,
    .valorant-form-actions,
    .valorant-dialog-actions {
        flex-direction: column;
    }

    .valorant-inline-actions .valorant-btn,
    .valorant-form-actions .valorant-btn,
    .valorant-dialog-actions .valorant-btn {
        width: 100%;
    }

    .valorant-player-row {
        grid-template-columns: 1fr;
        gap: .25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .valorant-spinner {
        animation-duration: 1.6s;
    }
}
