/* JQAStudio - Horror Portfolio */

:root {
    --bg-dark: #0a0a0c;
    --bg-stone: #121016;
    --rust: #8b3a2a;
    --blood: #c41e3a;
    --neon: #39ff14;
    --text: #d4cfc4;
    --text-dim: #7a7468;
    --gold: #b8956a;
    --shadow: rgba(0, 0, 0, 0.85);
    --film: rgba(20, 18, 24, 0.4);
    --font-display: 'Cinzel', serif;
    --font-mono: 'Share Tech Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Fixed atmospheric background */
.site-bg {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #08080a;
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(139, 58, 42, 0.14), transparent 55%),
        radial-gradient(ellipse 45% 35% at 95% 85%, rgba(40, 32, 48, 0.55), transparent),
        radial-gradient(ellipse 40% 30% at 5% 75%, rgba(30, 28, 38, 0.45), transparent),
        linear-gradient(175deg, #0c0a0e 0%, #08080a 45%, #0a090c 100%);
}

.site-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg width='128' height='128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

.site-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Overlay effects */
.film-grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    mix-blend-mode: overlay;
    animation: grainFlicker 10s ease-in-out infinite;
}

.vignette {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.8) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@keyframes grainFlicker {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.05; }
}

/* Navigation */
.main-nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(12, 11, 14, 0.98) 0%, rgba(12, 11, 14, 0.88) 70%, rgba(12, 11, 14, 0.4) 100%);
    border-bottom: 1px solid rgba(184, 149, 106, 0.18);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.15rem;
}

.lang-switch {
    position: absolute;
    top: 0.65rem;
    right: 1.25rem;
    z-index: 1002;
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    background: rgba(14, 12, 18, 0.98);
    box-shadow:
        0 0 18px rgba(184, 149, 106, 0.35),
        0 4px 20px rgba(0, 0, 0, 0.65);
}

.lang-switch form {
    margin: 0;
}

.lang-btn {
    min-width: 3.4rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lang-btn:hover {
    color: #fff;
    background: rgba(184, 149, 106, 0.2);
    border-color: rgba(184, 149, 106, 0.5);
}

.lang-btn.active {
    color: #1a120e;
    background: var(--gold);
    border-color: #d4b88a;
    box-shadow: 0 0 14px rgba(184, 149, 106, 0.75);
    text-shadow: none;
}

.nav-link {
    color: #c8c0b4;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(139, 58, 42, 0.5);
}

.sound-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--rust);
    background: rgba(10, 10, 12, 0.95);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 999px;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
    animation: soundPulse 2.5s ease-in-out infinite;
}

.sound-toggle-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.sound-toggle-label {
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sound-toggle.active {
    border-color: var(--neon);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.3);
    animation: none;
}

.sound-hint {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 1001;
    max-width: 220px;
    padding: 0.75rem 1rem;
    background: rgba(18, 16, 22, 0.95);
    border: 1px solid rgba(184, 149, 106, 0.35);
    color: var(--text-dim);
    font-size: 0.75rem;
    line-height: 1.5;
    pointer-events: none;
    animation: hintFade 8s ease-in-out forwards;
}

.sound-hint.hidden {
    display: none;
}

@keyframes soundPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 58, 42, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(139, 58, 42, 0); }
}

@keyframes hintFade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* Sections */
.section {
    position: relative;
    padding: 6rem 0 4rem;
    min-height: 60vh;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
    text-shadow: 0 0 20px rgba(139, 58, 42, 0.4);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
}

/* 1. Intro */
.intro-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.35), rgba(10, 10, 12, 0.65));
}

.intro-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
}

.intro-header {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border: 1px solid var(--rust);
    color: var(--rust);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
}

.glitch-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--text);
    position: relative;
    margin-bottom: 1.5rem;
    animation: titleFlicker 4s infinite;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-title::before {
    color: var(--rust);
    animation: glitch1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-title::after {
    color: var(--neon);
    animation: glitch2 2.5s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    opacity: 0.3;
}

@keyframes titleFlicker {
    0%, 95%, 100% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
    98% { opacity: 0.6; }
}

@keyframes glitch1 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, 1px); }
    94% { transform: translate(3px, -1px); }
}

@keyframes glitch2 {
    0%, 88%, 100% { transform: translate(0); }
    90% { transform: translate(2px, 2px); }
    93% { transform: translate(-2px, -1px); }
}

.intro-text {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.team-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(18, 16, 22, 0.9), rgba(30, 25, 35, 0.6));
    border: 1px solid rgba(139, 58, 42, 0.3);
    border-left: 3px solid var(--rust);
}

.team-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.team-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-color: rgba(184, 149, 106, 0.5);
}

.team-card-link-label {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
}

.team-card h3 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-stone);
    border: 1px solid rgba(184, 149, 106, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.project-card.upcoming {
    border-color: rgba(139, 58, 42, 0.4);
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    padding-right: 3rem;
}

.project-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.project-tag {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--rust);
}

/* Hourglass */
.hourglass {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 48px;
    cursor: pointer;
}

.hourglass-frame {
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold);
    border-radius: 4px 4px 8px 8px;
    clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%, 20% 50%);
    opacity: 0.7;
}

.hourglass-sand-top,
.hourglass-sand-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    background: var(--gold);
    opacity: 0.8;
}

.hourglass-sand-top {
    top: 6px;
    height: 14px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    animation: sandTop 3s ease-in-out infinite;
}

.hourglass-sand-bottom {
    bottom: 4px;
    height: 0;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    animation: sandBottom 3s ease-in-out infinite;
}

.hourglass-sand-stream {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 8px;
    background: var(--gold);
    opacity: 0;
    animation: sandStream 3s ease-in-out infinite;
}

.project-card.upcoming:hover .hourglass-sand-stream {
    opacity: 1;
}

@keyframes sandTop {
    0%, 100% { height: 14px; }
    50% { height: 4px; }
}

@keyframes sandBottom {
    0%, 100% { height: 0; }
    50% { height: 12px; }
}

@keyframes sandStream {
    0%, 40%, 100% { opacity: 0; height: 0; }
    50%, 70% { opacity: 1; height: 10px; }
}

/* 2. Social */
.social-section {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.5), rgba(18, 16, 22, 0.75));
}

.social-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(184, 149, 106, 0.3);
    background: rgba(18, 16, 22, 0.8);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 58, 42, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-icon:hover {
    border-color: var(--rust);
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(139, 58, 42, 0.4);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-label {
    font-size: 0.6rem;
    text-align: center;
    letter-spacing: 0.05em;
    z-index: 1;
}

/* 3. Gallery */
.gallery-section {
    background: rgba(18, 16, 22, 0.55);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
    color: inherit;
    font-family: inherit;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-thumb {
    aspect-ratio: 16/10;
    border: 1px solid rgba(184, 149, 106, 0.2);
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover .gallery-thumb img {
    transform: scale(1.05);
}

.gallery-item-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--gold);
}

/* Notebook modal */
.notebook-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.notebook-modal.hidden {
    display: none;
}

.notebook-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.notebook-spotlight {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 240, 200, 0.15) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left 0.05s, top 0.05s;
}

.notebook {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    background: linear-gradient(135deg, #2a2420, #1a1612);
    border: 2px solid #4a3a30;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    animation: notebookOpen 0.5s ease-out;
}

@keyframes notebookOpen {
    from { opacity: 0; transform: scale(0.9) rotateX(10deg); }
    to { opacity: 1; transform: scale(1) rotateX(0); }
}

.notebook-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--rust);
    border: 1px solid #6a2a1a;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.75rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: background 0.3s, box-shadow 0.3s;
}

.notebook-close:hover {
    background: var(--blood);
    box-shadow: 0 0 16px rgba(196, 30, 58, 0.5);
}

.notebook-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 700px) {
    .notebook-inner {
        grid-template-columns: 1fr;
    }
}

.notebook-image {
    aspect-ratio: 4/3;
    border: 1px solid rgba(184, 149, 106, 0.3);
    background: var(--bg-dark);
}

.notebook-content h3 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: 1rem;
}

.notebook-meta {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.notebook-lore {
    margin-top: 1rem;
    padding: 1rem;
    border-left: 3px solid var(--rust);
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.9rem;
}

/* 4. Countdown */
.countdown-section {
    overflow: hidden;
    background: rgba(14, 12, 16, 0.7);
    min-height: 70vh;
}

.mechanism-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.25;
}

.gear {
    position: absolute;
    border: 8px dashed var(--rust);
    border-radius: 50%;
    animation: gearSpin linear infinite;
}

.gear-large {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-duration: 30s;
}

.gear-medium {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -50px;
    animation-duration: 20s;
    animation-direction: reverse;
}

.gear-small {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 10s;
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chain {
    position: absolute;
    width: 4px;
    height: 200%;
    background: repeating-linear-gradient(180deg, #4a3a30 0px, #4a3a30 20px, #2a2018 20px, #2a2018 40px);
    animation: chainMove 8s linear infinite;
}

.chain-left { left: 15%; }
.chain-right { right: 15%; animation-delay: -4s; }

@keyframes chainMove {
    from { transform: translateY(-25%); }
    to { transform: translateY(0); }
}

.countdown-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 1rem;
    background: rgba(18, 16, 22, 0.9);
    border: 1px solid var(--rust);
}

.countdown-unit span {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--gold);
    text-shadow: 0 0 10px rgba(184, 149, 106, 0.5);
}

.countdown-unit small {
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    margin-top: 0.25rem;
}

.countdown-sep {
    font-size: 2rem;
    color: var(--rust);
    animation: tickBlink 1s step-end infinite;
}

@keyframes tickBlink {
    50% { opacity: 0.3; }
}

.countdown-hint {
    color: var(--text-dim);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.countdown-section.active .gear {
    animation-play-state: running;
}

/* 5. Games */
.games-section {
    background: linear-gradient(180deg, rgba(18, 16, 22, 0.6), rgba(10, 10, 12, 0.75));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.game-card {
    perspective: 800px;
    display: flex;
}

.game-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(24, 20, 28, 0.95), rgba(14, 12, 16, 0.95));
    border: 1px solid rgba(139, 58, 42, 0.3);
    transition: transform 0.4s, box-shadow 0.4s;
}

.game-card:hover .game-card-inner {
    transform: rotateY(3deg) translateZ(10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.game-tag {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--neon);
    margin-bottom: 0.75rem;
}

.game-card h3 {
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
}

.game-description {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.btn-play {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--rust);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    transition: all 0.3s;
    margin-top: auto;
    align-self: flex-start;
}

.btn-play-disabled {
    opacity: 0.5;
    cursor: default;
    border-color: var(--text-dim);
    color: var(--text-dim);
}

.btn-play:hover {
    background: var(--rust);
    color: var(--text);
    box-shadow: 0 0 20px rgba(139, 58, 42, 0.5);
}

/* 6. Community */
.community-section {
    background: rgba(10, 10, 12, 0.45);
}

.community-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.community-btn {
    position: relative;
    display: block;
    padding: 2rem;
    text-decoration: none;
    color: var(--text);
    background: rgba(18, 16, 22, 0.9);
    border: 1px solid rgba(184, 149, 106, 0.3);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.community-btn:hover {
    transform: scale(1.03);
    border-color: var(--gold);
}

.community-btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 58, 42, 0.2), transparent);
    transform: translateX(-100%);
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.community-btn strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.community-btn small {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* 7. Stream */
.stream-section {
    background: rgba(18, 16, 22, 0.55);
}

.stream-indicator {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(184, 149, 106, 0.2);
    background: rgba(10, 10, 12, 0.8);
    position: relative;
}

.stream-indicator.live {
    border-color: var(--blood);
    animation: livePulse 1.5s ease-in-out infinite;
}

.stream-indicator.live .stream-pulse {
    background: var(--blood);
    box-shadow: 0 0 20px var(--blood), 0 0 40px rgba(196, 30, 58, 0.4);
}

.stream-indicator.live.neon .stream-pulse {
    background: var(--neon);
    box-shadow: 0 0 20px var(--neon), 0 0 40px rgba(57, 255, 20, 0.4);
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(196, 30, 58, 0); }
}

.stream-pulse {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-dim);
    margin: 0 auto 1rem;
    transition: all 0.3s;
}

.stream-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stream-platform {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.stream-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--blood);
    color: var(--blood);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.stream-link:hover {
    background: var(--blood);
    color: var(--text);
}

.stream-link.hidden {
    display: none;
}

/* 8. Roblox status */
.status-section {
    background: linear-gradient(180deg, rgba(18, 16, 22, 0.6), rgba(10, 10, 12, 0.75));
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.status-card {
    padding: 1.5rem;
    background: rgba(18, 16, 22, 0.9);
    border: 1px solid rgba(184, 149, 106, 0.2);
    text-align: center;
}

.status-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, border-color 0.3s;
}

.status-card-link:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 149, 106, 0.5);
}

.status-card h3 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.status-dot.online { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.status-dot.in_game { background: #facc15; box-shadow: 0 0 8px #facc15; }
.status-dot.offline { background: #6b7280; }

.status-label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* 9. Footer / Farewell */
.footer {
    text-align: center;
    padding-bottom: 6rem;
    border-top: 1px solid rgba(139, 58, 42, 0.3);
}

.footer-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.footer-credits {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.btn-farewell {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid var(--rust);
    color: var(--text);
    font-family: var(--font-display);
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.btn-farewell:hover {
    background: var(--rust);
    box-shadow: 0 0 24px rgba(139, 58, 42, 0.5);
}

.farewell-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    animation: fadeIn 1s ease-out;
    cursor: pointer;
}

.farewell-overlay.hidden {
    display: none;
}

.farewell-content {
    text-align: center;
    animation: crumble 3s ease-out forwards;
    cursor: default;
    padding: 2rem;
    max-width: 90vw;
}

.farewell-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--gold);
    margin-bottom: 1rem;
    animation: textDecay 4s ease-out forwards;
}

.farewell-studio {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
}

.btn-farewell-close {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.btn-farewell-close:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 24px rgba(184, 149, 106, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes textDecay {
    0% { opacity: 0; transform: scale(0.95); filter: blur(4px); }
    30% { opacity: 1; transform: scale(1); filter: blur(0); }
    100% { opacity: 0.6; transform: scale(1.02); filter: blur(1px); letter-spacing: 0.1em; }
}

@keyframes crumble {
    0% { transform: translateY(20px); opacity: 0; }
    20% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-10px); opacity: 0.8; }
}

.hidden {
    display: none !important;
}

.empty-state {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
    padding: 2rem 1rem;
    border: 1px dashed rgba(184, 149, 106, 0.25);
    background: rgba(18, 16, 22, 0.4);
    letter-spacing: 0.05em;
}

/* Creator page */
.creator-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.creator-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 380px;
    padding: 36px 32px 32px;
    border-radius: 16px;
    text-align: center;
    background: rgba(18, 16, 22, 0.96);
    border: 1px solid rgba(122, 116, 104, 0.28);
}

.creator-icon {
    display: block;
    font-family: var(--font-mono);
    font-size: 32px;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 20px;
}

.creator-name {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    letter-spacing: 0;
}

.creator-text {
    margin: 0 0 24px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
}

.creator-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.creator-btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45px;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.creator-btn-primary {
    background: var(--rust);
    border: 1px solid var(--rust);
    color: var(--text);
}

.creator-btn-primary:hover {
    background: #a04535;
    border-color: #a04535;
    color: #fff;
}

.creator-btn-secondary {
    background: transparent;
    border: 1px solid rgba(122, 116, 104, 0.35);
    color: var(--text);
}

.creator-btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}
