:root {
    --bg-base: #0f0f11;
    --bg-surface: #1c1c21;
    --bg-footer: #1c1c21;;
    --text-main: #eaeaea;
    --text-muted: #a1a1a6;
    --accent-red: #e31837;
    --accent-gold: #f3e5ab; 
    --kofi-beige: #E3D6C6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; 
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Navigation --- */
nav {
    background-color: rgba(28, 28, 33, 0.97);
    backdrop-filter: blur(8px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3a42;
}

.logo-link {
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text-main);
}
.logo-link span { color: var(--accent-red); }
.logo-link:hover {
    color: var(--text-main);
}

nav .logo { font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px; }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav a { color: var(--text-main); text-decoration: none; font-weight: bold; transition: color 0.3s; }
@media (hover: hover) and (pointer: fine) {
    nav a:hover { color: var(--accent-red); }
}

@media (min-width: 641px) and (max-width: 820px) {
    nav { padding: 1rem 3%; }
    nav .logo { font-size: 1.1rem; letter-spacing: 1px; }
    nav ul { gap: 1rem; }
}

@media (max-width: 640px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 14px 5%;
    }
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    html { scroll-padding-top: 130px; }
}

section {
    padding: 80px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 10px;
}

.center-wrap { text-align: center; width: 100%; }

/* --- About Section --- */
#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 60px;
}

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

@keyframes cakeGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(227, 24, 55, 0.3)); }
    50% { filter: drop-shadow(0 0 16px rgba(227, 24, 55, 0.85)); }
}

.profile-img-container {
    width: 120px;
    height: 120px;
    margin-bottom: 25px; 
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cakeFloat 5s ease-in-out infinite, cakeGlow 5s ease-in-out infinite;
}
.profile-img { max-width: 100%; height: auto; object-fit: contain; }
.lead-text { font-size: 1.1rem; max-width: 700px; color: var(--text-muted); }

/* --- Games Section --- */
#games {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: 60px 5%;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.saunagon-logo { max-width: 400px; width: 100%; margin-bottom: 25px; border-radius: 8px; }
.game-status { color: var(--accent-gold); font-weight: bold; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; display: block; }
.game-desc { font-size: 1.1rem; max-width: 800px; margin: 0 auto 25px; line-height: 1.7; }
.game-desc p + p { margin-top: 15px; color: var(--accent-gold); font-size: 1rem; }

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid #2a2a30;
    border-radius: 10px;
    padding: 40px 30px;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--accent-red);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}
.btn:hover { transform: scale(1.05); background-color: #ff1c3d; }

/* --- News Section --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background: var(--bg-surface);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
}

.news-date {
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.news-headline {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.news-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- The Vault --- */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.vault-item {
    background-color: var(--bg-surface);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #2a2a30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.vault-game-img { max-width: 120px; border-radius: 8px; margin-bottom: 20px; }

/* Alkuperäinen Itch.io painiketyyli */
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 15px;
    transition: 0.3s;
}
.btn-outline:hover { background: var(--accent-gold); color: #000; }

.btn-outline-filled {
    background: var(--accent-gold);
    color: #000;
}
.btn-outline-filled:hover { background: #fff; border-color: #fff; color: #000; }

/* --- Support Bridge --- */
.support-bridge {
    text-align: center;
    padding: 40px 5% 0;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}

/* --- Support Section --- */
#support {
    text-align: center;
    background-color: var(--kofi-beige);
    border-radius: 12px;
    padding: 60px 40px;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1a1a1a;
}

.support-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.support-img {
    max-width: 250px;
    height: auto;
    margin-top: 25px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.support-img:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.redbubble-img {
    height: 52px;
    width: auto;
    margin-top: 25px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.redbubble-img:hover { transform: translateY(-4px); filter: drop-shadow(0 8px 12px rgba(0,0,0,0.15)); }

/* --- Footer --- */
footer {
    background-color: var(--bg-footer);
    border-top: 1px solid #3a3a42;
    margin-top: 80px;
}

.footer-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand .logo { font-size: 1rem; }
.footer-brand span { color: var(--accent-red); }
.footer-brand p { color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }

.footer-group { display: flex; gap: 20px; align-items: center; }
.footer-group a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: 0.2s; }
.footer-group a:hover { color: #fff; }

.social-flex { display: flex; gap: 8px; }
.social-icon {
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.2s;
}
.social-icon:hover { background: var(--accent-red); color: #fff; border-color: transparent; transform: translateY(-2px); }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 1px;
}

@media (max-width: 850px) {
    .footer-wrap { flex-direction: column; text-align: center; padding: 30px 5% 20px; }
    .footer-group { flex-wrap: wrap; justify-content: center; }
    .social-flex { justify-content: center; }
    #games, #support {
        border-radius: 0;
    }
}

.social-icon img {
    filter: invert(1);
    opacity: 0.6;
    transition: opacity 0.2s;
}
.social-icon:hover img {
    opacity: 1;
    filter: invert(1);
}

.about-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.steam-soon {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 10px;
    font-style: italic;
}

/* --- Policy Pages (Privacy Policy & Terms & Conditions) --- */
.policy-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 5% 80px;
}

.policy-wrap h1 {
    color: var(--accent-red);
    font-style: italic;
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.policy-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a30;
}

.policy-intro {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.policy-intro strong {
    color: var(--text-main);
}

.policy-intro a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s;
}

.policy-intro a:hover {
    color: #fff;
}

/* Terms & Conditions intro block variant */
.policy-intro-block {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a2a30;
}

.policy-intro-block .policy-intro {
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.policy-toc {
    background-color: var(--bg-surface);
    border-left: 4px solid var(--accent-red);
    border-radius: 0 8px 8px 0;
    padding: 25px 30px;
    margin-bottom: 50px;
}

.policy-toc h2 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 14px;
}

.policy-toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.policy-toc ul li::before {
    content: "—";
    color: var(--accent-red);
    margin-right: 10px;
    font-size: 0.8rem;
}

.policy-toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.policy-toc a:hover {
    color: var(--text-main);
}

.policy-section {
    margin-bottom: 45px;
}

.policy-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a30;
}

.policy-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.policy-section ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
}

.policy-section ul li::before {
    content: "·";
    color: var(--accent-red);
    position: absolute;
    left: 6px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.policy-section a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s;
}

.policy-section a:hover {
    color: #fff;
}

.policy-updated {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #2a2a30;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-red);
}

.back-link::before {
    content: "←";
}
