/* HyggeNygge Site Core v1 */

:root {
    --gold: #d8b16a;
    --gold-light: #f1d08d;
    --white: #f7f2e8;
    --muted: rgba(247,242,232,0.72);
    --line: rgba(216,177,106,0.16);
    --dark: #050403;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(rgba(0,0,0,0.04), rgba(0,0,0,0.58)),
        url("ritual-bg.png") center top / cover no-repeat fixed,
        #050403;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    box-shadow: inset 0 0 240px rgba(0,0,0,0.94);
}

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

.frame {
    position: fixed;
    inset: 12px;
    border: 1px solid rgba(216,177,106,0.16);
    z-index: 2;
    pointer-events: none;
}

/* Login */

.login-body {
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 35%),
        linear-gradient(180deg, #030303 0%, #0d0d0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-body::after {
    z-index: 1;
    box-shadow: inset 0 0 160px rgba(0,0,0,0.88);
}

.ritual-preview {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0;
    background:
        linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.70)),
        url("ritual-bg.png") center top / cover no-repeat,
        #050403;
    transform: scale(1.04);
    filter: blur(4px);
    pointer-events: none;
}

.gate {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    padding: 30px 24px 42px;
    text-align: center;
}

.logo-wrap {
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-wrap::before {
    content: "";
    position: absolute;
    width: min(92vw, 640px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216,177,106,0.0) 0%, transparent 62%);
    opacity: 0;
    filter: blur(8px);
}

.logo {
    width: min(86vw, 560px);
    height: auto;
    display: block;
    filter:
        drop-shadow(0 0 16px rgba(255,255,255,0.12))
        drop-shadow(0 0 46px rgba(255,255,255,0.08));
    user-select: none;
    pointer-events: none;
    transform-origin: center center;
}

.login-box {
    width: 100%;
    max-width: 360px;
    margin: -10px auto 0;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 20px 80px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

form {
    display: grid;
    gap: 12px;
}

input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

input::placeholder {
    color: #8c8c8c;
}

input:focus {
    border-color: rgba(255,255,255,0.30);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

button {
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #f4f4f4 0%, #d8d8d8 100%);
    color: #090909;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.12);
}

.error {
    margin-top: 14px;
    color: #ffb8b8;
    font-size: 14px;
    line-height: 1.4;
}

.ritual-lines {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

.ritual-lines::before,
.ritual-lines::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, transparent, rgba(216,177,106,0.52), transparent);
}

.ritual-lines::before {
    width: 0;
    height: 1px;
}

.ritual-lines::after {
    height: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(216,177,106,0.52), transparent);
}

.veil {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    background: rgba(0,0,0,0);
}

body.entering .ritual-preview {
    animation: previewReveal 1600ms cubic-bezier(.16,.84,.24,1) forwards;
}

body.entering .login-box {
    animation: loginDissolve 700ms ease forwards;
}

body.entering .logo-wrap::before {
    animation: glowWake 1600ms ease forwards;
}

body.entering .logo {
    animation: logoConsecrate 1600ms cubic-bezier(.16,.84,.24,1) forwards;
}

body.entering .ritual-lines {
    animation: ritualLinesShow 1600ms ease forwards;
}

body.entering .ritual-lines::before {
    animation: horizontalLine 1600ms ease forwards;
}

body.entering .ritual-lines::after {
    animation: verticalLine 1600ms ease forwards;
}

body.entering .veil {
    animation: finalVeil 1600ms ease forwards;
}

/* Shared topbar */

.topbar {
    position: relative;
    z-index: 6;
    padding: 20px 42px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    opacity: 1;
}

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

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 10px rgba(216,177,106,0.18))
        drop-shadow(0 0 22px rgba(216,177,106,0.10));
}

.brand-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

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

.nav a {
    color: rgba(247,242,232,0.84);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 11px 12px;
    border-radius: 999px;
    transition: 0.18s ease;
}

.nav a:hover,
.nav a.active {
    background: rgba(216,177,106,0.10);
    color: #fff;
}

.nav .logout {
    background: linear-gradient(180deg, #f5ead2 0%, #d9b26d 100%);
    color: #14100c;
    font-weight: 900;
    padding-inline: 16px;
    margin-left: 10px;
}

/* Dashboard */

.hero {
    position: relative;
    z-index: 3;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 24px 90px;
}

.hero-inner {
    width: min(1100px, 100%);
    position: relative;
}

.hero-logo {
    position: relative;
    z-index: 2;
    display: block;
    width: min(86vw, 560px);
    max-width: 560px;
    min-width: 260px;
    margin: 0 auto 22px;
    filter:
        drop-shadow(0 0 22px rgba(216,177,106,0.52))
        drop-shadow(0 0 90px rgba(216,177,106,0.28))
        drop-shadow(0 0 160px rgba(216,177,106,0.18));
}

.welcome-wrap {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    margin: 0 auto;
    isolation: isolate;
    min-height: 205px;
}

.welcome-smoke-layer,
.welcome-mist,
.welcome-ember {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
    opacity: 0;
}

.welcome-smoke-layer {
    width: min(88vw, 840px);
    height: 240px;
    transform: translate(-50%, -50%);
    background: url("gold-smoke.svg") center center / contain no-repeat;
    mix-blend-mode: screen;
    filter: blur(2px) saturate(1.06);
    z-index: -3;
}

.smoke-layer-back {
    transform: translate(-52%, -40%) scale(0.94);
    filter: blur(5px) saturate(0.96);
}

.smoke-layer-mid {
    transform: translate(-48%, -46%) scale(1.04);
    filter: blur(2px) saturate(1.08);
    z-index: -2;
}

.smoke-layer-front {
    width: min(84vw, 760px);
    transform: translate(-50%, -32%) scale(0.92);
    filter: blur(0px) saturate(1.12);
    z-index: -1;
}

.welcome-mist {
    width: min(90vw, 820px);
    height: 300px;
    transform: translate(-50%, -50%);
    z-index: -4;
    filter: blur(34px);
    mix-blend-mode: screen;
    background:
        radial-gradient(circle at 28% 54%, rgba(216,177,106,0.34) 0%, rgba(216,177,106,0.12) 18%, transparent 42%),
        radial-gradient(circle at 64% 46%, rgba(255,238,198,0.28) 0%, rgba(216,177,106,0.10) 20%, transparent 45%),
        radial-gradient(circle at 48% 66%, rgba(216,177,106,0.26) 0%, rgba(216,177,106,0.08) 22%, transparent 50%),
        radial-gradient(circle at 74% 58%, rgba(216,177,106,0.18) 0%, transparent 36%);
}

.welcome-ember {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,241,205,1) 0%, rgba(244,203,113,0.95) 36%, rgba(216,177,106,0.0) 72%);
    filter: blur(0.5px);
    mix-blend-mode: screen;
    z-index: -1;
}

.ember-1 { transform: translate(-220px, 20px); }
.ember-2 { transform: translate(30px, 34px); width: 7px; height: 7px; }
.ember-3 { transform: translate(180px, 6px); width: 8px; height: 8px; }

.welcome {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(52px, 7.5vw, 110px);
    line-height: 0.94;
    letter-spacing: -0.05em;
    color: #f1d08d;
    text-shadow:
        0 0 18px rgba(216,177,106,0.28),
        0 0 70px rgba(216,177,106,0.18),
        0 0 110px rgba(216,177,106,0.12);
}

.hero-divider {
    position: relative;
    z-index: 2;
    width: min(360px, 70vw);
    margin: 28px auto 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216,177,106,0.65), transparent);
}

.scroll-mark {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    color: rgba(216,177,106,0.82);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.scroll-mark .arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 14px auto 0;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,0.34);
    box-shadow: 0 0 18px rgba(216,177,106,0.12);
    font-size: 16px;
}

.pillars {
    position: relative;
    z-index: 3;
    padding: 108px 42px 120px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0.88) 18%, rgba(0,0,0,0.92) 100%);
}

.pillars-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.section-kicker {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    max-width: 940px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 5.4vw, 74px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    color: #f0d7a5;
}

.section-copy {
    max-width: 740px;
    margin: 22px 0 54px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.pillar {
    min-height: 480px;
    position: relative;
    overflow: hidden;
    padding: 28px 22px;
    background:
        radial-gradient(circle at 50% 22%, rgba(216,177,106,0.12), rgba(216,177,106,0.02) 25%, rgba(0,0,0,0) 52%),
        linear-gradient(180deg, rgba(24,16,10,0.92), rgba(11,8,6,0.96));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.22s ease;
    isolation: isolate;
}

.pillar:hover {
    background:
        radial-gradient(circle at 50% 22%, rgba(216,177,106,0.18), rgba(216,177,106,0.03) 28%, rgba(0,0,0,0) 54%),
        linear-gradient(180deg, rgba(28,18,11,0.96), rgba(10,7,5,0.98));
}

.pillar::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 32px;
    width: 1px;
    height: 43%;
    background: linear-gradient(180deg, rgba(216,177,106,0.62), transparent);
    opacity: 0.34;
    z-index: -1;
}

.pillar::after {
    content: attr(data-num);
    position: absolute;
    top: 18px;
    left: 18px;
    font-size: 88px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    color: rgba(255,255,255,0.045);
    z-index: -1;
}

.pillar-symbol {
    position: absolute;
    top: 39%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 44px;
    color: #f2d9a8;
    filter: drop-shadow(0 0 16px rgba(216,177,106,0.18));
    opacity: 0.95;
}

.pillar-kicker {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pillar h3 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.04;
    color: #f0d7a5;
}

.pillar p {
    margin: 0;
    color: rgba(247,242,232,0.58);
    line-height: 1.68;
    font-size: 14px;
}

.pillar a {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* Subpages */

.subpage {
    position: relative;
    z-index: 3;
}

.page-hero {
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding: 120px 42px 70px;
}

.page-hero-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.page-symbol {
    color: #f2d9a8;
    font-size: clamp(52px, 8vw, 120px);
    line-height: 1;
    margin-bottom: 20px;
    filter:
        drop-shadow(0 0 22px rgba(216,177,106,0.34))
        drop-shadow(0 0 70px rgba(216,177,106,0.16));
}

.page-title {
    margin: 0;
    max-width: 980px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 7.4vw, 112px);
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: #f1d08d;
    text-shadow:
        0 0 18px rgba(216,177,106,0.28),
        0 0 70px rgba(216,177,106,0.18);
}

.page-copy {
    max-width: 760px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.8;
}

.module-section {
    padding: 40px 42px 120px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.26) 0%, rgba(0,0,0,0.88) 22%, rgba(0,0,0,0.94) 100%);
}

.module-grid {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.module-card {
    min-height: 320px;
    padding: 34px 28px;
    background:
        radial-gradient(circle at 50% 20%, rgba(216,177,106,0.12), rgba(216,177,106,0.02) 26%, rgba(0,0,0,0) 54%),
        linear-gradient(180deg, rgba(24,16,10,0.92), rgba(11,8,6,0.96));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.module-card::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(216,177,106,0.08);
    pointer-events: none;
}

.module-symbol {
    position: absolute;
    top: 32px;
    right: 32px;
    color: rgba(242,217,168,0.72);
    font-size: 42px;
    filter: drop-shadow(0 0 16px rgba(216,177,106,0.18));
}

.module-kicker {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.module-card h3 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.04;
    color: #f0d7a5;
}

.module-card p {
    margin: 0;
    color: rgba(247,242,232,0.62);
    line-height: 1.7;
    font-size: 15px;
}

/* Audio */

.audio-fallback {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    border: 1px solid rgba(216,177,106,0.35);
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(10,7,4,0.86);
    color: #f1d08d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 38px rgba(0,0,0,0.42);
}

/* Animations */

body.entered .topbar {
    animation: topbarAppear 1300ms 620ms ease both;
}

body.entered .hero-logo {
    animation: logoSettle 1300ms ease both;
}

body.entered .welcome {
    animation: smokyWelcomeText 2100ms 1220ms cubic-bezier(.16,.84,.24,1) both;
}

body.entered .welcome-mist {
    animation: goldMistBloom 2800ms 820ms ease both;
}

body.entered .smoke-layer-back {
    animation: smokeLayerBack 4200ms 760ms ease-out both;
}

body.entered .smoke-layer-mid {
    animation: smokeLayerMid 4600ms 940ms ease-out both;
}

body.entered .smoke-layer-front {
    animation: smokeLayerFront 5000ms 1160ms ease-out both;
}

body.entered .ember-1 {
    animation: emberRise1 3200ms 1500ms ease-out both;
}

body.entered .ember-2 {
    animation: emberRise2 2800ms 1720ms ease-out both;
}

body.entered .ember-3 {
    animation: emberRise3 3400ms 1880ms ease-out both;
}

body.entered .hero-divider,
body.entered .scroll-mark {
    animation: contentMaterialize 1200ms 2480ms cubic-bezier(.16,.84,.24,1) both;
}

body.entered .frame {
    animation: frameAppear 1300ms 500ms ease both;
}

@keyframes previewReveal {
    0% { opacity: 0; transform: scale(1.06); filter: blur(8px); }
    35% { opacity: 0.22; filter: blur(5px); }
    72% { opacity: 0.72; transform: scale(1.015); filter: blur(1px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes loginDissolve {
    to { opacity: 0; transform: translateY(18px) scale(0.97); filter: blur(6px); }
}

@keyframes glowWake {
    0% { opacity: 0; background: radial-gradient(circle, rgba(216,177,106,0.0) 0%, transparent 62%); }
    45% { opacity: 0.72; background: radial-gradient(circle, rgba(216,177,106,0.18) 0%, rgba(216,177,106,0.07) 34%, transparent 66%); }
    100% { opacity: 1; background: radial-gradient(circle, rgba(255,226,166,0.34) 0%, rgba(216,177,106,0.12) 32%, transparent 68%); }
}

@keyframes logoConsecrate {
    0% {
        transform: scale(1);
        filter:
            drop-shadow(0 0 16px rgba(255,255,255,0.12))
            drop-shadow(0 0 46px rgba(255,255,255,0.08));
    }
    50% {
        transform: scale(1.018);
        filter:
            drop-shadow(0 0 26px rgba(216,177,106,0.52))
            drop-shadow(0 0 86px rgba(216,177,106,0.26));
    }
    100% {
        transform: scale(1.035);
        filter:
            drop-shadow(0 0 34px rgba(255,226,166,0.68))
            drop-shadow(0 0 130px rgba(216,177,106,0.34));
    }
}

@keyframes ritualLinesShow {
    0%, 20% { opacity: 0; }
    48%, 82% { opacity: 1; }
    100% { opacity: 0.15; }
}

@keyframes horizontalLine {
    0%, 28% { width: 0; }
    68% { width: 86vw; }
    100% { width: 100vw; opacity: 0.2; }
}

@keyframes verticalLine {
    0%, 34% { height: 0; }
    76% { height: 82vh; }
    100% { height: 100vh; opacity: 0.2; }
}

@keyframes finalVeil {
    0%, 70% { opacity: 0; background: rgba(0,0,0,0); }
    100% { opacity: 1; background: rgba(0,0,0,0.22); }
}

@keyframes topbarAppear {
    from { opacity: 0; transform: translateY(-12px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes logoSettle {
    0% {
        opacity: 0.72;
        transform: scale(1.035);
        filter:
            drop-shadow(0 0 34px rgba(255,226,166,0.68))
            drop-shadow(0 0 130px rgba(216,177,106,0.34));
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter:
            drop-shadow(0 0 22px rgba(216,177,106,0.52))
            drop-shadow(0 0 90px rgba(216,177,106,0.28))
            drop-shadow(0 0 160px rgba(216,177,106,0.18));
    }
}

@keyframes contentMaterialize {
    from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes frameAppear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes smokyWelcomeText {
    0% { opacity: 0; transform: translateY(42px) scale(0.985); filter: blur(24px); letter-spacing: -0.09em; }
    28% { opacity: 0.16; transform: translateY(28px) scale(0.99); filter: blur(18px); }
    52% { opacity: 0.52; transform: translateY(18px) scale(0.996); filter: blur(10px); }
    74% { opacity: 0.92; transform: translateY(4px) scale(1.004); filter: blur(3px); }
    88% { opacity: 1; transform: translateY(-2px) scale(1.007); filter: blur(1px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); letter-spacing: -0.05em; }
}

@keyframes goldMistBloom {
    0% { opacity: 0; transform: translate(-50%, -40%) scale(0.70); filter: blur(40px); }
    26% { opacity: 0.98; transform: translate(-50%, -46%) scale(0.92); filter: blur(28px); }
    56% { opacity: 0.82; transform: translate(-50%, -52%) scale(1.08); filter: blur(30px); }
    100% { opacity: 0.20; transform: translate(-50%, -60%) scale(1.34); filter: blur(36px); }
}

@keyframes smokeLayerBack {
    0% { opacity: 0; transform: translate(-56%, -22%) scale(0.82); }
    26% { opacity: 0.86; transform: translate(-53%, -30%) scale(0.92); }
    60% { opacity: 0.64; transform: translate(-49%, -42%) scale(1.06); }
    100% { opacity: 0.10; transform: translate(-44%, -58%) scale(1.22); }
}

@keyframes smokeLayerMid {
    0% { opacity: 0; transform: translate(-47%, -10%) scale(0.80); }
    32% { opacity: 0.92; transform: translate(-48%, -24%) scale(0.98); }
    66% { opacity: 0.72; transform: translate(-50%, -38%) scale(1.10); }
    100% { opacity: 0.12; transform: translate(-54%, -54%) scale(1.24); }
}

@keyframes smokeLayerFront {
    0% { opacity: 0; transform: translate(-50%, 6%) scale(0.72); }
    34% { opacity: 0.76; transform: translate(-50%, -8%) scale(0.90); }
    70% { opacity: 0.48; transform: translate(-46%, -24%) scale(1.06); }
    100% { opacity: 0.06; transform: translate(-42%, -40%) scale(1.20); }
}

@keyframes emberRise1 {
    0% { opacity: 0; transform: translate(-220px, 26px) scale(0.6); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: translate(-180px, -70px) scale(1.3); }
}

@keyframes emberRise2 {
    0% { opacity: 0; transform: translate(30px, 34px) scale(0.6); }
    18% { opacity: 0.9; }
    100% { opacity: 0; transform: translate(60px, -84px) scale(1.25); }
}

@keyframes emberRise3 {
    0% { opacity: 0; transform: translate(180px, 8px) scale(0.7); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: translate(220px, -78px) scale(1.22); }
}

/* Responsive */

@media (max-height: 850px) and (min-width: 900px) {
    .hero-logo {
        width: min(60vw, 440px);
        max-width: 440px;
        margin-bottom: 16px;
    }

    .welcome {
        font-size: clamp(44px, 6.2vw, 82px);
    }
}

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

    .pillar:last-child {
        grid-column: span 2;
        min-height: 320px;
    }

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

@media (max-width: 780px) {
    .topbar {
        padding: 18px 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        justify-content: flex-start;
    }

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

    .hero {
        padding: 18px 16px 76px;
    }

    .hero-logo {
        width: min(92vw, 440px);
        min-width: 220px;
    }

    .welcome {
        font-size: clamp(48px, 14vw, 78px);
    }

    .pillars {
        padding: 84px 18px 96px;
    }

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

    .pillar,
    .pillar:last-child {
        grid-column: auto;
        min-height: 320px;
    }

    .page-hero {
        padding: 90px 18px 54px;
    }

    .module-section {
        padding: 32px 18px 90px;
    }

    .page-copy,
    .section-copy {
        font-size: 16px;
    }
}


/* Calendar v1 */

.calendar-page .page-hero {
    min-height: 56vh;
}

.calendar-shell {
    position: relative;
    z-index: 3;
    padding: 30px 42px 90px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.94) 100%);
}

.calendar-layout {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.next-beatup-card,
.calendar-main {
    background:
        radial-gradient(circle at 50% 12%, rgba(216,177,106,0.15), rgba(216,177,106,0.03) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.94), rgba(9,7,5,0.97));
}

.next-beatup-card {
    padding: 34px;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.next-beatup-card::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(216,177,106,0.09);
    pointer-events: none;
}

.calendar-card-kicker {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.next-beatup-card h2 {
    margin: 18px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #f1d08d;
}

.date-emblem {
    width: 220px;
    height: 220px;
    margin: 34px auto;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,0.26);
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    box-shadow:
        0 0 40px rgba(216,177,106,0.10),
        inset 0 0 40px rgba(216,177,106,0.08);
}

.date-emblem::before,
.date-emblem::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.date-emblem::before {
    inset: 13px;
    border: 1px solid rgba(216,177,106,0.16);
}

.date-emblem::after {
    inset: 34px;
    border: 1px solid rgba(216,177,106,0.10);
}

.date-emblem .month,
.date-emblem .year {
    display: block;
    color: rgba(247,242,232,0.62);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.date-emblem .day {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    color: #f1d08d;
    font-size: 82px;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.beatup-meta {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.beatup-meta div {
    padding: 15px 0;
    border-top: 1px solid rgba(216,177,106,0.11);
}

.beatup-meta span {
    display: block;
    color: rgba(247,242,232,0.42);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.beatup-meta strong {
    color: rgba(247,242,232,0.84);
    font-size: 15px;
}

.ritual-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f5ead2 0%, #d9b26d 100%);
    color: #14100c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.calendar-main {
    padding: 34px;
}

.calendar-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.calendar-section-header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #f0d7a5;
}

.calendar-year {
    color: rgba(247,242,232,0.08);
    font-size: clamp(70px, 10vw, 150px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.event-timeline {
    display: grid;
    gap: 1px;
    background: rgba(216,177,106,0.12);
    border: 1px solid rgba(216,177,106,0.12);
}

.event-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 120px;
    gap: 22px;
    align-items: center;
    min-height: 148px;
    padding: 22px;
    background: rgba(8,6,4,0.76);
    position: relative;
    overflow: hidden;
}

.event-row::before {
    content: "";
    position: absolute;
    left: 67px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(216,177,106,0.24), transparent);
}

.event-important {
    background:
        radial-gradient(circle at 82% 50%, rgba(216,177,106,0.14), transparent 38%),
        rgba(12,8,5,0.86);
}

.event-date {
    width: 70px;
    height: 86px;
    border: 1px solid rgba(216,177,106,0.20);
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.event-date span {
    display: block;
    color: #f1d08d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 0.9;
}

.event-date small {
    display: block;
    color: rgba(247,242,232,0.56);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.event-type {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.event-content h3 {
    margin: 0 0 8px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.02;
}

.event-content p {
    margin: 0;
    color: rgba(247,242,232,0.58);
    line-height: 1.6;
    font-size: 14px;
}

.event-status {
    justify-self: end;
    color: rgba(247,242,232,0.70);
    border: 1px solid rgba(216,177,106,0.18);
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.poll-section {
    position: relative;
    z-index: 3;
    padding: 20px 42px 120px;
    background: rgba(0,0,0,0.94);
}

.poll-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.poll-intro {
    max-width: 820px;
    margin-bottom: 34px;
}

.poll-intro h2 {
    margin: 0;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.poll-intro p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.poll-board {
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    display: grid;
    gap: 1px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.30);
}

.poll-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(80px, 0.5fr)) minmax(150px, 0.8fr);
    gap: 1px;
    align-items: center;
    background: rgba(8,6,4,0.82);
}

.poll-row > div {
    min-height: 68px;
    display: flex;
    align-items: center;
    padding: 16px;
}

.poll-head {
    background: rgba(216,177,106,0.10);
    color: rgba(247,242,232,0.54);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.poll-date {
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.poll-pill {
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: #f7f2e8;
}

.poll-pill.can {
    color: #d7f2c2;
}

.poll-pill.maybe {
    color: #f1d08d;
}

.poll-pill.no {
    color: #ffb8b8;
}

.poll-status {
    color: rgba(247,242,232,0.64);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.poll-status.favored {
    color: #f1d08d;
}

.poll-status.weak {
    color: rgba(247,242,232,0.42);
}

@media (max-width: 1000px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .next-beatup-card {
        min-height: auto;
    }

    .date-emblem {
        width: 190px;
        height: 190px;
    }

    .event-row {
        grid-template-columns: 80px 1fr;
    }

    .event-status {
        grid-column: 2;
        justify-self: start;
    }

    .poll-board {
        overflow-x: auto;
    }

    .poll-row {
        min-width: 760px;
    }
}

@media (max-width: 780px) {
    .calendar-shell,
    .poll-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .calendar-main,
    .next-beatup-card {
        padding: 24px;
    }

    .calendar-section-header {
        display: block;
    }

    .calendar-year {
        display: none;
    }
}


/* Real Calendar v1 */

.real-calendar-section {
    position: relative;
    z-index: 3;
    padding: 30px 42px 70px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.94) 100%);
}

.real-calendar-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
}

.month-title-block {
    text-align: center;
}

.month-title-block h2 {
    margin: 0;
    color: #f1d08d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 86px);
    line-height: 0.94;
    letter-spacing: -0.06em;
    text-shadow:
        0 0 18px rgba(216,177,106,0.28),
        0 0 70px rgba(216,177,106,0.18);
}

.month-nav {
    border: 1px solid rgba(216,177,106,0.20);
    border-radius: 999px;
    padding: 12px 14px;
    color: rgba(247,242,232,0.78);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    background: rgba(8,6,4,0.68);
    transition: 0.18s ease;
}

.month-nav:hover {
    color: #fff;
    background: rgba(216,177,106,0.10);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.weekday {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(216,177,106,0.10);
    color: rgba(247,242,232,0.56);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 150px;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,0.08), rgba(216,177,106,0.01) 26%, rgba(0,0,0,0) 54%),
        rgba(8,6,4,0.78);
    padding: 13px;
    position: relative;
    overflow: hidden;
}

.calendar-day.is-empty {
    background: rgba(255,255,255,0.015);
}

.calendar-day.has-events {
    background:
        radial-gradient(circle at 76% 22%, rgba(216,177,106,0.16), transparent 36%),
        rgba(12,8,5,0.86);
}

.calendar-day.is-today {
    outline: 1px solid rgba(241,208,141,0.70);
    outline-offset: -1px;
    box-shadow: inset 0 0 30px rgba(216,177,106,0.08);
}

.day-number {
    color: rgba(247,242,232,0.86);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1;
}

.is-empty .day-number {
    display: none;
}

.is-today .day-number {
    color: #f1d08d;
}

.day-events {
    display: grid;
    gap: 7px;
    margin-top: 18px;
}

.day-event {
    border: 1px solid rgba(216,177,106,0.18);
    border-radius: 999px;
    padding: 7px 9px;
    color: rgba(247,242,232,0.84);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.24);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-event.event-beatup {
    color: #f1d08d;
    background: rgba(216,177,106,0.12);
}

.day-event.event-game {
    color: #d7f2c2;
}

.day-event.event-birthday {
    color: #ffd1e1;
}

.calendar-lower {
    position: relative;
    z-index: 3;
    padding: 20px 42px 90px;
    background: rgba(0,0,0,0.94);
}

.calendar-lower-grid {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.month-events-panel {
    padding: 34px;
    background:
        radial-gradient(circle at 50% 12%, rgba(216,177,106,0.15), rgba(216,177,106,0.03) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.94), rgba(9,7,5,0.97));
}

.empty-month {
    min-height: 360px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px;
    border: 1px solid rgba(216,177,106,0.12);
    background: rgba(8,6,4,0.62);
}

.empty-symbol {
    color: rgba(216,177,106,0.70);
    font-size: 56px;
    margin-bottom: 12px;
}

.empty-month h3 {
    margin: 0 0 10px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.empty-month p {
    margin: 0;
    max-width: 460px;
    color: rgba(247,242,232,0.58);
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .calendar-toolbar {
        grid-template-columns: 1fr;
    }

    .month-nav {
        width: 100%;
    }

    .calendar-grid {
        overflow-x: auto;
    }

    .weekday,
    .calendar-day {
        min-width: 138px;
    }

    .calendar-lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .real-calendar-section,
    .calendar-lower {
        padding-left: 18px;
        padding-right: 18px;
    }

    .calendar-day {
        min-height: 132px;
    }

    .day-number {
        font-size: 24px;
    }
}


/* Beatup v1 */

.beatup-page .page-hero {
    min-height: 58vh;
}

.beatup-current {
    position: relative;
    z-index: 3;
    padding: 30px 42px 90px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.94) 100%);
}

.beatup-current-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.beatup-spotlight {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.spotlight-content,
.beatup-date-orb {
    background:
        radial-gradient(circle at 50% 18%, rgba(216,177,106,0.15), rgba(216,177,106,0.03) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.94), rgba(9,7,5,0.97));
}

.spotlight-content {
    padding: clamp(34px, 6vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-content h2 {
    margin: 0;
    color: #f1d08d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(56px, 8vw, 126px);
    line-height: 0.88;
    letter-spacing: -0.07em;
    text-shadow:
        0 0 18px rgba(216,177,106,0.28),
        0 0 70px rgba(216,177,106,0.18);
}

.spotlight-content p {
    max-width: 700px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.beatup-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.ritual-button.secondary {
    background: rgba(216,177,106,0.08);
    color: #f1d08d;
    border: 1px solid rgba(216,177,106,0.22);
}

.beatup-date-orb {
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.beatup-date-orb::before {
    content: "";
    position: absolute;
    width: min(80%, 300px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,0.22);
    box-shadow:
        0 0 70px rgba(216,177,106,0.12),
        inset 0 0 70px rgba(216,177,106,0.08);
}

.beatup-date-orb::after {
    content: "";
    position: absolute;
    width: min(62%, 230px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,0.12);
}

.beatup-date-orb span,
.beatup-date-orb strong {
    display: block;
    position: relative;
    z-index: 2;
}

.beatup-date-orb span {
    color: rgba(247,242,232,0.62);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.beatup-date-orb strong {
    color: #f1d08d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(96px, 12vw, 170px);
    line-height: 0.84;
    letter-spacing: -0.08em;
}

.beatup-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    border-top: 0;
    background: rgba(216,177,106,0.14);
}

.beatup-info-card {
    min-height: 230px;
    padding: 30px;
    background:
        radial-gradient(circle at 50% 18%, rgba(216,177,106,0.10), rgba(216,177,106,0.02) 30%, rgba(0,0,0,0) 60%),
        rgba(8,6,4,0.82);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.beatup-info-card h3 {
    margin: 0 0 12px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.02;
}

.beatup-info-card p {
    margin: 0;
    color: rgba(247,242,232,0.60);
    line-height: 1.7;
}

.beatup-planning,
.beatup-attendance,
.beatup-archive {
    position: relative;
    z-index: 3;
    background: rgba(0,0,0,0.94);
    padding: 30px 42px 90px;
}

.beatup-planning-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.30);
}

.planning-column,
.packing-card {
    background:
        radial-gradient(circle at 50% 16%, rgba(216,177,106,0.12), rgba(216,177,106,0.02) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.92), rgba(9,7,5,0.97));
    padding: 34px;
}

.planning-column h2,
.packing-card h2,
.attendance-header h2,
.archive-inner h2 {
    margin: 0 0 28px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.program-timeline {
    display: grid;
    gap: 1px;
    background: rgba(216,177,106,0.13);
    border: 1px solid rgba(216,177,106,0.13);
}

.program-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    padding: 26px;
    background: rgba(8,6,4,0.78);
}

.program-time {
    color: #f1d08d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.program-item h3 {
    margin: 0 0 8px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.program-item p {
    margin: 0;
    color: rgba(247,242,232,0.60);
    line-height: 1.7;
}

.ritual-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1px;
    background: rgba(216,177,106,0.12);
    border: 1px solid rgba(216,177,106,0.12);
}

.ritual-list li {
    padding: 18px;
    background: rgba(8,6,4,0.78);
    color: rgba(247,242,232,0.72);
    line-height: 1.5;
}

.ritual-list li::before {
    content: "✦";
    color: var(--gold);
    margin-right: 10px;
}

.attendance-inner,
.archive-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.attendance-note {
    color: rgba(247,242,232,0.42);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.attendance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
}

.attendance-card {
    min-height: 260px;
    padding: 30px;
    background:
        radial-gradient(circle at 50% 18%, rgba(216,177,106,0.12), rgba(216,177,106,0.02) 28%, rgba(0,0,0,0) 58%),
        rgba(8,6,4,0.82);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.attendance-card span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.attendance-card strong {
    color: #f1d08d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 90px;
    line-height: 0.9;
    letter-spacing: -0.08em;
    margin: 12px 0;
}

.attendance-card p {
    margin: 0;
    color: rgba(247,242,232,0.58);
    line-height: 1.7;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
}

.archive-card {
    min-height: 340px;
    padding: 30px;
    background:
        radial-gradient(circle at 50% 18%, rgba(216,177,106,0.12), rgba(216,177,106,0.02) 28%, rgba(0,0,0,0) 58%),
        rgba(8,6,4,0.82);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.archive-number {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(247,242,232,0.055);
    font-size: 110px;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.archive-card h3 {
    margin: 0 0 12px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
}

.archive-card p {
    margin: 0 0 22px;
    color: rgba(247,242,232,0.58);
    line-height: 1.7;
}

.archive-card span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@media (max-width: 1000px) {
    .beatup-spotlight,
    .beatup-info-grid,
    .beatup-planning-inner,
    .attendance-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .beatup-date-orb {
        min-height: 360px;
    }
}

@media (max-width: 780px) {
    .beatup-current,
    .beatup-planning,
    .beatup-attendance,
    .beatup-archive {
        padding-left: 18px;
        padding-right: 18px;
    }

    .spotlight-content,
    .planning-column,
    .packing-card {
        padding: 24px;
    }

    .program-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .attendance-header {
        display: block;
    }
}


/* Nyggeboard v1 */

.board-page .page-hero {
    min-height: 58vh;
}

.champion-section {
    position: relative;
    z-index: 3;
    padding: 30px 42px 90px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.94) 100%);
}

.champion-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.champion-crown,
.title-card {
    background:
        radial-gradient(circle at 50% 14%, rgba(216,177,106,0.16), rgba(216,177,106,0.03) 30%, rgba(0,0,0,0) 60%),
        linear-gradient(180deg, rgba(24,16,10,0.94), rgba(9,7,5,0.97));
}

.champion-crown {
    min-height: 650px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.champion-crown::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(216,177,106,0.09);
    pointer-events: none;
}

.champion-crown h2 {
    margin: 0 auto 30px;
    max-width: 320px;
    color: #f1d08d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.crown-orb {
    width: 230px;
    height: 230px;
    margin: 0 auto 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(216,177,106,0.25);
    box-shadow:
        0 0 60px rgba(216,177,106,0.13),
        inset 0 0 70px rgba(216,177,106,0.08);
    position: relative;
}

.crown-orb::before,
.crown-orb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,0.12);
}

.crown-orb::before { inset: 18px; }
.crown-orb::after { inset: 44px; }

.crown-orb span {
    color: #f1d08d;
    font-size: 86px;
    filter:
        drop-shadow(0 0 20px rgba(216,177,106,0.40))
        drop-shadow(0 0 70px rgba(216,177,106,0.22));
}

.champion-crown h3 {
    margin: 0 0 14px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
}

.champion-crown p {
    margin: 0;
    color: rgba(247,242,232,0.60);
    line-height: 1.7;
}

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

.title-card {
    min-height: 324px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.title-card.main-title {
    grid-column: span 2;
    min-height: 325px;
}

.title-icon {
    position: absolute;
    top: 26px;
    right: 30px;
    color: rgba(242,217,168,0.72);
    font-size: 54px;
    filter: drop-shadow(0 0 16px rgba(216,177,106,0.20));
}

.title-card h3 {
    margin: 0 0 12px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.02;
}

.title-card p {
    margin: 0 0 20px;
    color: rgba(247,242,232,0.60);
    line-height: 1.7;
}

.title-card span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.records-section,
.ranking-section,
.hall-section {
    position: relative;
    z-index: 3;
    padding: 30px 42px 90px;
    background: rgba(0,0,0,0.94);
}

.records-inner,
.ranking-inner,
.hall-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.records-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.records-header h2,
.ranking-panel h2,
.achievement-feed h2,
.hall-inner h2 {
    margin: 0;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.records-header span {
    color: rgba(247,242,232,0.42);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.records-table {
    display: grid;
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.30);
}

.records-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr);
    gap: 1px;
    align-items: center;
    background: rgba(8,6,4,0.82);
}

.records-row > div {
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 18px;
    color: rgba(247,242,232,0.70);
}

.records-head {
    background: rgba(216,177,106,0.10);
}

.records-head > div {
    color: rgba(247,242,232,0.54);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.record-name {
    color: #f0d7a5 !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.record-value {
    color: #f1d08d !important;
    font-weight: 900;
}

.ranking-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.30);
}

.ranking-panel,
.achievement-feed {
    background:
        radial-gradient(circle at 50% 16%, rgba(216,177,106,0.12), rgba(216,177,106,0.02) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.92), rgba(9,7,5,0.97));
    padding: 34px;
}

.ranking-panel > p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.8;
    margin: 18px 0 30px;
}

.ranking-list {
    display: grid;
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
}

.rank-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 100px;
    gap: 22px;
    align-items: center;
    padding: 24px;
    background: rgba(8,6,4,0.82);
}

.rank-number {
    color: rgba(247,242,232,0.10);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.rank-row h3 {
    margin: 0 0 6px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.rank-row p {
    margin: 0;
    color: rgba(247,242,232,0.56);
}

.rank-row strong {
    justify-self: end;
    color: #f1d08d;
}

.achievement-list {
    display: grid;
    gap: 1px;
    margin-top: 28px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
}

.achievement-list article {
    padding: 22px;
    background: rgba(8,6,4,0.82);
}

.achievement-list span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.achievement-list p {
    margin: 8px 0 0;
    color: rgba(247,242,232,0.62);
    line-height: 1.7;
}

.hall-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 28px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
}

.hall-card {
    min-height: 320px;
    padding: 30px;
    background:
        radial-gradient(circle at 50% 18%, rgba(216,177,106,0.12), rgba(216,177,106,0.02) 28%, rgba(0,0,0,0) 58%),
        rgba(8,6,4,0.82);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hall-year {
    position: absolute;
    top: 18px;
    left: 20px;
    color: rgba(247,242,232,0.055);
    font-size: 82px;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.hall-card h3 {
    margin: 0 0 12px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
}

.hall-card p {
    margin: 0;
    color: rgba(247,242,232,0.58);
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .champion-inner,
    .title-grid,
    .ranking-inner,
    .hall-grid {
        grid-template-columns: 1fr;
    }

    .title-card.main-title {
        grid-column: auto;
    }

    .records-table {
        overflow-x: auto;
    }

    .records-row {
        min-width: 820px;
    }
}

@media (max-width: 780px) {
    .champion-section,
    .records-section,
    .ranking-section,
    .hall-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .champion-crown,
    .title-card,
    .ranking-panel,
    .achievement-feed {
        padding: 24px;
    }

    .rank-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rank-row strong {
        justify-self: start;
    }
}


/* Members v1 */

.members-page .page-hero {
    min-height: 58vh;
}

.members-overview {
    position: relative;
    z-index: 3;
    padding: 30px 42px 70px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.94) 100%);
}

.members-overview-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 520px);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.members-ledger,
.members-stats article {
    background:
        radial-gradient(circle at 50% 14%, rgba(216,177,106,0.15), rgba(216,177,106,0.03) 30%, rgba(0,0,0,0) 60%),
        linear-gradient(180deg, rgba(24,16,10,0.94), rgba(9,7,5,0.97));
}

.members-ledger {
    min-height: 420px;
    padding: clamp(34px, 6vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.members-ledger h2 {
    margin: 0;
    color: #f1d08d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(56px, 8vw, 118px);
    line-height: 0.88;
    letter-spacing: -0.07em;
    text-shadow:
        0 0 18px rgba(216,177,106,0.28),
        0 0 70px rgba(216,177,106,0.18);
}

.members-ledger p {
    max-width: 720px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.members-stats {
    display: grid;
    gap: 1px;
}

.members-stats article {
    min-height: 140px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.members-stats span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.members-stats strong {
    margin-top: 10px;
    color: #f1d08d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 60px;
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.member-directory,
.member-history {
    position: relative;
    z-index: 3;
    padding: 30px 42px 90px;
    background: rgba(0,0,0,0.94);
}

.member-directory-inner,
.member-history-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.directory-header h2,
.history-panel h2,
.member-rank-panel h2 {
    margin: 0;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.directory-header span {
    color: rgba(247,242,232,0.42);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.30);
}

.member-card {
    min-height: 520px;
    padding: 30px;
    background:
        radial-gradient(circle at 78% 14%, rgba(216,177,106,0.16), rgba(216,177,106,0.03) 30%, rgba(0,0,0,0) 60%),
        linear-gradient(180deg, rgba(24,16,10,0.92), rgba(9,7,5,0.97));
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(216,177,106,0.08);
    pointer-events: none;
}

.member-index {
    position: absolute;
    top: 18px;
    left: 22px;
    color: rgba(247,242,232,0.055);
    font-size: 94px;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.member-sigil {
    position: absolute;
    top: 34px;
    right: 34px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(216,177,106,0.24);
    color: #f1d08d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    box-shadow:
        0 0 40px rgba(216,177,106,0.10),
        inset 0 0 40px rgba(216,177,106,0.08);
}

.member-status {
    width: fit-content;
    margin-bottom: 16px;
    border: 1px solid rgba(216,177,106,0.20);
    border-radius: 999px;
    padding: 8px 11px;
    color: rgba(247,242,232,0.72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.member-card h3 {
    margin: 0 0 8px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.member-role {
    margin: 0 0 28px;
    color: rgba(247,242,232,0.58);
    line-height: 1.6;
}

.member-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 24px;
    border: 1px solid rgba(216,177,106,0.12);
    background: rgba(216,177,106,0.12);
}

.member-facts div {
    min-height: 82px;
    padding: 14px;
    background: rgba(8,6,4,0.62);
}

.member-facts span,
.member-lore span {
    display: block;
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.member-facts strong {
    color: rgba(247,242,232,0.78);
    font-size: 14px;
    line-height: 1.4;
}

.member-lore {
    border-top: 1px solid rgba(216,177,106,0.12);
    padding-top: 18px;
}

.member-lore p {
    margin: 0;
    color: rgba(247,242,232,0.62);
    line-height: 1.7;
}

.member-history-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.30);
}

.history-panel,
.member-rank-panel {
    background:
        radial-gradient(circle at 50% 16%, rgba(216,177,106,0.12), rgba(216,177,106,0.02) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.92), rgba(9,7,5,0.97));
    padding: 34px;
}

.history-panel > p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
    margin: 18px 0 30px;
}

.relation-map {
    display: grid;
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
}

.relation-map article {
    padding: 24px;
    background: rgba(8,6,4,0.78);
}

.relation-map span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.relation-map strong {
    display: block;
    margin: 8px 0;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1.06;
}

.relation-map p {
    margin: 0;
    color: rgba(247,242,232,0.58);
    line-height: 1.7;
}

.member-rank-panel .ritual-list {
    margin-top: 28px;
}

@media (max-width: 1000px) {
    .members-overview-inner,
    .member-grid,
    .member-history-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .members-overview,
    .member-directory,
    .member-history {
        padding-left: 18px;
        padding-right: 18px;
    }

    .members-ledger,
    .member-card,
    .history-panel,
    .member-rank-panel {
        padding: 24px;
    }

    .directory-header {
        display: block;
    }

    .member-facts {
        grid-template-columns: 1fr;
    }

    .member-sigil {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
}


/* Members v2 - collectible card edition */

.members-cards-page .page-hero { min-height: 56vh; }

.member-builder-section,
.member-preview-section,
.member-gallery-section {
    position: relative;
    z-index: 3;
    background: rgba(0,0,0,0.94);
}

.member-builder-section {
    padding: 30px 42px 70px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.94) 100%);
}

.member-preview-section { padding: 0 42px 70px; }
.member-gallery-section { padding: 0 42px 120px; }

.member-builder-inner,
.member-preview-inner,
.member-gallery-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.member-builder-inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.builder-copy,
.member-builder-form {
    background:
        radial-gradient(circle at 50% 16%, rgba(216,177,106,0.14), rgba(216,177,106,0.03) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.92), rgba(9,7,5,0.97));
    padding: 34px;
}

.builder-copy h2,
.member-preview-inner h2,
.gallery-header h2 {
    margin: 0 0 18px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.builder-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
}

.builder-message {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(216,177,106,0.18);
    background: rgba(216,177,106,0.08);
    color: #f1d08d;
    font-size: 13px;
    line-height: 1.6;
}

.builder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.builder-grid label { display: grid; gap: 8px; }
.builder-grid label.builder-full { grid-column: span 2; }

.builder-grid label span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.builder-grid input,
.builder-grid select {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(216,177,106,0.16);
    background: rgba(10,8,6,0.88);
    color: #f7f2e8;
    padding: 0 16px;
    font-size: 15px;
}

.builder-grid input::placeholder { color: rgba(247,242,232,0.34); }
.builder-submit { margin-top: 22px; }

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.gallery-header span {
    color: rgba(247,242,232,0.42);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.member-card-showcase,
.member-card-grid {
    display: grid;
    justify-content: center;
}

.member-card-grid {
    grid-template-columns: repeat(3, minmax(260px, 340px));
    gap: 28px;
    justify-content: start;
}

.member-card-showcase { margin-top: 28px; }

.hn-member-card {
    position: relative;
    width: min(100%, 340px);
    min-height: 610px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(242,208,141,0.18), rgba(242,208,141,0.03) 28%, rgba(0,0,0,0) 56%),
        linear-gradient(180deg, #13100d 0%, #070605 100%);
    box-shadow:
        0 24px 90px rgba(0,0,0,0.48),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    transform: translateY(0);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hn-member-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 38px 110px rgba(0,0,0,0.56),
        0 0 40px rgba(216,177,106,0.16),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

.hn-member-card.accent-gold {
    background:
        radial-gradient(circle at 50% 18%, rgba(242,208,141,0.22), rgba(242,208,141,0.04) 28%, rgba(0,0,0,0) 56%),
        linear-gradient(180deg, #14100d 0%, #070605 100%);
}
.hn-member-card.accent-ember {
    background:
        radial-gradient(circle at 50% 18%, rgba(255,122,70,0.24), rgba(255,122,70,0.05) 30%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, #160f0d 0%, #070605 100%);
}
.hn-member-card.accent-ritual {
    background:
        radial-gradient(circle at 50% 18%, rgba(188,157,255,0.18), rgba(188,157,255,0.03) 28%, rgba(0,0,0,0) 56%),
        linear-gradient(180deg, #0f0d14 0%, #070605 100%);
}

.card-frame {
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(216,177,106,0.34);
    pointer-events: none;
}
.card-frame::before,
.card-frame::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 18px;
    border: 1px solid rgba(216,177,106,0.10);
}
.card-frame::after {
    inset: 24px;
    border-radius: 12px;
    border-color: rgba(216,177,106,0.06);
}

.card-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 22%, rgba(255,255,255,0.10), transparent 22%),
        radial-gradient(circle at 50% 30%, rgba(216,177,106,0.18), transparent 44%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.card-brand-mark {
    position: absolute;
    top: 24px;
    right: 28px;
    color: rgba(247,242,232,0.76);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.22em;
    z-index: 3;
}
.card-brand-mark::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -14px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,0.18);
}

.card-portrait {
    position: absolute;
    inset: 34px 24px 160px 24px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 26%, rgba(255,255,255,0.06), transparent 28%),
        linear-gradient(180deg, rgba(216,177,106,0.08), rgba(216,177,106,0.01)),
        #0c0a09;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.card-portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(216,177,106,0.16), transparent 30%),
        radial-gradient(circle at 50% 44%, rgba(216,177,106,0.08), transparent 50%);
    pointer-events: none;
}

.card-portrait img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge-center {
    position: absolute;
    left: 50%;
    bottom: 142px;
    transform: translateX(-50%);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 2px solid rgba(247,242,232,0.92);
    color: #f7f2e8;
    background: rgba(7,6,5,0.76);
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.05em;
    z-index: 3;
    box-shadow: 0 0 24px rgba(216,177,106,0.18);
}

.card-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 64px 24px 24px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.14) 10%, rgba(0,0,0,0.92) 38%, rgba(0,0,0,0.98) 100%);
    text-align: center;
    z-index: 2;
}

.card-role {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.card-bottom h3 {
    margin: 10px 0 18px;
    color: #f7f2e8;
    font-size: clamp(42px, 4.4vw, 60px);
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.card-achievements {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.achievement-medal {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,0.28);
    display: inline-grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 34%, rgba(255,255,255,0.08), rgba(255,255,255,0.01) 38%),
        rgba(20,16,13,0.92);
    color: #f1d08d;
    font-size: 22px;
    cursor: default;
    box-shadow:
        0 0 18px rgba(216,177,106,0.08),
        inset 0 0 16px rgba(216,177,106,0.05);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.achievement-medal:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow:
        0 0 24px rgba(216,177,106,0.18),
        inset 0 0 16px rgba(216,177,106,0.08);
}

@media (max-width: 1100px) {
    .member-builder-inner,
    .member-card-grid { grid-template-columns: 1fr; }
    .member-card-grid { justify-content: center; }
}

@media (max-width: 780px) {
    .member-builder-section,
    .member-preview-section,
    .member-gallery-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .builder-copy,
    .member-builder-form { padding: 24px; }

    .builder-grid { grid-template-columns: 1fr; }
    .builder-grid label.builder-full { grid-column: auto; }

    .gallery-header { display: block; }

    .hn-member-card { min-height: 560px; }
    .card-portrait { inset: 26px 18px 150px 18px; }
    .card-bottom h3 { font-size: 44px; }
}


/* Members v3 - Ritual Cards */

.members-ritual-cards-page .page-hero {
    min-height: 56vh;
}

.ritual-builder-section,
.ritual-preview-section,
.ritual-gallery-section {
    position: relative;
    z-index: 3;
    background: rgba(0,0,0,0.94);
}

.ritual-builder-section {
    padding: 30px 42px 70px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.94) 100%);
}

.ritual-preview-section {
    padding: 0 42px 70px;
}

.ritual-gallery-section {
    padding: 0 42px 120px;
}

.ritual-builder-inner,
.member-preview-inner,
.member-gallery-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.ritual-builder-inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.ritual-builder-copy,
.ritual-member-builder-form {
    background:
        radial-gradient(circle at 50% 16%, rgba(216,177,106,0.14), rgba(216,177,106,0.03) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.92), rgba(9,7,5,0.97));
    padding: 34px;
}

.ritual-builder-copy h2,
.member-preview-inner h2,
.ritual-gallery-header h2 {
    margin: 0 0 18px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.ritual-builder-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
}

.builder-message {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(216,177,106,0.18);
    background: rgba(216,177,106,0.08);
    color: #f1d08d;
    font-size: 13px;
    line-height: 1.6;
}

.ritual-builder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ritual-builder-grid label {
    display: grid;
    gap: 8px;
}

.ritual-builder-grid label.builder-full {
    grid-column: span 2;
}

.ritual-builder-grid label span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ritual-builder-grid input,
.ritual-builder-grid select {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(216,177,106,0.16);
    background: rgba(10,8,6,0.88);
    color: #f7f2e8;
    padding: 0 16px;
    font-size: 15px;
}

.ritual-builder-grid input::placeholder {
    color: rgba(247,242,232,0.34);
}

.builder-submit {
    margin-top: 22px;
}

.ritual-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.ritual-gallery-header span {
    color: rgba(247,242,232,0.42);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ritual-card-showcase,
.ritual-member-card-grid {
    display: grid;
    justify-content: center;
}

.ritual-member-card-grid {
    grid-template-columns: repeat(3, minmax(280px, 360px));
    gap: 28px;
    justify-content: start;
}

.ritual-card-showcase {
    margin-top: 28px;
}

/* CARD */

.ritual-member-card {
    position: relative;
    width: min(100%, 360px);
    min-height: 720px;
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #16110c 0%, #080706 100%);
    box-shadow:
        0 30px 110px rgba(0,0,0,0.56),
        0 0 40px rgba(216,177,106,0.08),
        inset 0 0 0 1px rgba(255,255,255,0.03);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ritual-member-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 44px 140px rgba(0,0,0,0.62),
        0 0 54px rgba(216,177,106,0.14),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

.ritual-member-card.accent-gold {
    --card-glow: rgba(216,177,106,0.34);
    --card-glow-soft: rgba(216,177,106,0.16);
    --card-smoke: rgba(216,177,106,0.18);
    --card-line: rgba(216,177,106,0.24);
}

.ritual-member-card.accent-ember {
    --card-glow: rgba(255,120,72,0.36);
    --card-glow-soft: rgba(255,120,72,0.17);
    --card-smoke: rgba(255,120,72,0.19);
    --card-line: rgba(255,183,120,0.22);
}

.ritual-member-card.accent-ritual {
    --card-glow: rgba(205,164,255,0.28);
    --card-glow-soft: rgba(205,164,255,0.15);
    --card-smoke: rgba(205,164,255,0.14);
    --card-line: rgba(216,177,106,0.18);
}

.card-inner-frame {
    position: absolute;
    inset: 12px;
    border-radius: 24px;
    border: 1px solid rgba(216,177,106,0.28);
    z-index: 6;
    pointer-events: none;
}

.card-inner-frame::before,
.card-inner-frame::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px solid rgba(216,177,106,0.10);
}

.card-inner-frame::after {
    inset: 28px;
    border-radius: 12px;
    border: 1px solid rgba(216,177,106,0.05);
}

.card-celestial-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, var(--card-glow) 0%, var(--card-glow-soft) 18%, rgba(0,0,0,0) 42%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 20%),
        linear-gradient(180deg, rgba(20,14,10,0.86), rgba(5,5,5,0.98));
    z-index: 0;
}

.card-sigil {
    position: absolute;
    left: 50%;
    top: 190px;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid var(--card-line);
    z-index: 1;
    pointer-events: none;
}

.card-sigil.sigil-a {
    width: 320px;
    height: 320px;
    box-shadow: 0 0 60px var(--card-glow-soft), inset 0 0 50px rgba(255,255,255,0.03);
}

.card-sigil.sigil-b {
    width: 230px;
    height: 230px;
    top: 235px;
    border-style: dashed;
    opacity: 0.6;
}

.card-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(216,177,106,0) 0%, rgba(216,177,106,0.06) 15%, rgba(216,177,106,0) 30%) center/100% 1px no-repeat,
        linear-gradient(0deg, rgba(216,177,106,0) 0%, rgba(216,177,106,0.06) 15%, rgba(216,177,106,0) 30%) center/1px 100% no-repeat,
        linear-gradient(45deg, rgba(216,177,106,0.05) 0%, rgba(216,177,106,0) 45%) center/100% 100% no-repeat;
    opacity: 0.55;
}

.card-mist {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    z-index: 1;
}

.card-mist.mist-a {
    width: 220px;
    height: 120px;
    left: -20px;
    bottom: 165px;
    background: var(--card-smoke);
}

.card-mist.mist-b {
    width: 220px;
    height: 120px;
    right: -20px;
    bottom: 150px;
    background: var(--card-smoke);
}

.card-portrait-wrap {
    position: absolute;
    inset: 54px 32px 180px 32px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.card-portrait-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter:
        drop-shadow(0 24px 40px rgba(0,0,0,0.42))
        drop-shadow(0 0 22px rgba(255,255,255,0.03));
}

.card-logo-wrap {
    position: absolute;
    left: 50%;
    bottom: 118px;
    transform: translateX(-50%);
    z-index: 4;
    width: 132px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-logo-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 0 18px rgba(255,255,255,0.07))
        drop-shadow(0 0 30px rgba(216,177,106,0.14));
}

.card-name-wrap {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 46px;
    z-index: 4;
    text-align: center;
}

.card-name-wrap h3 {
    margin: 0;
    color: #f7f2e8;
    font-size: clamp(44px, 5vw, 64px);
    line-height: 0.94;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-shadow:
        0 0 24px rgba(255,255,255,0.06),
        0 0 60px rgba(216,177,106,0.08);
}

.card-achievements {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 14px;
    z-index: 5;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.achievement-medal {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,0.32);
    display: inline-grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 38%),
        rgba(17,13,10,0.96);
    color: #f1d08d;
    font-size: 20px;
    cursor: default;
    box-shadow:
        0 0 16px rgba(216,177,106,0.08),
        inset 0 0 14px rgba(216,177,106,0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.achievement-medal:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow:
        0 0 24px rgba(216,177,106,0.16),
        inset 0 0 16px rgba(216,177,106,0.08);
}

.achievement-medal::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    min-width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(216,177,106,0.18);
    background: rgba(10,8,6,0.96);
    color: #f7f2e8;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.16s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.32);
}

.achievement-medal:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1100px) {
    .ritual-builder-inner,
    .ritual-member-card-grid {
        grid-template-columns: 1fr;
    }

    .ritual-member-card-grid {
        justify-content: center;
    }
}

@media (max-width: 780px) {
    .ritual-builder-section,
    .ritual-preview-section,
    .ritual-gallery-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ritual-builder-copy,
    .ritual-member-builder-form {
        padding: 24px;
    }

    .ritual-builder-grid {
        grid-template-columns: 1fr;
    }

    .ritual-builder-grid label.builder-full {
        grid-column: auto;
    }

    .ritual-gallery-header {
        display: block;
    }

    .ritual-member-card {
        min-height: 660px;
    }

    .card-portrait-wrap {
        inset: 40px 20px 170px 20px;
    }

    .card-logo-wrap {
        width: 120px;
        bottom: 112px;
    }

    .card-name-wrap h3 {
        font-size: 48px;
    }
}


/* Members v9 - Artifact Cards */

.members-artifact-page .page-hero {
    min-height: 54vh;
}

.artifact-master-section,
.artifact-builder-section,
.artifact-preview-section,
.artifact-gallery-section {
    position: relative;
    z-index: 3;
    background: rgba(0,0,0,0.94);
}

.artifact-master-section,
.artifact-builder-section {
    padding: 30px 42px 70px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.94) 100%);
}

.artifact-preview-section {
    padding: 0 42px 70px;
}

.artifact-gallery-section {
    padding: 0 42px 120px;
}

.artifact-master-inner,
.artifact-builder-inner,
.artifact-preview-inner,
.artifact-gallery-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.artifact-master-inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(340px, 0.75fr);
    gap: 38px;
    align-items: center;
}

.artifact-master-copy h2,
.artifact-builder-copy h2,
.artifact-preview-inner h2,
.gallery-header h2 {
    margin: 0 0 18px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.artifact-master-copy p,
.artifact-builder-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
}

.artifact-point-list {
    margin: 24px 0 0;
    padding-left: 20px;
    color: rgba(247,242,232,0.72);
    line-height: 1.9;
}

.artifact-builder-inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.artifact-builder-copy,
.artifact-builder-form {
    background:
        radial-gradient(circle at 50% 16%, rgba(216,177,106,0.14), rgba(216,177,106,0.03) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.92), rgba(9,7,5,0.97));
    padding: 34px;
}

.builder-message {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(216,177,106,0.18);
    background: rgba(216,177,106,0.08);
    color: #f1d08d;
    font-size: 13px;
    line-height: 1.6;
}

.artifact-builder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.artifact-builder-grid label {
    display: grid;
    gap: 8px;
}

.artifact-builder-grid label.builder-full {
    grid-column: span 2;
}

.artifact-builder-grid label span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.artifact-builder-grid input {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(216,177,106,0.16);
    background: rgba(10,8,6,0.88);
    color: #f7f2e8;
    padding: 0 16px;
    font-size: 15px;
}

.artifact-builder-grid input::placeholder {
    color: rgba(247,242,232,0.34);
}

.builder-submit {
    margin-top: 22px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.gallery-header span {
    color: rgba(247,242,232,0.42);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.artifact-master-card,
.artifact-preview-card {
    display: grid;
    justify-content: center;
}

.artifact-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 420px));
    gap: 28px;
    justify-content: start;
}

.artifact-member-card {
    width: min(100%, 420px);
}

.artifact-card-shell {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    box-shadow:
        0 30px 110px rgba(0,0,0,0.56),
        0 0 40px rgba(216,177,106,0.10);
}

.artifact-card-artwork {
    width: 100%;
    display: block;
    height: auto;
}

.artifact-achievements {
    position: absolute;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 3;
}

.artifact-medal {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,0.34);
    display: inline-grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 38%),
        rgba(12,10,8,0.94);
    color: #f1d08d;
    font-size: 20px;
    cursor: default;
    box-shadow:
        0 0 18px rgba(216,177,106,0.10),
        inset 0 0 16px rgba(216,177,106,0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.artifact-medal:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 0 26px rgba(216,177,106,0.18),
        inset 0 0 18px rgba(216,177,106,0.08);
}

.artifact-medal::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    min-width: max-content;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(216,177,106,0.18);
    background: rgba(10,8,6,0.96);
    color: #f7f2e8;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.16s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.32);
}

.artifact-medal:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.artifact-meta {
    text-align: center;
    margin-top: 16px;
}

.artifact-meta h3 {
    margin: 8px 0 0;
    color: #f7f2e8;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .artifact-master-inner,
    .artifact-builder-inner,
    .artifact-card-grid {
        grid-template-columns: 1fr;
    }

    .artifact-card-grid {
        justify-content: center;
    }
}

@media (max-width: 780px) {
    .artifact-master-section,
    .artifact-builder-section,
    .artifact-preview-section,
    .artifact-gallery-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .artifact-builder-copy,
    .artifact-builder-form {
        padding: 24px;
    }

    .artifact-builder-grid {
        grid-template-columns: 1fr;
    }

    .artifact-builder-grid label.builder-full {
        grid-column: auto;
    }

    .gallery-header {
        display: block;
    }

    .artifact-achievements {
        bottom: 30px;
        gap: 9px;
    }

    .artifact-medal {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}


/* Members v10 - Layered Card Template */

.layered-members-page .page-hero {
    min-height: 54vh;
}

.layered-card-explainer,
.layered-builder-section,
.layered-preview-section,
.layered-gallery-section {
    position: relative;
    z-index: 3;
    background: rgba(0,0,0,0.94);
}

.layered-card-explainer,
.layered-builder-section {
    padding: 30px 42px 70px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.94) 100%);
}

.layered-preview-section {
    padding: 0 42px 70px;
}

.layered-gallery-section {
    padding: 0 42px 120px;
}

.layered-card-explainer-inner,
.layered-builder-inner,
.layered-preview-inner,
.layered-gallery-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.layered-card-explainer-inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(340px, 0.75fr);
    gap: 44px;
    align-items: center;
}

.layered-copy h2,
.layered-builder-copy h2,
.layered-preview-inner h2,
.gallery-header h2 {
    margin: 0 0 18px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.layered-copy p,
.layered-builder-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
}

.layer-list {
    margin: 24px 0 0;
    padding-left: 22px;
    color: rgba(247,242,232,0.74);
    line-height: 1.9;
}

.layered-card-main,
.layered-preview-card {
    display: grid;
    justify-content: center;
}

.layered-builder-inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
    gap: 1px;
    border: 1px solid rgba(216,177,106,0.14);
    background: rgba(216,177,106,0.14);
    box-shadow: 0 30px 100px rgba(0,0,0,0.36);
}

.layered-builder-copy,
.layered-builder-form {
    background:
        radial-gradient(circle at 50% 16%, rgba(216,177,106,0.14), rgba(216,177,106,0.03) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.92), rgba(9,7,5,0.97));
    padding: 34px;
}

.layered-builder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.layered-builder-grid label {
    display: grid;
    gap: 8px;
}

.layered-builder-grid label.builder-full {
    grid-column: span 2;
}

.layered-builder-grid label span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.layered-builder-grid input {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(216,177,106,0.16);
    background: rgba(10,8,6,0.88);
    color: #f7f2e8;
    padding: 0 16px;
    font-size: 15px;
}

.layered-builder-grid input::placeholder {
    color: rgba(247,242,232,0.34);
}

.builder-message {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(216,177,106,0.18);
    background: rgba(216,177,106,0.08);
    color: #f1d08d;
    font-size: 13px;
    line-height: 1.6;
}

.builder-submit {
    margin-top: 22px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.gallery-header span {
    color: rgba(247,242,232,0.42);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.layered-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 420px));
    gap: 28px;
    justify-content: start;
}

/* Actual layered card */

.hn-layered-card {
    --card-width: 420px;
    position: relative;
    width: min(100%, var(--card-width));
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    overflow: hidden;
    background: #050403;
    box-shadow:
        0 30px 110px rgba(0,0,0,0.56),
        0 0 44px rgba(216,177,106,0.10);
    isolation: isolate;
}

.layer-card-bg,
.layer-person,
.layer-logo,
.layer-nameplate {
    position: absolute;
    user-select: none;
    pointer-events: none;
}

.layer-card-bg {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.layer-person {
    left: 50%;
    bottom: 20.5%;
    transform: translateX(-50%);
    width: 77%;
    max-height: 68%;
    object-fit: contain;
    object-position: center bottom;
    z-index: 3;
    filter:
        drop-shadow(0 22px 28px rgba(0,0,0,0.50))
        drop-shadow(0 0 22px rgba(216,177,106,0.07));
}

.layer-logo {
    left: 50%;
    bottom: 25.2%;
    transform: translateX(-50%);
    width: 22%;
    max-width: 118px;
    z-index: 5;
    filter:
        drop-shadow(0 0 12px rgba(255,255,255,0.18))
        drop-shadow(0 0 24px rgba(216,177,106,0.18));
}

.layer-nameplate {
    left: 50%;
    bottom: 10.2%;
    transform: translateX(-50%);
    width: 86%;
    z-index: 6;
}

.layer-nameplate img {
    width: 100%;
    display: block;
}

.layer-name {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1.4%;
    color: #f4d48f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow:
        0 2px 0 rgba(64,34,10,0.9),
        0 0 20px rgba(216,177,106,0.22);
}

.layer-achievements {
    position: absolute;
    left: 50%;
    bottom: 3.2%;
    transform: translateX(-50%);
    z-index: 7;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    width: 80%;
}

.layer-medal {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,0.36);
    display: inline-grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 38%),
        rgba(10,8,6,0.92);
    color: #f1d08d;
    font-size: 19px;
    cursor: default;
    box-shadow:
        0 0 18px rgba(216,177,106,0.12),
        inset 0 0 16px rgba(216,177,106,0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.layer-medal:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow:
        0 0 26px rgba(216,177,106,0.20),
        inset 0 0 18px rgba(216,177,106,0.08);
}

.layer-medal::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    min-width: max-content;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(216,177,106,0.18);
    background: rgba(10,8,6,0.96);
    color: #f7f2e8;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.16s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.32);
}

.layer-medal:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1100px) {
    .layered-card-explainer-inner,
    .layered-builder-inner,
    .layered-card-grid {
        grid-template-columns: 1fr;
    }

    .layered-card-grid {
        justify-content: center;
    }
}

@media (max-width: 780px) {
    .layered-card-explainer,
    .layered-builder-section,
    .layered-preview-section,
    .layered-gallery-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .layered-builder-copy,
    .layered-builder-form {
        padding: 24px;
    }

    .layered-builder-grid {
        grid-template-columns: 1fr;
    }

    .layered-builder-grid label.builder-full {
        grid-column: auto;
    }

    .gallery-header {
        display: block;
    }

    .layer-logo {
        width: 24%;
    }

    .layer-name {
        font-size: 38px;
    }

    .layer-medal {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}


/* V11 tweaks - bigger portrait/logo + admin-only note */

.layer-person {
    bottom: 18.5%;
    width: 88%;
    max-height: 74%;
}

.layer-logo {
    bottom: 25.8%;
    width: 30%;
    max-width: 155px;
}

.layer-nameplate {
    bottom: 9.8%;
}

.layer-achievements {
    bottom: 2.8%;
}

.layered-admin-note-section {
    position: relative;
    z-index: 3;
    padding: 0 42px 70px;
    background: rgba(0,0,0,0.94);
}

.layered-admin-note-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(216,177,106,0.14);
    background:
        radial-gradient(circle at 50% 16%, rgba(216,177,106,0.10), rgba(216,177,106,0.02) 28%, rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(24,16,10,0.82), rgba(9,7,5,0.92));
    padding: 24px 28px;
}

.layered-admin-note-inner p {
    margin: 0;
    color: rgba(247,242,232,0.68);
    line-height: 1.7;
}

@media (max-width: 780px) {
    .layer-person {
        width: 92%;
        bottom: 18%;
    }

    .layer-logo {
        width: 32%;
        bottom: 25.5%;
    }

    .layered-admin-note-section {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* V12 - admin page separation */

.clean-members-gallery {
    padding-top: 30px;
}

.admin-members-page .page-hero {
    min-height: 48vh;
}

.layered-admin-note-section {
    display: none !important;
}


/* V13 - bigger logo and responsive name sizing */

.layer-logo {
    width: 34%;
    max-width: 178px;
    bottom: 25.0%;
}

.layer-name {
    white-space: nowrap;
    transform-origin: center center;
}

/* Automatic name sizing from PHP-generated classes */
.layer-name.name-short {
    font-size: clamp(46px, 5.7vw, 68px);
    letter-spacing: 0.09em;
}

.layer-name.name-medium {
    font-size: clamp(39px, 4.8vw, 56px);
    letter-spacing: 0.065em;
}

.layer-name.name-long {
    font-size: clamp(32px, 4.0vw, 46px);
    letter-spacing: 0.045em;
}

.layer-name.name-xlong {
    font-size: clamp(25px, 3.2vw, 36px);
    letter-spacing: 0.025em;
}

@media (max-width: 780px) {
    .layer-logo {
        width: 36%;
        bottom: 24.8%;
    }

    .layer-name.name-short {
        font-size: 48px;
    }

    .layer-name.name-medium {
        font-size: 40px;
    }

    .layer-name.name-long {
        font-size: 33px;
    }

    .layer-name.name-xlong {
        font-size: 27px;
    }
}


/* V14 - much bigger HN logo on member card */

.layer-logo {
    width: 46%;
    max-width: 240px;
    bottom: 23.4%;
}

@media (max-width: 780px) {
    .layer-logo {
        width: 48%;
        bottom: 23.2%;
    }
}
