.site-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ember {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #e43a41;
    box-shadow: 0 0 8px #e43a41;
    opacity: .3;
    animation: ember-rise 14s linear infinite;
}

.ember--1 { left: 12%; bottom: -5%; animation-delay: -2s; }
.ember--2 { left: 32%; bottom: -2%; animation-delay: -9s; }
.ember--3 { left: 56%; bottom: -7%; animation-delay: -5s; }
.ember--4 { left: 78%; bottom: -4%; animation-delay: -12s; }
.ember--5 { left: 92%; bottom: -1%; animation-delay: -7s; }

@keyframes ember-rise {
    0% { transform: translate3d(0,0,0); opacity: 0; }
    12% { opacity: .35; }
    75% { opacity: .18; }
    100% { transform: translate3d(40px,-110vh,0); opacity: 0; }
}

.hero {
    position: relative;
    min-height: 760px;
    height: 100svh;
    max-height: 1040px;
    overflow: hidden;
    display: grid;
    align-items: center;
    padding-top: var(--header-h);
}

.hero__background,
.hero__veil {
    position: absolute;
    inset: 0;
}

.hero__background {
    background-image: url("/assets/images/nso-world.png");
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    animation: hero-breathe 16s ease-in-out infinite alternate;
}

@keyframes hero-breathe {
    to { transform: scale(1.09); }
}

.hero__veil {
    background:
        linear-gradient(90deg, rgba(3,4,7,.95) 0%, rgba(3,4,7,.71) 42%, rgba(3,4,7,.22) 72%, rgba(3,4,7,.5) 100%),
        linear-gradient(180deg, rgba(3,4,7,.28), rgba(3,4,7,.08) 50%, #07080b 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    display: block;
}

.hero__copy {
    max-width: 760px;
}

.hero__copy h1 {
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: -.055em;
    text-shadow: 0 6px 28px rgba(0,0,0,.45);
}

.hero__copy h1 span {
    color: #d83038;
    text-shadow: 0 0 30px rgba(211,38,46,.26);
}

.hero__copy p {
    max-width: 620px;
    color: #d2cfca;
    font-size: 1.15rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}


.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 3;
    width: 28px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 20px;
    transform: translateX(-50%);
}

.scroll-cue span {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: var(--accent-bright);
    transform: translateX(-50%);
    animation: scroll-dot 1.7s ease infinite;
}

@keyframes scroll-dot {
    70%,100% { transform: translate(-50%,16px); opacity: 0; }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    position: relative;
    min-height: 330px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 0%, rgba(211,38,46,.10), transparent 40%),
        linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    transition: transform .32s var(--ease), border-color .32s ease, box-shadow .32s ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(.25);
    opacity: .5;
    transition: transform .3s ease, opacity .3s ease;
}

.feature-card:hover {
    transform: translateY(-7px);
    border-color: rgba(211,38,46,.25);
    box-shadow: var(--shadow-red);
}

.feature-card:hover::after {
    transform: scaleX(.8);
    opacity: 1;
}

.feature-card__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 38px;
    border: 1px solid rgba(211,38,46,.25);
    border-radius: 16px;
    color: #ef8d91;
    background: rgba(211,38,46,.08);
    font-size: 1.6rem;
}

.feature-card__kicker {
    color: #8e9097;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.feature-card h3 {
    margin: 8px 0 12px;
    font-size: 1.55rem;
}

.feature-card p {
    color: var(--text-muted);
}

.feature-card__action {
    position: absolute;
    left: 30px;
    bottom: 28px;
    color: #e98d91;
    font-size: .86rem;
    font-weight: 800;
}

.world-section {
    overflow: hidden;
}

.world-section__grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    gap: 70px;
}

.world-frame {
    position: relative;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.world-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 80px rgba(0,0,0,.55);
}

.world-frame img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.world-frame:hover img {
    transform: scale(1.035);
}

.world-section__copy p {
    color: var(--text-soft);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 32px;
}

.stat-strip div {
    padding: 18px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}

.stat-strip strong,
.stat-strip span {
    display: block;
}

.stat-strip strong {
    color: #f09599;
    font-size: 1.35rem;
}

.stat-strip span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: .72rem;
}

.callout-section {
    padding-top: 40px;
}

.callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 46px 50px;
    border: 1px solid rgba(211,38,46,.22);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(105deg, rgba(211,38,46,.12), transparent 40%),
        rgba(255,255,255,.025);
}

.callout h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.callout p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.page-hero {
    position: relative;
    min-height: 430px;
    display: grid;
    align-items: end;
    padding: calc(var(--header-h) + 100px) 0 72px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(5,6,9,.45), #07080b),
        url("/assets/images/nso-world.png") center 42% / cover;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,7,10,.9), rgba(6,7,10,.38), rgba(6,7,10,.7));
}

.page-hero__content,
.page-hero > .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    max-width: 920px;
    margin-bottom: 16px;
    font-size: clamp(3rem, 6vw, 5rem);
}

.page-hero p {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 1.06rem;
}

.page-hero--compact {
    min-height: 360px;
}

.page-hero--wiki {
    background-position: center 36%;
}

.page-hero--rankings {
    background-position: center 50%;
}

.auth-shell {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: calc(var(--header-h) + 60px) 0 70px;
    overflow: hidden;
}

.auth-shell__background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3,4,7,.86), rgba(3,4,7,.56) 48%, rgba(3,4,7,.8)),
        linear-gradient(180deg, rgba(3,4,7,.2), #07080b),
        url("/assets/images/nso-auth.jpg") center / cover;
    transform: scale(1.025);
}

.auth-shell__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr minmax(360px, 470px);
    align-items: center;
    gap: 80px;
}

.auth-story {
    max-width: 560px;
}

.auth-story h1 {
    margin-bottom: 18px;
    font-size: clamp(3.4rem, 6vw, 6rem);
    text-transform: uppercase;
}

.auth-story p {
    max-width: 480px;
    color: #c7c3bd;
    font-size: 1.08rem;
}

.auth-benefits {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
}

.auth-benefits li {
    position: relative;
    padding-left: 24px;
    color: var(--text-soft);
}

.auth-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e4777c;
    font-weight: 900;
}

.auth-card {
    padding: 34px;
    border-radius: var(--radius-lg);
}

.auth-card__heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.auth-card__heading .eyebrow {
    margin-bottom: 4px;
}

.auth-card__heading .eyebrow::before {
    display: none;
}

.auth-card__heading h2 {
    margin: 0;
    font-size: 2rem;
}

.auth-card__mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(211,38,46,.28);
    border-radius: 14px;
    color: #ef8a8f;
    background: rgba(211,38,46,.09);
    font-size: 1.35rem;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    color: #bd8588;
    font-size: .8rem;
}

.auth-links a:hover,
.auth-card__switch a:hover {
    color: #f0a0a4;
}

.auth-card__switch {
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    text-align: center;
    font-size: .84rem;
}

.auth-card__switch a {
    color: #e69397;
    font-weight: 800;
}

.section--account {
    padding-top: 70px;
}

.account-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 20px;
}

.account-card {
    min-height: 300px;
    padding: 30px;
    border-radius: var(--radius-lg);
}

.account-avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    margin: 16px 0;
    border: 1px solid rgba(211,38,46,.28);
    border-radius: 20px;
    color: #f19397;
    background: rgba(211,38,46,.09);
    font-size: 2rem;
}

.account-card h2 {
    margin-bottom: 6px;
}

.account-card > p {
    color: var(--text-muted);
}

.account-meta {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.account-meta span,
.account-meta code {
    display: block;
}

.account-meta span {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.account-meta code {
    color: #d6d1cb;
    overflow-wrap: anywhere;
}

.detail-list {
    margin: 26px 0 0;
}

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

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

.detail-list dd {
    margin: 0;
    font-weight: 800;
}

.account-characters-heading {
    margin-top: 70px;
    margin-bottom: 28px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.character-card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
}

.character-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.character-card__name {
    margin: 0;
    font-size: 1.25rem;
}

.character-card__class {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: .82rem;
}

.character-card__status {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #62656c;
}

.character-card__status.is-online {
    background: var(--success);
    box-shadow: 0 0 12px rgba(101,201,135,.6);
}

.character-card__levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
}

.character-card__levels span {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.028);
    color: var(--text-muted);
    font-size: .72rem;
}

.character-card__levels strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 1.1rem;
}

.wiki-search {
    display: flex;
    max-width: 720px;
    gap: 10px;
    margin-top: 28px;
}

.wiki-search input {
    min-height: 54px;
    background: rgba(5,6,9,.72);
    backdrop-filter: blur(12px);
}

.wiki-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 50px;
}

.wiki-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.018);
}

.panel-heading h2 {
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.category-list {
    display: grid;
    gap: 6px;
}

.category-button {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--text-soft);
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.category-button:hover,
.category-button.is-active {
    color: #fff;
    border-color: rgba(211,38,46,.2);
    background: rgba(211,38,46,.075);
}

.category-button span:last-child {
    color: #73767e;
    font-size: .76rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.article-card {
    position: relative;
    min-height: 250px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 90% 5%, rgba(211,38,46,.08), transparent 34%),
        rgba(255,255,255,.018);
    transition: transform .25s var(--ease), border-color .25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(211,38,46,.24);
}

.article-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.article-card h3 {
    margin: 20px 0 12px;
    font-size: 1.35rem;
}

.article-card p {
    color: var(--text-muted);
    font-size: .9rem;
}

.article-card__read {
    position: absolute;
    left: 24px;
    bottom: 22px;
    color: #df898d;
    font-size: .82rem;
    font-weight: 800;
}

.article-shell {
    max-width: 960px;
}

.article-detail {
    padding: clamp(26px, 5vw, 54px);
    border-radius: var(--radius-lg);
}

.article-detail__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.article-detail__meta time {
    color: var(--text-muted);
    font-size: .76rem;
}

.article-detail h2 {
    margin: 24px 0 14px;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.article-detail__summary {
    max-width: 760px;
    color: var(--text-soft);
    font-size: 1.1rem;
}

.article-detail__body {
    margin-top: 38px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    color: #d3d0ca;
    line-height: 1.85;
    white-space: pre-wrap;
}

.related-section {
    margin-top: 70px;
}

.ranking-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ranking-selector {
    position: relative;
    min-height: 280px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(211,38,46,.07), transparent 45%),
        rgba(255,255,255,.018);
    transition: transform .3s var(--ease), border-color .3s ease;
}

.ranking-selector:hover {
    transform: translateY(-5px);
    border-color: rgba(211,38,46,.25);
}

.ranking-selector__symbol {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(211,38,46,.24);
    border-radius: 16px;
    color: #f08f94;
    background: rgba(211,38,46,.08);
    font-size: 1.7rem;
}

.ranking-selector h2 {
    margin: 36px 0 12px;
    font-size: 1.7rem;
}

.ranking-selector p {
    color: var(--text-muted);
}

.ranking-selector__status {
    position: absolute;
    right: 22px;
    top: 22px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #b7eeca;
    background: rgba(101,201,135,.09);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ranking-page {
    max-width: 1050px;
}

.ranking-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
}

.ranking-toolbar .eyebrow {
    margin: 0 0 4px;
}

.ranking-toolbar .eyebrow::before {
    display: none;
}

.viewer-position {
    color: #ef9498;
    font-size: 1.7rem;
}

.ranking-toolbar__pager {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ranking-toolbar__pager > span {
    min-width: 84px;
    text-align: center;
    color: var(--text-muted);
    font-size: .82rem;
}

.ranking-table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255,255,255,.015);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 16px 18px;
    text-align: left;
}

.ranking-table th {
    color: var(--text-muted);
    background: rgba(255,255,255,.025);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ranking-table td {
    border-top: 1px solid var(--line);
}

.ranking-table tbody tr {
    transition: background .2s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(211,38,46,.04);
}

.rank-position {
    display: inline-grid;
    min-width: 34px;
    min-height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-weight: 900;
}

.rank-position--1 {
    color: #ffe29a;
    border-color: rgba(255,209,86,.28);
    background: rgba(255,209,86,.08);
}

.rank-position--2 {
    color: #dde2eb;
    border-color: rgba(210,219,232,.25);
    background: rgba(210,219,232,.06);
}

.rank-position--3 {
    color: #e8b488;
    border-color: rgba(209,142,86,.27);
    background: rgba(209,142,86,.07);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: .78rem;
}

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #62656c;
}

.status-badge.is-online {
    color: #aee8c1;
}

.status-badge.is-online::before {
    background: var(--success);
    box-shadow: 0 0 10px rgba(101,201,135,.6);
}
