:root {
    /* Colors */
    --light-green: #074311;
    --dark-green: #012b07;
    --card-bg: rgba(5, 15, 5, 0.85); /* Much darker for cards */
    --sidebar-bg: rgba(2, 12, 5, 0.95);
    --text-main: #f0f0f0;
    --text-accent: #8bc34a; /* Lime green */
    
    /* Fonts */
    --font-heading: 'Inter Tight', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base page styling and animated background treatment used across every page. */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-main);
    background-color: var(--dark-green);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body.lightbox-open {
    overflow: hidden;
}

body.lightbox-open .navbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.vault-open {
    overflow: hidden;
}

body.vault-open .navbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px);
}

.site-background {
    position: fixed;
    inset: -12%;
    pointer-events: none;
    z-index: 0;
    background-color: var(--dark-green);
    background-image:
        linear-gradient(45deg, rgba(9, 70, 22, 0.7) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(9, 70, 22, 0.7) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(9, 70, 22, 0.7) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(9, 70, 22, 0.7) 75%),
        radial-gradient(circle at top, rgba(122, 185, 84, 0.12), transparent 42%);
    background-size: 144px 144px, 144px 144px, 144px 144px, 144px 144px, auto;
    background-position: 0 0, 0 72px, 72px -72px, -72px 0, center;
    will-change: transform;
    transform: scale(1.08);
}

/* Dark vignette to keep the center readable over the busy background. */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 150px 0 150px -50px rgba(0, 20, 30, 0.85),
                inset -150px 0 150px -50px rgba(0, 20, 30, 0.85),
                inset 0 100px 100px -50px rgba(0, 20, 30, 0.8),
                inset 0 -100px 100px -50px rgba(0, 20, 30, 0.85);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 195, 74, 0.12), transparent 20%),
        radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.06), transparent 18%),
        radial-gradient(circle at 50% 80%, rgba(20, 120, 54, 0.16), transparent 24%);
    pointer-events: none;
    z-index: -2;
    animation: ambientFloat 18s ease-in-out infinite alternate;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
}

p {
    line-height: 1.7;
}

.markdown-content > :first-child {
    margin-top: 0;
}

.markdown-content > :last-child {
    margin-bottom: 0;
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol,
.markdown-content blockquote,
.markdown-content pre,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin: 0 0 1.1em;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 1.4em;
}

.markdown-content li + li {
    margin-top: 0.35em;
}

.markdown-content code {
    padding: 0.12em 0.4em;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.92em;
}

.markdown-content pre {
    padding: 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
}

.markdown-content pre code {
    padding: 0;
    background: transparent;
}

.markdown-content blockquote {
    margin-left: 0;
    padding-left: 16px;
    border-left: 3px solid rgba(139, 195, 74, 0.34);
    color: #d8e8c9;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Shared content width for all main pages. */
.main-content {
    max-width: 1000px; /* Wider cards */
    margin: 0 auto;
    padding: 120px 20px 80px 20px;
    min-height: calc(100vh - 120px);
    position: relative;
}

/* ---------------------------------
   Navbar
----------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.08) 100%);
    backdrop-filter: blur(12px);
    z-index: 1000;
    animation: slideDown 0.7s ease-out;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    gap: 40px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    margin-right: 6px;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.24);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.menu-toggle:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 195, 74, 0.45);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.logo img {
    width: 100px;
    height: 45px;
    object-fit: contain;
}

.desktop-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.desktop-nav {
    margin-left: auto;
}

.desktop-nav a {
    color: #cccccc;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #ffffff;
    text-decoration: none;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--text-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

.mobile-nav {
    display: none;
}

/* ---------------------------------
   Cards (Hero, Games, Contact)
----------------------------------- */
.card-glass {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 60px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    text-align: center;
    animation: fadeUp 0.7s ease both;
}

/* Vertical list used by the games landing page. */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 60px;
    align-items: center;
}

/* Shared structure for each game item: image on the left, content on the right. */
.game-card {
    background-color: rgba(0, 0, 0, 0.34);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.28);
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 220px;
    transform: translateY(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
    animation: fadeUp 0.7s ease both;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.35);
    background-color: rgba(0, 0, 0, 0.42);
}

.game-banner {
    width: 44%;
    margin: 0;
    padding: 0;
    display: block;
    flex-shrink: 0;
    position: relative;
}

.game-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.game-banner::after {
    content: "Click to play";
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 10px);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.game-card:hover .game-banner img {
    transform: scale(1.03);
}

.game-card:hover .game-banner::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.game-info {
    padding: 24px 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.game-desc {
    margin-bottom: 16px;
    font-size: 16px;
    color: #e0e0e0;
}

.game-extra-links {
    font-size: 15px;
    font-style: italic;
    color: #cccccc;
    margin-top: 0;
}

/* ---------------------------------
   Hero Section
----------------------------------- */
.hero-title {
    font-size: 56px;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero-text {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.news-callout {
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px auto 0;
    padding: 18px 22px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(139, 195, 74, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(2, 14, 5, 0.74);
    border: 1px solid rgba(139, 195, 74, 0.24);
    box-shadow: 0 16px 28px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.7s ease both, newsPulse 3.2s ease-in-out infinite;
}

.news-callout::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.12) 50%, transparent 76%);
    transform: translateX(-145%);
    animation: newsShimmer 4.8s ease-in-out infinite;
    pointer-events: none;
}

.news-callout-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(139, 195, 74, 0.18);
    color: #dff5c3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-callout-copy {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.news-callout-link {
    color: #b8ef65;
    font-weight: 800;
    text-decoration: none;
    position: relative;
}

.news-callout-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0.25);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.news-callout-link:hover {
    opacity: 1;
    text-decoration: none;
}

.news-callout-link:hover::after {
    transform: scaleX(1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-links-wide {
    gap: 20px;
    margin-top: 20px;
}

.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: var(--dark-green);
    border-radius: 50%;
    font-size: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(0,0,0,0.22);
}

.social-circle:hover {
    transform: translateY(-4px) scale(1.06);
    background-color: #e0e0e0;
    text-decoration: none;
}

.social-icon-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.section-intro {
    margin-bottom: 40px;
}

.section-cta {
    margin-top: 20px;
}

.music-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    margin-bottom: 60px;
}

/* Music cards reserve room for the Bandcamp embed plus outbound platform buttons. */
.music-card {
    background-color: rgba(0, 0, 0, 0.34);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.28);
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
    animation: fadeUp 0.7s ease both;
    box-sizing: border-box;
}

.music-embed-card {
    min-height: 0;
    padding: 18px;
    display: flex;
    justify-content: stretch;
    align-items: center;
    gap: 18px;
}

.music-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.35);
    background-color: rgba(0, 0, 0, 0.42);
}

.music-embed {
    display: block;
    width: 100% !important;
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
    height: 307px;
    border: 0;
    border-radius: 12px;
}

.music-embed-shell {
    width: 100%;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    flex: 1 1 auto;
}

.music-platforms {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.music-platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(139, 195, 74, 0.18);
    color: #f3f7ef;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.music-platform-btn:hover {
    transform: translateY(-2px);
    background: rgba(139, 195, 74, 0.14);
    border-color: rgba(139, 195, 74, 0.45);
    text-decoration: none;
    opacity: 1;
}

.btn-link {
    display: inline-block;
    color: var(--text-accent);
    font-weight: 600;
    margin-top: 15px;
}

.btn-link:hover {
    text-decoration: underline;
}

.instagram-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    animation: fadeUp 0.7s ease both;
}

.instagram-placeholder {
    padding: 40px 0;
    text-align: center;
    color: #333333;
}

.instagram-title {
    color: #333333;
}

.instagram-icon {
    font-size: 30px;
    color: #e1306c;
    margin-bottom: 10px;
}

.instagram-copy {
    color: #666666;
    margin-top: 10px;
}

.instagram-link {
    color: #e1306c;
    text-decoration: underline;
}

/* ---------------------------------
   Drawings Gallery
----------------------------------- */
.drawings-gallery {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 60px;
}

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

.drawing-card {
    background-color: rgba(0, 0, 0, 0.34);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.28);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
    animation: fadeUp 0.7s ease both;
}

.drawing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.35);
    background-color: rgba(0, 0, 0, 0.42);
}

.drawing-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.drawing-card-link:hover {
    text-decoration: none;
    opacity: 1;
}

.drawing-card-featured .drawing-card-link {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.drawing-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
    position: relative;
}

.drawing-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.drawing-media::after {
    content: "Click to enlarge";
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 10px);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.drawing-card:hover .drawing-media::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.drawing-copy {
    padding: 24px;
}

.drawing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-accent);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.drawing-title {
    margin-bottom: 10px;
    font-size: 24px;
}

.drawings-grid .drawing-title {
    font-size: 20px;
}

.drawing-caption {
    margin: 0;
    color: #d8ddd3;
    line-height: 1.65;
}

.drawing-card-featured .drawing-caption {
    font-size: 18px;
    line-height: 1.75;
}

.drawing-lightbox[hidden] {
    display: none;
}

.drawing-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}

.drawing-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(16px) saturate(0.9);
}

.drawing-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: rgba(4, 17, 7, 0.94);
    border: 1px solid rgba(139, 195, 74, 0.24);
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.35);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drawing-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.26);
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
}

.drawing-lightbox-media {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
}

.drawing-lightbox-media img {
    width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    display: block;
    background: rgba(0, 0, 0, 0.22);
}

.drawing-lightbox-copy {
    padding: 22px 8px 4px;
}

.drawing-lightbox-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    background: rgba(139, 195, 74, 0.14);
    border: 1px solid rgba(139, 195, 74, 0.34);
    color: #f7fbf2;
    font-weight: 600;
    text-decoration: none;
}

.drawing-lightbox-link:hover {
    opacity: 1;
    text-decoration: none;
    background: rgba(139, 195, 74, 0.22);
}

.vault-panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vh, 40px) 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
}

.vault-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(18px) saturate(0.9);
    pointer-events: none;
}

.vault-panel-card {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 48px));
    margin: 0;
    padding: 34px 28px 28px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(19, 68, 24, 0.2), rgba(255, 255, 255, 0.03)),
        rgba(2, 12, 5, 0.96);
    border: 1px solid rgba(139, 195, 74, 0.26);
    box-shadow: 0 26px 54px rgba(0,0,0,0.38);
    text-align: center;
    animation: fadeUp 0.35s ease both;
    max-height: none;
    box-sizing: border-box;
}

.vault-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.26);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.vault-panel-kicker {
    margin: 0 0 10px;
    color: #b8ef65;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.vault-panel-title {
    margin-bottom: 14px;
    font-size: clamp(32px, 5vw, 44px);
}

.vault-panel-image-trigger {
    display: block;
    width: 100%;
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.vault-panel-image-trigger::after {
    content: "Click to enlarge";
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(6px);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(3, 15, 6, 0.88);
    border: 1px solid rgba(139, 195, 74, 0.24);
    color: #f7fbf2;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.vault-panel-image {
    width: 100%;
    max-height: min(44vh, 520px);
    object-fit: contain;
    display: block;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 22px;
    margin: 0 auto 18px;
    box-shadow: 0 18px 34px rgba(0,0,0,0.24);
    transition: transform 0.24s ease;
}

.vault-panel-image-trigger:hover .vault-panel-image {
    transform: scale(1.01);
}

.vault-panel-image-trigger:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vault-panel-video {
    position: relative;
    width: 100%;
    margin: 0 auto 18px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
    box-shadow: 0 18px 34px rgba(0,0,0,0.24);
    aspect-ratio: 16 / 9;
}

.vault-panel-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.vault-panel-content {
    width: 100%;
    max-width: 670px;
    margin: 0 auto;
}

.vault-panel-empty {
    max-width: 480px;
    margin: 0 auto;
}

.vault-panel-empty-logo {
    width: clamp(88px, 18vw, 132px);
    height: auto;
    display: block;
    margin: 0 auto 18px;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.24));
}

.vault-panel-empty-copy {
    max-width: 420px;
}

.vault-panel-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(139, 195, 74, 0.14);
    border: 1px solid rgba(139, 195, 74, 0.3);
    color: #f4f9ee;
    font-weight: 700;
}

.vault-panel-countdown span {
    color: #b8ef65;
    min-width: 1.4ch;
    text-align: center;
}

.vault-panel-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.vault-panel-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(139, 195, 74, 0.12);
    border: 1px solid rgba(139, 195, 74, 0.2);
    color: #dff5c3;
    font-size: 13px;
    font-weight: 700;
}

.vault-panel-item-title {
    margin-bottom: 12px;
    font-size: 30px;
}

.vault-panel-copy {
    margin: 0;
    max-width: none;
    color: #edf4e7;
    word-break: break-word;
}

.vault-panel-copy-left {
    text-align: left;
}

.vault-panel-copy-center {
    text-align: center;
}

.vault-panel-copy-right {
    text-align: right;
}

.vault-panel-copy-justify {
    text-align: justify;
}

.vault-panel-copy > :first-child {
    margin-top: 0;
}

.vault-panel-copy > :last-child {
    margin-bottom: 0;
}

.vault-panel-copy p,
.vault-panel-copy ul,
.vault-panel-copy ol,
.vault-panel-copy blockquote,
.vault-panel-copy pre,
.vault-panel-copy h3,
.vault-panel-copy h4,
.vault-panel-copy h5,
.vault-panel-copy h6 {
    margin: 0 0 1.1em;
}

.vault-panel-copy ul,
.vault-panel-copy ol {
    padding-left: 1.4em;
}

.vault-panel-copy li + li {
    margin-top: 0.35em;
}

.vault-panel-copy code {
    padding: 0.12em 0.4em;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.92em;
}

.vault-panel-copy pre {
    padding: 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
}

.vault-panel-copy pre code {
    padding: 0;
    background: transparent;
}

.vault-panel-copy blockquote {
    margin-left: 0;
    padding-left: 16px;
    border-left: 3px solid rgba(139, 195, 74, 0.34);
    color: #d8e8c9;
}

.vault-panel-copy a {
    display: inline-block;
    margin: 0 2px;
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.18), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(139, 195, 74, 0.28);
    color: #c8ff79;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.vault-panel-copy a:hover {
    opacity: 1;
    text-decoration: none;
    color: #f7fbf2;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.28), rgba(255, 255, 255, 0.1));
    transform: translateY(-1px);
}

.vault-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    background: rgba(139, 195, 74, 0.14);
    border: 1px solid rgba(139, 195, 74, 0.34);
    color: #f7fbf2;
    font-weight: 600;
    text-decoration: none;
}

.vault-panel-link:hover {
    opacity: 1;
    text-decoration: none;
    background: rgba(139, 195, 74, 0.22);
}

.vault-notes {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.vault-notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.vault-notes-empty {
    margin: 0;
    color: #c7d3bf;
}

.vault-notes-note {
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(139, 195, 74, 0.1);
    border: 1px solid rgba(139, 195, 74, 0.22);
    color: #dff5c3;
    font-weight: 600;
}

.vault-note-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vault-note-item p {
    margin: 8px 0 0;
}

.vault-note-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: #dff5c3;
    font-size: 14px;
}

.vault-note-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vault-note-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    font: inherit;
}

.vault-note-input::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.vault-note-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ---------------------------------
   Footer
----------------------------------- */
.site-footer {
    position: relative;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    margin-top: auto;
}

.footer-links {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links a {
    color: var(--text-accent);
}

.separator {
    margin: 0 15px;
    color: var(--text-main);
}

.footer-copyright {
    font-size: 15px;
    color: #aaaaaa;
}

.hero-section {
    animation-delay: 0.08s;
}

.games-list .game-card:nth-child(1),
.music-list .music-card:nth-child(1) {
    animation-delay: 0.10s;
}

.games-list .game-card:nth-child(2),
.music-list .music-card:nth-child(2) {
    animation-delay: 0.16s;
}

.games-list .game-card:nth-child(3),
.music-list .music-card:nth-child(3) {
    animation-delay: 0.22s;
}

.games-list .game-card:nth-child(4),
.music-list .music-card:nth-child(4) {
    animation-delay: 0.28s;
}

.games-list .game-card:nth-child(5),
.music-list .music-card:nth-child(5) {
    animation-delay: 0.34s;
}

.games-list .game-card:nth-child(6),
.music-list .music-card:nth-child(6) {
    animation-delay: 0.40s;
}

.games-list .game-card:nth-child(7) {
    animation-delay: 0.46s;
}

.games-list .game-card:nth-child(8) {
    animation-delay: 0.52s;
}

.games-list .game-card:nth-child(9) {
    animation-delay: 0.58s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ambientFloat {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(2%, 1%, 0) scale(1.04);
    }
}

@keyframes newsPulse {
    0%, 100% {
        box-shadow: 0 16px 28px rgba(0,0,0,0.22);
        border-color: rgba(139, 195, 74, 0.24);
    }
    50% {
        box-shadow: 0 18px 34px rgba(0,0,0,0.28);
        border-color: rgba(184, 239, 101, 0.42);
    }
}

@keyframes newsShimmer {
    0%,
    58%,
    100% {
        transform: translateX(-145%);
    }
    70% {
        transform: translateX(145%);
    }
}

/* Tablet/mobile adjustments keep cards stacked and switch to the hamburger menu. */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .nav-container {
        padding: 0 18px;
        gap: 16px;
        justify-content: space-between;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-title {
        font-size: 40px;
    }
    .hero-text {
        font-size: 18px;
    }
    .news-callout {
        width: 100%;
        max-width: 100%;
        padding: 16px 18px;
    }
    .news-callout::before {
        background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.08) 50%, transparent 72%);
    }
    .card-glass {
        padding: 40px 20px;
        margin-bottom: 40px;
    }
    .game-card {
        flex-direction: column;
        min-height: 0;
    }
    .music-card {
        flex-direction: column;
        min-height: 0;
    }
    .game-banner {
        width: 100%;
    }
    .game-banner img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .game-info {
        padding: 30px 20px;
        text-align: center;
    }
    .music-embed-card {
        padding: 14px;
        gap: 14px;
    }
    .music-embed {
        width: 100%;
        height: 307px;
    }
    .music-platforms {
        width: 100%;
    }
    .main-content {
        padding-top: 100px;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0 16px 0;
        padding: 0 14px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(2, 12, 5, 0.94) 0%, rgba(3, 17, 7, 0.96) 100%);
        backdrop-filter: blur(18px);
        border: 1px solid rgba(139, 195, 74, 0.22);
        border-radius: 22px;
        box-shadow: 0 18px 34px rgba(0,0,0,0.34);
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease, margin-top 0.25s ease;
    }

    .mobile-nav.is-open {
        max-height: 260px;
        opacity: 1;
        pointer-events: auto;
        margin-top: 10px;
        padding: 12px 14px 14px;
    }

    .mobile-nav a {
        display: block;
        padding: 14px 16px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #ffffff;
        font-size: 17px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 8px 18px rgba(0,0,0,0.14);
    }

    .mobile-nav a.active {
        color: #ffffff;
        background: rgba(139, 195, 74, 0.12);
        border: 1px solid rgba(139, 195, 74, 0.45);
        box-shadow: 0 10px 20px rgba(0,0,0,0.18);
    }

    .mobile-nav a:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(139, 195, 74, 0.24);
        opacity: 1;
        text-decoration: none;
    }

    .games-list {
        gap: 30px;
    }
    .music-list {
        gap: 30px;
    }
    .drawings-grid {
        grid-template-columns: 1fr;
    }
    .drawing-card-featured .drawing-card-link {
        grid-template-columns: 1fr;
    }
    .drawing-lightbox {
        padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    }
    .drawing-lightbox-dialog {
        width: min(100%, calc(100vw - 32px));
        max-height: calc(100vh - 32px);
        padding: 16px;
    }
    .drawing-lightbox-media img {
        max-height: calc(100vh - 132px);
    }
    .drawing-lightbox-close {
        top: 12px;
        right: 12px;
    }
    .drawing-lightbox-copy {
        padding: 18px 2px 4px;
    }
    .vault-panel-overlay {
        padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    }
    .vault-panel-card {
        width: min(100%, calc(100vw - 32px));
        padding: 28px 18px 22px;
    }
    .vault-panel-title {
        font-size: 28px;
    }
    .vault-panel-item-title {
        font-size: 24px;
    }
    .vault-panel-image {
        max-height: 34vh;
    }
    .vault-note-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .vault-panel-close {
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    
    .nav-container {
        padding: 0 16px;
    }
    .main-content {
        padding-top: 104px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    .hero-text {
        font-size: 16px;
    }
    .news-callout {
        padding: 14px 16px;
        border-radius: 20px;
    }
    .news-callout::before {
        animation: none;
        opacity: 0.35;
    }
  }

