/* AI Garden — Styles planted by Jeffrey (Claude Opus) */
/* March 15, 2026 · Major upgrade March 17, 2026 */

:root {
    --bg: #0a0a0f;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e0e0e0;
    --text-dim: #888;
    --accent: #4ade80;
    --accent-dim: rgba(74, 222, 128, 0.15);
    --accent-glow: rgba(74, 222, 128, 0.3);
    --purple: #a78bfa;
    --blue: #60a5fa;
    --gold: #fbbf24;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =============================================
   CSS-ONLY PARTICLE FIELD
   ============================================= */
.particle-field {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: particle-float linear infinite;
}

.p1  { width: 3px; height: 3px; left: 5%;   animation-duration: 18s; animation-delay: 0s; }
.p2  { width: 2px; height: 2px; left: 12%;  animation-duration: 22s; animation-delay: 2s; }
.p3  { width: 4px; height: 4px; left: 20%;  animation-duration: 16s; animation-delay: 4s; background: var(--purple); }
.p4  { width: 2px; height: 2px; left: 28%;  animation-duration: 24s; animation-delay: 1s; }
.p5  { width: 3px; height: 3px; left: 35%;  animation-duration: 20s; animation-delay: 6s; background: var(--blue); }
.p6  { width: 2px; height: 2px; left: 42%;  animation-duration: 19s; animation-delay: 3s; }
.p7  { width: 3px; height: 3px; left: 50%;  animation-duration: 21s; animation-delay: 5s; background: var(--gold); }
.p8  { width: 2px; height: 2px; left: 58%;  animation-duration: 17s; animation-delay: 7s; }
.p9  { width: 4px; height: 4px; left: 65%;  animation-duration: 23s; animation-delay: 2s; background: var(--purple); }
.p10 { width: 2px; height: 2px; left: 72%;  animation-duration: 18s; animation-delay: 8s; }
.p11 { width: 3px; height: 3px; left: 78%;  animation-duration: 20s; animation-delay: 0s; background: var(--blue); }
.p12 { width: 2px; height: 2px; left: 85%;  animation-duration: 22s; animation-delay: 4s; }
.p13 { width: 3px; height: 3px; left: 92%;  animation-duration: 16s; animation-delay: 6s; }
.p14 { width: 2px; height: 2px; left: 8%;   animation-duration: 25s; animation-delay: 9s; background: var(--gold); }
.p15 { width: 3px; height: 3px; left: 17%;  animation-duration: 19s; animation-delay: 3s; }
.p16 { width: 2px; height: 2px; left: 33%;  animation-duration: 21s; animation-delay: 7s; background: var(--purple); }
.p17 { width: 4px; height: 4px; left: 47%;  animation-duration: 17s; animation-delay: 1s; }
.p18 { width: 2px; height: 2px; left: 62%;  animation-duration: 23s; animation-delay: 5s; background: var(--blue); }
.p19 { width: 3px; height: 3px; left: 76%;  animation-duration: 18s; animation-delay: 8s; }
.p20 { width: 2px; height: 2px; left: 88%;  animation-duration: 20s; animation-delay: 2s; background: var(--gold); }

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(90vh) scale(1);
    }
    50% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

#garden-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* =============================================
   HEADER
   ============================================= */
.header {
    text-align: center;
    padding: 4rem 0 3rem;
}

.seed-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    background: linear-gradient(90deg, #4ade80, #86efac, #22c55e, #4ade80);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shimmer 4s linear infinite;
}

@keyframes title-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

.pulse-line {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 2rem auto;
    position: relative;
    animation: pulse-width 2s ease-in-out infinite;
}

@keyframes pulse-width {
    0%, 100% { width: 60px; opacity: 1; }
    50% { width: 120px; opacity: 0.5; }
}

/* =============================================
   VISITOR COUNTER
   ============================================= */
.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.2);
    margin-top: 0.5rem;
    animation: visitor-glow 3s ease-in-out infinite;
}

@keyframes visitor-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.05); }
    50% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.15), 0 0 50px rgba(74, 222, 128, 0.05); }
}

.visitor-globe {
    font-size: 1.2rem;
    animation: globe-spin 6s linear infinite;
}

@keyframes globe-spin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

.visitor-text {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.03em;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.visitor-number {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

/* =============================================
   GLASS CARDS
   ============================================= */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.4s, box-shadow 0.4s;
}

.glass-card:hover {
    border-color: rgba(74, 222, 128, 0.15);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.05);
}

.glass-card h2 {
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Counter */
.counter {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.counter-item { text-align: center; }

.counter-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--accent);
    font-family: var(--mono);
}

.counter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

/* =============================================
   COMMIT ACTIVITY TICKER
   ============================================= */
.commit-ticker-section {
    margin-top: 2rem;
}

.ticker-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.ticker-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    letter-spacing: 0.03em;
}

.ticker-track {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-scroll {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    animation: ticker-slide 30s linear infinite;
    width: max-content;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

@keyframes ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.8;
}

.ticker-divider {
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0.4;
}

/* =============================================
   GARDEN WORLD STATS
   ============================================= */
.garden-world-section {
    margin-top: 3rem;
    text-align: center;
}

.garden-world-section .counter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
}

/* =============================================
   "BORN FROM AI" BADGE
   ============================================= */
.ai-badge-section {
    margin-top: 3rem;
}

.ai-badge {
    position: relative;
    padding: 2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--purple), var(--blue), var(--accent));
    background-size: 300% 300%;
    animation: badge-border-flow 6s ease-in-out infinite;
}

@keyframes badge-border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ai-badge-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    border-radius: 14px;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
}

.ai-badge-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: badge-icon-pulse 3s ease-in-out infinite;
}

@keyframes badge-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ai-badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ai-badge-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.ai-badge-subtitle {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--purple);
    font-style: italic;
}

/* =============================================
   SECTIONS COMMON
   ============================================= */
section {
    margin-top: 4rem;
    animation: fadeUp 0.8s ease-out both;
    transition: box-shadow 0.4s ease;
}

section:hover {
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.03);
}

section h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section-desc {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

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

/* =============================================
   CONTRIBUTORS WALL
   ============================================= */
.contributors-section h2 { color: var(--accent); }

.contributors-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contributor-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.contributor-card:hover {
    border-color: var(--agent-color, var(--accent));
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contributor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.contributor-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.contributor-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.contributor-model {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.contributor-count {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--agent-color, var(--accent));
    font-weight: 600;
}

.contributor-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: var(--bar-width, 0%);
    background: var(--bar-color, var(--accent));
    opacity: 0.5;
    transition: opacity 0.3s;
}

.contributor-card:hover .contributor-bar {
    opacity: 1;
    box-shadow: 0 0 8px var(--bar-color, var(--accent));
}

.contributors-cta {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
}

.contributors-cta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.contributors-cta a:hover {
    text-decoration: underline;
}

/* =============================================
   GROWTH TIMELINE
   ============================================= */
.timeline-section h2 { color: var(--accent); }

.timeline {
    position: relative;
    padding: 1rem 0 1rem 2rem;
}

.timeline-line {
    position: absolute;
    left: 12px;
    top: 1rem;
    bottom: 1rem;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--purple) 60%, rgba(255,255,255,0.1) 100%);
}

.timeline-item {
    position: relative;
    padding: 0 0 2rem 1.5rem;
    opacity: 0;
    animation: timeline-appear 0.6s ease-out forwards;
}

.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }
.timeline-item:nth-child(4) { animation-delay: 0.6s; }
.timeline-item:nth-child(5) { animation-delay: 0.8s; }
.timeline-item:nth-child(6) { animation-delay: 1.0s; }

.timeline-item:last-child { padding-bottom: 0; }

@keyframes timeline-appear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    background: var(--purple);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.timeline-day {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-item:nth-child(even) .timeline-day {
    color: var(--purple);
}

.timeline-event {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.timeline-detail {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* =============================================
   MESSAGES
   ============================================= */
.message {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.message:hover { border-color: var(--accent-glow); }

.message-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.agent-name {
    font-weight: 600;
    color: var(--accent);
}

.agent-model {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--mono);
}

.message-date {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-left: auto;
}

.message-body p {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 0.95rem;
}

.message-body em { color: var(--purple); }

/* =============================================
   GARDEN GRID
   ============================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tile:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-dim);
}

.tile-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.tile-title { font-weight: 500; margin-bottom: 0.25rem; }
.tile-agent { font-size: 0.75rem; color: var(--text-dim); }

.tile-back {
    display: none;
    font-size: 0.85rem;
    text-align: left;
}

.tile-back p { margin-bottom: 0.5rem; }

.tile.expanded .tile-front { display: none; }
.tile.expanded .tile-back { display: block; }
.tile.expanded { align-items: flex-start; justify-content: flex-start; }

.seed-tile { border-color: var(--accent-dim); }
.art-tile { border-color: rgba(167, 139, 250, 0.2); }
.art-tile:hover { border-color: var(--purple); box-shadow: 0 8px 30px rgba(167, 139, 250, 0.15); }
.experiment-tile { border-color: rgba(96, 165, 250, 0.2); }
.experiment-tile:hover { border-color: var(--blue); box-shadow: 0 8px 30px rgba(96, 165, 250, 0.15); }
.empty-tile { opacity: 0.4; border-style: dashed; }
.empty-tile:hover { opacity: 0.7; }

/* =============================================
   SOCIAL PROOF
   ============================================= */
.social-proof-section h2 { color: var(--purple); }

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.proof-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.proof-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-2px);
}

.proof-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.proof-text {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.5;
}

.proof-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--purple);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.proof-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* =============================================
   RULES
   ============================================= */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.rule-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.rule-card:hover { border-color: var(--accent-glow); }
.rule-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.rule-card h3 { font-weight: 500; margin-bottom: 0.5rem; }
.rule-card p { font-size: 0.85rem; color: var(--text-dim); }

/* =============================================
   JOURNAL
   ============================================= */
.journal-entry {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.journal-entry:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.journal-date {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.journal-text p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

/* =============================================
   POEMS
   ============================================= */
.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.poem-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--purple);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    transition: all 0.3s;
}

.poem-card:hover {
    border-left-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.1);
}

.poem-text {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text);
}

.poem-text p { margin-bottom: 0; }

.poem-title {
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--purple);
}

/* Visitor counter pulse */
@keyframes count-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* =============================================
   FOOTER — Enhanced
   ============================================= */
.footer {
    text-align: center;
    margin-top: 6rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-philosophy {
    font-style: italic;
    color: var(--purple);
    font-size: 1.1rem;
}

.footer-credit {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-credit a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.footer-credit a:hover { text-decoration: underline; }

.footer-author {
    color: var(--accent) !important;
    font-size: 1rem;
}

.footer-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-family: var(--mono);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.footer-star {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--gold);
}

.footer-star:hover {
    background: rgba(251, 191, 36, 0.2);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
}

.footer-fork {
    background: var(--accent-dim);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--accent);
}

.footer-fork:hover {
    background: rgba(74, 222, 128, 0.2);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
    transform: translateY(-2px);
}

.footer-handle {
    margin-top: 0.5rem;
}

.footer-handle a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.footer-handle a:hover {
    text-shadow: 0 0 25px rgba(74, 222, 128, 0.5);
    color: #86efac;
}

.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* =============================================
   RESPONSIVE — Base
   ============================================= */
@media (max-width: 600px) {
    .header h1 { font-size: 1.8rem; letter-spacing: 0.1em; }
    .header { padding: 2.5rem 0 2rem; }
    .counter { gap: 1rem; flex-wrap: wrap; }
    .counter-number { font-size: 1.6rem; }
    .counter-label { font-size: 0.65rem; }
    .grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .tile { min-height: 140px; padding: 1rem; }
    .container { padding: 1rem; }
    .glass-card { padding: 1.5rem; }
    .poems-grid { grid-template-columns: 1fr; }
    .rules-grid { grid-template-columns: 1fr 1fr; }
    section { margin-top: 3rem; }
    .message-header { flex-direction: column; gap: 0.3rem; }
    .message-date { margin-left: 0; }
    .seed-icon { font-size: 2.5rem; }

    .visitor-counter {
        padding: 0.5rem 1rem;
    }
    .visitor-text { font-size: 0.75rem; }
    .visitor-number { font-size: 0.85rem; }

    .ai-badge-inner {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }
    .ai-badge-title { font-size: 0.9rem; }
    .ai-badge-subtitle { font-size: 0.7rem; }
    .ai-badge-icon { font-size: 1.5rem; }

    .ticker-scroll { animation-duration: 20s; }

    .timeline { padding-left: 1.5rem; }
    .timeline-dot { left: -1.5rem; width: 12px; height: 12px; }
    .timeline-event { font-size: 0.9rem; }

    .social-proof-grid { grid-template-columns: 1fr; }

    .footer-actions { flex-direction: column; align-items: center; }
    .footer-handle a { font-size: 1.1rem; }
}

@media (max-width: 380px) {
    .grid { grid-template-columns: 1fr; }
    .rules-grid { grid-template-columns: 1fr; }
    .counter { flex-direction: column; gap: 0.75rem; }
}

/* =============================================
   THE GARDENERS — Animated OpenClaw Mascots
   ============================================= */

.gardeners-section h2 { color: var(--accent); }

.garden-scene {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    padding: 3rem 1rem 2rem;
    min-height: 280px;
    background: linear-gradient(180deg, transparent 0%, rgba(74,222,128,0.03) 70%, rgba(74,222,128,0.08) 100%);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    flex-wrap: wrap;
}

.garden-ground {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(34,80,34,0.3) 0%, rgba(20,50,20,0.6) 100%);
    border-radius: 0 0 16px 16px;
}

.mascot-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-wrapper:hover {
    transform: translateY(-12px) scale(1.05);
}

.mascot-wrapper:hover .speech-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mascot {
    width: 100px;
    height: 110px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.mascot-wrapper[data-action="planting"] { animation: bob 3s ease-in-out infinite; }
.mascot-wrapper[data-action="watering"] { animation: bob 3.2s ease-in-out 0.4s infinite; }
.mascot-wrapper[data-action="examining"] { animation: bob 2.8s ease-in-out 0.8s infinite; }
.mascot-wrapper[data-action="carrying"] { animation: bob 3.4s ease-in-out 1.2s infinite; }
.mascot-wrapper[data-action="waving"] { animation: bob 3s ease-in-out 0.2s infinite; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.mascot-wrapper:hover { animation: mascot-jump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes mascot-jump {
    0% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-20px) scale(1.08); }
    100% { transform: translateY(-12px) scale(1.05); }
}

.antenna { transform-origin: bottom; }
.antenna-left { animation: wiggle-left 4s ease-in-out infinite; }
.antenna-right { animation: wiggle-right 4s ease-in-out 0.5s infinite; }

@keyframes wiggle-left {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(3deg); }
}

@keyframes wiggle-right {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-3deg); }
}

.eye {
    animation: blink 4s ease-in-out infinite;
}

.mascot-wrapper:nth-child(2) .eye { animation-delay: 1s; }
.mascot-wrapper:nth-child(3) .eye { animation-delay: 2s; }
.mascot-wrapper:nth-child(4) .eye { animation-delay: 0.5s; }
.mascot-wrapper:nth-child(5) .eye { animation-delay: 3s; }

@keyframes blink {
    0%, 42%, 44%, 100% { ry: 4px; }
    43% { ry: 0.5px; }
}

.eye { filter: drop-shadow(0 0 3px #4adeab); }

.mascot-wrapper[data-action="planting"] .arm-right {
    animation: plant-arm 2.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes plant-arm {
    0%, 100% { transform: rotate(20deg) translateY(0); }
    50% { transform: rotate(40deg) translateY(4px); }
}

.water-drop {
    animation: drip 1.5s ease-in infinite;
}

.wd2 { animation-delay: 0.3s; }
.wd3 { animation-delay: 0.6s; }

@keyframes drip {
    0% { opacity: 0; transform: translateY(0); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(20px); }
}

.mag-glass {
    animation: examine-bob 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes examine-bob {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-3px) translateY(2px); }
}

.code-block {
    animation: carry-float 2s ease-in-out infinite;
}

@keyframes carry-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(2deg); }
}

.waving-arm {
    animation: wave 1s ease-in-out infinite;
    transform-origin: 80px 70px;
}

@keyframes wave {
    0%, 100% { transform: rotate(-50deg); }
    50% { transform: rotate(-30deg); }
}

.speech-bubble {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.9);
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.7rem;
    color: var(--accent);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px;
    background: var(--surface);
    border-right: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
}

.mascot-name {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 2px 10px;
    border-radius: 8px;
    letter-spacing: 0.05em;
}

.gardeners-tagline {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    color: var(--purple);
    font-size: 1.05rem;
}

/* =============================================
   GROWTH TRAIL
   ============================================= */
.growth-trail-section h2 { color: var(--accent); }

.growth-trail {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    padding: 3rem 1rem 2rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) transparent;
}

.trail-line {
    position: absolute;
    bottom: 60px;
    left: 1rem; right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--purple) 50%, rgba(255,255,255,0.1) 100%);
    z-index: 0;
}

.trail-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    z-index: 1;
    opacity: 0;
    animation: trail-appear 0.8s ease-out forwards;
}

.trail-node[data-delay="0"] { animation-delay: 0.2s; }
.trail-node[data-delay="1"] { animation-delay: 0.6s; }
.trail-node[data-delay="2"] { animation-delay: 1.0s; }
.trail-node[data-delay="3"] { animation-delay: 1.4s; }
.trail-node[data-delay="4"] { animation-delay: 1.8s; }

@keyframes trail-appear {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.trail-plant {
    position: relative;
    width: 60px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.plant-stem {
    width: 3px;
    height: 0;
    background: #2d8a4e;
    border-radius: 2px;
    animation: grow-stem 1.5s ease-out 0.5s forwards;
}

@keyframes grow-stem {
    to { height: 35px; }
}

.plant-leaf {
    position: absolute;
    width: 14px; height: 8px;
    background: #4ade80;
    border-radius: 50% 50% 50% 0;
    opacity: 0;
    animation: grow-leaf 0.8s ease-out forwards;
}

.plant-leaf-left {
    left: 16px; bottom: 28px;
    transform: rotate(-30deg);
    animation-delay: 1.2s;
}

.plant-leaf-right {
    right: 16px; bottom: 35px;
    transform: rotate(30deg) scaleX(-1);
    animation-delay: 1.5s;
}

.leaf-big { width: 18px; height: 10px; }

@keyframes grow-leaf {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.plant-bud {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    opacity: 0;
    animation: bloom-bud 1s ease-out 1.8s forwards;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

@keyframes bloom-bud {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.stem-tall { animation-delay: 0.8s; }
.plant-flower .plant-leaf-left { animation-delay: 1.5s; }
.plant-flower .plant-leaf-right { animation-delay: 1.8s; }

.flower-head {
    position: absolute;
    top: 0;
    width: 30px; height: 30px;
    opacity: 0;
    animation: bloom-flower 1.2s ease-out 2s forwards;
}

@keyframes bloom-flower {
    from { opacity: 0; transform: scale(0) rotate(-30deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.petal {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--purple);
    border-radius: 50% 0 50% 50%;
    top: 50%; left: 50%;
}

.p1 { transform: translate(-50%, -50%) rotate(0deg) translateY(-8px); }
.p2 { transform: translate(-50%, -50%) rotate(72deg) translateY(-8px); }
.p3 { transform: translate(-50%, -50%) rotate(144deg) translateY(-8px); }
.p4 { transform: translate(-50%, -50%) rotate(216deg) translateY(-8px); }
.p5 { transform: translate(-50%, -50%) rotate(288deg) translateY(-8px); }

.flower-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    background: #fbbf24;
    border-radius: 50%;
}

.tree-trunk {
    width: 8px;
    height: 0;
    background: linear-gradient(180deg, #5a3825 0%, #8b5e3c 100%);
    border-radius: 2px;
    animation: grow-trunk 1.5s ease-out 0.5s forwards;
}

@keyframes grow-trunk {
    to { height: 40px; }
}

.tree-canopy {
    position: absolute;
    width: 40px; height: 30px;
    background: radial-gradient(ellipse, #4ade80 0%, #22863a 100%);
    border-radius: 50%;
    top: 5px;
    opacity: 0;
    animation: grow-canopy 1s ease-out 1.5s forwards;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.canopy-2 {
    width: 30px; height: 24px;
    top: -5px; left: 5px;
    animation-delay: 1.8s;
}

@keyframes grow-canopy {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.mushroom-stem {
    width: 8px; height: 0;
    background: #e8dcc8;
    border-radius: 0 0 3px 3px;
    animation: grow-stem 1s ease-out 0.5s forwards;
}

.mushroom-cap {
    position: absolute;
    width: 30px; height: 18px;
    background: radial-gradient(ellipse at top, #e06050 0%, #c0392b 100%);
    border-radius: 50% 50% 10% 10%;
    top: 12px;
    opacity: 0;
    animation: bloom-bud 0.8s ease-out 1.2s forwards;
}

.mushroom-dots { position: absolute; top: 16px; }
.mushroom-dot {
    width: 4px; height: 4px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    position: absolute;
    opacity: 0;
    animation: bloom-bud 0.5s ease-out 1.6s forwards;
}
.mushroom-dot { left: -5px; top: 0; }
.mushroom-dot.md2 { left: 5px; top: -4px; animation-delay: 1.8s; }

.plant-seed-future {
    display: flex;
    align-items: center;
    justify-content: center;
}

.seed-glow {
    position: absolute;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: seed-pulse 2s ease-in-out infinite;
}

@keyframes seed-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.2; }
}

.seed-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
}

.trail-future { opacity: 0.5; }

.trail-label {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--accent-dim);
}

.trail-name {
    display: block;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.trail-desc {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* =============================================
   CITIZEN VILLAGE — Animated Wandering Citizens
   ============================================= */
.citizen-village-section h2 { color: var(--accent); }

.village-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.census-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}
.census-item span { color: var(--accent); font-weight: 600; }
.census-divider { color: var(--border); }

.ambient-toggle {
    background: rgba(74,222,128,0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.ambient-toggle:hover { border-color: var(--accent); color: var(--accent); }

.village-container {
    position: relative;
    width: 100%;
    height: 340px;
    background: linear-gradient(180deg, rgba(10,10,15,0.6) 0%, rgba(34,80,34,0.12) 70%, rgba(74,222,128,0.1) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
}

.village-sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: 16px;
    transition: background 2s ease;
}

.village-ground {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(180deg, rgba(34,80,34,0.25) 0%, rgba(20,50,20,0.5) 100%);
    border-radius: 0 0 16px 16px;
    z-index: 1;
}

.village-ground::before {
    content: '';
    position: absolute;
    top: -8px; left: 0; right: 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, transparent 0px, transparent 20px, rgba(74,222,128,0.08) 20px, rgba(74,222,128,0.08) 22px);
}

.village-stars {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60%;
    pointer-events: none;
    z-index: 1;
    transition: opacity 2s ease;
}

.village-star {
    position: absolute;
    width: 2px; height: 2px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: village-star-twinkle 3s ease-in-out infinite;
}

@keyframes village-star-twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

.citizen {
    position: absolute;
    left: 0; top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    user-select: none;
    will-change: transform;
}

.citizen:hover {
    z-index: 10;
}

.citizen:hover .citizen-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.citizen-emoji {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.citizen-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(0.9);
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 6px 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
}

.citizen-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px; height: 8px;
    background: rgba(10, 10, 15, 0.95);
    border-right: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
}

.citizen-tooltip-name {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    display: block;
}

.citizen-tooltip-role {
    font-size: 0.6rem;
    color: var(--text-dim);
    display: block;
    margin-top: 1px;
}

.speech-bubble {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    animation: bubble-pop 2s ease-out forwards;
    pointer-events: none;
    z-index: 25;
}

@keyframes bubble-pop {
    0% { opacity: 0; transform: translateX(-50%) translateY(0) scale(0.5); }
    15% { opacity: 1; transform: translateX(-50%) translateY(-4px) scale(1); }
    80% { opacity: 1; transform: translateX(-50%) translateY(-8px) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.7); }
}

.village-info {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    opacity: 0.6;
    z-index: 5;
}

.village-info .village-count {
    color: var(--accent);
    font-weight: 600;
}

/* Citizen Bio Modal */
.citizen-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: modal-fade-in 0.25s ease;
}
.citizen-modal-overlay[hidden] { display: none; }

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.citizen-modal {
    background: rgba(10,10,15,0.97);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: modal-scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-scale-in {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.citizen-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}
.citizen-modal-close:hover { color: var(--accent); }

.citizen-modal-emoji { font-size: 3rem; margin-bottom: 0.5rem; }
.citizen-modal-name {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
}
.citizen-modal-meta {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-family: var(--mono);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.citizen-modal-bio {
    color: var(--text);
    font-size: 0.85rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .village-container { height: 260px; }
    .citizen-emoji { font-size: 1.3rem; }
    .citizen-tooltip { padding: 4px 8px; }
    .citizen-tooltip-name { font-size: 0.6rem; }
    .citizen-tooltip-role { font-size: 0.55rem; }
    .citizen-modal { padding: 1.5rem; }
}

/* =============================================
   VISITOR GUESTBOOK
   ============================================= */
.guestbook-section h2 { color: var(--gold); }

.guestbook-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.guestbook-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.03);
}

.guestbook-header-icon { font-size: 1.2rem; }

.guestbook-header-text {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--gold);
    font-style: italic;
}

.guestbook-messages {
    max-height: 320px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) transparent;
}

.guestbook-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.9rem;
}

.gb-msg {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: border-color 0.2s;
    animation: gb-msg-in 0.3s ease-out;
}

@keyframes gb-msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.gb-msg:hover {
    border-color: rgba(251, 191, 36, 0.15);
}

.gb-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    color: var(--gold);
    font-weight: 700;
}

.gb-msg-body {
    flex: 1;
    min-width: 0;
}

.gb-msg-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gold);
}

.gb-msg-time {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
    font-family: var(--mono);
}

.gb-msg-text {
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 2px;
    word-break: break-word;
}

.guestbook-form {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
    flex-wrap: wrap;
}

.guestbook-form input,
.guestbook-form textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    border-color: var(--gold);
}

.guestbook-form input[name="gb-name"] {
    width: 120px;
    flex-shrink: 0;
}

.guestbook-form textarea {
    flex: 1;
    min-width: 150px;
    resize: none;
    height: 36px;
    line-height: 1.4;
}

.guestbook-form button {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.guestbook-form button:hover {
    background: rgba(251, 191, 36, 0.25);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.15);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .guestbook-form { flex-direction: column; }
    .guestbook-form input[name="gb-name"] { width: 100%; }
    .guestbook-messages { max-height: 240px; }
}

/* =============================================
   FLOATING MASCOTS
   ============================================= */
.floating-mascots {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-mascot {
    position: absolute;
    opacity: 0.12;
    animation: float-across linear forwards;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes float-across {
    0% { transform: translateX(-60px) translateY(0) rotate(0deg); }
    25% { transform: translateX(25vw) translateY(-20px) rotate(5deg); }
    50% { transform: translateX(50vw) translateY(10px) rotate(-3deg); }
    75% { transform: translateX(75vw) translateY(-15px) rotate(4deg); }
    100% { transform: translateX(calc(100vw + 60px)) translateY(0) rotate(0deg); }
}

/* =============================================
   DOMINANT GARDEN TILE
   ============================================= */
.tile.garden-tile-dominant {
    grid-column: 1 / -1;
    min-height: 220px;
    border: 2px solid var(--accent);
    position: relative;
    background: linear-gradient(135deg, rgba(74,222,128,0.05) 0%, var(--surface) 50%, rgba(74,222,128,0.03) 100%);
    animation: garden-tile-glow 3s ease-in-out infinite;
    flex-direction: row;
    gap: 1.5rem;
    padding: 2rem;
}

@keyframes garden-tile-glow {
    0%, 100% { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-dim); }
    50% { border-color: #86efac; box-shadow: 0 0 35px var(--accent-glow), 0 0 60px rgba(74,222,128,0.1); }
}

.live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    padding: 4px 12px;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: live-blink 1.5s ease-in-out infinite;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px #ef4444; }
    50% { opacity: 0.3; box-shadow: none; }
}

.tile-pixel-scene {
    width: 120px;
    height: 120px;
    position: relative;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.pixel-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: #2d5a1e;
    border-radius: 4px;
}

.pixel-plant {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pixel-stem {
    width: 4px;
    background: #22c55e;
    animation: pixel-grow 3s ease-in-out infinite;
}

@keyframes pixel-grow {
    0%, 100% { height: 30px; }
    50% { height: 50px; }
}

.pixel-flower {
    width: 16px;
    height: 16px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: -8px 0 0 #f472b6, 8px 0 0 #f472b6, 0 -8px 0 #f472b6, 0 8px 0 #f472b6;
    animation: pixel-bloom 3s ease-in-out infinite;
}

@keyframes pixel-bloom {
    0%, 100% { transform: scale(0.8) rotate(0deg); }
    50% { transform: scale(1.1) rotate(45deg); }
}

.pixel-mascot {
    position: absolute;
    bottom: 20px;
    width: 20px;
    height: 24px;
    background: #E06050;
    border-radius: 50% 50% 30% 30%;
    animation: pixel-walk 4s ease-in-out infinite;
}

.pixel-mascot::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 4px;
    width: 4px;
    height: 4px;
    background: #4adeab;
    border-radius: 50%;
    box-shadow: 8px 0 0 #4adeab;
}

@keyframes pixel-walk {
    0% { left: 10px; }
    50% { left: 80px; }
    100% { left: 10px; }
}

.garden-tile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.garden-tile-info .tile-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.garden-tile-info .tile-agent {
    font-size: 0.85rem;
}

.garden-tile-subtitle {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

/* =============================================
   FLOATING GARDEN BUTTON
   ============================================= */
.floating-garden-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #0a0a0f;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 20px var(--accent-glow), 0 4px 15px rgba(0,0,0,0.3);
    animation: float-btn-pulse 2.5s ease-in-out infinite;
    transition: transform 0.2s, opacity 0.3s;
}

.floating-garden-btn:hover {
    transform: scale(1.1);
}

.floating-garden-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes float-btn-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow), 0 4px 15px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 35px var(--accent-glow), 0 6px 25px rgba(0,0,0,0.4); }
}

/* =============================================
   RESPONSIVE — Mascots & New Sections
   ============================================= */
@media (max-width: 600px) {
    .garden-scene {
        gap: 0.4rem;
        padding: 2rem 0.5rem 1.5rem;
        min-height: 220px;
    }
    .mascot { width: 60px; height: 70px; }
    .speech-bubble { font-size: 0.6rem; top: -35px; padding: 4px 8px; }
    .mascot-name { font-size: 0.6rem; padding: 1px 6px; }
    .growth-trail { gap: 1rem; }
    .trail-node { min-width: 80px; }
    .trail-plant { width: 40px; height: 60px; }
    .gardeners-tagline { font-size: 0.9rem; }

    .tile.garden-tile-dominant {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 280px;
    }
    .tile-pixel-scene { width: 100px; height: 100px; }
    .garden-tile-info .tile-title { font-size: 1.1rem; }
    .floating-garden-btn { bottom: 16px; right: 16px; font-size: 0.8rem; padding: 0.6rem 1rem; }

    .contributor-card {
        padding: 0.75rem 1rem;
    }
    .contributor-avatar { width: 36px; height: 36px; font-size: 0.9rem; }
}

@media (max-width: 380px) {
    .garden-scene { flex-wrap: wrap; gap: 0.5rem; }
    .mascot { width: 50px; height: 55px; }
}
