/* 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%;
    }
}


/* ==========================================================
   V16 - USER + PROFILE FOUNDATION
   No badges. No achievements. No WoW.
   ========================================================== */

.member-card-link {
    display: block;
    width: min(100%, 420px);
    color: inherit;
    text-decoration: none;
    border-radius: 30px;
    transition: transform .18s ease, filter .18s ease;
}

.member-card-link:hover {
    transform: translateY(-5px);
    filter: brightness(1.04);
}

.member-card-link .hn-layered-card {
    width: 100%;
}

/* V16 cards deliberately have no badge/achievement layer. */
.layered-members-page .layer-achievements {
    display: none !important;
}

.empty-state {
    border: 1px solid rgba(216,177,106,.14);
    background: rgba(216,177,106,.04);
    padding: 30px;
    color: rgba(247,242,232,.62);
    line-height: 1.7;
}

/* Profile detail */

.profile-detail-section {
    position: relative;
    z-index: 3;
    min-height: calc(100vh - 90px);
    padding: 120px 42px 100px;
    background:
        radial-gradient(circle at 70% 18%, rgba(216,177,106,.12), transparent 34%),
        rgba(0,0,0,.94);
}

.profile-detail-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 70px;
    align-items: center;
}

.profile-detail-copy h1 {
    margin: 0 0 22px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(50px, 7vw, 92px);
    line-height: .92;
    letter-spacing: -.05em;
}

.profile-detail-copy p {
    max-width: 650px;
    margin: 0;
    color: rgba(247,242,232,.70);
    font-size: 17px;
    line-height: 1.9;
}

.profile-muted {
    color: rgba(247,242,232,.38) !important;
    font-style: italic;
}

.profile-edit-button {
    display: inline-flex;
    margin-top: 28px;
}

/* Profile editor */

.profile-editor-section,
.admin-user-section,
.admin-user-list-section {
    position: relative;
    z-index: 3;
    padding: 30px 42px 90px;
    background: rgba(0,0,0,.94);
}

.profile-editor-inner,
.admin-user-inner,
.admin-user-list-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.profile-editor-inner,
.admin-user-inner {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 1px;
    border: 1px solid rgba(216,177,106,.14);
    background: rgba(216,177,106,.14);
    box-shadow: 0 30px 100px rgba(0,0,0,.36);
}

.profile-editor-preview,
.profile-editor-form,
.admin-user-copy,
.admin-user-form {
    padding: 34px;
    background:
        radial-gradient(circle at 50% 14%, rgba(216,177,106,.12), transparent 36%),
        linear-gradient(180deg, rgba(24,16,10,.92), rgba(9,7,5,.97));
}

.profile-image-preview {
    margin-top: 22px;
    aspect-ratio: 1 / 1;
    max-width: 360px;
    display: grid;
    place-items: end center;
    overflow: hidden;
    border: 1px solid rgba(216,177,106,.16);
    background:
        radial-gradient(circle at 50% 70%, rgba(216,177,106,.14), transparent 46%),
        #080604;
}

.profile-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.profile-upload-tip {
    max-width: 360px;
    margin: 16px 0 0;
    color: rgba(247,242,232,.46);
    font-size: 12px;
    line-height: 1.7;
}

.profile-editor-form,
.admin-user-form {
    display: grid;
    gap: 16px;
}

.profile-editor-form label,
.admin-user-form label {
    display: grid;
    gap: 8px;
}

.profile-editor-form label > span,
.admin-user-form label > span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.profile-editor-form input[type="text"],
.profile-editor-form input[type="file"],
.profile-editor-form textarea,
.admin-user-form input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(216,177,106,.16);
    background: rgba(10,8,6,.88);
    color: #f7f2e8;
    padding: 14px 16px;
    font: inherit;
}

.profile-editor-form textarea {
    resize: vertical;
    min-height: 130px;
}

.profile-editor-form small {
    color: rgba(247,242,232,.40);
}

.profile-visibility-check {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: start;
    gap: 12px !important;
}

.profile-visibility-check input {
    width: 18px;
    height: 18px;
}

.profile-visibility-check span {
    color: rgba(247,242,232,.72) !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-weight: 600 !important;
}

.profile-form-message {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.profile-form-message.success {
    border: 1px solid rgba(216,177,106,.22);
    background: rgba(216,177,106,.08);
    color: #f1d08d;
}

.profile-form-message.error {
    border: 1px solid rgba(180,72,72,.26);
    background: rgba(180,72,72,.08);
    color: #f0b3b3;
}

/* Admin users */

.admin-user-copy h2 {
    margin: 0 0 18px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 5vw, 70px);
    line-height: .96;
    letter-spacing: -.05em;
}

.admin-user-copy p {
    margin: 0;
    color: rgba(247,242,232,.62);
    line-height: 1.8;
}

.user-admin-list {
    display: grid;
    gap: 12px;
}

.user-admin-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    padding: 24px;
    border: 1px solid rgba(216,177,106,.14);
    background:
        radial-gradient(circle at 20% 0%, rgba(216,177,106,.08), transparent 30%),
        rgba(8,6,4,.88);
}

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

.user-admin-main p {
    margin: 0;
    color: rgba(247,242,232,.58);
    line-height: 1.6;
}

.user-admin-meta {
    margin-top: 8px !important;
    font-size: 12px;
    color: rgba(247,242,232,.36) !important;
}

.user-admin-actions {
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    justify-content: center;
}

.user-admin-actions form {
    margin: 0;
}

.small-admin-button {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216,177,106,.20);
    border-radius: 10px;
    background: rgba(216,177,106,.06);
    color: #e8c47d;
    padding: 8px 12px;
    text-decoration: none;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.reset-password-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.reset-password-form input {
    min-width: 0;
    border-radius: 10px;
    border: 1px solid rgba(216,177,106,.16);
    background: rgba(10,8,6,.88);
    color: #f7f2e8;
    padding: 8px 10px;
}

.reset-password-form .small-admin-button {
    width: auto;
}

@media (max-width: 900px) {
    .profile-detail-inner,
    .profile-editor-inner,
    .admin-user-inner,
    .user-admin-card {
        grid-template-columns: 1fr;
    }

    .profile-card-column {
        display: grid;
        justify-content: center;
    }

    .user-admin-actions {
        min-width: 0;
    }
}

@media (max-width: 780px) {
    .profile-detail-section,
    .profile-editor-section,
    .admin-user-section,
    .admin-user-list-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .profile-editor-preview,
    .profile-editor-form,
    .admin-user-copy,
    .admin-user-form {
        padding: 24px;
    }

    .reset-password-form {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   V18 - Integrated shared calendar + simplified navigation
   ========================================================== */

.pillar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calendar-v18-hero {
    min-height: 46vh;
}

.calendar-app-section {
    position: relative;
    z-index: 3;
    padding: 20px 42px 110px;
    background:
        linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.92) 20%),
        rgba(0,0,0,.94);
}

.calendar-app {
    width: min(1420px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(216,177,106,.16);
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.08), transparent 32%),
        rgba(8,6,4,.90);
    box-shadow: 0 40px 120px rgba(0,0,0,.46);
}

.calendar-app-toolbar {
    min-height: 116px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(216,177,106,.13);
}

.calendar-heading {
    text-align: center;
}

.calendar-heading .section-kicker {
    margin-bottom: 6px;
}

.calendar-heading h2 {
    margin: 0;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    text-transform: capitalize;
}

.calendar-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.calendar-icon-button,
.calendar-today-button,
.calendar-delete-event {
    border: 1px solid rgba(216,177,106,.18);
    background: rgba(216,177,106,.05);
    color: #e7c77f;
    box-shadow: none;
    text-transform: none;
    letter-spacing: .03em;
}

.calendar-icon-button {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 20px;
}

.calendar-today-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.calendar-add-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    border-radius: 999px;
}

.calendar-layout-v18 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
}

.calendar-surface {
    min-width: 0;
    border-right: 1px solid rgba(216,177,106,.13);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid rgba(216,177,106,.13);
}

.calendar-weekdays > div {
    padding: 14px 10px;
    color: rgba(247,242,232,.42);
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.calendar-grid-v18 {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: rgba(216,177,106,.10);
    gap: 1px;
}

.calendar-cell-v18 {
    min-width: 0;
    min-height: 150px;
    position: relative;
    display: block;
    padding: 13px;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.035), transparent 38%),
        rgba(8,6,4,.97);
    color: #f7f2e8;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    overflow: hidden;
}

.calendar-cell-v18:hover {
    z-index: 2;
    transform: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.10), transparent 42%),
        rgba(14,10,7,.98);
    box-shadow: inset 0 0 0 1px rgba(216,177,106,.24);
}

.calendar-cell-v18.is-outside {
    opacity: .32;
}

.calendar-cell-v18.is-today {
    box-shadow: inset 0 0 0 1px rgba(216,177,106,.55);
}

.calendar-cell-number {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 50%;
    color: rgba(247,242,232,.68);
    font-size: 13px;
    font-weight: 800;
}

.calendar-cell-v18.is-today .calendar-cell-number {
    background: linear-gradient(180deg, #f3dfb0, #d9b26d);
    color: #120e09;
}

.calendar-cell-events {
    display: grid;
    gap: 5px;
}

.calendar-event-chip {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    border-left: 2px solid rgba(216,177,106,.70);
    background: rgba(216,177,106,.075);
    color: rgba(247,242,232,.78);
    font-size: 10px;
    line-height: 1.25;
}

.calendar-event-chip span {
    flex: 0 0 auto;
    color: #d9b26d;
    font-size: 9px;
}

.calendar-event-chip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.calendar-more-events {
    color: rgba(216,177,106,.62);
    font-size: 10px;
    padding: 3px 8px;
}

.calendar-month-panel {
    padding: 24px;
    min-height: 620px;
}

.calendar-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(216,177,106,.12);
}

.calendar-panel-head .section-kicker {
    margin-bottom: 6px;
}

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

.calendar-panel-head > span {
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(216,177,106,.18);
    color: #d9b26d;
    font-weight: 800;
}

.calendar-event-list {
    display: grid;
}

.calendar-list-event {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(216,177,106,.09);
}

.calendar-list-date {
    display: grid;
    gap: 5px;
}

.calendar-list-date strong {
    color: #d9b26d;
    font-size: 11px;
    text-transform: capitalize;
}

.calendar-list-date span {
    color: rgba(247,242,232,.46);
    font-size: 11px;
}

.calendar-list-content h4 {
    margin: 0 0 7px;
    color: #f4dfb2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.calendar-list-content p {
    margin: 0 0 8px;
    color: rgba(247,242,232,.58);
    font-size: 12px;
    line-height: 1.65;
}

.calendar-event-meta {
    color: rgba(247,242,232,.30);
    font-size: 10px;
}

.calendar-delete-event {
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 10px;
}

.calendar-loading,
.calendar-api-error,
.calendar-empty-v18 {
    padding: 36px 4px;
    color: rgba(247,242,232,.48);
    line-height: 1.7;
}

.calendar-api-error {
    color: #e6aaaa;
}

.calendar-empty-v18 h4 {
    margin: 10px 0 6px;
    color: #e8d4aa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.calendar-empty-v18 p {
    margin: 0;
    font-size: 12px;
}

/* Calendar modal */
body.calendar-modal-open {
    overflow: hidden;
}

.calendar-modal[hidden] {
    display: none;
}

.calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
}

.calendar-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(8px);
}

.calendar-modal-card {
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    z-index: 2;
    padding: 34px;
    border: 1px solid rgba(216,177,106,.24);
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.12), transparent 35%),
        #0c0906;
    box-shadow: 0 50px 160px rgba(0,0,0,.75);
}

.calendar-modal-card h2 {
    margin: 0 0 10px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 58px);
    line-height: .96;
}

.calendar-modal-card > p {
    margin: 0 0 26px;
    color: rgba(247,242,232,.54);
    line-height: 1.7;
}

.calendar-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(216,177,106,.14);
    border-radius: 50%;
    background: rgba(216,177,106,.05);
    color: #e7c77f;
    font-size: 22px;
    box-shadow: none;
}

.calendar-event-form {
    display: grid;
    gap: 15px;
}

.calendar-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.calendar-event-form label {
    display: grid;
    gap: 8px;
}

.calendar-event-form label > span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.calendar-event-form label small {
    color: rgba(247,242,232,.34);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.calendar-event-form input,
.calendar-event-form textarea {
    width: 100%;
    border: 1px solid rgba(216,177,106,.16);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: #f7f2e8;
    padding: 13px 14px;
    font: inherit;
}

.calendar-event-form textarea {
    resize: vertical;
    min-height: 120px;
}

.calendar-form-error {
    padding: 12px 14px;
    border: 1px solid rgba(180,72,72,.28);
    background: rgba(180,72,72,.08);
    color: #efb4b4;
    font-size: 12px;
}

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

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

    .calendar-surface {
        border-right: 0;
        border-bottom: 1px solid rgba(216,177,106,.13);
    }

    .calendar-month-panel {
        min-height: 0;
    }
}

@media (max-width: 780px) {
    .calendar-app-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .calendar-app-toolbar {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        padding: 18px 12px;
    }

    .calendar-toolbar-actions {
        gap: 6px;
    }

    .calendar-today-button {
        display: none;
    }

    .calendar-add-button {
        min-width: 44px;
        width: 44px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        position: relative;
    }

    .calendar-add-button::after {
        content: "+";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: #120e09;
        font-size: 22px;
    }

    .calendar-heading h2 {
        font-size: 28px;
    }

    .calendar-weekdays > div {
        padding: 10px 2px;
        font-size: 8px;
        letter-spacing: .08em;
    }

    .calendar-cell-v18 {
        min-height: 92px;
        padding: 7px 5px;
    }

    .calendar-cell-number {
        width: 25px;
        height: 25px;
        margin-bottom: 5px;
        font-size: 11px;
    }

    .calendar-event-chip {
        padding: 4px;
        font-size: 8px;
    }

    .calendar-event-chip span {
        display: none;
    }

    .calendar-more-events {
        padding: 2px 4px;
        font-size: 8px;
    }

    .calendar-month-panel {
        padding: 18px;
    }

    .calendar-list-event {
        grid-template-columns: 78px minmax(0, 1fr);
    }

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

    .calendar-modal-card {
        padding: 28px 20px 22px;
    }

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

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


/* ==========================================================
   V19 - CLEAN DASHBOARD
   ========================================================== */

body.dashboard-clean {
    min-height: 100vh;
    overflow: hidden;
}

.dashboard-clean-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.dashboard-clean-welcome {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 110px 24px 40px;
    position: relative;
    isolation: isolate;
}

.dashboard-clean-welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 47%, rgba(216,177,106,.08), transparent 30%),
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.34));
}

.dashboard-clean-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(760px, 75vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216,177,106,.12), rgba(216,177,106,.025) 34%, transparent 70%);
    filter: blur(24px);
    pointer-events: none;
}

.dashboard-clean-title-wrap {
    position: relative;
    text-align: center;
    width: min(1100px, 94vw);
}

.dashboard-clean-title {
    position: relative;
    z-index: 5;
    margin: 0;
    display: grid;
    gap: 3px;
    font-family: Georgia, "Times New Roman", serif;
    line-height: .88;
    text-transform: uppercase;
    text-shadow:
        0 0 20px rgba(216,177,106,.20),
        0 0 80px rgba(216,177,106,.12);
}

.dashboard-clean-title span {
    color: rgba(247,242,232,.82);
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 400;
    letter-spacing: .06em;
}

.dashboard-clean-title strong {
    color: #f0d7a5;
    font-size: clamp(62px, 9vw, 142px);
    font-weight: 400;
    letter-spacing: -.055em;
}

.dashboard-clean .audio-fallback {
    display: none !important;
}


/* ==========================================================
   V19 - ISOLATED SHARED CALENDAR
   ========================================================== */

body.calendar-v19-body {
    background:
        linear-gradient(rgba(0,0,0,.22), rgba(0,0,0,.78)),
        url("ritual-bg.png") center top / cover no-repeat fixed,
        #050403;
}

.calendar-v19-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 92px;
}

.calendar-v19-intro {
    padding: 54px 42px 28px;
}

.calendar-v19-intro-inner {
    width: min(1460px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.calendar-v19-intro h1 {
    margin: 4px 0 12px;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 7vw, 104px);
    line-height: .88;
    letter-spacing: -.06em;
}

.calendar-v19-intro p {
    max-width: 680px;
    margin: 0;
    color: rgba(247,242,232,.58);
    font-size: 15px;
    line-height: 1.75;
}

.calendar-v19-primary {
    appearance: none;
    width: auto !important;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px !important;
    border: 1px solid rgba(245,224,177,.32) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #f5ead2 0%, #d9b26d 100%) !important;
    color: #14100c !important;
    box-shadow: 0 14px 40px rgba(0,0,0,.22) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    white-space: nowrap;
}

.calendar-v19-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 50px rgba(216,177,106,.12) !important;
}

.calendar-v19-primary span {
    font-size: 20px;
    line-height: 1;
}

.calendar-v19-section {
    padding: 0 42px 100px;
}

.calendar-v19-shell {
    width: min(1460px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(216,177,106,.18);
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.085), transparent 34%),
        rgba(7,5,4,.94);
    box-shadow:
        0 40px 140px rgba(0,0,0,.50),
        inset 0 1px rgba(255,255,255,.025);
}

.calendar-v19-toolbar {
    min-height: 108px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(216,177,106,.14);
}

.calendar-v19-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-v19-nav-right {
    justify-content: flex-end;
}

.calendar-v19-nav-button,
.calendar-v19-today {
    appearance: none;
    width: auto !important;
    padding: 0 !important;
    border: 1px solid rgba(216,177,106,.20) !important;
    background: rgba(216,177,106,.055) !important;
    color: #e7c77f !important;
    box-shadow: none !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.calendar-v19-nav-button {
    width: 46px !important;
    height: 46px;
    border-radius: 50% !important;
    font-size: 19px !important;
}

.calendar-v19-today {
    height: 46px;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.calendar-v19-nav-button:hover,
.calendar-v19-today:hover {
    transform: none !important;
    background: rgba(216,177,106,.12) !important;
    box-shadow: none !important;
}

.calendar-v19-heading {
    min-width: 280px;
    text-align: center;
}

.calendar-v19-heading .section-kicker {
    margin-bottom: 6px;
}

.calendar-v19-heading h2 {
    margin: 0;
    color: #f1d08d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3.7vw, 56px);
    line-height: 1;
    letter-spacing: -.04em;
    text-transform: capitalize;
}

.calendar-v19-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.calendar-v19-calendar {
    min-width: 0;
    border-right: 1px solid rgba(216,177,106,.13);
}

/* Override every older calendar/button rule */
.calendar-v19-calendar .calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    border-bottom: 1px solid rgba(216,177,106,.13) !important;
    background: rgba(216,177,106,.025);
}

.calendar-v19-calendar .calendar-weekdays > div {
    padding: 13px 8px !important;
    color: rgba(247,242,232,.40) !important;
    text-align: center !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
}

.calendar-v19-calendar .calendar-grid-v18 {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 1px !important;
    background: rgba(216,177,106,.12) !important;
}

.calendar-v19-calendar button.calendar-cell-v18 {
    appearance: none !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 142px !important;
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.035), transparent 42%),
        rgba(8,6,4,.975) !important;
    color: #f7f2e8 !important;
    box-shadow: none !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    overflow: hidden !important;
}

.calendar-v19-calendar button.calendar-cell-v18:hover {
    transform: none !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.11), transparent 42%),
        rgba(15,10,7,.99) !important;
    box-shadow: inset 0 0 0 1px rgba(216,177,106,.24) !important;
}

.calendar-v19-calendar button.calendar-cell-v18.is-outside {
    opacity: .25 !important;
}

.calendar-v19-calendar button.calendar-cell-v18.is-today {
    box-shadow: inset 0 0 0 1px rgba(216,177,106,.62) !important;
}

.calendar-v19-calendar .calendar-cell-number {
    width: 31px !important;
    height: 31px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 0 9px !important;
    border-radius: 50% !important;
    color: rgba(247,242,232,.68) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.calendar-v19-calendar button.calendar-cell-v18.is-today .calendar-cell-number {
    background: linear-gradient(180deg, #f3dfb0, #d9b26d) !important;
    color: #120e09 !important;
}

.calendar-v19-calendar .calendar-cell-events {
    display: grid !important;
    gap: 5px !important;
}

.calendar-v19-calendar .calendar-event-chip {
    min-width: 0;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 7px !important;
    border-left: 2px solid rgba(216,177,106,.68) !important;
    background: rgba(216,177,106,.07) !important;
    color: rgba(247,242,232,.76) !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
}

.calendar-v19-calendar .calendar-event-chip span {
    flex: 0 0 auto;
    color: #d9b26d;
    font-size: 8px;
}

.calendar-v19-calendar .calendar-event-chip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-v19-calendar .calendar-more-events {
    padding: 2px 7px;
    color: rgba(216,177,106,.58);
    font-size: 9px;
}

.calendar-v19-events {
    min-width: 0;
    padding: 25px;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.045), transparent 30%),
        rgba(6,5,4,.72);
}

.calendar-v19-events-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(216,177,106,.12);
}

.calendar-v19-events-head h3 {
    margin: 4px 0 0;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
}

.calendar-v19-events-head > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(216,177,106,.20);
    border-radius: 50%;
    color: #d9b26d;
    font-size: 12px;
    font-weight: 900;
}

.calendar-v19-events .calendar-event-list {
    display: grid !important;
}

.calendar-v19-events .calendar-list-event {
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid rgba(216,177,106,.09) !important;
}

.calendar-v19-events .calendar-delete-event {
    grid-column: 2;
    justify-self: start;
    appearance: none;
    width: auto !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(216,177,106,.16) !important;
    border-radius: 8px !important;
    background: rgba(216,177,106,.04) !important;
    color: rgba(247,242,232,.50) !important;
    box-shadow: none !important;
    font-size: 9px !important;
    letter-spacing: .08em !important;
}

.calendar-v19-events .calendar-list-date strong {
    color: #d9b26d;
    font-size: 10px;
}

.calendar-v19-events .calendar-list-date span {
    color: rgba(247,242,232,.40);
    font-size: 10px;
}

.calendar-v19-events .calendar-list-content h4 {
    margin: 0 0 6px;
    color: #f4dfb2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.calendar-v19-events .calendar-list-content p {
    margin: 0 0 7px;
    color: rgba(247,242,232,.54);
    font-size: 11px;
    line-height: 1.6;
}

.calendar-v19-events .calendar-event-meta {
    color: rgba(247,242,232,.28);
    font-size: 9px;
}

.calendar-v19-events .calendar-loading,
.calendar-v19-events .calendar-api-error,
.calendar-v19-events .calendar-empty-v18 {
    padding: 34px 2px;
}

.calendar-v19-submit {
    width: 100% !important;
}

/* Modal button/input hardening against old global styles */
.calendar-modal .calendar-modal-close {
    width: 40px !important;
    padding: 0 !important;
    background: rgba(216,177,106,.05) !important;
    color: #e7c77f !important;
}

@media (max-width: 1120px) {
    .calendar-v19-content {
        grid-template-columns: 1fr;
    }

    .calendar-v19-calendar {
        border-right: 0;
        border-bottom: 1px solid rgba(216,177,106,.13);
    }

    .calendar-v19-events {
        min-height: 0;
    }
}

@media (max-width: 780px) {
    body.dashboard-clean {
        overflow: auto;
    }

    .dashboard-clean-welcome {
        padding-top: 170px;
        align-items: start;
    }

    .dashboard-clean-title span {
        font-size: clamp(30px, 9vw, 48px);
    }

    .dashboard-clean-title strong {
        font-size: clamp(50px, 14vw, 82px);
    }

    .calendar-v19-page {
        padding-top: 142px;
    }

    .calendar-v19-intro {
        padding: 30px 14px 20px;
    }

    .calendar-v19-intro-inner {
        display: grid;
        gap: 22px;
    }

    .calendar-v19-primary {
        justify-self: start;
    }

    .calendar-v19-section {
        padding: 0 10px 80px;
    }

    .calendar-v19-shell {
        border-radius: 18px;
    }

    .calendar-v19-toolbar {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        min-height: 90px;
        padding: 16px 10px;
    }

    .calendar-v19-today {
        display: none !important;
    }

    .calendar-v19-heading {
        min-width: 0;
    }

    .calendar-v19-heading h2 {
        font-size: 27px;
    }

    .calendar-v19-calendar .calendar-weekdays > div {
        padding: 10px 1px !important;
        font-size: 7px !important;
        letter-spacing: .06em !important;
    }

    .calendar-v19-calendar button.calendar-cell-v18 {
        min-height: 86px !important;
        padding: 6px 4px !important;
    }

    .calendar-v19-calendar .calendar-cell-number {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 4px !important;
        font-size: 10px !important;
    }

    .calendar-v19-calendar .calendar-event-chip {
        padding: 3px !important;
        font-size: 7px !important;
        border-left-width: 1px !important;
    }

    .calendar-v19-calendar .calendar-event-chip span {
        display: none;
    }

    .calendar-v19-events {
        padding: 18px;
    }

    .calendar-v19-events .calendar-list-event {
        grid-template-columns: 66px minmax(0, 1fr) !important;
    }
}


/* ==========================================================
   V20 TARGETED FIX
   Dashboard restores the original ritual hero.
   Calendar uses an isolated black/gold visual system.
   ========================================================== */

/* ----- Dashboard: original hero, but NO five-pillars section ----- */

body:not(.calendar-v20-body) .hero {
    min-height: calc(100vh - 78px);
}

/* V19's temporary clean dashboard is no longer used. */
.dashboard-clean-main,
.dashboard-clean-welcome {
    display: none;
}


/* ----- Calendar ----- */

body.calendar-v20-body {
    background:
        linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.70)),
        url("ritual-bg.png") center top / cover fixed no-repeat,
        #050403;
}

.calendar-v20-page {
    position: relative;
    z-index: 2;
}

.calendar-v20-hero {
    min-height: 52vh;
}

.calendar-v20-section {
    position: relative;
    z-index: 3;
    padding: 22px 42px 110px;
    background:
        linear-gradient(180deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.80) 18%, rgba(0,0,0,.94) 100%);
}

.calendar-v20-shell {
    width: min(1420px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(216,177,106,.18);
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.075), transparent 34%),
        rgba(8,6,4,.92);
    box-shadow:
        0 34px 110px rgba(0,0,0,.48),
        inset 0 1px rgba(255,255,255,.025);
}

.calendar-v20-toolbar {
    min-height: 112px;
    display: grid;
    grid-template-columns: minmax(126px, 1fr) auto minmax(320px, 1fr);
    align-items: center;
    gap: 22px;
    padding: 23px 28px;
    border-bottom: 1px solid rgba(216,177,106,.14);
}

.calendar-v20-month {
    min-width: 270px;
    text-align: center;
}

.calendar-v20-month .section-kicker {
    margin-bottom: 6px;
}

.calendar-v20-month h2 {
    margin: 0;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -.035em;
    text-transform: capitalize;
}

.calendar-v20-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

/* Explicitly beat the site's global white button style. */
body.calendar-v20-body button.calendar-v20-nav,
body.calendar-v20-body button.calendar-v20-quiet,
body.calendar-v20-body button.calendar-v20-add {
    appearance: none !important;
    width: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: .18s ease !important;
}

body.calendar-v20-body button.calendar-v20-nav,
body.calendar-v20-body button.calendar-v20-quiet {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px !important;
    border: 1px solid rgba(216,177,106,.22) !important;
    border-radius: 999px !important;
    background: rgba(8,6,4,.74) !important;
    color: rgba(247,242,232,.78) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .13em !important;
    text-transform: uppercase !important;
}

body.calendar-v20-body button.calendar-v20-nav:hover,
body.calendar-v20-body button.calendar-v20-quiet:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(216,177,106,.42) !important;
    background: rgba(216,177,106,.09) !important;
    color: #fff !important;
}

body.calendar-v20-body button.calendar-v20-add {
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 19px !important;
    border: 1px solid rgba(244,219,163,.58) !important;
    border-radius: 999px !important;
    background:
        linear-gradient(180deg, #f4e5c2 0%, #d6ad62 100%) !important;
    color: #171009 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
}

body.calendar-v20-body button.calendar-v20-add:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 32px rgba(216,177,106,.16) !important;
    filter: brightness(1.04);
}

.calendar-v20-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.calendar-v20-surface {
    min-width: 0;
    border-right: 1px solid rgba(216,177,106,.13);
}

.calendar-v20-page .calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    border-bottom: 1px solid rgba(216,177,106,.13) !important;
    background: rgba(216,177,106,.035) !important;
}

.calendar-v20-page .calendar-weekdays > div {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 8px 4px !important;
    color: rgba(247,242,232,.44) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
}

.calendar-v20-page .calendar-grid-v18 {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 1px !important;
    background: rgba(216,177,106,.12) !important;
}

/* Calendar days are clickable, but visually they are cells — not white buttons. */
body.calendar-v20-body button.calendar-cell-v18 {
    appearance: none !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 145px !important;
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.04), transparent 40%),
        rgba(8,6,4,.975) !important;
    color: #f7f2e8 !important;
    box-shadow: none !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    overflow: hidden !important;
}

body.calendar-v20-body button.calendar-cell-v18:hover {
    transform: none !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.11), transparent 42%),
        rgba(15,10,7,.99) !important;
    box-shadow: inset 0 0 0 1px rgba(216,177,106,.25) !important;
}

body.calendar-v20-body button.calendar-cell-v18.is-outside {
    opacity: .27 !important;
}

body.calendar-v20-body button.calendar-cell-v18.is-today {
    box-shadow: inset 0 0 0 1px rgba(216,177,106,.62) !important;
}

.calendar-v20-page .calendar-cell-number {
    width: 31px !important;
    height: 31px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 0 9px !important;
    border-radius: 50% !important;
    color: rgba(247,242,232,.72) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.calendar-v20-page .calendar-cell-v18.is-today .calendar-cell-number {
    background: linear-gradient(180deg, #f3dfb0, #d9b26d) !important;
    color: #120e09 !important;
}

.calendar-v20-page .calendar-cell-events {
    display: grid !important;
    gap: 5px !important;
}

.calendar-v20-page .calendar-event-chip {
    min-width: 0;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 7px !important;
    border-left: 2px solid rgba(216,177,106,.72) !important;
    background: rgba(216,177,106,.075) !important;
    color: rgba(247,242,232,.78) !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
}

.calendar-v20-page .calendar-event-chip span {
    flex: 0 0 auto;
    color: #d9b26d;
    font-size: 8px;
}

.calendar-v20-page .calendar-event-chip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-v20-page .calendar-more-events {
    padding: 2px 7px;
    color: rgba(216,177,106,.60);
    font-size: 9px;
}

.calendar-v20-side {
    min-width: 0;
    min-height: 620px;
    padding: 25px;
    background:
        radial-gradient(circle at 50% 0%, rgba(216,177,106,.045), transparent 30%),
        rgba(6,5,4,.70);
}

.calendar-v20-side-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(216,177,106,.12);
}

.calendar-v20-side-head .section-kicker {
    margin-bottom: 6px;
}

.calendar-v20-side-head h3 {
    margin: 0;
    color: #f0d7a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.calendar-v20-side-head > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(216,177,106,.20);
    border-radius: 50%;
    color: #d9b26d;
    font-size: 11px;
    font-weight: 900;
}

.calendar-v20-side .calendar-event-list {
    display: grid !important;
}

.calendar-v20-side .calendar-list-event {
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 13px !important;
    align-items: start;
    padding: 19px 0 !important;
    border-bottom: 1px solid rgba(216,177,106,.09) !important;
}

.calendar-v20-side .calendar-list-date {
    display: grid;
    gap: 4px;
}

.calendar-v20-side .calendar-list-date strong {
    color: #d9b26d;
    font-size: 10px;
    text-transform: capitalize;
}

.calendar-v20-side .calendar-list-date span {
    color: rgba(247,242,232,.40);
    font-size: 10px;
}

.calendar-v20-side .calendar-list-content h4 {
    margin: 0 0 6px;
    color: #f4dfb2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}

.calendar-v20-side .calendar-list-content p {
    margin: 0 0 7px;
    color: rgba(247,242,232,.54);
    font-size: 11px;
    line-height: 1.6;
}

.calendar-v20-side .calendar-event-meta {
    color: rgba(247,242,232,.28);
    font-size: 9px;
}

/* Delete button must also follow the site's dark/gold secondary action. */
body.calendar-v20-body button.calendar-delete-event {
    grid-column: 2;
    justify-self: start;
    appearance: none !important;
    width: auto !important;
    min-height: 0 !important;
    margin-top: 1px !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(216,177,106,.16) !important;
    border-radius: 999px !important;
    background: rgba(216,177,106,.04) !important;
    color: rgba(247,242,232,.48) !important;
    box-shadow: none !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
}

body.calendar-v20-body button.calendar-delete-event:hover {
    transform: none !important;
    color: #f1d08d !important;
    border-color: rgba(216,177,106,.30) !important;
    background: rgba(216,177,106,.08) !important;
}

.calendar-v20-side .calendar-loading,
.calendar-v20-side .calendar-api-error,
.calendar-v20-side .calendar-empty-v18 {
    padding: 34px 2px;
    color: rgba(247,242,232,.46);
    line-height: 1.7;
}

.calendar-v20-side .calendar-empty-v18 h4 {
    margin: 10px 0 6px;
    color: #e8d4aa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.calendar-v20-side .calendar-empty-v18 p {
    margin: 0;
    font-size: 11px;
}

/* Modal: same ritual look; suppress global white button styling. */
.calendar-v20-modal .calendar-modal-card {
    border-radius: 18px;
}

body.calendar-v20-body .calendar-modal-close {
    appearance: none !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 1px solid rgba(216,177,106,.18) !important;
    border-radius: 50% !important;
    background: rgba(216,177,106,.05) !important;
    color: #e7c77f !important;
    box-shadow: none !important;
    font-size: 22px !important;
    letter-spacing: 0 !important;
}

body.calendar-v20-body .calendar-event-form input,
body.calendar-v20-body .calendar-event-form textarea {
    border-color: rgba(216,177,106,.18);
    background: rgba(255,255,255,.03);
}

body.calendar-v20-body button.calendar-v20-submit {
    width: 100% !important;
    margin-top: 5px !important;
}

/* Responsive */
@media (max-width: 1180px) {
    .calendar-v20-toolbar {
        grid-template-columns: auto 1fr;
    }

    .calendar-v20-month {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .calendar-v20-toolbar > .calendar-v20-nav {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .calendar-v20-actions {
        grid-column: 2;
        grid-row: 2;
    }

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

    .calendar-v20-surface {
        border-right: 0;
        border-bottom: 1px solid rgba(216,177,106,.13);
    }

    .calendar-v20-side {
        min-height: 0;
    }
}

@media (max-width: 780px) {
    .calendar-v20-section {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 80px;
    }

    .calendar-v20-toolbar {
        min-height: 0;
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        padding: 17px 10px;
    }

    .calendar-v20-month {
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: 0;
    }

    .calendar-v20-toolbar > .calendar-v20-nav {
        grid-column: 1;
        grid-row: 2;
    }

    .calendar-v20-actions {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-content: flex-end;
    }

    body.calendar-v20-body button.calendar-v20-quiet {
        display: none !important;
    }

    body.calendar-v20-body button.calendar-v20-nav {
        width: 43px !important;
        height: 43px !important;
        min-height: 43px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    body.calendar-v20-body button.calendar-v20-nav span:not([aria-hidden="true"]) {
        display: none;
    }

    body.calendar-v20-body button.calendar-v20-add {
        height: 43px !important;
        min-height: 43px !important;
        padding: 0 14px !important;
    }

    .calendar-v20-month h2 {
        font-size: 28px;
    }

    .calendar-v20-page .calendar-weekdays > div {
        min-height: 36px;
        padding: 6px 1px !important;
        font-size: 7px !important;
        letter-spacing: .07em !important;
    }

    body.calendar-v20-body button.calendar-cell-v18 {
        min-height: 88px !important;
        padding: 6px 4px !important;
    }

    .calendar-v20-page .calendar-cell-number {
        width: 25px !important;
        height: 25px !important;
        margin-bottom: 4px !important;
        font-size: 10px !important;
    }

    .calendar-v20-page .calendar-event-chip {
        padding: 3px !important;
        font-size: 7px !important;
        border-left-width: 1px !important;
    }

    .calendar-v20-page .calendar-event-chip span {
        display: none;
    }

    .calendar-v20-side {
        padding: 18px;
    }

    .calendar-v20-side .calendar-list-event {
        grid-template-columns: 68px minmax(0, 1fr) !important;
    }
}


/* ==========================================================
   V21 - Calendar navigation + upcoming events
   ========================================================== */

.calendar-v21-toolbar {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 23px 28px;
    border-bottom: 1px solid rgba(216,177,106,.14);
}

.calendar-v21-month-nav {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 150px minmax(250px, 420px) 150px;
    align-items: center;
    gap: 18px;
    justify-content: start;
}

.calendar-v21-month {
    min-width: 0;
}

body.calendar-v20-body button.calendar-v21-month-button {
    width: 150px !important;
    min-width: 150px !important;
    justify-content: center !important;
}

.calendar-v21-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.calendar-v21-side-head {
    align-items: flex-start;
}

.calendar-v21-side-head h3 {
    max-width: 235px;
    line-height: 1.05;
}

@media (max-width: 1180px) {
    .calendar-v21-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .calendar-v21-month-nav {
        width: 100%;
        grid-template-columns: 140px minmax(220px, 1fr) 140px;
        justify-content: stretch;
    }

    body.calendar-v20-body button.calendar-v21-month-button {
        width: 140px !important;
        min-width: 140px !important;
    }

    .calendar-v21-actions {
        justify-content: center;
    }
}

@media (max-width: 780px) {
    .calendar-v21-toolbar {
        padding: 16px 9px;
        gap: 12px;
    }

    .calendar-v21-month-nav {
        grid-template-columns: 43px minmax(0, 1fr) 43px;
        gap: 7px;
    }

    body.calendar-v20-body button.calendar-v21-month-button {
        width: 43px !important;
        min-width: 43px !important;
        height: 43px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    body.calendar-v20-body button.calendar-v21-month-button span:not([aria-hidden="true"]) {
        display: none;
    }

    .calendar-v21-actions {
        justify-content: center;
    }

    .calendar-v21-side-head h3 {
        max-width: none;
        font-size: 27px;
    }
}


/* ==========================================================
   V22 - Member card nameplate fit
   Makes long names fit the gold plate much better.
   ========================================================== */

.layer-nameplate {
    width: 88%;
}

.layer-name {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        0.2% 13.8% 2.2%;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    color: #f4d48f;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: .9;
    text-transform: uppercase;
    text-shadow:
        0 1px 0 rgba(0,0,0,.55),
        0 0 18px rgba(216,177,106,.11);
}

.layer-name.name-short {
    font-size: clamp(46px, 5.3vw, 66px);
    letter-spacing: 0.055em;
}

.layer-name.name-medium {
    font-size: clamp(40px, 4.7vw, 56px);
    letter-spacing: 0.042em;
}

.layer-name.name-long {
    font-size: clamp(33px, 3.95vw, 47px);
    letter-spacing: 0.030em;
}

.layer-name.name-xlong {
    font-size: clamp(28px, 3.25vw, 40px);
    letter-spacing: 0.020em;
}

.layer-name.name-xxlong {
    font-size: clamp(24px, 2.85vw, 34px);
    letter-spacing: 0.012em;
}

@media (max-width: 780px) {
    .layer-nameplate {
        width: 89%;
    }

    .layer-name {
        padding-left: 13.5%;
        padding-right: 13.5%;
        padding-bottom: 2.4%;
    }

    .layer-name.name-short { font-size: 47px; }
    .layer-name.name-medium { font-size: 41px; }
    .layer-name.name-long { font-size: 34px; }
    .layer-name.name-xlong { font-size: 29px; }
    .layer-name.name-xxlong { font-size: 25px; }
}


/* ==========================================================
   V23 - Member card nameplate micro-fix
   Tightens the visual safe area so names stay fully inside
   the gold plaque.
   ========================================================== */

.layer-name {
    padding:
        0.4% 16.6% 2.6%;
}

.layer-name.name-short {
    font-size: clamp(43px, 4.95vw, 61px);
    letter-spacing: 0.045em;
}

.layer-name.name-medium {
    font-size: clamp(36px, 4.2vw, 50px);
    letter-spacing: 0.030em;
}

.layer-name.name-long {
    font-size: clamp(29px, 3.35vw, 38px);
    letter-spacing: 0.012em;
}

.layer-name.name-xlong {
    font-size: clamp(25px, 2.95vw, 33px);
    letter-spacing: 0.008em;
}

.layer-name.name-xxlong {
    font-size: clamp(21px, 2.5vw, 28px);
    letter-spacing: 0.004em;
}

@media (max-width: 780px) {
    .layer-name {
        padding-left: 16.4%;
        padding-right: 16.4%;
        padding-bottom: 2.9%;
    }

    .layer-name.name-short { font-size: 44px; }
    .layer-name.name-medium { font-size: 37px; }
    .layer-name.name-long { font-size: 31px; }
    .layer-name.name-xlong { font-size: 26px; }
    .layer-name.name-xxlong { font-size: 22px; }
}


/* V24 - move member-card name slightly lower inside the plaque */
.layer-name {
    transform: translateY(3%);
}

@media (max-width: 780px) {
    .layer-name {
        transform: translateY(3%);
    }
}
