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

/* Base */
body {
    font-family: 'Merriweather', serif;
    background: #0a0a0f;
    color: #d4d4d8;
    line-height: 1.6;
    padding: 2rem 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1a1a26;
}

.header-image {
    margin: 2rem 0 0.75rem 0;
    text-align: center;
    display: inline-block;
    padding: 3px;
    background: linear-gradient(to bottom, #151520 0%, #6366f1 100%);
    border-radius: 0.625rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 0.5rem;
    display: block;
}

.header-cta {
    margin-top: 0.75rem;
}

.play-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #6366f1;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.play-button:hover {
    background: #818cf8;
    transform: translateY(-2px);
    text-decoration: none;
}

.play-button:active {
    transform: translateY(0);
}

main {
    margin-bottom: 3rem;
}

/* Typography */
.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #d4d4d8;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.125rem;
    color: #a1a1aa;
    margin: 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #d4d4d8;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #d4d4d8;
}

section {
    margin-bottom: 3rem;
}

.intro p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #a1a1aa;
}

.warning {
    padding: 1rem;
    background: #151520;
    border-left: 3px solid #ff424d;
    border-radius: 0.25rem;
    color: #d4d4d8;
    font-size: 0.9375rem;
}

.warning strong {
    color: #ff424d;
}

.support-link {
    color: #6366f1;
    text-decoration: underline;
    transition: color 0.2s;
    font-size: 0.9375rem;
}

.support-link:hover {
    color: #818cf8;
    text-decoration: underline;
}

.version {
    margin: 2rem 0;
    font-size: 0.9375rem;
    color: #a1a1aa;
    text-align: center;
}

/* Features */
.feature-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.feature-list li {
    padding: 0.75rem 1rem;
    background: #151520;
    border-left: 3px solid #6366f1;
    border-radius: 0.25rem;
    color: #a1a1aa;
    font-size: 0.9375rem;
}

.feature-list li strong {
    color: #d4d4d8;
}

/* Roadmap */
.roadmap-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #151520;
    border: 1px solid #1a1a26;
    border-radius: 0.25rem;
}

.roadmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.roadmap-header:hover {
    opacity: 0.8;
}

.expand-icon {
    width: 1rem;
    height: 1rem;
    color: #a1a1aa;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.expand-icon.expanded {
    transform: rotate(180deg);
}

.roadmap-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.roadmap-item p {
    margin: 0;
    color: #a1a1aa;
    font-size: 0.9375rem;
}

.roadmap-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #1a1a26;
}

.roadmap-details ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.roadmap-details li {
    color: #a1a1aa;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.roadmap-item.released {
    border-color: #6366f1;
    background: #1a1a26;
}

.roadmap-item.in-progress {
    border-color: #f5a623;
    background: #3a3020;
}

.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #6366f1;
    color: #0a0a0f;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.badge.progress {
    background: #f5a623;
    color: #0a0a0f;
}

/* About */
.about p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #a1a1aa;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    padding-top: 2rem;
    border-top: 1px solid #1a1a26;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    font-size: 0.9375rem;
    flex-wrap: wrap;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 120px;
}

.footer-section h3 {
    font-size: 0.875rem;
    color: #a1a1aa;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Support Buttons */
.support-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Footer Links (text link alternative) */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    font-size: 0.9375rem;
    display: inline-block;
}

.footer-links a:hover {
    color: #818cf8;
    text-decoration: underline;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    color: white;
}

.support-btn svg,
.support-btn img {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.support-btn svg {
    fill: white;
}

/* Larger icons for specific buttons */
.blogger-btn img,
.mega-btn img,
.fanbox-btn img {
    width: 2.25rem;
    height: 2.25rem;
}

.support-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Individual button colors */
.discord-btn {
    background-color: #5865f2;
}

.discord-btn:hover {
    background-color: #4752c4;
}

.patreon-btn {
    background-color: #ff424d;
}

.patreon-btn:hover {
    background-color: #e63946;
}

.subscribestar-btn {
    background-color: #ff4081;
}

.subscribestar-btn:hover {
    background-color: #e6396b;
}

.fanbox-btn {
    background-color: #0288d1;
}

.fanbox-btn:hover {
    background-color: #0270b8;
}

.itch-btn {
    background-color: #fa5c5c;
}

.itch-btn:hover {
    background-color: #e34c4c;
}

.blogger-btn {
    background-color: #ff6f00;
}

.blogger-btn:hover {
    background-color: #e66000;
}

.mega-btn {
    background-color: #d9272e;
}

.mega-btn:hover {
    background-color: #c21f25;
}

/* Highlight Animation */
@keyframes scalePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #818cf8;
    }
}

.scale-pulse {
    animation: scalePulse 0.5s ease-in-out;
    display: inline-block;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:hover {
    background: #818cf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Patreon Updates Widget */
.patreon-updates-container {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.patreon-updates-container.visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.patreon-update-card {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    width: 300px;
    max-width: calc(100vw - 4rem);
    max-height: 10rem;
    overflow: hidden;
    background: #151520;
    border: 1px solid #1a1a26;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.4s ease forwards;
    pointer-events: auto;
}

.patreon-update-card:nth-child(1) {
    animation-delay: 0.1s;
    bottom: calc(2rem + 10rem);
}

.patreon-update-card:nth-child(2) {
    animation-delay: 0.2s;
    bottom: 2rem;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.patreon-update-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.patreon-update-date {
    font-size: 0.75rem;
    color: #6366f1;
    font-weight: 500;
    margin: 0;
}

.patreon-update-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.patreon-update-title a {
    color: #d4d4d8;
    text-decoration: none;
    transition: color 0.2s;
}

.patreon-update-title a:hover {
    color: #6366f1;
    text-decoration: underline;
}

.patreon-update-description {
    font-size: 0.875rem;
    color: #a1a1aa;
    line-height: 1.5;
    margin: 0;
}

.patreon-update-link {
    display: inline-block;
    color: #6366f1;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s;
    margin: 0;
}

.patreon-update-link:hover {
    color: #818cf8;
    text-decoration: underline;
}

.patreon-updates-loading,
.patreon-updates-empty,
.patreon-updates-error {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    padding: 1rem;
    background: #151520;
    border: 1px solid #1a1a26;
    border-radius: 0.5rem;
    color: #a1a1aa;
    font-size: 0.875rem;
    width: 300px;
    max-width: calc(100vw - 4rem);
}

.patreon-updates-error a {
    color: #6366f1;
    text-decoration: underline;
}

/* Responsive */
@media (min-width: 768px) {
    body {
        padding: 4rem 2rem;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.25rem;
    }
    
    .hero-image {
        max-height: 500px;
    }
    
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    footer {
        gap: 2rem;
    }
    
    .footer-section {
        min-width: 200px;
    }
}

@media (max-width: 767px) {
    .patreon-updates-container {
        display: none;
    }
}
