:root {
    --brand-red-dark: #990000;       
    --brand-red-hover: #730000;      
    --bg-dark: #121212;
    --bg-light: #f5f5f7;
    --text-dark: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.site-header {
    width: 100%;
    background-color: var(--bg-dark);
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 24px 0;
    display: block;
    transition: color 0.2s ease;
}

.nav-link:hover,
.dropdown-menu a:hover {
    color: var(--brand-red-dark);
}

.nav-link.active {
    color: #ffffff;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-red-dark);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    list-style: none;
    min-width: 190px;
    border-radius: 0 0 6px 6px;
    padding: 8px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    padding-left: 25px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-launcher {
    background-color: var(--brand-red-dark);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-launcher:hover {
    background-color: var(--brand-red-hover);
}

.hero-banner {
    width: 100%;
    height: 540px;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 0 20px;
    
    background-image: 
        linear-gradient(to bottom, 
            rgba(18, 18, 18, 0.95) 0%, 
            rgba(26, 26, 36, 0.75) 50%, 
            var(--bg-light) 100%
        ),
        url('assets/images/hero-bg.png');
    
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #1a1a24;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 120px;
}

.hero-tag {
    background-color: var(--brand-red-dark);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.8rem;
    margin-top: 15px;
    max-width: 700px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    color: #e0e0e0;
    margin: 15px 0 25px 0;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.btn-primary {
    display: inline-block;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: var(--bg-dark);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: -120px; 
    position: relative;
    z-index: 10;
}

.content-wrapper {
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 35px;
    border-left: 4px solid var(--brand-red-dark);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    border: 1px solid #eef0f2;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.07);
}

.game-card-image {
    height: 200px;
    background-color: #eaeaea; 
}
.clickable-waifu { background-color: #e2e5e9; }
.arena-waifu { background-color: #dadfe5; }
.td-waifu { background-color: #d2d9e1; }

.game-card-body {
    padding: 24px;
}

.game-card-body h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.game-card-body p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 70px; 
}

.card-link {
    color: var(--brand-red-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: var(--brand-red-hover);
    text-decoration: underline;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog-item {
    padding-bottom: 25px;
    border-bottom: 1px solid #eeeeee;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-date {
    font-size: 0.85rem;
    color: #888888;
}

.blog-item h3 {
    margin: 5px 0 10px 0;
    font-size: 1.2rem;
}

.blog-item p {
    color: #666666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.site-footer {
    background-color: var(--bg-dark);
    color: #666666;
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-red-dark);
}


.text-center {
    text-align: center;
    flex-direction: column;
    justify-content: center;
}

.center-block {
    margin-left: auto;
    margin-right: auto;
}

.download-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-download-main {
    display: inline-flex;
    align-items: center;
    background-color: var(--brand-red-dark);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 35px;
    border-radius: 8px;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(153, 0, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-download-main:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(153, 0, 0, 0.6);
}

.btn-download-main:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 2rem;
}

.btn-text-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-small-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.btn-large-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.alternative-platforms {
    font-size: 0.9rem;
    color: #aaaaaa;
}

.alternative-platforms a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px dotted #ffffff;
    transition: color 0.2s ease;
}

.alternative-platforms a:hover {
    color: var(--brand-red-dark);
    border-bottom-color: var(--brand-red-dark);
}

.setup-section {
    margin-bottom: 60px;
}

.setup-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}

.step-item {
    display: flex;
    gap: 15px;
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-red-dark);
    line-height: 1;
    opacity: 0.3;
}

.step-text h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step-text p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
}

.specs-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.specs-box {
    background-color: #fafafa;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid #eeeeee;
}

.specs-box h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eef0f2;
    font-size: 0.95rem;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td:first-child {
    width: 35%;
    color: #777777;
}

.specs-table td:last-child {
    color: var(--text-dark);
}


.btn-disabled {
    opacity: 0.6;
    pointer-events: none;
    transform: scale(0.98);
}

.download-toast {
    position: fixed;
    bottom: -80px;
    right: 30px;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--brand-red-dark);
    font-size: 0.95rem;
    z-index: 1000;
    
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.download-toast.toast-show {
    transform: translateY(-110px);
    opacity: 1;
}

.hero-banner.game-hero {
    height: 300px;
}

.game-page-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.6);
    text-transform: uppercase; 
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.2;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-placeholder-1 { background-color: #2c3e50; }
.slide-placeholder-2 { background-color: #34495e; }
.slide-placeholder-3 { background-color: #1a252f; }

.slide-stub-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(18, 18, 18, 0.6);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.carousel-btn:hover {
    background-color: var(--brand-red-dark);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.game-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333333;
}

.game-text p {
    margin-bottom: 20px;
}

.game-text h3 {
    margin: 35px 0 15px 0;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.game-text ul {
    margin-left: 20px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-action-section {
    border-top: 1px solid #eeeeee;
    padding-top: 40px;
    margin-top: 40px;
}

.center-button-wrapper {
    display: flex;
    justify-content: center;
}

.btn-game-play {
    display: inline-block;
    background-color: var(--brand-red-dark);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(153, 0, 0, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-game-play:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(153, 0, 0, 0.4);
}

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

@media (max-width: 768px) {
    .carousel-container { height: 300px; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1rem; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .game-page-title { font-size: 1.8rem; }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.featured-post {
    grid-column: span 2;
    display: flex !important;
}

.featured-post .blog-card-image {
    width: 50%;
    height: auto;
    min-height: 300px;
}

.featured-post .blog-card-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 220px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image-stub {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-devlog { background-color: #e3f2fd; color: #0d47a1; }
.tag-update { background-color: #e8f5e9; color: #1b5e20; }
.tag-news { background-color: #fff3e0; color: #e65100; }

.blog-date {
    font-size: 0.85rem;
    color: #888888;
}

.blog-card-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--brand-red-dark);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-block;
    color: var(--brand-red-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.blog-read-more:hover {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr; }
    .featured-post { grid-column: span 1; flex-direction: column; }
    .featured-post .blog-card-image { width: 100%; height: 220px; min-height: auto; }
    .featured-post .blog-card-content { width: 100%; }
}

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

.main-content {
    animation: contentSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    
    will-change: transform, opacity; 
}

.hero-beach {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('assets/images/beach-bg.png');
}

.hero-arena {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('assets/images/arena-bg.png');
}

.hero-tower {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('assets/images/tower-bg.png');
}