/* Shared navigation and accessibility improvements. */
.home-activity { padding-block: clamp(36px, 5vw, 72px); }
.home-activity-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.home-activity-head h2 { margin: 8px 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.home-activity-head p, .home-update-card p, .home-community-note p { color: var(--muted); line-height: 1.7; }
.home-activity-head > a { flex-shrink: 0; }
.home-updates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-update-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; }
.home-update-card h3 { margin: 20px 0 12px; font-size: 1.2rem; line-height: 1.45; overflow-wrap: anywhere; }
.home-update-card h3 a { color: #eee5d5; }
.home-update-card > p { margin: 0 0 24px; overflow-wrap: anywhere; }
.home-update-card > a { margin-top: auto; align-self: flex-start; }
.home-update-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(var(--glow), .22); font-size: .78rem; }
.home-update-card__meta span { color: var(--gold); font-weight: 700; }
.home-update-card__meta time { color: var(--muted); }
.home-activity-notice { padding: 24px; border-left: 2px solid var(--gold); color: var(--muted); line-height: 1.7; background: rgba(5, 14, 24, .75); }
.home-community > *, .home-community-content { min-width: 0; }
.home-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-gallery-grid .gallery-card__body { padding: 20px; }
.home-gallery-grid .gallery-card h3 { font-size: 1rem; line-height: 1.5; margin-bottom: 8px; }
.home-gallery-link { display: inline-flex; margin-top: 22px; min-height: 44px; align-items: center; }
.home-community-note { padding: clamp(24px, 4vw, 42px); }
.home-community-note h3 { margin: 12px 0 18px; color: #eee5d5; line-height: 1.4; font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
@media (max-width: 1000px) {
    .home-updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .community-section.home-community { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
    .home-activity-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .home-updates-grid, .home-gallery-grid { grid-template-columns: 1fr; }
    .home-update-card { padding: 24px; }
}
html { scroll-padding-top: calc(var(--header-height) + 16px); }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #efd09b;
    outline-offset: 4px;
}
.skip-link {
    position: fixed;
    z-index: 3000;
    top: 8px;
    left: 16px;
    padding: 12px 18px;
    color: #07121d;
    background: #efd09b;
    border-radius: 4px;
    font-weight: 700;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.mobile-navigation { display: none; }
/* Detailed variant of the existing rz-card frame; independent of page grids. */
body[data-seasonal-theme="halloween"] { --card-accent-rgb: 234, 163, 94; }
body[data-seasonal-theme="winter"] { --card-accent-rgb: 155, 218, 240; }
.rz-card.rz-card--ornate {
    --glow: var(--card-accent-rgb, 47, 140, 255);
    border: 1px solid rgba(var(--glow), .32);
    border-radius: 4px;
    background: radial-gradient(ellipse at 50% 0, rgba(var(--glow), .08), transparent 65%),
        linear-gradient(165deg, #0b1b29, #050d16 80%);
    box-shadow: inset 0 1px 0 rgba(222, 237, 255, .1), inset 0 -1px 0 rgba(0, 0, 0, .65),
        0 10px 24px rgba(0, 0, 0, .35), 0 0 26px rgba(var(--glow), .08);
}
.rz-card--ornate::before, .rz-card--ornate::after { content: ""; position: absolute; pointer-events: none; z-index: 2; }
.rz-card--ornate::before { inset: 5px; border: 1px solid rgba(var(--glow), .1); border-radius: 1px; }
.rz-card--ornate::after {
    inset: 0;
    --corner: rgba(var(--glow), .7);
    background:
        linear-gradient(var(--corner), var(--corner)) left top / 14px 1px,
        linear-gradient(var(--corner), var(--corner)) left top / 1px 14px,
        linear-gradient(var(--corner), var(--corner)) right top / 14px 1px,
        linear-gradient(var(--corner), var(--corner)) right top / 1px 14px,
        linear-gradient(var(--corner), var(--corner)) left bottom / 14px 1px,
        linear-gradient(var(--corner), var(--corner)) left bottom / 1px 14px,
        linear-gradient(var(--corner), var(--corner)) right bottom / 14px 1px,
        linear-gradient(var(--corner), var(--corner)) right bottom / 1px 14px;
    background-repeat: no-repeat;
}
a.rz-card--ornate.rz-card--interactive { cursor: pointer; }
@media (hover: hover) { .rz-card--ornate.rz-card--interactive:hover { transform: translateY(-3px); } }
.rz-card--ornate:focus-within { border-color: rgba(var(--glow), .7); box-shadow: inset 0 1px 0 rgba(222, 237, 255, .16), 0 14px 30px rgba(0, 0, 0, .4), 0 0 32px rgba(var(--glow), .16); }
@media (hover: hover) { .rz-card--ornate.rz-card--interactive:hover { border-color: rgba(var(--glow), .65); box-shadow: inset 0 1px 0 rgba(222, 237, 255, .16), 0 14px 30px rgba(0, 0, 0, .4), 0 0 32px rgba(var(--glow), .16); } }
@media (prefers-reduced-motion: reduce) { .rz-card.rz-card--ornate { transition: none; } .rz-card--ornate.rz-card--interactive:hover { transform: none; } }
.screenshots-page { display: block; padding-block: clamp(32px, 5vw, 64px); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-block: 30px; }
.gallery-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elevated); }
.gallery-card__image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; margin: 6px 6px 0; border: 1px solid rgba(var(--glow), .2); background: #02070c; box-shadow: inset 0 0 20px #000; }
.gallery-card__image::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), inset 0 -20px 30px rgba(0, 0, 0, .16); }
.gallery-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-card__body { padding: 22px; }
.gallery-card h3 { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(var(--glow), .18); overflow-wrap: anywhere; }
.gallery-card p { overflow-wrap: anywhere; color: var(--muted); line-height: 1.6; }
.gallery-card .gallery-state { color: var(--gold); font-weight: 700; }
.gallery-card__character { font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.gallery-card .gallery-author { display: inline-block; margin: 8px 0 0; padding: 5px 10px; border: 1px solid rgba(var(--glow), .25); border-radius: 2px; color: #c1ccdc; background: rgba(2, 9, 16, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); font-size: .78rem; }
.gallery-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-block: 26px; }
.gallery-upload { max-width: 780px; display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elevated); margin-bottom: 48px; }
.gallery-upload p, .gallery-upload small { color: var(--muted); line-height: 1.7; }
.gallery-upload > input, .gallery-upload > select { width: 100%; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: #06101a; color: var(--text); }
.gallery-upload label { font-weight: 650; }
.gallery-consent { display: flex; align-items: flex-start; gap: 12px; line-height: 1.7; }
.gallery-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 4px; }
.gallery-notice { padding: 20px; border-left: 3px solid var(--gold); color: var(--gold); line-height: 1.7; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-upload { padding: 22px; } }
.getting-started { padding-block: clamp(36px, 6vw, 80px); }
.getting-started__hero { max-width: 900px; margin-bottom: 48px; }
.getting-started h1 { margin: 12px 0 22px; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.15; }
.getting-started h2, .player-section-head h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.getting-started > section { margin-block: 48px; }
.guide-sections { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 30px; }
.guide-sections a, .guide-link { color: #d9c39f; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.guide-link:hover, .guide-sections a:hover { color: #fff; }
.guide-sections a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0; list-style: none; }
.guide-steps li { display: flex; align-items: flex-start; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-elevated); }
.guide-steps li > span { color: var(--gold); font-size: 1.6rem; font-weight: 800; }
.guide-steps h3, .guide-combat-grid h3 { margin: 0 0 12px; }
.guide-steps p, .guide-combat-grid p, .guide-help p { color: var(--muted); line-height: 1.75; }
.guide-note { padding: 18px 22px; border-left: 3px solid var(--gold); color: var(--muted); line-height: 1.7; }
.guide-combat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-block: 26px; }
.guide-combat-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-elevated); }
.guide-help details { padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bg-elevated); }
.guide-help summary { min-height: 30px; cursor: pointer; font-weight: 700; line-height: 1.6; }
.guide-help details[open] summary { color: var(--gold); }
.guide-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-block: 36px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-elevated); }
.guide-contact h2 { margin-top: 0; }
.guide-contact p { color: var(--muted); line-height: 1.7; }
.guide-contact > .button { flex-shrink: 0; }
.player-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-block: 24px 38px; }
.player-summary { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-elevated); }
.player-summary p { margin: 0; color: var(--muted); }
.player-summary > strong { font-size: clamp(1.5rem, 2.3vw, 2rem); overflow-wrap: anywhere; }
.player-summary strong small { font-size: .85rem; color: var(--gold); }
.player-summary > span { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.player-summary > a { margin-top: auto; padding-top: 8px; }
.player-summary--attention { border-color: var(--gold); }
.player-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.player-section-head h2 { margin: 8px 0 0; }
.player-character-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.player-character { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(135deg, rgba(47, 140, 255, .1), transparent), var(--bg-elevated); }
.player-character:hover { border-color: var(--gold); }
.player-character h3 { margin: 0; overflow-wrap: anywhere; }
.player-character__level { color: var(--gold); font-size: .82rem; font-weight: 700; }
.player-character__status { color: var(--muted); font-size: .85rem; }
.player-character__status.is-online { color: #8de0b5; }
.player-character > .guide-link { margin-top: auto; font-size: .85rem; }
.player-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); line-height: 1.7; }
.player-utilities { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.player-utilities a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.player-account-details { display: flex; gap: 30px; flex-wrap: wrap; padding: 22px; border: 1px solid var(--line); border-radius: 6px; }
.player-account-details dt { color: var(--muted); font-size: .8rem; margin-bottom: 8px; }
.player-account-details dd { margin: 0; overflow-wrap: anywhere; }
.player-settings .usercp-card--profile { margin-top: 28px; }
.usercp.player-dashboard, .usercp.player-settings { padding-top: clamp(32px, 5vw, 64px); }
.usercp.character-profile { padding-top: clamp(32px, 5vw, 64px); }
.character-privacy { padding: 16px 20px; border-left: 3px solid var(--gold); color: var(--muted); line-height: 1.7; background: var(--bg-elevated); }
.character-facts, .character-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-block: 28px; }
.character-facts > div { padding: 20px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.character-facts dt { margin-bottom: 12px; color: var(--muted); font-size: .85rem; }
.character-facts dd { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.character-section { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-elevated); }
.character-section strong { color: var(--gold); font-size: 2rem; }
.character-section small, .character-note { color: var(--muted); line-height: 1.7; }
.character-section:hover { border-color: var(--gold); }
.character-loadout { margin-top: 42px; }
.character-equipment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.character-equipment a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-elevated); }
.character-equipment span { overflow-wrap: anywhere; }
.character-equipment strong { flex-shrink: 0; color: var(--gold); }
.character-equipment a:hover { border-color: var(--gold); }
@media (max-width: 680px) {
    .character-facts, .character-sections, .character-equipment { grid-template-columns: 1fr; }
    .character-profile .usercp__head h1 { overflow-wrap: anywhere; }
}
@media (max-width: 900px) {
    .guide-combat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .player-character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .guide-steps, .guide-combat-grid, .player-overview, .player-character-grid { grid-template-columns: 1fr; }
    .guide-contact, .player-section-head { align-items: flex-start; flex-direction: column; }
    .guide-contact > .button { width: 100%; }
    .guide-steps li { padding: 22px; gap: 14px; }
    .getting-started__hero .hero-actions { align-items: stretch; flex-direction: column; }
}
.mobile-navigation:not([open]) .mobile-navigation__panel { display: none; }
.player-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
}
.player-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--muted);
    font-size: .88rem;
}
.player-navigation a:hover,
.player-navigation a[aria-current="page"] {
    color: var(--text);
    border-color: var(--line);
    background: rgba(47, 140, 255, .12);
}
.footer-disclaimer, .copyright { color: #9aabbe; }
.about-technology {
    margin-block: clamp(48px, 7vw, 96px);
    padding: clamp(24px, 4vw, 56px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: radial-gradient(ellipse at 100% 0, rgba(47, 140, 255, .1), transparent 65%), #07121d;
}
.about-technology__heading { max-width: 850px; }
.about-technology h2 { margin: 12px 0 20px; font-size: clamp(1.8rem, 3.4vw, 3rem); }
.about-technology__heading .about-section-lead { margin: 0; text-align: left; }
.about-technology__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-block: 34px; }
.about-technology__cards article { min-width: 0; }
.about-technology__mark { display: block; color: var(--gold); font-size: 1.7rem; font-weight: 800; letter-spacing: .04em; }
.about-technology h3 { margin: 12px 0; font-size: 1.12rem; }
.about-technology__cards p { margin: 0; color: var(--muted); line-height: 1.7; }
.about-technology__history { margin-bottom: 26px; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.mobile-navigation__panel a,
.player-navigation a { overflow-wrap: anywhere; }

@media (max-width: 960px) {
    :root { --header-height: 124px; }
    .site-header { background: rgba(4, 11, 18, .98); }
    .site-header__inner {
        position: relative;
        height: var(--header-height);
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 76px 48px;
        gap: 0 12px;
    }
    .site-header__inner > .brand { grid-column: 1; grid-row: 1; }
    .header-actions { grid-column: 2; grid-row: 1; }
    .mobile-navigation {
        position: relative;
        display: block;
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: stretch;
        border-top: 1px solid var(--line);
    }
    .mobile-navigation > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 0 4px;
        list-style: none;
        cursor: pointer;
        color: var(--gold);
        font-size: .86rem;
        font-weight: 700;
    }
    .mobile-navigation > summary::-webkit-details-marker { display: none; }
    .mobile-navigation > summary span {
        width: 9px;
        height: 9px;
        margin-right: 5px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }
    .mobile-navigation[open] > summary span { transform: rotate(225deg); }
    .mobile-navigation__panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        max-height: calc(100dvh - var(--header-height) - 16px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 0 0 6px 6px;
        background: #07121d;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    }
    .mobile-navigation__panel a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 9px 10px;
        color: var(--text);
        border-radius: 3px;
        font-size: .86rem;
    }
    .mobile-navigation__panel a:hover,
    .mobile-navigation__panel a[aria-current="page"] { background: rgba(47, 140, 255, .15); }
}
@media (max-width: 900px) {
    .footer-nav { display: flex; flex-direction: column; align-items: stretch; }
    .footer-nav__group { display: flex; flex-wrap: wrap; justify-content: center; }
    .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; }
}
@media (max-width: 560px) {
    .about-technology__cards { grid-template-columns: 1fr; gap: 26px; }
    .about-technology .hero-actions { align-items: stretch; flex-direction: column; }
    :root { --header-height: 112px; }
    .site-header__inner { height: 112px; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 64px 48px; gap: 0 10px; }
    .site-header__inner > .brand { grid-column: 1 / -1; justify-self: start; }
    .site-header__inner > .header-actions { display: contents; }
    .site-header__inner .lang-switch { grid-column: 2 / -1; grid-row: 1; justify-self: end; }
    .site-header__inner .header-auth > a { grid-column: 2; grid-row: 2; }
    .site-header__inner .header-logout { grid-column: 3; grid-row: 2; }
    .site-header__inner .mobile-navigation { grid-column: 1; grid-row: 2; border-top: 0; }
    .site-header__inner .mobile-navigation__panel { width: calc(100vw - 48px); right: auto; }
    .site-header__inner > .brand img { width: clamp(120px, 38vw, 160px); }
    .header-actions { gap: 10px; }
    .header-actions .lang-switch__toggle { gap: 4px; }
    .player-navigation { gap: 2px; padding-block: 10px; }
    .player-navigation a { font-size: .8rem; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .skip-link { transition: none; }
}
