/* ASHEN Celestial — organized stylesheet
   Original rules and cascade order preserved to protect the current design.
   Includes responsive layouts, profiles, games, and presence counters. */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
    --bg: #0b1224;
    --surface: #101b32;
    --line: #ffffff25;
    --gold: #efce87;
    --blue: #a8cfff;
    --white: #f3f7ff;
    --muted: #aebcd1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font: 14px/1.8 Manrope,sans-serif;
}

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

button,input {
    font: inherit;
}

.header {
    height: 80px;
    padding: 0 5%;
    position: absolute;
    z-index: 10;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(#080f20b0,transparent);
    border-bottom: 1px solid #ffffff29;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 600 19px Cinzel;
    letter-spacing: .16em;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.header nav {
    display: flex;
    gap: 23px;
    align-items: center;
}

.header nav a {
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e1e8f2b8;
}

.header nav a:hover,.header nav a.current {
    color: var(--gold);
}

#menu {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: white;
    border-radius: 5px;
    padding: 4px 11px;
}

.pagehero {
    height: 560px;
    min-height: 460px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.pagehero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#080f20e8,#0c15318a 55%,#10182d22),linear-gradient(0deg,var(--bg),transparent 42%),url("../assets/images/realm.png") center 46%/cover;
}

.hero-inner {
    position: relative;
    max-width: 820px;
    margin: 75px 10% 0;
}

.kicker,.eyebrow {
    font-size: 10px;
    letter-spacing: .23em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

h1,h2,h3 {
    font-family: Cinzel,serif;
    font-weight: 500;
    line-height: 1.25;
}

h1 {
    font-size: clamp(43px,6vw,78px);
    margin: 16px 0;
}

h2 {
    font-size: clamp(29px,3.5vw,45px);
    margin: 10px 0 30px;
}

h3 {
    font-size: 23px;
    margin: 13px 0;
}

p {
    color: var(--muted);
}

.hero-inner>p {
    max-width: 580px;
    color: #e6eafa;
    font-size: 15px;
}

.demo-note {
    display: inline-block;
    font-size: 9px;
    letter-spacing: .12em;
    margin-top: 22px;
    color: #d7c9ac;
    border: 1px solid #c9b2827c;
    padding: 7px 11px;
}

.section {
    padding: 72px 10% 85px;
}

.section:nth-of-type(even) {
    background: #101a30;
}

.section-title {
    margin-bottom: 30px;
}

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

.panel {
    background: linear-gradient(140deg,#172640,#0e172b);
    border: 1px solid var(--line);
    padding: 26px;
    border-radius: 8px;
    min-width: 0;
}

.panel p {
    font-size: 13px;
}

.link {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    margin-top: 8px;
}

.panel:hover {
    border-color: #c8a96e99;
}

.feature {
    display: flex;
    gap: 35px;
    align-items: center;
    background: linear-gradient(120deg,#162641,#0b1325);
    border: 1px solid var(--line);
    padding: 30px;
    border-radius: 8px;
}

.feature>img {
    width: 190px;
    height: 190px;
    object-fit: contain;
}

.feature .avatar {
    height: 120px;
    width: 120px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #233a61;
    border: 1px solid #c9ac6a;
    color: var(--gold);
    font-size: 52px;
}

.feature>div {
    flex: 1;
}

.muted {
    color: #8ea3bf;
    font-size: 12px;
}

.meter {
    width: min(420px,100%);
    height: 10px;
    background: #0b1224;
    border-radius: 99px;
    overflow: hidden;
}

.meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,#77afff,#e8c27d);
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin: 15px 0 25px;
    flex-wrap: wrap;
}

.toolbar input {
    background: #0b1325;
    border: 1px solid #7e94b766;
    color: white;
    border-radius: 6px;
    padding: 11px 13px;
    min-width: 240px;
}

.toolbar label {
    font-size: 12px;
    color: var(--blue);
}

.smallbtn,.buybtn {
    border: 1px solid #d4bb82;
    color: #10182a;
    background: #e9ca88;
    padding: 9px 17px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
}

.smallbtn:hover,.buybtn:hover {
    filter: brightness(1.1);
}

.buybtn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    border: 1px solid #8da7c17a;
    border-radius: 40px;
    padding: 7px 13px;
    font-size: 12px;
    color: #d7e8ff;
}

.stat {
    font: 42px Cinzel;
    color: var(--gold);
    margin-top: 20px;
}

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

th,td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}

th {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: .1em;
}

td {
    color: #dbe6f8;
}

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

.timeline>div {
    border-left: 2px solid var(--gold);
    padding-left: 20px;
}

.bars {
    height: 230px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-around;
    padding: 15px 5%;
}

.bars>div {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.bars span {
    display: block;
    width: 100%;
    max-width: 65px;
    background: linear-gradient(#efce87,#6599db);
    border-radius: 5px 5px 0 0;
}

.bars small {
    color: var(--muted);
}

footer {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 25px 5%;
    border-top: 1px solid var(--line);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
}

@media (max-width:1000px) {
    .header nav {
        gap: 12px;
    }

    .header nav a {
        font-size: 9px;
    }

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

@media (max-width:720px) {
    .header {
        height: 68px;
    }

    .header nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #0b1426f5;
        padding: 24px 6%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header nav.open {
        display: flex;
    }

    #menu {
        display: block;
    }

    .pagehero {
        height: 550px;
    }

    .hero-inner {
        margin: 60px 7% 0;
    }

    .section {
        padding: 55px 7%;
    }

    .cards {
        grid-template-columns: 1fr;
    }

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

    .feature>img {
        width: 135px;
        height: 135px;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .toolbar input {
        min-width: 0;
        width: 100%;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Single-page ASHEN layout */

.onepage-chapter {
    scroll-margin-top: 70px;
}

.chapter-heading {
    padding: 85px 10% 32px;
    background: linear-gradient(100deg,#142643,#0b1224);
    border-top: 1px solid #b5d3f42c;
}

.chapter-heading h2 {
    font-size: clamp(35px,4.8vw,62px);
    margin: 13px 0;
}

.chapter-heading p {
    max-width: 670px;
    margin: 0;
}

.onepage-chapter>.section {
    padding-top: 48px;
    padding-bottom: 65px;
}

#home {
    scroll-margin-top: 0;
}

@media (max-width:720px) {
    .chapter-heading {
        padding: 65px 7% 28px;
    }

    .onepage-chapter>.section {
        padding-top: 40px;
        padding-bottom: 50px;
    }
}

/* Celestial motion and centered editorial layout */

:root {
    --ease-celestial: cubic-bezier(.2,.8,.2,1);
}

body {
    overflow-x: hidden;
}

.header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-inner {
    margin: 75px auto 0;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-inner>p {
    margin: 0 auto;
    color: #eef4ff;
}

.section,.chapter-heading {
    text-align: center;
}

.section-title {
    max-width: 800px;
    margin: 0 auto 35px;
}

.chapter-heading p {
    margin: 0 auto;
}

.cards {
    max-width: 1250px;
    margin: 0 auto;
}

.panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform .55s var(--ease-celestial),box-shadow .55s ease,border-color .4s ease;
    position: relative;
    overflow: hidden;
}

.panel:before {
    content: "";
    position: absolute;
    inset: -60%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%,#c2d8ff0c,transparent 50%);
    opacity: 0;
    transition: opacity .5s;
}

.panel:hover {
    transform: translateY(-9px);
    box-shadow: 0 18px 55px #02091788,0 0 28px #98c5ff12;
    border-color: #d7c18c90;
}

.panel:hover:before {
    opacity: 1;
}

.panel>* {
    position: relative;
}

.feature {
    max-width: 1080px;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.feature>div {
    width: 100%;
}

.feature>img {
    filter: drop-shadow(0 0 22px #8cbfff55);
    animation: emblemFloat 7s ease-in-out infinite;
}

.feature .meter {
    margin: 15px auto;
}

.toolbar {
    justify-content: center;
}

.toolbar label {
    width: 100%;
    text-align: center;
}

.timeline {
    max-width: 1050px;
    margin: auto;
    text-align: center;
}

.timeline>div {
    border-left: 0;
    border-top: 2px solid var(--gold);
    padding: 20px 10px 0;
}

footer {
    justify-content: center;
    text-align: center;
    gap: 24px;
}

.onepage-chapter {
    position: relative;
}

.onepage-chapter:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    width: 65%;
    background: linear-gradient(90deg,transparent,#e7d39c70,transparent);
}

.pagehero {
    isolation: isolate;
}

.pagehero-bg {
    transform: scale(1.06);
    will-change: transform;
    animation: realmDrift 24s ease-in-out infinite alternate;
}

.pagehero:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 58%,#d9eaff14,transparent 58%);
}

.hero-inner {
    z-index: 2;
}

.hero-inner h1 {
    text-shadow: 0 0 35px #b9d9ff66,0 3px 30px #0009;
    animation: titleGlow 6s ease-in-out infinite alternate;
}

.hero-inner .kicker {
    letter-spacing: .35em;
}

.hero-inner .demo-note {
    margin-top: 28px;
}

.celestial-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.celestial-particle {
    position: absolute;
    width: var(--size,3px);
    height: var(--size,3px);
    left: var(--x);
    top: var(--y);
    border-radius: 50%;
    background: #e9f5ff;
    box-shadow: 0 0 9px 2px #a6cfffaa;
    opacity: .3;
    animation: particleFloat var(--duration,12s) ease-in-out infinite alternate;
    animation-delay: var(--delay,0s);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s var(--ease-celestial),transform 1s var(--ease-celestial);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cards .panel.reveal:nth-child(2) {
    transition-delay: .09s;
}

.cards .panel.reveal:nth-child(3) {
    transition-delay: .18s;
}

.cards .panel.reveal:nth-child(4) {
    transition-delay: .07s;
}

.cards .panel.reveal:nth-child(5) {
    transition-delay: .16s;
}

.cards .panel.reveal:nth-child(6) {
    transition-delay: .24s;
}

.brand img {
    filter: drop-shadow(0 0 12px #b5d6ff77);
    transition: transform .6s var(--ease-celestial);
}

.brand:hover img {
    transform: rotate(8deg) scale(1.1);
}

.header nav a {
    transition: color .3s ease;
}

button,.link {
    transition: transform .25s ease,filter .25s ease,color .25s ease;
}

button:not(:disabled):hover {
    transform: translateY(-2px);
}

.link:hover {
    color: #fff2cb;
    transform: translateX(3px);
}

@keyframes emblemFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes realmDrift {
    from {
        transform: scale(1.06) translate3d(-.5%,0,0);
    }

    to {
        transform: scale(1.14) translate3d(.5%,-1%,0);
    }
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 25px #a5cfff55,0 3px 25px #0009;
    }

    to {
        text-shadow: 0 0 48px #d8ebff9c,0 0 85px #7eaefc3d;
    }
}

@keyframes particleFloat {
    0% {
        transform: translate3d(0,0,0);
        opacity: .12;
    }

    50% {
        opacity: .6;
    }

    100% {
        transform: translate3d(16px,-55px,0);
        opacity: .16;
    }
}

@media (max-width:720px) {
    .hero-inner {
        margin: 65px auto 0;
        padding: 0 7%;
    }

    .feature {
        align-items: center;
    }

    .section,.chapter-heading {
        text-align: center;
    }

    .panel {
        padding: 25px 20px;
    }

    .pagehero-bg {
        will-change: auto;
    }

    .celestial-particle:nth-child(n/**/+14) {
        display: none;
    }
}

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

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .pagehero-bg {
        transform: none !important;
    }

    .celestial-particle {
        display: none;
    }
}

/* Cinematic centered layout + motion */

:root {
    --glow: #95bfff;
}

body {
    text-align: center;
    overflow-x: hidden;
    background: radial-gradient(ellipse at 50% 10%,#162d4a 0%,#0b1224 50%);
}

.header {
    position: fixed;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: #071022bb;
    transition: background .4s,box-shadow .4s;
}

.header.scrolled {
    background: #071022ef;
    box-shadow: 0 6px 30px #02081477;
}

.pagehero {
    height: min(920px,100svh);
    min-height: 600px;
    justify-content: center;
}

.pagehero-bg {
    background: linear-gradient(0deg,#0b1224 0%,transparent 37%),linear-gradient(90deg,#07122588,#07122530,#07122588),url("../assets/images/realm.png") center/cover;
    transform: scale(1.08);
    will-change: transform;
}

.hero-inner {
    margin: 70px auto 0;
    padding: 0 24px;
    max-width: 930px;
    z-index: 2;
}

.hero-inner>p {
    margin: 20px auto;
    color: #f0f4ff;
    max-width: 650px;
}

h1 {
    text-shadow: 0 3px 32px #040b1f,0 0 55px #a3c9ff44;
}

.kicker {
    letter-spacing: .34em;
}

.demo-note {
    background: #07122599;
    backdrop-filter: blur(8px);
}

.section-title,.chapter-heading {
    text-align: center;
}

.chapter-heading p {
    margin: 0 auto;
}

.section {
    position: relative;
}

.section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(65%,600px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,transparent,#c7dfff45,transparent);
}

.cards {
    max-width: 1180px;
    margin: 0 auto;
    justify-items: stretch;
}

.panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    box-shadow: 0 15px 50px #0002;
    transition: transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .5s,border-color .5s,background .5s;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -30%,#a6cfff24,transparent 65%);
    opacity: 0;
    transition: opacity .5s;
    pointer-events: none;
}

.panel:hover {
    transform: translateY(-9px);
    box-shadow: 0 25px 60px #0007,0 0 40px #8cb9ff12;
    border-color: #d8c18eaa;
}

.panel:hover::before {
    opacity: 1;
}

.panel>* {
    position: relative;
}

.panel .link {
    margin-top: auto;
    padding-top: 14px;
}

.feature {
    justify-content: center;
    flex-direction: column;
    max-width: 960px;
    margin: auto;
    text-align: center;
    box-shadow: 0 18px 70px #0003;
}

.feature>img {
    filter: drop-shadow(0 0 20px #9fc9ff55);
    animation: emblemFloat 7s ease-in-out infinite;
}

.feature>div {
    flex: unset;
    width: 100%;
}

.feature p {
    max-width: 680px;
    margin: 10px auto;
}

.feature .avatar {
    margin: auto;
    box-shadow: 0 0 30px #88baff44;
    animation: emblemFloat 6s ease-in-out infinite;
}

.meter {
    margin: 16px auto;
}

.toolbar {
    justify-content: center;
    gap: 18px 24px;
}

.toolbar label {
    width: 100%;
}

.toolbar input {
    text-align: center;
    transition: border-color .3s,box-shadow .3s;
}

.toolbar input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px #efce8725;
}

.chips {
    justify-content: center;
}

.timeline {
    max-width: 1050px;
    margin: auto;
}

.timeline>div {
    text-align: center;
    border-left: 0;
    border-top: 2px solid var(--gold);
    padding: 20px 5px 0;
}

.bars {
    max-width: 900px;
    margin: auto;
}

.panel table {
    text-align: left;
}

.panel:has(table) {
    display: block;
    overflow-x: auto;
    min-height: 0;
}

table th,table td {
    text-align: center;
}

.onepage-chapter {
    position: relative;
}

.chapter-heading {
    background: radial-gradient(ellipse at 50% 0,#203858,#0b1224 75%);
    padding-top: 110px;
    padding-bottom: 45px;
}

.chapter-heading h2 {
    filter: drop-shadow(0 0 18px #b1d1ff28);
}

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

.celestial-atmosphere i {
    position: absolute;
    left: var(--x);
    top: var(--y);
    height: var(--size);
    width: var(--size);
    background: #f4e4ba;
    border-radius: 50%;
    box-shadow: 0 0 12px 3px #c0d9ffb3;
    opacity: 0;
    animation: starDrift 12s linear infinite;
    animation-delay: calc(-1 * var(--delay));
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .85s ease,transform .85s cubic-bezier(.2,.75,.25,1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.cards>.reveal:nth-child(3n + 2) {
    transition-delay: .12s;
}

.cards>.reveal:nth-child(3n) {
    transition-delay: .24s;
}

@keyframes starDrift {
    0% {
        transform: translateY(35px) scale(.6);
        opacity: 0;
    }

    20% {
        opacity: .7;
    }

    70% {
        opacity: .5;
    }

    100% {
        transform: translateY(-80px) scale(1.3);
        opacity: 0;
    }
}

@keyframes emblemFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@media (max-width:720px) {
    .pagehero {
        height: 88svh;
        min-height: 550px;
    }

    .hero-inner {
        padding: 0 7%;
        margin-top: 60px;
    }

    .chapter-heading {
        padding-top: 85px;
    }

    .feature {
        padding: 24px;
    }

    .cards>.reveal {
        transition-delay: 0s !important;
    }

    .header nav {
        text-align: left;
        align-items: center;
    }

    .header nav a {
        font-size: 12px;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }

    .pagehero-bg {
        transform: none !important;
    }
}

/* V2 layout rhythm, centering and polish */

:root {
    --section-width: 1160px;
}

main {
    overflow: hidden;
}

.chapter-heading {
    padding: 74px 24px 58px;
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chapter-heading h2 {
    margin: 10px auto 15px;
    max-width: 1050px;
    line-height: 1.2;
}

.chapter-heading p {
    max-width: 660px;
    margin: 0 auto;
}

.onepage-chapter>.section {
    padding-top: 68px;
    padding-bottom: 72px;
}

.section {
    padding-left: 24px;
    padding-right: 24px;
}

.section-title {
    max-width: 860px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-title h2 {
    margin: 10px 0 0;
}

.section-title p {
    margin: 12px auto 0;
    max-width: 640px;
}

.cards {
    width: 100%;
    max-width: var(--section-width);
    margin-inline: auto;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.stats>.panel {
    width: calc((100% - 40px)/3);
    min-width: 250px;
    flex: 0 1 calc((100% - 40px)/3);
}

#commands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: 1130px;
}

#commands>.panel {
    flex: 0 1 340px;
    min-height: 174px;
    padding: 20px 22px;
}

#commands>.panel h3 {
    font-size: 20px;
    overflow-wrap: anywhere;
}

#commands>.panel p {
    margin: 9px 0 0;
}

.feature {
    max-width: 1000px;
}

.feature .profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px auto 18px;
    border: 1px solid #e4b4ed66;
    background: #9f5bb217;
    border-radius: 30px;
    padding: 4px 14px 4px 6px;
    color: #f2dcfa;
    font-size: 12px;
}

.profile-badge img {
    width: 31px;
    height: 31px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px #ef8aff55);
}

.discord-avatar {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%,#6286c8,#192b55 70%);
    border: 3px solid #d4b87a;
    display: grid;
    place-items: center;
    box-shadow: 0 0 38px #a6c9ff44;
    flex: none;
}

.discord-avatar span {
    font-size: 50px;
    color: #f4d78e;
}

.badge-section {
    background: radial-gradient(ellipse at 50% 0%,#28416b55,#0b1326 65%);
    border-top: 1px solid #b4c7e021;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.badge-card {
    position: relative;
    overflow: hidden;
    padding: 28px 15px 25px;
    border: 1px solid #c3d1e32b;
    background: linear-gradient(160deg,#172641,#0b1326);
    border-radius: 12px;
    text-align: center;
    transition: transform .5s cubic-bezier(.2,.8,.2,1),border-color .5s,box-shadow .5s;
}

.badge-card img {
    width: min(100%,185px);
    height: 195px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--badge-glow));
    animation: badgeDrift 6s ease-in-out infinite;
}

.badge-card:nth-child(2) img {
    animation-delay: -1.2s;
}

.badge-card:nth-child(3) img {
    animation-delay: -2.4s;
}

.badge-card:nth-child(4) img {
    animation-delay: -3.6s;
}

.badge-card h3 {
    font-size: 19px;
    margin: 12px 0 4px;
}

.badge-card p {
    font-size: 12px;
    margin: 0;
}

.badge-card:hover {
    transform: translateY(-8px);
    border-color: var(--badge-glow);
    box-shadow: 0 16px 48px #0007,0 0 28px var(--badge-glow);
}

.badge-owner {
    --badge-glow: #ff667777;
}

.badge-booster {
    --badge-glow: #fa80e077;
}

.badge-member {
    --badge-glow: #ffca5577;
}

.badge-newcomer {
    --badge-glow: #c7e2ff77;
}

.presence-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
    margin-top: 28px;
    padding: 10px 26px;
    background: #0b142ab8;
    border: 1px solid #e6efff4d;
    border-radius: 50px;
    box-shadow: 0 8px 35px #08101a55;
    backdrop-filter: blur(8px);
}

.presence-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e2e9f5;
    font-size: 12px;
}

.presence-item strong {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.presence-divider {
    width: 1px;
    height: 25px;
    background: #ffffff4a;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #52df9b;
    box-shadow: 0 0 10px #52df9b99;
}

.status-dot.offline {
    background: #98a3b7;
}

.header nav a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .065em;
    position: relative;
    padding: 15px 1px;
    transition: color .35s,text-shadow .35s;
}

.header nav a:after {
    content: "";
    position: absolute;
    bottom: 9px;
    left: 50%;
    width: 0;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg,#9dbff8,#f4d18a,#9dbff8);
    box-shadow: 0 0 12px #e4ca8e77;
    transition: width .38s cubic-bezier(.2,.8,.2,1);
}

.header nav a:hover,.header nav a.current {
    color: #f5d895;
    text-shadow: 0 0 12px #d6c0866e;
}

.header nav a:hover:after,.header nav a.current:after {
    width: 100%;
}

.invite-section {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%,#1c3156,#080c17 68%);
    border-top: 1px solid #c7d8f133;
    isolation: isolate;
    overflow: hidden;
}

.invite-section:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(#c9e5ff 1px,transparent 1px),radial-gradient(#e6cf96 1px,transparent 1px);
    background-size: 137px 121px,211px 179px;
    background-position: 0 0,40px 55px;
    opacity: .35;
    animation: inviteStars 28s linear infinite;
}

.invite-content {
    position: relative;
    z-index: 1;
    padding: 75px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.invite-star {
    font-size: 38px;
    color: #f5db9e;
    filter: drop-shadow(0 0 18px #b8d5ff);
    animation: emblemFloat 6s ease-in-out infinite;
}

.invite-content h2 {
    font-size: clamp(54px,7vw,85px);
    letter-spacing: .2em;
    margin: 15px 0 8px;
}

.invite-content p {
    font-family: Cinzel,serif;
    font-size: 13px;
    letter-spacing: .33em;
    color: #e9dcbf;
    margin: 8px 0 30px;
}

.invite-button {
    border: 1px solid #e9c785a6;
    padding: 13px 27px;
    color: #f3e7cc;
    background: #d8b76c13;
    letter-spacing: .16em;
    font: 12px Cinzel,serif;
    transition: background .35s,box-shadow .35s,transform .35s;
}

.invite-button span {
    margin-left: 20px;
}

.invite-button:hover {
    transform: translateY(-3px);
    background: #e7c68224;
    box-shadow: 0 0 30px #c5dfff33;
}

.invite-content small {
    margin-top: 65px;
    color: #98a6bf;
    font-size: 10px;
    letter-spacing: .14em;
}

@keyframes badgeDrift {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes inviteStars {
    to {
        background-position: 137px -121px,251px -124px;
    }
}

@media (max-width:1050px) {
    .badge-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        max-width: 720px;
    }

    .stats>.panel {
        flex-basis: calc((100% - 20px)/2);
    }
}

@media (max-width:720px) {
    .chapter-heading {
        padding: 65px 7% 48px;
    }

    .onepage-chapter>.section {
        padding: 52px 7%;
    }

    .badge-grid {
        gap: 12px;
    }

    .badge-card {
        padding: 20px 8px;
    }

    .badge-card img {
        height: 125px;
    }

    .badge-card h3 {
        font-size: 15px;
    }

    .badge-card p {
        font-size: 11px;
    }

    .stats>.panel {
        flex: 1 1 100%;
    }

    #commands>.panel {
        flex: 1 1 100%;
        min-height: 145px;
    }

    .presence-strip {
        gap: 15px;
        padding: 9px 16px;
    }

    .header nav a {
        padding: 8px 0;
    }

    .header nav a:after {
        bottom: 2px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .badge-card img,.invite-section:before,.invite-star {
        animation: none !important;
    }
}

/* PROFILE AVATAR: prevent the generic feature div from stretching it */

.feature > .discord-avatar {
    width: 124px;
    height: 124px;
    min-width: 124px;
    min-height: 124px;
    max-width: 124px;
    max-height: 124px;
    flex: 0 0 124px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 0 auto;
}

/* LIVE MEMBER PROFILES */

#live-profile {
    min-height: 260px;
}

.live-avatar {
    width: 124px;
    height: 124px;
    min-width: 124px;
    flex: 0 0 124px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4b87a;
    box-shadow: 0 0 28px #a6c9ff55;
}

.live-avatar-placeholder {
    display: grid;
    place-items: center;
    font-size: 48px;
}

.leaderboard-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 12px;
}

.member-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-row {
    cursor: pointer;
}

.live-row:hover {
    background: #a7c9ff12;
}

/* COMPACT LIVE MEMBER PROFILE — scoped to the live profile only */

#live-profile.feature {
    width: min(100%, 620px);
    max-width: 620px;
    min-height: 0;
    margin: 0 auto;
    padding: 24px 28px;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

#live-profile.feature > div {
    width: 100%;
    flex: 0 1 auto;
    min-width: 0;
}

#live-profile .live-avatar,
#live-profile.feature > .discord-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    max-width: 88px;
    max-height: 88px;
    flex: 0 0 88px;
    margin: 0 auto 4px;
    object-fit: cover;
}

#live-profile h2,
#live-profile h3 {
    margin: 4px 0 6px;
    line-height: 1.3;
}

#live-profile p,
#live-profile .muted {
    margin: 4px auto;
    line-height: 1.55;
}

#live-profile .profile-badge {
    margin: 5px auto;
}

#live-profile .chips {
    justify-content: center;
    gap: 6px;
    margin: 5px auto;
}

#live-profile .chip {
    padding: 4px 10px;
}

@media (max-width: 720px) {
    #live-profile.feature {
        width: 100%;
        padding: 20px 16px;
        gap: 8px;
    }
}

/* Wider member search field — desktop and mobile */

#boardFilter {
    width: min(100%, 460px);
    min-width: 0;
    max-width: 100%;
    padding: 12px 18px;
}

@media (max-width: 720px) {
    #boardFilter {
        width: min(100%, 460px);
    }
}

/* Member directory interaction and compact presence label */

#board .live-row {
    cursor: pointer;
    transition: background .2s ease;
}

#board .live-row:hover, #board .live-row:focus-visible,
#board .live-row.selected-member {
    background: rgba(168, 207, 255, .13);
}

#board .live-row:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

#live-profile {
    scroll-margin-top: 105px;
}

#live-profile .profile-presence {
    font-size: 12px;
    color: #b4d4ff;
    margin: 0;
}

/* Worlds We Wander — ASHEN game collection */

.ashen-worlds {
    padding-top: clamp(70px, 9vw, 120px);
    padding-bottom: clamp(75px, 10vw, 130px);
}

.ashen-worlds .section-title {
    text-align: center;
    margin-bottom: 34px;
}

.worlds-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.world-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(197,166,106,.25);
    border-radius: 18px;
    background: linear-gradient(145deg,#18243b,#0b1325);
    box-shadow: 0 22px 50px rgba(0,0,0,.22);
    transition: transform .3s ease,border-color .3s ease,box-shadow .3s ease;
}

.world-card:hover {
    transform: translateY(-7px);
    border-color: rgba(226,190,117,.65);
    box-shadow: 0 26px 65px rgba(0,0,0,.38),0 0 35px rgba(197,166,106,.08);
}

.world-art {
    height: clamp(190px,24vw,300px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.world-art:before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 42%,rgba(255,255,255,.19),transparent 48%);
}

.world-art:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,#121c30 0%,transparent 45%);
}

.world-idol .world-art {
    background: radial-gradient(circle at 75% 25%,#c37bb8 0%,transparent 35%),radial-gradient(circle at 22% 75%,#624caa 0%,transparent 42%),linear-gradient(125deg,#332b68,#161b43 65%,#30264a);
}

.world-aniimo .world-art {
    background: radial-gradient(circle at 72% 28%,#8ebbb5 0%,transparent 35%),radial-gradient(circle at 20% 78%,#456c9a 0%,transparent 45%),linear-gradient(135deg,#213f5b,#102c3f 65%,#142a39);
}

.world-art-symbol {
    font-family: Georgia,serif;
    font-size: clamp(105px,14vw,185px);
    color: rgba(255,242,210,.75);
    text-shadow: 0 0 45px rgba(255,255,255,.3);
    line-height: 1;
    transform: rotate(-10deg);
}

.world-aniimo .world-art-symbol {
    transform: none;
}

.world-art-label {
    position: absolute;
    z-index: 1;
    left: 25px;
    bottom: 18px;
    font-size: 10px;
    letter-spacing: .22em;
    color: #f2d9b3;
}

.world-info {
    padding: 24px 26px 27px;
}

.world-index {
    color: #c7a66a;
    font-size: 10px;
    letter-spacing: .22em;
}

.world-info h3 {
    margin: 9px 0 7px;
    font-size: clamp(22px,2.6vw,30px);
    color: #f3e8d7;
}

.world-info p {
    color: #abb8ce;
    margin: 0 0 20px;
    line-height: 1.55;
}

.world-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.world-tags span {
    border: 1px solid rgba(202,176,129,.27);
    border-radius: 99px;
    color: #d9c7a8;
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: .04em;
}

.worlds-foot {
    max-width: 1100px;
    margin: 25px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    color: #c7a66a;
    font-size: 12px;
    letter-spacing: .1em;
}

.worlds-foot a {
    color: #e9d2a7;
    text-decoration: none;
    border-bottom: 1px solid rgba(233,210,167,.35);
    padding-bottom: 4px;
}

.worlds-foot a:hover {
    color: white;
}

@media (max-width:700px) {
    .worlds-grid {
        grid-template-columns: 1fr;
    }

    .world-art {
        height: 220px;
    }

    .worlds-foot {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion:reduce) {
    .world-card {
        transition: none;
    }

    .world-card:hover {
        transform: none;
    }
}

.presence-item .status-dot.total {
    background: #d8bc83;
    box-shadow: 0 0 10px rgba(216, 188, 131, 0.5);
}


/* ============================================================
   ASHEN — GAME ARTWORK & ALIGNMENT FIXES
   Add at the VERY END of css/style.css
   ============================================================ */

/* Center shop's live message and wallet text without changing the shop logic. */
#shop .section,
#shop .section-title,
#shop .toolbar,
#shop .muted {
    text-align: center;
}

#shop .toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

#shop #shop-items {
    width: min(100%, 1100px);
    margin-inline: auto;
    justify-content: center;
    justify-items: center;
    text-align: center;
}

#shop #shop-items > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    text-align: center;
    grid-column: 1 / -1;
}

/* The live shop's informational message must not sit in a grid column. */
#shop #shop-items > p,
#shop #shop-items > .muted {
    width: min(100%, 650px);
    justify-self: center;
}

/* Center all game card copy and tag pills. */
.ashen-worlds .world-info {
    text-align: center;
}

.ashen-worlds .world-info h3,
.ashen-worlds .world-info p,
.ashen-worlds .world-index {
    text-align: center;
}

.ashen-worlds .world-tags {
    justify-content: center;
}

.ashen-worlds .world-art-label {
    left: 0;
    right: 0;
    bottom: 18px;
    width: 100%;
    padding-inline: 16px;
    text-align: center;
}

/* Cover photos fill the card and blend into the dark navy lower section. */
.ashen-worlds .world-art {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #101b32;
}

.ashen-worlds .world-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: -1;
}

.ashen-worlds .world-art::before {
    display: none;
}

.ashen-worlds .world-art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(16, 27, 50, 0.04) 0%,
        rgba(16, 27, 50, 0.10) 38%,
        rgba(16, 27, 50, 0.58) 73%,
        #101b32 100%
    );
}

.ashen-worlds .world-art-label {
    z-index: 1;
}

.ashen-worlds .world-info {
    background: #101b32;
}

/* Avoid awkward horizontal overflow on small phones. */
@media (max-width: 720px) {
    #shop #shop-items {
        grid-template-columns: minmax(0, 1fr);
    }
    .ashen-worlds .world-art {
        height: 230px;
    }
}


/* ==========================================
   ASHEN MEMBER PROFILE POPUP
   ========================================== */

.ashen-member-modal {
    position: fixed;
    inset: 0;
    width: min(92vw, 520px);
    max-height: 85vh;
    margin: auto;
    padding: 34px 28px;
    overflow-y: auto;

    background: linear-gradient(
        145deg,
        #192841,
        #0b1427
    );

    color: #e8edf8;
    border: 1px solid rgba(216, 188, 131, 0.45);
    border-radius: 16px;

    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.65);
}

.ashen-member-modal:not([open]) {
    display: none;
}

.ashen-member-modal::backdrop {
    background: rgba(3, 8, 20, 0.78);
    backdrop-filter: blur(7px);
}

.ashen-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;

    background: transparent;
    border: none;
    color: #d8bc83;
    font-size: 28px;
    cursor: pointer;
}

.ashen-modal-heading {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #d8bc83;
    margin-bottom: 22px;
}

.ashen-modal-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.ashen-modal-profile .live-avatar {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #d8bc83;
    box-shadow: 0 0 25px rgba(216, 188, 131, 0.25);
}

.ashen-modal-profile h3 {
    font-size: 25px;
    margin: 4px 0;
}

.ashen-modal-profile p {
    margin: 3px 0;
}

.ashen-modal-profile .profile-badge {
    margin: 6px 0;
}

@media (max-width: 600px) {
    .ashen-member-modal {
        width: 92vw;
        padding: 28px 18px;
    }
}


/* ==========================================
   ASHEN — CELESTIAL MUSIC CONTROL
   ========================================== */

.ashen-music-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 20px;

    background: rgba(15, 26, 48, 0.92);
    border: 1px solid rgba(216, 188, 131, 0.5);
    border-radius: 50px;

    color: #d8bc83;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);

    cursor: pointer;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.ashen-music-toggle:hover {
    background: rgba(28, 44, 72, 0.96);
    border-color: #d8bc83;
    box-shadow: 0 0 22px rgba(216, 188, 131, 0.18);
    transform: translateY(-2px);
}

.ashen-music-toggle:focus-visible {
    outline: 2px solid #d8bc83;
    outline-offset: 4px;
}

.ashen-music-toggle.is-playing {
    border-color: rgba(216, 188, 131, 0.85);
    box-shadow: 0 0 24px rgba(216, 188, 131, 0.18);
}

.music-icon {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 600px) {
    .ashen-music-toggle {
        right: 14px;
        bottom: 14px;
        padding: 11px 15px;
        font-size: 12px;
    }
}


/* ==========================================
   ASHEN — HEAVENLY PARALLAX
   ========================================== */

.pagehero-bg {
    background-position:
        center center,
        center center,
        center calc(50% + var(--parallax-y, 0px));
}

@media (prefers-reduced-motion: reduce) {
    .pagehero-bg {
        --parallax-y: 0px;
    }
}


/* ASHEN Discord login — scoped navigation additions */
.header nav .ashen-auth { display:flex; align-items:center; min-width:0; }
.header nav .ashen-login { display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; padding:8px 12px; border:1px solid rgba(239,206,135,.58); border-radius:7px; background:rgba(239,206,135,.09); color:#efce87; font-size:10px; font-weight:700; letter-spacing:.04em; }
.header nav .ashen-login::after { display:none; }
.header nav .ashen-login:hover { background:rgba(239,206,135,.2); color:#fff0c8; }
.header nav .ashen-account { display:flex; align-items:center; gap:7px; max-width:230px; }
.header nav #discord-avatar { width:30px; height:30px; flex:none; border-radius:50%; border:1px solid #efce87; object-fit:cover; }
.header nav #discord-username { max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; color:#f3f7ff; }
.header nav #discord-logout { border:1px solid rgba(239,206,135,.4); border-radius:6px; padding:5px 8px; color:#efce87; background:transparent; cursor:pointer; font-size:10px; }
.header nav #discord-logout:hover { background:rgba(239,206,135,.15); }
#discord-account[hidden], #discord-login[hidden], #discord-avatar[hidden] { display:none !important; }
@media (max-width:1100px) and (min-width:721px) { .header nav { gap:9px; } .header nav .ashen-login { padding:7px 8px; font-size:9px; } }
@media (max-width:720px) { .header nav .ashen-auth { width:100%; } .header nav .ashen-login { padding:10px 14px; } .header nav .ashen-account { max-width:100%; } }


/* ==========================================
   ASHEN — DISCORD ACCOUNT NAVIGATION
   ========================================== */

/* Give the account enough room for the full username */
.header nav .ashen-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: none;
    width: max-content;
    flex-shrink: 0;
}

/* Display the full Discord username */
.header nav #discord-username {
    display: inline-block;
    width: auto;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Dashboard button — match Logout */
.header nav .ashen-account .ashen-dashboard-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;

    height: 30px;
    min-height: 30px;
    width: auto;

    padding: 0 10px;
    margin: 0;

    border: 1px solid rgba(239, 206, 135, 0.4);
    border-radius: 6px;
    background: transparent;

    color: #efce87;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: none;
    box-sizing: border-box;
    flex-shrink: 0;

    transform: translateY(0);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

/* Remove the regular navbar underline */
.header nav .ashen-account .ashen-dashboard-link::before,
.header nav .ashen-account .ashen-dashboard-link::after {
    content: none;
    display: none;
}

/* Same upward movement and background as Logout */
.header nav .ashen-account .ashen-dashboard-link:hover {
    transform: translateY(-2px);
    background: rgba(239, 206, 135, 0.15);
    border-color: rgba(239, 206, 135, 0.4);
    color: #efce87;
    text-shadow: none;
    box-shadow: none;
}

/* Keep both buttons consistently sized */
.header nav #discord-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-height: 30px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Maintain accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    .header nav .ashen-account .ashen-dashboard-link {
        transition: none;
    }

    .header nav .ashen-account .ashen-dashboard-link:hover {
        transform: none;
    }
}


/* ==========================================
   ASHEN — NAVIGATION ALIGNMENT
   ========================================== */

.header {
    display: flex;
    align-items: center;
}

.header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.header nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 1px;
    line-height: 1;
}

/* Keep the active underline beneath the text */
.header nav > a::after {
    bottom: 0;
}

/* Keep the Discord account centered with nav links */
.header nav .ashen-account {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Keep account buttons aligned */
.header nav .ashen-account .ashen-dashboard-link,
.header nav .ashen-account #discord-logout {
    vertical-align: middle;
    align-self: center;
}

@media (max-width: 720px) {
    .header nav {
        align-items: center;
        gap: 16px;
    }

    .header nav > a {
        height: auto;
        padding: 8px 0;
    }
}


/* ==========================================
   ASHEN — TWO-GROUP NAVBAR LAYOUT
   ========================================== */

.header #nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.header #nav .ashen-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23px;
}

.header #nav .ashen-nav-links > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 1px;
    line-height: 1;
}

.header #nav .ashen-nav-links > a::after {
    bottom: 0;
}

.header #nav .ashen-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header #nav .ashen-account {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Preserve the logged-out state */
.header #nav .ashen-account[hidden],
.header #nav .ashen-login[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .header #nav .ashen-nav-links {
        gap: 12px;
    }
}

@media (max-width: 720px) {
    .header #nav {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .header #nav .ashen-nav-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .header #nav .ashen-nav-links > a {
        height: auto;
        padding: 8px 0;
    }

    .header #nav .ashen-auth {
        max-width: 100%;
    }
}


/* ==========================================
   ASHEN — NAVIGATION OPTICAL ALIGNMENT
   ========================================== */

/* Adjust text positioning without moving the layout */
.header #nav .ashen-nav-links > a {
    padding-top: 2px;
    padding-bottom: 0;
}

/* Preserve the underline position */
.header #nav .ashen-nav-links > a::after {
    bottom: 0;
}


/* ==========================================
   ASHEN — TRUE CENTERED WEBSITE NAVIGATION
   ========================================== */

@media (min-width: 1401px) {
    .header {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Let the navigation span the entire header */
    .header #nav {
        display: contents;
    }

    /* Center links relative to the viewport */
    .header #nav .ashen-nav-links {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: max-content;
        max-width: calc(100% - 40px);
    }

    /* Keep Discord controls on the far right */
    .header #nav .ashen-auth {
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}



/* ASHEN — mobile navigation visibility and link spacing */
@media (max-width: 720px) {
  .header #nav:not(.open) { display: none; }
  .header #nav.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: 24px 6%;
    background: #0b1426f5;
    z-index: 20;
  }
  .header #nav .ashen-nav-links > a {
    height: 42px;
    padding: 5px 2px 12px;
    line-height: 1.3;
  }
  .header #nav .ashen-nav-links > a::after { bottom: 3px; }
}

/* Match Discord login hover motion to the dashboard and logout controls */
.header #nav .ashen-login {
  transition: transform .25s ease, background .25s ease,
              border-color .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .header #nav .ashen-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 20px rgba(0, 0, 0, .25);
  }
}
.ashen-profile-login {
  display: inline-flex;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid rgba(239, 206, 135, .65);
  border-radius: 7px;
  color: #efce87;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}
.ashen-profile-login:hover {
  transform: translateY(-3px);
  background: rgba(239, 206, 135, .14);
}

/* ==========================================
   ASHEN — LOGIN REQUIRED POPUP
   ========================================== */

.ashen-login-required {
    width: min(90vw, 440px);
    max-width: 440px;
    padding: 0;
    border: 1px solid rgba(216, 188, 131, 0.45);
    border-radius: 20px;
    background: linear-gradient(145deg, #1b2b46, #0b1428);
    color: #e9edf8;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(216, 188, 131, 0.12);
}

.ashen-login-required::backdrop {
    background: rgba(3, 8, 20, 0.8);
    backdrop-filter: blur(8px);
}

.ashen-login-popup-content {
    padding: 42px 30px;
    text-align: center;
}

.ashen-login-symbol {
    font-size: 42px;
    color: #d8bc83;
    margin-bottom: 12px;
}

.ashen-login-popup-content h2 {
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    color: #f0e8d6;
    margin: 0 0 18px;
}

.ashen-login-popup-content p {
    color: #aebbd0;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.ashen-login-popup-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ashen-popup-login,
.ashen-popup-close {
    width: 100%;
    max-width: 280px;
    padding: 13px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.ashen-popup-login {
    border: 1px solid #d8bc83;
    background: rgba(216, 188, 131, 0.12);
    color: #d8bc83;
}

.ashen-popup-login:hover {
    transform: translateY(-3px);
    background: rgba(216, 188, 131, 0.22);
    box-shadow: 0 8px 22px rgba(216, 188, 131, 0.12);
}

.ashen-popup-close {
    border: 1px solid rgba(174, 187, 208, 0.25);
    background: transparent;
    color: #aebbd0;
}

.ashen-popup-close:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================
   ASHEN — CLICKABLE WORLD CARDS
   ========================================== */

a.world-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    min-width: 0;
}

a.world-card:hover {
    transform: translateY(-8px);
}

a.world-card:focus-visible {
    outline: 2px solid #efce87;
    outline-offset: 5px;
}

a.world-card:hover {
    transform: translateY(-8px);
}

a.world-card:focus-visible {
    outline: 2px solid #efce87;
    outline-offset: 5px;
}

/* ==========================================
   ASHEN — WORLD CARD GRID FIX
   ========================================== */

@media (min-width: 701px) {
    .ashen-worlds .worlds-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        align-items: stretch;
    }

    .ashen-worlds .worlds-grid > .world-card {
        width: 100%;
        min-width: 0;
        margin: 0;
        grid-column: auto;
    }
}

.ashen-worlds a.world-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}