@font-face {
    font-family: "Manrope";
    src: url("../assets/fonts/Manrope-Variable-latin-ext.woff2") format("woff2");
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("../assets/fonts/BarlowCondensed-ExtraBold-latin-ext.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("../assets/fonts/BarlowCondensed-Black-latin-ext.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    color-scheme: normal;
    --accent: #e0202b;
    --accent-hot: #ff3d49;
    --accent-deep: #680b12;
    --success: #6ee7b7;
    --background: #06080c;
    --panel: rgba(12, 14, 20, 0.92);
    --panel-strong: rgba(8, 10, 15, 0.97);
    --panel-soft: rgba(255, 255, 255, 0.045);
    --line: rgba(255, 255, 255, 0.13);
    --line-soft: rgba(255, 255, 255, 0.075);
    --text: #f5f5f7;
    --muted: rgba(245, 245, 247, 0.62);
    --muted-strong: rgba(245, 245, 247, 0.76);
    --font-ui: "Manrope", Arial, sans-serif;
    --font-display: "Barlow Condensed", Impact, sans-serif;
    --font-small: 0.7rem;
    --font-body: 0.88rem;
    --font-body-large: 1rem;
    --font-card-title: 1.6rem;
    --font-page-title: 3.5rem;
    --radius-panel: clamp(0.42rem, 0.42vw, 0.55rem);
    --radius-control: clamp(0.38rem, 0.36vw, 0.48rem);
    --space-1: clamp(0.35rem, 0.4vw, 0.55rem);
    --space-2: clamp(0.65rem, 0.7vw, 0.9rem);
    --space-3: clamp(0.9rem, 1vw, 1.25rem);
    --space-4: clamp(1.2rem, 1.4vw, 1.8rem);
    --space-5: clamp(1.7rem, 2vw, 2.6rem);
    --header-height: clamp(4.5rem, 6vw, 5.5rem);
    --header-container: min(90%, 82rem);
    --header-gap: clamp(1.2rem, 1.5vw, 1.8rem);
    --header-radius-control: clamp(0.4rem, 0.45vw, 0.5rem);
    --control-height: clamp(2.7rem, 3vw, 3rem);
    --container: min(92%, 90rem);
    --panel-line-inset: clamp(1rem, 1.4vw, 1.8rem);
    --panel-line-offset: clamp(1.25rem, 1.8vw, 2.2rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
    scroll-behavior: smooth;
}

body {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        radial-gradient(circle at 8% 12%, rgba(224, 32, 43, 0.14), transparent 28rem),
        radial-gradient(circle at 92% 82%, rgba(104, 11, 18, 0.18), transparent 32rem),
        linear-gradient(180deg, #07090d, #05070a);
    background-size: 4rem 4rem, 4rem 4rem, auto, auto, auto;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: var(--font-body);
    line-height: 1.6;
}

[hidden] {
    display: none !important;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-control);
    background: var(--text);
    color: var(--background);
    font-weight: 800;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.ambient-layer {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient-layer::before,
.ambient-layer::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    animation: ambient-shift 18s ease-in-out infinite alternate;
}

.ambient-layer::before {
    top: 12%;
    left: -18rem;
    width: 42rem;
    height: 42rem;
    background: radial-gradient(circle, rgba(224, 32, 43, 0.11), rgba(104, 11, 18, 0.045) 48%, transparent 72%);
}

.ambient-layer::after {
    right: -15rem;
    bottom: -18rem;
    width: 46rem;
    height: 46rem;
    background: radial-gradient(circle, rgba(104, 11, 18, 0.15), transparent 70%);
    animation-delay: -9s;
}

.panel-header {
    position: fixed;
    z-index: 200;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(6, 8, 12, 0.96);
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.22);
}

.header-inner {
    width: var(--header-container);
    min-height: var(--header-height);
    display: flex;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: var(--header-gap);
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.7rem;
}

.brand img {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
    filter: drop-shadow(0 0.45rem 0.7rem rgba(0, 0, 0, 0.32));
}

.brand span {
    display: grid;
}

.brand strong {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 0.82;
    text-transform: uppercase;
}

.brand small {
    margin-top: 0.28rem;
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.session-status,
.connected-badge,
.service-mark,
.future-state {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    font-size: var(--font-small);
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.session-status i,
.connected-badge i,
.service-mark i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0.2rem rgba(110, 231, 183, 0.08);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
}

.site-nav a {
    position: relative;
    padding: 0.8rem 0;
    color: var(--muted-strong);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0.48rem;
    left: 50%;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hot));
    transition: right 160ms ease, left 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    right: 0;
    left: 0;
}

.header-cta {
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255, 65, 77, 0.72);
    border-radius: var(--header-radius-control);
    background: rgba(224, 32, 43, 0.1);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1;
    text-transform: uppercase;
    transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.header-cta svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke-width: 2;
}

.header-cta:hover,
.header-cta:focus-visible {
    border-color: var(--accent-hot);
    filter: brightness(1.12);
    outline: none;
    transform: translateY(-0.1rem);
}

.nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
    display: none;
    place-items: center;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--header-radius-control);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 1px;
    display: block;
    background: var(--text);
    transition: transform 160ms ease, opacity 160ms ease;
}

.panel-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--header-height));
    padding: calc(var(--header-height) + clamp(1.8rem, 3vw, 3.5rem)) 0 clamp(1.8rem, 3vw, 3.5rem);
}

.panel-container {
    width: var(--container);
    max-width: calc(100vw - 2rem);
    margin: 0 auto;
}

.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background:
        radial-gradient(circle at 90% 0, rgba(224, 32, 43, 0.08), transparent 30%),
        var(--panel);
    box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.24);
}

.panel::before,
.panel::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.panel::before {
    top: 0;
    right: var(--panel-line-inset);
    left: var(--panel-line-inset);
    height: 1px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hot), transparent);
    opacity: 0.9;
}

.panel::after {
    top: var(--panel-line-offset);
    bottom: var(--panel-line-offset);
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 61, 73, 0.74) 18%, rgba(104, 11, 18, 0.58) 78%, transparent);
}

.kicker {
    color: var(--accent-hot);
    font-size: var(--font-small);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.message-banner {
    min-height: 4rem;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding: 0.85rem var(--space-3);
    border: 1px solid rgba(255, 61, 73, 0.36);
    border-radius: var(--radius-control);
    background: rgba(104, 11, 18, 0.3);
}

.message-banner[data-type="success"] {
    border-color: rgba(110, 231, 183, 0.32);
    background: rgba(19, 78, 61, 0.2);
}

.message-banner > svg {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--accent-hot);
    flex: 0 0 auto;
}

.message-banner[data-type="success"] > svg {
    color: var(--success);
}

.message-banner div {
    display: grid;
    gap: 0.08rem;
}

.message-banner strong {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.message-banner span {
    color: var(--muted-strong);
    font-size: 0.78rem;
}

.loading-view {
    min-height: 22rem;
    display: grid;
    place-items: center;
    align-content: center;
    gap: var(--space-3);
}

.loading-mark {
    width: 5.5rem;
    height: 5.5rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 61, 73, 0.3);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 32, 43, 0.14), transparent 68%);
    animation: loading-pulse 1.6s ease-in-out infinite;
}

.loading-mark img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.loading-copy {
    display: grid;
    justify-items: center;
}

.loading-copy strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    text-transform: uppercase;
}

.loading-copy span {
    color: var(--muted);
    font-size: 0.78rem;
}

.loading-bar {
    width: min(18rem, 70%);
    height: 0.18rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.loading-bar::after {
    content: "";
    width: 45%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent-hot));
    animation: loading-slide 1.2s ease-in-out infinite alternate;
}

.guest-view {
    min-width: 0;
    min-height: calc(100vh - var(--header-height) - 8rem);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.65fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 7rem);
}

.guest-copy {
    min-width: 0;
    max-width: 46rem;
}

.guest-copy h1 {
    margin: 1rem 0 1.15rem;
    font-family: var(--font-display);
    font-size: var(--font-page-title);
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 0.88;
}

.guest-copy > p {
    max-width: 41rem;
    margin: 0;
    color: var(--muted-strong);
    font-size: var(--font-body-large);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.discord-button {
    width: fit-content;
    max-width: 100%;
    min-height: 3.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.8rem;
    padding: 0.78rem 1.05rem;
    border: 1px solid rgba(255, 61, 73, 0.7);
    border-radius: var(--radius-control);
    background: linear-gradient(100deg, rgba(104, 11, 18, 0.98), rgba(224, 32, 43, 0.9));
    box-shadow: 0 1rem 2.5rem rgba(104, 11, 18, 0.26);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.discord-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.discord-button svg:last-child {
    width: 1rem;
    height: 1rem;
}

.discord-button:hover,
.discord-button:focus-visible {
    border-color: var(--accent-hot);
    filter: brightness(1.12);
    outline: none;
    transform: translateY(-0.1rem);
}

.discord-button[data-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

.guest-copy > small {
    display: block;
    max-width: 34rem;
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: var(--font-small);
}

.login-preview {
    min-width: 0;
    min-height: 28rem;
    padding: var(--space-5);
}

.preview-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--line-soft);
}

.preview-icon,
.status-icon,
.future-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 61, 73, 0.36);
    border-radius: var(--radius-control);
    background: radial-gradient(circle at 50% 20%, rgba(255, 61, 73, 0.16), rgba(104, 11, 18, 0.1));
    color: var(--accent-hot);
}

.preview-icon {
    width: 3.25rem;
    height: 3.25rem;
}

.preview-icon svg,
.future-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.preview-head > span:last-child {
    display: grid;
}

.preview-head small {
    color: var(--accent-hot);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.preview-head strong {
    font-family: var(--font-display);
    font-size: 1.65rem;
    text-transform: uppercase;
}

.login-steps {
    display: grid;
    gap: 0;
    margin: var(--space-4) 0;
    padding: 0;
    list-style: none;
}

.login-steps li {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.login-steps li > span {
    color: var(--accent-hot);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 900;
}

.login-steps div {
    display: grid;
}

.login-steps strong {
    font-size: 0.82rem;
}

.login-steps small {
    color: var(--muted);
    font-size: var(--font-small);
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--muted);
    font-size: var(--font-small);
}

.security-note i {
    width: 0.45rem;
    height: 0.45rem;
    flex: 0 0 auto;
    margin-top: 0.32rem;
    border-radius: 50%;
    background: var(--success);
}

.account-view {
    display: grid;
    grid-template-columns: minmax(16rem, 18.5rem) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-4);
}

.profile-panel {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
    min-height: calc(100vh - var(--header-height) - 6rem);
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    background:
        radial-gradient(circle at 50% 8%, rgba(224, 32, 43, 0.13), transparent 19rem),
        linear-gradient(180deg, rgba(14, 16, 23, 0.97), rgba(8, 10, 15, 0.97));
}

.profile-summary {
    display: grid;
    justify-items: center;
    padding: var(--space-3) 0 var(--space-4);
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
}

.avatar-shell {
    position: relative;
    width: 6.5rem;
    height: 6.5rem;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 61, 73, 0.46);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 32, 43, 0.18), rgba(8, 10, 15, 0.96) 68%);
    box-shadow: 0 0 0 0.38rem rgba(255, 255, 255, 0.025), 0 1rem 2.5rem rgba(104, 11, 18, 0.25);
}

.avatar-shell img {
    width: calc(100% - 0.4rem);
    height: calc(100% - 0.4rem);
    border-radius: 50%;
    object-fit: cover;
}

.avatar-shell > span {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
}

.avatar-shell > i {
    position: absolute;
    right: 0.3rem;
    bottom: 0.3rem;
    width: 0.85rem;
    height: 0.85rem;
    border: 0.18rem solid var(--panel-strong);
    border-radius: 50%;
    background: var(--success);
}

.profile-name {
    min-width: 0;
}

.profile-name small {
    color: var(--accent-hot);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.profile-name h2 {
    max-width: 14rem;
    margin: 0.35rem 0 0;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-name span {
    display: block;
    max-width: 14rem;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connected-badge {
    margin-top: 0.85rem;
    padding: 0.38rem 0.65rem;
    border-color: rgba(110, 231, 183, 0.2);
    color: var(--muted-strong);
    font-size: 0.6rem;
}

.profile-nav {
    display: grid;
    gap: 0.4rem;
    margin-top: var(--space-4);
}

.profile-nav button,
.profile-actions a,
.profile-actions button {
    width: 100%;
    min-height: 2.85rem;
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--muted-strong);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: left;
}

.profile-nav button {
    cursor: pointer;
}

.profile-nav button svg,
.profile-actions svg {
    width: 1.15rem;
    height: 1.15rem;
}

.profile-nav button small {
    color: var(--muted);
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-nav button.is-active {
    border-color: rgba(255, 61, 73, 0.42);
    background: linear-gradient(90deg, rgba(104, 11, 18, 0.34), rgba(224, 32, 43, 0.08));
    color: var(--text);
}

.profile-nav button.is-active svg {
    color: var(--accent-hot);
}

.profile-nav button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.profile-actions {
    display: grid;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-soft);
}

.profile-actions a,
.profile-actions button {
    grid-template-columns: 1.25rem minmax(0, 1fr);
    cursor: pointer;
}

.profile-actions button {
    appearance: none;
}

.profile-actions a:hover,
.profile-actions a:focus-visible,
.profile-actions button:hover,
.profile-actions button:focus-visible {
    border-color: rgba(255, 61, 73, 0.34);
    background: rgba(224, 32, 43, 0.08);
    color: var(--text);
    outline: none;
}

.profile-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dashboard-content {
    min-width: 0;
}

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    background:
        linear-gradient(100deg, rgba(15, 17, 24, 0.98), rgba(10, 12, 18, 0.94)),
        var(--panel);
}

.dashboard-heading::after {
    right: 0;
    left: auto;
}

.dashboard-heading__copy {
    min-width: 0;
}

.dashboard-heading h1 {
    margin: 0.45rem 0 0.35rem;
    font-family: var(--font-display);
    font-size: 2.65rem;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
}

.dashboard-heading h1 span {
    color: var(--text);
}

.dashboard-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.dashboard-actions {
    min-width: 15.5rem;
    display: grid;
    justify-items: end;
    gap: 0.55rem;
}

.session-status {
    flex: 0 0 auto;
    padding: 0.48rem 0.72rem;
    border-color: rgba(110, 231, 183, 0.2);
    color: var(--muted-strong);
    font-size: 0.6rem;
}

.sync-button {
    appearance: none;
    min-height: var(--control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 65, 77, 0.72);
    border-radius: var(--radius-control);
    background: linear-gradient(90deg, rgba(104, 11, 18, 0.92), rgba(224, 32, 43, 0.78));
    box-shadow: 0 0.8rem 1.8rem rgba(104, 11, 18, 0.18);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1;
    text-transform: uppercase;
    transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease;
    cursor: pointer;
}

.sync-button svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke-width: 2;
}

.sync-button:hover,
.sync-button:focus-visible {
    border-color: var(--accent-hot);
    filter: brightness(1.12);
    outline: none;
    transform: translateY(-0.1rem);
}

.sync-button.is-syncing {
    opacity: 0.7;
    pointer-events: none;
}

.sync-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    filter: saturate(0.45);
    transform: none;
}

.sync-button.is-syncing svg {
    animation: sync-spin 850ms linear infinite;
}

.sync-meta {
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 700;
}

.sync-meta time {
    color: var(--muted-strong);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.status-card {
    min-height: 11rem;
    display: grid;
    align-content: start;
    padding: var(--space-4);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.status-card:hover {
    border-color: rgba(255, 61, 73, 0.3);
    box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.3), inset 0 0 2.5rem rgba(224, 32, 43, 0.035);
    transform: translateY(-0.16rem);
}

.status-icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.2rem;
}

.status-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.status-icon.is-success {
    border-color: rgba(110, 231, 183, 0.26);
    background: rgba(110, 231, 183, 0.065);
    color: var(--success);
}

.status-card > small {
    color: var(--accent-hot);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.status-card > strong {
    margin-top: 0.2rem;
    font-family: var(--font-display);
    font-size: var(--font-card-title);
    line-height: 1;
    text-transform: uppercase;
}

.status-card > span:last-child {
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.68rem;
}

.progress-panel,
.detail-panel,
.future-panel {
    margin-top: var(--space-3);
    padding: var(--space-4);
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
}

.section-title h2,
.future-panel h2 {
    margin: 0.28rem 0 0;
    font-family: var(--font-display);
    font-size: var(--font-card-title);
    line-height: 1;
    text-transform: uppercase;
}

.section-title > strong {
    color: var(--accent-hot);
    font-family: var(--font-display);
    font-size: 1.55rem;
}

.progress-track {
    height: 0.25rem;
    display: block;
    overflow: hidden;
    margin: 1.4rem 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
    width: 25%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent-hot));
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
}

.progress-steps article {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.025);
}

.progress-steps article > span {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
}

.progress-steps article > span svg {
    width: 1rem;
    height: 1rem;
}

.progress-steps article.is-complete {
    border-color: rgba(110, 231, 183, 0.16);
}

.progress-steps article.is-complete > span {
    border-color: rgba(110, 231, 183, 0.28);
    background: rgba(110, 231, 183, 0.07);
    color: var(--success);
}

.progress-steps article div {
    min-width: 0;
    display: grid;
}

.progress-steps strong {
    overflow: hidden;
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-steps small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.56rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.7fr);
    gap: var(--space-3);
}

.service-mark {
    padding: 0.38rem 0.62rem;
    border-color: rgba(110, 231, 183, 0.2);
    color: var(--muted-strong);
    font-size: 0.58rem;
}

.detail-panel dl {
    display: grid;
    gap: 0;
    margin: var(--space-3) 0 0;
}

.detail-panel dl > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-3);
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.detail-panel dl > div:last-child {
    border-bottom: 0;
}

.detail-panel dt {
    color: var(--muted);
    font-size: 0.68rem;
}

.detail-panel dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.future-panel {
    display: grid;
    align-content: start;
}

.future-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--space-4);
}

.future-panel p {
    margin: 0.85rem 0 1.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.7;
}

.future-state {
    padding: 0.4rem 0.65rem;
    color: var(--muted);
    font-size: 0.58rem;
}

.game-summary {
    gap: 0;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.game-stats > div {
    display: grid;
    gap: 0.12rem;
    padding: 0.72rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.025);
}

.game-stats span {
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.game-stats strong {
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-sync-button {
    width: 100%;
    margin-bottom: 0.75rem;
}

.characters-panel {
    margin-top: var(--space-3);
    padding: var(--space-4);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

#dashboardTop,
#whitelistCard {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.characters-empty {
    min-height: 8rem;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
    padding: var(--space-3);
    border: 1px dashed var(--line);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.018);
}

.characters-empty .future-icon {
    flex: 0 0 auto;
    margin: 0;
}

.characters-empty div {
    display: grid;
    gap: 0.18rem;
}

.characters-empty strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.characters-empty div span {
    color: var(--muted);
    font-size: 0.7rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.character-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: var(--space-3);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-control);
    background:
        radial-gradient(circle at 100% 0, rgba(224, 32, 43, 0.08), transparent 48%),
        rgba(255, 255, 255, 0.022);
    transition: border-color 160ms ease, transform 160ms ease;
}

.character-card:hover {
    border-color: rgba(255, 61, 73, 0.3);
    transform: translateY(-0.12rem);
}

.character-avatar {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 61, 73, 0.34);
    border-radius: var(--radius-control);
    background: linear-gradient(145deg, rgba(104, 11, 18, 0.48), rgba(224, 32, 43, 0.12));
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.character-card > div {
    min-width: 0;
    display: grid;
    align-content: center;
}

.character-card > div strong {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.character-card > div span {
    overflow: hidden;
    color: var(--accent-hot);
    font-size: 0.62rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-card dl {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.42rem;
    margin: 0.25rem 0 0;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line-soft);
}

.character-card dl > div {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
}

.character-card dt,
.character-card dd {
    overflow: hidden;
    margin: 0;
    font-size: 0.6rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-card dt {
    color: var(--muted);
}

.character-card dd {
    color: var(--muted-strong);
    font-weight: 800;
}

.panel-footer {
    position: relative;
    z-index: 1;
    width: var(--container);
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin: 0 auto;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 700;
}

@keyframes ambient-shift {
    from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
    to { transform: translate3d(1.5%, 1%, 0) scale(1.03); }
}

@keyframes loading-pulse {
    0%, 100% { opacity: 0.74; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes loading-slide {
    from { transform: translateX(-5%); }
    to { transform: translateX(125%); }
}

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

@media (max-width: 75rem) {
    :root {
        --header-container: min(92%, 72rem);
    }

    .site-nav {
        gap: 1rem;
    }
}

@media (max-width: 72rem) {
    :root {
        --container: min(94%, 68rem);
        --font-page-title: 3.1rem;
    }

    .account-view {
        grid-template-columns: minmax(14rem, 16rem) minmax(0, 1fr);
    }

    .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-card:last-child {
        grid-column: 1 / -1;
    }

    .progress-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .character-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 62rem) {
    .site-nav,
    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: grid;
        gap: 0.32rem;
        margin-left: auto;
    }

    .nav-open {
        overflow: hidden;
    }

    .nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(0.38rem) rotate(45deg);
    }

    .nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-0.38rem) rotate(-45deg);
    }

    .nav-open .site-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        align-content: start;
        gap: 0;
        padding: 2rem 5%;
        border-top: 1px solid var(--line-soft);
        background: rgba(6, 8, 12, 0.985);
    }

    .nav-open .site-nav a {
        padding: 1.15rem 0;
        border-bottom: 1px solid var(--line-soft);
        font-family: var(--font-display);
        font-size: 1.8rem;
        font-weight: 900;
    }

    .nav-open .site-nav a::after {
        display: none;
    }
}

@media (max-width: 54rem) {
    .guest-view {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
        padding: var(--space-5) 0;
    }

    .guest-copy {
        max-width: none;
    }

    .login-preview {
        min-height: auto;
    }

    .account-view {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-panel {
        position: static;
        min-height: auto;
    }

    .profile-summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
        justify-items: start;
        gap: var(--space-3);
        text-align: left;
    }

    .avatar-shell {
        width: 4.5rem;
        height: 4.5rem;
        margin: 0;
        grid-row: 1 / span 2;
    }

    .profile-name {
        align-self: center;
    }

    .connected-badge {
        align-self: center;
        margin: 0;
    }

    .profile-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-nav button {
        grid-template-columns: 1.2rem minmax(0, 1fr);
    }

    .profile-nav button small {
        display: none;
    }

    .profile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: var(--space-3);
    }

    .dashboard-heading {
        margin-top: var(--space-5);
    }

    .dashboard-actions {
        min-width: 14rem;
    }
}

@media (max-width: 40rem) {
    :root {
        --container: calc(100% - 2rem);
        --font-page-title: 2.6rem;
        --font-card-title: 1.4rem;
    }

    .panel-main {
        padding: calc(var(--header-height) + 1.5rem) 0 2.5rem;
    }

    .guest-copy h1 {
        font-size: 2.25rem;
        line-height: 0.92;
    }

    .discord-button {
        width: 100%;
        justify-content: center;
    }

    .login-preview,
    .profile-panel,
    .status-card,
    .progress-panel,
    .detail-panel,
    .future-panel,
    .characters-panel {
        padding: var(--space-3);
    }

    .profile-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .connected-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .profile-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-actions {
        width: 100%;
        min-width: 0;
        justify-items: stretch;
    }

    .session-status {
        justify-self: start;
    }

    .sync-button {
        width: 100%;
    }

    .sync-meta {
        text-align: left;
    }

    .dashboard-heading h1 {
        font-size: 2.25rem;
    }

    .status-grid,
    .progress-steps,
    .character-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .status-card:last-child {
        grid-column: auto;
    }

    .detail-panel dl > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.15rem;
    }

    .detail-panel dd {
        text-align: left;
    }

    .panel-footer {
        min-height: 5rem;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 0.15rem;
    }
}

/* Charakter-Dashboard */
.account-view {
    grid-template-columns: minmax(16rem, 18rem) minmax(0, 1fr);
}

.profile-panel {
    min-height: calc(100vh - var(--header-height) - 6rem);
    padding: var(--space-4);
    background:
        radial-gradient(circle at 50% 7%, rgba(224, 32, 43, 0.16), transparent 19rem),
        linear-gradient(180deg, rgba(14, 16, 23, 0.98), rgba(8, 10, 15, 0.98));
}

.profile-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: var(--space-2);
    padding: var(--space-3) 0 var(--space-4);
    text-align: center;
}

.character-monogram,
.character-hero__monogram {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 61, 73, 0.48);
    border-radius: var(--radius-panel);
    background:
        linear-gradient(145deg, rgba(104, 11, 18, 0.76), rgba(224, 32, 43, 0.16)),
        var(--panel-strong);
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 900;
    box-shadow: 0 1.2rem 2.8rem rgba(104, 11, 18, 0.24);
}

.character-monogram {
    width: 6.25rem;
    height: 6.25rem;
    font-size: 2.2rem;
}

.profile-name h2 {
    max-width: 14rem;
    margin-top: 0.4rem;
}

.character-presence {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.4rem 0.68rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted-strong);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.character-presence i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: rgba(245, 245, 247, 0.35);
}

.character-presence.is-online {
    border-color: rgba(110, 231, 183, 0.24);
}

.character-presence.is-online i {
    background: var(--success);
    box-shadow: 0 0 0 0.2rem rgba(110, 231, 183, 0.08);
}

.character-switcher {
    margin-top: var(--space-4);
}

.sidebar-label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

#characterSwitcherList {
    display: grid;
    gap: 0.45rem;
}

.character-switch-button {
    appearance: none;
    width: 100%;
    min-height: 3.6rem;
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding: 0.58rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted-strong);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.character-switch-button > span:first-child {
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 61, 73, 0.26);
    border-radius: var(--radius-control);
    background: rgba(104, 11, 18, 0.24);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 900;
}

.character-switch-button > span:last-child {
    min-width: 0;
    display: grid;
}

.character-switch-button strong,
.character-switch-button small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-switch-button strong {
    color: var(--text);
    font-size: 0.68rem;
}

.character-switch-button small {
    color: var(--muted);
    font-size: 0.58rem;
}

.character-switch-button:hover,
.character-switch-button:focus-visible,
.character-switch-button.is-active {
    border-color: rgba(255, 61, 73, 0.52);
    background: linear-gradient(90deg, rgba(104, 11, 18, 0.34), rgba(224, 32, 43, 0.07));
    outline: none;
}

.character-switch-button:hover,
.character-switch-button:focus-visible {
    transform: translateY(-0.08rem);
}

.profile-actions {
    margin-top: auto;
}

.dashboard-heading {
    margin-bottom: var(--space-3);
}

.character-dashboard {
    display: grid;
    gap: var(--space-3);
}

.empty-character {
    min-height: 18rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-5);
}

.empty-character .future-icon {
    margin: 0;
}

.empty-character > div {
    max-width: 32rem;
}

.empty-character h2 {
    margin: 0.35rem 0;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    text-transform: uppercase;
}

.empty-character p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.character-hero {
    display: grid;
    grid-template-columns: minmax(18rem, 0.9fr) minmax(24rem, 1.1fr);
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background:
        radial-gradient(circle at 12% 20%, rgba(224, 32, 43, 0.17), transparent 19rem),
        linear-gradient(105deg, rgba(15, 17, 24, 0.98), rgba(9, 11, 16, 0.96));
}

.character-hero__identity {
    min-width: 0;
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
}

.character-hero__monogram {
    width: 5rem;
    height: 5rem;
    font-size: 1.8rem;
}

.character-hero__identity > div:last-child {
    min-width: 0;
}

.character-hero h2 {
    margin: 0.35rem 0 0.3rem;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 0.95;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.character-hero p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.character-hero .separator {
    color: var(--accent-hot);
}

.character-metrics {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.character-metrics > div {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem var(--space-3);
    border-left: 1px solid var(--line-soft);
}

.character-metrics span {
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.character-metrics strong {
    overflow: hidden;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.character-info-panel,
.vehicles-panel {
    padding: var(--space-4);
}

.section-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 61, 73, 0.34);
    border-radius: var(--radius-control);
    background: rgba(224, 32, 43, 0.075);
    color: var(--accent-hot);
}

.section-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.data-list {
    display: grid;
    margin: var(--space-3) 0 0;
}

.data-list > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: var(--space-3);
    min-height: 2.75rem;
    border-bottom: 1px solid var(--line-soft);
}

.data-list > div:last-child {
    border-bottom: 0;
}

.data-list dt,
.data-list dd {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-list dt {
    color: var(--muted);
}

.data-list dd {
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.inline-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.7rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted-strong);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.inline-state.is-active {
    border-color: rgba(110, 231, 183, 0.24);
    background: rgba(110, 231, 183, 0.065);
    color: var(--success);
}

.licence-list {
    display: grid;
    gap: 0.55rem;
    margin-top: var(--space-3);
}

.licence-list > div {
    min-height: 3.6rem;
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.62rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.022);
}

.licence-list > div > span {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-control);
    color: var(--muted);
}

.licence-list svg {
    width: 1.15rem;
    height: 1.15rem;
}

.licence-list > div > div {
    min-width: 0;
    display: grid;
}

.licence-list strong {
    font-size: 0.68rem;
}

.licence-list small {
    color: var(--muted);
    font-size: 0.58rem;
}

.licence-list > div.is-granted {
    border-color: rgba(110, 231, 183, 0.18);
}

.licence-list > div.is-granted > span {
    border-color: rgba(110, 231, 183, 0.24);
    background: rgba(110, 231, 183, 0.06);
    color: var(--success);
}

.licence-list > div.is-granted small {
    color: var(--success);
}

.vehicles-panel .section-title > strong {
    min-width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 61, 73, 0.28);
    border-radius: var(--radius-control);
    background: rgba(224, 32, 43, 0.07);
    font-size: 1.2rem;
}

.vehicles-empty {
    min-height: 7rem;
    display: grid;
    place-items: center;
    margin-top: var(--space-3);
    border: 1px dashed var(--line);
    border-radius: var(--radius-control);
    color: var(--muted);
    font-size: 0.72rem;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.vehicle-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-control);
    background:
        radial-gradient(circle at 50% 0, rgba(224, 32, 43, 0.1), transparent 52%),
        rgba(8, 10, 15, 0.84);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.vehicle-card:hover {
    border-color: rgba(255, 61, 73, 0.42);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.24);
    transform: translateY(-0.12rem);
}

.vehicle-visual {
    position: relative;
    min-height: 7rem;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--line-soft);
    background:
        linear-gradient(135deg, transparent 44%, rgba(255, 255, 255, 0.025) 44% 56%, transparent 56%),
        radial-gradient(circle at 50% 75%, rgba(224, 32, 43, 0.14), transparent 55%);
}

.vehicle-visual > span {
    color: rgba(245, 245, 247, 0.13);
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1;
}

.vehicle-visual small {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.28rem 0.48rem;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(6, 8, 12, 0.82);
    color: var(--muted-strong);
    font-size: 0.54rem;
    font-weight: 800;
    text-transform: uppercase;
}

.vehicle-visual small[data-state="1"] {
    border-color: rgba(110, 231, 183, 0.24);
    color: var(--success);
}

.vehicle-visual small[data-state="2"] {
    border-color: rgba(255, 61, 73, 0.34);
    color: var(--accent-hot);
}

.vehicle-content {
    padding: var(--space-3);
}

.vehicle-content > span {
    display: block;
    overflow: hidden;
    color: var(--accent-hot);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.vehicle-content > strong {
    display: block;
    overflow: hidden;
    margin: 0.25rem 0 0.8rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.vehicle-content dl {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line-soft);
}

.vehicle-content dl > div {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
}

.vehicle-content dt,
.vehicle-content dd {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-content dt {
    color: var(--muted);
}

.vehicle-content dd {
    color: var(--muted-strong);
    font-weight: 800;
}

@media (max-width: 78rem) {
    .character-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .character-metrics > div:first-child {
        border-left: 0;
    }

    .vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 64rem) {
    .character-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 54rem) {
    .profile-panel {
        min-height: auto;
    }

    .profile-summary {
        grid-template-columns: 4.5rem minmax(0, 1fr) auto;
        justify-items: start;
        text-align: left;
    }

    .character-monogram {
        width: 4.5rem;
        height: 4.5rem;
        grid-row: 1 / span 2;
        font-size: 1.6rem;
    }

    .profile-name {
        align-self: center;
    }

    .character-presence {
        align-self: center;
    }

    .character-switcher {
        margin-top: var(--space-3);
    }

    #characterSwitcherList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 40rem) {
    .profile-panel,
    .dashboard-heading,
    .character-hero,
    .character-info-panel,
    .vehicles-panel,
    .empty-character {
        padding: var(--space-3);
    }

    .profile-summary {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    .character-monogram {
        width: 4rem;
        height: 4rem;
    }

    .character-presence {
        grid-column: 1 / -1;
    }

    #characterSwitcherList,
    .vehicle-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .character-hero__identity {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    .character-hero__monogram {
        width: 4rem;
        height: 4rem;
        font-size: 1.5rem;
    }

    .character-hero h2 {
        font-size: 1.8rem;
    }

    .character-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .character-metrics > div:nth-child(odd) {
        border-left: 0;
    }

    .character-metrics > div:nth-child(n + 3) {
        border-top: 1px solid var(--line-soft);
    }

    .data-list > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.1rem;
        padding: 0.55rem 0;
    }

    .data-list dd {
        text-align: left;
    }

    .empty-character {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
