/* Netherite Realms UI refinement layer - loaded after site.css */

:root {
    --ui-gold: #d7aa55;
    --ui-gold-light: #f2d18a;
    --ui-gold-dark: #76562b;
    --ui-purple: #9d4edd;
    --ui-purple-light: #c77dff;
}

html,
body {
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
select,
option,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

body {
    background-image:
        linear-gradient(rgba(9, 12, 18, .968), rgba(9, 12, 18, .992)),
        url('../img/ui/bg-stars.svg');
    background-repeat: no-repeat, repeat;
    background-size: auto, 640px 640px;
}

body::before {
    opacity: .55;
}

.site-header {
    position: relative;
    padding-top: 10px;
    background-color: #090c12;
    background-image:
        linear-gradient(180deg, rgba(5, 8, 13, .04) 0%, rgba(5, 8, 13, .12) 58%, rgba(9, 12, 18, .98) 100%),
        url('../img/ui/header-realm-backdrop.png');
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, cover;
}

.site-header > * {
    position: relative;
    z-index: 1;
}

.brand-banner {
    min-height: 350px;
    margin-bottom: 6px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 780px);
}

.brand::before,
.brand::after,
.brand-kicker,
.brand-name,
.brand-crystals {
    display: none !important;
}

.brand-logo {
    width: min(100%, 580px);
    height: auto;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .56));
}

/* Navigation is intentionally isolated in nav-reference.css.
   Keep all navbar frame/layout rules out of this file to avoid conflicts. */

.fantasy-panel {
    background: linear-gradient(180deg, rgba(68, 58, 59, .14), rgba(12, 14, 20, .95) 18%, rgba(12, 14, 20, .97));
    border: 1px solid rgba(181, 139, 75, .32);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 18px 42px rgba(0, 0, 0, .24);
}

.fantasy-panel::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 209, 138, .42), transparent);
    pointer-events: none;
}

.product-card::before,
.page-hero::after,
.footer-mark::before,
.footer-mark::after {
    content: none !important;
}

.button {
    border-radius: 10px;
    border: 1px solid rgba(215, 170, 85, .42);
    background: linear-gradient(180deg, rgba(30, 33, 44, .94), rgba(17, 18, 24, .98));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.button::before {
    display: none;
}

.button--primary {
    background: linear-gradient(180deg, #7d37ad, #4e206f);
    border-color: rgba(215, 170, 85, .75);
}

.button--ghost,
.button--small.button--ghost {
    background: linear-gradient(180deg, rgba(32, 35, 46, .92), rgba(15, 17, 24, .98));
}

.button:hover {
    transform: translateY(-1px);
}

.section-heading {
    padding-bottom: 16px;
}

.section-heading::after {
    left: 0;
    width: min(100%, 420px);
    height: 18px;
    background: url('../img/ui/divider.svg') left center / contain no-repeat;
    opacity: .92;
}

.feature-card {
    position: relative;
    grid-template-columns: 94px 1fr;
    gap: 18px;
    padding: 20px 10px;
	transition: all 0.25s ease-in;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card__icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.feature-card__icon img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.34));
}


.server-strip {
    /* grid-template-columns: 1.45fr repeat(4, minmax(145px, 1fr)); */
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
}

.server-strip > div {
    min-height: 98px;
    padding: 20px 24px;
    border-left: 1px solid rgba(215,170,85,.18);
}

.server-strip > div:first-child {
    padding-left: 34px;
}

.server-strip__metric {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
}

.server-strip__metric--newest {
    align-items: normal !important;
}

.newest-member-links {
	display: flex;
	gap: 10px;
}

.newest-member-links a {
	font-size: 1rem;
	text-decoration: none;
}

.newest-member-links > span {
	font-size: 1rem;
}

.server-strip__metric img {
    grid-row: 1 / 3;
    width: 24px;
    height: 24px;
    opacity: .95;
}

.server-strip__metric strong {
    font-size: 1.05rem;
    line-height: 1;
}

.server-strip__metric span {
    font-size: .69rem !important;
    letter-spacing: .1em;
}

.product-card {
    background: linear-gradient(180deg, rgba(68, 58, 59, .24), rgba(12,14,20,.94));
}

.rank-list li {
    grid-template-columns: 44px 1fr auto;
    min-height: 54px;
}

.rank-badge {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 38px;
    flex: 0 0 auto;
}

.rank-badge > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 7px rgba(0,0,0,.5));
}

.rank-badge--generic > span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -52%);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #d7d1c7;
    border-radius: 50%;
    background: radial-gradient(circle, #23262d 0 58%, rgba(35,38,45,.96) 59%, transparent 64%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 2px #000;
}

.table-rank {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaderboard-table .rank-badge {
    width: 36px;
    height: 34px;
}

.leaderboard-table .rank-badge--generic > span {
    width: 20px;
    height: 20px;
    font-size: .7rem;
}

.footer-mark {
    width: 78px;
    height: 78px;
    border: 0;
    transform: none;
    background: none;
}

.footer-mark img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.35));
}

.footer-mark span {
    display: none;
}

@media (max-width: 900px) {
    .brand-banner {
        min-height: 112px;
    }

    .brand-logo {
        width: min(100%, 520px);
    }

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

    .server-strip > div:first-child {
        grid-column: 1 / -1;
    }
}

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

    .server-strip > div {
        border-left: 0;
        border-top: 1px solid rgba(215,170,85,.18);
        min-height: 0;
    }

    .server-strip > div:first-child {
        grid-column: auto;
        border-top: 0;
    }

    .feature-card {
        grid-template-columns: 70px 1fr;
    }

    .feature-card__icon,
    .feature-card__icon img {
        width: 66px;
        height: 66px;
    }

    .rank-list li {
        grid-template-columns: 40px 1fr;
    }
}

/* Native select arrows sit against the edge in several browsers. Use a
   consistent custom arrow positioned approximately 10px farther inward. */
select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-color: #0d1017;
    background-image: url('../img/ui/select-arrow.svg');
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 8px;
}

.leaderboard-toolbar--stacked {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.leaderboard-toolbar--stacked .tab-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(215, 170, 85, .25);
    border-radius: 7px;
    overflow: hidden;
}

.leaderboard-toolbar--stacked .tab-list a {
    display: grid;
    place-items: center;
    min-height: 45px;
    padding: 9px 10px;
    border: 0;
    border-left: 1px solid rgba(215, 170, 85, .18);
    border-radius: 0;
    text-align: center;
}

.leaderboard-toolbar--stacked .tab-list a:first-child {
    border-left: 0;
}

.leaderboard-toolbar--stacked .tab-list a.is-active {
    box-shadow: inset 0 -2px 0 #c77dff, inset 0 0 24px rgba(157, 78, 221, .15);
}

.leaderboard-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dataset-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid rgba(215, 170, 85, .28);
    border-radius: 7px;
    background: rgba(9, 12, 18, .5);
}

.dataset-switch a {
    padding: 8px 13px;
    border-radius: 5px;
    color: #aaa3a0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.dataset-switch a:hover {
    color: #f2d18a;
}

.dataset-switch a.is-active {
    color: #fff;
    background: linear-gradient(145deg, #5d217b, #341242);
    box-shadow: inset 0 0 0 1px rgba(199, 125, 255, .3);
}

.realm-rank-name {
    color: #f2d18a;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

@media (max-width: 900px) {
    .leaderboard-toolbar--stacked .tab-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .leaderboard-toolbar--stacked .tab-list a:nth-child(4) {
        border-left: 0;
    }

    .leaderboard-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .dataset-switch {
        align-self: flex-start;
    }
}

@media (max-width: 560px) {
    .leaderboard-toolbar--stacked .tab-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leaderboard-toolbar--stacked .tab-list a:nth-child(odd) {
        border-left: 0;
    }

    .dataset-switch {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .dataset-switch a {
        padding-inline: 8px;
        text-align: center;
    }
}

/* August 2026 refinement: typography, centered medallions, status art,
   select placement, and expanded player profiles. */
h1,
h2,
h3,
.eyebrow,
.section-heading,
.tab-list,
.dataset-switch,
.realm-rank-name,
.footer-panel h2,
.player-card h2,
.profile-card-heading,
.profile-rank-card strong,
.profile-guild-card h2 {
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
}

/* Move the custom select caret another 10px inward from the prior position. */
select {
    padding-right: 54px;
    background-position: right 28px center;
}

/* Reference medallions are exported into identical centered canvases. */

.feature-card-link {
	text-decoration: none;
}

.feature-card {
    grid-template-columns: 96px 1fr;
}

.feature-card span{
    color: var(--purple-light);
}

.feature-card__icon,
.feature-card__icon img {
    width: 92px;
    height: 92px;
}

.feature-card__icon img {
    object-position: 50% 50%;
    filter: none;
}

/* Status graphics taken from the supplied reference strip. */
.server-strip__metric {
    grid-template-columns: 50px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 5px;
}

.server-strip__metric img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    object-position: center;
    opacity: 1;
}

.server-strip__metric strong {
    color: #ead9ba;
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.22rem;
}

.server-strip__metric--players strong {
    color: var(--purple-light);
}

/* Expanded player profile. */
.profile-grid--expanded {
    align-items: start;
}

.profile-stats--expanded {
    align-items: stretch;
}

.profile-combat-card,
.profile-activity-card,
.profile-ranks,
.profile-guild-card {
    padding: 24px;
}

.profile-card-heading > span,
.profile-activity-card > span,
.profile-rank-card > span,
.profile-guild-card > div > span,
.player-guild-summary > span {
    color: var(--gold);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.profile-card-heading h2,
.profile-guild-card h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 1.25rem;
}

.combat-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.combat-metrics > div {
    padding: 14px 10px;
    border: 1px solid rgba(215, 170, 85, .22);
    border-radius: 8px;
    background: rgba(8, 11, 17, .48);
    text-align: center;
}

.combat-metrics span {
    display: block;
    color: var(--muted);
    font-size: .65rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.combat-metrics strong {
    display: block;
    margin-top: 5px;
    color: var(--gold-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
}

.profile-activity-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.profile-activity-card strong {
    margin: 10px 0 3px;
    color: var(--purple-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.profile-activity-card small,
.profile-rank-card small,
.player-guild-summary small {
    color: var(--muted);
}

.profile-ranks,
.profile-guild-card {
    grid-column: 1 / -1;
}

.profile-rank-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.profile-rank-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(215, 170, 85, .22);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(68, 58, 59, .22), rgba(8, 11, 17, .56));
}

.profile-rank-card strong {
    display: block;
    margin: 7px 0 5px;
    color: var(--gold-light);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.profile-rank-card small {
    display: block;
    font-size: .72rem;
    line-height: 1.45;
}

.profile-guild-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-guild-card > strong {
    color: var(--purple-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
}

.player-guild-summary {
    margin: 0 0 22px;
    padding: 13px;
    border: 1px solid rgba(199, 125, 255, .24);
    border-radius: 8px;
    background: rgba(75, 27, 105, .16);
}

.player-guild-summary strong,
.player-guild-summary small {
    display: block;
}

.player-guild-summary strong {
    margin: 4px 0 2px;
    color: var(--purple-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 900px) {
    .profile-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .feature-card {
        grid-template-columns: 72px 1fr;
    }

    .feature-card__icon,
    .feature-card__icon img {
        width: 68px;
        height: 68px;
    }

    .combat-metrics,
    .profile-rank-grid {
        grid-template-columns: 1fr;
    }

    .profile-guild-card {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Home server strip — final responsive layout */
.server-strip.server-strip--compact {
    display: grid;
    grid-template-columns: 240px 120px 120px minmax(0, 1fr);
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
}

.server-strip.server-strip--compact > div {
    min-width: 0;
    min-height: 98px;
    padding: 18px;
    border-left: 1px solid rgba(215, 170, 85, .18);
}

.server-strip.server-strip--compact > .server-strip__status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 24px;
    border-left: 0;
}

.server-strip.server-strip--compact .server-strip__metric--players,
.server-strip.server-strip--compact .server-strip__metric--members {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding-inline: 10px;
    text-align: center;
}

.server-strip.server-strip--compact .server-strip__metric--players img,
.server-strip.server-strip--compact .server-strip__metric--members img {
    width: 34px;
    height: 34px;
    margin: 0 auto 2px;
}

.server-strip.server-strip--compact .server-strip__metric--players strong,
.server-strip.server-strip--compact .server-strip__metric--members strong {
    width: 100%;
    text-align: center;
}

.server-strip.server-strip--compact .server-strip__metric--players > span,
.server-strip.server-strip--compact .server-strip__metric--members > span {
    width: 100%;
    text-align: center;
    line-height: 1.25;
}

.server-strip.server-strip--compact .server-strip__metric--newest {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start !important;
    padding: 18px 30px 18px 24px;
}

.server-strip.server-strip--compact .server-strip__metric--newest > strong {
	display: block;
	padding: 10px 0;
	width:100%;
}

.newest-member-links {
    display: flex;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding-right: 4px;
}

.newest-member-links a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
	padding:0;
    word-break: break-word;
}

.newest-member-links a:hover {
    color: var(--gold-light);
}

@media (max-width: 900px) {
    .server-strip.server-strip--compact {
        grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "status players members"
            "newest newest newest";
    }

    .server-strip.server-strip--compact > div {
        min-height: 0;
        border: 0 !important;
    }

    .server-strip.server-strip--compact > .server-strip__status {
        grid-area: status;
        align-items: center;
        padding: 14px 12px;
        text-align: center;
    }

    .server-strip.server-strip--compact .server-strip__metric--players {
        grid-area: players;
        padding: 14px 8px;
    }

    .server-strip.server-strip--compact .server-strip__metric--members {
        grid-area: members;
        padding: 14px 8px;
    }

    .server-strip.server-strip--compact .server-strip__metric--newest {
        grid-area: newest;
        align-items: center !important;
        padding: 40px 18px 16px;
        text-align: center;
    }
	
	.server-strip.server-strip--compact .server-strip__metric--newest > strong {
		display: block;
		border-bottom: 1px solid rgba(181, 139, 75, .32);
		padding: 20px 0;
		margin-bottom: 15px;
		width:100%;
	}

    .server-strip.server-strip--compact .server-strip__metric--players img,
    .server-strip.server-strip--compact .server-strip__metric--members img {
        width: 30px;
        height: 30px;
    }

    .newest-member-links {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding-right: 0;
    }

    .newest-member-links > span {
        display: none;
    }

    .newest-member-links a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .server-strip.server-strip--compact {
        grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
    }

    .server-strip.server-strip--compact > .server-strip__status,
    .server-strip.server-strip--compact .server-strip__metric--players,
    .server-strip.server-strip--compact .server-strip__metric--members {
        padding-inline: 6px;
    }

    .server-strip.server-strip--compact .server-strip__metric--players img,
    .server-strip.server-strip--compact .server-strip__metric--members img {
        width: 26px;
        height: 26px;
    }

    .server-strip.server-strip--compact .server-strip__metric strong {
        font-size: 1rem;
    }

    .server-strip.server-strip--compact .server-strip__metric span {
        font-size: .58rem !important;
        letter-spacing: .07em;
    }

    .server-strip.server-strip--compact .server-strip__status .eyebrow {
        font-size: .68rem;
    }
}