/* =========================================================
   Krystal Démon Slayer — global stylesheet
   --------------------------------------------------------
   Design notes:
   - Glassmorphism card centered on a fixed full-page background.
   - Modern, fluid, but discreet animations to keep the
     Demon Slayer aesthetic clean and elegant.
   - Fully responsive (mobile-first friendly).
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
    --color-bg: #0b0710;
    --color-text: #f5f1ea;
    --color-muted: rgba(245, 241, 234, 0.78);

    /* Accent inspired by Demon Slayer (deep crimson + ember gold) */
    --color-accent: #d4203a;
    --color-accent-2: #f0a020;

    /* Glass surface */
    --glass-bg: rgba(20, 14, 28, 0.42);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    --glass-blur: 18px;

    --radius-lg: 24px;
    --radius-pill: 999px;

    --transition-base: 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
    /* Smooth custom easing reused for hover/interactive transitions */
    --ease-fluid: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);

    /* Background rules requested in the brief */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* strictly fixed / does not scroll */

    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* On touch devices background-attachment: fixed is unreliable.
   Fall back to a fixed full-screen pseudo-layer so the bg stays static. */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
    }
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: inherit;
        background-attachment: scroll;
    }
}

img {
    max-width: 100%;
    display: block;
}

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

/* ---------- Layout: hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
}

/* ---------- Glassmorphism card ---------- */
.glass-card {
    width: 100%;
    max-width: 720px;
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
    text-align: center;

    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);

    /* The glassmorphism blur */
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);

    position: relative;
    overflow: hidden;

    /* Entry animation */
    animation: card-in 900ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Subtle gradient sheen on the card border */
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        140deg,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0) 40%,
        rgba(212, 32, 58, 0.35) 100%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ---------- Logo ---------- */
.logo {
    width: clamp(96px, 16vw, 140px);
    height: auto;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 6px 18px rgba(212, 32, 58, 0.45));
    animation:
        fade-up 900ms 120ms cubic-bezier(0.22, 0.61, 0.36, 1) both,
        breathing 6s ease-in-out 1.2s infinite;
}

/* ---------- Typography ---------- */
.title {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    letter-spacing: 0.02em;
    margin: 0 0 0.75rem;
    background: linear-gradient(180deg, #fff 0%, #f1d9b5 60%, #d4203a 130%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    animation: fade-up 900ms 220ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.welcome {
    margin: 0 auto 1.75rem;
    max-width: 52ch;
    color: var(--color-muted);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    animation: fade-up 900ms 320ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ---------- Primary actions ---------- */
.primary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
    animation: fade-up 900ms 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Small separator between the info/guide actions and the
   standalone Boutique button. Matches the divider style used
   around the "Réseaux sociaux" title. */
.primary-actions-separator {
    width: 36px;
    height: 1px;
    margin: 0.25rem auto 1.25rem;
    border: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    animation: fade-up 900ms 540ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.primary-actions-boutique {
    animation-delay: 600ms;
}

.btn {
    --btn-bg: rgba(255, 255, 255, 0.08);
    --btn-border: rgba(255, 255, 255, 0.22);
    --btn-glow: rgba(212, 32, 58, 0.55);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.85rem 1.4rem;
    min-width: 220px;

    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text);

    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    cursor: pointer;
    will-change: transform, opacity;
    transition:
        transform 0.3s var(--ease-fluid),
        box-shadow 0.3s var(--ease-fluid),
        background 0.3s var(--ease-fluid),
        border-color 0.3s var(--ease-fluid);
}

.btn-primary {
    background:
        linear-gradient(180deg, rgba(212, 32, 58, 0.85), rgba(140, 18, 36, 0.85));
    border-color: rgba(255, 200, 200, 0.35);
    box-shadow:
        0 6px 18px rgba(212, 32, 58, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 0 28px var(--btn-glow);
    outline: none;
}

.btn:active {
    transform: translateY(0) scale(0.99);
}

/* ---------- Social Networks ---------- */
.socials {
    margin-top: 0.5rem;
    animation: fade-up 900ms 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.socials-title {
    font-family: "Cinzel", serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin: 0 0 1rem;
    position: relative;
}

.socials-title::before,
.socials-title::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 36px;
    height: 1px;
    margin: 0 0.75rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.socials-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;

    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text);

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    will-change: transform, opacity;
    transition:
        transform 0.3s var(--ease-fluid),
        background 0.3s var(--ease-fluid),
        border-color 0.3s var(--ease-fluid),
        box-shadow 0.3s var(--ease-fluid);
}

.pill svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pill:hover,
.pill:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    outline: none;
}

/* Brand-tinted glow on hover */
.pill-tiktok:hover    { box-shadow: 0 8px 22px rgba(0, 242, 234, 0.25), 0 0 0 1px rgba(255, 0, 80, 0.25); }
.pill-youtube:hover   { box-shadow: 0 8px 22px rgba(255, 0, 0, 0.30); }
.pill-instagram:hover { box-shadow: 0 8px 22px rgba(225, 48, 108, 0.30); }
.pill-discord:hover   { box-shadow: 0 8px 22px rgba(88, 101, 242, 0.35); }

/* ---------- Ambient layer (embers / petals) ---------- */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.ambient .ember {
    position: absolute;
    bottom: -20px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd27a 0%, rgba(212, 32, 58, 0.6) 60%, transparent 70%);
    opacity: 0;
    animation-name: float-up;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
    filter: blur(0.4px);
}

/* Make sure the card stays above the ambient layer */
.hero { position: relative; z-index: 1; }

/* ---------- Keyframes ---------- */
@keyframes card-in {
    0%   { opacity: 0; transform: translateY(24px) scale(0.985); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0)    scale(1);     filter: blur(0); }
}

@keyframes fade-up {
    0%   { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* "Breathing" effect inspired by the anime's breathing techniques */
@keyframes breathing {
    0%, 100% { transform: scale(1);    filter: drop-shadow(0 6px 18px rgba(212, 32, 58, 0.45)); }
    50%      { transform: scale(1.04); filter: drop-shadow(0 10px 26px rgba(240, 160, 32, 0.55)); }
}

@keyframes float-up {
    0%   { transform: translate3d(0, 0, 0)        scale(0.6); opacity: 0; }
    10%  { opacity: 0.9; }
    100% { transform: translate3d(var(--drift, 40px), -110vh, 0) scale(1.1); opacity: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .ambient { display: none; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
    .btn { min-width: 100%; }
    .socials-title::before,
    .socials-title::after { width: 18px; margin: 0 0.4rem; }
}

/* =========================================================
   Global navigation bar (glassmorphism)
   ========================================================= */
.site-nav {
    position: fixed;
    top: clamp(0.75rem, 2vw, 1.25rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;

    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;

    background: rgba(20, 14, 28, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);

    animation: fade-down 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
    max-width: calc(100% - 1.5rem);
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav .nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    font-family: "Cinzel", serif;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    color: var(--color-text);
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.site-nav .nav-brand img {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 6px rgba(212, 32, 58, 0.55));
}

.site-nav .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-muted);
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    white-space: nowrap;
    will-change: transform, opacity;
    transition:
        color 0.3s var(--ease-fluid),
        background 0.3s var(--ease-fluid),
        border-color 0.3s var(--ease-fluid),
        box-shadow 0.3s var(--ease-fluid),
        transform 0.3s var(--ease-fluid);
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.site-nav .nav-link.is-active {
    color: var(--color-text);
    background: linear-gradient(180deg, rgba(212, 32, 58, 0.55), rgba(140, 18, 36, 0.55));
    border-color: rgba(255, 200, 200, 0.35);
    box-shadow:
        0 4px 14px rgba(212, 32, 58, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Push hero down so the floating nav doesn't overlap the card on small screens */
.has-nav .hero {
    padding-top: clamp(5rem, 10vh, 7rem);
}

/* ---------- Auth slot (top-right of the nav pill) ---------- */
.site-nav .nav-auth {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav .nav-auth-login {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 200, 200, 0.35);
    background: linear-gradient(180deg, rgba(212, 32, 58, 0.55), rgba(140, 18, 36, 0.55));
    box-shadow:
        0 4px 14px rgba(212, 32, 58, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.3s var(--ease-fluid),
        box-shadow 0.3s var(--ease-fluid),
        transform 0.3s var(--ease-fluid);
}

.site-nav .nav-auth-login:hover,
.site-nav .nav-auth-login:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        0 6px 18px rgba(212, 32, 58, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    outline: none;
}

.site-nav .nav-auth-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: 0 0 auto;
}

.site-nav .nav-auth-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.55rem 0.3rem 0.35rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    max-width: 280px;
}

.site-nav .nav-auth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.site-nav .nav-auth-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav .nav-auth-logout {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-muted);
    font: inherit;
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition:
        color 0.3s var(--ease-fluid),
        background 0.3s var(--ease-fluid),
        border-color 0.3s var(--ease-fluid);
}

.site-nav .nav-auth-logout:hover,
.site-nav .nav-auth-logout:focus-visible {
    color: var(--color-text);
    background: rgba(212, 32, 58, 0.35);
    border-color: rgba(255, 200, 200, 0.35);
    outline: none;
}

.site-nav .nav-auth-logout:disabled {
    opacity: 0.6;
    cursor: progress;
}

@media (max-width: 560px) {
    .site-nav .nav-brand span { display: none; }
    .site-nav .nav-link { padding: 0.45rem 0.7rem; font-size: 0.82rem; }

    .site-nav .nav-auth { margin-left: 0.25rem; padding-left: 0.35rem; }
    .site-nav .nav-auth-login { padding: 0.45rem 0.7rem; font-size: 0.82rem; }
    .site-nav .nav-auth-login .nav-auth-label { display: none; }
    .site-nav .nav-auth-name { max-width: 90px; font-size: 0.78rem; }
    .site-nav .nav-auth-logout { padding: 0.25rem 0.5rem; font-size: 0.72rem; }
}

@keyframes fade-down {
    0%   { opacity: 0; transform: translate(-50%, -14px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Inner pages (information / guide) ---------- */
.page-content {
    max-width: 760px;
    text-align: left;
}

.page-content h1 {
    font-family: "Cinzel", serif;
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin: 0 0 1rem;
}

.page-content h2 {
    font-family: "Cinzel", serif;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    margin: 1.5rem 0 0.5rem;
    color: #f1d9b5;
}

.page-content p,
.page-content li {
    color: var(--color-muted);
    font-size: 1rem;
}

.page-content ul {
    padding-left: 1.25rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.75rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    will-change: transform, opacity;
    transition:
        transform 0.3s var(--ease-fluid),
        background 0.3s var(--ease-fluid);
}

.back-link:hover {
    transform: translateX(-3px);
    background: rgba(255, 255, 255, 0.14);
}

/* =========================================================
   Status page — Online/Offline indicator + stats
   ========================================================= */
.status-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.status-tile {
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    text-align: left;
    /* Lightweight blur so scrolling stays buttery-smooth on many tiles. */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    will-change: transform, opacity;
    animation: fade-up 800ms var(--ease-fluid) both;
}

.status-tile .tile-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
}

.status-tile .tile-value {
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    color: var(--color-text);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 500;
    letter-spacing: 0.04em;
    will-change: transform, opacity;
    transition:
        background 0.3s var(--ease-fluid),
        border-color 0.3s var(--ease-fluid),
        box-shadow 0.3s var(--ease-fluid);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #888;
    box-shadow: 0 0 0 0 rgba(136, 136, 136, 0.6);
    flex-shrink: 0;
    will-change: transform, opacity;
}

.status-indicator.is-loading {
    border-color: rgba(255, 255, 255, 0.22);
}
.status-indicator.is-loading .status-dot {
    background: #f0a020;
    animation: pulse-loading 1.6s ease-out infinite;
}

.status-indicator.is-online {
    border-color: rgba(46, 204, 113, 0.45);
    box-shadow: 0 0 22px rgba(46, 204, 113, 0.18);
}
.status-indicator.is-online .status-dot {
    background: #2ecc71;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse-online 2.2s ease-out infinite;
}

.status-indicator.is-offline {
    border-color: rgba(212, 32, 58, 0.45);
    box-shadow: 0 0 22px rgba(212, 32, 58, 0.18);
}
.status-indicator.is-offline .status-dot {
    background: #d4203a;
    animation: pulse-offline 2.2s ease-out infinite;
}

.status-meta {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    opacity: 0.85;
}

@keyframes pulse-online {
    0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.65); }
    70%  { box-shadow: 0 0 0 14px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@keyframes pulse-offline {
    0%   { box-shadow: 0 0 0 0 rgba(212, 32, 58, 0.65); }
    70%  { box-shadow: 0 0 0 14px rgba(212, 32, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 32, 58, 0); }
}

@keyframes pulse-loading {
    0%, 100% { transform: scale(1);   opacity: 0.85; }
    50%      { transform: scale(1.2); opacity: 1; }
}

/* =========================================================
   Powers page — Breathing styles / Blood Demon Arts cards
   ========================================================= */
.page-content.is-wide {
    max-width: 1100px;
}

.powers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
    margin: 1.25rem 0 1rem;
}

.power-card {
    --power-color: #ffffff;
    --power-glow: rgba(255, 255, 255, 0.35);

    position: relative;
    padding: 1.1rem 1.15rem 1.25rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    /* Lighter blur than the main glass card to keep many cards smooth. */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    will-change: transform, opacity;
    transition:
        transform 0.3s var(--ease-fluid),
        border-color 0.3s var(--ease-fluid),
        box-shadow 0.3s var(--ease-fluid),
        background 0.3s var(--ease-fluid);
    animation: fade-up 800ms var(--ease-fluid) both;
}

.power-card::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(
        circle at 50% 60%,
        var(--power-glow) 0%,
        transparent 55%
    );
    opacity: 0;
    transform: scale(0.6);
    will-change: transform, opacity;
    transition:
        opacity 0.6s var(--ease-fluid),
        transform 0.8s var(--ease-fluid);
    pointer-events: none;
    z-index: -1;
}

.power-card:hover,
.power-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--power-color);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4), 0 0 22px var(--power-glow);
}

.power-card:hover::after,
.power-card:focus-within::after {
    opacity: 1;
    transform: scale(1);
}

.power-card .power-kind {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--power-color);
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.power-card .power-name {
    font-family: "Cinzel", serif;
    font-size: 1.15rem;
    margin: 0 0 0.45rem;
    color: var(--color-text);
}

.power-card .power-desc {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

/* Themed accents per power. Overrides the CSS variables only. */
/* --- Souffles (Breathing Styles) --- */
.power-card.theme-sound   { --power-color: #22d3ee; --power-glow: rgba(34, 211, 238, 0.35); }   /* Cyan */
.power-card.theme-love    { --power-color: #ff6fb5; --power-glow: rgba(255, 111, 181, 0.35); }  /* Pink */
.power-card.theme-flame   { --power-color: #ff5a2a; --power-glow: rgba(255, 90, 42, 0.40); }    /* Orange/Red */
.power-card.theme-thunder { --power-color: #f7d34a; --power-glow: rgba(247, 211, 74, 0.35); }   /* Yellow/Gold */
.power-card.theme-water   { --power-color: #4fa9ff; --power-glow: rgba(79, 169, 255, 0.35); }   /* Blue */
.power-card.theme-mist    { --power-color: #c2c8d0; --power-glow: rgba(194, 200, 208, 0.30); }  /* Grey/Silver */

/* --- Pouvoirs sanguinaires (Blood Demon Arts) --- */
.power-card.theme-resonance { --power-color: #2a4a8c; --power-glow: rgba(42, 74, 140, 0.45); }  /* Dark Blue */
.power-card.theme-darkness  { --power-color: #4a2a6a; --power-glow: rgba(74, 42, 106, 0.55); }  /* Dark Purple / Black */
.power-card.theme-ember     { --power-color: #7a1a22; --power-glow: rgba(122, 26, 34, 0.50); }  /* Dark Red / Maroon */
.power-card.theme-ice       { --power-color: #9ad8ff; --power-glow: rgba(154, 216, 255, 0.35); }/* Light Blue */
.power-card.theme-acid      { --power-color: #39ff7a; --power-glow: rgba(57, 255, 122, 0.40); } /* Bright Green */
.power-card.theme-blood     { --power-color: #ff2540; --power-glow: rgba(255, 37, 64, 0.45); }  /* Bright Red */


/* =========================================================
   Boutique page — placeholder shop cards
   ========================================================= */
.boutique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
    margin: 1.25rem 0 1rem;
}

.shop-card {
    position: relative;
    padding: 1.2rem 1.2rem 1.4rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow: hidden;
    will-change: transform, opacity;
    transition:
        transform 0.3s var(--ease-fluid),
        border-color 0.3s var(--ease-fluid),
        box-shadow 0.3s var(--ease-fluid);
    animation: fade-up 800ms var(--ease-fluid) both;
}

.shop-card:hover,
.shop-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(255, 200, 200, 0.35);
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.4),
        0 0 22px rgba(212, 32, 58, 0.35);
}

.shop-card .shop-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent-2);
    margin-bottom: 0.5rem;
    padding: 0.15rem 0.55rem;
    border: 1px solid rgba(240, 160, 32, 0.45);
    border-radius: var(--radius-pill);
}

.shop-card .shop-name {
    font-family: "Cinzel", serif;
    font-size: 1.2rem;
    margin: 0 0 0.45rem;
    color: var(--color-text);
}

.shop-card .shop-desc {
    margin: 0 0 0.85rem;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.shop-card .shop-price {
    display: inline-block;
    font-family: "Cinzel", serif;
    font-size: 0.95rem;
    color: #f1d9b5;
    letter-spacing: 0.06em;
}

/* =========================================================
   Boutique — Prometheus rank cards (Diamond / Ruby / Saphir)
   ========================================================= */
.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin: 1.5rem 0 1.25rem;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-muted);
    font-style: italic;
    margin: 1rem 0;
}

.rank-card {
    --rank-color: #cdd9ff;
    --rank-glow: rgba(150, 180, 255, 0.35);

    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.3rem 1.5rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    overflow: hidden;
    will-change: transform, opacity;
    transition:
        transform 0.35s var(--ease-fluid),
        border-color 0.35s var(--ease-fluid),
        box-shadow 0.35s var(--ease-fluid);
    animation: fade-up 800ms var(--ease-fluid) both;
}

.rank-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 80% at 50% 0%, var(--rank-glow), transparent 60%);
    opacity: 0.55;
    transition: opacity 0.4s var(--ease-fluid);
}

.rank-card:hover,
.rank-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--rank-color);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 26px var(--rank-glow);
}

.rank-card:hover::before,
.rank-card:focus-within::before {
    opacity: 0.85;
}

/* Theme accents — kept aligned with the rank gemstones. */
.rank-card.theme-diamond { --rank-color: #b8e3ff; --rank-glow: rgba(184, 227, 255, 0.40); }
.rank-card.theme-ruby    { --rank-color: #ff5870; --rank-glow: rgba(255, 88, 112, 0.45); }
.rank-card.theme-saphir  { --rank-color: #6f8cff; --rank-glow: rgba(111, 140, 255, 0.45); }

.rank-card.is-featured {
    border-color: rgba(255, 200, 200, 0.30);
}

.rank-ribbon {
    position: absolute;
    top: 0.9rem;
    right: -2.4rem;
    transform: rotate(35deg);
    background: linear-gradient(180deg, var(--color-accent), #8c1224);
    color: #fff;
    font-family: "Cinzel", serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.25rem 2.5rem;
    box-shadow: 0 6px 18px rgba(212, 32, 58, 0.45);
    pointer-events: none;
}

.rank-tag {
    position: relative;
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rank-color);
    margin-bottom: 0.6rem;
    padding: 0.18rem 0.65rem;
    border: 1px solid var(--rank-color);
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.18);
}

.rank-name {
    position: relative;
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
    color: var(--color-text);
}

.rank-tagline {
    position: relative;
    margin: 0 0 1rem;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

/* Billing toggle (Mensuel / À vie) */
.rank-billing {
    position: relative;
    display: inline-flex;
    padding: 4px;
    margin-bottom: 0.9rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.rank-billing-opt {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-family: inherit;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition:
        background 0.3s var(--ease-fluid),
        color 0.3s var(--ease-fluid);
}

.rank-billing-opt:hover:not([disabled]):not(.is-active) {
    color: var(--color-text);
}

.rank-billing-opt.is-active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    color: var(--color-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rank-billing-opt[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.rank-price-wrap {
    position: relative;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.rank-price {
    font-family: "Cinzel", serif;
    font-size: 2rem;
    color: var(--color-text);
    line-height: 1;
}

.rank-price-suffix {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    text-transform: lowercase;
}

.rank-benefits {
    position: relative;
    list-style: none;
    margin: 0 0 1.3rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.rank-benefits li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--color-text);
    font-size: 0.92rem;
}

.rank-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.7rem;
    height: 0.7rem;
    transform: rotate(45deg);
    background: var(--rank-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--rank-glow);
}

.rank-cta {
    position: relative;
    align-self: stretch;
    min-width: 0;
    width: 100%;
    margin-top: auto;
    text-decoration: none;
}

.rank-cta.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.rank-note {
    position: relative;
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.4;
}

.shop-footnote {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    text-align: center;
}

.shop-footnote a {
    color: var(--color-accent-2);
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 160, 32, 0.4);
    transition: color 0.25s var(--ease-fluid), border-color 0.25s var(--ease-fluid);
}

.shop-footnote a:hover,
.shop-footnote a:focus-visible {
    color: #ffd47a;
    border-color: #ffd47a;
}

/* =========================================================
   Shop — Steam login banner
   ========================================================= */

.shop-auth-banner {
    margin: 1.25rem 0 1.75rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(120, 160, 240, 0.28);
    background: linear-gradient(
        135deg,
        rgba(30, 50, 100, 0.45),
        rgba(20, 25, 55, 0.55)
    );
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.shop-auth-banner__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

.shop-auth-banner__body.is-hidden {
    display: none;
}

.shop-auth-banner__title {
    margin: 0;
    font-family: var(--font-display, "Cinzel", serif);
    font-size: 1.05rem;
    color: #e8ecff;
}

.shop-auth-banner__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.shop-auth-banner__text code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
    padding: 0.05rem 0.35rem;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.35);
    color: #cfd6ff;
}

.shop-auth-banner__cta {
    align-self: flex-start;
}

.rank-cta.is-locked {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

.rank-cta.is-locked::after {
    content: " 🔒";
}

/* =========================================================
   Actualités (News) + PatchNot — dynamic feed cards
   ========================================================= */
.news-list,
.patch-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin: 1.25rem 0 1rem;
}

.news-empty {
    text-align: center;
    color: var(--color-muted);
    font-style: italic;
    padding: 1.5rem 0.5rem;
    margin: 0;
}

.news-error {
    color: #ffb3bd;
}

.news-card,
.patch-card {
    position: relative;
    padding: 1.2rem 1.3rem 1.3rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow: hidden;
    will-change: transform, opacity;
    transition:
        transform 0.3s var(--ease-fluid),
        border-color 0.3s var(--ease-fluid),
        box-shadow 0.3s var(--ease-fluid);
    animation: fade-up 700ms var(--ease-fluid) both;
}

.news-card:hover,
.patch-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 200, 200, 0.3);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 0 18px rgba(212, 32, 58, 0.25);
}

.news-card-head,
.patch-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.news-card-title,
.patch-card-title {
    font-family: "Cinzel", serif;
    font-size: 1.2rem;
    margin: 0;
    color: var(--color-text);
}

.news-card-date,
.patch-card-date {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    text-transform: uppercase;
}

.news-card-media {
    margin: 0.4rem 0 0.85rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-height: 320px;
}

.news-card-media img {
    width: 100%;
    height: auto;
    display: block;
    will-change: transform;
    transition: transform 0.6s var(--ease-fluid);
}

.news-card:hover .news-card-media img {
    transform: scale(1.03);
}

.news-card-body,
.patch-card-body {
    margin: 0 0 0.6rem;
    color: var(--color-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.news-card-conclusion {
    margin: 0.4rem 0 0;
    color: #f1d9b5;
    font-size: 0.95rem;
}

.news-card-foot,
.patch-card-foot {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    letter-spacing: 0.04em;
    opacity: 0.85;
}
